vendor: 2,077 bytes, lines 1-5
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D7QG7hvo.js","./DRbktCdo.js","./CI-PKlKp.js","./BO2MJVnM.js","./y-5JfHje.js","./JEz8jnqB.js","./DTQ3aOFE.js","./DTmifBnS.js","./TeaserHero.MD9Z2gmN.css","./gABwRpjo.js","./DNPHahWu.js","./BXrdiHdf.js","./index.CVfQjt-h.css","./BDNMAD_Z.js","./B5UFgdjn.js","./p2kt_DY-.js","./Dgad-oSp.js","./Ci_ou4H2.js","./Go8_NFwl.js","./BZzmG6MK.js","./DB0RT30T.js","./InlinePlayer.TmohOFEv.css","./videoPodcastDetailFragment.1Zmzc70H.css","./C6lDHqda.js","./cMELAZzf.js","./DYRToSYT.js","./_...Z7bG8Uk5.css","./Ck7wwD1E.js","./CC6i5mz-.js","./CXHLbxwY.js","./TDwTNRyd.js","./CFFGz1kk.js","./CzV1zvG5.js","./Bs7GCzzA.js","./D_nB-MKF.js","./BxuJWLtB.js","./DeRQV9iI.js","./uvXmeHiC.js","./all-videos.DrSwnd0d.css","./DiPb7bm8.js","./G_hdBzPh.js","./smartbanner.DveS9HEz.css"])))=>i.map(i=>d[i]); 2var yE=Object.defineProperty;var h1=e=>{throw TypeError(e)};var vE=(e,t,n)=>t in e?yE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>vE(e,typeof t!="symbol"?t+"":t,n),_E=(e,t,n)=>t.has(e)||h1("Cannot "+n);var Ws=(e,t,n)=>(_E(e,t,"read from private field"),n?n.call(e):t.get(e)),p1=(e,t,n)=>t.has(e)?h1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/** 3* @vue/shared v3.5.13 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function hm(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Xe={},Go=[],sr=()=>{},bE=()=>!1,ac=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pm=e=>e.startsWith("onUpdate:"),Dt=Object.assign,mm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wE=Object.prototype.hasOwnProperty,qe=(e,t)=>wE.call(e,t),we=Array.isArray,Qo=e=>Is(e)==="[object Map]",Du=e=>Is(e)==="[object Set]",m1=e=>Is(e)==="[object Date]",SE=e=>Is(e)==="[object RegExp]",ke=e=>typeof e=="function",dt=e=>typeof e=="string",Vn=e=>typeof e=="symbol",et=e=>e!==null&&typeof e=="object",Nu=e=>(et(e)||ke(e))&&ke(e.then)&&ke(e.catch),pb=Object.prototype.toString,Is=e=>pb.call(e),kE=e=>Is(e).slice(8,-1),mb=e=>Is(e)==="[object Object]",gm=e=>dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ko=hm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},EE=/-(\w)/g,In=Pu(e=>e.replace(EE,(t,n)=>n?n.toUpperCase():"")),CE=/\B([A-Z])/g,Ai=Pu(e=>e.replace(CE,"-$1").toLowerCase()),Lu=Pu(e=>e.charAt(0).toUpperCase()+e.slice(1)),jf=Pu(e=>e?`on${Lu(e)}`:""),li=(e,t)=>!Object.is(e,t),Yo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},gb=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},yb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vb=e=>{const t=dt(e)?Number(e):NaN;return isNaN(t)?e:t};let g1;const $u=()=>g1||(g1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ym(e){if(we(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=dt(r)?AE(r):ym(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(dt(e)||et(e))return e}const TE=/;(?![^(]*\))/g,IE=/:([^]+)/,xE=/\/\*[^]*?\*\//g;function AE(e){const t={};return e.replace(xE,"").split(TE).forEach(n=>{if(n){const r=n.split(IE);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ft(e){let t="";if(dt(e))t=e;else if(we(e))for(let n=0;n<e.length;n++){const r=Ft(e[n]);r&&(t+=r+" ")}else if(et(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const RE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",OE=hm(RE);function _b(e){return!!e||e===""}function ME(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Fu(e[r],t[r]);return n}function Fu(e,t){if(e===t)return!0;let n=m1(e),r=m1(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Vn(e),r=Vn(t),n||r)return e===t;if(n=we(e),r=we(t),n||r)return n&&r?ME(e,t):!1;if(n=et(e),r=et(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const s in e){const a=e.hasOwnProperty(s),c=t.hasOwnProperty(s);if(a&&!c||!a&&c||!Fu(e[s],t[s]))return!1}}return String(e)===String(t)}function DE(e,t){return e.findIndex(n=>Fu(n,t))}const bb=e=>!!(e&&e.__v_isRef===!0),xt=e=>dt(e)?e:e==null?"":we(e)||et(e)&&(e.toString===pb||!ke(e.toString))?bb(e)?xt(e.value):JSON.stringify(e,wb,2):String(e),wb=(e,t)=>bb(t)?wb(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[Vf(r,o)+" =>"]=i,n),{})}:Du(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Vf(n))}:Vn(t)?Vf(t):et(t)&&!we(t)&&!mb(t)?String(t):t,Vf=(e,t="")=>{var n;return Vn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** 7* @vue/reactivity v3.5.13 8* (c) 2018-present Yuxi (Evan) You and Vue contributors 9* @license MIT
vendor: 5,467 bytes, line 10
10**/let Gt;class Sb{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Gt,!t&&Gt&&(this.index=(Gt.scopes||(Gt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Gt;try{return Gt=this,t()}finally{Gt=n}}}on(){Gt=this}off(){Gt=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function vm(e){return new Sb(e)}function hr(){return Gt}function Un(e,t=!1){Gt&&Gt.cleanups.push(e)}let rt;const Uf=new WeakSet;class kb{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Gt&&Gt.active&&Gt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Uf.has(this)&&(Uf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Cb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,y1(this),Tb(this);const t=rt,n=Bn;rt=this,Bn=!0;try{return this.fn()}finally{Ib(this),rt=t,Bn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)wm(t);this.deps=this.depsTail=void 0,y1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Uf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){nh(this)&&this.run()}get dirty(){return nh(this)}}let Eb=0,pa,ma;function Cb(e,t=!1){if(e.flags|=8,t){e.next=ma,ma=e;return}e.next=pa,pa=e}function _m(){Eb++}function bm(){if(--Eb>0)return;if(ma){let t=ma;for(ma=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;pa;){let t=pa;for(pa=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Tb(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ib(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),wm(r),NE(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function nh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(xb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function xb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===La))return;e.globalVersion=La;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!nh(e)){e.flags&=-3;return}const n=rt,r=Bn;rt=e,Bn=!0;try{Tb(e);const i=e.fn(e._value);(t.version===0||li(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{rt=n,Bn=r,Ib(e),e.flags&=-3}}function wm(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)wm(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function NE(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Bn=!0;const Ab=[];function Ri(){Ab.push(Bn),Bn=!1}function Oi(){const e=Ab.pop();Bn=e===void 0?!0:e}function y1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=rt;rt=void 0;try{t()}finally{rt=n}}}let La=0;class PE{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!rt||!Bn||rt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==rt)n=this.activeLink=new PE(rt,this),rt.deps?(n.prevDep=rt.depsTail,rt.depsTail.nextDep=n,rt.depsTail=n):rt.deps=rt.depsTail=n,Rb(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=rt.depsTail,n.nextDep=void 0,rt.depsTail.nextDep=n,rt.depsTail=n,rt.deps===n&&(rt.deps=r)}return n}trigger(t){this.version++,La++,this.notify(t)}notify(t){_m();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{bm()}}}function Rb(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Rb(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const jl=new WeakMap,eo=Symbol(""),rh=Symbol(""),$a=Symbol("");function Ht(e,t,n){if(Bn&&rt){let r=jl.get(e);r||jl.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Bu),i.map=r,i.key=n),i.track()}}function wr(e,t,n,r,i,o){const s=jl.get(e);if(!s){La++;return}const a=c=>{c&&c.trigger()};if(_m(),t==="clear")s.forEach(a);else{const c=we(e),l=c&&gm(n);if(c&&n==="length"){const u=Number(r);
vendor: 4,363 bytes, line 10
10s.forEach((f,d)=>{(d==="length"||d===$a||!Vn(d)&&d>=u)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),l&&a(s.get($a)),t){case"add":c?l&&a(s.get("length")):(a(s.get(eo)),Qo(e)&&a(s.get(rh)));break;case"delete":c||(a(s.get(eo)),Qo(e)&&a(s.get(rh)));break;case"set":Qo(e)&&a(s.get(eo));break}}bm()}function LE(e,t){const n=jl.get(e);return n&&n.get(t)}function ko(e){const t=Fe(e);return t===e?t:(Ht(t,"iterate",$a),Tn(e)?t:t.map(jt))}function Hu(e){return Ht(e=Fe(e),"iterate",$a),e}const $E={__proto__:null,[Symbol.iterator](){return Wf(this,Symbol.iterator,jt)},concat(...e){return ko(this).concat(...e.map(t=>we(t)?ko(t):t))},entries(){return Wf(this,"entries",e=>(e[1]=jt(e[1]),e))},every(e,t){return pr(this,"every",e,t,void 0,arguments)},filter(e,t){return pr(this,"filter",e,t,n=>n.map(jt),arguments)},find(e,t){return pr(this,"find",e,t,jt,arguments)},findIndex(e,t){return pr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pr(this,"findLast",e,t,jt,arguments)},findLastIndex(e,t){return pr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pr(this,"forEach",e,t,void 0,arguments)},includes(...e){return qf(this,"includes",e)},indexOf(...e){return qf(this,"indexOf",e)},join(e){return ko(this).join(e)},lastIndexOf(...e){return qf(this,"lastIndexOf",e)},map(e,t){return pr(this,"map",e,t,void 0,arguments)},pop(){return qs(this,"pop")},push(...e){return qs(this,"push",e)},reduce(e,...t){return v1(this,"reduce",e,t)},reduceRight(e,...t){return v1(this,"reduceRight",e,t)},shift(){return qs(this,"shift")},some(e,t){return pr(this,"some",e,t,void 0,arguments)},splice(...e){return qs(this,"splice",e)},toReversed(){return ko(this).toReversed()},toSorted(e){return ko(this).toSorted(e)},toSpliced(...e){return ko(this).toSpliced(...e)},unshift(...e){return qs(this,"unshift",e)},values(){return Wf(this,"values",jt)}};function Wf(e,t,n){const r=Hu(e),i=r[t]();return r!==e&&!Tn(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const FE=Array.prototype;function pr(e,t,n,r,i,o){const s=Hu(e),a=s!==e&&!Tn(e),c=s[t];if(c!==FE[t]){const f=c.apply(e,o);return a?jt(f):f}let l=n;s!==e&&(a?l=function(f,d){return n.call(this,jt(f),d,e)}:n.length>2&&(l=function(f,d){return n.call(this,f,d,e)}));const u=c.call(s,l,r);return a&&i?i(u):u}function v1(e,t,n,r){const i=Hu(e);let o=n;return i!==e&&(Tn(e)?n.length>3&&(o=function(s,a,c){return n.call(this,s,a,c,e)}):o=function(s,a,c){return n.call(this,s,jt(a),c,e)}),i[t](o,...r)}function qf(e,t,n){const r=Fe(e);Ht(r,"iterate",$a);const i=r[t](...n);return(i===-1||i===!1)&&Em(n[0])?(n[0]=Fe(n[0]),r[t](...n)):i}function qs(e,t,n=[]){Ri(),_m();const r=Fe(e)[t].apply(e,n);return bm(),Oi(),r}const BE=hm("__proto__,__v_isRef,__isVue"),Ob=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vn));function HE(e){Vn(e)||(e=String(e));const t=Fe(this);return Ht(t,"has",e),t.hasOwnProperty(e)}class Mb{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?YE:Lb:o?Pb:Nb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=we(t);if(!i){let c;if(s&&(c=$E[n]))return c;if(n==="hasOwnProperty")return HE}const a=Reflect.get(t,n,Le(t)?t:r);return(Vn(n)?Ob.has(n):BE(n))||(i||Ht(t,"get",n),o)?a:Le(a)?s&&gm(n)?a:a.value:et(a)?i?pn(a):Ut(a):a}}class Db extends Mb{constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const c=_i(o);if(!Tn(r)&&!_i(r)&&(o=Fe(o),r=Fe(r)),!we(t)&&Le(o)&&!Le(r))return c?!1:(o.value=r,!0)}const s=we(t)&&gm(n)?Number(n)<t.length:qe(t,n),a=Reflect.set(t,n,r,Le(t)?t:i);return t===Fe(i)&&(s?li(r,o)&&wr(t,"set",n,r):wr(t,"add",n,r)),a}deleteProperty(t,n){const r=qe(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&wr(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Vn(n)||!Ob.has(n))&&Ht(t,"has",n),r}ownKeys(t){return Ht(t,"iterate",we(t)?"length":eo),Reflect.ownKeys(t)}}class jE extends Mb{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const VE=new Db,UE=new jE,WE=new Db(!0);const ih=e=>e,Rc=e=>Reflect.getPrototypeOf(e);
vendor: 5,972 bytes, line 10
10function qE(e,t,n){return function(...r){const i=this.__v_raw,o=Fe(i),s=Qo(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...r),u=n?ih:t?oh:jt;return!t&&Ht(o,"iterate",c?rh:eo),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Oc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zE(e,t){const n={get(i){const o=this.__v_raw,s=Fe(o),a=Fe(i);e||(li(i,a)&&Ht(s,"get",i),Ht(s,"get",a));const{has:c}=Rc(s),l=t?ih:e?oh:jt;if(c.call(s,i))return l(o.get(i));if(c.call(s,a))return l(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&Ht(Fe(i),"iterate",eo),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,s=Fe(o),a=Fe(i);return e||(li(i,a)&&Ht(s,"has",i),Ht(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,c=Fe(a),l=t?ih:e?oh:jt;return!e&&Ht(c,"iterate",eo),a.forEach((u,f)=>i.call(o,l(u),l(f),s))}};return Dt(n,e?{add:Oc("add"),set:Oc("set"),delete:Oc("delete"),clear:Oc("clear")}:{add(i){!t&&!Tn(i)&&!_i(i)&&(i=Fe(i));const o=Fe(this);return Rc(o).has.call(o,i)||(o.add(i),wr(o,"add",i,i)),this},set(i,o){!t&&!Tn(o)&&!_i(o)&&(o=Fe(o));const s=Fe(this),{has:a,get:c}=Rc(s);let l=a.call(s,i);l||(i=Fe(i),l=a.call(s,i));const u=c.call(s,i);return s.set(i,o),l?li(o,u)&&wr(s,"set",i,o):wr(s,"add",i,o),this},delete(i){const o=Fe(this),{has:s,get:a}=Rc(o);let c=s.call(o,i);c||(i=Fe(i),c=s.call(o,i)),a&&a.call(o,i);const l=o.delete(i);return c&&wr(o,"delete",i,void 0),l},clear(){const i=Fe(this),o=i.size!==0,s=i.clear();return o&&wr(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=qE(i,e,t)}),n}function Sm(e,t){const n=zE(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(qe(n,i)&&i in r?n:r,i,o)}const GE={get:Sm(!1,!1)},QE={get:Sm(!1,!0)},KE={get:Sm(!0,!1)};const Nb=new WeakMap,Pb=new WeakMap,Lb=new WeakMap,YE=new WeakMap;function JE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZE(e){return e.__v_skip||!Object.isExtensible(e)?0:JE(kE(e))}function Ut(e){return _i(e)?e:km(e,!1,VE,GE,Nb)}function kr(e){return km(e,!1,WE,QE,Pb)}function pn(e){return km(e,!0,UE,KE,Lb)}function km(e,t,n,r,i){if(!et(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=ZE(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function xr(e){return _i(e)?xr(e.__v_raw):!!(e&&e.__v_isReactive)}function _i(e){return!!(e&&e.__v_isReadonly)}function Tn(e){return!!(e&&e.__v_isShallow)}function Em(e){return e?!!e.__v_raw:!1}function Fe(e){const t=e&&e.__v_raw;return t?Fe(t):e}function Cm(e){return!qe(e,"__v_skip")&&Object.isExtensible(e)&&gb(e,"__v_skip",!0),e}const jt=e=>et(e)?Ut(e):e,oh=e=>et(e)?pn(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function oe(e){return $b(e,!1)}function mn(e){return $b(e,!0)}function $b(e,t){return Le(e)?e:new XE(e,t)}class XE{constructor(t,n){this.dep=new Bu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Fe(t),this._value=n?t:jt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Tn(t)||_i(t);t=r?t:Fe(t),li(t,n)&&(this._rawValue=t,this._value=r?t:jt(t),this.dep.trigger())}}function q(e){return Le(e)?e.value:e}function e8(e){return ke(e)?e():q(e)}const t8={get:(e,t,n)=>t==="__v_raw"?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Le(i)&&!Le(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Fb(e){return xr(e)?e:new Proxy(e,t8)}class n8{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Bu,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Bb(e){return new n8(e)}function r8(e){const t=we(e)?new Array(e.length):{};for(const n in e)t[n]=Hb(e,n);return t}class i8{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return LE(Fe(this._object),this._key)}}class o8{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ju(e,t,n){return Le(e)?e:ke(e)?new o8(e):et(e)&&arguments.length>1?Hb(e,t,n):oe(e)}function Hb(e,t,n){const r=e[t];return Le(r)?r:new i8(e,t,n)}class s8{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=La-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&rt!==this)return Cb(this,!0),!0}get value(){const t=this.dep.track();return xb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function a8(e,t,n=!1){let r,i;return ke(e)?r=e:(r=e.get,i=e.set),new s8(r,i,n)}const Mc={},Vl=new WeakMap;let Ui;function c8(e,t=!1,n=Ui){if(n){let r=Vl.get(n);r||Vl.set(n,r=[]),r.push(e)}}function l8(e,t,n=Xe){const{immediate:r,deep:i,once:o,scheduler:s,augmentJob:a,call:c}=n,l=b=>i?b:Tn(b)||i===!1||i===0?Sr(b,1):Sr(b);let u,f,d,h,p=!1,m=!1;if(Le(e)?(f=()=>e.value,p=Tn(e)):xr(e)?(f=()=>l(e),p=!0):we(e)?(m=!0,p=e.some(b=>xr(b)||Tn(b)),f=()=>e.map(b=>{if(Le(b))return b.value;if(xr(b))return l(b);if(ke(b))return c?c(b,2):b()})):ke(e)?t?f=c?()=>c(e,2):e:f=()=>{if(d){Ri();try{d()}finally{Oi()}}const b=Ui;Ui=u;try{return c?c(e,3,[h]):e(h)}finally{Ui=b}}:f=sr,t&&i){const b=f,w=i===!0?1/0:i;f=()=>Sr(b(),w)}const y=hr(),g=()=>{u.stop(),y&&y.active&&mm(y.effects,u)};if(o&&t){const b=t;t=(...w)=>{b(...w),g()}}let _=m?new Array(e.length).fill(Mc):Mc;const v=b=>
vendor: 3,148 bytes, lines 10-14
10{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const w=u.run();if(i||p||(m?w.some((S,k)=>li(S,_[k])):li(w,_))){d&&d();const S=Ui;Ui=u;try{const k=[w,_===Mc?void 0:m&&_[0]===Mc?[]:_,h];c?c(t,3,k):t(...k),_=w}finally{Ui=S}}}else u.run()};return a&&a(v),u=new kb(f),u.scheduler=s?()=>s(v,!1):v,h=b=>c8(b,!1,u),d=u.onStop=()=>{const b=Vl.get(u);if(b){if(c)c(b,4);else for(const w of b)w();Vl.delete(u)}},t?r?v(!0):_=u.run():s?s(v.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function Sr(e,t=1/0,n){if(t<=0||!et(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Le(e))Sr(e.value,t,n);else if(we(e))for(let r=0;r<e.length;r++)Sr(e[r],t,n);else if(Du(e)||Qo(e))e.forEach(r=>{Sr(r,t,n)});else if(mb(e)){for(const r in e)Sr(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Sr(e[r],t,n)}return e}/** 11* @vue/runtime-core v3.5.13 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT 14**/function cc(e,t,n,r){try{return r?e(...r):e()}catch(i){lc(i,t,n)}}function Wn(e,t,n,r){if(ke(e)){const i=cc(e,t,n,r);return i&&Nu(i)&&i.catch(o=>{lc(o,t,n)}),i}if(we(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Wn(e[o],t,n,r));return i}}function lc(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Xe;if(t){let a=t.parent;const c=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,c,l)===!1)return}a=a.parent}if(o){Ri(),cc(o,null,10,[e,c,l]),Oi();return}}u8(e,n,i,r,s)}function u8(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Yt=[];let Kn=-1;const Jo=[];let qr=null,Oo=0;const jb=Promise.resolve();let Ul=null;function Tt(e){const t=Ul||jb;return e?t.then(this?e.bind(this):e):t}function f8(e){let t=Kn+1,n=Yt.length;for(;t<n;){const r=t+n>>>1,i=Yt[r],o=Fa(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function Tm(e){if(!(e.flags&1)){const t=Fa(e),n=Yt[Yt.length-1];!n||!(e.flags&2)&&t>=Fa(n)?Yt.push(e):Yt.splice(f8(t),0,e),e.flags|=1,Vb()}}function Vb(){Ul||(Ul=jb.then(Ub))}function sh(e){we(e)?Jo.push(...e):qr&&e.id===-1?qr.splice(Oo+1,0,e):e.flags&1||(Jo.push(e),e.flags|=1),Vb()}function _1(e,t,n=Kn+1){for(;n<Yt.length;n++){const r=Yt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Yt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Wl(e){if(Jo.length){const t=[...new Set(Jo)].sort((n,r)=>Fa(n)-Fa(r));if(Jo.length=0,qr){qr.push(...t);return}for(qr=t,Oo=0;Oo<qr.length;Oo++){const n=qr[Oo];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}qr=null,Oo=0}}const Fa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ub(e){try{for(Kn=0;Kn<Yt.length;Kn++){const t=Yt[Kn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),cc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Kn<Yt.length;Kn++){const t=Yt[Kn];t&&(t.flags&=-2)}Kn=-1,Yt.length=0,Wl(),Ul=null,(Yt.length||Jo.length)&&Ub()}}let It=null,Wb=null;function ql(e){const t=It;return It=e,Wb=e&&e.type.__scopeId||null,t}function Be(e,t=It,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&N1(-1);const o=ql(t);let s;
vendor: 15,664 bytes, lines 14-15
14try{s=e(...i)}finally{ql(o),r._d&&N1(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Im(e,t){if(It===null)return e;const n=zu(It),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,a,c=Xe]=t[i];o&&(ke(o)&&(o={mounted:o,updated:o}),o.deep&&Sr(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:c}))}return e}function Jn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let c=a.dir[r];c&&(Ri(),Wn(c,n,8,[e.el,a,e,t]),Oi())}}const qb=Symbol("_vte"),zb=e=>e.__isTeleport,ga=e=>e&&(e.disabled||e.disabled===""),b1=e=>e&&(e.defer||e.defer===""),w1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,S1=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ah=(e,t)=>{const n=e&&e.to;return dt(n)?t?t(n):null:n},Gb={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,s,a,c,l){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:y}}=l,g=ga(t.props);let{shapeFlag:_,children:v,dynamicChildren:b}=t;if(e==null){const w=t.el=m(""),S=t.anchor=m("");h(w,n,r),h(S,n,r);const k=(A,T)=>{_&16&&(i&&i.isCE&&(i.ce._teleportTarget=A),u(v,A,T,i,o,s,a,c))},R=()=>{const A=t.target=ah(t.props,p),T=Qb(A,t,m,h);A&&(s!=="svg"&&w1(A)?s="svg":s!=="mathml"&&S1(A)&&(s="mathml"),g||(k(A,T),pl(t,!1)))};g&&(k(n,S),pl(t,!0)),b1(t.props)?St(()=>{R(),t.el.__isMounted=!0},o):R()}else{if(b1(t.props)&&!e.el.__isMounted){St(()=>{Gb.process(e,t,n,r,i,o,s,a,c,l),delete e.el.__isMounted},o);return}t.el=e.el,t.targetStart=e.targetStart;const w=t.anchor=e.anchor,S=t.target=e.target,k=t.targetAnchor=e.targetAnchor,R=ga(e.props),A=R?n:S,T=R?w:k;if(s==="svg"||w1(S)?s="svg":(s==="mathml"||S1(S))&&(s="mathml"),b?(d(e.dynamicChildren,b,A,i,o,s,a),Rm(e,t,!0)):c||f(e,t,A,T,i,o,s,a,!1),g)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Dc(t,n,w,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=ah(t.props,p);$&&Dc(t,$,null,l,0)}else R&&Dc(t,S,k,l,1);pl(t,g)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:c,targetStart:l,targetAnchor:u,target:f,props:d}=e;if(f&&(i(l),i(u)),o&&i(c),s&16){const h=o||!ga(d);for(let p=0;p<a.length;p++){const m=a[p];r(m,t,n,h,!!m.dynamicChildren)}}},move:Dc,hydrate:d8};function Dc(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:c,children:l,props:u}=e,f=o===2;if(f&&r(s,t,n),(!f||ga(u))&&c&16)for(let d=0;d<l.length;d++)i(l[d],t,n,2);f&&r(a,t,n)}function d8(e,t,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:c,insert:l,createText:u}},f){const d=t.target=ah(t.props,c);if(d){const h=ga(t.props),p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(s(e),t,a(e),n,r,i,o),t.targetStart=p,t.targetAnchor=p&&s(p);else{t.anchor=s(e);let m=p;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&s(t.targetAnchor);break}}m=s(m)}t.targetAnchor||Qb(d,t,u,l),f(p&&s(p),t,d,n,r,i,o)}pl(t,h)}return t.anchor&&s(t.anchor)}const h8=Gb;function pl(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Qb(e,t,n,r){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[qb]=o,e&&(r(i,e),r(o,e)),o}const zr=Symbol("_leaveCb"),Nc=Symbol("_enterCb");function p8(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Mi(()=>{e.isUnmounting=!0}),e}const kn=[Function,Array],Kb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kn,onEnter:kn,onAfterEnter:kn,onEnterCancelled:kn,onBeforeLeave:kn,onLeave:kn,onAfterLeave:kn,onLeaveCancelled:kn,onBeforeAppear:kn,onAppear:kn,onAfterAppear:kn,onAppearCancelled:kn},Yb=e=>{const t=e.subTree;return t.component?Yb(t.component):t},m8={name:"BaseTransition",props:Kb,setup(e,{slots:t}){const n=_n(),r=p8();return()=>{const i=t.default&&Xb(t.default(),!0);if(!i||!i.length)return;const o=Jb(i),s=Fe(e),{mode:a}=s;if(r.isLeaving)return zf(o);const c=k1(o);if(!c)return zf(o);let l=ch(c,s,r,n,f=>l=f);c.type!==Et&&as(c,l);let u=n.subTree&&k1(n.subTree);if(u&&u.type!==Et&&!$n(c,u)&&Yb(n).type!==Et){let f=ch(u,s,r,n);if(as(u,f),a==="out-in"&&c.type!==Et)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},zf(o);a==="in-out"&&c.type!==Et?f.delayLeave=(d,h,p)=>{const m=Zb(r,u);m[String(u.key)]=u,d[zr]=()=>{h(),d[zr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{p(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Jb(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Et){t=n;break}}return t}const g8=m8;function Zb(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ch(e,t,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:y,onAppear:g,onAfterAppear:_,onAppearCancelled:v}=t,b=String(e.key),w=Zb(n,e),S=(A,T)=>{A&&Wn(A,r,9,T)},k=(A,T)=>{const $=T[1];S(A,T),we(A)?A.every(D=>D.length<=1)&&$():A.length<=1&&$()},R={mode:s,persisted:a,beforeEnter(A){let T=c;if(!n.isMounted)if(o)T=y||c;else return;A[zr]&&A[zr](!0);const $=w[b];$&&$n(e,$)&&$.el[zr]&&$.el[zr](),S(T,[A])},enter(A){let T=l,$=u,D=f;if(!n.isMounted)if(o)T=g||l,$=_||u,D=v||f;else return;let H=!1;const ce=A[Nc]=K=>{H||(H=!0,K?S(D,[A]):S($,[A]),R.delayedLeave&&R.delayedLeave(),A[Nc]=void 0)};T?k(T,[A,ce]):ce()},leave(A,T){const $=String(e.key);if(A[Nc]&&A[Nc](!0),n.isUnmounting)return T();S(d,[A]);let D=!1;const H=A[zr]=ce=>{D||(D=!0,T(),ce?S(m,[A]):S(p,[A]),A[zr]=void 0,w[$]===e&&delete w[$])};w[$]=e,h?k(h,[A,H]):H()},clone(A){const T=ch(A,t,n,r,i);return i&&i(T),T}};return R}function zf(e){if(Vu(e))return e=xn(e),e.children=null,e}function k1(e){if(!Vu(e))return zb(e.type)&&e.children?Jb(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ke(n.default))return n.default()}}function as(e,t){e.shapeFlag&6&&e.component?(e.transition=t,as(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Xb(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let s=e[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Je?(s.patchFlag&128&&i++,r=r.concat(Xb(s.children,t,a))):(t||s.type!==Et)&&r.push(a!=null?xn(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function xe(e,t){return ke(e)?Dt({name:e.name},t,{setup:e}):e}function y8(){const e=_n();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function e2(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function rJ(e){const t=_n(),n=mn(null);if(t){const i=t.refs===Xe?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Ba(e,t,n,r,i=!1){if(we(e)){e.forEach((p,m)=>Ba(p,t&&(we(t)?t[m]:t),n,r,i));return}if(ui(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ba(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?zu(r.component):r.el,s=i?null:o,{i:a,r:c}=e,l=t&&t.r,u=a.refs===Xe?a.refs={}:a.refs,f=a.setupState,d=Fe(f),h=f===Xe?()=>!1:p=>qe(d,p);if(l!=null&&l!==c&&(dt(l)?(u[l]=null,h(l)&&(f[l]=null)):Le(l)&&(l.value=null)),ke(c))cc(c,a,12,[s,u]);else{const p=dt(c),m=Le(c);if(p||m){const y=()=>{if(e.f){const g=p?h(c)?f[c]:u[c]:c.value;i?we(g)&&mm(g,o):we(g)?g.includes(o)||g.push(o):p?(u[c]=[o],h(c)&&(f[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else p?(u[c]=s,h(c)&&(f[c]=s)):m&&(c.value=s,e.k&&(u[e.k]=s))};s?(y.id=-1,St(y,n)):y()}}}let E1=!1;const Eo=()=>{E1||(console.error("Hydration completed but contains mismatches."),E1=!0)},v8=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",_8=e=>e.namespaceURI.includes("MathML"),Pc=e=>{if(e.nodeType===1){if(v8(e))return"svg";if(_8(e))return"mathml"}},Lc=e=>e.nodeType===8;function b8(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:a,insert:c,createComment:l}}=e,u=(v,b)=>{if(!b.hasChildNodes()){n(null,v,b),Wl(),b._vnode=v;return}f(b.firstChild,v,null,null,null),Wl(),b._vnode=v},f=(v,b,w,S,k,R=!1)=>{R=R||!!b.dynamicChildren;const A=Lc(v)&&v.data==="[",T=()=>m(v,b,w,S,k,A),{type:$,ref:D,shapeFlag:H,patchFlag:ce}=b;let K=v.nodeType;b.el=v,ce===-2&&(R=!1,b.dynamicChildren=null);let F=null;switch($){case no:K!==3?b.children===""?(c(b.el=i(""),s(v),v),F=v):F=T():(v.data!==b.children&&(Eo(),v.data=b.children),F=o(v));break;case Et:_(v)?(F=o(v),g(b.el=v.content.firstChild,v,w)):K!==8||A?F=T():F=o(v);break;case va:if(A&&(v=o(v),K=v.nodeType),K===1||K===3){F=v;const V=!b.children.length;for(let W=0;W<b.staticCount;W++)V&&(b.children+=F.nodeType===1?F.outerHTML:F.data),W===b.staticCount-1&&(b.anchor=F),F=o(F);return A?o(F):F}else T();break;case Je:A?F=p(v,b,w,S,k,R):F=T();break;default:if(H&1)(K!==1||b.type.toLowerCase()!==v.tagName.toLowerCase())&&!_(v)?F=T():F=d(v,b,w,S,k,R);else if(H&6){b.slotScopeIds=k;const V=s(v);if(A?F=y(v):Lc(v)&&v.data==="teleport start"?F=y(v,v.data,"teleport end"):F=o(v),t(b,V,null,w,S,Pc(V),R),ui(b)&&!b.type.__asyncResolved){let W;A?(W=he(Je),W.anchor=F?F.previousSibling:V.lastChild):W=v.nodeType===3?Ye(""):he("div"),W.el=v,b.component.subTree=W}}else H&64?K!==8?F=T():F=b.type.hydrate(v,b,w,S,k,R,e,h):H&128&&(F=b.type.hydrate(v,b,w,S,Pc(s(v)),k,R,e,f))}return D!=null&&Ba(D,null,S,b),F},d=(v,b,w,S,k,R)=>{R=R||!!b.dynamicChildren;const{type:A,props:T,patchFlag:$,shapeFlag:D,dirs:H,transition:ce}=b,K=A==="input"||A==="option";if(K||$!==-1){H&&Jn(b,null,w,"created");let F=!1;if(_(v)){F=T2(null,ce)&&w&&w.vnode.props&&w.vnode.props.appear;const W=v.content.firstChild;F&&ce.beforeEnter(W),g(W,v,w),b.el=v=W}if(D&16&&!(T&&(T.innerHTML||T.textContent))){let W=h(v.firstChild,b,v,w,S,k,R);for(;W;){$c(v,1)||Eo();const de=W;W=W.nextSibling,a(de)}}else if(D&8){let W=b.children;W[0]===` 15`&&(v.tagName==="PRE"||v.tagName==="TEXTAREA")&&(W=W.slice(1)),v.textContent!==W&&($c(v,0)||Eo(),v.textContent=b.children)}if(T){if(K||!R||$&48){const W=v.tagName.includes("-");for(const de in T)(K&&(de.endsWith("value")||de==="indeterminate")||ac(de)&&!Ko(de)||de[0]==="."||W)&&r(v,de,null,T[de],void 0,w)}else if(T.onClick)r(v,"onClick",null,T.onClick,void 0,w);else if($&4&&xr(T.style))for(const W in T.style)T.style[W]}let V;(V=T&&T.onVnodeBeforeMount)&&nn(V,w,b),H&&Jn(b,null,w,"beforeMount"),((V=T&&T.onVnodeMounted)||H||F)&&M2(()=>{V&&nn(V,w,b),F&&ce.enter(v),H&&Jn(b,null,w,"mounted")},S)}return v.nextSibling},h=(v,b,w,S,k,R,A)=>{A=A||!!b.dynamicChildren;const T=b.children,$=T.length;for(let D=0;D<$;D++){const H=A?T[D]:T[D]=fn(T[D]),ce=H.type===no;v?(ce&&!A&&D+1<$&&fn(T[D+1]).type===no&&(c(i(v.data.slice(H.children.length)),w,o(v)),v.data=H.children),v=f(v,H,S,k,R,A)):ce&&!H.children?c(H.el=i(""),w):($c(w,1)||Eo(),n(null,H,w,null,S,k,Pc(w),R))}return v},p=(v,b,w,S,k,R)=>{const{slotScopeIds:A}=b;A&&(k=k?k.concat(A):A);const T=s(v),$=h(o(v),b,T,w,S,k,R);return $&&Lc($)&&$.data==="]"?o(b.anchor=$):(Eo(),c(b.anchor=l("]"),T,$),$)},m=(v,b,w,S,k,R)=>{if($c(v.parentElement,1)||Eo(),b.el=null,R){const $=y(v);for(;;){const D=o(v);if(D&&D!==$)a(D);else break}}const A=o(v),T=s(v);return a(v),n(null,b,T,A,w,S,Pc(T),k),w&&(w.vnode.el=b.el,qu(w,b.el)),A},y=(v,b="[",w="]")=>{let S=0;for(;v;)if(v=o(v),v&&Lc(v)&&(v.data===b&&S++,v.data===w)){if(S===0)return o(v);S--}return v},g=(v,b,w)=>{const S=b.parentNode;S&&S.replaceChild(v,b);let k=w;for(;k;)k.vnode.el===b&&(k.vnode.el=k.subTree.el=v),k=k.parent},_=v=>v.nodeType===1&&v.tagName==="TEMPLATE";return[u,f]}const C1="data-allow-mismatch",w8={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function $c(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(C1);)e=e.parentElement;const n=e&&e.getAttribute(C1);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(w8[t])}}$u().requestIdleCallback;$u().cancelIdleCallback;const ui=e=>!!e.type.__asyncLoader,Vu=e=>e.type.__isKeepAlive,S8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=_n(),r=n.ctx;if(!r.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(_,v,b,w,S)=>{const k=_.component;l(_,v,b,0,a),c(k.vnode,_,v,b,k,a,w,_.slotScopeIds,S),St(()=>{k.isDeactivated=!1,k.a&&Yo(k.a);const R=_.props&&_.props.onVnodeMounted;R&&nn(R,k.parent,_)},a)},r.deactivate=_=>{const v=_.component;Gl(v.m),Gl(v.a),l(_,d,null,1,a),St(()=>{v.da&&Yo(v.da);const b=_.props&&_.props.onVnodeUnmounted;b&&nn(b,v.parent,_),v.isDeactivated=!0},a)};function h(_){Gf(_),u(_,n,a,!0)}function p(_){i.forEach((v,b)=>{const w=yh(v.type);w&&!_(w)&&m(b)})}function m(_){const v=i.get(_);v&&(!s||!$n(v,s))?h(v):s&&Gf(s),i.delete(_),o.delete(_)}Oe(()=>[e.include,e.exclude],([_,v])=>{_&&p(b=>aa(_,b)),v&&p(b=>!aa(v,b))},{flush:"post",deep:!0});let y=null;const g=()=>{y!=null&&(Ql(n.subTree.type)?St(()=>{i.set(y,Fc(n.subTree))},n.subTree.suspense):i.set(y,Fc(n.subTree)))};return Qe(g),o2(g),Mi(()=>{i.forEach(_=>{const{subTree:v,suspense:b}=n,w=Fc(v);if(_.type===w.type&&_.key===w.key){Gf(w);const S=w.component.da;S&&St(S,b);return}h(_)})}),()=>{if(y=null,!t.default)return s=null;const _=t.default(),v=_[0];if(_.length>1)return s=null,_;if(!ao(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return s=null,v;let b=Fc(v);if(b.type===Et)return s=null,b;const w=b.type,S=yh(ui(b)?b.type.__asyncResolved||{}:w),{include:k,exclude:R,max:A}=e;if(k&&(!S||!aa(k,S))||R&&S&&aa(R,S))return b.shapeFlag&=-257,s=b,v;const T=b.key==null?w:b.key,$=i.get(T);return b.el&&(b=xn(b),v.shapeFlag&128&&(v.ssContent=b)),y=T,$?(b.el=$.el,b.component=$.component,b.transition&&as(b,b.transition),b.shapeFlag|=512,o.delete(T),o.add(T)):(o.add(T),A&&o.size>parseInt(A,10)&&m(o.values().next().value)),b.shapeFlag|=256,s=b,Ql(v.type)?v:b}}},k8=S8;function aa(e,t){return we(e)?e.some(n=>aa(n,t)):dt(e)?e.split(",").includes(t):SE(e)?(e.lastIndex=0,e.test(t)):!1}function t2(e,t){r2(e,"a",t)}function n2(e,t){r2(e,"da",t)}function r2(e,t,n=Ot){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Uu(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Vu(i.parent.vnode)&&E8(r,t,n,i),i=i.parent}}function E8(e,t,n,r){const i=Uu(t,e,r,!0);an(()=>{mm(r[t],i)},n)}function Gf(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Fc(e){return e.shapeFlag&128?e.ssContent:e}function Uu(e,t,n=Ot,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{Ri();const a=co(n),c=Wn(t,n,e,s);return a(),Oi(),c});return r?i.unshift(o):i.push(o),o}}const Lr=e=>(t,n=Ot)=>{(!Va||e==="sp")&&Uu(e,(...r)=>t(...r),n)},i2=Lr("bm"),Qe=Lr("m"),C8=Lr("bu"),o2=Lr("u"),Mi=Lr("bum"),an=Lr("um"),s2=Lr("sp"),T8=Lr("rtg"),I8=Lr("rtc");function xm(e,t=Ot){Uu("ec",e,t)}const a2="components";function Ha(e,t){return l2(a2,e,!0,t)||e}const c2=Symbol.for("v-ndc");function x8(e){return dt(e)?l2(a2,e,!1)||e:e||c2}function l2(e,t,n=!0,r=!1){const i=It||Ot;if(i){const o=i.type;{const a=yh(o,!1);if(a&&(a===t||a===In(t)||a===Lu(In(t))))return o}const s=T1(i[e]||o[e],t)||T1(i.appContext[e],t);return!s&&r?o:s}}function T1(e,t){return e&&(e[t]||e[In(t)]||e[Lu(In(t))])}function lr(e,t,n,r){let i;const o=n,s=we(e);if(s||dt(e)){const a=s&&xr(e);let c=!1;
15a&&(c=!Tn(e),e=Hu(e)),i=new Array(e.length);for(let l=0,u=e.length;l<u;l++)i[l]=t(c?jt(e[l]):e[l],l,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o)}else if(et(e))if(e[Symbol.iterator])i=Array.from(e,(a,c)=>t(a,c,void 0,o));else{const a=Object.keys(e);i=new Array(a.length);for(let c=0,l=a.length;c<l;c++){const u=a[c];i[c]=t(e[u],u,c,o)}}else i=[];return i}function u2(e,t,n={},r,i){if(It.ce||It.parent&&ui(It.parent)&&It.parent.ce)return U(),Ce(Je,null,[he("slot",n,r)],64);let o=e[t];o&&o._c&&(o._d=!1),U();const s=o&&f2(o(n)),a=n.key||s&&s.key,c=Ce(Je,{key:(a&&!Vn(a)?a:`_${t}`)+""},s||[],s&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function f2(e){return e.some(t=>ao(t)?!(t.type===Et||t.type===Je&&!f2(t.children)):!0)?e:null}const lh=e=>e?L2(e)?zu(e):lh(e.parent):null,ya=Dt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lh(e.parent),$root:e=>lh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>p2(e),$forceUpdate:e=>e.f||(e.f=()=>{Tm(e.update)}),$nextTick:e=>e.n||(e.n=Tt.bind(e.proxy)),$watch:e=>Q8.bind(e)}),Qf=(e,t)=>e!==Xe&&!e.__isScriptSetup&&qe(e,t),A8={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:c}=e;let l;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Qf(r,t))return s[t]=1,r[t];if(i!==Xe&&qe(i,t))return s[t]=2,i[t];if((l=e.propsOptions[0])&&qe(l,t))return s[t]=3,o[t];if(n!==Xe&&qe(n,t))return s[t]=4,n[t];uh&&(s[t]=0)}}const u=ya[t];let f,d;if(u)return t==="$attrs"&&Ht(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Xe&&qe(n,t))return s[t]=4,n[t];if(d=c.config.globalProperties,qe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Qf(i,t)?(i[t]=n,!0):r!==Xe&&qe(r,t)?(r[t]=n,!0):qe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||e!==Xe&&qe(e,s)||Qf(t,s)||(a=o[0])&&qe(a,s)||qe(r,s)||qe(ya,s)||qe(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:qe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function I1(e){return we(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function d2(e){const t=_n();let n=e();return mh(),Nu(n)&&(n=n.catch(r=>{throw co(t),r})),[n,()=>co(t)]}let uh=!0;function R8(e){const t=p2(e),n=e.proxy,r=e.ctx;uh=!1,t.beforeCreate&&x1(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:c,inject:l,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:y,beforeDestroy:g,beforeUnmount:_,destroyed:v,unmounted:b,render:w,renderTracked:S,renderTriggered:k,errorCaptured:R,serverPrefetch:A,expose:T,inheritAttrs:$,components:D,directives:H,filters:ce}=t;if(l&&O8(l,r,null),s)for(const V in s){const W=s[V];ke(W)&&(r[V]=W.bind(n))}if(i){const V=i.call(n,n);et(V)&&(e.data=Ut(V))}if(uh=!0,o)for(const V in o){const W=o[V],de=ke(W)?W.bind(n,n):ke(W.get)?W.get.bind(n,n):sr,C=!ke(W)&&ke(W.set)?W.set.bind(n):sr,O=se({get:de,set:C});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>O.value,set:B=>O.value=B})}if(a)for(const V in a)h2(a[V],r,n,V);if(c){const V=ke(c)?c.call(n):c;Reflect.ownKeys(V).forEach(W=>{Bt(W,V[W])})}u&&x1(u,e,"c");function F(V,W){we(W)?W.forEach(de=>V(de.bind(n))):W&&V(W.bind(n))}if(F(i2,f),F(Qe,d),F(C8,h),F(o2,p),F(t2,m),F(n2,y),F(xm,R),F(I8,S),F(T8,k),F(Mi,_),F(an,b),F(s2,A),we(T))if(T.length){const V=e.exposed||(e.exposed={});T.forEach(W=>{Object.defineProperty(V,W,{get:()=>n[W],set:de=>n[W]=de})})}else e.exposed||(e.exposed={});w&&e.render===sr&&(e.render=w),$!=null&&(e.inheritAttrs=$),D&&(e.components=D),H&&(e.directives=H),A&&e2(e)}function O8(e,t,n=sr){we(e)&&(e=fh(e));for(const r in e){const i=e[r];let o;et(i)?"default"in i?o=Ve(i.from||r,i.default,!0):o=Ve(i.from||r):o=Ve(i),Le(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[r]=o}}function x1(e,t,n){Wn(we(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h2(e,t,n,r){let i=r.includes(".")?x2(n,r):()=>n[r];if(dt(e)){const o=t[e];ke(o)&&Oe(i,o)}else if(ke(e))Oe(i,e.bind(n));else if(et(e))if(we(e))e.forEach(o=>
vendor: 4,684 bytes, line 15
15h2(o,t,n,r));else{const o=ke(e.handler)?e.handler.bind(n):t[e.handler];ke(o)&&Oe(i,o,e)}}function p2(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let c;return a?c=a:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(l=>zl(c,l,s,!0)),zl(c,t,s)),et(t)&&o.set(t,c),c}function zl(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&zl(e,o,n,!0),i&&i.forEach(s=>zl(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=M8[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const M8={data:A1,props:R1,emits:R1,methods:ca,computed:ca,beforeCreate:qt,created:qt,beforeMount:qt,mounted:qt,beforeUpdate:qt,updated:qt,beforeDestroy:qt,beforeUnmount:qt,destroyed:qt,unmounted:qt,activated:qt,deactivated:qt,errorCaptured:qt,serverPrefetch:qt,components:ca,directives:ca,watch:N8,provide:A1,inject:D8};function A1(e,t){return t?e?function(){return Dt(ke(e)?e.call(this,this):e,ke(t)?t.call(this,this):t)}:t:e}function D8(e,t){return ca(fh(e),fh(t))}function fh(e){if(we(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qt(e,t){return e?[...new Set([].concat(e,t))]:t}function ca(e,t){return e?Dt(Object.create(null),e,t):t}function R1(e,t){return e?we(e)&&we(t)?[...new Set([...e,...t])]:Dt(Object.create(null),I1(e),I1(t??{})):t}function N8(e,t){if(!e)return t;if(!t)return e;const n=Dt(Object.create(null),e);for(const r in t)n[r]=qt(e[r],t[r]);return n}function m2(){return{app:null,config:{isNativeTag:bE,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let P8=0;function L8(e,t){return function(r,i=null){ke(r)||(r=Dt({},r)),i!=null&&!et(i)&&(i=null);const o=m2(),s=new WeakSet,a=[];let c=!1;const l=o.app={_uid:P8++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:v6,get config(){return o.config},set config(u){},use(u,...f){return s.has(u)||(u&&ke(u.install)?(s.add(u),u.install(l,...f)):ke(u)&&(s.add(u),u(l,...f))),l},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),l},component(u,f){return f?(o.components[u]=f,l):o.components[u]},directive(u,f){return f?(o.directives[u]=f,l):o.directives[u]},mount(u,f,d){if(!c){const h=l._ceVNode||he(r,i);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,u):e(h,u,d),c=!0,l._container=u,u.__vue_app__=l,zu(h.component)}},onUnmount(u){a.push(u)},unmount(){c&&(Wn(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return o.provides[u]=f,l},runWithContext(u){const f=to;to=l;try{return u()}finally{to=f}}};return l}}let to=null;function Bt(e,t){if(Ot){let n=Ot.provides;const r=Ot.parent&&Ot.parent.provides;r===n&&(n=Ot.provides=Object.create(r)),n[e]=t}}function Ve(e,t,n=!1){const r=Ot||It;if(r||to){const i=to?to._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ke(t)?t.call(r&&r.proxy):t}}function xs(){return!!(Ot||It||to)}const g2={},y2=()=>Object.create(g2),v2=e=>Object.getPrototypeOf(e)===g2;function $8(e,t,n,r=!1){const i={},o=y2();e.propsDefaults=Object.create(null),_2(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:kr(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function F8(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=Fe(i),[c]=e.propsOptions;let l=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(Wu(e.emitsOptions,d))continue;const h=t[d];if(c)if(qe(o,d))h!==o[d]&&(o[d]=h,l=!0);else{const p=In(d);i[p]=dh(c,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,l=!0)}}}else{_2(e,t,i,o)&&(l=!0);let u;for(const f in a)(!t||!qe(t,f)&&((u=Ai(f))===f||!qe(t,u)))&&(c?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=dh(c,a,f,void 0,e,!0)):delete i[f]);if(o!==a)for(const f in o)(!t||!qe(t,f))&&(delete o[f],l=!0)}l&&wr(e.attrs,"set","")}function _2(e,t,n,r){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let c in t){if(Ko(c))continue;const l=t[c];let u;i&&qe(i,u=In(c))?!o||!o.includes(u)?n[u]=l:(a||(a={}))[u]=l:Wu(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,s=!0)}if(o){const c=Fe(n),l=a||Xe;for(let u=0;u<o.length;u++){const f=o[u];n[f]=dh(i,c,f,l[f],e,!qe(l,f))}}return s}function dh(e,t,n,r,i,o){const s=e[n];if(s!=null){const a=qe(s,"default");if(a&&r===void 0){const c=s.default;if(s.type!==Function&&!s.skipFactory&&ke(c)){const{propsDefaults:l}=i;if(n in l)r=l[n];else{const u=co(i);r=l[n]=c.call(null,t),u()}}else r=c;i.ce&&i.ce._setProp(n,r)}
vendor: 6,000 bytes, line 15
15s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===Ai(n))&&(r=!0))}return r}const B8=new WeakMap;function b2(e,t,n=!1){const r=n?B8:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,s={},a=[];let c=!1;if(!ke(e)){const u=f=>{c=!0;const[d,h]=b2(f,t,!0);Dt(s,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return et(e)&&r.set(e,Go),Go;if(we(o))for(let u=0;u<o.length;u++){const f=In(o[u]);O1(f)&&(s[f]=Xe)}else if(o)for(const u in o){const f=In(u);if(O1(f)){const d=o[u],h=s[f]=we(d)||ke(d)?{type:d}:Dt({},d),p=h.type;let m=!1,y=!0;if(we(p))for(let g=0;g<p.length;++g){const _=p[g],v=ke(_)&&_.name;if(v==="Boolean"){m=!0;break}else v==="String"&&(y=!1)}else m=ke(p)&&p.name==="Boolean";h[0]=m,h[1]=y,(m||qe(h,"default"))&&a.push(f)}}const l=[s,a];return et(e)&&r.set(e,l),l}function O1(e){return e[0]!=="$"&&!Ko(e)}const w2=e=>e[0]==="_"||e==="$stable",Am=e=>we(e)?e.map(fn):[fn(e)],H8=(e,t,n)=>{if(t._n)return t;const r=Be((...i)=>Am(t(...i)),n);return r._c=!1,r},S2=(e,t,n)=>{const r=e._ctx;for(const i in e){if(w2(i))continue;const o=e[i];if(ke(o))t[i]=H8(i,o,r);else if(o!=null){const s=Am(o);t[i]=()=>s}}},k2=(e,t)=>{const n=Am(t);e.slots.default=()=>n},E2=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},j8=(e,t,n)=>{const r=e.slots=y2();if(e.vnode.shapeFlag&32){const i=t._;i?(E2(r,t,n),n&&gb(r,"_",i,!0)):S2(t,r)}else t&&k2(e,t)},V8=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=Xe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:E2(i,t,n):(o=!t.$stable,S2(t,i)),s=t}else t&&(k2(e,t),s={default:1});if(o)for(const a in i)!w2(a)&&s[a]==null&&delete i[a]},St=M2;function U8(e){return C2(e)}function W8(e){return C2(e,b8)}function C2(e,t){const n=$u();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:c,setText:l,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=sr,insertStaticContent:p}=e,m=(E,I,P,ie=null,G=null,ae=null,ne=void 0,le=null,X=!!I.dynamicChildren)=>{if(E===I)return;E&&!$n(E,I)&&(ie=x(E),B(E,G,ae,!0),E=null),I.patchFlag===-2&&(X=!1,I.dynamicChildren=null);const{type:Z,ref:ue,shapeFlag:pe}=I;switch(Z){case no:y(E,I,P,ie);break;case Et:g(E,I,P,ie);break;case va:E==null&&_(I,P,ie,ne);break;case Je:D(E,I,P,ie,G,ae,ne,le,X);break;default:pe&1?w(E,I,P,ie,G,ae,ne,le,X):pe&6?H(E,I,P,ie,G,ae,ne,le,X):(pe&64||pe&128)&&Z.process(E,I,P,ie,G,ae,ne,le,X,ee)}ue!=null&&G&&Ba(ue,E&&E.ref,ae,I||E,!I)},y=(E,I,P,ie)=>{if(E==null)r(I.el=a(I.children),P,ie);else{const G=I.el=E.el;I.children!==E.children&&l(G,I.children)}},g=(E,I,P,ie)=>{E==null?r(I.el=c(I.children||""),P,ie):I.el=E.el},_=(E,I,P,ie)=>{[E.el,E.anchor]=p(E.children,I,P,ie,E.el,E.anchor)},v=({el:E,anchor:I},P,ie)=>{let G;for(;E&&E!==I;)G=d(E),r(E,P,ie),E=G;r(I,P,ie)},b=({el:E,anchor:I})=>{let P;for(;E&&E!==I;)P=d(E),i(E),E=P;i(I)},w=(E,I,P,ie,G,ae,ne,le,X)=>{I.type==="svg"?ne="svg":I.type==="math"&&(ne="mathml"),E==null?S(I,P,ie,G,ae,ne,le,X):A(E,I,G,ae,ne,le,X)},S=(E,I,P,ie,G,ae,ne,le)=>{let X,Z;const{props:ue,shapeFlag:pe,transition:ve,dirs:te}=E;if(X=E.el=s(E.type,ae,ue&&ue.is,ue),pe&8?u(X,E.children):pe&16&&R(E.children,X,null,ie,G,Kf(E,ae),ne,le),te&&Jn(E,null,ie,"created"),k(X,E,E.scopeId,ne,ie),ue){for(const Se in ue)Se!=="value"&&!Ko(Se)&&o(X,Se,null,ue[Se],ae,ie);"value"in ue&&o(X,"value",null,ue.value,ae),(Z=ue.onVnodeBeforeMount)&&nn(Z,ie,E)}te&&Jn(E,null,ie,"beforeMount");const me=T2(G,ve);me&&ve.beforeEnter(X),r(X,I,P),((Z=ue&&ue.onVnodeMounted)||me||te)&&St(()=>{Z&&nn(Z,ie,E),me&&ve.enter(X),te&&Jn(E,null,ie,"mounted")},G)},k=(E,I,P,ie,G)=>{if(P&&h(E,P),ie)for(let ae=0;ae<ie.length;ae++)h(E,ie[ae]);if(G){let ae=G.subTree;if(I===ae||Ql(ae.type)&&(ae.ssContent===I||ae.ssFallback===I)){const ne=G.vnode;k(E,ne,ne.scopeId,ne.slotScopeIds,G.parent)}}},R=(E,I,P,ie,G,ae,ne,le,X=0)=>{for(let Z=X;Z<E.length;Z++){const ue=E[Z]=le?Gr(E[Z]):fn(E[Z]);m(null,ue,I,P,ie,G,ae,ne,le)}},A=(E,I,P,ie,G,ae,ne)=>{const le=I.el=E.el;let{patchFlag:X,dynamicChildren:Z,dirs:ue}=I;X|=E.patchFlag&16;const pe=E.props||Xe,ve=I.props||Xe;let te;if(P&&Pi(P,!1),(te=ve.onVnodeBeforeUpdate)&&nn(te,P,I,E),ue&&Jn(I,E,P,"beforeUpdate"),P&&Pi(P,!0),(pe.innerHTML&&ve.innerHTML==null||pe.textContent&&ve.textContent==null)&&u(le,""),Z?T(E.dynamicChildren,Z,le,P,ie,Kf(I,G),ae):ne||W(E,I,le,null,P,ie,Kf(I,G),ae,!1),X>0){if(X&16)$(le,pe,ve,P,G);else if(X&2&&pe.class!==ve.class&&o(le,"class",null,ve.class,G),X&4&&o(le,"style",pe.style,ve.style,G),X&8){const me=I.dynamicProps;for(let Se=0;Se<me.length;Se++){const Ee=me[Se],_t=pe[Ee],yt=ve[Ee];(yt!==_t||Ee==="value")&&o(le,Ee,_t,yt,G,P)}}X&1&&E.children!==I.children&&u(le,I.children)}else!ne&&Z==null&&$(le,pe,ve,P,G);((te=ve.onVnodeUpdated)||ue)&&St(()=>{te&&nn(te,P,I,E),ue&&Jn(I,E,P,"updated")},ie)},T=(E,I,P,ie,G,ae,ne)=>{for(let le=0;le<I.length;le++){const X=E[le],Z=I[le],ue=X.el&&(X.type===Je||!$n(X,Z)||X.shapeFlag&70)?f(X.el):P;m(X,Z,ue,null,ie,G,ae,ne,!0)}},$=(E,I,P,ie,G)=>{if(I!==P){if(I!==Xe)for(const ae in I)!Ko(ae)&&!(ae in P)&&o(E,ae,I[ae],null,G,ie);for(const ae in P){if(Ko(ae))continue;const ne=P[ae],le=I[ae];ne!==le&&ae!=="value"&&o(E,ae,le,ne,G,ie)}"value"in P&&o(E,"value",I.value,P.value,G)}},D=(E,I,P,ie,G,ae,ne,le,X)=>{const Z=I.el=E?E.el:a(""),ue=I.anchor=E?E.anchor:a("");let{patchFlag:pe,dynamicChildren:ve,slotScopeIds:te}=I;te&&(le=le?le.concat(te):te),E==null?(r(Z,P,ie),r(ue,P,ie),R(I.children||[],P,ue,G,ae,ne,le,X)):pe>0&&pe&64&&ve&&E.dynamicChildren?(T(E.dynamicChildren,ve,P,G,ae,ne,le),(I.key!=null||G&&I===G.subTree)&&Rm(E,I,!0)):W(E,I,P,ue,G,ae,ne,le,X)},H=(E,I,P,ie,G,ae,ne,le,X)=>{I.slotScopeIds=le,E==null?I.shapeFlag&512?G.ctx.activate(I,P,ie,ne,X):ce(I,P,ie,G,ae,ne,X):K(E,I,X)},ce=(E,I,P,ie,G,ae,ne)=>{const le=E.component=d6(E,ie,G);if(Vu(E)&&(le.ctx.renderer=ee),h6(le,!1,ne),le.asyncDep){if(G&&G.registerDep(le,F,ne),!E.el){const X=le.subTree=he(Et);g(null,X,I,P)}}else F(le,E,I,P,G,ae,ne)},K=(E,I,P)=>{const ie=I.component=E.component;if(e6(E,I,P))if(ie.asyncDep&&!ie.asyncResolved){V(ie,I,P);return}
vendor: 1,268 bytes, line 15
15else ie.next=I,ie.update();else I.el=E.el,ie.vnode=I},F=(E,I,P,ie,G,ae,ne)=>{const le=()=>{if(E.isMounted){let{next:pe,bu:ve,u:te,parent:me,vnode:Se}=E;{const Lt=I2(E);if(Lt){pe&&(pe.el=Se.el,V(E,pe,ne)),Lt.asyncDep.then(()=>{E.isUnmounted||le()});return}}let Ee=pe,_t;Pi(E,!1),pe?(pe.el=Se.el,V(E,pe,ne)):pe=Se,ve&&Yo(ve),(_t=pe.props&&pe.props.onVnodeBeforeUpdate)&&nn(_t,me,pe,Se),Pi(E,!0);const yt=Yf(E),ct=E.subTree;E.subTree=yt,m(ct,yt,f(ct.el),x(ct),E,G,ae),pe.el=yt.el,Ee===null&&qu(E,yt.el),te&&St(te,G),(_t=pe.props&&pe.props.onVnodeUpdated)&&St(()=>nn(_t,me,pe,Se),G)}else{let pe;const{el:ve,props:te}=I,{bm:me,m:Se,parent:Ee,root:_t,type:yt}=E,ct=ui(I);if(Pi(E,!1),me&&Yo(me),!ct&&(pe=te&&te.onVnodeBeforeMount)&&nn(pe,Ee,I),Pi(E,!0),ve&&Te){const Lt=()=>{E.subTree=Yf(E),Te(ve,E.subTree,E,G,null)};ct&&yt.__asyncHydrate?yt.__asyncHydrate(ve,E,Lt):Lt()}else{_t.ce&&_t.ce._injectChildStyle(yt);const Lt=E.subTree=Yf(E);m(null,Lt,P,ie,E,G,ae),I.el=Lt.el}if(Se&&St(Se,G),!ct&&(pe=te&&te.onVnodeMounted)){const Lt=I;St(()=>nn(pe,Ee,Lt),G)}(I.shapeFlag&256||Ee&&ui(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&E.a&&St(E.a,G),E.isMounted=!0,I=P=ie=null}};E.scope.on();const X=E.effect=new kb(le);E.scope.off();const Z=E.update=X.run.bind(X),ue=E.job=X.runIfDirty.bind(X);
vendor: 2,222 bytes, line 15
15ue.i=E,ue.id=E.uid,X.scheduler=()=>Tm(ue),Pi(E,!0),Z()},V=(E,I,P)=>{I.component=E;const ie=E.vnode.props;E.vnode=I,E.next=null,F8(E,I.props,ie,P),V8(E,I.children,P),Ri(),_1(E),Oi()},W=(E,I,P,ie,G,ae,ne,le,X=!1)=>{const Z=E&&E.children,ue=E?E.shapeFlag:0,pe=I.children,{patchFlag:ve,shapeFlag:te}=I;if(ve>0){if(ve&128){C(Z,pe,P,ie,G,ae,ne,le,X);return}else if(ve&256){de(Z,pe,P,ie,G,ae,ne,le,X);return}}te&8?(ue&16&&N(Z,G,ae),pe!==Z&&u(P,pe)):ue&16?te&16?C(Z,pe,P,ie,G,ae,ne,le,X):N(Z,G,ae,!0):(ue&8&&u(P,""),te&16&&R(pe,P,ie,G,ae,ne,le,X))},de=(E,I,P,ie,G,ae,ne,le,X)=>{E=E||Go,I=I||Go;const Z=E.length,ue=I.length,pe=Math.min(Z,ue);let ve;for(ve=0;ve<pe;ve++){const te=I[ve]=X?Gr(I[ve]):fn(I[ve]);m(E[ve],te,P,null,G,ae,ne,le,X)}Z>ue?N(E,G,ae,!0,!1,pe):R(I,P,ie,G,ae,ne,le,X,pe)},C=(E,I,P,ie,G,ae,ne,le,X)=>{let Z=0;const ue=I.length;let pe=E.length-1,ve=ue-1;for(;Z<=pe&&Z<=ve;){const te=E[Z],me=I[Z]=X?Gr(I[Z]):fn(I[Z]);if($n(te,me))m(te,me,P,null,G,ae,ne,le,X);else break;Z++}for(;Z<=pe&&Z<=ve;){const te=E[pe],me=I[ve]=X?Gr(I[ve]):fn(I[ve]);if($n(te,me))m(te,me,P,null,G,ae,ne,le,X);else break;pe--,ve--}if(Z>pe){if(Z<=ve){const te=ve+1,me=te<ue?I[te].el:ie;for(;Z<=ve;)m(null,I[Z]=X?Gr(I[Z]):fn(I[Z]),P,me,G,ae,ne,le,X),Z++}}else if(Z>ve)for(;Z<=pe;)B(E[Z],G,ae,!0),Z++;else{const te=Z,me=Z,Se=new Map;for(Z=me;Z<=ve;Z++){const ln=I[Z]=X?Gr(I[Z]):fn(I[Z]);ln.key!=null&&Se.set(ln.key,Z)}let Ee,_t=0;const yt=ve-me+1;let ct=!1,Lt=0;const Us=new Array(yt);for(Z=0;Z<yt;Z++)Us[Z]=0;for(Z=te;Z<=pe;Z++){const ln=E[Z];if(_t>=yt){B(ln,G,ae,!0);continue}let Gn;if(ln.key!=null)Gn=Se.get(ln.key);else for(Ee=me;Ee<=ve;Ee++)if(Us[Ee-me]===0&&$n(ln,I[Ee])){Gn=Ee;break}Gn===void 0?B(ln,G,ae,!0):(Us[Gn-me]=Z+1,Gn>=Lt?Lt=Gn:ct=!0,m(ln,I[Gn],P,null,G,ae,ne,le,X),_t++)}const f1=ct?q8(Us):Go;for(Ee=f1.length-1,Z=yt-1;Z>=0;Z--){const ln=me+Z,Gn=I[ln],d1=ln+1<ue?I[ln+1].el:ie;Us[Z]===0?m(null,Gn,P,d1,G,ae,ne,le,X):ct&&(Ee<0||Z!==f1[Ee]?O(Gn,P,d1,2):Ee--)}}},O=(E,I,P,ie,G=null)=>{const{el:ae,type:ne,transition:le,children:X,shapeFlag:Z}=E;if(Z&6){O(E.component.subTree,I,P,ie);return}if(Z&128){E.suspense.move(I,P,ie);return}if(Z&64){ne.move(E,I,P,ee);return}if(ne===Je){r(ae,I,P);for(let pe=0;pe<X.length;pe++)O(X[pe],I,P,ie);
vendor: 15,920 bytes, line 15
15r(E.anchor,I,P);return}if(ne===va){v(E,I,P);return}if(ie!==2&&Z&1&&le)if(ie===0)le.beforeEnter(ae),r(ae,I,P),St(()=>le.enter(ae),G);else{const{leave:pe,delayLeave:ve,afterLeave:te}=le,me=()=>r(ae,I,P),Se=()=>{pe(ae,()=>{me(),te&&te()})};ve?ve(ae,me,Se):Se()}else r(ae,I,P)},B=(E,I,P,ie=!1,G=!1)=>{const{type:ae,props:ne,ref:le,children:X,dynamicChildren:Z,shapeFlag:ue,patchFlag:pe,dirs:ve,cacheIndex:te}=E;if(pe===-2&&(G=!1),le!=null&&Ba(le,null,P,E,!0),te!=null&&(I.renderCache[te]=void 0),ue&256){I.ctx.deactivate(E);return}const me=ue&1&&ve,Se=!ui(E);let Ee;if(Se&&(Ee=ne&&ne.onVnodeBeforeUnmount)&&nn(Ee,I,E),ue&6)re(E.component,P,ie);else{if(ue&128){E.suspense.unmount(P,ie);return}me&&Jn(E,null,I,"beforeUnmount"),ue&64?E.type.remove(E,I,P,ee,ie):Z&&!Z.hasOnce&&(ae!==Je||pe>0&&pe&64)?N(Z,I,P,!1,!0):(ae===Je&&pe&384||!G&&ue&16)&&N(X,I,P),ie&&Q(E)}(Se&&(Ee=ne&&ne.onVnodeUnmounted)||me)&&St(()=>{Ee&&nn(Ee,I,E),me&&Jn(E,null,I,"unmounted")},P)},Q=E=>{const{type:I,el:P,anchor:ie,transition:G}=E;if(I===Je){Y(P,ie);return}if(I===va){b(E);return}const ae=()=>{i(P),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(E.shapeFlag&1&&G&&!G.persisted){const{leave:ne,delayLeave:le}=G,X=()=>ne(P,ae);le?le(E.el,ae,X):X()}else ae()},Y=(E,I)=>{let P;for(;E!==I;)P=d(E),i(E),E=P;i(I)},re=(E,I,P)=>{const{bum:ie,scope:G,job:ae,subTree:ne,um:le,m:X,a:Z}=E;Gl(X),Gl(Z),ie&&Yo(ie),G.stop(),ae&&(ae.flags|=8,B(ne,E,I,P)),le&&St(le,I),St(()=>{E.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},N=(E,I,P,ie=!1,G=!1,ae=0)=>{for(let ne=ae;ne<E.length;ne++)B(E[ne],I,P,ie,G)},x=E=>{if(E.shapeFlag&6)return x(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const I=d(E.anchor||E.el),P=I&&I[qb];return P?d(P):I};let j=!1;const J=(E,I,P)=>{E==null?I._vnode&&B(I._vnode,null,null,!0):m(I._vnode||null,E,I,null,null,null,P),I._vnode=E,j||(j=!0,_1(),Wl(),j=!1)},ee={p:m,um:B,m:O,r:Q,mt:ce,mc:R,pc:W,pbc:T,n:x,o:e};let ye,Te;return t&&([ye,Te]=t(ee)),{render:J,hydrate:ye,createApp:L8(J,ye)}}function Kf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function T2(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rm(e,t,n=!1){const r=e.children,i=t.children;if(we(r)&&we(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Gr(i[o]),a.el=s.el),!n&&a.patchFlag!==-2&&Rm(s,a)),a.type===no&&(a.el=s.el)}}function q8(e){const t=e.slice(),n=[0];let r,i,o,s,a;const c=e.length;for(r=0;r<c;r++){const l=e[r];if(l!==0){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,e[n[a]]<l?o=a+1:s=a;l<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}function I2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:I2(t)}function Gl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const z8=Symbol.for("v-scx"),G8=()=>Ve(z8);function yn(e,t){return Om(e,null,t)}function Oe(e,t,n){return Om(e,t,n)}function Om(e,t,n=Xe){const{immediate:r,deep:i,flush:o,once:s}=n,a=Dt({},n),c=t&&r||!t&&o!=="post";let l;if(Va){if(o==="sync"){const h=G8();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=sr,h.resume=sr,h.pause=sr,h}}const u=Ot;a.call=(h,p,m)=>Wn(h,u,p,m);let f=!1;o==="post"?a.scheduler=h=>{St(h,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Tm(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=l8(e,t,a);return Va&&(l?l.push(d):c&&d()),d}function Q8(e,t,n){const r=this.proxy,i=dt(e)?e.includes(".")?x2(r,e):()=>r[e]:e.bind(r,r);let o;ke(t)?o=t:(o=t.handler,n=t);const s=co(this),a=Om(i,o.bind(r),n);return s(),a}function x2(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const K8=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${In(t)}Modifiers`]||e[`${Ai(t)}Modifiers`];function Y8(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Xe;let i=n;const o=t.startsWith("update:"),s=o&&K8(r,t.slice(7));s&&(s.trim&&(i=n.map(u=>dt(u)?u.trim():u)),s.number&&(i=n.map(yb)));let a,c=r[a=jf(t)]||r[a=jf(In(t))];!c&&o&&(c=r[a=jf(Ai(t))]),c&&Wn(c,e,6,i);const l=r[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Wn(l,e,6,i)}}function A2(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!ke(e)){const c=l=>{const u=A2(l,t,!0);u&&(a=!0,Dt(s,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(et(e)&&r.set(e,null),null):(we(o)?o.forEach(c=>s[c]=null):Dt(s,o),et(e)&&r.set(e,s),s)}function Wu(e,t){return!e||!ac(t)?!1:(t=t.slice(2).replace(/Once$/,""),qe(e,t[0].toLowerCase()+t.slice(1))||qe(e,Ai(t))||qe(e,t))}function Yf(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:c,render:l,renderCache:u,props:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=e,y=ql(e);let g,_;try{if(n.shapeFlag&4){const b=i||r,w=b;g=fn(l.call(w,b,u,f,h,d,p)),_=a}else{const b=t;g=fn(b.length>1?b(f,{attrs:a,slots:s,emit:c}):b(f,null)),_=t.props?a:Z8(a)}}catch(b){_a.length=0,lc(b,e,1),g=he(Et)}let v=g;if(_&&m!==!1){const b=Object.keys(_),{shapeFlag:w}=v;b.length&&w&7&&(o&&b.some(pm)&&(_=X8(_,o)),v=xn(v,_,!1,!0))}return n.dirs&&(v=xn(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&as(v,n.transition),g=v,ql(y),g}function J8(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(ao(i)){if(i.type!==Et||i.children==="v-if"){if(n)return;n=i}}else return}return n}const Z8=e=>{let t;for(const n in e)(n==="class"||n==="style"||ac(n))&&((t||(t={}))[n]=e[n]);return t},X8=(e,t)=>{const n={};for(const r in e)(!pm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function e6(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:a,patchFlag:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?M1(r,s,l):!!s;if(c&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(s[d]!==r[d]&&!Wu(l,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?M1(r,s,l):!0:!!s;return!1}function M1(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Wu(n,o))return!0}return!1}function qu({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ql=e=>e.__isSuspense;let hh=0;const t6={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,s,a,c,l){if(e==null)n6(t,n,r,i,o,s,a,c,l);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}r6(e,t,n,r,i,s,a,c,l)}},hydrate:i6,normalize:o6},R2=t6;function ja(e,t){const n=e.props&&e.props[t];ke(n)&&n()}function n6(e,t,n,r,i,o,s,a,c){const{p:l,o:{createElement:u}}=c,f=u("div"),d=e.suspense=O2(e,i,r,t,f,n,o,s,a,c);l(null,d.pendingBranch=e.ssContent,f,null,r,d,o,s),d.deps>0?(ja(e,"onPending"),ja(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,o,s),Zo(d,e.ssFallback)):d.resolve(!1,!0)}function r6(e,t,n,r,i,o,s,a,{p:c,um:l,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:y,isHydrating:g}=f;if(m)f.pendingBranch=d,$n(d,m)?(c(m,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():y&&(g||(c(p,h,n,r,i,null,o,s,a),Zo(f,h)))):(f.pendingId=hh++,g?(f.isHydrating=!1,f.activeBranch=m):l(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),y?(c(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():(c(p,h,n,r,i,null,o,s,a),Zo(f,h))):p&&$n(d,p)?(c(p,d,n,r,i,f,o,s,a),f.resolve(!0)):(c(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0&&f.resolve()));else if(p&&$n(d,p))c(p,d,n,r,i,f,o,s,a),Zo(f,d);else if(ja(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=hh++,c(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0)f.resolve();else{const{timeout:_,pendingId:v}=f;_>0?setTimeout(()=>{f.pendingId===v&&f.fallback(h)},_):_===0&&f.fallback(h)}}function O2(e,t,n,r,i,o,s,a,c,l,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:m,remove:y}}=l;let g;const _=s6(e);_&&t&&t.pendingBranch&&(g=t.pendingId,t.deps++);const v=e.props?vb(e.props.timeout):void 0,b=o,w={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:hh++,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,k=!1){const{vnode:R,activeBranch:A,pendingBranch:T,pendingId:$,effects:D,parentComponent:H,container:ce}=w;let K=!1;w.isHydrating?w.isHydrating=!1:S||(K=A&&T.transition&&T.transition.mode==="out-in",K&&(A.transition.afterLeave=()=>{$===w.pendingId&&(d(T,ce,o===b?p(A):o,0),sh(D))}),A&&(m(A.el)===ce&&(o=p(A)),h(A,H,w,!0)),K||d(T,ce,o,0)),Zo(w,T),w.pendingBranch=null,w.isInFallback=!1;let F=w.parent,V=!1;for(;F;){if(F.pendingBranch){F.effects.push(...D),V=!0;break}F=F.parent}!V&&!K&&sh(D),w.effects=[],_&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,t.deps===0&&!k&&t.resolve()),ja(R,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:k,activeBranch:R,parentComponent:A,container:T,namespace:$}=w;ja(k,"onFallback");const D=p(R),H=()=>{w.isInFallback&&(f(null,S,T,D,A,null,$,a,c),Zo(w,S))},ce=S.transition&&S.transition.mode==="out-in";ce&&(R.transition.afterLeave=H),w.isInFallback=!0,h(R,A,null,!0),ce||H()},move(S,k,R){w.activeBranch&&d(w.activeBranch,S,k,R),w.container=S},next(){return w.activeBranch&&p(w.activeBranch)},registerDep(S,k,R){const A=!!w.pendingBranch;A&&w.deps++;const T=S.vnode.el;S.asyncDep.catch($=>{lc($,S,0)}).then($=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:D}=S;gh(S,$),T&&(D.el=T);const H=!T&&S.subTree.el;k(S,D,m(T||S.subTree.el),T?null:p(S.subTree),w,s,R),H&&y(H),qu(S,D.el),A&&--w.deps===0&&w.resolve()})},unmount(S,k){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,S,k),w.pendingBranch&&h(w.pendingBranch,n,S,k)}};return w}function i6(e,t,n,r,i,o,s,a,c){const l=t.suspense=O2(t,r,n,e.parentNode,document.createElement("div"),null,i,o,s,a,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,o,s);return l.deps===0&&l.resolve(!1,!0),u}function o6(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=D1(r?n.default:n),e.ssFallback=r?D1(n.fallback):he(Et)}function D1(e){let t;if(ke(e)){const n=cs&&e._c;n&&(e._d=!1,U()),e=e(),n&&(e._d=!0,t=rn,D2())}return we(e)&&(e=J8(e)),e=fn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function M2(e,t){t&&t.pendingBranch?we(e)?t.effects.push(...e):t.effects.push(e):sh(e)}function Zo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,qu(r,i))}function s6(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Je=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),va=Symbol.for("v-stc"),_a=[];let rn=null;function U(e=!1){_a.push(rn=e?null:[])}function D2(){_a.pop(),rn=_a[_a.length-1]||null}let cs=1;function N1(e,t=!1){cs+=e,e<0&&rn&&t&&(rn.hasOnce=!0)}function N2(e){return e.dynamicChildren=cs>0?rn||Go:null,D2(),cs>0&&rn&&rn.push(e),e}function fe(e,t,n,r,i,o){return N2(L(e,t,n,r,i,o,!0))}function Ce(e,t,n,r,i){return N2(he(e,t,n,r,i,!0))}function ao(e){return e?e.__v_isVNode===!0:!1}function $n(e,t){return e.type===t.type&&e.key===t.key}const P2=({key:e})=>e??null,ml=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?dt(e)||Le(e)||ke(e)?{i:It,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,o=e===Je?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&P2(t),ref:t&&ml(t),scopeId:Wb,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:It};return a?(Mm(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=dt(n)?8:16),cs>0&&!s&&rn&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&rn.push(c),c}const he=a6;function a6(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===c2)&&(e=Et),ao(e)){const a=xn(e,t,!0);return n&&Mm(a,n),cs>0&&!o&&rn&&(a.shapeFlag&6?rn[rn.indexOf(e)]=a:rn.push(a)),a.patchFlag=-2,a}if(y6(e)&&(e=e.__vccOpts),t){t=c6(t);let{class:a,style:c}=t;a&&!dt(a)&&(t.class=Ft(a)),et(c)&&(Em(c)&&!we(c)&&(c=Dt({},c)),t.style=ym(c))}const s=dt(e)?1:Ql(e)?128:zb(e)?64:et(e)?4:ke(e)?2:0;return L(e,t,n,r,i,s,o,!0)}function c6(e){return e?Em(e)||v2(e)?Dt({},e):e:null}function xn(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:c}=e,l=t?l6(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&P2(l),ref:t&&t.ref?n&&o?we(o)?o.concat(ml(t)):[o,ml(t)]:ml(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Je?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xn(e.ssContent),ssFallback:e.ssFallback&&xn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&as(u,c.clone(u)),u}function Ye(e=" ",t=0){return he(no,null,e,t)}function As(e,t){const n=he(va,null,e);return n.staticCount=t,n}function De(e="",t=!1){return t?(U(),Ce(Et,null,e)):he(Et,null,e)}function fn(e){return e==null||typeof e=="boolean"?he(Et):we(e)?he(Je,null,e.slice()):ao(e)?Gr(e):he(no,null,String(e))}function Gr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xn(e)}function Mm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(we(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Mm(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!v2(t)?t._ctx=It:i===3&&It&&(It.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ke(t)?(t={default:t,_ctx:It},n=32):(t=String(t),r&64?(n=16,t=[Ye(t)]):n=8);e.children=t,e.shapeFlag|=n}function l6(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Ft([t.class,r.class]));else if(i==="style")t.style=ym([t.style,r.style]);else if(ac(i)){const o=t[i],s=r[i];s&&o!==s&&!(we(o)&&o.includes(s))&&(t[i]=o?[].concat(o,s):s)}else i!==""&&(t[i]=r[i])}return t}function nn(e,t,n,r=null){Wn(e,t,7,[n,r])}const u6=m2();let f6=0;function d6(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||u6,o={uid:f6++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Sb(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:b2(r,i),emitsOptions:A2(r,i),emit:null,emitted:null,propsDefaults:Xe,inheritAttrs:r.inheritAttrs,ctx:Xe,data:Xe,props:Xe,attrs:Xe,slots:Xe,refs:Xe,setupState:Xe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Y8.bind(null,o),e.ce&&e.ce(o),o}let Ot=null;const _n=()=>Ot||It;let Kl,ph;{const e=$u(),t=(n,r)=>{let i;
vendor: 1,863 bytes, lines 15-18
15return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Kl=t("__VUE_INSTANCE_SETTERS__",n=>Ot=n),ph=t("__VUE_SSR_SETTERS__",n=>Va=n)}const co=e=>{const t=Ot;return Kl(e),e.scope.on(),()=>{e.scope.off(),Kl(t)}},mh=()=>{Ot&&Ot.scope.off(),Kl(null)};function L2(e){return e.vnode.shapeFlag&4}let Va=!1;function h6(e,t=!1,n=!1){t&&ph(t);const{props:r,children:i}=e.vnode,o=L2(e);$8(e,r,o,t),j8(e,i,n);const s=o?p6(e,t):void 0;return t&&ph(!1),s}function p6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,A8);const{setup:r}=n;if(r){Ri();const i=e.setupContext=r.length>1?g6(e):null,o=co(e),s=cc(r,e,0,[e.props,i]),a=Nu(s);if(Oi(),o(),(a||e.sp)&&!ui(e)&&e2(e),a){if(s.then(mh,mh),t)return s.then(c=>{gh(e,c)}).catch(c=>{lc(c,e,0)});e.asyncDep=s}else gh(e,s)}else $2(e)}function gh(e,t,n){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:et(t)&&(e.setupState=Fb(t)),$2(e)}function $2(e,t,n){const r=e.type;e.render||(e.render=r.render||sr);{const i=co(e);Ri();try{R8(e)}finally{Oi(),i()}}}const m6={get(e,t){return Ht(e,"get",""),e[t]}};function g6(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,m6),slots:e.slots,emit:e.emit,expose:t}}function zu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fb(Cm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ya)return ya[n](e)},has(t,n){return n in t||n in ya}})):e.proxy}function yh(e,t=!0){return ke(e)?e.displayName||e.name:e.name||t&&e.__name}function y6(e){return ke(e)&&"__vccOpts"in e}const se=(e,t)=>a8(e,t,Va);function He(e,t,n){const r=arguments.length;return r===2?et(t)&&!we(t)?ao(t)?he(e,null,[t]):he(e,t):he(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ao(n)&&(n=[n]),he(e,t,n))}const v6="3.5.13";/** 16* @vue/runtime-dom v3.5.13 17* (c) 2018-present Yuxi (Evan) You and Vue contributors 18* @license MIT
19**/let vh;const P1=typeof window<"u"&&window.trustedTypes;if(P1)try{vh=P1.createPolicy("vue",{createHTML:e=>e})}catch{}const F2=vh?e=>vh.createHTML(e):e=>e,_6="http://www.w3.org/2000/svg",b6="http://www.w3.org/1998/Math/MathML",vr=typeof document<"u"?document:null,L1=vr&&vr.createElement("template"),w6={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?vr.createElementNS(_6,e):t==="mathml"?vr.createElementNS(b6,e):n?vr.createElement(e,{is:n}):vr.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>vr.createTextNode(e),createComment:e=>vr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{L1.innerHTML=F2(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=L1.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vr="transition",zs="animation",Ua=Symbol("_vtc"),B2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},S6=Dt({},Kb,B2),k6=e=>(e.displayName="Transition",e.props=S6,e),E6=k6((e,{slots:t})=>He(g8,C6(e),t)),Li=(e,t=[])=>{we(e)?e.forEach(n=>n(...t)):e&&e(...t)},$1=e=>e?we(e)?e.some(t=>t.length>1):e.length>1:!1;function C6(e){const t={};for(const D in e)D in B2||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:l=s,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=T6(i),m=p&&p[0],y=p&&p[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:v,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=g,onAppear:k=_,onAppearCancelled:R=v}=t,A=(D,H,ce,K)=>{D._enterCancelled=K,$i(D,H?u:a),$i(D,H?l:s),ce&&ce()},T=(D,H)=>{D._isLeaving=!1,$i(D,f),$i(D,h),$i(D,d),H&&H()},$=D=>(H,ce)=>{const K=D?k:_,F=()=>A(H,D,ce);Li(K,[H,F]),F1(()=>{$i(H,D?c:o),mr(H,D?u:a),$1(K)||B1(H,r,m,F)})};return Dt(t,{onBeforeEnter(D){Li(g,[D]),mr(D,o),mr(D,s)},onBeforeAppear(D){Li(S,[D]),mr(D,c),mr(D,l)},onEnter:$(!1),onAppear:$(!0),onLeave(D,H){D._isLeaving=!0;const ce=()=>T(D,H);mr(D,f),D._enterCancelled?(mr(D,d),V1()):(V1(),mr(D,d)),F1(()=>{D._isLeaving&&($i(D,f),mr(D,h),$1(b)||B1(D,r,y,ce))}),Li(b,[D,ce])},onEnterCancelled(D){A(D,!1,void 0,!0),Li(v,[D])},onAppearCancelled(D){A(D,!0,void 0,!0),Li(R,[D])},onLeaveCancelled(D){T(D),Li(w,[D])}})}function T6(e){if(e==null)return null;if(et(e))return[Jf(e.enter),Jf(e.leave)];{const t=Jf(e);return[t,t]}}function Jf(e){return vb(e)}function mr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ua]||(e[Ua]=new Set)).add(t)}function $i(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ua];n&&(n.delete(t),n.size||(e[Ua]=void 0))}function F1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let I6=0;function B1(e,t,n,r){const i=e._endId=++I6,o=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:s,timeout:a,propCount:c}=x6(e,t);if(!s)return r();const l=s+"end";let u=0;const f=()=>{e.removeEventListener(l,d),o()},d=h=>{h.target===e&&++u>=c&&f()};setTimeout(()=>{u<c&&f()},a+1),e.addEventListener(l,d)}function x6(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),i=r(`${Vr}Delay`),o=r(`${Vr}Duration`),s=H1(i,o),a=r(`${zs}Delay`),c=r(`${zs}Duration`),l=H1(a,c);let u=null,f=0,d=0;t===Vr?s>0&&(u=Vr,f=s,d=o.length):t===zs?l>0&&(u=zs,f=l,d=c.length):(f=Math.max(s,l),u=f>0?s>l?Vr:zs:null,d=u?u===Vr?o.length:c.length:0);const h=u===Vr&&/\b(transform|all)(,|$)/.test(r(`${Vr}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function H1(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>j1(n)+j1(e[r])))}function j1(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function V1(){return document.body.offsetHeight}function A6(e,t,n){const r=e[Ua];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Yl=Symbol("_vod"),H2=Symbol("_vsh"),R6={beforeMount(e,{value:t},{transition:n}){e[Yl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Gs(e,t)}
vendor: 4,477 bytes, line 19
19,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Gs(e,!0),r.enter(e)):r.leave(e,()=>{Gs(e,!1)}):Gs(e,t))},beforeUnmount(e,{value:t}){Gs(e,t)}};function Gs(e,t){e.style.display=t?e[Yl]:"none",e[H2]=!t}const O6=Symbol(""),M6=/(^|;)\s*display\s*:/;function D6(e,t,n){const r=e.style,i=dt(n);let o=!1;if(n&&!i){if(t)if(dt(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&gl(r,a,"")}else for(const s in t)n[s]==null&&gl(r,s,"");for(const s in n)s==="display"&&(o=!0),gl(r,s,n[s])}else if(i){if(t!==n){const s=r[O6];s&&(n+=";"+s),r.cssText=n,o=M6.test(n)}}else t&&e.removeAttribute("style");Yl in e&&(e[Yl]=o?r.display:"",e[H2]&&(r.display="none"))}const U1=/\s*!important$/;function gl(e,t,n){if(we(n))n.forEach(r=>gl(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=N6(e,t);U1.test(n)?e.setProperty(Ai(r),n.replace(U1,""),"important"):e[r]=n}}const W1=["Webkit","Moz","ms"],Zf={};function N6(e,t){const n=Zf[t];if(n)return n;let r=In(t);if(r!=="filter"&&r in e)return Zf[t]=r;r=Lu(r);for(let i=0;i<W1.length;i++){const o=W1[i]+r;if(o in e)return Zf[t]=o}return t}const q1="http://www.w3.org/1999/xlink";function z1(e,t,n,r,i,o=OE(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(q1,t.slice(6,t.length)):e.setAttributeNS(q1,t,n):n==null||o&&!_b(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Vn(n)?String(n):n)}function G1(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?F2(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=_b(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function j2(e,t,n,r){e.addEventListener(t,n,r)}function P6(e,t,n,r){e.removeEventListener(t,n,r)}const Q1=Symbol("_vei");function L6(e,t,n,r,i=null){const o=e[Q1]||(e[Q1]={}),s=o[t];if(r&&s)s.value=r;else{const[a,c]=$6(t);if(r){const l=o[t]=H6(r,i);j2(e,a,l,c)}else s&&(P6(e,a,s,c),o[t]=void 0)}}const K1=/(?:Once|Passive|Capture)$/;function $6(e){let t;if(K1.test(e)){t={};let r;for(;r=e.match(K1);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ai(e.slice(2)),t]}let Xf=0;const F6=Promise.resolve(),B6=()=>Xf||(F6.then(()=>Xf=0),Xf=Date.now());function H6(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Wn(j6(r,n.value),t,5,[r])};return n.value=e,n.attached=B6(),n}function j6(e,t){if(we(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Y1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,V6=(e,t,n,r,i,o)=>{const s=i==="svg";t==="class"?A6(e,r,s):t==="style"?D6(e,n,r):ac(t)?pm(t)||L6(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):U6(e,t,r,s))?(G1(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&z1(e,t,r,s,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!dt(r))?G1(e,In(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),z1(e,t,r,s))};function U6(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Y1(t)&&ke(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Y1(t)&&dt(n)?!1:t in e}const J1=e=>{const t=e.props["onUpdate:modelValue"]||!1;return we(t)?n=>Yo(t,n):t},ed=Symbol("_assign"),V2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Du(t);j2(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?yb(Jl(s)):Jl(s));e[ed](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Tt(()=>{e._assigning=!1})}),e[ed]=J1(r)},mounted(e,{value:t}){Z1(e,t)},beforeUpdate(e,t,n){e[ed]=J1(n)},updated(e,{value:t}){e._assigning||Z1(e,t)}};function Z1(e,t){const n=e.multiple,r=we(t);if(!(n&&!r&&!Du(t))){for(let i=0,o=e.options.length;i<o;i++){const s=e.options[i],a=Jl(s);if(n)if(r){const c=typeof a;
19c==="string"||c==="number"?s.selected=t.some(l=>String(l)===String(a)):s.selected=DE(t,a)>-1}else s.selected=t.has(a);else if(Fu(Jl(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jl(e){return"_value"in e?e._value:e.value}const W6=["ctrl","shift","alt","meta"],q6={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>W6.some(n=>e[`${n}Key`]&&!t.includes(n))},z6=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let s=0;s<t.length;s++){const a=q6[t[s]];if(a&&a(i,t))return}return e(i,...o)})},G6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},iJ=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=Ai(i.key);if(t.some(s=>s===o||G6[s]===o))return e(i)})},U2=Dt({patchProp:V6},w6);let ba,X1=!1;function Q6(){return ba||(ba=U8(U2))}function K6(){return ba=X1?ba:W8(U2),X1=!0,ba}const Y6=(...e)=>{const t=Q6().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=q2(r);if(!i)return;const o=t._component;!ke(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,W2(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},J6=(...e)=>{const t=K6().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=q2(r);if(i)return n(i,!0,W2(i))},t};function W2(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function q2(e){return dt(e)?document.querySelector(e):e}const Z6=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,X6=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,eC=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function tC(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){nC(e);return}return t}function nC(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ls(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!eC.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Z6.test(e)||X6.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,tC)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const rC=/#/g,iC=/&/g,oC=/\//g,sC=/=/g,Dm=/\+/g,aC=/%5e/gi,cC=/%60/gi,lC=/%7c/gi,uC=/%20/gi;function fC(e){return encodeURI(""+e).replace(lC,"|")}function _h(e){return fC(typeof e=="string"?e:JSON.stringify(e)).replace(Dm,"%2B").replace(uC,"+").replace(rC,"%23").replace(iC,"%26").replace(cC,"`").replace(aC,"^").replace(oC,"%2F")}function td(e){return _h(e).replace(sC,"%3D")}function Zl(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function dC(e){return Zl(e.replace(Dm," "))}function hC(e){return Zl(e.replace(Dm," "))}function Nm(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=dC(r[1]);if(i==="__proto__"||i==="constructor")continue;const o=hC(r[2]||"");t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}return t}function pC(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${td(e)}=${_h(n)}`).join("&"):`${td(e)}=${_h(t)}`:td(e)}function mC(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
19pC(t,e[t])).filter(Boolean).join("&")}const gC=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,yC=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,vC=/^([/\\]\s*){2,}[^/\\]/,_C=/^[\s\0]*(blob|data|javascript|vbscript):$/i,bC=/\/$|\/\?|\/#/,wC=/^\.?\//;function $r(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?gC.test(e):yC.test(e)||(t.acceptRelative?vC.test(e):!1)}function SC(e){return!!e&&_C.test(e)}function bh(e="",t){return t?bC.test(e):e.endsWith("/")}function Gu(e="",t){if(!t)return(bh(e)?e.slice(0,-1):e)||"/";if(!bh(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");i>=0&&(n=e.slice(0,i),r=e.slice(i));const[o,...s]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(s.length>0?`?${s.join("?")}`:"")+r}function Xl(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(bh(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");if(i>=0&&(n=e.slice(0,i),r=e.slice(i),!n))return r;const[o,...s]=n.split("?");return o+"/"+(s.length>0?`?${s.join("?")}`:"")+r}function kC(e=""){return e.startsWith("/")}function ey(e=""){return kC(e)?e:"/"+e}function EC(e,t){if(G2(t)||$r(e))return e;const n=Gu(t);return e.startsWith(n)?e:Qu(n,e)}function ty(e,t){if(G2(t))return e;const n=Gu(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function z2(e,t){const n=Y2(e),r={...Nm(n.search),...t};return n.search=mC(r),IC(n)}function G2(e){return!e||e==="/"}function CC(e){return e&&e!=="/"}function Qu(e,...t){let n=e||"";for(const r of t.filter(i=>CC(i)))if(n){const i=r.replace(wC,"");n=Xl(n)+i}else n=r;return n}function Q2(...e){var s,a,c,l;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let i=0;for(const u of n)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&$r(r[0]))continue;r.pop(),i--;continue}if(f===1&&((s=r[r.length-1])!=null&&s.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),i++}}let o=r.join("/");return i>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(c=n[0])!=null&&c.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*i)+o,(l=n[n.length-1])!=null&&l.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function TC(e,t,n={}){return n.trailingSlash||(e=Xl(e),t=Xl(t)),n.leadingSlash||(e=ey(e),t=ey(t)),n.encoding||(e=Zl(e),t=Zl(t)),e===t}const K2=Symbol.for("ufo:protocolRelative");function Y2(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!$r(e,{acceptRelative:!0}))return ny(e);const[,r="",i,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:l,hash:u}=ny(a);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:s,pathname:c,search:l,hash:u,[K2]:!r}}function ny(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function IC(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[K2]?(e.protocol||"")+"//":"")+i+o+t+n+r}
19class xC extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function AC(e){var c,l,u,f,d;const t=((c=e.error)==null?void 0:c.message)||((l=e.error)==null?void 0:l.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",i=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${i}: ${o}${t?` ${t}`:""}`,a=new xC(s,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[p]}});return a}const RC=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ry(e="GET"){return RC.has(e.toUpperCase())}function OC(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const MC=new Set(["image/svg","application/xml","application/xhtml","application/html"]),DC=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function NC(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return DC.test(t)?"json":MC.has(t)||t.startsWith("text/")?"text":"blob"}function PC(e,t,n,r){const i=LC((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let o;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(o={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:o,params:o,headers:i}}function LC(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[i,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(i,o);return r}async function Bc(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const $C=new Set([408,409,425,429,500,502,503,504]),FC=new Set([101,204,205,304]);function J2(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let u;typeof a.options.retry=="number"?u=a.options.retry:u=ry(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):$C.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),o(a.request,{...a.options,retry:u-1})}}const l=AC(a);throw Error.captureStackTrace&&Error.captureStackTrace(l,o),l}const o=async function(c,l={}){const u={request:c,options:PC(c,l,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Bc(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=EC(u.request,u.options.baseURL)),u.options.query&&(u.request=z2(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&ry(u.options.method)&&(OC(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const h=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},u.options.timeout),u.options.signal=h.signal}try{u.response=await t(u.request,u.options)}catch(h){return u.error=h,u.options.onRequestError&&await Bc(u,u.options.onRequestError),await i(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!FC.has(u.response.status)&&u.options.method!=="HEAD"){const h=(u.options.parseResponse?"json":u.options.responseType)||NC(u.response.headers.get("content-type")||"");switch(h){case"json":{const p=await u.response.text(),m=u.options.parseResponse||ls;u.response._data=m(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[h]()}}return u.options.onResponse&&await Bc(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Bc(u,u.options.onResponseError),await i(u)):u.response},s=async function(c,l){return(await o(c,l))._data};return s.raw=o,s.native=(...a)=>t(...a),s.create=(a={},c={})=>J2({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),s}const eu=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),BC=eu.fetch?(...e)=>eu.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),HC=eu.Headers,jC=eu.AbortController,VC=J2({fetch:BC,Headers:HC,AbortController:jC}),UC=VC,WC=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},tu=WC().app,qC=()=>tu.baseURL,zC=()=>tu.buildAssetsDir,Pm=(...e)=>Q2(Z2(),zC(),...e),Z2=(...e)=>{const t=tu.cdnURL||tu.baseURL;return e.length?Q2(t,...e):t};globalThis.__buildAssetsURL=Pm,globalThis.__publicAssetsURL=Z2;globalThis.$fetch||(globalThis.$fetch=UC.create({baseURL:qC()}));function wh(e,t={},n){for(const r in e){const i=e[r],o=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?wh(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const GC={run:e=>e()},QC=()=>GC,X2=typeof console.createTask<"u"?console.createTask:QC;function KC(e,t){const n=t.shift(),r=X2(n);return e.reduce((i,o)=>i.then(()=>r.run(()=>o(...t))),Promise.resolve())}function YC(e,t){const n=t.shift(),r=X2(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}
19function nd(e,t){for(const n of[...e])n(t)}class JC{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const i=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let s=o.message;s||(s=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,i=(...o)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...o));return r=this.hook(t,i),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const i of r)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=wh(t),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(t){const n=wh(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(KC,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(YC,t,...n)}callHookWith(t,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&nd(this._before,i);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&i&&nd(this._after,i)}):(this._after&&i&&nd(this._after,i),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function ew(){return new JC}function ZC(e={}){let t,n=!1;const r=s=>{if(t&&t!==s)throw new Error("Context conflict")};let i;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?i=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(i){const s=i.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=o();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>o(),set:(s,a)=>{a||r(s),t=s,n=!0},unset:()=>{t=void 0,n=!1},call:(s,a)=>{r(s),t=s;try{return i?i.run(s,a):a()}finally{n||(t=void 0)}},async callAsync(s,a){t=s;const c=()=>{t=s},l=()=>t===s?c:void 0;Sh.add(l);try{const u=i?i.run(s,a):a();return n||(t=void 0),await u}finally{Sh.delete(l)}}}}function XC(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=ZC({...e,...r})),t[n]}}}const nu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},iy="__unctx__",eT=nu[iy]||(nu[iy]=XC()),tT=(e,t={})=>eT.get(e,t),oy="__unctx_async_handlers__",Sh=nu[oy]||(nu[oy]=new Set);function fi(e){const t=[];for(const i of Sh){const o=i();o&&t.push(o)}const n=()=>{for(const i of t)i()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(i=>{throw n(),i})),[r,n]}const kh=!1,nT=!1,rT={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},$o={value:null,errorValue:null,deep:!0},iT=null,oT="#__nuxt",tw="nuxt-app",sy=36e5,sT="vite:preloadError";function nw(e=tw){return tT(e,{asyncContext:!1})}const aT="__nuxt_plugin";function cT(e){var i;let t=0;const n={_id:e.id||tw||"nuxt-app",_scope:vm(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return n.vueApp.version}},payload:kr({...((i=e.ssrContext)==null?void 0:i.payload)||{},data:kr({}),state:Ut({}),once:new Set,_errors:kr({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!hr()?n._scope.run(()=>ay(n,o)):ay(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:kr({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const s in o)switch(s){case"data":case"state":case"_errors":Object.assign(n.payload[s],o[s]);break;default:n.payload[s]=o[s]}}n.hooks=ew(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const a="$"+o;Hc(n,a,s),Hc(n.vueApp.config.globalProperties,a,s)},Hc(n.vueApp,"$nuxt",n),Hc(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(sT,s=>{n.callHook("app:chunkError",{error:s.payload}),(n.isHydrating||s.payload.message.includes("Unable to preload CSS"))&&s.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=$e);const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function lT(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function uT(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function fT(e,t){const n=[],r=[],i=[],o=[];let s=0;async function a(c){var u;
19const l=((u=c.dependsOn)==null?void 0:u.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(l.length>0)r.push([new Set(l),c]);else{const f=uT(e,c).then(async()=>{c._name&&(n.push(c._name),await Promise.all(r.map(async([d,h])=>{d.has(c._name)&&(d.delete(c._name),d.size===0&&(s++,await a(h)))})))});c.parallel?i.push(f.catch(d=>o.push(d))):await f}}for(const c of t)lT(e,c);for(const c of t)await a(c);if(await Promise.all(i),s)for(let c=0;c<s;c++)await Promise.all(i);if(o.length)throw o[0]}function wt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[aT]:!0,_name:t})}const dT=wt;function ay(e,t,n){const r=()=>t();return nw(e._id).set(e),e.vueApp.runWithContext(r)}function rw(e){var n;let t;return xs()&&(t=(n=_n())==null?void 0:n.appContext.app.$nuxt),t||(t=nw(e).tryUse()),t||null}function $e(e){const t=rw(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function en(e){return $e().$config}function Hc(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const Ar={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function hT(e={}){const t={options:e,rootNode:iw(),staticRoutesMap:{}},n=r=>e.strictTrailingSlash?r:r.replace(/\/$/,"")||"/";if(e.routes)for(const r in e.routes)cy(t,n(r),e.routes[r]);return{ctx:t,lookup:r=>pT(t,n(r)),insert:(r,i)=>cy(t,n(r),i),remove:r=>mT(t,n(r))}}function pT(e,t){const n=e.staticRoutesMap[t];if(n)return n.data;const r=t.split("/"),i={};let o=!1,s=null,a=e.rootNode,c=null;for(let l=0;l<r.length;l++){const u=r[l];a.wildcardChildNode!==null&&(s=a.wildcardChildNode,c=r.slice(l).join("/"));const f=a.children.get(u);if(f===void 0){if(a&&a.placeholderChildren.length>1){const d=r.length-l;a=a.placeholderChildren.find(h=>h.maxDepth===d)||null}else a=a.placeholderChildren[0]||null;if(!a)break;a.paramName&&(i[a.paramName]=u),o=!0}else a=f}return(a===null||a.data===null)&&s!==null&&(a=s,i[a.paramName||"_"]=c,o=!0),a?o?{...a.data,params:o?i:void 0}:a.data:null}function cy(e,t,n){let r=!0;const i=t.split("/");let o=e.rootNode,s=0;const a=[o];for(const c of i){let l;if(l=o.children.get(c))o=l;else{const u=gT(c);l=iw({type:u,parent:o}),o.children.set(c,l),u===Ar.PLACEHOLDER?(l.paramName=c==="*"?`_${s++}`:c.slice(1),o.placeholderChildren.push(l),r=!1):u===Ar.WILDCARD&&(o.wildcardChildNode=l,l.paramName=c.slice(3)||"_",r=!1),a.push(l),o=l}}for(const[c,l]of a.entries())l.maxDepth=Math.max(a.length-c,l.maxDepth||0);return o.data=n,r===!0&&(e.staticRoutesMap[t]=o),o}function mT(e,t){let n=!1;const r=t.split("/");let i=e.rootNode;for(const o of r)if(i=i.children.get(o),!i)return n;if(i.data){const o=r.at(-1)||"";i.data=null,Object.keys(i.children).length===0&&i.parent&&(i.parent.children.delete(o),i.parent.wildcardChildNode=null,i.parent.placeholderChildren=[]),n=!0}return n}function iw(e={}){return{type:e.type||Ar.NORMAL,maxDepth:0,parent:e.parent||null,children:new Map,data:e.data||null,paramName:e.paramName||null,wildcardChildNode:null,placeholderChildren:[]}}function gT(e){return e.startsWith("**")?Ar.WILDCARD:e[0]===":"||e==="*"?Ar.PLACEHOLDER:Ar.NORMAL}function yT(e){const t=cw("",e.ctx.rootNode);return ow(t,e.ctx.options.strictTrailingSlash)}function ow(e,t){return{ctx:{table:e},matchAll:n=>aw(n,e,t)}}function vT(){return{static:new Map,wildcard:new Map,dynamic:new Map}}function sw(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,i])=>[r,sw(i)])):new Map(Object.entries(e[n]));return t}function _T(e){return ow(sw(e))}function aw(e,t,n){n!==!0&&e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,s]of ly(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(s);for(const[o,s]of ly(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...aw(a,s))}const i=t.static.get(e);return i&&r.push(i),r.filter(Boolean)}function ly(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function cw(e,t){const n=vT();function r(i,o){if(i){if(o.type===Ar.NORMAL&&!(i.includes("*")||i.includes(":")))o.data&&n.static.set(i,o.data);else if(o.type===Ar.WILDCARD)n.wildcard.set(i.replace("/**",""),o.data);else if(o.type===Ar.PLACEHOLDER){const s=cw("",o);o.data&&s.static.set("/",o.data),n.dynamic.set(i.replace(/\/\*|\/:\w+/,""),s);return}}for(const[s,a]of o.children.entries())r(`${i}/${s}`.replace("//","/"),a)}return r(e,t),n}function rd(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Eh(e,t,n=".",r){if(!rd(t))return Eh(e,{},n,r);const i=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const s=e[o];s!=null&&(r&&r(i,o,s,n)||(Array.isArray(s)&&Array.isArray(i[o])?i[o]=[...s,...i[o]]:rd(s)&&rd(i[o])?i[o]=Eh(s,i[o],(n?`${n}.`:"")+o.toString(),r):i[o]=s))}return i}function bT(e){return(...t)=>t.reduce((n,r)=>Eh(n,r,"",e),{})}const lw=bT();function wT(e,t){try{return t in e}catch{return!1}}
19class Ch extends Error{constructor(n,r={}){super(n,r);Wt(this,"statusCode",500);Wt(this,"fatal",!1);Wt(this,"unhandled",!1);Wt(this,"statusMessage");Wt(this,"data");Wt(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:Th(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=uw(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}Wt(Ch,"__h3_error__",!0);function yl(e){if(typeof e=="string")return new Ch(e);if(ST(e))return e;const t=new Ch(e.message??e.statusMessage??"",{cause:e.cause||e});if(wT(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Th(e.statusCode,t.statusCode):e.status&&(t.statusCode=Th(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;uw(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function ST(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const kT=/[^\u0009\u0020-\u007E]/g;function uw(e=""){return e.replace(kT,"")}function Th(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ET=Symbol("layout-meta"),uc=Symbol("route"),Nt=()=>{var e;return(e=$e())==null?void 0:e.$router},Fr=()=>xs()?Ve(uc,$e()._route):$e()._route;const CT=()=>{try{if($e()._processingMiddleware)return!0}catch{return!1}return!1},TT=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Ih(e):Nt().resolve(e).href;if(t!=null&&t.open){const{target:c="_blank",windowFeatures:l={}}=t.open,u=Object.entries(l).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,c,u),Promise.resolve()}const r=$r(n,{acceptRelative:!0}),i=(t==null?void 0:t.external)||r;if(i){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:c}=new URL(n,window.location.href);if(c&&SC(c))throw new Error(`Cannot navigate to a URL with '${c}' protocol.`)}const o=CT();if(!i&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:c,search:l,hash:u}=Y2(e);return{path:c,...l&&{query:Nm(l)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const s=Nt(),a=$e();return i?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)};function Ih(e){return z2(e.path||"",e.query||{})+(e.hash||"")}const fw="__nuxt_error",fc=()=>ju($e().payload,"error"),Qr=e=>{const t=dc(e);try{const n=$e(),r=fc();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},IT=async(e={})=>
19{const t=$e(),n=fc();t.callHook("app:error:cleared",e),e.redirect&&await Nt().replace(e.redirect),n.value=iT},dw=e=>!!e&&typeof e=="object"&&fw in e,dc=e=>{const t=yl(e);return Object.defineProperty(t,fw,{value:!0,configurable:!1,writable:!1}),t};/*! 20 * pinia v3.0.3 21 * (c) 2025 Eduardo San Martin Morote 22 * @license MIT 23 */let hw;const hc=e=>hw=e,pw=Symbol();function xh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var wa;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(wa||(wa={}));function xT(){const e=vm(!0),t=e.run(()=>oe({}));let n=[],r=[];const i=Cm({install(o){hc(i),i._a=o,o.provide(pw,i),o.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const mw=()=>{};function uy(e,t,n,r=mw){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&hr()&&Un(i),i}function Co(e,...t){e.slice().forEach(n=>{n(...t)})}const AT=e=>e(),fy=Symbol(),id=Symbol();function Ah(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];xh(i)&&xh(r)&&e.hasOwnProperty(n)&&!Le(r)&&!xr(r)?e[n]=Ah(i,r):e[n]=r}return e}const RT=Symbol();function OT(e){return!xh(e)||!Object.prototype.hasOwnProperty.call(e,RT)}const{assign:Ur}=Object;function MT(e){return!!(Le(e)&&e.effect)}function DT(e,t,n,r){const{state:i,actions:o,getters:s}=t,a=n.state.value[e];let c;function l(){a||(n.state.value[e]=i?i():{});const u=r8(n.state.value[e]);return Ur(u,o,Object.keys(s||{}).reduce((f,d)=>(f[d]=Cm(se(()=>{hc(n);const h=n._s.get(e);return s[d].call(h,h)})),f),{}))}return c=gw(e,l,t,n,r,!0),c}function gw(e,t,n={},r,i,o){let s;const a=Ur({actions:{}},n),c={deep:!0};let l,u,f=[],d=[],h;const p=r.state.value[e];!o&&!p&&(r.state.value[e]={}),oe({});let m;function y(R){let A;l=u=!1,typeof R=="function"?(R(r.state.value[e]),A={type:wa.patchFunction,storeId:e,events:h}):(Ah(r.state.value[e],R),A={type:wa.patchObject,payload:R,storeId:e,events:h});const T=m=Symbol();Tt().then(()=>{m===T&&(l=!0)}),u=!0,Co(f,A,r.state.value[e])}const g=o?function(){const{state:A}=n,T=A?A():{};this.$patch($=>{Ur($,T)})}:mw;function _(){s.stop(),f=[],d=[],r._s.delete(e)}const v=(R,A="")=>{if(fy in R)return R[id]=A,R;const T=function(){hc(r);const $=Array.from(arguments),D=[],H=[];function ce(V){D.push(V)}function K(V){H.push(V)}Co(d,{args:$,name:T[id],store:w,after:ce,onError:K});let F;try{F=R.apply(this&&this.$id===e?this:w,$)}catch(V){throw Co(H,V),V}return F instanceof Promise?F.then(V=>(Co(D,V),V)).catch(V=>(Co(H,V),Promise.reject(V))):(Co(D,F),F)};return T[fy]=!0,T[id]=A,T},b={_p:r,$id:e,$onAction:uy.bind(null,d),$patch:y,$reset:g,$subscribe(R,A={}){const T=uy(f,R,A.detached,()=>$()),$=s.run(()=>Oe(()=>r.state.value[e],D=>{(A.flush==="sync"?u:l)&&R({storeId:e,type:wa.direct,events:h},D)},Ur({},c,A)));return T},$dispose:_},w=Ut(b);r._s.set(e,w);const k=(r._a&&r._a.runWithContext||AT)(()=>r._e.run(()=>(s=vm()).run(()=>t({action:v}))));for(const R in k){const A=k[R];if(Le(A)&&!MT(A)||xr(A))o||(p&&OT(A)&&(Le(A)?A.value=p[R]:Ah(A,p[R])),r.state.value[e][R]=A);else if(typeof A=="function"){const T=v(A,R);k[R]=T,a.actions[R]=A}}return Ur(w,k),Ur(Fe(w),k),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:R=>{y(A=>{Ur(A,R)})}}),r._p.forEach(R=>{Ur(w,s.run(()=>R({store:w,app:r._a,pinia:r,options:a})))}),p&&o&&n.hydrate&&n.hydrate(w.$state,p),l=!0,u=!0,w}/*! #__NO_SIDE_EFFECTS__ */function yw(e,t,n){let r;const i=typeof t=="function";r=i?n:t;function o(s,a){const c=xs();return s=s||(c?Ve(pw,null):null),s&&hc(s),s=hw,s._s.has(e)||(i?gw(e,t,r,s):DT(e,r,s)),s._s.get(e)}return o.$id=e,o}function dy(e){const t=PT(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let i=0;i<n.byteLength;i++)r.setUint8(i,t.charCodeAt(i));return n}const NT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function PT(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let i=0;i<e.length;i++)n<<=6,n|=NT.indexOf(e[i]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const LT=-1,$T=-2,FT=-3,BT=-4,HT=-5,jT=-6;function VT(e,t){return UT(JSON.parse(e),t)}function UT(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function i(o,s=!1){if(o===LT)return;if(o===FT)return NaN;if(o===BT)return 1/0;if(o===HT)return-1/0;if(o===jT)return-0;if(s)throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const c=a[0],l=t==null?void 0:t[c];if(l)return r[o]=l(i(a[1]));switch(c){case"Date":r[o]=new Date(a[1]);break;case"Set":const u=new Set;r[o]=u;for(let h=1;h<a.length;h+=1)u.add(i(a[h]));break;case"Map":const f=new Map;r[o]=f;for(let h=1;h<a.length;h+=2)f.set(i(a[h]),i(a[h+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const d=Object.create(null);r[o]=d;for(let h=1;h<a.length;h+=2)d[a[h]]=i(a[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[c],p=a[1],m=dy(p),y=new h(m);r[o]=y;break}case"ArrayBuffer":{const h=a[1],p=dy(h);r[o]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(a.length);r[o]=c;for(let l=0;l<a.length;l+=1){const u=a[l];u!==$T&&(c[l]=i(u))}}else{const c={};r[o]=c;for(const l in a){const u=a[l];c[l]=i(u)}}return r[o]}return i(0)}const WT=new Set(["link","style","script","noscript"]),qT=new Set(["title","titleTemplate","script","style","noscript"]),hy=new Set(["base","meta","link","style","script","noscript"]),zT=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),GT=ne
23w Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),QT=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),KT=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Lm=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Wa={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},YT={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},vw={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${Er(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?Er(e):`${Er(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Er(e)} ${t}`}},charset:{}};function Er(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:Wa.META.has(t.slice(0,n))||Wa.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function _w(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function Rh(e){return Array.isArray(e)?e.map(Rh):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[Er(t),Rh(n)]))}function bw(e,t={}){const{entrySeparator:n="",keyValueSeparator:r="",wrapValue:i,resolve:o}=t;return Object.entries(e).map(([s,a])=>{if(o){const l=o({key:s,value:a});if(l!==void 0)return l}const c=typeof a=="object"?bw(a,t):typeof a=="number"?a.toString():typeof a=="string"&&i?`${i}${a.replace(new RegExp(i,"g"),`\\${i}`)}${i}`:a;return`${s}${r}${c}`}).join(n)}function py(e,t){const n=_w(t),r=Er(e),i=ww(r);if(!Lm.has(r))return[{[i]:r,...n}];const o=Object.fromEntries(Object.entries(n).map(([s,a])=>[`${e}${s==="url"?"":`${s[0].toUpperCase()}${s.slice(1)}`}`,a]));return ru(o||{}).sort((s,a)=>{var c,l;return(((c=s[i])==null?void 0:c.length)||0)-(((l=a[i])==null?void 0:l.length)||0)})}function ww(e){var r;if(((r=vw[e])==null?void 0:r.metaKey)==="http-equiv"||Wa.HTTP_EQUIV.has(e))return"http-equiv";const t=Er(e),n=t.indexOf(":");return n===-1?"name":Wa.OG.has(t.slice(0,n))?"property":"name"}function JT(e){return YT[e]||Er(e)}function ZT(e,t){var n;return t==="refresh"?`${e.seconds};url=${e.url}`:bw(Rh(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:r,key:i})=>r===null?"":typeof r=="boolean"?i:void 0,...(n=vw[t])==null?void 0:n.unpack})}function ru(e){const t=[],n={};for(const[i,o]of Object.entries(e)){if(Array.isArray(o)){if(i==="themeColor"){o.forEach(s=>{typeof s=="object"&&s!==null&&t.push({name:"theme-color",...s})});continue}for(const s of o)if(typeof s=="object"&&s!==null){const a=[],c=[];for(const[l,u]of Object.entries(s)){const f=`${i}${l==="url"?"":`:${l}`}`,d=ru({[f]:u});(l==="url"?a:c).push(...d)}t.push(...a,...c)}else t.push(...typeof s=="string"?ru({[i]:s}):py(i,s));continue}if(typeof o=="object"&&o)if(Wa.MEDIA.has(i)){const s=i.startsWith("twitter")?"twitter":"og",a=i.replace(/^(og|twitter)/,"").toLowerCase(),c=s==="twitter"?"name":"property";o.url&&t.push({[c]:`${s}:${a}`,content:o.url}),o.secureUrl&&t.push({[c]:`${s}:${a}:secure_url`,content:o.secureUrl});for(const[l,u]of Object.entries(o))l!=="url"&&l!=="secureUrl"&&t.push({[c]:`${s}:${a}:${l}`,content:u})}else Lm.has(Er(i))?t.push(...py(i,o)):n[i]=_w(o);else n[i]=o}const r=Object.entries(n).map(([i,o])=>
23{if(i==="charset")return{charset:o===null?"_null":o};const s=ww(i),a=JT(i),c=o===null?"_null":typeof o=="object"?ZT(o,i):typeof o=="number"?o.toString():o;return s==="http-equiv"?{"http-equiv":a,content:c}:{[s]:a,content:c}});return[...t,...r].map(i=>"content"in i&&i.content==="_null"?{...i,content:null}:i)}const XT={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(ru(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...t)}}},e9=["name","property","http-equiv"];function Sw(e){const t=e.split(":")[1];return Lm.has(t)}function Oh(e){const{props:t,tag:n}=e;if(GT.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of e9)if(t[r]!==void 0)return`${n}:${t[r]}`}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(qT.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function my(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,i])=>`${r}:${String(i)}`).join(",")}`}function iu(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let i;if(t&&(i=t(n,e)),Array.isArray(i))return i.map(o=>iu(o,t));if((i==null?void 0:i.constructor)===Object){const o={};for(const s of Object.keys(i))o[s]=iu(i[s],t,s);return o}return i}function t9(e,t){const n=e==="style"?new Map:new Set;function r(i){const o=i.trim();if(o)if(e==="style"){const[s,...a]=o.split(":").map(c=>c.trim());s&&a.length&&n.set(s,a.join(":"))}else o.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(i=>r(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>{o&&o!=="false"&&(e==="style"?n.set(i.trim(),o):r(i))}),n}function kw(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=t9(n,r);return}if(QT.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let s=t.type;if(t.type||(s="application/json"),!(s!=null&&s.endsWith("json"))&&s!=="speculationrules")return;t.type=s,e.props.type=s,e[n]=JSON.stringify(r)}else e[n]=r;return}const i=String(r),o=n.startsWith("data-");i==="true"||i===""?e.props[n]=o?i:!0:!r&&o&&i==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e}function n9(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=kw({tag:e,props:{}},n);return r.key&&WT.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(i=>({...r,props:{...r.props,content:i}})):r}function r9(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(i,o)=>{for(let s=0;s<t.length;s++)o=t[s](i,o);return o};e=n(void 0,e);const r=[];return e=iu(e,n),Object.entries(e||{}).forEach(([i,o])=>{if(o!==void 0)for(const s of Array.isArray(o)?o:[o])r.push(n9(i,s))}),r.flat()}const Mh=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,gy={base:-10,title:10},i9={critical:-8,high:-1,low:2},yy={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},o9=/@import/,Qs=e=>e===""||e===!0;function s9(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=i9[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:yy;if(t.tag in gy)n=gy[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(n=yy.meta[s])}else t.tag==="link"&&t.props.rel?n=i.link[t.props.rel]:t.tag==="script"?Qs(t.props.async)?n=i.script.async:t.props.src&&!Qs(t.props.defer)&&!Qs(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=i.script.sync:Qs(t.props.defer)&&t.props.src&&!Qs(t.props.async)&&(n=i.script.defer):t.tag==="style"&&(n=t.innerHTML&&o9.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function vy(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function a9(e={}){var a;const t=ew();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,i=new Map,o=[],s={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:c=>vy(s,c),push(c,l){const u={...l||{}};delete u.head;const f=u._index??s._entryCount++,d={_i:f,input:c,options:u},h={_poll(p=!1){s.dirty=!0,!p&&o.push(f),t.callHook("entries:updated",s)},dispose(){r.delete(f)&&h._poll(!0)},patch(p){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(d.input=p,r.set(f,d),h._poll())}};return h.patch(c),h},async resolveTags(){var h;const c={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",c);o.length;){const p=o.shift(),m=r.get(p);if(m){const y={tags:r9(m.input,e.propResolvers||[]).map(g=>Object.assign(g,m.options)),entry:m};await t.callHook("entries:normalize",y),m._tags=y.tags.map((g,_)=>(g._w=s9(s,g),g._p=(m._i<<10)+_,g._d=Oh(g),g))}}let l=!1;c.entries.flatMap(p=>(p._tags||[]).map(m=>({...m,props:{...m.props}}))).sort(Mh).reduce((p,m)=>{const y=String(m._d||m._p);if(!p.has(y))return p.set(y,m);const g=p.get(y);if(((m==null?void 0:m.tagDuplicateStrategy)||(KT.has(m.tag)?"merge":null)||(m.key&&m.key===g.key?"merge":null))==="merge"){const v={...g.props};
23Object.entries(m.props).forEach(([b,w])=>v[b]=b==="style"?new Map([...g.props.style||new Map,...w]):b==="class"?new Set([...g.props.class||new Set,...w]):w),p.set(y,{...m,props:v})}else m._p>>10===g._p>>10&&Sw(m._d)?(p.set(y,Object.assign([...Array.isArray(g)?g:[g],m],m)),l=!0):(m._w===g._w?m._p>g._p:(m==null?void 0:m._w)<(g==null?void 0:g._w))&&p.set(y,m);return p},c.tagMap);const u=c.tagMap.get("title"),f=c.tagMap.get("titleTemplate");if(s._title=u==null?void 0:u.textContent,f){const p=f==null?void 0:f.textContent;if(s._titleTemplate=p,p){let m=typeof p=="function"?p(u==null?void 0:u.textContent):p;typeof m=="string"&&!s.plugins.has("template-params")&&(m=m.replace("%s",(u==null?void 0:u.textContent)||"")),u?m===null?c.tagMap.delete("title"):c.tagMap.set("title",{...u,textContent:m}):(f.tag="title",f.textContent=m)}}c.tags=Array.from(c.tagMap.values()),l&&(c.tags=c.tags.flat().sort(Mh)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const d=[];for(const p of c.tags){const{innerHTML:m,tag:y,props:g}=p;if(zT.has(y)&&!(Object.keys(g).length===0&&!p.innerHTML&&!p.textContent)&&!(y==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(y==="script"&&m){if((h=g.type)!=null&&h.endsWith("json")){const _=typeof m=="string"?m:JSON.stringify(m);p.innerHTML=_.replace(/</g,"\\u003C")}else typeof m=="string"&&(p.innerHTML=m.replace(new RegExp(`</${y}`,"g"),`<\\/${y}`));p._d=Oh(p)}d.push(p)}}return d}};return((e==null?void 0:e.plugins)||[]).forEach(c=>vy(s,c)),s.hooks.callHook("init",s),(a=e.init)==null||a.forEach(c=>c&&s.push(c)),s}const Kr="%separator",c9=new RegExp(`${Kr}(?:\\s*${Kr})*`,"g");function l9(e,t,n=!1){var i;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(i=e[t.substring(0,o)])==null?void 0:i[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function jc(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let i=e;try{i=decodeURI(e)}catch{}const o=i.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const s=e.includes(Kr);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===Kr||!o.includes(a))return a;const c=l9(t,a.slice(1),r);return c!==void 0?c:a}).trim(),s&&(e.endsWith(Kr)&&(e=e.slice(0,-Kr.length)),e.startsWith(Kr)&&(e=e.slice(Kr.length)),e=e.replace(c9,n||"").trim()),e}const _y=e=>e.includes(":key")?e:e.split(":").join(":key:"),u9={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const i=String(r);if(i.startsWith("before:")){const o=_y(i.slice(7)),s=e.tagMap.get(o);s&&(typeof s.tagPriority=="number"&&(n.tagPriority=s.tagPriority),n._p=s._p-1,t=!0)}else if(i.startsWith("after:")){const o=_y(i.slice(6)),s=e.tagMap.get(o);s&&(typeof s.tagPriority=="number"&&(n.tagPriority=s.tagPriority),n._p=s._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Mh))}}},f9={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function Dh(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>Dh(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await Dh(e[r]);return n}return e}const d9={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(Dh(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},h9={meta:"content",link:"href",htmlAttrs:"lang"},p9=["innerHTML","textContent"],m9=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,i,o;const n=((i=(r=t.tags.filter(s=>s.tag==="templateParams"&&s.mode==="server"))==null?void 0:r[0])==null?void 0:i.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((o=e._ssrPayload)==null?void 0:o.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var o;const r=((o=t.get("templateParams"))==null?void 0:o.props)||{},i=r.separator||"|";delete r.separator,r.pageTitle=jc(r.pageTitle||e._title||"",r,i);for(const s of n){if(s.processTemplateParams===!1)continue;const a=h9[s.tag];if(a&&typeof s.props[a]=="string")s.props[a]=jc(s.props[a],r,i);else if(s.processTemplateParams||s.tag==="titleTemplate"||s.tag==="title")for(const c of p9)typeof s[c]=="string"&&(s[c]=jc(s[c],r,i,s.tag==="script"&&s.props.type.endsWith("json")))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=jc(n.textContent,e._templateParams,e._separator))}}}),g9=(e,t)=>
23Le(t)?e8(t):t,$m="usehead";function y9(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide($m,e)}}.install}function Ew(){if(xs()){const e=Ve($m);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Cw(e,t={}){const n=t.head||Ew();return n.ssr?n.push(e||{},t):v9(n,e,t)}function v9(e,t,n={}){const r=oe(!1);let i;return yn(()=>{const s=r.value?{}:iu(t,g9);i?i.patch(s):i=e.push(s,n)}),_n()&&(Mi(()=>{i.dispose()}),n2(()=>{r.value=!0}),t2(()=>{r.value=!1})),i}function _9(e={},t={}){(t.head||Ew()).use(XT);const{title:r,titleTemplate:i,...o}=e;return Cw({title:r,titleTemplate:i,_flatMeta:o},t)}function Tw(e){var n;const t=e||rw();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(xs())return Ve($m)}))}function b9(e,t={}){const n=Tw(t.nuxt);if(n)return Cw(e,{head:n,...t})}function w9(e,t={}){const n=Tw(t.nuxt);if(n)return _9(e,{head:n,...t})}const S9="modulepreload",k9=function(e,t){return new URL(e,t).href},by={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=k9(l,r),l in by)return;by[l]=!0;const u=l.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const m=s[p];if(m.href===l&&(!u||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":S9,u||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),u)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let vl,_l;function E9(){return vl=$fetch(Pm(`builds/meta/${en().app.buildId}.json`),{responseType:"json"}),vl.then(e=>{_l=_T(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),vl}function Ku(){return vl||E9()}async function Fm(e){const t=typeof e=="string"?e:e.path;if(await Ku(),!_l)return console.error("[nuxt] Error creating app manifest matcher.",_l),{};try{return lw({},..._l.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function wy(e,t={}){if(!await xw(e))return null;const r=await T9(e,t);return await Iw(r)||null}const C9="_payload.json";async function T9(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||$r(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=en(),i=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,s=o&&await xw(e)?o:r.app.baseURL;return Qu(s,n.pathname,C9+(i?`?${i}`:""))}async function Iw(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Aw));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}
23async function xw(e=Fr().path){const t=$e();return e=Gu(e),(await Ku()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await Fm({path:e});return!!r.prerender&&!r.redirect})}let Fi=null;async function I9(){var r;if(Fi)return Fi;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Aw(e.textContent||""),n=e.dataset.src?await Iw(e.dataset.src):void 0;return Fi={...t,...n,...window.__NUXT__},(r=Fi.config)!=null&&r.public&&(Fi.config.public=Ut(Fi.config.public)),Fi}async function Aw(e){return await VT(e,$e()._payloadRevivers)}function Rw(e,t){$e()._payloadRevivers[e]=t}const x9=dT(()=>{Rw("skipHydrate",e=>{})}),A9=[["NuxtError",e=>dc(e)],["EmptyShallowRef",e=>mn(e==="_"?void 0:e==="0n"?BigInt(0):ls(e))],["EmptyRef",e=>oe(e==="_"?void 0:e==="0n"?BigInt(0):ls(e))],["ShallowRef",e=>mn(e)],["ShallowReactive",e=>kr(e)],["Ref",e=>oe(e)],["Reactive",e=>Ut(e)]],R9=wt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,i]of A9)Rw(r,i);Object.assign(e.payload,([t,n]=fi(()=>e.runWithContext(I9)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function Bm(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{var h;const o=new Map,s=new Promise(p=>{e.resolveTags().then(m=>{p(m.map(y=>{const g=o.get(y._d)||0,_={tag:y,id:(g?`${y._d}:${g}`:y._d)||my(y),shouldRender:!0};return y._d&&Sw(y._d)&&o.set(y._d,g+1),_}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const m=(h=n[p])==null?void 0:h.children;for(const y of m){const g=y.tagName.toLowerCase();if(!hy.has(g))continue;const _=kw({tag:g,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((v,b)=>(v[b]=y.getAttribute(b),v),{})||{}});if(_.key=y.getAttribute("data-hid")||void 0,_._d=Oh(_)||my(_),a.elMap.has(_._d)){let v=1,b=_._d;for(;a.elMap.has(b);)b=`${_._d}:${v++}`;a.elMap.set(b,y)}else a.elMap.set(_._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(p,m,y){const g=`${p}:${m}`;a.sideEffects[g]=y,delete a.pendingSideEffects[g]}function l({id:p,$el:m,tag:y}){const g=y.tag.endsWith("Attrs");a.elMap.set(p,m),g||(y.textContent&&y.textContent!==m.textContent&&(m.textContent=y.textContent),y.innerHTML&&y.innerHTML!==m.innerHTML&&(m.innerHTML=y.innerHTML),c(p,"el",()=>{m==null||m.remove(),a.elMap.delete(p)}));for(const _ in y.props){if(!Object.prototype.hasOwnProperty.call(y.props,_))continue;const v=y.props[_];if(_.startsWith("on")&&typeof v=="function"){const w=m==null?void 0:m.dataset;if(w&&w[`${_}fired`]){const S=_.slice(0,-5);v.call(m,new Event(S.substring(2)))}m.getAttribute(`data-${_}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:m).addEventListener(_.substring(2),v.bind(m)),m.setAttribute(`data-${_}`,""));continue}const b=`attr:${_}`;if(_==="class"){if(!v)continue;for(const w of v)g&&c(p,`${b}:${w}`,()=>m.classList.remove(w)),!m.classList.contains(w)&&m.classList.add(w)}else if(_==="style"){if(!v)continue;for(const[w,S]of v)c(p,`${b}:${w}`,()=>{m.style.removeProperty(w)}),m.style.setProperty(w,S)}else v!==!1&&v!==null&&(m.getAttribute(_)!==v&&m.setAttribute(_,v===!0?"":String(v)),g&&c(p,b,()=>m.removeAttribute(_)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await s;for(const p of d){const{tag:m,shouldRender:y,id:g}=p;if(y){if(m.tag==="title"){n.title=m.textContent,c("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(g),p.$el?l(p):hy.has(m.tag)&&u.push(p)}}for(const p of u){const m=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),l(p),f[m]=f[m]||n.createDocumentFragment(),f[m].appendChild(p.$el)}for(const p of d)await e.hooks.callHook("dom:renderTag",p,n,c);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function O9(e={}){var r,i,o;const t=((r=e.domOptions)==null?void 0:r.render)||Bm;e.document=e.document||(typeof window<"u"?document:void 0);const n=((o=(i=e.document)==null?void 0:i.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return a9({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function M9(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function D9(e={}){const t=O9({domOptions:{render:M9(()=>Bm(t),n=>setTimeout(n,0))},...e});return t.install=y9(t),t}const N9={disableDefaults:!0,disableCapoSorting:!1,plugins:[f9,d9,m9,u9]},P9=wt({name:"nuxt:head",enforce:"pre",setup(e){const t=D9(N9);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Bm(t)};t.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! 24 * vue-router v4.5.0 25 * (c) 2024 Eduardo San Martin Morote 26 * @license MIT 27 */const Mo=typeof document<"u";function Ow(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
vendor: 6,844 bytes, line 27
27function L9(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ow(e.default)}const Ue=Object.assign;function od(e,t){const n={};for(const r in t){const i=t[r];n[r]=qn(i)?i.map(e):e(i)}return n}const Sa=()=>{},qn=Array.isArray,Mw=/#/g,$9=/&/g,F9=/\//g,B9=/=/g,H9=/\?/g,Dw=/\+/g,j9=/%5B/g,V9=/%5D/g,Nw=/%5E/g,U9=/%60/g,Pw=/%7B/g,W9=/%7C/g,Lw=/%7D/g,q9=/%20/g;function Hm(e){return encodeURI(""+e).replace(W9,"|").replace(j9,"[").replace(V9,"]")}function z9(e){return Hm(e).replace(Pw,"{").replace(Lw,"}").replace(Nw,"^")}function Nh(e){return Hm(e).replace(Dw,"%2B").replace(q9,"+").replace(Mw,"%23").replace($9,"%26").replace(U9,"`").replace(Pw,"{").replace(Lw,"}").replace(Nw,"^")}function G9(e){return Nh(e).replace(B9,"%3D")}function Q9(e){return Hm(e).replace(Mw,"%23").replace(H9,"%3F")}function K9(e){return e==null?"":Q9(e).replace(F9,"%2F")}function qa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Y9=/\/$/,J9=e=>e.replace(Y9,"");function sd(e,t,n="/"){let r,i={},o="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,a>-1?a:t.length),i=e(o)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=t7(r??t,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:qa(s)}}function Z9(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Sy(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function X9(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&us(t.matched[r],n.matched[i])&&$w(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $w(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!e7(e[n],t[n]))return!1;return!0}function e7(e,t){return qn(e)?ky(e,t):qn(t)?ky(t,e):e===t}function ky(e,t){return qn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function t7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s).join("/")}const Dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var za;(function(e){e.pop="pop",e.push="push"})(za||(za={}));var ka;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ka||(ka={}));function n7(e){if(!e)if(Mo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),J9(e)}const r7=/^[^#]+#/;function i7(e,t){return e.replace(r7,"#")+t}function o7(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Yu=()=>({left:window.scrollX,top:window.scrollY});function s7(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=o7(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ey(e,t){return(history.state?history.state.position-t:-1)+e}const Ph=new Map;function a7(e,t){Ph.set(e,t)}function c7(e){const t=Ph.get(e);return Ph.delete(e),t}let l7=()=>location.protocol+"//"+location.host;function Fw(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,c=i.slice(a);return c[0]!=="/"&&(c="/"+c),Sy(c,"")}return Sy(n,e)+r+i}function u7(e,t,n,r){let i=[],o=[],s=null;const a=({state:d})=>{const h=Fw(e,location),p=n.value,m=t.value;let y=0;if(d){if(n.value=h,t.value=d,s&&s===p){s=null;return}y=m?d.position-m.position:0}else r(h);i.forEach(g=>{g(n.value,p,{delta:y,type:za.pop,direction:y?y>0?ka.forward:ka.back:ka.unknown})})};function c(){s=n.value}function l(d){i.push(d);const h=()=>{const p=i.indexOf(d);p>-1&&i.splice(p,1)};return o.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(Ue({},d.state,{scroll:Yu()}),"")}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:l,destroy:f}}function Cy(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Yu():null}}function f7(e){const{history:t,location:n}=window,r={value:Fw(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,l,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:l7()+e+c;try{t[u?"replaceState":"pushState"](l,"",d),i.value=l}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function s(c,l){const u=Ue({},t.state,Cy(i.value.back,c,i.value.forward,!0),l,{position:i.value.position});o(c,u,!0),r.value=c}function a(c,l){const u=Ue({},i.value,t.state,{forward:c,scroll:Yu()});o(u.current,u,!0);const f=Ue({},Cy(r.value,c,null),{position:u.position+1},l);o(c,f,!1),r.value=c}return{location:r,state:i,push:a,replace:s}}function d7(e){e=n7(e);const t=f7(e),n=u7(e,t.state,t.location,t.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=Ue({location:"",base:e,go:r,createHref:i7.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function h7(e){return typeof e=="string"||e&&typeof e=="object"}function Bw(e){return typeof e=="string"||typeof e=="symbol"}const Hw=Symbol("");var Ty;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ty||(Ty={}));function fs(e,t){return Ue(new Error,{type:e,[Hw]:!0},t)}function gr(e,t){return e instanceof Error&&Hw in e&&(t==null||!!(e.type&t))}const Iy="[^/]+?",p7={sensitive:!1,strict:!1,start:!0,end:!0},m7=/[.+*?^${}()[\]/\\]/g;function g7(e,t){const n=Ue({},p7,t),r=[];let i=n.start?"^":"";const o=[];for(const l of e){const u=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let f=0;f<l.length;f++){const d=l[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(m7,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:m,optional:y,regexp:g}=d;o.push({name:p,repeatable:m,optional:y});const _=g||Iy;if(_!==Iy){h+=10;try{new RegExp(`(${_})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${p}" (${_}): `+b.message)}}let v=m?`((?:${_}
27)(?:/(?:${_}))*)`:`(${_})`;f||(v=y&&l.length<2?`(?:/${v})`:"/"+v),y&&(v+="?"),i+=v,h+=20,y&&(h+=-8),m&&(h+=-20),_===".*"&&(h+=-50)}u.push(h)}r.push(u)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(l){const u=l.match(s),f={};if(!u)return null;for(let d=1;d<u.length;d++){const h=u[d]||"",p=o[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function c(l){let u="",f=!1;for(const d of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of d)if(h.type===0)u+=h.value;else if(h.type===1){const{value:p,repeatable:m,optional:y}=h,g=p in l?l[p]:"";if(qn(g)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const _=qn(g)?g.join("/"):g;if(!_)if(y)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=_}}return u||"/"}return{re:s,score:r,keys:o,parse:a,stringify:c}}function y7(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function jw(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=y7(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(xy(r))return 1;if(xy(i))return-1}return i.length-r.length}function xy(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const v7={type:0,value:""},_7=/[a-zA-Z0-9_]/;function b7(e){if(!e)return[[]];if(e==="/")return[[v7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${l}": ${h}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,c,l="",u="";function f(){l&&(n===0?o.push({type:0,value:l}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function d(){l+=c}for(;a<e.length;){if(c=e[a++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(l&&f(),s()):c===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:c==="("?n=2:_7.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),f(),s(),i}function w7(e,t,n){const r=g7(b7(e.path),n),i=Ue(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function S7(e,t){const n=[],r=new Map;t=My({strict:!1,end:!0,sensitive:!1},t);function i(f){return r.get(f)}function o(f,d,h){const p=!h,m=Ry(f);m.aliasOf=h&&h.record;const y=My(t,f),g=[m];if("alias"in f){const b=typeof f.alias=="string"?[f.alias]:f.alias;for(const w of b)g.push(Ry(Ue({},m,{components:h?h.record.components:m.components,path:w,aliasOf:h?h.record:m})))}let _,v;for(const b of g){const{path:w}=b;if(d&&w[0]!=="/"){const S=d.record.path,k=S[S.length-1]==="/"?"":"/";b.path=d.record.path+(w&&k+w)}if(_=w7(b,d,y),h?h.alias.push(_):(v=v||_,v!==_&&v.alias.push(_),p&&f.name&&!Oy(_)&&s(f.name)),Vw(_)&&c(_),m.children){const S=m.children;for(let k=0;k<S.length;k++)o(S[k],_,h&&h.children[k])}h=h||_}return v?()=>{s(v)}:Sa}function s(f){if(Bw(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function c(f){const d=C7(f,n);n.splice(d,0,f),f.record.name&&!Oy(f)&&r.set(f.record.name,f)}function l(f,d){let h,p={},m,y;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw fs(1,{location:f});y=h.record.name,p=Ue(Ay(d.params,h.keys.filter(v=>!v.optional).concat(h.parent?h.parent.keys.filter(v=>v.optional):[]).map(v=>
vendor: 5,674 bytes, line 27
27v.name)),f.params&&Ay(f.params,h.keys.map(v=>v.name))),m=h.stringify(p)}else if(f.path!=null)m=f.path,h=n.find(v=>v.re.test(m)),h&&(p=h.parse(m),y=h.record.name);else{if(h=d.name?r.get(d.name):n.find(v=>v.re.test(d.path)),!h)throw fs(1,{location:f,currentLocation:d});y=h.record.name,p=Ue({},d.params,f.params),m=h.stringify(p)}const g=[];let _=h;for(;_;)g.unshift(_.record),_=_.parent;return{name:y,path:m,params:p,matched:g,meta:E7(g)}}e.forEach(f=>o(f));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:l,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function Ay(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ry(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:k7(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function k7(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Oy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function E7(e){return e.reduce((t,n)=>Ue(t,n.meta),{})}function My(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function C7(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;jw(e,t[o])<0?r=o:n=o+1}const i=T7(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function T7(e){let t=e;for(;t=t.parent;)if(Vw(t)&&jw(e,t)===0)return t}function Vw({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function I7(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(Dw," "),s=o.indexOf("="),a=qa(s<0?o:o.slice(0,s)),c=s<0?null:qa(o.slice(s+1));if(a in t){let l=t[a];qn(l)||(l=t[a]=[l]),l.push(c)}else t[a]=c}return t}function Dy(e){let t="";for(let n in e){const r=e[n];if(n=G9(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(qn(r)?r.map(o=>o&&Nh(o)):[r&&Nh(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function x7(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=qn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const A7=Symbol(""),Ny=Symbol(""),Ju=Symbol(""),jm=Symbol(""),Lh=Symbol("");function Ks(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Yr(e,t,n,r,i,o=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,c)=>{const l=d=>{d===!1?c(fs(4,{from:n,to:t})):d instanceof Error?c(d):h7(d)?c(fs(2,{from:t,to:d})):(s&&r.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),a())},u=o(()=>e.call(r&&r.instances[i],t,n,l));let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(d=>c(d))})}function ad(e,t,n,r,i=o=>o()){const o=[];for(const s of e)for(const a in s.components){let c=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Ow(c)){const u=(c.__vccOpts||c)[t];u&&o.push(Yr(u,n,r,s,a,i))}else{let l=c();o.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=L9(u)?u.default:u;s.mods[a]=u,s.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Yr(h,n,r,s,a,i)()}))}}return o}function Py(e){const t=Ve(Ju),n=Ve(jm),r=se(()=>{const c=q(e.to);return t.resolve(c)}),i=se(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(us.bind(null,u));if(d>-1)return d;const h=Ly(c[l-2]);return l>1&&Ly(u)===h&&f[f.length-1].path!==h?f.findIndex(us.bind(null,c[l-2])):d}),o=se(()=>i.value>-1&&N7(n.params,r.value.params)),s=se(()=>i.value>-1&&i.value===n.matched.length-1&&$w(n.params,r.value.params));function a(c={}){if(D7(c)){const l=t[q(e.replace)?"replace":"push"](q(e.to)).catch(Sa);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:se(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}function R7(e){return e.length===1?e[0]:e}const O7=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Py,setup(e,{slots:t}){const n=Ut(Py(e)),{options:r}=Ve(Ju),i=se(()=>({[$y(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[$y(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&R7(t.default(n));return e.custom?o:He("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),M7=O7;function D7(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function N7(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!qn(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function Ly(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $y=(e,t,n)=>e??t??n,P7=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ve(Lh),i=se(()=>e.route||r.value),o=Ve(Ny,0),s=se(()=>
vendor: 4,087 bytes, line 27
27{let l=q(o);const{matched:u}=i.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),a=se(()=>i.value.matched[s.value]);Bt(Ny,se(()=>s.value+1)),Bt(A7,a),Bt(Lh,i);const c=oe();return Oe(()=>[c.value,a.value,e.name],([l,u,f],[d,h,p])=>{u&&(u.instances[f]=l,h&&h!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!us(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(m=>m(l))},{flush:"post"}),()=>{const l=i.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Fy(n.default,{Component:d,route:l});const h=f.props[u],p=h?h===!0?l.params:typeof h=="function"?h(l):h:null,y=He(d,Ue({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return Fy(n.default,{Component:y,route:l})||y}}});function Fy(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Uw=P7;function L7(e){const t=S7(e.routes,e),n=e.parseQuery||I7,r=e.stringifyQuery||Dy,i=e.history,o=Ks(),s=Ks(),a=Ks(),c=mn(Dn);let l=Dn;Mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=od.bind(null,x=>""+x),f=od.bind(null,K9),d=od.bind(null,qa);function h(x,j){let J,ee;return Bw(x)?(J=t.getRecordMatcher(x),ee=j):ee=x,t.addRoute(ee,J)}function p(x){const j=t.getRecordMatcher(x);j&&t.removeRoute(j)}function m(){return t.getRoutes().map(x=>x.record)}function y(x){return!!t.getRecordMatcher(x)}function g(x,j){if(j=Ue({},j||c.value),typeof x=="string"){const I=sd(n,x,j.path),P=t.resolve({path:I.path},j),ie=i.createHref(I.fullPath);return Ue(I,P,{params:d(P.params),hash:qa(I.hash),redirectedFrom:void 0,href:ie})}let J;if(x.path!=null)J=Ue({},x,{path:sd(n,x.path,j.path).path});else{const I=Ue({},x.params);for(const P in I)I[P]==null&&delete I[P];J=Ue({},x,{params:f(I)}),j.params=f(j.params)}const ee=t.resolve(J,j),ye=x.hash||"";ee.params=u(d(ee.params));const Te=Z9(r,Ue({},x,{hash:z9(ye),path:ee.path})),E=i.createHref(Te);return Ue({fullPath:Te,hash:ye,query:r===Dy?x7(x.query):x.query||{}},ee,{redirectedFrom:void 0,href:E})}function _(x){return typeof x=="string"?sd(n,x,c.value.path):Ue({},x)}function v(x,j){if(l!==x)return fs(8,{from:j,to:x})}function b(x){return k(x)}function w(x){return b(Ue(_(x),{replace:!0}))}function S(x){const j=x.matched[x.matched.length-1];if(j&&j.redirect){const{redirect:J}=j;let ee=typeof J=="function"?J(x):J;return typeof ee=="string"&&(ee=ee.includes("?")||ee.includes("#")?ee=_(ee):{path:ee},ee.params={}),Ue({query:x.query,hash:x.hash,params:ee.path!=null?{}:x.params},ee)}}function k(x,j){const J=l=g(x),ee=c.value,ye=x.state,Te=x.force,E=x.replace===!0,I=S(J);if(I)return k(Ue(_(I),{state:typeof I=="object"?Ue({},ye,I.state):ye,force:Te,replace:E}),j||J);const P=J;P.redirectedFrom=j;let ie;return!Te&&X9(r,ee,J)&&(ie=fs(16,{to:P,from:ee}),O(ee,ee,!0,!1)),(ie?Promise.resolve(ie):T(P,ee)).catch(G=>gr(G)?gr(G,2)?G:C(G):W(G,P,ee)).then(G=>{if(G){if(gr(G,2))return k(Ue({replace:E},_(G.to),{state:typeof G.to=="object"?Ue({},ye,G.to.state):ye,force:Te}),j||P)}else G=D(P,ee,!0,E,ye);return $(P,ee,G),G})}function R(x,j){const J=v(x,j);return J?Promise.reject(J):Promise.resolve()}function A(x){const j=Y.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(x):x()}function T(x,j){let J;const[ee,ye,Te]=$7(x,j);J=ad(ee.reverse(),"beforeRouteLeave",x,j);for(const I of ee)I.leaveGuards.forEach(P=>{J.push(Yr(P,x,j))});const E=R.bind(null,x,j);return J.push(E),N(J).then(()=>{J=[];for(const I of o.list())J.push(Yr(I,x,j));return J.push(E),N(J)}).then(()=>{J=ad(ye,"beforeRouteUpdate",x,j);for(const I of ye)I.updateGuards.forEach(P=>{J.push(Yr(P,x,j))});return J.push(E),N(J)}).then(()=>{J=[];for(const I of Te)if(I.beforeEnter)if(qn(I.beforeEnter))for(const P of I.beforeEnter)J.push(Yr(P,x,j));else J.push(Yr(I.beforeEnter,x,j));return J.push(E),N(J)}).then(()=>(x.matched.forEach(I=>I.enterCallbacks={}),J=ad(Te,"beforeRouteEnter",x,j,A),J.push(E),N(J))).then(()=>{J=[];for(const I of s.list())J.push(Yr(I,x,j));return J.push(E),N(J)}).catch(I=>gr(I,8)?I:Promise.reject(I))}
27function $(x,j,J){a.list().forEach(ee=>A(()=>ee(x,j,J)))}function D(x,j,J,ee,ye){const Te=v(x,j);if(Te)return Te;const E=j===Dn,I=Mo?history.state:{};J&&(ee||E?i.replace(x.fullPath,Ue({scroll:E&&I&&I.scroll},ye)):i.push(x.fullPath,ye)),c.value=x,O(x,j,J,E),C()}let H;function ce(){H||(H=i.listen((x,j,J)=>{if(!re.listening)return;const ee=g(x),ye=S(ee);if(ye){k(Ue(ye,{replace:!0,force:!0}),ee).catch(Sa);return}l=ee;const Te=c.value;Mo&&a7(Ey(Te.fullPath,J.delta),Yu()),T(ee,Te).catch(E=>gr(E,12)?E:gr(E,2)?(k(Ue(_(E.to),{force:!0}),ee).then(I=>{gr(I,20)&&!J.delta&&J.type===za.pop&&i.go(-1,!1)}).catch(Sa),Promise.reject()):(J.delta&&i.go(-J.delta,!1),W(E,ee,Te))).then(E=>{E=E||D(ee,Te,!1),E&&(J.delta&&!gr(E,8)?i.go(-J.delta,!1):J.type===za.pop&&gr(E,20)&&i.go(-1,!1)),$(ee,Te,E)}).catch(Sa)}))}let K=Ks(),F=Ks(),V;function W(x,j,J){C(x);const ee=F.list();return ee.length?ee.forEach(ye=>ye(x,j,J)):console.error(x),Promise.reject(x)}function de(){return V&&c.value!==Dn?Promise.resolve():new Promise((x,j)=>{K.add([x,j])})}function C(x){return V||(V=!x,ce(),K.list().forEach(([j,J])=>x?J(x):j()),K.reset()),x}function O(x,j,J,ee){const{scrollBehavior:ye}=e;if(!Mo||!ye)return Promise.resolve();const Te=!J&&c7(Ey(x.fullPath,0))||(ee||!J)&&history.state&&history.state.scroll||null;return Tt().then(()=>ye(x,j,Te)).then(E=>E&&s7(E)).catch(E=>W(E,x,j))}const B=x=>i.go(x);let Q;const Y=new Set,re={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:g,options:e,push:b,replace:w,go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:F.add,isReady:de,install(x){const j=this;x.component("RouterLink",M7),x.component("RouterView",Uw),x.config.globalProperties.$router=j,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>q(c)}),Mo&&!Q&&c.value===Dn&&(Q=!0,b(i.location).catch(ye=>{}));const J={};for(const ye in Dn)Object.defineProperty(J,ye,{get:()=>c.value[ye],enumerable:!0});x.provide(Ju,j),x.provide(jm,kr(J)),x.provide(Lh,c);const ee=x.unmount;Y.add(x),x.unmount=function(){Y.delete(x),Y.size<1&&(l=Dn,H&&H(),H=null,c.value=Dn,Q=!1,V=!1),ee()}}};function N(x){return x.reduce((j,J)=>j.then(()=>A(J)),Promise.resolve())}return re}function $7(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const a=t.matched[s];a&&(e.matched.find(l=>us(l,a))?r.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find(l=>us(l,c))||i.push(c))}return[n,r,i]}function oJ(){return Ve(Ju)}function sJ(e){return Ve(jm)}const F7=/(:\w+)\([^)]+\)/g,B7=/(:\w+)[?+*]/g,H7=/:\w+/g,j7=(e,t)=>t.path.replace(F7,"$1").replace(B7,"$1").replace(H7,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),$h=(e,t)=>{const n=e.route.matched.find(i=>{var o;return((o=i.components)==null?void 0:o.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&j7(e.route,n));return typeof r=="function"?r(e.route):r},V7=(e,t)=>({default:()=>e?He(k8,e===!0?{}:e,t):t});function Vm(e){return Array.isArray(e)?e:[e]}const U7={custom:{search:!0,pageName:"all_news",showSidebarAds:!0}},W7={custom:{search:!0,pageName:"latest_news",showSidebarAds:!0}},q7={custom:{pageName:"microsite"}},z7={custom:{share:!0,hideMainMenu:!0,pageName:"detail_page",layout:"wide"},isRegWallPossible:!0},G7={custom:{hideMainMenu:!0,pageName:"topic_news"}},Q7={custom:{share:!1,hideMainMenu:!0,pageName:"detail_page"}},K7={custom:{pageName:"search",hideMainMenu:!0}},Y7={custom:{search:!0,pageName:"podcast_category",showSidebarAds:!0}},J7={custom:{pageName:"all_news",search:!0,showSidebarAds:!0}},Z7={custom:{hideMainMenu:!0,pageName:"author_news"}},X7={custom:{pageName:"bookmarks",search:!0}},eI={custom:{share:!0,hideMainMenu:!1,pageName:"detail_page",layout:"wide",showSidebarAds:!0}},tI={custom:{share:!0,hideMainMenu:!1,pageName:"detail_page",layout:"default"}},nI={custom:{share:!0,hideMainMenu:!0,pageName:"detail_page",layout:"wide"}},rI={custom:{share:!0,hideMainMenu:!1,pageName:"detail_page",layout:"wide",showSidebarAds:!0}};const cd=[{name:"ui",path:"/ui",component:()=>At(()=>import("./D7QG7hvo.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"index",path:"/",meta:U7||{},component:()=>At(()=>import("./JEz8jnqB.js"),__vite__mapDeps([5,3,6,7,8,9,10,11,12]),import.meta.url)},{name:"latest",path:"/latest",meta:W7||{},component:()=>At(()=>import("./BDNMAD_Z.js"),__vite__mapDeps([13,2,3,6,7,8,11,14]),import.meta.url)},{name:"test-ad",path:"/test-ad",meta:q7||{},component:()=>At(()=>import("./p2kt_DY-.js"),__vite__mapDeps([15,4]),import.meta.url)},{name:"path",path:"/:path(.*)*",meta:z7||{},component:()=>At(()=>import("./Dgad-oSp.js"),__vite__mapDeps([16,2,3,17,18,1,19,20,10,21,22,23,7,24,25,26]),import.meta.url)},{name:"tag-tag",path:"/tag/:tag()",meta:G7||{},component:()=>At(()=>import("./Ck7wwD1E.js"),__vite__mapDeps([27,28,3,23,6,7,8,11,14,17]),import.meta.url)},{name:"user",path:"/user",meta:Q7||{},component:()=>At(()=>import("./Cl8WySKG.js"),[],import.meta.url)},{name:"search",path:"/search",meta:K7||{},component:()=>At(()=>import("./CXHLbxwY.js"),__vite__mapDeps([29,11]),import.meta.url)},{name:"podcasts",path:"/podcasts",meta:Y7||{},component:()=>At(()=>import("./TDwTNRyd.js"),__vite__mapDeps([30,24,9]),import.meta.url)},{name:"topics-topic",path:"/topics/:topic()",meta:J7||{},component:()=>At(()=>import("./CFFGz1kk.js"),__vite__mapDeps([31,28,3,23,6,7,8,11,14]),import.meta.url)},{name:"author-author",path:"/author/:author()",meta:Z7||{},component:()=>At(()=>import("./CzV1zvG5.js"),__vite__mapDeps([32,28,3,23,6,7,8,11,14]),import.meta.url)},{name:"bookmarks",path:"/bookmarks",meta:X7||{},component:()=>At(()=>import("./Bs7GCzzA.js"),__vite__mapDeps([33,3,6,7,8,11]),import.meta.url)}
27,{name:"ewn-tv-slug",path:"/ewn-tv/:slug(.*)*",meta:eI||{},component:()=>At(()=>import("./D_nB-MKF.js"),__vite__mapDeps([34,19,20,10,21,35,36,25]),import.meta.url)},{name:"ewn-tv-all-videos",path:"/ewn-tv/all-videos",meta:tI||{},component:()=>At(()=>import("./uvXmeHiC.js"),__vite__mapDeps([37,7,36,20,10,25,38]),import.meta.url)},{name:"preview-path",path:"/preview/:path(.*)*",meta:nI||{},component:()=>At(()=>import("./DiPb7bm8.js"),__vite__mapDeps([39,2,3,18,1,19,20,10,21,22,23]),import.meta.url)},{name:"ewn-tv-livestream-livestream",path:"/ewn-tv/livestream/:livestream()",meta:rI||{},component:()=>At(()=>import("./G_hdBzPh.js"),__vite__mapDeps([40,19,20,10,21,35,36,25]),import.meta.url)}],iI=(e,t)=>({default:()=>{var n;return e?He(E6,e===!0?{}:e,t):(n=t.default)==null?void 0:n.call(t)}}),oI=/(:\w+)\([^)]+\)/g,sI=/(:\w+)[?+*]/g,aI=/:\w+/g;function By(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(oI,"$1").replace(sI,"$1").replace(aI,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function cI(e,t){return e===t||t===Dn?!1:By(e)!==By(t)?!0:!e.matched.every((r,i)=>{var o,s;return r.components&&r.components.default===((s=(o=t.matched[i])==null?void 0:o.components)==null?void 0:s.default)})}function lI(e,t=!1){if(e){if(e.nodeName==="#comment"&&e.nodeValue==="[")return Ww(e,[],t);if(t){const n=e.cloneNode(!0);return n.querySelectorAll("[data-island-slot]").forEach(r=>{r.innerHTML=""}),[n.outerHTML]}return[e.outerHTML]}}function Ww(e,t=[],n=!1){if(e&&e.nodeName){if(fI(e))return t;if(!uI(e)){const r=e.cloneNode(!0);n&&r.querySelectorAll("[data-island-slot]").forEach(i=>{i.innerHTML=""}),t.push(r.outerHTML)}Ww(e.nextSibling,t,n)}return t}function ld(e,t){const n=e?lI(e):[t];return n?As(n.join(""),n.length):He("div")}function uI(e){return e.nodeName==="#comment"&&e.nodeValue==="["}function fI(e){return e.nodeName==="#comment"&&e.nodeValue==="]"}const dI={scrollBehavior(e,t,n){var l;const r=$e(),i=((l=Nt().options)==null?void 0:l.scrollBehaviorType)??"auto";let o=n||void 0;const s=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!o&&t&&e&&s!==!1&&cI(e,t)&&(o={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:qw(e.hash),behavior:i}:!1;const a=u=>!!(u.meta.pageTransition??kh),c=a(t)&&a(e)?"page:transition:finish":"page:loading:end";return new Promise(u=>{r.hooks.hookOnce(c,()=>{requestAnimationFrame(()=>u(hI(e,"instant",o)))})})}};function qw(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function hI(e,t,n){return n||(e.hash?{el:e.hash,top:qw(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const pI={hashMode:!1,scrollBehaviorType:"auto"},En={...pI,...dI},mI=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=$e(),i=Nt(),o=([t,n]=fi(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(o===!0)return;const s=dc({statusCode:o&&o.statusCode||404,statusMessage:o&&o.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=i.beforeResolve(l=>{if(a(),l===e){const u=i.afterEach(async()=>{u(),await r.runWithContext(()=>Qr(s)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},gI=()=>{};var Hy={};/** 28 * @license 29 * Copyright 2017 Google LLC 30 * 31 * Licensed under the Apache License, Version 2.0 (the "License"); 32 * you may not use this file except in compliance with the License. 33 * You may obtain a copy of the License at 34 * 35 * http://www.apache.org/licenses/LICENSE-2.0 36 * 37 * Unless required by applicable law or agreed to in writing, software 38 * distributed under the License is distributed on an "AS IS" BASIS, 39 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 40 * See the License for the specific language governing permissions and 41 * limitations under the License. 42 */const zw=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},yI=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],a=e[n++],c=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},Gw={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,a=s?e[i+1]:0,c=i+2<e.length,l=c?e[i+2]:0,u=o>>2,f=(o&3)<<4|a>>4;let d=(a&15)<<2|l>>6,h=l&63;c||(h=64,s||(d=64)),r.push(n[u],n[f],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(zw(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):yI(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const l=i<e.length?n[e.charAt(i)]:64;++i;const f=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||a==null||l==null||f==null)throw new vI;const d=o<<2|a>>4;if(r.push(d),l!==64){const h=a<<4&240|l>>2;if(r.push(h),f!==64){const p=l<<6&192|f;r.push(p)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
42class vI extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const _I=function(e){const t=zw(e);return Gw.encodeByteArray(t,!0)},Qw=function(e){return _I(e).replace(/\./g,"")},bI=function(e){try{return Gw.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** 43 * @license 44 * Copyright 2022 Google LLC 45 * 46 * Licensed under the Apache License, Version 2.0 (the "License"); 47 * you may not use this file except in compliance with the License. 48 * You may obtain a copy of the License at 49 * 50 * http://www.apache.org/licenses/LICENSE-2.0 51 * 52 * Unless required by applicable law or agreed to in writing, software 53 * distributed under the License is distributed on an "AS IS" BASIS, 54 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 55 * See the License for the specific language governing permissions and 56 * limitations under the License. 57 */function wI(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 58 * @license 59 * Copyright 2022 Google LLC 60 * 61 * Licensed under the Apache License, Version 2.0 (the "License"); 62 * you may not use this file except in compliance with the License. 63 * You may obtain a copy of the License at 64 * 65 * http://www.apache.org/licenses/LICENSE-2.0 66 * 67 * Unless required by applicable law or agreed to in writing, software 68 * distributed under the License is distributed on an "AS IS" BASIS, 69 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 70 * See the License for the specific language governing permissions and 71 * limitations under the License. 72 */const SI=()=>wI().__FIREBASE_DEFAULTS__,kI=()=>{if(typeof process>"u"||typeof Hy>"u")return;const e=Hy.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},EI=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&bI(e[1]);return t&&JSON.parse(t)},CI=()=>{try{return gI()||SI()||kI()||EI()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Kw=()=>{var e;return(e=CI())===null||e===void 0?void 0:e.config};/** 73 * @license 74 * Copyright 2017 Google LLC 75 * 76 * Licensed under the Apache License, Version 2.0 (the "License"); 77 * you may not use this file except in compliance with the License. 78 * You may obtain a copy of the License at 79 * 80 * http://www.apache.org/licenses/LICENSE-2.0 81 * 82 * Unless required by applicable law or agreed to in writing, software 83 * distributed under the License is distributed on an "AS IS" BASIS, 84 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 85 * See the License for the specific language governing permissions and 86 * limitations under the License. 87 */class TI{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function II(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function Yw(){try{return typeof indexedDB=="object"}catch{return!1}}function Jw(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function xI(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/** 88 * @license 89 * Copyright 2017 Google LLC 90 * 91 * Licensed under the Apache License, Version 2.0 (the "License"); 92 * you may not use this file except in compliance with the License. 93 * You may obtain a copy of the License at 94 * 95 * http://www.apache.org/licenses/LICENSE-2.0 96 * 97 * Unless required by applicable law or agreed to in writing, software 98 * distributed under the License is distributed on an "AS IS" BASIS, 99 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 100 * See the License for the specific language governing permissions and 101 * limitations under the License. 102 */const AI="FirebaseError";
102class vo extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=AI,Object.setPrototypeOf(this,vo.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Zu.prototype.create)}}class Zu{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?RI(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new vo(i,a,r)}}function RI(e,t){return e.replace(OI,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const OI=/\{\$([^}]+)}/g;function ou(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(jy(o)&&jy(s)){if(!ou(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function jy(e){return e!==null&&typeof e=="object"}/** 103 * @license 104 * Copyright 2019 Google LLC 105 * 106 * Licensed under the Apache License, Version 2.0 (the "License"); 107 * you may not use this file except in compliance with the License. 108 * You may obtain a copy of the License at 109 * 110 * http://www.apache.org/licenses/LICENSE-2.0 111 * 112 * Unless required by applicable law or agreed to in writing, software 113 * distributed under the License is distributed on an "AS IS" BASIS, 114 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115 * See the License for the specific language governing permissions and 116 * limitations under the License. 117 */const MI=1e3,DI=2,NI=4*60*60*1e3,PI=.5;function Vy(e,t=MI,n=DI){const r=t*Math.pow(n,e),i=Math.round(PI*r*(Math.random()-.5)*2);return Math.min(NI,r+i)}/** 118 * @license 119 * Copyright 2021 Google LLC 120 * 121 * Licensed under the Apache License, Version 2.0 (the "License"); 122 * you may not use this file except in compliance with the License. 123 * You may obtain a copy of the License at 124 * 125 * http://www.apache.org/licenses/LICENSE-2.0 126 * 127 * Unless required by applicable law or agreed to in writing, software 128 * distributed under the License is distributed on an "AS IS" BASIS, 129 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 130 * See the License for the specific language governing permissions and 131 * limitations under the License. 132 */function Zw(e){return e&&e._delegate?e._delegate:e}class bi{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 133 * @license 134 * Copyright 2019 Google LLC 135 * 136 * Licensed under the Apache License, Version 2.0 (the "License"); 137 * you may not use this file except in compliance with the License. 138 * You may obtain a copy of the License at 139 * 140 * http://www.apache.org/licenses/LICENSE-2.0 141 * 142 * Unless required by applicable law or agreed to in writing, software 143 * distributed under the License is distributed on an "AS IS" BASIS, 144 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 145 * See the License for the specific language governing permissions and 146 * limitations under the License. 147 */const Wi="[DEFAULT]";/** 148 * @license 149 * Copyright 2019 Google LLC 150 * 151 * Licensed under the Apache License, Version 2.0 (the "License"); 152 * you may not use this file except in compliance with the License. 153 * You may obtain a copy of the License at 154 * 155 * http://www.apache.org/licenses/LICENSE-2.0 156 * 157 * Unless required by applicable law or agreed to in writing, software 158 * distributed under the License is distributed on an "AS IS" BASIS, 159 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 160 * See the License for the specific language governing permissions and 161 * limitations under the License. 162 */class LI{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new TI;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(FI(t))try{this.getOrInitializeService({instanceIdentifier:Wi})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=Wi){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Wi){return this.instances.has(t)}getOptions(t=Wi){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(o);r===a&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:$I(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Wi){return this.component?this.component.multipleInstances?t:Wi:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function $I(e){return e===Wi?void 0:e}function FI(e){return e.instantiationMode==="EAGER"}/** 163 * @license 164 * Copyright 2019 Google LLC 165 * 166 * Licensed under the Apache License, Version 2.0 (the "License");
167 * you may not use this file except in compliance with the License. 168 * You may obtain a copy of the License at 169 * 170 * http://www.apache.org/licenses/LICENSE-2.0 171 * 172 * Unless required by applicable law or agreed to in writing, software 173 * distributed under the License is distributed on an "AS IS" BASIS, 174 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 175 * See the License for the specific language governing permissions and 176 * limitations under the License. 177 */class BI{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new LI(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** 178 * @license 179 * Copyright 2017 Google LLC 180 * 181 * Licensed under the Apache License, Version 2.0 (the "License"); 182 * you may not use this file except in compliance with the License. 183 * You may obtain a copy of the License at 184 * 185 * http://www.apache.org/licenses/LICENSE-2.0 186 * 187 * Unless required by applicable law or agreed to in writing, software 188 * distributed under the License is distributed on an "AS IS" BASIS, 189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 190 * See the License for the specific language governing permissions and 191 * limitations under the License. 192 */var lt;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(lt||(lt={}));const HI={debug:lt.DEBUG,verbose:lt.VERBOSE,info:lt.INFO,warn:lt.WARN,error:lt.ERROR,silent:lt.SILENT},jI=lt.INFO,VI={[lt.DEBUG]:"log",[lt.VERBOSE]:"log",[lt.INFO]:"info",[lt.WARN]:"warn",[lt.ERROR]:"error"},UI=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=VI[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class Xw{constructor(t){this.name=t,this._logLevel=jI,this._logHandler=UI,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in lt))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?HI[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,lt.DEBUG,...t),this._logHandler(this,lt.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,lt.VERBOSE,...t),this._logHandler(this,lt.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,lt.INFO,...t),this._logHandler(this,lt.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,lt.WARN,...t),this._logHandler(this,lt.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,lt.ERROR,...t),this._logHandler(this,lt.ERROR,...t)}}const WI=(e,t)=>t.some(n=>e instanceof n);let Uy,Wy;function qI(){return Uy||(Uy=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function zI(){return Wy||(Wy=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const e3=new WeakMap,Fh=new WeakMap,t3=new WeakMap,ud=new WeakMap,Um=new WeakMap;function GI(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(di(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&e3.set(n,e)}).catch(()=>{}),Um.set(t,e),t}function QI(e){if(Fh.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Fh.set(e,t)}let Bh={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Fh.get(e);if(t==="objectStoreNames")return e.objectStoreNames||t3.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return di(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function KI(e){Bh=e(Bh)}function YI(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(fd(this),t,...n);return t3.set(r,t.sort?t.sort():[t]),di(r)}:zI().includes(e)?function(...t){return e.apply(fd(this),t),di(e3.get(this))}:function(...t){return di(e.apply(fd(this),t))}}function JI(e){return typeof e=="function"?YI(e):(e instanceof IDBTransaction&&QI(e),WI(e,qI())?new Proxy(e,Bh):e)}function di(e){if(e instanceof IDBRequest)return GI(e);if(ud.has(e))return ud.get(e);const t=JI(e);return t!==e&&(ud.set(e,t),Um.set(t,e)),t}const fd=e=>Um.get(e);function n3(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=di(s);return r&&s.addEventListener("upgradeneeded",c=>{r(di(s.result),c.oldVersion,c.newVersion,di(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const ZI=["get","getKey","getAll","getAllKeys","count"],XI=["put","add","delete","clear"],dd=new Map;function qy(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(dd.get(t))return dd.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=XI.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||ZI.includes(n)))return;const o=async function(s,...a){const c=this.transaction(s,i?"readwrite":"readonly");let l=c.store;
192return r&&(l=l.index(a.shift())),(await Promise.all([l[n](...a),i&&c.done]))[0]};return dd.set(t,o),o}KI(e=>({...e,get:(t,n,r)=>qy(t,n)||e.get(t,n,r),has:(t,n)=>!!qy(t,n)||e.has(t,n)}));/** 193 * @license 194 * Copyright 2019 Google LLC 195 * 196 * Licensed under the Apache License, Version 2.0 (the "License"); 197 * you may not use this file except in compliance with the License. 198 * You may obtain a copy of the License at 199 * 200 * http://www.apache.org/licenses/LICENSE-2.0 201 * 202 * Unless required by applicable law or agreed to in writing, software 203 * distributed under the License is distributed on an "AS IS" BASIS, 204 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 205 * See the License for the specific language governing permissions and 206 * limitations under the License. 207 */class ex{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(tx(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function tx(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Hh="@firebase/app",zy="0.11.4";/** 208 * @license 209 * Copyright 2019 Google LLC 210 * 211 * Licensed under the Apache License, Version 2.0 (the "License"); 212 * you may not use this file except in compliance with the License. 213 * You may obtain a copy of the License at 214 * 215 * http://www.apache.org/licenses/LICENSE-2.0 216 * 217 * Unless required by applicable law or agreed to in writing, software 218 * distributed under the License is distributed on an "AS IS" BASIS, 219 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 220 * See the License for the specific language governing permissions and 221 * limitations under the License. 222 */const Or=new Xw("@firebase/app"),nx="@firebase/app-compat",rx="@firebase/analytics-compat",ix="@firebase/analytics",ox="@f
222irebase/app-check-compat",sx="@firebase/app-check",ax="@firebase/auth",cx="@firebase/auth-compat",lx="@firebase/database",ux="@firebase/data-connect",fx="@firebase/database-compat",dx="@firebase/functions",hx="@firebase/functions-compat",px="@firebase/installations",mx="@firebase/installations-compat",gx="@firebase/messaging",yx="@firebase/messaging-compat",vx="@firebase/performance",_x="@firebase/performance-compat",bx="@firebase/remote-config",wx="@firebase/remote-config-compat",Sx="@firebase/storage",kx="@firebase/storage-compat",Ex="@firebase/firestore",Cx="@firebase/vertexai",Tx="@firebase/firestore-compat",Ix="firebase";/** 223 * @license 224 * Copyright 2019 Google LLC 225 * 226 * Licensed under the Apache License, Version 2.0 (the "License"); 227 * you may not use this file except in compliance with the License. 228 * You may obtain a copy of the License at 229 * 230 * http://www.apache.org/licenses/LICENSE-2.0 231 * 232 * Unless required by applicable law or agreed to in writing, software 233 * distributed under the License is distributed on an "AS IS" BASIS, 234 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 235 * See the License for the specific language governing permissions and 236 * limitations under the License. 237 */const jh="[DEFAULT]",xx={[Hh]:"fire-core",[nx]:"fire-core-compat",[ix]:"fire-analytics",[rx]:"fire-analytics-compat",[sx]:"fire-app-check",[ox]:"fire-app-check-compat",[ax]:"fire-auth",[cx]:"fire-auth-compat",[lx]:"fire-rtdb",[ux]:"fire-data-connect",[fx]:"fire-rtdb-compat",[dx]:"fire-fn",[hx]:"fire-fn-compat",[px]:"fire-iid",[mx]:"fire-iid-compat",[gx]:"fire-fcm",[yx]:"fire-fcm-compat",[vx]:"fire-perf",[_x]:"fire-perf-compat",[bx]:"fire-rc",[wx]:"fire-rc-compat",[Sx]:"fire-gcs",[kx]:"fire-gcs-compat",[Ex]:"fire-fst",[Tx]:"fire-fst-compat",[Cx]:"fire-vertex","fire-js":"fire-js",[Ix]:"fire-js-all"};/** 238 * @license 239 * Copyright 2019 Google LLC 240 * 241 * Licensed under the Apache License, Version 2.0 (the "License"); 242 * you may not use this file except in compliance with the License. 243 * You may obtain a copy of the License at 244 * 245 * http://www.apache.org/licenses/LICENSE-2.0 246 * 247 * Unless required by applicable law or agreed to in writing, software 248 * distributed under the License is distributed on an "AS IS" BASIS, 249 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 250 * See the License for the specific language governing permissions and 251 * limitations under the License. 252 */const su=new Map,Ax=new Map,Vh=new Map;function Gy(e,t){try{e.container.addComponent(t)}catch(n){Or.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function lo(e){const t=e.name;if(Vh.has(t))return Or.debug(`There were multiple attempts to register component ${t}.`),!1;Vh.set(t,e);for(const n of su.values())Gy(n,e);for(const n of Ax.values())Gy(n,e);return!0}function Xu(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/** 253 * @license 254 * Copyright 2019 Google LLC 255 * 256 * Licensed under the Apache License, Version 2.0 (the "License"); 257 * you may not use this file except in compliance with the License. 258 * You may obtain a copy of the License at 259 * 260 * http://www.apache.org/licenses/LICENSE-2.0 261 * 262 * Unless required by applicable law or agreed to in writing, software 263 * distributed under the License is distributed on an "AS IS" BASIS, 264 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 265 * See the License for the specific language governing permissions and 266 * limitations under the License. 267 */const Rx={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
267d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},hi=new Zu("app","Firebase",Rx);/** 268 * @license 269 * Copyright 2019 Google LLC 270 * 271 * Licensed under the Apache License, Version 2.0 (the "License"); 272 * you may not use this file except in compliance with the License. 273 * You may obtain a copy of the License at 274 * 275 * http://www.apache.org/licenses/LICENSE-2.0 276 * 277 * Unless required by applicable law or agreed to in writing, software 278 * distributed under the License is distributed on an "AS IS" BASIS, 279 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 280 * See the License for the specific language governing permissions and 281 * limitations under the License. 282 */class Ox{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new bi("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw hi.create("app-deleted",{appName:this._name})}}function r3(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:jh,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw hi.create("bad-app-name",{appName:String(i)});if(n||(n=Kw()),!n)throw hi.create("no-options");const o=su.get(i);if(o){if(ou(n,o.options)&&ou(r,o.config))return o;throw hi.create("duplicate-app",{appName:i})}const s=new BI(i);for(const c of Vh.values())s.addComponent(c);const a=new Ox(n,r,s);return su.set(i,a),a}function Mx(e=jh){const t=su.get(e);if(!t&&e===jh&&Kw())return r3();if(!t)throw hi.create("no-app",{appName:e});return t}function pi(e,t,n){var r;let i=(r=xx[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${t}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Or.warn(a.join(" "));return}lo(new bi(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/** 283 * @license 284 * Copyright 2021 Google LLC 285 * 286 * Licensed under the Apache License, Version 2.0 (the "License"); 287 * you may not use this file except in compliance with the License. 288 * You may obtain a copy of the License at 289 * 290 * http://www.apache.org/licenses/LICENSE-2.0 291 * 292 * Unless required by applicable law or agreed to in writing, software 293 * distributed under the License is distributed on an "AS IS" BASIS, 294 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 295 * See the License for the specific language governing permissions and 296 * limitations under the License. 297 */const Dx="firebase-heartbeat-database",Nx=1,Ga="firebase-heartbeat-store";let hd=null;function i3(){return hd||(hd=n3(Dx,Nx,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ga)}catch(n){console.warn(n)}}}}).catch(e=>{throw hi.create("idb-open",{originalErrorMessage:e.message})})),hd}async function Px(e){try{const n=(await i3()).transaction(Ga),r=await n.objectStore(Ga).get(o3(e));return await n.done,r}catch(t){if(t instanceof vo)Or.warn(t.message);else{const n=hi.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Or.warn(n.message)}}}async function Qy(e,t){try{const r=(await i3()).transaction(Ga,"readwrite");await r.objectStore(Ga).put(t,o3(e)),await r.done}catch(n){if(n instanceof vo)Or.warn(n.message);else{const r=hi.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Or.warn(r.message)}}}function o3(e){return`${e.name}!${e.options.appId}`}/** 298 * @license 299 * Copyright 2021 Google LLC 300 * 301 * Licensed under the Apache License, Version 2.0 (the "License");
302 * you may not use this file except in compliance with the License. 303 * You may obtain a copy of the License at 304 * 305 * http://www.apache.org/licenses/LICENSE-2.0 306 * 307 * Unless required by applicable law or agreed to in writing, software 308 * distributed under the License is distributed on an "AS IS" BASIS, 309 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 310 * See the License for the specific language governing permissions and 311 * limitations under the License. 312 */const Lx=1024,$x=30;class Fx{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new Hx(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=Ky();if(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o))return;if(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats.length>$x){const s=jx(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(s,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){Or.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=Ky(),{heartbeatsToSend:r,unsentEntries:i}=Bx(this._heartbeatsCache.heartbeats),o=Qw(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return Or.warn(n),""}}}function Ky(){return new Date().toISOString().substring(0,10)}function Bx(e,t=Lx){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),Yy(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Yy(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class Hx{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Yw()?Jw().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await Px(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return Qy(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return Qy(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function Yy(e){return Qw(JSON.stringify({version:2,heartbeats:e})).length}function jx(e){if(e.length===0)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}/** 313 * @license 314 * Copyright 2019 Google LLC 315 * 316 * Licensed under the Apache License, Version 2.0 (the "License"); 317 * you may not use this file except in compliance with the License. 318 * You may obtain a copy of the License at 319 * 320 * http://www.apache.org/licenses/LICENSE-2.0 321 * 322 * Unless required by applicable law or agreed to in writing, software 323 * distributed under the License is distributed on an "AS IS" BASIS, 324 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 325 * See the License for the specific language governing permissions and 326 * limitations under the License. 327 */function Vx(e){lo(new bi("platform-logger",t=>new ex(t),"PRIVATE")),lo(new bi("heartbeat",t=>new Fx(t),"PRIVATE")),pi(Hh,zy,e),pi(Hh,zy,"esm2017"),pi("fire-js","")}Vx("");const s3="@firebase/installations",Wm="0.6.13";/** 328 * @license 329 * Copyright 2019 Google LLC 330 * 331 * Licensed under the Apache License, Version 2.0 (the "License");
332 * you may not use this file except in compliance with the License. 333 * You may obtain a copy of the License at 334 * 335 * http://www.apache.org/licenses/LICENSE-2.0 336 * 337 * Unless required by applicable law or agreed to in writing, software 338 * distributed under the License is distributed on an "AS IS" BASIS, 339 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 340 * See the License for the specific language governing permissions and 341 * limitations under the License. 342 */const a3=1e4,c3=`w:${Wm}`,l3="FIS_v2",Ux="https://firebaseinstallations.googleapis.com/v1",Wx=60*60*1e3,qx="installations",zx="Installations";/** 343 * @license 344 * Copyright 2019 Google LLC 345 * 346 * Licensed under the Apache License, Version 2.0 (the "License"); 347 * you may not use this file except in compliance with the License. 348 * You may obtain a copy of the License at 349 * 350 * http://www.apache.org/licenses/LICENSE-2.0 351 * 352 * Unless required by applicable law or agreed to in writing, software 353 * distributed under the License is distributed on an "AS IS" BASIS, 354 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 355 * See the License for the specific language governing permissions and 356 * limitations under the License. 357 */const Gx={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},uo=new Zu(qx,zx,Gx);function u3(e){return e instanceof vo&&e.code.includes("request-failed")}/** 358 * @license 359 * Copyright 2019 Google LLC 360 * 361 * Licensed under the Apache License, Version 2.0 (the "License"); 362 * you may not use this file except in compliance with the License. 363 * You may obtain a copy of the License at 364 * 365 * http://www.apache.org/licenses/LICENSE-2.0 366 * 367 * Unless required by applicable law or agreed to in writing, software 368 * distributed under the License is distributed on an "AS IS" BASIS, 369 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 370 * See the License for the specific language governing permissions and 371 * limitations under the License. 372 */function f3({projectId:e}){return`${Ux}/projects/${e}/installations`}function d3(e){return{token:e.token,requestStatus:2,expiresIn:Kx(e.expiresIn),creationTime:Date.now()}}async function h3(e,t){const r=(await t.json()).error;return uo.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function p3({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Qx(e,{refreshToken:t}){const n=p3(e);return n.append("Authorization",Yx(t)),n}async function m3(e){const t=await e();return t.status>=500&&t.status<600?e():t}function Kx(e){return Number(e.replace("s","000"))}function Yx(e){return`${l3} ${e}`}/** 373 * @license 374 * Copyright 2019 Google LLC 375 * 376 * Licensed under the Apache License, Version 2.0 (the "License"); 377 * you may not use this file except in compliance with the License. 378 * You may obtain a copy of the License at 379 * 380 * http://www.apache.org/licenses/LICENSE-2.0 381 * 382 * Unless required by applicable law or agreed to in writing, software 383 * distributed under the License is distributed on an "AS IS" BASIS, 384 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 385 * See the License for the specific language governing permissions and 386 * limitations under the License. 387 */async function Jx({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=f3(e),i=p3(e),o=t.getImmediate({optional:!0});if(o){const l=await o.getHeartbeatsHeader();l&&i.append("x-firebase-client",l)}const s={fid:n,authVersion:l3,appId:e.appId,sdkVersion:c3},a={method:"POST",headers:i,body:JSON.stringify(s)},c=await m3(()=>fetch(r,a));if(c.ok){const l=await c.json();
387return{fid:l.fid||n,registrationStatus:2,refreshToken:l.refreshToken,authToken:d3(l.authToken)}}else throw await h3("Create Installation",c)}/** 388 * @license 389 * Copyright 2019 Google LLC 390 * 391 * Licensed under the Apache License, Version 2.0 (the "License"); 392 * you may not use this file except in compliance with the License. 393 * You may obtain a copy of the License at 394 * 395 * http://www.apache.org/licenses/LICENSE-2.0 396 * 397 * Unless required by applicable law or agreed to in writing, software 398 * distributed under the License is distributed on an "AS IS" BASIS, 399 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 400 * See the License for the specific language governing permissions and 401 * limitations under the License. 402 */function g3(e){return new Promise(t=>{setTimeout(t,e)})}/** 403 * @license 404 * Copyright 2019 Google LLC 405 * 406 * Licensed under the Apache License, Version 2.0 (the "License"); 407 * you may not use this file except in compliance with the License. 408 * You may obtain a copy of the License at 409 * 410 * http://www.apache.org/licenses/LICENSE-2.0 411 * 412 * Unless required by applicable law or agreed to in writing, software 413 * distributed under the License is distributed on an "AS IS" BASIS, 414 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 415 * See the License for the specific language governing permissions and 416 * limitations under the License. 417 */function Zx(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/** 418 * @license 419 * Copyright 2019 Google LLC 420 * 421 * Licensed under the Apache License, Version 2.0 (the "License"); 422 * you may not use this file except in compliance with the License. 423 * You may obtain a copy of the License at 424 * 425 * http://www.apache.org/licenses/LICENSE-2.0 426 * 427 * Unless required by applicable law or agreed to in writing, software 428 * distributed under the License is distributed on an "AS IS" BASIS, 429 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 430 * See the License for the specific language governing permissions and 431 * limitations under the License. 432 */const Xx=/^[cdef][\w-]{21}$/,Uh="";function eA(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=tA(e);return Xx.test(n)?n:Uh}catch{return Uh}}function tA(e){return Zx(e).substr(0,22)}/** 433 * @license 434 * Copyright 2019 Google LLC 435 * 436 * Licensed under the Apache License, Version 2.0 (the "License"); 437 * you may not use this file except in compliance with the License. 438 * You may obtain a copy of the License at 439 * 440 * http://www.apache.org/licenses/LICENSE-2.0 441 * 442 * Unless required by applicable law or agreed to in writing, software 443 * distributed under the License is distributed on an "AS IS" BASIS, 444 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 445 * See the License for the specific language governing permissions and 446 * limitations under the License. 447 */function ef(e){return`${e.appName}!${e.appId}`}/** 448 * @license 449 * Copyright 2019 Google LLC 450 * 451 * Licensed under the Apache License, Version 2.0 (the "License"); 452 * you may not use this file except in compliance with the License. 453 * You may obtain a copy of the License at 454 * 455 * http://www.apache.org/licenses/LICENSE-2.0 456 * 457 * Unless required by applicable law or agreed to in writing, software 458 * distributed under the License is distributed on an "AS IS" BASIS, 459 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 460 * See the License for the specific language governing permissions and 461 * limitations under the License. 462 */const y3=new Map;function v3(e,t){const n=ef(e);_3(n,t),nA(n,t)}function _3(e,t){const n=y3.get(e);if(n)for(const r of n)r(t)}function nA(e,t){const n=rA();n&&n.postMessage({key:e,fid:t}),iA()}let Ji=null;function rA(){return!Ji&&"BroadcastChannel"in self&&(Ji=new BroadcastChannel("[Firebase] FID Change"),Ji.onmessage=e=>{_3(e.data.key,e.data.fid)}),Ji}function iA(){y3.size===0&&Ji&&(Ji.close(),Ji=null)}/** 463 * @license 464 * Copyright 2019 Google LLC 465 * 466 * Licensed under the Apache License, Version 2.0 (the "License");
467 * you may not use this file except in compliance with the License. 468 * You may obtain a copy of the License at 469 * 470 * http://www.apache.org/licenses/LICENSE-2.0 471 * 472 * Unless required by applicable law or agreed to in writing, software 473 * distributed under the License is distributed on an "AS IS" BASIS, 474 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 475 * See the License for the specific language governing permissions and 476 * limitations under the License. 477 */const oA="firebase-installations-database",sA=1,fo="firebase-installations-store";let pd=null;function qm(){return pd||(pd=n3(oA,sA,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(fo)}}})),pd}async function au(e,t){const n=ef(e),i=(await qm()).transaction(fo,"readwrite"),o=i.objectStore(fo),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&v3(e,t.fid),t}async function b3(e){const t=ef(e),r=(await qm()).transaction(fo,"readwrite");await r.objectStore(fo).delete(t),await r.done}async function tf(e,t){const n=ef(e),i=(await qm()).transaction(fo,"readwrite"),o=i.objectStore(fo),s=await o.get(n),a=t(s);return a===void 0?await o.delete(n):await o.put(a,n),await i.done,a&&(!s||s.fid!==a.fid)&&v3(e,a.fid),a}/** 478 * @license 479 * Copyright 2019 Google LLC 480 * 481 * Licensed under the Apache License, Version 2.0 (the "License"); 482 * you may not use this file except in compliance with the License. 483 * You may obtain a copy of the License at 484 * 485 * http://www.apache.org/licenses/LICENSE-2.0 486 * 487 * Unless required by applicable law or agreed to in writing, software 488 * distributed under the License is distributed on an "AS IS" BASIS, 489 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 490 * See the License for the specific language governing permissions and 491 * limitations under the License. 492 */async function zm(e){let t;const n=await tf(e.appConfig,r=>{const i=aA(r),o=cA(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===Uh?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function aA(e){const t=e||{fid:eA(),registrationStatus:0};return w3(t)}function cA(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(uo.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=lA(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:uA(e)}:{installationEntry:t}}async function lA(e,t){try{const n=await Jx(e,t);return au(e.appConfig,n)}catch(n){throw u3(n)&&n.customData.serverCode===409?await b3(e.appConfig):await au(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function uA(e){let t=await Jy(e.appConfig);for(;t.registrationStatus===1;)await g3(100),t=await Jy(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await zm(e);return r||n}return t}function Jy(e){return tf(e,t=>{if(!t)throw uo.create("installation-not-found");return w3(t)})}function w3(e){return fA(e)?{fid:e.fid,registrationStatus:0}:e}function fA(e){return e.registrationStatus===1&&e.registrationTime+a3<Date.now()}/** 493 * @license 494 * Copyright 2019 Google LLC 495 * 496 * Licensed under the Apache License, Version 2.0 (the "License"); 497 * you may not use this file except in compliance with the License. 498 * You may obtain a copy of the License at 499 * 500 * http://www.apache.org/licenses/LICENSE-2.0 501 * 502 * Unless required by applicable law or agreed to in writing, software 503 * distributed under the License is distributed on an "AS IS" BASIS, 504 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 505 * See the License for the specific language governing permissions and 506 * limitations under the License. 507 */async function dA({appConfig:e,heartbeatServiceProvider:t},n){const r=hA(e,n),i=Qx(e,n),o=t.getImmediate({optional:!0});if(o){const l=await o.getHeartbeatsHeader();l&&i.append("x-firebase-client",l)}const s={installation:{sdkVersion:c3,appId:e.appId}},a={method:"POST",headers:i,body:JSON.stringify(s)},c=await m3(()=>fetch(r,a));if(c.ok){const l=await c.json();return d3(l)}else throw await h3("Generate Auth Token",c)}function hA(e,{fid:t}){return`${f3(e)}/${t}/authTokens:generate`}/** 508 * @license 509 * Copyright 2019 Google LLC 510 * 511 * Licensed under the Apache License, Version 2.0 (the "License");
512 * you may not use this file except in compliance with the License. 513 * You may obtain a copy of the License at 514 * 515 * http://www.apache.org/licenses/LICENSE-2.0 516 * 517 * Unless required by applicable law or agreed to in writing, software 518 * distributed under the License is distributed on an "AS IS" BASIS, 519 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 520 * See the License for the specific language governing permissions and 521 * limitations under the License. 522 */async function Gm(e,t=!1){let n;const r=await tf(e.appConfig,o=>{if(!S3(o))throw uo.create("not-registered");const s=o.authToken;if(!t&&gA(s))return o;if(s.requestStatus===1)return n=pA(e,t),o;{if(!navigator.onLine)throw uo.create("app-offline");const a=vA(o);return n=mA(e,a),a}});return n?await n:r.authToken}async function pA(e,t){let n=await Zy(e.appConfig);for(;n.authToken.requestStatus===1;)await g3(100),n=await Zy(e.appConfig);const r=n.authToken;return r.requestStatus===0?Gm(e,t):r}function Zy(e){return tf(e,t=>{if(!S3(t))throw uo.create("not-registered");const n=t.authToken;return _A(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function mA(e,t){try{const n=await dA(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await au(e.appConfig,r),n}catch(n){if(u3(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await b3(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await au(e.appConfig,r)}throw n}}function S3(e){return e!==void 0&&e.registrationStatus===2}function gA(e){return e.requestStatus===2&&!yA(e)}function yA(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+Wx}function vA(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function _A(e){return e.requestStatus===1&&e.requestTime+a3<Date.now()}/** 523 * @license 524 * Copyright 2019 Google LLC 525 * 526 * Licensed under the Apache License, Version 2.0 (the "License"); 527 * you may not use this file except in compliance with the License. 528 * You may obtain a copy of the License at 529 * 530 * http://www.apache.org/licenses/LICENSE-2.0 531 * 532 * Unless required by applicable law or agreed to in writing, software 533 * distributed under the License is distributed on an "AS IS" BASIS, 534 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 535 * See the License for the specific language governing permissions and 536 * limitations under the License. 537 */async function bA(e){const t=e,{installationEntry:n,registrationPromise:r}=await zm(t);return r?r.catch(console.error):Gm(t).catch(console.error),n.fid}/** 538 * @license 539 * Copyright 2019 Google LLC 540 * 541 * Licensed under the Apache License, Version 2.0 (the "License"); 542 * you may not use this file except in compliance with the License. 543 * You may obtain a copy of the License at 544 * 545 * http://www.apache.org/licenses/LICENSE-2.0 546 * 547 * Unless required by applicable law or agreed to in writing, software 548 * distributed under the License is distributed on an "AS IS" BASIS, 549 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 550 * See the License for the specific language governing permissions and 551 * limitations under the License. 552 */async function wA(e,t=!1){const n=e;return await SA(n),(await Gm(n,t)).token}async function SA(e){const{registrationPromise:t}=await zm(e);t&&await t}/** 553 * @license 554 * Copyright 2019 Google LLC 555 * 556 * Licensed under the Apache License, Version 2.0 (the "License"); 557 * you may not use this file except in compliance with the License. 558 * You may obtain a copy of the License at 559 * 560 * http://www.apache.org/licenses/LICENSE-2.0 561 * 562 * Unless required by applicable law or agreed to in writing, software 563 * distributed under the License is distributed on an "AS IS" BASIS, 564 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 565 * See the License for the specific language governing permissions and 566 * limitations under the License. 567 */function kA(e){if(!e||!e.options)throw md("App Configuration");if(!e.name)throw md("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw md(n);
567return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function md(e){return uo.create("missing-app-config-values",{valueName:e})}/** 568 * @license 569 * Copyright 2020 Google LLC 570 * 571 * Licensed under the Apache License, Version 2.0 (the "License"); 572 * you may not use this file except in compliance with the License. 573 * You may obtain a copy of the License at 574 * 575 * http://www.apache.org/licenses/LICENSE-2.0 576 * 577 * Unless required by applicable law or agreed to in writing, software 578 * distributed under the License is distributed on an "AS IS" BASIS, 579 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 580 * See the License for the specific language governing permissions and 581 * limitations under the License. 582 */const k3="installations",EA="installations-internal",CA=e=>{const t=e.getProvider("app").getImmediate(),n=kA(t),r=Xu(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},TA=e=>{const t=e.getProvider("app").getImmediate(),n=Xu(t,k3).getImmediate();return{getId:()=>bA(n),getToken:i=>wA(n,i)}};function IA(){lo(new bi(k3,CA,"PUBLIC")),lo(new bi(EA,TA,"PRIVATE"))}IA();pi(s3,Wm);pi(s3,Wm,"esm2017");/** 583 * @license 584 * Copyright 2019 Google LLC 585 * 586 * Licensed under the Apache License, Version 2.0 (the "License"); 587 * you may not use this file except in compliance with the License. 588 * You may obtain a copy of the License at 589 * 590 * http://www.apache.org/licenses/LICENSE-2.0 591 * 592 * Unless required by applicable law or agreed to in writing, software 593 * distributed under the License is distributed on an "AS IS" BASIS, 594 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 595 * See the License for the specific language governing permissions and 596 * limitations under the License. 597 */const cu="analytics",xA="firebase_id",AA="origin",RA=60*1e3,OA="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Qm="https://www.googletagmanager.com/gtag/js";/** 598 * @license 599 * Copyright 2019 Google LLC 600 * 601 * Licensed under the Apache License, Version 2.0 (the "License"); 602 * you may not use this file except in compliance with the License. 603 * You may obtain a copy of the License at 604 * 605 * http://www.apache.org/licenses/LICENSE-2.0 606 * 607 * Unless required by applicable law or agreed to in writing, software 608 * distributed under the License is distributed on an "AS IS" BASIS, 609 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 610 * See the License for the specific language governing permissions and 611 * limitations under the License. 612 */const on=new Xw("@firebase/analytics");/** 613 * @license 614 * Copyright 2019 Google LLC 615 * 616 * Licensed under the Apache License, Version 2.0 (the "License"); 617 * you may not use this file except in compliance with the License. 618 * You may obtain a copy of the License at 619 * 620 * http://www.apache.org/licenses/LICENSE-2.0 621 * 622 * Unless required by applicable law or agreed to in writing, software 623 * distributed under the License is distributed on an "AS IS" BASIS, 624 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 625 * See the License for the specific language governing permissions and 626 * limitations under the License. 627 */const MA={"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invali
627d-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},gn=new Zu("analytics","Analytics",MA);/** 628 * @license 629 * Copyright 2019 Google LLC 630 * 631 * Licensed under the Apache License, Version 2.0 (the "License"); 632 * you may not use this file except in compliance with the License. 633 * You may obtain a copy of the License at 634 * 635 * http://www.apache.org/licenses/LICENSE-2.0 636 * 637 * Unless required by applicable law or agreed to in writing, software 638 * distributed under the License is distributed on an "AS IS" BASIS, 639 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 640 * See the License for the specific language governing permissions and 641 * limitations under the License. 642 */function DA(e){if(!e.startsWith(Qm)){const t=gn.create("invalid-gtag-resource",{gtagURL:e});return on.warn(t.message),""}return e}function E3(e){return Promise.all(e.map(t=>t.catch(n=>n)))}function NA(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function PA(e,t){const n=NA("firebase-js-sdk-policy",{createScriptURL:DA}),r=document.createElement("script"),i=`${Qm}?l=${e}&id=${t}`;r.src=n?n==null?void 0:n.createScriptURL(i):i,r.async=!0,document.head.appendChild(r)}function LA(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}async function $A(e,t,n,r,i,o){const s=r[i];try{if(s)await t[s];else{const c=(await E3(n)).find(l=>l.measurementId===i);c&&await t[c.appId]}}catch(a){on.error(a)}e("config",i,o)}async function FA(e,t,n,r,i){try{let o=[];if(i&&i.send_to){let s=i.send_to;Array.isArray(s)||(s=[s]);const a=await E3(n);for(const c of s){const l=a.find(f=>f.measurementId===c),u=l&&t[l.appId];if(u)o.push(u);else{o=[];break}}}o.length===0&&(o=Object.values(t)),await Promise.all(o),e("event",r,i||{})}catch(o){on.error(o)}}function BA(e,t,n,r){async function i(o,...s){try{if(o==="event"){const[a,c]=s;await FA(e,t,n,a,c)}else if(o==="config"){const[a,c]=s;await $A(e,t,n,r,a,c)}else if(o==="consent"){const[a,c]=s;e("consent",a,c)}else if(o==="get"){const[a,c,l]=s;e("get",a,c,l)}else if(o==="set"){const[a]=s;e("set",a)}else e(o,...s)}catch(a){on.error(a)}}return i}function HA(e,t,n,r,i){let o=function(...s){window[r].push(arguments)};return window[i]&&typeof window[i]=="function"&&(o=window[i]),window[i]=BA(o,e,t,n),{gtagCore:o,wrappedGtag:window[i]}}function jA(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(Qm)&&n.src.includes(e))return n;return null}/** 643 * @license 644 * Copyright 2020 Google LLC 645 * 646 * Licensed under the Apache License, Version 2.0 (the "License"); 647 * you may not use this file except in compliance with the License. 648 * You may obtain a copy of the License at 649 * 650 * http://www.apache.org/licenses/LICENSE-2.0 651 * 652 * Unless required by applicable law or agreed to in writing, software 653 * distributed under the License is distributed on an "AS IS" BASIS, 654 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 655 * See the License for the specific language governing permissions and 656 * limitations under the License. 657 */const VA=30,UA=1e3;class WA{constructor(t={},n=UA){this.throttleMetadata=t,this.intervalMillis=n}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,n){this.throttleMetadata[t]=n}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}}const C3=new WA;function qA(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function zA(e){var t;const{appId:n,apiKey:r}=e,i={method:"GET",headers:qA(r)},o=OA.replace("{app-id}",n),s=await fetch(o,i);if(s.status!==200&&s.status!==304){let a="";try{const c=await s.json();!((t=c.error)===null||t===void 0)&&t.message&&(a=c.error.message)}catch{}throw gn.create("config-fetch-failed",{httpStatus:s.status,responseMessage:a})}return s.json()}async function GA(e,t=C3,n){const{appId:r,apiKey:i,measurementId:o}=e.options;if(!r)throw gn.create("no-app-id");if(!i){if(o)return{measurementId:o,appId:r};throw gn.create("no-api-key")}const s=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new YA;return setTimeout(async()=>{a.abort()},RA),T3({appId:r,apiKey:i,measurementId:o},s,a,t)}async function T3(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=C3){var o;const{appId:s,measurementId:a}=e;try{await QA(r,t)}catch(c){if(a)return on.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${c==null?void 0:c.message}
657]`),{appId:s,measurementId:a};throw c}try{const c=await zA(e);return i.deleteThrottleMetadata(s),c}catch(c){const l=c;if(!KA(l)){if(i.deleteThrottleMetadata(s),a)return on.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${l==null?void 0:l.message}]`),{appId:s,measurementId:a};throw c}const u=Number((o=l==null?void 0:l.customData)===null||o===void 0?void 0:o.httpStatus)===503?Vy(n,i.intervalMillis,VA):Vy(n,i.intervalMillis),f={throttleEndTimeMillis:Date.now()+u,backoffCount:n+1};return i.setThrottleMetadata(s,f),on.debug(`Calling attemptFetch again in ${u} millis`),T3(e,f,r,i)}}function QA(e,t){return new Promise((n,r)=>{const i=Math.max(t-Date.now(),0),o=setTimeout(n,i);e.addEventListener(()=>{clearTimeout(o),r(gn.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function KA(e){if(!(e instanceof vo)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}class YA{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}async function JA(e,t,n,r,i){if(i&&i.global){e("event",n,r);return}else{const o=await t,s=Object.assign(Object.assign({},r),{send_to:o});e("event",n,s)}}/** 658 * @license 659 * Copyright 2020 Google LLC 660 * 661 * Licensed under the Apache License, Version 2.0 (the "License"); 662 * you may not use this file except in compliance with the License. 663 * You may obtain a copy of the License at 664 * 665 * http://www.apache.org/licenses/LICENSE-2.0 666 * 667 * Unless required by applicable law or agreed to in writing, software 668 * distributed under the License is distributed on an "AS IS" BASIS, 669 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 670 * See the License for the specific language governing permissions and 671 * limitations under the License. 672 */async function ZA(){if(Yw())try{await Jw()}catch(e){return on.warn(gn.create("indexeddb-unavailable",{errorInfo:e==null?void 0:e.toString()}).message),!1}else return on.warn(gn.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function XA(e,t,n,r,i,o,s){var a;const c=GA(e);c.then(h=>{n[h.measurementId]=h.appId,e.options.measurementId&&h.measurementId!==e.options.measurementId&&on.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${h.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(h=>on.error(h)),t.push(c);const l=ZA().then(h=>{if(h)return r.getId()}),[u,f]=await Promise.all([c,l]);jA(o)||PA(o,u.measurementId),i("js",new Date);const d=(a=s==null?void 0:s.config)!==null&&a!==void 0?a:{};return d[AA]="firebase",d.update=!0,f!=null&&(d[xA]=f),i("config",u.measurementId,d),u.measurementId}/** 673 * @license 674 * Copyright 2019 Google LLC 675 * 676 * Licensed under the Apache License, Version 2.0 (the "License"); 677 * you may not use this file except in compliance with the License. 678 * You may obtain a copy of the License at 679 * 680 * http://www.apache.org/licenses/LICENSE-2.0 681 * 682 * Unless required by applicable law or agreed to in writing, software 683 * distributed under the License is distributed on an "AS IS" BASIS, 684 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 685 * See the License for the specific language governing permissions and 686 * limitations under the License. 687 */class eR{constructor(t){this.app=t}_delete(){return delete Ea[this.app.options.appId],Promise.resolve()}}let Ea={},Xy=[];const ev={};let gd="dataLayer",tR="gtag",tv,I3,nv=!1;function nR(){const e=[];if(II()&&e.push("This is a browser extension environment."),xI()||e.push("Cookies are not available."),e.length>0){const t=e.map((r,i)=>`(${i+1}) ${r}`).join(" "),n=gn.create("invalid-analytics-context",{errorInfo:t});on.warn(n.message)}}function rR(e,t,n){nR();const r=e.options.appId;
687if(!r)throw gn.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)on.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw gn.create("no-api-key");if(Ea[r]!=null)throw gn.create("already-exists",{id:r});if(!nv){LA(gd);const{wrappedGtag:o,gtagCore:s}=HA(Ea,Xy,ev,gd,tR);I3=o,tv=s,nv=!0}return Ea[r]=XA(e,Xy,ev,t,tv,gd,n),new eR(e)}function iR(e=Mx()){e=Zw(e);const t=Xu(e,cu);return t.isInitialized()?t.getImmediate():oR(e)}function oR(e,t={}){const n=Xu(e,cu);if(n.isInitialized()){const i=n.getImmediate();if(ou(t,n.getOptions()))return i;throw gn.create("already-initialized")}return n.initialize({options:t})}function x3(e,t,n,r){e=Zw(e),JA(I3,Ea[e.app.options.appId],t,n,r).catch(i=>on.error(i))}const rv="@firebase/analytics",iv="0.10.12";function sR(){lo(new bi(cu,(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("installations-internal").getImmediate();return rR(r,i,n)},"PUBLIC")),lo(new bi("analytics-internal",e,"PRIVATE")),pi(rv,iv),pi(rv,iv,"esm2017");function e(t){try{const n=t.getProvider(cu).getImmediate();return{logEvent:(r,i,o)=>x3(n,r,i,o)}}catch(n){throw gn.create("interop-component-reg-failed",{reason:n})}}}sR();const aR=new Set(["dev","qa"]),cR=e=>{switch(e){case"debug":return console.debug;case"info":return console.info;case"warn":return console.warn;case"error":return console.error}},Rs=e=>{const{public:{appEnv:t}}=en(),n=typeof t=="string"?t:"",r=aR.has(n),i=`[${n||"local"}] [${e}]`,o=(s,a,...c)=>{r&&cR(s)(`${i} ${a}`,...c)};return{debug:(s,...a)=>o("debug",s,...a),info:(s,...a)=>o("info",s,...a),warn:(s,...a)=>o("warn",s,...a),error:(s,...a)=>o("error",s,...a)}};var Qa=(e=>(e.ScreenView="screen_view",e.ShareContent="share_content",e.Interaction="interaction",e))(Qa||{}),nr=(e=>(e.PageName="page_name",e.Slug="slug",e.Topic="topic",e.Tag="tag",e.Click="click",e))(nr||{});const Km=()=>{const e=$e(),t=Rs("Analytics");return{trackEvent:(r,i)=>{const o=e.$analytics;if(!o){t.warn("Firebase Analytics not initialized yet, skipping event",r);return}try{x3(o,r.toString(),i)}catch(s){t.error("Error logging analytics event",s)}}}},lR=e=>{Tt(()=>{var n,r;const{trackEvent:t}=Km();t(Qa.ScreenView,{[nr.PageName]:e.meta.custom.pageName??"unknown_page",...e.meta.custom.pageName==="all_news"&&e.fullPath.includes("topics")&&{[nr.Topic]:((n=e.params)==null?void 0:n.topic)??"unknown_topic"},...e.meta.custom.pageName==="topic_news"&&e.fullPath.includes("tag")&&{[nr.Tag]:((r=e.params)==null?void 0:r.tag)??"unknown_tag"},...e.meta.custom.pageName==="detail_page"&&{[nr.Slug]:e.fullPath}})})},uR=async e=>{let t,n;const r=([t,n]=fi(()=>Fm({path:e.path})),t=await t,n(),t);if(r.redirect)return $r(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},fR=[mI,lR,uR],Ca={};function dR(e,t,n){const{pathname:r,search:i,hash:o}=t,s=e.indexOf("#");if(s>-1){const l=o.includes(e.slice(s))?e.slice(s).length:1;let u=o.slice(l);return u[0]!=="/"&&(u="/"+u),ty(u,"")}const a=ty(r,e),c=!n||TC(a,n,{trailingSlash:!0})?a:n;return c+(c.includes("?")?"":i)+o}const hR=wt({name:"nuxt:router",enforce:"pre",async setup(e){var y;let t,n,r=en().app.baseURL;const i=((y=En.history)==null?void 0:y.call(En,r))??d7(r),o=En.routes?([t,n]=fi(()=>En.routes(cd)),t=await t,n(),t??cd):cd;let s;const a=L7({...En,scrollBehavior:(g,_,v)=>{if(_===Dn){s=v;return}if(En.scrollBehavior){if(a.options.scrollBehavior=En.scrollBehavior,"scrollRestoration"in window.history){const b=a.beforeEach(()=>{b(),window.history.scrollRestoration="manual"})}return En.scrollBehavior(g,Dn,s||v)}},history:i,routes:o});En.routes&&En.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const c=mn(a.currentRoute.value);a.afterEach((g,_)=>{c.value=_}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const l=dR(r,window.location,e.payload.path),u=mn(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((g,_)=>{var v,b,w,S;((b=(v=g.matched[0])==null?void 0:v.components)==null?void 0:b.default)===((S=(w=_.matched[0])==null?void 0:w.components)==null?void 0:S.default)&&f()});const d={};for(const g in u.value)Object.defineProperty(d,g,{get:()=>u.value[g],enumerable:!0});e._route=kr(d),e._middleware||(e._middleware={global:[],named:{}});const h=fc();
687a.afterEach(async(g,_,v)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(IT),v&&await e.callHook("page:loading:end")});try{[t,n]=fi(()=>a.isReady()),await t,n()}catch(g){[t,n]=fi(()=>e.runWithContext(()=>Qr(g))),await t,n()}const p=l!==a.currentRoute.value.fullPath?a.resolve(l):a.currentRoute.value;f();const m=e.payload.state._layout;return a.beforeEach(async(g,_)=>{var v;await e.callHook("page:loading:start"),g.meta=Ut(g.meta),e.isHydrating&&m&&!_i(g.meta.layout)&&(g.meta.layout=m),e._processingMiddleware=!0;{const b=new Set([...fR,...e._middleware.global]);for(const w of g.matched){const S=w.meta.middleware;if(S)for(const k of Vm(S))b.add(k)}{const w=await e.runWithContext(()=>Fm({path:g.path}));if(w.appMiddleware)for(const S in w.appMiddleware)w.appMiddleware[S]?b.add(S):b.delete(S)}for(const w of b){const S=typeof w=="string"?e._middleware.named[w]||await((v=Ca[w])==null?void 0:v.call(Ca).then(k=>k.default||k)):w;if(!S)throw new Error(`Unknown route middleware: '${w}'.`);try{const k=await e.runWithContext(()=>S(g,_));if(!e.payload.serverRendered&&e.isHydrating&&(k===!1||k instanceof Error)){const R=k||yl({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>Qr(R)),!1}if(k===!0)continue;if(k===!1)return k;if(k)return dw(k)&&k.fatal&&await e.runWithContext(()=>Qr(k)),k}catch(k){const R=yl(k);return R.fatal&&await e.runWithContext(()=>Qr(R)),R}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(g,_)=>{g.matched.length===0&&await e.runWithContext(()=>Qr(yl({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`,data:{path:g.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=En.scrollBehavior}catch(g){await e.runWithContext(()=>Qr(g))}}),{provide:{router:a}}}}),Wh=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),pR=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),nf=e=>
687{const t=$e();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Wh(()=>e())}):Wh(()=>e())},mR=wt({name:"nuxt:payload",setup(e){const t=new Set;Nt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const i=await wy(n.path);if(i){for(const o of t)delete e.static.data[o];for(const o in i.data)o in e.static.data||t.add(o),e.static.data[o]=i.data[o]}}),nf(()=>{var n;e.hooks.hook("link:prefetch",async r=>{const{hostname:i}=new URL(r,window.location.href);i===window.location.hostname&&await wy(r).catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})}),((n=navigator.connection)==null?void 0:n.effectiveType)!=="slow-2g"&&setTimeout(Ku,1e3)})}}),gR=wt(()=>{const e=Nt();nf(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),yR=wt(e=>{let t;async function n(){const r=await Ku();t&&clearTimeout(t),t=setTimeout(n,sy);try{const i=await $fetch(Pm("builds/latest.json")+`?${Date.now()}`);i.id!==r.id&&e.hooks.callHook("app:manifest:update",i)}catch{}}nf(()=>{t=setTimeout(n,sy)})});function vR(e={}){const t=e.path||window.location.pathname;let n={};try{n=ls(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:$e().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const _R=wt({name:"nuxt:chunk-reload",setup(e){const t=Nt(),n=en(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function i(o){const a="href"in o&&o.href[0]==="#"?n.app.baseURL+o.href:Qu(n.app.baseURL,o.fullPath);vR({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(i)}),t.onError((o,s)=>{r.has(o)&&i(s)})}});function ov(e){return typeof e=="string"?`'${e}'`:new bR().serialize(e)}const bR=function(){var t;class e{constructor(){p1(this,t,new Map)}compare(r,i){const o=typeof r,s=typeof i;return o==="string"&&s==="string"?r.localeCompare(i):o==="number"&&s==="number"?r-i:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(i,!0))}serialize(r,i){if(r===null)return"null";switch(typeof r){case"string":return i?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const i=Object.prototype.toString.call(r);if(i!=="[object Object]")return this.serializeBuiltInType(i.length<10?`unknown:${i}`:i.slice(8,-1),r);const o=r.constructor,s=o===Object||o===void 0?"":o.name;if(s!==""&&globalThis[s]===o)return this.serializeBuiltInType(s,r);if(typeof r.toJSON=="function"){const a=r.toJSON();return s+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(s,Object.entries(r))}serializeBuiltInType(r,i){const o=this["$"+r];if(o)return o.call(this,i);if(typeof(i==null?void 0:i.entries)=="function")return this.serializeObjectEntries(r,i.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,i){const o=Array.from(i).sort((a,c)=>this.compare(a[0],c[0]));let s=`${r}{`;for(let a=0;a<o.length;a++){const[c,l]=o[a];s+=`${this.serialize(c,!0)}:${this.serialize(l)}`,a<o.length-1&&(s+=",")}return s+"}"}$object(r){let i=Ws(this,t).get(r);return i===void 0&&(Ws(this,t).set(r,`#${Ws(this,t).size}`),i=this.serializeObject(r),Ws(this,t).set(r,i)),i}$function(r){const i=Function.prototype.toString.call(r);return i.slice(-15)==="[native code] }"?`${r.name||""}()[native]`:`${r.name}(${r.length})${i.replace(/\s*\n\s*/g,"")}`}$Array(r){let i="[";for(let o=0;o<r.length;o++)i+=this.serialize(r[o]),o<r.length-1&&(i+=",");return i+"]"}$Date(r){try{return`Date(${r.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(r){return`ArrayBuffer[${new Uint8Array(r).join(",")}]`}$Set(r){return`Set${this.$Array(Array.from(r).sort((i,o)=>this.compare(i,o)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}
687t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(r){return`${n}(${r})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join("n,")}${r.length>0?"n":""}]`};return e}();function wR(e,t){return e===t||ov(e)===ov(t)}const SR=e=>e==="defer"||e===!1;function A3(...e){var m;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,i={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const o=$e(),s=r,a=()=>$o.value,c=()=>o.isHydrating?o.payload.data[n]:o.static.data[n];i.server??(i.server=!0),i.default??(i.default=a),i.getCachedData??(i.getCachedData=c),i.lazy??(i.lazy=!1),i.immediate??(i.immediate=!0),i.deep??(i.deep=$o.deep),i.dedupe??(i.dedupe="cancel");const l=i.getCachedData(n,o),u=l!=null;if(!o._asyncData[n]||!i.immediate){(m=o.payload._errors)[n]??(m[n]=$o.errorValue);const y=i.deep?oe:mn;o._asyncData[n]={data:y(u?l:i.default()),pending:oe(!u),error:ju(o.payload._errors,n),status:oe("idle"),_default:i.default}}const f={...o._asyncData[n]};delete f._default,f.refresh=f.execute=(y={})=>{if(o._asyncDataPromises[n]){if(SR(y.dedupe??i.dedupe))return o._asyncDataPromises[n];o._asyncDataPromises[n].cancelled=!0}if(y._initial||o.isHydrating&&y._initial!==!1){const _=y._initial?l:i.getCachedData(n,o);if(_!=null)return Promise.resolve(_)}f.pending.value=!0,f.status.value="pending";const g=new Promise((_,v)=>{try{_(s(o))}catch(b){v(b)}}).then(async _=>{if(g.cancelled)return o._asyncDataPromises[n];let v=_;i.transform&&(v=await i.transform(_)),i.pick&&(v=ER(v,i.pick)),o.payload.data[n]=v,f.data.value=v,f.error.value=$o.errorValue,f.status.value="success"}).catch(_=>{if(g.cancelled)return o._asyncDataPromises[n];f.error.value=dc(_),f.data.value=q(i.default()),f.status.value="error"}).finally(()=>{g.cancelled||(f.pending.value=!1,delete o._asyncDataPromises[n])});return o._asyncDataPromises[n]=g,o._asyncDataPromises[n]},f.clear=()=>kR(o,n);const d=()=>f.refresh({_initial:!0}),h=i.server!==!1&&o.payload.serverRendered;{const y=_n();if(y&&h&&i.immediate&&!y.sp&&(y.sp=[]),y&&!y._nuxtOnBeforeMountCbs){y._nuxtOnBeforeMountCbs=[];const v=y._nuxtOnBeforeMountCbs;i2(()=>{v.forEach(b=>{b()}),v.splice(0,v.length)}),an(()=>v.splice(0,v.length))}h&&o.isHydrating&&(f.error.value||l!=null)?(f.pending.value=!1,f.status.value=f.error.value?"error":"success"):y&&(o.payload.serverRendered&&o.isHydrating||i.lazy)&&i.immediate?y._nuxtOnBeforeMountCbs.push(d):i.immediate&&d();const g=hr();if(i.watch){const v=Oe(i.watch,()=>f.refresh());g&&Un(v)}const _=o.hook("app:data:refresh",async v=>{(!v||v.includes(n))&&await f.refresh()});g&&Un(_)}const p=Promise.resolve(o._asyncDataPromises[n]).then(()=>f);return Object.assign(p,f),p}function kR(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=$o.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=$o.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function ER(e,t){const n={};for(const r of t)n[r]=e[r];return n}const CR="$s";function R3(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const i=CR+n,o=$e(),s=ju(o.payload.state,i);if(s.value===void 0&&r){const a=r();if(Le(a))return o.payload.state[i]=a,a;s.value=a}return s}function TR(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},i=r.decode||IR;let o=0;for(;o<e.length;){const s=e.indexOf("=",o);if(s===-1)break;let a=e.indexOf(";",o);if(a===-1)a=e.length;else if(a<s){o=e.lastIndexOf(";",s-1)+1;continue}const c=e.slice(o,s).trim();if(r!=null&&r.filter&&!(r!=null&&r.filter(c))){o=a+1;continue}if(n[c]===void 0){let l=e.slice(s+1,a).trim();l.codePointAt(0)===34&&(l=l.slice(1,-1)),n[c]=xR(l,i)}o=a+1}return n}
687function IR(e){return e.includes("%")?decodeURIComponent(e):e}function xR(e,t){try{return t(e)}catch{return e}}const Vc=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function sv(e,t,n){const r=n||{},i=r.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Vc.test(e))throw new TypeError("argument name is invalid");const o=i(t);if(o&&!Vc.test(o))throw new TypeError("argument val is invalid");let s=e+"="+o;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Vc.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Vc.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(!AR(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{s+="; Priority=Low";break}case"medium":{s+="; Priority=Medium";break}case"high":{s+="; Priority=High";break}
687default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{s+="; SameSite=Strict";break}case"lax":{s+="; SameSite=Lax";break}case"strict":{s+="; SameSite=Strict";break}case"none":{s+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s}function AR(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Nn(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=Nn(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:Nn(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Nn(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=Nn(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(i){n.add(Nn(i))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(i,o){n.set(Nn(o),Nn(i))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(Nn(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const RR={path:"/",watch:!0,decode:e=>ls(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Uc=window.cookieStore;function qh(e,t){var l;const n={...RR,...t};n.filter??(n.filter=u=>u===e);const r=av(n)||{};let i;n.maxAge!==void 0?i=n.maxAge*1e3:n.expires&&(i=n.expires.getTime()-Date.now());const o=i!==void 0&&i<=0,s=o||r[e]===void 0||r[e]===null,a=Nn(o?void 0:r[e]??((l=n.default)==null?void 0:l.call(n))),c=i&&!o?DR(a,i,n.watch&&n.watch!=="shallow"):oe(a);{let u=null;try{!Uc&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(m=!1)=>{!m&&(n.readonly||wR(c.value,r[e]))||(MR(e,c.value,n),r[e]=Nn(c.value),u==null||u.postMessage({value:n.encode(c.value)}))},d=m=>{var g;const y=m.refresh?(g=av(n))==null?void 0:g[e]:n.decode(m.value);h=!0,c.value=y,r[e]=Nn(y),Tt(()=>{h=!1})};let h=!1;const p=!!hr();if(p&&Un(()=>{h=!0,f(),u==null||u.close()}),Uc){const m=y=>{const g=y.changed.find(v=>v.name===e),_=y.deleted.find(v=>v.name===e);g&&d({value:g.value}),_&&d({value:null})};Uc.addEventListener("change",m),p&&Un(()=>Uc.removeEventListener("change",m))}else u&&(u.onmessage=({data:m})=>d(m));n.watch&&Oe(c,()=>{h||f()},{deep:n.watch!=="shallow"}),s&&f(s)}return c}function av(e={}){return TR(document.cookie,e)}function OR(e,t,n={}){return t==null?sv(e,t,{...n,maxAge:-1}):sv(e,t,n)}function MR(e,t,n={}){document.cookie=OR(e,t,n)}const cv=2147483647;function DR(e,t,n){let r,i,o=0;const s=n?oe(e):{value:e};return hr()&&Un(()=>{i==null||i(),clearTimeout(r)}),Bb((a,c)=>{n&&(i=Oe(s,c));function l(){o=0,clearTimeout(r);const u=t-o,f=u<cv?u:cv;r=setTimeout(()=>{if(o+=f,o<t)return l();s.value=void 0,c()},f)}return{get(){return a(),s.value},set(u){l(),s.value=u,c()}}})}async function O3(e,t=Nt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const i=t._preloadPromises||(t._preloadPromises=[]);if(i.length>4)return Promise.all(i).then(()=>O3(e,t));t._routePreloaded.add(n);const o=r.map(s=>{var a;return(a=s.components)==null?void 0:a.default}).filter(s=>typeof s=="function");for(const s of o){const a=Promise.resolve(s()).catch(()=>{}).finally(()=>i.splice(i.indexOf(a)));i.push(a)}await Promise.all(i)}const NR=(...e)=>e.find(t=>t!==void 0);function PR(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,s){if(!o||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return o;if(typeof o=="string")return lv(o,e.trailingSlash);const a="path"in o&&o.path!==void 0?o.path:s(o).path;return{...o,name:void 0,path:lv(a,e.trailingSlash)}}function i(o){const s=Nt(),a=en(),c=se(()=>!!o.target&&o.target!=="_self"),l=se(()=>{const y=o.to||o.href||"";return typeof y=="string"&&$r(y,{acceptRelative:!0})}),u=Ha("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=se(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||l.value}),h=se(()=>{const y=o.to||o.href||"";return d.value?y:r(y,s.resolve)}),p=d.value||f==null?void 0:f({...o,to:h}),m=se(()=>{var y;if(!h.value||l.value||n(h.value))return h.value;if(d.value){const g=typeof h.value=="object"&&"path"in h.value?Ih(h.value):h.value,_=typeof g=="object"?s.resolve(g).href:g;return r(_,s.resolve)}return typeof h.value=="object"?((y=s.resolve(h.value))==null?void 0:y.href)??null:r(Qu(a.app.baseURL,h.value),s.resolve)});return{to:h,hasTarget:c,isAbsoluteUrl:l,isExternal:d,href:m,isActive:(p==null?void 0:p.isActive)??se(()=>h.value===s.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??se(()=>h.value===s.currentRoute.value.path),route:(p==null?void 0:p.route)??se(()=>s.resolve(h.value)),async navigate(y){await TT(m.value,{replace:o.replace,external:d.value||c.value})}}}return xe({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:i,setup(o,{slots:s}){const a=Nt(),{to:c,href:l,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=i(o),p=oe(!1),m=oe(null),y=v=>{var b;m.value=o.custom?(b=v==null?void 0:v.$el)==null?void 0:b.nextElementSibling:v==null?void 0:v.$el};function g(v){var b,w;return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===v:((b=o.prefetchOn)==null?void 0:b[v])??((w=e.prefetchOn)==null?void 0:w[v]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!FR()}
687async function _(v=$e()){if(p.value)return;p.value=!0;const b=typeof c.value=="string"?c.value:f.value?Ih(c.value):a.resolve(c.value).fullPath,w=f.value?new URL(b,window.location.href).href:b;await Promise.all([v.hooks.callHook("link:prefetch",w).catch(()=>{}),!f.value&&!d.value&&O3(c.value,a).catch(()=>{})])}if(g("visibility")){const v=$e();let b,w=null;Qe(()=>{const S=LR();nf(()=>{b=Wh(()=>{var k;(k=m==null?void 0:m.value)!=null&&k.tagName&&(w=S.observe(m.value,async()=>{w==null||w(),w=null,await _(v)}))})})}),Mi(()=>{b&&pR(b),w==null||w(),w=null})}return()=>{var w;if(!f.value&&!d.value&&!n(c.value)){const S={ref:y,to:c.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(g("interaction")&&(S.onPointerenter=_.bind(null,void 0),S.onFocus=_.bind(null,void 0)),p.value&&(S.class=o.prefetchedClass||e.prefetchedClass),S.rel=o.rel||void 0),He(Ha("RouterLink"),S,s.default)}const v=o.target||null,b=NR(o.noRel?"":o.rel,e.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return o.custom?s.default?s.default({href:l.value,navigate:u,prefetch:_,get route(){if(!l.value)return;const S=new URL(l.value,window.location.href);return{path:S.pathname,fullPath:S.pathname,get query(){return Nm(S.search)},hash:S.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:b,target:v,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:He("a",{ref:m,href:l.value||null,rel:b,target:v},(w=s.default)==null?void 0:w.call(s))}}})}const wi=PR(rT);function lv(e,t){const n=t==="append"?Xl:Gu;return $r(e)&&!e.startsWith("http")?e:n(e,!0)}function LR(){const e=$e();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,s)=>(t||(t=new IntersectionObserver(a=>{for(const c of a){const l=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&l&&l()}})),n.set(o,s),t.observe(o),()=>{n.delete(o),t==null||t.unobserve(o),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const $R=/2g/;function FR(){const e=navigator.connection;return!!(e&&(e.saveData||$R.test(e.effectiveType)))}const BR=wt({name:"pinia",setup(e){const t=xT();return e.vueApp.use(t),hc(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),HR=wt({name:"nuxt:global-components"}),Wc={},jR=wt({name:"nuxt:prefetch",setup(e){const t=Nt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var i;const r=(i=n==null?void 0:n.meta)==null?void 0:i.layout;r&&typeof Wc[r]=="function"&&await Wc[r]()})}),e.hooks.hook("link:prefetch",n=>{if($r(n))return;const r=t.resolve(n);if(!r)return;const i=r.meta.layout;let o=Vm(r.meta.middleware);o=o.filter(s=>typeof s=="string");for(const s of o)typeof Ca[s]=="function"&&Ca[s]();i&&typeof Wc[i]=="function"&&Wc[i]()})}}),VR="init",uv=[],fv=["/_nuxt/**","/api/**"];function UR(e={}){const t=e.include||[],n=e.exclude||[];return function(r){for(const i of[{rules:n,result:!1},{rules:t,result:!0}]){if(i.rules.filter(a=>a instanceof RegExp).some(a=>a.test(r)))return i.result;const s=i.rules.filter(a=>typeof a=="string");if(s.length>0){const a={};for(const l of s){if(l===r)return i.result;a[l]=!0}if(yT(hT({routes:a,...e})).matchAll(r).length>0)return!!i.result}}return t.length===0}}const WR=wt(async e=>{R3("nuxt-delay-hydration-mode",()=>VR).value==="mount"&&e.hooks.hook("app:created",async()=>{var n,r;(n=e.ssrContext)!=null&&n.noSSR||(r=e.ssrContext)!=null&&r.url&&(uv.length||fv.length)&&!UR({include:uv,exclude:fv})(e.ssrContext.url)||await window._$delayHydration})}),qR=new RegExp(/Googlebot\/|Googlebot-Mobile|Googlebot-Image|Googlebot-News|Googlebot-Video|AdsBot-Google([^-]|$)|AdsBot-Google-Mobile|Feedfetcher-Google|Mediapartners-Google|Mediapartners \(Googlebot\)|APIs-Google|Google-InspectionTool|Storebot-Google|GoogleOther|bingbot|Slurp|[wW]get|LinkedInBot|Python-urllib|python-requests|aiohttp|httpx|libwww-perl|httpunit|Nutch|Go-http-client|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|BIGLOTRON|Teoma|convera|seekbot|Gigabot|Gigablast|exabot|ia_archiver|GingerCrawler|webmon |HTTrack|grub\.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|findlink|msrbot|panscient|yacybot|AISearchBot|ips-agent|tagoobot|MJ12bot|woriobot|yanga|buzzbot|mlbot|yandex\.com\/bots|purebot|Linguee Bot|CyberPatrol|voilabot|Baiduspider|citeseerxbot|spbot|twengabot|postrank|Turnitin|scribdbot|page2rss|sitebot|linkdex|Adidxbot|ezooms|dotbot|Mail\.RU_Bot|discobot|heritrix|findthatfile|europarchive\.org|NerdByNature\.Bot|(sistrix|SISTRIX) [cC]rawler|Ahrefs(Bot|SiteAudit)|fuelbot|CrunchBot|IndeedBot|mappydata|woobot|ZoominfoBot|PrivacyAwareBot|Multiviewbot|SWIMGBot|Grobbot|eright|Apercite|semanticbot|Aboundex|domaincrawler|wbsearchbot|summify|CCBot|edisterbot|SeznamBot|ec2linkfinder|gslfbot|aiHitBot|intelium_bot|facebookexternalhit|Yeti|RetrevoPageAnalyzer|lb-spider|Sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net\.com\.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|it2media-domain-crawler|ip-web-crawler\.com|siteexplorer\.info|elisabot|proximic|changedetection|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|CC Metadata Scaper|g00g1e\.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Twitterbot|cXensebot|smtbot|bnf\.fr_bot|A6-Indexer|ADmantX|Facebot|OrangeBot\/|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive\.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|S[eE][mM]rushBot|yoozBot|lipperhey|Y!J|Domain Re-Animator Bot|AddThis|Screaming Frog SEO Spider|MetaURI|Scrapy|Livelap[bB]ot|OpenHoseBot|CapsuleChecker|collection@infegy\.com|IstellaBot|DeuSu\/|betaBot|Cliqzbot\/|MojeekBot\/|netEstate NE Crawler|SafeSearch microdata crawler|Gluten Free Crawler\/|Sonic|Sysomos|Trove|deadlinkchecker|Slack-ImgProxy|Embedly|RankActiveLinkBot|iskanie|SafeDNSBot|SkypeUriPreview|Veoozbot|Slackbot|redditbot|datagnionbot|Google-Adwords-Instant|adbeat_bot|WhatsApp|contxbot|pinterest\.com\/bot|electricmonk|GarlikCrawler|BingPreview\/|vebidoobot|FemtosearchBot|Yahoo Link Preview|MetaJobBot|DomainStatsBot|mindUpBot|Daum\/|Jugendschutzprogramm-Crawler|Xenu Link Sleuth|Pcore-HTTP|moatbot|KosmioBot|[pP]ingdom|AppInsights|PhantomJS|Gowikibot|PiplBot|Discordbot|TelegramBot|Jetslide|newsharecounts|James BOT|Bark[rR]owler|TinEye|SocialRankIOBot|trendictionbot|Ocarinabot|epicbot|Primalbot|DuckDuckGo-Favicons-Bot|GnowitNewsbot|Leikibot|LinkArchiver|YaK\/|PaperLiBot|Digg Deeper|dcrawl|Snacktory|AndersPinkBot|Fyrebot|EveryoneSocialBot|Mediatoolkitbot|Luminator-robots|ExtLinksBot|SurveyBot|NING\/|okhttp|Nuzzel|omgili|PocketParser|YisouSpider|um-LN|ToutiaoSpider|MuckRack|Jamie's Spider|AHC\/|NetcraftSurveyAgent|Laserlikebot|^Apache-HttpClient|AppEngine-Google|Jetty|Upflow|Thinklab|Traackr\.com|Twurly|Mastodon|http_get|DnyzBot|botify|007ac9 Crawler|BehloolBot|BrandVerity|check_http|BDCbot|ZumBot|EZID|ICC-Crawler|ArchiveBot|^LCC |filterdb\.iss\.net\/crawler|BLP_bbot|BomboraBot|Buck\/|Companybook-Crawler|Genieo|magpie-crawler|Meltw
687aterNews|Moreover|newspaper\/|ScoutJet|(^| )sentry\/|StorygizeBot|UptimeRobot|OutclicksBot|seoscanners|Hatena|Google Web Preview|MauiBot|AlphaBot|SBL-BOT|IAS crawler|adscanner|Netvibes|acapbot|Baidu-YunGuanCe|bitlybot|blogmuraBot|Bot\.AraTurka\.com|bot-pge\.chlooe\.com|BoxcarBot|BTWebClient|ContextAd Bot|Digincore bot|Disqus|Feedly|Fetch\/|Fever|Flamingo_SearchEngine|FlipboardProxy|g2reader-bot|G2 Web Services|imrbot|K7MLWCBot|Kemvibot|Landau-Media-Spider|linkapediabot|vkShare|Siteimprove\.com|BLEXBot\/|DareBoost|ZuperlistBot\/|Miniflux\/|Feedspot|Diffbot\/|SEOkicks|tracemyfile|Nimbostratus-Bot|zgrab|PR-CY\.RU|AdsTxtCrawler|Datafeedwatch|Zabbix|TangibleeBot|google-xrawler|axios|Amazon CloudFront|Pulsepoint|CloudFlare-AlwaysOnline|Google-Structured-Data-Testing-Tool|WordupInfoSearch|WebDataStats|HttpUrlConnection|ZoomBot|VelenPublicWebCrawler|MoodleBot|jpg-newsbot|outbrain|W3C_Validator|Validator\.nu|W3C-checklink|W3C-mobileOK|W3C_I18n-Checker|FeedValidator|W3C_CSS_Validator|W3C_Unicorn|Google-PhysicalWeb|Blackboard|ICBot\/|BazQux|Twingly|Rivva|Experibot|awesomecrawler|Dataprovider\.com|GroupHigh\/|theoldreader\.com|AnyEvent|Uptimebot\.org|Nmap Scripting Engine|2ip\.ru|Clickagy|Caliperbot|MBCrawler|online-webceo-bot|B2B Bot|AddSearchBot|Google Favicon|HubSpot|Chrome-Lighthouse|HeadlessChrome|CheckMarkNetwork\/|www\.uptime\.com|Streamline3Bot\/|serpstatbot\/|MixnodeCache\/|^curl|SimpleScraper|RSSingBot|Jooblebot|fedoraplanet|Friendica|NextCloud|Tiny Tiny RSS|RegionStuttgartBot|Bytespider|Datanyze|Google-Site-Verification|TrendsmapResolver|tweetedtimes|NTENTbot|Gwene|SimplePie|SearchAtlas|Superfeedr|feedbot|UT-Dorkbot|Amazonbot|SerendeputyBot|Eyeotabot|officestorebot|Neticle Crawler|SurdotlyBot|LinkisBot|AwarioSmartBot|AwarioRssBot|RyteBot|FreeWebMonitoring SiteChecker|AspiegelBot|NAVER Blog Rssbot|zenback bot|SentiBot|Domains Project\/|Pandalytics|VKRobot|bidswitchbot|tigerbot|NIXStatsbot|Atom Feed Robot|[Cc]urebot|PagePeeker\/|Vigil\/|rssbot\/|startmebot\/|JobboerseBot|seewithkids|NINJA bot|Cutbot|BublupBot|BrandONbot|RidderBot|Taboolabot|Dubbotbot|FindITAnswersbot|infoobot|Refindbot|BlogTraffic\/\d\.\d+ Feed-Fetcher|SeobilityBot|Cincraw|Dragonbot|VoluumDSP-content-bot|FreshRSS|BitBot|^PHP-Curl-Class|Google-Certificates-Bridge|centurybot|Viber|e\.ventures Investment Crawler|evc-batch|PetalBot|virustotal|(^| )PTST\/|minicrawler|Cookiebot|trovitBot|seostar\.co|IonCrawl|Uptime-Kuma|Seekport|FreshpingBot|Feedbin|CriteoBot|Snap URL Preview Service|Better Uptime Bot|RuxitSynthetic|Google-Read-Aloud|Valve\/Steam|OdklBot\/|GPTBot|ChatGPT-User|YandexRenderResourcesBot\/|LightspeedSystemsCrawler|ev-crawler\/|BitSightBot\/|woorankreview\/|Google-Safety|AwarioBot|DataForSeoBot|Linespider|WellKnownBot|A Patent Crawler|StractBot|search\.marginalia\.nu|YouBot|Nicecrawler|Neevabot|BrightEdge Crawler|SiteCheckerBotCrawler|TombaPublicWebCrawler|CrawlyProjectCrawler|KomodiaBot|KStandBot|CISPA Webcrawler|MTRobot|hyscore\.io|AlexandriaOrgBot|2ip bot|Yellowbrandprotectionbot|SEOlizer|vuhuvBot|INETDEX-BOT|Synapse|t3versionsBot|deepnoc|Cocolyzebot|hypestat|ReverseEngineeringBot|sempi\.tech|Iframely|MetaInspector|node-fetch|lkxscan|python-opengraph|OpenGraphCheck|developers\.google\.com\/\+\/web\/snippet|SenutoBot|MaCoCu|NewsBlur|inoreader|NetSystemsResearch|PageThing|WordPress\/|PhxBot|ImagesiftBot|Expanse|InternetMeasurement|^BW\/|GeedoBot|Audisto Crawler|PerplexityBot\/|[cC]laude[bB]ot|Monsidobot|GroupMeBot|Vercelbot|vercel-screenshot/),zR=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,GR=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
687sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,QR=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,KR=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function YR(e){return zR.test(e)||GR.test(e.slice(0,4))}function JR(e){return QR.test(e)||KR.test(e.slice(0,4))}function ZR(e){return/iPad|iPhone|iPod/.test(e)}function XR(e){return/android/i.test(e)}function eO(e){return/Windows/.test(e)}function tO(e){return/Mac OS X/.test(e)}const nO=[{name:"Samsung",regex:/SamsungBrowser/i},{name:"Edge",regex:/edg(?:[ea]|ios)?\//i},{name:"Firefox",regex:/firefox|iceweasel|fxios/i},{name:"Chrome",regex:/chrome|crios|crmo/i},{name:"Safari",regex:/safari|applewebkit/i}];function rO(e){for(const t of nO)if(t.regex.test(e))return t.name;return""}function dv(e,t={}){let n=!1,r=!1,i=!1,o=!1;if(e==="Amazon CloudFront")t["cloudfront-is-mobile-viewer"]==="true"&&(n=!0,r=!0),t["cloudfront-is-tablet-viewer"]==="true"&&(n=!1,r=!0),t["cloudfront-is-desktop-viewer"]==="true"&&(n=!1,r=!1),t["cloudfront-is-ios-viewer"]==="true"&&(i=!0),t["cloudfront-is-android-viewer"]==="true"&&(o=!0);else if(t&&t["cf-device-type"])switch(t["cf-device-type"]){case"mobile":n=!0,r=!0;break;case"tablet":n=!1,r=!0;break;case"desktop":n=!1,r=!1;break}else n=YR(e),r=JR(e),i=ZR(e),o=XR(e);const s=eO(e),a=tO(e),c=rO(e),l=c==="Safari",u=c==="Firefox",f=c==="Edge",d=c==="Chrome",h=c==="Samsung",p=qR.test(e);return{userAgent:e,isMobile:n,isMobileOrTablet:r,isTablet:!n&&r,isDesktop:!r,isIos:i,isAndroid:o,isWindows:s,isMacOS:a,isApple:a||i,isDesktopOrTablet:!n,isSafari:l,isFirefox:u,isEdge:f,isChrome:d,isSamsung:h,isCrawler:p}}const iO=wt(()=>{const e=en(),t=e.public.device.defaultUserAgent;let n;{const r=navigator.userAgent||t;n=Ut(dv(r)),e.public.device.refreshOnResize&&window.addEventListener("resize",()=>{setTimeout(()=>{const i=dv(navigator.userAgent||r);Object.entries(i).forEach(([o,s])=>{n[o]=s})},50)})}return{provide:{device:n}}});var zh=function(e,t){return zh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},zh(e,t)};function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zh(e,t);function n(){this.constructor=e}
687e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var M=function(){return M=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},M.apply(this,arguments)};function ar(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Jr(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Zr(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1],o=l;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(l);break}o[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(u){l=[6,u],i=0}finally{r=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Vt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var yd="Invariant Violation",hv=Object.setPrototypeOf,oO=hv===void 0?function(e,t){return e.__proto__=t,e}:hv,M3=function(e){Rn(t,e);function t(n){n===void 0&&(n=yd);var r=e.call(this,typeof n=="number"?yd+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=yd,oO(r,t.prototype),r}return t}(Error);function Qi(e,t){if(!e)throw new M3(t)}var D3=["debug","log","warn","error","silent"],sO=D3.indexOf("log");function qc(e){return function(){if(D3.indexOf(e)>=sO){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=qc("debug"),e.log=qc("log"),e.warn=qc("warn"),e.error=qc("error")})(Qi||(Qi={}));var Ym="3.13.6";function Pn(e){try{return e()}catch{}}const Gh=Pn(function(){return globalThis})||Pn(function(){return window})||Pn(function(){return self})||Pn(function(){return global})||Pn(function(){return Pn.constructor("return this")()});var pv=new Map;function Qh(e){var t=pv.get(e)||1;return pv.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function N3(e,t){t===void 0&&(t=0);var n=Qh("stringifyForDisplay");return JSON.stringify(e,function(r,i){return i===void 0?n:i},t).split(JSON.stringify(n)).join("<undefined>")}function zc(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(typeof t=="number"){var i=t;t=Jm(i),t||(t=Zm(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var _e=Object.assign(function(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];t||Qi(t,Jm(n,r)||Zm(n,r))},{debug:zc(Qi.debug),log:zc(Qi.log),warn:zc(Qi.warn),error:zc(Qi.error)});function Xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new M3(Jm(e,t)||Zm(e,t))}var mv=Symbol.for("ApolloErrorMessageHandler_"+Ym);function P3(e){if(typeof e=="string")return e;try{return N3(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Jm(e,t){if(t===void 0&&(t=[]),!!e)return Gh[mv]&&Gh[mv](e,t.map(P3))}function Zm(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Ym,message:e,args:t.map(P3)})))}function aO(e,t){if(!!!e)throw new Error(t)}const L3={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
vendor: 8,467 bytes, lines 687-694
687Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},cO=new Set(Object.keys(L3));function gv(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&cO.has(t)}var yv;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(yv||(yv={}));var at;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(at||(at={}));function vv(e){return e===9||e===32}function lO(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(h=>h.length===0||vv(h.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=a||c,u=!i||e.length>70||l||o||s;let f="";const d=i&&vv(e.charCodeAt(0));return(u&&!d||o)&&(f+=` 688`),f+=n,(u||l)&&(f+=` 689`),'"""'+f+'"""'}const uO=10,$3=2;function fO(e){return rf(e,[])}function rf(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return dO(e,t);default:return String(e)}}function dO(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(hO(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:rf(r,n)}else if(Array.isArray(e))return mO(e,n);return pO(e,n)}function hO(e){return typeof e.toJSON=="function"}function pO(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>$3?"["+gO(e)+"]":"{ "+n.map(([i,o])=>i+": "+rf(o,t)).join(", ")+" }"}function mO(e,t){if(e.length===0)return"[]";if(t.length>$3)return"[Array]";const n=Math.min(uO,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(rf(e[o],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function gO(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}function yO(e){return`"${e.replace(vO,_O)}"`}const vO=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function _O(e){return bO[e.charCodeAt(0)]}const bO=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],of=Object.freeze({});function zn(e,t,n=L3){const r=new Map;for(const g of Object.values(at))r.set(g,wO(t,g));let i,o=Array.isArray(e),s=[e],a=-1,c=[],l=e,u,f;const d=[],h=[];do{a++;const g=a===s.length,_=g&&c.length!==0;if(g){if(u=h.length===0?void 0:d[d.length-1],l=f,f=h.pop(),_)if(o){l=l.slice();let b=0;for(const[w,S]of c){const k=w-b;S===null?(l.splice(k,1),b++):l[k]=S}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[b,w]of c)l[b]=w}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(f){if(u=o?a:s[a],l=f[u],l==null)continue;d.push(u)}let v;if(!Array.isArray(l)){var p,m;gv(l)||aO(!1,`Invalid AST Node: ${fO(l)}.`);const b=g?(p=r.get(l.kind))===null||p===void 0?void 0:p.leave:(m=r.get(l.kind))===null||m===void 0?void 0:m.enter;if(v=b==null?void 0:b.call(t,l,u,f,d,h),v===of)break;if(v===!1){if(!g){d.pop();continue}}else if(v!==void 0&&(c.push([u,v]),!g))if(gv(v))l=v;else{d.pop();continue}}if(v===void 0&&_&&c.push([u,l]),g)d.pop();else{var y;i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(l),s=o?l:(y=n[l.kind])!==null&&y!==void 0?y:[],a=-1,c=[],f&&h.push(f),f=l}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:e}function wO(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function F3(e){return zn(e,kO)}const SO=80,kO={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ge(e.definitions,` 690 691`)},OperationDefinition:{leave(e){const t=Me("(",ge(e.variableDefinitions,", "),")"),n=ge([e.operation,ge([e.name,t]),ge(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Me(" = ",n)+Me(" ",ge(r," "))},SelectionSet:{leave:({selections:e})=>On(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Me("",e,": ")+t;let s=o+Me("(",ge(n,", "),")");return s.length>SO&&(s=o+Me(`( 692`,bl(ge(n,` 693`)),` 694)`)),ge([s,ge(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Me(" ",ge(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ge(["...",Me("on ",e),ge(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Me("(",ge(n,", "),")")} on ${t} ${Me("",ge(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?lO(e):yO(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ge(e,", ")+"]"}
694,ObjectValue:{leave:({fields:e})=>"{"+ge(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Me("(",ge(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Me("",e,` 695`)+ge(["schema",ge(t," "),On(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Me("",e,` 696`)+ge(["scalar",t,ge(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Me("",e,` 697`)+ge(["type",t,Me("implements ",ge(n," & ")),ge(r," "),On(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Me("",e,` 698`)+t+(_v(n)?Me(`( 699`,bl(ge(n,` 700`)),` 701)`):Me("(",ge(n,", "),")"))+": "+r+Me(" ",ge(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Me("",e,` 702`)+ge([t+": "+n,Me("= ",r),ge(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Me("",e,` 703`)+ge(["interface",t,Me("implements ",ge(n," & ")),ge(r," "),On(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Me("",e,` 704`)+ge(["union",t,ge(n," "),Me("= ",ge(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Me("",e,` 705`)+ge(["enum",t,ge(n," "),On(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Me("",e,` 706`)+ge([t,ge(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Me("",e,` 707`)+ge(["input",t,ge(n," "),On(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Me("",e,` 708`)+"directive @"+t+(_v(n)?Me(`( 709`,bl(ge(n,` 710`)),` 711)`):Me("(",ge(n,", "),")"))+(r?" repeatable":"")+" on "+ge(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ge(["extend schema",ge(e," "),On(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ge(["extend scalar",e,ge(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ge(["extend type",e,Me("implements ",ge(t," & ")),ge(n," "),On(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ge(["extend interface",e,Me("implements ",ge(t," & ")),ge(n," "),On(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ge(["extend union",e,ge(t," "),Me("= ",ge(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ge(["extend enum",e,ge(t," "),On(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ge(["extend input",e,ge(t," "),On(n)]," ")}};function ge(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function On(e){return Me(`{ 712`,bl(ge(e,` 713`)),` 714}`)}function Me(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function bl(e){return Me(" ",e.replace(/\n/g,` 715 `))}function _v(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` 716`)))!==null&&t!==void 0?t:!1}function bv(e){return e.kind===at.FIELD||e.kind===at.FRAGMENT_SPREAD||e.kind===at.INLINE_FRAGMENT}function pc(e,t){var n=e.directives;return!n||!n.length?!0:TO(n).every(function(r){var i=r.directive,o=r.ifArgument,s=!1;return o.value.kind==="Variable"?(s=t&&t[o.value.name.value],_e(s!==void 0,78,i.name.value)):s=o.value.value,i.name.value==="skip"?!s:s})}function Ka(e,t,n){var r=new Set(e),i=r.size;return zn(t,{Directive:function(o){if(r.delete(o.name.value)&&(!n||!r.size))return of}}),n?!r.size:r.size<i}function EO(e){return e&&Ka(["client","export"],e,!0)}function CO(e){var t=e.name.value;return t==="skip"||t==="include"}function TO(e){var t=[];return e&&e.length&&e.forEach(function(n){if(CO(n)){var r=n.arguments,i=n.name.value;_e(r&&r.length===1,79,i);var o=r[0];_e(o.name&&o.name.value==="if",80,i);var s=o.value;_e(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),81,i),t.push({directive:n,ifArgument:o})}}),t}function IO(e){var t,n,r=(t=e.directives)===null||t===void 0?void 0:t.find(function(o){var s=o.name;return s.value==="unmask"});if(!r)return"mask";var i=(n=r.arguments)===null||n===void 0?void 0:n.find(function(o){var s=o.name;return s.value==="mode"});return globalThis.__DEV__!==!1&&i&&(i.value.kind===at.VARIABLE?globalThis.__DEV__!==!1&&_e.warn(82):i.value.kind!==at.STRING?globalThis.__DEV__!==!1&&_e.warn(83):i.value.value!=="migrate"&&globalThis.__DEV__!==!1&&_e.warn(84,i.value.value)),i&&"value"in i.value&&i.value.value==="migrate"?"migrate":"unmask"}const xO=()=>
716Object.create(null),{forEach:AO,slice:wv}=Array.prototype,{hasOwnProperty:RO}=Object.prototype;class Br{constructor(t=!0,n=xO){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return AO.call(t,r=>n=n.getChildTrie(r)),RO.call(n,"data")?n.data:n.data=this.makeData(wv.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r<i;++r){const o=n.mapFor(t[r],!1);n=o&&o.get(t[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(t){let n;if(t.length){const r=t[0],i=this.mapFor(r,!1),o=i&&i.get(r);o&&(n=o.removeArray(wv.call(t,1)),!o.data&&!o.weak&&!(o.strong&&o.strong.size)&&i.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new Br(this.weakness,this.makeData)),r}mapFor(t,n){return this.weakness&&OO(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function OO(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var MO=Pn(function(){return navigator.product})=="ReactNative",_o=typeof WeakMap=="function"&&!(MO&&!global.HermesInternal),Xm=typeof WeakSet=="function",B3=typeof Symbol=="function"&&typeof Symbol.for=="function",sf=B3&&Symbol.asyncIterator;Pn(function(){return window.document.createElement});Pn(function(){return navigator.userAgent.indexOf("jsdom")>=0});function ft(e){return e!==null&&typeof e=="object"}function DO(e,t){var n=t,r=[];e.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw Xt(85,o.operation,o.name?" named '".concat(o.name.value,"'"):"");o.kind==="FragmentDefinition"&&r.push(o)}),typeof n>"u"&&(_e(r.length===1,86,r.length),n=r[0].name.value);var i=M(M({},e),{definitions:Vt([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return i}function Os(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function af(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return _e(r,87,n),r||null}default:return null}}function NO(e){var t=!0;return zn(e,{FragmentSpread:function(n){if(t=!!n.directives&&n.directives.some(function(r){return r.name.value==="unmask"}),!t)return of}}),t}function PO(){}class Kh{constructor(t=1/0,n=PO){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function Yh(){}const LO=Yh,$O=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},FO=typeof WeakMap<"u"?WeakMap:Map,BO=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Yh,unregister:Yh}},HO=10024;class lu{constructor(t=1/0,n=LO){this.max=t,this.dispose=n,this.map=new FO,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let i=0;i<HO;i++){const o=r.next().value;if(!o)break;this.unfinalizedNodes.delete(o);const s=o.key;delete o.key,o.keyRef=new $O(s),this.registry.register(s,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new BO(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var vd=new WeakSet;function H3(e){e.size<=(e.max||-1)||vd.has(e)||(vd.add(e),setTimeout(function(){e.clean(),vd.delete(e)},100))}var j3=function(e,t){var n=new lu(e,t);return n.set=function(r,i){var o=lu.prototype.set.call(this,r,i);return H3(this),o},n},jO=function(e,t){var n=new Kh(e,t);return n.set=function(r,i){var o=Kh.prototype.set.call(this,r,i);return H3(this),o},n},VO=Symbol.for("apollo.cacheSize"),Mr=M({},Gh[VO]),qi={};function V3(e,t){qi[e]=t}var UO=globalThis.__DEV__!==!1?GO:void 0,WO=globalThis.__DEV__!==!1?QO:void 0,qO=globalThis.__DEV__!==!1?U3:void 0;function zO(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,Mr[n]||r]}))}function GO(){var e,t,n,r,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:zO(),sizes:M({print:(e=qi.print)===null||e===void 0?void 0:e.call(qi),parser:(t=qi.parser)===null||t===void 0?void 0:t.call(qi),canonicalStringify:(n=qi.canonicalStringify)===null||n===void 0?void 0:n.call(qi),links:Zh(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:q3(this.queryManager.documentTransform)}},(i=(r=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(r))}}function U3(){return{cache:{fragmentQueryDocuments:Xr(this.getFragmentDoc)}}}function QO(){var e=this.config.fragments;return M(M({},U3.apply(this)),{addTypenameDocumentTransform:q3(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Xr(this.storeReader.executeSelectionSet),executeSubSelectedArray:Xr(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Xr(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Xr(e==null?void 0:e.findFragmentSpreads),lookup:Xr(e==null?void 0:e.lookup),transform:Xr(e==null?void 0:e.transform)}})}function KO(e){return!!e&&"dirtyKey"in e}function Xr(e){return KO(e)?e.size:void 0}function W3(e){return e!=null}function q3(e){return Jh(e).map(function(t){return{cache:t}})}function Jh(e){return e?Vt(Vt([Xr(e==null?void 0:e.performWork)],Jh(e==null?void 0:e.left),
716!0),Jh(e==null?void 0:e.right),!0).filter(W3):[]}function Zh(e){var t;return e?Vt(Vt([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],Zh(e==null?void 0:e.left),!0),Zh(e==null?void 0:e.right),!0).filter(W3):[]}var mi=Object.assign(function(t){return JSON.stringify(t,YO)},{reset:function(){Fo=new jO(Mr.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&V3("canonicalStringify",function(){return Fo.size});var Fo;mi.reset();function YO(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(JO))return t;var i=JSON.stringify(r),o=Fo.get(i);if(!o){r.sort();var s=JSON.stringify(r);o=Fo.get(s)||r,Fo.set(i,o),Fo.set(s,o)}var a=Object.create(n);return o.forEach(function(c){a[c]=t[c]}),a}}return t}function JO(e,t,n){return t===0||n[t-1]<=e}function Xo(e){return{__ref:String(e)}}function ze(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function ZO(e){return ft(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function XO(e){return e.kind==="StringValue"}function eM(e){return e.kind==="BooleanValue"}function tM(e){return e.kind==="IntValue"}function nM(e){return e.kind==="FloatValue"}function rM(e){return e.kind==="Variable"}function iM(e){return e.kind==="ObjectValue"}function oM(e){return e.kind==="ListValue"}function sM(e){return e.kind==="EnumValue"}function aM(e){return e.kind==="NullValue"}function ds(e,t,n,r){if(tM(n)||nM(n))e[t.value]=Number(n.value);else if(eM(n)||XO(n))e[t.value]=n.value;else if(iM(n)){var i={};n.fields.map(function(s){return ds(i,s.name,s.value,r)}),e[t.value]=i}else if(rM(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(oM(n))e[t.value]=n.values.map(function(s){var a={};return ds(a,t,s,r),a[t.value]});else if(sM(n))e[t.value]=n.value;else if(aM(n))e[t.value]=null;else throw Xt(96,t.value,n.kind)}function cM(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(i){n[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var s=o.name,a=o.value;return ds(n[i.name.value],s,a,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(i){var o=i.name,s=i.value;return ds(r,o,s,t)})),z3(e.name.value,r,n)}var lM=["connection","include","skip","client","rest","export","nonreactive"],Ys=mi,z3=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(a){i[a]=t[a]}),"".concat(n.connection.key,"(").concat(Ys(i),")")}else return n.connection.key;var o=e;if(t){var s=Ys(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){lM.indexOf(a)===-1&&(n[a]&&Object.keys(n[a]).length?o+="@".concat(a,"(").concat(Ys(n[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=Ys;return Ys=e,t}});function cf(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var i=r.name,o=r.value;return ds(n,i,o,t)}),n}return null}function Dr(e){return e.alias?e.alias.value:e.name.value}function Xh(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++){var s=o[i];if(Si(s)){if(s.name.value==="__typename")return e[Dr(s)]}else r?r.push(s):r=[s]}if(typeof e.__typename=="string")return e.__typename;if(r)for(var a=0,c=r;a<c.length;a++){var s=c[a],l=Xh(e,af(s,n).selectionSet,n);if(typeof l=="string")return l}}function Si(e){return e.kind==="Field"}function uM(e){return e.kind==="InlineFragment"}function Ms(e){_e(e&&e.kind==="Document",88);var t=e.definitions.filter(function(n){return n.kind!=="FragmentDefinition"}).map(function(n){if(n.kind!=="OperationDefinition")throw Xt(89,n.kind);return n});return _e(t.length<=1,90,t.length),e}function ho(e){return Ms(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function la(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function Ds(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function G3(e){var t=ho(e);return _e(t&&t.operation==="query",91),t}function Q3(e){_e(e.kind==="Document",92),_e(e.definitions.length<=1,93);var t=e.definitions[0];return _e(t.kind==="FragmentDefinition",94),t}function Ns(e){Ms(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if(i.kind==="OperationDefinition"){var o=i.operation;if(o==="query"||o==="mutation"||o==="subscription")return i}i.kind==="FragmentDefinition"&&!t&&(t=i)}if(t)return t;throw Xt(95)}function eg(e){var t=Object.create(null),n=e&&e.variableDefinitions;
716return n&&n.length&&n.forEach(function(r){r.defaultValue&&ds(t,r.variable.name,r.defaultValue)}),t}let $t=null;const Sv={};let fM=1;const dM=()=>class{constructor(){this.id=["slot",fM++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=$t;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===Sv)break;return t!==$t&&($t.slots[this.id]=n),!0}return $t&&($t.slots[this.id]=Sv),!1}getValue(){if(this.hasValue())return $t.slots[this.id]}withValue(t,n,r,i){const o={__proto__:null,[this.id]:t},s=$t;$t={parent:s,slots:o};try{return n.apply(i,r)}finally{$t=s}}static bind(t){const n=$t;return function(){const r=$t;try{return $t=n,t.apply(this,arguments)}finally{$t=r}}}static noContext(t,n,r){if($t){const i=$t;try{return $t=null,t.apply(r,n)}finally{$t=i}}else return t.apply(r,n)}};function kv(e){try{return e()}catch{}}const _d="@wry/context:Slot",hM=kv(()=>globalThis)||kv(()=>global)||Object.create(null),Ev=hM,mc=Ev[_d]||Array[_d]||function(e){try{Object.defineProperty(Ev,_d,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(dM()),{bind:cJ,noContext:lJ}=mc,lf=new mc,{hasOwnProperty:pM}=Object.prototype,tg=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function ng(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const Ya=[],mM=100;function hs(e,t){if(!e)throw new Error(t||"assertion failure")}function K3(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Y3(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function J3(e){return e.slice(0)}class uf{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++uf.count}peek(){if(this.value.length===1&&!ki(this))return Cv(this),this.value[0]}recompute(t){return hs(!this.recomputing,"already recomputing"),Cv(this),ki(this)?gM(this,t):Y3(this.value)}setDirty(){this.dirty||(this.dirty=!0,Z3(this),ng(this))}dispose(){this.setDirty(),r5(this),rg(this,(t,n)=>{t.setDirty(),i5(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=Ya.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(tg(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),Ya.push(this.deps),this.deps=null)}}uf.count=0;function Cv(e){const t=lf.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),ki(e)?e5(t,e):t5(t,e),t}function gM(e,t){return r5(e),lf.withValue(e,yM,[e,t]),_M(e,t)&&vM(e),Y3(e.value)}function yM(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=J3(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!K3(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(i){e.value[1]=i}e.recomputing=!1}function ki(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function vM(e){e.dirty=!1,!ki(e)&&X3(e)}function Z3(e){rg(e,e5)}function X3(e){rg(e,t5)}function rg(e,t){const n=e.parents.size;if(n){const r=tg(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function e5(e,t){hs(e.childValues.has(t)),hs(ki(t));const n=!ki(e);if(!e.dirtyChildren)e.dirtyChildren=Ya.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&Z3(e)}function t5(e,t){hs(e.childValues.has(t)),hs(!ki(t));const n=e.childValues.get(t);n.length===0?e.childValues.set(t,J3(t.value)):K3(n,t.value)||e.setDirty(),n5(e,t),!ki(e)&&X3(e)}function n5(e,t){const n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(Ya.length<mM&&Ya.push(n),e.dirtyChildren=null))}function r5(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{i5(e,n)}),e.forgetDeps(),hs(e.dirtyChildren===null)}function i5(e,t){t.parents.delete(e),e.childValues.delete(t),n5(e,t)}function _M(e,t){if(typeof e.subscribe=="function")try{ng(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const bM={setDirty:!0,dispose:!0,forget:!0};function o5(e){const t=new Map;function n(r){const i=lf.getValue();if(i){let o=t.get(r);o||t.set(r,o=new Set),i.dependOn(o)}}return n.dirty=function(i,o){const s=t.get(i);if(s){const a=o&&pM.call(bM,o)?o:"setDirty";
716tg(s).forEach(c=>c[a]()),t.delete(i),ng(s)}},n}let Tv;function wM(...e){return(Tv||(Tv=new Br(typeof WeakMap=="function"))).lookupArray(e)}const bd=new Set;function Ja(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=wM,normalizeResult:i,subscribe:o,cache:s=Kh}=Object.create(null)){const a=typeof s=="function"?new s(t,d=>d.dispose()):s,c=function(){const d=r.apply(null,n?n.apply(null,arguments):arguments);if(d===void 0)return e.apply(null,arguments);let h=a.get(d);h||(a.set(d,h=new uf(e)),h.normalizeResult=i,h.subscribe=o,h.forget=()=>a.delete(d));const p=h.recompute(Array.prototype.slice.call(arguments));return a.set(d,h),bd.add(a),lf.hasValue()||(bd.forEach(m=>m.clean()),bd.clear()),p};Object.defineProperty(c,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:a});function l(d){const h=d&&a.get(d);h&&h.setDirty()}c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))};function u(d){const h=d&&a.get(d);if(h)return h.peek()}c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))};function f(d){return d?a.delete(d):!1}return c.forgetKey=f,c.forget=function(){return f(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function SM(e){return e}var s5=function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=Xm?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(SM,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(i){var o=t(i)?n:r;return o.transformDocument(i)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Br(_o);this.performWork=Ja(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var i=t.getCacheKey(r);if(i)return _e(Array.isArray(i),77),n.lookupArray(i)},max:Mr["documentTransform.cache"],cache:lu})}},e.prototype.performWork=function(t){return Ms(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e}(),Ta,si=Object.assign(function(e){var t=Ta.get(e);return t||(t=F3(e),Ta.set(e,t)),t},{reset:function(){Ta=new j3(Mr.print||2e3)}});si.reset();globalThis.__DEV__!==!1&&V3("print",function(){return Ta?Ta.size:0});var gt=Array.isArray;function ur(e){return Array.isArray(e)&&e.length>0}var Iv={kind:at.FIELD,name:{kind:at.NAME,value:"__typename"}};function a5(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===at.FRAGMENT_SPREAD&&a5(t[n.name.value],t)})}function kM(e){return a5(ho(e)||Q3(e),Os(Ds(e)))?null:e}function EM(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(o,s){s(r)&&(i=o)}),i}}function xv(e){var t=new Map;return function(r){r===void 0&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function c5(e,t){Ms(t);for(var n=xv(""),r=xv(""),i=function(g){for(var _=0,v=void 0;_<g.length&&(v=g[_]);++_)if(!gt(v)){if(v.kind===at.OPERATION_DEFINITION)return n(v.name&&v.name.value);if(v.kind===at.FRAGMENT_DEFINITION)return r(v.name.value)}return globalThis.__DEV__!==!1&&_e.error(97),null},o=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===at.OPERATION_DEFINITION&&++o;var a=EM(e),c=function(g){return ur(g)&&g.map(a).some(function(_){return _&&_.remove})},l=new Map,u=!1,f={enter:function(g){if(c(g.directives))return u=!0,null}},d=zn(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(g,_,v,b,w){var S=i(w);S&&S.variables.add(g.name.value)}},FragmentSpread:{enter:function(g,_,v,b,w){if(c(g.directives))return u=!0,null;var S=i(w);S&&S.fragmentSpreads.add(g.name.value)}},FragmentDefinition:{enter:function(g,_,v,b){l.set(JSON.stringify(b),g)},leave:function(g,_,v,b){var w=l.get(JSON.stringify(b));if(g===w)return g;if(o>0&&g.selectionSet.selections.every(function(S){return S.kind===at.FIELD&&S.name.value==="__typename"}))return r(g.name.value).removed=!0,u=!0,null}},Directive:{leave:function(g){if(a(g))return u=!0,null}}});if(!u)return t;var h=function(g){return g.transitiveVars||(g.transitiveVars=new Set(g.variables),g.removed||g.fragmentSpreads.forEach(function(_){h(r(_)).transitiveVars.forEac
716h(function(v){g.transitiveVars.add(v)})})),g},p=new Set;d.definitions.forEach(function(g){g.kind===at.OPERATION_DEFINITION?h(n(g.name&&g.name.value)).fragmentSpreads.forEach(function(_){p.add(_)}):g.kind===at.FRAGMENT_DEFINITION&&o===0&&!r(g.name.value).removed&&p.add(g.name.value)}),p.forEach(function(g){h(r(g)).fragmentSpreads.forEach(function(_){p.add(_)})});var m=function(g){return!!(!p.has(g)||r(g).removed)},y={enter:function(g){if(m(g.name.value))return null}};return kM(zn(d,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(g){if(g.variableDefinitions){var _=h(n(g.name&&g.name.value)).transitiveVars;if(_.size<g.variableDefinitions.length)return M(M({},g),{variableDefinitions:g.variableDefinitions.filter(function(v){return _.has(v.variable.name.value)})})}}}}))}var ig=Object.assign(function(e){return zn(e,{SelectionSet:{enter:function(t,n,r){if(!(r&&r.kind===at.OPERATION_DEFINITION)){var i=t.selections;if(i){var o=i.some(function(a){return Si(a)&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)});if(!o){var s=r;if(!(Si(s)&&s.directives&&s.directives.some(function(a){return a.name.value==="export"})))return M(M({},t),{selections:Vt(Vt([],i,!0),[Iv],!1)})}}}}}})},{added:function(e){return e===Iv}});function CM(e){var t=Ns(e),n=t.operation;if(n==="query")return e;var r=zn(e,{OperationDefinition:{enter:function(i){return M(M({},i),{operation:"query"})}}});return r}function l5(e){Ms(e);var t=c5([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}function TM(e){return Ms(e),zn(e,{FragmentSpread:function(t){var n;if(!(!((n=t.directives)===null||n===void 0)&&n.some(function(r){return r.name.value==="unmask"})))return M(M({},t),{directives:Vt(Vt([],t.directives||[],!0),[{kind:at.DIRECTIVE,name:{kind:at.NAME,value:"nonreactive"}}
716],!1)})}})}var IM=Object.prototype.hasOwnProperty;function Av(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ff(e)}function ff(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Ei,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var xM=function(e,t,n){return this.merge(e[n],t[n])},Ei=function(){function e(t){t===void 0&&(t=xM),this.reconciler=t,this.isObject=ft,this.pastCopies=new Set}return e.prototype.merge=function(t,n){for(var r=this,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return ft(n)&&ft(t)?(Object.keys(n).forEach(function(s){if(IM.call(t,s)){var a=t[s];if(n[s]!==a){var c=r.reconciler.apply(r,Vt([t,n,s],i,!1));c!==a&&(t=r.shallowCopyForMerge(t),t[s]=c)}}else t=r.shallowCopyForMerge(t),t[s]=n[s]}),t):n},e.prototype.shallowCopyForMerge=function(t){return ft(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=M({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e}();function AM(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=RM(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 717In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RM(e,t){if(e){if(typeof e=="string")return Rv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rv(e,t)}}function Rv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ov(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function og(e,t,n){return t&&Ov(e.prototype,t),n&&Ov(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var sg=function(){return typeof Symbol=="function"},ag=function(e){return sg()&&!!Symbol[e]},cg=function(e){return ag(e)?Symbol[e]:"@@"+e};sg()&&!ag("observable")&&(Symbol.observable=Symbol("observable"));var OM=cg("iterator"),ep=cg("observable"),u5=cg("species");function uu(e,t){var n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function Js(e){var t=e.constructor;return t!==void 0&&(t=t[u5],t===null&&(t=void 0)),t!==void 0?t:Ke}function MM(e){return e instanceof Ke}function ps(e){ps.log?ps.log(e):setTimeout(function(){throw e})}function wl(e){Promise.resolve().then(function(){try{e()}catch(t){ps(t)}})}function f5(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var n=uu(t,"unsubscribe");n&&n.call(t)}}catch(r){ps(r)}}function tp(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function DM(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(d5(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function d5(e,t,n){e._state="running";var r=e._observer;try{var i=uu(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(tp(e),i)i.call(r,n);else throw n;break;case"complete":tp(e),i&&i.call(r);break}}catch(o){ps(o)}e._state==="closed"?f5(e):e._state==="running"&&(e._state="ready")}function wd(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],wl(function(){return DM(e)});return}d5(e,t,n)}}var NM=function(){function e(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var i=new PM(this);try{this._cleanup=r.call(void 0,i)}catch(o){i.error(o)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(tp(this),f5(this))},og(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e}(),PM=function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(r){wd(this._subscription,"next",r)},t.error=function(r){wd(this._subscription,"error",r)},t.complete=function(){wd(this._subscription,"complete")},og(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e}(),Ke=function(){function e(n){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof n!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=n}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new NM(r,this._subscriber)},t.forEach=function(r){var i=this;return new Promise(function(o,s){if(typeof r!="function"){s(new TypeError(r+" is not a function"));return}function a(){c.unsubscribe(),o()}var c=i.subscribe({next:function(l){try{r(l,a)}catch(u){s(u),c.unsubscribe()}},error:s,complete:o})})},t.map=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var o=Js(this);return new o(function(s){return i.subscribe({next:function(a){try{a=r(a)}catch(c){return s.error(c)}s.next(a)},error:function(a){s.error(a)},complete:function(){s.complete()}})})},t.filter=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var o=Js(this);return new o(function(s){return i.subscribe({next:function(a){try{if(!r(a))return}catch(c){return s.error(c)}s.next(a)},error:function(a){s.error(a)},complete:function(){s.complete()}})})},t.reduce=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var o=Js(this),s=arguments.length>1,a=!1,c=arguments[1],l=c;return new o(function(u){return i.subscribe({next:function(f){var d=!a;if(a=!0,!d||s)try{l=r(l,f)}catch(h){return u.error(h)}else l=f},error:function(f){u.error(f)},complete:function(){if(!a&&!s)return u.error(new TypeError("Cannot reduce an empty sequence"));u.next(l),u.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=Js(this);return new a(function(c){var l,u=0;function f(d){l=d.subscribe({next:function(h){c.next(h)},error:function(h){c.error(h)},complete:function(){u===o.length?(l=void 0,c.complete()):f(a.from(o[u++]))}})}return f(r),function(){l&&(l.unsubscribe(),l=void 0)}})},t.flatMap=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var o=Js(this);return new o(function(s){var a=[],c=i.subscribe({next:function(u){if(r)try{u=r(u)}catch(d){return s.error(d)}var f=o.from(u).subscribe({next:function(d){s.next(d)},error:function(d){s.error(d)},complete:function(){var d=a.indexOf(f);d>=0&&a.splice(d,1),l()}});a.push(f)},error:function(u){s.error(u)},complete:function(){l()}});
717function l(){c.closed&&a.length===0&&s.complete()}return function(){a.forEach(function(u){return u.unsubscribe()}),c.unsubscribe()}})},t[ep]=function(){return this},e.from=function(r){var i=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var o=uu(r,ep);if(o){var s=o.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return MM(s)&&s.constructor===i?s:new i(function(a){return s.subscribe(a)})}if(ag("iterator")&&(o=uu(r,OM),o))return new i(function(a){wl(function(){if(!a.closed){for(var c=AM(o.call(r)),l;!(l=c()).done;){var u=l.value;if(a.next(u),a.closed)return}a.complete()}})});if(Array.isArray(r))return new i(function(a){wl(function(){if(!a.closed){for(var c=0;c<r.length;++c)if(a.next(r[c]),a.closed)return;a.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=typeof this=="function"?this:e;return new s(function(a){wl(function(){if(!a.closed){for(var c=0;c<i.length;++c)if(a.next(i[c]),a.closed)return;a.complete()}})})},og(e,null,[{key:u5,get:function(){return this}}]),e}();sg()&&Object.defineProperty(Ke,Symbol("extensions"),{value:{symbol:ep,hostReportError:ps},configurable:!0});function LM(e){var t,n=e.Symbol;if(typeof n=="function")if(n.observable)t=n.observable;else{typeof n.for=="function"?t=n.for("https://github.com/benlesh/symbol-observable"):t=n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable";return t}var Do;typeof self<"u"?Do=self:typeof window<"u"?Do=window:typeof global<"u"?Do=global:typeof module<"u"?Do=module:Do=Function("return this")();LM(Do);var Mv=Ke.prototype,Dv="@@observable";Mv[Dv]||(Mv[Dv]=function(){return this});function $M(e){return e.catch(function(){}),e}var FM=Object.prototype.toString;function h5(e){return np(e)}function np(e,t){switch(FM.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(i,o){n[o]=np(i,t)}),n}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(i){r[i]=np(e[i],t)}),r}default:return e}}function BM(e){var t=new Set([e]);return t.forEach(function(n){ft(n)&&HM(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){ft(n[r])&&t.add(n[r])})}),e}function HM(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function fu(e){return globalThis.__DEV__!==!1&&BM(e),e}function Ia(e,t,n){var r=[];e.forEach(function(i){return i[t]&&r.push(i)}),r.forEach(function(i){return i[t](n)})}function Sd(e,t,n){return new Ke(function(r){var i={then:function(c){return new Promise(function(l){return l(c())})}};function o(c,l){return function(u){if(c){var f=function(){return r.closed?0:c(u)};i=i.then(f,f).then(function(d){return r.next(d)},function(d){return r.error(d)})}else r[l](u)}}var s={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then(function(){return r.complete()})}},a=e.subscribe(s);return function(){return a.unsubscribe()}})}function p5(e){function t(n){Object.defineProperty(e,n,{value:Ke})}return B3&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Nv(e){return e&&typeof e.then=="function"}var No=function(e){Rn(t,e);function t(n){var r=e.call(this,function(i){return r.addObserver(i),function(){return r.removeObserver(i)}})||this;return r.observers=new Set,r.promise=new Promise(function(i,o){r.resolve=i,r.reject=o}),r.handlers={next:function(i){r.sub!==null&&(r.latest=["next",i],r.notify("next",i),Ia(r.observers,"next",i))},error:function(i){var o=r.sub;o!==null&&(o&&setTimeout(function(){return o.unsubscribe()}),r.sub=null,r.latest=["error",i],r.reject(i),r.notify("error",i),Ia(r.observers,"error",i))},complete:function(){var i=r,o=i.sub,s=i.sources,a=s===void 0?[]:s;if(o!==null){var c=a.shift();c?Nv(c)?c.then(function(l){return r.sub=l.subscribe(r.handlers)},r.handlers.error):r.sub=c.subscribe(r.handlers):(o&&setTimeout(function(){return o.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Ia(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(i){r.reject(i),r.sources=[],r.handlers.error(i)},r.promise.catch(function(i){}),typeof n=="function"&&(n=[new Ke(n)]),Nv(n)?n.then(function(i){return r.start(i)},r.handlers.error):r.start(n),r}return t.prototype.start=function(n){this.sub===void 0&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],i=n[r];i&&i.call(n,this.latest[1]),this.sub===null&&r==="next"&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,r){var i=this.nextResultListeners;
717i.size&&(this.nextResultListeners=new Set,i.forEach(function(o){return o(n,r)}))},t.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(i,o){r||(r=!0,n(i,o))})},t}(Ke);p5(No);function es(e){return"incremental"in e}function jM(e){return"hasNext"in e&&"data"in e}function VM(e){return es(e)||jM(e)}function UM(e){return ft(e)&&"payload"in e}function m5(e,t){var n=e,r=new Ei;return es(t)&&ur(t.incremental)&&t.incremental.forEach(function(i){for(var o=i.data,s=i.path,a=s.length-1;a>=0;--a){var c=s[a],l=!isNaN(+c),u=l?[]:{};u[c]=o,o=u}n=r.merge(n,o)}),n}function Sl(e){var t=rp(e);return ur(t)}function rp(e){var t=ur(e.errors)?e.errors.slice(0):[];return es(e)&&ur(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function ms(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(r){r&&Object.keys(r).forEach(function(i){var o=r[i];o!==void 0&&(n[i]=o)})}),n}function kd(e,t){return ms(e,t,t.variables&&{variables:ms(M(M({},e&&e.variables),t.variables))})}var df=Symbol();function g5(e){return e.extensions?Array.isArray(e.extensions[df]):!1}function lg(e){return e.hasOwnProperty("graphQLErrors")}var WM=function(e){var t=Vt(Vt(Vt([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return ft(n)&&n.message||"Error message not found."}).join(` 718`)},Ln=function(e){Rn(t,e);function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,s=n.networkError,a=n.errorMessage,c=n.extraInfo,l=e.call(this,a)||this;return l.name="ApolloError",l.graphQLErrors=r||[],l.protocolErrors=i||[],l.clientErrors=o||[],l.networkError=s||null,l.message=a||WM(l),l.extraInfo=c,l.cause=Vt(Vt(Vt([s],r||[],!0),i||[],!0),o||[],!0).find(function(u){return!!u})||null,l.__proto__=t.prototype,l}return t}(Error);function Ed(e){return new Ke(function(t){t.error(e)})}var y5=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function qM(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw Xt(46,i)}return e}function zM(e,t){var n=M({},e),r=function(o){typeof o=="function"?n=M(M({},n),o(n)):n=M(M({},n),o)},i=function(){return M({},n)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:r}),Object.defineProperty(t,"getContext",{enumerable:!1,value:i}),t}function GM(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?la(t.query)||void 0:""),t}function QM(e,t){var n=M({},e),r=new Set(Object.keys(e));return zn(t,{Variable:function(i,o,s){s&&s.kind!=="VariableDefinition"&&r.delete(i.name.value)}}),r.forEach(function(i){delete n[i]}),n}function Pv(e,t){return t?t(e):Ke.of()}function Zs(e){return typeof e=="function"?new bn(e):e}function Gc(e){return e.request.length<=1}var bn=function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return Ke.of()})},e.from=function(t){return t.length===0?e.empty():t.map(Zs).reduce(function(n,r){return n.concat(r)})},e.split=function(t,n,r){var i=Zs(n),o=Zs(r||new e(Pv)),s;return Gc(i)&&Gc(o)?s=new e(function(a){return t(a)?i.request(a)||Ke.of():o.request(a)||Ke.of()}):s=new e(function(a,c){return t(a)?i.request(a,c)||Ke.of():o.request(a,c)||Ke.of()}),Object.assign(s,{left:i,right:o})},e.execute=function(t,n){return t.request(zM(n.context,GM(qM(n))))||Ke.of()},e.concat=function(t,n){var r=Zs(t);if(Gc(r))return globalThis.__DEV__!==!1&&_e.warn(38,r),r;var i=Zs(n),o;return Gc(i)?o=new e(function(s){return r.request(s,function(a){return i.request(a)||Ke.of()})||Ke.of()}):o=new e(function(s,a){return r.request(s,function(c){return i.request(c,a)||Ke.of()})||Ke.of()}),Object.assign(o,{left:r,right:i})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Pv)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,n){throw Xt(39)},e.prototype.onError=function(t,n){if(n&&n.error)return n.error(t),!1;throw t},e.prototype.setOnError=function(t){return this.onError=t,this},e}(),KM=bn.from,YM=bn.split,ip=bn.execute;function ug(e){return new bn(function(t,n){return new Ke(function(r){var i,o,s;
718try{i=n(t).subscribe({next:function(a){if(a.errors?s=e({graphQLErrors:a.errors,response:a,operation:t,forward:n}):g5(a)&&(s=e({protocolErrors:a.extensions[df],response:a,operation:t,forward:n})),s){o=s.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(a)},error:function(a){if(s=e({operation:t,networkError:a,graphQLErrors:a&&a.result&&a.result.errors||void 0,forward:n}),s){o=s.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(a)},complete:function(){s||r.complete.bind(r)()}})}catch(a){e({networkError:a,operation:t,forward:n}),r.error(a)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}(function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r.link=ug(n),r}return t.prototype.request=function(n,r){return this.link.request(n,r)},t})(bn);function op(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JM(e){if(Array.isArray(e))return e}function ZM(e){if(Array.isArray(e))return op(e)}function XM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v5(e,t,n){return t=gs(t),oD(e,b5()?Reflect.construct(t,n||[],gs(e).constructor):t.apply(e,n))}function gc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w5(r.key),r)}}function yc(e,t,n){return t&&eD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cr(e,t,n){return(t=w5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sp(){return sp=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=sD(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},sp.apply(null,arguments)}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gs(e)}function _5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ap(e,t)}function b5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b5=function(){return!!e})()}function tD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}function rD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 719In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 720In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lv(Object(n),!0).forEach(function(r){Cr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oD(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XM(e)}
720function ap(e,t){return ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ap(e,t)}function $v(e,t){return JM(e)||nD(e,t)||S5(e,t)||rD()}function sD(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=gs(e))!==null;);return e}function Cn(e,t,n,r){var i=sp(gs(e.prototype),t,n);return 2&r&&typeof i=="function"?function(o){return i.apply(n,o)}:i}function aD(e){return ZM(e)||tD(e)||S5(e)||iD()}function cD(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function w5(e){var t=cD(e,"string");return typeof t=="symbol"?t:t+""}function cp(e){"@babel/helpers - typeof";return cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cp(e)}function S5(e,t){if(e){if(typeof e=="string")return op(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?op(e,t):void 0}}function k5(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,s=r.noLeading,a=s===void 0?!1:s,c=r.debounceMode,l=c===void 0?void 0:c,u,f=!1,d=0;function h(){u&&clearTimeout(u)}function p(y){var g=y||{},_=g.upcomingOnly,v=_===void 0?!1:_;h(),f=!v}function m(){for(var y=arguments.length,g=new Array(y),_=0;_<y;_++)g[_]=arguments[_];var v=this,b=Date.now()-d;if(f)return;function w(){d=Date.now(),t.apply(v,g)}function S(){u=void 0}!a&&l&&!u&&w(),h(),l===void 0&&b>e?a?(d=Date.now(),o||(u=setTimeout(l?S:w,e))):w():o!==!0&&(u=setTimeout(l?S:w,l===void 0?e-b:e))}return m.cancel=p,m}function lD(e,t,n){var r=n||{},i=r.atBegin,o=i===void 0?!1:i;return k5(e,t,{debounceMode:o!==!1})}var E5=Object.freeze({__proto__:null,debounce:lD,throttle:k5});function C5(e){return function(t,n){return e(n,t)}}var Fv=C5(E5.throttle),Bv=C5(E5.debounce),lp=function(t,n){for(;typeof t=="function";)t=t.call(n);return t},up=function(t,n){return Object.entries(t).filter(function(r){var i=$v(r,1),o=i[0];return!n.includes(o)}).reduce(function(r,i){var o=$v(i,2),s=o[0],a=o[1];return r[s]=a,r},{})},Hv=function(t){t.graphQLErrors&&t.graphQLErrors.length&&(t.gqlError=t.graphQLErrors[0])},rr=typeof window>"u",uD=["variables","watch","update","result","error","loadingKey","watchLoading","skip","throttle","debounce","subscribeToMore","prefetch","manual"],fD={query:"_skipAllQueries",subscription:"_skipAllSubscriptions"},T5=function(){function e(t,n,r){gc(this,e),Cr(this,"type",null),Cr(this,"vueApolloSpecialKeys",[]),this.vm=t,this.key=n,this.initialOptions=r,this.options=Object.assign({},r),this._skip=!1,this._pollInterval=null,this._watchers=[],this._destroyed=!1,this.lastApolloOptions=null}return yc(e,[{key:"autostart",value:function(){var n=this;typeof this.options.skip=="function"?this._skipWatcher=this.vm.$watch(function(){return n.options.skip.call(n.vm,n.vm,n.key)},this.skipChanged.bind(this),{immediate:!0,deep:this.options.deep}):!this.options.skip&&!this.allSkip?this.start():this._skip=!0,typeof this.options.pollInterval=="function"&&(this._pollWatcher=this.vm.$watch(this.options.pollInterval.bind(this.vm),this.pollIntervalChanged.bind(this),{immediate:!0}))}},{key:"pollIntervalChanged",value:function(n,r){n!==r&&(this.pollInterval=n,n==null?this.stopPolling():this.startPolling(n))}},{key:"skipChanged",value:function(n,r){n!==r&&(this.skip=n)}},{key:"pollInterval",get:function(){return this._pollInterval},set:function(n){this._pollInterval=n}},{key:"skip",get:function(){return this._skip},set:function(n){n||this.allSkip?this.stop():this.start(),this._skip=n}},{key:"allSkip",get:function(){return this.vm.$apollo[fD[this.type]]}},{key:"refresh",value:function(){this._skip||(this.stop(),this.start())}},{key:"start",value:function(){var n=this;this.starting=!0;for(var r=function(){var c=o[i];if(typeof n.initialOptions[c]=="function"){var l=n.initialOptions[c].bind(n.vm);n.options[c]=l();var u=function(d){n._destroyed||(n.options[c]=d,n.refresh())};rr||(u=n.options.throttle?Fv(u,n.options.throttle):u,u=n.options.debounce?Bv(u,n.options.debounce):u),n._watchers.push(n.vm.$watch(l,u,{deep:n.options.deep}))}},i=0,o=["query","document","context"];
720i<o.length;i++)r();if(typeof this.options.variables=="function"){var s=this.executeApollo.bind(this);rr||(s=this.options.throttle?Fv(s,this.options.throttle):s,s=this.options.debounce?Bv(s,this.options.debounce):s),this._watchers.push(this.vm.$watch(function(){return typeof n.options.variables=="function"?n.options.variables.call(n.vm):n.options.variables},s,{immediate:!0,deep:this.options.deep}))}else this.executeApollo(this.options.variables)}},{key:"stop",value:function(){for(var n=0,r=this._watchers;n<r.length;n++){var i=r[n];i()}this.sub&&(this.sub.unsubscribe(),this.sub=null)}},{key:"generateApolloOptions",value:function(n){var r=up(this.options,this.vueApolloSpecialKeys);return r.variables=n,this.lastApolloOptions=r,r}},{key:"executeApollo",value:function(n){this.starting=!1}},{key:"nextResult",value:function(n){var r=n.error;r&&Hv(r)}},{key:"callHandlers",value:function(n){for(var r=!1,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];for(var a=0;a<n.length;a++){var c=n[a];if(c){r=!0;var l=c.apply(this.vm,o);if(typeof l<"u"&&!l)break}}return r}},{key:"errorHandler",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.callHandlers.apply(this,[[this.options.error,this.vm.$apollo.error,this.vm.$apollo.provider.errorHandler]].concat(r))}},{key:"catchError",value:function(n){Hv(n);var r=this.errorHandler(n,this.vm,this.key,this.type,this.lastApolloOptions);if(!r)if(n.graphQLErrors&&n.graphQLErrors.length!==0){console.error("GraphQL execution errors for ".concat(this.type," '").concat(this.key,"'"));for(var i=0,o=n.graphQLErrors;i<o.length;i++){var s=o[i];console.error(s)}}else if(n.networkError)console.error("Error sending the ".concat(this.type," '").concat(this.key,"'"),n.networkError);else if(console.error("[vue-apollo] An error has occurred for ".concat(this.type," '").concat(this.key,"'")),Array.isArray(n)){var a;(a=console).error.apply(a,aD(n))}else console.error(n)}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.stop(),this._skipWatcher&&this._skipWatcher())}}])}(),dD=function(e){function t(n,r,i){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return gc(this,t),n.$data.$apolloData&&!n.$data.$apolloData.queries[r]&&(n.$data.$apolloData.queries[r]={loading:!1}),o=v5(this,t,[n,r,i]),Cr(o,"type","query"),Cr(o,"vueApolloSpecialKeys",uD),Cr(o,"_loading",!1),Cr(o,"_linkedSubscriptions",[]),rr&&(o.firstRun=new Promise(function(a,c){o._firstRunResolve=a,o._firstRunReject=c})),rr&&(o.options.fetchPolicy="network-only"),i.manual||(o.hasDataField=Object.prototype.hasOwnProperty.call(o.vm.$data,r),o.hasDataField?Object.defineProperty(o.vm.$data.$apolloData.data,r,{get:function(){return o.vm.$data[r]},enumerable:!0,configurable:!0}):Object.defineProperty(o.vm.$data,r,{get:function(){return o.vm.$data.$apolloData.data[r]},enumerable:!0,configurable:!0})),s&&o.autostart(),o}return _5(t,e),yc(t,[{key:"client",get:function(){return this.vm.$apollo.getClient(this.options)}},{key:"loading",get:function(){return this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]?this.vm.$data.$apolloData.queries[this.key].loading:this._loading},set:function(r){this._loading!==r&&(this._loading=r,this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]&&(this.vm.$data.$apolloData.queries[this.key].loading=r,this.vm.$data.$apolloData.loading+=r?1:-1))}},{key:"stop",value:function(){Cn(t,"stop",this,3)([]),this.loadingDone(),this.observer&&(this.observer.stopPolling(),this.observer=null)}},{key:"generateApolloOptions",value:function(r){var i=Cn(t,"generateApolloOptions",this,3)([r]);return this.vm.$isServer&&delete i.pollInterval,i}},{key:"executeApollo",value:function(r){if(!this._destroyed){var i=JSON.stringify(r);if(this.sub){if(i===this.previousVariablesJson)return;this.sub.unsubscribe();for(var o=0,s=this._linkedSubscriptions;o<s.length;o++){var a=s[o];a.stop()}}if(this.previousVariablesJson=i,this.observer=this.vm.$apollo.watchQuery(this.generateApolloOptions(r)),this.startQuerySubscription(),this.options.fetchPolicy!=="no-cache"||this.options.notifyOnNetworkStatusChange){var c=this.retrieveCurrentResult();(this.options.notifyOnNetworkStatusChange||this.observer.getCurrentResult&&!c.loading)&&this.nextResult(c)}Cn(t,"executeApollo",this,3)([r]);for(var l=0,u=this._linkedSubscriptions;l<u.length;l++){var f=u[l];f.start()}}}},{key:"startQuerySubscription",value:function(){this.sub&&!this.sub.closed||(this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)}))}},{key:"retrieveCurrentResult",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult();return(r||i.loading)&&(this.loading||this.applyLoadingModifier(1),this.loading=!0),i}},{key:"nextResult",value:function(r){Cn(t,"nextResult",this,3)([r]);var i=r.data,o=r.loading,s=r.error,a=r.errors,c=a&&a.length;if((s||c)&&this.firstRunReject(s),o||this.loadingDone(),!s&&c){var l=new Error("GraphQL error: ".concat(a.map(function(f){return f.message}).join(" | ")));Object.assign(l,{graphQLErrors:a,networkError:null}),Cn(t,"catchError",this,3)([l])}
720if(!(this.observer.options.errorPolicy==="none"&&(s||c))){var u=typeof this.options.result=="function";i==null||(this.options.manual?u||console.error("".concat(this.key," query must have a 'result' hook in manual mode")):typeof this.options.update=="function"?this.setData(this.options.update.call(this.vm,i)):typeof i[this.key]>"u"&&Object.keys(i).length?console.error("Missing ".concat(this.key," attribute on result"),i):this.setData(i[this.key])),u&&this.options.result.call(this.vm,r,this.key)}}},{key:"setData",value:function(r){var i=this.hasDataField?this.vm.$data:this.vm.$data.$apolloData.data;i[this.key]=r}},{key:"catchError",value:function(r){Cn(t,"catchError",this,3)([r]),this.firstRunReject(r),this.loadingDone(r),this.nextResult(this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult()),this.resubscribeToQuery()}},{key:"resubscribeToQuery",value:function(){var r=this.observer.getLastError(),i=this.observer.getLastResult();this.observer.resetLastResults(),this.startQuerySubscription(),Object.assign(this.observer,{lastError:r,lastResult:i})}},{key:"loadingKey",get:function(){return this.options.loadingKey||this.vm.$apollo.loadingKey}},{key:"watchLoading",value:function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.callHandlers.apply(this,[[this.options.watchLoading,this.vm.$apollo.watchLoading,this.vm.$apollo.provider.watchLoading]].concat(i,[this]))}},{key:"applyLoadingModifier",value:function(r){var i=this.loadingKey;i&&typeof this.vm[i]=="number"&&(this.vm[i]+=r),this.watchLoading(r===1,r)}},{key:"loadingDone",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.loading&&this.applyLoadingModifier(-1),this.loading=!1,r||this.firstRunResolve()}},{key:"fetchMore",value:function(){var r=this;if(this.observer){var i;return this.retrieveCurrentResult(!0),(i=this.observer).fetchMore.apply(i,arguments).then(function(o){return o.loading||r.loadingDone(),o})}}},{key:"subscribeToMore",value:function(){if(this.observer){var r;return{unsubscribe:(r=this.observer).subscribeToMore.apply(r,arguments)}}}},{key:"refetch",value:function(r){var i=this;if(r&&(this.options.variables=r),this.observer){var o=this.observer.refetch(r).then(function(s){return s.loading||i.loadingDone(),s});return this.retrieveCurrentResult(),o}}},{key:"setVariables",value:function(r,i){if(this.options.variables=r,this.observer){var o=this.observer.setVariables(r,i);return this.retrieveCurrentResult(),o}}},{key:"setOptions",value:function(r){if(Object.assign(this.options,r),this.observer){var i=this.observer.setOptions(r);return this.retrieveCurrentResult(),i}}},{key:"startPolling",value:function(){if(this.observer){var r;return(r=this.observer).startPolling.apply(r,arguments)}}},{key:"stopPolling",value:function(){if(this.observer){var r;return(r=this.observer).stopPolling.apply(r,arguments)}}},{key:"firstRunResolve",value:function(){this._firstRunResolve&&(this._firstRunResolve(),this._firstRunResolve=null)}},{key:"firstRunReject",value:function(r){this._firstRunReject&&(this._firstRunReject(r),this._firstRunReject=null)}},{key:"destroy",value:function(){Cn(t,"destroy",this,3)([]),this.loading&&this.watchLoading(!1,-1),this.loading=!1}}])}(T5),hD=5,pD=500,mD=function(e){function t(n,r,i){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return gc(this,t),o=v5(this,t,[n,r,i]),Cr(o,"type","subscription"),Cr(o,"vueApolloSpecialKeys",["variables","result","error","throttle","debounce","linkedQuery"]),o.attempts=0,s&&o.autostart(),o}return _5(t,e),yc(t,[{key:"generateApolloOptions",value:function(r){var i=Cn(t,"generateApolloOptions",this,3)([r]);return i.onError=this.catchError.bind(this),i}},{key:"executeApollo",value:function(r){if(!this._destroyed){var i=JSON.stringify(r);if(this.sub){if(i===this.previousVariablesJson)return;this.sub.unsubscribe()}this.previousVariablesJson=i;var o=this.generateApolloOptions(r);if(typeof o.updateQuery=="function"&&(o.updateQuery=o.updateQuery.bind(this.vm)),this.options.linkedQuery){if(typeof this.options.result=="function"){var s=this.options.result.bind(this.vm),a=o.updateQuery&&o.updateQuery.bind(this.vm);o.updateQuery=function(){return s.apply(void 0,arguments),a&&a.apply(void 0,arguments)}}this.sub=this.options.linkedQuery.subscribeToMore(o)}else this.observer=this.vm.$apollo.subscribe(o),this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)});Cn(t,"executeApollo",this,3)([r])}}},{key:"nextResult",value:function(r){Cn(t,"nextResult",this,3)([r]),this.attempts=0,typeof this.options.result=="function"&&this.options.result.call(this.vm,r,this.key)}},{key:"catchError",value:function(r){Cn(t,"catchError",this,3)([r]),!(this.skip||this.attempts>=hD)&&(this.stop(),this.retryTimeout=setTimeout(this.start.bind(this),Math.pow(2,this.attempts)*p
720D),this.attempts++)}},{key:"stop",value:function(){Cn(t,"stop",this,3)([]),clearTimeout(this.retryTimeout)}}])}(T5),gD=function(){function e(t,n){gc(this,e),this._apolloSubscriptions=[],this._watchers=[],this.vm=t,this.provider=n,this.queries={},this.subscriptions={},this.client=void 0,this.loadingKey=void 0,this.error=void 0}return yc(e,[{key:"getClient",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!n||!n.client){if(cp(this.client)==="object")return this.client;if(this.client)if(this.provider.clients){var r=this.provider.clients[this.client];if(!r)throw new Error("[vue-apollo] Missing client '".concat(this.client,"' in 'apolloProvider'"));return r}else throw new Error("[vue-apollo] Missing 'clients' options in 'apolloProvider'");return this.provider.defaultClient}var i=this.provider.clients[n.client];if(!i)throw new Error("[vue-apollo] Missing client '".concat(n.client,"' in 'apolloProvider'"));return i}},{key:"query",value:function(n){return this.getClient(n).query(n)}},{key:"watchQuery",value:function(n){var r=this,i=this.getClient(n).watchQuery(n),o=i.subscribe.bind(i);return i.subscribe=function(s){var a=o(s);return r._apolloSubscriptions.push(a),a},i}},{key:"mutate",value:function(n){return this.getClient(n).mutate(n)}},{key:"subscribe",value:function(n){var r=this;if(!rr){var i=this.getClient(n).subscribe(n),o=i.subscribe.bind(i);return i.subscribe=function(s){var a=o(s);return r._apolloSubscriptions.push(a),a},i}}},{key:"loading",get:function(){return this.vm.$data.$apolloData.loading!==0}},{key:"data",get:function(){return this.vm.$data.$apolloData.data}},{key:"addSmartQuery",value:function(n,r){var i=this,o=lp(r,this.vm);if(!o.query){var s=o;o={query:s}}var a=this.vm.$options.apollo,c=this.provider.defaultOptions,l;if(c&&c.$query&&(l=c.$query),a&&a.$query&&(l=To(To({},l||{}),a.$query)),l)for(var u in l)typeof o[u]>"u"&&(o[u]=l[u]);var f=this.queries[n]=new dD(this.vm,n,o,!1);if((!rr||o.prefetch!==!1)&&f.autostart(),!rr){var d=o.subscribeToMore;d&&(Array.isArray(d)?d.forEach(function(h,p){i.addSmartSubscription("".concat(n).concat(p),To(To({},h),{},{linkedQuery:f}))}):this.addSmartSubscription(n,To(To({},d),{},{linkedQuery:f})))}return f}},{key:"addSmartSubscription",value:function(n,r){if(!rr){r=lp(r,this.vm);var i=this.subscriptions[n]=new mD(this.vm,n,r,!1);if(i.autostart(),r.linkedQuery){var o=r.linkedQuery._linkedSubscriptions.findIndex(function(s){return s.key===n});o!==-1?r.linkedQuery._linkedSubscriptions[o]=i:r.linkedQuery._linkedSubscriptions.push(i)}return i}}},{key:"defineReactiveSetter",value:function(n,r,i){var o=this;this._watchers.push(this.vm.$watch(r,function(s){o[n]=s},{immediate:!0,deep:i}))}},{key:"skipAllQueries",set:function(n){this._skipAllQueries=n;for(var r in this.queries)this.queries[r].skip=n}},{key:"skipAllSubscriptions",set:function(n){this._skipAllSubscriptions=n;for(var r in this.subscriptions)this.subscriptions[r].skip=n}},{key:"skipAll",set:function(n){this.skipAllQueries=n,this.skipAllSubscriptions=n}},{key:"destroy",value:function(){for(var n=0,r=this._watchers;n<r.length;n++){var i=r[n];i()}for(var o in this.queries)this.queries[o].destroy();for(var s in this.subscriptions)this.subscriptions[s].destroy();this._apolloSubscriptions.forEach(function(a){a.unsubscribe()}),this._apolloSubscriptions=null,this.vm=null}}])}();function Cd(e,t){return typeof e<"u"&&Object.prototype.hasOwnProperty.call(e,t)}function yD(){var e=this,t=this.$apolloProvider;if(!(this._apolloLaunched||!t)){this._apolloLaunched=!0;var n=this.$options.apollo;if(n){this.$_apolloPromises=[],n.$init||(n.$init=!0,t.defaultOptions&&(n=this.$options.apollo=Object.assign({},t.defaultOptions,n))),Bi(this.$apollo,"skipAll",n.$skipAll,n.$deep),Bi(this.$apollo,"skipAllQueries",n.$skipAllQueries,n.$deep),Bi(this.$apollo,"skipAllSubscriptions",n.$skipAllSubscriptions,n.$deep),Bi(this.$apollo,"client",n.$client,n.$deep),Bi(this.$apollo,"loadingKey",n.$loadingKey,n.$deep),Bi(this.$apollo,"error",n.$error,n.$deep),Bi(this.$apollo,"watchLoading",n.$watchLoading,n.$deep),Object.defineProperty(this,"$apolloData",{get:function(){return e.$data.$apolloData},enumerable:!0,configurable:!0});for(var r in n)if(r.charAt(0)!=="$"){var i=n[r],o=this.$apollo.addSmartQuery(r,i);rr&&(i=lp(i,this),t.prefetch!==!1&&i.prefetch!==!1&&n.$prefetch!==!1&&!o.skip&&this.$_apolloPromises.push(o.firstRun))}if(n.subscribe&&console.warn("vue-apollo -> `subscribe` option is deprecated. Use the `$subscribe` option instead."),n.$subscribe)for(var s in n.$subscribe)this.$apollo.addSmartSubscription(s,n.$subscribe[s])}}}function Bi(e,t,n,r){typeof n<"u"&&(typeof n=="function"?e.defineReactiveSetter(t,n,r):e[t]=n)}function Qc(){this.$apollo&&(this.$apollo.destroy(),this.$apollo=null)}function vD(e,t){e.mixin({data:function(){var r={$apolloData:{queries:{},loading:0,data:{}}},i=this.$options.apollo;if(i){for(var o in i)if(o.charAt(0)!=="$"){var s=i[o];!s.manual&&!Cd(this.$options.props,o)&&!Cd(this.$options.computed,o)&&!Cd(this.$options.methods,o)&&(r[o]=null)}}return r},beforeCreate:function(){var r=this;if(this.$apollo=new gD(this,t),rr){var i=this.$options.ssrRender;if(!i||i.__IS_VUE_APOLLO_WRAPPED)return;this.$options.ssrRender=function(o){var s=i.call(r,o);return Qc.call(r),s},this.$options.ssrRender.__IS_VUE_APOLLO_WRAPPED=!0}},serverPrefetch:function(){var r=this;if(this.$_apolloPromises)return Promise.all(this.$_apolloPromises).then(function(){var i={vm:r,provider:r.$apollo.provider,loading:!1,queries:{},subscriptions:{}};Qc.call(r),r.$apollo=i}).catch(function(i){return Qc.call(r),Promise.reject(i)})},created:yD,unmounted:Qc})}var Kc=["$subscribe"],_D=function(){function e(t){if(gc(this,e),!t)throw new Error("Options argument required");this.clients=t.clients||{},t.defaultClient&&(this.clients.defaultClient=this.defaultClient=t.defaultClient),this.defaultOptions=t.defaultOptions,this.watchLoading=t.watchLoading,this.errorHandler=t.errorHandler,this.prefetch=t.prefetch}return yc(e,[{key:"install",value:function(n){n.config.optionMergeStrategies.apollo=function(r,i,o){if(!r)return i;if(!i)return r;for(var s=Object.assign({},up(r,Kc),r.data),a=Object.assign({},up(i,Kc),i.data),c={},l=0;l<Kc.length;l++){var u=Kc[l];c[u]=jv(r[u],i[u])}return Object.assign(c,jv(s,a))},n.config.globalProperties.$apolloProvider=this,vD(n,this)}}])}();function jv(e,t){return e?Object.assign(Object.assign(Object.create(null),e),t):t}function bD(e){return new _D(e)}function I5(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,s=r.noLeading,a=s===void 0?!1:s,c=r.debounceMode,l=c===void 0?void 0:c,u,f=!1,d=0;function h(){u&&clearTimeout(u)}function p(y){var g=y||{},_=g.upcomingOnly,v=_===void 0?!1:_;h(),f=!v}function m(){for(var y=arguments.length,g=new Array(y),_=0;_<y;_++)g[_]=arguments[_];var v=this,b=Date.now()-d;if(f)return;function w(){d=Date.now(),t.apply(v,g)}function S(){u=void 0}!a&&l&&!u&&w(),h(),l===void 0&&b>e?a?(d=Date.now(),o||(u=setTimeout(l?S:w,e))):w():o!==!0&&(u=setTimeout(l?S:w,l===void 0?e-b:e))}return m.cancel=p,m}function wD(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return I5(e,t,{debounceMode:o!==!1})}function SD(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function kD(e){var t=null,n=null,r=!1,i=[],o=[];
720function s(f){if(!n){if(o.length){var d=o.shift();if(Array.isArray(d)&&d[0])return d[0]({value:f,done:!1})}i.push(f)}}function a(f){n=f;var d=o.slice();d.forEach(function(h){h[1](f)}),!t||t()}function c(){r=!0;var f=o.slice();f.forEach(function(d){d[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",a),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",a),e.on("end",c),e.on("finish",c),e.on("close",c);function l(){return new Promise(function(f,d){if(n)return d(n);if(i.length)return f({value:i.shift(),done:!1});if(r)return f({value:void 0,done:!0});o.push([f,d])})}var u={next:function(){return l()}};return sf&&(u[Symbol.asyncIterator]=function(){return this}),u}function ED(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(r,i){e.then(function(o){r({value:o,done:!1})}).catch(i)}))}};return sf&&(n[Symbol.asyncIterator]=function(){return this}),n}function Vv(e){var t={next:function(){return e.read()}};return sf&&(t[Symbol.asyncIterator]=function(){return this}),t}function CD(e){return!!e.body}function TD(e){return!!e.getReader}function ID(e){return!!(sf&&e[Symbol.asyncIterator])}function xD(e){return!!e.stream}function AD(e){return!!e.arrayBuffer}function RD(e){return!!e.pipe}function OD(e){var t=e;if(CD(e)&&(t=e.body),ID(t))return SD(t);if(TD(t))return Vv(t.getReader());if(xD(t))return Vv(t.stream().getReader());if(AD(t))return ED(t.arrayBuffer());if(RD(t))return kD(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Uv=Object.prototype.hasOwnProperty;function MD(e,t){return Jr(this,void 0,void 0,function(){var n,r,i,o,s,a,c,l,u,f,d,h,p,m,y,g,_,v,b,w,S,k,R,A;return Zr(this,function(T){switch(T.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=(A=e.headers)===null||A===void 0?void 0:A.get("content-type"),i="boundary=",o=r!=null&&r.includes(i)?r==null?void 0:r.substring((r==null?void 0:r.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s=`\r 721--`.concat(o),a="",c=OD(e),l=!0,T.label=1;case 1:return l?[4,c.next()]:[3,3];case 2:for(u=T.sent(),f=u.value,d=u.done,h=typeof f=="string"?f:n.decode(f),p=a.length-s.length+1,l=!d,a+=h,m=a.indexOf(s,p);m>-1;){if(y=void 0,k=[a.slice(0,m),a.slice(m+s.length)],y=k[0],a=k[1],g=y.indexOf(`\r 722\r 723`),_=DD(y.slice(0,g)),v=_["content-type"],v&&v.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(b=y.slice(g),b){if(w=x5(e,b),Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if(UM(w)){if(S={},"payload"in w){if(Object.keys(w).length===1&&w.payload===null)return[2];S=M({},w.payload)}"errors"in w&&(S=M(M({},S),{extensions:M(M({},"extensions"in S?S.extensions:null),(R={},R[df]=w.errors,R))})),t(S)}else t(w);else if(Object.keys(w).length===1&&"hasNext"in w&&!w.hasNext)return[2]}m=a.indexOf(s)}return[3,1];case 3:return[2]}})})}function DD(e){var t={};return e.split(` 724`).forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();t[i]=o}}),t}function x5(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};y5(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function ND(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function PD(e){return function(t){return t.text().then(function(n){return x5(t,n)}).then(function(n){return!Array.isArray(n)&&!Uv.call(n,"data")&&!Uv.call(n,"errors")&&y5(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var fp=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=Xt(42,t,i.message);throw r.parseError=i,r}return n},LD={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},$D={accept:"*/*","content-type":"application/json"},FD={method:"POST"},BD={http:LD,headers:$D,options:FD},HD=function(e,t){return t(e)};function jD(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};
724n.forEach(function(f){i=M(M(M({},i),f.options),{headers:M(M({},i.headers),f.headers)}),f.credentials&&(i.credentials=f.credentials),o=M(M({},o),f.http)}),i.headers&&(i.headers=VD(i.headers,o.preserveHeaderCase));var s=e.operationName,a=e.extensions,c=e.variables,l=e.query,u={operationName:s,variables:c};return o.includeExtensions&&(u.extensions=a),o.includeQuery&&(u.query=t(l,si)),{options:i,body:u}}function VD(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(o){n[o.toLowerCase()]=e[o]}),n}var r={};Object.keys(Object(e)).forEach(function(o){r[o.toLowerCase()]={originalName:o,value:e[o]}});var i={};return Object.keys(r).forEach(function(o){i[r[o].originalName]=r[o].value}),i}var UD=function(e){if(!e&&typeof fetch>"u")throw Xt(40)},WD=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function qD(e,t){var n=[],r=function(f,d){n.push("".concat(f,"=").concat(encodeURIComponent(d)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=fp(t.variables,"Variables map")}catch(f){return{parseError:f}}r("variables",i)}if(t.extensions){var o=void 0;try{o=fp(t.extensions,"Extensions map")}catch(f){return{parseError:f}}r("extensions",o)}var s="",a=e,c=e.indexOf("#");c!==-1&&(s=e.substr(c),a=e.substr(0,c));var l=a.indexOf("?")===-1?"?":"&",u=a+l+n.join("&")+s;return{newURI:u}}var Wv=Pn(function(){return fetch}),fg=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,i=e.print,o=i===void 0?HD:i,s=e.includeExtensions,a=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=l===void 0?!1:l,f=ar(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&UD(r||Wv);var d={http:{includeExtensions:s,preserveHeaderCase:a},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new bn(function(h){var p=WD(h,n),m=h.getContext(),y={};if(m.clientAwareness){var g=m.clientAwareness,_=g.name,v=g.version;_&&(y["apollographql-client-name"]=_),v&&(y["apollographql-client-version"]=v)}var b=M(M({},y),m.headers),w={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:b};if(Ka(["client"],h.query)){var S=l5(h.query);if(!S)return Ed(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));h.query=S}var k=jD(h,o,BD,d,w),R=k.options,A=k.body;A.variables&&!u&&(A.variables=QM(A.variables,h.query));var T;!R.signal&&typeof AbortController<"u"&&(T=new AbortController,R.signal=T.signal);var $=function(de){return de.kind==="OperationDefinition"&&de.operation==="mutation"},D=function(de){return de.kind==="OperationDefinition"&&de.operation==="subscription"},H=D(Ns(h.query)),ce=Ka(["defer"],h.query);if(c&&!h.query.definitions.some($)&&(R.method="GET"),ce||H){R.headers=R.headers||{};var K="multipart/mixed;";H&&ce&&globalThis.__DEV__!==!1&&_e.warn(41),H?K+="boundary=graphql;subscriptionSpec=1.0,application/json":ce&&(K+="deferSpec=20220824,application/json"),R.headers.accept=K}if(R.method==="GET"){var F=qD(p,A),V=F.newURI,W=F.parseError;if(W)return Ed(W);p=V}else try{R.body=fp(A,"Payload")}catch(de){return Ed(de)}return new Ke(function(de){var C=r||Pn(function(){return fetch})||Wv,O=de.next.bind(de);return C(p,R).then(function(B){var Q;h.setContext({response:B});var Y=(Q=B.headers)===null||Q===void 0?void 0:Q.get("content-type");return Y!==null&&/^multipart\/mixed/i.test(Y)?MD(B,O):PD(h)(B).then(O)}).then(function(){T=void 0,de.complete()}).catch(function(B){T=void 0,ND(B,de)}),function(){T&&T.abort()}})})},zD=function(e){Rn(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,fg(n).request)||this;return r.options=n,r}return t}(bn);const{toString:qv,hasOwnProperty:GD}=Object.prototype,zv=Function.prototype.toString,dp=new Map;function ot(e,t){try{return hp(e,t)}finally{dp.clear()}}function hp(e,t){if(e===t)return!0;const n=qv.call(e),r=qv.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Qv(e,t))return!0;const i=Gv(e),o=Gv(t),s=i.length;if(s!==o.length)return!1;for(let a=0;a<s;++a)if(!GD.call(t,i[a]))return!1;for(let a=0;a<s;++a){const c=i[a];if(!hp(e[c],t[c]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Qv(e,t))return!0;const i=e.entries(),o=n==="[object Map]";for(;;){const s=i.next();if(s.done)break;const[a,c]=s.value;if(!t.has(a)||o&&!hp(c,t.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let i=e.byteLength;if(i===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=zv.call(e);return i!==zv.call(t)?!1:!YD(i,KD)}}return!1}function Gv(e){return Object.keys(e).filter(QD,e)}function QD(e){return this[e]!==void 0}const KD="{ [native code] }";function YD(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function Qv(e,t){let n=dp.get(e);if(n){if(n.has(t))return!0}else dp.set(e,n=new Set);return n.add(t),!1}function A5(e,t,n,r){var i=t.data,o=ar(t,["data"]),s=n.data,a=ar(n,["data"]);return ot(o,a)&&kl(Ns(e).selectionSet,i,s,{fragmentMap:Os(Ds(e)),variables:r})}function kl(e,t,n,r){if(t===n)return!0;var i=new Set;
724return e.selections.every(function(o){if(i.has(o)||(i.add(o),!pc(o,r.variables))||Kv(o))return!0;if(Si(o)){var s=Dr(o),a=t&&t[s],c=n&&n[s],l=o.selectionSet;if(!l)return ot(a,c);var u=Array.isArray(a),f=Array.isArray(c);if(u!==f)return!1;if(u&&f){var d=a.length;if(c.length!==d)return!1;for(var h=0;h<d;++h)if(!kl(l,a[h],c[h],r))return!1;return!0}return kl(l,a,c,r)}else{var p=af(o,r.fragmentMap);if(p)return Kv(p)?!0:kl(p.selectionSet,t,n,r)}})}function Kv(e){return!!e.directives&&e.directives.some(JD)}function JD(e){return e.name.value==="nonreactive"}var R5=_o?WeakMap:Map,O5=Xm?WeakSet:Set,dg=new mc,Yv=!1;function M5(){Yv||(Yv=!0,globalThis.__DEV__!==!1&&_e.warn(52))}function D5(e,t,n){return dg.withValue(!0,function(){var r=ua(e,t,n,!1);return Object.isFrozen(e)&&fu(r),r})}function ZD(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function ua(e,t,n,r,i){var o,s=n.knownChanged,a=ZD(e,n.mutableTargets);if(Array.isArray(e)){for(var c=0,l=Array.from(e.entries());c<l.length;c++){var u=l[c],f=u[0],d=u[1];if(d===null){a[f]=null;continue}var h=ua(d,t,n,r,globalThis.__DEV__!==!1?"".concat(i||"","[").concat(f,"]"):void 0);s.has(h)&&s.add(a),a[f]=h}return s.has(a)?a:e}for(var p=0,m=t.selections;p<m.length;p++){var y=m[p],g=void 0;if(r&&s.add(a),y.kind===at.FIELD){var _=Dr(y),v=y.selectionSet;if(g=a[_]||e[_],g===void 0)continue;if(v&&g!==null){var h=ua(e[_],v,n,r,globalThis.__DEV__!==!1?"".concat(i||"",".").concat(_):void 0);s.has(h)&&(g=h)}globalThis.__DEV__===!1&&(a[_]=g),globalThis.__DEV__!==!1&&(r&&_!=="__typename"&&!(!((o=Object.getOwnPropertyDescriptor(a,_))===null||o===void 0)&&o.value)?Object.defineProperty(a,_,XD(_,g,i||"",n.operationName,n.operationType)):(delete a[_],a[_]=g))}if(y.kind===at.INLINE_FRAGMENT&&(!y.typeCondition||n.cache.fragmentMatches(y,e.__typename))&&(g=ua(e,y.selectionSet,n,r,i)),y.kind===at.FRAGMENT_SPREAD){var b=y.name.value,w=n.fragmentMap[b]||(n.fragmentMap[b]=n.cache.lookupFragment(b));_e(w,47,b);var S=IO(y);S!=="mask"&&(g=ua(e,w.selectionSet,n,S==="migrate",i))}s.has(g)&&s.add(a)}return"__typename"in e&&!("__typename"in a)&&(a.__typename=e.__typename),Object.keys(a).length!==Object.keys(e).length&&s.add(a),s.has(a)?a:e}function XD(e,t,n,r,i){var o=function(){return dg.getValue()||(globalThis.__DEV__!==!1&&_e.warn(48,r?"".concat(i," '").concat(r,"'"):"anonymous ".concat(i),"".concat(n,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(s){o=function(){return s}},enumerable:!0,configurable:!0}}function N5(e,t,n,r){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&M5(),e;var i=t.definitions.filter(function(s){return s.kind===at.FRAGMENT_DEFINITION});typeof r>"u"&&(_e(i.length===1,49,i.length),r=i[0].name.value);var o=i.find(function(s){return s.name.value===r});return _e(!!o,50,r),e==null||ot(e,{})?e:D5(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:Os(Ds(t)),cache:n,mutableTargets:new R5,knownChanged:new O5})}function eN(e,t,n){var r;if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&M5(),e;var i=ho(t);return _e(i,51),e==null?e:D5(e,i.selectionSet,{operationType:i.operation,operationName:(r=i.name)===null||r===void 0?void 0:r.value,fragmentMap:Os(Ds(t)),cache:n,mutableTargets:new R5,knownChanged:new O5})}var P5=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Ja(DO,{max:Mr["cache.fragmentQueryDocuments"]||1e3,cache:lu})}return e.prototype.lookupFragment=function(t){return null},e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(n)},r),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(M(M({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.watchFragment=function(t){var n=this,r=t.fragment,i=t.fragmentName,o=t.from,s=t.optimistic,a=s===void 0?!0:s,c=ar(t,["fragment","fragmentName","from","optimistic"]),l=this.getFragmentDoc(r,i),u=typeof o>
724"u"||typeof o=="string"?o:this.identify(o),f=!!t[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var d=i||Q3(r).name.value;u||globalThis.__DEV__!==!1&&_e.warn(1,d)}var h=M(M({},c),{returnPartialData:!0,id:u,query:l,optimistic:a}),p;return new Ke(function(m){return n.watch(M(M({},h),{immediate:!0,callback:function(y){var g=f?N5(y.result,r,n,i):y.result;if(!(p&&A5(l,{data:p.result},{data:g},t.variables))){var _={data:g,complete:!!y.complete};y.missing&&(_.missing=ff(y.missing.map(function(v){return v.missing}))),p=M(M({},y),{result:g}),m.next(_)}}}))})},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(M(M({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=ar(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,o=t.fragmentName,s=ar(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),o=n(i);return o==null?i:(r.writeQuery(M(M({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),o=n(i);return o==null?i:(r.writeFragment(M(M({},t),{data:o})),o)}})},e}();globalThis.__DEV__!==!1&&(P5.prototype.getMemoryInternals=qO);var L5=function(e){Rn(t,e);function t(n,r,i,o){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=(s={},s[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return t}(Error),Rt=Object.prototype.hasOwnProperty;function Xs(e){return e==null}function $5(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n=="string"&&(t&&(t.keyObject=Xs(r)?Xs(i)?void 0:{_id:i}:{id:r}),Xs(r)&&!Xs(i)&&(r=i),!Xs(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var F5={dataIdFromObject:$5,addTypename:!0,resultCaching:!0,canonizeResults:!1};function tN(e){return ms(F5,e)}function B5(e){var t=e.canonizeResults;return t===void 0?F5.canonizeResults:t}function nN(e,t){return ze(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var H5=/^[_a-z][_0-9a-z]*/i;function Ci(e){var t=e.match(H5);return t?t[0]:e}function pp(e,t,n){return ft(t)?gt(t)?t.every(function(r){return pp(e,r,n)}):e.selections.every(function(r){if(Si(r)&&pc(r,n)){var i=Dr(r);return Rt.call(t,i)&&(!r.selectionSet||pp(r.selectionSet,t[i],n))}return!0}):!1}function Bo(e){return ft(e)&&!ze(e)&&!gt(e)}function rN(){return new Ei}function j5(e,t){var n=Os(Ds(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var El=Object.create(null),Td=function(){return El},Jv=Object.create(null),Za=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return fu(ze(i)?r.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return ze(i)?r.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return Xo(i);if(ze(i))return i;var s=r.policies.identify(i)[0];if(s){var a=Xo(s);return o&&r.merge(s,i),a}}}return e.prototype.toObject=function(){return M({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),Rt.call(this.data,t)){var r=this.data[t];if(r&&Rt.call(r,n))return r[n]}if(n==="__typename"&&Rt.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Wr)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),Rt.call(this.data,t))return this.data[t];if(this instanceof Wr)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,i;ze(t)&&(t=t.__ref),ze(n)&&(n=n.__ref);var o=typeof t=="string"?this.lookup(i=t):t,s=typeof n=="string"?this.lookup(i=n):n;
724if(s){_e(typeof i=="string",2);var a=new Ei(oN).merge(o,s);if(this.data[i]=a,a!==o&&(delete this.refs[i],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach(function(l){if(!o||o[l]!==a[l]){c[l]=1;var u=Ci(l);u!==l&&!r.policies.hasKeyArgs(a.__typename,u)&&(c[u]=1),a[l]===void 0&&!(r instanceof Wr)&&delete a[l]}}),c.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===a.__typename&&delete c.__typename,Object.keys(c).forEach(function(l){return r.group.dirty(i,l)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var o=Object.create(null),s=!1,a=!0,c={DELETE:El,INVALIDATE:Jv,isReference:ze,toReference:this.toReference,canRead:this.canRead,readField:function(l,u){return r.policies.readField(typeof l=="string"?{fieldName:l,from:u||Xo(t)}:l,{store:r})}};if(Object.keys(i).forEach(function(l){var u=Ci(l),f=i[l];if(f!==void 0){var d=typeof n=="function"?n:n[l]||n[u];if(d){var h=d===Td?El:d(fu(f),M(M({},c),{fieldName:u,storeFieldName:l,storage:r.getStorage(t,l)}));if(h===Jv)r.group.dirty(t,l);else if(h===El&&(h=void 0),h!==f&&(o[l]=h,s=!0,f=h,globalThis.__DEV__!==!1)){var p=function(w){if(r.lookup(w.__ref)===void 0)return globalThis.__DEV__!==!1&&_e.warn(3,w),!0};if(ze(h))p(h);else if(Array.isArray(h))for(var m=!1,y=void 0,g=0,_=h;g<_.length;g++){var v=_[g];if(ze(v)){if(m=!0,p(v))break}else if(typeof v=="object"&&v){var b=r.policies.identify(v)[0];b&&(y=v)}if(m&&y!==void 0){globalThis.__DEV__!==!1&&_e.warn(4,y);break}}}}f!==void 0&&(a=!1)}}),s)return this.merge(t,o),a&&(this instanceof Wr?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var i,o=this.lookup(t);if(o){var s=this.getFieldValue(o,"__typename"),a=n&&r?this.policies.getStoreFieldName({typename:s,fieldName:n,args:r}):n;return this.modify(t,a?(i={},i[a]=Td,i):Td)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(Rt.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof Wr&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){Rt.call(t.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(o){t&&Rt.call(t,o)||n.delete(o)}),t){var r=t.__META,i=ar(t,["__META"]);
724Object.keys(i).forEach(function(o){n.merge(o,i[o])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Wr?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(s){Rt.call(r,s)&&(Object.keys(t.findChildRefIds(s)).forEach(n.add,n),delete r[s])});var i=Object.keys(r);if(i.length){for(var o=this;o instanceof Wr;)o=o.parent;i.forEach(function(s){return o.delete(s)})}return i},e.prototype.findChildRefIds=function(t){if(!Rt.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(o){ze(o)&&(n[o.__ref]=!0),ft(o)&&Object.keys(o).forEach(function(s){var a=o[s];ft(a)&&i.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),V5=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?o5():null,this.keyMaker=new Br(_o)}
724,e.prototype.depend=function(t,n){if(this.d){this.d(Id(t,n));var r=Ci(n);r!==n&&this.d(Id(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(Id(t,n),n==="__exists"?"forget":"setDirty")},e}();function Id(e,t){return t+"#"+e}function Zv(e,t){xa(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){Rn(r,n);function r(i){var o=i.policies,s=i.resultCaching,a=s===void 0?!0:s,c=i.seed,l=n.call(this,o,new V5(a))||this;return l.stump=new iN(l),l.storageTrie=new Br(_o),c&&l.replace(c),l}return r.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(Za||(Za={}));var Wr=function(e){Rn(t,e);function t(n,r,i,o){var s=e.call(this,r.policies,o)||this;return s.id=n,s.parent=r,s.replay=i,s.group=o,i(s),s}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var s=r.data[o],a=i.lookup(o);a?s?s!==a&&Object.keys(s).forEach(function(c){ot(s[c],a[c])||r.group.dirty(o,c)}):(r.group.dirty(o,"__exists"),Object.keys(a).forEach(function(c){r.group.dirty(o,c)})):r.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return M(M({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Rt.call(this.data,n)?M(M({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(Za),iN=function(e){Rn(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new V5(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(Wr);function oN(e,t,n){var r=e[n],i=t[n];return ot(r,i)?r:i}function xa(e){return!!(e instanceof Za&&e.group.caching)}function sN(e){return ft(e)?gt(e)?e.slice(0):M({__proto__:Object.getPrototypeOf(e)},e):e}var Xv=function(){function e(){this.known=new(Xm?WeakSet:Set),this.pool=new Br(_o),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return ft(t)&&this.known.has(t)},e.prototype.pass=function(t){if(ft(t)){var n=sN(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(ft(t)){var r=this.passes.get(t);if(r)return r;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var o=t.map(this.admit,this),s=this.pool.lookupArray(o);return s.array||(this.known.add(s.array=o),globalThis.__DEV__!==!1&&Object.freeze(o)),s.array}case null:case Object.prototype:{if(this.known.has(t))return t;var a=Object.getPrototypeOf(t),c=[a],l=this.sortedKeys(t);c.push(l.json);var u=c.length;l.sorted.forEach(function(h){c.push(n.admit(t[h]))});var s=this.pool.lookupArray(c);if(!s.object){var f=s.object=Object.create(a);this.known.add(f),l.sorted.forEach(function(h,p){f[h]=c[u+p]}),globalThis.__DEV__!==!1&&Object.freeze(f)}return s.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e}();function e0(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var aN=function(){function e(t){var n=this;this.knownResults=new(_o?WeakMap:Map),this.config=ms(t,{addTypename:t.addTypename!==!1,canonizeResults:B5(t)}),this.canon=t.canon||new Xv,this.executeSelectionSet=Ja(function(r){var i,o=r.context.canonizeResults,s=e0(r);s[3]=!o;var a=(i=n.executeSelectionSet).peek.apply(i,s);return a?o?M(M({},a),{result:n.canon.admit(a.result)}):a:(Zv(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||Mr["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:e0,makeCacheKey:function(r,i,o,s){if
724(xa(o.store))return o.store.makeCacheKey(r,ze(i)?i.__ref:i,o.varString,s)}}),this.executeSubSelectedArray=Ja(function(r){return Zv(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||Mr["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var i=r.field,o=r.array,s=r.context;if(xa(s.store))return s.store.makeCacheKey(i,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Xv},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,o=i===void 0?"ROOT_QUERY":i,s=t.variables,a=t.returnPartialData,c=a===void 0?!0:a,l=t.canonizeResults,u=l===void 0?this.config.canonizeResults:l,f=this.config.cache.policies;s=M(M({},eg(G3(r))),s);var d=Xo(o),h=this.executeSelectionSet({selectionSet:Ns(r).selectionSet,objectOrReference:d,enclosingRef:d,context:M({store:n,query:r,policies:f,variables:s,varString:mi(s),canonizeResults:u},j5(r,this.config.fragments))}),p;if(h.missing&&(p=[new L5(cN(h.missing),h.missing,r,s)],!c))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,n,r,i){if(xa(i.store)&&this.knownResults.get(t)===r){var o=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,s=t.context;if(ze(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var a=s.variables,c=s.policies,l=s.store,u=l.getFieldValue(i,"__typename"),f=[],d,h=new Ei;this.config.addTypename&&typeof u=="string"&&!c.rootIdsByTypename[u]&&f.push({__typename:u});function p(v,b){var w;return v.missing&&(d=h.merge(d,(w={},w[b]=v.missing,w))),v.result}var m=new Set(r.selections);m.forEach(function(v){var b,w;if(pc(v,a))if(Si(v)){var S=c.readField({fieldName:v.name.value,field:v,variables:s.variables,from:i},s),k=Dr(v);S===void 0?ig.added(v)||(d=h.merge(d,(b={},b[k]="Can't find field '".concat(v.name.value,"' on ").concat(ze(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),b))):gt(S)?S.length>0&&(S=p(n.executeSubSelectedArray({field:v,array:S,enclosingRef:o,context:s}),k)):v.selectionSet?S!=null&&(S=p(n.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:S,enclosingRef:ze(S)?S:o,context:s}),k)):s.canonizeResults&&(S=n.canon.pass(S)),S!==void 0&&f.push((w={},w[k]=S,w))}else{var R=af(v,s.lookupFragment);if(!R&&v.kind===at.FRAGMENT_SPREAD)throw Xt(10,v.name.value);R&&c.fragmentMatches(R,u)&&R.selectionSet.selections.forEach(m.add,m)}});var y=ff(f),g={result:y,missing:d},_=s.canonizeResults?this.canon.admit(g):fu(g);return _.result&&this.knownResults.set(_.result,r),_},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,i=t.array,o=t.enclosingRef,s=t.context,a,c=new Ei;function l(u,f){var d;return u.missing&&(a=c.merge(a,(d={},d[f]=u.missing,d))),u.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(u,f){return u===null?null:gt(u)?l(n.executeSubSelectedArray({field:r,array:u,enclosingRef:o,context:s}),f):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:u,enclosingRef:ze(u)?u:o,context:s}),f):(globalThis.__DEV__!==!1&&lN(s.store,r,u),u)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:a}},e}();function cN(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function lN(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){ft(i)&&(_e(!ze(i),11,nN(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}var hg=new mc,t0=new WeakMap;function Aa(e){var t=t0.get(e);return t||t0.set(e,t={vars:new Set,dep:o5()}),t}function n0(e){Aa(e).vars.forEach(function(t){return t.forgetCache(e)})}function uN(e){Aa(e).vars.forEach(function(t){return t.attachCache(e)})}function fN(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){Aa(c).dep.dirty(r),dN(c)});var s=Array.from(n);
724n.clear(),s.forEach(function(c){return c(e)})}}else{var a=hg.getValue();a&&(i(a),Aa(a).dep(r))}return e};r.onNextChange=function(o){return n.add(o),function(){n.delete(o)}};var i=r.attachCache=function(o){return t.add(o),Aa(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}function dN(e){e.broadcastWatches&&e.broadcastWatches()}var r0=Object.create(null);function pg(e){var t=JSON.stringify(e);return r0[t]||(r0[t]=Object.create(null))}function i0(e){var t=pg(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(s,a){return r.readField(a,s)},o=r.keyObject=mg(e,function(s){var a=ts(r.storeObject,s,i);return a===void 0&&n!==r.storeObject&&Rt.call(n,s[0])&&(a=ts(n,s,W5)),_e(a!==void 0,5,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function o0(e){var t=pg(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,s=r.fieldName,a=mg(e,function(l){var u=l[0],f=u.charAt(0);if(f==="@"){if(i&&ur(i.directives)){var d=u.slice(1),h=i.directives.find(function(g){return g.name.value===d}),p=h&&cf(h,o);return p&&ts(p,l.slice(1))}return}if(f==="$"){var m=u.slice(1);if(o&&Rt.call(o,m)){var y=l.slice(0);return y[0]=m,ts(o,y)}return}if(n)return ts(n,l)}),c=JSON.stringify(a);return(n||c!=="{}")&&(s+=":"+c),s})}function mg(e,t){var n=new Ei;return U5(e).reduce(function(r,i){var o,s=t(i);if(s!==void 0){for(var a=i.length-1;a>=0;--a)s=(o={},o[i[a]]=s,o);r=n.merge(r,s)}return r},Object.create(null))}function U5(e){var t=pg(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){gt(i)?(U5(i).forEach(function(s){return n.push(r.concat(s))}),r.length=0):(r.push(i),gt(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function W5(e,t){return e[t]}function ts(e,t,n){return n=n||W5,q5(t.reduce(function r(i,o){return gt(i)?i.map(function(s){return r(s,o)}):i&&n(i,o)},e))}function q5(e){return ft(e)?gt(e)?e.map(q5):mg(Object.keys(e).sort(),function(t){return ts(e,t)}):e}function mp(e){return e.args!==void 0?e.args:e.field?cf(e.field,e.variables):null}var hN=function(){},s0=function(e,t){return t.fieldName},a0=function(e,t,n){var r=n.mergeObjects;return r(e,t)},c0=function(e,t){return t},pN=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=M({dataIdFromObject:$5},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,o=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=n&&n.storeObject||t,a=M(M({},n),{typename:o,storeObject:s,readField:n&&n.readField||function(){var f=gg(arguments,s);return i.readField(f,{store:i.cache.data,variables:f.variables})}}),c,l=o&&this.getTypePolicy(o),u=l&&l.keyFn||this.config.dataIdFromObject;return dg.withValue(!0,function(){for(;u;){var f=u(M(M({},t),s),a);if(gt(f))u=i0(f);else{c=f;break}}}),c=c?String(c):void 0,a.keyObject?[c,a.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,c=ar(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Rt.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),o=n.keyFields,s=n.fields;function a(c,l){c.merge=typeof l=="function"?l:l===!0?a0:l===!1?c0:c.merge}a(i,n.merge),i.keyFn=o===!1?hN:gt(o)?i0(o):typeof o=="function"?o:i.keyFn,s&&Object.keys(s).forEach(function(c){var l=r.getFieldPolicy(t,c,!0),u=s[c];if(typeof u=="function")l.read=u;else{var f=u.keyArgs,d=u.read,h=u.merge;l.keyFn=f===!1?s0:gt(f)?o0(f):typeof f=="function"?f:l.keyFn,typeof d=="function"&&(l.read=d),a(l,h)}l.read&&l.merge&&(l.keyFn=l.keyFn||s0)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(_e(!i||i===t,6,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var o=i.match(H5);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;
724if(!Rt.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(s,a){if(s.test(t)){var c=n.supertypeMap.get(a);c&&c.forEach(function(l){return i.add(l)})}})),i&&i.size&&i.forEach(function(s){var a=n.getTypePolicy(s),c=a.fields,l=ar(a,["fields"]);Object.assign(r,l),Object.assign(r.fields,c)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(s){n.updateTypePolicy(t,s)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var o=this;if(!t.typeCondition)return!0;if(!n)return!1;var s=t.typeCondition.name.value;if(n===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(n,!0),c=[a],l=function(p){var m=o.getSupertypeSet(p,!1);m&&m.size&&c.indexOf(m)<0&&c.push(m)},u=!!(r&&this.fuzzySubtypes.size),f=!1,d=0;d<c.length;++d){var h=c[d];if(h.has(s))return a.has(s)||(f&&globalThis.__DEV__!==!1&&_e.warn(7,n,s),a.add(s)),!0;h.forEach(l),u&&d===c.length-1&&pp(t.selectionSet,r,i)&&(u=!1,f=!0,this.fuzzySubtypes.forEach(function(p,m){var y=n.match(p);y&&y[0]===n&&l(m)}))}return!1},e.prototype.hasKeyArgs=function(t,n){var r=this.getFieldPolicy(t,n,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(t){var n=t.typename,r=t.fieldName,i=this.getFieldPolicy(n,r,!1),o,s=i&&i.keyFn;if(s&&n)for(var a={typename:n,fieldName:r,field:t.field||null,variables:t.variables},c=mp(t);s;){var l=s(c,a);if(gt(l))s=o0(l);else{o=l||r;break}}return o===void 0&&(o=t.field?cM(t.field,t.variables):z3(r,mp(t))),o===!1?r:r===Ci(o)?o:r+":"+o},e.prototype.readField=function(t,n){var r=t.from;if(r){var i=t.field||t.fieldName;if(i){if(t.typename===void 0){var o=n.store.getFieldValue(r,"__typename");o&&(t.typename=o)}var s=this.getStoreFieldName(t),a=Ci(s),c=n.store.getFieldValue(r,s),l=this.getFieldPolicy(t.typename,a,!1),u=l&&l.read;if(u){var f=l0(this,r,t,n,n.store.getStorage(ze(r)?r.__ref:r,s));return hg.withValue(this.cache,u,[c,f])}return c}}},e.prototype.getReadFunction=function(t,n){var r=this.getFieldPolicy(t,n,!1);return r&&r.read},e.prototype.getMergeFunction=function(t,n,r){var i=this.getFieldPolicy(t,n,!1),o=i&&i.merge;return!o&&r&&(i=this.getTypePolicy(r),o=i&&i.merge),o},e.prototype.runMergeFunction=function(t,n,r,i,o){var s=r.field,a=r.typename,c=r.merge;return c===a0?z5(i.store)(t,n):c===c0?n:(i.overwrite&&(t=void 0),c(t,n,l0(this,void 0,{typename:a,fieldName:s.name.value,field:s,variables:i.variables},i,o||Object.create(null))))},e}();function l0(e,t,n,r,i){var o=e.getStoreFieldName(n),s=Ci(o),a=n.variables||r.variables,c=r.store,l=c.toReference,u=c.canRead;return{args:mp(n),field:n.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:ze,toReference:l,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(gg(arguments,t,a),r)},mergeObjects:z5(r.store)}}function gg(e,t,n){var r=e[0],i=e[1],o=e.length,s;return typeof r=="string"?s={fieldName:r,from:o>1?i:t}:(s=M({},r),Rt.call(s,"from")||(s.from=t)),globalThis.__DEV__!==!1&&s.from===void 0&&globalThis.__DEV__!==!1&&_e.warn(8,N3(Array.from(e))),s.variables===void 0&&(s.variables=n),s}function z5(e){return function(n,r){if(gt(n)||gt(r))throw Xt(9);if(ft(n)&&ft(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename"),s=i&&o&&i!==o;if(s)return r;if(ze(n)&&Bo(r))return e.merge(n.__ref,r),n;if(Bo(n)&&ze(r))return e.merge(n,r.__ref),r;if(Bo(n)&&Bo(r))return M(M({},n),r)}return r}}function xd(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:M(M({},e),{clientOnly:t,deferred:n})),i}var mN=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,o=n.result,s=n.dataId,a=n.variables,c=n.overwrite,l=ho(i),u=rN();a=M(M({},eg(l)),a);var f=M(M({store:t,written:Object.create(null),merge:function(h,p){return u.merge(h,p)},variables:a,varString:mi(a)},j5(i,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:f});if(!ze(d))throw Xt(12,o);
724return f.incomingById.forEach(function(h,p){var m=h.storeObject,y=h.mergeTree,g=h.fieldNodeSet,_=Xo(p);if(y&&y.map.size){var v=r.applyMerges(y,_,m,f);if(ze(v))return;m=v}if(globalThis.__DEV__!==!1&&!f.overwrite){var b=Object.create(null);g.forEach(function(k){k.selectionSet&&(b[k.name.value]=!0)});var w=function(k){return b[Ci(k)]===!0},S=function(k){var R=y&&y.map.get(k);return!!(R&&R.info&&R.info.merge)};Object.keys(m).forEach(function(k){w(k)&&!S(k)&&gN(_,m,k,f.store)})}t.merge(p,m)}),t.retain(d.__ref),d},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,o=t.selectionSet,s=t.context,a=t.mergeTree,c=this.cache.policies,l=Object.create(null),u=r&&c.rootTypenamesById[r]||Xh(i,o,s.fragmentMap)||r&&s.store.get(r,"__typename");typeof u=="string"&&(l.__typename=u);var f=function(){var v=gg(arguments,l,s.variables);if(ze(v.from)){var b=s.incomingById.get(v.from.__ref);if(b){var w=c.readField(M(M({},v),{from:b.storeObject}),s);if(w!==void 0)return w}}return c.readField(v,s)},d=new Set;this.flattenFields(o,i,s,u).forEach(function(v,b){var w,S=Dr(b),k=i[S];if(d.add(b),k!==void 0){var R=c.getStoreFieldName({typename:u,fieldName:b.name.value,field:b,variables:v.variables}),A=u0(a,R),T=n.processFieldValue(k,b,b.selectionSet?xd(v,!1,!1):v,A),$=void 0;b.selectionSet&&(ze(T)||Bo(T))&&($=f("__typename",T));var D=c.getMergeFunction(u,b.name.value,$);D?A.info={field:b,typename:u,merge:D}:f0(a,R),l=v.merge(l,(w={},w[R]=T,w))}else globalThis.__DEV__!==!1&&!v.clientOnly&&!v.deferred&&!ig.added(b)&&!c.getReadFunction(u,b.name.value)&&globalThis.__DEV__!==!1&&_e.error(13,Dr(b),i)});try{var h=c.identify(i,{typename:u,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:l,readField:f}),p=h[0],m=h[1];r=r||p,m&&(l=s.merge(l,m))}catch(v){if(!r)throw v}if(typeof r=="string"){var y=Xo(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(o)>=0||(g.push(o),this.reader&&this.reader.isFresh(i,y,o,s)))return y;var _=s.incomingById.get(r);return _?(_.storeObject=s.merge(_.storeObject,l),_.mergeTree=gp(_.mergeTree,a),d.forEach(function(v){return _.fieldNodeSet.add(v)})):s.incomingById.set(r,{storeObject:l,mergeTree:du(a)?void 0:a,fieldNodeSet:d}),y}return l},e.prototype.processFieldValue=function(t,n,r,i){var o=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?h5(t):t:gt(t)?t.map(function(s,a){var c=o.processFieldValue(s,n,r,u0(i,a));return f0(i,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i})},e.prototype.flattenFields=function(t,n,r,i){i===void 0&&(i=Xh(n,t,r.fragmentMap));var o=new Map,s=this.cache.policies,a=new Br(!1);return function c(l,u){var f=a.lookup(l,u.clientOnly,u.deferred);f.visited||(f.visited=!0,l.selections.forEach(function(d){if(pc(d,r.variables)){var h=u.clientOnly,p=u.deferred;if(!(h&&p)&&ur(d.directives)&&d.directives.forEach(function(g){var _=g.name.value;if(_==="client"&&(h=!0),_==="defer"){var v=cf(g,r.variables);(!v||v.if!==!1)&&(p=!0)}}),Si(d)){var m=o.get(d);m&&(h=h&&m.clientOnly,p=p&&m.deferred),o.set(d,xd(r,h,p))}else{var y=af(d,r.lookupFragment);if(!y&&d.kind===at.FRAGMENT_SPREAD)throw Xt(14,d.name.value);y&&s.fragmentMatches(y,i,n,r.variables)&&c(y.selectionSet,xd(r,h,p))}}}))}(t,r),o},e.prototype.applyMerges=function(t,n,r,i,o){var s,a=this;if(t.map.size&&!ze(r)){var c=!gt(r)&&(ze(n)||Bo(n))?n:void 0,l=r;c&&!o&&(o=[ze(c)?c.__ref:c]);var u,f=function(d,h){return gt(d)?typeof h=="number"?d[h]:void 0:i.store.getFieldValue(d,String(h))};t.map.forEach(function(d,h){var p=f(c,h),m=f(l,h);if(m!==void 0){o&&o.push(h);var y=a.applyMerges(d,p,m,i,o);y!==m&&(u=u||new Map,u.set(h,y)),o&&_e(o.pop()===h)}}),u&&(r=gt(l)?l.slice(0):M({},l),u.forEach(function(d,h){r[h]=d}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,o&&(s=i.store).getStorage.apply(s,o)):r},e}(),G5=[];function u0(e,t){var n=e.map;return n.has(t)||n.set(t,G5.pop()||{map:new Map}),n.get(t)}function gp(e,t){if(e===t||!t||du(t))return e;if(!e||du(e))return t;var n=e.info&&t.info?M(M({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i=r?new Map:e.map.size?e.map:t.map,o={info:n,map:i};if(r){var s=new Set(t.map.keys());
724e.map.forEach(function(a,c){o.map.set(c,gp(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,gp(t.map.get(a),e.map.get(a)))})}return o}function du(e){return!e||!(e.info||e.map.size)}function f0(e,t){var n=e.map,r=n.get(t);r&&du(r)&&(G5.push(r),n.delete(t))}var d0=new Set;function gN(e,t,n,r){var i=function(f){var d=r.getFieldValue(f,n);return typeof d=="object"&&d},o=i(e);if(o){var s=i(t);if(s&&!ze(o)&&!ot(o,s)&&!Object.keys(o).every(function(f){return r.getFieldValue(s,f)!==void 0})){var a=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Ci(n),l="".concat(a,".").concat(c);if(!d0.has(l)){d0.add(l);var u=[];!gt(o)&&!gt(s)&&[o,s].forEach(function(f){var d=r.getFieldValue(f,"__typename");typeof d=="string"&&!u.includes(d)&&u.push(d)}),globalThis.__DEV__!==!1&&_e.warn(15,c,a,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",l,M({},o),M({},s))}}}}var Q5=function(e){Rn(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new s5(ig),r.assumeImmutableResults=!0,r.makeVar=fN,r.txCount=0,r.config=tN(n),r.addTypename=!!r.config.addTypename,r.policies=new pN({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new Za.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new mN(this,this.storeReader=new aN({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:B5(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=Ja(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize||Mr["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(xa(a)){var c=s.optimistic,l=s.id,u=s.variables;return a.makeCacheKey(s.query,s.callback,mi({optimistic:c,id:l,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(s){return s.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,i=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(M(M({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof L5)return null;throw o}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Rt.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(M(M({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||uN(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&n0(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;mi.reset(),si.reset(),this.addTypenameTransform.resetCache(),(r=this.config.fragments)===null||r===void 0||r.resetCaches();var i=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),i},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(ze(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&_e.warn(r)}}
724,t.prototype.evict=function(n){if(!n.id){if(Rt.call(n,"id"))return!1;n=M(M({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),mi.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),n0(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,i=n.update,o=n.optimistic,s=o===void 0?!0:o,a=n.removeOptimistic,c=n.onWatchUpdated,l,u=function(d){var h=r,p=h.data,m=h.optimisticData;++r.txCount,d&&(r.data=r.optimisticData=d);try{return l=i(r)}finally{--r.txCount,r.data=p,r.optimisticData=m}},f=new Set;return c&&!this.txCount&&this.broadcastWatches(M(M({},n),{onWatchUpdated:function(d){return f.add(d),!1}})),typeof s=="string"?this.optimisticData=this.optimisticData.addLayer(s,u):s===!1?u(this.data):u(),typeof a=="string"&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&f.size?(this.broadcastWatches(M(M({},n),{onWatchUpdated:function(d,h){var p=c.call(this,d,h);return p!==!1&&f.delete(d),p}})),f.size&&f.forEach(function(d){return r.maybeBroadcastWatch.dirty(d)})):this.broadcastWatches(n),l},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.fragmentMatches=function(n,r){return this.policies.fragmentMatches(n,r)},t.prototype.lookupFragment=function(n){var r;return((r=this.config.fragments)===null||r===void 0?void 0:r.lookup(n))||null},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,o=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,o,i)===!1)||(!i||!ot(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(P5);globalThis.__DEV__!==!1&&(Q5.prototype.getMemoryInternals=WO);var We;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(We||(We={}));function ns(e){return e?e<7:!1}var h0=Object.assign,yN=Object.hasOwnProperty,Cl=function(e){Rn(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,o=n.options,s=this,a=t.inactiveOnCreation.getValue();s=e.call(this,function(g){a&&(r.queries.set(s.queryId,i),a=!1);try{var _=g._subscription._observer;_&&!_.error&&(_.error=vN)}catch{}var v=!s.observers.size;s.observers.add(g);var b=s.last;return b&&b.error?g.error&&g.error(b.error):b&&b.result&&g.next&&g.next(s.maskResult(b.result)),v&&s.reobserve().catch(function(){}),function(){s.observers.delete(g)&&!s.observers.size&&s.tearDownQuery()}})||this,s.observers=new Set,s.subscriptions=new Set,s.queryInfo=i,s.queryManager=r,s.waitForOwnResult=Ad(o.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var c=r.defaultOptions.watchQuery,l=c===void 0?{}:c,u=l.fetchPolicy,f=u===void 0?"cache-first":u,d=o.fetchPolicy,h=d===void 0?f:d,p=o.initialFetchPolicy,m=p===void 0?h==="standby"?f:h:p;s.options=M(M({},o),{initialFetchPolicy:m,fetchPolicy:h}),s.queryId=i.queryId||r.generateQueryId();var y=ho(s.query);return s.queryName=y&&y.name&&y.name.value,s}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables}
724,enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,i){var o={next:function(a){r(a),n.observers.delete(o),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){s.unsubscribe()},0)},error:i},s=n.subscribe(o)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),i=this.queryInfo.networkStatus||r&&r.networkStatus||We.ready,o=M(M({},r),{loading:ns(i),networkStatus:i}),s=this.options.fetchPolicy,a=s===void 0?"cache-first":s;if(!(Ad(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(o.data=c.result),ot(o.data,{})&&(o.data=void 0),c.complete?(delete o.partial,c.complete&&o.networkStatus===We.loading&&(a==="cache-first"||a==="cache-only")&&(o.networkStatus=We.ready,o.loading=!1)):o.partial=!0,o.networkStatus===We.ready&&(o.error||o.errors)&&(o.networkStatus=We.error),globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&Y5(c.missing)}return n&&this.updateLastResult(o),o},t.prototype.getCurrentResult=function(n){return n===void 0&&(n=!0),this.maskResult(this.getCurrentFullResult(n))},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),o=this.queryManager.dataMasking,s=o?i.nonReactiveQuery:this.query,a=o||i.hasNonreactiveDirective?!A5(s,this.last.result,n,this.variables):!ot(this.last.result,n);return a||r&&!ot(this.last.variables,r)},t.prototype.getLast=function(n,r){var i=this.last;if(i&&i[n]&&(!r||ot(i.variables,this.variables)))return i[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,i={pollInterval:0},o=this.options.fetchPolicy;if(o==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&yN.call(n,"variables")){var s=G3(this.query),a=s.variableDefinitions;(!a||!a.some(function(c){return c.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&_e.warn(21,n,((r=s.name)===null||r===void 0?void 0:r.value)||s)}return n&&!ot(this.options.variables,n)&&(i.variables=this.options.variables=M(M({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(i,We.refetch)},t.prototype.fetchMore=function(n){var r=this,i=M(M({},n.query?n:M(M(M(M({},this.options),{query:this.options.query}),n),{variables:M(M({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):i.query;var s=this.queryInfo,a=s.networkStatus;s.networkStatus=We.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var c=new Set,l=n==null?void 0:n.updateQuery,u=this.options.fetchPolicy!=="no-cache";return u||_e(l,22),this.queryManager.fetchQuery(o,i,We.fetchMore).then(function(f){if(r.queryManager.removeQuery(o),s.networkStatus===We.fetchMore&&(s.networkStatus=a),u)r.queryManager.cache.batch({update:function(p){var m=n.updateQuery;m?p.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(y){return m(y,{fetchMoreResult:f.data,variables:i.variables})}):p.writeQuery({query:i.query,variables:i.variables,data:f.data})},onWatchUpdated:function(p){c.add(p.query)}});else{var d=r.getLast("result"),h=l(d.data,{fetchMoreResult:f.data,variables:i.variables});r.reportResult(M(M({},d),{networkStatus:a,loading:ns(a),data:h}),r.variables)}return r.maskResult(f)}).finally(function(){u&&!c.has(r.query)&&K5(r)})},t.prototype.subscribeToMore=function(n){var r=this,i=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(o){var s=n.updateQuery;s&&r.updateQuery(function(a,c){return s(a,M({subscriptionData:o},c))})}
724,error:function(o){if(n.onError){n.onError(o);return}globalThis.__DEV__!==!1&&_e.error(23,o)}});return this.subscriptions.add(i),function(){r.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=ms(this.options,n||{});h0(this.options,r)},t.prototype.setVariables=function(n){return ot(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},We.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,i=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),o=i.result,s=i.complete,a=n(o,{variables:this.variables,complete:!!s,previousData:o});a&&(r.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var i=r.fetchPolicy,o=i===void 0?"cache-first":i,s=r.initialFetchPolicy,a=s===void 0?o:s;o==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(o,{reason:n,options:r,observable:this,initialFetchPolicy:a}):n==="variables-changed"?r.fetchPolicy=a:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,i){var o=this.queryManager.getOrCreateQuery(this.queryId);return o.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(o,n,r,i)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,i=r.pollingInfo,o=r.options.pollInterval;if(!o||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){_e(o,24);var s=i||(this.pollingInfo={});s.interval=o;var a=function(){var l,u;n.pollingInfo&&(!ns(n.queryInfo.networkStatus)&&!(!((u=(l=n.options).skipPollAttempt)===null||u===void 0)&&u.call(l))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},We.poll).then(c,c):c())},c=function(){var l=n.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(a,l.interval))};c()}}},t.prototype.updateLastResult=function(n,r){r===void 0&&(r=this.variables);var i=this.getLastError();return i&&this.last&&!ot(r,this.last.variables)&&(i=void 0),this.last=M({result:this.queryManager.assumeImmutableResults?n:h5(n),variables:r},i?{error:i}:null)},t.prototype.reobserveAsConcast=function(n,r){var i=this;this.isTornDown=!1;var o=r===We.refetch||r===We.fetchMore||r===We.poll,s=this.options.variables,a=this.options.fetchPolicy,c=ms(this.options,n||{}),l=o?c:h0(this.options,c),u=this.transformDocument(l.query);this.lastQuery=u,o||(this.updatePolling(),n&&n.variables&&!ot(n.variables,s)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===a||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),r===void 0&&(r=We.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Ad(l.fetchPolicy));var f=function(){i.concast===p&&(i.waitForOwnResult=!1)},d=l.variables&&M({},l.variables),h=this.fetch(l,r,u),p=h.concast,m=h.fromLink,y={next:function(g){ot(i.variables,d)&&(f(),i.reportResult(g,d))},error:function(g){ot(i.variables,d)&&(lg(g)||(g=new Ln({networkError:g})),f(),i.reportError(g,d))}};return!o&&(m||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=y),p.addObserver(y),p},t.prototype.reobserve=function(n,r){return $M(this.reobserveAsConcast(n,r).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this.last;this.resetLastResults();var o=this.subscribe.apply(this,n);return this.last=i,o},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(n,r){var i=this.getLastError(),o=this.isDifferentFromLastResult(n,r);(i||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,r),(i||o)&&Ia(this.observers,"next",this.maskResult(n))},t.prototype.reportError=function(n,r){var i=M(M({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:We.error,loading:!1});this.updateLastResult(i,r),Ia(this.observers,"error",this.last.error=n)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t.prototype.maskResult=function(n){return n&&"data"in n?M(M({},n),{data:this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):n},t.inactiveOnCreation=new mc,t}(Ke);p5(Cl);function K5(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(i,o){return this.nextFetchPolicy=r,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(i,o):n}}):e.reobserve()}function vN(e){globalThis.__DEV__!==!1&&_e.error(25,e.message,e.stack)}function Y5(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&_e.debug(26,e)}function Ad(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Ho=new(_o?WeakMap:Map);function Rd(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Ho.set(e,(Ho.get(e)+1)%1e15),n.apply(this,arguments)})}function p0(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Od=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;Ho.has(r)||(Ho.set(r,0),Rd(r,"evict"),Rd(r,"modify"),Rd(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||We.loading;return this.variables&&this.networkStatus!==We.loading&&!ot(this.variables,t.variables)&&(n=We.setVariables),ot(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){p0(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&ot(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r,i=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((r=this.observableQuery)===null||r===void 0)&&r.getLastError())||(this.updateLastDiff(t),!this.dirty&&!ot(i&&i.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?t.observe():K5(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;
724p0(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(ns(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var t;(t=this.cancelWatch)===null||t===void 0||t.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var i=M(M({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return n.setDiff(o)}});(!this.lastWatch||!ot(i,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Ho.get(this.cache)&&ot(n,r.variables)&&ot(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,s=new Ei,a=ur(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&ur(t.incremental)){var c=m5(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var l=this.getDiff();t.data=s.merge(l.result,t.data)}this.graphQLErrors=a,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):i!==0&&(yp(t,r.errorPolicy)?this.cache.performTransaction(function(u){if(o.shouldWrite(t,r.variables))u.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:i===1}),o.lastWrite={result:t,variables:r.variables,dmCount:Ho.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){t.data=o.lastDiff.diff.result;return}var f=o.getDiffOptions(r.variables),d=u.diff(f);!o.stopped&&ot(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(d,f),d.complete&&(t.data=d.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=We.ready},e.prototype.markError=function(t){return this.networkStatus=We.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function yp(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!Sl(e);return!r&&n&&e.data&&(r=!0),r}var _N=Object.prototype.hasOwnProperty,m0=Object.create(null),bN=function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new j3(Mr["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Br(!1),this.noCacheWarningsByQueryId=new Set;var r=new s5(function(o){return n.cache.transformDocument(o)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var i=t.documentTransform;this.documentTransform=i?r.concat(i).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(Xt(27))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return Jr(this,arguments,void 0,function(n){var r,i,o,s,a,c,l,u=n.mutation,f=n.variables,d=n.optimisticResponse,h=n.updateQueries,p=n.refetchQueries,m=p===void 0?[]:p,y=n.awaitRefetchQueries,g=y===void 0?!1:y,_=n.update,v=n.onQueryUpdated,b=n.fetchPolicy,w=b===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.fetchPolicy)||"network-only":b,S=n.errorPolicy,k=S===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.errorPolicy)||"none":S,R=n.keepRootFields,A=n.context;return Zr(this,function(T){switch(T.label){case 0:return _e(u,28),_e(w==="network-only"||w==="no-cache",29),r=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),i=this.getDocumentInfo(u).hasClientExports,f=this.getVariables(u,f),i?[4,this.localState.addExportedVariables(u,f,A)]:[3,2];case 1:f=T.sent(),T.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[r]={mutation:u,variables:f,loading:!0,error:null}),s=d&&this.markMutationOptimistic(d,{mutationId:r,document:u,variables:f,fetchPolicy:w,errorPolicy:k,context:A,updateQueries:h,update:_,keepRootFields:R}),this.broadcastQueries(),a=this,[2,new Promise(function($,D){return Sd(a.getObservableFromLink(u,M(M({},A),{optimisticResponse:s?d:void 0}),f,{},!1),function(H){if(Sl(H)&&k==="none")throw new Ln({graphQLErrors:rp(H)});o&&(o.loading=!1,o.error=null);var ce=M({},H);return typeof m=="function"&&(m=m(ce)),k==="ignore"&&Sl(ce)&&delete ce.errors,a.markMutationResult({mutationId:r,result:ce,document:u,variables:f,fetchPolicy:w,errorPolicy:k,context:A,update:_,updateQueries:h,awaitRefetchQueries:g,refetchQueries:m,removeOptimistic:s?r:void 0,onQueryUpdated:v,keepRootFields:R})}).subscribe({next:function(H){a.broadcastQueries(),(!("hasNext"in H)||H.hasNext===!1)&&$(M(M({},H),{data:a.maskOperation({document:u,data:H.data,fetchPolicy:w,id:r})}))},error:function(H){o&&(o.loading=!1,o.error=H),s&&a.cache.removeOptimistic(r),a.broadcastQueries(),D(H instanceof Ln?H:new Ln({networkError:H}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var i=t.result,o=[],s=t.fetchPolicy==="no-cache";if(!s&&yp(i,t.errorPolicy)){if(es(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),es(i)&&ur(i.incremental)){var a=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}
724),c=void 0;a.result&&(c=m5(a.result,i)),typeof c<"u"&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var l=t.updateQueries;l&&this.queries.forEach(function(f,d){var h=f.observableQuery,p=h&&h.queryName;if(!(!p||!_N.call(l,p))){var m=l[p],y=r.queries.get(d),g=y.document,_=y.variables,v=n.diff({query:g,variables:_,returnPartialData:!0,optimistic:!1}),b=v.result,w=v.complete;if(w&&b){var S=m(b,{mutationResult:i,queryName:g&&la(g)||void 0,queryVariables:_});S&&o.push({result:S,dataId:"ROOT_QUERY",query:g,variables:_})}}})}if(o.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(f){s||o.forEach(function(m){return f.write(m)});var d=t.update,h=!VM(i)||es(i)&&!i.hasNext;if(d){if(!s){var p=f.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});p.complete&&(i=M(M({},i),{data:p.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&d(f,i,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&h&&f.modify({id:"ROOT_MUTATION",fields:function(m,y){var g=y.fieldName,_=y.DELETE;return g==="__typename"?m:_}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(f){return u.push(f)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(u).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i=typeof t=="function"?t(n.variables,{IGNORE:m0}):t;return i===m0?!1:(this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(M(M({},n),{result:{data:i}}),o)}catch(s){globalThis.__DEV__!==!1&&_e.error(s)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(t),n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:EO(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:Ka(["nonreactive"],t),nonReactiveQuery:TM(t),clientQuery:this.localState.clientQuery(t),serverQuery:c5([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:eg(ho(t)),asQuery:M(M({},t),{definitions:t.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?M(M({},i),{operation:"query"}):i})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return M(M({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=M(M({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new Od(this),i=new Cl({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,Cl.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;n===void 0&&(n=this.generateQueryId()),_e(t.query,30),_e(t.query.kind==="Document",31),_e(!t.returnPartialData,32),_e(!t.pollInterval,33);var i=this.transform(t.query);return this.fetchQuery(n,M(M({},t),{query:i})).then(function(o){return o&&M(M({},o),{data:r.maskOperation({document:i,data:o.data,fetchPolicy:t.fetchPolicy,id:n})})}).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}
724),this.cancelPendingFetches(Xt(34)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=We.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,i=new Map,o=new Map,s=new Set;return Array.isArray(t)&&t.forEach(function(a){if(typeof a=="string")i.set(a,a),o.set(a,!1);else if(ZO(a)){var c=si(n.transform(a));i.set(c,la(a)),o.set(c,!1)}else ft(a)&&a.query&&s.add(a)}),this.queries.forEach(function(a,c){var l=a.observableQuery,u=a.document;if(l){if(t==="all"){r.set(c,l);return}var f=l.queryName,d=l.options.fetchPolicy;if(d==="standby"||t==="active"&&!l.hasObservers())return;(t==="active"||f&&o.has(f)||u&&o.has(si(u)))&&(r.set(c,l),f&&o.set(f,!0),u&&o.set(si(u),!0))}}),s.size&&s.forEach(function(a){var c=Qh("legacyOneTimeQuery"),l=n.getOrCreateQuery(c).init({document:a.query,variables:a.variables}),u=new Cl({queryManager:n,queryInfo:l,options:M(M({},a),{fetchPolicy:"network-only"})});_e(u.queryId===c),l.setObservableQuery(u),r.set(c,u)}),globalThis.__DEV__!==!1&&o.size&&o.forEach(function(a,c){if(!a){var l=i.get(c);l?globalThis.__DEV__!==!1&&_e.warn(35,l):globalThis.__DEV__!==!1&&_e.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,o){var s=i.options.fetchPolicy;i.resetLastResults(),(t||s!=="standby"&&s!=="cache-only")&&r.push(i.refetch()),(n.queries.get(o)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.variables,o=t.fetchPolicy,s=t.errorPolicy,a=s===void 0?"none":s,c=t.context,l=c===void 0?{}:c,u=t.extensions,f=u===void 0?{}:u;r=this.transform(r),i=this.getVariables(r,i);var d=function(p){return n.getObservableFromLink(r,l,p,f).map(function(m){o!=="no-cache"&&(yp(m,a)&&n.cache.write({query:r,result:m.data,dataId:"ROOT_SUBSCRIPTION",variables:p}),n.broadcastQueries());var y=Sl(m),g=g5(m);if(y||g){var _={};if(y&&(_.graphQLErrors=m.errors),g&&(_.protocolErrors=m.extensions[df]),a==="none"||g)throw new Ln(_)}return a==="ignore"&&delete m.errors,m})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,i,l).then(d);return new Ke(function(p){var m=null;return h.then(function(y){return m=y.subscribe(p)},p.error),function(){return m&&m.unsubscribe()}})}return d(i)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){var n;this.fetchCancelFns.delete(t),this.queries.has(t)&&((n=this.queries.get(t))===null||n===void 0||n.stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i,o){var s=this,a;o===void 0&&(o=(a=n==null?void 0:n.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var c,l=this.getDocumentInfo(t),u=l.serverQuery,f=l.clientQuery;if(u){var d=this,h=d.inFlightLinkObservables,p=d.link,m={query:u,variables:r,operationName:la(u)||void 0,context:this.prepareContext(M(M({},n),{forceFetch:!o})),extensions:i};if(n=m.context,o){var y=si(u),g=mi(r),_=h.lookup(y,g);if(c=_.observable,!c){var v=new No([ip(p,m)]);c=_.observable=v,v.beforeNext(function b(w,S){w==="next"&&"hasNext"in S&&S.hasNext?v.beforeNext(b):h.remove(y,g)})}}else c=new No([ip(p,m)])}else c=new No([Ke.of({data:{}})]),n=this.prepareContext(n);return f&&(c=Sd(c,function(b){return s.localState.runResolvers({document:f,remoteResult:b,context:n,variables:r})})),c},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return Sd(this.getObservableFromLink(o,r.context,r.variables),function(s){var a=rp(s),c=a.length>0,l=r.errorPolicy;if(i>
724=t.lastRequestId){if(c&&l==="none")throw t.markError(new Ln({graphQLErrors:a}));t.markResult(s,o,r,n),t.markReady()}var u={data:s.data,loading:!1,networkStatus:We.ready};return c&&l==="none"&&(u.data=void 0),c&&l!=="ignore"&&(u.errors=a,u.networkStatus=We.error),u},function(s){var a=lg(s)?s:new Ln({networkError:s});throw i>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r,i){var o=this;r===void 0&&(r=We.loading),i===void 0&&(i=n.query);var s=this.getVariables(i,n.variables),a=this.defaultOptions.watchQuery,c=n.fetchPolicy,l=c===void 0?a&&a.fetchPolicy||"cache-first":c,u=n.errorPolicy,f=u===void 0?a&&a.errorPolicy||"none":u,d=n.returnPartialData,h=d===void 0?!1:d,p=n.notifyOnNetworkStatusChange,m=p===void 0?!1:p,y=n.context,g=y===void 0?{}:y,_=Object.assign({},n,{query:i,variables:s,fetchPolicy:l,errorPolicy:f,returnPartialData:h,notifyOnNetworkStatusChange:m,context:g}),v=function(R){_.variables=R;var A=o.fetchQueryByPolicy(t,_,r);return _.fetchPolicy!=="standby"&&A.sources.length>0&&t.observableQuery&&t.observableQuery.applyNextFetchPolicy("after-fetch",n),A},b=function(){return o.fetchCancelFns.delete(t.queryId)};this.fetchCancelFns.set(t.queryId,function(R){b(),setTimeout(function(){return w.cancel(R)})});var w,S;if(this.getDocumentInfo(_.query).hasClientExports)w=new No(this.localState.addExportedVariables(_.query,_.variables,_.context).then(v).then(function(R){return R.sources})),S=!0;else{var k=v(_.variables);S=k.fromLink,w=new No(k.sources)}return w.promise.then(b,b),{concast:w,fromLink:S}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,o=t.optimistic,s=o===void 0?!1:o,a=t.removeOptimistic,c=a===void 0?s?Qh("refetchQueries"):void 0:a,l=t.onQueryUpdated,u=new Map;i&&this.getObservableQueries(i).forEach(function(d,h){u.set(h,{oq:d,lastDiff:(n.queries.get(h)||d.queryInfo).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(d,h,p){var m=d.watcher instanceof Od&&d.watcher.observableQuery;if(m){if(l){u.delete(m.queryId);var y=l(m,h,p);return y===!0&&(y=m.refetch()),y!==!1&&f.set(m,y),y}l!==null&&u.set(m.queryId,{oq:m,lastDiff:p,diff:h})}}}),u.size&&u.forEach(function(d,h){var p=d.oq,m=d.lastDiff,y=d.diff,g;if(l){if(!y){var _=p.queryInfo;_.reset(),y=_.getDiff()}g=l(p,y,m)}(!l||g===!0)&&(g=p.refetch()),g!==!1&&f.set(p,g),h.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(h)}),c&&this.cache.removeOptimistic(c),f},e.prototype.maskOperation=function(t){var n,r,i,o=t.document,s=t.data;if(globalThis.__DEV__!==!1){var a=t.fetchPolicy,c=t.id,l=(n=ho(o))===null||n===void 0?void 0:n.operation,u=((r=l==null?void 0:l[0])!==null&&r!==void 0?r:"o")+c;this.dataMasking&&a==="no-cache"&&!NO(o)&&!this.noCacheWarningsByQueryId.has(u)&&(this.noCacheWarningsByQueryId.add(u),globalThis.__DEV__!==!1&&_e.warn(37,(i=la(o))!==null&&i!==void 0?i:"Unnamed ".concat(l??"operation")))}return this.dataMasking?eN(s,o,this.cache):s},e.prototype.maskFragment=function(t){var n=t.data,r=t.fragment,i=t.fragmentName;return this.dataMasking?N5(n,r,this.cache,i):n},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,o=n.query,s=n.variables,a=n.fetchPolicy,c=n.refetchWritePolicy,l=n.errorPolicy,u=n.returnPartialData,f=n.context,d=n.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:o,variables:s,networkStatus:r});var p=function(){return t.getDiff()},m=function(b,w){w===void 0&&(w=t.networkStatus||We.loading);var S=b.result;globalThis.__DEV__!==!1&&!u&&!ot(S,{})&&Y5(b.missing);var k=function(R){return Ke.of(M({data:R,loading:ns(w),networkStatus:w},b.complete?null:{partial:!0}))};return S&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:S},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(R){return k(R.data||void 0)}):l==="none"&&w===We.refetch&&Array.isArray(b.missing)?k(void 0):k(S)},y=a==="no-cache"?0:r===We.refetch&&c!=="merge"?1:2,g=function(){return i.getResultsFromLink(t,y,{query:o,variables:s,context:f,fetchPolicy:a,errorPolicy:l})},_=d&&typeof h=="number"&&h!==r&&ns(r);switch(a){default:case"cache-first":{var v=p();return v.complete?{fromLink:!1,sources:[m(v,t.markReady())]}:u||_?{fromLink:!0,sources:[m(v),g()]}:{fromLink:!0,sources:[g()]}}case"cache-and-network":{var v=p();return v.complete||u||_?{fromLink:!0,sources:[m(v),g()]}:{fromLink:!0,sources:[g()]}}case"cache-only":return{fromLink:!1,sources:[m(p(),t.markReady())]};case"network-only":return _?{fromLink:!0,sources:[m(p()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return _?{fromLink:!0,sources:[m(t.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new Od(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return M(M(M({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}(),wN=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=Av(n.resolvers,r)}):this.resolvers=Av(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return Jr(this,arguments,void 0,function(n){var r=n.document,i=n.remoteResult,o=n.context,s=n.variables,a=n.onlyRunForcedResolvers,c=a===void 0?!1:a;return Zr(this,function(l){return r?[2,this.resolveDocument(r,i.data,o,s,this.fragmentMatcher,c).then(function(u){return M(M({},i),{data:u.result})})]:[2,i]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return Ka(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return l5(t)},e.prototype.prepareContext=function(t){var n=this.cache;return M(M({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return Jr(this,arguments,void 0,function(n,r,i){return r===void 0&&(r={}),i===void 0&&(i={}),Zr(this,function(o){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(i),r).then(function(s){return M(M({},r),s.exportedVariables)})]:[2,M({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return zn(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),n))return of}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:CM(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return Jr(this,arguments,void 0,function(r,i,o,s,a,c){var l,u,f,d,h,p,m,y,g,_,v;return o===void 0&&(o={}),s===void 0&&(s={}),a===void 0&&(a=function(){return!0}),c===void 0&&(c=!1),Zr(this,function(b){return l=Ns(r),u=Ds(r),f=Os(u),d=this.collectSelectionsToResolve(l,f),h=l.operation,p=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",m=this,y=m.cache,g=m.client,_={fragmentMap:f,context:M(M({}
724,o),{cache:y,client:g}),variables:s,fragmentMatcher:a,defaultOperationType:p,exportedVariables:{},selectionsToResolve:d,onlyRunForcedResolvers:c},v=!1,[2,this.resolveSelectionSet(l.selectionSet,v,i,_).then(function(w){return{result:w,exportedVariables:_.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Jr(this,void 0,void 0,function(){var o,s,a,c,l,u=this;return Zr(this,function(f){return o=i.fragmentMap,s=i.context,a=i.variables,c=[r],l=function(d){return Jr(u,void 0,void 0,function(){var h,p;return Zr(this,function(m){return!n&&!i.selectionsToResolve.has(d)?[2]:pc(d,a)?Si(d)?[2,this.resolveField(d,n,r,i).then(function(y){var g;typeof y<"u"&&c.push((g={},g[Dr(d)]=y,g))})]:(uM(d)?h=d:(h=o[d.name.value],_e(h,19,d.name.value)),h&&h.typeCondition&&(p=h.typeCondition.name.value,i.fragmentMatcher(r,p,s))?[2,this.resolveSelectionSet(h.selectionSet,n,r,i).then(function(y){c.push(y)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(l)).then(function(){return ff(c)})]})})},e.prototype.resolveField=function(t,n,r,i){return Jr(this,void 0,void 0,function(){var o,s,a,c,l,u,f,d,h,p=this;return Zr(this,function(m){return r?(o=i.variables,s=t.name.value,a=Dr(t),c=s!==a,l=r[a]||r[s],u=Promise.resolve(l),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(f=r.__typename||i.defaultOperationType,d=this.resolvers&&this.resolvers[f],d&&(h=d[c?s:a],h&&(u=Promise.resolve(hg.withValue(this.cache,h,[r,cf(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}]))))),[2,u.then(function(y){var g,_;if(y===void 0&&(y=l),t.directives&&t.directives.forEach(function(b){b.name.value==="export"&&b.arguments&&b.arguments.forEach(function(w){w.name.value==="as"&&w.value.kind==="StringValue"&&(i.exportedVariables[w.value.value]=y)})}),!t.selectionSet||y==null)return y;var v=(_=(g=t.directives)===null||g===void 0?void 0:g.some(function(b){return b.name.value==="client"}))!==null&&_!==void 0?_:!1;if(Array.isArray(y))return p.resolveSubSelectedArray(t,n||v,y,i);if(t.selectionSet)return p.resolveSelectionSet(t.selectionSet,n||v,y,i)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var o=this;return Promise.all(r.map(function(s){if(s===null)return null;if(Array.isArray(s))return o.resolveSubSelectedArray(t,n,s,i);if(t.selectionSet)return o.resolveSelectionSet(t.selectionSet,n,s,i)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(s){return!Array.isArray(s)},i=this.selectionsToResolveCache;function o(s){if(!i.has(s)){var a=new Set;i.set(s,a),zn(s,{Directive:function(c,l,u,f,d){c.name.value==="client"&&d.forEach(function(h){r(h)&&bv(h)&&a.add(h)})},FragmentSpread:function(c,l,u,f,d){var h=n[c.name.value];_e(h,20,c.name.value);var p=o(h);p.size>0&&(d.forEach(function(m){r(m)&&bv(m)&&a.add(m)}),a.add(c),p.forEach(function(m){a.add(m)}))}})}return i.get(s)}return o(t)},e}(),g0=!1,J5=function(){function e(t){var n=this,r;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Xt(16);var i=t.uri,o=t.credentials,s=t.headers,a=t.cache,c=t.documentTransform,l=t.ssrMode,u=l===void 0?!1:l,f=t.ssrForceFetchDelay,d=f===void 0?0:f,h=t.connectToDevTools,p=t.queryDeduplication,m=p===void 0?!0:p,y=t.defaultOptions,g=t.defaultContext,_=t.assumeImmutableResults,v=_===void 0?a.assumeImmutableResults:_,b=t.resolvers,w=t.typeDefs,S=t.fragmentMatcher,k=t.name,R=t.version,A=t.devtools,T=t.dataMasking,$=t.link;$||($=i?new zD({uri:i,credentials:o,headers:s}):bn.empty()),this.link=$,this.cache=a,this.disableNetworkFetches=u||d>0,this.queryDeduplication=m,this.defaultOptions=y||Object.create(null),this.typeDefs=w,this.devtoolsConfig=M(M({},A),{enabled:(r=A==null?void 0:A.enabled)!==null&&r!==void 0?r:h}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),d&&setTimeout(function(){return n.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Ym,this.localState=new wN({cache:a,client:this,resolvers:b,fragmentMatcher:S}),this.queryManager=new bN({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:c,queryDeduplication:m,ssrMode:u,dataMasking:!!T,clientAwareness:{name:k,version:R},localState:this.localState,assumeImmutableResults:v,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!g0&&globalThis.__DEV__!==!1&&(g0=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,o=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&globalThis.__DEV__!==!1&&_e.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
724,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=kd(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=M(M({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=kd(this.defaultOptions.query,t)),_e(t.fetchPolicy!=="cache-and-network",17),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=M(M({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=kd(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){var n=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(i){return M(M({},i),{data:n.queryManager.maskOperation({document:t.query,data:i.data,fetchPolicy:t.fetchPolicy,id:r})})})},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){var n;return this.cache.watchFragment(M(M({},t),(n={},n[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,n)))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return ip(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(s,a){r.push(a),i.push(s)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(s){globalThis.__DEV__!==!1&&_e.debug(18,s)}),o},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(J5.prototype.getMemoryInternals=UO);var SN=Symbol("default-apollo-client"),Z5=Symbol("apollo-clients");function Md(e,t){return e?e.default:t??void 0}function Dd(e,t){return e==null?void 0:e[t]}function X5(e){let t;const n=Xa;if(!xs())t=i=>i?Dd(n,i):Md(n,n.default);else{const i=Ve(Z5,null),o=Ve(SN,null);t=s=>{if(s){const c=Dd(i,s);return c||Dd(n,s)}const a=Md(i,o);return a||Md(n,n.default)}}function r(i=e){const o=t(i);if(!o)throw new Error(`Apollo client with id ${i??"default"} not found. Use an app.runWithContext() or provideApolloClient() if you are outside of a component setup.`);return o}
724return{resolveClient:r,get client(){return r()}}}var Xa={};function kN(e){return Xa={default:e},function(t){const n=t();return Xa={},n}}function EN(e){return Xa=e,function(t){const n=t();return Xa={},n}}var Zn=typeof window>"u",jo={queries:oe(0),mutations:oe(0),subscriptions:oe(0),components:new Map};function CN(){const e=hr();if(!e)return{};let t;return Zn?(t={queries:oe(0),mutations:oe(0),subscriptions:oe(0)},{tracking:t}):(jo.components.has(e)?t=jo.components.get(e):(jo.components.set(e,t={queries:oe(0),mutations:oe(0),subscriptions:oe(0)}),Un(()=>{jo.components.delete(e)})),{tracking:t})}function eS(e,t){if(Zn)return;const{tracking:n}=CN();Oe(e,(r,i)=>{if(i!=null&&r!==i){const o=r?1:-1;n&&(n[t].value+=o),jo[t].value+=o}},{immediate:!0}),Un(()=>{e.value&&(n&&n[t].value--,jo[t].value--)})}function TN(e){eS(e,"queries")}function IN(e){eS(e,"mutations")}function xN(e){return Le(e)?e:typeof e=="function"?se(e):e&&Ut(e)}function Nd(e){return Le(e)?e:typeof e=="function"?se(e):oe(e)}function tS(e){return e instanceof Error?lg(e)?e:new Ln({networkError:e,errorMessage:e.message}):new Ln({networkError:Object.assign(new Error(e==null?void 0:e.message),{originalError:e}),errorMessage:String(e)})}function AN(e){return new Ln({graphQLErrors:e,errorMessage:`GraphQL response contains errors: ${e.map(t=>t.message).join(" | ")}`})}function hu(){const e=[];function t(o){return e.push(o),{off:()=>n(o)}}function n(o){const s=e.indexOf(o);s!==-1&&e.splice(s,1)}function r(...o){for(const s of e)s(...o)}function i(){return e.length}return{on:t,off:n,trigger:r,getCount:i}}function RN(e,t,n){return nS(e,t,n)}function nS(e,t,n={},r=!1){var i;const o=hr(),s=_n(),a=oe(),c=Nd(e),l=Nd(t),u=xN(n),f=mn(),d=hu(),h=mn(null),p=hu(),m=oe(!1);o&&TN(m);const y=oe();let g,_=!1,v,b;const w=()=>{_=!0,g&&g()},S=te=>{b=te,v&&v(te)},k=()=>{g=void 0,v=void 0,_=!1,b=void 0};s&&((i=s2)==null||i(()=>{var te;if(!(!I.value||Zn&&((te=a.value)==null?void 0:te.prefetch)===!1))return new Promise((me,Se)=>{g=()=>{k(),me()},v=Ee=>{k(),Se(Ee)},_?g():b&&v(b)}).finally(Y)}));const{resolveClient:R}=X5();function A(){var te;return R((te=a.value)==null?void 0:te.clientId)}const T=mn();let $,D=!1,H=!1,ce=!0;function K(){var te,me,Se,Ee,_t;if(D||!I.value||Zn&&((te=a.value)==null?void 0:te.prefetch)===!1||!ye){w();return}Zn&&(ie(c.value),ne(l.value),P(q(u))),D=!0,h.value=null,m.value=!0;const yt=A();if(T.value=yt.watchQuery({query:ye,variables:G??{},...a.value,...Zn&&((me=a.value)==null?void 0:me.fetchPolicy)!=="no-cache"?{fetchPolicy:"network-only"}:{}}),F(),!Zn&&(ce||!((Se=a.value)!=null&&Se.keepPreviousResult))&&(((Ee=a.value)==null?void 0:Ee.fetchPolicy)!=="no-cache"||a.value.notifyOnNetworkStatusChange)){const ct=T.value.getCurrentResult(!1);!ct.loading||ct.partial||(_t=a.value)!=null&&_t.notifyOnNetworkStatusChange?(W(ct),H=!ct.loading):ct.error&&(C(ct.error),H=!0)}if(!Zn)for(const ct of ue)ve(ct);ce=!1}function F(){$&&!$.closed||T.value&&(H=!1,$=T.value.subscribe({next:W,error:C}))}function V(){var te,me,Se,Ee;const _t=R((te=a.value)==null?void 0:te.clientId);return((me=a.value)==null?void 0:me.errorPolicy)||((Ee=(Se=_t.defaultOptions)==null?void 0:Se.watchQuery)==null?void 0:Ee.errorPolicy)}function W(te){var me;if(H){H=!1;return}h.value=null,de(te);const Se=V();Se&&Se==="all"&&!te.error&&((me=te.errors)!=null&&me.length)&&O(AN(te.errors)),w()}function de(te){var me,Se;f.value=te.data&&Object.keys(te.data).length===0?te.error&&!((me=a.value)!=null&&me.returnPartialData)&&((Se=a.value)==null?void 0:Se.errorPolicy)==="none"?void 0:f.value:te.data,m.value=te.loading,y.value=te.networkStatus,Tt(()=>{d.trigger(te,{client:A()})})}function C(te){if(H){H=!1;return}const me=tS(te),Se=V();Se&&Se!=="none"&&de(T.value.getCurrentResult()),O(me),S(me),B()}function O(te){h.value=te,m.value=!1,y.value=8,Tt(()=>{p.trigger(te,{client:A()})})}function B(){if(!T.value)return;const te=T.value.getLastError(),me=T.value.getLastResult();T.value.resetLastResults(),F(),Object.assign(T.value,{lastError:te,lastResult:me})}let Q=[];function Y(){w(),D&&(D=!1,m.value=!1,Q.forEach(te=>te()),Q=[],T.value&&(T.value.stopPolling(),T.value=null),$&&($.unsubscribe(),$=void 0))}let re=!1;function N(){!D||re||(re=!0,Tt(()=>{D&&(Y(),K()),re=!1}))}let x,j=!1;function J(){var te,me;a.value?((te=a.value)!=null&&te.throttle?x=I5(a.value.throttle,N):(me=a.value)!=null&&me.debounce?x=wD(a.value.debounce,N):x=N,j=!0):x=N}function ee(){!D||re||(j||J(),x())}let ye=c.value;const Te=oe(r),E=se(()=>!a.value||a.value.enabled==null||a.value.enabled),I=se(()=>E.value&&!Te.value&&!!c.value);Oe(()=>q(u),P,{deep:!0,immediate:!0});
724function P(te){a.value&&(a.value.throttle!==te.throttle||a.value.debounce!==te.debounce)&&J(),a.value=te,ee()}Oe(c,ie);function ie(te){ye=te,ee()}let G,ae;Oe(()=>{if(I.value)return l.value},ne,{deep:!0,immediate:!0});function ne(te){const me=JSON.stringify([te,I.value]);me!==ae&&(G=te,ee()),ae=me}function le(te=void 0){if(T.value)return te&&(G=te),h.value=null,m.value=!0,T.value.refetch(te).then(me=>{var Se;const Ee=(Se=T.value)==null?void 0:Se.getCurrentResult();return Ee&&de(Ee),me})}function X(te){T.value&&T.value.updateQuery(te)}function Z(te){if(T.value)return h.value=null,m.value=!0,T.value.fetchMore(te).then(me=>{var Se;const Ee=(Se=T.value)==null?void 0:Se.getCurrentResult();return Ee&&de(Ee),me})}const ue=[];function pe(te){if(Zn)return;const me=Nd(te);Oe(me,(Se,Ee,_t)=>{const yt=ue.findIndex(Lt=>Lt.options===Ee);yt!==-1&&ue.splice(yt,1);const ct={options:Se,unsubscribeFns:[]};ue.push(ct),ve(ct),_t(()=>{ct.unsubscribeFns.forEach(Lt=>Lt()),ct.unsubscribeFns=[]})},{immediate:!0})}function ve(te){if(!D)return;if(!T.value)throw new Error("Query is not defined");const me=T.value.subscribeToMore(te.options);Q.push(me),te.unsubscribeFns.push(me)}return Oe(I,te=>{te?Tt(()=>{K()}):Y()}),I.value&&K(),o?Un(()=>{Y(),ue.length=0}):console.warn("[Vue apollo] useQuery() is called outside of an active effect scope and the query will not be automatically stopped."),{result:f,loading:m,networkStatus:y,error:h,start:K,stop:Y,restart:ee,forceDisabled:Te,document:c,variables:l,options:u,query:T,refetch:le,fetchMore:Z,subscribeToMore:pe,updateQuery:X,onResult:d.on,onError:p.on}}function ON(e,t,n){const r=nS(e,t,n,!0);function i(o,s,a){return o&&(r.document.value=o),s&&(r.variables.value=s),a&&Object.assign(Le(r.options)?r.options.value:r.options,a),r.forceDisabled.value?(r.forceDisabled.value=!1,Zn&&r.start(),new Promise((l,u)=>{const{off:f}=r.onResult(h=>{h.loading||(l(h.data),f(),d())}),{off:d}=r.onError(h=>{u(h),f(),d()})})):!1}return{...r,load:i}}function yg(e,t={}){const n=hr(),r=oe(!1);n&&IN(r);const i=mn(null),o=oe(!1),s=hu(),a=hu(),{resolveClient:c}=X5();async function l(u,f={}){let d;typeof e=="function"?d=e():Le(e)?d=e.value:d=e;let h;typeof t=="function"?h=t():Le(t)?h=t.value:h=t;const p=c(h.clientId);i.value=null,r.value=!0,o.value=!0;try{const m=await p.mutate({mutation:d,...h,...f,variables:u??h.variables?{...h.variables,...u}:void 0});return r.value=!1,await Tt(),s.trigger(m,{client:p}),m}catch(m){const y=tS(m);if(i.value=y,r.value=!1,await Tt(),a.trigger(y,{client:p}),h.throws==="always"||h.throws!=="never"&&!a.getCount())throw y}return null}return n&&Un(()=>{r.value=!1}),{mutate:l,loading:r,error:i,called:o,onDone:s.on,onError:a.on}}function MN(e){return ft(e)&&"code"in e&&"reason"in e}function DN(e){var t;return ft(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var NN=function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r.client=n,r}return t.prototype.request=function(n){var r=this;return new Ke(function(i){return r.client.subscribe(M(M({},n),{query:si(n.query)}),{next:i.next.bind(i),complete:i.complete.bind(i),error:function(o){if(o instanceof Error)return i.error(o);var s=MN(o);return s||DN(o)?i.error(new Error("Socket closed".concat(s?" with event ".concat(o.code):"").concat(s?" ".concat(o.reason):""))):i.error(new Ln({graphQLErrors:Array.isArray(o)?o:[o]}))}})})},t}(bn);function rS(e){return new bn(function(t,n){var r=ar(t,[]);return new Ke(function(i){var o,s=!1;return Promise.resolve(r).then(function(a){return e(a,t.getContext())}).then(t.setContext).then(function(){s||(o=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){s=!0,o&&o.unsubscribe()}})})}function tn(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function zi(e){return tn(e)==="object"}function PN(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function y0(e,t){return e.length<124?e:t}const LN="graphql-transport-ws";var un;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(un||(un={}));var vt;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(vt||(vt={}));function iS(e){if(!zi(e))throw new Error(`Message is expected to be an object, but got ${tn(e)}`);
724if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${tn(e.type)}`);switch(e.type){case vt.ConnectionInit:case vt.ConnectionAck:case vt.Ping:case vt.Pong:{if(e.payload!=null&&!zi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case vt.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${tn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!zi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${tn(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${tn(e.payload.query)}`);if(e.payload.variables!=null&&!zi(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${tn(e.payload.variables)}`);if(e.payload.operationName!=null&&tn(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${tn(e.payload.operationName)}`);if(e.payload.extensions!=null&&!zi(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${tn(e.payload.extensions)}`);break}case vt.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${tn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!zi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${tn(e.payload)}`);break}case vt.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${tn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!PN(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case vt.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${tn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function $N(e,t){return iS(typeof e=="string"?JSON.parse(e,t):e)}function ea(e,t){return iS(e),JSON.stringify(e,t)}var rs=function(e){return this instanceof rs?(this.v=e,this):new rs(e)},FN=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(p){return Promise.resolve(p).then(h,f)}}function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(y,g){o.push([h,m,y,g])>1||c(h,m)})},p&&(i[h]=p(i[h])))}function c(h,p){try{l(r[h](p))}catch(m){d(o[0][3],m)}}function l(h){h.value instanceof rs?Promise.resolve(h.value.v).then(u,f):d(o[0][2],h)}function u(h){c("next",h)}function f(h){c("throw",h)}function d(h,p){h(p),o.shift(),o.length&&c(o[0][0],o[0][1])}};function BN(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:s=0,disablePong:a,connectionAckWaitTimeout:c=0,retryAttempts:l=5,retryWait:u=async function(F){let V=1e3;for(let W=0;W<F;W++)V*=2;await new Promise(W=>setTimeout(W,V+Math.floor(Math.random()*2700+300)))},shouldRetry:f=Pd,isFatalConnectionProblem:d,on:h,webSocketImpl:p,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,F=>{const V=Math.random()*16|0;return(F=="x"?V:V&3|8).toString(16)})},jsonMessageReplacer:y,jsonMessageReviver:g}=e;let _;if(p){if(!jN(p))throw new Error("Invalid WebSocket implementation provided");_=p}else typeof WebSocket<"u"?_=WebSocket:typeof global<"u"?_=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(_=window.WebSocket||window.MozWebSocket);if(!_)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const v=_,b=(()=>{const K=(()=>{const V={};return{on(W,de){return V[W]=de,()=>{delete V[W]}},emit(W){var de;"id"in W&&((de=V[W.id])===null||de===void 0||de.call(V,W))}}})(),F={connecting:h!=null&&h.connecting?[h.connecting]:[],opened:h!=null&&h.opened?[h.opened]:[],connected:h!=null&&h.connected?[h.connected]:[],ping:h!=null&&h.ping?[h.ping]:[],pong:h!=null&&h.pong?[h.pong]:[],message:h!=null&&h.message?[K.emit,h.message]:[K.emit],closed:h!=null&&h.closed?[h.closed]:[],error:h!=null&&h.error?[h.error]:[]};return{onMessage:K.on,on(V,W){const de=F[V];return de.push(W),()=>{de.splice(de.indexOf(W),1)}},emit(V,...W){for(const de of[...F[V]])de(...W)}}})();function w(K){const F=[b.on("error",V=>{F.forEach(W=>W()),K(V)}),b.on("closed",V=>{F.forEach(W=>W()),K(V)})]}let S,k=0,R,A=!1,T=0,$=!1;async function D(){clearTimeout(R);const[K,F]=await(S??(S=new Promise((de,C)=>(async()=>
724{if(A){if(await u(T),!k)return S=void 0,C({code:1e3,reason:"All Subscriptions Gone"});T++}b.emit("connecting",A);const O=new v(typeof t=="function"?await t():t,LN);let B,Q;function Y(){isFinite(s)&&s>0&&(clearTimeout(Q),Q=setTimeout(()=>{O.readyState===v.OPEN&&(O.send(ea({type:vt.Ping})),b.emit("ping",!1,void 0))},s))}w(N=>{S=void 0,clearTimeout(B),clearTimeout(Q),C(N),N instanceof v0&&(O.close(4499,"Terminated"),O.onerror=null,O.onclose=null)}),O.onerror=N=>b.emit("error",N),O.onclose=N=>b.emit("closed",N),O.onopen=async()=>{try{b.emit("opened",O);const N=typeof n=="function"?await n():n;if(O.readyState!==v.OPEN)return;O.send(ea(N?{type:vt.ConnectionInit,payload:N}:{type:vt.ConnectionInit},y)),isFinite(c)&&c>0&&(B=setTimeout(()=>{O.close(un.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},c)),Y()}catch(N){b.emit("error",N),O.close(un.InternalClientError,y0(N instanceof Error?N.message:new Error(N).message,"Internal client error"))}};let re=!1;O.onmessage=({data:N})=>{try{const x=$N(N,g);if(b.emit("message",x),x.type==="ping"||x.type==="pong"){b.emit(x.type,!0,x.payload),x.type==="pong"?Y():a||(O.send(ea(x.payload?{type:vt.Pong,payload:x.payload}:{type:vt.Pong})),b.emit("pong",!1,x.payload));return}if(re)return;if(x.type!==vt.ConnectionAck)throw new Error(`First message cannot be of type ${x.type}`);clearTimeout(B),re=!0,b.emit("connected",O,x.payload,A),A=!1,T=0,de([O,new Promise((j,J)=>w(J))])}catch(x){O.onmessage=null,b.emit("error",x),O.close(un.BadResponse,y0(x instanceof Error?x.message:new Error(x).message,"Bad response"))}}})())));K.readyState===v.CLOSING&&await F;let V=()=>{};const W=new Promise(de=>V=de);return[K,V,Promise.race([W.then(()=>{if(!k){const de=()=>K.close(1e3,"Normal Closure");isFinite(o)&&o>0?R=setTimeout(()=>{K.readyState===v.OPEN&&de()},o):de()}}),F])]}function H(K){if(Pd(K)&&(HN(K.code)||[un.InternalServerError,un.InternalClientError,un.BadRequest,un.BadResponse,un.Unauthorized,un.SubprotocolNotAcceptable,un.SubscriberAlreadyExists,un.TooManyInitialisationRequests].includes(K.code)))throw K;if($)return!1;if(Pd(K)&&K.code===1e3)return k>0;if(!l||T>=l||!f(K)||d!=null&&d(K))throw K;return A=!0}r||(async()=>{for(k++;;)try{const[,,K]=await D();await K}catch(K){try{if(!H(K))return}catch(F){return i==null?void 0:i(F)}}})();function ce(K,F){const V=m(K);let W=!1,de=!1,C=()=>{k--,W=!0};return(async()=>{for(k++;;)try{const[O,B,Q]=await D();if(W)return B();const Y=b.onMessage(V,re=>{switch(re.type){case vt.Next:{F.next(re.payload);return}case vt.Error:{de=!0,W=!0,F.error(re.payload),C();return}case vt.Complete:{W=!0,C();return}}});O.send(ea({id:V,type:vt.Subscribe,payload:K},y)),C=()=>{!W&&O.readyState===v.OPEN&&O.send(ea({id:V,type:vt.Complete},y)),k--,W=!0,B()},await Q.finally(Y);return}catch(O){if(!H(O))return}})().then(()=>{de||F.complete()}).catch(O=>{F.error(O)}),()=>{W||C()}}return{on:b.on,subscribe:ce,iterate(K){const F=[],V={done:!1,error:null,resolve:()=>{}},W=ce(K,{next(C){F.push(C),V.resolve()},error(C){V.done=!0,V.error=C,V.resolve()},complete(){V.done=!0,V.resolve()}}),de=function(){return FN(this,arguments,function*(){for(;;){for(F.length||(yield rs(new Promise(B=>V.resolve=B)));F.length;)yield yield rs(F.shift());if(V.error)throw V.error;if(V.done)return yield rs(void 0)}})}();return de.throw=async C=>(V.done||(V.done=!0,V.error=C,V.resolve()),{done:!0,value:void 0}),de.return=async()=>(W(),{done:!0,value:void 0}),de},async dispose(){if($=!0,S){const[K]=await S;K.close(1e3,"Normal Closure")}},terminate(){S&&b.emit("closed",new v0)}}}class v0 extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function Pd(e){return zi(e)&&"code"in e&&"reason"in e}function HN(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function jN(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function VN(e){let t=!1,n=()=>{t=!0};return{...BN({...e,on:{...e.on,opened:i=>{var o,s;(s=(o=e.on)==null?void 0:o.opened)==null||s.call(o,i),n=()=>{i.readyState===WebSocket.OPEN?i.close(4205,"Client Restart"):t=!0},t&&(t=!1,n())}}}),restart:()=>n()}}const _0=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function UN(e,t){t?t={..._0,...t}:t=_0;const n=oS(t);return n.dispatch(e),n.toString()}const WN=Object.freeze(["prototype","__proto__","constructor"]);function oS(e){let t="",n=new Map;const r=i=>{t+=i};return{toString(){return t},getContext(){return n},dispatch(i){return e.replacer&&(i=e.replacer(i)),this[i===null?"null":typeof i](i)},object(i){if(i&&typeof i.toJSON=="function")return this.object(i.toJSON());const o=Object.prototype.toString.call(i);let s="";const a=o.length;a<10?s="unknown:["+o+"]":s=o.slice(8,a-1),s=s.toLowerCase();let c=null;if((c=n.get(i))===void 0)n.set(i,n.size);else return this.dispatch("[CIRCULAR:"+c+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(i))return r("buffer:"),r(i.toString("utf8"));if(s!=="object"&&s!=="function"&&s!=="asyncfunction")this[s]?this[s](i):e.ignoreUnknown||this.unkown(i,s);else{let l=Object.keys(i);e.unorderedObjects&&(l=l.sort());let u=[];e.respectType!==!1&&!b0(i)&&(u=WN),e.excludeKeys&&(l=l.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),r("object:"+(l.length+u.length)+":");const f=d=>{this.dispatch(d),r(":"),e.excludeValues||this.dispatch(i[d]),r(",")};for(const d of l)f(d);for(const d of u)f(d)}},array(i,o){if(o=o===void 0?e.unorderedArrays!==!1:o,r("array:"+i.length+":"),!o||i.length<=1){for(const c of i)this.dispatch(c);return}const s=new Map,a=i.map(c=>{const l=oS(e);l.dispatch(c);for(const[u,f]of l.getContext())s.set(u,f);return l.toString()});return n=s,a.sort(),this.array(a,!1)},date(i){return r("date:"+i.toJSON())},symbol(i){return r("symbol:"+i.toString())},unkown(i,o){if(r(o),!!i&&(r(":"),i&&typeof i.entries=="function"))return this.array(Array.from(i.entries()),!0)},error(i){return r("error:"+i.toString())},boolean(i){return r("bool:"+i)},string(i){r("string:"+i.length+":"),r(i)},function(i){r("fn:"),b0(i)?this.dispatch("[native]"):this.dispatch(i.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(i.name)),e.respectFunctionProperties&&this.object(i)},number(i){return r("number:"+i)},xml(i){return r("xml:"+i.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(i){return r("regex:"+i.toString())},uint8array(i){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(i))},uint8clampedarray(i){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(i))},int8array(i){return r("int8array:"),this.dispatch(Array.prototype.slice.call(i))},uint16array(i){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(i))},int16array(i){return r("int16array:"),this.dispatch(Array.prototype.slice.call(i))},uint32array(i){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(i))},int32array(i){return r("int32array:"),this.dispatch(Array.prototype.slice.call(i))},float32array(i){return r("float32array:"),this.dispatch(Array.prototype.slice.call(i))},float64array(i){return r("float64array:"),this.dispatch(Array.prototype.slice.call(i))},arraybuffer(i){return r("arraybuffer:"),this.dispatch(new Uint8Array(i))},url(i){return r("url:"+i.toString())},map(i){r("map:");const o=[...i];return this.array(o,e.unorderedSets!==!1)},set(i){r("set:");const o=[...i];return this.array(o,e.unorderedSets!==!1)},file(i){return r("file:"),this.dispatch([i.name,i.size,i.type,i.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported 725Use "options.replacer" or "options.ignoreUnknown" 726`)},domwindow(){return r("domwindow")},bigint(i){return r("bigint:"+i.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")}
726,context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const sS="[native code] }",qN=sS.length;function b0(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-qN)===sS}class gi{constructor(t,n){Wt(this,"words");Wt(this,"sigBytes");t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||zN).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new gi([...this.words])}}const zN={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},GN={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r<e.sigBytes;r+=3){const i=e.words[r>>>2]>>>24-r%4*8&255,o=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,s=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,a=i<<16|o<<8|s;for(let c=0;c<4&&r*8+c*6<e.sigBytes*8;c++)n.push(t.charAt(a>>>6*(3-c)&63))}return n.join("")}},QN={parse(e){const t=e.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new gi(n,t)}},KN={parse(e){return QN.parse(unescape(encodeURIComponent(e)))}};class YN{constructor(){Wt(this,"_data",new gi);Wt(this,"_nDataBytes",0);Wt(this,"_minBufferSize",0);Wt(this,"blockSize",512/32)}reset(){this._data=new gi,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=KN.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const i=r*this.blockSize,o=Math.min(i*4,this._data.sigBytes);if(i){for(let s=0;s<i;s+=this.blockSize)this._doProcessBlock(this._data.words,s);n=this._data.words.splice(0,i),this._data.sigBytes-=o}return new gi(n,o)}}class JN extends YN{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}const w0=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ZN=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Hi=[];class XN extends JN{constructor(){super(...arguments);Wt(this,"_hash",new gi([...w0]))}reset(){super.reset(),this._hash=new gi([...w0])}_doProcessBlock(n,r){const i=this._hash.words;let o=i[0],s=i[1],a=i[2],c=i[3],l=i[4],u=i[5],f=i[6],d=i[7];for(let h=0;h<64;h++){if(h<16)Hi[h]=n[r+h]|0;else{const b=Hi[h-15],w=(b<<25|b>>>7)^(b<<14|b>>>18)^b>>>3,S=Hi[h-2],k=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;Hi[h]=w+Hi[h-7]+k+Hi[h-16]}const p=l&u^~l&f,m=o&s^o&a^s&a,y=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),g=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),_=d+g+p+ZN[h]+Hi[h],v=y+m;d=f,f=u,u=l,l=c+_|0,c=a,a=s,s=o,o=_+v|0}i[0]=i[0]+o|0,i[1]=i[1]+s|0,i[2]=i[2]+a|0,i[3]=i[3]+c|0,i[4]=i[4]+l|0,i[5]=i[5]+u|0,i[6]=i[6]+f|0,i[7]=i[7]+d|0}finalize(n){super.finalize(n);const r=this._nDataBytes*8,i=this._data.sigBytes*8;return this._data.words[i>>>5]|=128<<24-i%32,this._data.words[(i+64>>>9<<4)+14]=Math.floor(r/4294967296),this._data.words[(i+64>>>9<<4)+15]=r,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function eP(e){return new XN().finalize(e).toString(GN)}function tP(e,t={}){const n=typeof e=="string"?e:UN(e,t);return eP(n).slice(0,10)}const Qt={clientAwareness:!1,cookieAttributes:{maxAge:604800,secure:!0,sameSite:"lax"},clients:{default:{httpEndpoint:"https://graphql-mesh.primedia-service.com/graphql",defaultOptions:{query:{fetchPolicy:"no-cache",errorPolicy:"all"},watchQuery:{fetchPolicy:"no-cache",errorPolicy:"all"}},authType:"Bearer",authHeader:"Authorization",tokenName:"apollo:default.token",tokenStorage:"cookie"}}};function aS(...e){const{key:t,fn:n,options:r}=cS(...e);return A3(t,n,r)}function vc(...e){const{key:t,fn:n,options:r}=cS(...e);return A3(t,n,{...r,lazy:!0})}const cS=(...e)=>{var u,f,d,h,p,m,y;const{clients:t}=lS();let n,r,i,o,s,a={};if(typeof(e==null?void 0:e[0])=="object"&&"query"in e[0]?(n=(u=e==null?void 0:e[0])==null?void 0:u.query,r=(f=e==null?void 0:e[0])==null?void 0:f.variables,i=(d=e==null?void 0:e[0])==null?void 0:d.cache,s=(h=e==null?void 0:e[0])==null?void 0:h.context,o=(p=e==null?void 0:e[0])==null?void 0:p.clientId,typeof(e==null?void 0:e[1])=="object"&&(a=e==null?void 0:e[1])):(n=e==null?void 0:e[0],r=e==null?void 0:e[1],o=e==null?void 0:e[2],s=e==null?void 0:e[3],typeof(e==null?void 0:e[4])=="object"&&(a=e==null?void 0:e[4])),!n)throw new Error("@nuxtjs/apollo: no query provided");
726if((!o||!(t!=null&&t[o]))&&(o=t!=null&&t.default?"default":(m=Object.keys(t))==null?void 0:m[0],!o))throw new Error("@nuxtjs/apollo: no client found");return r&&(r=Le(r)?r:Ut(r),a.watch=a.watch||[],a.watch.push(r)),{key:((y=e==null?void 0:e[0])==null?void 0:y.key)||tP({query:F3(n),variables:q(r),clientId:o}),query:n,clientId:o,variables:r,fn:()=>{var g;return(g=t[o])==null?void 0:g.query({query:n,variables:q(r)||void 0,...i&&{fetchPolicy:"cache-first"},context:s}).then(_=>_.data)},options:a}};function lS(){const e=$e(),t=async r=>{var a;r=r||"default";const i=(a=Qt==null?void 0:Qt.clients)==null?void 0:a[r];if(!i)return;const o=oe(null);if(await e.callHook("apollo:auth",{token:o,client:r}),o.value)return o.value;const s=i.tokenName;return(i==null?void 0:i.tokenStorage)==="cookie"?e.runWithContext(()=>qh(s).value):localStorage.getItem(s)||null},n=async({token:r,client:i,mode:o,skipResetStore:s})=>{var l,u,f;i=i||"default";const a=(l=Qt==null?void 0:Qt.clients)==null?void 0:l[i];if(!a)return;const c=i&&a.tokenName;if((a==null?void 0:a.tokenStorage)==="cookie"){const d=i&&(a==null?void 0:a.cookieAttributes)||(Qt==null?void 0:Qt.cookieAttributes),h=qh(c,d);if(!h.value&&o==="logout")return;h.value=o==="login"&&r||null}else(a==null?void 0:a.tokenStorage)==="localStorage"&&(o==="login"&&r?localStorage.setItem(c,r):o==="logout"&&localStorage.removeItem(c));(u=e==null?void 0:e._apolloWsClients)!=null&&u[i]&&e._apolloWsClients[i].restart(),!s&&await((f=e==null?void 0:e._apolloClients)==null?void 0:f[i].resetStore().catch(d=>console.log("%cError on cache reset","color: orange;",d.message)))};return{getToken:t,clients:e==null?void 0:e._apolloClients,onLogin:(r,i,o)=>n({token:r,client:i,skipResetStore:o,mode:"login"}),onLogout:(r,i)=>n({client:r,skipResetStore:i,mode:"logout"})}}const nP=wt(e=>{var i,o;const n={};for(const[s,a]of Object.entries(Qt.clients)){const c=async()=>{var _,v;const y=oe(null);if(await e.callHook("apollo:auth",{token:y,client:s}),!y.value){if(a.tokenStorage==="cookie"){const b=qh(a.tokenName).value;b&&(y.value=b)}else a.tokenStorage==="localStorage"&&(y.value=localStorage.getItem(a.tokenName));if(!y.value)return}return!!((v=(_=y.value)==null?void 0:_.match(/^[a-zA-Z]+\s/))!=null&&v[0])||(a==null?void 0:a.authType)===null?y.value:`${a==null?void 0:a.authType} ${y.value}`},u=rS(async(y,{headers:g})=>{const _=await c();if(_)return{headers:{...g,[a.authHeader]:_}}}).concat(fg({...(a==null?void 0:a.httpLinkOptions)&&a.httpLinkOptions,uri:a.browserHttpEndpoint||a.httpEndpoint,headers:{...((i=a==null?void 0:a.httpLinkOptions)==null?void 0:i.headers)||{}}}));let f=null;if(a.wsEndpoint){const y=VN({...a.wsLinkOptions,url:a.wsEndpoint,connectionParams:async()=>{const g=await c();if(g)return{headers:{[a.authHeader]:g}}}});f=new NN(y),e._apolloWsClients=e._apolloWsClients||{},e._apolloWsClients[s]=y}const d=ug(y=>{e.callHook("apollo:error",y)}),h=bn.from([d,...f?[...a!=null&&a.websocketsOnly?[f]:[YM(({query:y})=>{const g=Ns(y);return g.kind==="OperationDefinition"&&g.operation==="subscription"},f,u)]]:[u]]),p=new Q5(a.inMemoryCacheOptions);n[s]=new J5({link:h,cache:p,...Qt.clientAwareness,ssrForceFetchDelay:100,connectToDevTools:a.connectToDevTools||!1,defaultOptions:a==null?void 0:a.defaultOptions}),!(n!=null&&n.default)&&!((o=Qt==null?void 0:Qt.clients)!=null&&o.default)&&s===Object.keys(Qt.clients)[0]&&(n.default=n[s]);const m=`_apollo:${s}`;e.hook("app:rendered",()=>{e.payload.data[m]=p.extract()}),e.payload.data[m]&&p.restore(ls(JSON.stringify(e.payload.data[m])))}EN(n),e.vueApp.provide(Z5,n),e.vueApp.use(bD({defaultClient:n==null?void 0:n.default})),e._apolloClients=n;const r=n==null?void 0:n.default;return{provide:{apolloHelpers:lS(),apollo:{clients:n,defaultClient:r}}}}),wn=yw("auth",{state:()=>({isAuthenticated:!1,profile:null,tokenParsed:null,idTokenParsed:null,isInitialized:!1}),actions:{setUser(e){this.isAuthenticated=!0,this.profile=e.profile??this.profile,this.tokenParsed=e.tokenParsed??this.tokenParsed,this.idTokenParsed=e.idTokenParsed??this.idTokenParsed},clearUser(){this.isAuthenticated=!1,this.profile=null,this.tokenParsed=null,this.idTokenParsed=null},setInitialized(e){this.isInitialized=e}},getters:{getUserName:e=>{var t,n;return((t=e.profile)==null?void 0:t.firstName)??((n=e.profile)==null?void 0:n.username)},getUserEmail:e=>{var t,n;return((t=e.profile)==null?void 0:t.email)??((n=e.profile)==null?void 0:n.username)}}}),rP=wt(e=>{const t=en(),n=e.$apollo,r=ug(a=>
726{e.callHook("apollo:error",a)}),i=rS(()=>{const a=wn(),c=e.$keycloak;return a.isAuthenticated&&(c!=null&&c.token)?{headers:{authorization:`Bearer ${c.token}`}}:{}}),o=new bn((a,c)=>c(a).map(l=>l)),s=fg({uri:t.public.graphqlEndpoint,useGETForQueries:!0,headers:{"x-app-name":"ewn","x-app-platform":"web"}});n.defaultClient.setLink(KM([r,i,o,s])),e.hook("apollo:error",a=>{throw a}),kN(n.defaultClient)}),iP=wt(e=>{const t=Rs("VueErrorHandler");e.hook("vue:error",(n,r,i)=>{(n==null?void 0:n.statusCode)!==404&&t.error("Error occurred in a Vue component",n,r,i)})});var oP="firebase",sP="11.6.0";/** 727 * @license 728 * Copyright 2020 Google LLC 729 * 730 * Licensed under the Apache License, Version 2.0 (the "License"); 731 * you may not use this file except in compliance with the License. 732 * You may obtain a copy of the License at 733 * 734 * http://www.apache.org/licenses/LICENSE-2.0 735 * 736 * Unless required by applicable law or agreed to in writing, software 737 * distributed under the License is distributed on an "AS IS" BASIS, 738 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 739 * See the License for the specific language governing permissions and 740 * limitations under the License. 741 */pi(oP,sP,"app");const aP=wt(e=>{const{public:{firebase:t}}=en(),n={apiKey:t.apiKey,authDomain:t.authDomain,projectId:t.projectId,storageBucket:t.storageBucket,messagingSenderId:t.messagingSenderId,appId:t.appId,measurementId:t.measurementId},r=r3(n),i=iR(r);e.vueApp.provide("analytics",i),e.provide("analytics",i)});function uS(e){if(!(this instanceof uS))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if(typeof e!="string"&&!$d(e))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if($d(e)){const C="oidcProvider"in e?["clientId"]:["url","realm","clientId"];for(const O of C)if(!e[O])throw new Error(`The configuration object is missing the required '${O}' property.`)}var t=this,n,r=[],i,o={enable:!0,callbackList:[],interval:5};t.didInitialize=!1;var s=!0,a=de(console.info),c=de(console.warn);globalThis.isSecureContext||c(`[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available. 742Continuing to run your application insecurely will lead to unexpected behavior and breakage. 743 744For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts`),t.init=function(C={}){if(t.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");t.didInitialize=!0,t.authenticated=!1,i=W();var O=["default","cordova","cordova-native"];if(O.indexOf(C.adapter)>-1?n=ce(C.adapter):typeof C.adapter=="object"?n=C.adapter:window.Cordova||window.cordova?n=ce("cordova"):n=ce(),typeof C.useNonce<"u"&&(s=C.useNonce),typeof C.checkLoginIframe<"u"&&(o.enable=C.checkLoginIframe),C.checkLoginIframeInterval&&(o.interval=C.checkLoginIframeInterval),C.onLoad==="login-required"&&(t.loginRequired=!0),C.responseMode)if(C.responseMode==="query"||C.responseMode==="fragment")t.responseMode=C.responseMode;else throw"Invalid value for responseMode";if(C.flow){switch(C.flow){case"standard":t.responseType="code";break;case"implicit":t.responseType="id_token token";break;case"hybrid":t.responseType="code id_token token";break;default:throw"Invalid value for flow"}t.flow=C.flow}if(C.timeSkew!=null&&(t.timeSkew=C.timeSkew),C.redirectUri&&(t.redirectUri=C.redirectUri),C.silentCheckSsoRedirectUri&&(t.silentCheckSsoRedirectUri=C.silentCheckSsoRedirectUri),typeof C.silentCheckSsoFallback=="boolean"?t.silentCheckSsoFallback=C.silentCheckSsoFallback:t.silentCheckSsoFallback=!0,typeof C.pkceMethod<"u"){if(C.pkceMethod!=="S256"&&C.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${C.pkceMethod}.`);t.pkceMethod=C.pkceMethod}else t.pkceMethod="S256";typeof C.enableLogging=="boolean"?t.enableLogging=C.enableLogging:t.enableLogging=!1,C.logoutMethod==="POST"?t.logoutMethod="POST":t.logoutMethod="GET",typeof C.scope=="string"&&(t.scope=C.scope),typeof C.acrValues=="string"&&(t.acrValues=C.acrValues),typeof C.messageReceiveTimeout=="number"&&C.messageReceiveTimeout>0?t.messageReceiveTimeout=C.messageReceiveTimeout:t.messageReceiveTimeout=1e4,t.responseMode||(t.responseMode="fragment"),t.responseType||(t.responseType="code",t.flow="standard");var B=R(),Q=R();Q.promise.then(function(){t.onReady&&t.onReady(t.authenticated),B.setSuccess(t.authenticated)}).catch(function(x){B.setError(x)});var Y=g();function re(){var x=function(ee){ee||(J.prompt="none"),C.locale&&(J.locale=C.locale),t.login(J).then(function(){Q.setSuccess()}).catch(function(ye){Q.setError(ye)})},j=async function(){var ee=document.createElement("iframe"),ye=await t.createLoginUrl({prompt:"none",redirectUri:t.silentCheckSsoRedirectUri});ee.setAttribute("src",ye),ee.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),ee.setAttribute("title","keycloak-silent-check-sso"),ee.style.display="none",document.body.appendChild(ee);var Te=function(E){if(!(E.origin!==window.location.origin||ee.contentWindow!==E.source)){var I=w(E.data);y(I,Q),document.body.removeChild(ee),window.removeEventListener("message",Te)}};window.addEventListener("message",Te)},J={};switch(C.onLoad){case"check-sso":o.enable?T().then(function(){D().then(function(ee){ee?Q.setSuccess():t.silentCheckSsoRedirectUri?j():x(!1)}).catch(function(ee){Q.setError(ee)})}):t.silentCheckSsoRedirectUri?j():x(!1);break;case"login-required":x(!0);break;default:throw"Invalid value for onLoad"}}function N(){var x=w(window.location.href);if(x&&window.history.replaceState(window.history.state,null,x.newUrl),x&&x.valid)return T().then(function(){y(x,Q)}).catch(function(j){Q.setError(j)});
744C.token&&C.refreshToken?(v(C.token,C.refreshToken,C.idToken),o.enable?T().then(function(){D().then(function(j){j?(t.onAuthSuccess&&t.onAuthSuccess(),Q.setSuccess(),$()):Q.setSuccess()}).catch(function(j){Q.setError(j)})}):t.updateToken(-1).then(function(){t.onAuthSuccess&&t.onAuthSuccess(),Q.setSuccess()}).catch(function(j){t.onAuthError&&t.onAuthError(),C.onLoad?re():Q.setError(j)})):C.onLoad?re():Q.setSuccess()}return Y.then(function(){H().then(N).catch(function(x){B.setError(x)})}),Y.catch(function(x){B.setError(x)}),B.promise},t.login=function(C){return n.login(C)};function l(C){if(typeof crypto>"u"||typeof crypto.getRandomValues>"u")throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(C))}function u(C){return f(C,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function f(C,O){for(var B=l(C),Q=new Array(C),Y=0;Y<C;Y++)Q[Y]=O.charCodeAt(B[Y]%O.length);return String.fromCharCode.apply(null,Q)}async function d(C,O){if(C!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${C}'.`);const B=new Uint8Array(await lP(O));return cP(B).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function h(C){var O={id_token:{acr:C}};return JSON.stringify(O)}t.createLoginUrl=async function(C){var O=b(),B=b(),Q=n.redirectUri(C),Y={state:O,nonce:B,redirectUri:encodeURIComponent(Q),loginOptions:C};C&&C.prompt&&(Y.prompt=C.prompt);var re;C&&C.action=="register"?re=t.endpoints.register():re=t.endpoints.authorize();var N=C&&C.scope||t.scope;N?N.indexOf("openid")===-1&&(N="openid "+N):N="openid";var x=re+"?client_id="+encodeURIComponent(t.clientId)+"&redirect_uri="+encodeURIComponent(Q)+"&state="+encodeURIComponent(O)+"&response_mode="+encodeURIComponent(t.responseMode)+"&response_type="+encodeURIComponent(t.responseType)+"&scope="+encodeURIComponent(N);if(s&&(x=x+"&nonce="+encodeURIComponent(B)),C&&C.prompt&&(x+="&prompt="+encodeURIComponent(C.prompt)),C&&typeof C.maxAge=="number"&&(x+="&max_age="+encodeURIComponent(C.maxAge)),C&&C.loginHint&&(x+="&login_hint="+encodeURIComponent(C.loginHint)),C&&C.idpHint&&(x+="&kc_idp_hint="+encodeURIComponent(C.idpHint)),C&&C.action&&C.action!="register"&&(x+="&kc_action="+encodeURIComponent(C.action)),C&&C.locale&&(x+="&ui_locales="+encodeURIComponent(C.locale)),C&&C.acr){var j=h(C.acr);x+="&claims="+encodeURIComponent(j)}if((C&&C.acrValues||t.acrValues)&&(x+="&acr_values="+encodeURIComponent(C.acrValues||t.acrValues)),t.pkceMethod)try{const J=u(96),ee=await d(t.pkceMethod,J);Y.pkceCodeVerifier=J,x+="&code_challenge="+ee,x+="&code_challenge_method="+t.pkceMethod}catch(J){throw new Error("Failed to generate PKCE challenge.",{cause:J})}return i.add(Y),x},t.logout=function(C){return n.logout(C)},t.createLogoutUrl=function(C){if(((C==null?void 0:C.logoutMethod)??t.logoutMethod)==="POST")return t.endpoints.logout();var B=t.endpoints.logout()+"?client_id="+encodeURIComponent(t.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(C,!1));return t.idToken&&(B+="&id_token_hint="+encodeURIComponent(t.idToken)),B},t.register=function(C){return n.register(C)},t.createRegisterUrl=async function(C){return C||(C={}),C.action="register",await t.createLoginUrl(C)},t.createAccountUrl=function(C){var O=p(),B=void 0;return typeof O<"u"&&(B=O+"/account?referrer="+encodeURIComponent(t.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(C))),B},t.accountManagement=function(){return n.accountManagement()},t.hasRealmRole=function(C){var O=t.realmAccess;return!!O&&O.roles.indexOf(C)>=0},t.hasResourceRole=function(C,O){if(!t.resourceAccess)return!1;var B=t.resourceAccess[O||t.clientId];return!!B&&B.roles.indexOf(C)>=0},t.loadUserProfile=function(){var C=p()+"/account",O=new XMLHttpRequest;O.open("GET",C,!0),O.setRequestHeader("Accept","application/json"),O.setRequestHeader("Authorization","bearer "+t.token);var B=R();return O.onreadystatechange=function(){O.readyState==4&&(O.status==200?(t.profile=JSON.parse(O.responseText),B.setSuccess(t.profile)):B.setError())},O.send(),B.promise}
744,t.loadUserInfo=function(){var C=t.endpoints.userinfo(),O=new XMLHttpRequest;O.open("GET",C,!0),O.setRequestHeader("Accept","application/json"),O.setRequestHeader("Authorization","bearer "+t.token);var B=R();return O.onreadystatechange=function(){O.readyState==4&&(O.status==200?(t.userInfo=JSON.parse(O.responseText),B.setSuccess(t.userInfo)):B.setError())},O.send(),B.promise},t.isTokenExpired=function(C){if(!t.tokenParsed||!t.refreshToken&&t.flow!="implicit")throw"Not authenticated";if(t.timeSkew==null)return a("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var O=t.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+t.timeSkew;if(C){if(isNaN(C))throw"Invalid minValidity";O-=C}return O<0},t.updateToken=function(C){var O=R();if(!t.refreshToken)return O.setError(),O.promise;C=C||5;var B=function(){var Y=!1;if(C==-1?(Y=!0,a("[KEYCLOAK] Refreshing token: forced refresh")):(!t.tokenParsed||t.isTokenExpired(C))&&(Y=!0,a("[KEYCLOAK] Refreshing token: token expired")),!Y)O.setSuccess(!1);else{var re="grant_type=refresh_token&refresh_token="+t.refreshToken,N=t.endpoints.token();if(r.push(O),r.length==1){var x=new XMLHttpRequest;x.open("POST",N,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),x.withCredentials=!0,re+="&client_id="+encodeURIComponent(t.clientId);var j=new Date().getTime();x.onreadystatechange=function(){if(x.readyState==4)if(x.status==200){a("[KEYCLOAK] Token refreshed"),j=(j+new Date().getTime())/2;var J=JSON.parse(x.responseText);v(J.access_token,J.refresh_token,J.id_token,j),t.onAuthRefreshSuccess&&t.onAuthRefreshSuccess();for(var ee=r.pop();ee!=null;ee=r.pop())ee.setSuccess(!0)}else{c("[KEYCLOAK] Failed to refresh token"),x.status==400&&t.clearToken(),t.onAuthRefreshError&&t.onAuthRefreshError();for(var ee=r.pop();ee!=null;ee=r.pop())ee.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")}},x.send(re)}}};if(o.enable){var Q=D();Q.then(function(){B()}).catch(function(Y){O.setError(Y)})}else B();return O.promise},t.clearToken=function(){t.token&&(v(null,null,null),t.onAuthLogout&&t.onAuthLogout(),t.loginRequired&&t.login())};function p(){if(typeof t.authServerUrl<"u")return t.authServerUrl.charAt(t.authServerUrl.length-1)=="/"?t.authServerUrl+"realms/"+encodeURIComponent(t.realm):t.authServerUrl+"/realms/"+encodeURIComponent(t.realm)}function m(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function y(C,O){var B=C.code,Q=C.error,Y=C.prompt,re=new Date().getTime();if(C.kc_action_status&&t.onActionUpdate&&t.onActionUpdate(C.kc_action_status,C.kc_action),Q){if(Y!="none")if(C.error_description&&C.error_description==="authentication_expired")t.login(C.loginOptions);else{var N={error:Q,error_description:C.error_description};t.onAuthError&&t.onAuthError(N),O&&O.setError(N)}else O&&O.setSuccess();return}else t.flow!="standard"&&(C.access_token||C.id_token)&&ee(C.access_token,null,C.id_token,!0);if(t.flow!="implicit"&&B){var x="code="+B+"&grant_type=authorization_code",j=t.endpoints.token(),J=new XMLHttpRequest;J.open("POST",j,!0),J.setRequestHeader("Content-type","application/x-www-form-urlencoded"),x+="&client_id="+encodeURIComponent(t.clientId),x+="&redirect_uri="+C.redirectUri,C.pkceCodeVerifier&&(x+="&code_verifier="+C.pkceCodeVerifier),J.withCredentials=!0,J.onreadystatechange=function(){if(J.readyState==4)if(J.status==200){var ye=JSON.parse(J.responseText);ee(ye.access_token,ye.refresh_token,ye.id_token,t.flow==="standard"),$()}else t.onAuthError&&t.onAuthError(),O&&O.setError()},J.send(x)}function ee(ye,Te,E,I){re=(re+new Date().getTime())/2,v(ye,Te,E,re),s&&t.idTokenParsed&&t.idTokenParsed.nonce!=C.storedNonce?(a("[KEYCLOAK] Invalid nonce, clearing token"),t.clearToken(),O&&O.setError()):I&&(t.onAuthSuccess&&t.onAuthSuccess(),O&&O.setSuccess())}}function g(){var C=R(),O;typeof e=="string"&&(O=e);function B(N){N?t.endpoints={authorize:function(){return N.authorization_endpoint},token:function(){return N.token_endpoint},logout:function(){if(!N.end_session_endpoint)throw"Not supported by the OIDC server";return N.end_session_endpoint},checkSessionIframe:function(){if(!N.check_session_iframe)throw"Not supported by the OIDC server";return N.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!N.userinfo_endpoint)throw"Not supported by the OIDC server";return N.userinfo_endpoint}}:t.endpoints={authorize:function(){return p()+"/protocol/openid-connect/auth"},token:function(){return p()+"/protocol/openid-connect/token"},logout:function(){return p()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return p()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return p()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return p()+"/protocol/openid-connect/registrations"},userinfo:function(){return p()+"/protocol/openid-connect/userinfo"}}}if(O){var Q=new XMLHttpRequest;Q.open("GET",O,!0),Q.setRequestHeader("Accept","application/json"),Q.onreadystatechange=function(){if(Q.readyState==4)if(Q.status==200||_(Q)){var N=JSON.parse(Q.responseText);t.authServerUrl=N["auth-server-url"],t.realm=N.realm,t.clientId=N.resource,B(null),C.setSuccess()}else C.setError()},Q.send()}else{t.clientId=e.clientId;var Y=e.oidcProvider;if(!Y)t.authServerUrl=e.url,t.realm=e.realm,B(null),C.setSuccess();else if(typeof Y=="string"){var re;Y.charAt(Y.length-1)=="/"?re=Y+".well-known/openid-configuration":re=Y+"/.well-known/openid-configuration";var Q=new XMLHttpRequest;Q.open("GET",re,!0),Q.setRequestHeader("Accept","application/json"),Q.onreadystatechange=function(){if(Q.readyState==4)if(Q.status==200||_(Q)){var x=JSON.parse(Q.responseText);B(x),C.setSuccess()}else C.setError()},Q.send()}else B(Y),C.setSuccess()}return C.promise}function _(C){return C.status==0&&C.responseText&&C.responseURL.startsWith("file:")}
744function v(C,O,B,Q){if(t.tokenTimeoutHandle&&(clearTimeout(t.tokenTimeoutHandle),t.tokenTimeoutHandle=null),O?(t.refreshToken=O,t.refreshTokenParsed=Ld(O)):(delete t.refreshToken,delete t.refreshTokenParsed),B?(t.idToken=B,t.idTokenParsed=Ld(B)):(delete t.idToken,delete t.idTokenParsed),C){if(t.token=C,t.tokenParsed=Ld(C),t.sessionId=t.tokenParsed.sid,t.authenticated=!0,t.subject=t.tokenParsed.sub,t.realmAccess=t.tokenParsed.realm_access,t.resourceAccess=t.tokenParsed.resource_access,Q&&(t.timeSkew=Math.floor(Q/1e3)-t.tokenParsed.iat),t.timeSkew!=null&&(a("[KEYCLOAK] Estimated time difference between browser and server is "+t.timeSkew+" seconds"),t.onTokenExpired)){var Y=(t.tokenParsed.exp-new Date().getTime()/1e3+t.timeSkew)*1e3;a("[KEYCLOAK] Token expires in "+Math.round(Y/1e3)+" s"),Y<=0?t.onTokenExpired():t.tokenTimeoutHandle=setTimeout(t.onTokenExpired,Y)}}else delete t.token,delete t.tokenParsed,delete t.subject,delete t.realmAccess,delete t.resourceAccess,t.authenticated=!1}function b(){if(typeof crypto>"u"||typeof crypto.randomUUID>"u")throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function w(C){var O=S(C);if(O){var B=i.get(O.state);return B&&(O.valid=!0,O.redirectUri=B.redirectUri,O.storedNonce=B.nonce,O.prompt=B.prompt,O.pkceCodeVerifier=B.pkceCodeVerifier,O.loginOptions=B.loginOptions),O}}function S(C){var O;switch(t.flow){case"standard":O=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":O=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":O=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}O.push("error"),O.push("error_description"),O.push("error_uri");var B=C.indexOf("?"),Q=C.indexOf("#"),Y,re;if(t.responseMode==="query"&&B!==-1?(Y=C.substring(0,B),re=k(C.substring(B+1,Q!==-1?Q:C.length),O),re.paramsString!==""&&(Y+="?"+re.paramsString),Q!==-1&&(Y+=C.substring(Q))):t.responseMode==="fragment"&&Q!==-1&&(Y=C.substring(0,Q),re=k(C.substring(Q+1),O),re.paramsString!==""&&(Y+="#"+re.paramsString)),re&&re.oauthParams){if(t.flow==="standard"||t.flow==="hybrid"){if((re.oauthParams.code||re.oauthParams.error)&&re.oauthParams.state)return re.oauthParams.newUrl=Y,re.oauthParams}else if(t.flow==="implicit"&&(re.oauthParams.access_token||re.oauthParams.error)&&re.oauthParams.state)return re.oauthParams.newUrl=Y,re.oauthParams}}function k(C,O){for(var B=C.split("&"),Q={paramsString:"",oauthParams:{}},Y=0;Y<B.length;Y++){var re=B[Y].indexOf("="),N=B[Y].slice(0,re);O.indexOf(N)!==-1?Q.oauthParams[N]=B[Y].slice(re+1):(Q.paramsString!==""&&(Q.paramsString+="&"),Q.paramsString+=B[Y])}return Q}function R(){var C={setSuccess:function(O){C.resolve(O)},setError:function(O){C.reject(O)}};return C.promise=new Promise(function(O,B){C.resolve=O,C.reject=B}),C}function A(C,O,B){var Q=null,Y=new Promise(function(re,N){Q=setTimeout(function(){N({error:B})},O)});return Promise.race([C,Y]).finally(function(){clearTimeout(Q)})}function T(){var C=R();if(!o.enable||o.iframe)return C.setSuccess(),C.promise;var O=document.createElement("iframe");o.iframe=O,O.onload=function(){var Y=t.endpoints.authorize();Y.charAt(0)==="/"?o.iframeOrigin=m():o.iframeOrigin=Y.substring(0,Y.indexOf("/",8)),C.setSuccess()};var B=t.endpoints.checkSessionIframe();O.setAttribute("src",B),O.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),O.setAttribute("title","keycloak-session-iframe"),O.style.display="none",document.body.appendChild(O);var Q=function(Y){if(!(Y.origin!==o.iframeOrigin||o.iframe.contentWindow!==Y.source)&&(Y.data=="unchanged"||Y.data=="changed"||Y.data=="error")){Y.data!="unchanged"&&t.clearToken();for(var re=o.callbackList.splice(0,o.callbackList.length),N=re.length-1;N>=0;--N){var x=re[N];Y.data=="error"?x.setError():x.setSuccess(Y.data=="unchanged")}}};return window.addEventListener("message",Q,!1),C.promise}function $(){o.enable&&t.token&&setTimeout(function(){D().then(function(C){C&&$()})},o.interval*1e3)}function D(){var C=R();if(o.iframe&&o.iframeOrigin){var O=t.clientId+" "+(t.sessionId?t.sessionId:"");o.callbackList.push(C);var B=o.iframeOrigin;o.callbackList.length==1&&o.iframe.contentWindow.postMessage(O,B)}else C.setSuccess();return C.promise}function H(){var C=R();if((o.enable||t.silentCheckSsoRedirectUri)&&typeof t.endpoints.thirdPartyCookiesIframe=="function"){var O=document.createElement("iframe");O.setAttribute("src",t.endpoints.thirdPartyCookiesIframe()),O.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),O.setAttribute("title","keycloak-3p-check-iframe"),O.style.display="none",document.body.appendChild(O);var B=function(Q){O.contentWindow===Q.source&&(Q.data!=="supported"&&Q.data!=="unsupported"||(Q.data==="unsupported"&&(c(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means: 745 746 - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication). 747 - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab). 748 749For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers`),o.enable=!1,t.silentCheckSsoFallback&&(t.silentCheckSsoRedirectUri=!1)),document.body.removeChild(O),window.removeEventListener("message",B),C.setSuccess()))};window.addEventListener("message",B,!1)}else C.setSuccess();return A(C.promise,t.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function ce(C){if(!C||C=="default")return{login:async function(N){return window.location.assign(await t.createLoginUrl(N)),R().promise},logout:async function(N){if(((N==null?void 0:N.logoutMethod)??t.logoutMethod)==="GET"){window.location.replace(t.createLogoutUrl(N));return}const j=document.createElement("form");j.setAttribute("method","POST"),j.setAttribute("action",t.createLogoutUrl(N)),j.style.display="none";const J={id_token_hint:t.idToken,client_id:t.clientId,post_logout_redirect_uri:n.redirectUri(N,!1)};for(const[ee,ye]of Object.entries(J)){const Te=document.createElement("input");Te.setAttribute("type","hidden"),Te.setAttribute("name",ee),Te.setAttribute("value",ye),j.appendChild(Te)}document.body.appendChild(j),j.submit()},register:async function(N){return window.location.assign(await t.createRegisterUrl(N)),R().promise},accountManagement:function(){var N=t.createAccountUrl();if(typeof N<"u")window.location.href=N;else throw"Not supported by the OIDC server";return R().promise},redirectUri:function(N,x){return N&&N.redirectUri?N.redirectUri:t.redirectUri?t.redirectUri:location.href}};if(C=="cordova"){o.enable=!1;var O=function(N,x,j){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(N,x,j):window.open(N,x,j)},B=function(N){return N&&N.cordovaOptions?Object.keys(N.cordovaOptions).reduce(function(x,j){return x[j]=N.cordovaOptions[j],x}
749,{}):{}},Q=function(N){return Object.keys(N).reduce(function(x,j){return x.push(j+"="+N[j]),x},[]).join(",")},Y=function(N){var x=B(N);return x.location="no",N&&N.prompt=="none"&&(x.hidden="yes"),Q(x)},re=function(){return t.redirectUri||"http://localhost"};return{login:async function(N){var x=R(),j=Y(N),J=await t.createLoginUrl(N),ee=O(J,"_blank",j),ye=!1,Te=!1,E=function(){Te=!0,ee.close()};return ee.addEventListener("loadstart",function(I){if(I.url.indexOf(re())==0){var P=w(I.url);y(P,x),E(),ye=!0}}),ee.addEventListener("loaderror",function(I){if(!ye)if(I.url.indexOf(re())==0){var P=w(I.url);y(P,x),E(),ye=!0}else x.setError(),E()}),ee.addEventListener("exit",function(I){Te||x.setError({reason:"closed_by_user"})}),x.promise},logout:function(N){var x=R(),j=t.createLogoutUrl(N),J=O(j,"_blank","location=no,hidden=yes,clearcache=yes"),ee;return J.addEventListener("loadstart",function(ye){ye.url.indexOf(re())==0&&J.close()}),J.addEventListener("loaderror",function(ye){ye.url.indexOf(re())==0||(ee=!0),J.close()}),J.addEventListener("exit",function(ye){ee?x.setError():(t.clearToken(),x.setSuccess())}),x.promise},register:async function(N){var x=R(),j=await t.createRegisterUrl(),J=Y(N),ee=O(j,"_blank",J);return ee.addEventListener("loadstart",function(ye){if(ye.url.indexOf(re())==0){ee.close();var Te=w(ye.url);y(Te,x)}}),x.promise},accountManagement:function(){var N=t.createAccountUrl();if(typeof N<"u"){var x=O(N,"_blank","location=no");x.addEventListener("loadstart",function(j){j.url.indexOf(re())==0&&x.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(N){return re()}}}if(C=="cordova-native")return o.enable=!1,{login:async function(N){var x=R(),j=await t.createLoginUrl(N);return universalLinks.subscribe("keycloak",function(J){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var ee=w(J.url);y(ee,x)}),window.cordova.plugins.browsertab.openUrl(j),x.promise},logout:function(N){var x=R(),j=t.createLogoutUrl(N);return universalLinks.subscribe("keycloak",function(J){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),t.clearToken(),x.setSuccess()}),window.cordova.plugins.browsertab.openUrl(j),x.promise},register:async function(N){var x=R(),j=await t.createRegisterUrl(N);return universalLinks.subscribe("keycloak",function(J){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var ee=w(J.url);y(ee,x)}),window.cordova.plugins.browsertab.openUrl(j),x.promise},accountManagement:function(){var N=t.createAccountUrl();if(typeof N<"u")window.cordova.plugins.browsertab.openUrl(N);else throw"Not supported by the OIDC server"},redirectUri:function(N){return N&&N.redirectUri?N.redirectUri:t.redirectUri?t.redirectUri:"http://localhost"}};throw"invalid adapter type: "+C}const K="kc-callback-";var F=function(){if(!(this instanceof F))return new F;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var C=this;function O(){const re=Date.now();for(const[N,x]of Q()){const j=Y(x);(j===null||j<re)&&localStorage.removeItem(N)}}function B(){for(const[re]of Q())localStorage.removeItem(re)}function Q(){return Object.entries(localStorage).filter(([re])=>re.startsWith(K))}function Y(re){let N;try{N=JSON.parse(re)}catch{return null}return $d(N)&&"expires"in N&&typeof N.expires=="number"?N.expires:null}C.get=function(re){if(re){var N=K+re,x=localStorage.getItem(N);return x&&(localStorage.removeItem(N),x=JSON.parse(x)),O(),x}},C.add=function(re){O();const N=K+re.state,x=JSON.stringify({...re,expires:Date.now()+60*60*1e3});try{localStorage.setItem(N,x)}catch{B(),localStorage.setItem(N,x)}}},V=function(){if(!(this instanceof V))return new V;var C=this;C.get=function(Y){if(Y){var re=B(K+Y);if(Q(K+Y,"",O(-100)),re)return JSON.parse(re)}},C.add=function(Y){Q(K+Y.state,JSON.stringify(Y),O(60))},C.removeItem=function(Y){Q(Y,"",O(-100))};var O=function(Y){var re=new Date;return re.setTime(re.getTime()+Y*60*1e3),re},B=function(Y){for(var re=Y+"=",N=document.cookie.split(";"),x=0;x<N.length;x++){for(var j=N[x];j.charAt(0)==" ";)j=j.substring(1);if(j.indexOf(re)==0)return j.substring(re.length,j.length)}return""},Q=function(Y,re,N){var x=Y+"="+re+"; expires="+N.toUTCString()+"; ";document.cookie=x}};function W(){try{return new F}catch{}return new V}function de(C){return function(){t.enableLogging&&C.apply(console,Array.prototype.slice.call(arguments))}}}function cP(e){const t=String.fromCodePoint(...e);return btoa(t)}async function lP(e){const n=new TextEncoder().encode(e);if(typeof crypto>"u"||typeof crypto.subtle>"u")throw new Error("Web Crypto API is not available.");
749return await crypto.subtle.digest("SHA-256",n)}function Ld(e){const[t,n]=e.split(".");if(typeof n!="string")throw new Error("Unable to decode token, payload not found.");let r;try{r=uP(n)}catch(i){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:i})}try{return JSON.parse(r)}catch(i){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:i})}}function uP(e){let t=e.replaceAll("-","+").replaceAll("_","/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Input is not of the correct length.")}try{return fP(t)}catch{return atob(t)}}function fP(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function $d(e){return typeof e=="object"&&e!==null}const dP=wt(async e=>{var a,c;let t,n;const r=wn(),i=en(),o=Rs("Keycloak");if(!((c=(a=i.public)==null?void 0:a.keycloak)!=null&&c.url)){r.setInitialized(!0);return}const s=new uS({url:i.public.keycloak.url,realm:i.public.keycloak.realm,clientId:i.public.keycloak.clientId});e.provide("keycloak",s);try{const l=localStorage.getItem("kc_token"),u=localStorage.getItem("kc_refreshToken"),f=localStorage.getItem("kc_idToken");if([t,n]=fi(()=>s.init({onLoad:"check-sso",pkceMethod:"S256",checkLoginIframe:!1,silentCheckSsoFallback:!1,silentCheckSsoRedirectUri:`${window.location.origin}/silent-check-sso.html`,token:l||void 0,refreshToken:u||void 0,idToken:f||void 0})),t=await t,n(),t){const h=([t,n]=fi(()=>s.loadUserProfile()),t=await t,n(),t);r.setUser({profile:h,tokenParsed:s.tokenParsed,idTokenParsed:s.idTokenParsed}),s.token&&localStorage.setItem("kc_token",s.token),s.refreshToken&&localStorage.setItem("kc_refreshToken",s.refreshToken),s.idToken&&localStorage.setItem("kc_idToken",s.idToken)}else r.clearUser(),localStorage.removeItem("kc_token"),localStorage.removeItem("kc_refreshToken"),localStorage.removeItem("kc_idToken");r.setInitialized(!0),s.onTokenExpired=()=>{s.updateToken(30).then(h=>{h&&(s.token&&localStorage.setItem("kc_token",s.token),s.refreshToken&&localStorage.setItem("kc_refreshToken",s.refreshToken),s.idToken&&localStorage.setItem("kc_idToken",s.idToken),r.setUser({profile:r.profile,tokenParsed:s.tokenParsed,idTokenParsed:s.idTokenParsed}))}).catch(()=>{localStorage.removeItem("kc_token"),localStorage.removeItem("kc_refreshToken"),localStorage.removeItem("kc_idToken"),r.clearUser()})},s.onAuthError=()=>{localStorage.removeItem("kc_token"),localStorage.removeItem("kc_refreshToken"),localStorage.removeItem("kc_idToken"),r.clearUser()},s.onAuthLogout=()=>{localStorage.removeItem("kc_token"),localStorage.removeItem("kc_refreshToken"),localStorage.removeItem("kc_idToken"),r.clearUser()}}catch(l){o.error("Keycloak initialization failed",l),r.clearUser(),r.setInitialized(!0)}});var hf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllLocations"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locationOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availableLocations"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:73}};hf.loc.source={body:`query GetAllLocations { 750 locationOptions { 751 availableLocations 752 } 753} 754`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Tl(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Tl(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Tl(r,t)}),e.definitions&&e.definitions.forEach(function(r){Tl(r,t)})}var vp={};(function(){hf.definitions.forEach(function(t){if(t.name){var n=new Set;Tl(t,n),vp[t.name.value]=n}})})();function S0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function hP(e,t){var n={kind:e.kind,definitions:[S0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=vp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;
754o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=vp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=S0(e,a);c&&n.definitions.push(c)}),n}hP(hf,"GetAllLocations");const pP=()=>{const e=aS(hf),{error:t,status:n}=e,r=se(()=>{var o;return((o=e.data.value)==null?void 0:o.locationOptions.availableLocations)||[]}),i=se(()=>n.value==="pending");return{result:r,error:t,loading:i}};var fS=(e=>(e.Unknown="UNKNOWN",e.Local="LOCAL",e.Politics="POLITICS",e.World="WORLD",e.Sport="SPORT",e.Business="BUSINESS",e.Entertainment="ENTERTAINMENT",e.Lifestyle="LIFESTYLE",e.Opinion="OPINION",e.Features="FEATURES",e))(fS||{});Object.values(fS);var _p=(e=>(e.All="ALL",e.Audio="AUDIO",e.Video="VIDEO",e.Livestream="LIVESTREAM",e))(_p||{}),ro=(e=>(e.facebook="facebook",e.x="x",e.whatsapp="whatsapp",e))(ro||{}),mP=(e=>(e.RADIODETAIL="RadioDetailPublishedContent",e.AUDIODETAIL="AudioTeaserDetailPublishedContent",e.VIDEODETAIL="VideoTeaserDetailPublishedContent",e.PODCASTDETAIL="PodcastPublishedContent",e.AUDIOPODCASTDETAIL="AudioPodcastPublishedContent",e.VIDEOPODCASTDETAIL="VideoPodcastPublishedContent",e.NEWSDETAIL="NewsTeaserDetailPublishedContent",e.STATIC="StaticPagePublishedContent",e.LIVESTREAM="LivestreamVideoPublishedContent",e.NEWSMEDIAARTICLE="NewsMediaArticle",e))(mP||{}),gP=(e=>(e[e.INITIAL_STATE=0]="INITIAL_STATE",e[e.SAVED_RESULT=1]="SAVED_RESULT",e[e.LIVE_RESULT=2]="LIVE_RESULT",e))(gP||{}),yP=(e=>(e.en="ENGLISH",e.zu="ZULU",e))(yP||{}),vP=(e=>(e.image="ImageSectionGraphType",e.quote="QuoteSectionGraphType",e.richText="RichContentGraphType",e.brightcove="BrightcoveContentGraphType",e.embed="EmbedContentGraphType",e.ad="AdInsertionGraphType",e))(vP||{}),fa=(e=>(e.CapeTalk="CAPE_TALK",e.Kfm="KFM",e.Station_702="STATION_702",e.Station_947="STATION_947",e))(fa||{}),dS=(e=>(e.AllNews="ALL_NEWS",e.Trending="TRENDING",e))(dS||{});const uJ=e=>{switch(e){case fa.CapeTalk:return"capetalk";case fa.Kfm:return"kfm";case fa.Station_702:return"702";case fa.Station_947:return"947";default:return null}};var _P=(e=>(e.Allnews="allnews",e.Latest="latest",e.Local="local",e.Politics="politics",e.Elections="elections",e.Multimedia="multimedia",e.World="world",e.Sport="sport",e.Business="business",e.Lifestyle="lifestyle",e.Opinion="opinion",e.Features="features",e.Entertainment="entertainment",e.Africa="africa",e.Bookmarks="bookmarks",e))(_P||{});const Io={articleInline:[{id:"/22659639123/EWN/Web/Homepage"}],latest:[{id:"/22659639123/EWN/Web/Latest"}],allnews:[{id:"/22659639123/EWN/Web/Allnews"}],local:[{id:"/22659639123/EWN/Web/Local"}],politics:[{id:"/22659639123/EWN/Web/Politics"}],elections:[{id:"/22659639123/EWN/Web/Elections"}],multimedia:[{id:"/22659639123/EWN/Web/Multimedia"}],world:[{id:"/22659639123/EWN/Web/World"}],sport:[{id:"/22659639123/EWN/Web/Sport"}],business:[{id:"/22659639123/EWN/Web/Business"}],lifestyle:[{id:"/22659639123/EWN/Web/Lifestyle"}],opinion:[{id:"22659639123/EWN/Web/Opinion"}],features:[{id:"/22659639123/EWN/Web/Features"}],entertainment:[{id:"/22659639123/EWN/Web/Entertainment"}],africa:[{id:"/22659639123/EWN/Web/Africa"}],bookmarks:[{id:"/22659639123/EWN/Web/Bookmarks"}],takeOver:[{id:"/22659639123/EWN/Web/Homepage",size:{desktop:[[728,90]],mobile:[[320,50]]}}],side:[{id:"/22659639123/EWN/Web/Homepage",size:{desktop:[[180,800]],mobile:[[180,800]]},panelSide:"left"},{id:"/22659639123/EWN/Web/Homepage",size:{desktop:[[180,800]],mobile:[[180,800]]},panelSide:"right"}],all_news:[{id:"/22659639123/EWN/Web/Homepage",size:{desktop:[[180,800]],mobile:[[180,800]]},panelSide:"left"},{id:"/22659639123/EWN/Web/Homepage",size:{desktop:[[180,800]],mobile:[[180,800]]},panelSide:"right"}],latest_news:[{id:"/22659639123/EWN/Web/Latest",size:{desktop:[[180,800]],mobile:[[180,800]]},panelSide:"left"},{id:"/22659639123/EWN/Web/Latest",size:{desktop:[[180,800]],mobile:[[180,800]]},panelSide:"right"}],podcast_category:[{id:"/22659639123/EWN/Web/Podcasts",size:{desktop:[[180,800]],mobile:[[180,800]]},panelSide:"left"},{id:"/22659639123/EWN/Web/Podcasts",size:{desktop:[[180,800]],mobile:[[180,800]]},panelSide:"right"}],articleDetail:[{id:"/22659639123/EWN/Web/Article_page",size:{desktop:[[320,50]],mobile:[[320,50]]}},{id:"/22659639123/EWN/Web/Article_page",size:{desktop:[[300,600]],mobile:[[180,800]]}},{id:"/22659639123/EWN/Web/Article_page",size:{desktop:[[300,250]],mobile:[[320,50]]}}],podcast:[{id:"/22659639123/EWN/Web/Podcasts",size:{desktop:[[300,600]],mobile:[[300,600]]}},{id:"/22659639123/EWN/Web/Podcasts",size:{desktop:[[728,90],[970,250]],mobile:[[320,50]]}}],tv:[{id:"/22659639123/EWN/Web/TV",size:{desktop:[[728,90]],mobile:[[320,100]]}},{id:"/22659639123/EWN/Web/TV",size:{desktop:[[300,250]],mobile:[[320,100]]}}]},fJ={capetalk:"logo-capetalk-v2.png",kfm:"logo-kfm.png",702:"logo-702.png",947:"logo-947.png"},bP=wt(()=>{const{result:e,error:t,loading:n}=pP();return{provide:{locations:{data:pn(e),error:pn(t),loading:pn(n)}}}});var pf={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserProfileDataFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UserProfileData"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gender"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"initials"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isNewsletterSubscribe"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"preferredUsername"},arguments:[],directives:[]}]}}],loc:{start:0,end:162}};pf.loc.source={body:`fragment UserProfileDataFragment on UserProfileData { 755 email 756 firstName 757 gender 758 initials 759 isNewsletterSubscribe 760 lastName 761 location 762 preferredUsername 763}
764`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Il(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Il(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Il(r,t)}),e.definitions&&e.definitions.forEach(function(r){Il(r,t)})}var bp={};(function(){pf.definitions.forEach(function(t){if(t.name){var n=new Set;Il(t,n),bp[t.name.value]=n}})})();function k0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function wP(e,t){var n={kind:e.kind,definitions:[k0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=bp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=bp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=k0(e,a);c&&n.definitions.push(c)}),n}wP(pf,"UserProfileDataFragment");var ys={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserProfile"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userProfiles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userProfile"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserProfileDataFragment"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:180}};ys.loc.source={body:`#import "../fragments/userProfileDataFragment.graphql" 765 766query UserProfile { 767 userProfiles { 768 userProfile { 769 model { 770 ...UserProfileDataFragment 771 } 772 } 773 } 774} 775`,name:"GraphQL request",locationOffset:{line:1,column:1}};var E0={};function SP(e){return e.filter(function(t){if(t.kind!=="FragmentDefinition")return!0;var n=t.name.value;return E0[n]?!1:(E0[n]=!0,!0)})}ys.definitions=ys.definitions.concat(SP(pf.definitions));function xl(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){xl(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){xl(r,t)}),e.definitions&&e.definitions.forEach(function(r){xl(r,t)})}var wp={};(function(){ys.definitions.forEach(function(t){if(t.name){var n=new Set;xl(t,n),wp[t.name.value]=n}})})();function C0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function kP(e,t){var n={kind:e.kind,definitions:[C0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=wp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=wp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=C0(e,a);c&&n.definitions.push(c)}),n}kP(ys,"UserProfile");var mf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateUserProfile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"profileInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UserProfileDataInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userProfiles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateUserProfile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userProfile"},value:{kind:"Variable",name:{kind:"Name",value:"profileInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:162}};mf.loc.source={body:`mutation UpdateUserProfile($profileInput: UserProfileDataInput!) { 776 userProfiles { 777 updateUserProfile(userProfile: $profileInput) { 778 message 779 } 780 } 781} 782`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Al(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Al(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Al(r,t)}),e.definitions&&e.definitions.forEach(function(r){Al(r,t)})}var Sp={};(function(){mf.definitions.forEach(function(t){if(t.name){var n=new Set;
782Al(t,n),Sp[t.name.value]=n}})})();function T0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function EP(e,t){var n={kind:e.kind,definitions:[T0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Sp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=Sp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=T0(e,a);c&&n.definitions.push(c)}),n}EP(mf,"UpdateUserProfile");const CP=()=>{const e=vc(ys),{data:t,status:n,error:r,refresh:i}=e,o=se(()=>{var f;const c=(f=t.value)==null?void 0:f.userProfiles.userProfile.model;if(!c)return c;const{__typename:l,...u}=c;return u}),s=se(()=>n.value==="pending");return{profile:o,loading:s,error:r,refresh:i,updateProfile:async c=>{const{mutate:l}=yg(mf),u=await l({profileInput:c});return await i(),u}}},TP=wt(()=>{const{profile:e,loading:t,error:n,refresh:r,updateProfile:i}=CP();return{provide:{userProfile:{data:pn(e),error:pn(n),loading:pn(t),refresh:r,updateProfile:i}}}}),IP=[x9,R9,P9,hR,mR,gR,yR,_R,BR,HR,jR,WR,iO,nP,rP,iP,aP,dP,bP,TP],je=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},xP={},AP={width:"148",height:"59",viewBox:"0 0 148 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"fill-current"};function RP(e,t){return U(),fe("svg",AP,t[0]||(t[0]=[As('<path d="M94.7897 2.02344H53.5238V43.4991H94.7897V2.02344Z" fill="#0504AA"></path><path d="M49.3876 2.02344H8.12174V43.4991H49.3876V2.02344Z" fill="#0504AA"></path><path d="M140.192 2.02344H98.9258V43.4991H140.192V2.02344Z" fill="#0504AA"></path><path d="M8.04688 48.5701H13.84V50.0977H10.0001V51.5252H13.5853V53.0194H10.0001V54.8935H14.1833V56.4434H8.04688V48.5701Z" fill="#0504AA"></path><path d="M16.0368 48.5701H18.2889L19.9763 51.2692C20.076 51.0466 20.0982 51.0021 20.2975 50.6779L21.6402 48.5701H23.8716L20.9093 52.7189V56.4448H18.9783V52.7759L16.0368 48.5701Z" fill="#0504AA"></path><path d="M26.1792 48.5701H31.9723V50.0977H28.1324V51.5252H31.7176V53.0194H28.1324V54.8935H32.3156V56.4434H26.1792V48.5701Z" fill="#0504AA"></path><path d="M40.4176 48.5701C40.6501 49.4174 40.8841 50.2661 41.1388 51.1134C41.572 52.6299 41.6496 52.8761 41.8932 54.4038C42.1257 52.8427 42.1811 52.5742 42.5369 50.9687C42.703 50.1659 42.8802 49.3631 43.0477 48.5701H44.9898L43.0034 56.4448H40.9837C40.7401 55.5752 40.5062 54.7043 40.2515 53.8458C39.8293 52.3961 39.8071 52.3405 39.5746 51.2358C39.3752 52.2069 39.3531 52.2848 38.9087 53.7902L38.1543 56.4448H36.1347L34.1483 48.5701H36.1015C36.9445 52.3071 37.0331 52.7189 37.267 54.426C37.5563 52.865 37.6339 52.5631 38.0436 51.0021L38.6873 48.5701H40.4176Z" fill="#0504AA"></path><path d="M49.2629 48.5701V56.4448H47.3098V48.5701H49.2629Z" fill="#0504AA"></path><path d="M51.6715 48.559H57.7083V50.12H55.6776V56.4434H53.7133V50.12H51.6715V48.559Z" fill="#0504AA"></path><path d="M60.1265 48.5701H62.0465L63.7436 51.4695C64.3651 52.5742 64.5534 52.9304 64.9202 53.6218L64.8316 48.5687H66.7073V56.4434H64.7873L63.3228 53.9558C62.6127 52.7843 62.4798 52.5394 61.9468 51.4904L62.0022 56.442H60.1265V48.5701Z" fill="#0504AA"></path><path d="M70.2482 48.5701H76.0413V50.0977H72.2014V51.5252H75.7852V53.0194H72.2014V54.8935H76.3846V56.4434H70.2482V48.5701Z" fill="#0504AA"></path><path d="M80.2688 54.081C80.4681 54.3036 80.6356 54.4831 81.0232 54.6945C81.5451 54.9728 82.078 55.0744 82.532 55.0744C83.3086 55.0744 83.9744 54.7057 83.9744 54.1603C83.9744 53.5356 83.1868 53.4354 82.6095 53.3575C82.1763 53.3019 81.7444 53.2462 81.3222 53.1572C80.8446 53.057 79.214 52.7106 79.214 51.016C79.214 48.9861 81.0121 48.3837 82.3659 48.3837C84.1751 48.3837 85.151 49.2643 85.8279 49.8779L84.3855 50.9158C84.1419 50.6709 83.919 50.4581 83.609 50.28C83.3321 50.1242 82.8324 49.9335 82.3327 49.9335C81.5561 49.9335 81.1672 50.3802 81.1672 50.7586C81.1672 51.361 81.833 51.4501 82.1666 51.4946C82.9985 51.5947 84.1198 51.8062 84.5627 51.9634C85.4611 52.2973 85.9165 52.9999 85.9165 53.8931C85.9165 54.4622 85.7061 55.0869 85.295 55.5669C84.5849 56.3919 83.4526 56.627 82.3548 56.627C80.147 56.627 79.2693 55.6003 78.7821 55.0326L80.2688 54.0851V54.081Z" fill="#0504AA"></path><path d="M89.6914 54.081C89.8907 54.3036 90.0582 54.4831 90.4458 54.6945C90.9677 54.9728 91.5006 55.0744 91.9546 55.0744C92.7312 55.0744 93.397 54.7057 93.397 54.1603C93.397 53.5356 92.6094 53.4354 92.0321 53.35
78275C91.5989 53.3019 91.167 53.2462 90.7448 53.1572C90.2672 53.057 88.6366 52.7106 88.6366 51.016C88.6366 48.9861 90.4347 48.3837 91.7885 48.3837C93.5977 48.3837 94.5736 49.2643 95.2505 49.8779L93.8081 50.9158C93.5645 50.6709 93.3416 50.4581 93.0316 50.28C92.7547 50.1242 92.255 49.9335 91.7553 49.9335C90.9787 49.9335 90.5898 50.3802 90.5898 50.7586C90.5898 51.361 91.2556 51.4501 91.5878 51.4946C92.4197 51.5947 93.541 51.8062 93.9853 51.9634C94.8837 52.2973 95.3391 52.9999 95.3391 53.8931C95.3391 54.4622 95.1287 55.0869 94.7176 55.5669C94.0075 56.3919 92.8752 56.627 91.7774 56.627C89.5696 56.627 88.6919 55.6003 88.2047 55.0326L89.6914 54.0851V54.081Z" fill="#0504AA"></path><path d="M102.597 48.5701H104.517L106.215 51.4695C106.837 52.5742 107.025 52.9304 107.392 53.6218L107.303 48.5687H109.179V56.4434H107.259L105.794 53.9558C105.084 52.7843 104.951 52.5394 104.418 51.4904L104.474 56.442H102.598L102.597 48.5701Z" fill="#0504AA"></path><path d="M112.718 48.5701H118.511V50.0977H114.672V51.5252H118.257V53.0194H114.672V54.8935H118.855V56.4434H112.718V48.5701Z" fill="#0504AA"></path><path d="M126.957 48.5701C127.189 49.4174 127.423 50.2661 127.678 51.1134C128.111 52.6299 128.189 52.8761 128.432 54.4038C128.665 52.8427 128.72 52.5742 129.076 50.9687C129.242 50.1659 129.421 49.3631 129.587 48.5701H131.529L129.543 56.4448H127.523C127.279 55.5752 127.045 54.7043 126.791 53.8458C126.37 52.3961 126.346 52.3405 126.114 51.2358C125.914 52.2069 125.892 52.2848 125.448 53.7902L124.694 56.4448H122.674L120.688 48.5701H122.641C123.484 52.3071 123.572 52.7189 123.806 54.426C124.094 52.865 124.173 52.5631 124.583 51.0021L125.226 48.5701H126.957Z" fill="#0504AA"></path><path d="M134.692 54.081C134.891 54.3036 135.059 54.4831 135.446 54.6945C135.968 54.9728 136.501 55.0744 136.955 55.0744C137.732 55.0744 138.398 54.7057 138.398 54.1603C138.398 53.5356 137.61 53.4354 137.033 53.3575C136.599 53.3019 136.168 53.2462 135.745 53.1572C135.268 53.057 133.637 52.7106 133.637 51.016C133.637 48.9861 135.435 48.3837 136.789 48.3837C138.598 48.3837 139.574 49.2643 140.251 49.8779L138.809 50.9158C138.565 50.6709 138.342 50.4581 138.032 50.28C137.755 50.1242 137.256 49.9335 136.756 49.9335C135.979 49.9335 135.59 50.3802 135.59 50.7586C135.59 51.361 136.256 51.4501 136.588 51.4946C137.42 51.5947 138.542 51.8062 138.986 51.9634C139.884 52.2973 140.34 52.9999 140.34 53.8931C140.34 54.4622 140.129 55.0869 139.718 55.5669C139.008 56.3919 137.876 56.627 136.778 56.627C134.57 56.627 133.693 55.6003 133.205 55.0326L134.692 54.0851V54.081Z" fill="#0504AA"></path><path d="M127.706 13.4917C128.163 13.9591 128.39 14.5685 128.39 15.317V30.3346C128.39 31.1026 128.167 31.7189 127.72 32.1878C127.273 32.6552 126.696 32.889 125.988 32.889C125.151 32.889 124.517 32.6079 124.089 32.0473L115.599 21.4095V30.336C115.599 31.104 115.385 31.7203 114.957 32.1892C114.529 32.6566 113.952 32.8904 113.225 32.8904C112.499 32.8904 111.941 32.6566 111.494 32.1892C111.047 31.7217 110.824 31.104 110.824 30.336V15.3184C110.824 14.5699 111.047 13.9619 111.494 13.493C111.941 13.0256 112.517 12.7918 113.225 12.7918C114.026 12.7918 114.65 13.0729 115.097 13.6336L123.587 24.2435V15.317C123.587 14.5504 123.805 13.9369 124.243 13.4777C124.68 13.02 125.253 12.7904 125.961 12.7904C126.668 12.7904 127.249 13.0242 127.706 13.4917Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M38.0374 30.69C38.0361 32.1272 37.1225 32.9494 35.7299 32.9494H21.6535C20.2609 32.9494 19.3459 32.1286 19.3459 30.69C19.3459 29.2514 20.2208 28.3707 21.6535 28.3707H35.7299C37.1598 28.3707 38.0374 29.2514 38.0374 30.69Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M38.0374 14.9935C38.0361 16.4321 37.1612 17.3127 35.7299 17.3127H21.6535C20.2221 17.3127 19.3459 16.4334 19.3459 14.9935C19.3459 13.5535 20.2595 12.734 21.6535 12.734H35.7299C37.1211 12.734 38.0374 13.5549 38.0374 14.9935Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M19.3459 22.8473C19.3459 21.4087 20.2208 20.528 21.6535 20.528H35.7299C37.1598 20.5294 38.0374 21.4087 38.0374 22.8473C38.0361 24.2859 37.1225 25.1067 35.7299 25.1067H21.6535C20.2609 25.1067 19.3459 24.2859 19.3459 22.8473Z" fill="white"></path><path d="M85.2885 13.143C85.7079 12.862 86.1675 12.7215 86.6713 12.7215C87.2859 12.7215 87.8203 12.9176 88.2771 13.3114C88.7339 13.7051 88.9609 14.238 88.9609 14.9114C88.9609 15.2105 88.8861 15.5847 88.738 16.0341L83.1249 31.3035C82.938 31.828 82.5989 32.2343 82.1047 32.525C81.6119 32.8144 81.0665 32.9605 80.4713 32.9605C79.876 32.9605 79.3348 32.8158 78.8517 32.525C78.3672 32.2343 78.0322 31.828 77.8467 31.3035L74.2158 20.8897L70.4174 31.3035C70.2126 31.828 69.8679 32.2343 69.3848 32.525C68.9003 32.8144 68.3702 32.9605 67.7929 32.9605C67.2157 32.9605 66.6564 32.8158 66.1733 32.525C65.6889 32.2343 65.3539 31.828 65.1684 31.3035L59.5275 16.0341C59.3974 15.6599 59.3324 15.3037 59.3324 14.967C59.3324 14.2755 59.5788 13.7274 60.0729 13.3253C60.5657 12.9232 61.1388 12.7215 61.7908 12.7215C62.3113 12.7215 62.7916 12.8578 63.229 13.1291C63.6665 13.4004 63.9779 13.8081 64.1648 14.3507L67.9909 25.41L72.0398 14.3507C72.2253 13.8275 72.5284 13.4241 72.9479 13.143C73.3673 12.862 73.8269 12.7215 74.3307 12.7215C74.8346 12.7215 75.29 12.862 75.6998 13.143C76.1095 13.4241 76.4071 13.8359 76.594 14.3785L80.3924 25.6632L84.3859 14.3507C84.5714 13.8275 84.8746 13.4241 85.294 13.143H85.2885Z" fill="white"></path>',22)]))}const gf=je(xP,[["render",RP]]);function po(e){return hr()?(Un(e),!0):!1}function ut(e){return typeof e=="function"?e():q(e)}const ec=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const hS=e=>e!=null,OP=Object.prototype.toString,MP=e=>OP.call(e)==="[object Object]",sn=()=>{},DP=NP();function NP(){var e,t;
782return ec&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function vg(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const pS=e=>e();function PP(e,t={}){let n,r,i=sn;const o=a=>{clearTimeout(a),i(),i=sn};return a=>{const c=ut(e),l=ut(t.maxWait);return n&&o(n),c<=0||l!==void 0&&l<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise((u,f)=>{i=t.rejectOnCancel?f:u,l&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,u(a())},l)),n=setTimeout(()=>{r&&o(r),r=null,u(a())},c)})}}function LP(...e){let t=0,n,r=!0,i=sn,o,s,a,c,l;!Le(e[0])&&typeof e[0]=="object"?{delay:s,trailing:a=!0,leading:c=!0,rejectOnCancel:l=!1}=e[0]:[s,a=!0,c=!0,l=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=sn)};return d=>{const h=ut(s),p=Date.now()-t,m=()=>o=d();return u(),h<=0?(t=Date.now(),m()):(p>h&&(c||!r)?(t=Date.now(),m()):a&&(o=new Promise((y,g)=>{i=l?g:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(m()),u()},Math.max(0,h-p))})),!c&&!n&&(n=setTimeout(()=>r=!0,h)),r=!1,o)}}function $P(e=pS){const t=oe(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:pn(t),pause:n,resume:r,eventFilter:i}}function FP(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",i=e.slice(r.length),o=Number.parseFloat(r)+t;return Number.isNaN(o)?e:o+i}function mS(e){return _n()}function BP(...e){if(e.length!==1)return ju(...e);const t=e[0];return typeof t=="function"?pn(Bb(()=>({get:t,set:sn}))):oe(t)}function HP(e,t=200,n={}){return vg(PP(t,n),e)}function jP(e,t=200,n=!1,r=!0,i=!1){return vg(LP(t,n,r,i),e)}function VP(e,t,n={}){const{eventFilter:r=pS,...i}=n;return Oe(e,vg(r,t),i)}function UP(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:s,resume:a,isActive:c}=$P(r);return{stop:VP(e,t,{...i,eventFilter:o}),pause:s,resume:a,isActive:c}}function WP(e,t){mS()&&Mi(e,t)}function gS(e,t=!0,n){mS()?Qe(e,n):t?e():Tt(e)}const qP=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,zP=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function GP(e,t,n,r){let i=e<12?"AM":"PM";return r&&(i=i.split("").reduce((o,s)=>o+=`${s}.`,"")),n?i.toLowerCase():i}
782function ji(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function QP(e,t,n={}){var r;const i=e.getFullYear(),o=e.getMonth(),s=e.getDate(),a=e.getHours(),c=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),f=e.getDay(),d=(r=n.customMeridiem)!=null?r:GP,h={Yo:()=>ji(i),YY:()=>String(i).slice(-2),YYYY:()=>i,M:()=>o+1,Mo:()=>ji(o+1),MM:()=>`${o+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(s),Do:()=>ji(s),DD:()=>`${s}`.padStart(2,"0"),H:()=>String(a),Ho:()=>ji(a),HH:()=>`${a}`.padStart(2,"0"),h:()=>`${a%12||12}`.padStart(1,"0"),ho:()=>ji(a%12||12),hh:()=>`${a%12||12}`.padStart(2,"0"),m:()=>String(c),mo:()=>ji(c),mm:()=>`${c}`.padStart(2,"0"),s:()=>String(l),so:()=>ji(l),ss:()=>`${l}`.padStart(2,"0"),SSS:()=>`${u}`.padStart(3,"0"),d:()=>f,dd:()=>e.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>d(a,c),AA:()=>d(a,c,!1,!0),a:()=>d(a,c,!0),aa:()=>d(a,c,!0,!0)};return t.replace(zP,(p,m)=>{var y,g;return(g=m??((y=h[p])==null?void 0:y.call(h)))!=null?g:p})}function KP(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const t=e.match(qP);if(t){const n=t[2]-1||0,r=(t[7]||"0").substring(0,3);return new Date(t[1],n,t[3]||1,t[4]||0,t[5]||0,t[6]||0,r)}}return new Date(e)}function _g(e,t="HH:mm:ss",n={}){return se(()=>QP(KP(ut(e)),ut(t),n))}function YP(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let o=null;const s=oe(!1);function a(){o&&(clearInterval(o),o=null)}function c(){s.value=!1,a()}function l(){const u=ut(t);u<=0||(s.value=!0,i&&e(),a(),o=setInterval(e,u))}if(r&&ec&&l(),Le(t)||typeof t=="function"){const u=Oe(t,()=>{s.value&&ec&&l()});po(u)}return po(c),{isActive:s,pause:c,resume:l}}function ir(e){var t;const n=ut(e);return(t=n==null?void 0:n.$el)!=null?t:n}const An=ec?window:void 0,JP=ec?window.document:void 0;function io(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=An):[t,n,r,i]=e,!t)return sn;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},a=(u,f,d,h)=>(u.addEventListener(f,d,h),()=>u.removeEventListener(f,d,h)),c=Oe(()=>[ir(t),ut(i)],([u,f])=>{if(s(),!u)return;const d=MP(f)?{...f}:f;o.push(...n.flatMap(h=>r.map(p=>a(u,h,p,d))))},{immediate:!0,flush:"post"}),l=()=>{c(),s()};return po(l),l}let I0=!1;function yS(e,t,n={}){const{window:r=An,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return sn;DP&&!I0&&(I0=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",sn)),r.document.documentElement.addEventListener("click",sn));let a=!0;const c=d=>i.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=ir(h);return p&&(d.target===p||d.composedPath().includes(p))}}),u=[io(r,"click",d=>{const h=ir(e);
782if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(a=!c(d)),!a){a=!0;return}t(d)}},{passive:!0,capture:o}),io(r,"pointerdown",d=>{const h=ir(e);a=!c(d)&&!!(h&&!d.composedPath().includes(h))},{passive:!0}),s&&io(r,"blur",d=>{setTimeout(()=>{var h;const p=ir(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}function ZP(){const e=oe(!1),t=_n();return t&&Qe(()=>{e.value=!0},t),e}function bg(e){const t=ZP();return se(()=>(t.value,!!e()))}function XP(e,t,n={}){const{window:r=An,...i}=n;let o;const s=bg(()=>r&&"MutationObserver"in r),a=()=>{o&&(o.disconnect(),o=void 0)},c=se(()=>{const d=ut(e),h=(Array.isArray(d)?d:[d]).map(ir).filter(hS);return new Set(h)}),l=Oe(()=>c.value,d=>{a(),s.value&&d.size&&(o=new MutationObserver(t),d.forEach(h=>o.observe(h,i)))},{immediate:!0,flush:"post"}),u=()=>o==null?void 0:o.takeRecords(),f=()=>{a(),l()};return po(f),{isSupported:s,stop:f,takeRecords:u}}function eL(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=An}=t,o=oe(!1),s=r?1e3/r:null;let a=0,c=null;function l(d){if(!o.value||!i)return;a||(a=d);const h=d-a;if(s&&h<s){c=i.requestAnimationFrame(l);return}a=d,e({delta:h,timestamp:d}),c=i.requestAnimationFrame(l)}function u(){!o.value&&i&&(o.value=!0,a=0,c=i.requestAnimationFrame(l))}function f(){o.value=!1,c!=null&&i&&(i.cancelAnimationFrame(c),c=null)}return n&&u(),po(f),{isActive:pn(o),pause:f,resume:u}}function ta(e,t={}){const{window:n=An}=t,r=bg(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=oe(!1),s=l=>{o.value=l.matches},a=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},c=yn(()=>{r.value&&(a(),i=n.matchMedia(ut(e)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),o.value=i.matches)});return po(()=>{c(),a(),i=void 0}),o}const dJ={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function hJ(e,t={}){function n(u,f){let d=ut(e[ut(u)]);return f!=null&&(d=FP(d,f)),typeof d=="number"&&(d=`${d}px`),d}const{window:r=An,strategy:i="min-width"}=t;function o(u){return r?r.matchMedia(u).matches:!1}const s=u=>ta(()=>`(min-width: ${n(u)})`,t),a=u=>ta(()=>`(max-width: ${n(u)})`,t),c=Object.keys(e).reduce((u,f)=>(Object.defineProperty(u,f,{get:()=>i==="min-width"?s(f):a(f),enumerable:!0,configurable:!0}),u),{});function l(){const u=Object.keys(e).map(f=>[f,s(f)]);return se(()=>u.filter(([,f])=>f.value).map(([f])=>f))}return Object.assign(c,{greaterOrEqual:s,smallerOrEqual:a,greater(u){return ta(()=>`(min-width: ${n(u,.1)})`,t)},smaller(u){return ta(()=>`(max-width: ${n(u,-.1)})`,t)},between(u,f){return ta(()=>`(min-width: ${n(u)}) and (max-width: ${n(f,-.1)})`,t)},isGreater(u){return o(`(min-width: ${n(u,.1)})`)},isGreaterOrEqual(u){return o(`(min-width: ${n(u)})`)},isSmaller(u){return o(`(max-width: ${n(u,-.1)})`)},isSmallerOrEqual(u){return o(`(max-width: ${n(u)})`)},isInBetween(u,f){return o(`(min-width: ${n(u)}) and (max-width: ${n(f,-.1)})`)},current:l,active(){const u=l();return se(()=>u.value.length===0?"":u.value.at(-1))}})}const Yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Jc="__vueuse_ssr_handlers__",tL=nL();function nL(){return Jc in Yc||(Yc[Jc]=Yc[Jc]||{}),Yc[Jc]}function rL(e,t){return tL[e]||t}function iL(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const oL={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},x0="vueuse-storage";function sL(e,t,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:f=An,eventFilter:d,onError:h=T=>{console.error(T)},initOnMounted:p}=r,m=(u?mn:oe)(typeof t=="function"?t():t);if(!n)try{n=rL("getDefaultStorage",()=>{var T;return(T=An)==null?void 0:T.localStorage})()}catch(T){h(T)}if(!n)return m;
782const y=ut(t),g=iL(y),_=(i=r.serializer)!=null?i:oL[g],{pause:v,resume:b}=UP(m,()=>S(m.value),{flush:o,deep:s,eventFilter:d});f&&a&&gS(()=>{io(f,"storage",R),io(f,x0,A),p&&R()}),p||R();function w(T,$){f&&f.dispatchEvent(new CustomEvent(x0,{detail:{key:e,oldValue:T,newValue:$,storageArea:n}}))}function S(T){try{const $=n.getItem(e);if(T==null)w($,null),n.removeItem(e);else{const D=_.write(T);$!==D&&(n.setItem(e,D),w($,D))}}catch($){h($)}}function k(T){const $=T?T.newValue:n.getItem(e);if($==null)return c&&y!=null&&n.setItem(e,_.write(y)),y;if(!T&&l){const D=_.read($);return typeof l=="function"?l(D,y):g==="object"&&!Array.isArray(D)?{...y,...D}:D}else return typeof $!="string"?$:_.read($)}function R(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){m.value=y;return}if(!(T&&T.key!==e)){v();try{(T==null?void 0:T.newValue)!==_.write(m.value)&&(m.value=k(T))}catch($){h($)}finally{T?Tt(b):b()}}}}function A(T){R(T.detail)}return m}function aL(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:o=.1,window:s=An,immediate:a=!0}=n,c=bg(()=>s&&"IntersectionObserver"in s),l=se(()=>{const p=ut(e);return(Array.isArray(p)?p:[p]).map(ir).filter(hS)});let u=sn;const f=oe(a),d=c.value?Oe(()=>[l.value,ir(r),f.value],([p,m])=>{if(u(),!f.value||!p.length)return;const y=new IntersectionObserver(t,{root:ir(m),rootMargin:i,threshold:o});p.forEach(g=>g&&y.observe(g)),u=()=>{y.disconnect(),u=sn}},{immediate:a,flush:"post"}):sn,h=()=>{u(),d(),f.value=!1};return po(h),{isSupported:c,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:h}}function cL(e,t={}){const{window:n=An,scrollTarget:r,threshold:i=0}=t,o=oe(!1);return aL(e,s=>{let a=o.value,c=0;for(const l of s)l.time>=c&&(c=l.time,a=l.isIntersecting);o.value=a},{root:r,window:n,threshold:i}),o}const A0=1;function vS(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=sn,onScroll:o=sn,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:c="auto",window:l=An,onError:u=k=>{console.error(k)}}=t,f=oe(0),d=oe(0),h=se({get(){return f.value},set(k){m(k,void 0)}}),p=se({get(){return d.value},set(k){m(void 0,k)}});function m(k,R){var A,T,$,D;if(!l)return;const H=ut(e);if(!H)return;($=H instanceof Document?l.document.body:H)==null||$.scrollTo({top:(A=ut(R))!=null?A:p.value,left:(T=ut(k))!=null?T:h.value,behavior:ut(c)});const ce=((D=H==null?void 0:H.document)==null?void 0:D.documentElement)||(H==null?void 0:H.documentElement)||H;h!=null&&(f.value=ce.scrollLeft),p!=null&&(d.value=ce.scrollTop)}const y=oe(!1),g=Ut({left:!0,right:!1,top:!0,bottom:!1}),_=Ut({left:!1,right:!1,top:!1,bottom:!1}),v=k=>{y.value&&(y.value=!1,_.left=!1,_.right=!1,_.top=!1,_.bottom=!1,i(k))},b=HP(v,n+r),w=k=>{var R;if(!l)return;const A=((R=k==null?void 0:k.document)==null?void 0:R.documentElement)||(k==null?void 0:k.documentElement)||ir(k),{display:T,flexDirection:$}=getComputedStyle(A),D=A.scrollLeft;_.left=D<f.value,_.right=D>f.value;const H=Math.abs(D)<=(s.left||0),ce=Math.abs(D)+A.clientWidth>=A.scrollWidth-(s.right||0)-A0;T==="flex"&&$==="row-reverse"?(g.left=ce,g.right=H):(g.left=H,g.right=ce),f.value=D;let K=A.scrollTop;k===l.document&&!K&&(K=l.document.body.scrollTop),_.top=K<d.value,_.bottom=K>d.value;const F=Math.abs(K)<=(s.top||0),V=Math.abs(K)+A.clientHeight>=A.scrollHeight-(s.bottom||0)-A0;T==="flex"&&$==="column-reverse"?(g.top=V,g.bottom=F):(g.top=F,g.bottom=V),d.value=K},S=k=>{var R;if(!l)return;const A=(R=k.target.documentElement)!=null?R:k.target;w(A),y.value=!0,b(k),o(k)};return io(e,"scroll",n?jP(S,n,!0,!1):S,a),gS(()=>{try{const k=ut(e);if(!k)return;w(k)}catch(k){u(k)}}),io(e,"scrollend",v,a),{x:h,y:p,isScrolling:y,arrivedState:g,directions:_,measure(){const k=ut(e);l&&k&&w(k)}}}function lL(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function pJ(e,t,n={}){var r;const{direction:i="bottom",interval:o=100,canLoadMore:s=()=>!0}=n,a=Ut(vS(e,{...n,offset:{[i]:(r=n.distance)!=null?r:0,...n.offset}})),c=oe(),l=se(()=>!!c.value),u=se(()=>lL(ut(e))),f=cL(u);function d(){if(a.measure(),!u.value||!f.value||!s(u.value))return;const{scrollHeight:h,clientHeight:p,scrollWidth:m,clientWidth:y}=u.value,g=i==="bottom"||i==="top"?h<=p:m<=y;(a.arrivedState[i]||g)&&(c.value||(c.value=Promise.all([t(a),new Promise(_=>setTimeout(_,o))]).finally(()=>{c.value=null,Tt(()=>d())})))}return Oe(()=>[a.arrivedState[i],f.value],d,{immediate:!0}),{isLoading:l}}function uL(e,t,n={}){const{window:r=An}=n;return sL(e,t,r==null?void 0:r.localStorage,n)}function fL(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=oe(new Date),i=()=>r.value=new Date,o=n==="requestAnimationFrame"?eL(i,{immediate:!0}):YP(i,n,{immediate:!0});return t?{now:r,...o}:r}const dL=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],hL={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>
782e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function pL(e){return e.toISOString().slice(0,10)}function _S(e,t={}){const{controls:n=!1,updateInterval:r=3e4}=t,{now:i,...o}=fL({interval:r,controls:!0}),s=se(()=>mL(new Date(ut(e)),t,ut(i)));return n?{timeAgo:s,...o}:s}function mL(e,t={},n=Date.now()){var r;const{max:i,messages:o=hL,fullDateFormatter:s=pL,units:a=dL,showSecond:c=!1,rounding:l="round"}=t,u=typeof l=="number"?y=>+y.toFixed(l):Math[l],f=+n-+e,d=Math.abs(f);function h(y,g){return u(Math.abs(y)/g.value)}function p(y,g){const _=h(y,g),v=y>0,b=m(g.name,_,v);return m(v?"past":"future",b,v)}function m(y,g,_){const v=o[y];return typeof v=="function"?v(g,_):v.replace("{0}",g.toString())}if(d<6e4&&!c)return o.justNow;if(typeof i=="number"&&d>i)return s(new Date(e));if(typeof i=="string"){const y=(r=a.find(g=>g.name===i))==null?void 0:r.max;if(y&&d>y)return s(new Date(e))}for(const[y,g]of a.entries()){if(h(f,g)<=0&&a[y-1])return p(f,a[y-1]);if(d<g.max)return p(f,g)}return o.invalid}function bS(e=null,t={}){var n,r,i;const{document:o=JP,restoreOnUnmount:s=f=>f}=t,a=(n=o==null?void 0:o.title)!=null?n:"",c=BP((r=e??(o==null?void 0:o.title))!=null?r:null),l=e&&typeof e=="function";function u(f){if(!("titleTemplate"in t))return f;const d=t.titleTemplate||"%s";return typeof d=="function"?d(f):ut(d).replace(/%s/g,f)}return Oe(c,(f,d)=>{f!==d&&o&&(o.title=u(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!l&&XP((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==c.value&&(c.value=u(o.title))},{childList:!0}),WP(()=>{if(s){const f=s(a,c.value||"");f!=null&&o&&(o.title=f)}}),c}var Ki=(e=>(e.en="en",e.zu="zu",e))(Ki||{});const Gi=uL("ewnTv",null,{serializer:{read:e=>{const t=e==="null"?null:e;return t&&!Object.values(Ki).includes(t)?null:t},write:e=>e?String(e):"null"}}),gL=["value"],yL=["value"],vL={key:1,class:"relative w-11 h-11 rounded-full overflow-hidden animate-pulse"},_L=xe({__name:"EWNTVSelectLang",setup(e){const t=oe(Gi.value||Ki.en),n=oe(!Gi.value),r=()=>{Gi.value=t.value};return Oe(Gi,()=>{Gi.value&&(t.value=Gi.value,n.value=!1)}),(i,o)=>q(n)?(U(),fe("div",vL,o[1]||(o[1]=[L("div",{class:"absolute inset-0 bg-black/10 rounded-full animate-pulse"},null,-1)]))):Im((U(),fe("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=s=>Le(t)?t.value=s:null),name:"lang",onChange:r},[L("option",{value:("TVLanguage"in i?i.TVLanguage:q(Ki)).en},xt(("TVLanguage"in i?i.TVLanguage:q(Ki)).en.toUpperCase()),9,gL),L("option",{value:("TVLanguage"in i?i.TVLanguage:q(Ki)).zu},xt(("TVLanguage"in i?i.TVLanguage:q(Ki)).zu.toUpperCase()),9,yL)],544)),[[V2,q(t)]])}}),bL={},wL={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"fill-current"};function SL(e,t){return U(),fe("svg",wL,t[0]||(t[0]=[L("path",{d:"M15.8462 10.4615C15.8462 8.97917 15.3193 7.71114 14.2656 6.65745C13.2119 5.60377 11.9439 5.07692 10.4615 5.07692C8.97917 5.07692 7.71114 5.60377 6.65745 6.65745C5.60377 7.71114 5.07692 8.97917 5.07692 10.4615C5.07692 11.9439 5.60377 13.2119 6.65745 14.2656C7.71114 15.3193 8.97917 15.8462 10.4615 15.8462C11.9439 15.8462 13.2119 15.3193 14.2656 14.2656C15.3193 13.2119 15.8462 11.9439 15.8462 10.4615ZM22 20.4615C22 20.8782 21.8478 21.2388 21.5433 21.5433C21.2388 21.8478 20.8782 22 20.4615 22C20.0288 22 19.6683 21.8478 19.3798 21.5433L15.2572 17.4327C13.8229 18.4263 12.2244 18.9231 10.4615 18.9231C9.31571 18.9231 8.21995 18.7007 7.17428 18.256C6.12861 17.8113 5.22716 17.2103 4.46995 16.4531C3.71274 15.6959 3.11178 14.7945 2.66707 13.7488C2.22236 12.7031 2 11.6074 2 10.4615C2 9.31571 2.22236 8.21995 2.66707 7.17428C3.11178 6.12861 3.71274 5.22716 4.46995 4.46995C5.22716 3.71274 6.12861 3.11178 7.17428 2.66707C8.21995 2.22236 9.31571 2 10.4615 2C11.6074 2 12.7031 2.22236 13.7488 2.66707C14.7945 3.11178 15.6959 3.71274 16.4531 4.46995C17.2103 5.22716 17.8113 6.12861 18.256 7.17428C18.7007 8.21995 18.9231 9.31571 18.9231 10.4615C18.9231 12.2244 18.4263 13.8229 17.4327 15.2572L21.5553 19.3798C21.8518 19.6763 22 20.0369 22 20.4615Z"},null,-1)]))}const kL=je(bL,[["render",SL]]),EL={},CL={width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function TL(e,t){return U(),fe("svg",CL,t[0]||(t[0]=[L("path",{d:"M4 5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2H17C17.7956 2 18.5587 2.31607 19.1213 2.87868C19.6839 3.44129 20 4.20435 20 5V21.028C20 22.248 18.62 22.958 17.628 22.249L12 18.229L6.372 22.249C5.379 22.959 4 22.249 4 21.029V5Z",fill:"#0F0F11"},null,-1)]))}const IL=je(EL,[["render",TL]]),xL={},AL={width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function RL(e,t){return U(),fe("svg",AL,t[0]||(t[0]=[L("path",{d:"M17.5312 5.46777C17.531 4.9894 17.1434 4.60167 16.665 4.60156H7.33105C6.85277 4.60181 6.46509 4.98949 6.46484 5.46777V18.7832L11.5508 16.2402C11.8323 16.0995 12.1638 16.0995 12.4453 16.2402L17.5312 18.7832V5.46777ZM19.5312 20.4014C19.5312 20.7478 19.3522 21.0697 19.0576 21.252C18.7628 21.4342 18.394 21.4509 18.084 21.2959L11.998 18.2529L5.91211 21.2959C5.60217 21.4509 5.23425 21.4341 4.93945 21.252C4.64464 21.0697 4.46484 20.7479 4.46484 20.4014V5.46777C4.46509 3.88492 5.7482 2.60181 7.33105 2.60156H16.665C18.248 2.60167 19.531 3.88483 19.5312 5.46777V20.4014Z",fill:"#0F0F11"},null,-1)]))}const OL=je(xL,[["render",RL]]),ML=xe({__name:"BadgeBookmark",props:{isArticleBookmarked:{type:Boolean},contentId:{},articlePath:{},articleTitle:{},typeName:{}},emits:["toggle"],setup(e,{emit:t}){const n=e,r=t,i=()=>{r("toggle",{id:n.contentId,path:n.articlePath,title:n.articleTitle,typeName:n.typeName})};return(o,s)=>{const a=IL,c=OL;return U(),fe("button",{class:"cursor-pointer",onClick:i},[o.isArticleBookmarked?(U(),Ce(a,{key:0,class:"w-5 h-5 md:w-6 md:h-6"})):(U(),Ce(c,{key:1,class:"w-5 h-5 md:w-6 md:h-6"}))])}}}),DL={},NL={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",class:"fill-current"};function PL(e,t){return U(),fe("svg",NL,t[0]||(t[0]=[L("path",{d:"M21.2482 3.75391C21.8665 3.75402 22.4752 3.90713 23.02 4.19958C23.5648 4.49204 24.0288 4.91475 24.3705 5.43004C24.7123 5.94532 24.9213 6.53717 24.9788 7.15281C25.0363 7.76845 24.9406 8.38876 24.7002 8.95844C24.4598 9.52812 24.0821 10.0295 23.601 10.4178C23.1198 10.8061 22.55 11.0693 21.9424 11.1839C21.3348 11.2986 20.7082 11.2611 20.1186 11.0748C19.529 10.8886 18.9947 10.5593 18.5632 10.1164L11.742 14.0164C11.9176 14.6617 11.9176 15.3423 11.742 15.9877L18.5645 19.8864C19.2012 19.2336 20.0541 18.8353 20.9634 18.7662C21.8727 18.6971 22.776 18.962 23.5041 19.5112C24.2321 20.0603 24.7349 20.8561 24.9183 21.7495C25.1016 22.6428 24.9529 23.5723 24.5001 24.3638C24.0473 25.1554 23.3213 25.7547 22.4583 26.0494C21.5953 26.3441 20.6545 26.314 19.8121 25.9647C18.9697 25.6155 18.2835 24.971 17.8822 24.1522C17.4809 23.3333 17.3919 22.3962 17.632 21.5164L10.8107 17.6164C10.2906 18.1503 9.6231 18.517 8.89352 18.6696C8.16395 18.8221 7.40545 18.7537 6.71497 18.4729C6.0245 18.1922 5.43342 17.712 5.0173 17.0936C4.60117 16.4752 4.37891 15.7468 4.37891 15.0014C4.37891 14.256 4.60117 13.5276 5.0173 12.9092C5.43342 12.2908 6.0245 11.8106 6.71497 11.5299C7.40545 11.2491 8.16395 11.1807 8.89352 11.3333C9.6231 11.4858 10.2906 11.8525 10.8107 12.3864L17.632 8.48641C17.4813 7.93059 17.4606 7.34754 17.5716 6.78246C17.6826 6.21738 17.9222 5.68545 18.2719 5.22792C18.6216 4.77038 19.072 4.39954 19.5882 4.14413C20.1043 3.88873 20.6723 3.75438 21.2482 3.75391Z"},null,-1)]))}const LL=je(DL,[["render",PL]]),$L={},FL={width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function BL(e,t){return U(),fe("svg",FL,t[0]||(t[0]=[As('<rect width="44" height="44" rx="22" fill="#E6E6E6"></rect><g clip-path="url(#clip0_10401_449334)"><path d="M22 23C24.396 23 26.575 23.694 28.178 24.671C28.978 25.161 29.662 25.736 30.156 26.361C30.642 26.977 31 27.713 31 28.5C31 29.345 30.589 30.011 29.997 30.486C29.437 30.936 28.698 31.234 27.913 31.442C26.335 31.859 24.229 32 22 32C19.771 32 17.665 31.86 16.087 31.442C15.302 31.234 14.563 30.936 14.003 30.486C13.41 30.01 13 29.345 13 28.5C13 27.713 13.358 26.977 13.844 26.361C14.338 25.736 15.021 25.161 15.822 24.671C17.425 23.694 19.605 23 22 23ZM22 12C23.3261 12 24.5979 12.5268 25.5355 13.4645C26.4732 14.4021 27 15.6739 27 17C27 18.3261 26.4732 19.5979 25.5355 20.5355C24.5979 21.4732 23.3261 22 22 22C20.6739 22 19.4021 21.4732 18.4645 20.5355C17.5268 19.5979 17 18.3261 17 17C17 15.6739 17.5268 14.4021 18.4645 13.4645C19.4021 12.5268 20.6739 12 22 12Z" fill="#0F0F11"></path></g><defs><clipPath id="clip0_10401_449334"><rect width="24" height="24" fill="white" transform="translate(10 10)"></rect></clipPath></defs>',3)]))}const HL=je($L,[["render",BL]]),jL={},VL={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"fill-current"};function UL(e,t){return U(),fe("svg",VL,t[0]||(t[0]=[L("path",{d:"M8.99515 16.1645L12.8751 12.2845L8.99515 8.40451C8.90256 8.31193 8.82912 8.20202 8.77902 8.08105C8.72891 7.96009 8.70313 7.83044 8.70313 7.69951C8.70313 7.56858 8.72891 7.43893 8.77902 7.31797C8.82912 7.197 8.90256 7.08709 8.99515 6.99451C9.08773 6.90193 9.19764 6.82849 9.3186 6.77838C9.43957 6.72828 9.56922 6.70249 9.70015 6.70249C9.83108 6.70249 9.96072 6.72828 10.0817 6.77838C10.2027 6.82849 10.3126 6.90193 10.4051 6.99451L14.9951 11.5845C15.0878 11.677 15.1614 11.7869 15.2116 11.9079C15.2618 12.0289 15.2876 12.1585 15.2876 12.2895C15.2876 12.4205 15.2618 12.5502 15.2116 12.6711C15.1614 12.7921 15.0878 12.902 14.9951 12.9945L10.4051 17.5845C10.3126 17.6772 10.2027 17.7508 10.0818 17.8009C9.9608 17.8511 9.83111 17.877 9.70015 17.877C9.56918 17.877 9.43949 17.8511 9.31852 17.8009C9.19755 17.7508 9.08766 17.6772 8.99515 17.5845C8.61515 17.1945 8.60515 16.5545 8.99515 16.1645Z"},null,-1)]))}const WL=je(jL,[["render",UL]]),qL=Symbol.for("nuxt:client-only"),Zc="<div></div>
782",wS=xe({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=oe(!1);return Qe(()=>{r.value=!0}),Bt(qL,!0),i=>{var c;if(r.value)return(c=t.default)==null?void 0:c.call(t);const o=t.fallback||t.placeholder;if(o)return o();const s=i.fallback||i.placeholder||"",a=i.fallbackTag||i.placeholderTag||"span";return fe(a,n,s)}}}),Fd=new WeakMap;function wg(e){if(Fd.has(e))return Fd.get(e);const t={...e};return t.render?t.render=(n,r,i,o,s,a)=>{var c;if(o.mounted$??n.mounted$){const l=(c=e.render)==null?void 0:c.bind(n)(n,r,i,o,s,a);return l.children===null||typeof l.children=="string"?xn(l):He(l)}return ld(n._.vnode.el,Zc)}:t.template&&(t.template=` 783 <template v-if="mounted$">${e.template}</template> 784 <template v-else>${Zc}</template> 785 `),t.setup=(n,r)=>{var c;const i=$e(),o=oe(i.isHydrating===!1),s=_n();if(i.isHydrating){const l={...s.attrs},u=zL(s);for(const f in l)delete s.attrs[f];Qe(()=>{Object.assign(s.attrs,l),s.vnode.dirs=u})}Qe(()=>{o.value=!0});const a=((c=e.setup)==null?void 0:c.call(e,n,r))||{};return Nu(a)?Promise.resolve(a).then(l=>typeof l!="function"?(l||(l={}),l.mounted$=o,l):(...u)=>{if(o.value||!i.isHydrating){const f=l(...u);return f.children===null||typeof f.children=="string"?xn(f):He(f)}return ld(s==null?void 0:s.vnode.el,Zc)}):typeof a=="function"?(...l)=>o.value?He(a(...l),r.attrs):ld(s==null?void 0:s.vnode.el,Zc):Object.assign(a,{mounted$:o})},Fd.set(e,t),t}function zL(e){if(!e||!e.vnode.dirs)return null;const t=e.vnode.dirs;return e.vnode.dirs=null,t}const Sg=xe({__name:"DataPrivacyItem",props:{classes:{},showArrow:{type:Boolean}},setup(e){const t=Rs("DataPrivacy"),n=()=>{var i;try{const o=localStorage.getItem(`_sp_user_consent_${(i=window==null?void 0:window._sp_)==null?void 0:i.config.propertyId}`);if(!o)throw new Error("No consent data found in local storage");const s=JSON.parse(o);if(s&&s.gdpr&&s.usnat){if(s.gdpr.applies===!0)return"gdpr";if(s.usnat.applies===!0)return"usnat"}throw new Error("No applicable consent found in local storage")}catch(o){return t.error("Error accessing local storage",o),t.warn("Defaulting to USNAT consent type"),"usnat"}},r=()=>{var o,s,a,c;n()==="gdpr"?(s=(o=window==null?void 0:window._sp_)==null?void 0:o.gdpr)==null||s.loadPrivacyManagerModal(1187326):(c=(a=window==null?void 0:window._sp_)==null?void 0:a.usnat)==null||c.loadPrivacyManagerModal(1186861)};return(i,o)=>{const s=WL,a=wS;return U(),Ce(a,null,{default:Be(()=>[L("span",{class:Ft(i.classes),onClick:r},[o[0]||(o[0]=Ye(" Data Privacy ")),i.showArrow?(U(),Ce(s,{key:0})):De("",!0)],2)]),_:1})}}}),GL=xe({__name:"UserMenu",emits:["login","close"],setup(e,{emit:t}){const n=t,r=Fr(),i=oe();return yS(i,()=>{n("close")}),Oe(()=>r.path,()=>{n("close")}),(o,s)=>{const a=Sg;return U(),fe("div",{ref_key:"menuRef",ref:i,class:"w-[250px] md:w-[400px] z-30 absolute right-12 top-0 bg-white shadow-xl rounded-lg p-4 flex flex-col gap-4 pb-10"},[s[1]||(s[1]=L("p",{class:"text-primary font-bold text-3xl mb-4"},"My Profile",-1)),s[2]||(s[2]=L("p",{class:"text-5xl text-center"},"ð",-1)),s[3]||(s[3]=L("p",{class:"text-content-secondary text-sm font-medium text-center px-2"}," Login to access your profile and bookmark articles for later. ",-1)),L("button",{class:"bg-black w-full py-2 text-white rounded-md",onClick:s[0]||(s[0]=c=>n("login"))},"Login"),s[4]||(s[4]=L("p",{class:"text-sm font-bold text-primary"},"Other",-1)),he(a,{classes:"border-b border-text-secondary pb-3 flex items-center gap-2 justify-between cursor-pointer","show-arrow":!0})],512)}}}),QL={},KL={class:"flex flex-col space-y-4"};function YL(e,t){return U(),fe("div",KL,[(U(),fe(Je,null,lr(3,n=>L("div",{key:`loading-${n}`,class:"animate-pulse border-b border-surface-03 pb-2 last:border-b-0"},t[0]||(t[0]=[As('<div class="grid grid-cols-12 gap-3"><div class="col-span-4 aspect-[16/9] bg-surface-05 rounded-md"></div><div class="col-span-8 space-y-2"><div class="bg-surface-05 h-4 rounded-md"></div><div class="bg-surface-05 h-3 rounded-md w-3/4"></div></div></div>',1)]))),64))])}const JL=je(QL,[["render",YL]]),ZL={},XL={width:"414",height:"164",viewBox:"0 0 414 164",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e$(e,t){return U(),fe("svg",XL,t[0]||(t[0]=[L("g",{opacity:"0.16"},[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M394.371 4.10547H278.566V119.151H394.371V4.10547ZM359.33 35.9261C360.611 37.2243 361.251 38.9126 361.251 40.9875V82.6432C361.251 84.7725 360.624 86.4846 359.37 87.7817C358.116 89.08 356.496 89.7285 354.51 89.7285C352.159 89.7285 350.382 88.9496 349.181 87.3928L325.355 57.8838V82.6432C325.355 84.7725 324.754 86.4846 323.552 87.7817C322.35 89.08 320.731 89.7285 318.693 89.7285C316.706 89.7285 315.088 89.08 313.834 87.7817C312.579 86.4846 311.953 84.7725 311.953 82.6432V40.9875C311.953 38.9126 312.579 37.2243 313.834 35.9261C315.088 34.6302 316.706 33.9805 318.693 33.9805C320.938 33.9805 322.69 34.7583 323.945 36.3162L347.771 65.7469V40.9875C347.771 38.8593 348.384 37.1597 349.612 35.8876C350.839 34.6165 352.446 33.9805 354.433 33.9805C356.417 33.9805 358.05 34.6302 359.33 35.9261ZM228.342 150.197C227.251 149.609 226.784 149.113 226.223 148.495L222.05 151.124L222.058 151.134C223.43 152.713 225.893 155.549 232.079 155.549C235.161 155.549 238.338 154.899 240.331 152.61C241.483 151.279 242.075 149.546 242.075 147.969C242.075 145.494 240.798 143.545 238.275 142.617C237.03 142.184 233.885 141.596 231.549 141.317L231.548 141.317C230.613 141.193 228.746 140.945 228.746 139.275C228.746 138.224 229.836 136.985 232.016 136.985C233.417 136.985 234.819 137.512 235.597 137.945C236.469 138.44 237.093 139.028 237.777 139.708L241.826 136.831C239.926 135.13 237.186 132.685 232.109 132.685C228.31 132.685 223.265 134.356 223.265 139.987C223.265 144.689 227.843 145.648 229.182 145.927C230.365 146.174 231.58 146.329 232.794 146.484L232.795 146.484L232.839 146.49C234.455 146.705 236.625 146.995 236.625 148.711C236.625 150.227 234.757 151.248 232.576 151.248C231.3 151.248 229.804 150.97 228.342 150.197ZM145.966 133.18H162.908V137.511H157.209V155.053H151.697V137.511H145.966V133.18ZM23.5352 133.201H39.792V137.44H29.016V141.4H39.0759V145.546H29.016V150.743H40.7573V155.044H23.5352V133.201ZM45.9613 133.201H52.2833L57.0173 140.689C57.2974 140.07 57.3599 139.946 57.9201 139.049L61.6879 133.201H67.9482L59.6331 144.71V155.044H54.2139V144.865L45.9613 133.201ZM90.6795 133.201
785H74.4227V155.044H91.6448V150.743H79.9036V145.546H89.9635V141.4H79.9036V137.44H90.6795V133.201ZM114.378 133.201L114.402 133.285C115.048 135.609 115.695 137.932 116.403 140.255L116.535 140.712C117.635 144.518 117.861 145.302 118.521 149.382C119.175 145.051 119.33 144.308 120.327 139.853C120.588 138.607 120.859 137.36 121.129 136.119C121.342 135.142 121.554 134.169 121.759 133.201H127.209L121.635 155.044H115.967C115.758 154.308 115.553 153.573 115.347 152.839C114.878 151.163 114.409 149.491 113.912 147.835L113.708 147.144C112.718 143.784 112.626 143.473 112.012 140.596C111.452 143.288 111.389 143.504 110.143 147.681L108.026 155.044H102.358L96.7828 133.201H102.265C104.631 143.566 104.88 144.71 105.534 149.444C106.344 145.113 106.562 144.277 107.714 139.946L109.52 133.201H114.378ZM139.213 155.044V133.201H133.731V155.044H139.213ZM175.078 133.201H169.69L169.69 155.044H174.953L174.797 141.308C176.293 144.216 176.666 144.896 178.659 148.145L182.77 155.044H188.157V133.201H182.895L183.144 147.216L183.109 147.151C182.104 145.276 181.567 144.273 179.842 141.245L175.078 133.201ZM198.096 133.201H214.352V137.44H203.577V141.4H213.636V145.546H203.577V150.743H215.317V155.044H198.096V133.201ZM252.663 148.495C253.223 149.113 253.691 149.609 254.78 150.197C256.244 150.97 257.739 151.248 259.016 151.248C261.196 151.248 263.064 150.227 263.064 148.711C263.064 146.995 260.894 146.705 259.278 146.49L259.233 146.484L259.233 146.484C258.018 146.329 256.804 146.174 255.621 145.927C254.282 145.648 249.704 144.689 249.704 139.987C249.704 134.356 254.749 132.685 258.549 132.685C263.625 132.685 266.366 135.13 268.265 136.831L264.216 139.708C263.531 139.028 262.909 138.44 262.037 137.945C261.258 137.512 259.857 136.985 258.455 136.985C256.275 136.985 255.185 138.224 255.185 139.275C255.185 140.945 257.052 141.193 257.987 141.317L257.988 141.317C260.324 141.596 263.469 142.184 264.715 142.617C267.237 143.545 268.514 145.494 268.514 147.969C268.514 149.546 267.923 151.279 266.77 152.61C264.777 154.899 261.601 155.549 258.517 155.549C252.331 155.549 249.868 152.713 248.496 151.133L248.489 151.124L252.663 148.495ZM294.266 133.201H288.878V155.044H294.141L293.985 141.308C295.48 144.216 295.854 144.896 297.847 148.145L301.958 155.044H307.346V133.201H302.082L302.331 147.216L302.294 147.147L302.294 147.147C301.291 145.274 300.753 144.271 299.03 141.245L294.266 133.201ZM317.284 133.201H333.541V137.44H322.765V141.4H332.825V145.546H322.765V150.743H334.507V155.044H317.284V133.201ZM359.264 140.255C358.548 137.904 357.894 135.553 357.24 133.201H352.382L350.576 139.946C349.424 144.277 349.205 145.
785113 348.396 149.444C347.741 144.71 347.492 143.566 345.126 133.201H339.645L345.219 155.044H350.886L353.005 147.681C354.25 143.504 354.313 143.288 354.873 140.596C355.485 143.461 355.579 143.781 356.557 147.104L356.557 147.104L356.558 147.105L356.558 147.107L356.558 147.108L356.772 147.835C357.27 149.49 357.738 151.159 358.206 152.833C358.413 153.57 358.619 154.307 358.828 155.044H364.497L370.071 133.201H364.621C364.412 134.184 364.197 135.173 363.981 136.165C363.714 137.391 363.446 138.622 363.188 139.853C362.192 144.308 362.036 145.051 361.382 149.382C360.724 145.308 360.496 144.521 359.401 140.73L359.264 140.255ZM378.953 148.495C379.513 149.113 379.98 149.609 381.07 150.197C382.534 150.97 384.028 151.248 385.305 151.248C387.485 151.248 389.354 150.227 389.354 148.711C389.354 146.995 387.184 146.705 385.568 146.49L385.523 146.484L385.522 146.484C384.308 146.329 383.094 146.174 381.911 145.927C380.571 145.648 375.994 144.689 375.994 139.987C375.994 134.356 381.039 132.685 384.839 132.685C389.914 132.685 392.655 135.13 394.555 136.831L390.506 139.708C389.821 139.028 389.198 138.44 388.326 137.945C387.548 137.512 386.147 136.985 384.744 136.985C382.565 136.985 381.475 138.224 381.475 139.275C381.475 140.945 383.341 141.193 384.276 141.317L384.278 141.317C386.613 141.596 389.759 142.184 391.005 142.617C393.527 143.545 394.804 145.494 394.804 147.969C394.804 149.546 394.213 151.279 393.06 152.61C391.066 154.899 387.891 155.549 384.807 155.549C378.621 155.549 376.158 152.713 374.786 151.133L374.779 151.124L378.953 148.495ZM23.733 4.10547H139.538V119.151H23.733V4.10547ZM101.217 46.5145C105.237 46.5145 107.69 44.0736 107.694 40.0831C107.694 36.0928 105.121 33.819 101.219 33.8158H61.715C57.8046 33.8158 55.2395 36.0944 55.2395 40.0815C55.2395 44.0751 57.6967 46.5145 61.715 46.5145H101.217ZM101.217 89.8832C105.126 89.8832 107.69 87.6047 107.694 83.6176C107.694 79.6255 105.232 77.1861 101.219 77.1845H61.715C57.695 77.1845 55.2395 79.6271 55.2395 83.6159C55.2395 87.6063 57.8062 89.8832 61.715 89.8832H101.217ZM55.2395 61.8799C55.2395 57.8894 57.695 55.4452 61.715 55.4452H101.219C105.232 55.4501 107.694 5
7857.8862 107.694 61.8799C107.69 65.8686 105.126 68.1472 101.217 68.1472H61.715C57.8062 68.1472 55.2395 65.8718 55.2395 61.8799ZM266.961 4.10547H151.155V119.151H266.961V4.10547ZM240.298 34.9507C241.473 34.1729 242.766 33.7828 244.177 33.7828C245.902 33.7828 247.402 34.3282 248.683 35.4178C249.964 36.5086 250.604 37.9882 250.604 39.8568C250.604 40.6878 250.394 41.7253 249.977 42.9714L234.224 85.3267C233.701 86.7814 232.747 87.9095 231.362 88.7145C229.978 89.5184 228.45 89.9209 226.778 89.9209C225.104 89.9209 223.59 89.5184 222.232 88.7145C220.872 87.9095 219.932 86.7814 219.41 85.3267L209.222 56.4413L198.562 85.3267C197.987 86.7814 197.021 87.9095 195.663 88.7145C194.304 89.5184 192.814 89.9209 191.195 89.9209C189.523 89.9209 188.007 89.5184 186.649 88.7145C185.289 87.9095 184.349 86.7814 183.827 85.3267L167.996 42.9714C167.63 41.9328 167.447 40.9464 167.447 40.0121C167.447 38.0925 168.139 36.5743 169.524 35.4575C170.908 34.3418 172.515 33.7828 174.344 33.7828C175.806 33.7828 177.153 34.1604 178.381 34.9121C179.608 35.665 180.483 36.7943 181.006 38.2989L191.744 68.9768L203.108 38.2989C203.629 36.8464 204.48 35.7296 205.655 34.9507C206.831 34.1729 208.124 33.7828 209.534 33.7828C210.945 33.7828 212.226 34.1729 213.375 34.9507C214.524 35.7296 215.361 36.8725 215.884 38.3771L226.542 69.6776L237.75 38.2989C238.272 36.8464 239.122 35.7296 240.298 34.9507Z",fill:"#0F0F11"})],-1)]))}const t$=je(ZL,[["render",e$]]),n$=(e,t)=>{if(!e)return[];if("lg"in e){const n=e;return[n==null?void 0:n.lg,n.md,n.sm]}else{const n=e;if(t===_p.Audio){const r=[];return n.audioLg&&r.push(n.audioLg),n.audioMd&&r.push(n.audioMd),n.audioSm&&r.push(n.audioSm),r}else if(t===_p.Video){const r=[];return n.videoLg&&r.push(n.videoLg),n.videoMd&&r.push(n.videoMd),n.videoSm&&r.push(n.videoSm),r}}return[]},r$=["srcset","media"],i$={class:"absolute inset-0 flex h-full items-center justify-center px-2 bg-surface-05"},o$=["srcset","alt","title"],kg=xe({__name:"Image",props:{src:{},alt:{},mediaContentType:{}},setup(e){const t=e,n=se(()=>typeof t.src=="string"?[t.src]:n$(t.src,t.mediaContentType)),r=[1200,768,0],i=a=>{try{const c=new URL(a);c.searchParams.set("format","webp");const l=c.toString(),u=c.searchParams.get("width"),f=c.searchParams.get("height");if(!(u&&f))return`${l} 1x`;c.searchParams.set("width",(parseInt(u)*2).toString()),c.searchParams.set("height",(parseInt(f)*2).toString());const d=c.toString();c.searchParams.set("width",(parseInt(u)*3).toString()),c.searchParams.set("height",(parseInt(f)*3).toString());const h=c.toString();return`${l} 1x, ${d} 2x, ${h} 3x`}catch{return a}},o=se(()=>{var a;return(a=n.value)==null?void 0:a.filter(c=>!!c).map(i)}),s=oe(null);return(a,c)=>{var u,f;const l=t$;return U(),fe("picture",{ref_key:"el",ref:s,class:"relative block h-full"},[typeof a.src!="string"?(U(!0),fe(Je,{key:0},lr(q(o),(d,h)=>(U(),fe("source",{key:h,srcset:d,media:`(min-width:${r[h]}px)`},null,8,r$))),128)):De("",!0),L("div",i$,[he(l,{class:"h-5 lg:h-7"})]),(u=q(o))!=null&&u.slice(-1)[0]?(U(),fe("img",{key:1,srcset:(f=q(o))==null?void 0:f.slice(-1)[0],alt:a.alt||"Image",title:a.alt||"Image",loading:"lazy",class:"h-full w-full object-cover relative"},null,8,o$)):De("",!0)],512)}}}),s$={},a$={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",class:"fill-current"};function c$(e,t){return U(),fe("svg",a$,t[0]||(t[0]=[L("path",{d:"M19 18.65V29.35C19 30.1167 19.35 30.7 20.05 31.1C20.75 31.5 21.4333 31.4667 22.1 31L30.4 25.7C31.0333 25.3 31.35 24.7333 31.35 24C31.35 23.2667 31.0333 22.7 30.4 22.3L22.1 17C21.4333 16.5333 20.75 16.5 20.05 16.9C19.35 17.3 19 17.8833 19 18.65ZM24 44C21.2333 44 18.6333 43.4747 16.2 42.424C13.7667 41.3747 11.65 39.95 9.85 38.15C8.05 36.35 6.62533 34.2333 5.576 31.8C4.52533 29.3667 4 26.7667 4 24C4 21.2333 4.52533 18.6333 5.576 16.2C6.62533 13.7667 8.05 11.65 9.85 9.85C11.65 8.05 13.7667 6.62467 16.2 5.574C18.6333 4.52467 21.2333 4 24 4C26.7667 4 29.3667 4.52467 31.8 5.574C34.2333 6.62467 36.35 8.05 38.15 9.85C39.95 11.65 41.3747 13.7667 42.424 16.2C43.4747 18.6333 44 21.2333 44 24C44 26.7667 43.4747 29.3667 42.424 31.8
785C41.3747 34.2333 39.95 36.35 38.15 38.15C36.35 39.95 34.2333 41.3747 31.8 42.424C29.3667 43.4747 26.7667 44 24 44Z",fill:"white"},null,-1)]))}const SS=je(s$,[["render",c$]]),l$={},u$={class:"flex bg-error max-w-max px-2 lg:py-[6px] text-white rounded text-xs font-bold"};function f$(e,t){return U(),fe("span",u$,t[0]||(t[0]=[L("span",{class:"mr-2"},"ð¢",-1),L("span",null,"Breaking News",-1)]))}const kS=je(l$,[["render",f$]]),d$={},h$={class:"flex bg-surface-01 max-w-max px-2 lg:py-[6px] text-white rounded text-xs font-bold"};function p$(e,t){return U(),fe("span",h$,t[0]||(t[0]=[L("span",null,"Trending",-1)]))}const ES=je(d$,[["render",p$]]),m$=xe({__name:"Tag",props:{tag:{type:String,required:!0,default:""}},setup(e){return(t,n)=>{const r=Ha("router-link");return U(),Ce(r,{to:`/tag/${e.tag}`,class:"px-[10px] py-[2px] rounded bg-surface-05 text-content-primary hover:bg-surface-dark hover:text-white transition-colors text-paragraph-xs inline-block"},{default:Be(()=>[Ye(xt(e.tag),1)]),_:1},8,["to"])}}}),g$={class:"flex gap-2 flex-wrap"},CS=xe({__name:"TagList",props:{tags:{},max:{}},setup(e){return(t,n)=>{const r=m$;return U(),fe("ul",g$,[(U(!0),fe(Je,null,lr(t.tags,(i,o)=>(U(),fe("li",{key:i,class:Ft({hidden:!(t.max&&o<t.max)})},[he(r,{tag:i},null,8,["tag"])],2))),128))])}}}),TS={justNow:"Just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"Last month":"Next month":`${e} ${`month${e>1?"s":""}`}`,year:(e,t)=>e===1?t?"Last year":"next year":`${e} ${`year${e>1?"s":""}`}`,day:(e,t)=>e===1?t?"Yesterday":"Tomorrow":`${e} ${`day${e>1?"s":""}`}`,week:(e,t)=>e===1?t?"Last week":"Next week":`${e} ${`week${e>1?"s":""}`}`,hour:e=>`${e} ${`hour${e>1?"s":""}`}`,minute:e=>`${e} ${`minute${e>1?"s":""}`}`,second:e=>`${e} ${`second${e>1?"s":""}`}`,invalid:"Unknown"},IS=e=>{const t=new Date(e),n=new Date,{value:r}=_g(e,"DD/MM, HH:mm"),{value:i}=_S(e,{messages:TS});return(n.getTime()-t.getTime())/(1e3*3600*24)>1?r:i},mJ=e=>{const t=new Date(e),n=new Date,{value:r}=_g(e,"YY-MM-DD"),{value:i}=_S(e,{messages:TS});return(n.getTime()-t.getTime())/(1e3*3600*24)>1?r:i},gJ=e=>{const t=new Date(e).getTime(),n=new Date().getTime(),r=t-n,i=r>0,o=Math.abs(r),s=Math.floor(o/(1e3*60*60*24)),a=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),c=Math.floor(o%(1e3*60*60)/(1e3*60));if(s>0)return`In ${s} day${s>1?"s":""}`;const l=`${a}:${c.toString().padStart(2,"0")} hour(s)`;return i?`In ${l}`:`${l} ago`},yJ=e=>new Date(e)<new Date,vJ=e=>{const{value:t}=_g(e,"D MMMM YYYY HH:mm");return t},y$={class:"flex gap-w relative border-b border-solid border-surface-03 pb-4 group hover:border-brand-ewn-blue-translucent transition-colors duration-500"},v$={class:"overflow-hidden rounded-md relative aspect-square w-[64px] md:w-[94px] h-[64px] md:h-[94px] grow-0 shrink-0"},_$={key:0,class:"absolute inset-x-[0.69rem] bottom-2 flex justify-end items-center gap-spacing-xs"},b$={class:"pl-spacing-m"},w$={key:0,class:"text-paragraph-xs text-content-secondary mb-1"},S$={class:"text-sm font-semibold lg:text-lg group-hover:text-ewn transition-colors duration-500 line-clamp-2 md:line-clamp-3"},k$=xe({__name:"TeaserBookmark",props:{teaser:{}},setup(e){const t=e,n=t.teaser.publishedAt&&IS(t.teaser.publishedAt.iso8601);return(r,i)=>{const o=kg,s=SS,a=kS,c=ES,l=Ha("router-link"),u=CS;return U(),fe("article",y$,[L("figure",v$,[he(o,{src:r.teaser.headerImage,class:"object-cover w-full"},null,8,["src"]),r.teaser.__typename==="NewsMediaArticle"?(U(),fe("div",_$,[i[0]||(i[0]=L("p",{class:"text-paragraph-sm font-medium text-white"},"Watch",-1)),he(s,{class:"w-[1.125rem] h-[1.125rem]"})])):De("",!0)]),L("header",b$,[q(n)?(U(),fe("div",w$,xt(q(n)),1)):De("",!0),r.teaser.isBreakingNews?(U(),Ce(a,{key:1,class:"my-1 md:my-2"})):De("",!0),r.teaser.isTrending?(U(),Ce(c,{key:2,class:"my-1 md:my-2"})):De("",!0),L("h3",S$,[he(l,{to:r.teaser.path},{default:Be(()=>[i[1]||(i[1]=L("span",{class:"absolute inset-0"},null,-1)),Ye(" "+xt(r.teaser.headline),1)]),_:1},8,["to"])]),r.teaser.tags?(U(),Ce(u,{key:3,tags:r.teaser.tags,class:"hidden relative",max:5},null,8,["tags"])):De("",!0)])])}}}),E$=yw("bookmarks",{state:()=>({bookmarkedArticles:[],loading:!1}),actions:{setBookmarks(e){this.bookmarkedArticles=e.map(t=>({id:t.id,path:t.path,typeName:t.typeName,title:void 0,bookmarkedAt:new Date}))},addBookmark(e){this.bookmarkedArticles.findIndex(n=>n.path===e.path)===-1&&this.bookmarkedArticles.push({...e,id:`temp-${Date.now()}`,bookmarkedAt:new Date})},removeBookmark(e){this.bookmarkedArticles=this.bookmarkedArticles.filter(t=>t.id!==e&&t.path!==e)}
785,setLoading(e){this.loading=e},clearAllBookmarks(){this.bookmarkedArticles=[]}},getters:{isBookmarked:e=>t=>e.bookmarkedArticles.some(n=>n.id===t||n.path===t),bookmarkCount:e=>e.bookmarkedArticles.length,getBookmarks:e=>e.bookmarkedArticles,getBookmarksSortedByDate:e=>[...e.bookmarkedArticles].sort((t,n)=>new Date(n.bookmarkedAt).getTime()-new Date(t.bookmarkedAt).getTime()),isLoading:e=>e.loading}});var yf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddToMyContent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"myContentEntry"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MyContentEntryInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userPreferences"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"add"},arguments:[{kind:"Argument",name:{kind:"Name",value:"myContentEntry"},value:{kind:"Variable",name:{kind:"Name",value:"myContentEntry"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"httpStatusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"correlationId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:195}};yf.loc.source={body:`mutation AddToMyContent($myContentEntry: MyContentEntryInput!) { 786 userPreferences { 787 add(myContentEntry: $myContentEntry) { 788 httpStatusCode 789 correlationId 790 message 791 } 792 } 793} 794`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Rl(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Rl(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Rl(r,t)}),e.definitions&&e.definitions.forEach(function(r){Rl(r,t)})}var kp={};(function(){yf.definitions.forEach(function(t){if(t.name){var n=new Set;Rl(t,n),kp[t.name.value]=n}})})();function R0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function C$(e,t){var n={kind:e.kind,definitions:[R0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=kp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=kp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=R0(e,a);c&&n.definitions.push(c)}),n}C$(yf,"AddToMyContent");var vf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveFromMyContent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userPreferences"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"delete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"httpStatusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"correlationId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:154}};vf.loc.source={body:`mutation RemoveFromMyContent($id: String!) { 795 userPreferences { 796 delete(id: $id) { 797 httpStatusCode 798 correlationId 799 message 800 } 801 } 802} 803`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ol(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ol(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ol(r,t)}),e.definitions&&e.definitions.forEach(function(r){Ol(r,t)})}var Ep={};(function(){vf.definitions.forEach(function(t){if(t.name){var n=new Set;Ol(t,n),Ep[t.name.value]=n}})})();function O0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function T$(e,t){var n={kind:e.kind,definitions:[O0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Ep[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;
803o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=Ep[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=O0(e,a);c&&n.definitions.push(c)}),n}T$(vf,"RemoveFromMyContent");var _f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMyContentEntries"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mediaType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MediaType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userPreferences"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myContent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mediaType"},value:{kind:"Variable",name:{kind:"Name",value:"mediaType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"typeName"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:218}};_f.loc.source={body:`query GetMyContentEntries($mediaType: MediaType!) { 804 userPreferences { 805 myContent(mediaType: $mediaType) { 806 model { 807 items { 808 id 809 path 810 typeName 811 } 812 } 813 } 814 } 815} 816`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ml(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ml(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ml(r,t)}),e.definitions&&e.definitions.forEach(function(r){Ml(r,t)})}var Cp={};(function(){_f.definitions.forEach(function(t){if(t.name){var n=new Set;Ml(t,n),Cp[t.name.value]=n}})})();function M0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function I$(e,t){var n={kind:e.kind,definitions:[M0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Cp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=Cp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=M0(e,a);c&&n.definitions.push(c)}),n}I$(_f,"GetMyContentEntries");const x$=()=>{const e=wn(),{result:t,loading:n,error:r,refetch:i}=RN(_f,{mediaType:"ALL"},{enabled:se(()=>e.isAuthenticated)});return{entries:se(()=>{var s,a,c,l;return((l=(c=(a=(s=t.value)==null?void 0:s.userPreferences)==null?void 0:a.myContent)==null?void 0:c.model)==null?void 0:l.items)||[]}),loading:n,error:r,refetch:i}},A$=()=>{const{mutate:e,loading:t,error:n}=yg(yf),r=wn();return{addToMyContent:async o=>{var s,a;if(!r.isAuthenticated)return{success:!1,message:"User not authenticated",errors:["Authentication required"]};try{const c=await e({myContentEntry:o}),l=(a=(s=c==null?void 0:c.data)==null?void 0:s.userPreferences)==null?void 0:a.add,u=l!=null&&l.httpStatusCode?l.httpStatusCode>=200&&l.httpStatusCode<300:!1;return{success:u,message:(l==null?void 0:l.message)||(u?"Added to bookmarks":"Failed to add to bookmarks")}}catch(c){return{success:!1,message:"Failed to add to bookmarks",errors:[c instanceof Error?c.message:"Unknown error"]}}},loading:t,error:n}},R$=()=>{const{mutate:e,loading:t,error:n}=yg(vf),r=wn();return{removeFromMyContent:async o=>{var s,a;if(!r.isAuthenticated)return{success:!1,message:"User not authenticated",errors:["Authentication required"]};try{const c=await e({id:o}),l=(a=(s=c==null?void 0:c.data)==null?void 0:s.userPreferences)==null?void 0:a.delete,u=l!=null&&l.httpStatusCode?l.httpStatusCode>=200&&l.httpStatusCode<300:!1;return{success:u,message:(l==null?void 0:l.message)||(u?"Removed from bookmarks":"Failed to remove from bookmarks")}}catch(c){return{success:!1,message:"Failed to remove from bookmarks",errors:[c instanceof Error?c.message:"Unknown error"]}}},loading:t,error:n}};var bf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getMyContentByIds"}
816,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ids"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentByIds"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myContentItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"contentIds"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headerImage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publishDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"typeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mediaId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cursor"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:391}};bf.loc.source={body:`query getMyContentByIds($ids: [ID], $first: Int!, $after: String) { 817 contentByIds { 818 myContentItems(contentIds: $ids, first: $first, after: $after) { 819 totalCount 820 edges { 821 node { 822 headerImage 823 headline 824 publishDate 825 id 826 url 827 typeName 828 mediaId 829 duration 830 } 831 cursor 832 } 833 } 834 } 835} 836`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Dl(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Dl(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Dl(r,t)}),e.definitions&&e.definitions.forEach(function(r){Dl(r,t)})}var Tp={};(function(){bf.definitions.forEach(function(t){if(t.name){var n=new Set;Dl(t,n),Tp[t.name.value]=n}})})();function D0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function O$(e,t){var n={kind:e.kind,definitions:[D0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Tp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=Tp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=D0(e,a);c&&n.definitions.push(c)}),n}O$(bf,"getMyContentByIds");const M$=async(e,t=10,n)=>{const r=await vc(bf,{ids:e,first:t,after:n}),i=se(()=>{var a,c,l;return(((l=(c=(a=r.data.value)==null?void 0:a.contentByIds)==null?void 0:c.myContentItems)==null?void 0:l.edges)||[]).map(u=>{const f=u.node;return{__typename:f.typeName,id:f.id,headline:f.headline,path:f.url,headerImage:{sm:f.headerImage,md:f.headerImage,lg:f.headerImage,original:f.headerImage},isBreakingNews:!1,isTrending:!1,publishedAt:{unixSeconds:Math.floor(new Date(f.publishDate).getTime()/1e3),iso8601:f.publishDate},tags:[],topics:[],mediaId:f.mediaId,duration:f.duration}})}),o=se(()=>{var s,a,c;return((c=(a=(s=r.data.value)==null?void 0:s.contentByIds)==null?void 0:a.myContentItems)==null?void 0:c.totalCount)||0});return{articles:i,totalCount:o,loading:r.pending,error:r.error,refetch:r.refresh}},xS=()=>{const e=E$(),t=wn(),{$keycloak:n}=$e(),r=oe(new Set),i=async()=>{try{await(n==null?void 0:n.login())}catch{}},{entries:o,refetch:s}=x$(),{addToMyContent:a,loading:c}=A$(),{removeFromMyContent:l,loading:u}=R$(),f=se(()=>e.getBookmarks),d=se(()=>e.bookmarkCount),h=se(()=>e.isLoading||c.value||u.value),p=async()=>
836{if(!t.isAuthenticated)return{articles:oe([]),loading:oe(!1),errors:oe([])};if(f.value.length===0)return{articles:oe([]),loading:oe(!1),errors:oe([])};const w=f.value.map(A=>A.id),{articles:S,loading:k,error:R}=await M$(w);return{articles:S,loading:k,errors:oe(R.value?[R.value]:[])}},m=async()=>{if(!t.isAuthenticated){e.clearAllBookmarks();return}e.setLoading(!0);try{await s(),o.value&&e.setBookmarks(o.value)}finally{e.setLoading(!1)}},y=async w=>{if(!t.isAuthenticated){await i();return}const S={path:w.path,typeName:w.typeName,title:w.title};e.addBookmark(S);try{const k={id:w.id,path:w.path,typeName:w.typeName};await a(k),await m()}catch(k){throw e.removeBookmark(w.path),k}},g=async w=>{if(!t.isAuthenticated){await i();return}const S=f.value.find(k=>k.id===w||k.path===w);if(S){e.removeBookmark(w);try{const k=await l(S.id);if(!(k!=null&&k.success))throw e.addBookmark(S),new Error((k==null?void 0:k.message)||"Failed to remove bookmark");await m()}catch(k){throw e.addBookmark(S),k}}},_=async w=>{if(!t.isAuthenticated){await i();return}const S=w.path;if(!r.value.has(S)){r.value.add(S);try{e.isLoading&&await m();const k=e.isBookmarked(w.path),R=e.isBookmarked(w.id);if(k||R){const T=k?w.path:w.id;await g(T)}else await y(w)}finally{r.value.delete(S)}}},v=w=>e.isBookmarked(w),b=()=>{e.clearAllBookmarks()};return Oe(()=>t.isAuthenticated,w=>{w?m():e.clearAllBookmarks()}),{bookmarks:f,bookmarkCount:d,isLoading:h,loadBookmarks:m,addBookmark:y,removeBookmark:g,toggleBookmark:_,isBookmarked:v,clearAllBookmarks:b,getBookmarkedTeasers:p}},AS=()=>{const{$keycloak:e}=$e(),t=wn(),n=e,r=async c=>{await(n==null?void 0:n.login({redirectUri:c||window.location.href}))},i=async c=>{localStorage.removeItem("kc_token"),localStorage.removeItem("kc_refreshToken"),localStorage.removeItem("kc_idToken"),t.clearUser(),await(n==null?void 0:n.logout({redirectUri:c||window.location.origin}))};return{login:r,logout:i,register:async c=>{await(n==null?void 0:n.register({redirectUri:c||window.location.href}))},updatePassword:()=>{n==null||n.login({action:"UPDATE_PASSWORD"})},deleteAccount:async()=>{n==null||n.login({action:"delete_account"}),await i()}}},D$={key:0,class:"flex flex-col gap-2"},N$={key:1,class:"flex flex-col space-y-4"},P$={class:"flex flex-col gap-2 mt-4"},L$=["value"],$$={class:"text-grey-200 text-sm font-medium"},F$=xe({__name:"LoggedInUserMenu",emits:["close"],setup(e,{emit:t}){const n=t,r=wn(),{$locations:i,$userProfile:o}=$e(),{bookmarkCount:s,getBookmarkedTeasers:a,loadBookmarks:c}=xS(),{logout:l,updatePassword:u,deleteAccount:f}=AS(),d=Fr(),h=oe();yS(h,()=>{n("close")});const p=oe([]),m=oe(!1),y=se(()=>r.isAuthenticated&&s.value>0&&p.value.length>0),g=async()=>{try{await c();const{articles:S,loading:k}=await a();p.value=S.value,Oe(k,R=>{m.value=R},{immediate:!0})}catch{p.value=[]}finally{m.value=!1}},_=se({get:()=>{var S,k;return((S=o.data.value)==null?void 0:S.location)??((k=i.data.value)==null?void 0:k[0])},set:S=>{if(o.data.value){const k={...o.data.value,location:S,email:o.data.value.email??""};o.updateProfile(k)}}});Qe(()=>{g()}),Oe(s,()=>{g()}),Oe(()=>d.path,()=>{n("close")});const v=()=>{window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),l()},b=()=>{u()},w=()=>{f()};return(S,k)=>{var D,H;const R=JL,A=k$,T=wi,$=Sg;return U(),fe("div",{ref_key:"menuRef",ref:h,class:"w-[250px] md:w-[400px] z-30 absolute right-12 top-0 bg-white shadow-2xl rounded-lg p-4 flex flex-col gap-4 pb-10 max-h-[80vh] overflow-y-auto"},[k[5]||(k[5]=L("p",{class:"text-primary font-bold text-xl md:text-3xl md:mb-4"},"My Profile",-1)),q(y)?(U(),fe("div",D$,[k[2]||(k[2]=L("div",{class:"flex items-center mb-3"},[L("h2",{class:"font-bold text-base"},"Bookmarks")],-1)),q(m)?(U(),Ce(R,{key:0})):q(p).length>0?(U(),fe("div",N$,[(U(!0),fe(Je,null,lr(q(p).slice(0,3),ce=>(U(),Ce(A,{key:ce.id,teaser:ce,class:"border-b border-surface-03 pb-2 last:border-b-0"},null,8,["teaser"]))),128))])):De("",!0),he(T,{class:"bg-black w-full py-2 text-white font-bold rounded-md text-center flex items-center justify-center",to:"/bookmarks"},{default:Be(()=>k[1]||(k[1]=[Ye(" Show All ")])),_:1})])):De("",!0),L("div",P$,[k[3]||(k[3]=L("p",{class:"text-sm font-bold text-primary"},"Location",-1)),Im(L("select",{"onUpdate:modelValue":k[0]||(k[0]=ce=>Le(_)?_.value=ce:null),name:"location",class:"w-full bg-gray-100 font-medium text-xs rounded-[0.4375rem] py-3 px-2"},[Ye(xt((D=q(i))!=null&&D.loading?"Loading...":"")+" ",1),(U(!0),fe(Je,null,lr((H=q(i))==null?void 0:H.data.value,(ce,K)=>(U(),fe("option",{key:K,value:ce},xt(ce),9,L$))),128))],512),[[V2,q(_)]])]),k[6]||(k[6]=L("p",{class:"text-sm font-bold text-primary"},"Other",-1)),he($,{classes:"border-b border-text-secondary pb-3 flex items-center gap-2 justify-between cursor-pointer","show-arrow":!0}),k[7]||(k[7]=L("p",{class:"text-sm font-bold text-primary"},"Account",-1)),L("p",$$,xt(q(r).getUserEmail),1),L("p",{class:"border-b border-text-secondary pb-3 flex items-center gap-2 justify-between cursor-pointer",onClick:b}," Change Password "),L("div",{class:"text-center"},[L("button",{class:"font-medium text-base text-grey-400 border-0 inline-flex items-center justify-center py-2",onClick:v}," Logout "),k[4]||(k[4]=L("br",null,null,-1)),L("button",{class:"font-medium text-base text-error border-0 inline-flex items-center justify-center py-2",onClick:w}," Delete Account ")])],512)}}}),B$={class:"relative"},H$=xe({__name:"User",setup(e){const t=Nt(),n=wn(),{$keycloak:r,$userProfile:i}=$e();async function o(){await(r==null?void 0:r.login()),n.isAuthenticated&&t.push(location.origin)}const s=oe(!1);function a(){s.value=!s.value}const c=oe(!1);return Qe(()=>{c.value=!0}),(l,u)=>{var p;const f=HL,d=GL,h=F$;return U(),fe("div",B$,[!q(c)||!q(n).isInitialized?(U(),Ce(f,{key:0,class:"opacity-50"})):q(n).isAuthenticated?q(n).isAuthenticated?(U(),fe("div",{key:2,class:"w-11 h-11 flex items-center justify-center rounded-full bg-ewn font-bold text-white text-xl cursor-pointer",onClick:a},xt((p=q(i).data.value)==null?void 0:p.initials),1)):De("",!0):(U(),Ce(f,{key:1,class:"cursor-pointer",onClick:a})),q(c)&&q(n).isInitialized&&!q(n).isAuthenticated&&q(s)?(U(),Ce(d,{key:3,onClose:u[0]||(u[0]=m=>s.value=!1),onLogin:o})):De("",!0),q(c)&&q(n).isAuthenticated&&q(s)?(U(),Ce(h,{key:4,onClose:u[1]||(u[1]=m=>s.value=!1)})):De("",!0)])}}}),j$={},V$={height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",class:"fill-current"};function U$(e,t){return U(),fe("svg",V$,t[0]||(t[0]=[L("path",{d:"m16.9 9.2c.3-.3.8-.3 1.1 0l5.8 6.3c.3.2.3.7 0 1l-5.8 6.2c-.3.3-.8.3-1.1 0s-.3-.7 0-1l4.6-5h-12.7c-.5 0-.8-.3-.8-.7s.3-.8.8-.8h12.7l-4.6-4.9c-.3-.3-.3-.8 0-1.1z"},null,-1)]))}const W$=je(j$,[["render",U$]]),q$={},z$={width:"59",height:"27",viewBox:"0 0 59 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"fill-inherit"};function G$(e,t){return U(),fe("svg",z$,t[0]||(t[0]=[As('<path d="M48.6614 18.8249H40.1596V27H48.6614V18.8249Z" fill="#1206A6"></path><path d="M58.1818 18.8249H49.68V27H58.1818V18.8249Z" fill="#1206A6"></path><path d="M43.0576 20.7846C42.7684 20.7846 42.5329 21.011 42.5329 21.2891C42.5329 21.5672 42.7684 21.7936 43.0576 21.7936H43.8449V24.503C43.8449 24.8049 44.0915 25.042 44.4054 25.042C44.7194 25.042 44.9659 24.8049 44.9659 24.503V21.7936H45.7533C46.0425 21.7936 46.2779 21.5672 46.2779 21.2891C46.2779 21.011 46.0425 20.7846 45.7533 20.7846H43.0576Z" fill="white"></path><path d="M55.4426 20.7527C55.1713 20.7527 54.9777 20.9249 54.9069 21.0955L53.9395 23.5031L
83652.984 21.1251C52.8893 20.888 52.6846 20.7527 52.4244 20.7527C52.1105 20.7527 51.8639 20.9873 51.8639 21.2858C51.8639 21.381 51.8946 21.4655 51.9253 21.536L53.2851 24.663C53.4012 24.9271 53.6187 25.0731 53.8977 25.0731H53.9574C54.2363 25.0731 54.4547 24.9279 54.5699 24.663L55.9408 21.509C55.9578 21.472 55.9971 21.3753 55.9971 21.2744C55.9971 20.9815 55.7531 20.7527 55.4426 20.7527Z" fill="white"></path><path d="M38.3512 0H20.329V17.3295H38.3512V0Z" fill="#1206A6"></path><path d="M18.5222 0H0.5V17.3295H18.5222V0Z" fill="#1206A6"></path><path d="M58.1818 0H40.1596V17.3295H58.1818V0Z" fill="#1206A6"></path><path d="M52.7272 4.79299C52.9269 4.98822 53.0258 5.24252 53.0258 5.55505V11.8295C53.0258 12.1502 52.9286 12.4078 52.7332 12.6038C52.5379 12.7991 52.2862 12.8967 51.9765 12.8967C51.6106 12.8967 51.3342 12.7794 51.1473 12.5448L47.439 8.0996V11.8295C47.439 12.1502 47.3452 12.4078 47.1583 12.6038C46.9715 12.7991 46.719 12.8967 46.4025 12.8967C46.086 12.8967 45.8412 12.7991 45.6458 12.6038C45.4505 12.4086 45.3532 12.1502 45.3532 11.8295V5.55505C45.3532 5.24252 45.4505 4.98822 45.6458 4.79299C45.8412 4.59776 46.0928 4.50015 46.4025 4.50015C46.7523 4.50015 47.0244 4.61745 47.2198 4.85205L50.9281 9.28493V5.55505C50.9281 5.23431 51.0237 4.97838 51.2147 4.78643C51.4058 4.5953 51.6558 4.49933 51.9646 4.49933C52.2734 4.49933 52.5276 4.59694 52.7264 4.79217L52.7272 4.79299Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.5658 11.978C13.5658 12.5784 13.1657 12.9221 12.5574 12.9221H6.41014C5.80189 12.9221 5.40265 12.5792 5.40265 11.978C5.40265 11.3767 5.78483 11.0092 6.41014 11.0092H12.5583C13.1827 11.0092 13.5658 11.3767 13.5658 11.978Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.5658 5.4197C13.5658 6.02098 13.1836 6.38847 12.5574 6.38847H6.41013C5.78483 6.38847 5.40265 6.02098 5.40265 5.4197C5.40265 4.81843 5.80189 4.47554 6.41013 4.47554H12.5583C13.1657 4.47554 13.5658 4.81843 13.5658 5.4197Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M5.40265 8.7017C5.40265 8.10042 5.78483 7.73211 6.41014 7.73211H12.5583C13.1827 7.73211 13.5658 8.0996 13.5658 8.7017C13.5658 9.30216 13.1657 9.64586 12.5574 9.64586H6.41014C5.80189 9.64586 5.40265 9.30298 5.40265 8.7017Z" fill="white"></path><path d="M34.2043 4.64695C34.3869 4.52965 34.5882 4.47141 34.8083 4.47141C35.077 4.47141 35.3099 4.55344 35.5095 4.7175C35.7091 4.88156 35.8081 5.10468 35.8081 5.38604C35.8081 5.51154 35.7757 5.6674 35.7109 5.85525L33.2591 12.2355C33.1781 12.4545 33.0296 12.6243 32.8138 12.7457C32.598 12.8671 32.3608 12.9278 32.1006 12.9278C31.8404 12.9278 31.6041 12.8671 31.3934 12.7457C31.1819 12.6243 31.0351 12.4545 30.9541 12.2355L29.3682 7.88466L27.709 12.2355C27.6194 12.4545 27.4692 12.6243 27.2577 12.7457C27.0461 12.8671 26.8141 12.9278 26.5624 12.9278C26.3108 12.9278 26.0659 12.8671 25.8552 12.7457C25.6437 12.6243 25.4969 12.4545 25.4159 12.2355L22.9522 5.85525C22.895 5.69857 22.8669 5.5501 22.8669 5.40983C22.8669 5.12109 22.9744 4.89222 23.1902 4.72406C23.4052 4.5559 23.656 4.47141 23.9401 4.47141C24.1678 4.47141 24.3768 4.52801 24.5679 4.64122C24.759 4.75442 24.8955 4.92503 24.9766 5.15144L26.6477 9.77298L28.4162 5.15144C28.4972 4.93242 28.6294 4.76426 28.8128 4.64695C28.9954 4.52965 29.1967 4.47141 29.4168 4.47141C29.6369 4.47141 29.8357 4.53047 30.0148 4.64695C30.194 4.76426 30.3237 4.93652 30.4056 5.16292L32.0639 9.87797L33.8085 5.15144C33.8895 4.93242 34.0218 4.76426 34.2052 4.64695H34.2043Z" fill="white"></path>',12)]))}const Q$=je(q$,[["render",G$]]);var K$=(e=>(e.AUDIO="AUDIO",e.VIDEO="VIDEO",e))(K$||{});const RS={audio:{imageUrl:"",station:void 0,title:""},currentInitiated:void 0,isLoading:!1,isPlaying:!1,mediaId:"",media:{duration:0,currentTime:0,startTime:0,mediaType:"AUDIO"},isLive:!1,nowPlayingInfos:null,showBrightcovePlayer:!1,playerKey:0,showPlayer:!1},N0=oe(!1),Eg=()=>R3("player",()=>structuredClone(RS)),_J=()=>{const e=Eg(),t=se(()=>e.value.media.duration>0?e.value.media.currentTime/e.value.media.duration*100:0),n=se(()=>(e.value.isLoading||!!e.value.mediaId)&&e.value.currentInitiated==="AUDIO"),r=()=>{const f=e.value.nowPlayingInfos;e.value=structuredClone(RS),e.value.nowPlayingInfos=f},i=(f,d,h)=>{e.value.audio.title=f,e.value.audio.imageUrl=d,h&&(e.value.media.duration=h)},o=f=>{e.value.showPlayer=f},s=()=>{e.value.showPlayer=!e.value.showPlayer},a=f=>{N0.value=f},c=({id:f,type:d,isLivestream:h=!1,playbackToken:p})=>{e.value.mediaId=f,e.value.media.mediaType=d,e.value.isLive=h,e.value.media.playbackToken=p};return{player:e,progressPercent:t,isActive:n,reset:r,setAudioInfo:i,setShowPlayer:o,toggleShowPlayer:s,setMediaMetadata:c,initializePlayerComponent:({id:f,type:d,isLivestream:h=!1,playbackToken:p})=>{o(!1),r(),c({id:f,type:d,isLivestream:h,playbackToken:p}),o(!0),e.value.playerKey++},forcePlayerRerender:()=>{e.value.playerKey++},isMediaEnded:N0,setMediaEnded:a}},Y$={key:0,class:"absolute top-0 right-0 translate-x-1/2 -translate-y-1/2 flex size-3"},J$=xe({__name:"EwnTvMenuItem",setup(e){const t=Eg(),n=se(()=>t.value.nowPlayingInfos&&Object.keys(t.value.nowPlayingInfos).length>0);return(r,i)=>{const o=Q$,s=wi;return U(),Ce(s,{to:"/ewn-tv",class:Ft(["text-xl tracking-tight font-medium transition-colors whitespace-nowrap lg:text-xl relative snap-start group hover:text-brand-ewn-blue fill-brand-ewn-blue-translucent text-brand-ewn-blue-translucent hover:fill-brand-ewn-blue",{"!text-brand-ewn-blue !fill-brand-ewn-blue !font-extrabold [&>span]:scale-x-100":(r._.provides[uc]||r.$route).path.startsWith("/ewn-tv")}]),"active-class":"!text-brand-ewn-blue !fill-brand-ewn-blue !font-extrabold [&>span]:scale-x-100"},{default:Be(()=>[he(o,{class:"h-7 w-auto"}),q(n)?(U(),fe("span",Y$,i[0]||(i[0]=[L("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-error opacity-75"},null,-1),L("span",{class:"relative inline-flex size-3 rounded-full bg-error"},null,-1)]))):De("",!0),i[1]||(i[1]=L("span",{class:"h-[2px] w-6 bg-brand-ewn-blue block mx-auto mt-2 scale-x-0 transition-transform group-hover:scale-x-100"},null,-1))]),_:1},8,["class"])}}}),Z$={},X$={fill:"none",height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",class:"fill-current"};function eF(e,t){return U(),fe("svg",X$,t[0]||(t[0]=[L("path",{"clip-rule":"evenodd",d:"m15.0617 22.7983c-.3028.2826-.7774.2662-1.06-.0366l-5.79999-6.2142c-.26895-.2882
836-.26895-.7354 0-1.0235l5.79999-6.21431c.2826-.30282.7572-.31918 1.06-.03656.3029.28263.3192.75727.0366 1.06007l-4.6224 4.9525h12.7741c.4142 0 .75.3358.75.75s-.3358.75-.75.75h-12.7741l4.6224 4.9526c.2826.3028.2663.7774-.0366 1.06z"},null,-1)]))}const tF=je(Z$,[["render",eF]]);var wf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getTopics"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newsArticle"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"topics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:71}};wf.loc.source={body:`query getTopics { 837 newsArticle { 838 topics { 839 items 840 } 841 } 842} 843`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Nl(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Nl(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Nl(r,t)}),e.definitions&&e.definitions.forEach(function(r){Nl(r,t)})}var Ip={};(function(){wf.definitions.forEach(function(t){if(t.name){var n=new Set;Nl(t,n),Ip[t.name.value]=n}})})();function P0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function nF(e,t){var n={kind:e.kind,definitions:[P0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Ip[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=Ip[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=P0(e,a);c&&n.definitions.push(c)}),n}nF(wf,"getTopics");const rF=e=>e.newsArticle.topics.items,OS=()=>{const e=aS(wf),{error:t}=e;return{result:se(()=>e.data.value&&rF(e.data.value)),error:t}},iF={key:0},oF={key:1},sF={class:"relative w-full flex justify-center max-w-7xl mx-auto"},aF={key:0,class:"absolute right-0 inset-y-0 z-10 bg-gradient-to-l from-surface-primary to-transparent w-12 flex-row items-center justify-end md:flex hidden"},cF={key:1,class:"absolute left-0 inset-y-0 z-10 bg-gradient-to-r from-surface-primary to-transparent flex-row items-center justify-start md:flex w-12 hidden"},lF=xe({__name:"MainNavbar",setup(e){const{result:t,error:n}=OS(),r=oe(null),{x:i,arrivedState:o}=vS(r),s=se(()=>{var f,d;return(((f=r.value)==null?void 0:f.clientWidth)??0)/(((d=r.value)==null?void 0:d.children.length)??0)*3}),a=se(()=>{var f,d;return r.value&&((f=r.value)==null?void 0:f.clientWidth)<((d=r.value)==null?void 0:d.scrollWidth)}),c=Fr();let l;const u=()=>{l=setTimeout(()=>{var f,d;(d=(f=r.value)==null?void 0:f.querySelector("a.active"))==null||d.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},100)};return Oe(()=>c.fullPath,()=>{u()}),Qe(()=>u()),an(()=>clearTimeout(l)),(f,d)=>{const h=W$,p=wi,m=J$,y=tF;return q(n)?(U(),fe("div",iF)):(U(),fe("div",oF,[L("div",sF,[q(a)?(U(),fe("div",aF,[he(h,{class:Ft(["cursor-pointer select-none hover:scale-125 transition-transform",{"opacity-50":q(o).right}]),onClick:d[0]||(d[0]=g=>i.value+=q(s))},null,8,["class"])])):De("",!0),L("div",{ref_key:"el",ref:r,class:Ft(["flex-row items-center flex-nowrap snap-x gap-spacing-l lg:gap-spacing-xl scroll-smooth overflow-x-auto w-max hide-scrollbar flex pt-4",{"mx-8":!!q(a)}])},[he(p,{to:"/",class:"hover:text-content-primary text-lg tracking-tight font-medium text-content-secondary transition-colors whitespace-nowrap lg:text-xl snap-start group flex flex-col justify-between h-full","active-class":"active !text-content-primary !font-extrabold [&>span]:scale-x-100"},{default:Be(()=>d[2]||(d[2]=[Ye(" All News "),L("span",{class:"h-[2px] w-6 bg-content-primary block mx-auto mt-2 scale-x-0 transition-transform group-hover:scale-x-100"},null,-1)])),_:1}),he(m),he(p,{to:"/podcasts",class:"hover:text-content-primary text-lg tracking-tight font-medium text-content-secondary transition-colors whitespace-nowrap lg:text-xl snap-start group flex flex-col justify-between h-full","active-class":"active !text-content-primary !font-extrabold [&>span]:scale-x-100"},{default:Be(()=>d[3]||(d[3]=[Ye(" Podcasts "),L("span",{class:"h-[2px] w-6 bg-content-primary block mx-auto mt-2 scale-x-0 transition-transform group-hover:scale-x-100"},null,-1)])),_:1}),he(p,{to:"/latest",class:"hover:text-content-primary text-lg tracking-tight font-medium text-content-secondary transition-colors whitespace-nowrap lg:text-xl snap-start group flex flex-col justify-between h-full","active-class":"active !text-content-primary !font-extrabold [&>span]:scale-x-100"},{default:Be(()=>d[4]||(d[4]=[Ye(" Latest "),L("span",{class:"h-[2px] w-6 bg-content-primary block mx-auto mt-2 scale-x-0 transition-transform group-hover:scale-x-100"},null,-1)])),_:1}),(U(!0),fe(Je,null,lr(q(t),(g,_)=>(U(),Ce(p,{key:_,to:`/topics/${g}`,class:"hover:text-content-primary text-lg tracking-tight font-medium text-content-secondary transition-colors whitespace-nowrap lg:text-xl snap-start group flex flex-col justify-between h-full","active-class":"active !text-content-primary !font-extrabold [&>span]:scale-x-100"},{default:Be(()=>[Ye(xt(g)+" ",1),d[5]||(d[5]=L("span",{class:"h-[2px] w-6 bg-content-primary block mx-auto mt-2 scale-x-0 transition-transform group-hover:scale-x-100"},null,-1))]),_:2}
843,1032,["to"]))),128))],2),q(a)?(U(),fe("div",cF,[he(y,{class:Ft(["cursor-pointer select-none hover:scale-125 transition-transform",{"opacity-50":q(o).left}]),onClick:d[1]||(d[1]=g=>i.value-=q(s))},null,8,["class"])])):De("",!0)])]))}}}),uF={},fF={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"stroke-current"};function dF(e,t){return U(),fe("svg",fF,t[0]||(t[0]=[L("path",{d:"M6 6L18 18M6 18L18 6","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const hF=je(uF,[["render",dF]]),pF={},mF={fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"fill-current"};function gF(e,t){return U(),fe("svg",mF,t[0]||(t[0]=[L("clipPath",{id:"a"},[L("path",{d:"m0 0h24v24h-24z"})],-1),L("g",{"clip-path":"url(#a)"},[L("path",{d:"m24 12c0-6.62742-5.3726-12-12-12-6.62742 0-12 5.37258-12 12 0 5.9895 4.3882 10.954 10.125 11.8542v-8.3854h-3.04688v-3.4688h3.04688v-2.64375c0-3.0075 1.7916-4.66875 4.5326-4.66875 1.3125 0 2.6862.23438 2.6862.23438v2.95312h-1.5132c-1.4906 0-1.9556.92508-1.9556 1.875v2.25h3.3281l-.532 3.4688h-2.7961v8.3854c5.7368-.9002 10.125-5.8647 10.125-11.8542z",fill:"currentColor"})],-1)]))}const yF=je(pF,[["render",gF]]),vF={},_F={width:"300",height:"271",viewBox:"0 0 300 271",xmlns:"http://www.w3.org/2000/svg",class:"fill-current"};function bF(e,t){return U(),fe("svg",_F,t[0]||(t[0]=[L("path",{d:"m236 0h46l-101 115 118 156h-92.6l-72.5-94.8-83 94.8h-46l107-123-113-148h94.9l65.5 86.6zm-16.1 244h25.5l-165-218h-27.4z"},null,-1)]))}const wF=je(vF,[["render",bF]]),SF={},kF={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",class:"fill-current"};function EF(e,t){return U(),fe("svg",kF,t[0]||(t[0]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.4 3.45C18.15 1.2 15.15 0 12 0C5.4 0 0 5.4 0 12C0 14.1 0.600009 16.2 1.65001 18L0 24L6.30002 22.35C8.10002 23.25 10.05 23.85 12 23.85C18.6 23.85 24 18.45 24 11.85C24 8.7 22.65 5.7 20.4 3.45ZM12 21.9C10.2 21.9 8.40001 21.45 6.90001 20.55L6.59999 20.4L2.84999 21.45L3.90001 17.85L3.59999 17.4C2.54999 15.75 2.09999 13.95 2.09999 12.15C2.09999 6.75 6.6 2.25 12 2.25C14.7 2.25 17.1 3.3 19.05 5.1C21 7.05 21.9 9.45 21.9 12.15C21.9 17.4 17.55 21.9 12 21.9ZM17.4 14.4C17.1 14.25 15.6 13.5 15.3 13.5C15 13.35 14.85 13.35 14.7 13.65C14.55 13.95 13.95 14.55 13.8 14.85C13.65 15 13.5 15 13.2 15C12.9 14.85 12 14.55 10.8 13.5C9.90002 12.75 9.30001 11.7 9.15001 11.4C9.00001 11.1 9.15002 10.95 9.30002 10.8C9.45002 10.65 9.6 10.5 9.75 10.35C9.9 10.2 9.90002 10.
84305 10.05 9.9C10.2 9.75 10.05 9.6 10.05 9.45C10.05 9.3 9.45001 7.8 9.15001 7.2C9.00001 6.75 8.70002 6.75 8.55002 6.75C8.40002 6.75 8.24998 6.75 7.94998 6.75C7.79998 6.75 7.49998 6.75 7.19998 7.05C6.89998 7.35 6.15001 8.1 6.15001 9.6C6.15001 11.1 7.19999 12.45 7.34999 12.75C7.49999 12.9 9.44998 16.05 12.45 17.25C15 18.3 15.45 18 16.05 18C16.65 18 17.85 17.25 18 16.65C18.3 15.9 18.3 15.3 18.15 15.3C18 14.55 17.7 14.55 17.4 14.4Z"},null,-1)]))}const CF=je(SF,[["render",EF]]),TF=()=>{const e=bS(),t=se(()=>window.location.href),n=se(()=>({[ro.facebook]:`https://www.facebook.com/sharer.php?u=${t.value}`,[ro.x]:`https://twitter.com/share?url=${t.value}&text=${e.value}`,[ro.whatsapp]:`https://api.whatsapp.com/send?text=${e.value} ${t.value}`})),{trackEvent:r}=Km(),i=Fr();return{share:s=>{r(Qa.ShareContent,{[nr.PageName]:i.meta.custom.pageName??"unknown_page",[nr.Slug]:i.fullPath}),location.assign(n.value[s])}}},IF={class:"text-center"},xF={class:"font-bold"},AF={class:"flex items-center justify-center space-x-4"},RF=xe({__name:"SharingOverlay.client",props:{shareOverlayOpen:{type:Boolean}},emits:["emitShareOverlay"],setup(e,{emit:t}){const{share:n}=TF(),r=t,i=a=>{r("emitShareOverlay",a)},o=()=>{i(!1)},s=bS();return(a,c)=>{const l=hF,u=yF,f=wF,d=CF;return U(),fe("div",{class:Ft(["fixed bottom-0 inset-x-0 max-w-full transition-all duration-500",a.shareOverlayOpen?"opacity-100 translate-y-0":"opacity-0 translate-y-full"])},[L("button",{class:Ft(["z-10 w-10 h-10 p-2 rounded-full bg-white absolute top-0 left-1/2 -translate-x-1/2 delay-500 transition-all duration-500",a.shareOverlayOpen?" -translate-y-[120%] rotate-0 shadow-md":"translate-y-1/4 -rotate-45 shadow-xl"]),"aria-label":"Close share overlay"},[he(l,{class:"w-full h-auto",onClick:o})],2),L("div",{class:Ft(["sm:max-w-2xl mx-auto px-4 pt-6 pb-10 z-20 relative space-y-6 bg-white transition-shadow duration-200",a.shareOverlayOpen?"shadow-lg-top":"shadow-none"])},[L("div",IF,[c[3]||(c[3]=Ye(" Share ")),L("span",xF,xt(q(s)),1),c[4]||(c[4]=Ye(" on: "))]),L("ul",AF,[L("li",null,[L("div",{onClick:c[0]||(c[0]=h=>q(n)(q(ro).facebook))},[he(u,{class:"w-6 h-full"})])]),L("li",null,[L("div",{onClick:c[1]||(c[1]=h=>q(n)(q(ro).x))},[he(f,{class:"w-6 h-full"})])]),L("li",null,[L("div",{onClick:c[2]||(c[2]=h=>q(n)(q(ro).whatsapp))},[he(d,{class:"w-6 h-full"})])])])],2)],2)}}}),OF=()=>{const e=Fr(),t=se(()=>e.path.startsWith("/ewn-tv")),n=se(()=>Gi.value);return{isEWNTV:t,ewnTVLanguage:n}},Bd=oe(null),MF=()=>{const e=r=>{Bd.value=r},t=()=>pn(Bd),n=()=>{Bd.value=null};return{currentArticle:t(),setCurrentArticle:e,clearCurrentArticle:n}},DF=wg(RF),NF={class:"grid grid-cols-3 place-items-center lg:h-24 px-4 lg:px-0 mx-auto w-full lg:w-[926px]"},PF={class:"place-self-center"},LF={class:"flex flex-row justify-self-end gap-2 md:gap-4 items-center"},$F={key:1,class:"z-[11] fixed inset-0 backdrop-blur-sm bg-white/30"},FF=xe({__name:"PageHeader",setup(e){const t=Fr(),n=oe(!1),{toggleBookmark:r,isBookmarked:i,loadBookmarks:o}=xS(),s=wn(),{isEWNTV:a}=OF(),{currentArticle:c}=MF(),l=c;Qe(async()=>{s.isInitialized&&s.isAuthenticated&&await o()}),Oe(()=>[s.isInitialized,s.isAuthenticated],async([h,p])=>{h&&p&&await o()});const u=se(()=>!l.value||!s.isInitialized||!s.isAuthenticated?!1:i(l.value.path)||i(l.value.id)),f=async()=>{if(l.value)try{await r(l.value)}catch{}},d=h=>{n.value=h};return(h,p)=>{var A,T,$,D,H,ce,K,F,V,W;const m=gf,y=wi,g=_L,_=kL,v=wi,b=ML,w=LL,S=H$,k=lF,R=DF;return U(),fe(Je,null,[L("div",NF,[p[1]||(p[1]=L("div",null,null,-1)),L("div",PF,[he(y,{to:"/","aria-label":"Go to the Homepage"},{default:Be(()=>[he(m,{class:"h-[1.8rem] w-auto lg:h-[51px]"})]),_:1})]),L("div",LF,[q(a)?(U(),Ce(g,{key:0})):De("",!0),(T=(A=q(t).meta)==null?void 0:A.custom)!=null&&T.search?(U(),Ce(v,{key:1,to:"/search"},{default:Be(()=>[he(_,{class:"lg:w-8 h-auto w-6"})]),_:1})):De("",!0),(D=($=q(t).meta)==null?void 0:$.custom)!=null&&D.contact?(U(),Ce(v,{key:2,class:"font-bold lg:text-3xl text-base",to:"/contact-us"},{default:Be(()=>p[0]||(p[0]=[Ye(" Contact Us ")])),_:1})):De("",!0),q(s).isInitialized&&q(s).isAuthenticated&&q(l)&&((ce=(H=q(t).meta)==null?void 0:H.custom)==null?void 0:ce.pageName)==="detail_page"?(U(),Ce(b,{key:3,"is-article-bookmarked":q(u),"content-id":q(l).id,"article-path":q(l).path,"article-title":q(l).title,"type-name":q(l).typeName,onToggle:f},null,8,["is-article-bookmarked","content-id","article-path","article-title","type-name"])):De("",!0),(F=(K=q(t).meta)==null?void 0:K.custom)!=null&&F.share?(U(),Ce(w,{key:4,class:"lg:w-8 h-auto w-6 cursor-pointer",onClick:d})):De("",!0),he(S)])]),!((W=(V=q(t).meta)==null?void 0:V.custom)!=null&&W.hideMainMenu)||q(a)?(U(),Ce(k,{key:0})):De("",!0),he(R,{class:"z-20","share-overlay-open":q(n),onEmitShareOverlay:d},null,8,["share-overlay-open"]),q(n)?(U(),fe("div",$F)):De("",!0)],64)}}}),xo={adSlotCount:0,adSlots:{}},BF={class:"gpt-slot-wrapper"},HF=xe({__name:"GoogleAdManager.client",props:{slotId:{},sizes:{default:()=>({desktop:[[728,90]],mobile:[[300,600],[300,250],[320,50]]})},pos:{default:void 0},panelSide:{default:void 0},articleTags:{default:void 0},topic:{default:void 0},sentiment:{default:void 0},location:{default:void 0},useResponsiveBreakpoint:{type:Boolean,default:!1}},setup(e){const t=wn(),n=e,{public:{adstella:r}}=en(),i=Rs("GoogleAdManager"),o=`div-gpt-ad-slot-${xo.adSlotCount++}`,s=oe(!1),a=d=>{const h=window.innerWidth||document.documentElement.clientWidth||0,p=d.filter(([m])=>m<=h);return p.length>0?p:[...d].sort((m,y)=>m[0]-y[0]).slice(0,1)},c=(d,...h)=>i.debug(`GPT | ${n.slotId} | ${o} | ${d}`,...h);Qe(()=>{typeof window>"u"||(c("onMounted"),l())});const l=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push(()=>{c(`ðº Step 2: Creating ad slot ${n.slotId}`);const d=a(n.sizes.desktop),h=a(n.sizes.mobile),p=window.googletag.defineSlot(n.slotId,[...d,...h],o);if(!p){c("â Failed to create ad slot");return}p.addService(window.googletag.pubads());const m=window.googletag.sizeMapping();n.useResponsiveBreakpoint?m.addSize([1600,0],d):m.addSize([800,200],d);const y=m.addSize([0,0],h).build();y&&p.defineSizeMapping(y),n.pos&&p.setTargeting("pos",n.pos),n.panelSide&&p.setTargeting("panel_side",n.panelSide),n.articleTags&&n.articleTags.length>0&&window.googletag.pubads().setTargeting("article_tag",n.articleTags),n.topic&&p.setTargeting("category",[n.topic]),n.sentiment&&window.googletag.pubads().setTargeting("article_sentiment",[n.sentiment]),n.location&&window.googletag.pubads().setTargeting("location",[n.location]);const g=new URLSearchParams(window.location.search);g&&g.get("utm_source")&&window.googletag.pubads().setTargeting("referrer",[g.get("utm_source")||""]),g&&g.get("utm_campaign_name")&&window.googletag.pubads().setTargeting("campaign_name",[g.get("utm_campaign_name")||""]),window.location.href&&window.googletag.pubads().setTargeting("domain",[window.location.origin]),window.googletag.pubads().setTargeting("user_type",t.isAuthenticated?"registered":"unregistered"),xo.adSlots[o]=p,Tt().then(()=>{u()})})},u=()=>{typeof window<"u"&&window.relevantDigital?(window.relevantDigital.cmd=window.relevantDigital.cmd||[],window.relevantDigital.cmd.push(()=>{c("ð¯ Step 3: AdStella wrapper initialized - ready for prebid auctions",o),window.relevantDigital.loadPrebid({configId:r.configId,manageAdserver:!1,collapseEmptyDivs:!0,collapseBeforeAdFetch:!1,allowedDivIds:[o],noSlotReload:!0,noAdsInitRequestAll:!0,googletagCalls:{refresh:function(d){c("loadPrebid calling refresh with",d),f()}}})})):c("â ï¸ AdStella relevantDigital script not loaded yet")},f=()=>{window.googletag.cmd.push(()=>{c(`ð Fallback: Displaying ad for ${o}`),window.googletag.display(o);const d=xo.adSlots[o];d&&window.googletag.pubads().refresh([d])})};return an(()=>{window.googletag.cmd.push(()=>{c("onUnmounted"),xo.adSlots[o]&&(c("destroyingSlots"),window.googletag.destroySlots([xo.adSlots[o]]),delete xo.adSlots[o])})}),(d,h)=>Im((U(),fe("div",BF,[L("div",{id:o,class:"gpt-slot flex align-center justify-center"})],512)),[[R6,!q(s)]])}}),jF=je(HF,[["__scopeId","data-v-83edbc63"]]),MS=(e="RouteProvider")=>xe({name:e,props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,i={};for(const o in t.route)Object.defineProperty(i,o,{get:()=>n===t.renderKey?t.route[o]:r[o],enumerable:!0});return Bt(uc,kr(i)),()=>He(t.vnode,{ref:t.vnodeRef})}}),VF=MS(),L0=new WeakMap,UF=xe({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const i=$e(),o=oe(),s=Ve(uc,null);let a;r({pageRef:o});const c=Ve(ET,null);let l;const u=i.deferHydration();if(i.isHydrating){const d=i.hooks.hookOnce("app:error",u);Nt().beforeEach(d)}e.pageKey&&Oe(()=>e.pageKey,(d,h)=>{d!==h&&i.callHook("page:loading:start")});let f=!1;{const d=Nt().beforeResolve(()=>{f=!1});Mi(()=>{d()})}return()=>He(Uw,{name:e.name,route:e.route,...t},{default:d=>{const h=qF(s,d.route,d.Component),p=s&&s.matched.length===d.route.matched.length;if(!d.Component){if(l&&!p)return l;u();return}if(l&&c&&!c.isCurrent(d.route))return l;if(h&&s&&(!c||c!=null&&c.isCurrent(s)))return p?l:null;const m=$h(d,e.pageKey),y=zF(s,d.route,d.Component);!i.isHydrating&&a===m&&!y&&(i.callHook("page:loading:end"),f=!0),a=m;const g=!!(e.transition??d.route.meta.pageTransition??kh),_=g&&WF([e.transition,d.route.meta.pageTransition,kh,{onAfterLeave:()=>{i.callHook("page:transition:finish",d.Component)}}]),v=e.keepalive??d.route.meta.keepalive??nT;return l=iI(g&&_,V7(v,He(R2,{suspensible:!0,onPending:()=>i.callHook("page:start",d.Component),onResolve:()=>{Tt(()=>i.callHook("page:finish",d.Component).then(()=>
843{if(!f&&!y)return f=!0,i.callHook("page:loading:end")}).finally(u))}},{default:()=>{const b={key:m||void 0,vnode:n.default?GF(n.default,d):d.Component,route:d.route,renderKey:m||void 0,trackRootNodes:g,vnodeRef:o};if(!v)return He(VF,b);const w=d.Component.type,S=w;let k=L0.get(S);return k||(k=MS(w.name||w.__name),L0.set(S,k)),He(k,b)}}))).default(),l}})}});function WF(e){const t=e.filter(Boolean).map(n=>({...n,onAfterLeave:n.onAfterLeave?Vm(n.onAfterLeave):void 0}));return lw(...t)}function qF(e,t,n){if(!e)return!1;const r=t.matched.findIndex(i=>{var o;return((o=i.components)==null?void 0:o.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((i,o)=>{var s,a,c;return((s=i.components)==null?void 0:s.default)!==((c=(a=e.matched[o])==null?void 0:a.components)==null?void 0:c.default)})||n&&$h({route:t,Component:n})!==$h({route:e,Component:n})}function zF(e,t,n){return e?t.matched.findIndex(i=>{var o;return((o=i.components)==null?void 0:o.default)===(n==null?void 0:n.type)})<t.matched.length-1:!1}function GF(e,t){const n=e(t);return n.length===1?He(n[0]):He(Je,void 0,n)}const QF={},KF={width:"35",height:"15",viewBox:"0 0 35 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function YF(e,t){return U(),fe("svg",KF,t[0]||(t[0]=[As('<g id="2023 EWN New Logo_Black 1" clip-path="url(#clip0_6558_3773)"><path id="Vector" d="M22.7926 0.390625H12.3516V11.3543H22.7926V0.390625Z" fill="#0F0F11"></path><path id="Vector_2" d="M11.3041 0.390625H0.863281V11.3543H11.3041V0.390625Z" fill="#0F0F11"></path><path id="Vector_3" d="M34.2807 0.390625H23.8398V11.3543H34.2807V0.390625Z" fill="#0F0F11"></path><path id="Vector_4" d="M0.845703 12.6953H2.3114V13.0993H1.33985V13.4766H2.24685V13.8717H1.33985V14.367H2.39844V14.7768H0.845703V12.6953Z" fill="#0F0F11"></path><path id="Vector_5" d="M2.86816 12.6953H3.43815L3.86496 13.4088C3.89022 13.3498 3.89585 13.3381 3.94636 13.2526L4.28606 12.6953H4.85049L4.10081 13.7921V14.7768H3.61221V13.8068L2.86816 12.6953Z" fill="#0F0F11"></path><path id="Vector_6" d="M5.43359 12.6953H6.8993V13.0993H5.92775V13.4766H6.83474V13.8717H5.92775V14.367H6.98633V14.7768H5.43359V12.6953Z" fill="#0F0F11"></path><path id="Vector_7" d="M9.0366 12.6953C9.0956 12.9194 9.15452 13.1435 9.21916 13.3675C9.32866 13.7685 9.34827 13.8334 9.41005 14.2373C9.46905 13.8245 9.48303 13.7538 9.57292 13.3292C9.615 13.1169 9.65995 12.9046 9.70203 12.6953H10.1934L9.69084 14.7768H9.17985C9.11807 14.5469 9.05907 14.3169 8.99451 14.0899C8.88779 13.7066 8.88223 13.6919 8.82323 13.4C8.77273 13.6565 8.76709 13.6771 8.65473 14.0752L8.46383 14.7768H7.95284L7.4502 12.6953H7.94443C8.1578 13.683 8.18027 13.7921 8.23919 14.2432C8.31224 13.8304 8.33186 13.7508 8.43572 13.3381L8.59859 12.6953H9.0366Z" fill="#0F0F11"></path><path id="Vector_8" d="M11.2755 12.6953V14.7768H10.7812V12.6953H11.2755Z" fill="#0F0F11"></path><path id="Vector_9" d="M11.8838 12.6914H13.4112V13.1042H12.8974V14.7759H12.4004V13.1042H11.8838V12.6914Z" fill="#0F0F11"></path><path id="Vector_10" d="M14.0234 12.6953H14.5093L14.9388 13.4619C15.0961 13.7538 15.1438 13.8481 15.2365 14.0309L15.214 12.6953H15.6885V14.7768H15.2027L14.8321 14.1194C14.6524 13.8098 14.6188 13.7449 14.4839 13.4678L14.498 14.7768H14.0234L14.0234 12.6953Z" fill="#0F0F11"></path><path id="Vector_11" d="M16.584 12.6953H18.0496V13.0993H17.0781V13.4766H17.985V13.8717H17.0781V14.367H18.1366V14.7768H16.584V12.6953Z" fill="#0F0F11"></path><path id="Vector_12" d="M19.1194 14.1511C19.17 14.2101 19.2121 14.2573 19.3104 14.3133C19.4423 14.387 19.5771 14.4135 19.6922 14.4135C19.8888 14.4135 20.0572 14.3162 20.0572 14.1718C20.0572 14.0067 19.8579 13.9801 19.7119 13.9595C19.6024 13.9448 19.4928 13.93 19.3861 13.9064C19.2654 13.8799 18.8527 13.7885 18.8527 13.3403C18.8527 12.8037 19.3075 12.6445 19.6501 12.6445C20.1078 12.6445 20.3548 12.8775 20.5261 13.0396L20.1611 13.3138C20.0994 13.2489 20.0431 13.1929 19.9645 13.1457C19.8943 13.1045 19.768 13.0543 19.6417 13.0543C19.4451 13.0543 19.3468 13.1723 19.3468 13.2725C19.3468 13.4317 19.5153 13.4553 19.5996 13.4671C19.8102 13.4937 20.0937 13.5497 20.206 13.591C20.4334 13.6794 20.5486 13.8651 20.5486 14.101C20.5486 14.2514 20.4952 14.4165 20.3913 14.5433C20.2116 14.7614 19.9252 14.8234 19.6473 14.8234C19.0885 14.8234 18.8667 14.5521 18.7432 14.4017L19.1194 14.1511Z" fill="#0F0F11"></path><path id="Vector_13" d="M21.5033 14.1511C21.5538 14.2101 21.5959 14.2573 21.6942 14.3133C21.8261 14.387 21.9609 14.4135 22.076 14.4135C22.2726 14.4135 22.4411 14.3162 22.4411 14.1718C22.4411 14.0067 22.2417 13.9801 22.0956 13.9595C21.9861 13.9448 21.8766 13.93 21.77 13.9064C21.6492 13.8799 21.2365 13.7885 21.2365 13.3403C21.2365 12.8037 21.6914 12.6445 22.0339 12.6445C22.4916 12.6445 22.7387 12.8775 22.91 13.0396L22.5449 13.3138C22.4832 13.2489 22.427 13.1929 22.3484 13.1457C22.2782 13.1045 22.1519
84313.0543 22.0254 13.0543C21.8289 13.0543 21.7307 13.1723 21.7307 13.2725C21.7307 13.4317 21.8991 13.4553 21.9834 13.4671C22.194 13.4937 22.4775 13.5497 22.5899 13.591C22.8173 13.6794 22.9324 13.8651 22.9324 14.101C22.9324 14.2514 22.8791 14.4165 22.7751 14.5433C22.5954 14.7614 22.3091 14.8234 22.0311 14.8234C21.4724 14.8234 21.2505 14.5521 21.127 14.4017L21.5033 14.1511Z" fill="#0F0F11"></path><path id="Vector_14" d="M24.7695 12.6953H25.2553L25.6849 13.4619C25.8421 13.7538 25.8898 13.8481 25.9825 14.0309L25.96 12.6953H26.4345V14.7768H25.9488L25.5781 14.1194C25.3984 13.8098 25.3648 13.7449 25.23 13.4678L25.2441 14.7768H24.7695V12.6953Z" fill="#0F0F11"></path><path id="Vector_15" d="M27.3301 12.6953H28.7958V13.0993H27.8242V13.4766H28.7312V13.8717H27.8242V14.367H28.8828V14.7768H27.3301V12.6953Z" fill="#0F0F11"></path><path id="Vector_16" d="M30.9331 12.6953C30.992 12.9194 31.051 13.1435 31.1156 13.3675C31.2251 13.7685 31.2448 13.8334 31.3065 14.2373C31.3655 13.8245 31.3795 13.7538 31.4693 13.3292C31.5115 13.1169 31.5564 12.9046 31.5985 12.6953H32.0899L31.5873 14.7768H31.0763C31.0145 14.5469 30.9556 14.3169 30.8909 14.0899C30.7843 13.7066 30.7786 13.6919 30.7196 13.4C30.6691 13.6565 30.6635 13.6771 30.5512 14.0752L30.3602 14.7768H29.8492L29.3467 12.6953H29.8408C30.0542 13.683 30.0767 13.7921 30.1357 14.2432C30.2086 13.8304 30.2283 13.7508 30.3322 13.3381L30.4951 12.6953H30.9331Z" fill="#0F0F11"></path><path id="Vector_17" d="M32.89 14.1511C32.9405 14.2101 32.9826 14.2573 33.0809 14.3133C33.2129 14.387 33.3476 14.4135 33.4627 14.4135C33.6593 14.4135 33.8278 14.3162 33.8278 14.1718C33.8278 14.0067 33.6284 13.9801 33.4824 13.9595C33.3729 13.9448 33.2634 13.93 33.1567 13.9064C33.0359 13.8799 32.6233 13.7885 32.6233 13.3403C32.6233 12.8037 33.0781 12.6445 33.4207 12.6445C33.8783 12.6445 34.1254 12.8775 34.2967 13.0396L33.9316 13.3138C33.8699 13.2489 33.8137 13.1929 33.7351 13.1457C33.6649 13.1045 33.5386 13.0543 33.4122 13.0543C33.2156 13.0543 33.1174 13.1723 33.1174 13.2725C33.1174 13.4317 33.2858 13.4553 33.3701 13.4671C33.5807 13.4937 33.8642 13.5497 33.9766 13.591C34.204 13.6794 34.3192 13.8651 34.3192 14.101C34.3192 14.2514 34.2658 14.4165 34.1618 14.5433C33.9822 14.7614 33.6958 14.8234 33.4178 14.8234C32.8591 14.8234 32.6372 14.5521 32.5137 14.4017L32.89 14.1511Z" fill="#0F0F11"></path><path id="Vector_18" d="M31.1211 3.4237C31.2366 3.54742 31.2943 3.70831 31.2943 3.90604V7.87574C31.2943 8.07867 31.2378 8.24182 31.1247 8.36544C31.0116 8.48915 30.8656 8.55096 30.6866 8.55096C30.4746 8.55096 30.3144 8.47673 30.2061 8.32837L28.058 5.51622V7.87574C28.058 8.07867 28.0037 8.24182 27.8954 8.36544C27.787 8.48915 27.641 8.55096 27.4573 8.55096C27.2782 8.55096 27.1323 8.48915 27.0192 8.36544C26.9061 8.24182 26.8496 8.07867 26.8496 7.87574V3.90604C26.8496 3.70831 26.9061 3.54742 27.0192 3.4237C27.1323 3.3002 27.2782 3.23828 27.4573 3.23828C27.6597 3.23828 27.8177 3.31241 27.9308 3.46087L30.0789 6.26556V3.90604C30.0789 3.70323 30.1342 3.54126 30.2449 3.42002C30.3555 3.2989 30.5004 3.23828 30.6796 3.23828C30.8585 3.23828 31.0057 3.3002 31.1211 3.4237Z" fill="white"></path><path id="Vector_19" fill-rule="evenodd" clip-rule="evenodd" d="M8.4334 7.96853C8.43295 8.34849 8.20184 8.56563 7.84942 8.56563H4.28793C3.93551 8.56563 3.7041 8.34864 3.7041 7.96837C3.7041 7.58825 3.92549 7.35547 4.28793 7.35547H7.84957C8.21142 7.35563 8.4334 7.5881 8.4334 7.96853Z" fill="white"></path><path id="Vector_20" fill-rule="evenodd" clip-rule="evenodd" d="M8.4334 3.81992C8.43295 4.2002 8.21186 4.43282 7.84942 4.43282H4.28793C3.92564 4.43282 3.7041 4.20035 3.7041 3.81977C3.7041 3.43981 3.93537 3.22266 4.28793 3.22266H7.84957C8.2014 3.22297 8.4334 3.43965 8.4334 3.81992Z" fill="white"></path><path id="Vector_21" fill-rule="evenodd" clip-rule="evenodd" d="M3.7041 5.89641C3.7041 5.51613 3.92549 5.2832 4.28793 5.2832H7.84957C8.21142 5.28366 8.4334 5.51582 8.4334 5.89641C8.43295 6.27653 8.20184 6.49368 7.84942 6.49368H4.28793C3.93551 6.49368 3.7041 6.27684 3.7041 5.89641Z" fill="white"></path><path id="Vector_22" d="M20.3894 3.33004C20.4954 3.25592 20.612 3.21875 20.7392 3.21875C20.8947 3.21875 21.03 3.27072 21.1454 3.37456C21.2609 3.47851 21.3186 3.61951 21.3186 3.79758C21.3186 3.87678 21.2997 3.97565 21.2621 4.0944L19.8418 8.13077C19.7947 8.26941 19.7086 8.37692 19.5838 8.45363C19.459 8.53024 19.3212 8.5686 19.1705 8.5686C19.0196 8.5686 18.8831 8.53024 18.7606 8.45363C18.6381 8.37692 18.5533 8.26941 18.5063 8.13077L17.5877 5.37805L16.6266 8.13077C16.5747 8.26941 16.4877 8.37692 16.3652 8.45363C16.2426 8.53024 16.1084 8.5686 15.9623 8.5686C15.8116 8.5686 15.6749 8.53024 15.5525 8.45363C15.4299 8.37692 15.3451 8.26941 15.2981 8.13077L13.8708 4.0944C13.8378 3.99542 13.8213 3.90142 13.8213 3.81239C13.8213 3.62945 13.8836 3.48477 14.0086 3.37834C14.1333 3.27202 14.2782 3.21875 14.4431 3.21875C14.5749 3.21875 14.6964 3.25473 14.8071 3.32637C14.9177 3.39812 14.9966 3.50574 15.0437 3.64912L16.0118 6.57267L17.0364 3.64912C17.0834 3.51071 17.1601 3.40427 17.2661 3.33004C17.3721 3.25592 17.4887 3.21875 17.6159 3.21875C17.743 3.21875 17.8585 3.25592 17.9621 3.33004C18.0657 3.40428 18.1412 3.51319 18.1883 3.65658L19.1493 6.63945L20.1598 3.64912C20.2068 3.51071 20.2834 3.40427 20.3894 3.33004Z" fill="white"></path></g><defs><clipPath id="clip0_6558_3773"><rect width="34" height="15" fill="white" transform="translate(0.5)"></rect></clipPath></defs>',2)]))}
843const JF=je(QF,[["render",YF]]),ZF={},XF={width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function eB(e,t){return U(),fe("svg",XF,t[0]||(t[0]=[L("path",{d:"M17.366 8.265C16.4007 8.26516 15.5364 8.56168 14.9118 9.17925C14.2856 9.79848 13.956 10.6856 13.956 11.7575V12.9278H12.5H12V13.4278V15.6912V16.1912H12.5H13.9553V21H7.328C7.14664 21 7 20.8534 7 20.672V7.328C7 7.14664 7.14664 7 7.328 7H20.672C20.8534 7 21 7.14664 21 7.328V20.672C21 20.8534 20.8534 21 20.672 21H17.2938V16.1912H18.7438H19.1834L19.2396 15.7552L19.5314 13.4917L19.6041 12.9278H19.0355H17.293V11.9825C17.293 11.6762 17.3418 11.5578 17.3841 11.5075C17.4102 11.4765 17.5121 11.38 17.9158 11.38H19.1143H19.6143V10.88V8.855V8.40539L19.1672 8.35781C18.5689 8.29414 17.9676 8.26316 17.366 8.265ZM17.366 8.265C17.3662 8.265 17.3665 8.265 17.3668 8.265V8.765L17.3652 8.265C17.3655 8.265 17.3657 8.265 17.366 8.265ZM14.456 12.9278V13.4278H13.956L14.456 12.9278Z",fill:"#0F0F11",stroke:"#0F0F11"},null,-1),L("rect",{x:"0.5",y:"0.5",width:"27",height:"27",rx:"4.5",stroke:"#0F0F11"},null,-1)]))}const tB=je(ZF,[["render",eB]]),nB={},rB={width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iB(e,t){return U(),fe("svg",rB,t[0]||(t[0]=[L("path",{d:"M9.64895 21.5H7.34972L12.398 15.453L6.5 7.25H11.1285L14.7522 12.2349L18.9009 7.25H21.2001L15.8519 13.7177L21.5 21.5H16.7566L13.4827 16.9463L9.64895 21.5ZM10.4537 8.66974H9.17911L17.4264 20.1328H18.7959L10.4537 8.66974Z",fill:"#0F0F11"},null,-1),L("rect",{x:"0.5",y:"0.5",width:"27",height:"27",rx:"4.5",stroke:"#0F0F11"},null,-1)]))}const oB=je(nB,[["render",iB]]),sB={},aB={width:"28",height:"29",viewBox:"0 0 28 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cB(e,t){return U(),fe("svg",aB,t[0]||(t[0]=[L("path",{d:"M20.2835 11.5423V13.9867C19.8564 13.9449 19.3015 13.8479 18.6876 13.623C17.8861 13.3291 17.2895 12.9273 16.8987 12.6162V17.5566L16.8887 17.5412C16.895 17.6391 16.8987 17.7389 16.8987 17.8396C16.8987 20.293 14.9029 22.2902 12.4493 22.2902C9.99572 22.2902 8 20.293 8 17.8396C8 15.3862 9.99572 13.388 12.4493 13.388C12.6896 13.388 12.9254 13.4071 13.1557 13.4443V15.8533C12.9344 15.7744 12.6969 15.7317 12.4493 15.7317C11.2878 15.7317 10.3421 16.6768 10.3421 17.8396C10.3421 19.0024 11.2878 19.9475 12.4493 19.9475C13.6109 19.9475 14.5566 19.0015 14.5566 17.8396C14.5566 17.7961 14.5557 17.7525 14.553 17.709V8.1084H16.9948C17.0038 8.31519 17.012 8.52381 17.0211 8.7306C17.0374 9.13785 17.1825 9.52876 17.4354 9.84893C17.732 10.2253 18.1699 10.6625 18.7847 11.0117C19.3604 11.3373 19.9009 11.4779 20.2835 11.5441V11.5423Z",fill:"#0F0F11"},null,-1),L("rect",{x:"0.5",y:"1.35767",width:"27",height:"27",rx:"4.5",stroke:"#0F0F11"},null,-1)]))}const lB=je(sB,[["render",cB]]),uB={},fB={width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dB(e,t){return U(),fe("svg",fB,t[0]||(t[0]=[L("path",{d:"M10.85 7H17.15C19.2739 7 21 8.72614 21 10.85V17.15C21 18.1711 20.5944 19.1503 19.8724 19.8724C19.1503 20.5944 18.1711 21 17.15 21H10.85C8.72614 21 7 19.2739 7 17.15V10.85C7 9.82892 7.40562 8.84965 8.12764 8.12764C8.84965 7.40562 9.82892 7 10.85 7ZM10.7 7.5C9.85131 7.5 9.03737 7.83714 8.43726 8.43726C7.83714 9.03737 7.5 9.85131 7.5 10.7V17.3C7.5 19.0686 8.93136 20.5 10.7 20.5H17.3C18.1487 20.5 18.9626 20.1629 19.5627 19.5627C20.1629 18.9626 20.5 18.1487 20.5 17.3V10.7C20.5 8.93136 19.0686 7.5 17.3 7.5H10.7ZM18.2469 10.3719L18.6004 10.7254L18.2469 10.3719C18.1648 10.4539 18.0535 10.5 17.9375 10.5C17.8215 10.5 17.7102 10.4539 17.6281 10.3719L17.2746 10.7254L17.6281 10.3719C17.5461 10.2898 17.5 10.1785 17.5 10.0625C17.5 9.94647 17.5461 9.83519 17.6281 9.75314C17.7102 9.67109 17.8215 9.625 17.9375 9.625C18.0535 9.625 18.1648 9.67109 18.2469 9.75314C18.3289 9.83519 18.375 9.94647 18.375 10.0625C18.375 10.1785 18.3289 10.2898 18.2469 10.3719ZM14 10.75C14.862 10.75 15.6886 11.0924 16.2981 11.7019C16.9076 12.3114 17.25 13.138 17.25 14C17.25 14.862 16.9076 15.6886 16.2981 16.2981C15.6886 16.9076 14.862 17.25 14 17.25C13.138 17.25 12.3114 16.9076 11.7019 16.2981C11.0924 15.6886 10.75 14.862 10.75 14C10.75 13.138 11.0924 12.3114 11.7019 11.7019C12.3114 11.0924 13.138 10.75 14 10.75ZM14 11.25C13.2707 11.25 12.5712 11.5397 12.0555 12.0555C11.5397 12.5712 11.25 13.2707 11.25 14C11.25 14.7293 11.5397 15.4288 12.0555 15.9445C12.5712 16.4603 13.2707 16.75 14 16.75C14.7293 16.75 15.4288 16.4603 15.9445 15.9445C16.4603 15.4288 16.75 14.7293 16.75 14C16.75 13.2707 16.4603 12.5712 15.9445 12.0555C15.4288 11.5397 14.7293 11.25 14 11.25Z",fill:"#0F0F11",stroke:"#0F0F11"},null,-1),L("rect",{x:"0.5",y:"0.5",width:"27",height:"27",rx:"4.5",stroke:"#0F0F11"},null,-1)]))}const hB=je(uB,[["render",dB]]),pB={},mB={width:"28",height:"29",viewBox:"0 0 28 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gB(e,t){return U(),fe("svg",mB,t[0]||(t[0]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.25 9.70805C7.25 10.1554 7.41268 10.5313 7.7398 10.835C8.06691 11.
8431387 8.4993 11.291 9.0039 11.291C9.50849 11.291 9.92348 11.1387 10.2506 10.835C10.5768 10.5313 10.7404 10.1667 10.7404 9.70805C10.7404 9.24943 10.5777 8.86739 10.2506 8.56368C9.92435 8.25996 9.5198 8.10767 9.0039 8.10767C8.48799 8.10767 8.06691 8.25996 7.7398 8.56368C7.41355 8.86826 7.25 9.26075 7.25 9.70805ZM10.4655 21.8889V12.5773H7.52404V21.8889H10.4655ZM21.2187 16.365C21.2187 15.1484 20.8986 14.1929 20.2574 13.4967V13.4958C19.6171 12.8005 18.7593 12.4524 17.6857 12.4524C17.0828 12.4524 16.5408 12.5699 16.0588 12.8057C15.5769 13.0416 15.1932 13.3618 14.9087 13.7673V12.5507H12.0986V21.724H14.9087V16.7427C14.9087 16.1292 15.0679 15.6523 15.3854 15.3129C15.703 14.9726 16.131 14.8029 16.667 14.8029C17.2029 14.8029 17.6309 14.9735 17.9485 15.3129C18.266 15.6523 18.4252 16.1292 18.4252 16.7427V21.724H21.2187V16.365Z",fill:"#0F0F11"},null,-1),L("rect",{x:"0.5",y:"1.35767",width:"27",height:"27",rx:"4.5",stroke:"#0F0F11"},null,-1)]))}const yB=je(pB,[["render",gB]]),vB={},_B={width:"67",height:"23",viewBox:"0 0 67 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"fill-current"};function bB(e,t){return U(),fe("svg",_B,t[0]||(t[0]=[L("g",{id:"2023 EWN New Logo_Black 1"},[L("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M45.4922 1.16406H66.0668V21.6295H45.4922V1.16406ZM60.1844 7.725C60.1844 7.35589 60.0707 7.05557 59.8432 6.82463C59.6157 6.59409 59.3257 6.47852 58.9731 6.47852C58.62 6.47852 58.3345 6.59167 58.1165 6.81777C57.8983 7.04407 57.7895 7.34641 57.7895 7.725V12.1294L53.5563 6.89401C53.3335 6.61688 53.0222 6.47852 52.6234 6.47852C52.2703 6.47852 51.9828 6.59409 51.76 6.82463C51.5371 7.05557 51.4258 7.35589 51.4258 7.725V15.1351C51.4258 15.5139 51.5371 15.8185 51.76 16.0492C51.9828 16.2801 52.2703 16.3955 52.6234 16.3955C52.9853 16.3955 53.2731 16.2801 53.4866 16.0492C53.7001 15.8185 53.807 15.5139 53.807 15.1351V10.7307L58.0401 15.98C58.2534 16.2569 58.5691 16.3955 58.9868 16.3955C59.3397 16.3955 59.6274 16.2801 59.8503 16.0492C60.0731 15.8185 60.1844 15.5139 60.1844 15.1351V7.725Z"}),L("path",{id:"Subtract_2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.214844 1.16406H20.7895V21.6295H0.214844V1.16406ZM13.9812 16.424C14.6757 16.424 15.1311 16.0187 15.132 15.3094C15.132 14.5993 14.6946 14.1653 13.9815 14.165H6.96298C6.24876 14.165 5.8125 14.5996 5.8125 15.3091C5.8125 16.019 6.26851 16.424 6.96298 16.424H13.9812ZM15.132 7.56412C15.1311 8.27397 14.6954 8.7082 13.9812 8.7082H6.96298C6.24906 8.7082 5.8125 8.27426 5.8125 7.56383C5.8125 6.85457 6.26823 6.44922 6.96298 6.44922H13.9815C14.6748 6.4498 15.132 6.85427 15.132 7.56412ZM6.96298 10.2959C6.24876 10.2959 5.8125 10.7307 5.8125 11.4406C5.8125 12.1507 6.26851 12.5555 6.96298 12.5555H13.9812C14.6757 12.5555 15.1311 12.1501 15.132 11.4406C15.132 10.7301 14.6946 10.2968 13.9815 10.2959H6.96298Z"}),L("path",{id:"Subtract_3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.8555 1.16406H43.4304V21.6295H22.8555V1.16406ZM39.3823 6.44336C39.1317 6.44336 38.902 6.51274 38.6931 6.65111C38.4843 6.78967 38.3332 6.98834 38.2405 7.24672L36.2493 12.8287L34.3556 7.26063C34.2627 6.99298 34.1141 6.78967 33.9099 6.65111C33.7057 6.51274 33.4782 6.44336 33.2275 6.44336C32.9769 6.44336 32.7471 6.51274 32.5383 6.65111C32.3294 6.78967 32.1784 6.98834 32.0857 7.24672L30.0667 12.704L28.159 7.24672C28.0661 6.97907 27.9106 6.77818 27.6926 6.64425C27.4744 6.51052 27.2351 6.44336 26.9754 6.44336C26.6503 6.44336 26.3648 6.5428 26.1191 6.74127C25.8729 6.93994 25.75 7.21001 25.75 7.55148C25.75 7.71768 25.7824 7.89315 25.8475 8.07791L28.6602 15.6125C28.7529 15.8712 28.92 16.0719 29.1615 16.2151C29.4028 16.3581 29.6721 16.4297 29.9691 16.4297C30.2569 16.4297 30.5215 16.3581 30.763 16.2151C31.0043 16.0719 31.1758 15.8712 31.278 15.6125L33.172 10.4741L34.9821 15.6125C35.0748 15.8712 35.2419 16.0719 35.4834 16.2151C35.7247 16.3581 35.9938 16.4297 36.291 16.4297C36.5881 16.4297 36.8596 16.3581 37.1056 16.2151C37.3516 16.0719 37.5211 15.8712 37.6139 15.6125L40.4129 8.07791C40.4869 7.85624 40.5242 7.67169 40.5242 7.52385C40.5242 7.19145 40.4104 6.92824 40.1829 6.73421C39.9554 6.54038 39.6887 6.44336 39.3823 6.44336Z"})],-1)]))}const wB=je(vB,[["render",bB]]),SB={class:"mt-responsive-m w-full"},kB={class:"my-spacing-xl py-spacing-m lg:grid grid-cols-4 space-y-spacing-xl lg:space-y-0 gap-x-8"}
843,EB={class:"self-center space-y-[0.88rem]"},CB={class:"flex items-center gap-2"},TB={class:"px-1"},IB={class:"flex gap-4 lg:gap-3"},xB={href:"https://www.facebook.com/EyewitnessNews/",target:"_blank","aria-label":"facebook",rel:"nofollow"},AB={href:"https://x.com/ewnupdates",target:"_blank","aria-label":"X",rel:"nofollow"},RB={href:"https://www.tiktok.com/@eyewitnessnewssa",target:"_blank","aria-label":"TikTok",rel:"nofollow"},OB={href:"https://www.instagram.com/ewnupdates/",target:"_blank","aria-label":"instagram",rel:"nofollow"},MB={href:"https://www.linkedin.com/company/eyewitness-news-ewn-/",target:"_blank","aria-label":"LINKEDIN",rel:"nofollow"},DB={class:"col-span-2 grid grid-cols-2 gap-y-2 gap-x-8"},NB={class:"flex flex-col gap-2"},PB={class:"flex justify-between my-spacing-xl lg:flex-row flex-col lg:space-y-0 space-y-spacing-xl"},LB={class:"text-paragraph-sm font-medium text-content-secondary"},$B=xe({__name:"PageFooter",async setup(e){let t,n;const{result:r}=([t,n]=d2(()=>OS()),t=await t,n(),t);return(i,o)=>{const s=JF,a=tB,c=oB,l=lB,u=hB,f=yB,d=wi,h=Sg,p=wB;return U(),fe("footer",SB,[o[9]||(o[9]=L("hr",{class:"bg-surface-03"},null,-1)),L("div",kB,[L("div",EB,[L("div",CB,[L("span",TB,[he(s)]),o[0]||(o[0]=L("p",{class:"text-paragraph-lg font-bold"},"Follow us",-1))]),L("div",IB,[L("a",xB,[he(a)]),L("a",AB,[he(c)]),L("a",RB,[he(l)]),L("a",OB,[he(u)]),L("a",MB,[he(f)])])]),L("div",DB,[o[3]||(o[3]=L("p",{class:"text-paragraph-sm font-bold text-content-secondary col-span-2 mb-spacing-m"}," Sections ",-1)),he(d,{to:"/latest",class:"text-paragraph-md font-medium text-content-primary"},{default:Be(()=>o[1]||(o[1]=[Ye(" Latest ")])),_:1}),(U(!0),fe(Je,null,lr(q(r),(m,y)=>(U(),Ce(d,{key:y,to:`/topics/${m}`,class:"text-paragraph-md font-medium text-content-primary"},{default:Be(()=>[Ye(xt(m),1)]),_:2},1032,["to"]))),128)),he(d,{to:"/podcasts",class:"text-paragraph-md font-medium text-content-primary col-start-2"},{default:Be(()=>o[2]||(o[2]=[Ye(" Podcasts ")])),_:1})]),L("div",NB,[o[8]||(o[8]=L("p",{class:"text-paragraph-sm font-bold text-content-secondary col-span-2 mb-spacing-m"}," Other ",-1)),he(d,{to:"/ewn-contact-us",class:"text-paragraph-md font-medium text-content-primary"},{default:Be(()=>o[4]||(o[4]=[Ye(" Contact Us ")])),_:1}),he(d,{to:"/ewn-privacy",class:"text-paragraph-md font-medium text-content-primary"},{default:Be(()=>o[5]||(o[5]=[Ye(" Privacy Notice ")])),_:1}),he(d,{to:"/ewn-terms-and-conditions",class:"text-paragraph-md font-medium text-content-primary"},{default:Be(()=>o[6]||(o[6]=[Ye(" Terms and Conditions ")])),_:1}),he(d,{to:"/ewn-paia",class:"text-paragraph-md font-medium text-content-primary"},{default:Be(()=>o[7]||(o[7]=[Ye(" PAIA ")])),_:1}),he(h,{classes:"!text-paragraph-md !text-content-primary !border-0 !m-0 !p-0 !bg-transparent !cursor-pointer !font-medium !hover:underline !focus:outline-none !focus:ring-0 !focus:ring-offset-0 !focus:ring-transparent !focus:ring-offset-transparent"})])]),o[10]||(o[10]=L("hr",{class:"bg-surface-03"},null,-1)),L("div",PB,[he(p,{class:"fill-surface-03"}),L("p",LB," COPYRIGHT "+xt(new Date().getFullYear())+" ALL RIGHTS RESERVED ",1)])])}}}),FB=xe({__name:"Smartbanner.client",setup(e){return Qe(()=>{window.location.href.includes("hideMobileNavBar")||(At(()=>Promise.resolve({}),__vite__mapDeps([41]),import.meta.url),At(()=>import("./CzgTz5To.js").then(n=>n.s),[],import.meta.url))}),(t,n)=>(U(),fe("template"))}}),BB={},HB={class:"fixed grid place-items-center bg-white z-50 inset-0 overflow-hidden"},jB={class:"logo-shine"};function VB(e,t){const n=gf;return U(),fe("div",HB,[L("div",jB,[he(n,{class:"lg:h-[6rem] h-[4rem] w-auto"})])])}const UB=je(BB,[["render",VB],["__scopeId","data-v-18d1821e"]]),WB={},qB={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"fill-current"};function zB(e,t){return U(),fe("svg",qB,t[0]||(t[0]=[L("path",{d:"M8.89232 13.6416L14.4736 8.06034L13.3652 6.952L8.89232 11.4249L6.63607 9.16867L5.52773 10.277L8.89232 13.6416ZM10.0007 17.9166C8.90551 17.9166 7.87635 17.7086 6.91315 17.2928C5.94996 16.8774 5.11211 16.3135 4.39961 15.601C3.68711 14.8885 3.12318 14.0506 2.70782 13.0874C2.29193 12.1242 2.08398 11.0951 2.08398 9.99992C2.08398 8.90478 2.29193 7.87561 2.70782 6.91242C3.12318 5.94922 3.68711 5.11138 4.39961 4.39888C5.11211 3.68638 5.94996 3.12218 6.91315 2.70629C7.87635 2.29093 8.90551 2.08325 10.0007 2.08325C11.0958 2.08325 12.125 2.29093 13.0882 2.70629C14.0513 3.12218 14.8892 3.68638 15.6017 4.39888C16.3142 5.11138 16.8781 5.94922 17.2935 6.91242C17.7094 7.87561 17.9173 8.90478 17.9173 9.99992C17.9173 11.0951 17.7094 12.1242 17.2935 13.0874C16.8781 14.0506 16.3142 14.8885 15.6017 15.601C14.8892 16.3135 14.0513 16.8774 13.0882 17.2928C12.125 17.7086 11.0958 17.9166 10.0007 17.9166Z"},null,-1)]))}const GB=je(WB,[["render",zB]]),QB={class:"flex flex-row gap-2"},KB={class:"grid grid-rows-2 place-items-center"},YB={class:"flex flex-col gap-1"},JB={class:"text-lg font-bold"},ZB={key:0,class:"inline-block text-base font-medium"},XB=xe({__name:"WallItem",props:{title:{},subtitle:{}},setup(e){return(t,n)=>{const r=GB;return U(),fe("div",QB,[L("div",KB,[he(r,{class:"!fill-[#0504aa]"}
843)]),L("div",YB,[L("h6",JB,xt(t.title),1),t.subtitle?(U(),fe("p",ZB,xt(t.subtitle),1)):De("",!0)])])}}}),eH={},tH={class:"bg-surface-01 disabled:opacity-40 text-white px-5 py-3 rounded-[0.4375rem] lg:text-paragraph-md text-paragraph-sm font-bold hover:bg-surface-03 hover:text-content-primary transition-colors duration-300"};function nH(e,t){return U(),fe("button",tH,[u2(e.$slots,"default")])}const DS=je(eH,[["render",nH]]);var Sf={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"imageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImagePublishedMedia"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"blurHashString"},arguments:[],directives:[]}]}}],loc:{start:0,end:86}};Sf.loc.source={body:`fragment imageFragment on ImagePublishedMedia { 844 imageDescription 845 blurHashString 846} 847`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Pl(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Pl(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pl(r,t)}),e.definitions&&e.definitions.forEach(function(r){Pl(r,t)})}var xp={};(function(){Sf.definitions.forEach(function(t){if(t.name){var n=new Set;Pl(t,n),xp[t.name.value]=n}})})();function $0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function rH(e,t){var n={kind:e.kind,definitions:[$0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=xp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=xp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=$0(e,a);c&&n.definitions.push(c)}),n}rH(Sf,"imageFragment");var Ti={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getArticlesList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"topics"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tab"}},type:{kind:"NamedType",name:{kind:"Name",value:"NewsTabEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tag"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"author"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pinBreakingNews"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timeline"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newsArticle"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"articleList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tab"},value:{kind:"Variable",name:{kind:"Name",value:"tab"}}},{kind:"Argument",name:{kind:"Name",value:"topics"},value:{kind:"Variable",name:{kind:"Name",value:"topics"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"tag"},value:{kind:"Variable",name:{kind:"Name",value:"tag"}}},{kind:"Argument",name:{kind:"Name",value:"author"},value:{kind:"Variable",name:{kind:"Name",value:"author"}}},{kind:"Argument",name:{kind:"Name",value:"pinBreakingNews"},value:{kind:"Variable",name:{kind:"Name",value:"pinBreakingNews"}}},{kind:"Argument",name:{kind:"Name",value:"timeline"},value:{kind:"Variable",name:{kind:"Name",value:"timeline"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"article"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topics"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headerImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"sm"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"21x9_small",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"md"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"21x9_large",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"lg"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"21x9_large",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"original"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"1x1_large",block:!1}}],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"imageFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"overline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teaserHeadline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teaserOverline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isBreakingNews"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isTrending"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"avatarPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publishedAt"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unixSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iso8601"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsMediaArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"overline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topics"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeline"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"avatarPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"publishedAt"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unixSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iso8601"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"headerMedia"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BaseDetailPagePublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headerImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"lg"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_large",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"md"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_medium",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"sm"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_small",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"original"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"1x1_large",block:!1}}],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"imageFragment"},directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BaseMediaDetailPagePublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mediaId"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:2425}};Ti.loc.source={body:`#import "../fragments/imageFragment.graphql" 848 849query getArticlesList( 850 $first: Int! 851 $topics: [String] 852 $tab: NewsTabEnum 853 $after: String 854 $tag: String 855 $author: String 856 $pinBreakingNews: Boolean 857 $timeline: String 858) { 859 newsArticle { 860 articleList( 861 tab: $tab 862 topics: $topics 863 first: $first 864 after: $after 865 tag: $tag 866 author: $author 867 pinBreakingNews: $pinBreakingNews 868 timeline: $timeline 869 ) { 870 totalCount 871 pageInfo { 872 hasNextPage 873 endCursor 874 } 875 items { 876 article { 877 ... on NewsArticle { 878 __typename 879 headline 880 topics 881 headerImage { 882 sm: _url(mode: ABSOLUTE, cropAlias: "21x9_small")
883 md: _url(mode: ABSOLUTE, cropAlias: "21x9_large") 884 lg: _url(mode: ABSOLUTE, cropAlias: "21x9_large") 885 original: _url(mode: ABSOLUTE, cropAlias: "1x1_large") 886 ...imageFragment 887 } 888 overline 889 subline 890 teaserHeadline 891 teaserOverline 892 isBreakingNews 893 isTrending 894 tags 895 authorDetails { 896 avatarPath 897 fullName 898 } 899 id 900 path 901 publishedAt { 902 unixSeconds 903 iso8601 904 } 905 } 906 ... on NewsMediaArticle { 907 __typename 908 id 909 path 910 overline 911 headline 912 subline 913 topics 914 timeline { 915 _id 916 _name 917 } 918 tags 919 authorDetails { 920 avatarPath 921 fullName 922 } 923 publishedAt { 924 unixSeconds 925 iso8601 926 } 927 headerMedia { 928 ... on BaseDetailPagePublishedContent { 929 headerImage { 930 lg: _url(mode: ABSOLUTE, cropAlias: "16x9_large") 931 md: _url(mode: ABSOLUTE, cropAlias: "16x9_medium") 932 sm: _url(mode: ABSOLUTE, cropAlias: "16x9_small") 933 original: _url(mode: ABSOLUTE, cropAlias: "1x1_large") 934 ...imageFragment 935 } 936 } 937 ... on BaseMediaDetailPagePublishedContent { 938 mediaId 939 } 940 } 941 } 942 } 943 } 944 } 945 } 946} 947`,name:"GraphQL request",locationOffset:{line:1,column:1}};var F0={};function iH(e){return e.filter(function(t){if(t.kind!=="FragmentDefinition")return!0;var n=t.name.value;return F0[n]?!1:(F0[n]=!0,!0)})}Ti.definitions=Ti.definitions.concat(iH(Sf.definitions));function Ll(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ll(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ll(r,t)}),e.definitions&&e.definitions.forEach(function(r){Ll(r,t)})}var Ap={};(function(){Ti.definitions.forEach(function(t){if(t.name){var n=new Set;Ll(t,n),Ap[t.name.value]=n}})})();function B0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function oH(e,t){var n={kind:e.kind,definitions:[B0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Ap[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=Ap[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=B0(e,a);c&&n.definitions.push(c)}),n}oH(Ti,"getArticlesList");var kf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getArticlesList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newsArticle"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"articleList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"article"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headerImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"sm"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"1x1_small",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"md"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"1x1_small",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"lg"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"1x1_small",block:!1}}],directives:[]}]}}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:421}};kf.loc.source={body:`query getArticlesList($first: Int!) { 948 newsArticle { 949 articleList(first: $first) { 950 items { 951 article { 952 ... on NewsArticle { 953 headerImage { 954 sm: _url(mode: ABSOLUTE, cropAlias: "1x1_small")
955 md: _url(mode: ABSOLUTE, cropAlias: "1x1_small") 956 lg: _url(mode: ABSOLUTE, cropAlias: "1x1_small") 957 } 958 } 959 } 960 } 961 } 962 } 963} 964`,name:"GraphQL request",locationOffset:{line:1,column:1}};function $l(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){$l(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){$l(r,t)}),e.definitions&&e.definitions.forEach(function(r){$l(r,t)})}var Rp={};(function(){kf.definitions.forEach(function(t){if(t.name){var n=new Set;$l(t,n),Rp[t.name.value]=n}})})();function H0(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function sH(e,t){var n={kind:e.kind,definitions:[H0(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Rp[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(a){o.add(a)});o.size>0;){var s=o;o=new Set,s.forEach(function(a){if(!i.has(a)){i.add(a);var c=Rp[a]||new Set;c.forEach(function(l){o.add(l)})}})}return i.forEach(function(a){var c=H0(e,a);c&&n.definitions.push(c)}),n}sH(kf,"getArticlesList");const aH=20,j0=(e,t)=>({total:e.totalCount??0,pageInfo:e.pageInfo,result:e.items?e.items.filter(n=>n.article.id!==t).filter(n=>!!n.article.id).map(n=>{var r;return{...n,headline:n.article.teaserHeadline||n.article.headline,id:n.article.id,headerImage:n.article.headerImage||((r=n.article.headerMedia)==null?void 0:r.headerImage),subline:n.article.subline,overline:n.article.teaserOverline||n.article.overline,tags:n.article.tags,topics:n.article.topics,path:n.article.path,publishedAt:n.article.publishedAt,isBreakingNews:n.article.isBreakingNews,isTrending:n.article.isTrending,__typename:n.article.__typename}}):[]}),bJ=e=>{var f,d;const t=vc(Ti,{...e}),{error:n,pending:r}=t,i=se(()=>{var p,m,y,g;const h={...(m=(p=t.data.value)==null?void 0:p.newsArticle)==null?void 0:m.articleList,items:((g=(y=t.data.value)==null?void 0:y.newsArticle)==null?void 0:g.articleList.items.filter(_=>{var v;return!!((v=_.article)!=null&&v.id)}))||[]};return h&&j0(h,e.exclueId)}),o=ON(Ti,{tab:dS.AllNews,first:aH,after:(d=(f=i.value)==null?void 0:f.pageInfo)==null?void 0:d.endCursor}),{error:s,loading:a,load:c,fetchMore:l}=o,u=se(()=>{var p;let h=(p=o.result.value)==null?void 0:p.newsArticle.articleList;return h!=null&&h.items&&(h={...h,items:h.items.filter(m=>{var y;return!!((y=m.article)!=null&&y.id)})}),h&&j0(h,e.exclueId)});return{initialResult:i,initialError:n,initialLoading:r,loading:a,error:s,result:u,load:c,fetchMore:l}},cH=e=>{const{data:t,status:n}=vc(kf,{first:e}),r=se(()=>{var i;return n.value==="success"?(i=t.value)==null?void 0:i.newsArticle.articleList.items:[]});return{items:pn(r)}},lH={class:"relative h-full w-full overflow-y-auto overflow-x-hidden"},uH={class:"pointer-events-none absolute left-0 lg:top-32 -top-12 -z-10 flex justify-start"},fH={class:"-rotate-12 opacity-40 blur lg:block lg:opacity-60"},dH={class:"animation flex gap-4"},hH={class:"animation animation--backwards mt-4 flex gap-4"},pH={class:"px-8 grid lg:min-h-screen min-h-[calc(100vh+4rem)] lg:place-items-center"},mH={class:"grid self-start mt-6 place-items-center"},gH={class:"md:max-w-[684px]"},yH={class:"flex flex-col gap-12"},vH={class:"flex flex-col gap-4"},_H={class:"mt-10 flex flex-col items-center gap-4"},bH={class:"block text-center text-sm font-normal text-content-secondary"},wH=xe({__name:"Regwall",emits:["closeModal"],setup(e){const{items:t}=cH(40),{login:n,register:r}=AS(),i=se(()=>{if(t.value)return[...t.value].sort(()=>Math.random()-.5)}),o=se(()=>{if(i.value)return i.value.slice(0,19)}),s=se(()=>{if(i.value)return i.value.slice(20,40)});return(a,c)=>{const l=kg,u=gf,f=XB,d=DS;return U(),fe("div",lH,[L("div",uH,[L("div",fH,[L("ul",dH,[(U(!0),fe(Je,null,lr(q(o),(h,p)=>{var m,y,g;return U(),fe("li",{key:p,class:"shrink-0 overflow-hidden rounded-xl first:ml-4"},[he(l,{src:{lg:(m=h.article.headerImage)==null?void 0:m.lg,md:(y=h.article.headerImage)==null?void 0:y.md,sm:(g=h.article.headerImage)==null?void 0:g.sm},class:"w-40"},null,8,["src"])])}),128))]),L("ul",hH,[(U(!0),fe(Je,null,lr(q(s),(h,p)=>{var m,y,g;return U(),fe("li",{key:p,class:"shrink-0 overflow-hidden rounded-xl first:ml-4"},[he(l,{src:{lg:(m=h.article.headerImage)==null?void 0:m.lg,md:(y=h.article.headerImage)==null?void 0:y.md,sm:(g=h.article.headerImage)==null?void 0:g.sm},class:"w-40"},null,8,["src"])])}),128))])])]),c[7]||(c[7]=L("div",{class:"pointer-events-none lg:absolute inset-y-0 left-0 w-32 bg-gradient-to-r from-white to-transparent -z-[5]"},null,-1)),c[8]||(c[8]=L("div",{class:"pointer-events-none lg:absolute inset-y-0 right-0 w-32 bg-gradient-to-l from-white to-transparent -z-[5]"},null,-1)),L("div",pH,[L("div",mH,[he(u,{class:"h-[39px] w-auto"})]),L("div",gH,[L("div",yH,[c[4]||(c[4]=L("h1",{class:"text-4xl font-extrabold"},"Register to Continue",-1)),L("div",vH,[he(f,{title:"Access to EWN Exclusives",subtitle:"Early access to exclusive content from EWN"}),he(f,{title:"Bookmarks",subtitle:"Save anything for later"}
964),he(f,{title:"Live Coverage",subtitle:"Live coverage of major events with EWNTV"}),he(f,{title:"Story Timeline",subtitle:"Follow the progression of a topical event"})])]),L("div",_H,[he(d,{class:"w-full outline-none",onClick:[c[0]||(c[0]=z6(()=>{},["stop"])),c[1]||(c[1]=h=>q(r)())]},{default:Be(()=>c[5]||(c[5]=[Ye("Join for free")])),_:1}),L("span",bH,[c[6]||(c[6]=Ye(" Already have an account? ")),L("button",{class:"font-bold text-content-primary",onClick:c[2]||(c[2]=h=>q(n)())},"Log in")]),L("button",{class:"mt-4 text-center text-base font-medium text-[#0F0F11]",onClick:c[3]||(c[3]=h=>a.$emit("closeModal"))}," Do this later ")])])])])}}}),SH=je(wH,[["__scopeId","data-v-cc498d29"]]);function Cg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _c(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Cg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=_c();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}var V0;let kH=Symbol("headlessui.useid"),EH=0;const Tg=(V0=y8)!=null?V0:function(){return Ve(kH,()=>`${++EH}`)()};function bt(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function fr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,fr),r}var CH=Object.defineProperty,TH=(e,t,n)=>t in e?CH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U0=(e,t,n)=>(TH(e,typeof t!="symbol"?t+"":t,n),n);let IH=class{constructor(){U0(this,"current",this.detect()),U0(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},bc=new IH;function Ps(e){if(bc.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=bt(e);if(t)return t.ownerDocument}return document}let Op=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ii=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(ii||{}),NS=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(NS||{}),xH=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(xH||{});function AH(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Op)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var PS=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(PS||{});function RH(e,t=0){var n;return e===((n=Ps(e))==null?void 0:n.body)?!1:fr(t,{0(){return e.matches(Op)},1(){let r=e;for(;r!==null;){if(r.matches(Op))return!0;r=r.parentElement}return!1}})}var OH=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(OH||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function oo(e){e==null||e.focus({preventScroll:!0})}let MH=["textarea","input"].join(",");function DH(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,MH))!=null?n:!1}function NH(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Fl(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){var o;let s=(o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?o:document,a=Array.isArray(e)?n?NH(e):e
964:AH(e);i.length>0&&a.length>1&&(a=a.filter(p=>!i.includes(p))),r=r??s.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,d=a.length,h;do{if(f>=d||f+d<=0)return 0;let p=l+f;if(t&16)p=(p+d)%d;else{if(p<0)return 3;if(p>=d)return 1}h=a[p],h==null||h.focus(u),f+=c}while(h!==s.activeElement);return t&6&&DH(h)&&h.select(),2}function LS(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function PH(){return/Android/gi.test(window.navigator.userAgent)}function LH(){return LS()||PH()}function Xc(e,t,n){bc.isServer||yn(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function $S(e,t,n){bc.isServer||yn(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function $H(e,t,n=se(()=>!0)){function r(o,s){if(!n.value||o.defaultPrevented)return;let a=s(o);if(a===null||!a.getRootNode().contains(a))return;let c=function l(u){return typeof u=="function"?l(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let l of c){if(l===null)continue;let u=l instanceof HTMLElement?l:bt(l);if(u!=null&&u.contains(a)||o.composed&&o.composedPath().includes(u))return}return!RH(a,PS.Loose)&&a.tabIndex!==-1&&o.preventDefault(),t(o,a)}let i=oe(null);Xc("pointerdown",o=>{var s,a;n.value&&(i.value=((a=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:a[0])||o.target)},!0),Xc("mousedown",o=>{var s,a;n.value&&(i.value=((a=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:a[0])||o.target)},!0),Xc("click",o=>{LH()||i.value&&(r(o,()=>i.value),i.value=null)},!0),Xc("touchend",o=>r(o,()=>o.target instanceof HTMLElement?o.target:null),!0),$S("blur",o=>r(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var pu=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(pu||{}),ai=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ai||{});function Hr({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...i}){var o;let s=BS(r,n),a=Object.assign(i,{props:s});if(e||t&2&&s.static)return Hd(a);if(t&1){let c=(o=s.unmount)==null||o?0:1;return fr(c,{0(){return null},1(){return Hd({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Hd(a)}function Hd({props:e,attrs:t,slots:n,slot:r,name:i}){var o,s;let{as:a,...c}=HS(e,["unmount","static"]),l=(o=n.default)==null?void 0:o.call(n,r),u={};if(r){let f=!1,d=[];for(let[h,p]of Object.entries(r))typeof p=="boolean"&&(f=!0),p===!0&&d.push(h);f&&(u["data-headlessui-state"]=d.join(" "))}if(a==="template"){if(l=FS(l??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[f,...d]=l??[];if(!FH(f)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(m=>m.trim()).filter((m,y,g)=>g.indexOf(m)===y).sort((m,y)=>m.localeCompare(y)).map(m=>` - ${m}`).join(` 965`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(` 966`)].join(` 967`));let h=BS((s=f.props)!=null?s:{},c,u),p=xn(f,h,!0);for(let m in h)m.startsWith("on")&&(p.props||(p.props={}),p.props[m]=h[m]);return p}return Array.isArray(l)&&l.length===1?l[0]:l}return He(a,Object.assign({},c,u),{default:()=>l})}function FS(e){return e.flatMap(t=>t.type===Je?FS(t.children):[t])}function BS(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if(i instanceof Event&&i.defaultPrevented)return;a(i,...o)}}});return t}function HS(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function FH(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var mu=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(mu||{});let Mp=xe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:i,...o}=e,s={"aria-hidden":(i&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Hr({ourProps:s,theirProps:o,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),jS=Symbol("Context");var dn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(dn||{});function BH(){return Ig()!==null}function Ig(){return Ve(jS,null)}function HH(e){Bt(jS,e)}var VS=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(VS||{});function jH(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Yi=[];jH(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Yi[0]!==t.target&&(Yi.unshift(t.target),Yi=Yi.filter(n=>n!=null&&n.isConnected),Yi.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function US(e,t,n,r){bc.isServer||yn(i=>{e=e??window,e.addEventListener(t,n,r),i(()=>e.removeEventListener(t,n,r))})}var da=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(da||{});function VH(){let e=oe(0);return $S("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function WS(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=bt(n);r instanceof HTMLElement&&t.add(r)}return t}var qS=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.Re
967storeFocus=16]="RestoreFocus",e[e.All=30]="All",e))(qS||{});let na=Object.assign(xe({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:oe(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let i=oe(null);r({el:i,$el:i});let o=se(()=>Ps(i)),s=oe(!1);Qe(()=>s.value=!0),an(()=>s.value=!1),WH({ownerDocument:o},se(()=>s.value&&!!(e.features&16)));let a=qH({ownerDocument:o,container:i,initialFocus:se(()=>e.initialFocus)},se(()=>s.value&&!!(e.features&2)));zH({ownerDocument:o,container:i,containers:e.containers,previousActiveElement:a},se(()=>s.value&&!!(e.features&8)));let c=VH();function l(h){let p=bt(i);p&&(m=>m())(()=>{fr(c.value,{[da.Forwards]:()=>{Fl(p,ii.First,{skipElements:[h.relatedTarget]})},[da.Backwards]:()=>{Fl(p,ii.Last,{skipElements:[h.relatedTarget]})}})})}let u=oe(!1);function f(h){h.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function d(h){if(!s.value)return;let p=WS(e.containers);bt(i)instanceof HTMLElement&&p.add(bt(i));let m=h.relatedTarget;m instanceof HTMLElement&&m.dataset.headlessuiFocusGuard!=="true"&&(zS(p,m)||(u.value?Fl(bt(i),fr(c.value,{[da.Forwards]:()=>ii.Next,[da.Backwards]:()=>ii.Previous})|ii.WrapAround,{relativeTo:h.target}):h.target instanceof HTMLElement&&oo(h.target)))}return()=>{let h={},p={ref:i,onKeydown:f,onFocusout:d},{features:m,initialFocus:y,containers:g,..._}=e;return He(Je,[!!(m&4)&&He(Mp,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:l,features:mu.Focusable}),Hr({ourProps:p,theirProps:{...t,..._},slot:h,attrs:t,slots:n,name:"FocusTrap"}),!!(m&4)&&He(Mp,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:l,features:mu.Focusable})])}}}),{features:qS});function UH(e){let t=oe(Yi.slice());return Oe([e],([n],[r])=>{r===!0&&n===!1?Cg(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Yi.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function WH({ownerDocument:e},t){let n=UH(t);Qe(()=>{yn(()=>{var r,i;t.value||((r=e.value)==null?void 0:r.activeElement)===((i=e.value)==null?void 0:i.body)&&oo(n())},{flush:"post"})}),an(()=>{t.value&&oo(n())})}function qH({ownerDocument:e,container:t,initialFocus:n},r){let i=oe(null),o=oe(!1);return Qe(()=>o.value=!0),an(()=>o.value=!1),Qe(()=>{Oe([t,n,r],(s,a)=>{if(s.every((l,u)=>(a==null?void 0:a[u])===l)||!r.value)return;let c=bt(t);c&&Cg(()=>{var l,u;if(!o.value)return;let f=bt(n),d=(l=e.value)==null?void 0:l.activeElement;if(f){if(f===d){i.value=d;return}}else if(c.contains(d)){i.value=d;return}f?oo(f):Fl(c,ii.First|ii.NoScroll)===NS.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),i}function zH({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){var o;US((o=e.value)==null?void 0:o.defaultView,"focus",s=>{if(!i.value)return;let a=WS(n);bt(t)instanceof HTMLElement&&a.add(bt(t));let c=r.value;if(!c)return;let l=s.target;l&&l instanceof HTMLElement?zS(a,l)?(r.value=l,oo(l)):(s.preventDefault(),s.stopPropagation(),oo(c)):oo(r.value)},!0)}function zS(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function GH(e){let t=mn(e.getSnapshot());return an(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function QH(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}function KH(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,i=r.clientWidth-r.offsetWidth,o=e-i;n.style(r,"paddingRight",`${o}px`)}}}function YH(){return LS()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=_c();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:l}=new URL(c.href),u=e.querySelector(l);u&&!r(u)&&(s=u)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;o!==c&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function JH(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function ZH(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Zi=QH(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:_c(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:ZH(n)},i=[YH(),KH(),JH()];
967i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Zi.subscribe(()=>{let e=Zi.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Zi.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Zi.dispatch("TEARDOWN",n)}});function XH(e,t,n){let r=GH(Zi),i=se(()=>{let o=e.value?r.value.get(e.value):void 0;return o?o.count>0:!1});return Oe([e,t],([o,s],[a],c)=>{if(!o||!s)return;Zi.dispatch("PUSH",o,n);let l=!1;c(()=>{l||(Zi.dispatch("POP",a??o,n),l=!0)})},{immediate:!0}),i}let jd=new Map,ra=new Map;function W0(e,t=oe(!0)){yn(n=>{var r;if(!t.value)return;let i=bt(e);if(!i)return;n(function(){var s;if(!i)return;let a=(s=ra.get(i))!=null?s:1;if(a===1?ra.delete(i):ra.set(i,a-1),a!==1)return;let c=jd.get(i);c&&(c["aria-hidden"]===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",c["aria-hidden"]),i.inert=c.inert,jd.delete(i))});let o=(r=ra.get(i))!=null?r:0;ra.set(i,o+1),o===0&&(jd.set(i,{"aria-hidden":i.getAttribute("aria-hidden"),inert:i.inert}),i.setAttribute("aria-hidden","true"),i.inert=!0)})}function ej({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=oe(null),i=Ps(r);function o(){var s,a,c;let l=[];for(let u of e)u!==null&&(u instanceof HTMLElement?l.push(u):"value"in u&&u.value instanceof HTMLElement&&l.push(u.value));if(t!=null&&t.value)for(let u of t.value)l.push(u);for(let u of(s=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(bt(r))||u.contains((c=(a=bt(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||l.some(f=>u.contains(f))||l.push(u));return l}
967return{resolveContainers:o,contains(s){return o().some(a=>a.contains(s))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:He(Mp,{features:mu.Hidden,ref:r})}}}let GS=Symbol("ForcePortalRootContext");function tj(){return Ve(GS,!1)}let q0=xe({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Bt(GS,e.force),()=>{let{force:r,...i}=e;return Hr({theirProps:i,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),QS=Symbol("StackContext");var Dp=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Dp||{});function nj(){return Ve(QS,()=>{})}function rj({type:e,enabled:t,element:n,onUpdate:r}){let i=nj();function o(...s){r==null||r(...s),i(...s)}Qe(()=>{Oe(t,(s,a)=>{s?o(0,e,n):a===!0&&o(1,e,n)},{immediate:!0,flush:"sync"})}),an(()=>{t.value&&o(1,e,n)}),Bt(QS,o)}let ij=Symbol("DescriptionContext");function oj({slot:e=oe({}),name:t="Description",props:n={}}={}){let r=oe([]);function i(o){return r.value.push(o),()=>{let s=r.value.indexOf(o);s!==-1&&r.value.splice(s,1)}}return Bt(ij,{register:i,slot:e,name:t,props:n}),se(()=>r.value.length>0?r.value.join(" "):void 0)}function sj(e){let t=Ps(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const Np=new WeakMap;function aj(e){var t;return(t=Np.get(e))!=null?t:0}function z0(e,t){let n=t(aj(e));return n<=0?Np.delete(e):Np.set(e,n),n}let cj=xe({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=oe(null),i=se(()=>Ps(r)),o=tj(),s=Ve(KS,null),a=oe(o===!0||s==null?sj(r.value):s.resolveTarget());a.value&&z0(a.value,d=>d+1);let c=oe(!1);Qe(()=>{c.value=!0}),yn(()=>{o||s!=null&&(a.value=s.resolveTarget())});let l=Ve(Pp,null),u=!1,f=_n();return Oe(r,()=>{if(u||!l)return;let d=bt(r);d&&(an(l.register(d),f),u=!0)}),an(()=>{var d,h;let p=(d=i.value)==null?void 0:d.getElementById("headlessui-portal-root");!p||a.value!==p||z0(a.value,m=>m-1)||a.value.children.length>0||(h=a.value.parentElement)==null||h.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let d={ref:r,"data-headlessui-portal":""};return He(h8,{to:a.value},Hr({ourProps:d,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Pp=Symbol("PortalParentContext");function lj(){let e=Ve(Pp,null),t=oe([]);function n(o){return t.value.push(o),e&&e.register(o),()=>r(o)}function r(o){let s=t.value.indexOf(o);s!==-1&&t.value.splice(s,1),e&&e.unregister(o)}let i={register:n,unregister:r,portals:t};return[t,xe({name:"PortalWrapper",setup(o,{slots:s}){return Bt(Pp,i),()=>{var a;return(a=s.default)==null?void 0:a.call(s)}}})]}let KS=Symbol("PortalGroupContext"),uj=xe({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Ut({resolveTarget(){return e.target}});return Bt(KS,r),()=>{let{target:i,...o}=e;return Hr({theirProps:o,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var fj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fj||{});let Lp=Symbol("DialogContext");function YS(e){let t=Ve(Lp,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,YS),n}return t}let el="DC8F892D-2EBD-447C-A4C8-A03058436FF4",dj=xe({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:el},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){var o,s;let a=(o=e.id)!=null?o:`headlessui-dialog-${Tg()}`,c=oe(!1);Qe(()=>{c.value=!0});let l=!1,u=se(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(l||(l=!0,console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),f=oe(0),d=Ig(),h=se(()=>e.open===el&&d!==null?(d.value&dn.Open)===dn.Open:e.open),p=oe(null),m=se(()=>Ps(p));if(i({el:p,$el:p}),!(e.open!==el||d!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof h.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value===el?void 0:e.open}`);let y=se(()=>c.value&&h.value?0:1),g=se(()=>y.value===0),_=se(()=>f.value>1),v=Ve(Lp,null)!==null,[b,w]=lj(),{resolveContainers:S,mainTreeNodeRef:k,MainTreeNode:R}=ej({portals:b,defaultContainers:[se(()=>{var O;return(O=V.panelRef.value)!=null?O:p.value})]}),A=se(()=>_.value?"parent":"leaf"),T=se(()=>d!==null?(d.value&dn.Closing)===dn.Closing:!1),$=se(()=>v||T.value?!1:g.value),D=se(()=>{var O,B,Q;return(Q=Array.from((B=(O=m.value)==null?void 0:O.querySelectorAll("body > *"))!=null?B:[]).find(Y=>Y.id==="headlessui-portal-root"?!1:Y.contains(bt(k))&&Y instanceof HTMLElement))!=null?Q:null});W0(D,$);let H=se(()=>_.value?!0:g.value),ce=se(()=>{var O,B,Q;return(Q=Array.from((B=(O=m.value)==null?void 0:O.querySelectorAll("[data-headlessui-portal]"))!=null?B:[]).find(Y=>Y.contains(bt(k))&&Y instanceof HTMLElement))!=null?Q:null});W0(ce,H),rj({type:"Dialog",enabled:se(()=>y.value===0),element:p,onUpdate:(O,B)=>{if(B==="Dialog")return fr(O,{[Dp.Add]:()=>f.value+=1,[Dp.Remove]:()=>f.value-=1})}});let K=oj({name:"DialogDescription",slot:se(()=>({open:h.value}))}),F=oe(null),V={titleId:F,panelRef:oe(null),dialogState:y,setTitleId(O){F.value!==O&&(F.value=O)},close(){t("close",!1)}};Bt(Lp,V);let W=se(()=>!(!g.value||_.value));$H(S,(O,B)=>{O.preventDefault(),V.close(),Tt(()=>B==null?void 0:B.focus())},W);let de=se(()=>!(_.value||y.value!==0));US((s=m.value)==null?void 0:s.defaultView,"keydown",O=>{de.value&&(O.defaultPrevented||O.key===VS.Escape&&(O.preventDefault(),O.stopPropagation(),V.close()))});let C=se(()=>!(T.value||y.value!==0||v));return XH(m,C,O=>{var B;
967return{containers:[...(B=O.containers)!=null?B:[],S]}}),yn(O=>{if(y.value!==0)return;let B=bt(p);if(!B)return;let Q=new ResizeObserver(Y=>{for(let re of Y){let N=re.target.getBoundingClientRect();N.x===0&&N.y===0&&N.width===0&&N.height===0&&V.close()}});Q.observe(B),O(()=>Q.disconnect())}),()=>{let{open:O,initialFocus:B,...Q}=e,Y={...n,ref:p,id:a,role:u.value,"aria-modal":y.value===0?!0:void 0,"aria-labelledby":F.value,"aria-describedby":K.value},re={open:y.value===0};return He(q0,{force:!0},()=>[He(cj,()=>He(uj,{target:p.value},()=>He(q0,{force:!1},()=>He(na,{initialFocus:B,containers:S,features:g.value?fr(A.value,{parent:na.features.RestoreFocus,leaf:na.features.All&~na.features.FocusLock}):na.features.None},()=>He(w,{},()=>Hr({ourProps:Y,theirProps:{...Q,...n},slot:re,attrs:n,slots:r,visible:y.value===0,features:pu.RenderStrategy|pu.Static,name:"Dialog"})))))),He(R)])}}}),hj=xe({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let o=(i=e.id)!=null?i:`headlessui-dialog-panel-${Tg()}`,s=YS("DialogPanel");r({el:s.panelRef,$el:s.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,l={id:o,ref:s.panelRef,onClick:a};return Hr({ourProps:l,theirProps:c,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});function pj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Vd(e,...t){e&&t.length>0&&e.classList.add(...t)}function tl(e,...t){e&&t.length>0&&e.classList.remove(...t)}var $p=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))($p||{});function mj(e,t){let n=_c();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[o,s]=[r,i].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(l=>l.includes("ms")?parseFloat(l):parseFloat(l)*1e3).sort((l,u)=>u-l);return c});return o!==0?n.setTimeout(()=>t("finished"),o+s):t("finished"),n.add(()=>t("cancelled")),n.dispose}function G0(e,t,n,r,i,o){let s=_c(),a=o!==void 0?pj(o):()=>{};return tl(e,...i),Vd(e,...t,...n),s.nextFrame(()=>{tl(e,...n),Vd(e,...r),s.add(mj(e,c=>(tl(e,...r,...t),Vd(e,...i),a(c))))}),s.add(()=>tl(e,...t,...n,...r,...i)),s.add(()=>a("cancelled")),s.dispose}function Vi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let xg=Symbol("TransitionContext");var gj=(e=>(e.Visible="visible",e.Hidden="hidden",e))(gj||{});function yj(){return Ve(xg,null)!==null}function vj(){let e=Ve(xg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function _j(){let e=Ve(Ag,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Ag=Symbol("NestingContext");function Ef(e){return"children"in e?Ef(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function JS(e){let t=oe([]),n=oe(!1);Qe(()=>n.value=!0),an(()=>n.value=!1);function r(o,s=ai.Hidden){let a=t.value.findIndex(({id:c})=>c===o);a!==-1&&(fr(s,{[ai.Unmount](){t.value.splice(a,1)},[ai.Hidden](){t.value[a].state="hidden"}}),!Ef(t)&&n.value&&(e==null||e()))}function i(o){let s=t.value.find(({id:a})=>a===o);return s?s.state!=="visible"&&(s.state="visible"):t.value.push({id:o,state:"visible"}),()=>r(o,ai.Unmount)}return{children:t,register:i,unregister:r}}let ZS=pu.RenderStrategy,XS=xe({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){let o=oe(0);function s(){o.value|=dn.Opening,t("beforeEnter")}function a(){o.value&=~dn.Opening,t("afterEnter")}function c(){o.value|=dn.Closing,t("beforeLeave")}function l(){o.value&=~dn.Closing,t("afterLeave")}if(!yj()&&BH())return()=>He(e4,{...e,onBeforeEnter:s,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:l},r);let u=oe(null),f=se(()=>e.unmount?ai.Unmount:ai.Hidden);i({el:u,$el:u});let{show:d,appear:h}=vj(),{register:p,unregister:m}=_j(),y=oe(d.value?"visible":"hidden"),g={value:!0},_=Tg(),v={value:!1},b=JS(()=>{!v.value&&y.value!=="hidden"&&(y.value="hidden",m(_),l())});Qe(()=>{let H=p(_);an(H)}),yn(()=>
967{if(f.value===ai.Hidden&&_){if(d.value&&y.value!=="visible"){y.value="visible";return}fr(y.value,{hidden:()=>m(_),visible:()=>p(_)})}});let w=Vi(e.enter),S=Vi(e.enterFrom),k=Vi(e.enterTo),R=Vi(e.entered),A=Vi(e.leave),T=Vi(e.leaveFrom),$=Vi(e.leaveTo);Qe(()=>{yn(()=>{if(y.value==="visible"){let H=bt(u);if(H instanceof Comment&&H.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function D(H){let ce=g.value&&!h.value,K=bt(u);!K||!(K instanceof HTMLElement)||ce||(v.value=!0,d.value&&s(),d.value||c(),H(d.value?G0(K,w,S,k,R,F=>{v.value=!1,F===$p.Finished&&a()}):G0(K,A,T,$,R,F=>{v.value=!1,F===$p.Finished&&(Ef(b)||(y.value="hidden",m(_),l()))})))}return Qe(()=>{Oe([d],(H,ce,K)=>{D(K),g.value=!1},{immediate:!0})}),Bt(Ag,b),HH(se(()=>fr(y.value,{visible:dn.Open,hidden:dn.Closed})|o.value)),()=>{let{appear:H,show:ce,enter:K,enterFrom:F,enterTo:V,entered:W,leave:de,leaveFrom:C,leaveTo:O,...B}=e,Q={ref:u},Y={...B,...h.value&&d.value&&bc.isServer?{class:Ft([n.class,B.class,...w,...S])}:{}};return Hr({theirProps:Y,ourProps:Q,slot:{},slots:r,attrs:n,features:ZS,visible:y.value==="visible",name:"TransitionChild"})}}}),bj=XS,e4=xe({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let i=Ig(),o=se(()=>e.show===null&&i!==null?(i.value&dn.Open)===dn.Open:e.show);yn(()=>{if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let s=oe(o.value?"visible":"hidden"),a=JS(()=>{s.value="hidden"}),c=oe(!0),l={show:o,appear:se(()=>e.appear||!c.value)};return Qe(()=>{yn(()=>{c.value=!1,o.value?s.value="visible":Ef(a)||(s.value="hidden")})}),Bt(Ag,a),Bt(xg,l),()=>{let u=HS(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:e.unmount};return Hr({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[He(bj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...f,...u},r.default)]},attrs:{},features:ZS,visible:s.value==="visible",name:"Transition"})}}});const Ud=oe(!1),Q0=oe(!0),wj=(e=!1)=>{const t=r=>Ud.value=r,n=r=>Q0.value=r;return e&&(Ud.value=e),{setRegWallVisibility:t,isRegWallVisible:Ud,setIsRegWallSkipPossible:n,isRegWallSkipPossible:Q0}},Sj=()=>{const e=$e(),t=Nt(),n=oe(e.isHydrating),r=se(()=>!!n.value);return t.afterEach((i,o)=>{o.fullPath!==i.fullPath&&n.value&&(n.value=!1)}),{isInitialRouteActive:r}},kj={class:"fixed inset-0 bg-white backdrop-blur-xl overscroll-contain"},Ej=xe({__name:"RegwallModal",setup(e){const t=Nt(),{isAuthenticated:n,isInitialized:r}=wn(),{trackEvent:i}=Km(),{public:{loginwallEnabled:o}}=en(),{isRegWallSkipPossible:s,isRegWallVisible:a,setRegWallVisibility:c}=wj(o&&!n),{isInitialRouteActive:l}=Sj();Oe(a,f=>{f&&i(Qa.ScreenView,{[nr.PageName]:"reg_wall"})},{immediate:!0});const u=()=>{i(Qa.Interaction,{[nr.Click]:"skip_now",[nr.PageName]:"reg_wall"}),s.value||(l.value?t.replace("/"):t.back()),c(!1)};return(f,d)=>{const h=UB,p=SH;return q(r)?(U(),Ce(q(e4),{key:1,appear:"",as:"template",show:q(a)},{default:Be(()=>[he(q(dj),{as:"div",class:"relative z-50"},{default:Be(()=>[L("div",kj,[he(q(XS),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:Be(()=>[he(q(hj),{class:"h-full transition-all"},{default:Be(()=>[he(p,{onCloseModal:u})]),_:1})]),_:1})])]),_:1})]),_:1},8,["show"])):(U(),Ce(h,{key:0}))}}}),Cj=xe({name:"NuxtErrorBoundary",inheritAttrs:!1,emits:{error(e){return!0}},setup(e,{slots:t,emit:n}){const r=oe(null),i=$e();xm((s,a,c)=>{if(!i.isHydrating||!i.payload.serverRendered)return n("error",s),i.hooks.callHook("vue:error",s,a,c),r.value=s,!1});function o(){r.value=null}return()=>{var s,a;return r.value?(s=t.error)==null?void 0:s.call(t,{error:r,clearError:o}):(a=t.default)==null?void 0:a.call(t)}}}),Tj=5e3,Ij=()=>{const{public:{livestreamUrl:e}}=en(),t=Eg(),n=Rs("Livestream");let r=null,i=null;const o=()=>{r=new EventSource(e),r.onmessage=a=>{t.value.nowPlayingInfos=JSON.parse(a.data)},r.onerror=()=>
967{n.warn("EventSource error, attempting to reconnect..."),r==null||r.close(),i=setTimeout(o,Tj)}},s=()=>{i&&clearTimeout(i),r==null||r.close()};Qe(o),Mi(s)},t4=Object.prototype.toString;function n4(e){switch(t4.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Nr(e,Error)}}function Ls(e,t){return t4.call(e)===`[object ${t}]`}function Rg(e){return Ls(e,"ErrorEvent")}function K0(e){return Ls(e,"DOMError")}function xj(e){return Ls(e,"DOMException")}function cr(e){return Ls(e,"String")}function Og(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Mg(e){return e===null||Og(e)||typeof e!="object"&&typeof e!="function"}function vs(e){return Ls(e,"Object")}function Cf(e){return typeof Event<"u"&&Nr(e,Event)}function Aj(e){return typeof Element<"u"&&Nr(e,Element)}function Rj(e){return Ls(e,"RegExp")}function Tf(e){return!!(e&&e.then&&typeof e.then=="function")}function Oj(e){return vs(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function r4(e){return typeof e=="number"&&e!==e}function Nr(e,t){try{return e instanceof t}catch{return!1}}function i4(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function is(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Y0(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{i4(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Mj(e,t,n=!1){return cr(e)?Rj(t)?t.test(e):cr(t)?n?e===t:e.includes(t):!1:!1}function $s(e,t=[],n=!1){return t.some(r=>Mj(e,r,n))}function Dj(e,t,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!Nr(s.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Nj(Fp(e,t,i,s.originalException,r,o.exception.values,a,0),n))}function Fp(e,t,n,r,i,o,s,a){if(o.length>=n+1)return o;let c=[...o];if(Nr(r[i],Error)){J0(s,a);const l=e(t,r[i]),u=c.length;Z0(l,i,u,a),c=Fp(e,t,n,r[i],i,[l,...c],l,u)}return Array.isArray(r.errors)&&r.errors.forEach((l,u)=>{if(Nr(l,Error)){J0(s,a);const f=e(t,l),d=c.length;Z0(f,`errors[${u}]`,d,a),c=Fp(e,t,n,l,i,[f,...c],f,d)}}),c}function J0(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Z0(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Nj(e,t){return e.map(n=>(n.value&&(n.value=is(n.value,t)),n))}function nl(e){return e&&e.Math==Math?e:void 0}const Ne=typeof globalThis=="object"&&nl(globalThis)||typeof window=="object"&&nl(window)||typeof self=="object"&&nl(self)||typeof global=="object"&&nl(global)||function(){return this}()||{};function Dg(){return Ne}function o4(e,t,n){const r=n||Ne,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const os=Dg(),Pj=80;function Ii(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,s=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||Pj;for(;n&&o++<r&&(l=Lj(n,u),!(l==="html"||o>1&&s+i.length*c+l.length>=f));)i.push(l),s+=l.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function Lj(e,t){const n=e,r=[];let i,o,s,a,c;if(!n||!n.tagName)return"";if(os.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(l&&l.length)l.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&cr(i))for(o=i.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)s=u[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function $j(){try{return os.document.location.href}catch{return""}}function Fj(e){return os.document&&os.document.querySelector?os.document.querySelector(e):null}function s4(e){if(!os.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const Fs=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Bj="Sentry Logger ",Bp=["debug","info","warn","error","log","assert","trace"],gu={};function dr(e){if(!("console"in Ne))return e();const t=Ne.console,n={},r=Object.keys(gu);r.forEach(i=>
967{const o=gu[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Hj(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Fs?Bp.forEach(n=>{t[n]=(...r)=>{e&&dr(()=>{Ne.console[n](`${Bj}[${n}]:`,...r)})}}):Bp.forEach(n=>{t[n]=()=>{}}),t}const z=Hj(),jj=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Vj(e){return e==="http"||e==="https"}function Bs(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function Uj(e){const t=jj.exec(e);if(!t){dr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",o,s="",a]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const f=l.match(/^\d+/);f&&(l=f[0])}return a4({host:o,pass:i,path:c,projectId:l,port:s,protocol:n,publicKey:r})}function a4(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Wj(e){if(!Fs)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(z.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Vj(r)?t&&isNaN(parseInt(t,10))?(z.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(z.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(z.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function qj(e){const t=typeof e=="string"?Uj(e):a4(e);if(!(!t||!Wj(t)))return t}class tr extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Mt(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&c4(i,r),e[t]=i}function mo(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Fs&&z.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c4(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,mo(e,"__sentry_original__",t)}catch{}}function Ng(e){return e.__sentry_original__}function zj(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function l4(e){if(n4(e))return{message:e.message,name:e.name,stack:e.stack,...e_(e)};if(Cf(e)){const t={type:e.type,target:X0(e.target),currentTarget:X0(e.currentTarget),...e_(e)};return typeof CustomEvent<"u"&&Nr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function X0(e){try{return Aj(e)?Ii(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function e_(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Gj(e,t=40){const n=Object.keys(l4(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return is(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:is(i,t)}return""}function Zt(e){return Hp(e,new Map)}function Hp(e,t){if(Qj(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=Hp(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(Hp(i,t))}),r}return e}function Qj(e){if(!vs(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const u4=50,t_=/\(error: (.*)\)/,n_=/captureMessage|captureException/;function f4(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(` 968`);for(let s=r;s<o.length;s++){const a=o[s];if(a.length>1024)continue;const c=t_.test(a)?a.replace(t_,"$1"):a;if(!c.match(/\S*Error: /)){for(const l of t){const u=l(c);if(u){i.push(u);break}}if(i.length>=u4)break}}return Yj(i)}}function Kj(e){return Array.isArray(e)?f4(...e):e}function Yj(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),n_.test(t[t.length-1].function||"")&&(t.pop(),n_.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,u4).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const Wd="<anonymous>";function Pr(e){try{return!e||typeof e!="function"?Wd:e.name||Wd}catch{return Wd}}const Bl={},r_={};function bo(e,t){Bl[e]=Bl[e]||[],Bl[e].push(t)}function wo(e,t){r_[e]||(t(),r_[e]=!0)}function Hn(e,t){const n=e&&Bl[e];
968if(n)for(const r of n)try{r(t)}catch(i){Fs&&z.error(`Error while triggering instrumentation handler. 969Type: ${e} 970Name: ${Pr(r)} 971Error:`,i)}}function Jj(e){const t="console";bo(t,e),wo(t,Zj)}function Zj(){"console"in Ne&&Bp.forEach(function(e){e in Ne.console&&Mt(Ne.console,e,function(t){return gu[e]=t,function(...n){Hn("console",{args:n,level:e});const i=gu[e];i&&i.apply(Ne.console,n)}})})}function mt(){const e=Ne,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function d4(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function oi(e){const{message:t,event_id:n}=e;if(t)return t;const r=d4(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function jp(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function tc(e,t){const n=d4(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function i_(e){if(e&&e.__sentry_captured__)return!0;try{mo(e,"__sentry_captured__",!0)}catch{}return!1}function Pg(e){return Array.isArray(e)?e:[e]}const Po=Ne,Xj=1e3;let o_,Vp,Up;function h4(e){const t="dom";bo(t,e),wo(t,eV)}function eV(){if(!Po.document)return;const e=Hn.bind(null,"dom"),t=s_(e,!0);Po.document.addEventListener("click",t,!1),Po.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Po[n]&&Po[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Mt(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},u=l[o]=l[o]||{refCount:0};if(!u.handler){const f=s_(e);u.handler=f,i.call(this,o,f,a)}u.refCount++}catch{}return i.call(this,o,s,a)}}),Mt(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__||{},u=l[o];u&&(u.refCount--,u.refCount<=0&&(i.call(this,o,u.handler,a),u.handler=void 0,delete l[o]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function tV(e){if(e.type!==Vp)return!1;try{if(!e.target||e.target._sentryId!==Up)return!1}catch{}return!0}function nV(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function s_(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=rV(n);if(nV(n.type,r))return;mo(n,"_sentryCaptured",!0),r&&!r._sentryId&&mo(r,"_sentryId",mt());
971const i=n.type==="keypress"?"input":n.type;tV(n)||(e({event:n,name:i,global:t}),Vp=n.type,Up=r?r._sentryId:void 0),clearTimeout(o_),o_=Po.setTimeout(()=>{Up=void 0,Vp=void 0},Xj)}}function rV(e){try{return e.target}catch{return null}}const Wp=Dg();function p4(){if(!("fetch"in Wp))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function qp(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function iV(){if(typeof EdgeRuntime=="string")return!0;if(!p4())return!1;if(qp(Wp.fetch))return!0;let e=!1;const t=Wp.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=qp(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Fs&&z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Lg(e){const t="fetch";bo(t,e),wo(t,oV)}function oV(){iV()&&Mt(Ne,"fetch",function(e){return function(...t){const{method:n,url:r}=sV(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Hn("fetch",{...i}),e.apply(Ne,t).then(o=>{const s={...i,endTimestamp:Date.now(),response:o};return Hn("fetch",s),o},o=>{const s={...i,endTimestamp:Date.now(),error:o};throw Hn("fetch",s),o})}})}function zp(e,t){return!!e&&typeof e=="object"&&!!e[t]}function a_(e){return typeof e=="string"?e:e?zp(e,"url")?e.url:e.toString?e.toString():"":""}function sV(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:a_(n),method:zp(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:a_(t),method:zp(t,"method")?String(t.method).toUpperCase():"GET"}}let rl=null;function m4(e){const t="error";bo(t,e),wo(t,aV)}function aV(){rl=Ne.onerror,Ne.onerror=function(e,t,n,r,i){return Hn("error",{column:r,error:i,line:n,msg:e,url:t}),rl&&!rl.__SENTRY_LOADER__?rl.apply(this,arguments):!1},Ne.onerror.__SENTRY_INSTRUMENTED__=!0}let il=null;function g4(e){const t="unhandledrejection";bo(t,e),wo(t,cV)}function cV(){il=Ne.onunhandledrejection,Ne.onunhandledrejection=function(e){return Hn("unhandledrejection",e),il&&!il.__SENTRY_LOADER__?il.apply(this,arguments):!0},Ne.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const ol=Dg();function lV(){const e=ol.chrome,t=e&&e.app&&e.app.runtime,n="history"in ol&&!!ol.history.pushState&&!!ol.history.replaceState;return!t&&n}const ia=Ne;let sl;function If(e){const t="history";bo(t,e),wo(t,uV)}function uV(){if(!lV())return;const e=ia.onpopstate;ia.onpopstate=function(...n){const r=ia.location.href,i=sl;if(sl=r,Hn("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=sl,s=String(i);sl=s,Hn("history",{from:o,to:s})}return n.apply(this,r)}}Mt(ia.history,"pushState",t),Mt(ia.history,"replaceState",t)}const fV=Ne,ci="__sentry_xhr_v3__";function $g(e){const t="xhr";bo(t,e),wo(t,dV)}function dV(){if(!fV.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Mt(e,"open",function(t){return function(...n){const r=Date.now(),i=cr(n[0])?n[0].toUpperCase():void 0,o=hV(n[1]);if(!i||!o)return t.apply(this,n);this[ci]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const a=this[ci];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const c={args:[i,o],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Hn("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Mt(this,"onreadystatechange",function(a){return function(...c){return s(),a.apply(this,c)}}):this.addEventListener("readystatechange",s),Mt(this,"setRequestHeader",function(a){return function(...c){const[l,u]=c,f=this[ci];return f&&cr(l)&&cr(u)&&(f.request_headers[l.toLowerCase()]=u),a.apply(this,c)}}),t.apply(this,n)}}),Mt(e,"send",function(t){return function(...n){const r=this[ci];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Hn("xhr",i),t.apply(this,n)}})}function hV(e){if(cr(e))return e;try{return e.toString()}catch{}}function pV(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function mV(){return"npm"}function gV(){return!pV()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function c_(){return typeof window<"u"&&(!gV()||yV())}function yV(){return Ne.process!==void 0&&Ne.process.type==="renderer"}function vV(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function Xn(e,t=100,n=1/0){try{return Gp("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function y4(e,t=3,n=100*1024){const r=Xn(e,t);return SV(r)>n?y4(e,t-1,n):r}function Gp(e,t,n=1/0,r=1/0,i=vV()){const[o,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!r4(t))return t;const a=_V(e,t);if(!a.startsWith("[object "))return a;
971if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return Gp("",h,c-1,r,i)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const d=l4(t);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(f>=r){u[h]="[MaxProperties ~]";break}const p=d[h];u[h]=Gp(h,p,c-1,r,i),f++}return s(t),u}function _V(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(i4(t))return"[VueViewModel]";if(Oj(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Pr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=bV(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function bV(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function wV(e){return~-encodeURI(e).split(/%..|./).length}function SV(e){return wV(JSON.stringify(e))}var _r;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(_r||(_r={}));function _s(e){return new hn(t=>{t(e)})}function Fg(e){return new hn((t,n)=>{n(e)})}class hn{constructor(t){hn.prototype.__init.call(this),hn.prototype.__init2.call(this),hn.prototype.__init3.call(this),hn.prototype.__init4.call(this),this._state=_r.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new hn((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new hn((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,t&&t()},s=>{o=!0,i=s,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(_r.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(_r.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===_r.PENDING){if(Tf(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===_r.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===_r.RESOLVED&&n[1](this._value),this._state===_r.REJECTED&&n[2](this._value),n[0]=!0)})}}}function kV(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function i(s){if(!n())return Fg(new tr("Not adding Promise because buffer limit was reached."));const a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new hn((a,c)=>{let l=t.length;if(!l)return a(!0);const u=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(f=>{_s(f).then(()=>{--l||(clearTimeout(u),a(!0))},c)})})}return{$:t,add:i,drain:o}}function so(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const EV=["fatal","error","warning","log","info","debug"];function CV(e){return e==="warn"?"warning":EV.includes(e)?e:"log"}const v4=1e3;function wc(){return Date.now()/v4}function TV(){const{performance:e}=Ne;if(!e||!e.now)return wc;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/v4}const Hs=TV(),vn=(()=>{const{performance:e}=Ne;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,s=e.timing&&e.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,l=c<t;return o||l?i<=c?e.timeOrigin:s:r})(),Qp="baggage",_4="sentry-",IV=/^sentry-/,xV=8192;function AV(e){if(!cr(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,i)=>{const o=l_(i);for(const s of Object.keys(o))r[s]=o[s];return r},{});else{if(!e)return;t=l_(e)}const n=Object.entries(t).reduce((r,[i,o])=>{if(i.match(IV)){const s=i.slice(_4.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function b4(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${_4}${r}`]=i),n),{});return RV(t)}function l_(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function RV(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?o:`${t},${o}`;return s.length>xV?(Fs&&z.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const OV=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function MV(e){if(!e)return;const t=e.match(OV);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function DV(e,t){const n=MV(e),r=AV(t),{traceId:i,parentSpanId:o,parentSampled:s}=n||{};return n?{traceId:i||mt(),parentSpanId:o||mt().substring(16),spanId:mt().substring(16),sampled:s,dsc:r||{}}:{traceId:i||mt(),spanId:mt().substring(16)}}function Bg(e=mt(),t=mt().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Di(e,t=[]){return[e,t]}function NV(e,t){const[n,r]=e;return[n,[...r,t]]}function u_(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Kp(e,t){return(t||new TextEncoder).encode(e)}function PV(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(s){typeof i=="string"?i=typeof s=="string"?i+s:[Kp(i,t),s]:i.push(typeof s=="string"?Kp(s,t):s)}for(const s of r){const[a,c]=s;if(o(` 972${JSON.stringify(a)} 973`),typeof c=="string"||c instanceof Uint8Array)o(c);else{let l;try{l=JSON.stringify(c)}catch{l=JSON.stringify(Xn(c))}o(l)}}return typeof i=="string"?i:LV(i)}function LV(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}
973function $V(e,t){const n=typeof e.data=="string"?Kp(e.data,t):e.data;return[Zt({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const FV={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function f_(e){return FV[e]}function Hg(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function w4(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Bs(r)},...i&&{trace:Zt({...i})}}}function BV(e,t,n){const r=[{type:"client_report"},{timestamp:wc(),discarded_events:e}];return Di(t?{dsn:t}:{},[r])}const HV=60*1e3;function jV(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?HV:r-t}function VV(e,t){return e[t]||e.all||0}function S4(e,t,n=Date.now()){return VV(e,t)>n}function k4(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,u]=a.split(":",5),f=parseInt(c,10),d=(isNaN(f)?60:f)*1e3;if(!l)i.all=r+d;else for(const h of l.split(";"))h==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(i[h]=r+d):i[h]=r+d}else s?i.all=r+jV(s,r):t===429&&(i.all=r+60*1e3);return i}function UV(e,t){return e??t()}function qd(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}const be=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,xf="production";function jg(){return o4("globalEventProcessors",()=>[])}function WV(e){jg().push(e)}function yu(e,t,n,r=0){return new hn((i,o)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const a=s({...t},n);be&&s.id&&a===null&&z.log(`Event processor "${s.id}" dropped event`),Tf(a)?a.then(c=>yu(e,c,n,r+1).then(i)).then(null,o):yu(e,a,n,r+1).then(i).then(null,o)}})}function E4(e){const t=Hs(),n={sid:mt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>qV(n)};return e&&go(n,e),n}function go(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Hs(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:mt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function C4(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),go(e,n)}function qV(e){return Zt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const zV=0,T4=1;function Vg(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:s,tags:a,origin:c}=Pt(e);return Zt({data:r,op:i,parent_span_id:o,span_id:t,status:s,tags:a,trace_id:n,origin:c})}function Af(e){const{traceId:t,spanId:n}=e.spanContext(),r=Ug(e);return Bg(t,n,r)}function Rf(e){return typeof e=="number"?d_(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?d_(e.getTime()):Hs()}function d_(e){return e>9999999999?e/1e3:e}function Pt(e){return GV(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function GV(e){return typeof e.getSpanJSON=="function"}function Ug(e){const{traceFlags:t}=e.spanContext();return!!(t&T4)}function I4(e,t,n,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||mt(),timestamp:t.timestamp||wc()},l=n.integrations||e.integrations.map(y=>y.name);QV(c,e),JV(c,l),t.type===void 0&&KV(c,e.stackParser);
973const u=XV(r,n.captureContext);n.mechanism&&tc(c,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],d=dU().getScopeData();if(o){const y=o.getScopeData();g_(d,y)}if(u){const y=u.getScopeData();g_(d,y)}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),O4(c,d);const p=[...f,...jg(),...d.eventProcessors];return yu(p,c,n).then(y=>(y&&YV(y),typeof s=="number"&&s>0?ZV(y,s,a):y))}function QV(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:xf),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=is(e.message,o));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=is(s.value,o));const a=e.request;a&&a.url&&(a.url=is(a.url,o))}const h_=new WeakMap;function KV(e,t){const n=Ne._sentryDebugIds;if(!n)return;let r;const i=h_.get(t);i?r=i:(r=new Map,h_.set(t,r));const o=Object.keys(n).reduce((s,a)=>{let c;const l=r.get(a);l?c=l:(c=t(a),r.set(a,c));for(let u=c.length-1;u>=0;u--){const f=c[u];if(f.filename){s[f.filename]=n[a];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function YV(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function JV(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ZV(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Xn(i.data,t,n)}}))},...e.user&&{user:Xn(e.user,t,n)},...e.contexts&&{contexts:Xn(e.contexts,t,n)},...e.extra&&{extra:Xn(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Xn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const o=Pt(i).data;return o&&(i.data=Xn(o,t,n)),i})),r}function XV(e,t){if(!t)return e;const n=e?e.clone():new Rr;return n.update(t),n}function eU(e){if(e)return tU(e)?{captureContext:e}:rU(e)?{captureContext:e}:e}function tU(e){return e instanceof Rr||typeof e=="function"}const nU=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function rU(e){return Object.keys(e).some(t=>nU.includes(t))}function Sc(e,t){return Sn().captureException(e,eU(t))}function x4(e,t){return Sn().captureEvent(e,t)}function xi(e,t){Sn().addBreadcrumb(e,t)}function iU(e,t){Sn().setContext(e,t)}function oU(...e){const t=Sn();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Ze(){return Sn().getClient()}function cn(){return Sn().getScope()}function p_(e){const t=Ze(),n=Ni(),r=cn(),{release:i,environment:o=xf}=t&&t.getOptions()||{},{userAgent:s}=Ne.navigator||{},a=E4({release:i,environment:o,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&go(c,{status:"exited"}),A4(),n.setSession(a),r.setSession(a),a}function A4(){const e=Ni(),t=cn(),n=t.getSession()||e.getSession();n&&C4(n),R4(),e.setSession(),t.setSession()}function R4(){const e=Ni(),t=cn(),n=Ze(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function m_(e=!1){if(e){A4();return}R4()}function vu(e){return e.transaction}function Of(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},s=Zt({environment:r.environment||xf,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function bs(e){const t=Ze();if(!t)return{};const n=Of(Pt(e).trace_id||"",t,cn()),r=vu(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:s}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const a=Pt(r);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(Ug(r)),t.emit&&t.emit("createDsc",n),n}function O4(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;sU(e,t),r&&lU(e,r),uU(e,n),aU(e,i),cU(e,o)}function g_(e,t){const{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:d,transactionName:h,span:p}=t;oa(e,"extra",n),oa(e,"tags",r),oa(e,"user",i),oa(e,"contexts",o),oa(e,"sdkProcessingMetadata",a),s&&(e.level=s),h&&(e.transactionName=h),p&&(e.span=p),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}
973function oa(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function sU(e,t){const{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,c=Zt(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Zt(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Zt(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=Zt(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function aU(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function cU(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function lU(e,t){e.contexts={trace:Vg(t),...e.contexts};const n=vu(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:bs(t),...e.sdkProcessingMetadata};const r=Pt(n).description;r&&(e.tags={transaction:r,...e.tags})}}function uU(e,t){e.fingerprint=e.fingerprint?Pg(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const fU=100;let zd;class Rr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=y_()}static clone(t){return t?t.clone():new Rr}clone(){const t=new Rr;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&go(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof Rr){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(vs(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=y_(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:fU;if(r<=0)return this;const i={timestamp:wc(),...t},o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}
973getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:o,_user:s,_level:a,_fingerprint:c,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:f,_transactionName:d,_span:h}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:o,user:s,level:a,fingerprint:c||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:f,transactionName:d,span:h}}applyToEvent(t,n={},r=[]){O4(t,this.getScopeData());const i=[...r,...jg(),...this._eventProcessors];return yu(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:mt();if(!this._client)return z.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:mt();if(!this._client)return z.warn("No client configured on scope - will not capture message!"),i;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:mt();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(z.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function dU(){return zd||(zd=new Rr),zd}function y_(){return{traceId:mt(),spanId:mt().substring(16)}}const nc="7.120.3",M4=parseFloat(nc),hU=100;class D4{constructor(t,n,r,i=M4){this._version=i;let o;n?o=n:(o=new Rr,o.setClient(t));let s;r?s=r:(s=new Rr,s.setClient(t)),this._stack=[{scope:o}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(i){throw this.popScope(),i}return Tf(r)?r.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:mt(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:mt(),o=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:mt();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=hU}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const c={timestamp:wc(),...t},l=o?dr(()=>o(c,n)):c;l!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",l,n),r.addBreadcrumb(l,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}
973setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=v_(this);try{t(this)}finally{v_(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return be&&z.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return be&&!r&&(this.getClient()?z.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 974Sentry.addTracingExtensions(); 975Sentry.init({...}); 976`):z.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&C4(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=xf}=r&&r.getOptions()||{},{userAgent:s}=Ne.navigator||{},a=E4({release:i,environment:o,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&go(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=kc().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);be&&z.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function kc(){return Ne.__SENTRY__=Ne.__SENTRY__||{extensions:{},hub:void 0},Ne}function v_(e){const t=kc(),n=Yp(t);return N4(t,e),n}function Sn(){const e=kc();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return pU(e)}function Ni(){return Sn().getIsolationScope()}function pU(e=kc()){return(!mU(e)||Yp(e).isOlderThan(M4))&&N4(e,new D4),Yp(e)}function mU(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Yp(e){return o4("hub",()=>new D4,e)}function N4(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function yo(e){return Sn().getScope().getTransaction()}let __=!1;function gU(){__||(__=!0,m4(Jp),g4(Jp))}function Jp(){const e=yo();if(e){const t="internal_error";be&&z.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Jp.tag="sentry_tracingErrorCallback";var b_;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const o="not_found";e.NotFound=o;const s="resource_exhausted";e.ResourceExhausted=s;const a="invalid_argument";e.InvalidArgument=a;const c="unimplemented";e.Unimplemented=c;const l="unavailable";e.Unavailable=l;const u="internal_error";e.InternalError=u;const f="unknown_error";e.UnknownError=f;const d="cancelled";e.Cancelled=d;const h="already_exists";e.AlreadyExists=h;const p="failed_precondition";e.FailedPrecondition=p;const m="aborted";e.Aborted=m;const y="out_of_range";e.OutOfRange=y;const g="data_loss";e.DataLoss=g})(b_||(b_={}));function yU(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Wg(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=yU(t);n!=="unknown_error"&&e.setStatus(n)}function So(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ze(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function _u(e){if(!So())return;const t=_U(e),n=Sn(),r=e.scope?e.scope.getSpan():Zp();if(e.onlyIfParent&&!r)return;const s=(e.scope||cn()).clone();return vU(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function Zp(){return cn().getSpan()}function vU(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!So())return;const o=Ni();let s;if(t&&!r)s=t.startChild(n);else if(t){const a=bs(t),{traceId:c,spanId:l}=t.spanContext(),u=Ug(t);s=e.startTransaction({traceId:c,parentSpanId:l,parentSampled:u,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{const{traceId:a,dsc:c,parentSpanId:l,sampled:u}={...o.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:a,parentSpanId:l,parentSampled:u,...n,metadata:{dynamicSamplingContext:c,...n.metadata}})}return i.setSpan(s),bU(s,i,o),s}function _U(e){if(e.startTime){const t={...e};return t.startTimestamp=Rf(e.startTime),delete t.startTime,t}return e}const P4="_sentryScope",L4="_sentryIsolationScope";function bU(e,t,n){e&&(mo(e,L4,n),mo(e,P4,t))}function wU(e){return{scope:e[P4],isolationScope:e[L4]}}const jn="sentry.source",Vo="sentry.sample_rate",al="sentry.op",Tr="sentry.origin",SU="profile_id";class $4{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Mf{constructor(t={}){this._traceId=t.traceId||mt(),this._spanId=t.spanId||mt().substring(16),this._startTime=t.startTimestamp||Hs(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[Tr]:t.origin||"manual",[al]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[al]}
976set op(t){this.setAttribute(al,t)}get origin(){return this._attributes[Tr]}set origin(t){this.setAttribute(Tr,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?T4:zV}}startChild(t){const n=new Mf({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=vu(this);if(n.transaction=r,be&&r){const i=t&&t.op||"< unknown op >",o=Pt(n).description||"< unknown name >",s=r.spanContext().spanId,a=`[Tracing] Starting '${i}' span on transaction '${o}' (${s}).`;z.log(a),this._logMessage=a}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Wg(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=vu(this);if(be&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&z.log(r.replace("Starting","Finishing"))}this._endTime=Rf(t)}toTraceparent(){return Af(this)}toContext(){return Zt({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return Vg(this)}getSpanJSON(){return Zt({data:this._getData(),description:this._name,op:this._attributes[al],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Tr],_metrics_summary:void 0,profile_id:this._attributes[SU],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class F4 extends Mf{constructor(t,n){super(t),this._contexts={},this._hub=n||Sn(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[jn]&&{source:this._attributes[jn]},...this._attributes[Vo]&&{sampleRate:this._attributes[Vo]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(jn,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new $4(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=Rf(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Zt({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return bs(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(be&&z.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){be&&z.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(u=>u!==this&&Pt(u).timestamp):[];if(this._trimEnd&&r.length>0){const u=r.map(f=>
976Pt(f).timestamp).filter(Boolean);this._endTime=u.reduce((f,d)=>f>d?f:d)}const{scope:i,isolationScope:o}=wU(this),{metadata:s}=this,{source:a}=s,c={contexts:{...this._contexts,trace:Vg(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:o,...Zt({dynamicSamplingContext:bs(this)})},_metrics_summary:void 0,...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(be&&z.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),be&&z.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const Hl={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},kU="finishReason",Ao=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class EU extends $4{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Pt(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class CU extends F4{constructor(t,n,r=Hl.idleTimeout,i=Hl.finalTimeout,o=Hl.heartbeatInterval,s=!1,a=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=o,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Ao[4],this._autoFinishAllowed=!a,s&&(be&&z.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Ao[3],this.end())},this._finalTimeout)}end(t){const n=Rf(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(kU,this._finishReason),this.spanRecorder){be&&z.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Pt(r).timestamp||(r.setStatus("cancelled"),r.end(n),be&&z.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:o}=Pt(r),s=i&&i<n,a=(this._finalTimeout+this._idleTimeout)/1e3,c=o&&i&&o-i<a;if(be){const l=JSON.stringify(r,void 0,2);s?c||z.log("[Tracing] discarding Span since it finished after Transaction final timeout",l):z.log("[Tracing] discarding Span since it happened after Transaction was finished",l)}return s&&c}),be&&z.log("[Tracing] flushing IdleTransaction")}else be&&z.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=i=>{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new EU(n,r,this.spanContext().spanId,t),be&&z.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Ao[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(be&&z.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Ao[1],this.end(t))},this._idleTimeout)}
976_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),be&&z.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,be&&z.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(be&&z.log(`[Tracing] popActivity ${t}`),delete this.activities[t],be&&z.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Hs();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Ao[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(be&&z.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Ao[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){be&&z.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function B4(e,t,n){if(!So(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Vo,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Vo,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Vo,Number(r))):(r=1,e.setAttribute(Vo,r)),H4(r)?r?(e.sampled=Math.random()<r,e.sampled?(be&&z.log(`[Tracing] starting ${e.op} transaction - ${Pt(e).description}`),e):(be&&z.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(be&&z.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(be&&z.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function H4(e){return r4(e)||!(typeof e=="number"||typeof e=="boolean")?(be&&z.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(be&&z.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function TU(){const t=this.getScope().getSpan();return t?{"sentry-trace":Af(t)}:{}}function IU(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(be&&z.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter. 977The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new F4(e,this);return s=B4(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function w_(e,t,n,r,i,o,s,a=!1){const c=e.getClient(),l=c&&c.getOptions()||{};let u=new CU(t,e,n,r,s,i,a);return u=B4(u,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...o}),u.isRecording()&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",u),u}function xU(){const e=kc();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=IU),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=TU),gU())}function AU(e,t,n){const r=yo();r&&r.setMeasurement(e,t,n)}function RU(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function OU(e,t,n,r){const i=Hg(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Bs(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Di(o,[s])}function MU(e,t,n,r){const i=Hg(n),o=e.type&&e.type!=="replay_event"?e.type:"event";RU(e,n&&n.sdk);const s=w4(e,i,r,t);return delete e.sdkProcessingMetadata,Di(s,[[{type:o},e]])}const DU="7";function NU(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function PU(e){return`${NU(e)}${e.projectId}/envelope/`}function LU(e,t){return zj({sentry_key:e.publicKey,sentry_version:DU,...t&&{sentry_client:`${t.name}/${t.version}`}})}function $U(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${PU(e)}?${LU(e,r)}`}const S_=[];function FU(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];
977i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function BU(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Pg(n(t)):r=t;const i=FU(r),o=jU(i,s=>s.name==="Debug");if(o!==-1){const[s]=i.splice(o,1);i.push(s)}return i}function HU(e,t){const n={};return t.forEach(r=>{r&&j4(e,r,n)}),n}function k_(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function j4(e,t,n){if(n[t.name]){be&&z.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,S_.indexOf(t.name)===-1&&(t.setupOnce(WV,Sn),S_.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((o,s)=>r(o,s,e),{id:t.name});e.addEventProcessor(i)}be&&z.log(`Integration installed: ${t.name}`)}function jU(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function jr(e,t){return Object.assign(function(...r){return t(...r)},{id:e})}function VU(e){let t="";for(const n of e){const r=Object.entries(n.tags),i=r.length>0?`|#${r.map(([o,s])=>`${o}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} 978`}return t}function UU(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=Bs(t));const o=WU(e);return Di(i,[o])}function WU(e){const t=VU(e);return[{type:"statsd",length:t.length},t]}const E_="Not capturing exception because it's already been captured.";class qU{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=qj(t.dsn):be&&z.warn("No DSN provided, client will not send events."),this._dsn){const n=$U(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(i_(t)){be&&z.log(E_);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const s=Og(t)?t:String(t),a=Mg(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(a.then(c=>this._captureEvent(c,r,i)).then(c=>{o=c})),o}captureEvent(t,n,r){if(n&&n.originalException&&i_(n.originalException)){be&&z.log(E_);return}let i=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(a=>{i=a})),i}captureSession(t){typeof t.release!="string"?be&&z.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),go(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):_s(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return be&&z.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];j4(this,t,this._integrations),n||k_(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=MU(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=NV(r,$V(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>
978this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=OU(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,o=`${t}:${n}`;be&&z.log(`Recording outcome: "${o}"${i>1?` (${i} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+i}}captureAggregateMetrics(t){be&&z.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=UU(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=HU(this,t),k_(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const c of o){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(go(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new hn(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=Ni()){const o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),I4(o,t,n,r,this,i).then(a=>{if(a===null)return a;const c={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){const{traceId:u,spanId:f,parentSpanId:d,dsc:h}=c;a.contexts={trace:{trace_id:u,span_id:f,parent_span_id:d},...a.contexts};const p=h||Of(u,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:p,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(be){const o=i;o.logLevel==="log"?z.log(o.message):z.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i,s=U4(t),a=V4(t),c=t.type||"error",l=`before send for type \`${c}\``;if(a&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),Fg(new tr(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u=c==="replay_event"?"replay":c,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,d).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",u,t),new tr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const m=GU(i,h,n);return zU(m,l)}).then(h=>{if(h===null){if(this.recordDroppedEvent("before_send",u,t),s){const g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw new tr(`${l} returned \`null\`, will not send event.`,"log")}const p=r&&r.getSession();if(!s&&p&&this._updateSessionFromEvent(p,h),s){const y=h.sdkProcessingMetadata&&h.sdkProcessingMetadata.spanCountBeforeProcessing||0,g=h.spans?h.spans.length:0,_=y-g;_>0&&this.recordDroppedEvent("before_send","span",_)}const m=h.transaction_info;if(s&&m&&h.transaction!==t.transaction){const y="custom";h.transaction_info={...m,source:y}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof tr?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new tr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 979Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{be&&z.error("Error while sending event:",n)});be&&z.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function zU(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Tf(e))return e.then(r=>{if(!vs(r)&&r!==null)throw new tr(n);return r},r=>{throw new tr(`${t} rejected with ${r}`)});if(!vs(e)&&e!==null)throw new tr(n);return e}function GU(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(V4(t)&&r)return r(t,n);if(U4(t)&&i){if(t.spans){const o=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:o}}return i(t,n)}return t}function V4(e){return e.type===void 0}function U4(e){return e.type==="transaction"}function QU(e){const t=Ze();!t||!t.addEventProcessor||t.addEventProcessor(e)}function KU(e,t){t.debug===!0&&(be?z.enable():dr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),cn().update(t.initialScope);const r=new e(t);YU(r),JU(r)}function YU(e){const n=Sn().getStackTop();n.client=e,n.scope.setClient(e)}
979function JU(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const ZU=30;function W4(e,t,n=kV(e.bufferSize||ZU)){let r={};const i=s=>n.drain(s);function o(s){const a=[];if(u_(s,(f,d)=>{const h=f_(d);if(S4(r,h)){const p=C_(f,d);e.recordDroppedEvent("ratelimit_backoff",h,p)}else a.push(f)}),a.length===0)return _s();const c=Di(s[0],a),l=f=>{u_(c,(d,h)=>{const p=C_(d,h);e.recordDroppedEvent(f,f_(h),p)})},u=()=>t({body:PV(c,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&be&&z.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=k4(r,f),f),f=>{throw l("network_error"),f});return n.add(u).then(f=>f,f=>{if(f instanceof tr)return be&&z.error("Skipped sending event because buffer is full."),l("queue_overflow"),_s();throw f})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function C_(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function XU(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=Bs(t));const r=e.map(eW);return Di(n,r)}function eW(e){return[{type:"span"},e]}function tW(e,t){const n=t&&iW(t)?t.getClient():t,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return rW(e,r)||nW(e,i)}function nW(e,t){return t?T_(e)===T_(t):!1}function rW(e,t){return t?e.includes(t.host):!1}function T_(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function iW(e){return e.getClient!==void 0}function oW(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:nc})),version:nc}),e._metadata=i}const sW=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],aW=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],q4="InboundFilters",cW=(e={})=>({name:q4,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=lW(e,i);return uW(t,o)?null:t}}),z4=cW;jr(q4,z4);function lW(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:sW],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:aW],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function uW(e,t){return t.ignoreInternal&&gW(e)?(be&&z.warn(`Event dropped due to being internal Sentry Error. 980Event: ${oi(e)}`),!0):fW(e,t.ignoreErrors)?(be&&z.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 981Event: ${oi(e)}`),!0):dW(e,t.ignoreTransactions)?(be&&z.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 982Event: ${oi(e)}`),!0):hW(e,t.denyUrls)?(be&&z.warn(`Event dropped due to being matched by \`denyUrls\` option. 983Event: ${oi(e)}. 984Url: ${bu(e)}`),!0):pW(e,t.allowUrls)?!1:(be&&z.warn(`Event dropped due to not being matched by \`allowUrls\` option. 985Event: ${oi(e)}. 986Url: ${bu(e)}`),!0)}function fW(e,t){return e.type||!t||!t.length?!1:mW(e).some(n=>$s(n,t))}function dW(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?$s(n,t):!1}function hW(e,t){if(!t||!t.length)return!1;const n=bu(e);return n?$s(n,t):!1}function pW(e,t){if(!t||!t.length)return!0;const n=bu(e);return n?$s(n,t):!0}function mW(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),be&&t.length===0&&z.error(`Could not extract message for event ${oi(e)}`),t}function gW(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function yW(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function bu(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?yW(t):null}catch{return be&&z.error(`Cannot extract url for event ${oi(e)}`),null}}let I_;
986const G4="FunctionToString",x_=new WeakMap,vW=()=>({name:G4,setupOnce(){I_=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ng(this),n=x_.has(Ze())&&t!==void 0?t:this;return I_.apply(n,e)}}catch{}},setup(e){x_.set(e,!0)}}),Q4=vW;jr(G4,Q4);const st=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ie=Ne;function _W(){Ie.document?Ie.document.addEventListener("visibilitychange",()=>{const e=yo();if(Ie.document.hidden&&e){const t="cancelled",{op:n,status:r}=Pt(e);st&&z.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):st&&z.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Ec=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},bW=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,wW=()=>{const e=Ie.performance.timing,t=Ie.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},Df=()=>Ie.__WEB_VITALS_POLYFILL__?Ie.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||wW()):Ie.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],qg=()=>{const e=Df();return e&&e.activationStart||0},Cc=(e,t)=>{const n=Df();let r="navigate";return n&&(Ie.document&&Ie.document.prerendering||qg()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:bW(),navigationType:r}},js=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Tc=(e,t)=>{const n=r=>{(r.type==="pagehide"||Ie.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Ie.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},SW=(e,t={})=>{const n=Cc("CLS",0);let r,i=0,o=[];const s=c=>{c.forEach(l=>{if(!l.hadRecentInput){const u=o[0],f=o[o.length-1];i&&o.length!==0&&l.startTime-f.startTime<1e3&&l.startTime-u.startTime<5e3?(i+=l.value,o.push(l)):(i=l.value,o=[l]),i>n.value&&(n.value=i,n.entries=o,r&&r())}})},a=js("layout-shift",s);if(a){r=Ec(e,n,t.reportAllChanges);const c=()=>{s(a.takeRecords()),r(!0)};return Tc(c),c}};let wu=-1;const kW=()=>{Ie.document&&Ie.document.visibilityState&&(wu=Ie.document.visibilityState==="hidden"&&!Ie.document.prerendering?0:1/0)},EW=()=>{Tc(({timeStamp:e})=>{wu=e},!0)},zg=()=>(wu<0&&(kW(),EW()),{get firstHiddenTime(){return wu}}),CW=e=>{const t=zg(),n=Cc("FID");let r;const i=a=>{a.startTime<t.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},o=a=>{a.forEach(i)},s=js("first-input",o);r=Ec(e,n),s&&Tc(()=>{o(s.takeRecords()),s.disconnect()},!0)};let K4=0,Gd=1/0,cl=0;const TW=e=>{e.forEach(t=>{t.interactionId&&(Gd=Math.min(Gd,t.interactionId),cl=Math.max(cl,t.interactionId),K4=cl?(cl-Gd)/7+1:0)})};let Xp;const IW=()=>Xp?K4:performance.interactionCount||0,xW=()=>{"interactionCount"in performance||Xp||(Xp=js("event",TW,{type:"event",buffered:!0,durationThreshold:0}))},Y4=()=>IW(),A_=10,br=[],Qd={},R_=e=>{const t=br[br.length-1],n=Qd[e.interactionId];if(n||br.length<A_||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};Qd[r.id]=r,br.push(r)}br.sort((r,i)=>i.latency-r.latency),br.splice(A_).forEach(r=>{delete Qd[r.id]})}},AW=()=>{const e=Math.min(br.length-1,Math.floor(Y4()/50));return br[e]},RW=(e,t)=>{t=t||{},xW();const n=Cc("INP");let r;const i=s=>{s.forEach(c=>{c.interactionId&&R_(c),c.entryType==="first-input"&&!br.some(u=>u.entries.some(f=>c.duration===f.duration&&c.startTime===f.startTime))&&R_(c)});const a=AW();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},o=js("event",i,{durationThreshold:t.durationThreshold||40});r=Ec(e,n,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Tc(()=>{i(o.takeRecords()),n.value<0&&Y4()>0&&(n.value=0,n.entries=[]),r(!0)}))},O_={},OW=e=>{const t=zg(),n=Cc("LCP");let r;const i=s=>{const a=s[s.length-1];if(a){const c=Math.max(a.startTime-qg(),0);c<t.firstHiddenTime&&(n.value=c,n.entries=[a],r())}},o=js("largest-contentful-paint",i);if(o){r=Ec(e,n);const s=()=>{O_[n.id]||(i(o.takeRecords()),o.disconnect(),O_[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{Ie.document&&addEventListener(a,s,{once:!0,capture:!0})}),Tc(s,!0),s}},em=e=>{Ie.document&&(Ie.document.prerendering?addEventListener("prerenderingchange",()=>
986em(e),!0):Ie.document.readyState!=="complete"?addEventListener("load",()=>em(e),!0):setTimeout(e,0))},MW=(e,t)=>{t=t||{};const n=Cc("TTFB"),r=Ec(e,n,t.reportAllChanges);em(()=>{const i=Df();if(i){if(n.value=Math.max(i.responseStart-qg(),0),n.value<0||n.value>performance.now())return;n.entries=[i],r(!0)}})},Ra={},Su={};let J4,Z4,X4,ek,tk;function DW(e,t=!1){return Ic("cls",e,$W,J4,t)}function nk(e,t=!1){return Ic("lcp",e,BW,X4,t)}function NW(e){return Ic("ttfb",e,HW,ek)}function PW(e){return Ic("fid",e,FW,Z4)}function LW(e){return Ic("inp",e,jW,tk)}function ws(e,t){return rk(e,t),Su[e]||(VW(e),Su[e]=!0),ik(e,t)}function Vs(e,t){const n=Ra[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){st&&z.error(`Error while triggering instrumentation handler. 987Type: ${e} 988Name: ${Pr(r)} 989Error:`,i)}}function $W(){return SW(e=>{Vs("cls",{metric:e}),J4=e},{reportAllChanges:!0})}function FW(){return CW(e=>{Vs("fid",{metric:e}),Z4=e})}function BW(){return OW(e=>{Vs("lcp",{metric:e}),X4=e})}function HW(){return MW(e=>{Vs("ttfb",{metric:e}),ek=e})}function jW(){return RW(e=>{Vs("inp",{metric:e}),tk=e})}function Ic(e,t,n,r,i=!1){rk(e,t);let o;return Su[e]||(o=n(),Su[e]=!0),r&&t({metric:r}),ik(e,t,i?o:void 0)}function VW(e){const t={};e==="event"&&(t.durationThreshold=0),js(e,n=>{Vs(e,{entries:n})},t)}function rk(e,t){Ra[e]=Ra[e]||[],Ra[e].push(t)}function ik(e,t,n){return()=>{n&&n();const r=Ra[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Kd(e){return typeof e=="number"&&isFinite(e)}function Ss(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const UW=2147483647;function Ct(e){return e/1e3}function Gg(){return Ie&&Ie.addEventListener&&Ie.performance}let M_=0,pt={},Yn,Oa;function WW(){const e=Gg();if(e&&vn){e.mark&&Ie.performance.mark("sentry-tracing-init");const t=YW(),n=QW(),r=KW(),i=JW();return()=>{t(),n(),r(),i()}}return()=>{}}function qW(){ws("longtask",({entries:e})=>{for(const t of e){const n=yo();if(!n)return;const r=Ct(vn+t.startTime),i=Ct(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function zW(){ws("event",({entries:e})=>{for(const t of e){const n=yo();if(!n)return;if(t.name==="click"){const r=Ct(vn+t.startTime),i=Ct(t.duration),o={description:Ii(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=s4(t.target);s&&(o.attributes={"ui.component_name":s}),n.startChild(o)}}})}function GW(e,t){if(Gg()&&vn){const r=ZW(e,t);return()=>{r()}}return()=>{}}function QW(){return DW(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(st&&z.log("[Measurements] Adding CLS"),pt.cls={value:e.value,unit:""},Oa=t)},!0)}function KW(){return nk(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(st&&z.log("[Measurements] Adding LCP"),pt.lcp={value:e.value,unit:"millisecond"},Yn=t)},!0)}function YW(){return PW(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ct(vn),r=Ct(t.startTime);st&&z.log("[Measurements] Adding FID"),pt.fid={value:e.value,unit:"millisecond"},pt["mark.fid"]={value:n+r,unit:"second"}})}function JW(){return NW(({metric:e})=>{e.entries[e.entries.length-1]&&(st&&z.log("[Measurements] Adding TTFB"),pt.ttfb={value:e.value,unit:"millisecond"})})}const D_={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ZW(e,t){return LW(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(v=>v.duration===n.value&&D_[v.name]!==void 0),i=Ze();if(!r||!i)return;const o=D_[r.name],s=i.getOptions(),a=Ct(vn+r.startTime),c=Ct(n.value),l=r.interactionId!==void 0?e[r.interactionId]:void 0;if(l===void 0)return;const{routeName:u,parentContext:f,activeTransaction:d,user:h,replayId:p}=l,m=h!==void 0?h.email||h.id||h.ip_address:void 0,y=d!==void 0?d.getProfileId():void 0,g=new Mf({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${o}`,name:Ii(r.target),attributes:{release:s.release,environment:s.environment,transaction:u,...m!==void 0&&m!==""?{user:m}:{},...y!==void 0?{profile_id:y}:{},...p!==void 0?{replay_id:p}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),_=aq(f,s,t);if(_&&Math.random()<_){const v=g?XU([g],i.getDsn()):void 0,b=i&&i.getTransport();b&&v&&b.send(v).then(null,w=>{st&&z.error("Error while sending interaction:",w)});return}})}function XW(e){const t=Gg();if(!t||!Ie.performance.getEntries||!vn)return;st&&z.log("[Tracing] Adding & adjusting spans using Performance API");const n=Ct(vn),r=t.getEntries(),{op:i,start_timestamp:o}=Pt(e);if(r.slice(M_).forEach(s=>{const a=Ct(s.startTime),c=Ct(s.duration);if(!(e.op==="navigation"&&o&&n+a<o))switch(s.entryType){case"navigation":{tq(e,s,n);break}case"mark":case"paint":case"measure":{eq(e,s,a,c,n);const l=zg(),u=s.startTime<l.firstHiddenTime;s.name==="first-paint"&&u&&(st&&z.log("[Measurements] Adding FP"),pt.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&u&&(st&&z.log("[Measurements] Adding FCP"),pt.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{rq(e,s,s.name,a,c,n);break}}}),M_=Math.max(r.length-1,0),iq(e),i==="pageload"){sq(pt),["fcp","fp","lcp"].forEach(a=>{if(!pt[a]||!o||n>=o)return;const c=pt[a].value,l=n+Ct(c),u=Math.abs((l-o)*1e3),f=u-c;st&&z.log(`[Measurements] Normalized ${a} from ${c} to ${u} (${f})`),pt[a].value=u});const s=pt["mark.fid"];s&&pt.fid&&(Ss(e,{description:"first input delay",endTimestamp:s.value+Ct(pt.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete pt["mark.fid"]),"fcp"in pt||delete pt.cls,Object.keys(pt).forEach(a=>{AU(a,pt[a].value,pt[a].unit)}),oq(e)}Yn=void 0,Oa=void 0,pt={}}function eq(e,t,n,r,i){const o=i+n,s=o+r;return Ss(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o}),o}function tq(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ll(e,t,r,n)}),ll(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ll(e,t,"fetch",n,"cache","domainLookupStart"),ll(e,t,"domainLookup",n,"DNS"),nq(e,t,n)}function ll(e,t,n,r,i,o){const s=o?t[o]:t[`${n}End`],a=t[`${n}Start`];!a||!s||Ss(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+Ct(a),endTimestamp:r+Ct(s)})}function nq(e,t,n){t.responseEnd&&(Ss(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Ct(t.requestStart),endTimestamp:n+Ct(t.responseEnd)}),Ss(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Ct(t.responseStart),endTimestamp:n+Ct(t.responseEnd)}))}function rq(e,t,n,r,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=so(n),a={};Yd(a,t,"transferSize","http.response_transfer_size"),Yd(a,t,"encodedBodySize","http.response_content_length"),Yd(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(Ie.location.origin);const c=o+r,l=c+i;Ss(e,{description:n.replace(Ie.location.origin,""),endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}function iq(e){const t=Ie.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Kd(n.rtt)&&(pt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Kd(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Kd(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function oq(e){Yn&&(st&&z.log("[Measurements] Adding LCP Data"),Yn.element&&e.setTag("lcp.element",Ii(Yn.element)),Yn.id&&e.setTag("lcp.id",Yn.id),Yn.url&&e.setTag("lcp.url",Yn.url.trim().slice(0,200)),e.setTag("lcp.size",Yn.size)),Oa&&Oa.sources&&(st&&z.log("[Measurements] Adding CLS Data"),Oa.sources.forEac
989h((t,n)=>e.setTag(`cls.source.${n+1}`,Ii(t.node))))}function Yd(e,t,n,r){const i=t[n];i!=null&&i<UW&&(e[r]=i)}function sq(e){const t=Df();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(st&&z.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function aq(e,t,n){if(!So(t))return!1;let r;return e!==void 0&&typeof t.tracesSampler=="function"?r=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Ie.location}):e!==void 0&&e.sampled!==void 0?r=e.sampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1,H4(r)?r===!0?n:r===!1?0:r*n:(st&&z.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function cq(e,t,n,r,i="auto.http.browser"){if(!So()||!e.fetchData)return;const o=t(e.fetchData.url);if(e.endTimestamp&&o){const h=e.fetchData.__span;if(!h)return;const p=r[h];p&&(fq(p,e),delete r[h]);return}const s=cn(),a=Ze(),{method:c,url:l}=e.fetchData,u=uq(l),f=u?so(u).host:void 0,d=o?_u({name:`${c} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":c,"http.url":u,"server.address":f,[Tr]:i},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d),n(e.fetchData.url)&&a){const h=e.args[0];e.args[1]=e.args[1]||{};const p=e.args[1];p.headers=lq(h,a,s,p,d)}return d}function lq(e,t,n,r,i){const o=i||n.getSpan(),s=Ni(),{traceId:a,spanId:c,sampled:l,dsc:u}={...s.getPropagationContext(),...n.getPropagationContext()},f=o?Af(o):Bg(a,c,l),d=b4(u||(o?bs(o):Of(a,t,n))),h=r.headers||(typeof Request<"u"&&Nr(e,Request)?e.headers:void 0);if(h)if(typeof Headers<"u"&&Nr(h,Headers)){const p=new Headers(h);return p.append("sentry-trace",f),d&&p.append(Qp,d),p}else if(Array.isArray(h)){const p=[...h,["sentry-trace",f]];return d&&p.push([Qp,d]),p}else{const p="baggage"in h?h.baggage:void 0,m=[];return Array.isArray(p)?m.push(...p):p&&m.push(p),d&&m.push(d),{...h,"sentry-trace":f,baggage:m.length>0?m.join(","):void 0}}else return{"sentry-trace":f,baggage:d}}function uq(e){try{return new URL(e).href}catch{return}}function fq(e,t){if(t.response){Wg(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const tm=["localhost",/^\/(?!\/)/],nm={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:tm,tracePropagationTargets:tm};function dq(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s}={traceFetch:nm.traceFetch,traceXHR:nm.traceXHR,...e},a=typeof o=="function"?o:u=>!0,c=u=>gq(u,r||i),l={};t&&Lg(u=>{const f=cq(u,a,c,l);if(f){const d=ok(u.fetchData.url),h=d?so(d).host:void 0;f.setAttributes({"http.url":d,"server.address":h})}s&&f&&N_(f)}),n&&$g(u=>{const f=yq(u,a,c,l);s&&f&&N_(f)})}function hq(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function N_(e){const{url:t}=Pt(e).data||{};if(!t||typeof t!="string")return;const n=ws("resource",({entries:r})=>{r.forEach(i=>{hq(i)&&i.name.endsWith(t)&&(mq(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function pq(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function Qn(e=0){return((vn||performance.timeOrigin)+e)/1e3}function mq(e){const{name:t,version:n}=pq(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),vn?[...r,["http.request.redirect_start",Qn(e.redirectStart)],["http.request.fetch_start",Qn(e.fetchStart)],["http.request.domain_lookup_start",Qn(e.domainLookupStart)],["http.request.domain_lookup_end",Qn(e.domainLookupEnd)],["http.request.connect_start",Qn(e.connectStart)],["http.request.secure_connection_start",Qn(e.secureConnectionStart)],["http.request.connection_end",Qn(e.connectEnd)],["http.request.request_start",Qn(e.requestStart)],["http.request.response_start",Qn(e.responseStart)],["http.request.response_end",Qn(e.responseEnd)]]:r}function gq(e,t){return $s(e,t||tm)}function yq(e,t,n,r){const i=e.xhr,o=i&&i[ci];if(!So()||!i||i.__sentry_own_request__||!o)return;const s=t(o.url);if(e.endTimestamp&&s){const h=i.__sentry_xhr_span_id__;if(!h)return;const p=r[h];p&&o.status_code!==void 0&&(Wg(p,o.status_code),p.end(),delete r[h]);return}const a=cn(),c=Ni(),l=ok(o.url),u=l?so(l).host:void 0,f=s?_u({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":l,url:o.url,"server.address":u,[Tr]:"auto.http.browser"},op:"http.client"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f);const d=Ze();if(i.setRequestHeader&&n(o.url)&&d){const{traceId:h,spanId:p,sampled:m,dsc:y}={...c.getPropagationContext(),...a.getPropagationContext()},g=f?Af(f):Bg(h,p,m),_=b4(y||(f?bs(f):Of(h,d,a)));vq(i,g,_)}return f}function vq(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Qp,n)}catch{}}function ok(e){try{return new URL(e,Ie.location.origin).href}catch{return}}
989function _q(e,t=!0,n=!0){if(!Ie||!Ie.location){st&&z.warn("Could not initialize routing instrumentation due to invalid location");return}let r=Ie.location.href,i;t&&(i=e({name:Ie.location.pathname,startTimestamp:vn?vn/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&If(({to:o,from:s})=>{if(s===void 0&&r&&r.indexOf(o)!==-1){r=void 0;return}s!==o&&(r=void 0,i&&(st&&z.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:Ie.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const bq="BrowserTracing",wq={...Hl,markBackgroundTransactions:!0,routingInstrumentation:_q,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...nm},P_=10;class Sq{constructor(t){this.name=bq,this._hasSetTracePropagationTargets=!1,xU(),st&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...wq,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=WW(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&GW(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&qW(),this.options._experiments.enableInteractions&&zW(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),o=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:a,startTransactionOnPageLoad:c,markBackgroundTransactions:l,traceFetch:u,traceXHR:f,shouldCreateSpanForRequest:d,enableHTTPTimings:h,_experiments:p}=this.options,m=o&&o.tracePropagationTargets,y=m||this.options.tracePropagationTargets;st&&this._hasSetTracePropagationTargets&&m&&z.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(g=>{const _=this._createRouteTransaction(g);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(_,g,n),_},c,a),l&&_W(),p.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),dq({traceFetch:u,traceXHR:f,tracePropagationTargets:y,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}_createRouteTransaction(t){if(!this._getCurrentHub){st&&z.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:o,heartbeatInterval:s}=this.options,a=t.op==="pageload";let c;if(a){const h=a?L_("sentry-trace"):"",p=a?L_("baggage"):void 0,{traceId:m,dsc:y,parentSpanId:g,sampled:_}=DV(h,p);c={traceId:m,parentSpanId:g,parentSampled:_,...t,metadata:{...t.metadata,dynamicSamplingContext:y},trimEnd:!0}}else c={trimEnd:!0,...t};const l=typeof r=="function"?r(c):c,u=l===void 0?{...c,sampled:!1}:l;u.metadata=u.name!==c.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,u.sampled===!1&&st&&z.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),st&&z.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:f}=Ie,d=w_(n,u,i,o,!0,{location:f},s,a);return a&&Ie.document&&(Ie.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Ie.document.readyState)&&d.sendAutoFinishSignal()}),["interactive","complete"].includes(Ie.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(h=>{this._collectWebVitals(),XW(h)}),d}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,s="ui.action.click",a=yo();if(a&&a.op&&["navigation","pageload"].includes(a.op)){st&&z.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){st&&z.warn(`[Tracing] Did not create ${s}
989 transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){st&&z.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const c=this._getCurrentHub(),{location:l}=Ie,u={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[jn]:this._latestRoute.context?kq(this._latestRoute.context):"url"}};t=w_(c,u,r,i,!0,{location:l},o)};["click"].forEach(r=>{Ie.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const r=Ze(),i=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,o=i!==void 0?i.getReplayId():void 0,s=yo(),a=cn(),c=a!==void 0?a.getUser():void 0;n.forEach(l=>{if(Eq(l)){const u=l.interactionId;if(u===void 0)return;const f=this._interactionIdToRouteNameMapping[u],d=l.duration,h=l.startTime,p=Object.keys(this._interactionIdToRouteNameMapping),m=p.length>0?p.reduce((y,g)=>this._interactionIdToRouteNameMapping[y].duration<this._interactionIdToRouteNameMapping[g].duration?y:g):void 0;if(l.entryType==="first-input"&&p.map(g=>this._interactionIdToRouteNameMapping[g]).some(g=>g.duration===d&&g.startTime===h)||!u)return;if(f)f.duration=Math.max(f.duration,d);else if(p.length<P_||m===void 0||d>this._interactionIdToRouteNameMapping[m].duration){const y=this._latestRoute.name,g=this._latestRoute.context;y&&g&&(m&&Object.keys(this._interactionIdToRouteNameMapping).length>=P_&&delete this._interactionIdToRouteNameMapping[m],this._interactionIdToRouteNameMapping[u]={routeName:y,duration:d,parentContext:g,user:c,activeTransaction:s,replayId:o,startTime:h})}}})};ws("event",t),ws("first-input",t)}}function L_(e){const t=Fj(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function kq(e){const t=e.attributes&&e.attributes[jn],n=e.data&&e.data[jn],r=e.metadata&&e.metadata.source;return t||n||r}function Eq(e){return"duration"in e}const Ge=Ne;let rm=0;function sk(){return rm>0}function Cq(){rm++,setTimeout(()=>{rm--})}function ks(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(Ng(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const o=i.map(s=>ks(s,t));return e.apply(this,o)}catch(o){throw Cq(),oU(s=>{s.addEventProcessor(a=>(t.mechanism&&(jp(a,void 0),tc(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),Sc(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}c4(r,e),mo(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Ir=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ak(e,t){const n=Qg(e,t),r={type:t&&t.name,value:Aq(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Tq(e,t,n,r){const i=Ze(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:Cf(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Mq(t,{isUnhandledRejection:r})}]},extra:{__serialized__:y4(t,o)}};if(n){const a=Qg(e,n);a.length&&(s.exception.values[0].stacktrace={frames:a})}return s}function Jd(e,t){return{exception:{values:[ak(e,t)]}}}function Qg(e,t){const n=t.stacktrace||t.stack||"",r=xq(t);try{return e(n,r)}catch{}return[]}const Iq=/Minified React error #\d+;/i;function xq(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Iq.test(e.message))return 1}return 0}function Aq(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Rq(e,t,n,r){const i=n&&n.syntheticException||void 0,o=Kg(e,t,i,r);return tc(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),_s(o)}function Oq(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,s=im(e,t,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),_s(s)}function Kg(e,t,n,r,i){let o;if(Rg(t)&&t.error)return Jd(e,t.error);if(K0(t)||xj(t)){const s=t;if("stack"in t)o=Jd(e,t);else{const a=s.name||(K0(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;o=im(e,c,n,r),jp(o,c)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return n4(t)?Jd(e,t):vs(t)||Cf(t)?(o=Tq(e,t,n,i),tc(o,{synthetic:!0}),o):(o=im(e,t,n,r),jp(o,`${t}`),tc(o,{synthetic:!0}),o)}function im(e,t,n,r){const i={};if(r&&n){const o=Qg(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}
989if(Og(t)){const{__sentry_template_string__:o,__sentry_template_values__:s}=t;return i.logentry={message:o,params:s},i}return i.message=t,i}function Mq(e,{isUnhandledRejection:t}){const n=Gj(e),r=t?"promise rejection":"exception";return Rg(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Cf(e)?`Event \`${Dq(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Dq(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Nq(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Bs(r)}},o=Pq(e);return Di(i,[o])}function Pq(e){return[{type:"user_report"},e]}class Lq extends qU{constructor(t){const n=Ge.SENTRY_SDK_SOURCE||mV();oW(t,"browser",["browser"],n),super(t),t.sendClientReports&&Ge.document&&Ge.document.addEventListener("visibilitychange",()=>{Ge.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Rq(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Oq(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Ir&&z.warn("SDK not enabled, will not capture user feedback.");return}const n=Nq(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Ir&&z.log("No outcomes to send");return}if(!this._dsn){Ir&&z.log("No dsn provided, will not send outcomes");return}Ir&&z.log("Sending outcomes:",t);const n=BV(t,this._options.tunnel&&Bs(this._dsn));this._sendEnvelope(n)}}let ha;function $q(){if(ha)return ha;if(qp(Ge.fetch))return ha=Ge.fetch.bind(Ge);const e=Ge.document;let t=Ge.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Ir&&z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return ha=t.bind(Ge)}function Fq(){ha=void 0}function Bq(e,t=$q()){let n=0,r=0;function i(o){const s=o.body.length;n+=s,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Fq(),n-=s,r--,Fg(c)}}return W4(e,i)}const Hq=4;function jq(e){function t(n){return new hn((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===Hq&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&o.setRequestHeader(s,e.headers[s]);o.send(n.body)})}return W4(e,t)}const Nf="?",Vq=30,Uq=40,Wq=50;function Yg(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const qq=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,zq=/\((\S*)(?::(\d+))(?::(\d+))\)/,Gq=e=>{const t=qq.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=zq.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=ck(t[1]||Nf,t[2]);return Yg(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Qq=[Vq,Gq],Kq=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Yq=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Jq=e=>{const t=Kq.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Yq.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||Nf;return[i,r]=ck(i,r),Yg(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Zq=[Wq,Jq],Xq=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ez=e=>{const t=Xq.exec(e);return t?Yg(t[2],t[1]||Nf,+t[3],t[4]?+t[4]:void 0):void 0},tz=[Uq,ez],nz=[Qq,Zq,tz],rz=f4(...nz),ck=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Nf,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ul=1024,lk="Breadcrumbs",iz=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:lk,setupOnce(){},setup(n){t.console&&Jj(az(n)),t.dom&&h4(sz(n,t.dom)),t.xhr&&$g(cz(n)),t.fetch&&Lg(lz(n)),t.history&&If(uz(n)),t.sentry&&n.on&&n.on("beforeSendEvent",oz(n))}}},uk=iz;jr(lk,uk);function oz(e){return function(n){Ze()===e&&xi({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:oi(n)},{event:n})}}function sz(e,t){return function(r){if(Ze()!==e)return;let i,o,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>ul&&(Ir&&z.warn(`\`dom.maxStringLength\` cannot exceed ${ul}, but a value of ${a} was configured. Sentry will use ${ul} instead.`),a=ul),typeof s=="string"&&(s=[s]);try{const l=r.event,u=fz(l)?l.target:l;i=Ii(u,{keyAttrs:s,maxStringLength:a}),o=s4(u)}catch{i="<unknown>"}if(i.length===0)return;const c={category:`ui.${r.name}`,message:i};o&&(c.data={"ui.component_name":o}),xi(c,{event:r.event,name:r.name,global:r.global})}}function az(e){return function(n){if(Ze()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:CV(n.level),message:Y0(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Y0(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;xi(r,{input:n.args,level:n.level})}}function cz(e){return function(n){if(Ze()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[ci];if(!r||!i||!o)return;const{method:s,url:a,status_code:c,body:l}=o,u={method:s,url:a,status_code:c},f={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:i};xi({category:"xhr",data:u,type:"http"},f)}}function lz(e){return function(n){if(Ze()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;
989if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};xi({category:"fetch",data:o,level:"error",type:"http"},s)}else{const o=n.response,s={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:i};xi({category:"fetch",data:s,type:"http"},a)}}}function uz(e){return function(n){if(Ze()!==e)return;let r=n.from,i=n.to;const o=so(Ge.location.href);let s=r?so(r):void 0;const a=so(i);(!s||!s.path)&&(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),xi({category:"navigation",data:{from:r,to:i}})}}function fz(e){return!!e&&!!e.target}const fk="Dedupe",dz=()=>{let e;return{name:fk,setupOnce(){},processEvent(t){if(t.type)return t;try{if(hz(t,e))return Ir&&z.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},dk=dz;jr(fk,dk);function hz(e,t){return t?!!(pz(e,t)||mz(e,t)):!1}function pz(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!pk(e,t)||!hk(e,t))}function mz(e,t){const n=$_(t),r=$_(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!pk(e,t)||!hk(e,t))}function hk(e,t){let n=F_(e),r=F_(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function pk(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function $_(e){return e.exception&&e.exception.values&&e.exception.values[0]}function F_(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const mk="GlobalHandlers",gz=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:mk,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(yz(n),B_("onerror")),t.onunhandledrejection&&(vz(n),B_("onunhandledrejection"))}}},gk=gz;jr(mk,gk);function yz(e){m4(t=>{const{stackParser:n,attachStacktrace:r}=vk();if(Ze()!==e||sk())return;const{msg:i,url:o,line:s,column:a,error:c}=t,l=c===void 0&&cr(i)?wz(i,o,s,a):yk(Kg(n,c||i,void 0,r,!1),o,s,a);l.level="error",x4(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function vz(e){g4(t=>{const{stackParser:n,attachStacktrace:r}=vk();if(Ze()!==e||sk())return;const i=_z(t),o=Mg(i)?bz(i):Kg(n,i,void 0,r,!0);o.level="error",x4(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function _z(e){if(Mg(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function bz(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function wz(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Rg(e)?e.message:e,s="Error";const a=o.match(i);return a&&(s=a[1],o=a[2]),yk({exception:{values:[{type:s,value:o}]}},t,n,r)}function yk(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,f=cr(t)&&t.length>0?t:$j();return c.length===0&&c.push({colno:l,filename:f,function:"?",in_app:!0,lineno:u}),e}function B_(e){Ir&&z.log(`Global Handler attached: ${e}`)}function vk(){const e=Ze();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const _k="HttpContext",Sz=()=>({name:_k,setupOnce(){},preprocessEvent(e){if(!Ge.navigator&&!Ge.location&&!Ge.document)return;const t=e.request&&e.request.url||Ge.location&&Ge.location.href,{referrer:n}=Ge.document||{},{userAgent:r}=Ge.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}),bk=Sz;jr(_k,bk);const kz="cause",Ez=5,wk="LinkedErrors",Cz=(e={})=>{const t=e.limit||Ez,n=e.key||kz;return{name:wk,setupOnce(){},preprocessEvent(r,i,o){const s=o.getOptions();Dj(ak,s.stackParser,s.maxValueLength,n,t,r,i)}}},Sk=Cz;jr(wk,Sk);const Tz=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],kk="TryCatch",Iz=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:kk,setupOnce(){t.setTimeout&&Mt(Ge,"setTimeout",H_),t.setInterval&&Mt(Ge,"setInterval",H_),t.requestAnimationFrame&&Mt(Ge,"requestAnimationFrame",xz),t.XMLHttpRequest&&"XMLHttpRequest"in Ge&&Mt(XMLHttpRequest.prototype,"send",Az);const n=t.eventTarget;n&&(Array.isArray(n)?n:Tz).forEach(Rz)}}},Ek=Iz;jr(kk,Ek);function H_(e){return function(...t){const n=t[0];return t[0]=ks(n,{mechanism:{data:{function:Pr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function xz(e){return function(t){return e.apply(this,[ks(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Pr(e)},handled:!1,type:"instrument"}})])}}function Az(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>
989{i in n&&typeof n[i]=="function"&&Mt(n,i,function(o){const s={mechanism:{data:{function:i,handler:Pr(o)},handled:!1,type:"instrument"}},a=Ng(o);return a&&(s.mechanism.data.handler=Pr(a)),ks(o,s)})}),e.apply(this,t)}}function Rz(e){const t=Ge,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Mt(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=ks(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Pr(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,ks(o,{mechanism:{data:{function:"addEventListener",handler:Pr(o),target:e},handled:!1,type:"instrument"}}),s])}}),Mt(n,"removeEventListener",function(r){return function(i,o,s){const a=o;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,i,c,s)}catch{}return r.call(this,i,a,s)}}))}const Oz=[z4(),Q4(),Ek(),uk(),gk(),Sk(),dk(),bk()];function Ck(e){return[...Oz]}function Mz(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Ck()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Ge.SENTRY_RELEASE&&Ge.SENTRY_RELEASE.id&&(e.release=Ge.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Kj(e.stackParser||rz),integrations:BU(e),transport:e.transport||(p4()?Bq:jq)};KU(Lq,t),e.autoSessionTracking&&Dz()}function Dz(){if(typeof Ge.document>"u"){Ir&&z.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}p_({ignoreDuration:!0}),m_(),If(({from:e,to:t})=>{e!==void 0&&e!==t&&(p_({ignoreDuration:!0}),m_())})}const it=Ne,Jg="sentryReplaySession",Nz="replay_event",Zg="Unable to send Replay",Pz=3e5,Lz=9e5,$z=5e3,Fz=5500,Bz=6e4,Hz=5e3,jz=3,j_=15e4,fl=5e3,Vz=3e3,Uz=300,Xg=2e7,Wz=4999,qz=15e3,V_=36e5;function zz(e,t){return e??t()}function ku(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}var kt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(kt||(kt={}));function Gz(e){return e.nodeType===e.ELEMENT_NODE}function Ma(e){const t=ku([e,"optionalAccess",n=>n.host]);return ku([t,"optionalAccess",n=>n.shadowRoot])===e}function Da(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Qz(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function Kz(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Eu(e){try{const t=e.rules||e.cssRules;return t?Qz(Array.from(t,Tk).join("")):null}catch{return null}}function Tk(e){let t;if(Jz(e))try{t=Eu(e.styleSheet)||Kz(e)}catch{}else if(Zz(e)&&e.selectorText.includes(":"))return Yz(e.cssText);return t||e.cssText}function Yz(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Jz(e){return"styleSheet"in e}function Zz(e){return"selectorText"in e}class Ik{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=ku([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return zz(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Xz(){return new Ik}function Pf({maskInputOptions:e,tagName:t,type:n}
989){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function rc({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function Es(e){return e.toLowerCase()}function om(e){return e.toUpperCase()}const U_="__rrweb_original__";function eG(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const o=t.getImageData,s=U_ in o?o[U_]:o;if(new Uint32Array(s.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(c=>c!==0))return!1}return!0}function e1(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Es(t):null}function Cu(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let tG=1;const nG=new RegExp("[^a-z0-9-_:]"),ic=-2;function t1(){return tG++}function rG(e){if(e instanceof HTMLFormElement)return"form";const t=Es(e.tagName);return nG.test(t)?"div":t}function iG(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Ro,W_;const oG=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,sG=/^(?:[a-z+]+:)?\/\//i,aG=/^www\..*/i,cG=/^(data:)([^,]*),(.*)/i;function Tu(e,t){return(e||"").replace(oG,(n,r,i,o,s,a)=>{const c=i||s||a,l=r||o||"";if(!c)return n;if(sG.test(c)||aG.test(c))return`url(${l}${c}${l})`;if(cG.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${iG(t)+c}${l})`;const u=t.split("/"),f=c.split("/");u.pop();for(const d of f)d!=="."&&(d===".."?u.pop():u.push(d));return`url(${l}${u.join("/")}${l})`})}const lG=/^[^ \t\n\r\u000c]+/,uG=/^[, \t\n\r\u000c]+/;function fG(e,t){if(t.trim()==="")return t;let n=0;function r(o){let s;const a=o.exec(t.substring(n));return a?(s=a[0],n+=s.length,s):""}const i=[];for(;r(uG),!(n>=t.length);){let o=r(lG);if(o.slice(-1)===",")o=Uo(e,o.substring(0,o.length-1)),i.push(o);else{let s="";o=Uo(e,o);let a=!1;for(;;){const c=t.charAt(n);if(c===""){i.push((o+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,i.push((o+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return i.join(", ")}function Uo(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function dG(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function n1(){const e=document.createElement("a");return e.href="",e.href}function xk(e,t,n,r,i,o){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Uo(e,r):n==="srcset"?fG(e,r):n==="style"?Tu(r,n1()):t==="object"&&n==="data"?Uo(e,r):typeof o=="function"?o(n,r,i):r)}function Ak(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function hG(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const o=e.classList[i];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function pG(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Xi(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Xi(e.parentNode,t,n,r+1)}function Wo(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(pG(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Cs(e,t,n,r,i,o){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const l=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let a=-1,c=-1;if(o){if(c=Xi(s,Wo(r,i)),c<0)return!0;a=Xi(s,Wo(t,n),c>=0?c:1/0)}else{if(a=Xi(s,Wo(t,n)),a<0)return!1;c=Xi(s,Wo(r,i),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function mG(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=setTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function gG(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const o=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(o),r=!0,t()})}function yG(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:w=!1}=t,S=vG(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:kt.Document,childNodes:[],compatMode:e.compatMode}:{type:kt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:kt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return bG(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:p,maskInputFn:y,dataURLOptions:g,inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:w,rootId:S,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return _G(e,{maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:p,maskInputFn:y,rootId:S});case e.CDATA_SECTION_NODE:return{type:kt.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:kt.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function vG(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function _G(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const h=f==="STYLE"?!0:void 0,p=f==="SCRIPT"?!0:void 0,m=f==="TEXTAREA"?!0:void 0;if(h&&d){try{e.nextSibling||e.previousSibling||ku([e,"access",g=>g.parentNode,"access",g=>g.sheet,"optionalAccess",g=>g.cssRules])&&(d=Eu(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}d=Tu(d,n1())}p&&(d="SCRIPT_PLACEHOLDER");const y=Cs(e,r,o,i,s,n);if(!h&&!p&&!m&&d&&y&&(d=a?a(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(c.textarea||y)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*")),f==="OPTION"&&d){const g=Pf({type:null,tagName:f,maskInputOptions:c});d=rc({isMasked:Cs(e,r,o,i,s,g),element:e,value:d,maskInputFn:l})}return{type:kt.Text,textContent:d||"",isStyle:h,rootId:u}}function bG(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskTextClass:y,unmaskTextClass:g,maskTextSelector:_,unmaskTextSelector:v}=t,b=hG(e,r,i,o),w=rG(e);let S={};const k=e.attributes.length;for(let A=0;A<k;A++){const T=e.attributes[A];T.name&&!Ak(w,T.name,T.value)&&(S[T.name]=xk(n,w,Es(T.name),T.value,e,c))}if(w==="link"&&s){const A=Array.from(n.styleSheets).find($=>$.href===e.href);let T=null;A&&(T=Eu(A)),T&&(delete S.rel,delete S.href,S._cssText=Tu(T,A.href))}if(w==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Eu(e.sheet);A&&(S._cssText=Tu(A,n1()))}if(w==="input"||w==="textarea"||w==="select"||w==="option"){const A=e,T=e1(A),$=Cu(A,om(w),T),D=A.checked;if(T!=="submit"&&T!=="button"&&$){const H=Cs(A,y,_,g,v,Pf({type:T,tagName:om(w),maskInputOptions:a}));S.value=rc({isMasked:H,element:A,value:$,maskInputFn:l})}D&&(S.checked=D)}if(w==="option"&&(e.selected&&!a.select?S.selected=!0:delete S.selected),w==="canvas"&&d){if(e.__context==="2d")eG(e)||(S.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const A=e.toDataURL(u.type,u.quality),T=d
989ocument.createElement("canvas");T.width=e.width,T.height=e.height;const $=T.toDataURL(u.type,u.quality);A!==$&&(S.rr_dataURL=A)}}if(w==="img"&&f){Ro||(Ro=n.createElement("canvas"),W_=Ro.getContext("2d"));const A=e,T=A.crossOrigin;A.crossOrigin="anonymous";const $=()=>{A.removeEventListener("load",$);try{Ro.width=A.naturalWidth,Ro.height=A.naturalHeight,W_.drawImage(A,0,0),S.rr_dataURL=Ro.toDataURL(u.type,u.quality)}catch(D){console.warn(`Cannot inline img src=${A.currentSrc}! Error: ${D}`)}T?S.crossOrigin=T:A.removeAttribute("crossorigin")};A.complete&&A.naturalWidth!==0?$():A.addEventListener("load",$)}if((w==="audio"||w==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),p||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),b){const{width:A,height:T}=e.getBoundingClientRect();S={class:S.class,rr_width:`${A}px`,rr_height:`${T}px`}}w==="iframe"&&!h(S.src)&&(e.contentDocument||(S.rr_src=S.src),delete S.src);let R;try{customElements.get(w)&&(R=!0)}catch{}return{type:kt.Element,tagName:w,attributes:S,childNodes:[],isSVG:dG(e)||void 0,needBlock:b,rootId:m,isCustom:R}}function nt(e){return e==null?"":e.toLowerCase()}function wG(e,t){if(t.comment&&e.type===kt.Comment)return!0;if(e.type===kt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(nt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||nt(e.attributes.name)==="application-name"||nt(e.attributes.rel)==="icon"||nt(e.attributes.rel)==="apple-touch-icon"||nt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&nt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(nt(e.attributes.property).match(/^(og|twitter|fb):/)||nt(e.attributes.name).match(/^(og|twitter):/)||nt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(nt(e.attributes.name)==="robots"||nt(e.attributes.name)==="googlebot"||nt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(nt(e.attributes.name)==="author"||nt(e.attributes.name)==="generator"||nt(e.attributes.name)==="framework"||nt(e.attributes.name)==="publisher"||nt(e.attributes.name)==="progid"||nt(e.attributes.property).match(/^article:/)||nt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(nt(e.attributes.name)==="google-site-verification"||nt(e.attributes.name)==="yandex-verification"||nt(e.attributes.name)==="csrf-token"||nt(e.attributes.name)==="p:domain_verify"||nt(e.attributes.name)==="verify-v1"||nt(e.attributes.name)==="verification"||nt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function qo(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:R=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:$=()=>!1,newlyAddedElement:D=!1}=t;let{preserveWhiteSpace:H=!0}=t;const ce=yG(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:v,inlineImages:b,recordCanvas:w,keepIframeSrcFn:$,newlyAddedElement:D});if(!ce)return console.warn(e,"not serialized"),null;let K;r.hasNode(e)?K=r.getId(e):wG(ce,_)||!H&&ce.type===kt.Text&&!ce.isStyle&&!ce.textContent.replace(/^\s+|\s+$/gm,"").length?K=ic:K=t1();const F=Object.assign(ce,{id:K});if(r.add(e,F),K===ic)return null;S&&S(e);let V=!d;if(F.type===kt.Element){V=V&&!F.needBlock,delete F.needBlock;const W=e.shadowRoot;W&&Da(W)&&(F.isShadowHost=!0)}if((F.type===kt.Document||F.type===kt.Element)&&V){_.headWhitespace&&F.type===kt.Element&&F.tagName==="head"&&(H=!1);const W={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:H,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:$};for(const de of Array.from(e.childNodes)){const C=qo(de,W);C&&F.childNodes.push(C)}if(Gz(e)&&e.shadowRoot)for(const de of Array.from(e.shadowRoot.childNodes)){const C=qo(de,W);C&&(Da(e.shadowRoot)&&(C.isShadow=!0),F.childNodes.push(C))}}return e.parentNode&&Ma(e.parentNode)&&Da(e.parentNode)&&(F.isShadow=!0),F.type===kt.Element&&F.tagName==="iframe"&&mG(e,()=>{const W=e.contentDocument;if(W&&k){const de=qo(W,{doc:W,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:H,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:$});de&&k(e,de)}},R),F.type===kt.Element&&F.tagName==="link"&&F.attributes.rel==="stylesheet"&&gG(e,()=>{if(A){const W=qo(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:H,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:$});W&&A(e,W)}},T),F}function SG(e,t){const{mirror:n=new Ik,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:T=()=>!1}=t||{};return qo(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:p===!1?{}:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:_==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
989:_===!1?{}:_,dataURLOptions:v,inlineImages:d,recordCanvas:h,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:T,newlyAddedElement:!1})}function ei(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}function Jt(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Lo=`Please stop import mirror directly. Instead of that,\r 990now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 991or you can use record.mirror to access the mirror instance during recording.`;let q_={map:{},getId(){return console.error(Lo),-1},getNode(){return console.error(Lo),null},removeNodeFromMap(){console.error(Lo)},has(){return console.error(Lo),!1},reset(){console.error(Lo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(q_=new Proxy(q_,{get(e,t,n){return t==="map"&&console.error(Lo),Reflect.get(e,t,n)}}));function oc(e,t,n={}){let r=null,i=0;return function(...o){const s=Date.now();!i&&n.leading===!1&&(i=s);const a=t-(s-i),c=this;a<=0||a>t?(r&&(AG(r),r=null),i=s,e.apply(c,o)):!r&&n.trailing!==!1&&(r=Lf(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,o)},a))}}function Rk(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){Lf(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>Rk(e,t,o||{},!0)}function r1(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let Iu=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Iu=()=>new Date().getTime());function Ok(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:ei([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||ei([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||ei([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:ei([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||ei([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||ei([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Mk(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Dk(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nk(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Fn(e,t,n,r,i){if(!e)return!1;const o=Nk(e);if(!o)return!1;const s=Wo(t,n);if(!i){const l=r&&o.matches(r);return s(o)&&!l}const a=Xi(o,s);let c=-1;return a<0?!1:(r&&(c=Xi(o,Wo(null,r))),a>-1&&c<0?!0:a<c)}function kG(e,t){return t.getId(e)!==-1}function Zd(e,t){return t.getId(e)===ic}function Pk(e,t){if(Ma(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Pk(e.parentNode,t):!0:!0}function sm(e){return!!e.changedTouches}function EG(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Lk(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function $k(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}
991function am(e){return!!ei([e,"optionalAccess",t=>t.shadowRoot])}class CG{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return UV(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Fk(e){let t=null;return ei([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function TG(e){let t=e,n;for(;n=Fk(t);)t=n;return t}function IG(e){const t=e.ownerDocument;if(!t)return!1;const n=TG(e);return t.contains(n)}function Bk(e){const t=e.ownerDocument;return t?t.contains(e)||IG(e):!1}const z_={};function i1(e){const t=z_[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return z_[e]=r.bind(window)}function xG(...e){return i1("requestAnimationFrame")(...e)}function Lf(...e){return i1("setTimeout")(...e)}function AG(...e){return i1("clearTimeout")(...e)}var Ae=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ae||{}),Re=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Re||{}),zt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(zt||{}),yr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(yr||{});function RG(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}function G_(e){return"__ln"in e}class OG{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=RG([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&G_(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&G_(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Q_=(e,t)=>`${e}@${t}`;class MG{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>
vendor: 5,114 bytes, line 991
991{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new OG,i=c=>{let l=c,u=ic;for(;u===ic;)l=l&&l.nextSibling,u=l&&this.mirror.getId(l);return u},o=c=>{if(!c.parentNode||!Bk(c))return;const l=Ma(c.parentNode)?this.mirror.getId(Fk(c)):this.mirror.getId(c.parentNode),u=i(c);if(l===-1||u===-1)return r.addNode(c);const f=qo(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{Lk(d,this.mirror)&&this.iframeManager.addIframe(d),$k(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),am(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(d,h)=>{this.iframeManager.attachIframe(d,h),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,h)=>{this.stylesheetManager.attachLinkElement(d,h)}});f&&(t.push({parentId:l,nextId:u,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)K_(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!Y_(this.droppedSet,c)&&!K_(this.removes,c,this.mirror)||Y_(this.movedSet,c)?o(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){const l=this.mirror.getId(s.value.parentNode),u=i(s.value);l!==-1&&u!==-1&&(c=s)}if(!c){let l=r.tail;for(;l;){const u=l;if(l=l.previous,u){const f=this.mirror.getId(u.value.parentNode);if(i(u.value)===-1)continue;if(f!==-1){c=u;break}else{const h=u.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const p=h.parentNode.host;if(this.mirror.getId(p)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),o(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const u=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);u.length<l.style.length&&(u+f).split("var(").length===l.style.split("var(").length&&(l.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:l}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!Zd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Cs(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Nk(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const s=e1(n),a=n.tagName;i=Cu(n,a,s);const c=Pf({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),l=Cs(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);i=rc({isMasked:l,element:n,value:i,maskInputFn:this.maskInputFn})}if(Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!n.contentDocument)r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Ak(n.tagName,r)&&(o.attributes[r]=xk(this.doc,Es(n.tagName),Es(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||l!==s.style.getPropertyPriority(a)?l===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,l]:o._unchangedStyles[a]=[c,l]}for(const a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}
991case"childList":{if(Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=Ma(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Zd(n,this.mirror)||!kG(n,this.mirror)||(this.addedSet.has(n)?(cm(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Pk(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Q_(r,i)]?cm(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:Ma(t.target)&&Da(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Zd(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Q_(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Fn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),am(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function cm(e,t){e.delete(t),t.childNodes.forEach(n=>cm(e,n))}function K_(e,t,n){return e.length===0?!1:Hk(e,t,n)}function Hk(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return e.some(o=>o.id===i)?!0:Hk(e,r,n)}function Y_(e,t){return e.size===0?!1:jk(e,t)}function jk(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:jk(e,n):!1}let Na;function DG(e){Na=e}function NG(){Na=void 0}const Pe=e=>Na?(...n)=>{try{return e(...n)}catch(r){if(Na&&Na(r)===!0)return()=>{};throw r}}:e;function er(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}const zo=[];function xc(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Vk(e,t){const n=new MG;zo.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=er([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r(Pe(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function PG({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],a;const c=oc(Pe(f=>{const d=Date.now()-a;e(s.map(h=>(h.timeOffset-=d,h)),f),s=[],a=null}),o),l=Pe(oc(Pe(f=>{const d=xc(f),{clientX:h,clientY:p}=sm(f)?f.changedTouches[0]:f;a||(a=Iu()),s.push({x:h,y:p,id:r.getId(d),timeOffset:Iu()-a}),c(typeof DragEvent<"u"&&f instanceof DragEvent?Re.Drag:f instanceof MouseEvent?Re.MouseMove:Re.TouchMove)}),i,{trailing:!1})),u=[Jt("mousemove",l,n),Jt("touchmove",l,n),Jt("drag",l,n)];return Pe(()=>{u.forEach(f=>f())})}function LG({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let l=null;const u=f=>d=>{const h=xc(d);if(Fn(h,r,i,o,!0))return;let p=null,m=f;if("pointerType"in d){switch(d.pointerType){case"mouse":p=yr.Mouse;break;case"touch":p=yr.Touch;break;case"pen":p=yr.Pen;break}p===yr.Touch?zt[f]===zt.MouseDown?m="TouchStart":zt[f]===zt.MouseUp&&(m="TouchEnd"):yr.Pen}else sm(d)&&(p=yr.Touch);p!==null?(l=p,(m.startsWith("Touch")&&p===yr.Touch||m.startsWith("Mouse")&&p===yr.Mouse)&&(p=null)):zt[f]===zt.Click&&(p=l,l=null);const y=sm(d)?d.changedTouches[0]:d;if(!y)return;const g=n.getId(h),{clientX:_,clientY:v}=y;Pe(e)({type:zt[m],id:g,x:_,y:v,...p!==null&&{pointerType:p}})};return Object.keys(zt).filter(f=>
vendor: 1,216 bytes, line 991
991Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1).forEach(f=>{let d=Es(f);const h=u(f);if(window.PointerEvent)switch(zt[f]){case zt.MouseDown:case zt.MouseUp:d=d.replace("mouse","pointer");break;case zt.TouchStart:case zt.TouchEnd:return}c.push(Jt(d,h,t))}),Pe(()=>{c.forEach(f=>f())})}function Uk({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){const a=Pe(oc(Pe(c=>{const l=xc(c);if(!l||Fn(l,r,i,o,!0))return;const u=n.getId(l);if(l===t&&t.defaultView){const f=Ok(t.defaultView);e({id:u,x:f.left,y:f.top})}else e({id:u,x:l.scrollLeft,y:l.scrollTop})}),s.scroll||100));return Jt("scroll",a,t)}function $G({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=Pe(oc(Pe(()=>{const o=Mk(),s=Dk();(n!==o||r!==s)&&(e({width:Number(s),height:Number(o)}),n=o,r=s)}),200));return Jt("resize",i,t)}const FG=["INPUT","TEXTAREA","SELECT"],J_=new WeakMap;function BG({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function y(k){let R=xc(k);const A=k.isTrusted,T=R&&om(R.tagName);
991if(T==="OPTION"&&(R=R.parentElement),!R||!T||FG.indexOf(T)<0||Fn(R,r,i,o,!0))return;const $=R;if($.classList.contains(s)||a&&$.matches(a))return;const D=e1(R);let H=Cu($,T,D),ce=!1;const K=Pf({maskInputOptions:c,tagName:T,type:D}),F=Cs(R,d,p,h,m,K);(D==="radio"||D==="checkbox")&&(ce=R.checked),H=rc({isMasked:F,element:R,value:H,maskInputFn:l}),g(R,f?{text:H,isChecked:ce,userTriggered:A}:{text:H,isChecked:ce});const V=R.name;D==="radio"&&V&&ce&&t.querySelectorAll(`input[type="radio"][name="${V}"]`).forEach(W=>{if(W!==R){const de=rc({isMasked:F,element:W,value:Cu(W,T,D),maskInputFn:l});g(W,f?{text:de,isChecked:!ce,userTriggered:!1}:{text:de,isChecked:!ce})}})}function g(k,R){const A=J_.get(k);if(!A||A.text!==R.text||A.isChecked!==R.isChecked){J_.set(k,R);const T=n.getId(k);Pe(e)({...R,id:T})}}const v=(u.input==="last"?["change"]:["input","change"]).map(k=>Jt(k,Pe(y),t)),b=t.defaultView;if(!b)return()=>{v.forEach(k=>k())};const w=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&v.push(...S.map(k=>Rk(k[0],k[1],{set(){Pe(y)({target:this,isTrusted:!1})}},!1,b))),Pe(()=>{v.forEach(k=>k())})}function xu(e){const t=[];function n(r,i){if(dl("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||dl("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||dl("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||dl("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(s)}return i}return n(e,t)}function ti(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function HG({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Pe((u,f,d)=>{const[h,p]=d,{id:m,styleId:y}=ti(f,t,n.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,adds:[{rule:h,index:p}]}),u.apply(f,d)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Pe((u,f,d)=>{const[h]=d,{id:p,styleId:m}=ti(f,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,removes:[{index:h}]}),u.apply(f,d)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Pe((u,f,d)=>{const[h]=d,{id:p,styleId:m}=ti(f,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replace:h}),u.apply(f,d)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Pe((u,f,d)=>{const[h]=d,{id:p,styleId:m}=ti(f,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replaceSync:h}),u.apply(f,d)})}));const c={};hl("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(hl("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),hl("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),hl("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([u,f])=>{l[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(l[u].insertRule,{apply:Pe((d,h,p)=>{const[m,y]=p,{id:g,styleId:_}=ti(h.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,adds:[{rule:m,index:[...xu(h),y||0]}]}),d.apply(h,p)})}),f.prototype.deleteRule=new Proxy(l[u].deleteRule,{apply:Pe((d,h,p)=>{const[m]=p,{id:y,styleId:g}=ti(h.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||g&&g!==-1)&&e({id:y,styleId:g,removes:[{index:[...xu(h),m]}]}),d.apply(h,p)})})}),Pe(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEac
991h(([u,f])=>{f.prototype.insertRule=l[u].insertRule,f.prototype.deleteRule=l[u].deleteRule})})}function Wk({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?er([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):er([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),o=er([i,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(er([i,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return er([o,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const a=er([o,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,s)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return a}}),Pe(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function jG({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Pe((a,c,l)=>{const[u,f,d]=l;if(n.has(u))return o.apply(c,[u,f,d]);const{id:h,styleId:p}=ti(er([c,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(h&&h!==-1||p&&p!==-1)&&e({id:h,styleId:p,set:{property:u,value:f,priority:d},index:xu(c.parentRule)}),a.apply(c,l)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Pe((a,c,l)=>{const[u]=l;if(n.has(u))return s.apply(c,[u]);const{id:f,styleId:d}=ti(er([c,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,r.styleMirror);return(f&&f!==-1||d&&d!==-1)&&e({id:f,styleId:d,remove:{property:u},index:xu(c.parentRule)}),a.apply(c,l)})}),Pe(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}function VG({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){const a=Pe(l=>oc(Pe(u=>{const f=xc(u);if(!f||Fn(f,t,n,r,!0))return;const{currentTime:d,volume:h,muted:p,playbackRate:m}=f;e({type:l,id:i.getId(f),currentTime:d,volume:h,muted:p,playbackRate:m})}),o.media||500)),c=[Jt("play",a(0),s),Jt("pause",a(1),s),Jt("seeked",a(2),s),Jt("volumechange",a(3),s),Jt("ratechange",a(4),s)];return Pe(()=>{c.forEach(l=>l())})}function UG({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(c,l,u){const f=new o(c,l,u);return i.set(f,{family:c,buffer:typeof l!="string",descriptors:u,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),f};const s=r1(t.fonts,"add",function(a){return function(c){return Lf(Pe(()=>{const l=i.get(c);l&&(e(l),i.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(s),Pe(()=>{r.forEach(a=>a())})}function WG(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=e;let a=!0;const c=Pe(()=>{const l=t.getSelection();if(!l||a&&er([l,"optionalAccess",d=>d.isCollapsed]))return;a=l.isCollapsed||!1;const u=[],f=l.rangeCount||0;for(let d=0;d<f;d++){const h=l.getRangeAt(d),{startContainer:p,startOffset:m,endContainer:y,endOffset:g}=h;Fn(p,r,i,o,!0)||Fn(y,r,i,o,!0)||u.push({start:n.getId(p),startOffset:m,end:n.getId(y),endOffset:g})}s({ranges:u})});return c(),Jt("selectionchange",c)}function qG({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:r1(n.customElements,"define",function(i){return function(o,s,a){try{t({define:{name:o}})}catch{}return i.apply(this,[o,s,a])}})}function zG(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Vk(e,e.doc),i=PG(e),o=LG(e),s=Uk(e),a=$G(e,{win:n}),c=BG(e),l=VG(e),u=HG(e,{win:n}),f=Wk(e,e.doc),d=jG(e,{win:n}),h=e.collectFonts?UG(e):()=>{},p=WG(e),m=qG(e),y=[];for(const g of e.plugins)y.push(g.observer(g.callback,n,g.options));return Pe(()=>{zo.forEach(g=>g.reset()),r.disconnect(),i(),o(),s(),a(),c(),l(),u(),f(),d(),h(),p(),m(),y.forEac
991h(g=>g())})}function dl(e){return typeof window[e]<"u"}function hl(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class lm{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const o=r||this.getIdToRemoteIdMap(t),s=i||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),s.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=i.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function Z_(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}class GG{constructor(){this.crossOriginIframeMirror=new lm(t1),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class QG{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new lm(t1),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new lm(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Z_([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const o=this.transformCrossOriginEvent(i,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ae.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Ae.IncrementalSnapshot,data:{source:Re.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ae.Meta:case Ae.Load:case Ae.DomContentLoaded:return!1;case Ae.Plugin:return n;case Ae.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ae.IncrementalSnapshot:switch(n.data.source){case Re.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}
991),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Re.Drag:case Re.TouchMove:case Re.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Re.ViewportResize:return!1;case Re.MediaInteraction:case Re.MouseInteraction:case Re.Scroll:case Re.CanvasMutation:case Re.Input:return this.replaceIds(n.data,t,["id"]),n;case Re.StyleSheetRule:case Re.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Re.Font:return n;case Re.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Re.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),Z_([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(i=>{this.replaceStyleIds(i,t,["styleId"])})]),n}}return!1}replace(t,n,r,i){for(const o of i)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==kt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class KG{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class YG{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Da(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=Vk({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Uk({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Lf(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Wk({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(r1(t.prototype,"attachShadow",function(i){return function(o){const s=i.call(this,o);return this.shadowRoot&&Bk(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class X_{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class JG{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new CG,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const o of t){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),i.push({styleId:s,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:Tk(a),index:c}))})),r.styleIds.push(s)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class ZG{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){xG(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let ht,Au;const Mn=Xz();function yi(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,maxCanvasSize:w=null,packFn:S,sampling:k={},dataURLOptions:R={},mousemoveWait:A,recordCanvas:T=!1,recordCrossOriginIframes:$=!1,recordAfter:D=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:H=!1,collectFonts:ce=!1,inlineImages:K=!1,plugins:F,keepIframeSrcFn:V=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:de,onMutation:C,getCanvasManager:O}=e;DG(de);const B=$?window.parent===window:!0;let Q=!1;if(!B)try{window.parent.document&&(Q=!1)}catch{Q=!0}if(B&&!t)throw new Error("emit function is required");A!==void 0&&k.mousemove===void 0&&(k.mousemove=A),Mn.reset();const Y=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==void 0?y:{},re=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};EG();let N,x=0;const j=ne=>{for(const le of F||[])le.eventProcessor&&(ne=le.eventProcessor(ne));return S&&!Q&&(ne=S(ne)),ne};ht=(ne,le)=>{const X=ne;if(X.timestamp=Iu(),qd([zo,"access",Z=>Z[0],"optionalAccess",Z=>Z.isFrozen,"call",Z=>Z()])&&X.type!==Ae.FullSnapshot&&!(X.type===Ae.IncrementalSnapshot&&X.data.source===Re.Mutation)&&zo.forEach(Z=>Z.unfreeze()),B)qd([t,"optionalCall",Z=>
991Z(j(X),le)]);else if(Q){const Z={type:"rrweb",event:j(X),origin:window.location.origin,isCheckout:le};window.parent.postMessage(Z,"*")}if(X.type===Ae.FullSnapshot)N=X,x=0;else if(X.type===Ae.IncrementalSnapshot){if(X.data.source===Re.Mutation&&X.data.isAttachIframe)return;x++;const Z=r&&x>=r,ue=n&&N&&X.timestamp-N.timestamp>n;(Z||ue)&&ae(!0)}};const J=ne=>{ht({type:Ae.IncrementalSnapshot,data:{source:Re.Mutation,...ne}})},ee=ne=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.Scroll,...ne}}),ye=ne=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.CanvasMutation,...ne}}),Te=ne=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.AdoptedStyleSheet,...ne}}),E=new JG({mutationCb:J,adoptedStyleSheetCb:Te}),I=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new GG:new QG({mirror:Mn,mutationCb:J,stylesheetManager:E,recordCrossOriginIframes:$,wrappedEmit:ht});for(const ne of F||[])ne.getMirror&&ne.getMirror({nodeMirror:Mn,crossOriginIframeMirror:I.crossOriginIframeMirror,crossOriginIframeStyleMirror:I.crossOriginIframeStyleMirror});const P=new ZG,ie=eQ(O,{mirror:Mn,win:window,mutationCb:ne=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.CanvasMutation,...ne}}),recordCanvas:T,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:w,sampling:k.canvas,dataURLOptions:R,errorHandler:de}),G=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new KG:new YG({mutationCb:J,scrollCb:ee,bypassOptions:{onMutation:C,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:Y,dataURLOptions:R,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,recordCanvas:T,inlineImages:K,sampling:k,slimDOMOptions:re,iframeManager:I,stylesheetManager:E,canvasManager:ie,keepIframeSrcFn:V,processedNodeManager:P},mirror:Mn}),ae=(ne=!1)=>{ht({type:Ae.Meta,data:{href:window.location.href,width:Dk(),height:Mk()}},ne),E.reset(),G.init(),zo.forEach(X=>X.lock());const le=SG(document,{mirror:Mn,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:Y,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,slimDOM:re,dataURLOptions:R,recordCanvas:T,inlineImages:K,onSerialize:X=>{Lk(X,Mn)&&I.addIframe(X),$k(X,Mn)&&E.trackLinkElement(X),am(X)&&G.addShadowRoot(X.shadowRoot,document)},onIframeLoad:(X,Z)=>{I.attachIframe(X,Z),G.observeAttachShadow(X)},onStylesheetLoad:(X,Z)=>{E.attachLinkElement(X,Z)},keepIframeSrcFn:V});if(!le)return console.warn("Failed to snapshot the document");ht({type:Ae.FullSnapshot,data:{node:le,initialOffset:Ok(window)}}),zo.forEach(X=>X.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&E.adoptStyleSheets(document.adoptedStyleSheets,Mn.getId(document))};Au=ae;try{const ne=[],le=Z=>Pe(zG)({onMutation:C,mutationCb:J,mousemoveCb:(ue,pe)=>ht({type:Ae.IncrementalSnapshot,data:{source:pe,positions:ue}}),mouseInteractionCb:ue=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.MouseInteraction,...ue}}),scrollCb:ee,viewportResizeCb:ue=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.ViewportResize,...ue}}),inputCb:ue=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.Input,...ue}}),mediaInteractionCb:ue=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.MediaInteraction,...ue}}),styleSheetRuleCb:ue=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.StyleSheetRule,...ue}}),styleDeclarationCb:ue=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.StyleDeclaration,...ue}}),canvasMutationCb:ye,fontCb:ue=>ht({type:Ae.IncrementalSnapshot,data:{source:Re.Font,...ue}}),selectionCb:ue=>{ht({type:Ae.IncrementalSnapshot,data:{source:Re.Selection,...ue}})},customElementCb:ue=>{ht({type:Ae.IncrementalSnapshot,data:{source:Re.CustomElement,...ue}})},blockClass:i,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,maskInputOptions:Y,inlineStylesheet:p,sampling:k,recordCanvas:T,inlineImages:K,userTriggeredOnInput:H,collectFonts:ce,doc:Z,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:V,blockSelector:o,unblockSelector:s,slimDOMOptions:re,dataURLOptions:R,mirror:Mn,iframeManager:I,stylesheetManager:E,shadowDomManager:G,processedNodeManager:P,canvasManager:ie,ignoreCSSAttributes:W,plugins:qd([F,"optionalAccess",ue=>ue.filter,"call",ue=>ue(pe=>pe.observer),"optionalAccess",ue=>ue.map,"call",ue=>ue(pe=>({observer:pe.observer,options:pe.options,callback:ve=>ht({type:Ae.Plugin,data:{plugin:pe.name,payload:ve}})}))])||[]},{});I.addLoadListener(Z=>{try{ne.push(le(Z.contentDocument))}catch(ue){console.warn(ue)}});const X=()=>{ae(),ne.push(le(document))};return document.readyState==="interactive"||document.readyState==="complete"?X():(ne.push(Jt("DOMContentLoaded",()=>{ht({type:Ae.DomContentLoaded,data:{}}),D==="DOMContentLoaded"&&X()})),ne.push(Jt("load",()=>{ht({type:Ae.Load,data:{}}),D==="load"&&X()}
991,window))),()=>{ne.forEach(Z=>Z()),P.destroy(),Au=void 0,NG()}}catch(ne){console.warn(ne)}}function XG(e){if(!Au)throw new Error("please take full snapshot after start recording");Au(e)}yi.mirror=Mn;yi.takeFullSnapshot=XG;function eQ(e,t){try{return e?e(t):new X_}catch{return console.warn("Unable to initialize CanvasManager"),new X_}}const tQ=3,nQ=5;function o1(e){return e>9999999999?e:e*1e3}function Xd(e){return e>9999999999?e/1e3:e}function Ac(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ae.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Xn(t,10,1e3)}}),t.category==="console")))}const rQ="button,a";function qk(e){return e.closest(rQ)||e}function zk(e){const t=Gk(e);return!t||!(t instanceof Element)?t:qk(t)}function Gk(e){return iQ(e)?e.target:e}function iQ(e){return typeof e=="object"&&!!e&&"target"in e}let ni;function oQ(e){return ni||(ni=[],sQ()),ni.push(e),()=>{const t=ni?ni.indexOf(e):-1;t>-1&&ni.splice(t,1)}}function sQ(){Mt(it,"open",function(e){return function(...t){if(ni)try{ni.forEach(n=>n())}catch{}return e.apply(it,t)}})}function aQ(e,t,n){e.handleClick(t,n)}class cQ{constructor(t,n,r=Ac){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=oQ(()=>{this._lastMutation=eb()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(uQ(n,this._ignoreSelector)||!fQ(t))return;const r={timestamp:Xd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Xd(t)}registerScroll(t=Date.now()){this._lastScroll=Xd(t)}registerClick(t){const n=qk(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=eb();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!i,{clickCount:s,clickBreadcrumb:a}=t;if(o){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c<this._timeout*1e3?"mutation":"timeout",u={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:it.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:l,clickCount:s||1}};this._addBreadcrumbEvent(n,u);return}if(s>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:it.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const lQ=["A","BUTTON","INPUT"];function uQ(e,t){return!!(!lQ.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function fQ(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function eb(){return Date.now()/1e3}function dQ(e,t){try{if(!hQ(t))return;const{source:n}=t.data;if(n===Re.Mutation&&e.registerMutation(t.timestamp),n===Re.Scroll&&e.registerScroll(t.timestamp),pQ(t)){const{type:r,id:i}=t.data,o=yi.mirror.getNode(i);o instanceof HTMLElement&&r===zt.Click&&e.registerClick(o)}}catch{}}function hQ(e){return e.type===tQ}function pQ(e){return e.data.source===Re.MouseInteraction}function or(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ru;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Ru||(Ru={}));const mQ=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function gQ(e){const t={};for(const n in e)if(mQ.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const yQ=e=>t=>{if(!e.isEnabled())return;const n=vQ(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&aQ(e.clickDetector,n,zk(t.event)),Ac(e,n)};function Qk(e,t){const n=yi.mirror.getId(e),r=n&&yi.mirror.getNode(n),i=r&&yi.mirror.getMeta(r),o=i&&bQ(i)?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(s=>
991s.type===Ru.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:gQ(o.attributes)}}:{}}}function vQ(e){const{target:t,message:n}=_Q(e);return or({category:`ui.${e.name}`,...Qk(t,n)})}function _Q(e){const t=e.name==="click";let n,r=null;try{r=t?zk(e.event):Gk(e.event),n=Ii(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function bQ(e){return e.type===Ru.Element}function wQ(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=SQ(t);n&&Ac(e,n)}function SQ(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:s}=e;if(!s||kQ(s)||!o)return null;const a=t||r||i,c=o.length===1;if(!a&&c)return null;const l=Ii(s,{maxStringLength:200})||"<unknown>",u=Qk(s,l);return or({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}function kQ(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const tb={resource:xQ,paint:TQ,navigation:IQ};function EQ(e){return e.map(CQ).filter(Boolean)}function CQ(e){return tb[e.entryType]?tb[e.entryType](e):null}function Ts(e){return((vn||it.performance.timeOrigin)+e)/1e3}function TQ(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=Ts(i);return{type:n,name:r,start:o,end:o+t,data:void 0}}function IQ(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:f,redirectCount:d,startTime:h,transferSize:p,type:m}=e;return i===0?null:{type:`${t}.${m}`,start:Ts(h),end:Ts(o),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:o,redirectCount:d}}}function xQ(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ts(o),end:Ts(i),name:r,data:{size:l,statusCode:c,decodedBodySize:s,encodedBodySize:a}}}function AQ(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,i=e.value,o=Ts(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:i,size:i,nodeId:r?yi.mirror.getId(r):void 0}}}function RQ(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(ws(i,n))}),r.push(nk(({metric:i})=>{e.replayPerformanceEntries.push(AQ(i))})),()=>{r.forEach(i=>i())}}const tt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,OQ='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,465 bytes, line 991
991,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
991++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function MQ(){const e=new Blob([OQ]);return URL.createObjectURL(e)}function Kt(e,t){tt&&(z.info(e),t&&Kk(e))}function ss(e,t){tt&&(z.info(e),t&&setTimeout(()=>{Kk(e)},0))}function Kk(e){xi({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}
991class s1 extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Xg}.`)}}class Yk{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Xg)throw new s1;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?o1(t):null}}class DQ{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){Kt("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,o)=>{const s=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){tt&&z.error("[Replay]",c.response),o(new Error("Error in compression worker"));return}i(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class NQ{constructor(t){this._worker=new DQ(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=o1(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Xg?Promise.reject(new s1):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{tt&&z.warn('[Replay] Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class PQ{constructor(t){this._fallback=new Yk,this._compression=new NQ(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{Kt("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const i of t)r.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(i){tt&&z.warn("[Replay] Failed to add events when switching buffers.",i)}}}function LQ({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=$Q(t);if(n)return n}return Kt("[Replay] Using simple buffer"),new Yk}function $Q(e){try{const t=e||FQ();if(!t)return;Kt(`[Replay] Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new PQ(n)}catch{Kt("[Replay] Failed to create compression worker")}}function FQ(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?MQ():""}function a1(){try{return"sessionStorage"in it&&!!it.sessionStorage}catch{return!1}}function BQ(e){HQ(),e.session=void 0}function HQ(){if(a1())try{it.sessionStorage.removeItem(Jg)}catch{}}function Jk(e){return e===void 0?!1:Math.random()<e}function Zk(e){const t=Date.now(),n=e.id||mt(),r=e.started||t,i=e.lastActivity||t,o=e.segmentId||0,s=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:s,previousSessionId:a}}function c1(e){if(a1())try{it.sessionStorage.setItem(Jg,JSON.stringify(e))}catch{}}function jQ(e,t){return Jk(e)?"session":t?"buffer":!1}function nb({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=jQ(e,t),o=Zk({sampled:i,previousSessionId:r});return n&&c1(o),o}function VQ(e){if(!a1())return null;try{const t=it.sessionStorage.getItem(Jg);if(!t)return null;const n=JSON.parse(t);return ss("[Replay] Loading existing session",e),Zk(n)}catch{return null}}function um(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Xk(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return um(e.started,t,r)||um(e.lastActivity,n,r)}function eE(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Xk(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function eh({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){const o=i.stickySession&&VQ(e);return o?eE(o,{sessionIdleExpire:t,maxReplayDuration:n})?(ss("[Replay] Session in sessionStorage is expired, creating new one..."),nb(i,{previousSessionId:o.id})):o:(ss("[Replay] Creating new session",e),nb(i,{previousSessionId:r}))}function UQ(e){return e.type===Ae.Custom}
991function l1(e,t,n){return nE(e,t)?(tE(e,t,n),!0):!1}function WQ(e,t,n){return nE(e,t)?tE(e,t,n):Promise.resolve(null)}async function tE(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),i=qQ(t,r.beforeAddRecordingEvent);return i?await e.eventBuffer.addEvent(i):void 0}catch(r){const i=r&&r instanceof s1?"addEventSizeExceeded":"addEvent";tt&&z.error(r),await e.stop({reason:i});const o=Ze();o&&o.recordDroppedEvent("internal_sdk_error","replay")}}function nE(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=o1(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Kt(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function qQ(e,t){try{if(typeof t=="function"&&UQ(e))return t(e)}catch(n){return tt&&z.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function u1(e){return!e.type}function fm(e){return e.type==="transaction"}function zQ(e){return e.type==="replay_event"}function rb(e){return e.type==="feedback"}function rE(e){const t=KQ();return(n,r)=>{if(!e.isEnabled()||!u1(n)&&!fm(n))return;const i=r&&r.statusCode;if(!(t&&(!i||i<200||i>=300))){if(fm(n)){GQ(e,n);return}QQ(e,n)}}}function GQ(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function QQ(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function KQ(){const e=Ze();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function YQ(e){return t=>{!e.isEnabled()||!u1(t)||JQ(e,t)}}function JQ(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=or({category:"replay.hydrate-error"});Ac(e,r)}}function ZQ(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function XQ(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ae.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function eK(e,t){return e.recordingMode!=="buffer"||t.message===Zg||!t.exception||t.type?!1:Jk(e.getOptions().errorSampleRate)}function tK(e,t=!1){const n=t?rE(e):void 0;return Object.assign((r,i)=>e.isEnabled()?zQ(r)?(delete r.breadcrumbs,r):!u1(r)&&!fm(r)&&!rb(r)||!e.checkAndHandleExpiredSession()?r:rb(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),XQ(e,r),r):ZQ(r,i)&&!e.getOptions()._experiments.captureExceptions?(tt&&z.log("[Replay] Ignoring error from rrweb internals",r),null):((eK(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function $f(e,t){return t.map(({type:n,start:r,end:i,name:o,data:s})=>{const a=e.throttledAddEvent({type:Ae.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:i,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function nK(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function rK(e){return t=>{if(!e.isEnabled())return;const n=nK(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>($f(e,[n]),!1)))}}function iK(e,t){return tt&&e.getOptions()._experiments.traceInternals?!1:tW(t,Ze())}function Ff(e,t){e.isEnabled()&&t!==null&&(iK(e,t.name)||e.addUpdate(()=>($f(e,[t]),!0)))}function oK(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;const{method:o,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:o,statusCode:i?i.status:void 0}}}function sK(e){return t=>{if(!e.isEnabled())return;const n=oK(t);Ff(e,n)}}function aK(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[ci];if(!t||!n||!i)return null;const{method:o,url:s,status_code:a}=i;return s===void 0?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:o,statusCode:a}}}function cK(e){return t=>{if(!e.isEnabled())return;const n=aK(t);Ff(e,n)}}function Bf(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=aE(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function iE(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function oE(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[aE(e)];if(!e)return[void 0]}catch{return tt&&z.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return tt&&z.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ou(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function sE(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:Zt({method:o,statusCode:s,request:a,response:c})}}function sc(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}
991function vi(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:o}=lK(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function dm(e,t){return Object.keys(e).reduce((n,r)=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function aE(e){return new URLSearchParams(e).toString()}function lK(e){if(!e||typeof e!="string")return{body:e};const t=e.length>j_,n=uK(e);if(t){const r=e.slice(0,j_);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function uK(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Mu(e,t){const n=fK(e);return $s(n,t)}function fK(e,t=it.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(it.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function dK(e,t,n){try{const r=await pK(e,t,n),i=sE("resource.fetch",r);Ff(n.replay,i)}catch(r){tt&&z.error("[Replay] Failed to capture fetch breadcrumb",r)}}function hK(e,t,n){const{input:r,response:i}=t,o=r?cE(r):void 0,s=Bf(o,n.textEncoder),a=i?iE(i.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),a!==void 0&&(e.data.response_body_size=a)}async function pK(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:s,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,f=Mu(s,n.networkDetailAllowUrls)&&!Mu(s,n.networkDetailDenyUrls),d=f?mK(n,t.input,l):sc(l),h=await gK(f,n,t.response,u);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:c,request:d,response:h}}function mK({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?_K(n,t):{};if(!e)return vi(i,r,void 0);const o=cE(n),[s,a]=oE(o),c=vi(i,r,s);return a?Ou(c,a):c}async function gK(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,o){if(!e&&o!==void 0)return sc(o);const s=i?lE(i.headers,r):{};if(!i||!t&&o!==void 0)return vi(s,o,void 0);const[a,c]=await vK(i),l=yK(a,{networkCaptureBodies:t,textEncoder:n,responseBodySize:o,captureDetails:e,headers:s});return c?Ou(l,c):l}function yK(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:i,headers:o}){try{const s=e&&e.length&&r===void 0?Bf(e,n):r;return i?t?vi(o,s,e):vi(o,s,void 0):sc(s)}catch(s){return tt&&z.warn("[Replay] Failed to serialize response body",s),vi(o,r,void 0)}}async function vK(e){const t=bK(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await wK(t)]}catch(n){return tt&&z.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function cE(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function lE(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function _K(e,t){return e.length===1&&typeof e[0]!="string"?ib(e[0],t):e.length===2?ib(e[1],t):{}}function ib(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?lE(n,t):Array.isArray(n)?{}:dm(n,t):{}}function bK(e){try{return e.clone()}catch(t){tt&&z.warn("[Replay] Failed to clone response body",t)}}function wK(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);SK(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function SK(e){return await e.text()}async function kK(e,t,n){try{const r=CK(e,t,n),i=sE("resource.xhr",r);Ff(n.replay,i)}catch(r){tt&&z.error("[Replay] Failed to capture xhr breadcrumb",r)}}function EK(e,t,n){const{xhr:r,input:i}=t;if(!r)return;const o=Bf(i,n.textEncoder),s=r.getResponseHeader("content-length")?iE(r.getResponseHeader("content-length")):AK(r.response,r.responseType,n.textEncoder);o!==void 0&&(e.data.request_body_size=o),s!==void 0&&(e.data.response_body_size=s)}function CK(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:f,response_body_size:d}=e.data;if(!c)return null;if(!a||!Mu(c,n.networkDetailAllowUrls)||Mu(c,n.networkDetailDenyUrls)){const S=sc(f),k=sc(d);return{startTimestamp:i,endTimestamp:o,url:c,method:l,statusCode:u,request:S,response:k}}const h=a[ci],p=h?dm(h.request_headers,n.networkRequestHeaders):{},m=dm(TK(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?oE(s):[void 0],[_,v]=n.networkCaptureBodies?IK(a):[void 0],b=vi(p,f,y),w=vi(m,d,_);return{startTimestamp:i,endTimestamp:o,url:c,method:l,statusCode:u,request:g?Ou(b,g):b,response:v?Ou(w,v):w}}function TK(e){const t=e.getAllResponseHeaders();return t?t.split(`\r 992`).reduce((n,r)=>{const[i,o]=r.split(": ");return n[i.toLowerCase()]=o,n},{}):{}}function IK(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return xK(e.response,e.responseType)}catch(n){t.push(n)}return tt&&z.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function xK(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return tt&&z.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return tt&&z.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}
992function AK(e,t,n){try{const r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Bf(r,n)}catch{return}}function RK(e){const t=Ze();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",(l,u)=>OK(c,l,u)):(Lg(sK(e)),$g(cK(e)))}catch{}}function OK(e,t,n){if(t.data)try{MK(t)&&NK(n)&&(EK(t,n,e),kK(t,n,e)),DK(t)&&PK(n)&&(hK(t,n,e),dK(t,n,e))}catch{tt&&z.warn("Error when enriching network breadcrumb")}}function MK(e){return e.category==="xhr"}function DK(e){return e.category==="fetch"}function NK(e){return e&&e.xhr}function PK(e){return e&&e.response}let ob=null;function LK(e){return!!e.category}const $K=e=>t=>{if(!e.isEnabled())return;const n=FK(t);n&&Ac(e,n)};function FK(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return ob===t||!t||(ob=t,!LK(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?BK(t):or(t)}function BK(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return or(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>fl?(n=!0,`${i.slice(0,fl)}â¦`):i;if(typeof i=="object")try{const o=Xn(i,7);return JSON.stringify(o).length>fl?(n=!0,`${JSON.stringify(o,null,2).slice(0,fl)}â¦`):o}catch{}return i});return or({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function HK(e){const t=cn(),n=Ze();t.addScopeListener($K(e)),h4(yQ(e)),If(rK(e)),RK(e);const r=tK(e,!sb(n));n&&n.addEventProcessor?n.addEventProcessor(r):QU(r),sb(n)&&(n.on("beforeSendEvent",YQ(e)),n.on("afterSendEvent",rE(e)),n.on("createDsc",i=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(i.replay_id=o)}),n.on("startTransaction",i=>{e.lastTransaction=i}),n.on("finishTransaction",i=>{e.lastTransaction=i}),n.on("beforeSendFeedback",(i,o)=>{const s=e.getSessionId();o&&o.includeReplay&&e.isEnabled()&&s&&i.contexts&&i.contexts.feedback&&(i.contexts.feedback.replay_id=s)}))}function sb(e){return!!(e&&e.on)}async function jK(e){try{return Promise.all($f(e,[VK(it.performance.memory)]))}catch{return[]}}function VK(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function UK(e,t,n){let r,i,o;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){i!==void 0&&clearTimeout(i),o!==void 0&&clearTimeout(o),i=o=void 0}function l(){return i!==void 0||o!==void 0?a():r}function u(){return i&&clearTimeout(i),i=setTimeout(a,t),s&&o===void 0&&(o=setTimeout(a,s)),r}return u.cancel=c,u.flush=l,u}function WK(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){tt&&z.warn("[Replay] Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&dQ(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!l1(e,n,i))return!0;if(!i)return!1;if(zK(e,i),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const o=e.eventBuffer.getEarliestTimestamp();o&&(Kt(`[Replay] Updating session start time to earliest event in buffer to ${new Date(o)}`,e.getOptions()._experiments.traceInternals),e.session.started=o,e.getOptions().stickySession&&c1(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function qK(e){const t=e.getOptions();return{type:Ae.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function zK(e,t){!t||!e.session||e.session.segmentId!==0||l1(e,qK(e),!1)}function GK(e,t,n,r){return Di(w4(e,Hg(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function QK({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} 993`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function KK({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:i};e.emit&&e.emit("preprocessEvent",r,o);const s=await I4(e.getOptions(),r,o,t,e,Ni());if(!s)return null;s.platform=s.platform||"javascript";
993const a=e.getSdkMetadata&&e.getSdkMetadata(),{name:c,version:l}=a&&a.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0"},s}async function YK({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=QK({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,f=Ze(),d=cn(),h=f&&f.getTransport(),p=f&&f.getDsn();if(!f||!h||!p||!o.sampled)return;const m={type:Nz,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},y=await KK({scope:d,client:f,replayId:t,event:m});if(!y){f.recordDroppedEvent("event_processor","replay",m),Kt("An event processor returned `null`, will not send event.");return}delete y.sdkProcessingMetadata;const g=GK(y,s,p,f.getOptions().tunnel);let _;try{_=await h.send(g)}catch(b){const w=new Error(Zg);try{w.cause=b}catch{}throw w}if(!_)return _;if(typeof _.statusCode=="number"&&(_.statusCode<200||_.statusCode>=300))throw new uE(_.statusCode);const v=k4({},_);if(S4(v,"replay"))throw new fE(v);return _}class uE extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class fE extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function dE(e,t={count:0,interval:Hz}){const{recordingData:n,options:r}=e;if(n.length)try{return await YK(e),!0}catch(i){if(i instanceof uE||i instanceof fE)throw i;if(iU("Replays",{_retryCount:t.count}),tt&&r._experiments&&r._experiments.captureExceptions&&Sc(i),t.count>=jz){const o=new Error(`${Zg} - max retries exceeded`);try{o.cause=i}catch{}throw o}return t.interval*=++t.count,new Promise((o,s)=>{setTimeout(async()=>{try{await dE(e,t),o(!0)}catch(a){s(a)}},t.interval)})}}const hE="__THROTTLED",JK="__SKIPPED";function ZK(e,t,n){const r=new Map,i=a=>{const c=a-n;r.forEach((l,u)=>{u<c&&r.delete(u)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let s=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(i(c),o()>=t){const u=s;return s=!0,u?JK:hE}s=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...a)}}class ri{constructor({options:t,recordingOptions:n}){ri.prototype.__init.call(this),ri.prototype.__init2.call(this),ri.prototype.__init3.call(this),ri.prototype.__init4.call(this),ri.prototype.__init5.call(this),ri.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Pz,sessionIdleExpire:Lz},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=UK(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ZK((s,a)=>WQ(this,s,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),o=r?{threshold:Math.min(Vz,r),timeout:r,scrollTimeout:Uz,ignoreSelector:i?i.join(","):""}:void 0;o&&(this.clickDetector=new cQ(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ss(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");ss("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const t=eh({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}
993startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");ss("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=eh({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=yi({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:Bz},emit:WK(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{Kt(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,BQ(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Kt("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Kt("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Kt("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&um(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${it.location.pathname}${it.location.hash}${it.location.search}`,n=`${it.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===hE){const i=or({category:"replay.throttled"});this.addUpdate(()=>!l1(this,{type:nQ,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastTransaction||cn().getTransaction(),r=(t&&Pt(t).data||{})[jn];if(!(!t||!r||!["route","custom"].includes(r)))return Pt(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=LQ({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){tt&&z.error("[Replay]",t),tt&&this._options._experiments&&this._options._experiments.captureExceptions&&Sc(t)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=eh({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return eE(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{it.document.addEventListener("visibilitychange",this._handleVisibilityChange),it.addEventListener("blur",this._handleWindowBlur),it.addEventListener("focus",this._handleWindowFocus),it.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(HK(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=RQ(this)}_removeListeners(){try{it.document.removeEventListener("visibilitychange",this._handleVisibilityChange),it.removeEventListener("blur",this._handleWindowBlur),it.removeEventListener("focus",this._handleWindowFocus),it.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{it.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
993dTasks()}}__init2(){this._handleWindowBlur=()=>{const t=or({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=or({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{wQ(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Xk(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Kt("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ae.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=EQ(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all($f(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){tt&&z.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await jK(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await dE({replayId:t,recordingData:o,segmentId:i,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=Ze();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){tt&&z.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const o=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(o||s){Kt(`[Replay] Session duration (${Math.floor(i/1e3)}s) is too ${o?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),o&&this._debouncedFlush();return}const a=this.eventBuffer;if(a&&this.session.segmentId===0&&!a.hasCheckout&&Kt("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){tt&&z.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&c1(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>i||o){const s=or({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(s)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function sa(e,t,n,r){const i=typeof r=="string"?r.split(","):[],o=[...e,...i,...t];return typeof n<"u"&&(typeof n=="string"&&o.push(`.${n}`),dr(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),o.join(",")}function XK({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:o,blockSelector:s,maskTextClass:a,maskTextSelector:c,ignoreClass:l}){const u=['base[href="/"]'],f=sa(e,[".sentry-mask","[data-sentry-mask]"],a,c),d=sa(t,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:f,unmaskTextSelector:d,blockSelector:sa(n,[".sentry-block","[data-sentry-block]",...u],o,s),unblockSelector:sa(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:sa(i,[".sentry-ignore","[data-sentry-ignore]",'
993input[type="file"]'],l)};return o instanceof RegExp&&(h.blockClass=o),a instanceof RegExp&&(h.maskTextClass=a),h}function eY({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const ab='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',tY=["content-length","content-type","accept"];let cb=!1;class Hf{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=$z,flushMaxDelay:n=Fz,minReplayDuration:r=Wz,maxReplayDuration:i=V_,stickySession:o=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},sessionSampleRate:l,errorSampleRate:u,maskAllText:f=!0,maskAllInputs:d=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:y=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:v=[],networkCaptureBodies:b=!0,networkRequestHeaders:w=[],networkResponseHeaders:S=[],mask:k=[],maskAttributes:R=["title","placeholder"],unmask:A=[],block:T=[],unblock:$=[],ignore:D=[],maskFn:H,beforeAddRecordingEvent:ce,beforeErrorSampling:K,blockClass:F,blockSelector:V,maskInputOptions:W,maskTextClass:de,maskTextSelector:C,ignoreClass:O}={}){this.name=Hf.id;const B=XK({mask:k,unmask:A,block:T,unblock:$,ignore:D,blockClass:F,blockSelector:V,maskTextClass:de,maskTextSelector:C,ignoreClass:O});if(this._recordingOptions={maskAllInputs:d,maskAllText:f,maskInputOptions:{...W||{},password:!0},maskTextFn:H,maskInputFn:H,maskAttributeFn:(Q,Y,re)=>eY({maskAttributes:R,maskAllText:f,privacyOptions:B,key:Q,value:Y,el:re}),...B,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:Q=>{try{Q.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,qz),maxReplayDuration:Math.min(i,V_),stickySession:o,sessionSampleRate:l,errorSampleRate:u,useCompression:s,workerUrl:a,blockAllMedia:h,maskAllInputs:d,maskAllText:f,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:y,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:v,networkCaptureBodies:b,networkRequestHeaders:lb(w),networkResponseHeaders:lb(S),beforeAddRecordingEvent:ce,beforeErrorSampling:K,_experiments:c},typeof l=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. 994This option is deprecated and will be removed soon. 995Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: 996Sentry.init({ replaysSessionSampleRate: ${l} })`),this._initialOptions.sessionSampleRate=l),typeof u=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. 997This option is deprecated and will be removed soon. 998Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: 999Sentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ab}`:ab),this._isInitialized&&c_())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return cb}set _isInitialized(t){cb=t}setupOnce(){c_()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=nY(this._initialOptions);this._replay=new ri({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const n=Ze().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Hf.__initStatic();function nY(e){const t=Ze(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Zt(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&dr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(dr(()=>{console.warn("SDK client is not available.")}),r)}function lb(e){return[...tY,...e.map(t=>t.toLowerCase())]}
999const pE=["activate","mount","update"],rY=/(?:^|[-_])(\w)/g,iY=e=>e.replace(rY,t=>t.toUpperCase()).replace(/[-_]/g,""),oY="<Root>",th="<Anonymous>",sY=(e,t)=>e.repeat?e.repeat(t):e,Pa=(e,t)=>{if(!e)return th;if(e.$root===e)return oY;if(!e.$options)return th;const n=e.$options;let r=n.name||n._componentTag;const i=n.__file;if(!r&&i){const o=i.match(/([^/\\]+)\.vue$/);o&&(r=o[1])}return(r?`<${iY(r)}>`:th)+(i&&t!==!1?` at ${i}`:"")},aY=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return` 1000 1001found in 1002 1003${t.map((i,o)=>`${(o===0?"---> ":sY(" ",5+o*2))+(Array.isArray(i)?`${Pa(i[0])}... (${i[1]} recursive calls)`:Pa(i))}`).join(` 1004`)}`}return` 1005 1006(found in ${Pa(e)})`},cY=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(o,s,a)=>{const c=Pa(s,!1),l=s?aY(s):"",u={componentName:c,lifecycleHook:a,trace:l};if(t.attachProps&&s&&(s.$options&&s.$options.propsData?u.propsData=s.$options.propsData:s.$props&&(u.propsData=s.$props)),setTimeout(()=>{Sc(o,{captureContext:{contexts:{vue:u}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,o,s,a),t.logErrors){const f=typeof console<"u",d=`Error in ${a}: "${o&&o.toString()}"`;r?r.call(null,d,s,l):f&&!i&&dr(()=>{console.error(`[Vue warn]: ${d}${l}`)})}}},lY=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ub="ui.vue",uY={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function fY(){return cn().getTransaction()}function dY(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const hY=e=>{const t=(e.hooks||[]).concat(pE).filter((r,i,o)=>o.indexOf(r)===i),n={};for(const r of t){const i=uY[r];if(!i){lY&&z.warn(`Unknown hook: ${r}`);continue}for(const o of i)n[o]=function(){const s=this.$root===this;s&&Zp()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||_u({name:"Application Render",op:`${ub}.render`,origin:"auto.ui.vue"}));const a=Pa(this,!1),c=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(a)>-1:e.trackComponents;if(!(!s&&!c))if(this.$_sentrySpans=this.$_sentrySpans||{},o==i[0]){if(this.$root&&this.$root.$_sentryRootSpan||Zp()){const u=this.$_sentrySpans[r];u&&u.end(),this.$_sentrySpans[r]=_u({name:`Vue <${a}>`,op:`${ub}.${r}`,origin:"auto.ui.vue"})}}else{const l=this.$_sentrySpans[r];if(!l)return;l.end(),dY(this,Hs(),e.timeout)}}}return n},pY=Ne,mY={Vue:pY.Vue,attachProps:!0,logErrors:!0,hooks:pE,timeout:2e3,trackComponents:!1},mE="Vue",gY=(e={})=>({name:mE,setupOnce(){},setup(t){yY(t,e)}}),gE=gY;jr(mE,gE);function yY(e,t){const n={...mY,...e.getOptions(),...t};if(!n.Vue&&!n.app){dr(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?Pg(n.app).forEach(i=>fb(i,n)):n.Vue&&fb(n.Vue,n)}const fb=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&dr(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),cY(e,t),So(t)&&e.mixin(hY({...t,...t.tracingOptions}))};function vY(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:nc}],version:nc}},defaultIntegrations:[...Ck(),gE()],...e};Mz(t)}function _Y(e,t={}){return(n,r=!0,i=!0)=>{r&&Ge&&Ge.location&&n({name:Ge.location.pathname,op:"pageload",attributes:{[Tr]:"auto.pageload.vue",[jn]:"url"}}),bY(e,{routeLabel:t.routeLabel||"name",instrumentNavigation:i,instrumentPageLoad:r},n)}}function bY(e,t,n){e.onError(r=>Sc(r,{mechanism:{handled:!1}})),e.beforeEach((r,i,o)=>{const s=i.name==null&&i.matched.length===0,a={[Tr]:"auto.navigation.vue"};for(const u of Object.keys(r.params))a[`params.${u}`]=r.params[u];for(const u of Object.keys(r.query)){const f=r.query[u];f&&(a[`query.${u}`]=f)}let c=r.path,l="url";if(r.name&&t.routeLabel!=="path"?(c=r.name.toString(),l="custom"):r.matched[0]&&r.matched[0].path&&(c=r.matched[0].path,l="route"),t.instrumentPageLoad&&s){const u=fY();u&&((Pt(u).data||{})[jn]!=="custom"&&(u.updateName(c),u.setAttribute(jn,l)),u.setAttributes({...a,[Tr]:"auto.pageload.vue"}))}t.instrumentNavigation&&!s&&(a[jn]=l,n({name:c,op:"navigation",attributes:a})),o&&o()})}const wY=()=>{const e=$e(),{public:{appEnv:t,sentry:n}}=en();Qe(()=>{n.dsn&&vY({app:e.vueApp,dsn:n.dsn,environment:typeof t=="string"?t:void 0,integrations:[new Sq({rout
1006ingInstrumentation:_Y(e.$router)}),new Hf],tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1})})},SY=wg(jF),kY=wg(FB),EY={id:"app",class:"font-inter pt-2 bg-surface-primary flex flex-col w-full min-h-screen"},CY={key:0,class:"w-full hidden lg:grid place-items-center my-4"},TY={class:"mx-auto w-full lg:w-max"},IY={class:"xl:grid xl:grid-cols-[180px_minmax(0,1fr)_180px] gap-8"},xY={key:0,class:"hidden xl:block"},AY={class:"sticky top-4"},RY={key:1,class:"hidden xl:block"},OY={class:"sticky top-4"},MY=xe({__name:"app",setup(e){const t=Fr(),n=se(()=>t.query.hideMobileNavBar),{public:{ewnBaseUrl:r}}=en(),{isInitialized:i}=wn();Ij(),wY(),b9({script:[{src:"https://adstella-cdn.relevant-digital.com/static/tags/68341f1d0a012f8362e298aa.js",async:!0},{src:"https://securepubads.g.doubleclick.net/tag/js/gpt.js",async:!0}],bodyAttrs:{class:{"overflow-hidden":!i}}}),Oe(()=>i,()=>{document.body.classList.remove("overflow-hidden")},{immediate:!0}),w9({creator:"@ewnreporter",twitterCreator:"@ewnreporter",twitterSite:"@ewnreporter",twitterCard:"summary_large_image",ogType:"website",ogSiteName:"EWN",ogImage:()=>`${r}/images/fallback_1200x630.jpg`,twitterImage:()=>`${r}/images/fallback_1600x900.jpg`,title:"EWN: Eyewitness News",ogTitle:"EWN: Eyewitness News",twitterTitle:"EWN: Eyewitness News",keywords:"ewn, ewn news, news, eyewitness news, eye witness news, latest news, news today, ewn south africa, ewn-news, primedia+, primedia plus, prime media plus",description:"Stay ahead of the curve with the latest local and international news, ensuring you never miss a beat with our daily bulletin. Count on EWN as your ultimate source for staying informed every single day.",ogDescription:"Stay ahead of the curve with the latest local and international news, ensuring you never miss a beat with our daily bulletin. Count on EWN as your ultimate source for staying informed every single day.",twitterDescription:"Stay ahead of the curve with the latest local and international news, ensuring you never miss a beat with our daily bulletin. Count on EWN as your ultimate source for staying informed every single day."}),Qe(()=>{typeof window<"u"&&window.googletag&&(window.googletag=window.googletag||{cmd:[]},googletag.cmd.push(function(){googletag.pubads().disableInitialLoad(),googletag.enableServices()}))});const s=se(()=>["/topics","/","/latest","/ewn-tv","/podcasts"].some(l=>l==="/"?t.path==="/":t.path.includes(l))),a=se(()=>{var c,l,u;return((u=(l=Io[(c=t.meta.custom)==null?void 0:c.pageName])==null?void 0:l[0])==null?void 0:u.id)||Io.side[0].id});return(c,l)=>{const u=FF,f=SY,d=wS,h=UF,p=$B,m=kY,y=Ej,g=Cj;return U(),Ce(g,null,{default:Be(()=>{var _,v,b,w;return[L("div",EY,[q(n)?De("",!0):(U(),Ce(u,{key:0})),he(d,null,{default:Be(()=>[q(s)?(U(),fe("div",CY,[(U(),Ce(f,{key:q(t).fullPath,"slot-id":("AdUnits"in c?c.AdUnits:q(Io)).takeOver[0].id,sizes:("AdUnits"in c?c.AdUnits:q(Io)).takeOver[0].size,topic:q(t).params.topic||void 0},null,8,["slot-id","sizes","topic"]))])):De("",!0)]),_:1}),L("div",TY,[L("div",IY,[q(s)&&((_=q(t).meta.custom)==null?void 0:_.showSidebarAds)===!0?(U(),fe("div",xY,[L("div",AY,[(U(),Ce(f,{key:q(t).fullPath,"slot-id":q(a),"panel-side":"left",topic:q(t).params.topic||void 0,sizes:("AdUnits"in c?c.AdUnits:q(Io)).side[0].size},null,8,["slot-id","topic","sizes"]))])])):De("",!0),L("div",{class:Ft(["px-4",[((v=q(t).meta.custom)==null?void 0:v.layout)==="wide"?"lg:max-w-[1280px]":"lg:max-w-[926px]",((b=q(t).meta.custom)==null?void 0:b.showSidebarAds)!==!0&&"xl:col-span-3"]])},[he(h),q(n)?De("",!0):(U(),Ce(p,{key:0}))],2),q(s)&&((w=q(t).meta.custom)==null?void 0:w.showSidebarAds)===!0?(U(),fe("div",RY,[L("div",OY,[(U(),Ce(f,{key:q(t).fullPath,"slot-id":q(a),"panel-side":"right",topic:q(t).params.topic||void 0,sizes:("AdUnits"in c?c.AdUnits:q(Io)).side[0].size},null,8,["slot-id","topic","sizes"]))])])):De("",!0)])]),he(m),he(y)])]}),_:1})}}}),DY={key:0,class:"flex flex-col space-y-2 lg:space-y-3 text-content-primary relative border-b border-solid border-surface-03 pb-4 lg:pb-8 group hover:border-brand-ewn-blue-translucent transition-colors duration-500"},NY={key:0,class:"text-paragraph-xs text-content-secondary mb-1 lg:mb-2"},PY={key:1,class:"absolute inset-x-[0.69rem] bottom-2 flex justify-end items-center gap-spacing-xs"},LY=xe({__name:"TeaserVertical",props:{teaser:{},hideTags:{type:Boolean},textOnly:{type:Boolean},smallTeasers:{type:Boolean}},setup(e){const t=e,n=t.teaser.publishedAt&&IS(t.teaser.publishedAt.iso8601);return(r,i)=>{const o=kg,s=kS,a=SS,c=ES,l=Ha("router-link"),u=CS;return r.teaser.id?(U(),fe("article",DY,[L("div",null,[q(n)?(U(),fe("span",NY,xt(q(n)),1)):De("",!0),L("figure",{class:Ft(["aspect-[16/9] overflow-hidden rounded-md relative",{"lg:hidden":r.textOnly}])},[he(o,{src:r.teaser.headerImage,class:"object-cover w-full"},null,8,["src"]),r.teaser.isBreakingNews&&!r.textOnly?(U(),fe("div",{key:0,class:Ft(["absolute inset-0 p-4 flex items-end",{"scale-75 md:scale-100 !p-0 md:!p-4 -ml-2 md:ml-0":r.smallTeasers}])},[he(s)],2)):De("",!0),r.teaser.__typename==="NewsMediaArticle"?(U(),fe("div",PY,[i[0]||(i[0]=L("p",{class:"text-paragraph-sm font-medium text-white"},"Watch",-1)),he(a,{class:"w-[1.125rem] h-[1.125rem]"})])):De("",!0)],2)]),L("header",null,[r.teaser.isTrending&&!r.smallTeasers?(U(),Ce(c,{key:0,class:"mb-1 md:mb-2"})):De("",!0),L("h3",{class:Ft(["tracking-tight lg:tracking-tighter font-semibold mb-1 text-black group-hover:text-ewn transition-colors duration-500 line-clamp-4",r.smallTeasers?"text-sm md:text-base":"text-lg lg:text-2xl"])},[he(l,{to:r.teaser.path},{default:Be(()=>[i[1]||(i[1]=L("span",{class:"inset-0 absolute"},null,-1)),Ye(" "+xt(r.teaser.headline),1)]),_:1},8,["to"])],2),r.teaser.tags&&!r.hideTags?(U(),Ce(u,{key:1,tags:r.teaser.tags,max:
10065,class:"relative z-10"},null,8,["tags"])):De("",!0)])])):De("",!0)}}}),$Y=(e,t)=>({total:e.newsArticle.articleList.totalCount??0,result:e.newsArticle.articleList.items.filter(n=>n.article.id!==t).map(n=>{var r;return{headline:n.article.teaserHeadline||n.article.headline,id:n.article.id,headerImage:n.article.headerImage||((r=n.article.headerMedia)==null?void 0:r.headerImage),subline:n.article.subline,overline:n.article.teaserOverline||n.article.overline,tags:n.article.tags,topics:n.article.topics,path:n.article.path,publishedAt:n.article.publishedAt,isBreakingNews:n.article.isBreakingNews,isTrending:n.article.isTrending,__typename:n.article.__typename}})}),FY=async e=>{const t={...e,topics:e!=null&&e.topic?[e.topic]:e==null?void 0:e.topics},n=await vc(Ti,t),{pending:r,error:i}=n;return{result:se(()=>n.data.value&&$Y(n.data.value,e.exclude)),error:i,loading:r}},BY={class:"flex justify-center flex-col px-4"},HY={class:"text-base font-medium space-y-4 my-4 lg:my-8"},jY={key:0,class:"grid lg:grid-cols-3 gap-4 lg:gap-8"},VY=xe({__name:"ErrorNotFound",async setup(e){let t,n;const{result:r,loading:i}=([t,n]=d2(()=>FY({first:3})),t=await t,n(),t);return(o,s)=>{var l;const a=wi,c=LY;return U(),fe("div",BY,[L("header",HY,[s[3]||(s[3]=L("h1",{class:"text-center text-brand-ewn-blue text-3xl lg:text-5xl font-bold"},"PAGE NOT FOUND",-1)),s[4]||(s[4]=L("p",null," It appears that you've lost your way either through an outdated link or a typo on the page you were trying to reach. ",-1)),L("p",null,[s[1]||(s[1]=Ye(" Please feel free to return to the ")),he(a,{to:"/",class:"text-brand-ewn-blue"},{default:Be(()=>s[0]||(s[0]=[Ye("EWN home page")])),_:1}),s[2]||(s[2]=Ye(" or see our latest news below to find the information you were looking for. "))])]),q(i)?De("",!0):(U(),fe("div",jY,[(U(!0),fe(Je,null,lr((l=q(r))==null?void 0:l.result,(u,f)=>(U(),Ce(c,{key:f,teaser:u,class:"col-span-2 lg:col-span-1",hideTags:!0},null,8,["teaser"]))),128))]))])}}}),UY={},WY={class:"text-[1.125rem] leading-[1.5rem] tracking-[-0.02rem] lg:text-[1.25rem] lg:leading-[1.75rem] lg:tracking-[-0.025rem]"};function qY(e,t){return U(),fe("h6",WY,[u2(e.$slots,"default")])}const zY=je(UY,[["render",qY]]),GY={class:"grid grid-rows-3 h-full w-full"},QY={class:"grid gap-4 place-items-center self-center"},KY=xe({__name:"Error",props:{customMessage:{}},setup(e){const t=()=>location.replace("/");return(n,r)=>{const i=zY,o=DS;return U(),fe("div",GY,[r[3]||(r[3]=L("span",null,null,-1)),L("div",QY,[r[0]||(r[0]=L("span",{class:"font-bold leading-6 text-[2.9375rem]"},"âï¸",-1)),he(i,{class:"font-bold"},{default:Be(()=>[Ye(xt(n.customMessage||"Something went wrong"),1)]),_:1}),r[1]||(r[1]=L("p",{class:"text-paragraph-sm font-medium"}
1006,"Please try again later.",-1))]),he(o,{class:"self-end mb-spacing-2xl",onClick:t},{default:Be(()=>r[2]||(r[2]=[Ye("Try again")])),_:1})])}}}),YY={class:"md:max-w-lg lg:max-w-[926px] mx-auto pt-8 w-full lg:h-screen flex flex-col items-center"},JY=xe({__name:"ErrorPage",setup(e){const t=fc();return(n,r)=>{var c,l;const i=gf,o=wi,s=VY,a=KY;return U(),fe("div",YY,[he(o,{to:"/"},{default:Be(()=>[he(i,{class:"h-[1.8rem] w-auto lg:h-[3.6rem]"})]),_:1}),((c=q(t))==null?void 0:c.message)=="Page not found"?(U(),Ce(s,{key:0})):(U(),Ce(a,{key:1,"custom-message":(l=q(t))==null?void 0:l.message},null,8,["custom-message"]))])}}}),ZY={};function XY(e,t){const n=JY;return U(),Ce(n)}const eJ=je(ZY,[["render",XY]]),tJ={key:0},db={__name:"nuxt-root",setup(e){const t=()=>null,n=$e(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r);Nt().beforeEach(c)}const i=!1;Bt(uc,Fr()),n.hooks.callHookWith(c=>c.map(l=>l()),"vue:setup");const o=fc(),s=!1;xm((c,l,u)=>{if(n.hooks.callHook("vue:error",c,l,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),dw(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>Qr(c)),!1});const a=!1;return(c,l)=>(U(),Ce(R2,{onResolve:q(r)},{default:Be(()=>[q(s)?(U(),fe("div",tJ)):q(o)?(U(),Ce(q(eJ),{key:1,error:q(o)},null,8,["error"])):q(a)?(U(),Ce(q(t),{key:2,context:q(a)},null,8,["context"])):q(i)?(U(),Ce(x8(q(i)),{key:3})):(U(),Ce(q(MY),{key:4}))]),_:1},8,["onResolve"]))}};let hb;{let e;hb=async function(){var s,a;if(e)return e;const r=!!(((s=window.__NUXT__)==null?void 0:s.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?J6(db):Y6(db),i=cT({vueApp:r});async function o(c){var l;await i.callHook("app:error",c),(l=i.payload).error||(l.error=dc(c))}r.config.errorHandler=o,i.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await fT(i,IP)}catch(c){o(c)}try{await i.hooks.callHook("app:created",r),await i.hooks.callHook("app:beforeMount",r),r.mount(oT),await i.hooks.callHook("app:mounted",r),await Tt()}catch(c){o(c)}return r},e=hb().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{hF as $,Ce as A,De as B,ym as C,en as D,uJ as E,Je as F,mP as G,kg as H,wS as I,fJ as J,Sf as K,aS as L,Ha as M,Io as N,_P as O,wg as P,jF as Q,OS as R,fa as S,dS as T,DS as U,b9 as V,R3 as W,bJ as X,an as Y,Oe as Z,je as _,L as a,mJ as a0,Fr as a1,yn as a2,w9 as a3,CS as a4,vP as a5,Le as a6,_p as a7,Rs as a8,Mi as a9,xS as aA,$e as aB,IS as aC,Im as aD,R6 as aE,kS as aF,ES as aG,TT as aH,Ki as aI,Gi as aJ,yP as aK,yJ as aL,o2 as aM,gJ as aN,hr as aO,Un as aP,sJ as aQ,oJ as aR,Bb as aS,e8 as aT,Eg as aU,_J as aV,K$ as aW,pn as aa,rJ as ab,pJ as ac,SS as ad,Tt as ae,vc as af,wn as ag,wj as ah,MF as ai,OF as aj,Sj as ak,aL as al,Bt as am,dc as an,vJ as ao,AS as ap,Nt as aq,iJ as ar,z6 as as,HP as at,kL as au,ON as av,gP as aw,sL as ax,RN as ay,wi as az,he as b,fe as c,As as d,zY as e,Ye as f,wF as g,KY as h,xe as i,oe as j,se as k,lr as l,LY as m,q as n,U as o,Ft as p,WL as q,u2 as r,Qe as s,xt as t,vS as u,hJ as v,Be as w,dJ as x,d2 as y,FY as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.