const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CCIlU82M.js","./DhXeIeUR.js","./crsArvTm.js","./BrONf5za.js","./g.CetD1WXK.css","./B4I6QTsD.js","./CICFtycw.js","./mi64PJXx.js","./BP5LeVvv.js","./B1ea5SsQ.js","./BLH_OBOE.js","./BBECRMYe.js","./BlsFU9l-.js","./BO2zNYkz.js","./xlfuIGld.js","./CXOBWSo6.js","./C7P6Z1PF.js","./CI9uuzXf.js","./DHPoCc4s.js","./hasTenantHostApi.tAEy4inf.css","./9bqlhDCt.js","./x_rD_Ya3.js","./DflUrDZG.js","./C-ZnW0EP.js","./CpM-w_h4.js","./DEyHKOIr.js","./Q-w0N0f2.js","./kZokfpnf.js","./CfSslA7A.js","./CYdrwQOF.js","./DhAMQzxY.js","./BJLPnE5Q.js","./CZ5j6Ozl.js","./9RSkfeye.js","./b2be_UsS.js","./Searchbox.7Ue5gL_5.css","./B-Ko40LS.js","./3QsnZCfe.js","./C25SXTYd.js","./XULq7GZD.js","./Footer.oLHHz4Eu.css","./BQnYyzYO.js","./N5mAeZXp.js","./Button.BVzTBofY.css","./CTASection.DHDfQRBd.css","./index.HzTonhft.css","./BhTa3CLI.js","./CYoYnwbK.js","./gzDD_N3l.js","./CHDDYL58.js","./index.C7_FIYXD.css","./B6nhmqrH.js","./5cfXiZ1g.js","./cAhgd19d.js","./index.ClrJKV1S.css","./Dqw0bNyu.js","./DBHihLfo.js","./IconCSS.CeFK9RwE.css","./CvnOPBvA.js","./custom.C44L-8sj.css","./DeuI9Vuf.js"])))=>i.map(i=>d[i]); var $I=Object.defineProperty;var r_=e=>{throw TypeError(e)};var FI=(e,t,r)=>t in e?$I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rr=(e,t,r)=>FI(e,typeof t!="symbol"?t+"":t,r),UI=(e,t,r)=>t.has(e)||r_("Cannot "+r);var ka=(e,t,r)=>(UI(e,t,"read from private field"),r?r.call(e):t.get(e)),n_=(e,t,r)=>t.has(e)?r_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Jg(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Ge={},Oi=[],an=()=>{},jI=()=>!1,dc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qg=e=>e.startsWith("onUpdate:"),Bt=Object.assign,em=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},BI=Object.prototype.hasOwnProperty,Ze=(e,t)=>BI.call(e,t),he=Array.isArray,Ri=e=>pc(e)==="[object Map]",Aw=e=>pc(e)==="[object Set]",HI=e=>pc(e)==="[object RegExp]",ye=e=>typeof e=="function",dt=e=>typeof e=="string",mo=e=>typeof e=="symbol",lt=e=>e!==null&&typeof e=="object",tm=e=>(lt(e)||ye(e))&&ye(e.then)&&ye(e.catch),Ow=Object.prototype.toString,pc=e=>Ow.call(e),VI=e=>pc(e).slice(8,-1),Rw=e=>pc(e)==="[object Object]",rm=e=>dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Li=Jg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zf=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},WI=/-(\w)/g,Mr=zf(e=>e.replace(WI,(t,r)=>r?r.toUpperCase():"")),zI=/\B([A-Z])/g,yo=zf(e=>e.replace(zI,"-$1").toLowerCase()),Gf=zf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wd=zf(e=>e?`on${Gf(e)}`:""),Tr=(e,t)=>!Object.is(e,t),Pi=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},dh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pw=e=>{const t=dt(e)?Number(e):NaN;return isNaN(t)?e:t};let o_;const qf=()=>o_||(o_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ps(e){if(he(e)){const t={};for(let r=0;r{if(r){const n=r.split(qI);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function et(e){let t="";if(dt(e))t=e;else if(he(e))for(let r=0;r!!(e&&e.__v_isRef===!0),Uo=e=>dt(e)?e:e==null?"":he(e)||lt(e)&&(e.toString===Ow||!ye(e.toString))?Mw(e)?Uo(e.value):JSON.stringify(e,Dw,2):String(e),Dw=(e,t)=>Mw(t)?Dw(e,t.value):Ri(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],s)=>(r[zd(n,s)+" =>"]=o,r),{})}:Aw(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>zd(r))}:mo(t)?zd(t):lt(t)&&!he(t)&&!Rw(t)?String(t):t,zd=(e,t="")=>{var r;return mo(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let mr;class $w{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=mr,!t&&mr&&(this.index=(mr.scopes||(mr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(sl){let t=sl;for(sl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;ol;){let t=ol;for(ol=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Bw(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Hw(e){let t,r=e.depsTail,n=r;for(;n;){const o=n.prevDep;n.version===-1?(n===r&&(r=o),sm(n),JI(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=r}function ph(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vw(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vw(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===kl))return;e.globalVersion=kl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ph(e)){e.flags&=-3;return}const r=st,n=ln;st=e,ln=!0;try{Bw(e);const o=e.fn(e._value);(t.version===0||Tr(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{st=r,ln=n,Hw(e),e.flags&=-3}}function sm(e,t=!1){const{dep:r,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let s=r.computed.deps;s;s=s.nextDep)sm(s,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function JI(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let ln=!0;const Ww=[];function Qo(){Ww.push(ln),ln=!1}function es(){const e=Ww.pop();ln=e===void 0?!0:e}function i_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=st;st=void 0;try{t()}finally{st=r}}}let kl=0;class QI{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Kf{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(!st||!ln||st===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==st)r=this.activeLink=new QI(st,this),st.deps?(r.prevDep=st.depsTail,st.depsTail.nextDep=r,st.depsTail=r):st.deps=st.depsTail=r,zw(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=st.depsTail,r.nextDep=void 0,st.depsTail.nextDep=r,st.depsTail=r,st.deps===r&&(st.deps=n)}return r}trigger(t){this.version++,kl++,this.notify(t)}notify(t){nm();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{om()}}}function zw(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)zw(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Fu=new WeakMap,Cs=Symbol(""),hh=Symbol(""),Cl=Symbol("");function or(e,t,r){if(ln&&st){let n=Fu.get(e);n||Fu.set(e,n=new Map);let o=n.get(r);o||(n.set(r,o=new Kf),o.map=n,o.key=r),o.track()}}function to(e,t,r,n,o,s){const i=Fu.get(e);if(!i){kl++;return}const a=l=>{l&&l.trigger()};if(nm(),t==="clear")i.forEach(a);else{const l=he(e),c=l&&rm(r);if(l&&r==="length"){const u=Number(n);i.forEach((f,d)=>{(d==="length"||d===Cl||!mo(d)&&d>=u)&&a(f)})}else switch((r!==void 0||i.has(void 0))&&a(i.get(r)),c&&a(i.get(Cl)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Cs)),Ri(e)&&a(i.get(hh)));break;case"delete":l||(a(i.get(Cs)),Ri(e)&&a(i.get(hh)));break;case"set":Ri(e)&&a(i.get(Cs));break}}om()}function eA(e,t){const r=Fu.get(e);return r&&r.get(t)}function ai(e){const t=Me(e);return t===e?t:(or(t,"iterate",Cl),Gr(e)?t:t.map(sr))}function Yf(e){return or(e=Me(e),"iterate",Cl),e}const tA={__proto__:null,[Symbol.iterator](){return qd(this,Symbol.iterator,sr)},concat(...e){return ai(this).concat(...e.map(t=>he(t)?ai(t):t))},entries(){return qd(this,"entries",e=>(e[1]=sr(e[1]),e))},every(e,t){return Wn(this,"every",e,t,void 0,arguments)},filter(e,t){return Wn(this,"filter",e,t,r=>r.map(sr),arguments)},find(e,t){return Wn(this,"find",e,t,sr,arguments)},findIndex(e,t){return Wn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wn(this,"findLast",e,t,sr,arguments)},findLastIndex(e,t){return Wn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Kd(this,"includes",e)},indexOf(...e){return Kd(this,"indexOf",e)},join(e){return ai(this).join(e)},lastIndexOf(...e){return Kd(this,"lastIndexOf",e)},map(e,t){return Wn(this,"map",e,t,void 0,arguments)},pop(){return Ca(this,"pop")},push(...e){return Ca(this,"push",e)},reduce(e,...t){return a_(this,"reduce",e,t)},reduceRight(e,...t){return a_(this,"reduceRight",e,t)},shift(){return Ca(this,"shift")},some(e,t){return Wn(this,"some",e,t,void 0,arguments)},splice(...e){return Ca(this,"splice",e)},toReversed(){return ai(this).toReversed()},toSorted(e){return ai(this).toSorted(e)},toSpliced(...e){return ai(this).toSpliced(...e)},unshift(...e){return Ca(this,"unshift",e)},values(){return qd(this,"values",sr)}};function qd(e,t,r){const n=Yf(e),o=n[t]();return n!==e&&!Gr(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=r(s.value)),s}),o}const rA=Array.prototype;function Wn(e,t,r,n,o,s){const i=Yf(e),a=i!==e&&!Gr(e),l=i[t];if(l!==rA[t]){const f=l.apply(e,s);return a?sr(f):f}let c=r;i!==e&&(a?c=function(f,d){return r.call(this,sr(f),d,e)}:r.length>2&&(c=function(f,d){return r.call(this,f,d,e)}));const u=l.call(i,c,n);return a&&o?o(u):u}function a_(e,t,r,n){const o=Yf(e);let s=r;return o!==e&&(Gr(e)?r.length>3&&(s=function(i,a,l){return r.call(this,i,a,l,e)}):s=function(i,a,l){return r.call(this,i,sr(a),l,e)}),o[t](s,...n)}function Kd(e,t,r){const n=Me(e);or(n,"iterate",Cl);const o=n[t](...r);return(o===-1||o===!1)&&lm(r[0])?(r[0]=Me(r[0]),n[t](...r)):o}function Ca(e,t,r=[]){Qo(),nm();const n=Me(e)[t].apply(e,r);return om(),es(),n}const nA=Jg("__proto__,__v_isRef,__isVue"),Gw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mo));function oA(e){mo(e)||(e=String(e));const t=Me(this);return or(t,"has",e),t.hasOwnProperty(e)}class qw{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(o?s?hA:Xw:s?Zw:Yw).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=he(t);if(!o){let l;if(i&&(l=tA[r]))return l;if(r==="hasOwnProperty")return oA}const a=Reflect.get(t,r,qe(t)?t:n);return(mo(r)?Gw.has(r):nA(r))||(o||or(t,"get",r),s)?a:qe(a)?i&&rm(r)?a:a.value:lt(a)?o?Zf(a):Jt(a):a}}class Kw extends qw{constructor(t=!1){super(!1,t)}set(t,r,n,o){let s=t[r];if(!this._isShallow){const l=Vo(s);if(!Gr(n)&&!Vo(n)&&(s=Me(s),n=Me(n)),!he(t)&&qe(s)&&!qe(n))return l?!1:(s.value=n,!0)}const i=he(t)&&rm(r)?Number(r)e,Nc=e=>Reflect.getPrototypeOf(e);function cA(e,t,r){return function(...n){const o=this.__v_raw,s=Me(o),i=Ri(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...n),u=r?gh:t?mh:sr;return!t&&or(s,"iterate",l?hh:Cs),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Mc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uA(e,t){const r={get(o){const s=this.__v_raw,i=Me(s),a=Me(o);e||(Tr(o,a)&&or(i,"get",o),or(i,"get",a));const{has:l}=Nc(i),c=t?gh:e?mh:sr;if(l.call(i,o))return c(s.get(o));if(l.call(i,a))return c(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&or(Me(o),"iterate",Cs),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,i=Me(s),a=Me(o);return e||(Tr(o,a)&&or(i,"has",o),or(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,l=Me(a),c=t?gh:e?mh:sr;return!e&&or(l,"iterate",Cs),a.forEach((u,f)=>o.call(s,c(u),c(f),i))}};return Bt(r,e?{add:Mc("add"),set:Mc("set"),delete:Mc("delete"),clear:Mc("clear")}:{add(o){!t&&!Gr(o)&&!Vo(o)&&(o=Me(o));const s=Me(this);return Nc(s).has.call(s,o)||(s.add(o),to(s,"add",o,o)),this},set(o,s){!t&&!Gr(s)&&!Vo(s)&&(s=Me(s));const i=Me(this),{has:a,get:l}=Nc(i);let c=a.call(i,o);c||(o=Me(o),c=a.call(i,o));const u=l.call(i,o);return i.set(o,s),c?Tr(s,u)&&to(i,"set",o,s):to(i,"add",o,s),this},delete(o){const s=Me(this),{has:i,get:a}=Nc(s);let l=i.call(s,o);l||(o=Me(o),l=i.call(s,o)),a&&a.call(s,o);const c=s.delete(o);return l&&to(s,"delete",o,void 0),c},clear(){const o=Me(this),s=o.size!==0,i=o.clear();return s&&to(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=cA(o,e,t)}),r}function im(e,t){const r=uA(e,t);return(n,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Ze(r,o)&&o in n?r:n,o,s)}const fA={get:im(!1,!1)},dA={get:im(!1,!0)},pA={get:im(!0,!1)};const Yw=new WeakMap,Zw=new WeakMap,Xw=new WeakMap,hA=new WeakMap;function gA(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mA(e){return e.__v_skip||!Object.isExtensible(e)?0:gA(VI(e))}function Jt(e){return Vo(e)?e:am(e,!1,iA,fA,Yw)}function oo(e){return am(e,!1,lA,dA,Zw)}function Zf(e){return am(e,!0,aA,pA,Xw)}function am(e,t,r,n,o){if(!lt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=mA(e);if(i===0)return e;const a=new Proxy(e,i===2?n:r);return o.set(e,a),a}function Pn(e){return Vo(e)?Pn(e.__v_raw):!!(e&&e.__v_isReactive)}function Vo(e){return!!(e&&e.__v_isReadonly)}function Gr(e){return!!(e&&e.__v_isShallow)}function lm(e){return e?!!e.__v_raw:!1}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function cm(e){return!Ze(e,"__v_skip")&&Object.isExtensible(e)&&Lw(e,"__v_skip",!0),e}const sr=e=>lt(e)?Jt(e):e,mh=e=>lt(e)?Zf(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function ue(e){return Jw(e,!1)}function fn(e){return Jw(e,!0)}function Jw(e,t){return qe(e)?e:new yA(e,t)}class yA{constructor(t,r){this.dep=new Kf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Me(t),this._value=r?t:sr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Gr(t)||Vo(t);t=n?t:Me(t),Tr(t,r)&&(this._rawValue=t,this._value=n?t:sr(t),this.dep.trigger())}}function y9(e){e.dep&&e.dep.trigger()}function He(e){return qe(e)?e.value:e}function yu(e){return ye(e)?e():He(e)}const _A={get:(e,t,r)=>t==="__v_raw"?e:He(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return qe(o)&&!qe(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function Qw(e){return Pn(e)?e:new Proxy(e,_A)}class vA{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Kf,{get:n,set:o}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function eS(e){return new vA(e)}function bA(e){const t=he(e)?new Array(e.length):{};for(const r in e)t[r]=tS(e,r);return t}class wA{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,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 eA(Me(this._object),this._key)}}class SA{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 Js(e,t,r){return qe(e)?e:ye(e)?new SA(e):lt(e)&&arguments.length>1?tS(e,t,r):ue(e)}function tS(e,t,r){const n=e[t];return qe(n)?n:new wA(e,t,r)}class EA{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Kf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=kl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&st!==this)return jw(this,!0),!0}get value(){const t=this.dep.track();return Vw(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function xA(e,t,r=!1){let n,o;return ye(e)?n=e:(n=e.get,o=e.set),new EA(n,o,r)}const Dc={},Uu=new WeakMap;let gs;function kA(e,t=!1,r=gs){if(r){let n=Uu.get(r);n||Uu.set(r,n=[]),n.push(e)}}function CA(e,t,r=Ge){const{immediate:n,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=r,c=v=>o?v:Gr(v)||o===!1||o===0?ro(v,1):ro(v);let u,f,d,p,g=!1,h=!1;if(qe(e)?(f=()=>e.value,g=Gr(e)):Pn(e)?(f=()=>c(e),g=!0):he(e)?(h=!0,g=e.some(v=>Pn(v)||Gr(v)),f=()=>e.map(v=>{if(qe(v))return v.value;if(Pn(v))return c(v);if(ye(v))return l?l(v,2):v()})):ye(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Qo();try{d()}finally{es()}}const v=gs;gs=u;try{return l?l(e,3,[p]):e(p)}finally{gs=v}}:f=an,t&&o){const v=f,S=o===!0?1/0:o;f=()=>ro(v(),S)}const m=ua(),y=()=>{u.stop(),m&&m.active&&em(m.effects,u)};if(s&&t){const v=t;t=(...S)=>{v(...S),y()}}let b=h?new Array(e.length).fill(Dc):Dc;const _=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const S=u.run();if(o||g||(h?S.some((E,x)=>Tr(E,b[x])):Tr(S,b))){d&&d();const E=gs;gs=u;try{const x=[S,b===Dc?void 0:h&&b[0]===Dc?[]:b,p];l?l(t,3,x):t(...x),b=S}finally{gs=E}}}else u.run()};return a&&a(_),u=new Fw(f),u.scheduler=i?()=>i(_,!1):_,p=v=>kA(v,!1,u),d=u.onStop=()=>{const v=Uu.get(u);if(v){if(l)l(v,4);else for(const S of v)S();Uu.delete(u)}},t?n?_(!0):b=u.run():i?i(_.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function ro(e,t=1/0,r){if(t<=0||!lt(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,qe(e))ro(e.value,t,r);else if(he(e))for(let n=0;n{ro(n,t,r)});else if(Rw(e)){for(const n in e)ro(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ro(e[n],t,r)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function hc(e,t,r,n){try{return n?e(...n):e()}catch(o){fa(o,t,r)}}function dn(e,t,r,n){if(ye(e)){const o=hc(e,t,r,n);return o&&tm(o)&&o.catch(s=>{fa(s,t,r)}),o}if(he(e)){const o=[];for(let s=0;s>>1,o=yr[n],s=Tl(o);s=Tl(r)?yr.push(e):yr.splice(IA(t),0,e),e.flags|=1,nS()}}function nS(){ju||(ju=rS.then(oS))}function Bu(e){he(e)?Ni.push(...e):To&&e.id===-1?To.splice(hi+1,0,e):e.flags&1||(Ni.push(e),e.flags|=1),nS()}function l_(e,t,r=In+1){for(;rTl(r)-Tl(n));if(Ni.length=0,To){To.push(...t);return}for(To=t,hi=0;hie.id==null?e.flags&2?-1:1/0:e.id;function oS(e){try{for(In=0;In{n._d&&E_(-1);const s=Vu(t);let i;try{i=e(...o)}finally{Vu(s),n._d&&E_(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function _9(e,t){if(Ut===null)return e;const r=od(Ut),n=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,il=e=>e&&(e.disabled||e.disabled===""),c_=e=>e&&(e.defer||e.defer===""),u_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,f_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,yh=(e,t)=>{const r=e&&e.to;return dt(r)?t?t(r):null:r},lS={name:"Teleport",__isTeleport:!0,process(e,t,r,n,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:h,createComment:m}}=c,y=il(t.props);let{shapeFlag:b,children:_,dynamicChildren:v}=t;if(e==null){const S=t.el=h(""),E=t.anchor=h("");p(S,r,n),p(E,r,n);const x=(A,N)=>{b&16&&(o&&o.isCE&&(o.ce._teleportTarget=A),u(_,A,N,o,s,i,a,l))},R=()=>{const A=t.target=yh(t.props,g),N=cS(A,t,h,p);A&&(i!=="svg"&&u_(A)?i="svg":i!=="mathml"&&f_(A)&&(i="mathml"),y||(x(A,N),_u(t,!1)))};y&&(x(r,E),_u(t,!0)),c_(t.props)?Dt(()=>{R(),t.el.__isMounted=!0},s):R()}else{if(c_(t.props)&&!e.el.__isMounted){Dt(()=>{lS.process(e,t,r,n,o,s,i,a,l,c),delete e.el.__isMounted},s);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,E=t.target=e.target,x=t.targetAnchor=e.targetAnchor,R=il(e.props),A=R?r:E,N=R?S:x;if(i==="svg"||u_(E)?i="svg":(i==="mathml"||f_(E))&&(i="mathml"),v?(d(e.dynamicChildren,v,A,o,s,i,a),mm(e,t,!0)):l||f(e,t,A,N,o,s,i,a,!1),y)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$c(t,r,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=yh(t.props,g);U&&$c(t,U,null,c,0)}else R&&$c(t,E,x,c,1);_u(t,y)}},remove(e,t,r,{um:n,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(o(c),o(u)),s&&o(l),i&16){const p=s||!il(d);for(let g=0;g{e.isMounted=!0}),da(()=>{e.isUnmounting=!0}),e}const jr=[Function,Array],uS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jr,onEnter:jr,onAfterEnter:jr,onEnterCancelled:jr,onBeforeLeave:jr,onLeave:jr,onAfterLeave:jr,onLeaveCancelled:jr,onBeforeAppear:jr,onAppear:jr,onAfterAppear:jr,onAppearCancelled:jr},fS=e=>{const t=e.subTree;return t.component?fS(t.component):t},LA={name:"BaseTransition",props:uS,setup(e,{slots:t}){const r=er(),n=RA();return()=>{const o=t.default&&hS(t.default(),!0);if(!o||!o.length)return;const s=dS(o),i=Me(e),{mode:a}=i;if(n.isLeaving)return Yd(s);const l=d_(s);if(!l)return Yd(s);let c=_h(l,i,n,r,f=>c=f);l.type!==$t&&ji(l,c);let u=r.subTree&&d_(r.subTree);if(u&&u.type!==$t&&!rn(l,u)&&fS(r).type!==$t){let f=_h(u,i,n,r);if(ji(u,f),a==="out-in"&&l.type!==$t)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave,u=void 0},Yd(s);a==="in-out"&&l.type!==$t?f.delayLeave=(d,p,g)=>{const h=pS(n,u);h[String(u.key)]=u,d[Io]=()=>{p(),d[Io]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function dS(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==$t){t=r;break}}return t}const PA=LA;function pS(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function _h(e,t,r,n,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:h,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:_}=t,v=String(e.key),S=pS(r,e),E=(A,N)=>{A&&dn(A,n,9,N)},x=(A,N)=>{const U=N[1];E(A,N),he(A)?A.every(L=>L.length<=1)&&U():A.length<=1&&U()},R={mode:i,persisted:a,beforeEnter(A){let N=l;if(!r.isMounted)if(s)N=m||l;else return;A[Io]&&A[Io](!0);const U=S[v];U&&rn(e,U)&&U.el[Io]&&U.el[Io](),E(N,[A])},enter(A){let N=c,U=u,L=f;if(!r.isMounted)if(s)N=y||c,U=b||u,L=_||f;else return;let G=!1;const re=A[Fc]=le=>{G||(G=!0,le?E(L,[A]):E(U,[A]),R.delayedLeave&&R.delayedLeave(),A[Fc]=void 0)};N?x(N,[A,re]):re()},leave(A,N){const U=String(e.key);if(A[Fc]&&A[Fc](!0),r.isUnmounting)return N();E(d,[A]);let L=!1;const G=A[Io]=re=>{L||(L=!0,N(),re?E(h,[A]):E(g,[A]),A[Io]=void 0,S[U]===e&&delete S[U])};S[U]=e,p?x(p,[A,G]):G()},clone(A){const N=_h(A,t,r,n,o);return o&&o(N),N}};return R}function Yd(e){if(gc(e))return e=fo(e),e.children=null,e}function d_(e){if(!gc(e))return aS(e.type)&&e.children?dS(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&ye(r.default))return r.default()}}function ji(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ji(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 hS(e,t=!1,r){let n=[],o=0;for(let s=0;s1)for(let s=0;sr.value,set:s=>r.value=s})}return r}function Il(e,t,r,n,o=!1){if(he(e)){e.forEach((g,h)=>Il(g,t&&(he(t)?t[h]:t),r,n,o));return}if(jo(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Il(e,t,r,n.component.subTree);return}const s=n.shapeFlag&4?od(n.component):n.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ge?a.refs={}:a.refs,f=a.setupState,d=Me(f),p=f===Ge?()=>!1:g=>Ze(d,g);if(c!=null&&c!==l&&(dt(c)?(u[c]=null,p(c)&&(f[c]=null)):qe(c)&&(c.value=null)),ye(l))hc(l,a,12,[i,u]);else{const g=dt(l),h=qe(l);if(g||h){const m=()=>{if(e.f){const y=g?p(l)?f[l]:u[l]:l.value;o?he(y)&&em(y,s):he(y)?y.includes(s)||y.push(s):g?(u[l]=[s],p(l)&&(f[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else g?(u[l]=i,p(l)&&(f[l]=i)):h&&(l.value=i,e.k&&(u[e.k]=i))};i?(m.id=-1,Dt(m,r)):m()}}}let p_=!1;const li=()=>{p_||(console.error("Hydration completed but contains mismatches."),p_=!0)},MA=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",DA=e=>e.namespaceURI.includes("MathML"),Uc=e=>{if(e.nodeType===1){if(MA(e))return"svg";if(DA(e))return"mathml"}},Si=e=>e.nodeType===8;function $A(e){const{mt:t,p:r,o:{patchProp:n,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(_,v)=>{if(!v.hasChildNodes()){r(null,_,v),Hu(),v._vnode=_;return}f(v.firstChild,_,null,null,null),Hu(),v._vnode=_},f=(_,v,S,E,x,R=!1)=>{R=R||!!v.dynamicChildren;const A=Si(_)&&_.data==="[",N=()=>h(_,v,S,E,x,A),{type:U,ref:L,shapeFlag:G,patchFlag:re}=v;let le=_.nodeType;v.el=_,re===-2&&(R=!1,v.dynamicChildren=null);let q=null;switch(U){case Bo:le!==3?v.children===""?(l(v.el=o(""),i(_),_),q=_):q=N():(_.data!==v.children&&(li(),_.data=v.children),q=s(_));break;case $t:b(_)?(q=s(_),y(v.el=_.content.firstChild,_,S)):le!==8||A?q=N():q=s(_);break;case Di:if(A&&(_=s(_),le=_.nodeType),le===1||le===3){q=_;const oe=!v.children.length;for(let ne=0;ne{R=R||!!v.dynamicChildren;const{type:A,props:N,patchFlag:U,shapeFlag:L,dirs:G,transition:re}=v,le=A==="input"||A==="option";if(le||U!==-1){G&&An(v,null,S,"created");let q=!1;if(b(_)){q=$S(null,re)&&S&&S.vnode.props&&S.vnode.props.appear;const ne=_.content.firstChild;q&&re.beforeEnter(ne),y(ne,_,S),v.el=_=ne}if(L&16&&!(N&&(N.innerHTML||N.textContent))){let ne=p(_.firstChild,v,_,S,E,x,R);for(;ne;){jc(_,1)||li();const Se=ne;ne=ne.nextSibling,a(Se)}}else if(L&8){let ne=v.children;ne[0]===` `&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(ne=ne.slice(1)),_.textContent!==ne&&(jc(_,0)||li(),_.textContent=v.children)}if(N){if(le||!R||U&48){const ne=_.tagName.includes("-");for(const Se in N)(le&&(Se.endsWith("value")||Se==="indeterminate")||dc(Se)&&!Li(Se)||Se[0]==="."||ne)&&n(_,Se,null,N[Se],void 0,S)}else if(N.onClick)n(_,"onClick",null,N.onClick,void 0,S);else if(U&4&&Pn(N.style))for(const ne in N.style)N.style[ne]}let oe;(oe=N&&N.onVnodeBeforeMount)&&Cr(oe,S,v),G&&An(v,null,S,"beforeMount"),((oe=N&&N.onVnodeMounted)||G||q)&&WS(()=>{oe&&Cr(oe,S,v),q&&re.enter(_),G&&An(v,null,S,"mounted")},E)}return _.nextSibling},p=(_,v,S,E,x,R,A)=>{A=A||!!v.dynamicChildren;const N=v.children,U=N.length;for(let L=0;L{const{slotScopeIds:A}=v;A&&(x=x?x.concat(A):A);const N=i(_),U=p(s(_),v,N,S,E,x,R);return U&&Si(U)&&U.data==="]"?s(v.anchor=U):(li(),l(v.anchor=c("]"),N,U),U)},h=(_,v,S,E,x,R)=>{if(jc(_.parentElement,1)||li(),v.el=null,R){const U=m(_);for(;;){const L=s(_);if(L&&L!==U)a(L);else break}}const A=s(_),N=i(_);return a(_),r(null,v,N,A,S,E,Uc(N),x),S&&(S.vnode.el=v.el,nd(S,v.el)),A},m=(_,v="[",S="]")=>{let E=0;for(;_;)if(_=s(_),_&&Si(_)&&(_.data===v&&E++,_.data===S)){if(E===0)return s(_);E--}return _},y=(_,v,S)=>{const E=v.parentNode;E&&E.replaceChild(_,v);let x=S;for(;x;)x.vnode.el===v&&(x.vnode.el=x.subTree.el=_),x=x.parent},b=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[u,f]}const h_="data-allow-mismatch",FA={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function jc(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(h_);)e=e.parentElement;const r=e&&e.getAttribute(h_);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:r.split(",").includes(FA[t])}}qf().requestIdleCallback;qf().cancelIdleCallback;function UA(e,t){if(Si(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Si(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const jo=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Xf(e){ye(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:o=200,hydrate:s,timeout:i,suspensible:a=!0,onError:l}=e;let c=null,u,f=0;const d=()=>(f++,c=null,p()),p=()=>{let g;return c||(g=c=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),l)return new Promise((m,y)=>{l(h,()=>m(d()),()=>y(h),f+1)});throw h}).then(h=>g!==c&&c?c:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return It({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(g,h,m){const y=s?()=>{const b=s(m,_=>UA(g,_));b&&(h.bum||(h.bum=[])).push(b)}:m;u?y():p().then(()=>!h.isUnmounted&&y())},get __asyncResolved(){return u},setup(){const g=Ft;if(fm(g),u)return()=>Zd(u,g);const h=_=>{c=null,fa(_,g,13,!n)};if(a&&g.suspense||Hi)return p().then(_=>()=>Zd(_,g)).catch(_=>(h(_),()=>n?it(n,{error:_}):null));const m=ue(!1),y=ue(),b=ue(!!o);return o&&setTimeout(()=>{b.value=!1},o),i!=null&&setTimeout(()=>{if(!m.value&&!y.value){const _=new Error(`Async component timed out after ${i}ms.`);h(_),y.value=_}},i),p().then(()=>{m.value=!0,g.parent&&gc(g.parent.vnode)&&g.parent.update()}).catch(_=>{h(_),y.value=_}),()=>{if(m.value&&u)return Zd(u,g);if(y.value&&n)return it(n,{error:y.value});if(r&&!b.value)return it(r)}}})}function Zd(e,t){const{ref:r,props:n,children:o,ce:s}=t.vnode,i=it(e,n,o);return i.ref=r,i.ce=s,delete t.vnode.ce,i}const gc=e=>e.type.__isKeepAlive,jA={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=er(),n=r.ctx;if(!n.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const o=new Map,s=new Set;let i=null;const a=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=n,d=f("div");n.activate=(b,_,v,S,E)=>{const x=b.component;c(b,_,v,0,a),l(x.vnode,b,_,v,x,a,S,b.slotScopeIds,E),Dt(()=>{x.isDeactivated=!1,x.a&&Pi(x.a);const R=b.props&&b.props.onVnodeMounted;R&&Cr(R,x.parent,b)},a)},n.deactivate=b=>{const _=b.component;qu(_.m),qu(_.a),c(b,d,null,1,a),Dt(()=>{_.da&&Pi(_.da);const v=b.props&&b.props.onVnodeUnmounted;v&&Cr(v,_.parent,b),_.isDeactivated=!0},a)};function p(b){Xd(b),u(b,r,a,!0)}function g(b){o.forEach((_,v)=>{const S=Ih(_.type);S&&!b(S)&&h(v)})}function h(b){const _=o.get(b);_&&(!i||!rn(_,i))?p(_):i&&Xd(i),o.delete(b),s.delete(b)}Oe(()=>[e.include,e.exclude],([b,_])=>{b&&g(v=>Xa(b,v)),_&&g(v=>!Xa(_,v))},{flush:"post",deep:!0});let m=null;const y=()=>{m!=null&&(Ku(r.subTree.type)?Dt(()=>{o.set(m,Bc(r.subTree))},r.subTree.suspense):o.set(m,Bc(r.subTree)))};return Or(y),vS(y),da(()=>{o.forEach(b=>{const{subTree:_,suspense:v}=r,S=Bc(_);if(b.type===S.type&&b.key===S.key){Xd(S);const E=S.component.da;E&&Dt(E,v);return}p(b)})}),()=>{if(m=null,!t.default)return i=null;const b=t.default(),_=b[0];if(b.length>1)return i=null,b;if(!Ms(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return i=null,_;let v=Bc(_);if(v.type===$t)return i=null,v;const S=v.type,E=Ih(jo(v)?v.type.__asyncResolved||{}:S),{include:x,exclude:R,max:A}=e;if(x&&(!E||!Xa(x,E))||R&&E&&Xa(R,E))return v.shapeFlag&=-257,i=v,_;const N=v.key==null?S:v.key,U=o.get(N);return v.el&&(v=fo(v),_.shapeFlag&128&&(_.ssContent=v)),m=N,U?(v.el=U.el,v.component=U.component,v.transition&&ji(v,v.transition),v.shapeFlag|=512,s.delete(N),s.add(N)):(s.add(N),A&&s.size>parseInt(A,10)&&h(s.values().next().value)),v.shapeFlag|=256,i=v,Ku(_.type)?_:v}}},BA=jA;function Xa(e,t){return he(e)?e.some(r=>Xa(r,t)):dt(e)?e.split(",").includes(t):HI(e)?(e.lastIndex=0,e.test(t)):!1}function gS(e,t){yS(e,"a",t)}function mS(e,t){yS(e,"da",t)}function yS(e,t,r=Ft){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Jf(t,n,r),r){let o=r.parent;for(;o&&o.parent;)gc(o.parent.vnode)&&HA(n,t,r,o),o=o.parent}}function HA(e,t,r,n){const o=Jf(t,e,n,!0);Qs(()=>{em(n[t],o)},r)}function Xd(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Bc(e){return e.shapeFlag&128?e.ssContent:e}function Jf(e,t,r=Ft,n=!1){if(r){const o=r[e]||(r[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Qo();const a=Ds(r),l=dn(t,r,e,i);return a(),es(),l});return n?o.unshift(s):o.push(s),s}}const _o=e=>(t,r=Ft)=>{(!Hi||e==="sp")&&Jf(e,(...n)=>t(...n),r)},dm=_o("bm"),Or=_o("m"),_S=_o("bu"),vS=_o("u"),da=_o("bum"),Qs=_o("um"),VA=_o("sp"),WA=_o("rtg"),zA=_o("rtc");function bS(e,t=Ft){Jf("ec",e,t)}const pm="components",GA="directives";function g_(e,t){return hm(pm,e,!0,t)||e}const wS=Symbol.for("v-ndc");function Qf(e){return dt(e)?hm(pm,e,!1)||e:e||wS}function b9(e){return hm(GA,e)}function hm(e,t,r=!0,n=!1){const o=Ut||Ft;if(o){const s=o.type;if(e===pm){const a=Ih(s,!1);if(a&&(a===t||a===Mr(t)||a===Gf(Mr(t))))return s}const i=m_(o[e]||s[e],t)||m_(o.appContext[e],t);return!i&&n?s:i}}function m_(e,t){return e&&(e[t]||e[Mr(t)]||e[Gf(Mr(t))])}function Wu(e,t,r,n){let o;const s=r,i=he(e);if(i||dt(e)){const a=i&&Pn(e);let l=!1;a&&(l=!Gr(e),e=Yf(e)),o=new Array(e.length);for(let c=0,u=e.length;ct(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,c=a.length;l{const s=n.fn(...o);return s&&(s.key=n.key),s}:n.fn)}return e}function Nn(e,t,r={},n,o){if(Ut.ce||Ut.parent&&jo(Ut.parent)&&Ut.parent.ce)return t!=="default"&&(r.name=t),me(),ft(bt,null,[it("slot",r,n&&n())],64);let s=e[t];s&&s._c&&(s._d=!1),me();const i=s&&SS(s(r)),a=r.key||i&&i.key,l=ft(bt,{key:(a&&!mo(a)?a:`_${t}`)+(!i&&n?"_fb":"")},i||(n?n():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function SS(e){return e.some(t=>Ms(t)?!(t.type===$t||t.type===bt&&!SS(t.children)):!0)?e:null}const vh=e=>e?KS(e)?od(e):vh(e.parent):null,al=Bt(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=>vh(e.parent),$root:e=>vh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>kS(e),$forceUpdate:e=>e.f||(e.f=()=>{um(e.update)}),$nextTick:e=>e.n||(e.n=qr.bind(e.proxy)),$watch:e=>mO.bind(e)}),Jd=(e,t)=>e!==Ge&&!e.__isScriptSetup&&Ze(e,t),KA={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return s[t]}else{if(Jd(n,t))return i[t]=1,n[t];if(o!==Ge&&Ze(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&Ze(c,t))return i[t]=3,s[t];if(r!==Ge&&Ze(r,t))return i[t]=4,r[t];bh&&(i[t]=0)}}const u=al[t];let f,d;if(u)return t==="$attrs"&&or(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(r!==Ge&&Ze(r,t))return i[t]=4,r[t];if(d=l.config.globalProperties,Ze(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:s}=e;return Jd(o,t)?(o[t]=r,!0):n!==Ge&&Ze(n,t)?(n[t]=r,!0):Ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:s}},i){let a;return!!r[i]||e!==Ge&&Ze(e,i)||Jd(t,i)||(a=s[0])&&Ze(a,i)||Ze(n,i)||Ze(al,i)||Ze(o.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ze(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function YA(){return ZA().attrs}function ZA(){const e=er();return e.setupContext||(e.setupContext=ZS(e))}function zu(e){return he(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function w9(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):Bt({},zu(e),zu(t))}function ES(e){const t=er();let r=e();return Ch(),tm(r)&&(r=r.catch(n=>{throw Ds(t),n})),[r,()=>Ds(t)]}let bh=!0;function XA(e){const t=kS(e),r=e.proxy,n=e.ctx;bh=!1,t.beforeCreate&&y_(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:g,activated:h,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:_,unmounted:v,render:S,renderTracked:E,renderTriggered:x,errorCaptured:R,serverPrefetch:A,expose:N,inheritAttrs:U,components:L,directives:G,filters:re}=t;if(c&&JA(c,n,null),i)for(const oe in i){const ne=i[oe];ye(ne)&&(n[oe]=ne.bind(r))}if(o){const oe=o.call(r,r);lt(oe)&&(e.data=Jt(oe))}if(bh=!0,s)for(const oe in s){const ne=s[oe],Se=ye(ne)?ne.bind(r,r):ye(ne.get)?ne.get.bind(r,r):an,ct=!ye(ne)&&ye(ne.set)?ne.set.bind(r):an,ve=X({get:Se,set:ct});Object.defineProperty(n,oe,{enumerable:!0,configurable:!0,get:()=>ve.value,set:We=>ve.value=We})}if(a)for(const oe in a)xS(a[oe],n,r,oe);if(l){const oe=ye(l)?l.call(r):l;Reflect.ownKeys(oe).forEach(ne=>{Is(ne,oe[ne])})}u&&y_(u,e,"c");function q(oe,ne){he(ne)?ne.forEach(Se=>oe(Se.bind(r))):ne&&oe(ne.bind(r))}if(q(dm,f),q(Or,d),q(_S,p),q(vS,g),q(gS,h),q(mS,m),q(bS,R),q(zA,E),q(WA,x),q(da,b),q(Qs,v),q(VA,A),he(N))if(N.length){const oe=e.exposed||(e.exposed={});N.forEach(ne=>{Object.defineProperty(oe,ne,{get:()=>r[ne],set:Se=>r[ne]=Se})})}else e.exposed||(e.exposed={});S&&e.render===an&&(e.render=S),U!=null&&(e.inheritAttrs=U),L&&(e.components=L),G&&(e.directives=G),A&&fm(e)}function JA(e,t,r=an){he(e)&&(e=wh(e));for(const n in e){const o=e[n];let s;lt(o)?"default"in o?s=jt(o.from||n,o.default,!0):s=jt(o.from||n):s=jt(o),qe(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[n]=s}}function y_(e,t,r){dn(he(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function xS(e,t,r,n){let o=n.includes(".")?US(r,n):()=>r[n];if(dt(e)){const s=t[e];ye(s)&&Oe(o,s)}else if(ye(e))Oe(o,e.bind(r));else if(lt(e))if(he(e))e.forEach(s=>xS(s,t,r,n));else{const s=ye(e.handler)?e.handler.bind(r):t[e.handler];ye(s)&&Oe(o,s,e)}}function kS(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(c=>Gu(l,c,i,!0)),Gu(l,t,i)),lt(t)&&s.set(t,l),l}function Gu(e,t,r,n=!1){const{mixins:o,extends:s}=t;s&&Gu(e,s,r,!0),o&&o.forEach(i=>Gu(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const a=QA[i]||r&&r[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const QA={data:__,props:v_,emits:v_,methods:Ja,computed:Ja,beforeCreate:hr,created:hr,beforeMount:hr,mounted:hr,beforeUpdate:hr,updated:hr,beforeDestroy:hr,beforeUnmount:hr,destroyed:hr,unmounted:hr,activated:hr,deactivated:hr,errorCaptured:hr,serverPrefetch:hr,components:Ja,directives:Ja,watch:tO,provide:__,inject:eO};function __(e,t){return t?e?function(){return Bt(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function eO(e,t){return Ja(wh(e),wh(t))}function wh(e){if(he(e)){const t={};for(let r=0;r1)return r&&ye(t)?t.call(n&&n.proxy):t}}function pa(){return!!(Ft||Ut||Ts)}const TS={},IS=()=>Object.create(TS),AS=e=>Object.getPrototypeOf(e)===TS;function oO(e,t,r,n=!1){const o={},s=IS();e.propsDefaults=Object.create(null),OS(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);r?e.props=n?o:oo(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function sO(e,t,r,n){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Me(o),[l]=e.propsOptions;let c=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=RS(f,t,!0);Bt(i,d),p&&a.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return lt(e)&&n.set(e,Oi),Oi;if(he(s))for(let u=0;ue[0]==="_"||e==="$stable",gm=e=>he(e)?e.map(Pr):[Pr(e)],aO=(e,t,r)=>{if(t._n)return t;const n=Ns((...o)=>gm(t(...o)),r);return n._c=!1,n},PS=(e,t,r)=>{const n=e._ctx;for(const o in e){if(LS(o))continue;const s=e[o];if(ye(s))t[o]=aO(o,s,n);else if(s!=null){const i=gm(s);t[o]=()=>i}}},NS=(e,t)=>{const r=gm(t);e.slots.default=()=>r},MS=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},lO=(e,t,r)=>{const n=e.slots=IS();if(e.vnode.shapeFlag&32){const o=t._;o?(MS(n,t,r),r&&Lw(n,"_",o,!0)):PS(t,n)}else t&&NS(e,t)},cO=(e,t,r)=>{const{vnode:n,slots:o}=e;let s=!0,i=Ge;if(n.shapeFlag&32){const a=t._;a?r&&a===1?s=!1:MS(o,t,r):(s=!t.$stable,PS(t,o)),i=t}else t&&(NS(e,t),i={default:1});if(s)for(const a in o)!LS(a)&&i[a]==null&&delete o[a]},Dt=WS;function uO(e){return DS(e)}function fO(e){return DS(e,$A)}function DS(e,t){const r=qf();r.__VUE__=!0;const{insert:n,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=an,insertStaticContent:g}=e,h=(C,I,$,B=null,H=null,k=null,T=void 0,D=null,j=!!I.dynamicChildren)=>{if(C===I)return;C&&!rn(C,I)&&(B=W(C),We(C,H,k,!0),C=null),I.patchFlag===-2&&(j=!1,I.dynamicChildren=null);const{type:z,ref:K,shapeFlag:P}=I;switch(z){case Bo:m(C,I,$,B);break;case $t:y(C,I,$,B);break;case Di:C==null&&b(I,$,B,T);break;case bt:L(C,I,$,B,H,k,T,D,j);break;default:P&1?S(C,I,$,B,H,k,T,D,j):P&6?G(C,I,$,B,H,k,T,D,j):(P&64||P&128)&&z.process(C,I,$,B,H,k,T,D,j,ie)}K!=null&&H&&Il(K,C&&C.ref,k,I||C,!I)},m=(C,I,$,B)=>{if(C==null)n(I.el=a(I.children),$,B);else{const H=I.el=C.el;I.children!==C.children&&c(H,I.children)}},y=(C,I,$,B)=>{C==null?n(I.el=l(I.children||""),$,B):I.el=C.el},b=(C,I,$,B)=>{[C.el,C.anchor]=g(C.children,I,$,B,C.el,C.anchor)},_=({el:C,anchor:I},$,B)=>{let H;for(;C&&C!==I;)H=d(C),n(C,$,B),C=H;n(I,$,B)},v=({el:C,anchor:I})=>{let $;for(;C&&C!==I;)$=d(C),o(C),C=$;o(I)},S=(C,I,$,B,H,k,T,D,j)=>{I.type==="svg"?T="svg":I.type==="math"&&(T="mathml"),C==null?E(I,$,B,H,k,T,D,j):A(C,I,H,k,T,D,j)},E=(C,I,$,B,H,k,T,D)=>{let j,z;const{props:K,shapeFlag:P,transition:F,dirs:ee}=C;if(j=C.el=i(C.type,k,K&&K.is,K),P&8?u(j,C.children):P&16&&R(C.children,j,null,B,H,Qd(C,k),T,D),ee&&An(C,null,B,"created"),x(j,C,C.scopeId,T,B),K){for(const Le in K)Le!=="value"&&!Li(Le)&&s(j,Le,null,K[Le],k,B);"value"in K&&s(j,"value",null,K.value,k),(z=K.onVnodeBeforeMount)&&Cr(z,B,C)}ee&&An(C,null,B,"beforeMount");const de=$S(H,F);de&&F.beforeEnter(j),n(j,I,$),((z=K&&K.onVnodeMounted)||de||ee)&&Dt(()=>{z&&Cr(z,B,C),de&&F.enter(j),ee&&An(C,null,B,"mounted")},H)},x=(C,I,$,B,H)=>{if($&&p(C,$),B)for(let k=0;k{for(let z=j;z{const D=I.el=C.el;let{patchFlag:j,dynamicChildren:z,dirs:K}=I;j|=C.patchFlag&16;const P=C.props||Ge,F=I.props||Ge;let ee;if($&&us($,!1),(ee=F.onVnodeBeforeUpdate)&&Cr(ee,$,I,C),K&&An(I,C,$,"beforeUpdate"),$&&us($,!0),(P.innerHTML&&F.innerHTML==null||P.textContent&&F.textContent==null)&&u(D,""),z?N(C.dynamicChildren,z,D,$,B,Qd(I,H),k):T||ne(C,I,D,null,$,B,Qd(I,H),k,!1),j>0){if(j&16)U(D,P,F,$,H);else if(j&2&&P.class!==F.class&&s(D,"class",null,F.class,H),j&4&&s(D,"style",P.style,F.style,H),j&8){const de=I.dynamicProps;for(let Le=0;Le{ee&&Cr(ee,$,I,C),K&&An(I,C,$,"updated")},B)},N=(C,I,$,B,H,k,T)=>{for(let D=0;D{if(I!==$){if(I!==Ge)for(const k in I)!Li(k)&&!(k in $)&&s(C,k,I[k],null,H,B);for(const k in $){if(Li(k))continue;const T=$[k],D=I[k];T!==D&&k!=="value"&&s(C,k,D,T,H,B)}"value"in $&&s(C,"value",I.value,$.value,H)}},L=(C,I,$,B,H,k,T,D,j)=>{const z=I.el=C?C.el:a(""),K=I.anchor=C?C.anchor:a("");let{patchFlag:P,dynamicChildren:F,slotScopeIds:ee}=I;ee&&(D=D?D.concat(ee):ee),C==null?(n(z,$,B),n(K,$,B),R(I.children||[],$,K,H,k,T,D,j)):P>0&&P&64&&F&&C.dynamicChildren?(N(C.dynamicChildren,F,$,H,k,T,D),(I.key!=null||H&&I===H.subTree)&&mm(C,I,!0)):ne(C,I,$,K,H,k,T,D,j)},G=(C,I,$,B,H,k,T,D,j)=>{I.slotScopeIds=D,C==null?I.shapeFlag&512?H.ctx.activate(I,$,B,T,j):re(I,$,B,H,k,T,j):le(C,I,j)},re=(C,I,$,B,H,k,T)=>{const D=C.component=RO(C,B,H);if(gc(C)&&(D.ctx.renderer=ie),LO(D,!1,T),D.asyncDep){if(H&&H.registerDep(D,q,T),!C.el){const j=D.subTree=it($t);y(null,j,I,$)}}else q(D,C,I,$,H,k,T)},le=(C,I,$)=>{const B=I.component=C.component;if(wO(C,I,$))if(B.asyncDep&&!B.asyncResolved){oe(B,I,$);return}else B.next=I,B.update();else I.el=C.el,B.vnode=I},q=(C,I,$,B,H,k,T)=>{const D=()=>{if(C.isMounted){let{next:P,bu:F,u:ee,parent:de,vnode:Le}=C;{const Vt=FS(C);if(Vt){P&&(P.el=Le.el,oe(C,P,T)),Vt.asyncDep.then(()=>{C.isUnmounted||D()});return}}let Pe=P,gt;us(C,!1),P?(P.el=Le.el,oe(C,P,T)):P=Le,F&&Pi(F),(gt=P.props&&P.props.onVnodeBeforeUpdate)&&Cr(gt,de,P,Le),us(C,!0);const Ct=ep(C),qt=C.subTree;C.subTree=Ct,h(qt,Ct,f(qt.el),W(qt),C,H,k),P.el=Ct.el,Pe===null&&nd(C,Ct.el),ee&&Dt(ee,H),(gt=P.props&&P.props.onVnodeUpdated)&&Dt(()=>Cr(gt,de,P,Le),H)}else{let P;const{el:F,props:ee}=I,{bm:de,m:Le,parent:Pe,root:gt,type:Ct}=C,qt=jo(I);if(us(C,!1),de&&Pi(de),!qt&&(P=ee&&ee.onVnodeBeforeMount)&&Cr(P,Pe,I),us(C,!0),F&&we){const Vt=()=>{C.subTree=ep(C),we(F,C.subTree,C,H,null)};qt&&Ct.__asyncHydrate?Ct.__asyncHydrate(F,C,Vt):Vt()}else{gt.ce&>.ce._injectChildStyle(Ct);const Vt=C.subTree=ep(C);h(null,Vt,$,B,C,H,k),I.el=Vt.el}if(Le&&Dt(Le,H),!qt&&(P=ee&&ee.onVnodeMounted)){const Vt=I;Dt(()=>Cr(P,Pe,Vt),H)}(I.shapeFlag&256||Pe&&jo(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&C.a&&Dt(C.a,H),C.isMounted=!0,I=$=B=null}};C.scope.on();const j=C.effect=new Fw(D);C.scope.off();const z=C.update=j.run.bind(j),K=C.job=j.runIfDirty.bind(j);K.i=C,K.id=C.uid,j.scheduler=()=>um(K),us(C,!0),z()},oe=(C,I,$)=>{I.component=C;const B=C.vnode.props;C.vnode=I,C.next=null,sO(C,I.props,B,$),cO(C,I.children,$),Qo(),l_(C),es()},ne=(C,I,$,B,H,k,T,D,j=!1)=>{const z=C&&C.children,K=C?C.shapeFlag:0,P=I.children,{patchFlag:F,shapeFlag:ee}=I;if(F>0){if(F&128){ct(z,P,$,B,H,k,T,D,j);return}else if(F&256){Se(z,P,$,B,H,k,T,D,j);return}}ee&8?(K&16&&ht(z,H,k),P!==z&&u($,P)):K&16?ee&16?ct(z,P,$,B,H,k,T,D,j):ht(z,H,k,!0):(K&8&&u($,""),ee&16&&R(P,$,B,H,k,T,D,j))},Se=(C,I,$,B,H,k,T,D,j)=>{C=C||Oi,I=I||Oi;const z=C.length,K=I.length,P=Math.min(z,K);let F;for(F=0;FK?ht(C,H,k,!0,!1,P):R(I,$,B,H,k,T,D,j,P)},ct=(C,I,$,B,H,k,T,D,j)=>{let z=0;const K=I.length;let P=C.length-1,F=K-1;for(;z<=P&&z<=F;){const ee=C[z],de=I[z]=j?Ao(I[z]):Pr(I[z]);if(rn(ee,de))h(ee,de,$,null,H,k,T,D,j);else break;z++}for(;z<=P&&z<=F;){const ee=C[P],de=I[F]=j?Ao(I[F]):Pr(I[F]);if(rn(ee,de))h(ee,de,$,null,H,k,T,D,j);else break;P--,F--}if(z>P){if(z<=F){const ee=F+1,de=eeF)for(;z<=P;)We(C[z],H,k,!0),z++;else{const ee=z,de=z,Le=new Map;for(z=de;z<=F;z++){const Kt=I[z]=j?Ao(I[z]):Pr(I[z]);Kt.key!=null&&Le.set(Kt.key,z)}let Pe,gt=0;const Ct=F-de+1;let qt=!1,Vt=0;const cr=new Array(Ct);for(z=0;z=Ct){We(Kt,H,k,!0);continue}let Sr;if(Kt.key!=null)Sr=Le.get(Kt.key);else for(Pe=de;Pe<=F;Pe++)if(cr[Pe-de]===0&&rn(Kt,I[Pe])){Sr=Pe;break}Sr===void 0?We(Kt,H,k,!0):(cr[Sr-de]=z+1,Sr>=Vt?Vt=Sr:qt=!0,h(Kt,I[Sr],$,null,H,k,T,D,j),gt++)}const Hn=qt?dO(cr):Oi;for(Pe=Hn.length-1,z=Ct-1;z>=0;z--){const Kt=de+z,Sr=I[Kt],Oc=Kt+1{const{el:k,type:T,transition:D,children:j,shapeFlag:z}=C;if(z&6){ve(C.component.subTree,I,$,B);return}if(z&128){C.suspense.move(I,$,B);return}if(z&64){T.move(C,I,$,ie);return}if(T===bt){n(k,I,$);for(let P=0;PD.enter(k),H);else{const{leave:P,delayLeave:F,afterLeave:ee}=D,de=()=>n(k,I,$),Le=()=>{P(k,()=>{de(),ee&&ee()})};F?F(k,de,Le):Le()}else n(k,I,$)},We=(C,I,$,B=!1,H=!1)=>{const{type:k,props:T,ref:D,children:j,dynamicChildren:z,shapeFlag:K,patchFlag:P,dirs:F,cacheIndex:ee}=C;if(P===-2&&(H=!1),D!=null&&Il(D,null,$,C,!0),ee!=null&&(I.renderCache[ee]=void 0),K&256){I.ctx.deactivate(C);return}const de=K&1&&F,Le=!jo(C);let Pe;if(Le&&(Pe=T&&T.onVnodeBeforeUnmount)&&Cr(Pe,I,C),K&6)ze(C.component,$,B);else{if(K&128){C.suspense.unmount($,B);return}de&&An(C,null,I,"beforeUnmount"),K&64?C.type.remove(C,I,$,ie,B):z&&!z.hasOnce&&(k!==bt||P>0&&P&64)?ht(z,I,$,!1,!0):(k===bt&&P&384||!H&&K&16)&&ht(j,I,$),B&&je(C)}(Le&&(Pe=T&&T.onVnodeUnmounted)||de)&&Dt(()=>{Pe&&Cr(Pe,I,C),de&&An(C,null,I,"unmounted")},$)},je=C=>{const{type:I,el:$,anchor:B,transition:H}=C;if(I===bt){tr($,B);return}if(I===Di){v(C);return}const k=()=>{o($),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(C.shapeFlag&1&&H&&!H.persisted){const{leave:T,delayLeave:D}=H,j=()=>T($,k);D?D(C.el,k,j):j()}else k()},tr=(C,I)=>{let $;for(;C!==I;)$=d(C),o(C),C=$;o(I)},ze=(C,I,$)=>{const{bum:B,scope:H,job:k,subTree:T,um:D,m:j,a:z}=C;qu(j),qu(z),B&&Pi(B),H.stop(),k&&(k.flags|=8,We(T,C,I,$)),D&&Dt(D,I),Dt(()=>{C.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},ht=(C,I,$,B=!1,H=!1,k=0)=>{for(let T=k;T{if(C.shapeFlag&6)return W(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const I=d(C.anchor||C.el),$=I&&I[iS];return $?d($):I};let Q=!1;const J=(C,I,$)=>{C==null?I._vnode&&We(I._vnode,null,null,!0):h(I._vnode||null,C,I,null,null,null,$),I._vnode=C,Q||(Q=!0,l_(),Hu(),Q=!1)},ie={p:h,um:We,m:ve,r:je,mt:re,mc:R,pc:ne,pbc:N,n:W,o:e};let te,we;return t&&([te,we]=t(ie)),{render:J,hydrate:te,createApp:nO(J,te)}}function Qd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function us({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $S(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function mm(e,t,r=!1){const n=e.children,o=t.children;if(he(n)&&he(o))for(let s=0;s>1,e[r[a]]0&&(t[n]=r[s-1]),r[s]=n)}}for(s=r.length,i=r[s-1];s-- >0;)r[s]=i,i=t[i];return r}function FS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:FS(t)}function qu(e){if(e)for(let t=0;tjt(pO);function ed(e,t){return td(e,null,t)}function gO(e,t){return td(e,null,{flush:"sync"})}function Oe(e,t,r){return td(e,t,r)}function td(e,t,r=Ge){const{immediate:n,deep:o,flush:s,once:i}=r,a=Bt({},r),l=t&&n||!t&&s!=="post";let c;if(Hi){if(s==="sync"){const p=hO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=an,p.resume=an,p.pause=an,p}}const u=Ft;a.call=(p,g,h)=>dn(p,u,g,h);let f=!1;s==="post"?a.scheduler=p=>{Dt(p,u&&u.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(p,g)=>{g?p():um(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=CA(e,t,a);return Hi&&(c?c.push(d):l&&d()),d}function mO(e,t,r){const n=this.proxy,o=dt(e)?e.includes(".")?US(n,e):()=>n[e]:e.bind(n,n);let s;ye(t)?s=t:(s=t.handler,r=t);const i=Ds(this),a=td(o,s.bind(n),r);return i(),a}function US(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o{let u,f=Ge,d;return gO(()=>{const p=e[o];Tr(u,p)&&(u=p,c())}),{get(){return l(),r.get?r.get(u):u},set(p){const g=r.set?r.set(p):p;if(!Tr(g,u)&&!(f!==Ge&&Tr(p,f)))return;const h=n.vnode.props;h&&(t in h||o in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${o}`in h||`onUpdate:${s}`in h)||(u=p,c()),n.emit(`update:${t}`,g),Tr(p,g)&&Tr(p,f)&&!Tr(g,d)&&c(),f=p,d=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||Ge:a,done:!1}:{done:!0}}}},a}const jS=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Mr(t)}Modifiers`]||e[`${yo(t)}Modifiers`];function yO(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Ge;let o=r;const s=t.startsWith("update:"),i=s&&jS(n,t.slice(7));i&&(i.trim&&(o=r.map(u=>dt(u)?u.trim():u)),i.number&&(o=r.map(dh)));let a,l=n[a=Wd(t)]||n[a=Wd(Mr(t))];!l&&s&&(l=n[a=Wd(yo(t))]),l&&dn(l,e,6,o);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,dn(c,e,6,o)}}function BS(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ye(e)){const l=c=>{const u=BS(c,t,!0);u&&(a=!0,Bt(i,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(lt(e)&&n.set(e,null),null):(he(s)?s.forEach(l=>i[l]=null):Bt(i,s),lt(e)&&n.set(e,i),i)}function rd(e,t){return!e||!dc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ze(e,t[0].toLowerCase()+t.slice(1))||Ze(e,yo(t))||Ze(e,t))}function ep(e){const{type:t,vnode:r,proxy:n,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:g,inheritAttrs:h}=e,m=Vu(e);let y,b;try{if(r.shapeFlag&4){const v=o||n,S=v;y=Pr(c.call(S,v,u,f,p,d,g)),b=a}else{const v=t;y=Pr(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),b=t.props?a:vO(a)}}catch(v){ll.length=0,fa(v,e,1),y=it($t)}let _=y;if(b&&h!==!1){const v=Object.keys(b),{shapeFlag:S}=_;v.length&&S&7&&(s&&v.some(Qg)&&(b=bO(b,s)),_=fo(_,b,!1,!0))}return r.dirs&&(_=fo(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&ji(_,r.transition),y=_,Vu(m),y}function _O(e,t=!0){let r;for(let n=0;n{let t;for(const r in e)(r==="class"||r==="style"||dc(r))&&((t||(t={}))[r]=e[r]);return t},bO=(e,t)=>{const r={};for(const n in e)(!Qg(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function wO(e,t,r){const{props:n,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?w_(n,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let Eh=0;const SO={name:"Suspense",__isSuspense:!0,process(e,t,r,n,o,s,i,a,l,c){if(e==null)EO(t,r,n,o,s,i,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}xO(e,t,r,n,o,i,a,l,c)}},hydrate:kO,normalize:CO},HS=SO;function Al(e,t){const r=e.props&&e.props[t];ye(r)&&r()}function EO(e,t,r,n,o,s,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=VS(e,o,n,t,f,r,s,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,n,d,s,i),d.deps>0?(Al(e,"onPending"),Al(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,s,i),Mi(d,e.ssFallback)):d.resolve(!1,!0)}function xO(e,t,r,n,o,s,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:g,pendingBranch:h,isInFallback:m,isHydrating:y}=f;if(h)f.pendingBranch=d,rn(d,h)?(l(h,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():m&&(y||(l(g,p,r,n,o,null,s,i,a),Mi(f,p)))):(f.pendingId=Eh++,y?(f.isHydrating=!1,f.activeBranch=h):c(h,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),m?(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():(l(g,p,r,n,o,null,s,i,a),Mi(f,p))):g&&rn(d,g)?(l(g,d,r,n,o,f,s,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0&&f.resolve()));else if(g&&rn(d,g))l(g,d,r,n,o,f,s,i,a),Mi(f,d);else if(Al(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Eh++,l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:_}=f;b>0?setTimeout(()=>{f.pendingId===_&&f.fallback(p)},b):b===0&&f.fallback(p)}}function VS(e,t,r,n,o,s,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:g,o:{parentNode:h,remove:m}}=c;let y;const b=TO(e);b&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const _=e.props?Pw(e.props.timeout):void 0,v=s,S={vnode:e,parent:t,parentComponent:r,namespace:i,container:n,hiddenContainer:o,deps:0,pendingId:Eh++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,x=!1){const{vnode:R,activeBranch:A,pendingBranch:N,pendingId:U,effects:L,parentComponent:G,container:re}=S;let le=!1;S.isHydrating?S.isHydrating=!1:E||(le=A&&N.transition&&N.transition.mode==="out-in",le&&(A.transition.afterLeave=()=>{U===S.pendingId&&(d(N,re,s===v?g(A):s,0),Bu(L))}),A&&(h(A.el)===re&&(s=g(A)),p(A,G,S,!0)),le||d(N,re,s,0)),Mi(S,N),S.pendingBranch=null,S.isInFallback=!1;let q=S.parent,oe=!1;for(;q;){if(q.pendingBranch){q.effects.push(...L),oe=!0;break}q=q.parent}!oe&&!le&&Bu(L),S.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),Al(R,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:x,activeBranch:R,parentComponent:A,container:N,namespace:U}=S;Al(x,"onFallback");const L=g(R),G=()=>{S.isInFallback&&(f(null,E,N,L,A,null,U,a,l),Mi(S,E))},re=E.transition&&E.transition.mode==="out-in";re&&(R.transition.afterLeave=G),S.isInFallback=!0,p(R,A,null,!0),re||G()},move(E,x,R){S.activeBranch&&d(S.activeBranch,E,x,R),S.container=E},next(){return S.activeBranch&&g(S.activeBranch)},registerDep(E,x,R){const A=!!S.pendingBranch;A&&S.deps++;const N=E.vnode.el;E.asyncDep.catch(U=>{fa(U,E,0)}).then(U=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:L}=E;Th(E,U),N&&(L.el=N);const G=!N&&E.subTree.el;x(E,L,h(N||E.subTree.el),N?null:g(E.subTree),S,i,R),G&&m(G),nd(E,L.el),A&&--S.deps===0&&S.resolve()})},unmount(E,x){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,r,E,x),S.pendingBranch&&p(S.pendingBranch,r,E,x)}};return S}function kO(e,t,r,n,o,s,i,a,l){const c=t.suspense=VS(t,n,r,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,s,i);return c.deps===0&&c.resolve(!1,!0),u}function CO(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=S_(n?r.default:r),e.ssFallback=n?S_(r.fallback):it($t)}function S_(e){let t;if(ye(e)){const r=Bi&&e._c;r&&(e._d=!1,me()),e=e(),r&&(e._d=!0,t=Ir,zS())}return he(e)&&(e=_O(e)),e=Pr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function WS(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):Bu(e)}function Mi(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;r.el=o,n&&n.subTree===r&&(n.vnode.el=o,nd(n,o))}function TO(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const bt=Symbol.for("v-fgt"),Bo=Symbol.for("v-txt"),$t=Symbol.for("v-cmt"),Di=Symbol.for("v-stc"),ll=[];let Ir=null;function me(e=!1){ll.push(Ir=e?null:[])}function zS(){ll.pop(),Ir=ll[ll.length-1]||null}let Bi=1;function E_(e,t=!1){Bi+=e,e<0&&Ir&&t&&(Ir.hasOnce=!0)}function GS(e){return e.dynamicChildren=Bi>0?Ir||Oi:null,zS(),Bi>0&&Ir&&Ir.push(e),e}function _t(e,t,r,n,o,s){return GS(Do(e,t,r,n,o,s,!0))}function ft(e,t,r,n,o){return GS(it(e,t,r,n,o,!0))}function Ms(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const qS=({key:e})=>e??null,vu=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?dt(e)||qe(e)||ye(e)?{i:Ut,r:e,k:t,f:!!r}:e:null);function Do(e,t=null,r=null,n=0,o=null,s=e===bt?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qS(t),ref:t&&vu(t),scopeId:sS,slotScopeIds:null,children:r,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:s,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ut};return a?(ym(l,r),s&128&&e.normalize(l)):r&&(l.shapeFlag|=dt(r)?8:16),Bi>0&&!i&&Ir&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ir.push(l),l}const it=IO;function IO(e,t=null,r=null,n=0,o=null,s=!1){if((!e||e===wS)&&(e=$t),Ms(e)){const a=fo(e,t,!0);return r&&ym(a,r),Bi>0&&!s&&Ir&&(a.shapeFlag&6?Ir[Ir.indexOf(e)]=a:Ir.push(a)),a.patchFlag=-2,a}if(MO(e)&&(e=e.__vccOpts),t){t=xh(t);let{class:a,style:l}=t;a&&!dt(a)&&(t.class=et(a)),lt(l)&&(lm(l)&&!he(l)&&(l=Bt({},l)),t.style=Ps(l))}const i=dt(e)?1:Ku(e)?128:aS(e)?64:lt(e)?4:ye(e)?2:0;return Do(e,t,r,n,o,i,s,!0)}function xh(e){return e?lm(e)||AS(e)?Bt({},e):e:null}function fo(e,t,r=!1,n=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,c=t?ir(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&qS(c),ref:t&&t.ref?r&&s?he(s)?s.concat(vu(t)):[s,vu(t)]:vu(t):s,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!==bt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fo(e.ssContent),ssFallback:e.ssFallback&&fo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ji(u,l.clone(u)),u}function Ol(e=" ",t=0){return it(Bo,null,e,t)}function E9(e,t){const r=it(Di,null,e);return r.staticCount=t,r}function Xt(e="",t=!1){return t?(me(),ft($t,null,e)):it($t,null,e)}function Pr(e){return e==null||typeof e=="boolean"?it($t):he(e)?it(bt,null,e.slice()):Ms(e)?Ao(e):it(Bo,null,String(e))}function Ao(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fo(e)}function ym(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(he(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),ym(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!AS(t)?t._ctx=Ut:o===3&&Ut&&(Ut.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:Ut},r=32):(t=String(t),n&64?(r=16,t=[Ol(t)]):r=8);e.children=t,e.shapeFlag|=r}function ir(...e){const t={};for(let r=0;rFt||Ut;let Yu,kh;{const e=qf(),t=(r,n)=>{let o;return(o=e[r])||(o=e[r]=[]),o.push(n),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Yu=t("__VUE_INSTANCE_SETTERS__",r=>Ft=r),kh=t("__VUE_SSR_SETTERS__",r=>Hi=r)}const Ds=e=>{const t=Ft;return Yu(e),e.scope.on(),()=>{e.scope.off(),Yu(t)}},Ch=()=>{Ft&&Ft.scope.off(),Yu(null)};function KS(e){return e.vnode.shapeFlag&4}let Hi=!1;function LO(e,t=!1,r=!1){t&&kh(t);const{props:n,children:o}=e.vnode,s=KS(e);oO(e,n,s,t),lO(e,o,r);const i=s?PO(e,t):void 0;return t&&kh(!1),i}function PO(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,KA);const{setup:n}=r;if(n){Qo();const o=e.setupContext=n.length>1?ZS(e):null,s=Ds(e),i=hc(n,e,0,[e.props,o]),a=tm(i);if(es(),s(),(a||e.sp)&&!jo(e)&&fm(e),a){if(i.then(Ch,Ch),t)return i.then(l=>{Th(e,l)}).catch(l=>{fa(l,e,0)});e.asyncDep=i}else Th(e,i)}else YS(e)}function Th(e,t,r){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:lt(t)&&(e.setupState=Qw(t)),YS(e)}function YS(e,t,r){const n=e.type;e.render||(e.render=n.render||an);{const o=Ds(e);Qo();try{XA(e)}finally{es(),o()}}}const NO={get(e,t){return or(e,"get",""),e[t]}};function ZS(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,NO),slots:e.slots,emit:e.emit,expose:t}}function od(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Qw(cm(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in al)return al[r](e)},has(t,r){return r in t||r in al}})):e.proxy}function Ih(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function MO(e){return ye(e)&&"__vccOpts"in e}const X=(e,t)=>xA(e,t,Hi);function Tt(e,t,r){const n=arguments.length;return n===2?lt(t)&&!he(t)?Ms(t)?it(e,null,[t]):it(e,t):it(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ms(r)&&(r=[r]),it(e,t,r))}const DO="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ah;const x_=typeof window<"u"&&window.trustedTypes;if(x_)try{Ah=x_.createPolicy("vue",{createHTML:e=>e})}catch{}const XS=Ah?e=>Ah.createHTML(e):e=>e,$O="http://www.w3.org/2000/svg",FO="http://www.w3.org/1998/Math/MathML",Qn=typeof document<"u"?document:null,k_=Qn&&Qn.createElement("template"),UO={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t==="svg"?Qn.createElementNS($O,e):t==="mathml"?Qn.createElementNS(FO,e):r?Qn.createElement(e,{is:r}):Qn.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Qn.createTextNode(e),createComment:e=>Qn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,s){const i=r?r.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===s||!(o=o.nextSibling)););else{k_.innerHTML=XS(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const a=k_.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},So="transition",Ta="animation",Rl=Symbol("_vtc"),JS={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},jO=Bt({},uS,JS),BO=e=>(e.displayName="Transition",e.props=jO,e),QS=BO((e,{slots:t})=>Tt(PA,HO(e),t)),fs=(e,t=[])=>{he(e)?e.forEach(r=>r(...t)):e&&e(...t)},C_=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function HO(e){const t={};for(const L in e)L in JS||(t[L]=e[L]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:s=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,g=VO(o),h=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:v,onLeaveCancelled:S,onBeforeAppear:E=y,onAppear:x=b,onAppearCancelled:R=_}=t,A=(L,G,re,le)=>{L._enterCancelled=le,ds(L,G?u:a),ds(L,G?c:i),re&&re()},N=(L,G)=>{L._isLeaving=!1,ds(L,f),ds(L,p),ds(L,d),G&&G()},U=L=>(G,re)=>{const le=L?x:b,q=()=>A(G,L,re);fs(le,[G,q]),T_(()=>{ds(G,L?l:s),zn(G,L?u:a),C_(le)||I_(G,n,h,q)})};return Bt(t,{onBeforeEnter(L){fs(y,[L]),zn(L,s),zn(L,i)},onBeforeAppear(L){fs(E,[L]),zn(L,l),zn(L,c)},onEnter:U(!1),onAppear:U(!0),onLeave(L,G){L._isLeaving=!0;const re=()=>N(L,G);zn(L,f),L._enterCancelled?(zn(L,d),R_()):(R_(),zn(L,d)),T_(()=>{L._isLeaving&&(ds(L,f),zn(L,p),C_(v)||I_(L,n,m,re))}),fs(v,[L,re])},onEnterCancelled(L){A(L,!1,void 0,!0),fs(_,[L])},onAppearCancelled(L){A(L,!0,void 0,!0),fs(R,[L])},onLeaveCancelled(L){N(L),fs(S,[L])}})}function VO(e){if(e==null)return null;if(lt(e))return[tp(e.enter),tp(e.leave)];{const t=tp(e);return[t,t]}}function tp(e){return Pw(e)}function zn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Rl]||(e[Rl]=new Set)).add(t)}function ds(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Rl];r&&(r.delete(t),r.size||(e[Rl]=void 0))}function T_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let WO=0;function I_(e,t,r,n){const o=e._endId=++WO,s=()=>{o===e._endId&&n()};if(r!=null)return setTimeout(s,r);const{type:i,timeout:a,propCount:l}=zO(e,t);if(!i)return n();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(r[g]||"").split(", "),o=n(`${So}Delay`),s=n(`${So}Duration`),i=A_(o,s),a=n(`${Ta}Delay`),l=n(`${Ta}Duration`),c=A_(a,l);let u=null,f=0,d=0;t===So?i>0&&(u=So,f=i,d=s.length):t===Ta?c>0&&(u=Ta,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?So:Ta:null,d=u?u===So?s.length:l.length:0);const p=u===So&&/\b(transform|all)(,|$)/.test(n(`${So}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function A_(e,t){for(;e.lengthO_(r)+O_(e[n])))}function O_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function R_(){return document.body.offsetHeight}function GO(e,t,r){const n=e[Rl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Zu=Symbol("_vod"),eE=Symbol("_vsh"),x9={beforeMount(e,{value:t},{transition:r}){e[Zu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ia(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Ia(e,!0),n.enter(e)):n.leave(e,()=>{Ia(e,!1)}):Ia(e,t))},beforeUnmount(e,{value:t}){Ia(e,t)}};function Ia(e,t){e.style.display=t?e[Zu]:"none",e[eE]=!t}const tE=Symbol("");function k9(e){const t=er();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Xu(s,o))},n=()=>{const o=e(t.proxy);t.ce?Xu(t.ce,o):Oh(t.subTree,o),r(o)};_S(()=>{Bu(n)}),Or(()=>{Oe(n,an,{flush:"post"});const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),Qs(()=>o.disconnect())})}function Oh(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Oh(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Xu(e.el,t);else if(e.type===bt)e.children.forEach(r=>Oh(r,t));else if(e.type===Di){let{el:r,anchor:n}=e;for(;r&&(Xu(r,t),r!==n);)r=r.nextSibling}}function Xu(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const o in t)r.setProperty(`--${o}`,t[o]),n+=`--${o}: ${t[o]};`;r[tE]=n}}const qO=/(^|;)\s*display\s*:/;function KO(e,t,r){const n=e.style,o=dt(r);let s=!1;if(r&&!o){if(t)if(dt(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();r[a]==null&&bu(n,a,"")}else for(const i in t)r[i]==null&&bu(n,i,"");for(const i in r)i==="display"&&(s=!0),bu(n,i,r[i])}else if(o){if(t!==r){const i=n[tE];i&&(r+=";"+i),n.cssText=r,s=qO.test(r)}}else t&&e.removeAttribute("style");Zu in e&&(e[Zu]=s?n.display:"",e[eE]&&(n.display="none"))}const L_=/\s*!important$/;function bu(e,t,r){if(he(r))r.forEach(n=>bu(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=YO(e,t);L_.test(r)?e.setProperty(yo(n),r.replace(L_,""),"important"):e[n]=r}}const P_=["Webkit","Moz","ms"],rp={};function YO(e,t){const r=rp[t];if(r)return r;let n=Mr(t);if(n!=="filter"&&n in e)return rp[t]=n;n=Gf(n);for(let o=0;onp||(QO.then(()=>np=0),np=Date.now());function tR(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;dn(rR(n,r.value),t,5,[n])};return r.value=e,r.attached=eR(),r}function rR(e,t){if(he(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const U_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,nR=(e,t,r,n,o,s)=>{const i=o==="svg";t==="class"?GO(e,n,i):t==="style"?KO(e,r,n):dc(t)?Qg(t)||XO(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):oR(e,t,n,i))?(D_(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&M_(e,t,n,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!dt(n))?D_(e,Mr(t),n,s,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),M_(e,t,n,i))};function oR(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&U_(t)&&ye(r));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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return U_(t)&&dt(r)?!1:t in e}const j_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?r=>Pi(t,r):t};function sR(e){e.target.composing=!0}function B_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const op=Symbol("_assign"),C9={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[op]=j_(o);const s=n||o.props&&o.props.type==="number";gi(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;r&&(a=a.trim()),s&&(a=dh(a)),e[op](a)}),r&&gi(e,"change",()=>{e.value=e.value.trim()}),t||(gi(e,"compositionstart",sR),gi(e,"compositionend",B_),gi(e,"change",B_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:o,number:s}},i){if(e[op]=j_(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?dh(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||o&&e.value.trim()===l)||(e.value=l))}},iR=["ctrl","shift","alt","meta"],aR={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)=>iR.some(r=>e[`${r}Key`]&&!t.includes(r))},sp=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(o,...s)=>{for(let i=0;i{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=o=>{if(!("key"in o))return;const s=yo(o.key);if(t.some(i=>i===s||lR[i]===s))return e(o)})},rE=Bt({patchProp:nR},UO);let cl,H_=!1;function nE(){return cl||(cl=uO(rE))}function cR(){return cl=H_?cl:fO(rE),H_=!0,cl}const uR=(...e)=>{nE().render(...e)},fR=(...e)=>{const t=nE().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=sE(n);if(!o)return;const s=t._component;!ye(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=r(o,!1,oE(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},dR=(...e)=>{const t=cR().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=sE(n);if(o)return r(o,!0,oE(o))},t};function oE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sE(e){return dt(e)?document.querySelector(e):e}const pR=/"(?:_|\\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*:/,hR=/"(?: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*:/,gR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function mR(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){yR(e);return}return t}function yR(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ll(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.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(!gR.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(pR.test(e)||hR.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,mR)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const iE=/#/g,aE=/&/g,lE=/\//g,_R=/=/g,vR=/\?/g,sd=/\+/g,bR=/%5e/gi,wR=/%60/gi,SR=/%7c/gi,ER=/%20/gi,xR=/%252f/gi;function cE(e){return encodeURI(""+e).replace(SR,"|")}function Rh(e){return cE(typeof e=="string"?e:JSON.stringify(e)).replace(sd,"%2B").replace(ER,"+").replace(iE,"%23").replace(aE,"%26").replace(wR,"`").replace(bR,"^").replace(lE,"%2F")}function ip(e){return Rh(e).replace(_R,"%3D")}function kR(e){return cE(e).replace(iE,"%23").replace(vR,"%3F").replace(xR,"%2F").replace(aE,"%26").replace(sd,"%2B")}function I9(e){return kR(e).replace(lE,"%2F")}function Ju(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function CR(e){return Ju(e.replace(sd," "))}function TR(e){return Ju(e.replace(sd," "))}function id(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const o=CR(n[1]);if(o==="__proto__"||o==="constructor")continue;const s=TR(n[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function IR(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${ip(e)}=${Rh(r)}`).join("&"):`${ip(e)}=${Rh(t)}`:ip(e)}function AR(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>IR(t,e[t])).filter(Boolean).join("&")}const OR=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,uE=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,RR=/^([/\\]\s*){2,}[^/\\]/,LR=/^[\s\0]*(blob|data|javascript|vbscript):$/i,PR=/\/$|\/\?|\/#/,NR=/^\.?\//;function yn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?OR.test(e):uE.test(e)||(t.acceptRelative?RR.test(e):!1)}function MR(e){return!!e&&LR.test(e)}function Lh(e="",t){return t?PR.test(e):e.endsWith("/")}function ad(e="",t){if(!t)return(Lh(e)?e.slice(0,-1):e)||"/";if(!Lh(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");o>=0&&(r=e.slice(0,o),n=e.slice(o));const[s,...i]=r.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+n}function Pl(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Lh(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");if(o>=0&&(r=e.slice(0,o),n=e.slice(o),!r))return n;const[s,...i]=r.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+n}function DR(e=""){return e.startsWith("/")}function V_(e=""){return DR(e)?e:"/"+e}function $R(e,t){if(fE(t)||yn(e))return e;const r=ad(t);return e.startsWith(r)?e:ei(r,e)}function W_(e,t){if(fE(t))return e;const r=ad(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return n[0]==="/"?n:"/"+n}function Nl(e,t){const r=hE(e),n={...id(r.search),...t};return r.search=AR(n),jR(r)}function fE(e){return!e||e==="/"}function FR(e){return e&&e!=="/"}function ei(e,...t){let r=e||"";for(const n of t.filter(o=>FR(o)))if(r){const o=n.replace(NR,"");r=Pl(r)+o}else r=n;return r}function dE(...e){var i,a,l,c;const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let o=0;for(const u of r)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(n.length===1&&yn(n[0]))continue;n.pop(),o--;continue}if(f===1&&((i=n[n.length-1])!=null&&i.endsWith(":/"))){n[n.length-1]+="/"+d;continue}n.push(d),o++}}let s=n.join("/");return o>=0?(a=r[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=r[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(c=r[r.length-1])!=null&&c.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function A9(e){return UR(e,"https://")}function UR(e,t){let r=e.match(uE);return r||(r=e.match(/^\/{2,}/)),r?t+e.slice(r[0].length):t+e}function Ph(e,t,r={}){return r.trailingSlash||(e=Pl(e),t=Pl(t)),r.leadingSlash||(e=V_(e),t=V_(t)),r.encoding||(e=Ju(e),t=Ju(t)),e===t}const pE=Symbol.for("ufo:protocolRelative");function hE(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,f,d=""]=r;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!yn(e,{acceptRelative:!0}))return Nh(e);const[,n="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Nh(a);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:c,hash:u,[pE]:!n}}function Nh(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function jR(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[pE]?(e.protocol||"")+"//":"")+o+s+t+r+n}class BR extends Error{constructor(t,r){super(t,r),this.name="FetchError",r!=null&&r.cause&&!this.cause&&(this.cause=r.cause)}}function HR(e){var l,c,u,f,d;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",r=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",n=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new BR(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[g]}});return a}const VR=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function z_(e="GET"){return VR.has(e.toUpperCase())}function WR(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 zR=new Set(["image/svg","application/xml","application/xhtml","application/html"]),GR=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function qR(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return GR.test(t)?"json":zR.has(t)||t.startsWith("text/")?"text":"blob"}function KR(e,t,r,n){const o=YR((t==null?void 0:t.headers)??(e==null?void 0:e.headers),r==null?void 0:r.headers,n);let s;return(r!=null&&r.query||r!=null&&r.params||t!=null&&t.params||t!=null&&t.query)&&(s={...r==null?void 0:r.params,...r==null?void 0:r.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...r,...t,query:s,params:s,headers:o}}function YR(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,s);return n}async function Hc(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const ZR=new Set([408,409,425,429,500,502,503,504]),XR=new Set([101,204,205,304]);function gE(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=z_(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):ZR.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),s(a.request,{...a.options,retry:u-1})}}const c=HR(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){const u={request:l,options:KR(l,c,e.defaults,r),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Hc(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=$R(u.request,u.options.baseURL)),u.options.query&&(u.request=Nl(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&&z_(u.options.method)&&(WR(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new r(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 p=new n;f=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,p.abort(g)},u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await Hc(u,u.options.onRequestError),await o(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!XR.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||qR(u.response.headers.get("content-type")||"");switch(p){case"json":{const g=await u.response.text(),h=u.options.parseResponse||Ll;u.response._data=h(g);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await Hc(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Hc(u,u.options.onResponseError),await o(u)):u.response},i=async function(l,c){return(await s(l,c))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={},l={})=>gE({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Qu=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")}(),JR=Qu.fetch?(...e)=>Qu.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),QR=Qu.Headers,e1=Qu.AbortController,t1=gE({fetch:JR,Headers:QR,AbortController:e1}),r1=t1,n1=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},ef=n1().app,o1=()=>ef.baseURL,s1=()=>ef.buildAssetsDir,i1=(...e)=>dE(mE(),s1(),...e),mE=(...e)=>{const t=ef.cdnURL||ef.baseURL;return e.length?dE(t,...e):t};globalThis.__buildAssetsURL=i1,globalThis.__publicAssetsURL=mE;globalThis.$fetch||(globalThis.$fetch=r1.create({baseURL:o1()}));function Mh(e,t={},r){for(const n in e){const o=e[n],s=r?`${r}:${n}`:n;typeof o=="object"&&o!==null?Mh(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const a1={run:e=>e()},l1=()=>a1,yE=typeof console.createTask<"u"?console.createTask:l1;function c1(e,t){const r=t.shift(),n=yE(r);return e.reduce((o,s)=>o.then(()=>n.run(()=>s(...t))),Promise.resolve())}function u1(e,t){const r=t.shift(),n=yE(r);return Promise.all(e.map(o=>n.run(()=>o(...t))))}function ap(e,t){for(const r of[...e])r(t)}class f1{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,r,n={}){if(!t||typeof r!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,o=(...s)=>(typeof n=="function"&&n(),n=void 0,o=void 0,r(...s));return n=this.hook(t,o),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const o of n)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=Mh(t),n=Object.keys(r).map(o=>this.hook(o,r[o]));return()=>{for(const o of n.splice(0,n.length))o()}}removeHooks(t){const r=Mh(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(c1,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(u1,t,...r)}callHookWith(t,r,...n){const o=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&ap(this._before,o);const s=t(r in this._hooks?[...this._hooks[r]]:[],n);return s instanceof Promise?s.finally(()=>{this._after&&o&&ap(this._after,o)}):(this._after&&o&&ap(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function _E(){return new f1}function d1(e={}){let t,r=!1;const n=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||n(i),t=i,r=!0},unset:()=>{t=void 0,r=!1},call:(i,a)=>{n(i),t=i;try{return o?o.run(i,a):a()}finally{r||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;Dh.add(c);try{const u=o?o.run(i,a):a();return r||(t=void 0),await u}finally{Dh.delete(c)}}}}function p1(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=d1({...e,...n})),t[r]}}}const tf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},G_="__unctx__",h1=tf[G_]||(tf[G_]=p1()),vE=(e,t={})=>h1.get(e,t),q_="__unctx_async_handlers__",Dh=tf[q_]||(tf[q_]=new Set);function Pt(e){const t=[];for(const o of Dh){const s=o();s&&t.push(s)}const r=()=>{for(const o of t)o()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(o=>{throw r(),o})),[n,r]}const O9=!1,$h=!1,g1=!0,m1=!1,y1={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},R9={value:null,errorValue:null,deep:!0},_1=null,L9={},v1="#__nuxt",_m="nuxt-app",b1="vite:preloadError";function bE(e=_m){return vE(e,{asyncContext:!1})}const w1="__nuxt_plugin";function S1(e){var o;let t=0;const r={_id:e.id||_m||"nuxt-app",_scope:ca(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return r.vueApp.version}},payload:oo({...((o=e.ssrContext)==null?void 0:o.payload)||{},data:oo({}),state:Jt({}),once:new Set,_errors:oo({})}),static:{data:{}},runWithContext(s){return r._scope.active&&!ua()?r._scope.run(()=>K_(r,s)):K_(r,s)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:oo({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(r.payload[i],s[i]);break;default:r.payload[i]=s[i]}}r.hooks=_E(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(s,i)=>{const a="$"+s;Vc(r,a,i),Vc(r.vueApp.config.globalProperties,a,i)},Vc(r.vueApp,"$nuxt",r),Vc(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(b1,i=>{r.callHook("app:chunkError",{error:i.payload}),(r.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Ie);const s=r.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});r.hook("app:mounted",s)}const n=r.payload.config;return r.provide("config",n),r}function E1(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function x1(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function k1(e,t){const r=[],n=[],o=[],s=[];let i=0;async function a(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(f=>t.some(d=>d._name===f)&&!r.includes(f)))??[];if(c.length>0)n.push([new Set(c),l]);else{const f=x1(e,l).then(async()=>{l._name&&(r.push(l._name),await Promise.all(n.map(async([d,p])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(p)))})))});l.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const l of t)E1(e,l);for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[w1]:!0,_name:t})}function K_(e,t,r){const n=()=>t();return bE(e._id).set(e),e.vueApp.runWithContext(n)}function wE(e){var r;let t;return pa()&&(t=(r=er())==null?void 0:r.appContext.app.$nuxt),t||(t=bE(e).tryUse()),t||null}function Ie(e){const t=wE(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function at(e){return Ie().$config}function Vc(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function lp(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 Fh(e,t,r=".",n){if(!lp(t))return Fh(e,{},r,n);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(n&&n(o,s,i,r)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:lp(i)&&lp(o[s])?o[s]=Fh(i,o[s],(r?`${r}.`:"")+s.toString(),n):o[s]=i))}return o}function vm(e){return(...t)=>t.reduce((r,n)=>Fh(r,n,"",e),{})}const SE=vm(),C1=vm((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0});function T1(e,t){try{return t in e}catch{return!1}}class Uh extends Error{constructor(r,n={}){super(r,n);Rr(this,"statusCode",500);Rr(this,"fatal",!1);Rr(this,"unhandled",!1);Rr(this,"statusMessage");Rr(this,"data");Rr(this,"cause");n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const r={message:this.message,statusCode:jh(this.statusCode,500)};return this.statusMessage&&(r.statusMessage=EE(this.statusMessage)),this.data!==void 0&&(r.data=this.data),r}}Rr(Uh,"__h3_error__",!0);function wu(e){if(typeof e=="string")return new Uh(e);if(I1(e))return e;const t=new Uh(e.message??e.statusMessage??"",{cause:e.cause||e});if(T1(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=jh(e.statusCode,t.statusCode):e.status&&(t.statusCode=jh(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;EE(t.statusMessage)!==r&&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 I1(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const A1=/[^\u0009\u0020-\u007E]/g;function EE(e=""){return e.replace(A1,"")}function jh(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const O1=Symbol("layout-meta"),mc=Symbol("route"),Ht=()=>{var e;return(e=Ie())==null?void 0:e.$router},ti=()=>pa()?jt(mc,Ie()._route):Ie()._route;const R1=(e,t,r={})=>{const n=Ie(),o=r.global||!1,s=t;if(!s){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}o?n._middleware.global.push(s):n._middleware.named[e]=s},L1=()=>{try{if(Ie()._processingMiddleware)return!0}catch{return!1}return!1},Oo=(e,t)=>{e||(e="/");const r=typeof e=="string"?e:"path"in e?Bh(e):Ht().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(r,l,u),Promise.resolve()}const n=yn(r,{acceptRelative:!0}),o=(t==null?void 0:t.external)||n;if(o){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:l}=new URL(r,window.location.href);if(l&&MR(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=L1();if(!o&&s){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=hE(e);return{path:l,...c&&{query:id(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Ht(),a=Ie();return o?(a._scope.stop(),t!=null&&t.replace?location.replace(r):location.href=r,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function Bh(e){return Nl(e.path||"",e.query||{})+(e.hash||"")}const xE="__nuxt_error",ld=()=>Js(Ie().payload,"error"),Ro=e=>{const t=cd(e);try{const r=Ie(),n=ld();r.hooks.callHook("app:error",t),n.value||(n.value=t)}catch{throw t}return t},P1=async(e={})=>{const t=Ie(),r=ld();t.callHook("app:error:cleared",e),e.redirect&&await Ht().replace(e.redirect),r.value=_1},kE=e=>!!e&&typeof e=="object"&&xE in e,cd=e=>{const t=wu(e);return Object.defineProperty(t,xE,{value:!0,configurable:!1,writable:!1}),t};function Y_(e){const t=M1(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let o=0;o>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const D1=-1,$1=-2,F1=-3,U1=-4,j1=-5,B1=-6;function H1(e,t){return V1(JSON.parse(e),t)}function V1(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);function o(s,i=!1){if(s===D1)return;if(s===F1)return NaN;if(s===U1)return 1/0;if(s===j1)return-1/0;if(s===B1)return-0;if(i)throw new Error("Invalid input");if(s in n)return n[s];const a=r[s];if(!a||typeof a!="object")n[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return n[s]=c(o(a[1]));switch(l){case"Date":n[s]=new Date(a[1]);break;case"Set":const u=new Set;n[s]=u;for(let p=1;p`${so(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"?so(e):`${so(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${so(e)} ${t}`}},charset:{}};function so(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-");return r===-1?t:Ml.META.has(t.slice(0,r))||Ml.OG.has(t.slice(0,r))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function TE(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>String(r)!=="false"&&t))}function Hh(e){return Array.isArray(e)?e.map(Hh):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,r])=>[so(t),Hh(r)]))}function IE(e,t={}){const{entrySeparator:r="",keyValueSeparator:n="",wrapValue:o,resolve:s}=t;return Object.entries(e).map(([i,a])=>{if(s){const c=s({key:i,value:a});if(c!==void 0)return c}const l=typeof a=="object"?IE(a,t):typeof a=="number"?a.toString():typeof a=="string"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${i}${n}${l}`}).join(r)}function X_(e,t){const r=TE(t),n=so(e),o=AE(n);if(!bm.has(n))return[{[o]:n,...r}];const s=Object.fromEntries(Object.entries(r).map(([i,a])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,a]));return rf(s||{}).sort((i,a)=>{var l,c;return(((l=i[o])==null?void 0:l.length)||0)-(((c=a[o])==null?void 0:c.length)||0)})}function AE(e){var n;if(((n=CE[e])==null?void 0:n.metaKey)==="http-equiv"||Ml.HTTP_EQUIV.has(e))return"http-equiv";const t=so(e),r=t.indexOf(":");return r===-1?"name":Ml.OG.has(t.slice(0,r))?"property":"name"}function X1(e){return Z1[e]||so(e)}function J1(e,t){var r;return t==="refresh"?`${e.seconds};url=${e.url}`:IE(Hh(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:o})=>n===null?"":typeof n=="boolean"?o:void 0,...(r=CE[t])==null?void 0:r.unpack})}function rf(e){const t=[],r={};for(const[o,s]of Object.entries(e)){if(Array.isArray(s)){if(o==="themeColor"){s.forEach(i=>{typeof i=="object"&&i!==null&&t.push({name:"theme-color",...i})});continue}for(const i of s)if(typeof i=="object"&&i!==null){const a=[],l=[];for(const[c,u]of Object.entries(i)){const f=`${o}${c==="url"?"":`:${c}`}`,d=rf({[f]:u});(c==="url"?a:l).push(...d)}t.push(...a,...l)}else t.push(...typeof i=="string"?rf({[o]:i}):X_(o,i));continue}if(typeof s=="object"&&s)if(Ml.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",a=o.replace(/^(og|twitter)/,"").toLowerCase(),l=i==="twitter"?"name":"property";s.url&&t.push({[l]:`${i}:${a}`,content:s.url}),s.secureUrl&&t.push({[l]:`${i}:${a}:secure_url`,content:s.secureUrl});for(const[c,u]of Object.entries(s))c!=="url"&&c!=="secureUrl"&&t.push({[l]:`${i}:${a}:${c}`,content:u})}else bm.has(so(o))?t.push(...X_(o,s)):r[o]=TE(s);else r[o]=s}const n=Object.entries(r).map(([o,s])=>{if(o==="charset")return{charset:s===null?"_null":s};const i=AE(o),a=X1(o),l=s===null?"_null":typeof s=="object"?J1(s,o):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":a,content:l}:{[i]:a,content:l}});return[...t,...n].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const Q1={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(r=>r.tag!=="_flatMeta"?r:(t.push(rf(r.props).map(n=>({...r,tag:"meta",props:n}))),!1)).filter(Boolean).concat(...t)}}},eL=["name","property","http-equiv"];function OE(e){const t=e.split(":")[1];return bm.has(t)}function Vh(e){const{props:t,tag:r}=e;if(q1.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of eL)if(t[n]!==void 0)return`${r}:${t[n]}`}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(z1.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function J_(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,o])=>`${n}:${String(o)}`).join(",")}`}function nf(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());let o;if(t&&(o=t(r,e)),Array.isArray(o))return o.map(s=>nf(s,t));if((o==null?void 0:o.constructor)===Object){const s={};for(const i of Object.keys(o))s[i]=nf(o[i],t,i);return s}return o}function tL(e,t){const r=e==="style"?new Map:new Set;function n(o){const s=o.trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(l=>l.trim());i&&a.length&&r.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>r.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(o=>n(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,s])=>{s&&s!=="false"&&(e==="style"?r.set(o.trim(),s):n(o))}),r}function RE(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=tL(r,n);return}if(K1.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&i.endsWith("json"))&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[r]=JSON.stringify(n)}else e[r]=n;return}const o=String(n),s=r.startsWith("data-");o==="true"||o===""?e.props[r]=s?o:!0:!n&&s&&o==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e}function rL(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=RE({tag:e,props:{}},r);return n.key&&W1.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(o=>({...n,props:{...n.props,content:o}})):n}function nL(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(o,s)=>{for(let i=0;i{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])n.push(rL(o,i))}),n.flat()}const Wh=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Q_={base:-10,title:10},oL={critical:-8,high:-1,low:2},ev={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}},sL=/@import/,Aa=e=>e===""||e===!0;function iL(e,t){var s;if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=oL[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:ev;if(t.tag in Q_)r=Q_[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(r=ev.meta[i])}else t.tag==="link"&&t.props.rel?r=o.link[t.props.rel]:t.tag==="script"?Aa(t.props.async)?r=o.script.async:t.props.src&&!Aa(t.props.defer)&&!Aa(t.props.async)&&t.props.type!=="module"&&!((s=t.props.type)!=null&&s.endsWith("json"))?r=o.script.sync:Aa(t.props.defer)&&t.props.src&&!Aa(t.props.async)&&(r=o.script.defer):t.tag==="style"&&(r=t.innerHTML&&sL.test(t.innerHTML)?o.style.imported:o.style.sync);return(r||100)+n}function tv(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function aL(e={}){var a;const t=_E();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,o=new Map,s=[],i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:l=>tv(i,l),push(l,c){const u={...c||{}};delete u.head;const f=u._index??i._entryCount++,d={_i:f,input:l,options:u},p={_poll(g=!1){i.dirty=!0,!g&&s.push(f),t.callHook("entries:updated",i)},dispose(){n.delete(f)&&p._poll(!0)},patch(g){(!u.mode||u.mode==="server"&&r||u.mode==="client"&&!r)&&(d.input=g,n.set(f,d),p._poll())}};return p.patch(l),p},async resolveTags(){var p;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);s.length;){const g=s.shift(),h=n.get(g);if(h){const m={tags:nL(h.input,e.propResolvers||[]).map(y=>Object.assign(y,h.options)),entry:h};await t.callHook("entries:normalize",m),h._tags=m.tags.map((y,b)=>(y._w=iL(i,y),y._p=(h._i<<10)+b,y._d=Vh(y),y))}}let c=!1;l.entries.flatMap(g=>(g._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(Wh).reduce((g,h)=>{const m=String(h._d||h._p);if(!g.has(m))return g.set(m,h);const y=g.get(m);if(((h==null?void 0:h.tagDuplicateStrategy)||(Y1.has(h.tag)?"merge":null)||(h.key&&h.key===y.key?"merge":null))==="merge"){const _={...y.props};Object.entries(h.props).forEach(([v,S])=>_[v]=v==="style"?new Map([...y.props.style||new Map,...S]):v==="class"?new Set([...y.props.class||new Set,...S]):S),g.set(m,{...h,props:_})}else h._p>>10===y._p>>10&&OE(h._d)?(g.set(m,Object.assign([...Array.isArray(y)?y:[y],h],h)),c=!0):(h._w===y._w?h._p>y._p:(h==null?void 0:h._w)<(y==null?void 0:y._w))&&g.set(m,h);return g},l.tagMap);const u=l.tagMap.get("title"),f=l.tagMap.get("titleTemplate");if(i._title=u==null?void 0:u.textContent,f){const g=f==null?void 0:f.textContent;if(i._titleTemplate=g,g){let h=typeof g=="function"?g(u==null?void 0:u.textContent):g;typeof h=="string"&&!i.plugins.has("template-params")&&(h=h.replace("%s",(u==null?void 0:u.textContent)||"")),u?h===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:h}):(f.tag="title",f.textContent=h)}}l.tags=Array.from(l.tagMap.values()),c&&(l.tags=l.tags.flat().sort(Wh)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const d=[];for(const g of l.tags){const{innerHTML:h,tag:m,props:y}=g;if(G1.has(m)&&!(Object.keys(y).length===0&&!g.innerHTML&&!g.textContent)&&!(m==="meta"&&!y.content&&!y["http-equiv"]&&!y.charset)){if(m==="script"&&h){if((p=y.type)!=null&&p.endsWith("json")){const b=typeof h=="string"?h:JSON.stringify(h);g.innerHTML=b.replace(/tv(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const Lo="%separator",lL=new RegExp(`${Lo}(?:\\s*${Lo})*`,"g");function cL(e,t,r=!1){var o;let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");n=(o=e[t.substring(0,s)])==null?void 0:o[t.substring(s+1)]}else n=e[t];if(n!==void 0)return r?(n||"").replace(/\\/g,"\\\\").replace(/{if(a===Lo||!s.includes(a))return a;const l=cL(t,a.slice(1),n);return l!==void 0?l:a}).trim(),i&&(e.endsWith(Lo)&&(e=e.slice(0,-Lo.length)),e.startsWith(Lo)&&(e=e.slice(Lo.length)),e=e.replace(lL,r||"").trim()),e}const rv=e=>e.includes(":key")?e:e.split(":").join(":key:"),uL={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const r of e.tags){const n=r.tagPriority;if(!n)continue;const o=String(n);if(o.startsWith("before:")){const s=rv(o.slice(7)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(r.tagPriority=i.tagPriority),r._p=i._p-1,t=!0)}else if(o.startsWith("after:")){const s=rv(o.slice(6)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(r.tagPriority=i.tagPriority),r._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Wh))}}},fL={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 zh(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(r=>zh(r)));if((e==null?void 0:e.constructor)===Object){const r={};for(const n of Object.keys(e))r[n]=await zh(e[n]);return r}return e}const dL={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const r in e.entries)e.entries[r]._promisesProcessed||t.push(zh(e.entries[r].input).then(n=>{e.entries[r].input=n,e.entries[r]._promisesProcessed=!0}));await Promise.all(t)}}},pL={meta:"content",link:"href",htmlAttrs:"lang"},hL=["innerHTML","textContent"],gL=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var n,o,s;const r=((o=(n=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:n[0])==null?void 0:o.props)||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...((s=e._ssrPayload)==null?void 0:s.templateParams)||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{var s;const n=((s=t.get("templateParams"))==null?void 0:s.props)||{},o=n.separator||"|";delete n.separator,n.pageTitle=Wc(n.pageTitle||e._title||"",n,o);for(const i of r){if(i.processTemplateParams===!1)continue;const a=pL[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=Wc(i.props[a],n,o);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of hL)typeof i[l]=="string"&&(i[l]=Wc(i[l],n,o,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=n,e._separator=o},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r!=null&&r.textContent&&r.processTemplateParams!==!1&&(r.textContent=Wc(r.textContent,e._templateParams,e._separator))}}}),mL=(e,t)=>qe(t)?yu(t):t,wm="usehead";function yL(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(wm,e)}}.install}function LE(){if(pa()){const e=jt(wm);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 PE(e,t={}){const r=t.head||LE();return r.ssr?r.push(e||{},t):_L(r,e,t)}function _L(e,t,r={}){const n=ue(!1);let o;return ed(()=>{const i=n.value?{}:nf(t,mL);o?o.patch(i):o=e.push(i,r)}),er()&&(da(()=>{o.dispose()}),mS(()=>{n.value=!0}),gS(()=>{n.value=!1})),o}function vL(e={},t={}){(t.head||LE()).use(Q1);const{title:n,titleTemplate:o,...s}=e;return PE({title:n,titleTemplate:o,_flatMeta:s},t)}function NE(e){var r;const t=e||wE();return((r=t==null?void 0:t.ssrContext)==null?void 0:r.head)||(t==null?void 0:t.runWithContext(()=>{if(pa())return jt(wm)}))}function $s(e,t={}){const r=NE(t.nuxt);if(r)return PE(e,{head:r,...t})}function P9(e,t={}){const r=NE(t.nuxt);if(r)return vL(e,{head:r,...t})}const bL="modulepreload",wL=function(e,t){return new URL(e,t).href},nv={},Zt=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(r.map(c=>{if(c=wL(c,n),c in nv)return;nv[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!n)for(let g=i.length-1;g>=0;g--){const h=i[g];if(h.href===c&&(!u||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":bL,u||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((g,h)=>{p.addEventListener("load",g),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};async function ov(e,t={}){if(!await DE(e))return null;const n=await EL(e,t);return await ME(n)||null}const SL="_payload.json";async function EL(e,t={}){const r=new URL(e,"http://localhost");if(r.host!=="localhost"||yn(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=at(),o=t.hash||(t.fresh?Date.now():n.app.buildId),s=n.app.cdnURL,i=s&&await DE(e)?s:n.app.baseURL;return ei(i,r.pathname,SL+(o?`?${o}`:""))}async function ME(e){const t=fetch(e,{cache:"force-cache"}).then(r=>r.text().then($E));try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}async function DE(e=ti().path){return!!Ie().payload.prerenderedAt}let ps=null;async function xL(){var n;if(ps)return ps;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await $E(e.textContent||""),r=e.dataset.src?await ME(e.dataset.src):void 0;return ps={...t,...r,...window.__NUXT__},(n=ps.config)!=null&&n.public&&(ps.config.public=Jt(ps.config.public)),ps}async function $E(e){return await H1(e,Ie()._payloadRevivers)}function kL(e,t){Ie()._payloadRevivers[e]=t}const CL=[["NuxtError",e=>cd(e)],["EmptyShallowRef",e=>fn(e==="_"?void 0:e==="0n"?BigInt(0):Ll(e))],["EmptyRef",e=>ue(e==="_"?void 0:e==="0n"?BigInt(0):Ll(e))],["ShallowRef",e=>fn(e)],["ShallowReactive",e=>oo(e)],["Ref",e=>ue(e)],["Reactive",e=>Jt(e)]],TL=Qe({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const[n,o]of CL)kL(n,o);Object.assign(e.payload,([t,r]=Pt(()=>e.runWithContext(xL)),t=await t,r(),t)),window.__NUXT__=e.payload}});async function Sm(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{var p;const s=new Map,i=new Promise(g=>{e.resolveTags().then(h=>{g(h.map(m=>{const y=s.get(m._d)||0,b={tag:m,id:(y?`${m._d}:${y}`:m._d)||J_(m),shouldRender:!0};return m._d&&OE(m._d)&&s.set(m._d,y+1),b}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const g of["body","head"]){const h=(p=r[g])==null?void 0:p.children;for(const m of h){const y=m.tagName.toLowerCase();if(!Z_.has(y))continue;const b=RE({tag:y,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((_,v)=>(_[v]=m.getAttribute(v),_),{})||{}});if(b.key=m.getAttribute("data-hid")||void 0,b._d=Vh(b)||J_(b),a.elMap.has(b._d)){let _=1,v=b._d;for(;a.elMap.has(v);)v=`${b._d}:${_++}`;a.elMap.set(v,m)}else a.elMap.set(b._d,m)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(g,h,m){const y=`${g}:${h}`;a.sideEffects[y]=m,delete a.pendingSideEffects[y]}function c({id:g,$el:h,tag:m}){const y=m.tag.endsWith("Attrs");a.elMap.set(g,h),y||(m.textContent&&m.textContent!==h.textContent&&(h.textContent=m.textContent),m.innerHTML&&m.innerHTML!==h.innerHTML&&(h.innerHTML=m.innerHTML),l(g,"el",()=>{h==null||h.remove(),a.elMap.delete(g)}));for(const b in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,b))continue;const _=m.props[b];if(b.startsWith("on")&&typeof _=="function"){const S=h==null?void 0:h.dataset;if(S&&S[`${b}fired`]){const E=b.slice(0,-5);_.call(h,new Event(E.substring(2)))}h.getAttribute(`data-${b}`)!==""&&((m.tag==="bodyAttrs"?r.defaultView:h).addEventListener(b.substring(2),_.bind(h)),h.setAttribute(`data-${b}`,""));continue}const v=`attr:${b}`;if(b==="class"){if(!_)continue;for(const S of _)y&&l(g,`${v}:${S}`,()=>h.classList.remove(S)),!h.classList.contains(S)&&h.classList.add(S)}else if(b==="style"){if(!_)continue;for(const[S,E]of _)l(g,`${v}:${S}`,()=>{h.style.removeProperty(S)}),h.style.setProperty(S,E)}else _!==!1&&_!==null&&(h.getAttribute(b)!==_&&h.setAttribute(b,_===!0?"":String(_)),y&&l(g,v,()=>h.removeAttribute(b)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const g of d){const{tag:h,shouldRender:m,id:y}=g;if(m){if(h.tag==="title"){r.title=h.textContent,l("title","",()=>r.title=a.title);continue}g.$el=g.$el||a.elMap.get(y),g.$el?c(g):Z_.has(h.tag)&&u.push(g)}}for(const g of u){const h=g.tag.tagPosition||"head";g.$el=r.createElement(g.tag.tag),c(g),f[h]=f[h]||r.createDocumentFragment(),f[h].appendChild(g.$el)}for(const g of d)await e.hooks.callHook("dom:renderTag",g,r,l);f.head&&r.head.appendChild(f.head),f.bodyOpen&&r.body.insertBefore(f.bodyOpen,r.body.firstChild),f.bodyClose&&r.body.appendChild(f.bodyClose);for(const g in a.pendingSideEffects)a.pendingSideEffects[g]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function IL(e={}){var n,o,s;const t=((n=e.domOptions)==null?void 0:n.render)||Sm;e.document=e.document||(typeof window<"u"?document:void 0);const r=((s=(o=e.document)==null?void 0:o.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return aL({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function AL(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function OL(e={}){const t=IL({domOptions:{render:AL(()=>Sm(t),r=>setTimeout(r,0))},...e});return t.install=yL(t),t}const RL={disableDefaults:!0,disableCapoSorting:!1,plugins:[fL,dL,gL,uL]},LL=Qe({name:"nuxt:head",enforce:"pre",setup(e){const t=OL(RL);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await Sm(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}});/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const mi=typeof document<"u";function FE(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function PL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&FE(e.default)}const Ye=Object.assign;function cp(e,t){const r={};for(const n in t){const o=t[n];r[n]=pn(o)?o.map(e):e(o)}return r}const ul=()=>{},pn=Array.isArray,UE=/#/g,NL=/&/g,ML=/\//g,DL=/=/g,$L=/\?/g,jE=/\+/g,FL=/%5B/g,UL=/%5D/g,BE=/%5E/g,jL=/%60/g,HE=/%7B/g,BL=/%7C/g,VE=/%7D/g,HL=/%20/g;function Em(e){return encodeURI(""+e).replace(BL,"|").replace(FL,"[").replace(UL,"]")}function VL(e){return Em(e).replace(HE,"{").replace(VE,"}").replace(BE,"^")}function Gh(e){return Em(e).replace(jE,"%2B").replace(HL,"+").replace(UE,"%23").replace(NL,"%26").replace(jL,"`").replace(HE,"{").replace(VE,"}").replace(BE,"^")}function WL(e){return Gh(e).replace(DL,"%3D")}function zL(e){return Em(e).replace(UE,"%23").replace($L,"%3F")}function GL(e){return e==null?"":zL(e).replace(ML,"%2F")}function Dl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const qL=/\/$/,KL=e=>e.replace(qL,"");function up(e,t,r="/"){let n,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(n=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(n=n||t.slice(0,a),i=t.slice(a,t.length)),n=JL(n??t,r),{fullPath:n+(s&&"?")+s+i,path:n,query:o,hash:Dl(i)}}function YL(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function sv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ZL(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Vi(t.matched[n],r.matched[o])&&WE(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Vi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function WE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!XL(e[r],t[r]))return!1;return!0}function XL(e,t){return pn(e)?iv(e,t):pn(t)?iv(t,e):e===t}function iv(e,t){return pn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function JL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let s=r.length-1,i,a;for(i=0;i1&&s--;else break;return r.slice(0,s).join("/")+"/"+n.slice(i).join("/")}const Qr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var $l;(function(e){e.pop="pop",e.push="push"})($l||($l={}));var fl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(fl||(fl={}));function QL(e){if(!e)if(mi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),KL(e)}const eP=/^[^#]+#/;function tP(e,t){return e.replace(eP,"#")+t}function rP(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const ud=()=>({left:window.scrollX,top:window.scrollY});function nP(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=rP(o,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 av(e,t){return(history.state?history.state.position-t:-1)+e}const qh=new Map;function oP(e,t){qh.set(e,t)}function sP(e){const t=qh.get(e);return qh.delete(e),t}let iP=()=>location.protocol+"//"+location.host;function zE(e,t){const{pathname:r,search:n,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),sv(l,"")}return sv(r,e)+n+o}function aP(e,t,r,n){let o=[],s=[],i=null;const a=({state:d})=>{const p=zE(e,location),g=r.value,h=t.value;let m=0;if(d){if(r.value=p,t.value=d,i&&i===g){i=null;return}m=h?d.position-h.position:0}else n(p);o.forEach(y=>{y(r.value,g,{delta:m,type:$l.pop,direction:m?m>0?fl.forward:fl.back:fl.unknown})})};function l(){i=r.value}function c(d){o.push(d);const p=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return s.push(p),p}function u(){const{history:d}=window;d.state&&d.replaceState(Ye({},d.state,{scroll:ud()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function lv(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?ud():null}}function lP(e){const{history:t,location:r}=window,n={value:zE(e,r)},o={value:t.state};o.value||s(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:iP()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),r[u?"replace":"assign"](d)}}function i(l,c){const u=Ye({},t.state,lv(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),n.value=l}function a(l,c){const u=Ye({},o.value,t.state,{forward:l,scroll:ud()});s(u.current,u,!0);const f=Ye({},lv(n.value,l,null),{position:u.position+1},c);s(l,f,!1),n.value=l}return{location:n,state:o,push:a,replace:i}}function cP(e){e=QL(e);const t=lP(e),r=aP(e,t.state,t.location,t.replace);function n(s,i=!0){i||r.pauseListeners(),history.go(s)}const o=Ye({location:"",base:e,go:n,createHref:tP.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function uP(e){return typeof e=="string"||e&&typeof e=="object"}function GE(e){return typeof e=="string"||typeof e=="symbol"}const qE=Symbol("");var cv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(cv||(cv={}));function Wi(e,t){return Ye(new Error,{type:e,[qE]:!0},t)}function Cn(e,t){return e instanceof Error&&qE in e&&(t==null||!!(e.type&t))}const uv="[^/]+?",fP={sensitive:!1,strict:!1,start:!0,end:!0},dP=/[.+*?^${}()[\]/\\]/g;function pP(e,t){const r=Ye({},fP,t),n=[];let o=r.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function KE(e,t){let r=0;const n=e.score,o=t.score;for(;r0&&t[t.length-1]<0}const gP={type:0,value:""},mP=/[a-zA-Z0-9_]/;function yP(e){if(!e)return[[]];if(e==="/")return[[gP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${c}": ${p}`)}let r=0,n=r;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(r===0?s.push({type:0,value:c}):r===1||r===2||r===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{i(_)}:ul}function i(f){if(GE(f)){const d=n.get(f);d&&(n.delete(f),r.splice(r.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=r.indexOf(f);d>-1&&(r.splice(d,1),f.record.name&&n.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return r}function l(f){const d=SP(f,r);r.splice(d,0,f),f.record.name&&!hv(f)&&n.set(f.record.name,f)}function c(f,d){let p,g={},h,m;if("name"in f&&f.name){if(p=n.get(f.name),!p)throw Wi(1,{location:f});m=p.record.name,g=Ye(dv(d.params,p.keys.filter(_=>!_.optional).concat(p.parent?p.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&dv(f.params,p.keys.map(_=>_.name))),h=p.stringify(g)}else if(f.path!=null)h=f.path,p=r.find(_=>_.re.test(h)),p&&(g=p.parse(h),m=p.record.name);else{if(p=d.name?n.get(d.name):r.find(_=>_.re.test(d.path)),!p)throw Wi(1,{location:f,currentLocation:d});m=p.record.name,g=Ye({},d.params,f.params),h=p.stringify(g)}const y=[];let b=p;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:h,params:g,matched:y,meta:wP(y)}}e.forEach(f=>s(f));function u(){r.length=0,n.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function dv(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function pv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:bP(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 bP(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function hv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wP(e){return e.reduce((t,r)=>Ye(t,r.meta),{})}function gv(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function SP(e,t){let r=0,n=t.length;for(;r!==n;){const s=r+n>>1;KE(e,t[s])<0?n=s:r=s+1}const o=EP(e);return o&&(n=t.lastIndexOf(o,n-1)),n}function EP(e){let t=e;for(;t=t.parent;)if(YE(t)&&KE(e,t)===0)return t}function YE({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function xP(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&Gh(s)):[n&&Gh(n)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function kP(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=pn(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const CP=Symbol(""),yv=Symbol(""),xm=Symbol(""),km=Symbol(""),Kh=Symbol("");function Oa(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Po(e,t,r,n,o,s=i=>i()){const i=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(Wi(4,{from:r,to:t})):d instanceof Error?l(d):uP(d)?l(Wi(2,{from:t,to:d})):(i&&n.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},u=s(()=>e.call(n&&n.instances[o],t,r,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function fp(e,t,r,n,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(FE(l)){const u=(l.__vccOpts||l)[t];u&&s.push(Po(u,r,n,i,a,o))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=PL(u)?u.default:u;i.mods[a]=u,i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Po(p,r,n,i,a,o)()}))}}return s}function _v(e){const t=jt(xm),r=jt(km),n=X(()=>{const l=He(e.to);return t.resolve(l)}),o=X(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],f=r.matched;if(!u||!f.length)return-1;const d=f.findIndex(Vi.bind(null,u));if(d>-1)return d;const p=vv(l[c-2]);return c>1&&vv(u)===p&&f[f.length-1].path!==p?f.findIndex(Vi.bind(null,l[c-2])):d}),s=X(()=>o.value>-1&&RP(r.params,n.value.params)),i=X(()=>o.value>-1&&o.value===r.matched.length-1&&WE(r.params,n.value.params));function a(l={}){if(OP(l)){const c=t[He(e.replace)?"replace":"push"](He(e.to)).catch(ul);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:X(()=>n.value.href),isActive:s,isExactActive:i,navigate:a}}function TP(e){return e.length===1?e[0]:e}const IP=It({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:_v,setup(e,{slots:t}){const r=Jt(_v(e)),{options:n}=jt(xm),o=X(()=>({[bv(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[bv(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const s=t.default&&TP(t.default(r));return e.custom?s:Tt("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},s)}}}),AP=IP;function OP(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 RP(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!pn(o)||o.length!==n.length||n.some((s,i)=>s!==o[i]))return!1}return!0}function vv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const bv=(e,t,r)=>e??t??r,LP=It({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=jt(Kh),o=X(()=>e.route||n.value),s=jt(yv,0),i=X(()=>{let c=He(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=X(()=>o.value.matched[i.value]);Is(yv,X(()=>i.value+1)),Is(CP,a),Is(Kh,o);const l=ue();return Oe(()=>[l.value,a.value,e.name],([c,u,f],[d,p,g])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Vi(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return wv(r.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,m=Tt(d,Ye({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return wv(r.default,{Component:m,route:c})||m}}});function wv(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const ZE=LP;function PP(e){const t=vP(e.routes,e),r=e.parseQuery||xP,n=e.stringifyQuery||mv,o=e.history,s=Oa(),i=Oa(),a=Oa(),l=fn(Qr);let c=Qr;mi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=cp.bind(null,W=>""+W),f=cp.bind(null,GL),d=cp.bind(null,Dl);function p(W,Q){let J,ie;return GE(W)?(J=t.getRecordMatcher(W),ie=Q):ie=W,t.addRoute(ie,J)}function g(W){const Q=t.getRecordMatcher(W);Q&&t.removeRoute(Q)}function h(){return t.getRoutes().map(W=>W.record)}function m(W){return!!t.getRecordMatcher(W)}function y(W,Q){if(Q=Ye({},Q||l.value),typeof W=="string"){const I=up(r,W,Q.path),$=t.resolve({path:I.path},Q),B=o.createHref(I.fullPath);return Ye(I,$,{params:d($.params),hash:Dl(I.hash),redirectedFrom:void 0,href:B})}let J;if(W.path!=null)J=Ye({},W,{path:up(r,W.path,Q.path).path});else{const I=Ye({},W.params);for(const $ in I)I[$]==null&&delete I[$];J=Ye({},W,{params:f(I)}),Q.params=f(Q.params)}const ie=t.resolve(J,Q),te=W.hash||"";ie.params=u(d(ie.params));const we=YL(n,Ye({},W,{hash:VL(te),path:ie.path})),C=o.createHref(we);return Ye({fullPath:we,hash:te,query:n===mv?kP(W.query):W.query||{}},ie,{redirectedFrom:void 0,href:C})}function b(W){return typeof W=="string"?up(r,W,l.value.path):Ye({},W)}function _(W,Q){if(c!==W)return Wi(8,{from:Q,to:W})}function v(W){return x(W)}function S(W){return v(Ye(b(W),{replace:!0}))}function E(W){const Q=W.matched[W.matched.length-1];if(Q&&Q.redirect){const{redirect:J}=Q;let ie=typeof J=="function"?J(W):J;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=b(ie):{path:ie},ie.params={}),Ye({query:W.query,hash:W.hash,params:ie.path!=null?{}:W.params},ie)}}function x(W,Q){const J=c=y(W),ie=l.value,te=W.state,we=W.force,C=W.replace===!0,I=E(J);if(I)return x(Ye(b(I),{state:typeof I=="object"?Ye({},te,I.state):te,force:we,replace:C}),Q||J);const $=J;$.redirectedFrom=Q;let B;return!we&&ZL(n,ie,J)&&(B=Wi(16,{to:$,from:ie}),ve(ie,ie,!0,!1)),(B?Promise.resolve(B):N($,ie)).catch(H=>Cn(H)?Cn(H,2)?H:ct(H):ne(H,$,ie)).then(H=>{if(H){if(Cn(H,2))return x(Ye({replace:C},b(H.to),{state:typeof H.to=="object"?Ye({},te,H.to.state):te,force:we}),Q||$)}else H=L($,ie,!0,C,te);return U($,ie,H),H})}function R(W,Q){const J=_(W,Q);return J?Promise.reject(J):Promise.resolve()}function A(W){const Q=tr.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(W):W()}function N(W,Q){let J;const[ie,te,we]=NP(W,Q);J=fp(ie.reverse(),"beforeRouteLeave",W,Q);for(const I of ie)I.leaveGuards.forEach($=>{J.push(Po($,W,Q))});const C=R.bind(null,W,Q);return J.push(C),ht(J).then(()=>{J=[];for(const I of s.list())J.push(Po(I,W,Q));return J.push(C),ht(J)}).then(()=>{J=fp(te,"beforeRouteUpdate",W,Q);for(const I of te)I.updateGuards.forEach($=>{J.push(Po($,W,Q))});return J.push(C),ht(J)}).then(()=>{J=[];for(const I of we)if(I.beforeEnter)if(pn(I.beforeEnter))for(const $ of I.beforeEnter)J.push(Po($,W,Q));else J.push(Po(I.beforeEnter,W,Q));return J.push(C),ht(J)}).then(()=>(W.matched.forEach(I=>I.enterCallbacks={}),J=fp(we,"beforeRouteEnter",W,Q,A),J.push(C),ht(J))).then(()=>{J=[];for(const I of i.list())J.push(Po(I,W,Q));return J.push(C),ht(J)}).catch(I=>Cn(I,8)?I:Promise.reject(I))}function U(W,Q,J){a.list().forEach(ie=>A(()=>ie(W,Q,J)))}function L(W,Q,J,ie,te){const we=_(W,Q);if(we)return we;const C=Q===Qr,I=mi?history.state:{};J&&(ie||C?o.replace(W.fullPath,Ye({scroll:C&&I&&I.scroll},te)):o.push(W.fullPath,te)),l.value=W,ve(W,Q,J,C),ct()}let G;function re(){G||(G=o.listen((W,Q,J)=>{if(!ze.listening)return;const ie=y(W),te=E(ie);if(te){x(Ye(te,{replace:!0,force:!0}),ie).catch(ul);return}c=ie;const we=l.value;mi&&oP(av(we.fullPath,J.delta),ud()),N(ie,we).catch(C=>Cn(C,12)?C:Cn(C,2)?(x(Ye(b(C.to),{force:!0}),ie).then(I=>{Cn(I,20)&&!J.delta&&J.type===$l.pop&&o.go(-1,!1)}).catch(ul),Promise.reject()):(J.delta&&o.go(-J.delta,!1),ne(C,ie,we))).then(C=>{C=C||L(ie,we,!1),C&&(J.delta&&!Cn(C,8)?o.go(-J.delta,!1):J.type===$l.pop&&Cn(C,20)&&o.go(-1,!1)),U(ie,we,C)}).catch(ul)}))}let le=Oa(),q=Oa(),oe;function ne(W,Q,J){ct(W);const ie=q.list();return ie.length?ie.forEach(te=>te(W,Q,J)):console.error(W),Promise.reject(W)}function Se(){return oe&&l.value!==Qr?Promise.resolve():new Promise((W,Q)=>{le.add([W,Q])})}function ct(W){return oe||(oe=!W,re(),le.list().forEach(([Q,J])=>W?J(W):Q()),le.reset()),W}function ve(W,Q,J,ie){const{scrollBehavior:te}=e;if(!mi||!te)return Promise.resolve();const we=!J&&sP(av(W.fullPath,0))||(ie||!J)&&history.state&&history.state.scroll||null;return qr().then(()=>te(W,Q,we)).then(C=>C&&nP(C)).catch(C=>ne(C,W,Q))}const We=W=>o.go(W);let je;const tr=new Set,ze={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:h,resolve:y,options:e,push:v,replace:S,go:We,back:()=>We(-1),forward:()=>We(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:q.add,isReady:Se,install(W){const Q=this;W.component("RouterLink",AP),W.component("RouterView",ZE),W.config.globalProperties.$router=Q,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>He(l)}),mi&&!je&&l.value===Qr&&(je=!0,v(o.location).catch(te=>{}));const J={};for(const te in Qr)Object.defineProperty(J,te,{get:()=>l.value[te],enumerable:!0});W.provide(xm,Q),W.provide(km,oo(J)),W.provide(Kh,l);const ie=W.unmount;tr.add(W),W.unmount=function(){tr.delete(W),tr.size<1&&(c=Qr,G&&G(),G=null,l.value=Qr,je=!1,oe=!1),ie()}}};function ht(W){return W.reduce((Q,J)=>Q.then(()=>A(J)),Promise.resolve())}return ze}function NP(e,t){const r=[],n=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iVi(c,a))?n.push(a):r.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Vi(c,l))||o.push(l))}return[r,n,o]}function N9(e){return jt(km)}const MP=/(:\w+)\([^)]+\)/g,DP=/(:\w+)[?+*]/g,$P=/:\w+/g,FP=(e,t)=>t.path.replace(MP,"$1").replace(DP,"$1").replace($P,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""}),Yh=(e,t)=>{const r=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),n=t??(r==null?void 0:r.meta.key)??(r&&FP(e.route,r));return typeof n=="function"?n(e.route):n},UP=(e,t)=>({default:()=>e?Tt(BA,e===!0?{}:e,t):t});function Cm(e){return Array.isArray(e)?e:[e]}const jP={layout:!1,pageTransition:!1},BP={layout:!1,pageTransition:!1},HP={layout:!1,pageTransition:!1},VP={layout:!1,pageTransition:!1};const dp=[{name:"g",path:"/g",component:()=>Zt(()=>import("./CCIlU82M.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"index",path:"/",component:()=>Zt(()=>import("./B4I6QTsD.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,2,15,16,17,18,19,20,21,22,3]),import.meta.url)},{name:"search",path:"/search",component:()=>Zt(()=>import("./C-ZnW0EP.js"),__vite__mapDeps([23,24,25,13,8,9,10,11,26,27,28,22]),import.meta.url)},{name:"v8",path:"/v8",component:()=>Zt(()=>import("./CYdrwQOF.js"),__vite__mapDeps([29,6,7,8,9,10,11,12,13,14,2,15,16,17,18,19,20,21,22,3]),import.meta.url)},{name:"video-id",path:"/video/:id()",component:()=>Zt(()=>import("./DhAMQzxY.js"),__vite__mapDeps([30,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37,26]),import.meta.url)},{name:"terms",path:"/terms",meta:jP||{},component:()=>Zt(()=>import("./C25SXTYd.js"),__vite__mapDeps([38,39,40,13,41,42,43,44,3,45]),import.meta.url)},{name:"article-id",path:"/article/:id()",component:()=>Zt(()=>import("./BhTa3CLI.js"),__vite__mapDeps([46,47,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37]),import.meta.url)},{name:"contact",path:"/contact",meta:BP||{},component:()=>Zt(()=>import("./gzDD_N3l.js"),__vite__mapDeps([48,39,40,3,49,50]),import.meta.url)},{name:"v8-article-id",path:"/v8/article/:id()",component:()=>Zt(()=>import("./B6nhmqrH.js"),__vite__mapDeps([51,47,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37]),import.meta.url)},{name:"privacy-policy",path:"/privacy-policy",meta:HP||{},component:()=>Zt(()=>import("./5cfXiZ1g.js"),__vite__mapDeps([52,39,40,53,13,41,42,43,44,3,54]),import.meta.url)},{name:"privacy-policy-relationships",path:"/privacy-policy/relationships",meta:VP||{},component:()=>Zt(()=>import("./Dqw0bNyu.js"),__vite__mapDeps([55,39,40,53,13,41,42,43,44,3,54]),import.meta.url)}],WP=(e,t)=>({default:()=>{var r;return e?Tt(QS,e===!0?{}:e,t):(r=t.default)==null?void 0:r.call(t)}}),zP=/(:\w+)\([^)]+\)/g,GP=/(:\w+)[?+*]/g,qP=/:\w+/g;function Sv(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(zP,"$1").replace(GP,"$1").replace(qP,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""});return typeof t=="function"?t(e):t}function XE(e,t){return e===t||t===Qr?!1:Sv(e)!==Sv(t)?!0:!e.matched.every((n,o)=>{var s,i;return n.components&&n.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const KP={scrollBehavior(e,t,r){var c;const n=Ie(),o=((c=Ht().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=r||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&XE(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:JE(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??$h),l=a(t)&&a(e)?"page:transition:finish":"page:loading:end";return new Promise(u=>{n.hooks.hookOnce(l,()=>{requestAnimationFrame(()=>u(YP(e,"instant",s)))})})}};function JE(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 YP(e,t,r){return r||(e.hash?{el:e.hash,top:JE(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const ZP={hashMode:!1,scrollBehaviorType:"auto"},Br={...ZP,...KP},XP=async e=>{var l;let t,r;if(!((l=e.meta)!=null&&l.validate))return;const n=Ie(),o=Ht(),s=([t,r]=Pt(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t);if(s===!0)return;const i=cd({statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(c=>{if(a(),c===e){const u=o.afterEach(async()=>{u(),await n.runWithContext(()=>Ro(i)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},JP=[XP],dl={};function QP(e,t,r){const{pathname:n,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const c=s.includes(e.slice(i))?e.slice(i).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),W_(u,"")}const a=W_(n,e),l=!r||Ph(a,r,{trailingSlash:!0})?a:r;return l+(l.includes("?")?"":o)+s}const eN=Qe({name:"nuxt:router",enforce:"pre",async setup(e){var m;let t,r,n=at().app.baseURL;const o=((m=Br.history)==null?void 0:m.call(Br,n))??cP(n),s=Br.routes?([t,r]=Pt(()=>Br.routes(dp)),t=await t,r(),t??dp):dp;let i;const a=PP({...Br,scrollBehavior:(y,b,_)=>{if(b===Qr){i=_;return}if(Br.scrollBehavior){if(a.options.scrollBehavior=Br.scrollBehavior,"scrollRestoration"in window.history){const v=a.beforeEach(()=>{v(),window.history.scrollRestoration="manual"})}return Br.scrollBehavior(y,Qr,i||_)}},history:o,routes:s});Br.routes&&Br.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=fn(a.currentRoute.value);a.afterEach((y,b)=>{l.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=QP(n,window.location,e.payload.path),u=fn(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((y,b)=>{var _,v,S,E;((v=(_=y.matched[0])==null?void 0:_.components)==null?void 0:v.default)===((E=(S=b.matched[0])==null?void 0:S.components)==null?void 0:E.default)&&f()});const d={};for(const y in u.value)Object.defineProperty(d,y,{get:()=>u.value[y],enumerable:!0});e._route=oo(d),e._middleware||(e._middleware={global:[],named:{}});const p=ld();a.afterEach(async(y,b,_)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(P1),_&&await e.callHook("page:loading:end")});try{[t,r]=Pt(()=>a.isReady()),await t,r()}catch(y){[t,r]=Pt(()=>e.runWithContext(()=>Ro(y))),await t,r()}const g=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const h=e.payload.state._layout;return a.beforeEach(async(y,b)=>{var _;await e.callHook("page:loading:start"),y.meta=Jt(y.meta),e.isHydrating&&h&&!Vo(y.meta.layout)&&(y.meta.layout=h),e._processingMiddleware=!0;{const v=new Set([...JP,...e._middleware.global]);for(const S of y.matched){const E=S.meta.middleware;if(E)for(const x of Cm(E))v.add(x)}for(const S of v){const E=typeof S=="string"?e._middleware.named[S]||await((_=dl[S])==null?void 0:_.call(dl).then(x=>x.default||x)):S;if(!E)throw new Error(`Unknown route middleware: '${S}'.`);try{const x=await e.runWithContext(()=>E(y,b));if(!e.payload.serverRendered&&e.isHydrating&&(x===!1||x instanceof Error)){const R=x||wu({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Ro(R)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return kE(x)&&x.fatal&&await e.runWithContext(()=>Ro(x)),x}catch(x){const R=wu(x);return R.fatal&&await e.runWithContext(()=>Ro(R)),R}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(y,b)=>{y.matched.length===0&&await e.runWithContext(()=>Ro(wu({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=Br.scrollBehavior}catch(y){await e.runWithContext(()=>Ro(y))}}),{provide:{router:a}}}}),Zh=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),tN=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Tm=e=>{const t=Ie();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Zh(()=>e())}):Zh(()=>e())},rN=Qe({name:"nuxt:payload",setup(e){const t=new Set;Ht().beforeResolve(async(r,n)=>{if(r.path===n.path)return;const o=await ov(r.path);if(o){for(const s of t)delete e.static.data[s];for(const s in o.data)s in e.static.data||t.add(s),e.static.data[s]=o.data[s]}}),Tm(()=>{e.hooks.hook("link:prefetch",async r=>{const{hostname:n}=new URL(r,window.location.href);n===window.location.hostname&&await ov(r).catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})})})}}),nN=Qe(()=>{const e=Ht();Tm(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),oN=Qe(e=>{if(!document.startViewTransition)return;let t,r;Ht().beforeResolve(async(o,s)=>{const i=o.meta.viewTransition??g1,l=window.matchMedia("(prefers-reduced-motion: reduce)").matches&&i!=="always";if(i===!1||l||!XE(o,s))return;const c=new Promise((p,g)=>{t=p,r=g});let u;const f=new Promise(p=>u=p),d=document.startViewTransition(()=>(u(),c));return d.finished.then(()=>{r=void 0,t=void 0}),await e.callHook("page:view-transition:start",d),f}),e.hook("vue:error",()=>{r==null||r(),r=void 0}),e.hook("page:finish",()=>{t==null||t(),t=void 0})});function sN(e={}){const t=e.path||window.location.pathname;let r={};try{r=Ll(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(r==null?void 0:r.path)!==t||(r==null?void 0:r.expires){n.clear()}),e.hook("app:chunkError",({error:s})=>{n.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?r.app.baseURL+s.href:ei(r.app.baseURL,s.fullPath);sN({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{n.has(s)&&o(i)})}});/*! * pinia v2.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */let QE;const yc=e=>QE=e,ex=Symbol();function Xh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var pl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(pl||(pl={}));function aN(){const e=ca(!0),t=e.run(()=>ue({}));let r=[],n=[];const o=cm({install(s){yc(o),o._a=s,s.provide(ex,o),s.config.globalProperties.$pinia=o,n.forEach(i=>r.push(i)),n=[]},use(s){return this._a?r.push(s):n.push(s),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const tx=()=>{};function Ev(e,t,r,n=tx){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),n())};return!r&&ua()&&xl(o),o}function ci(e,...t){e.slice().forEach(r=>{r(...t)})}const lN=e=>e(),xv=Symbol(),pp=Symbol();function Jh(e,t){e instanceof Map&&t instanceof Map?t.forEach((r,n)=>e.set(n,r)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],o=e[r];Xh(o)&&Xh(n)&&e.hasOwnProperty(r)&&!qe(n)&&!Pn(n)?e[r]=Jh(o,n):e[r]=n}return e}const cN=Symbol();function uN(e){return!Xh(e)||!e.hasOwnProperty(cN)}const{assign:Co}=Object;function fN(e){return!!(qe(e)&&e.effect)}function dN(e,t,r,n){const{state:o,actions:s,getters:i}=t,a=r.state.value[e];let l;function c(){a||(r.state.value[e]=o?o():{});const u=bA(r.state.value[e]);return Co(u,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=cm(X(()=>{yc(r);const p=r._s.get(e);return i[d].call(p,p)})),f),{}))}return l=rx(e,c,t,r,n,!0),l}function rx(e,t,r={},n,o,s){let i;const a=Co({actions:{}},r),l={deep:!0};let c,u,f=[],d=[],p;const g=n.state.value[e];!s&&!g&&(n.state.value[e]={}),ue({});let h;function m(R){let A;c=u=!1,typeof R=="function"?(R(n.state.value[e]),A={type:pl.patchFunction,storeId:e,events:p}):(Jh(n.state.value[e],R),A={type:pl.patchObject,payload:R,storeId:e,events:p});const N=h=Symbol();qr().then(()=>{h===N&&(c=!0)}),u=!0,ci(f,A,n.state.value[e])}const y=s?function(){const{state:A}=r,N=A?A():{};this.$patch(U=>{Co(U,N)})}:tx;function b(){i.stop(),f=[],d=[],n._s.delete(e)}const _=(R,A="")=>{if(xv in R)return R[pp]=A,R;const N=function(){yc(n);const U=Array.from(arguments),L=[],G=[];function re(oe){L.push(oe)}function le(oe){G.push(oe)}ci(d,{args:U,name:N[pp],store:S,after:re,onError:le});let q;try{q=R.apply(this&&this.$id===e?this:S,U)}catch(oe){throw ci(G,oe),oe}return q instanceof Promise?q.then(oe=>(ci(L,oe),oe)).catch(oe=>(ci(G,oe),Promise.reject(oe))):(ci(L,q),q)};return N[xv]=!0,N[pp]=A,N},v={_p:n,$id:e,$onAction:Ev.bind(null,d),$patch:m,$reset:y,$subscribe(R,A={}){const N=Ev(f,R,A.detached,()=>U()),U=i.run(()=>Oe(()=>n.state.value[e],L=>{(A.flush==="sync"?u:c)&&R({storeId:e,type:pl.direct,events:p},L)},Co({},l,A)));return N},$dispose:b},S=Jt(v);n._s.set(e,S);const x=(n._a&&n._a.runWithContext||lN)(()=>n._e.run(()=>(i=ca()).run(()=>t({action:_}))));for(const R in x){const A=x[R];if(qe(A)&&!fN(A)||Pn(A))s||(g&&uN(A)&&(qe(A)?A.value=g[R]:Jh(A,g[R])),n.state.value[e][R]=A);else if(typeof A=="function"){const N=_(A,R);x[R]=N,a.actions[R]=A}}return Co(S,x),Co(Me(S),x),Object.defineProperty(S,"$state",{get:()=>n.state.value[e],set:R=>{m(A=>{Co(A,R)})}}),n._p.forEach(R=>{Co(S,i.run(()=>R({store:S,app:n._a,pinia:n,options:a})))}),g&&s&&r.hydrate&&r.hydrate(S.$state,g),c=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function ha(e,t,r){let n,o;const s=typeof t=="function";typeof e=="string"?(n=e,o=s?r:t):(o=e,n=e.id);function i(a,l){const c=pa();return a=a||(c?jt(ex,null):null),a&&yc(a),a=QE,a._s.has(n)||(s?rx(n,t,o,a):dN(n,o,a)),a._s.get(n)}return i.$id=n,i}function ga(e){{const t=Me(e),r={};for(const n in t){const o=t[n];o.effect?r[n]=X({get:()=>e[n],set(s){e[n]=s}}):(qe(o)||Pn(o))&&(r[n]=Js(e,n))}return r}}function kv(e){return typeof e=="string"?`'${e}'`:new pN().serialize(e)}const pN=function(){var t;class e{constructor(){n_(this,t,new Map)}compare(n,o){const s=typeof n,i=typeof o;return s==="string"&&i==="string"?n.localeCompare(o):s==="number"&&i==="number"?n-o:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(o,!0))}serialize(n,o){if(n===null)return"null";switch(typeof n){case"string":return o?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const o=Object.prototype.toString.call(n);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),n);const s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return i+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,o){const s=this["$"+n];if(s)return s.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(n,o.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,o){const s=Array.from(o).sort((a,l)=>this.compare(a[0],l[0]));let i=`${n}{`;for(let a=0;athis.compare(o,s)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}t=new WeakMap;for(const r of["Error","RegExp","URL"])e.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return e}();function hN(e,t){return e===t||kv(e)===kv(t)}const gN="$s";function ri(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const o=gN+r,s=Ie(),i=Js(s.payload.state,o);if(i.value===void 0&&n){const a=n();if(qe(a))return s.payload.state[o]=a,a;i.value=a}return i}function mN(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const r={},n=t||{},o=n.decode||yN;let s=0;for(;sLl(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Gc=window.cookieStore;function Su(e,t){var c;const r={...bN,...t};r.filter??(r.filter=u=>u===e);const n=Tv(r)||{};let o;r.maxAge!==void 0?o=r.maxAge*1e3:r.expires&&(o=r.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=s||n[e]===void 0||n[e]===null,a=en(s?void 0:n[e]??((c=r.default)==null?void 0:c.call(r))),l=o&&!s?EN(a,o,r.watch&&r.watch!=="shallow"):ue(a);{let u=null;try{!Gc&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(h=!1)=>{!h&&(r.readonly||hN(l.value,n[e]))||(SN(e,l.value,r),n[e]=en(l.value),u==null||u.postMessage({value:r.encode(l.value)}))},d=h=>{var y;const m=h.refresh?(y=Tv(r))==null?void 0:y[e]:r.decode(h.value);p=!0,l.value=m,n[e]=en(m),qr(()=>{p=!1})};let p=!1;const g=!!ua();if(g&&xl(()=>{p=!0,f(),u==null||u.close()}),Gc){const h=m=>{const y=m.changed.find(_=>_.name===e),b=m.deleted.find(_=>_.name===e);y&&d({value:y.value}),b&&d({value:null})};Gc.addEventListener("change",h),g&&xl(()=>Gc.removeEventListener("change",h))}else u&&(u.onmessage=({data:h})=>d(h));r.watch&&Oe(l,()=>{p||f()},{deep:r.watch!=="shallow"}),i&&f(i)}return l}function Tv(e={}){return mN(document.cookie,e)}function wN(e,t,r={}){return t==null?Cv(e,t,{...r,maxAge:-1}):Cv(e,t,r)}function SN(e,t,r={}){document.cookie=wN(e,t,r)}const Iv=2147483647;function EN(e,t,r){let n,o,s=0;const i=r?ue(e):{value:e};return ua()&&xl(()=>{o==null||o(),clearTimeout(n)}),eS((a,l)=>{r&&(o=Oe(i,l));function c(){s=0,clearTimeout(n);const u=t-s,f=u{if(s+=f,s4)return Promise.all(o).then(()=>nx(e,t));t._routePreloaded.add(r);const s=n.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of s){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const xN=(...e)=>e.find(t=>t!==void 0);function kN(e){const t=e.componentName||"NuxtLink";function r(s){return typeof s=="string"&&s.startsWith("#")}function n(s,i){if(!s||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return s;if(typeof s=="string")return Av(s,e.trailingSlash);const a="path"in s&&s.path!==void 0?s.path:i(s).path;return{...s,name:void 0,path:Av(a,e.trailingSlash)}}function o(s){const i=Ht(),a=at(),l=X(()=>!!s.target&&s.target!=="_self"),c=X(()=>{const m=s.to||s.href||"";return typeof m=="string"&&yn(m,{acceptRelative:!0})}),u=g_("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=X(()=>{if(s.external)return!0;const m=s.to||s.href||"";return typeof m=="object"?!1:m===""||c.value}),p=X(()=>{const m=s.to||s.href||"";return d.value?m:n(m,i.resolve)}),g=d.value||f==null?void 0:f({...s,to:p}),h=X(()=>{var m;if(!p.value||c.value||r(p.value))return p.value;if(d.value){const y=typeof p.value=="object"&&"path"in p.value?Bh(p.value):p.value,b=typeof y=="object"?i.resolve(y).href:y;return n(b,i.resolve)}return typeof p.value=="object"?((m=i.resolve(p.value))==null?void 0:m.href)??null:n(ei(a.app.baseURL,p.value),i.resolve)});return{to:p,hasTarget:l,isAbsoluteUrl:c,isExternal:d,href:h,isActive:(g==null?void 0:g.isActive)??X(()=>p.value===i.currentRoute.value.path),isExactActive:(g==null?void 0:g.isExactActive)??X(()=>p.value===i.currentRoute.value.path),route:(g==null?void 0:g.route)??X(()=>i.resolve(p.value)),async navigate(m){await Oo(h.value,{replace:s.replace,external:d.value||l.value})}}}return It({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:o,setup(s,{slots:i}){const a=Ht(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:p}=o(s),g=ue(!1),h=ue(null),m=_=>{var v;h.value=s.custom?(v=_==null?void 0:_.$el)==null?void 0:v.nextElementSibling:_==null?void 0:_.$el};function y(_){var v,S;return!g.value&&(typeof s.prefetchOn=="string"?s.prefetchOn===_:((v=s.prefetchOn)==null?void 0:v[_])??((S=e.prefetchOn)==null?void 0:S[_]))&&(s.prefetch??e.prefetch)!==!1&&s.noPrefetch!==!0&&s.target!=="_blank"&&!AN()}async function b(_=Ie()){if(g.value)return;g.value=!0;const v=typeof l.value=="string"?l.value:f.value?Bh(l.value):a.resolve(l.value).fullPath,S=f.value?new URL(v,window.location.href).href:v;await Promise.all([_.hooks.callHook("link:prefetch",S).catch(()=>{}),!f.value&&!d.value&&nx(l.value,a).catch(()=>{})])}if(y("visibility")){const _=Ie();let v,S=null;Or(()=>{const E=TN();Tm(()=>{v=Zh(()=>{var x;(x=h==null?void 0:h.value)!=null&&x.tagName&&(S=E.observe(h.value,async()=>{S==null||S(),S=null,await b(_)}))})})}),da(()=>{v&&tN(v),S==null||S(),S=null})}return()=>{var S;if(!f.value&&!d.value&&!r(l.value)){const E={ref:m,to:l.value,activeClass:s.activeClass||e.activeClass,exactActiveClass:s.exactActiveClass||e.exactActiveClass,replace:s.replace,ariaCurrentValue:s.ariaCurrentValue,custom:s.custom};return s.custom||(y("interaction")&&(E.onPointerenter=b.bind(null,void 0),E.onFocus=b.bind(null,void 0)),g.value&&(E.class=s.prefetchedClass||e.prefetchedClass),E.rel=s.rel||void 0),Tt(g_("RouterLink"),E,i.default)}const _=s.target||null,v=xN(s.noRel?"":s.rel,e.externalRelAttribute,p.value||d.value?"noopener noreferrer":"")||null;return s.custom?i.default?i.default({href:c.value,navigate:u,prefetch:b,get route(){if(!c.value)return;const E=new URL(c.value,window.location.href);return{path:E.pathname,fullPath:E.pathname,get query(){return id(E.search)},hash:E.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:v,target:_,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Tt("a",{ref:h,href:c.value||null,rel:v,target:_},(S=i.default)==null?void 0:S.call(i))}}})}const CN=kN(y1);function Av(e,t){const r=t==="append"?Pl:ad;return yn(e)&&!e.startsWith("http")?e:r(e,!0)}function TN(){const e=Ie();if(e._observer)return e._observer;let t=null;const r=new Map,n=(s,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=r.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),r.set(s,i),t.observe(s),()=>{r.delete(s),t==null||t.unobserve(s),r.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:n}}const IN=/2g/;function AN(){const e=navigator.connection;return!!(e&&(e.saveData||IN.test(e.effectiveType)))}const xr={AR_35:{widgetId:"AR_35"},AR_36:{widgetId:"AR_36"},AR_37:{widgetId:"AR_37"},AR_45:{widgetId:"AR_45"},AR_38:{widgetId:"AR_38"},AR_27:{widgetId:"AR_27"},AR_31:{widgetId:"AR_31"}},xt={304300:{adHeight:"304px",adWidth:"300px"},304612:{adHeight:"304px",adWidth:"612px"},auto:{adHeight:"auto",adWidth:"auto"},"400_FULL":{adHeight:"400px",adWidth:"auto"},"310_FULL":{adHeight:"310px",adWidth:"100%"},100300:{adHeight:"100px",adWidth:"300px"},290340:{adHeight:"290px",adWidth:"340px"}};function En(e){return{containerName:`taboola-homepage-${e}`,mode:"thumbnails-r-267x178-v2"}}const ON={article_content_below_button:{mode:"alternating-thumbnails-a",containerName:"taboola-below-article-feed"}},RN={sectiontab_300x250:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("sectiontab-300x250"),assertive:{},props:{}},sectiontab_slider:{outbrain:{...xr.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_r1_c2:{outbrain:{...xr.AR_35},style:{...xt[304300]},taboola:En("r1-c2"),assertive:{},props:{}},newtab_r1_topright:{outbrain:{...xr.AR_36},style:{...xt[304300]},taboola:En("r1-topright"),assertive:{},props:{}},newtab_r2_c1:{outbrain:{...xr.AR_37},style:{...xt[304300]},taboola:En("r2-c1"),assertive:{},props:{}},newtab_r3_right:{outbrain:{...xr.AR_45},style:{...xt[304300]},taboola:En("r3-right"),assertive:{},props:{lazyRender:!0}},newtab_r4_c1:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("r4-c1"),assertive:{},props:{lazyRender:!0}},newtab_r4_right:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("r4-right"),assertive:{},props:{lazyRender:!0}},newtab_r3_c1:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("r3-c1"),assertive:{},props:{lazyRender:!0}},newtab_r2_c4:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("r2-c4"),assertive:{},props:{lazyRender:!0}},newtab_endless_right:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("endless"),assertive:{},props:{lazyRender:!0}},newtab_slider_1:{outbrain:{...xr.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_slider_2:{outbrain:{...xr.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_leaderboard:{outbrain:{},taboola:{},assertive:{},style:{...xt["400_FULL"]},props:{lazyRender:!0}},newtab_leaderboard_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt[100300]},props:{lazyRender:!0}},article_hero:{outbrain:{},taboola:{},assertive:{},style:{...xt["310_FULL"]},props:{sticky:!0}},article_hero_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt[100300]},props:{sticky:!0}},article_content_below_button:{outbrain:{...xr.AR_31},taboola:{...ON.article_content_below_button},assertive:{},style:{...xt.auto},props:{}},article_content_middle:{outbrain:{},taboola:{},assertive:{},style:{...xt["400_FULL"]},props:{}},article_content_middle_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt["310_FULL"]},props:{lazyRender:!0}},article_siderail_top:{outbrain:{},taboola:{},assertive:{},style:{...xt[290340]},props:{}},article_siderail_middle:{outbrain:{},taboola:{},assertive:{},style:{...xt[290340]},props:{}},article_siderail_bottom:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_top:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_below_image:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_above_button:{outbrain:{},taboola:{},assertive:{},style:{},props:{}}},LN={nuxtIcon:{},siteName:"OneNews",defaultCpm:2,urls:{home:"/",article:"/article",video:"/video"},directAdsHostedConfigUrl:"http://localhost:2772/applications/WebTier/environments/OneNews/configurations/OneNews-DirectAds",redesignedNtpPaths:["/v8","/v8/article","/","/article"],googleTagManagerId:"GTM-WNFNMPW",outbrain:{installationKey:"ONELA2JBJF199O5BKEIEEDG98"},adops:{placements:RN},taboola:{publisherName:"rebasetechinc-network"}},PN={},NN={nuxtIcon:{},openfeature:{multiProvider:!0,localProvider:!1,queryProvider:!0},directAdsHostedConfigUrl:"",redesignedNtpPaths:[""],googleTagManagerId:"",urls:{home:"/",article:"/article",video:"/video"},outbrain:{installationKey:""},adops:{placements:PN},taboola:{publisherName:""}},MN={nuxt:{},icon:{provider:"server",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/icons",fallbackToApi:!1,cssSelectorPrefix:"i-",cssWherePseudo:!0,mode:"css",attrs:{"aria-hidden":!0},collections:["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency","cryptocurrency-color","dashicons","devicon","devicon-plain","ei","el","emojione","emojione-monotone","emojione-v1","entypo","entypo-social","eos-icons","ep","et","eva","f7","fa","fa-brands","fa-regular","fa-solid","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent","fluent-emoji","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-mdl2","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons","heroicons-outline","heroicons-solid","hugeicons","humbleicons","ic","icomoon-free","icon-park","icon-park-outline","icon-park-solid","icon-park-twotone","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","mage","majesticons","maki","map","marketeq","material-symbols","material-symbols-light","mdi","mdi-light","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto","noto-v1","octicon","oi","ooui","openmoji","oui","pajamas","pepicons","pepicons-pencil","pepicons-pop","pepicons-print","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline","streamline-emojis","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token","token-branded","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],fetchTimeout:500},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],strategy:"merge"}},Dr=C1(LN,NN,MN);function Fr(){const e=Ie();return e._appConfig||(e._appConfig=Jt(Dr)),e._appConfig}const DN=Qe({name:"pinia",setup(e){const t=aN();return e.vueApp.use(t),yc(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),$N=Xf(()=>Zt(()=>Promise.resolve().then(()=>mz),void 0,import.meta.url).then(e=>e.default||e.default||e)),FN=Xf(()=>Zt(()=>import("./DBHihLfo.js"),__vite__mapDeps([56,57]),import.meta.url).then(e=>e.default||e.default||e)),UN=Xf(()=>Zt(()=>import("./nbJKCIyj.js"),[],import.meta.url).then(e=>e.default||e.default||e)),jN=[["Icon",$N],["IconCSS",FN],["NuxtIcon",UN]],BN=Qe({name:"nuxt:global-components",setup(e){for(const[t,r]of jN)e.vueApp.component(t,r),e.vueApp.component("Lazy"+t,r)}}),qc={custom:Xf(()=>Zt(()=>import("./CvnOPBvA.js"),__vite__mapDeps([58,49,59]),import.meta.url).then(e=>e.default||e))},HN=Qe({name:"nuxt:prefetch",setup(e){const t=Ht();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{var o;const n=(o=r==null?void 0:r.meta)==null?void 0:o.layout;n&&typeof qc[n]=="function"&&await qc[n]()})}),e.hooks.hook("link:prefetch",r=>{if(yn(r))return;const n=t.resolve(r);if(!n)return;const o=n.meta.layout;let s=Cm(n.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof dl[i]=="function"&&dl[i]();o&&typeof qc[o]=="function"&&qc[o]()})}});function Eu(...e){var t;(t=window.dataLayer)==null||t.push(arguments)}function ox({tags:e}){window.dataLayer=window.dataLayer||[];for(const t of e)for(const r of t.initCommands??[])Eu(...r);Eu("js",new Date);for(const t of e)Eu("config",t.id,t.config??{})}function sx(e){const t=Me(e),r=t.tags.filter(Boolean).map(n=>typeof n=="string"?{id:n}:n);if(t.id){const{id:n,config:o,initCommands:s}=t;r.unshift({id:n,config:o,initCommands:s})}return r}const VN=Qe({parallel:!0,setup(){const e=at().public.gtag,t=sx(e);if(!t.length||(ox({tags:t}),e.initMode==="manual"))return;const r=e.loadingStrategy==="async"?"async":"defer";$s({link:[{rel:"preload",as:"script",href:Nl(e.url,{id:t[0].id})}],script:[{src:Nl(e.url,{id:t[0].id}),[r]:!0,"data-gtag":""}]})}}),hl=/^[a-z0-9]+(-[a-z0-9]+)*$/,fd=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:n,prefix:l,name:a};return t&&!xu(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!xu(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!xu(a,r)?null:a}return null},xu=(e,t)=>e?!!((e.provider===""||e.provider.match(hl))&&(t&&e.prefix===""||e.prefix.match(hl))&&e.name.match(hl)):!1,ix=Object.freeze({left:0,top:0,width:16,height:16}),of=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_c=Object.freeze({...ix,...of}),Qh=Object.freeze({..._c,body:"",hidden:!1});function WN(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Ov(e,t){const r=WN(e,t);for(const n in Qh)n in of?n in e&&!(n in r)&&(r[n]=of[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function zN(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function GN(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Ov(n[a]||o[a],s)}return i(t),r.forEach(i),Ov(e,s)}function ax(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=zN(e);for(const o in n){const s=n[o];s&&(t(o,GN(e,o,s)),r.push(o))}return r}const qN={provider:"",aliases:{},not_found:{},...ix};function hp(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function lx(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!hp(e,qN))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o.match(hl)||typeof s.body!="string"||!hp(s,Qh))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o.match(hl)||typeof i!="string"||!r[i]&&!n[i]||!hp(s,Qh))return null}return t}const Rv=Object.create(null);function KN(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Fs(e,t){const r=Rv[e]||(Rv[e]=Object.create(null));return r[t]||(r[t]=KN(e,t))}function Im(e,t){return lx(t)?ax(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function YN(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Fl=!1;function cx(e){return typeof e=="boolean"&&(Fl=e),Fl}function ux(e){const t=typeof e=="string"?fd(e,!0,Fl):e;if(t){const r=Fs(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function ZN(e,t){const r=fd(e,!0,Fl);if(!r)return!1;const n=Fs(r.provider,r.prefix);return YN(n,r.name,t)}function XN(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Fl&&!t&&!e.prefix){let o=!1;return lx(e)&&(e.prefix="",ax(e,(s,i)=>{i&&ZN(s,i)&&(o=!0)})),o}const r=e.prefix;if(!xu({provider:t,prefix:r,name:"a"}))return!1;const n=Fs(t,r);return!!Im(n,e)}function M9(e){const t=ux(e);return t?{..._c,...t}:null}const fx=Object.freeze({width:null,height:null}),dx=Object.freeze({...fx,...of}),JN=/(-?[0-9.]*[0-9]+[0-9.]*)/g,QN=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Lv(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(JN);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=QN.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function eM(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function tM(e,t){return e?""+e+""+t:t}function rM(e,t,r){const n=eM(e);return tM(n.defs,t+n.content+r)}const nM=e=>e==="unset"||e==="undefined"||e==="none";function oM(e,t){const r={..._c,...e},n={...dx,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(h=>{const m=[],y=h.hFlip,b=h.vFlip;let _=h.rotate;y?b?_+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):b&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let v;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:v=o.height/2+o.top,m.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,m.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}_%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),m.length&&(s=rM(s,'',""))});const i=n.width,a=n.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=Lv(f,l/c)):(u=i==="auto"?l:i,f=a===null?Lv(u,c/l):a==="auto"?c:a);const d={},p=(h,m)=>{nM(m)||(d[h]=m.toString())};p("width",u),p("height",f);const g=[o.left,o.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:s}}const sM=/\sid="(\S+)"/g,iM="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let aM=0;function lM(e,t=iM){const r=[];let n;for(;n=sM.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(aM++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const eg=Object.create(null);function px(e,t){eg[e]=t}function tg(e){return eg[e]||eg[""]}function Am(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const dd=Object.create(null),Ra=["https://api.simplesvg.com","https://api.unisvg.com"],ku=[];for(;Ra.length>0;)Ra.length===1||Math.random()>.5?ku.push(Ra.shift()):ku.push(Ra.pop());dd[""]=Am({resources:["https://api.iconify.design"].concat(ku)});function hx(e,t){const r=Am(t);return r===null?!1:(dd[e]=r,!0)}function pd(e){return dd[e]}function cM(){return Object.keys(dd)}const uM=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let sf=uM();function fM(e){sf=e}function dM(){return sf}function pM(e,t){const r=pd(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function hM(e){return e===404}const gM=(e,t,r)=>{const n=[],o=pM(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),n.push(i),n};function mM(e){if(typeof e=="string"){const t=pd(e);if(t)return t.path}return"/"}const yM=(e,t,r)=>{if(!sf){r("abort",424);return}let n=mM(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;sf(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r(hM(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},_M={prepare:gM,send:yM};function vM(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const s=o.provider,i=o.prefix,a=o.name,l=r[s]||(r[s]=Object.create(null)),c=l[i]||(l[i]=Fs(s,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:a};u.push(f)}),t}function gx(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function bM(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:n,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:n,prefix:o,name:c});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||gx([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let wM=0;function SM(e,t,r){const n=wM++,o=gx.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function EM(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?fd(o,t,r):o;s&&n.push(s)}),n}var xM={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function kM(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let E=e.resources.slice(0);for(i=[];E.length>1;){const x=Math.floor(Math.random()*E.length);i.push(E[x]),E=E.slice(0,x).concat(E.slice(x+1))}i=i.concat(E)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof n=="function"&&p.push(n);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function m(E,x){x&&(p=[]),typeof E=="function"&&p.push(E)}function y(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:m,abort:h}}function b(){l="failed",p.forEach(E=>{E(void 0,u)})}function _(){d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function v(E,x,R){const A=x!=="success";switch(d=d.filter(N=>N!==E),l){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=R,b();return}if(A){u=R,d.length||(i.length?S():b());return}if(g(),_(),!e.random){const N=e.resources.indexOf(E.resource);N!==-1&&N!==e.index&&(e.index=N)}l="completed",p.forEach(N=>{N(R)})}function S(){if(l!=="pending")return;g();const E=i.shift();if(E===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const x={status:"pending",resource:E,callback:(R,A)=>{v(x,R,A)}};d.push(x),c++,f=setTimeout(S,e.rotate),r(E,t,x.callback)}return setTimeout(S),y}function mx(e){const t={...xM,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,l,c){const u=kM(t,a,l,(f,d)=>{n(),c&&c(f,d)});return r.push(u),u}function s(a){return r.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Pv(){}const gp=Object.create(null);function CM(e){if(!gp[e]){const t=pd(e);if(!t)return;const r=mx(t),n={config:t,redundancy:r};gp[e]=n}return gp[e]}function yx(e,t,r){let n,o;if(typeof e=="string"){const s=tg(e);if(!s)return r(void 0,424),Pv;o=s.send;const i=CM(e);i&&(n=i.redundancy)}else{const s=Am(e);if(s){n=mx(s);const i=e.resources?e.resources[0]:"",a=tg(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),Pv):n.query(t,o,r)().abort}const Nv="iconify2",Ul="iconify",_x=Ul+"-count",Mv=Ul+"-version",vx=36e5,TM=168,IM=50;function rg(e,t){try{return e.getItem(t)}catch{}}function Om(e,t,r){try{return e.setItem(t,r),!0}catch{}}function Dv(e,t){try{e.removeItem(t)}catch{}}function ng(e,t){return Om(e,_x,t.toString())}function og(e){return parseInt(rg(e,_x))||0}const As={local:!0,session:!0},bx={local:new Set,session:new Set};let Rm=!1;function AM(e){Rm=e}let Kc=typeof window>"u"?{}:window;function wx(e){const t=e+"Storage";try{if(Kc&&Kc[t]&&typeof Kc[t].length=="number")return Kc[t]}catch{}As[e]=!1}function Sx(e,t){const r=wx(e);if(!r)return;const n=rg(r,Mv);if(n!==Nv){if(n){const a=og(r);for(let l=0;l{const l=Ul+a.toString(),c=rg(r,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Dv(r,l)}};let i=og(r);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ng(r,i)):bx[e].add(a))}function Ex(){if(!Rm){AM(!0);for(const e in As)Sx(e,t=>{const r=t.data,n=t.provider,o=r.prefix,s=Fs(n,o);if(!Im(s,r).length)return!1;const i=r.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function OM(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in As)Sx(n,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function RM(e,t){Rm||Ex();function r(n){let o;if(!As[n]||!(o=wx(n)))return;const s=bx[n];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=og(o),i>=IM||!ng(o,i+1))return;const a={cached:Math.floor(Date.now()/vx),provider:e.provider,data:t};return Om(o,Ul+i.toString(),JSON.stringify(a))}t.lastModified&&!OM(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function $v(){}function LM(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,bM(e)}))}function PM(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=tg(r)))return;s.prepare(r,n,o).forEach(a=>{yx(r,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=Im(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),RM(e,l)}catch(c){console.error(c)}LM(e)})})}))}const NM=(e,t)=>{const r=EM(e,!0,cx()),n=vM(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,$v)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(Fs(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=Fs(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),o[c][u].push(f))}),s.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&PM(l,o[c][u])}),t?SM(t,n,s):$v};function MM(e,t){switch(e){case"local":case"session":As[e]=t;break;case"all":for(const r in As)As[r]=t;break}}function DM(e,t){const r={...e};for(const n in t){const o=t[n],s=typeof o;n in fx?(o===null||o&&(s==="string"||s==="number"))&&(r[n]=o):s===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const $M=/[\s,]+/;function FM(e,t){t.split($M).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function UM(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}function jM(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'"+e+""}function BM(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function HM(e){return"data:image/svg+xml,"+BM(e)}function VM(e){return'url("'+HM(e)+'")'}const Fv={...dx,inline:!1},WM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zM={display:"inline-block"},sg={backgroundColor:"currentColor"},xx={backgroundColor:"transparent"},Uv={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},jv={webkitMask:sg,mask:sg,background:xx};for(const e in jv){const t=jv[e];for(const r in Uv)t[e+r]=Uv[r]}const Cu={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Cu[e+"-flip"]=t,Cu[e.slice(0,1)+"-flip"]=t,Cu[e+"Flip"]=t});function Bv(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Hv=(e,t)=>{const r=DM(Fv,t),n={...WM},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const m=t[h];if(m!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[h]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&FM(r,m);break;case"color":s.color=m;break;case"rotate":typeof m=="string"?r[h]=UM(m):typeof m=="number"&&(r[h]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete n["aria-hidden"];break;default:{const y=Cu[h];y?(m===!0||m==="true"||m===1)&&(r[y]=!0):Fv[h]===void 0&&(n[h]=m)}}}const l=oM(e,r),c=l.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,c);let h=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),n.innerHTML=lM(l.body,m?()=>m+"ID"+h++:"iconifyVue"),Tt("svg",n)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=jM(u,{...c,width:f+"",height:d+""});return n.style={...s,"--svg":VM(g),width:Bv(c.width),height:Bv(c.height),...zM,...p?sg:xx,...a},Tt("span",n)};function GM(e){MM(e,!1)}cx(!0);px("",_M);if(typeof document<"u"&&typeof window<"u"){Ex();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!XN(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;hx(r,o)||console.error(n)}catch{console.error(n)}}}}const qM={..._c,body:""},D9=It({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,r){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=fd(e,!1,!0))===null)return this.abortLoading(),null;let o=ux(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:NM([n],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),r){o=Object.assign({},o);const i=r(o.body,n.name,n.prefix,n.provider);typeof i=="string"&&(o.body=i)}const s=["iconify"];return n.prefix!==""&&s.push("iconify--"+n.prefix),n.provider!==""&&s.push("iconify--"+n.provider),{data:o,classes:s}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return Hv(qM,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Hv({..._c,...t.data},r)}}),KM={getAPIConfig:pd,setAPIModule:px,sendAPIQuery:yx,setFetch:fM,getFetch:dM,listAPIProviders:cM},YM=Qe({name:"@nuxt/icon",setup(){var n,o;const e=at(),t=Fr().icon;KM.setFetch($fetch.native),GM("all");const r=[];if(t.provider==="server"){const s=((o=(n=e.app)==null?void 0:n.baseURL)==null?void 0:o.replace(/\/$/,""))??"";r.push(s+(t.localApiEndpoint||"/api/_nuxt_icon")),t.fallbackToApi&&r.push(t.iconifyApiEndpoint)}else r.push(t.iconifyApiEndpoint);hx("",{resources:r})}});function Wo(e){return ua()?(xl(e),!0):!1}function vc(e){let t=0,r,n;const o=()=>{t-=1,n&&t<=0&&(n.stop(),r=void 0,n=void 0)};return(...s)=>(t+=1,r||(n=ca(!0),r=n.run(()=>e(...s))),Wo(o),r)}function ar(e){return typeof e=="function"?e():He(e)}const af=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ZM=e=>e!=null,XM=Object.prototype.toString,JM=e=>XM.call(e)==="[object Object]",lf=()=>+Date.now(),cn=()=>{};function hd(e,t){function r(...n){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(s)})}return r}const kx=e=>e();function Cx(e,t={}){let r,n,o=cn;const s=a=>{clearTimeout(a),o(),o=cn};return a=>{const l=ar(e),c=ar(t.maxWait);return r&&s(r),l<=0||c!==void 0&&c<=0?(n&&(s(n),n=null),Promise.resolve(a())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!n&&(n=setTimeout(()=>{r&&s(r),n=null,u(a())},c)),r=setTimeout(()=>{n&&s(n),n=null,u(a())},l)})}}function Tx(...e){let t=0,r,n=!0,o=cn,s,i,a,l,c;!qe(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[i,a=!0,l=!0,c=!1]=e;const u=()=>{r&&(clearTimeout(r),r=void 0,o(),o=cn)};return d=>{const p=ar(i),g=Date.now()-t,h=()=>s=d();return u(),p<=0?(t=Date.now(),h()):(g>p&&(l||!n)?(t=Date.now(),h()):a&&(s=new Promise((m,y)=>{o=c?y:m,r=setTimeout(()=>{t=Date.now(),n=!0,m(h()),u()},Math.max(0,p-g))})),!l&&!r&&(r=setTimeout(()=>n=!0,p)),n=!1,s)}}function QM(e=kx){const t=ue(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:Zf(t),pause:r,resume:n,eventFilter:o}}function eD(e){return er()}function tD(e,t=200,r={}){return hd(Cx(t,r),e)}function rD(e,t=200,r=!1,n=!0,o=!1){return hd(Tx(t,r,n,o),e)}function Ix(e,t,r={}){const{eventFilter:n=kx,...o}=r;return Oe(e,hd(n,t),o)}function Ax(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:s,pause:i,resume:a,isActive:l}=QM(n);return{stop:Ix(e,t,{...o,eventFilter:s}),pause:i,resume:a,isActive:l}}function gd(e,t=!0,r){eD()?Or(e,r):t?e():qr(e)}function nD(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r;let s=null;const i=ue(!1);function a(){s&&(clearInterval(s),s=null)}function l(){i.value=!1,a()}function c(){const u=ar(t);u<=0||(i.value=!0,o&&e(),a(),s=setInterval(e,u))}if(n&&af&&c(),qe(t)||typeof t=="function"){const u=Oe(t,()=>{i.value&&af&&c()});Wo(u)}return Wo(l),{isActive:i,pause:l,resume:c}}function $9(e,t,r={}){const{debounce:n=0,maxWait:o=void 0,...s}=r;return Ix(e,t,{...s,eventFilter:Cx(n,{maxWait:o})})}function oD(e,t,r){const n=Oe(e,(...o)=>(qr(()=>n()),t(...o)),r);return n}function F9(e,t,r){let n;qe(r)?n={evaluating:r}:n=r||{};const{lazy:o=!1,evaluating:s=void 0,shallow:i=!0,onError:a=cn}=n,l=ue(!o),c=i?fn(t):ue(t);let u=0;return ed(async f=>{if(!l.value)return;u++;const d=u;let p=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const g=await e(h=>{f(()=>{s&&(s.value=!1),p||h()})});d===u&&(c.value=g)}catch(g){a(g)}finally{s&&d===u&&(s.value=!1),p=!0}}),o?X(()=>(l.value=!0,c.value)):c}function nn(e){var t;const r=ar(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Ar=af?window:void 0,sD=af?window.document:void 0;function $n(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=Ar):[t,r,n,o]=e,!t)return cn;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),l=Oe(()=>[nn(t),ar(o)],([u,f])=>{if(i(),!u)return;const d=JM(f)?{...f}:f;s.push(...r.flatMap(p=>n.map(g=>a(u,p,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return Wo(c),c}function iD(){const e=ue(!1),t=er();return t&&Or(()=>{e.value=!0},t),e}function Lm(e){const t=iD();return X(()=>(t.value,!!e()))}function aD(e,t={}){const{immediate:r=!0,fpsLimit:n=void 0,window:o=Ar}=t,s=ue(!1),i=n?1e3/n:null;let a=0,l=null;function c(d){if(!s.value||!o)return;a||(a=d);const p=d-a;if(i&&pr&&"matchMedia"in r&&typeof r.matchMedia=="function");let o;const s=ue(!1),i=c=>{s.value=c.matches},a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},l=ed(()=>{n.value&&(a(),o=r.matchMedia(ar(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),s.value=o.matches)});return Wo(()=>{l(),a(),o=void 0}),s}const Yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zc="__vueuse_ssr_handlers__",lD=cD();function cD(){return Zc in Yc||(Yc[Zc]=Yc[Zc]||{}),Yc[Zc]}function uD(e,t){return lD[e]||t}function fD(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 dD={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()}},Vv="vueuse-storage";function pD(e,t,r,n={}){var o;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=Ar,eventFilter:d,onError:p=N=>{console.error(N)},initOnMounted:g}=n,h=(u?fn:ue)(typeof t=="function"?t():t);if(!r)try{r=uD("getDefaultStorage",()=>{var N;return(N=Ar)==null?void 0:N.localStorage})()}catch(N){p(N)}if(!r)return h;const m=ar(t),y=fD(m),b=(o=n.serializer)!=null?o:dD[y],{pause:_,resume:v}=Ax(h,()=>E(h.value),{flush:s,deep:i,eventFilter:d});f&&a&&gd(()=>{$n(f,"storage",R),$n(f,Vv,A),g&&R()}),g||R();function S(N,U){f&&f.dispatchEvent(new CustomEvent(Vv,{detail:{key:e,oldValue:N,newValue:U,storageArea:r}}))}function E(N){try{const U=r.getItem(e);if(N==null)S(U,null),r.removeItem(e);else{const L=b.write(N);U!==L&&(r.setItem(e,L),S(U,L))}}catch(U){p(U)}}function x(N){const U=N?N.newValue:r.getItem(e);if(U==null)return l&&m!=null&&r.setItem(e,b.write(m)),m;if(!N&&c){const L=b.read(U);return typeof c=="function"?c(L,m):y==="object"&&!Array.isArray(L)?{...m,...L}:L}else return typeof U!="string"?U:b.read(U)}function R(N){if(!(N&&N.storageArea!==r)){if(N&&N.key==null){h.value=m;return}if(!(N&&N.key!==e)){_();try{(N==null?void 0:N.newValue)!==b.write(h.value)&&(h.value=x(N))}catch(U){p(U)}finally{N?qr(v):v()}}}}function A(N){R(N.detail)}return h}function Rx(e){return Ox("(prefers-color-scheme: dark)",e)}function hD(e={}){const{document:t=sD}=e;if(!t)return ue("visible");const r=ue(t.visibilityState);return $n(t,"visibilitychange",()=>{r.value=t.visibilityState}),r}function gD(e,t,r={}){const{window:n=Ar,...o}=r;let s;const i=Lm(()=>n&&"ResizeObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},l=X(()=>Array.isArray(e)?e.map(f=>nn(f)):[nn(e)]),c=Oe(l,f=>{if(a(),i.value&&n){s=new ResizeObserver(t);for(const d of f)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Wo(u),{isSupported:i,stop:u}}function U9(e,t={width:0,height:0},r={}){const{window:n=Ar,box:o="content-box"}=r,s=X(()=>{var f,d;return(d=(f=nn(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),i=ue(t.width),a=ue(t.height),{stop:l}=gD(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&s.value){const p=nn(e);if(p){const g=p.getBoundingClientRect();i.value=g.width,a.value=g.height}}else if(d){const p=Array.isArray(d)?d:[d];i.value=p.reduce((g,{inlineSize:h})=>g+h,0),a.value=p.reduce((g,{blockSize:h})=>g+h,0)}else i.value=f.contentRect.width,a.value=f.contentRect.height},r);gd(()=>{const f=nn(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=Oe(()=>nn(e),f=>{i.value=f?t.width:0,a.value=f?t.height:0});function u(){l(),c()}return{width:i,height:a,stop:u}}function mD(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:s=.1,window:i=Ar,immediate:a=!0}=r,l=Lm(()=>i&&"IntersectionObserver"in i),c=X(()=>{const g=ar(e);return(Array.isArray(g)?g:[g]).map(nn).filter(ZM)});let u=cn;const f=ue(a),d=l.value?Oe(()=>[c.value,nn(n),f.value],([g,h])=>{if(u(),!f.value||!g.length)return;const m=new IntersectionObserver(t,{root:nn(h),rootMargin:o,threshold:s});g.forEach(y=>y&&m.observe(y)),u=()=>{m.disconnect(),u=cn}},{immediate:a,flush:"post"}):cn,p=()=>{u(),d(),f.value=!1};return Wo(p),{isSupported:l,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:p}}function Lx(e,t={}){const{window:r=Ar,scrollTarget:n,threshold:o=0}=t,s=ue(!1);return mD(e,i=>{let a=s.value,l=0;for(const c of i)c.time>=l&&(l=c.time,a=c.isIntersecting);s.value=a},{root:n,window:r,threshold:o}),s}const yD=["mousemove","mousedown","resize","keydown","touchstart","wheel"],_D=6e4;function vD(e=_D,t={}){const{initialState:r=!1,listenForVisibilityChange:n=!0,events:o=yD,window:s=Ar,eventFilter:i=Tx(50)}=t,a=ue(r),l=ue(lf());let c;const u=()=>{a.value=!1,clearTimeout(c),c=setTimeout(()=>a.value=!0,e)},f=hd(i,()=>{l.value=lf(),u()});if(s){const d=s.document;for(const p of o)$n(s,p,f,{passive:!0});n&&$n(d,"visibilitychange",()=>{d.hidden||f()}),u()}return{idle:a,lastActive:l,reset:u}}const Wv=1;function bD(e,t={}){const{throttle:r=0,idle:n=200,onStop:o=cn,onScroll:s=cn,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:c=Ar,onError:u=x=>{console.error(x)}}=t,f=ue(0),d=ue(0),p=X({get(){return f.value},set(x){h(x,void 0)}}),g=X({get(){return d.value},set(x){h(void 0,x)}});function h(x,R){var A,N,U,L;if(!c)return;const G=ar(e);if(!G)return;(U=G instanceof Document?c.document.body:G)==null||U.scrollTo({top:(A=ar(R))!=null?A:g.value,left:(N=ar(x))!=null?N:p.value,behavior:ar(l)});const re=((L=G==null?void 0:G.document)==null?void 0:L.documentElement)||(G==null?void 0:G.documentElement)||G;p!=null&&(f.value=re.scrollLeft),g!=null&&(d.value=re.scrollTop)}const m=ue(!1),y=Jt({left:!0,right:!1,top:!0,bottom:!1}),b=Jt({left:!1,right:!1,top:!1,bottom:!1}),_=x=>{m.value&&(m.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,o(x))},v=tD(_,r+n),S=x=>{var R;if(!c)return;const A=((R=x==null?void 0:x.document)==null?void 0:R.documentElement)||(x==null?void 0:x.documentElement)||nn(x),{display:N,flexDirection:U}=getComputedStyle(A),L=A.scrollLeft;b.left=Lf.value;const G=Math.abs(L)<=(i.left||0),re=Math.abs(L)+A.clientWidth>=A.scrollWidth-(i.right||0)-Wv;N==="flex"&&U==="row-reverse"?(y.left=re,y.right=G):(y.left=G,y.right=re),f.value=L;let le=A.scrollTop;x===c.document&&!le&&(le=c.document.body.scrollTop),b.top=led.value;const q=Math.abs(le)<=(i.top||0),oe=Math.abs(le)+A.clientHeight>=A.scrollHeight-(i.bottom||0)-Wv;N==="flex"&&U==="column-reverse"?(y.top=oe,y.bottom=q):(y.top=q,y.bottom=oe),d.value=le},E=x=>{var R;if(!c)return;const A=(R=x.target.documentElement)!=null?R:x.target;S(A),m.value=!0,v(x),s(x)};return $n(e,"scroll",r?rD(E,r,!0,!1):E,a),gd(()=>{try{const x=ar(e);if(!x)return;S(x)}catch(x){u(x)}}),$n(e,"scrollend",_,a),{x:p,y:g,isScrolling:m,arrivedState:y,directions:b,measure(){const x=ar(e);c&&x&&S(x)}}}function wD(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function j9(e,t,r={}){var n;const{direction:o="bottom",interval:s=100,canLoadMore:i=()=>!0}=r,a=Jt(bD(e,{...r,offset:{[o]:(n=r.distance)!=null?n:0,...r.offset}})),l=ue(),c=X(()=>!!l.value),u=X(()=>wD(ar(e))),f=Lx(u);function d(){if(a.measure(),!u.value||!f.value||!i(u.value))return;const{scrollHeight:p,clientHeight:g,scrollWidth:h,clientWidth:m}=u.value,y=o==="bottom"||o==="top"?p<=g:h<=m;(a.arrivedState[o]||y)&&(l.value||(l.value=Promise.all([t(a),new Promise(b=>setTimeout(b,s))]).finally(()=>{l.value=null,qr(()=>d())})))}return Oe(()=>[a.arrivedState[o],f.value],d,{immediate:!0}),{isLoading:c}}function Px(e,t,r={}){const{window:n=Ar}=r;return pD(e,t,n==null?void 0:n.localStorage,r)}function SD(e={}){const{controls:t=!1,offset:r=0,immediate:n=!0,interval:o="requestAnimationFrame",callback:s}=e,i=ue(lf()+r),a=()=>i.value=lf()+r,l=s?()=>{a(),s(i.value)}:a,c=o==="requestAnimationFrame"?aD(l,{immediate:n}):nD(l,o,{immediate:n});return t?{timestamp:i,...c}:i}function ED(e="history",t={}){const{initialValue:r={},removeNullishValues:n=!0,removeFalsyValues:o=!1,write:s=!0,window:i=Ar}=t;if(!i)return Jt(r);const a=Jt({});function l(){if(e==="history")return i.location.search||"";if(e==="hash"){const y=i.location.hash||"",b=y.indexOf("?");return b>0?y.slice(b):""}else return(i.location.hash||"").replace(/^#/,"")}function c(y){const b=y.toString();if(e==="history")return`${b?`?${b}`:""}${i.location.hash||""}`;if(e==="hash-params")return`${i.location.search||""}${b?`#${b}`:""}`;const _=i.location.hash||"#",v=_.indexOf("?");return v>0?`${_.slice(0,v)}${b?`?${b}`:""}`:`${_}${b?`?${b}`:""}`}function u(){return new URLSearchParams(l())}function f(y){const b=new Set(Object.keys(a));for(const _ of y.keys()){const v=y.getAll(_);a[_]=v.length>1?v:y.get(_)||"",b.delete(_)}Array.from(b).forEach(_=>delete a[_])}const{pause:d,resume:p}=Ax(a,()=>{const y=new URLSearchParams("");Object.keys(a).forEach(b=>{const _=a[b];Array.isArray(_)?_.forEach(v=>y.append(b,v)):n&&_==null||o&&!_?y.delete(b):y.set(b,_)}),g(y)},{deep:!0});function g(y,b){d(),b&&f(y),i.history.replaceState(i.history.state,i.document.title,i.location.pathname+c(y)),p()}function h(){s&&g(u(),!0)}$n(i,"popstate",h,!1),e!=="history"&&$n(i,"hashchange",h,!1);const m=u();return m.keys().next().value?f(m):Object.assign(a,r),a}function Nx(e={}){const{window:t=Ar,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0}=e,i=ue(r),a=ue(n),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};if(l(),gd(l),$n("resize",l,{passive:!0}),o){const c=Ox("(orientation: portrait)");Oe(c,()=>l())}return{width:i,height:a}}const xD=Symbol("nuxt-ui.slideover"),kD=Qe(e=>{const t=fn({component:"div",props:{}});e.vueApp.provide(xD,t)}),CD=Symbol("nuxt-ui.modal"),TD=Qe(e=>{const t=fn({component:"div",props:{}});e.vueApp.provide(CD,t)}),Pm="-";function ID(e){const t=OD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function o(i){const a=i.split(Pm);return a[0]===""&&a.length!==1&&a.shift(),Mx(a,t)||AD(i)}function s(i,a){const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Mx(e,t){var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Mx(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Pm);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const zv=/^\[(.+)\]$/;function AD(e){if(zv.test(e)){const t=zv.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function OD(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return LD(Object.entries(e.classGroups),r).forEach(([s,i])=>{ig(i,n,s,t)}),n}function ig(e,t,r,n){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Gv(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(RD(o)){ig(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{ig(i,Gv(t,s),r,n)})})}function Gv(e,t){let r=e;return t.split(Pm).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function RD(e){return e.isThemeGetter}function LD(e,t){return t?e.map(([r,n])=>{const o=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[r,o]}):e}function PD(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(s,i){r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)}return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}}const Dx="!";function ND(e){const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],s=t.length;function i(a){const l=[];let c=0,u=0,f;for(let m=0;mu?f-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}}return r?function(l){return r({className:l,parseClassName:i})}:i}function MD(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function DD(e){return{cache:PD(e.cacheSize),parseClassName:ND(e),...ID(e)}}const $D=/\s+/;function FD(e,t){const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split($D).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=r(i);let f=!!u,d=n(f?c.substring(0,u):c);if(!d){if(!f)return{isTailwindClass:!1,originalClassName:i};if(d=n(c),!d)return{isTailwindClass:!1,originalClassName:i};f=!1}const p=MD(a).join(":");return{isTailwindClass:!0,modifierId:l?p+Dx:p,classGroupId:d,originalClassName:i,hasPostfixModifier:f}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=i,u=a+l;return s.has(u)?!1:(s.add(u),o(l,c).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function zr(){let e=0,t,r,n="";for(;ef(u),e());return r=DD(c),n=r.cache.get,o=r.cache.set,s=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=FD(l,r);return o(l,u),u}return function(){return s(zr.apply(null,arguments))}}function ut(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const Fx=/^\[(?:([a-z-]+):)?(.+)\]$/i,UD=/^\d+\/\d+$/,jD=new Set(["px","full","screen"]),BD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,VD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,WD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Gn(e){return Ss(e)||jD.has(e)||UD.test(e)}function Eo(e){return ma(e,"length",QD)}function Ss(e){return!!e&&!Number.isNaN(Number(e))}function Xc(e){return ma(e,"number",Ss)}function La(e){return!!e&&Number.isInteger(Number(e))}function GD(e){return e.endsWith("%")&&Ss(e.slice(0,-1))}function Te(e){return Fx.test(e)}function xo(e){return BD.test(e)}const qD=new Set(["length","size","percentage"]);function KD(e){return ma(e,qD,Ux)}function YD(e){return ma(e,"position",Ux)}const ZD=new Set(["image","url"]);function XD(e){return ma(e,ZD,t$)}function JD(e){return ma(e,"",e$)}function Pa(){return!0}function ma(e,t,r){const n=Fx.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function QD(e){return HD.test(e)&&!VD.test(e)}function Ux(){return!1}function e$(e){return WD.test(e)}function t$(e){return zD.test(e)}function lg(){const e=ut("colors"),t=ut("spacing"),r=ut("blur"),n=ut("brightness"),o=ut("borderColor"),s=ut("borderRadius"),i=ut("borderSpacing"),a=ut("borderWidth"),l=ut("contrast"),c=ut("grayscale"),u=ut("hueRotate"),f=ut("invert"),d=ut("gap"),p=ut("gradientColorStops"),g=ut("gradientColorStopPositions"),h=ut("inset"),m=ut("margin"),y=ut("opacity"),b=ut("padding"),_=ut("saturate"),v=ut("scale"),S=ut("sepia"),E=ut("skew"),x=ut("space"),R=ut("translate"),A=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",Te,t],L=()=>[Te,t],G=()=>["",Gn,Eo],re=()=>["auto",Ss,Te],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["start","end","center","between","around","evenly","stretch"],Se=()=>["","0",Te],ct=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ve=()=>[Ss,Xc],We=()=>[Ss,Te];return{cacheSize:500,separator:":",theme:{colors:[Pa],spacing:[Gn,Eo],blur:["none","",xo,Te],brightness:ve(),borderColor:[e],borderRadius:["none","","full",xo,Te],borderSpacing:L(),borderWidth:G(),contrast:ve(),grayscale:Se(),hueRotate:We(),invert:Se(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[GD,Eo],inset:U(),margin:U(),opacity:ve(),padding:L(),saturate:ve(),scale:ve(),sepia:Se(),skew:We(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[xo]}],"break-after":[{"break-after":ct()}],"break-before":[{"break-before":ct()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...le(),Te]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",La,Te]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:Se()}],shrink:[{shrink:Se()}],order:[{order:["first","last","none",La,Te]}],"grid-cols":[{"grid-cols":[Pa]}],"col-start-end":[{col:["auto",{span:["full",La,Te]},Te]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[Pa]}],"row-start-end":[{row:["auto",{span:[La,Te]},Te]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ne(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[xo]},xo]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xo,Eo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xc]}],"font-family":[{font:[Pa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Ss,Xc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Gn,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Gn,Eo]}],"underline-offset":[{"underline-offset":["auto",Gn,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),YD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",KD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},XD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:q()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[Gn,Te]}],"outline-w":[{outline:[Gn,Eo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Gn,Eo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xo,JD]}],"shadow-color":[{shadow:[Pa]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xo,Te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[_]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:We()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:We()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[La,Te]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Gn,Eo,Xc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function r$(e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:o,extend:s={},override:i={}}){Qa(e,"cacheSize",t),Qa(e,"prefix",r),Qa(e,"separator",n),Qa(e,"experimentalParseClassName",o);for(const a in i)n$(e[a],i[a]);for(const a in s)o$(e[a],s[a]);return e}function Qa(e,t,r){r!==void 0&&(e[t]=r)}function n$(e,t){if(t)for(const r in t)Qa(e,r,t[r])}function o$(e,t){if(t)for(const r in t){const n=t[r];n!==void 0&&(e[r]=(e[r]||[]).concat(n))}}function s$(e,...t){return typeof e=="function"?ag(lg,e,...t):ag(()=>r$(lg(),e),...t)}const zi=ag(lg);function i$(e,t){const r={...e};for(const n of t)delete r[n];return r}function a$(e,t,r){typeof t=="string"&&(t=t.split(".").map(o=>{const s=Number(o);return isNaN(s)?o:s}));let n=e;for(const o of t){if(n==null)return r;n=n[o]}return n!==void 0?n:r}const Nm={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},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}},l$=e=>Object.keys(Nm).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{}),c$=s$({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),u$=vm((e,t,r,n)=>{if(n==="default"||n.startsWith("default.")||n==="popper"||n.startsWith("popper.")||n.endsWith("avatar")&&t==="size"||n.endsWith("chip")&&t==="size"||n.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof r=="string"&&e[t]&&r)return e[t]=c$(e[t],r),!0});function bc(e,...t){return e==="override"?SE({},...t):u$({},...t)}function qv(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(n,o,s,i){return o+o+s+s+i+i});const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?`${parseInt(r[1],16)} ${parseInt(r[2],16)} ${parseInt(r[3],16)}`:null}const f$="inherit",d$="currentColor",p$="transparent",h$="#000",g$="#fff",m$={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},y$={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},_$={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},v$={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},b$={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},w$={50:"color-mix(in srgb, var(--colors-red-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-red-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-red-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-red-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-red-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-red-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-red-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-red-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-red-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-red-900) calc(100% * ), transparent)",950:"#450a0a"},S$={50:"color-mix(in srgb, var(--colors-orange-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-orange-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-orange-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-orange-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-orange-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-orange-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-orange-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-orange-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-orange-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-orange-900) calc(100% * ), transparent)",950:"#431407"},E$={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},x$={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},k$={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},C$={50:"color-mix(in srgb, var(--colors-green-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-green-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-green-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-green-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-green-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-green-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-green-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-green-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-green-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-green-900) calc(100% * ), transparent)",950:"#052e16"},T$={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},I$={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},A$={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},O$={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},R$={50:"color-mix(in srgb, var(--colors-blue-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-blue-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-blue-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-blue-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-blue-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-blue-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-blue-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-blue-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-blue-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-blue-900) calc(100% * ), transparent)",950:"#172554"},L$={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},P$={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},N$={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},M$={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},D$={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},$$={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},F$={white:"color-mix(in srgb, var(--colors-basic-white) calc(100% * ), transparent)",black:"color-mix(in srgb, var(--colors-basic-black) calc(100% * ), transparent)"},U$={50:"color-mix(in srgb, var(--colors-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-grey-900) calc(100% * ), transparent)"},j$={50:"color-mix(in srgb, var(--colors-true-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-true-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-true-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-true-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-true-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-true-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-true-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-true-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-true-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-true-grey-900) calc(100% * ), transparent)"},B$={50:"color-mix(in srgb, var(--colors-light-blue-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-light-blue-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-light-blue-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-light-blue-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-light-blue-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-light-blue-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-light-blue-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-light-blue-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-light-blue-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-light-blue-900) calc(100% * ), transparent)"},H$={50:"color-mix(in srgb, var(--colors-warm-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-warm-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-warm-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-warm-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-warm-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-warm-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-warm-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-warm-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-warm-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-warm-grey-900) calc(100% * ), transparent)"},V$={50:"color-mix(in srgb, var(--colors-light-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-light-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-light-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-light-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-light-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-light-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-light-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-light-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-light-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-light-900) calc(100% * ), transparent)"},W$={50:"color-mix(in srgb, var(--colors-dark-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-dark-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-dark-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-dark-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-dark-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-dark-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-dark-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-dark-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-dark-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-dark-900) calc(100% * ), transparent)"},z$={50:"color-mix(in srgb, var(--colors-informative-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-informative-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-informative-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-informative-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-informative-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-informative-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-informative-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-informative-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-informative-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-informative-900) calc(100% * ), transparent)"},G$={50:"color-mix(in srgb, var(--colors-positive-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-positive-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-positive-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-positive-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-positive-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-positive-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-positive-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-positive-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-positive-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-positive-900) calc(100% * ), transparent)"},q$={50:"color-mix(in srgb, var(--colors-warning-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-warning-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-warning-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-warning-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-warning-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-warning-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-warning-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-warning-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-warning-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-warning-900) calc(100% * ), transparent)"},K$={50:"color-mix(in srgb, var(--colors-negative-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-negative-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-negative-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-negative-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-negative-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-negative-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-negative-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-negative-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-negative-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-negative-900) calc(100% * ), transparent)"},Y$={50:"color-mix(in srgb, var(--colors-brand-light-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-brand-light-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-brand-light-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-brand-light-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-brand-light-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-brand-light-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-brand-light-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-brand-light-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-brand-light-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-brand-light-900) calc(100% * ), transparent)"},Z$={50:"color-mix(in srgb, var(--colors-brand-dark-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-brand-dark-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-brand-dark-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-brand-dark-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-brand-dark-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-brand-dark-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-brand-dark-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-brand-dark-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-brand-dark-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-brand-dark-900) calc(100% * ), transparent)"},X$={default:"color-mix(in srgb, var(--colors-background) calc(100% * ), transparent)","default-strong":"color-mix(in srgb, var(--colors-background-default-strong) calc(100% * ), transparent)",neutral:{strong:"color-mix(in srgb, var(--colors-background-neutral-strong) calc(100% * ), transparent)",muted:"color-mix(in srgb, var(--colors-background-neutral-muted) calc(100% * ), transparent)",onSubtle:"color-mix(in srgb, var(--colors-background-neutral-on-subtle) calc(100% * ), transparent)",subtle:"color-mix(in srgb, var(--colors-background-neutral-subtle) calc(100% * ), transparent)",surface:"color-mix(in srgb, var(--colors-background-neutral-surface) calc(100% * ), transparent)"}},J$={primary:"color-mix(in srgb, var(--colors-content-primary) calc(100% * ), transparent)",secondary:"color-mix(in srgb, var(--colors-content-secondary) calc(100% * ), transparent)",tertiary:"color-mix(in srgb, var(--colors-content-tertiary) calc(100% * ), transparent)","inverted-primary":"color-mix(in srgb, var(--colors-content-inverted-primary) calc(100% * ), transparent)","inverted-secondary":"color-mix(in srgb, var(--colors-content-inverted-secondary) calc(100% * ), transparent)",dark:"color-mix(in srgb, var(--colors-content-dark) calc(100% * ), transparent)",positive:"color-mix(in srgb, var(--colors-content-positive) calc(100% * ), transparent)",warning:"color-mix(in srgb, var(--colors-content-warning) calc(100% * ), transparent)",negative:"color-mix(in srgb, var(--colors-content-negative) calc(100% * ), transparent)"},Q$={interaction:{normal:"color-mix(in srgb, var(--colors-border-interaction-normal) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-border-interaction-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-border-interaction-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-border-interaction-selected) calc(100% * ), transparent)",neutral:{normal:"color-mix(in srgb, var(--colors-border-interaction-neutral-normal) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-border-interaction-neutral-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-border-interaction-neutral-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-border-interaction-neutral-selected) calc(100% * ), transparent)"},alert:"color-mix(in srgb, var(--colors-border-interaction-alert) calc(100% * ), transparent)"},neutral:{subtle:"color-mix(in srgb, var(--colors-border-neutral-subtle) calc(100% * ), transparent)",strong:"color-mix(in srgb, var(--colors-border-neutral-strong) calc(100% * ), transparent)",onSubtle:{subtle:"color-mix(in srgb, var(--colors-border-neutral-on-subtle-subtle) calc(100% * ), transparent)",strong:"color-mix(in srgb, var(--colors-border-neutral-on-subtle-strong) calc(100% * ), transparent)"}}},eF={primary:{default:"color-mix(in srgb, var(--colors-action-primary) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-primary-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-primary-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-primary-selected) calc(100% * ), transparent)",subtle:{default:"color-mix(in srgb, var(--colors-action-primary-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-primary-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-primary-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-primary-subtle-selected) calc(100% * ), transparent)"}},neutral:{default:"color-mix(in srgb, var(--colors-action-neutral) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-selected) calc(100% * ), transparent)",subtle:{default:"color-mix(in srgb, var(--colors-action-neutral-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-subtle-selected) calc(100% * ), transparent)"},onSubtle:{default:"color-mix(in srgb, var(--colors-action-neutral-on-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-selected) calc(100% * ), transparent)"},onSubtleSecondary:{default:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-selected) calc(100% * ), transparent)"},onDefault:{default:"color-mix(in srgb, var(--colors-action-neutral-on-default) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-default-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-default-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-default-selected) calc(100% * ), transparent)",inverted:{default:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-selected) calc(100% * ), transparent)"}}},onBlack:{default:"color-mix(in srgb, var(--colors-action-on-black) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-on-black-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-on-black-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-on-black-selected) calc(100% * ), transparent)"},"white-transparent":{subtle:{default:"color-mix(in srgb, var(--colors-action-white-transparent-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-selected) calc(100% * ), transparent)"},default:"color-mix(in srgb, var(--colors-action-white-transparent) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-white-transparent-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-white-transparent-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-white-transparent-selected) calc(100% * ), transparent)"},"black-transparent":{subtle:{default:"color-mix(in srgb, var(--colors-action-black-transparent-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-selected) calc(100% * ), transparent)"},default:"color-mix(in srgb, var(--colors-action-black-transparent) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-black-transparent-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-black-transparent-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-black-transparent-selected) calc(100% * ), transparent)"}},tF={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},rF={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},Jc={inherit:f$,current:d$,transparent:p$,black:h$,white:g$,slate:m$,gray:y$,zinc:_$,neutral:v$,stone:b$,red:w$,orange:S$,amber:E$,yellow:x$,lime:k$,green:C$,emerald:T$,teal:I$,cyan:A$,sky:O$,blue:R$,indigo:L$,violet:P$,purple:N$,fuchsia:M$,pink:D$,rose:$$,basic:F$,grey:U$,trueGrey:j$,lightBlue:B$,warmGrey:H$,light:V$,dark:W$,informative:z$,positive:G$,warning:q$,negative:K$,brandLight:Y$,brandDark:Z$,background:X$,content:J$,border:Q$,action:eF,primary:tF,cool:rF,dark_mode_grey:"#9d9ea1",footer_color:"#666666",settings_box_border:"#75797d40",radio_group_bg_color:"#0d0e10",radio_group_text_color:"#2f3438",radio_group_text_color_dark:"#9d9ea1",radio_group_text_hover_dark:"#f0f0f1",radio_group_text_selected_dark:"#26272e",accuweather_orange:"#FF8700",settings_title_dark:"#F5F5F6",border_header_summary:"#9D9EA11A",news_tile_color:"#212121",weather_label:"#616161",weather_label_dark:"#727377",yahoo_logo:"#6101D1",magnifying_glass:"#5F6368",radio_group_text_selected_hover_dark:"#F0F0F1",three_dots_menu:"#333333",vertical_tab_shadow:"#dddddd",searchbox_results_bg:"#f0f0f0",searchbox_results_bg_dark:"#ffffff33",video_row_background:"#E6E9EF",onelaunch_green:"#13B115",onelaunch_grey:"#F7F8FB",onelaunch_dark:"#2B2B2B",onelaunch_border_grey:"#E2E5EB",onelaunch_grey_text:"#4B4E5C",onelaunch_grey_highlight:"#404040",onelaunch_color_red:"#FFC8C4",onelaunch_color_red_dark:"#911D14",onelaunch_color_green:"#C5EDD0",onelaunch_color_green_dark:"#8CC29A",onelaunch_color_text:"#191919",onelaunch_color_header:"#171717",onelaunch_white_text:"#FFFFFF",onelaunch_background_dark:"#191919",onelaunch_header_background_dark:"#171717",onelaunch_background_grey:"#2F2F2F",onelaunch_button_blue:"#096bfb",onelaunch_button_red:"#FF3C3C",onelaunch_ui_shades_50_blur:"#FFFFFFE6",onelaunch_ui_shades_50:"#FFFFFF",onelaunch_ui_shades_100:"#F8FAFC",onelaunch_ui_shades_200:"#f2f4f6",onelaunch_ui_shades_300:"#EAECEE",onelaunch_ui_shades_400:"#e3e6e9",onelaunch_ui_shades_500:"#dcdfe2",onelaunch_ui_shades_600:"#d2d6da",onelaunch_ui_shades_700:"#c7cbd0",onelaunch_ui_shades_800:"#a1a5a9",onelaunch_ui_shades_900:"#75797d",onelaunch_dark_shades_100:"#2F3438",onelaunch_dark_shades_200:"#222629",onelaunch_dark_shades_300:"#0F1213",onelaunch_dark_shades_300_08:"#0F121314",onelaunch_dark_shades_400:"#000000",onelaunch_primary_default:"#005EB7",onelaunch_primary_active:"#337FC6",onelaunch_primary_hover:"#1A6FC0",onelaunch_primary_shades_100:"#98ecfe",onelaunch_primary_shades_200:"#60ccfe",onelaunch_primary_shades_400:"#0078D4",onelaunch_primary_shades_600:"#003D92",onelaunch_secondary_default:"#03d4bf",onelaunch_secondary_hover:"#08e0cb",onelaunch_secondary_active:"#1bead5",onelaunch_green_active:"#0aa477",onelaunch_validation_default:"#de3905"},nF=Qe(()=>{const e=Fr(),t=Ie(),r=X(()=>{const o=Jc[e.ui.primary],s=Jc[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { ${Object.entries(o||Jc.green).map(([i,a])=>`--color-primary-${i}: ${qv(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); ${Object.entries(s||Jc.cool).map(([i,a])=>`--color-gray-${i}: ${qv(a)};`).join(` `)} } .dark { --color-primary-DEFAULT: var(--color-primary-400); } `}),n={style:[{innerHTML:()=>r.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=r.value,o.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(o),n.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}$s(n)}),oF="__NUXT_COLOR_MODE__",sF="nuxt-color-mode",qn=window[oF]||{},iF=Qe(e=>{const t=ri("color-mode",()=>Jt({preference:qn.preference,value:qn.value,unknown:!1,forced:!1})).value;Ht().afterEach(o=>{const s=o.meta.colorMode;s&&s!=="system"?(t.value=s,t.forced=!0):(s==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?qn.getColorScheme():t.preference)});let r;function n(){r||!window.matchMedia||(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=qn.getColorScheme())}))}Oe(()=>t.preference,o=>{var s;t.forced||(o==="system"?(t.value=qn.getColorScheme(),n()):t.value=o,(s=window.localStorage)==null||s.setItem(sF,o))},{immediate:!0}),Oe(()=>t.value,(o,s)=>{qn.removeColorScheme(s),qn.addColorScheme(o)}),t.preference==="system"&&n(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=qn.preference,t.value=qn.value,t.unknown=!1)}),e.provide("colorMode",t)});/*! * shared v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const cf=typeof window<"u",ts=(e,t=!1)=>t?Symbol.for(e):Symbol(e),aF=(e,t,r)=>lF({l:e,k:t,s:r}),lF=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Nt=e=>typeof e=="number"&&isFinite(e),cF=e=>Dm(e)==="[object Date]",uf=e=>Dm(e)==="[object RegExp]",md=e=>Fe(e)&&Object.keys(e).length===0,Gt=Object.assign,uF=Object.create,rt=(e=null)=>uF(e);let Kv;const Mm=()=>Kv||(Kv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:rt());function Yv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const fF=Object.prototype.hasOwnProperty;function on(e,t){return fF.call(e,t)}const Mt=Array.isArray,tt=e=>typeof e=="function",ce=e=>typeof e=="string",vt=e=>typeof e=="boolean",Ve=e=>e!==null&&typeof e=="object",dF=e=>Ve(e)&&tt(e.then)&&tt(e.catch),jx=Object.prototype.toString,Dm=e=>jx.call(e),Fe=e=>Dm(e)==="[object Object]",pF=e=>e==null?"":Mt(e)||Fe(e)&&e.toString===jx?JSON.stringify(e,null,2):String(e);function $m(e,t=""){return e.reduce((r,n,o)=>o===0?r+n:r+t+n,"")}function hF(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Qc=e=>!Ve(e)||Mt(e);function $i(e,t){if(Qc(e)||Qc(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:o}=r.pop();Object.keys(n).forEach(s=>{s!=="__proto__"&&(Ve(n[s])&&!Ve(o[s])&&(o[s]=Array.isArray(n[s])?[]:rt()),Qc(o[s])||Qc(n[s])?o[s]=n[s]:r.push({src:n[s],des:o[s]}))})}}const lo=[],cg={},gF=[()=>Zt(()=>import("./DB7imAev.js"),[],import.meta.url)],yd=[],Bx="@nuxtjs/i18n",mF=!1,yF="i18n_redirected",_F="nuxtI18nInternal",Zv="nuxt-i18n-slp";function vF(e){return e.map(t=>typeof t=="string"?{code:t}:t)}function _d(e){return typeof e=="string"?e:e!=null?e.toString():"(null)"}function Xv(e,t,{defaultLocale:r,strategy:n,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s,differentDomains:i}){const a=n!=="no_prefix"||i;let l=_d(e)+(a?o+t:"");return t===r&&n==="prefix_and_default"&&(l+=o+s),l}function bF(e,t){return tt(e)?e(t):e}function wF(e,t){const r=[];for(const[n,o]of t.entries()){const s=e.find(i=>i.language.toLowerCase()===o.toLowerCase());if(s){r.push({code:s.code,score:1-n/t.length});break}}for(const[n,o]of t.entries()){const s=o.split("-")[0].toLowerCase(),i=e.find(a=>a.language.split("-")[0].toLowerCase()===s);if(i){r.push({code:i.code,score:.999-n/t.length});break}}return r}function SF(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function EF(e,t,{matcher:r=wF,comparer:n=SF}={}){const o=[];for(const i of e){const{code:a}=i,l=i.language||a;o.push({code:a,language:l})}const s=r(o,t);return s.length===0?"":(s.length>1&&s.sort(n),s[0].code)}function Fm(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}const xF=`(${lo.join("|")})`,Jv=Fm(lo);function Um(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=at().public.i18n,r=`(?:${e}${t})?`,n=new RegExp(`${e}${xF}${r}$`,"i");return s=>{let i=null;return typeof s=="string"?(i=s.match(Jv),(i==null?void 0:i[1])??""):(s.name?i=_d(s.name).match(n):s.path&&(i=s.path.match(Jv)),(i==null?void 0:i[1])??"")}}const gl=new Map;async function kF(e,t){const r={messages:{}};for(const n of e){const{default:o}=await n(),s=tt(o)?await t.runWithContext(()=>o()):o;$i(s,r)}return r}function Hx(e,t){if(e===!1)return[];if(Array.isArray(e))return e;let r=[];if(typeof e=="string")return t.every(o=>o!==e)&&r.push(e),r;const n=[...t,"default"];for(const o of n)o in e&&(r=[...r,...e[o].filter(Boolean)]);return r}async function CF(e,{key:t,load:r},n){let o=null;try{const s=await r().then(i=>"default"in i?i.default:i);tt(s)?o=await n.runWithContext(()=>s(e)):(o=s,o!=null&&gl&&gl.set(t,o))}catch(s){console.error("Failed locale loading: "+s.message)}return o}async function ug(e,t,r,n){const o=t[e];if(o==null)return;const s={};for(const i of o){let a=null;gl&&gl.has(i.key)&&i.cache?a=gl.get(i.key):a=await n.runWithContext(()=>CF(e,i,n)),a!=null&&$i(a,s)}r(e,s)}function TF(e){return e!=null&&"global"in e&&"mode"in e}function IF(e){return e!=null&&!("__composer"in e)&&"locale"in e&&qe(e.locale)}function Vx(e){return e!=null&&"__composer"in e}function ff(e){return TF(e)?e.global:e}function el(e){const t=ff(e);return IF(t)?t:Vx(t)?t.__composer:t}function Gi(e,t){const r=He(t);return r==null||!r.name?void 0:_d(r.name).split(e.runtimeConfig.public.i18n.routesNameSeparator)[0]}function jm(e,t,r){var o;if(typeof t=="string"&&yn(t,{acceptRelative:!0}))return t;const n=Bm(e,t,r);return n==null?"":((o=n.redirectedFrom)==null?void 0:o.fullPath)||n.fullPath}function vd(e,t,r){return Bm(e,t,r)??void 0}function AF(e){if(typeof e!="string")return Object.assign({},e);if(e[0]==="/"){const{pathname:t,search:r,hash:n}=Nh(e);return{path:t,query:id(r),hash:n}}return{name:e}}const OF=e=>!!e.path&&!e.name;function RF(e,t,r){const n=e.runtimeConfig.public.i18n;if(OF(t)){const s=PF(e,t,r),i=Gi(e,s);return i?(s.name=Xv(i,r,n),s):($F(e.runtimeConfig)({...n,currentLocale:r})&&(t.path="/"+r+t.path),t.path=(n.trailingSlash?Pl:ad)(t.path,!0),t)}t.name||(t.name=Gi(e,e.router.currentRoute.value));const o=Xv(t.name,r,n);return e.router.hasRoute(o)&&(t.name=o),t}function Bm(e,t,r){try{const n=r||He(ff(e.i18n).locale),o=AF(t),s=e.router.resolve(RF(e,o,n));return s.name?s:e.router.resolve(t)}catch(n){if(Cn(n,1))return null}}function LF(e,t){var n;if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return He(e.metaState.value);const r=t.meta||{};return((n=He(r))==null?void 0:n[_F])||{}}function df(e,t,r){const n=r??e.router.currentRoute.value,o=Gi(e,n);if(!o)return"";const s=LF(e,n)[t],i={name:o,params:Object.assign({},n.params,s),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},a=jm(e,i,t);return FF(e.runtimeConfig)(a,t)}function PF(e,t,r){if(e.runtimeConfig.public.i18n.strategy==="no_prefix")return t;if(e.runtimeConfig.public.i18n.strategy!=="prefix")return e.router.resolve(t);const n=t.path.slice(1),o=t.path[0]+r+(n&&"/"+n),s=e.router.options.routes.find(i=>i.path===o);return s==null?t:e.router.resolve(Object.assign({},t,s,{path:o}))}function Wx(e){return{i18n:e??Ie().$i18n,router:Ht(),runtimeConfig:at(),metaState:ri("nuxt-i18n-meta",()=>({}))}}async function zx(e,t=!1){const r=Ie(),{differentDomains:n,skipSettingLocaleOnNavigate:o}=r.$config.public.i18n,s=wc(),i=He(r.$i18n.locale),a=He(r.$i18n.localeCodes);function l(d=i){s===!1||!s.useCookie||o||r.$i18n.setLocaleCookie(d)}const c=await r.$i18n.onBeforeLanguageSwitch(i,e,t,r);if(c&&a.includes(c)){if(i===c)return l(),!1;e=c}if(!e||!t&&n||i===e)return l(),!1;const u=He(r.$i18n.fallbackLocale),f=r.$i18n.mergeLocaleMessage.bind(r.$i18n);if(u){const d=Hx(u,[e]);await Promise.all(d.map(p=>ug(p,cg,f,r)))}return await ug(e,cg,f,r),o?!1:(l(e),r._vueI18n.__setLocale(e),await r.$i18n.onLanguageSwitched(i,e),!0)}function NF(e,t,r,n){const o=Ie(),{strategy:s,defaultLocale:i,differentDomains:a,multiDomainLocales:l}=o.$config.public.i18n,c=wc(),u=GF(e,n,r);if(u.locale&&u.from!=null&&lo.includes(u.locale))return u.locale;let f="";a||l?f||(f=qF(yd,s,e)):s!=="no_prefix"&&(f||(f=t));const d=(lo.includes(u.locale)||n&&lo.includes(n))&&c&&c.useCookie&&n;return f||(f=d||r||i||""),f}function Gx({to:e,from:t,locale:r,routeLocale:n},o=!1){if(n===r||Ie().$i18n.strategy==="no_prefix")return"";const s=Wx();let i=df(s,r,e);return o&&!i&&(i=jm(s,e.fullPath,r)),Ph(i,e.fullPath)||t&&Ph(i,t.fullPath)?"":i}const MF=()=>ri(Bx+":redirect",()=>"");async function qx({nuxtApp:e,locale:t,route:r,redirectPath:n},o=!1){const{rootRedirect:s,differentDomains:i,multiDomainLocales:a,skipSettingLocaleOnNavigate:l,locales:c,strategy:u}=e.$config.public.i18n;if(r.path==="/"&&s)return typeof s=="string"?n="/"+s:(n="/"+s.path,s.statusCode),n=e.$localePath(n,t),Oo(n,{});if(!(l&&(e._vueI18n.__pendingLocale=t,e._vueI18n.__pendingLocalePromise=new Promise(f=>{e._vueI18n.__resolvePendingLocalePromise=()=>f()}),!o))){if(a&&u==="prefix_except_default"){const f=bd(),d=c.find(g=>{var h;if(typeof g!="string")return(h=g.defaultForDomains)==null?void 0:h.find(m=>m===f)}),p=typeof d!="string"?d==null?void 0:d.code:void 0;if(r.path.startsWith(`/${p}`))return Oo(r.path.replace(`/${p}`,""));if(!r.path.startsWith(`/${t}`)&&t!==p){const h=Um()(r.path);return Oo(h!==""?`/${t+r.path.replace(`/${h}`,"")}`:`/${t+(r.path==="/"?"":r.path)}`)}return n&&r.path!==n?Oo(n):void 0}if(i){const f=MF();f.value&&f.value!==n&&(f.value="",window.location.assign(n))}else if(n)return Oo(n)}}function DF({currentLocale:e,defaultLocale:t,strategy:r}){return r!=="no_prefix"&&!(e===t&&(r==="prefix_and_default"||r==="prefix_except_default"))}function $F(e=at()){return t=>DF(t)&&!e.public.i18n.differentDomains}function FF(e=at()){return(t,r)=>{if(!e.public.i18n.differentDomains)return t;const n=Yx(r);return n&&ei(n,t)||t}}function UF(){return()=>{const e=Ie(),{baseUrl:t,defaultLocale:r,differentDomains:n}=e.$config.public.i18n;if(tt(t))return t(e);const o=tt(r)?r():r;if(n&&o){const s=Yx(o);if(s)return s}return t}}function Kx(e){return Bx+" "+e}function jF(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function Us(e,t=Wx()){return(...r)=>e(t,...r)}function BF(){let e;return navigator.languages&&(e=EF(yd,navigator.languages)),e}function HF(){const e=wc(),t=e&&e.cookieKey||yF,r=new Date,n={expires:new Date(r.setDate(r.getDate()+365)),path:"/",sameSite:e&&e.cookieCrossOrigin?"none":"lax",secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return e&&e.cookieDomain&&(n.domain=e.cookieDomain),Su(t,n)}function VF(e,t,r){if(t===!1||!t.useCookie)return;const n=e.value??void 0;if(n!=null){if(lo.includes(n))return n;if(r)return e.value=r,r;e.value=void 0}}function WF(e,t,r){r===!1||!r.useCookie||(e.value=t)}const zF={locale:"",reason:"disabled"};function GF(e,t,r=""){const n=wc();if(!n)return zF;const o=Ie(),s=o.$i18n.strategy;if(!o._vueI18n.__firstAccess)return{locale:s==="no_prefix"?r:"",reason:"first_access_only"};const{redirectOn:a,alwaysRedirect:l,useCookie:c,fallbackLocale:u}=n,f=ce(e)?e:e.path;if(s!=="no_prefix"){if(a==="root"&&f!=="/")return{locale:"",reason:"not_redirect_on_root"};if(a==="no prefix"&&!l&&f.match(Fm(lo)))return{locale:"",reason:"not_redirect_on_no_prefix"}}let d;const p=c&&t||void 0;c&&(d="cookie");const g=o.$i18n.getBrowserLocale();p||(d="navigator_or_header");const h=p||g,m=h||u||"";return!h&&u&&(d="fallback"),{locale:m,from:d}}function bd(){let e;return e=window.location.host,e}function qF(e,t,r){let n=bd()||"";const o=Ve(r)?r.path:ce(r)?r:"";if(n){let s;const i=e.filter(a=>{if(a&&a.domain){let l=a.domain;return yn(a.domain)&&(l=a.domain.replace(/(http|https):\/\//,"")),l===n}else if(Array.isArray(a==null?void 0:a.domains))return a.domains.includes(n);return!1});if(i.length===1)s=i[0];else if(i.length>1)if(t==="no_prefix")console.warn(Kx("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),s=i[0];else{if(r&&o&&o!==""){const a=o.match(Fm(i.map(l=>l.code)));a&&a.length>1&&(s=i.find(l=>l.code===a[1]))}s||(s=i.find(a=>Array.isArray(a.defaultForDomains)?a.defaultForDomains.includes(n):a.domainDefault))}if(s)return s.code;n=""}return n}function Yx(e){var i,a,l;const t=at();Ie();const r=bd(),n=t.public.i18n,o=yd.find(c=>c.code===e),s=((a=(i=n==null?void 0:n.domainLocales)==null?void 0:i[e])==null?void 0:a.domain)||(o==null?void 0:o.domain)||((l=o==null?void 0:o.domains)==null?void 0:l.find(c=>c===r));if(s){if(yn(s,{strict:!0}))return s;let c;return c=new URL(window.location.origin).protocol,c+"//"+s}console.warn(Kx("Could not find domain name for locale "+e))}const wc=(e=at().public.i18n)=>(e==null?void 0:e.detectBrowserLanguage)===!1?!1:e==null?void 0:e.detectBrowserLanguage;function KF(e,t){const{multiDomainLocales:r,strategy:n,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s}=e.$config.public.i18n;if(!r||!(n==="prefix_except_default"||n==="prefix_and_default"))return;const i=Ht(),a=[o,s].join("");for(const l of i.getRoutes()){const c=_d(l.name);if(c.endsWith(a)){i.removeRoute(c);continue}const u=c.split(o)[1];u===t&&i.addRoute({...l,path:l.path===`/${u}`?"/":l.path.replace(`/${u}`,"")})}}function YF(e){const{locales:t,defaultLocale:r,multiDomainLocales:n}=e.$config.public.i18n;let o=r||"";if(!n)return o;const s=bd();if(t.some(a=>typeof a!="string"&&Array.isArray(a.defaultForDomains))){const a=t.find(l=>typeof l=="string"||!Array.isArray(l.defaultForDomains)?!1:l.defaultForDomains.includes(s??""));o=(a==null?void 0:a.code)??""}return o}function ZF({key:e,seo:t}){const r=Ie(),{defaultDirection:n}=at().public.i18n,o=He(r.$i18n.locale),s=vF(He(r.$i18n.locales)),i=s.find(a=>a.code===o)||{code:o};return{key:e,seo:t,locale:o,locales:s,currentDir:i.dir||n,currentLocale:i,currentLanguage:i.language,baseUrl:JF()}}function XF(e,{dir:t=!0,lang:r=!0,seo:n=!0,key:o="hid"}){const s={htmlAttrs:{},link:[],meta:[]},i=ZF({seo:n,key:o});return i.baseUrl||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),i.locales==null||i.baseUrl==null||(t&&(s.htmlAttrs.dir=i.currentDir),r&&i.currentLanguage&&(s.htmlAttrs.lang=i.currentLanguage),n&&i.locale&&i.locales&&(s.link.push(...QF(e,i),...eU(e,i)),s.meta.push(...tU(e,i),...rU(i),...nU(i)))),s}function JF(){const e=Ie(),t=el(e.$i18n);return ei(He(t.baseUrl),e.$config.app.baseURL)}function QF(e,t){const{defaultLocale:r,strategy:n}=at().public.i18n,o=[];if(n==="no_prefix")return o;const s=new Map;for(const l of t.locales){if(!l.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[c,u]=l.language.split("-");c&&u&&(l.isCatchallLocale||!s.has(c))&&s.set(c,l),s.set(l.language,l)}const i=e.runtimeConfig.public.i18n.experimental.alternateLinkCanonicalQueries===!0,a=i?e.router.resolve({query:{}}):void 0;!e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR&&i&&(a.meta=e.router.currentRoute.value.meta);for(const[l,c]of s.entries()){const u=df(e,c.code,a),f=fg(e,t);let d=dg(u,t.baseUrl);f&&i&&(d=`${d}?${f}`),u&&o.push({[t.key]:`i18n-alt-${l}`,rel:"alternate",href:d,hreflang:l})}if(r){const l=df(e,r,a),c=fg(e,t);let u=dg(l,t.baseUrl);c&&i&&(u=`${u}?${c}`),l&&o.push({[t.key]:"i18n-xd",rel:"alternate",href:u,hreflang:"x-default"})}return o}function Zx(e,t){const r=e.router.currentRoute.value,n=vd(e,{...r,path:void 0,name:Gi(e,r)});if(!n)return"";let o=dg(n.path,t.baseUrl);const s=fg(e,t);return s&&(o=`${o}?${s}`),o}function eU(e,t){const r=Zx(e,t);return r?[{[t.key]:"i18n-can",rel:"canonical",href:r}]:[]}function fg(e,t){const r=e.router.currentRoute.value,n=vd(e,{...r,path:void 0,name:Gi(e,r)}),o=Ve(t.seo)&&t.seo.canonicalQueries||[],s=(n==null?void 0:n.query)||{},i=new URLSearchParams;for(const a of o)if(a in s){const l=s[a];Mt(l)?l.forEach(c=>i.append(a,c||"")):i.append(a,l||"")}return i.toString()||void 0}function tU(e,t){const r=Zx(e,t);return r?[{[t.key]:"i18n-og-url",property:"og:url",content:r}]:[]}function rU(e){return!e.currentLocale||!e.currentLanguage?[]:[{[e.key]:"i18n-og",property:"og:locale",content:Xx(e.currentLanguage)}]}function nU(e){return e.locales.filter(r=>r.language&&r.language!==e.currentLanguage).map(r=>({[e.key]:`i18n-og-alt-${r.language}`,property:"og:locale:alternate",content:Xx(r.language)}))}function Xx(e){return(e||"").replace(/-/g,"_")}function dg(e,t){return e.match(/^https?:\/\//)?e:ei(t,e)}/*! * message-compiler v11.1.2 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function oU(e,t,r){return{line:e,column:t,offset:r}}function pg(e,t,r){return{start:e,end:t}}const Xe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},sU=17;function wd(e,t,r={}){const{domain:n,messages:o,args:s}=r,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=n,a}function iU(e){throw e}const Kn=" ",aU="\r",gr=` `,lU="\u2028",cU="\u2029";function uU(e){const t=e;let r=0,n=1,o=1,s=0;const i=x=>t[x]===aU&&t[x+1]===gr,a=x=>t[x]===gr,l=x=>t[x]===cU,c=x=>t[x]===lU,u=x=>i(x)||a(x)||l(x)||c(x),f=()=>r,d=()=>n,p=()=>o,g=()=>s,h=x=>i(x)||l(x)||c(x)?gr:t[x],m=()=>h(r),y=()=>h(r+s);function b(){return s=0,u(r)&&(n++,o=0),i(r)&&r++,r++,o++,t[r]}function _(){return i(r+s)&&s++,s++,t[r+s]}function v(){r=0,n=1,o=1,s=0}function S(x=0){s=x}function E(){const x=r+s;for(;x!==r;)b();s=0}return{index:f,line:d,column:p,peekOffset:g,charAt:h,currentChar:m,currentPeek:y,next:b,peek:_,reset:v,resetPeek:S,skipToPeek:E}}const ko=void 0,fU=".",Qv="'",dU="tokenizer";function pU(e,t={}){const r=t.location!==!1,n=uU(e),o=()=>n.index(),s=()=>oU(n.line(),n.column(),n.index()),i=s(),a=o(),l={currentType:13,offset:a,startLoc:i,endLoc:i,lastType:13,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(k,T,D,...j){const z=c();if(T.column+=D,T.offset+=D,u){const K=r?pg(z.startLoc,T):null,P=wd(k,K,{domain:dU,args:j});u(P)}}function d(k,T,D){k.endLoc=s(),k.currentType=T;const j={type:T};return r&&(j.loc=pg(k.startLoc,k.endLoc)),D!=null&&(j.value=D),j}const p=k=>d(k,13);function g(k,T){return k.currentChar()===T?(k.next(),T):(f(Xe.EXPECTED_TOKEN,s(),0,T),"")}function h(k){let T="";for(;k.currentPeek()===Kn||k.currentPeek()===gr;)T+=k.currentPeek(),k.peek();return T}function m(k){const T=h(k);return k.skipToPeek(),T}function y(k){if(k===ko)return!1;const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T===95}function b(k){if(k===ko)return!1;const T=k.charCodeAt(0);return T>=48&&T<=57}function _(k,T){const{currentType:D}=T;if(D!==2)return!1;h(k);const j=y(k.currentPeek());return k.resetPeek(),j}function v(k,T){const{currentType:D}=T;if(D!==2)return!1;h(k);const j=k.currentPeek()==="-"?k.peek():k.currentPeek(),z=b(j);return k.resetPeek(),z}function S(k,T){const{currentType:D}=T;if(D!==2)return!1;h(k);const j=k.currentPeek()===Qv;return k.resetPeek(),j}function E(k,T){const{currentType:D}=T;if(D!==7)return!1;h(k);const j=k.currentPeek()===".";return k.resetPeek(),j}function x(k,T){const{currentType:D}=T;if(D!==8)return!1;h(k);const j=y(k.currentPeek());return k.resetPeek(),j}function R(k,T){const{currentType:D}=T;if(!(D===7||D===11))return!1;h(k);const j=k.currentPeek()===":";return k.resetPeek(),j}function A(k,T){const{currentType:D}=T;if(D!==9)return!1;const j=()=>{const K=k.currentPeek();return K==="{"?y(k.peek()):K==="@"||K==="|"||K===":"||K==="."||K===Kn||!K?!1:K===gr?(k.peek(),j()):U(k,!1)},z=j();return k.resetPeek(),z}function N(k){h(k);const T=k.currentPeek()==="|";return k.resetPeek(),T}function U(k,T=!0){const D=(z=!1,K="")=>{const P=k.currentPeek();return P==="{"||P==="@"||!P?z:P==="|"?!(K===Kn||K===gr):P===Kn?(k.peek(),D(!0,Kn)):P===gr?(k.peek(),D(!0,gr)):!0},j=D();return T&&k.resetPeek(),j}function L(k,T){const D=k.currentChar();return D===ko?ko:T(D)?(k.next(),D):null}function G(k){const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36}function re(k){return L(k,G)}function le(k){const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36||T===45}function q(k){return L(k,le)}function oe(k){const T=k.charCodeAt(0);return T>=48&&T<=57}function ne(k){return L(k,oe)}function Se(k){const T=k.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102}function ct(k){return L(k,Se)}function ve(k){let T="",D="";for(;T=ne(k);)D+=T;return D}function We(k){let T="";for(;;){const D=k.currentChar();if(D==="{"||D==="}"||D==="@"||D==="|"||!D)break;if(D===Kn||D===gr)if(U(k))T+=D,k.next();else{if(N(k))break;T+=D,k.next()}else T+=D,k.next()}return T}function je(k){m(k);let T="",D="";for(;T=q(k);)D+=T;return k.currentChar()===ko&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D}function tr(k){m(k);let T="";return k.currentChar()==="-"?(k.next(),T+=`-${ve(k)}`):T+=ve(k),k.currentChar()===ko&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),T}function ze(k){return k!==Qv&&k!==gr}function ht(k){m(k),g(k,"'");let T="",D="";for(;T=L(k,ze);)T==="\\"?D+=W(k):D+=T;const j=k.currentChar();return j===gr||j===ko?(f(Xe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),j===gr&&(k.next(),g(k,"'")),D):(g(k,"'"),D)}function W(k){const T=k.currentChar();switch(T){case"\\":case"'":return k.next(),`\\${T}`;case"u":return Q(k,T,4);case"U":return Q(k,T,6);default:return f(Xe.UNKNOWN_ESCAPE_SEQUENCE,s(),0,T),""}}function Q(k,T,D){g(k,T);let j="";for(let z=0;z{const j=k.currentChar();return j==="{"||j==="@"||j==="|"||j==="("||j===")"||!j||j===Kn?D:(D+=j,k.next(),T(D))};return T("")}function C(k){m(k);const T=g(k,"|");return m(k),T}function I(k,T){let D=null;switch(k.currentChar()){case"{":return T.braceNest>=1&&f(Xe.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),k.next(),D=d(T,2,"{"),m(k),T.braceNest++,D;case"}":return T.braceNest>0&&T.currentType===2&&f(Xe.EMPTY_PLACEHOLDER,s(),0),k.next(),D=d(T,3,"}"),T.braceNest--,T.braceNest>0&&m(k),T.inLinked&&T.braceNest===0&&(T.inLinked=!1),D;case"@":return T.braceNest>0&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D=$(k,T)||p(T),T.braceNest=0,D;default:{let z=!0,K=!0,P=!0;if(N(k))return T.braceNest>0&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,D;if(T.braceNest>0&&(T.currentType===4||T.currentType===5||T.currentType===6))return f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),T.braceNest=0,B(k,T);if(z=_(k,T))return D=d(T,4,je(k)),m(k),D;if(K=v(k,T))return D=d(T,5,tr(k)),m(k),D;if(P=S(k,T))return D=d(T,6,ht(k)),m(k),D;if(!z&&!K&&!P)return D=d(T,12,ie(k)),f(Xe.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,D.value),m(k),D;break}}return D}function $(k,T){const{currentType:D}=T;let j=null;const z=k.currentChar();switch((D===7||D===8||D===11||D===9)&&(z===gr||z===Kn)&&f(Xe.INVALID_LINKED_FORMAT,s(),0),z){case"@":return k.next(),j=d(T,7,"@"),T.inLinked=!0,j;case".":return m(k),k.next(),d(T,8,".");case":":return m(k),k.next(),d(T,9,":");default:return N(k)?(j=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,j):E(k,T)||R(k,T)?(m(k),$(k,T)):x(k,T)?(m(k),d(T,11,te(k))):A(k,T)?(m(k),z==="{"?I(k,T)||j:d(T,10,we(k))):(D===7&&f(Xe.INVALID_LINKED_FORMAT,s(),0),T.braceNest=0,T.inLinked=!1,B(k,T))}}function B(k,T){let D={type:13};if(T.braceNest>0)return I(k,T)||p(T);if(T.inLinked)return $(k,T)||p(T);switch(k.currentChar()){case"{":return I(k,T)||p(T);case"}":return f(Xe.UNBALANCED_CLOSING_BRACE,s(),0),k.next(),d(T,3,"}");case"@":return $(k,T)||p(T);default:{if(N(k))return D=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,D;if(U(k))return d(T,0,We(k));break}}return D}function H(){const{currentType:k,offset:T,startLoc:D,endLoc:j}=l;return l.lastType=k,l.lastOffset=T,l.lastStartLoc=D,l.lastEndLoc=j,l.offset=o(),l.startLoc=s(),n.currentChar()===ko?d(l,13):B(n,l)}return{nextToken:H,currentOffset:o,currentPosition:s,context:c}}const hU="parser",gU=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function mU(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function yU(e={}){const t=e.location!==!1,{onError:r}=e;function n(y,b,_,v,...S){const E=y.currentPosition();if(E.offset+=v,E.column+=v,r){const x=t?pg(_,E):null,R=wd(b,x,{domain:hU,args:S});r(R)}}function o(y,b,_){const v={type:y};return t&&(v.start=b,v.end=b,v.loc={start:_,end:_}),v}function s(y,b,_,v){t&&(y.end=b,y.loc&&(y.loc.end=_))}function i(y,b){const _=y.context(),v=o(3,_.offset,_.startLoc);return v.value=b,s(v,y.currentOffset(),y.currentPosition()),v}function a(y,b){const _=y.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(5,v,S);return E.index=parseInt(b,10),y.nextToken(),s(E,y.currentOffset(),y.currentPosition()),E}function l(y,b){const _=y.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(4,v,S);return E.key=b,y.nextToken(),s(E,y.currentOffset(),y.currentPosition()),E}function c(y,b){const _=y.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(9,v,S);return E.value=b.replace(gU,mU),y.nextToken(),s(E,y.currentOffset(),y.currentPosition()),E}function u(y){const b=y.nextToken(),_=y.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(8,v,S);return b.type!==11?(n(y,Xe.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),E.value="",s(E,v,S),{nextConsumeToken:b,node:E}):(b.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,xn(b)),E.value=b.value||"",s(E,y.currentOffset(),y.currentPosition()),{node:E})}function f(y,b){const _=y.context(),v=o(7,_.offset,_.startLoc);return v.value=b,s(v,y.currentOffset(),y.currentPosition()),v}function d(y){const b=y.context(),_=o(6,b.offset,b.startLoc);let v=y.nextToken();if(v.type===8){const S=u(y);_.modifier=S.node,v=S.nextConsumeToken||y.nextToken()}switch(v.type!==9&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),v=y.nextToken(),v.type===2&&(v=y.nextToken()),v.type){case 10:v.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=f(y,v.value||"");break;case 4:v.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=l(y,v.value||"");break;case 5:v.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=a(y,v.value||"");break;case 6:v.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=c(y,v.value||"");break;default:{n(y,Xe.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const S=y.context(),E=o(7,S.offset,S.startLoc);return E.value="",s(E,S.offset,S.startLoc),_.key=E,s(_,S.offset,S.startLoc),{nextConsumeToken:v,node:_}}}return s(_,y.currentOffset(),y.currentPosition()),{node:_}}function p(y){const b=y.context(),_=b.currentType===1?y.currentOffset():b.offset,v=b.currentType===1?b.endLoc:b.startLoc,S=o(2,_,v);S.items=[];let E=null;do{const A=E||y.nextToken();switch(E=null,A.type){case 0:A.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(A)),S.items.push(i(y,A.value||""));break;case 5:A.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(A)),S.items.push(a(y,A.value||""));break;case 4:A.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(A)),S.items.push(l(y,A.value||""));break;case 6:A.value==null&&n(y,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(A)),S.items.push(c(y,A.value||""));break;case 7:{const N=d(y);S.items.push(N.node),E=N.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const x=b.currentType===1?b.lastOffset:y.currentOffset(),R=b.currentType===1?b.lastEndLoc:y.currentPosition();return s(S,x,R),S}function g(y,b,_,v){const S=y.context();let E=v.items.length===0;const x=o(1,b,_);x.cases=[],x.cases.push(v);do{const R=p(y);E||(E=R.items.length===0),x.cases.push(R)}while(S.currentType!==13);return E&&n(y,Xe.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),s(x,y.currentOffset(),y.currentPosition()),x}function h(y){const b=y.context(),{offset:_,startLoc:v}=b,S=p(y);return b.currentType===13?S:g(y,_,v,S)}function m(y){const b=pU(y,Gt({},e)),_=b.context(),v=o(0,_.offset,_.startLoc);return t&&v.loc&&(v.loc.source=y),v.body=h(b),e.onCacheKey&&(v.cacheKey=e.onCacheKey(y)),_.currentType!==13&&n(b,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,y[_.offset]||""),s(v,b.currentOffset(),b.currentPosition()),v}return{parse:m}}function xn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function _U(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:s=>(r.helpers.add(s),s)}}function eb(e,t){for(let r=0;rtb(r)),e}function tb(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;ri;function l(h,m){i.code+=h}function c(h,m=!0){const y=m?n:"";l(o?y+" ".repeat(h):y)}function u(h=!0){const m=++i.indentLevel;h&&c(m)}function f(h=!0){const m=--i.indentLevel;h&&c(m)}function d(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:d,helper:h=>`_${h}`,needIndent:()=>i.needIndent}}function SU(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),qi(e,t.key),t.modifier?(e.push(", "),qi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function EU(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const o=t.items.length;for(let s=0;s1){e.push(`${r("plural")}([`),e.indent(n());const o=t.cases.length;for(let s=0;s{const r=ce(t.mode)?t.mode:"normal",n=ce(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":` `,s=t.needIndent?t.needIndent:r!=="arrow",i=e.helpers||[],a=wU(e,{filename:n,breakLineCode:o,needIndent:s});a.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(s),i.length>0&&(a.push(`const { ${$m(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),qi(a,e),a.deindent(s),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function TU(e,t={}){const r=Gt({},t),n=!!r.jit,o=!!r.minify,s=r.optimize==null?!0:r.optimize,a=yU(r).parse(e);return n?(s&&bU(a),o&&yi(a),{ast:a,code:""}):(vU(a,r),CU(a,r))}/*! * core-base v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function IU(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Mm().__INTLIFY_PROD_DEVTOOLS__=!1)}function mp(e){return r=>AU(r,e)}function AU(e,t){const r=RU(t);if(r==null)throw jl(0);if(Vm(r)===1){const s=PU(r);return e.plural(s.reduce((i,a)=>[...i,rb(e,a)],[]))}else return rb(e,r)}const OU=["b","body"];function RU(e){return rs(e,OU)}const LU=["c","cases"];function PU(e){return rs(e,LU,[])}function rb(e,t){const r=MU(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=$U(t).reduce((o,s)=>[...o,hg(e,s)],[]);return e.normalize(n)}}const NU=["s","static"];function MU(e){return rs(e,NU)}const DU=["i","items"];function $U(e){return rs(e,DU,[])}function hg(e,t){const r=Vm(t);switch(r){case 3:return eu(t,r);case 9:return eu(t,r);case 4:{const n=t;if(on(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(on(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw jl(r)}case 5:{const n=t;if(on(n,"i")&&Nt(n.i))return e.interpolate(e.list(n.i));if(on(n,"index")&&Nt(n.index))return e.interpolate(e.list(n.index));throw jl(r)}case 6:{const n=t,o=BU(n),s=VU(n);return e.linked(hg(e,s),o?hg(e,o):void 0,e.type)}case 7:return eu(t,r);case 8:return eu(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const FU=["t","type"];function Vm(e){return rs(e,FU)}const UU=["v","value"];function eu(e,t){const r=rs(e,UU);if(r)return r;throw jl(t)}const jU=["m","modifier"];function BU(e){return rs(e,jU)}const HU=["k","key"];function VU(e){const t=rs(e,HU);if(t)return t;throw jl(6)}function rs(e,t,r){for(let n=0;ne;let tu=rt();function Ki(e){return Ve(e)&&Vm(e)===0&&(on(e,"b")||on(e,"body"))}function zU(e,t={}){let r=!1;const n=t.onError||iU;return t.onError=o=>{r=!0,n(o)},{...TU(e,t),detectError:r}}function GU(e,t){if(ce(e)){vt(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||WU)(e),o=tu[n];if(o)return o;const{ast:s,detectError:i}=zU(e,{...t,location:!1,jit:!0}),a=mp(s);return i?a:tu[n]=a}else{const r=e.cacheKey;if(r){const n=tu[r];return n||(tu[r]=mp(e))}else return mp(e)}}let Bl=null;function qU(e){Bl=e}function KU(e,t,r){Bl&&Bl.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const YU=ZU("function:translate");function ZU(e){return t=>Bl&&Bl.emit(e,t)}const io={INVALID_ARGUMENT:sU,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},XU=24;function ao(e){return wd(e,null,void 0)}function Wm(e,t){return t.locale!=null?nb(t.locale):nb(e.locale)}let yp;function nb(e){if(ce(e))return e;if(tt(e)){if(e.resolvedOnce&&yp!=null)return yp;if(e.constructor.name==="Function"){const t=e();if(dF(t))throw ao(io.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return yp=t}else throw ao(io.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ao(io.NOT_SUPPORT_LOCALE_TYPE)}function JU(e,t,r){return[...new Set([r,...Mt(t)?t:Ve(t)?Object.keys(t):ce(t)?[t]:[r]])]}function Jx(e,t,r){const n=ce(r)?r:pf,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(n);if(!s){s=[];let i=[r];for(;Mt(i);)i=ob(s,i,t);const a=Mt(t)||!Fe(t)?t:t.default?t.default:null;i=ce(a)?[a]:a,Mt(i)&&ob(s,i,!1),o.__localeChainCache.set(n,s)}return s}function ob(e,t,r){let n=!0;for(let o=0;o{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,n=4,d[0]();else{if(o=0,i===void 0||(i=sj(i),i===!1))return!1;d[1]()}};function p(){const g=e[r+1];if(n===5&&g==="'"||n===6&&g==='"')return r++,a="\\"+g,d[0](),!0}for(;n!==null;)if(r++,s=e[r],!(s==="\\"&&p())){if(l=oj(s),f=ns[n],c=f[l]||f.l||8,c===8||(n=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=s,u()===!1))))return;if(n===7)return t}}const sb=new Map;function aj(e,t){return Ve(e)?e[t]:null}function lj(e,t){if(!Ve(e))return null;let r=sb.get(t);if(r||(r=ij(t),r&&sb.set(t,r)),!r)return null;const n=r.length;let o=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function uj(){return{upper:(e,t)=>t==="text"&&ce(e)?e.toUpperCase():t==="vnode"&&Ve(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ce(e)?e.toLowerCase():t==="vnode"&&Ve(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ce(e)?ab(e):t==="vnode"&&Ve(e)&&"__v_isVNode"in e?ab(e.children):e}}let Qx;function fj(e){Qx=e}let ek;function dj(e){ek=e}let tk;function pj(e){tk=e}let rk=null;const hj=e=>{rk=e},gj=()=>rk;let nk=null;const lb=e=>{nk=e},mj=()=>nk;let cb=0;function yj(e={}){const t=tt(e.onWarn)?e.onWarn:hF,r=ce(e.version)?e.version:cj,n=ce(e.locale)||tt(e.locale)?e.locale:pf,o=tt(n)?pf:n,s=Mt(e.fallbackLocale)||Fe(e.fallbackLocale)||ce(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Fe(e.messages)?e.messages:_p(o),a=Fe(e.datetimeFormats)?e.datetimeFormats:_p(o),l=Fe(e.numberFormats)?e.numberFormats:_p(o),c=Gt(rt(),e.modifiers,uj()),u=e.pluralRules||rt(),f=tt(e.missing)?e.missing:null,d=vt(e.missingWarn)||uf(e.missingWarn)?e.missingWarn:!0,p=vt(e.fallbackWarn)||uf(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,h=!!e.unresolving,m=tt(e.postTranslation)?e.postTranslation:null,y=Fe(e.processor)?e.processor:null,b=vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,v=tt(e.messageCompiler)?e.messageCompiler:Qx,S=tt(e.messageResolver)?e.messageResolver:ek||aj,E=tt(e.localeFallbacker)?e.localeFallbacker:tk||JU,x=Ve(e.fallbackContext)?e.fallbackContext:void 0,R=e,A=Ve(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,N=Ve(R.__numberFormatters)?R.__numberFormatters:new Map,U=Ve(R.__meta)?R.__meta:{};cb++;const L={version:r,cid:cb,locale:n,fallbackLocale:s,messages:i,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:g,unresolving:h,postTranslation:m,processor:y,warnHtmlMessage:b,escapeParameter:_,messageCompiler:v,messageResolver:S,localeFallbacker:E,fallbackContext:x,onWarn:t,__meta:U};return L.datetimeFormats=a,L.numberFormats=l,L.__datetimeFormatters=A,L.__numberFormatters=N,__INTLIFY_PROD_DEVTOOLS__&&KU(L,r,U),L}const _p=e=>({[e]:rt()});function zm(e,t,r,n,o){const{missing:s,onWarn:i}=e;if(s!==null){const a=s(e,r,t,o);return ce(a)?a:t}else return t}function Na(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function _j(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function vj(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{ok.includes(l)?i[l]=r[l]:s[l]=r[l]}),ce(n)?s.locale=n:Fe(n)&&(i=n),Fe(o)&&(i=o),[s.key||"",a,s,i]}function fb(e,t,r){const n=e;for(const o in r){const s=`${t}__${o}`;n.__datetimeFormatters.has(s)&&n.__datetimeFormatters.delete(s)}}function db(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=mg(...t),d=vt(u.missingWarn)?u.missingWarn:e.missingWarn;vt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=Wm(e,u),h=i(e,o,g);if(!ce(l)||l==="")return new Intl.NumberFormat(g,f).format(c);let m={},y,b=null;const _="number format";for(let E=0;E{sk.includes(l)?i[l]=r[l]:s[l]=r[l]}),ce(n)?s.locale=n:Fe(n)&&(i=n),Fe(o)&&(i=o),[s.key||"",a,s,i]}function pb(e,t,r){const n=e;for(const o in r){const s=`${t}__${o}`;n.__numberFormatters.has(s)&&n.__numberFormatters.delete(s)}}const bj=e=>e,wj=e=>"",Sj="text",Ej=e=>e.length===0?"":$m(e),xj=pF;function hb(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function kj(e){const t=Nt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Nt(e.named.count)||Nt(e.named.n))?Nt(e.named.count)?e.named.count:Nt(e.named.n)?e.named.n:t:t}function Cj(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Tj(e={}){const t=e.locale,r=kj(e),n=Ve(e.pluralRules)&&ce(t)&&tt(e.pluralRules[t])?e.pluralRules[t]:hb,o=Ve(e.pluralRules)&&ce(t)&&tt(e.pluralRules[t])?hb:void 0,s=y=>y[n(r,y.length,o)],i=e.list||[],a=y=>i[y],l=e.named||rt();Nt(e.pluralIndex)&&Cj(r,l);const c=y=>l[y];function u(y,b){const _=tt(e.messages)?e.messages(y,!!b):Ve(e.messages)?e.messages[y]:!1;return _||(e.parent?e.parent.message(y):wj)}const f=y=>e.modifiers?e.modifiers[y]:bj,d=Fe(e.processor)&&tt(e.processor.normalize)?e.processor.normalize:Ej,p=Fe(e.processor)&&tt(e.processor.interpolate)?e.processor.interpolate:xj,g=Fe(e.processor)&&ce(e.processor.type)?e.processor.type:Sj,m={list:a,named:c,plural:s,linked:(y,...b)=>{const[_,v]=b;let S="text",E="";b.length===1?Ve(_)?(E=_.modifier||E,S=_.type||S):ce(_)&&(E=_||E):b.length===2&&(ce(_)&&(E=_||E),ce(v)&&(S=v||S));const x=u(y,!0)(m),R=S==="vnode"&&Mt(x)&&E?x[0]:x;return E?f(E)(R,S):R},message:u,type:g,interpolate:p,normalize:d,values:Gt(rt(),i,l)};return m}const gb=()=>"",Vr=e=>tt(e);function mb(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:a}=e,[l,c]=yg(...t),u=vt(c.missingWarn)?c.missingWarn:e.missingWarn,f=vt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=vt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=ce(c.default)||vt(c.default)?vt(c.default)?s?l:()=>l:c.default:r?s?l:()=>l:null,h=r||g!=null&&(ce(g)||tt(g)),m=Wm(e,c);d&&Ij(c);let[y,b,_]=p?[l,m,a[m]||rt()]:ik(e,l,m,i,f,u),v=y,S=l;if(!p&&!(ce(v)||Ki(v)||Vr(v))&&h&&(v=g,S=v),!p&&(!(ce(v)||Ki(v)||Vr(v))||!ce(b)))return o?Sd:l;let E=!1;const x=()=>{E=!0},R=Vr(v)?v:ak(e,l,b,v,S,x);if(E)return v;const A=Rj(e,b,_,c),N=Tj(A),U=Aj(e,R,N),L=n?n(U,l):U;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:ce(l)?l:Vr(v)?v.key:"",locale:b||(Vr(v)?v.locale:""),format:ce(v)?v:Vr(v)?v.source:"",message:L};G.meta=Gt({},e.__meta,gj()||{}),YU(G)}return L}function Ij(e){Mt(e.list)?e.list=e.list.map(t=>ce(t)?Yv(t):t):Ve(e.named)&&Object.keys(e.named).forEach(t=>{ce(e.named[t])&&(e.named[t]=Yv(e.named[t]))})}function ik(e,t,r,n,o,s){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,n,r);let f=rt(),d,p=null;const g="translate";for(let h=0;hn;return c.locale=r,c.key=t,c}const l=i(n,Oj(e,r,o,n,a,s));return l.locale=r,l.key=t,l.source=n,l}function Aj(e,t,r){return t(r)}function yg(...e){const[t,r,n]=e,o=rt();if(!ce(t)&&!Nt(t)&&!Vr(t)&&!Ki(t))throw ao(io.INVALID_ARGUMENT);const s=Nt(t)?String(t):(Vr(t),t);return Nt(r)?o.plural=r:ce(r)?o.default=r:Fe(r)&&!md(r)?o.named=r:Mt(r)&&(o.list=r),Nt(n)?o.plural=n:ce(n)?o.default=n:Fe(n)&&Gt(o,n),[s,o]}function Oj(e,t,r,n,o,s){return{locale:t,key:r,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>aF(t,r,i)}}function Rj(e,t,r,n){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:o,pluralRules:s,messages:(p,g)=>{let h=i(r,p);if(h==null&&(u||g)){const[,,m]=ik(u||e,p,t,a,l,c);h=i(m,p)}if(ce(h)||Ki(h)){let m=!1;const b=ak(e,p,t,h,p,()=>{m=!0});return m?gb:b}else return Vr(h)?h:gb}};return e.processor&&(d.processor=e.processor),n.list&&(d.list=n.list),n.named&&(d.named=n.named),Nt(n.plural)&&(d.pluralIndex=n.plural),d}IU();/*! * vue-i18n v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const Lj="10.0.5";function Pj(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Mm().__INTLIFY_PROD_DEVTOOLS__=!1)}const Kr={UNEXPECTED_RETURN_TYPE:XU,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function hn(e,...t){return wd(e,null,void 0)}const _g=ts("__translateVNode"),vg=ts("__datetimeParts"),bg=ts("__numberParts"),Nj=ts("__setPluralRules"),Mj=ts("__injectWithOption"),wg=ts("__dispose");function Hl(e){if(!Ve(e))return e;for(const t in e)if(on(e,t))if(!t.includes("."))Ve(e[t])&&Hl(e[t]);else{const r=t.split("."),n=r.length-1;let o=e,s=!1;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||rt(),$i(c,i[l])):$i(c,i)}else ce(a)&&$i(JSON.parse(a),i)}),o==null&&s)for(const a in i)on(i,a)&&Hl(i[a]);return i}function ck(e){return e.type}function Dj(e,t,r){let n=Ve(t.messages)?t.messages:rt();"__i18nGlobal"in r&&(n=lk(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,n[s])});{if(Ve(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Ve(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function yb(e){return it(Bo,null,e,0)}const _b="__INTLIFY_META__",vb=()=>[],$j=()=>!1;let bb=0;function wb(e){return(t,r,n,o)=>e(r,n,er()||void 0,o)}const Fj=()=>{const e=er();let t=null;return e&&(t=ck(e)[_b])?{[_b]:t}:null};function uk(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,o=e.flatJson,s=cf?ue:fn;let i=vt(e.inheritLocale)?e.inheritLocale:!0;const a=s(t&&i?t.locale.value:ce(e.locale)?e.locale:pf),l=s(t&&i?t.fallbackLocale.value:ce(e.fallbackLocale)||Mt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=s(lk(a.value,e)),u=s(Fe(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=s(Fe(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:vt(e.missingWarn)||uf(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:vt(e.fallbackWarn)||uf(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:vt(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,m=tt(e.missing)?e.missing:null,y=tt(e.missing)?wb(e.missing):null,b=tt(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const S=t?t.modifiers:Fe(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,x;x=(()=>{n&&lb(null);const P={version:Lj,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:S,pluralRules:E,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:_,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};P.datetimeFormats=u.value,P.numberFormats=f.value,P.__datetimeFormatters=Fe(x)?x.__datetimeFormatters:void 0,P.__numberFormatters=Fe(x)?x.__numberFormatters:void 0;const F=yj(P);return n&&lb(F),F})(),Na(x,a.value,l.value);function A(){return[a.value,l.value,c.value,u.value,f.value]}const N=X({get:()=>a.value,set:P=>{a.value=P,x.locale=a.value}}),U=X({get:()=>l.value,set:P=>{l.value=P,x.fallbackLocale=l.value,Na(x,a.value,P)}}),L=X(()=>c.value),G=X(()=>u.value),re=X(()=>f.value);function le(){return tt(b)?b:null}function q(P){b=P,x.postTranslation=P}function oe(){return m}function ne(P){P!==null&&(y=wb(P)),m=P,x.missing=y}const Se=(P,F,ee,de,Le,Pe)=>{A();let gt;try{__INTLIFY_PROD_DEVTOOLS__,n||(x.fallbackContext=t?mj():void 0),gt=P(x)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(x.fallbackContext=void 0)}if(ee!=="translate exists"&&Nt(gt)&>===Sd||ee==="translate exists"&&!gt){const[Ct,qt]=F();return t&&g?de(t):Le(Ct)}else{if(Pe(gt))return gt;throw hn(Kr.UNEXPECTED_RETURN_TYPE)}};function ct(...P){return Se(F=>Reflect.apply(mb,null,[F,...P]),()=>yg(...P),"translate",F=>Reflect.apply(F.t,F,[...P]),F=>F,F=>ce(F))}function ve(...P){const[F,ee,de]=P;if(de&&!Ve(de))throw hn(Kr.INVALID_ARGUMENT);return ct(F,ee,Gt({resolvedMessage:!0},de||{}))}function We(...P){return Se(F=>Reflect.apply(ub,null,[F,...P]),()=>gg(...P),"datetime format",F=>Reflect.apply(F.d,F,[...P]),()=>ib,F=>ce(F))}function je(...P){return Se(F=>Reflect.apply(db,null,[F,...P]),()=>mg(...P),"number format",F=>Reflect.apply(F.n,F,[...P]),()=>ib,F=>ce(F))}function tr(P){return P.map(F=>ce(F)||Nt(F)||vt(F)?yb(String(F)):F)}const ht={normalize:tr,interpolate:P=>P,type:"vnode"};function W(...P){return Se(F=>{let ee;const de=F;try{de.processor=ht,ee=Reflect.apply(mb,null,[de,...P])}finally{de.processor=null}return ee},()=>yg(...P),"translate",F=>F[_g](...P),F=>[yb(F)],F=>Mt(F))}function Q(...P){return Se(F=>Reflect.apply(db,null,[F,...P]),()=>mg(...P),"number format",F=>F[bg](...P),vb,F=>ce(F)||Mt(F))}function J(...P){return Se(F=>Reflect.apply(ub,null,[F,...P]),()=>gg(...P),"datetime format",F=>F[vg](...P),vb,F=>ce(F)||Mt(F))}function ie(P){E=P,x.pluralRules=E}function te(P,F){return Se(()=>{if(!P)return!1;const ee=ce(F)?F:a.value,de=I(ee),Le=x.messageResolver(de,P);return Ki(Le)||Vr(Le)||ce(Le)},()=>[P],"translate exists",ee=>Reflect.apply(ee.te,ee,[P,F]),$j,ee=>vt(ee))}function we(P){let F=null;const ee=Jx(x,l.value,a.value);for(let de=0;de{i&&(a.value=P,x.locale=P,Na(x,a.value,l.value))}),Oe(t.fallbackLocale,P=>{i&&(l.value=P,x.fallbackLocale=P,Na(x,a.value,l.value))}));const K={id:bb,locale:N,fallbackLocale:U,get inheritLocale(){return i},set inheritLocale(P){i=P,P&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,Na(x,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:L,get modifiers(){return S},get pluralRules(){return E||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(P){d=P,x.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(P){p=P,x.fallbackWarn=p},get fallbackRoot(){return g},set fallbackRoot(P){g=P},get fallbackFormat(){return h},set fallbackFormat(P){h=P,x.fallbackFormat=h},get warnHtmlMessage(){return _},set warnHtmlMessage(P){_=P,x.warnHtmlMessage=P},get escapeParameter(){return v},set escapeParameter(P){v=P,x.escapeParameter=P},t:ct,getLocaleMessage:I,setLocaleMessage:$,mergeLocaleMessage:B,getPostTranslationHandler:le,setPostTranslationHandler:q,getMissingHandler:oe,setMissingHandler:ne,[Nj]:ie};return K.datetimeFormats=G,K.numberFormats=re,K.rt=ve,K.te=te,K.tm=C,K.d=We,K.n=je,K.getDateTimeFormat=H,K.setDateTimeFormat=k,K.mergeDateTimeFormat=T,K.getNumberFormat=D,K.setNumberFormat=j,K.mergeNumberFormat=z,K[Mj]=r,K[_g]=W,K[vg]=J,K[bg]=Q,K}const Gm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Uj({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,o)=>[...n,...o.type===bt?o.children:[o]],[]):t.reduce((r,n)=>{const o=e[n];return o&&(r[n]=o()),r},rt())}function fk(){return bt}const jj=It({name:"i18n-t",props:Gt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Nt(e)||!isNaN(e)}},Gm),setup(e,t){const{slots:r,attrs:n}=t,o=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(r).filter(f=>f!=="_"),i=rt();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=ce(e.plural)?+e.plural:e.plural);const a=Uj(t,s),l=o[_g](e.keypath,a,i),c=Gt(rt(),n),u=ce(e.tag)||Ve(e.tag)?e.tag:fk();return Tt(u,c,l)}}}),Sb=jj;function Bj(e){return Mt(e)&&!ce(e[0])}function dk(e,t,r,n){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let a=rt();e.locale&&(i.locale=e.locale),ce(e.format)?i.key=e.format:Ve(e.format)&&(ce(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>r.includes(p)?Gt(rt(),d,{[p]:e.format[p]}):d,rt()));const l=n(e.value,i,a);let c=[i.key];Mt(l)?c=l.map((d,p)=>{const g=o[d.type],h=g?g({[d.type]:d.value,index:p,parts:l}):[d.value];return Bj(h)&&(h[0].key=`${d.type}-${p}`),h}):ce(l)&&(c=[l]);const u=Gt(rt(),s),f=ce(e.tag)||Ve(e.tag)?e.tag:fk();return Tt(f,u,c)}}const Hj=It({name:"i18n-n",props:Gt({value:{type:Number,required:!0},format:{type:[String,Object]}},Gm),setup(e,t){const r=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return dk(e,t,sk,(...n)=>r[bg](...n))}}),Eb=Hj,Vj=It({name:"i18n-d",props:Gt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Gm),setup(e,t){const r=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return dk(e,t,ok,(...n)=>r[vg](...n))}}),xb=Vj;function Wj(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function zj(e){const t=i=>{const{instance:a,value:l}=i;if(!a||!a.$)throw hn(Kr.UNEXPECTED_ERROR);const c=Wj(e,a.$),u=kb(l);return[Reflect.apply(c.t,c,[...Cb(u)]),c]};return{created:(i,a)=>{const[l,c]=t(a);cf&&e.global===c&&(i.__i18nWatcher=Oe(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{cf&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,c=kb(a);i.textContent=Reflect.apply(l.t,l,[...Cb(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function kb(e){if(ce(e))return{path:e};if(Fe(e)){if(!("path"in e))throw hn(Kr.REQUIRED_VALUE,"path");return e}else throw hn(Kr.INVALID_VALUE)}function Cb(e){const{path:t,locale:r,args:n,choice:o,plural:s}=e,i={},a=n||{};return ce(r)&&(i.locale=r),Nt(o)&&(i.plural=o),Nt(s)&&(i.plural=s),[t,a,i]}function Gj(e,t,...r){const n=Fe(r[0])?r[0]:{};(vt(n.globalInstall)?n.globalInstall:!0)&&([Sb.name,"I18nT"].forEach(s=>e.component(s,Sb)),[Eb.name,"I18nN"].forEach(s=>e.component(s,Eb)),[xb.name,"I18nD"].forEach(s=>e.component(s,xb))),e.directive("t",zj(t))}const qj=ts("global-vue-i18n");function Kj(e={},t){const r=vt(e.globalInjection)?e.globalInjection:!0,n=new Map,[o,s]=Yj(e),i=ts("");function a(f){return n.get(f)||null}function l(f,d){n.set(f,d)}function c(f){n.delete(f)}const u={get mode(){return"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,u),Fe(d[0])){const h=d[0];u.__composerExtend=h.__composerExtend,u.__vueI18nExtend=h.__vueI18nExtend}let p=null;r&&(p=nB(f,u.global)),Gj(f,u,...d);const g=f.unmount;f.unmount=()=>{p&&p(),u.dispose(),g()}},get global(){return s},dispose(){o.stop()},__instances:n,__getInstance:a,__setInstance:l,__deleteInstance:c};return u}function Ed(e={}){const t=er();if(t==null)throw hn(Kr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw hn(Kr.NOT_INSTALLED);const r=Zj(t),n=Jj(r),o=ck(t),s=Xj(e,o);if(s==="global")return Dj(n,e,o),n;if(s==="parent"){let l=Qj(r,t,e.__useComponent);return l==null&&(l=n),l}const i=r;let a=i.__getInstance(t);if(a==null){const l=Gt({},e);"__i18n"in o&&(l.__i18n=o.__i18n),n&&(l.__root=n),a=uk(l),i.__composerExtend&&(a[wg]=i.__composerExtend(a)),tB(i,t,a),i.__setInstance(t,a)}return a}function Yj(e,t,r){const n=ca(),o=n.run(()=>uk(e));if(o==null)throw hn(Kr.UNEXPECTED_ERROR);return[n,o]}function Zj(e){const t=jt(e.isCE?qj:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw hn(e.isCE?Kr.NOT_INSTALLED_WITH_PROVIDE:Kr.UNEXPECTED_ERROR);return t}function Xj(e,t){return md(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Jj(e){return e.mode==="composition"?e.global:e.global.__composer}function Qj(e,t,r=!1){let n=null;const o=t.root;let s=eB(t,r);for(;s!=null;){const i=e;if(e.mode==="composition"&&(n=i.__getInstance(s)),n!=null||o===s)break;s=s.parent}return n}function eB(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function tB(e,t,r){Or(()=>{},t),Qs(()=>{const n=r;e.__deleteInstance(t);const o=n[wg];o&&(o(),delete n[wg])},t)}const rB=["locale","fallbackLocale","availableLocales"],Tb=["t","rt","d","n","tm","te"];function nB(e,t){const r=Object.create(null);return rB.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw hn(Kr.UNEXPECTED_ERROR);const i=qe(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(r,o,i)}),e.config.globalProperties.$i18n=r,Tb.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw hn(Kr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,Tb.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}Pj();fj(GU);dj(lj);pj(Jx);if(__INTLIFY_PROD_DEVTOOLS__){const e=Mm();e.__INTLIFY__=!0,qU(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function oB(){return Us(Gi)}function sB(){return Us(jm)}function iB(){return Us(vd)}function aB(){return Us(vd)}function pk(){return Us(df)}const lB=Qe({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const t=pk(),r=new RegExp([``,".+?",``].join(""),"g");e.hook("app:rendered",n=>{var o;((o=n.renderResult)==null?void 0:o.html)!=null&&(n.renderResult.html=n.renderResult.html.replaceAll(r,(s,i)=>s.replace(/href="([^"]+)"/,`href="${encodeURI(t(i??""))}"`)))})}}),cB=Qe({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,r;const n=e,o=n.$router.currentRoute,s=Um();async function i(l){let c=NF(l,s(l),He(n.$i18n.locale),n.$i18n.getLocaleCookie());if(n._vueI18n.__firstAccess){n._vueI18n.__setLocale(c);const f=Hx(He(n._vueI18n.global.fallbackLocale),[c]);await Promise.all(f.map(d=>n.$i18n.loadLocaleMessages(d))),await n.$i18n.loadLocaleMessages(c)}return await n.runWithContext(()=>zx(c,n._vueI18n.__firstAccess))&&(c=He(n.$i18n.locale)),c}[t,r]=Pt(()=>i(o.value)),await t,r(),R1("locale-changing",async(l,c)=>{let u,f;const d=([u,f]=Pt(()=>n.runWithContext(()=>i(l))),u=await u,f(),u),p=([u,f]=Pt(()=>n.runWithContext(()=>Gx({to:l,from:c,locale:d,routeLocale:s(l)},!0))),u=await u,f(),u);return n._vueI18n.__firstAccess=!1,[u,f]=Pt(()=>n.runWithContext(()=>qx({nuxtApp:n,redirectPath:p,locale:d,route:l}))),u=await u,f(),u},{global:!0})}});function uB(e,{extendComposer:t,extendComposerInstance:r}){const n=ca(),o=e.install.bind(e);return e.install=(s,...i)=>{const a=Object.assign({},i[0]);a.__composerExtend=c=>(r(c,el(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=c=>(r(c,el(c)),()=>{})),Reflect.apply(o,e,[s,a]);const l=el(e);if(n.run(()=>{t(l),e.mode==="legacy"&&Vx(e.global)&&r(e.global,el(e.global))}),e.mode==="composition"&&s.config.globalProperties.$i18n!=null&&r(s.config.globalProperties.$i18n,l),s.unmount){const c=s.unmount.bind(s);s.unmount=()=>{n.stop(),c()}}},n}const fB=Qe({name:"i18n:plugin",parallel:mF,async setup(e){var d;let t,r;const n=e,o=n.$router.currentRoute,s=YF(n);KF(n,s);const i={...n.$config.public.i18n,defaultLocale:s};n.$config.public.i18n.defaultLocale=s,i.baseUrl=UF();const a=wc(),l=([t,r]=Pt(()=>kF(gF,Ie())),t=await t,r(),t);l.messages=l.messages||{};for(const p of lo)(d=l.messages)[p]??(d[p]={});l.fallbackLocale=l.fallbackLocale??!1,s&&(l.locale=s);const c=Um(),u=HF(),f=Kj(l);return f.__firstAccess=!0,f.__setLocale=p=>{const g=ff(f);qe(g.locale)?g.locale.value=p:g.locale=p},n._vueI18n=f,uB(f,{extendComposer(p){const g=ue(i.locales),h=ue(lo),m=ue("");p.locales=X(()=>g.value),p.localeCodes=X(()=>h.value),p.baseUrl=X(()=>m.value),Oe(p.locale,()=>{m.value=bF(i.baseUrl,n)},{immediate:!0}),p.strategy=i.strategy,p.localeProperties=X(()=>yd.find(y=>y.code===p.locale.value)||{code:p.locale.value}),p.setLocale=async y=>{if(await zx(y,f.__firstAccess),p.strategy==="no_prefix"){await p.loadLocaleMessages(y),f.__setLocale(y);return}const b=o.value,_=await n.runWithContext(()=>Gx({to:b,locale:y,routeLocale:c(b)}));await n.runWithContext(()=>qx({nuxtApp:n,redirectPath:_,locale:y,route:b},!0))},p.loadLocaleMessages=async y=>await ug(y,cg,p.mergeLocaleMessage.bind(p),n),p.differentDomains=i.differentDomains,p.defaultLocale=i.defaultLocale,p.getBrowserLocale=()=>BF(),p.getLocaleCookie=()=>VF(u,a,p.defaultLocale),p.setLocaleCookie=y=>WF(u,y,a),p.onBeforeLanguageSwitch=(y,b,_,v)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:y,newLocale:b,initialSetup:_,context:v}),p.onLanguageSwitched=(y,b)=>e.callHook("i18n:localeSwitched",{oldLocale:y,newLocale:b}),p.finalizePendingLocaleChange=async()=>{var y;f.__pendingLocale&&(f.__setLocale(f.__pendingLocale),(y=f.__resolvePendingLocalePromise)==null||y.call(f),f.__pendingLocale=void 0)},p.waitForPendingLocaleChange=async()=>{f.__pendingLocale&&f.__pendingLocalePromise&&await f.__pendingLocalePromise}},extendComposerInstance(p,g){const h=[["locales",()=>g.locales],["localeCodes",()=>g.localeCodes],["baseUrl",()=>g.baseUrl],["strategy",()=>g.strategy],["localeProperties",()=>g.localeProperties],["setLocale",()=>async m=>Reflect.apply(g.setLocale,g,[m])],["loadLocaleMessages",()=>async m=>Reflect.apply(g.loadLocaleMessages,g,[m])],["differentDomains",()=>g.differentDomains],["defaultLocale",()=>g.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(g.getBrowserLocale,g,[])],["getLocaleCookie",()=>()=>Reflect.apply(g.getLocaleCookie,g,[])],["setLocaleCookie",()=>m=>Reflect.apply(g.setLocaleCookie,g,[m])],["onBeforeLanguageSwitch",()=>(m,y,b,_)=>Reflect.apply(g.onBeforeLanguageSwitch,g,[m,y,b,_])],["onLanguageSwitched",()=>(m,y)=>Reflect.apply(g.onLanguageSwitched,g,[m,y])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(g.finalizePendingLocaleChange,g,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(g.waitForPendingLocaleChange,g,[])]];for(const[m,y]of h)Object.defineProperty(p,m,{get:y})}}),e.vueApp.use(f),jF(n,"$i18n",ff(f)),{provide:{localeHead:Us(XF),localePath:sB(),localeRoute:iB(),getRouteBaseName:oB(),switchLocalePath:pk(),resolveRoute:Us(Bm),localeLocation:aB()}}}});function dB(e){return typeof e.setItem=="function"&&typeof e.getItem=="function"&&typeof e.removeItem=="function"&&typeof e.clear=="function"&&typeof e.key=="function"&&typeof e.length=="number"}function xd(e){try{const t="__test__";return e.setItem(t,"test"),e.removeItem(t),!0}catch{return!1}}function pB(e){var t;return import.meta&&((t=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:t.split("=")[1])||null}const Lr={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Ib={silent:{level:-1},fatal:{level:Lr.fatal},error:{level:Lr.error},warn:{level:Lr.warn},log:{level:Lr.log},info:{level:Lr.info},success:{level:Lr.success},fail:{level:Lr.fail},ready:{level:Lr.info},start:{level:Lr.info},box:{level:Lr.info},debug:{level:Lr.debug},trace:{level:Lr.trace},verbose:{level:Lr.verbose}};function vp(e){return e!==null&&typeof e=="object"}function Sg(e,t,r=".",n){if(!vp(t))return Sg(e,{},r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:vp(i)&&vp(o[s])?o[s]=Sg(i,o[s],(r?`${r}.`:"")+s.toString()):o[s]=i)}return o}function hB(e){return(...t)=>t.reduce((r,n)=>Sg(r,n,""),{})}const gB=hB();function mB(e){return Object.prototype.toString.call(e)==="[object Object]"}function yB(e){return!(!mB(e)||!e.message&&!e.args||e.stack)}let bp=!1;const Ab=[];class Qt{constructor(t={}){const r=t.types||Ib;this.options=gB({...t,defaults:{...t.defaults},level:wp(t.level,r),reporters:[...t.reporters||[]]},{types:Ib,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in r){const o={type:n,...this.options.defaults,...r[n]};this[n]=this._wrapLogFn(o),this[n].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=wp(t,this.options.types,this.options.level)}prompt(t,r){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,r)}create(t){const r=new Qt({...this.options,...t});return this._mockFn&&r.mockTypes(this._mockFn),r}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const r=this.options.reporters.indexOf(t);if(r>=0)return this.options.reporters.splice(r,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,r){t&&(t.__write||(t.__write=t.write),t.write=n=>{this[r].raw(String(n).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){bp=!0}resumeLogs(){bp=!1;const t=Ab.splice(0);for(const r of t)r[0]._logFn(r[1],r[2])}mockTypes(t){const r=t||this.options.mockFn;if(this._mockFn=r,typeof r=="function")for(const n in this.options.types)this[n]=r(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(t,r){return(...n)=>{if(bp){Ab.push([this,t,n,r]);return}return this._logFn(t,n,r)}}_logFn(t,r,n){if((t.level||0)>this.level)return!1;const o={date:new Date,args:[],...t,level:wp(t.level,this.options.types)};!n&&r.length===1&&yB(r[0])?Object.assign(o,r[0]):o.args=[...r],o.message&&(o.args.unshift(o.message),delete o.message),o.additional&&(Array.isArray(o.additional)||(o.additional=o.additional.split(` `)),o.args.push(` `+o.additional.join(` `)),delete o.additional),o.type=typeof o.type=="string"?o.type.toLowerCase():"log",o.tag=typeof o.tag=="string"?o.tag:"";const s=(a=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const c=[...this._lastLog.object.args];l>1&&c.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:c}),this._lastLog.count=1}a&&(this._lastLog.object=o,this._log(o))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&o.date?o.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=o.date,ithis.options.throttleMin)){this._lastLog.timeout=setTimeout(s,this.options.throttle);return}}catch{}s(!0)}_log(t){for(const r of this.options.reporters)r.log(t,{options:this.options})}}function wp(e,t={},r=3){return e===void 0?r:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:r}Qt.prototype.add=Qt.prototype.addReporter;Qt.prototype.remove=Qt.prototype.removeReporter;Qt.prototype.clear=Qt.prototype.removeReporter;Qt.prototype.withScope=Qt.prototype.withTag;Qt.prototype.mock=Qt.prototype.mockTypes;Qt.prototype.pause=Qt.prototype.pauseLogs;Qt.prototype.resume=Qt.prototype.resumeLogs;function _B(e={}){return new Qt(e)}class vB{constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const r=this._getLogFn(t.level),n=t.type==="log"?"":t.type,o=t.tag||"",i=` background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor}; border-radius: 0.5em; color: white; font-weight: bold; padding: 2px 0.5em; `,a=`%c${[o,n].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?r(`${a}%c ${t.args[0]}`,i,"",...t.args.slice(1)):r(a,i,...t.args)}}function bB(e={}){return _B({reporters:e.reporters||[new vB({})],prompt(r,n={}){return n.type==="confirm"?Promise.resolve(confirm(r)):Promise.resolve(prompt(r))},...e})}const wB=bB(),Je=wB.withTag("app"),Ob=["getItem","setItem","removeItem","clear","length"],Sp=Je.withTag("StorageEmulator");class SB{constructor(t){Rr(this,"storage",{});this.customStorage=t,t&&dB(t)&&xd(t)?this.storage=t:this.storage={}}setItem(t,r){if(Ob.includes(t)){Sp.warn(`Key "${t}" is not allowed in storage.`);return}this.storage[t]=r}getItem(t){return this.storage[t]||null}removeItem(t){if(Ob.includes(t)){Sp.warn(`Key "${t}" is not allowed in storage.`);return}if(!this.storage[t]){Sp.warn(`Key "${t}" not found in storage.`);return}delete this.storage[t]}clear(){this.storage={}}get length(){return Object.keys(this.storage).length}key(t){return Object.keys(this.storage)[t]||null}}class hk{constructor(t){Rr(this,"storage");this.storage=new SB(t)}setItem(t,r){this.storage.setItem(t,r)}getItem(t){return this.storage.getItem(t)}removeItem(t){this.storage.removeItem(t)}clear(){this.storage.clear()}get length(){return this.storage.length}key(t){return this.storage.key(t)}}class EB{constructor(t,r,n){Rr(this,"prefix");Rr(this,"expirationMs");Rr(this,"storage");this.prefix=r,this.expirationMs=n,this.storage=t}storageKey(t){return`${this.prefix}:${t}`}load(t,r){const n=r??this.expirationMs,o=this.storage.getItem(this.storageKey(t))??"";try{const{value:s,timestamp:i}=JSON.parse(o);return Date.now()-i>n?(this.storage.removeItem(this.storageKey(t)),null):s}catch{return this.storage.removeItem(this.storageKey(t)),null}}save(t,r){const n={value:r,timestamp:Date.now()};this.storage.setItem(this.storageKey(t),JSON.stringify(n))}remove(t){this.storage.removeItem(this.storageKey(t))}clear(){const t=Object.keys(this.storage).filter(r=>r.startsWith(this.prefix));for(const r of t)this.storage.removeItem(r)}get length(){return Object.keys(this.storage).filter(t=>t.startsWith(this.prefix)).length}key(t){return Object.keys(this.storage).filter(n=>n.startsWith(this.prefix))[t]||null}getItem(t){return this.load(t)}setItem(t,r){this.save(t,r)}removeItem(t){this.remove(t)}clearAll(){this.clear()}}const Rn=new hk(typeof window<"u"?window.localStorage:void 0),xB=new hk(typeof window<"u"?window.sessionStorage:void 0),hf=Rn;xd(Rn);xd(xB);xd(hf);const Bn=()=>{var e,t;return{chrome:window==null?void 0:window.chrome,shift:(e=window==null?void 0:window.chrome)==null?void 0:e.shift,onelaunch:(t=window==null?void 0:window.chrome)==null?void 0:t.onelaunch}};function Rb(e,t){const r=encodeURIComponent(e);return{url:`https://lusearch.com/?br=Chrome&searchEngine=Yahoo&pid=${t}&bitmask=9998&q=${r}`,isMonetized:!0}}const kB="wc.onenews",CB="3007";function TB(){const e=window==null?void 0:window.location.hostname,t=window==null?void 0:window.location.port;return e==="wc.onenews.com"||e==="wc-staging.onenews.com"||(e==null?void 0:e.includes(kB))||e==="localhost"&&t===CB}const IB=Je.withTag("utils:getSearchUrl");async function AB(e,t){var o;const{fallbackUrl:r="",queryPlaceholder:n="{searchTerms}"}={...t};try{if(typeof window<"u"&&TB()){const d=new URLSearchParams(window.location.search).get("variant");if(d==="branded")return Rb(e,"NT260101");if(d==="unbranded")return Rb(e,"NT260102")}const s=f=>f.replace(n,encodeURIComponent(e)),{shift:i,onelaunch:a}=Bn(),l=(o=i==null?void 0:i.search)==null?void 0:o.getDefault;if(l){const f=await l(),d=f.monetized;return{url:s(f.url),isMonetized:d}}const c=i==null?void 0:i.getServerConfig;if(c){const f=await c();return{url:s(f.search_url)}}const u=a==null?void 0:a.getMergedData;if(u){const f=await u();return{url:s(f.search_url)}}return{url:s(r)}}catch(s){return IB.error(s),{url:r}}}function OB(){const{shift:e,onelaunch:t}=Bn(),r=e==null?void 0:e.getServerConfig;if(r)return r();const n=t==null?void 0:t.getMergedData;return n?n():new Promise(o=>o(void 0))}const RB=Je.withTag("utils:host-browser-apis:openInDefaultBrowser");async function LB(e){var n;const{shift:t,onelaunch:r}=Bn();try{const o=(n=t==null?void 0:t.ntp)==null?void 0:n.openInDefaultBrowser;if(o){await o(e);return}const s=r==null?void 0:r.openInDefaultBrowser;if(s){await s(e);return}}catch(o){RB.error("Failed to open in default browser",o)}window.open(e,"_blank")}const PB=Je.withTag("utils:isCurrentlyAtHomeTab");function gk(){try{const e=window.location.href,t=new URL(e),r=new URLSearchParams(t.search);return r.has("pinned")&&r.get("pinned")==="true"}catch(e){return PB.error(e),!1}}function mk(){var t;const{onelaunch:e}=Bn();return(t=e==null?void 0:e.getInstallInfo)==null?void 0:t.call(e)}function NB(){var t,r;const{shift:e}=Bn();return(r=(t=e==null?void 0:e.search)==null?void 0:t.getDefault)==null?void 0:r.call(t)}async function yk(){const e=await mk();return(e==null?void 0:e.version)||"unknown"}var MB=typeof global=="object"&&global&&global.Object===Object&&global,DB=typeof self=="object"&&self&&self.Object===Object&&self,$B=MB||DB||Function("return this")(),gf=$B.Symbol,_k=Object.prototype,FB=_k.hasOwnProperty,UB=_k.toString,Ma=gf?gf.toStringTag:void 0;function jB(e){var t=FB.call(e,Ma),r=e[Ma];try{e[Ma]=void 0;var n=!0}catch{}var o=UB.call(e);return n&&(t?e[Ma]=r:delete e[Ma]),o}var BB=Object.prototype,HB=BB.toString;function VB(e){return HB.call(e)}var WB="[object Null]",zB="[object Undefined]",Lb=gf?gf.toStringTag:void 0;function GB(e){return e==null?e===void 0?zB:WB:Lb&&Lb in Object(e)?jB(e):VB(e)}function qB(e){return e!=null&&typeof e=="object"}var KB="[object Symbol]";function YB(e){return typeof e=="symbol"||qB(e)&&GB(e)==KB}var ZB=/\s/;function XB(e){for(var t=e.length;t--&&ZB.test(e.charAt(t)););return t}var JB=/^\s+/;function QB(e){return e&&e.slice(0,XB(e)+1).replace(JB,"")}function Pb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nb=NaN,eH=/^[-+]0x[0-9a-f]+$/i,tH=/^0b[01]+$/i,rH=/^0o[0-7]+$/i,nH=parseInt;function oH(e){if(typeof e=="number")return e;if(YB(e))return Nb;if(Pb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=QB(e);var r=tH.test(e);return r||rH.test(e)?nH(e.slice(2),r?2:8):eH.test(e)?Nb:+e}var sH=1/0,iH=17976931348623157e292;function aH(e){if(!e)return e===0?e:0;if(e=oH(e),e===sH||e===-1/0){var t=e<0?-1:1;return t*iH}return e===e?e:0}function lH(e){var t=aH(e),r=t%1;return t===t?r?t-r:t:0}var cH="Expected a function";function uH(e,t){var r;if(typeof t!="function")throw new TypeError(cH);return e=lH(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function vk(e){return uH(2,e)}var fH=Object.defineProperty,dH=Object.defineProperties,pH=Object.getOwnPropertyDescriptors,Mb=Object.getOwnPropertySymbols,hH=Object.prototype.hasOwnProperty,gH=Object.prototype.propertyIsEnumerable,Db=(e,t,r)=>t in e?fH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ep=(e,t)=>{for(var r in t||(t={}))hH.call(t,r)&&Db(e,r,t[r]);if(Mb)for(var r of Mb(t))gH.call(t,r)&&Db(e,r,t[r]);return e},xp=(e,t)=>dH(e,pH(t)),_i=(e,t,r)=>new Promise((n,o)=>{var s=l=>{try{a(r.next(l))}catch(c){o(c)}},i=l=>{try{a(r.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,i);a((r=r.apply(e,t)).next())}),mH={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",ERROR:"ERROR"},bk=(e=>(e.PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e))(bk||{}),os=class wk extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,wk.prototype),this.name="OpenFeatureError",this.cause=r==null?void 0:r.cause}},yH=class Sk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Sk.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},Ek=class xk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,xk.prototype),this.name="GeneralError",this.code="GENERAL"}},_H=class kk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,kk.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},vH=class Ck extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Ck.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},Tk=class Ik extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Ik.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},Ak=class Ok extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Ok.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},bH=class Rk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Rk.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},wH=class Lk extends os{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Lk.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},SH=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new yH(t);case"PARSE_ERROR":return new vH(t);case"TYPE_MISMATCH":return new wH(t);case"TARGETING_KEY_MISSING":return new bH(t);case"INVALID_CONTEXT":return new _H(t);case"PROVIDER_NOT_READY":return new Ak(t);case"PROVIDER_FATAL":return new Tk(t);default:return new Ek(t)}},Vl=(e=>(e.NOT_READY="NOT_READY",e.READY="READY",e.ERROR="ERROR",e.STALE="STALE",e.FATAL="FATAL",e.RECONCILING="RECONCILING",e))(Vl||{}),eo=(e=>(e.Ready="PROVIDER_READY",e.Error="PROVIDER_ERROR",e.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",e.ContextChanged="PROVIDER_CONTEXT_CHANGED",e.Reconciling="PROVIDER_RECONCILING",e.Stale="PROVIDER_STALE",e))(eo||{}),EH={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},Pk=(e,t)=>!t&&e==="PROVIDER_READY"||EH[t]===e,Nk=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},xH=["error","warn","info","debug"],qm=class{constructor(e){this.fallbackLogger=new Nk;try{for(const t of xH)if(!e[t]||typeof e[t]!="function")throw new Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(t){console.error(t),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch{this.fallbackLogger[e](...t)}}},kH=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){const r=o=>_i(this,null,function*(){var s;try{yield t(o)}catch(i){(s=this._logger)==null||s.error("Error running event handler:",i)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){const r=this._handlers[e].get(t);if(r){const n=r.pop();n&&this.eventEmitter.removeListener(e,n)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new qm(e),this}get _logger(){var e,t;return(t=this._eventLogger)!=null?t:(e=this.globalLogger)==null?void 0:e.call(this)}};function CH(e){return typeof e=="string"}function vi(e){return CH(e)?e:void 0}function TH(e){return typeof e=="object"}function Hr(e){return TH(e)?e:void 0}function $b(e){return typeof e<"u"&&e!==null}var Eg=class{constructor(e,t,r){this._provider=e,this._status=t,this._pendingContextChanges=0;var n,o,s;(n=e.events)==null||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),(o=e.events)==null||o.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),(s=e.events)==null||s.addHandler("PROVIDER_ERROR",i=>{(i==null?void 0:i.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return this._pendingContextChanges===0}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},IH=class{constructor(e){this._hooks=[],this._context={},this._logger=new Nk,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new qm(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(n=>{var o;const s=n[0],i=n[1].provider,a=n[1].status;if(Pk(e,a))try{t({domain:s,providerName:i.metadata.name})}catch(c){(o=this._logger)==null||o.error("Error running event handler:",c)}}),this._apiEmitter.addHandler(e,t),r!=null&&r.signal&&typeof r.signal.addEventListener=="function"&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,o,s,i,a,l,c;const u=vi(e),f=(r=Hr(e))!=null?r:Hr(t);if(!f){this._logger.debug("No provider defined, ignoring setProvider call");return}const d=this.getProviderForClient(u),p=f.metadata.name;if(d===f){this._logger.debug("Provider is already set, ignoring setProvider call");return}if(!f.runsOn)this._logger.debug(`Provider '${f.metadata.name}' has not defined its intended use.`);else if(f.runsOn!==this._runsOn)throw new Ek(`Provider '${f.metadata.name}' is intended for use on the ${f.runsOn}.`);const g=this.getAssociatedEventEmitters(u);let h;const m=new Eg(f,this._statusEnumType.NOT_READY,this._statusEnumType);return typeof f.initialize=="function"&&!this.allProviders.includes(f)?h=(i=(s=(o=f.initialize)==null?void 0:o.call(f,u?(n=this._domainScopedContext.get(u))!=null?n:this._context:this._context))==null?void 0:s.then(()=>{var y;m.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(u).forEach(b=>{b==null||b.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}),(y=this._apiEmitter)==null||y.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}))==null?void 0:i.catch(y=>{var b;throw(y==null?void 0:y.code)==="PROVIDER_FATAL"?m.status=this._statusEnumType.FATAL:m.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(u).forEach(_=>{_==null||_.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:p,message:y==null?void 0:y.message})}),(b=this._apiEmitter)==null||b.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:p,message:y==null?void 0:y.message}),y}):(m.status=this._statusEnumType.READY,g.forEach(y=>{y==null||y.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}),(a=this._apiEmitter)==null||a.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})),u?this._domainScopedProviders.set(u,m):this._defaultProvider=m,this.transferListeners(d,f,u,g),this.allProviders.includes(d)||(c=(l=d==null?void 0:d.onClose)==null?void 0:l.call(d))==null||c.catch(y=>{this._logger.error(`error closing provider: ${y==null?void 0:y.message}, ${y==null?void 0:y.stack}`)}),h}getProviderForClient(e){var t,r;return e?(r=(t=this._domainScopedProviders.get(e))==null?void 0:t.provider)!=null?r:this._defaultProvider.provider:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){const t=this._clientEvents.get(e);if(t)return t;const r=this._createEventEmitter();this._clientEvents.set(e,r);const n=this.getProviderForClient(e);return Object.values(eo).forEach(o=>{var s;return(s=n.events)==null?void 0:s.addHandler(o,i=>_i(this,null,function*(){r.emit(o,xp(Ep({},i),{clientName:e,domain:e,providerName:n.metadata.name}))}))}),r}getUnboundEmitters(){const e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter($b).filter(n=>!e.includes(n)).map(n=>this._clientEvents.get(n)),this._clientEvents.get(void 0)].filter($b)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var o;(o=this._clientEventHandlers.get(r))==null||o.forEach(i=>{var a;return(a=e.events)==null?void 0:a.removeHandler(...i)});const s=Object.values(eo).map(i=>[i,l=>_i(this,null,function*(){n.forEach(c=>{c==null||c.emit(i,xp(Ep({},l),{clientName:r,domain:r,providerName:t.metadata.name}))}),this._apiEmitter.emit(i,xp(Ep({},l),{clientName:r,domain:r,providerName:t.metadata.name}))})]);this._clientEventHandlers.set(r,s),s.forEach(i=>{var a;return(a=t.events)==null?void 0:a.addHandler(...i)})}close(){return _i(this,null,function*(){var e,t;try{yield(t=(e=this==null?void 0:this._defaultProvider.provider)==null?void 0:e.onClose)==null?void 0:t.call(e)}catch(n){this.handleShutdownError(this._defaultProvider.provider,n)}const r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(n=>_i(this,[n],function*([,o]){var s,i;try{yield(i=o==null?void 0:(s=o.provider).onClose)==null?void 0:i.call(s)}catch(a){this.handleShutdownError(o==null?void 0:o.provider,a)}})))})}clearProvidersAndSetDefault(e){return _i(this,null,function*(){try{yield this.close()}catch{this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new Eg(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(t==null?void 0:t.stack)}},AH=Object.create,Km=Object.defineProperty,OH=Object.defineProperties,RH=Object.getOwnPropertyDescriptor,LH=Object.getOwnPropertyDescriptors,Mk=Object.getOwnPropertyNames,Fb=Object.getOwnPropertySymbols,Dk=Object.getPrototypeOf,$k=Object.prototype.hasOwnProperty,PH=Object.prototype.propertyIsEnumerable,NH=Reflect.get,Ub=(e,t,r)=>t in e?Km(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kp=(e,t)=>{for(var r in t||(t={}))$k.call(t,r)&&Ub(e,r,t[r]);if(Fb)for(var r of Fb(t))PH.call(t,r)&&Ub(e,r,t[r]);return e},MH=(e,t)=>OH(e,LH(t)),DH=(e,t)=>function(){return t||(0,e[Mk(e)[0]])((t={exports:{}}).exports,t),t.exports},$H=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Mk(t))!$k.call(e,o)&&o!==r&&Km(e,o,{get:()=>t[o],enumerable:!(n=RH(t,o))||n.enumerable});return e},FH=(e,t,r)=>(r=e!=null?AH(Dk(e)):{},$H(Km(r,"default",{value:e,enumerable:!0}),e)),UH=(e,t,r)=>NH(Dk(e),r,t),ui=(e,t,r)=>new Promise((n,o)=>{var s=l=>{try{a(r.next(l))}catch(c){o(c)}},i=l=>{try{a(r.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,i);a((r=r.apply(e,t)).next())}),jH=DH({"../../node_modules/eventemitter3/index.js"(e,t){var r=Object.prototype.hasOwnProperty,n="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(n=!1));function s(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new s(f,d||c,p),h=n?n+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],g]:c._events[h].push(g):(c._events[h]=g,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new o:delete c._events[u]}function l(){this._events=new o,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)r.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,h=new Array(g);pnew Bb}static getInstance(){const t=Vb[Hb];if(t)return t;const r=new xg;return Vb[Hb]=r,r}getProviderStatus(t){var r,n;return t?(n=(r=this._domainScopedProviders.get(t))==null?void 0:r.status)!=null?n:this._defaultProvider.status:this._defaultProvider.status}setProviderAndWait(t,r,n){return ui(this,null,function*(){const o=vi(t),s=Hr(o?r:t),i=Hr(o?n:r);i&&(o?this._domainScopedContext.set(o,i):this._context=i),yield this.setAwaitableProvider(o,s)})}setProvider(t,r,n){const o=vi(t),s=Hr(o?r:t),i=Hr(o?n:r);i&&(o?this._domainScopedContext.set(o,i):this._context=i);const a=this.setAwaitableProvider(o,s);return Promise.resolve(a).catch(l=>{this._logger.error("Error during provider initialization:",l)}),this}setContext(t,r){return ui(this,null,function*(){var n,o;const s=vi(t),i=(o=(n=Hr(t))!=null?n:Hr(r))!=null?o:{};if(s){const a=this._domainScopedProviders.get(s);if(a){const l=this.getContext(s);this._domainScopedContext.set(s,i),yield this.runProviderContextChangeHandler(s,a,l,i)}else this._domainScopedContext.set(s,i)}else{const a=this._context;this._context=i;const l=Array.from(this._domainScopedProviders.entries()).filter(([u])=>!this._domainScopedContext.has(u)).reduce((u,[f,d])=>(u.push({domain:f,wrapper:d}),u),[]),c=[{domain:void 0,wrapper:this._defaultProvider},...l];yield Promise.all(c.map(u=>this.runProviderContextChangeHandler(u.domain,u.wrapper,a,i)))}})}getContext(t){const r=vi(t);if(r){const n=this._domainScopedContext.get(r);if(n)return n;this._logger.debug(`Unable to find context for '${r}'.`)}return this._context}clearContext(t){return ui(this,null,function*(){const r=vi(t);if(r){const n=this._domainScopedProviders.get(r);if(n){const o=this.getContext(r);this._domainScopedContext.delete(r);const s=this.getContext();yield this.runProviderContextChangeHandler(r,n,o,s)}else this._domainScopedContext.delete(r)}else return this.setContext({})})}clearContexts(){return ui(this,null,function*(){yield this.clearContext(),yield Promise.allSettled(Array.from(this._domainScopedProviders.keys()).map(t=>this.clearContext(t)))})}getClient(t,r){return new WH(()=>this.getProviderForClient(t),()=>this.getProviderStatus(t),()=>this.buildAndCacheEventEmitterForClient(t),n=>this.getContext(n),()=>this.getHooks(),()=>this._logger,{domain:t,version:r})}clearProviders(){return ui(this,null,function*(){yield UH(xg.prototype,this,"clearProvidersAndSetDefault").call(this,jb),this._domainScopedContext.clear()})}runProviderContextChangeHandler(t,r,n,o){return ui(this,null,function*(){var s,i,a,l,c,u;const f=((i=(s=r.provider)==null?void 0:s.metadata)==null?void 0:i.name)||"unnamed-provider";try{if(typeof r.provider.onContextChange=="function"){const d=r.provider.onContextChange(n,o);typeof(d==null?void 0:d.then)=="function"&&(r.incrementPendingContextChanges(),r.status=this._statusEnumType.RECONCILING,this.getAssociatedEventEmitters(t).forEach(p=>{p==null||p.emit(eo.Reconciling,{domain:t,providerName:f})}),(a=this._apiEmitter)==null||a.emit(eo.Reconciling,{domain:t,providerName:f}),yield d,r.decrementPendingContextChanges())}r.status=this._statusEnumType.READY,r.allContextChangesSettled&&(this.getAssociatedEventEmitters(t).forEach(d=>{d==null||d.emit(eo.ContextChanged,{clientName:t,domain:t,providerName:f})}),(l=this._apiEmitter)==null||l.emit(eo.ContextChanged,{clientName:t,domain:t,providerName:f}))}catch(d){if(r.decrementPendingContextChanges(),r.status=this._statusEnumType.ERROR,r.allContextChangesSettled){const p=d,g=`Error running ${f}'s context change handler: ${p==null?void 0:p.message}`;(c=this._logger)==null||c.error(`${g}`,d),this.getAssociatedEventEmitters(t).forEach(h=>{h==null||h.emit(eo.Error,{clientName:t,domain:t,providerName:f,message:g})}),(u=this._apiEmitter)==null||u.emit(eo.Error,{clientName:t,domain:t,providerName:f,message:g})}}})}},no=zH.getInstance();const GH="_targetingKey",qH="_splittestname",Fk="_cohort";var Ue;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function n(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(Ue||(Ue={}));var kg;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(kg||(kg={}));const ae=Ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mo=e=>{switch(typeof e){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(e)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(e)?ae.array:e===null?ae.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ae.promise:typeof Map<"u"&&e instanceof Map?ae.map:typeof Set<"u"&&e instanceof Set?ae.set:typeof Date<"u"&&e instanceof Date?ae.date:ae.object;default:return ae.unknown}},Y=Ue.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),KH=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Nr extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(s){return s.message},n={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let a=n,l=0;for(;lr.message){const r={},n=[];for(const o of this.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Nr.create=e=>new Nr(e);const Yi=(e,t)=>{let r;switch(e.code){case Y.invalid_type:e.received===ae.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ue.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ue.joinValues(e.keys,", ")}`;break;case Y.invalid_union:r="Invalid input";break;case Y.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ue.joinValues(e.options)}`;break;case Y.invalid_enum_value:r=`Invalid enum value. Expected ${Ue.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:r="Invalid function arguments";break;case Y.invalid_return_type:r="Invalid function return type";break;case Y.invalid_date:r="Invalid date";break;case Y.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ue.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Y.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Y.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Y.custom:r="Invalid input";break;case Y.invalid_intersection_types:r="Intersection results could not be merged";break;case Y.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ue.assertNever(e)}return{message:r}};let Uk=Yi;function YH(e){Uk=e}function mf(){return Uk}const yf=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},ZH=[];function se(e,t){const r=mf(),n=yf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Yi?void 0:Yi].filter(o=>!!o)});e.common.issues.push(n)}class lr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const o of r){if(o.status==="aborted")return be;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const o of r){const s=await o.key,i=await o.value;n.push({key:s,value:i})}return lr.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const o of r){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return be;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(n[s.value]=i.value)}return{status:t.value,value:n}}}const be=Object.freeze({status:"aborted"}),Ei=e=>({status:"dirty",value:e}),br=e=>({status:"valid",value:e}),Cg=e=>e.status==="aborted",Tg=e=>e.status==="dirty",Wl=e=>e.status==="valid",zl=e=>typeof Promise<"u"&&e instanceof Promise;function _f(e,t,r,n){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function jk(e,t,r,n,o){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var pe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(pe||(pe={}));var tl,rl;class Fn{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Wb=(e,t)=>{if(Wl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Nr(e.common.issues);return this._error=r,this._error}}};function Ce(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{var l,c;const{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}},description:o}}class Ae{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Mo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Mo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new lr,ctx:{common:t.parent.common,data:t.data,parsedType:Mo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(zl(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const o={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mo(t)},s=this._parseSync({data:t,path:o.path,parent:o});return Wb(o,s)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mo(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(zl(o)?o:Promise.resolve(o));return Wb(n,s)}refine(t,r){const n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:Y.custom,...n(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new gn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Mn.create(this,this._def)}nullable(){return Ko.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return un.create(this,this._def)}promise(){return Xi.create(this,this._def)}or(t){return Yl.create([this,t],this._def)}and(t){return Zl.create(this,t,this._def)}transform(t){return new gn({...Ce(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new tc({...Ce(this._def),innerType:this,defaultValue:r,typeName:_e.ZodDefault})}brand(){return new Ym({typeName:_e.ZodBranded,type:this,...Ce(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new rc({...Ce(this._def),innerType:this,catchValue:r,typeName:_e.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Sc.create(this,t)}readonly(){return nc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const XH=/^c[^\s-]{8,}$/i,JH=/^[0-9a-z]+$/,QH=/^[0-9A-HJKMNP-TV-Z]{26}$/,e3=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,t3=/^[a-z0-9_-]{21}$/i,r3=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,n3=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,o3="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Cp;const s3=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,i3=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,a3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Bk="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",l3=new RegExp(`^${Bk}$`);function Hk(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function c3(e){return new RegExp(`^${Hk(e)}$`)}function Vk(e){let t=`${Bk}T${Hk(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function u3(e,t){return!!((t==="v4"||!t)&&s3.test(e)||(t==="v6"||!t)&&i3.test(e))}class sn extends Ae{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ae.string){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.string,received:s.parsedType}),be}const n=new lr;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(o=this._getOrReturnCtx(t,o),se(o,{code:Y.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.lengtht.test(o),{validation:r,code:Y.invalid_string,...pe.errToObj(n)})}_addCheck(t){return new sn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...pe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...pe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...pe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...pe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...pe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...pe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...pe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...pe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...pe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...pe.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...pe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...pe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...pe.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...pe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...pe.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...pe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...pe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...pe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...pe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...pe.errToObj(r)})}nonempty(t){return this.min(1,pe.errToObj(t))}trim(){return new sn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new sn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new sn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new sn({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ce(e)})};function f3(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class zo extends Ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ae.number){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.number,received:s.parsedType}),be}let n;const o=new lr;for(const s of this._def.checks)s.kind==="int"?Ue.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),se(n,{code:Y.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?f3(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),se(n,{code:Y.not_finite,message:s.message}),o.dirty()):Ue.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,pe.toString(r))}setLimit(t,r,n,o){return new zo({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:pe.toString(o)}]})}_addCheck(t){return new zo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:pe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:pe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&Ue.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew zo({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ce(e)});class Go extends Ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ae.bigint){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.bigint,received:s.parsedType}),be}let n;const o=new lr;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):Ue.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,pe.toString(r))}setLimit(t,r,n,o){return new Go({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:pe.toString(o)}]})}_addCheck(t){return new Go({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new Go({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ce(e)})};class Gl extends Ae{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ae.boolean){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.boolean,received:n.parsedType}),be}return br(t.data)}}Gl.create=e=>new Gl({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ce(e)});class js extends Ae{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ae.date){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.date,received:s.parsedType}),be}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_date}),be}const n=new lr;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(o=this._getOrReturnCtx(t,o),se(o,{code:Y.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Ue.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new js({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:pe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:pe.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew js({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Ce(e)});class vf extends Ae{_parse(t){if(this._getType(t)!==ae.symbol){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.symbol,received:n.parsedType}),be}return br(t.data)}}vf.create=e=>new vf({typeName:_e.ZodSymbol,...Ce(e)});class ql extends Ae{_parse(t){if(this._getType(t)!==ae.undefined){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.undefined,received:n.parsedType}),be}return br(t.data)}}ql.create=e=>new ql({typeName:_e.ZodUndefined,...Ce(e)});class Kl extends Ae{_parse(t){if(this._getType(t)!==ae.null){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.null,received:n.parsedType}),be}return br(t.data)}}Kl.create=e=>new Kl({typeName:_e.ZodNull,...Ce(e)});class Zi extends Ae{constructor(){super(...arguments),this._any=!0}_parse(t){return br(t.data)}}Zi.create=e=>new Zi({typeName:_e.ZodAny,...Ce(e)});class Os extends Ae{constructor(){super(...arguments),this._unknown=!0}_parse(t){return br(t.data)}}Os.create=e=>new Os({typeName:_e.ZodUnknown,...Ce(e)});class po extends Ae{_parse(t){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.never,received:r.parsedType}),be}}po.create=e=>new po({typeName:_e.ZodNever,...Ce(e)});class bf extends Ae{_parse(t){if(this._getType(t)!==ae.undefined){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.void,received:n.parsedType}),be}return br(t.data)}}bf.create=e=>new bf({typeName:_e.ZodVoid,...Ce(e)});class un extends Ae{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==ae.array)return se(r,{code:Y.invalid_type,expected:ae.array,received:r.parsedType}),be;if(o.exactLength!==null){const i=r.data.length>o.exactLength.value,a=r.data.lengtho.maxLength.value&&(se(r,{code:Y.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,a)=>o.type._parseAsync(new Fn(r,i,r.path,a)))).then(i=>lr.mergeArray(n,i));const s=[...r.data].map((i,a)=>o.type._parseSync(new Fn(r,i,r.path,a)));return lr.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new un({...this._def,minLength:{value:t,message:pe.toString(r)}})}max(t,r){return new un({...this._def,maxLength:{value:t,message:pe.toString(r)}})}length(t,r){return new un({...this._def,exactLength:{value:t,message:pe.toString(r)}})}nonempty(t){return this.min(1,t)}}un.create=(e,t)=>new un({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ce(t)});function bi(e){if(e instanceof yt){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Mn.create(bi(n))}return new yt({...e._def,shape:()=>t})}else return e instanceof un?new un({...e._def,type:bi(e.element)}):e instanceof Mn?Mn.create(bi(e.unwrap())):e instanceof Ko?Ko.create(bi(e.unwrap())):e instanceof Un?Un.create(e.items.map(t=>bi(t))):e}class yt extends Ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Ue.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==ae.object){const c=this._getOrReturnCtx(t);return se(c,{code:Y.invalid_type,expected:ae.object,received:c.parsedType}),be}const{status:n,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof po&&this._def.unknownKeys==="strip"))for(const c in o.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=s[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Fn(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof po){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(se(o,{code:Y.unrecognized_keys,keys:a}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const f=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Fn(o,f,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,d=await u.value;c.push({key:f,value:d,alwaysSet:u.alwaysSet})}return c}).then(c=>lr.mergeObjectSync(n,c)):lr.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return pe.errToObj,new yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,r,n).message)!==null&&i!==void 0?i:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=pe.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new yt({...this._def,unknownKeys:"strip"})}passthrough(){return new yt({...this._def,unknownKeys:"passthrough"})}extend(t){return new yt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new yt({...this._def,catchall:t})}pick(t){const r={};return Ue.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new yt({...this._def,shape:()=>r})}omit(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new yt({...this._def,shape:()=>r})}deepPartial(){return bi(this)}partial(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{const o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}),new yt({...this._def,shape:()=>r})}required(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Mn;)s=s._def.innerType;r[n]=s}}),new yt({...this._def,shape:()=>r})}keyof(){return Wk(Ue.objectKeys(this.shape))}}yt.create=(e,t)=>new yt({shape:()=>e,unknownKeys:"strip",catchall:po.create(),typeName:_e.ZodObject,...Ce(t)});yt.strictCreate=(e,t)=>new yt({shape:()=>e,unknownKeys:"strict",catchall:po.create(),typeName:_e.ZodObject,...Ce(t)});yt.lazycreate=(e,t)=>new yt({shape:e,unknownKeys:"strip",catchall:po.create(),typeName:_e.ZodObject,...Ce(t)});class Yl extends Ae{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Nr(a.ctx.common.issues));return se(r,{code:Y.invalid_union,unionErrors:i}),be}if(r.common.async)return Promise.all(n.map(async s=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!s&&(s={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Nr(l));return se(r,{code:Y.invalid_union,unionErrors:a}),be}}get options(){return this._def.options}}Yl.create=(e,t)=>new Yl({options:e,typeName:_e.ZodUnion,...Ce(t)});const Zn=e=>e instanceof Jl?Zn(e.schema):e instanceof gn?Zn(e.innerType()):e instanceof Ql?[e.value]:e instanceof qo?e.options:e instanceof ec?Ue.objectValues(e.enum):e instanceof tc?Zn(e._def.innerType):e instanceof ql?[void 0]:e instanceof Kl?[null]:e instanceof Mn?[void 0,...Zn(e.unwrap())]:e instanceof Ko?[null,...Zn(e.unwrap())]:e instanceof Ym||e instanceof nc?Zn(e.unwrap()):e instanceof rc?Zn(e._def.innerType):[];class kd extends Ae{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.object)return se(r,{code:Y.invalid_type,expected:ae.object,received:r.parsedType}),be;const n=this.discriminator,o=r.data[n],s=this.optionsMap.get(o);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(se(r,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const o=new Map;for(const s of r){const i=Zn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new kd({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...Ce(n)})}}function Ig(e,t){const r=Mo(e),n=Mo(t);if(e===t)return{valid:!0,data:e};if(r===ae.object&&n===ae.object){const o=Ue.objectKeys(t),s=Ue.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=Ig(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(r===ae.array&&n===ae.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(Cg(s)||Cg(i))return be;const a=Ig(s.value,i.value);return a.valid?((Tg(s)||Tg(i))&&r.dirty(),{status:r.value,value:a.data}):(se(n,{code:Y.invalid_intersection_types}),be)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Zl.create=(e,t,r)=>new Zl({left:e,right:t,typeName:_e.ZodIntersection,...Ce(r)});class Un extends Ae{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.array)return se(n,{code:Y.invalid_type,expected:ae.array,received:n.parsedType}),be;if(n.data.lengththis._def.items.length&&(se(n,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Fn(n,i,n.path,a)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>lr.mergeArray(r,i)):lr.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new Un({...this._def,rest:t})}}Un.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Un({items:e,typeName:_e.ZodTuple,rest:null,...Ce(t)})};class Xl extends Ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.object)return se(n,{code:Y.invalid_type,expected:ae.object,received:n.parsedType}),be;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in n.data)o.push({key:s._parse(new Fn(n,a,n.path,a)),value:i._parse(new Fn(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?lr.mergeObjectAsync(r,o):lr.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Ae?new Xl({keyType:t,valueType:r,typeName:_e.ZodRecord,...Ce(n)}):new Xl({keyType:sn.create(),valueType:t,typeName:_e.ZodRecord,...Ce(r)})}}class wf extends Ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.map)return se(n,{code:Y.invalid_type,expected:ae.map,received:n.parsedType}),be;const o=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([a,l],c)=>({key:o._parse(new Fn(n,a,n.path,[c,"key"])),value:s._parse(new Fn(n,l,n.path,[c,"value"]))}));if(n.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return be;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return be;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}}}}wf.create=(e,t,r)=>new wf({valueType:t,keyType:e,typeName:_e.ZodMap,...Ce(r)});class Bs extends Ae{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.set)return se(n,{code:Y.invalid_type,expected:ae.set,received:n.parsedType}),be;const o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(se(n,{code:Y.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const s=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return be;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...n.data.values()].map((l,c)=>s._parse(new Fn(n,l,n.path,c)));return n.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,r){return new Bs({...this._def,minSize:{value:t,message:pe.toString(r)}})}max(t,r){return new Bs({...this._def,maxSize:{value:t,message:pe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Bs.create=(e,t)=>new Bs({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ce(t)});class Fi extends Ae{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.function)return se(r,{code:Y.invalid_type,expected:ae.function,received:r.parsedType}),be;function n(a,l){return yf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,mf(),Yi].filter(c=>!!c),issueData:{code:Y.invalid_arguments,argumentsError:l}})}function o(a,l){return yf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,mf(),Yi].filter(c=>!!c),issueData:{code:Y.invalid_return_type,returnTypeError:l}})}const s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Xi){const a=this;return br(async function(...l){const c=new Nr([]),u=await a._def.args.parseAsync(l,s).catch(p=>{throw c.addIssue(n(l,p)),c}),f=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(f,s).catch(p=>{throw c.addIssue(o(f,p)),c})})}else{const a=this;return br(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new Nr([n(l,c.error)]);const u=Reflect.apply(i,this,c.data),f=a._def.returns.safeParse(u,s);if(!f.success)throw new Nr([o(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Fi({...this._def,args:Un.create(t).rest(Os.create())})}returns(t){return new Fi({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new Fi({args:t||Un.create([]).rest(Os.create()),returns:r||Os.create(),typeName:_e.ZodFunction,...Ce(n)})}}class Jl extends Ae{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Jl.create=(e,t)=>new Jl({getter:e,typeName:_e.ZodLazy,...Ce(t)});class Ql extends Ae{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return se(r,{received:r.data,code:Y.invalid_literal,expected:this._def.value}),be}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ql.create=(e,t)=>new Ql({value:e,typeName:_e.ZodLiteral,...Ce(t)});function Wk(e,t){return new qo({values:e,typeName:_e.ZodEnum,...Ce(t)})}class qo extends Ae{constructor(){super(...arguments),tl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return se(r,{expected:Ue.joinValues(n),received:r.parsedType,code:Y.invalid_type}),be}if(_f(this,tl)||jk(this,tl,new Set(this._def.values)),!_f(this,tl).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return se(r,{received:r.data,code:Y.invalid_enum_value,options:n}),be}return br(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return qo.create(t,{...this._def,...r})}exclude(t,r=this._def){return qo.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}tl=new WeakMap;qo.create=Wk;class ec extends Ae{constructor(){super(...arguments),rl.set(this,void 0)}_parse(t){const r=Ue.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ae.string&&n.parsedType!==ae.number){const o=Ue.objectValues(r);return se(n,{expected:Ue.joinValues(o),received:n.parsedType,code:Y.invalid_type}),be}if(_f(this,rl)||jk(this,rl,new Set(Ue.getValidEnumValues(this._def.values))),!_f(this,rl).has(t.data)){const o=Ue.objectValues(r);return se(n,{received:n.data,code:Y.invalid_enum_value,options:o}),be}return br(t.data)}get enum(){return this._def.values}}rl=new WeakMap;ec.create=(e,t)=>new ec({values:e,typeName:_e.ZodNativeEnum,...Ce(t)});class Xi extends Ae{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.promise&&r.common.async===!1)return se(r,{code:Y.invalid_type,expected:ae.promise,received:r.parsedType}),be;const n=r.parsedType===ae.promise?r.data:Promise.resolve(r.data);return br(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Xi.create=(e,t)=>new Xi({type:e,typeName:_e.ZodPromise,...Ce(t)});class gn extends Ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{se(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async a=>{if(r.value==="aborted")return be;const l=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return l.status==="aborted"?be:l.status==="dirty"||r.value==="dirty"?Ei(l.value):l});{if(r.value==="aborted")return be;const a=this._def.schema._parseSync({data:i,path:n.path,parent:n});return a.status==="aborted"?be:a.status==="dirty"||r.value==="dirty"?Ei(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?be:(a.status==="dirty"&&r.dirty(),i(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?be:(a.status==="dirty"&&r.dirty(),i(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Wl(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Wl(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:r.value,value:a})):i);Ue.assertNever(o)}}gn.create=(e,t,r)=>new gn({schema:e,typeName:_e.ZodEffects,effect:t,...Ce(r)});gn.createWithPreprocess=(e,t,r)=>new gn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Ce(r)});class Mn extends Ae{_parse(t){return this._getType(t)===ae.undefined?br(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Mn.create=(e,t)=>new Mn({innerType:e,typeName:_e.ZodOptional,...Ce(t)});class Ko extends Ae{_parse(t){return this._getType(t)===ae.null?br(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ko.create=(e,t)=>new Ko({innerType:e,typeName:_e.ZodNullable,...Ce(t)});class tc extends Ae{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===ae.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}tc.create=(e,t)=>new tc({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ce(t)});class rc extends Ae{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return zl(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Nr(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Nr(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}rc.create=(e,t)=>new rc({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ce(t)});class Sf extends Ae{_parse(t){if(this._getType(t)!==ae.nan){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.nan,received:n.parsedType}),be}return{status:"valid",value:t.data}}}Sf.create=e=>new Sf({typeName:_e.ZodNaN,...Ce(e)});const d3=Symbol("zod_brand");class Ym extends Ae{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Sc extends Ae{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?be:s.status==="dirty"?(r.dirty(),Ei(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?be:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new Sc({in:t,out:r,typeName:_e.ZodPipeline})}}class nc extends Ae{_parse(t){const r=this._def.innerType._parse(t),n=o=>(Wl(o)&&(o.value=Object.freeze(o.value)),o);return zl(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}}nc.create=(e,t)=>new nc({innerType:e,typeName:_e.ZodReadonly,...Ce(t)});function zk(e,t={},r){return e?Zi.create().superRefine((n,o)=>{var s,i;if(!e(n)){const a=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):Zi.create()}const p3={object:yt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const h3=(e,t={message:`Input not instance of ${e.name}`})=>zk(r=>r instanceof e,t),Gk=sn.create,qk=zo.create,g3=Sf.create,m3=Go.create,Kk=Gl.create,y3=js.create,_3=vf.create,v3=ql.create,b3=Kl.create,w3=Zi.create,S3=Os.create,E3=po.create,x3=bf.create,k3=un.create,C3=yt.create,T3=yt.strictCreate,I3=Yl.create,A3=kd.create,O3=Zl.create,R3=Un.create,L3=Xl.create,P3=wf.create,N3=Bs.create,M3=Fi.create,D3=Jl.create,$3=Ql.create,F3=qo.create,U3=ec.create,j3=Xi.create,zb=gn.create,B3=Mn.create,H3=Ko.create,V3=gn.createWithPreprocess,W3=Sc.create,z3=()=>Gk().optional(),G3=()=>qk().optional(),q3=()=>Kk().optional(),K3={string:e=>sn.create({...e,coerce:!0}),number:e=>zo.create({...e,coerce:!0}),boolean:e=>Gl.create({...e,coerce:!0}),bigint:e=>Go.create({...e,coerce:!0}),date:e=>js.create({...e,coerce:!0})},Y3=be;var O=Object.freeze({__proto__:null,defaultErrorMap:Yi,setErrorMap:YH,getErrorMap:mf,makeIssue:yf,EMPTY_PATH:ZH,addIssueToContext:se,ParseStatus:lr,INVALID:be,DIRTY:Ei,OK:br,isAborted:Cg,isDirty:Tg,isValid:Wl,isAsync:zl,get util(){return Ue},get objectUtil(){return kg},ZodParsedType:ae,getParsedType:Mo,ZodType:Ae,datetimeRegex:Vk,ZodString:sn,ZodNumber:zo,ZodBigInt:Go,ZodBoolean:Gl,ZodDate:js,ZodSymbol:vf,ZodUndefined:ql,ZodNull:Kl,ZodAny:Zi,ZodUnknown:Os,ZodNever:po,ZodVoid:bf,ZodArray:un,ZodObject:yt,ZodUnion:Yl,ZodDiscriminatedUnion:kd,ZodIntersection:Zl,ZodTuple:Un,ZodRecord:Xl,ZodMap:wf,ZodSet:Bs,ZodFunction:Fi,ZodLazy:Jl,ZodLiteral:Ql,ZodEnum:qo,ZodNativeEnum:ec,ZodPromise:Xi,ZodEffects:gn,ZodTransformer:gn,ZodOptional:Mn,ZodNullable:Ko,ZodDefault:tc,ZodCatch:rc,ZodNaN:Sf,BRAND:d3,ZodBranded:Ym,ZodPipeline:Sc,ZodReadonly:nc,custom:zk,Schema:Ae,ZodSchema:Ae,late:p3,get ZodFirstPartyTypeKind(){return _e},coerce:K3,any:w3,array:k3,bigint:m3,boolean:Kk,date:y3,discriminatedUnion:A3,effect:zb,enum:F3,function:M3,instanceof:h3,intersection:O3,lazy:D3,literal:$3,map:P3,nan:g3,nativeEnum:U3,never:E3,null:b3,nullable:H3,number:qk,object:C3,oboolean:q3,onumber:G3,optional:B3,ostring:z3,pipeline:W3,preprocess:V3,promise:j3,record:L3,set:N3,strictObject:T3,string:Gk,symbol:_3,transformer:zb,tuple:R3,undefined:v3,union:I3,unknown:S3,void:x3,NEVER:Y3,ZodIssueCode:Y,quotelessJson:KH,ZodError:Nr});const Z3=Je.withTag("updateUserEngagementState"),X3=e=>{const t=e.isEngaged?"isEngaged":"notEngaged",r=no.getContext();Z3.info(`User engagement state updated: ${t}`),no.setContext({...r,...e}),window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var n,o;(o=(n=window.assertive)==null?void 0:n.analytics)!=null&&o.custom&&(window.assertive.analytics.custom.userState=t)}),window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push(()=>{window.googletag.setConfig({targeting:{user_engagement:t}})})},Gb=Je.withTag("store:UserEngagementStore"),Ag=O.object({isEngaged:O.boolean(),lastEngagementDate:O.date().nullable()}),Tp="app:userEngagement",ru=Ag.parse({isEngaged:!1,lastEngagementDate:null}),J3=ha(Tp,{state:()=>({...ru}),getters:{isEnabled(){return!!at().public.enableUserTracking},localStorageEngagement(){const e=hf.getItem(Tp);if(!e)return ru;const t=JSON.parse(e),r=Ag.safeParse({...t,lastEngagementDate:new Date(t.lastEngagementDate)});return r.success?r.data:(Gb.error("Invalid user engagement data:",r.error.errors),ru)}},actions:{loadUserEngagement(){if(!this.isEnabled)return;this.setupLocalStorageSync();const e=this.localStorageEngagement;this.$patch({...e}),this.shouldResetEngagement()&&this.resetUserEngagement()},setupLocalStorageSync(){this.isEnabled&&this.$subscribe((e,t)=>{hf.setItem(Tp,JSON.stringify(t)),X3(t)},{flush:"sync"})},setUserEngagement(e,t){if(!this.isEnabled)return;const r={...this.$state,[e]:t,lastEngagementDate:new Date},n=Ag.safeParse(r);if(!n.success){Gb.error("Invalid user engagement entry",n.error.errors);return}this.$patch(n.data)},resetUserEngagement(){this.isEnabled&&this.$patch({...ru})},shouldResetEngagement(){return!this.$state.isEngaged||this.$state.isEngaged&&!this.isEngagementRecent()},isEngagementRecent(){const e=this.$state.lastEngagementDate?new Date(this.$state.lastEngagementDate):null;if(!e)return!1;const t=1e3*60*60*24*7;return new Date().getTime()-e.getTime()<=t},getUserEngagementProperty(e){return this.$state[e]}}});function Ef(e,t){var c,u;const{shift:r,chrome:n,onelaunch:o}=Bn(),s=(c=r==null?void 0:r.analytics)==null?void 0:c.setProfileProperties;if(s)return s({[e]:t});const i=typeof t=="string"?t:JSON.stringify(t),a=o==null?void 0:o.setProfileProperty;if(a){a(e,i);return}const l=(u=n==null?void 0:n.runtime)==null?void 0:u.setProfileProperty;l&&l(e,i)}const Yk=()=>{if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=()=>Math.floor(Math.random()*16).toString(16);return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=e();return(t==="x"?r:parseInt(r,16)&3|8).toString(16)}).toUpperCase()},Q3=()=>`${Date.now()}-${Yk().slice(0,8)}`,Ip=["alfa","bravo","charlie","delta","echo","foxtrot","golf","hotel","india","juliett"],Da=Je.withTag("openfeature"),Ap=new Map;let fi=null;async function eV(){if(fi&&await fi,Ap.has("client")&&Ap.get("client")!==void 0){const v=Ap.get("client");if(v)return{client:v,loaded:Promise.resolve(v)}}const e=1e3*60*60*24*365*10,t=Su(GH,{maxAge:e});t.value=t.value||Yk();const r=Su(Fk,{maxAge:e});if(!r.value||!Ip.includes(r.value)){const v=String(t.value),S=Array.from(v).reduce((E,x)=>E+x.charCodeAt(0),0)%Ip.length;r.value=Ip[S]}const n=Ie().$filters||{userAgent:null,isMobile:null},o=ti().query,s=Su(qH,{maxAge:e}),i=J3();i.loadUserEngagement(),no.setContext({...n,...o,targetingKey:t.value,...s.value?{splittestname:s.value}:{},...i.$state,cohort:r.value}),Da.log({filters:n});const{registerMultipleFeatureFlagProviders:a,registerFeatureFlagProvider:l,teardown:c}=await Zt(async()=>{const{registerMultipleFeatureFlagProviders:v,registerFeatureFlagProvider:S,teardown:E}=await import("./DeuI9Vuf.js").then(x=>x.f);return{registerMultipleFeatureFlagProviders:v,registerFeatureFlagProvider:S,teardown:E}},__vite__mapDeps([60,18,9]),import.meta.url);fi&&await fi;const{configCatSdkKey:u}=at().public,{openfeature:f={multiProvider:!1,localProvider:!1,queryProvider:!1}}=Fr(),{multiProvider:d=!1,localProvider:p=!1,queryProvider:g=!1}=f,h={configCatKey:u??void 0,localProvider:p,queryProvider:g},m=d?a(h):l(h);fi=m;const y=await m;Da.log({client:y,OpenFeature:no,context:no.getContext()});let b=!1;const _=y.getStringValue("splittestname","");if(_&&(s.value=_),no.setContext({...no.getContext(),splittestname:s.value??"",cohort:r.value??""}),typeof window<"u"){b||(window.addEventListener("beforeunload",()=>{Da.log("Teardown OpenFeature client on beforeunload"),c().catch(v=>Da.error("Teardown failed:",v))}),b=!0);try{Ef("ntp_cohort",String(r.value||""))}catch(v){Da.warn("Failed to set NTP cohort property for analytics",v)}}return{client:y,loaded:fi}}const ss=vk(eV);async function tV(e){const{client:t}=await ss(),r=t.getStringValue(e,"control"),n=`/api/v2/configs/${e}`;return[`${n}/${r}.json`,`${n}/control.json`]}const $a=Je.withTag("store:ConfigStore");function Cd(e){const t=r=>{if(!e.transform)return r;try{return e.transform(r)}catch(n){return $a.error(`[${e.configStoreKey}] Failed to apply transform function:`,n),r}};return ha(e.configStoreKey,()=>{const r=new EB(hf,"app:config",6e4),n=ue(e.defaults),o=ue(!1),s=async()=>{const u=[],f=await tV(e.configStoreKey);for(const d of Array.isArray(f)?f:[f])try{const p=await fetch(d);if(!p.ok)throw new Error(`Failed to fetch ${d}: ${p.statusText}`);const g=await p.json();return e.schema(g)}catch(p){u.push(`Failed to fetch ${d}: ${p}`)}throw new Error(`Failed to fetch config: ${u.join(", ")}`)};let i=null;const a=async()=>{var f,d;if(i)return i;o.value=!0;const u=r.load(e.configStoreKey);if(u)try{const p=JSON.parse(u),g=e.schema(p),h=t(g);n.value=h,(f=e.onLoad)==null||f.call(e,h)}catch(p){$a.warn(`[${e.configStoreKey}] Failed to parse or validate stored data:`,p)}else{try{const p=await s(),g=t(p);n.value=g,r.save(e.configStoreKey,JSON.stringify(g)),(d=e.onLoad)==null||d.call(e,g)}catch(p){$a.error(`[${e.configStoreKey}] Failed to fetch or validate config:`,p)}n.value||$a.warn(`[${e.configStoreKey}] No valid data found in local storage or API`)}return o.value=!1,await Promise.resolve(n.value)};return i=a(),{data:n,isLoading:o,load:a,update:u=>{var d;$a.log("updating config store",u);const f={...n.value,...u};n.value=t(f),r.save(e.configStoreKey,JSON.stringify(n.value)),(d=e.onUpdate)==null||d.call(e,n.value)},reset:()=>{var f;const u=structuredClone(e.defaults);n.value=t(u),r.save(e.configStoreKey,JSON.stringify(n.value)),(f=e.onReset)==null||f.call(e),i=null},storage:r,initialized:i}})}const rV=O.object({position:O.union([O.literal("off"),O.literal("footer"),O.literal("navbar")]).default("off").transform(e=>e==="navbar"?"footer":e),defaultSettings:O.object({theme:O.union([O.literal("light"),O.literal("dark"),O.literal("auto")]),articleSummary:O.boolean().default(!0)}),enabledSettings:O.object({articleSummary:O.boolean().default(!1)}).default({articleSummary:!1})}),qb=O.object({userSettings:O.optional(rV),enableLocalNewsSearch:O.boolean().default(!0),sortNewsBy:O.union([O.literal("publishedDate"),O.literal("clusterSize")]).default("publishedDate"),enableArticleReordering:O.boolean().default(!1),derankItemsByStatus:O.union([O.literal("none"),O.literal("viewed"),O.literal("read"),O.literal("both")]).default("viewed"),videoEnabled:O.optional(O.boolean()),gamesEnabled:O.optional(O.boolean())}),Td=Cd({defaults:qb.parse({userSettings:{position:"off",defaultSettings:{theme:"light",articleSummary:!0},enabledSettings:{articleSummary:!1}},enableLocalNewsSearch:!0,sortNewsBy:"clusterSize",enableArticleReordering:!1,derankItemsByStatus:"viewed",videoEnabled:!1,gamesEnabled:!1}),configStoreKey:"siteSettings",schema:e=>qb.parse(e)}),Kb=[];function nV(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(Kb.includes(t.ntp_placement_name))return!1;Kb.push(t.ntp_placement_name)}return!0}function oV(e,t){const r=Td(),{data:n}=ga(r);nV(e,t)&&sV(e,t,n?Me(n):void 0)}async function sV(e,t,r){var f,d;const o={...await WC(r,e),...t||{}};window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:o});const{shift:s,chrome:i,onelaunch:a}=Bn(),l=(f=s==null?void 0:s.analytics)==null?void 0:f.track;if(l)return l(e,o);const c=a==null?void 0:a.sendEvent;if(c){c(e,o);return}const u=(d=i==null?void 0:i.runtime)==null?void 0:d.sendEvent;u&&u(e,o)}function iV(e,t){var l,c;const{shift:r,chrome:n,onelaunch:o}=Bn(),s=(l=r==null?void 0:r.analytics)==null?void 0:l.updateNumericProfileProperties;if(s)return s({[e]:t});const i=o==null?void 0:o.addProfileProperty;if(i){i(e,t.toString());return}const a=(c=n==null?void 0:n.runtime)==null?void 0:c.addProfileProperty;a&&a(e,t.toString())}const Zk={getSearchUrl:AB,getConfig:OB,getHostApis:Bn,openInDefaultBrowser:LB,getHostBrowserAppVersion:yk,setProfileProperty:Ef,isCurrentlyAtHomeTab:gk,getInstallInfo:mk,getSearchEngineConfig:NB,analytics:{incrementProfileProperty:iV,sendMixpanelEvent:oV,setProfileProperty:Ef}},aV="2.209.0",Op={version:aV},lV=300,cV=12,uV=24,Fa=e=>e*lV+(e-1)*cV,Ua={1:Fa(1),2:Fa(2),3:Fa(3),4:Fa(4),5:Fa(5)};function fV(e){const t=e-uV*2;return t>=Ua[5]?5:t>=Ua[4]?4:t>=Ua[3]?3:t>=Ua[2]?2:t>=Ua[1]?1:0}const dV=()=>{const{width:e,height:t}=Nx(),r=`${e.value}x${t.value}`,n=e.value,o=t.value,s=fV(e.value);return{browser_window_size:r,browser_window_width:n,browser_window_height:o,column_count:s}},Zm=O.object({design:O.enum(["google","msn"]).default("google").optional(),pages:O.number().min(2).default(6).optional()}).passthrough(),Xk=O.object({type:O.optional(O.union([O.literal("slider"),O.literal("carousel"),O.literal("title"),O.literal("title-l"),O.literal("video"),O.literal("video-s"),O.literal("video-l"),O.literal("title-msn"),O.literal("article-group"),O.literal("yolo-xxl"),O.literal("yolo-xl"),O.literal("yolo-l"),O.literal("yolo-full")])),y:O.number(),x:O.optional(O.number()),repeat:O.optional(O.boolean()),size:O.optional(O.number()),classes:O.optional(O.string()),props:O.optional(Zm),onlyWhenGridIsGreaterThan:O.optional(O.number())}),Jk=O.object({y:O.number(),x:O.optional(O.number()),classes:O.optional(O.string()),props:O.optional(Zm),onlyWhenGridIsGreaterThan:O.optional(O.number())}),pV=Xk.extend({type:O.literal("slider"),props:O.optional(Zm.extend({autoplayInterval:O.optional(O.number()),ads:O.optional(O.array(Jk.pick({classes:!0,props:!0}).extend({position:O.number()}))),contentType:O.enum(["video","title"]).optional()}))}),Yb=O.union([Xk,pV,Jk]),hV=O.object({name:O.string(),title:O.optional(O.string()),titleIcon:O.optional(O.string()),background:O.optional(O.string()),padded:O.optional(O.literal(!1)),classes:O.optional(O.string()),repeat:O.optional(O.literal(!0)),titles:O.optional(O.array(Yb)),ads:O.optional(O.array(Yb))}),gV=O.object({name:O.string(),section:O.array(hV)}),mV=Cd({configStoreKey:"layoutSkeleton",defaults:void 0,schema:e=>gV.parse(e)}),yV=Je.withTag("visibleContent"),Hs=new Map;let Qk=0;function B9(e,t){if(!e)return-1;const r=Hs.get(e);if(r)return t&&(r.metadata=t),r.sortOrder;const n=Qk++;return Hs.set(e,{id:e,sortOrder:n,isVisible:!1,metadata:t}),n}function H9(e,t){const r=Hs.get(e);r&&(r.isVisible=t)}function V9(e){Hs.delete(e)}function _V(e=!0){const t=Array.from(Hs.values()).filter(n=>!e||n.isVisible).sort((n,o)=>n.sortOrder-o.sortOrder),r=t.slice(0,100);return t.length>100&&yV.warn(`Content exceeds 100 items (${t.length}), capping to 100`),r.map(({id:n,sortOrder:o,metadata:s})=>({id:n,sortOrder:o,headline:s==null?void 0:s.headline,publisher:s==null?void 0:s.publisher,url:s==null?void 0:s.url,summary_url:s==null?void 0:s.summary_url,category:s==null?void 0:s.category,type:s==null?void 0:s.type,story_age:s!=null&&s.publishedDate?vV(s.publishedDate):void 0}))}function vV(e){const t=new Date(e),n=new Date().getTime()-t.getTime();return Math.floor(n/(1e3*60*60))}function bV(e,t){return!t||t<=0?e.map(r=>({...r,position_row:0,position_col:0})):e.map(r=>({...r,position_row:Math.floor(r.sortOrder/t),position_col:r.sortOrder%t}))}function W9(){return Hs.size>0}function wV(){Hs.clear(),Qk=0}const SV=ha("newsToggle",{state:()=>({newsToggle:!0}),actions:{updateNewsToggle(){this.newsToggle=!this.newsToggle}}}),eC=()=>ri("color-mode").value;var Lt;(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"})(Lt||(Lt={}));function EV(e){return e.nodeType===e.ELEMENT_NODE}function ml(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function yl(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function xV(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 kV(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function xf(e){try{const t=e.rules||e.cssRules;return t?xV(Array.from(t,tC).join("")):null}catch{return null}}function tC(e){let t;if(TV(e))try{t=xf(e.styleSheet)||kV(e)}catch{}else if(IV(e)&&e.selectorText.includes(":"))return CV(e.cssText);return t||e.cssText}function CV(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function TV(e){return"styleSheet"in e}function IV(e){return"selectorText"in e}class rC{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return 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 r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const o=this.nodeMetaMap.get(n);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function AV(){return new rC}function Xm({element:e,maskInputOptions:t,tagName:r,type:n,value:o,maskInputFn:s}){let i=o||"";const a=n&&Vs(n);return(t[r.toLowerCase()]||a&&t[a])&&(s?i=s(i,e):i="*".repeat(i.length)),i}function Vs(e){return e.toLowerCase()}const Zb="__rrweb_original__";function OV(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let n=0;nl!==0))return!1}return!0}function Jm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Vs(t):null}function nC(e,t){var r;let n;try{n=new URL(e,t??window.location.href)}catch{return null}const o=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(o);return(r=s==null?void 0:s[1])!==null&&r!==void 0?r:null}let RV=1;const LV=new RegExp("[^a-z0-9-_:]"),oc=-2;function oC(){return RV++}function PV(e){if(e instanceof HTMLFormElement)return"form";const t=Vs(e.tagName);return LV.test(t)?"div":t}function NV(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let di,Xb;const MV=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,DV=/^(?:[a-z+]+:)?\/\//i,$V=/^www\..*/i,FV=/^(data:)([^,]*),(.*)/i;function kf(e,t){return(e||"").replace(MV,(r,n,o,s,i,a)=>{const l=o||i||a,c=n||s||"";if(!l)return r;if(DV.test(l)||$V.test(l))return`url(${c}${l}${c})`;if(FV.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${NV(t)+l}${c})`;const u=t.split("/"),f=l.split("/");u.pop();for(const d of f)d!=="."&&(d===".."?u.pop():u.push(d));return`url(${c}${u.join("/")}${c})`})}const UV=/^[^ \t\n\r\u000c]+/,jV=/^[, \t\n\r\u000c]+/;function BV(e,t){if(t.trim()==="")return t;let r=0;function n(s){let i;const a=s.exec(t.substring(r));return a?(i=a[0],r+=i.length,i):""}const o=[];for(;n(jV),!(r>=t.length);){let s=n(UV);if(s.slice(-1)===",")s=xi(e,s.substring(0,s.length-1)),o.push(s);else{let i="";s=xi(e,s);let a=!1;for(;;){const l=t.charAt(r);if(l===""){o.push((s+i).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){r+=1,o.push((s+i).trim());break}else l==="("&&(a=!0);i+=l,r+=1}}}return o.join(", ")}function xi(e,t){if(!t||t.trim()==="")return t;const r=e.createElement("a");return r.href=t,r.href}function HV(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Qm(){const e=document.createElement("a");return e.href="",e.href}function sC(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?xi(e,n):r==="srcset"?BV(e,n):r==="style"?kf(n,Qm()):t==="object"&&r==="data"?xi(e,n):n)}function iC(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function VV(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const o=e.classList[n];if(t.test(o))return!0}if(r)return e.matches(r)}catch{}return!1}function Cf(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Cf(e.parentNode,t,r):!1;for(let n=e.classList.length;n--;){const o=e.classList[n];if(t.test(o))return!0}return r?Cf(e.parentNode,t,r):!1}function aC(e,t,r,n){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(typeof t=="string"){if(n){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(Cf(o,t,n))return!0;if(r){if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}}catch{}return!1}function WV(e,t,r){const n=e.contentWindow;if(!n)return;let o=!1,s;try{s=n.document.readyState}catch{return}if(s!=="complete"){const a=setTimeout(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()});return}const i="about:blank";if(n.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function zV(e,t,r){let n=!1,o;try{o=e.sheet}catch{return}if(o)return;const s=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),n=!0,t()})}function GV(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:i,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:u,dataURLOptions:f={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:h=!1}=t,m=qV(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Lt.Document,childNodes:[],compatMode:e.compatMode}:{type:Lt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Lt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return YV(e,{doc:r,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:f,inlineImages:d,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:h,rootId:m});case e.TEXT_NODE:return KV(e,{needsMask:i,maskTextFn:c,rootId:m});case e.CDATA_SECTION_NODE:return{type:Lt.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:Lt.Comment,textContent:e.textContent||"",rootId:m};default:return!1}}function qV(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function KV(e,t){var r;const{needsMask:n,maskTextFn:o,rootId:s}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const l=i==="STYLE"?!0:void 0,c=i==="SCRIPT"?!0:void 0;if(l&&a){try{e.nextSibling||e.previousSibling||!((r=e.parentNode.sheet)===null||r===void 0)&&r.cssRules&&(a=xf(e.parentNode.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}a=kf(a,Qm())}return c&&(a="SCRIPT_PLACEHOLDER"),!l&&!c&&a&&n&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:Lt.Text,textContent:a||"",isStyle:l,rootId:s}}function YV(e,t){const{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:p}=t,g=VV(e,n,o),h=PV(e);let m={};const y=e.attributes.length;for(let _=0;_S.href===e.href);let v=null;_&&(v=xf(_)),v&&(delete m.rel,delete m.href,m._cssText=kf(v,_.href))}if(h==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const _=xf(e.sheet);_&&(m._cssText=kf(_,Qm()))}if(h==="input"||h==="textarea"||h==="select"){const _=e.value,v=e.checked;m.type!=="radio"&&m.type!=="checkbox"&&m.type!=="submit"&&m.type!=="button"&&_?m.value=Xm({element:e,type:Jm(e),tagName:h,value:_,maskInputOptions:i,maskInputFn:a}):v&&(m.checked=v)}if(h==="option"&&(e.selected&&!i.select?m.selected=!0:delete m.selected),h==="canvas"&&u){if(e.__context==="2d")OV(e)||(m.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const _=e.toDataURL(l.type,l.quality),v=document.createElement("canvas");v.width=e.width,v.height=e.height;const S=v.toDataURL(l.type,l.quality);_!==S&&(m.rr_dataURL=_)}}if(h==="img"&&c){di||(di=r.createElement("canvas"),Xb=di.getContext("2d"));const _=e,v=_.crossOrigin;_.crossOrigin="anonymous";const S=()=>{_.removeEventListener("load",S);try{di.width=_.naturalWidth,di.height=_.naturalHeight,Xb.drawImage(_,0,0),m.rr_dataURL=di.toDataURL(l.type,l.quality)}catch(E){console.warn(`Cannot inline img src=${_.currentSrc}! Error: ${E}`)}v?m.crossOrigin=v:_.removeAttribute("crossorigin")};_.complete&&_.naturalWidth!==0?S():_.addEventListener("load",S)}if(h==="audio"||h==="video"){const _=m;_.rr_mediaState=e.paused?"paused":"played",_.rr_mediaCurrentTime=e.currentTime,_.rr_mediaPlaybackRate=e.playbackRate,_.rr_mediaMuted=e.muted,_.rr_mediaLoop=e.loop,_.rr_mediaVolume=e.volume}if(d||(e.scrollLeft&&(m.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(m.rr_scrollTop=e.scrollTop)),g){const{width:_,height:v}=e.getBoundingClientRect();m={class:m.class,rr_width:`${_}px`,rr_height:`${v}px`}}h==="iframe"&&!f(m.src)&&(e.contentDocument||(m.rr_src=m.src),delete m.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:Lt.Element,tagName:h,attributes:m,childNodes:[],isSVG:HV(e)||void 0,needBlock:g,rootId:p,isCustom:b}}function ot(e){return e==null?"":e.toLowerCase()}function ZV(e,t){if(t.comment&&e.type===Lt.Comment)return!0;if(e.type===Lt.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"&&nC(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ot(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ot(e.attributes.name)==="application-name"||ot(e.attributes.rel)==="icon"||ot(e.attributes.rel)==="apple-touch-icon"||ot(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ot(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ot(e.attributes.property).match(/^(og|twitter|fb):/)||ot(e.attributes.name).match(/^(og|twitter):/)||ot(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ot(e.attributes.name)==="robots"||ot(e.attributes.name)==="googlebot"||ot(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ot(e.attributes.name)==="author"||ot(e.attributes.name)==="generator"||ot(e.attributes.name)==="framework"||ot(e.attributes.name)==="publisher"||ot(e.attributes.name)==="progid"||ot(e.attributes.property).match(/^article:/)||ot(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ot(e.attributes.name)==="google-site-verification"||ot(e.attributes.name)==="yandex-verification"||ot(e.attributes.name)==="csrf-token"||ot(e.attributes.name)==="p:domain_verify"||ot(e.attributes.name)==="verify-v1"||ot(e.attributes.name)==="verification"||ot(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ki(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g={},inlineImages:h=!1,recordCanvas:m=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:_=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:E=()=>!1,newlyAddedElement:x=!1}=t;let{needsMask:R}=t,{preserveWhiteSpace:A=!0}=t;!R&&e.childNodes&&(R=aC(e,i,a,R===void 0));const N=GV(e,{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:R,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,dataURLOptions:g,inlineImages:h,recordCanvas:m,keepIframeSrcFn:E,newlyAddedElement:x});if(!N)return console.warn(e,"not serialized"),null;let U;n.hasNode(e)?U=n.getId(e):ZV(N,p)||!A&&N.type===Lt.Text&&!N.isStyle&&!N.textContent.replace(/^\s+|\s+$/gm,"").length?U=oc:U=oC();const L=Object.assign(N,{id:U});if(n.add(e,L),U===oc)return null;y&&y(e);let G=!l;if(L.type===Lt.Element){G=G&&!L.needBlock,delete L.needBlock;const re=e.shadowRoot;re&&yl(re)&&(L.isShadowHost=!0)}if((L.type===Lt.Document||L.type===Lt.Element)&&G){p.headWhitespace&&L.type===Lt.Element&&L.tagName==="head"&&(A=!1);const re={doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:R,maskTextClass:i,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:m,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E};if(!(L.type===Lt.Element&&L.tagName==="textarea"&&L.attributes.value!==void 0))for(const le of Array.from(e.childNodes)){const q=ki(le,re);q&&L.childNodes.push(q)}if(EV(e)&&e.shadowRoot)for(const le of Array.from(e.shadowRoot.childNodes)){const q=ki(le,re);q&&(yl(e.shadowRoot)&&(q.isShadow=!0),L.childNodes.push(q))}}return e.parentNode&&ml(e.parentNode)&&yl(e.parentNode)&&(L.isShadow=!0),L.type===Lt.Element&&L.tagName==="iframe"&&WV(e,()=>{const re=e.contentDocument;if(re&&b){const le=ki(re,{doc:re,mirror:n,blockClass:o,blockSelector:s,needsMask:R,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:m,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E});le&&b(e,le)}},_),L.type===Lt.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&nC(L.attributes.href)==="css")&&zV(e,()=>{if(v){const re=ki(e,{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:R,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:m,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E});re&&v(e,re)}},S),L}function XV(e,t){const{mirror:r=new rC,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:f,maskInputFn:d,slimDOM:p=!1,dataURLOptions:g,preserveWhiteSpace:h,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:S=()=>!1}=t||{};return ki(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:u===!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,password:!0}:u===!1?{password:!0}:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:g,inlineImages:l,recordCanvas:c,preserveWhiteSpace:h,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:S,newlyAddedElement:!1})}function _r(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const wi=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r or you can use record.mirror to access the mirror instance during recording.`;let Jb={map:{},getId(){return console.error(wi),-1},getNode(){return console.error(wi),null},removeNodeFromMap(){console.error(wi)},has(){return console.error(wi),!1},reset(){console.error(wi)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Jb=new Proxy(Jb,{get(e,t,r){return t==="map"&&console.error(wi),Reflect.get(e,t,r)}}));function sc(e,t,r={}){let n=null,o=0;return function(...s){const i=Date.now();!o&&r.leading===!1&&(o=i);const a=t-(i-o),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),o=i,e.apply(l,s)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{o=r.leading===!1?0:Date.now(),n=null,e.apply(l,s)},a))}}function Id(e,t,r,n,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(i){setTimeout(()=>{r.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>Id(e,t,s||{},!0)}function ya(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}let Tf=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Tf=()=>new Date().getTime());function lC(e){var t,r,n,o,s,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(a==null?void 0:a.documentElement.scrollLeft)||((r=(t=a==null?void 0:a.body)===null||t===void 0?void 0:t.parentElement)===null||r===void 0?void 0:r.scrollLeft)||((n=a==null?void 0:a.body)===null||n===void 0?void 0:n.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||((s=(o=a==null?void 0:a.body)===null||o===void 0?void 0:o.parentElement)===null||s===void 0?void 0:s.scrollTop)||((i=a==null?void 0:a.body)===null||i===void 0?void 0:i.scrollTop)||0}}function cC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function uC(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function fC(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function vr(e,t,r,n){if(!e)return!1;const o=fC(e);if(!o)return!1;try{if(typeof t=="string"){if(o.classList.contains(t)||n&&o.closest("."+t)!==null)return!0}else if(Cf(o,t,n))return!0}catch{}return!!(r&&(o.matches(r)||n&&o.closest(r)!==null))}function JV(e,t){return t.getId(e)!==-1}function Rp(e,t){return t.getId(e)===oc}function dC(e,t){if(ml(e))return!1;const r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?dC(e.parentNode,t):!0:!0}function Og(e){return!!e.changedTouches}function QV(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 r=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function pC(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function hC(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Rg(e){return!!(e!=null&&e.shadowRoot)}class e4{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var r;return(r=this.styleIDMap.get(t))!==null&&r!==void 0?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}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 gC(e){var t,r;let n=null;return((r=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||r===void 0?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function t4(e){let t=e,r;for(;r=gC(t);)t=r;return t}function r4(e){const t=e.ownerDocument;if(!t)return!1;const r=t4(e);return t.contains(r)}function mC(e){const t=e.ownerDocument;return t?t.contains(e)||r4(e):!1}var Be=(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))(Be||{}),De=(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))(De||{}),kr=(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))(kr||{}),Xn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Xn||{}),Ji=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ji||{});function Qb(e){return"__ln"in e}class n4{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 r=this.head;for(let n=0;n`${e}@${t}`;class o4{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=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,n=new n4,o=l=>{let c=l,u=oc;for(;u===oc;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=l=>{if(!l.parentNode||!mC(l)||l.parentNode.tagName==="TEXTAREA")return;const c=ml(l.parentNode)?this.mirror.getId(gC(l)):this.mirror.getId(l.parentNode),u=o(l);if(c===-1||u===-1)return n.addNode(l);const f=ki(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{pC(d,this.mirror)&&this.iframeManager.addIframe(d),hC(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Rg(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(d,p)=>{this.iframeManager.attachIframe(d,p),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,p)=>{this.stylesheetManager.attachLinkElement(d,p)}});f&&(t.push({parentId:c,nextId:u,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)t0(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||s(l);for(const l of this.addedSet)!r0(this.droppedSet,l)&&!t0(this.removes,l,this.mirror)||r0(this.movedSet,l)?s(l):this.droppedSet.add(l);let i=null;for(;n.length;){let l=null;if(i){const c=this.mirror.getId(i.value.parentNode),u=o(i.value);c!==-1&&u!==-1&&(l=i)}if(!l){let c=n.tail;for(;c;){const u=c;if(c=c.previous,u){const f=this.mirror.getId(u.value.parentNode);if(o(u.value)===-1)continue;if(f!==-1){l=u;break}else{const p=u.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=p.parentNode.host;if(this.mirror.getId(g)!==-1){l=u;break}}}}}}if(!l){for(;n.head;)n.removeNode(n.head.value);break}i=l.previous,n.removeNode(l.value),s(l.value)}const a={texts:this.texts.map(l=>{const c=l.node;return c.parentNode&&c.parentNode.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(c.parentNode),{id:this.mirror.getId(c),value:l.value}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:c}=l;if(typeof c.style=="string"){const u=JSON.stringify(l.styleDiff),f=JSON.stringify(l._unchangedStyles);u.length!r.has(l.id)).filter(l=>this.mirror.has(l.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.genTextAreaValueMutation=t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r)),r.attributes.value=Array.from(t.childNodes,n=>n.textContent||"").join("")},this.processMutation=t=>{if(!Rp(t.target,this.mirror))switch(t.type){case"characterData":{const r=t.target.textContent;!vr(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:aC(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,fC(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let n=t.attributeName,o=t.target.getAttribute(n);if(n==="value"){const i=Jm(r);o=Xm({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:i,value:o,maskInputFn:this.maskInputFn})}if(vr(t.target,this.blockClass,this.blockSelector,!1)||o===t.oldValue)return;let s=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(o))if(!r.contentDocument)n="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!iC(r.tagName,n)&&(s.attributes[n]=sC(this.doc,Vs(r.tagName),Vs(n),o),n==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(r.style)){const l=r.style.getPropertyValue(a),c=r.style.getPropertyPriority(a);l!==i.style.getPropertyValue(a)||c!==i.style.getPropertyPriority(a)?c===""?s.styleDiff[a]=l:s.styleDiff[a]=[l,c]:s._unchangedStyles[a]=[l,c]}for(const a of Array.from(i.style))r.style.getPropertyValue(a)===""&&(s.styleDiff[a]=!1)}break}case"childList":{if(vr(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const n=this.mirror.getId(r),o=ml(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);vr(t.target,this.blockClass,this.blockSelector,!1)||Rp(r,this.mirror)||!JV(r,this.mirror)||(this.addedSet.has(r)?(Lg(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||dC(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[e0(n,o)]?Lg(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:ml(t.target)&&yl(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Rp(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[e0(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);vr(t,this.blockClass,this.blockSelector,!1)||(t.childNodes.forEach(n=>this.genAdds(n)),Rg(t)&&t.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}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 Lg(e,t){e.delete(t),t.childNodes.forEach(r=>Lg(e,r))}function t0(e,t,r){return e.length===0?!1:yC(e,t,r)}function yC(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return e.some(s=>s.id===o)?!0:yC(e,n,r)}function r0(e,t){return e.size===0?!1:_C(e,t)}function _C(e,t){const{parentNode:r}=t;return r?e.has(r)?!0:_C(e,r):!1}let _l;function s4(e){_l=e}function i4(){_l=void 0}const $e=e=>_l?(...r)=>{try{return e(...r)}catch(n){if(_l&&_l(n)===!0)return;throw n}}:e,Es=[];function Ec(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 vC(e,t){var r,n;const o=new o4;Es.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=(n=(r=window==null?void 0:window.Zone)===null||r===void 0?void 0:r.__symbol__)===null||n===void 0?void 0:n.call(r,"MutationObserver");i&&window[i]&&(s=window[i]);const a=new s($e(o.processMutations.bind(o)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function a4({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const l=sc($e(f=>{const d=Date.now()-a;e(i.map(p=>(p.timeOffset-=d,p)),f),i=[],a=null}),s),c=$e(sc($e(f=>{const d=Ec(f),{clientX:p,clientY:g}=Og(f)?f.changedTouches[0]:f;a||(a=Tf()),i.push({x:p,y:g,id:n.getId(d),timeOffset:Tf()-a}),l(typeof DragEvent<"u"&&f instanceof DragEvent?De.Drag:f instanceof MouseEvent?De.MouseMove:De.TouchMove)}),o,{trailing:!1})),u=[_r("mousemove",c,r),_r("touchmove",c,r),_r("drag",c,r)];return $e(()=>{u.forEach(f=>f())})}function l4({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,a=[];let l=null;const c=u=>f=>{const d=Ec(f);if(vr(d,n,o,!0))return;let p=null,g=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Xn.Mouse;break;case"touch":p=Xn.Touch;break;case"pen":p=Xn.Pen;break}p===Xn.Touch?kr[u]===kr.MouseDown?g="TouchStart":kr[u]===kr.MouseUp&&(g="TouchEnd"):Xn.Pen}else Og(f)&&(p=Xn.Touch);p!==null?(l=p,(g.startsWith("Touch")&&p===Xn.Touch||g.startsWith("Mouse")&&p===Xn.Mouse)&&(p=null)):kr[u]===kr.Click&&(p=l,l=null);const h=Og(f)?f.changedTouches[0]:f;if(!h)return;const m=r.getId(d),{clientX:y,clientY:b}=h;$e(e)(Object.assign({type:kr[g],id:m,x:y,y:b},p!==null&&{pointerType:p}))};return Object.keys(kr).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&i[u]!==!1).forEach(u=>{let f=Vs(u);const d=c(u);if(window.PointerEvent)switch(kr[u]){case kr.MouseDown:case kr.MouseUp:f=f.replace("mouse","pointer");break;case kr.TouchStart:case kr.TouchEnd:return}a.push(_r(f,d,t))}),$e(()=>{a.forEach(u=>u())})}function bC({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:s}){const i=$e(sc($e(a=>{const l=Ec(a);if(!l||vr(l,n,o,!0))return;const c=r.getId(l);if(l===t&&t.defaultView){const u=lC(t.defaultView);e({id:c,x:u.left,y:u.top})}else e({id:c,x:l.scrollLeft,y:l.scrollTop})}),s.scroll||100));return _r("scroll",i,t)}function c4({viewportResizeCb:e},{win:t}){let r=-1,n=-1;const o=$e(sc($e(()=>{const s=cC(),i=uC();(r!==s||n!==i)&&(e({width:Number(i),height:Number(s)}),r=s,n=i)}),200));return _r("resize",o,t)}const u4=["INPUT","TEXTAREA","SELECT"],n0=new WeakMap;function f4({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function f(b){let _=Ec(b);const v=b.isTrusted,S=_&&_.tagName;if(_&&S==="OPTION"&&(_=_.parentElement),!_||!S||u4.indexOf(S)<0||vr(_,n,o,!0)||_.classList.contains(s)||i&&_.matches(i))return;let E=_.value,x=!1;const R=Jm(_)||"";R==="radio"||R==="checkbox"?x=_.checked:(a[S.toLowerCase()]||a[R])&&(E=Xm({element:_,maskInputOptions:a,tagName:S,type:R,value:E,maskInputFn:l})),d(_,u?{text:E,isChecked:x,userTriggered:v}:{text:E,isChecked:x});const A=_.name;R==="radio"&&A&&x&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach(N=>{if(N!==_){const U=N.value;d(N,u?{text:U,isChecked:!x,userTriggered:!1}:{text:U,isChecked:!x})}})}function d(b,_){const v=n0.get(b);if(!v||v.text!==_.text||v.isChecked!==_.isChecked){n0.set(b,_);const S=r.getId(b);$e(e)(Object.assign(Object.assign({},_),{id:S}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>_r(b,$e(f),t)),h=t.defaultView;if(!h)return()=>{g.forEach(b=>b())};const m=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),y=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&g.push(...y.map(b=>Id(b[0],b[1],{set(){$e(f)({target:this,isTrusted:!1})}},!1,h))),$e(()=>{g.forEach(b=>b())})}function If(e){const t=[];function r(n,o){if(nu("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||nu("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||nu("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||nu("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const i=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(i)}else if(n.parentStyleSheet){const i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(i)}return o}return r(e,t)}function No(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function d4({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:$e((u,f,d)=>{const[p,g]=d,{id:h,styleId:m}=No(f,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,adds:[{rule:p,index:g}]}),u.apply(f,d)})});const s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,removes:[{index:p}]}),u.apply(f,d)})});let i;n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replace:p}),u.apply(f,d)})}));let a;n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replaceSync:p}),u.apply(f,d)})}));const l={};ou("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(ou("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),ou("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),ou("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach(([u,f])=>{c[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(c[u].insertRule,{apply:$e((d,p,g)=>{const[h,m]=g,{id:y,styleId:b}=No(p.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,adds:[{rule:h,index:[...If(p),m||0]}]}),d.apply(p,g)})}),f.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:$e((d,p,g)=>{const[h]=g,{id:m,styleId:y}=No(p.parentStyleSheet,t,r.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,removes:[{index:[...If(p),h]}]}),d.apply(p,g)})})}),$e(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,i&&(n.CSSStyleSheet.prototype.replace=i),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([u,f])=>{f.prototype.insertRule=c[u].insertRule,f.prototype.deleteRule=c[u].deleteRule})})}function wC({mirror:e,stylesheetManager:t},r){var n,o,s;let i=null;r.nodeName==="#document"?i=e.getId(r):i=e.getId(r.host);const a=r.nodeName==="#document"?(n=r.defaultView)===null||n===void 0?void 0:n.Document:(s=(o=r.ownerDocument)===null||o===void 0?void 0:o.defaultView)===null||s===void 0?void 0:s.ShadowRoot,l=a!=null&&a.prototype?Object.getOwnPropertyDescriptor(a==null?void 0:a.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!a||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var c;return(c=l.get)===null||c===void 0?void 0:c.call(this)},set(c){var u;const f=(u=l.set)===null||u===void 0?void 0:u.call(this,c);if(i!==null&&i!==-1)try{t.adoptStyleSheets(c,i)}catch{}return f}}),$e(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function p4({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:$e((a,l,c)=>{var u;const[f,d,p]=c;if(r.has(f))return s.apply(l,[f,d,p]);const{id:g,styleId:h}=No((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,set:{property:f,value:d,priority:p},index:If(l.parentRule)}),a.apply(l,c)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:$e((a,l,c)=>{var u;const[f]=c;if(r.has(f))return i.apply(l,[f]);const{id:d,styleId:p}=No((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,n.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:f},index:If(l.parentRule)}),a.apply(l,c)})}),$e(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}function h4({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:o,doc:s}){const i=$e(l=>sc($e(c=>{const u=Ec(c);if(!u||vr(u,t,r,!0))return;const{currentTime:f,volume:d,muted:p,playbackRate:g,loop:h}=u;e({type:l,id:n.getId(u),currentTime:f,volume:d,muted:p,playbackRate:g,loop:h})}),o.media||500)),a=[_r("play",i(0),s),_r("pause",i(1),s),_r("seeked",i(2),s),_r("volumechange",i(3),s),_r("ratechange",i(4),s)];return $e(()=>{a.forEach(l=>l())})}function g4({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,s=r.FontFace;r.FontFace=function(l,c,u){const f=new s(l,c,u);return o.set(f,{family:l,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),f};const i=ya(t.fonts,"add",function(a){return function(l){return setTimeout($e(()=>{const c=o.get(l);c&&(e(c),o.delete(l))}),0),a.apply(this,[l])}});return n.push(()=>{r.FontFace=s}),n.push(i),$e(()=>{n.forEach(a=>a())})}function m4(e){const{doc:t,mirror:r,blockClass:n,blockSelector:o,selectionCb:s}=e;let i=!0;const a=$e(()=>{const l=t.getSelection();if(!l||i&&(l!=null&&l.isCollapsed))return;i=l.isCollapsed||!1;const c=[],u=l.rangeCount||0;for(let f=0;f{}:ya(r.customElements,"define",function(o){return function(s,i,a){try{t({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return o.apply(this,[s,i,a])}})}function _4(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:s,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:f,fontCb:d,selectionCb:p,customElementCb:g}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),n(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),o(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),s(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),i(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),a(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),l(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),c(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),u(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),f(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),d(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),p(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),g(...h)}}function v4(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};_4(e,t);let n;e.recordDOM&&(n=vC(e,e.doc));const o=a4(e),s=l4(e),i=bC(e),a=c4(e,{win:r}),l=f4(e),c=h4(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=d4(e,{win:r}),f=wC(e,e.doc),d=p4(e,{win:r}),e.collectFonts&&(p=g4(e)));const g=m4(e),h=y4(e),m=[];for(const y of e.plugins)m.push(y.observer(y.callback,r,y.options));return $e(()=>{Es.forEach(y=>y.reset()),n==null||n.disconnect(),o(),s(),i(),a(),l(),c(),u(),f(),d(),p(),g(),h(),m.forEach(y=>y())})}function nu(e){return typeof window[e]<"u"}function ou(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class o0{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,r,n,o){const s=n||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let a=s.get(r);return a||(a=this.generateIdFn(),s.set(r,a),i.set(a,r)),a}getIds(t,r){const n=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return r.map(s=>this.getId(t,s,n,o))}getRemoteId(t,r,n){const o=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const s=o.get(r);return s||-1}getRemoteIds(t,r){const n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getRemoteId(t,o,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class b4{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new o0(oC),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new o0(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,r){var n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(n=this.loadListener)===null||n===void 0||n.call(this,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 r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const s=this.transformCrossOriginEvent(o,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case Be.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const o=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(r.data.node,o),{timestamp:r.timestamp,type:Be.IncrementalSnapshot,data:{source:De.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Be.Meta:case Be.Load:case Be.DomContentLoaded:return!1;case Be.Plugin:return r;case Be.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case Be.IncrementalSnapshot:switch(r.data.source){case De.Mutation:return r.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(o.node,s)}),r.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),r.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),r.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),r;case De.Drag:case De.TouchMove:case De.MouseMove:return r.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),r;case De.ViewportResize:return!1;case De.MediaInteraction:case De.MouseInteraction:case De.Scroll:case De.CanvasMutation:case De.Input:return this.replaceIds(r.data,t,["id"]),r;case De.StyleSheetRule:case De.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case De.Font:return r;case De.Selection:return r.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),r;case De.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)===null||n===void 0||n.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),r}}return!1}replace(t,r,n,o){for(const s of o)!Array.isArray(r[s])&&typeof r[s]!="number"||(Array.isArray(r[s])?r[s]=t.getIds(n,r[s]):r[s]=t.getId(n,r[s]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==Lt.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}}class w4{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,r){if(!yl(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const n=vC(Object.assign(Object.assign({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(bC(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(wC({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const n=this;this.restoreHandlers.push(ya(t.prototype,"attachShadow",function(o){return function(s){const i=o.call(this,s);return this.shadowRoot&&mC(this)&&n.addShadowRoot(this.shadowRoot,r),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function S4(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o"u"?[]:new Uint8Array(256);for(var su=0;su>2],o+=Ci[(t[r]&3)<<4|t[r+1]>>4],o+=Ci[(t[r+1]&15)<<2|t[r+2]>>6],o+=Ci[t[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const s0=new Map;function C4(e,t){let r=s0.get(e);return r||(r=new Map,s0.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const SC=(e,t,r)=>{if(!e||!(xC(e,t)||typeof e=="object"))return;const n=e.constructor.name,o=C4(r,n);let s=o.indexOf(e);return s===-1&&(s=o.length,o.push(e)),s};function Tu(e,t,r){if(e instanceof Array)return e.map(n=>Tu(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const n=e.constructor.name,o=k4(e);return{rr_type:n,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Tu(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:o}=e;return{rr_type:n,src:o}}else if(e instanceof HTMLCanvasElement){const n="HTMLImageElement",o=e.toDataURL();return{rr_type:n,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Tu(e.data,t,r),e.width,e.height]};if(xC(e,t)||typeof e=="object"){const n=e.constructor.name,o=SC(e,t,r);return{rr_type:n,index:o}}}}return e}const EC=(e,t,r)=>e.map(n=>Tu(n,t,r)),xC=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function T4(e,t,r,n){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;const a=ya(t.CanvasRenderingContext2D.prototype,i,function(l){return function(...c){return vr(this.canvas,r,n,!0)||setTimeout(()=>{const u=EC(c,t,this);e(this.canvas,{type:Ji["2D"],property:i,args:u})},0),l.apply(this,c)}});o.push(a)}catch{const l=Id(t.CanvasRenderingContext2D.prototype,i,{set(c){e(this.canvas,{type:Ji["2D"],property:i,args:[c],setter:!0})}});o.push(l)}return()=>{o.forEach(i=>i())}}function I4(e){return e==="experimental-webgl"?"webgl":e}function i0(e,t,r,n){const o=[];try{const s=ya(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(a,...l){if(!vr(this,t,r,!0)){const c=I4(a);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(l[0]&&typeof l[0]=="object"){const u=l[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[a,...l])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function a0(e,t,r,n,o,s,i){const a=[],l=Object.getOwnPropertyNames(e);for(const c of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof e[c]!="function")continue;const u=ya(e,c,function(f){return function(...d){const p=f.apply(this,d);if(SC(p,i,this),"tagName"in this.canvas&&!vr(this.canvas,n,o,!0)){const g=EC(d,i,this),h={type:t,property:c,args:g};r(this.canvas,h)}return p}});a.push(u)}catch{const f=Id(e,c,{set(d){r(this.canvas,{type:t,property:c,args:[d],setter:!0})}});a.push(f)}return a}function A4(e,t,r,n,o){const s=[];return s.push(...a0(t.WebGLRenderingContext.prototype,Ji.WebGL,e,r,n,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...a0(t.WebGL2RenderingContext.prototype,Ji.WebGL2,e,r,n,o,t)),()=>{s.forEach(i=>i())}}function O4(e,t){var r=e.toString(),n=r.split(` `);n.pop(),n.shift();for(var o=n[0].search(/\S/),s=/(['"])__worker_loader_strict__(['"])/g,i=0,a=n.length;i"u"?[]:new Uint8Array(256),n=0;n>2],p+=t[(u[f]&3)<<4|u[f+1]>>4],p+=t[(u[f+1]&15)<<2|u[f+2]>>6],p+=t[u[f+2]&63];return d%3===2?p=p.substring(0,p.length-1)+"=":d%3===1&&(p=p.substring(0,p.length-2)+"=="),p};const s=new Map,i=new Map;function a(c,u,f){return e(this,void 0,void 0,function*(){const d=`${c}-${u}`;if("OffscreenCanvas"in globalThis){if(i.has(d))return i.get(d);const p=new OffscreenCanvas(c,u);p.getContext("2d");const h=yield(yield p.convertToBlob(f)).arrayBuffer(),m=o(h);return i.set(d,m),m}else return""})}const l=self;l.onmessage=function(c){return e(this,void 0,void 0,function*(){if("OffscreenCanvas"in globalThis){const{id:u,bitmap:f,width:d,height:p,dataURLOptions:g}=c.data,h=a(d,p,g),m=new OffscreenCanvas(d,p);m.getContext("2d").drawImage(f,0,0),f.close();const b=yield m.convertToBlob(g),_=b.type,v=yield b.arrayBuffer(),S=o(v);if(!s.has(u)&&(yield h)===S)return s.set(u,S),l.postMessage({id:u});if(s.get(u)===S)return l.postMessage({id:u});l.postMessage({id:u,type:_,base64:S,width:d,height:p}),s.set(u,S)}else return l.postMessage({id:c.data.id})})}})()});class N4{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(l,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(c)};const{sampling:r="all",win:n,blockClass:o,blockSelector:s,recordCanvas:i,dataURLOptions:a}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(n,o,s),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o,s,{dataURLOptions:a})}initCanvasFPSObserver(t,r,n,o,s){const i=i0(r,n,o,!0),a=new Map,l=new P4;l.onmessage=g=>{const{id:h}=g.data;if(a.set(h,!1),!("base64"in g.data))return;const{base64:m,type:y,width:b,height:_}=g.data;this.mutationCb({id:h,type:Ji["2D"],commands:[{property:"clearRect",args:[0,0,b,_]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:m}],type:y}]},0,0]}]})};const c=1e3/t;let u=0,f;const d=()=>{const g=[];return r.document.querySelectorAll("canvas").forEach(h=>{vr(h,n,o,!0)||g.push(h)}),g},p=g=>{if(u&&g-uE4(this,void 0,void 0,function*(){var m;const y=this.mirror.getId(h);if(a.get(y)||h.width===0||h.height===0)return;if(a.set(y,!0),["webgl","webgl2"].includes(h.__context)){const _=h.getContext(h.__context);((m=_==null?void 0:_.getContextAttributes())===null||m===void 0?void 0:m.preserveDrawingBuffer)===!1&&_.clear(_.COLOR_BUFFER_BIT)}const b=yield createImageBitmap(h);l.postMessage({id:y,bitmap:b,width:h.width,height:h.height,dataURLOptions:s.dataURLOptions},[b])})),f=requestAnimationFrame(p)};f=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(f)}}initCanvasMutationObserver(t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=i0(t,r,n,!1),s=T4(this.processMutation.bind(this),t,r,n),i=A4(this.processMutation.bind(this),t,r,n,this.mirror);this.resetObservers=()=>{o(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const o=n.map(i=>S4(i,["type"])),{type:s}=n[0];this.mutationCb({id:r,type:s,commands:o}),this.pendingCanvasMutations.delete(t)}}class M4{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new e4,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const n={id:r,styleIds:[]},o=[];for(const s of t){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),o.push({styleId:i,rules:Array.from(s.rules||CSSRule,(a,l)=>({rule:tC(a),index:l}))})),n.styleIds.push(i)}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class D4{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,r){const n=this.nodeMap.get(t);return n&&Array.from(n).some(o=>o!==r)}add(t,r){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Ot(e){return Object.assign(Object.assign({},e),{timestamp:Tf()})}let kt,Iu,Lp,Af=!1;const Xr=AV();function xc(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:f,maskInputOptions:d,slimDOMOptions:p,maskInputFn:g,maskTextFn:h,hooks:m,packFn:y,sampling:b={},dataURLOptions:_={},mousemoveWait:v,recordDOM:S=!0,recordCanvas:E=!1,recordCrossOriginIframes:x=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:A=!1,collectFonts:N=!1,inlineImages:U=!1,plugins:L,keepIframeSrcFn:G=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:le}=e;s4(le);const q=x?window.parent===window:!0;let oe=!1;if(!q)try{window.parent.document&&(oe=!1)}catch{oe=!0}if(q&&!t)throw new Error("emit function is required");v!==void 0&&b.mousemove===void 0&&(b.mousemove=v),Xr.reset();const ne=f===!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,password:!0}:d!==void 0?d:{password:!0},Se=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all"}:p||{};QV();let ct,ve=0;const We=te=>{for(const we of L||[])we.eventProcessor&&(te=we.eventProcessor(te));return y&&!oe&&(te=y(te)),te};kt=(te,we)=>{var C;if(!((C=Es[0])===null||C===void 0)&&C.isFrozen()&&te.type!==Be.FullSnapshot&&!(te.type===Be.IncrementalSnapshot&&te.data.source===De.Mutation)&&Es.forEach(I=>I.unfreeze()),q)t==null||t(We(te),we);else if(oe){const I={type:"rrweb",event:We(te),origin:window.location.origin,isCheckout:we};window.parent.postMessage(I,"*")}if(te.type===Be.FullSnapshot)ct=te,ve=0;else if(te.type===Be.IncrementalSnapshot){if(te.data.source===De.Mutation&&te.data.isAttachIframe)return;ve++;const I=n&&ve>=n,$=r&&te.timestamp-ct.timestamp>r;(I||$)&&Iu(!0)}};const je=te=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Mutation},te)}))},tr=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Scroll},te)})),ze=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.CanvasMutation},te)})),ht=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.AdoptedStyleSheet},te)})),W=new M4({mutationCb:je,adoptedStyleSheetCb:ht}),Q=new b4({mirror:Xr,mutationCb:je,stylesheetManager:W,recordCrossOriginIframes:x,wrappedEmit:kt});for(const te of L||[])te.getMirror&&te.getMirror({nodeMirror:Xr,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const J=new D4;Lp=new N4({recordCanvas:E,mutationCb:ze,win:window,blockClass:o,blockSelector:s,mirror:Xr,sampling:b.canvas,dataURLOptions:_});const ie=new w4({mutationCb:je,scrollCb:tr,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:ne,dataURLOptions:_,maskTextFn:h,maskInputFn:g,recordCanvas:E,inlineImages:U,sampling:b,slimDOMOptions:Se,iframeManager:Q,stylesheetManager:W,canvasManager:Lp,keepIframeSrcFn:G,processedNodeManager:J},mirror:Xr});Iu=(te=!1)=>{if(!S)return;kt(Ot({type:Be.Meta,data:{href:window.location.href,width:uC(),height:cC()}}),te),W.reset(),ie.init(),Es.forEach(C=>C.lock());const we=XV(document,{mirror:Xr,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:ne,maskTextFn:h,slimDOM:Se,dataURLOptions:_,recordCanvas:E,inlineImages:U,onSerialize:C=>{pC(C,Xr)&&Q.addIframe(C),hC(C,Xr)&&W.trackLinkElement(C),Rg(C)&&ie.addShadowRoot(C.shadowRoot,document)},onIframeLoad:(C,I)=>{Q.attachIframe(C,I),ie.observeAttachShadow(C)},onStylesheetLoad:(C,I)=>{W.attachLinkElement(C,I)},keepIframeSrcFn:G});if(!we)return console.warn("Failed to snapshot the document");kt(Ot({type:Be.FullSnapshot,data:{node:we,initialOffset:lC(window)}}),te),Es.forEach(C=>C.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,Xr.getId(document))};try{const te=[],we=I=>{var $;return $e(v4)({mutationCb:je,mousemoveCb:(B,H)=>kt(Ot({type:Be.IncrementalSnapshot,data:{source:H,positions:B}})),mouseInteractionCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.MouseInteraction},B)})),scrollCb:tr,viewportResizeCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.ViewportResize},B)})),inputCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Input},B)})),mediaInteractionCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.MediaInteraction},B)})),styleSheetRuleCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.StyleSheetRule},B)})),styleDeclarationCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.StyleDeclaration},B)})),canvasMutationCb:ze,fontCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Font},B)})),selectionCb:B=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Selection},B)}))},customElementCb:B=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.CustomElement},B)}))},blockClass:o,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:ne,inlineStylesheet:u,sampling:b,recordDOM:S,recordCanvas:E,inlineImages:U,userTriggeredOnInput:A,collectFonts:N,doc:I,maskInputFn:g,maskTextFn:h,keepIframeSrcFn:G,blockSelector:s,slimDOMOptions:Se,dataURLOptions:_,mirror:Xr,iframeManager:Q,stylesheetManager:W,shadowDomManager:ie,processedNodeManager:J,canvasManager:Lp,ignoreCSSAttributes:re,plugins:(($=L==null?void 0:L.filter(B=>B.observer))===null||$===void 0?void 0:$.map(B=>({observer:B.observer,options:B.options,callback:H=>kt(Ot({type:Be.Plugin,data:{plugin:B.name,payload:H}}))})))||[]},m)};Q.addLoadListener(I=>{try{te.push(we(I.contentDocument))}catch($){console.warn($)}});const C=()=>{Iu(),te.push(we(document)),Af=!0};return document.readyState==="interactive"||document.readyState==="complete"?C():(te.push(_r("DOMContentLoaded",()=>{kt(Ot({type:Be.DomContentLoaded,data:{}})),R==="DOMContentLoaded"&&C()})),te.push(_r("load",()=>{kt(Ot({type:Be.Load,data:{}})),R==="load"&&C()},window))),()=>{te.forEach(I=>I()),J.destroy(),Af=!1,i4()}}catch(te){console.warn(te)}}xc.addCustomEvent=(e,t)=>{if(!Af)throw new Error("please add custom event after start recording");kt(Ot({type:Be.Custom,data:{tag:e,payload:t}}))};xc.freezePage=()=>{Es.forEach(e=>e.freeze())};xc.takeFullSnapshot=e=>{if(!Af)throw new Error("please take full snapshot after start recording");Iu(e)};xc.mirror=Xr;var kC=(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))(kC||{}),Tn=(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))(Tn||{}),co={DEBUG:!1,LIB_VERSION:"2.55.1"},Ee;if(typeof window>"u"){var l0={hostname:""};Ee={navigator:{userAgent:"",onLine:!0},document:{location:l0,referrer:""},screen:{width:0,height:0},location:l0}}else Ee=window;var vl=24*60*60*1e3,Pp=8*1e3,Ad=Array.prototype,$4=Function.prototype,CC=Object.prototype,$o=Ad.slice,kc=CC.toString,Od=CC.hasOwnProperty,At=Ee.console,Fo=Ee.navigator,nt=Ee.document,iu=Ee.opera,Of=Ee.screen,On=Fo.userAgent,Np=$4.bind,c0=Ad.forEach,u0=Ad.indexOf,f0=Ad.map,F4=Array.isArray,Pg={},w={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ke={log:function(){if(co.DEBUG&&!w.isUndefined(At)&&At)try{At.log.apply(At,arguments)}catch{w.each(arguments,function(t){At.log(t)})}},warn:function(){if(co.DEBUG&&!w.isUndefined(At)&&At){var e=["Mixpanel warning:"].concat(w.toArray(arguments));try{At.warn.apply(At,e)}catch{w.each(e,function(r){At.warn(r)})}}},error:function(){if(co.DEBUG&&!w.isUndefined(At)&&At){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{At.error.apply(At,e)}catch{w.each(e,function(r){At.error(r)})}}},critical:function(){if(!w.isUndefined(At)&&At){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{At.error.apply(At,e)}catch{w.each(e,function(r){At.error(r)})}}}},Mp=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Ke,arguments)}},Rd=function(e){return{log:Mp(Ke.log,e),error:Mp(Ke.error,e),critical:Mp(Ke.critical,e)}};w.bind=function(e,t){var r,n;if(Np&&e.bind===Np)return Np.apply(e,$o.call(arguments,1));if(!w.isFunction(e))throw new TypeError;return r=$o.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat($o.call(arguments)));var o={};o.prototype=e.prototype;var s=new o;o.prototype=null;var i=e.apply(s,r.concat($o.call(arguments)));return Object(i)===i?i:s},n};w.each=function(e,t,r){if(e!=null){if(c0&&e.forEach===c0)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n0&&(t[n]=r)}),t};w.truncate=function(e,t){var r;return typeof e=="string"?r=e.slice(0,t):w.isArray(e)?(r=[],w.each(e,function(n){r.push(w.truncate(n,t))})):w.isObject(e)?(r={},w.each(e,function(n,o){r[o]=w.truncate(n,t)})):r=e,r};w.JSONEncode=function(){return function(e){var t=e,r=function(o){var s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return s.lastIndex=0,s.test(o)?'"'+o.replace(s,function(a){var l=i[a];return typeof l=="string"?l:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+o+'"'},n=function(o,s){var i="",a=" ",l=0,c="",u="",f=0,d=i,p=[],g=s[o];switch(g&&typeof g=="object"&&typeof g.toJSON=="function"&&(g=g.toJSON(o)),typeof g){case"string":return r(g);case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":return String(g);case"object":if(!g)return"null";if(i+=a,p=[],kc.apply(g)==="[object Array]"){for(f=g.length,l=0;l="0"&&t<="9";)g+=t,s();if(t===".")for(g+=".";s()&&t>="0"&&t<="9";)g+=t;if(t==="e"||t==="E")for(g+=t,s(),(t==="-"||t==="+")&&(g+=t,s());t>="0"&&t<="9";)g+=t,s();if(p=+g,!isFinite(p))o("Bad number");else return p},a=function(){var p,g,h="",m;if(t==='"')for(;s();){if(t==='"')return s(),h;if(t==="\\")if(s(),t==="u"){for(m=0,g=0;g<4&&(p=parseInt(s(),16),!!isFinite(p));g+=1)m=m*16+p;h+=String.fromCharCode(m)}else if(typeof r[t]=="string")h+=r[t];else break;else h+=t}o("Bad string")},l=function(){for(;t&&t<=" ";)s()},c=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},u,f=function(){var p=[];if(t==="["){if(s("["),l(),t==="]")return s("]"),p;for(;t;){if(p.push(u()),l(),t==="]")return s("]"),p;s(","),l()}}o("Bad array")},d=function(){var p,g={};if(t==="{"){if(s("{"),l(),t==="}")return s("}"),g;for(;t;){if(p=a(),l(),s(":"),Object.hasOwnProperty.call(g,p)&&o('Duplicate key "'+p+'"'),g[p]=u(),l(),t==="}")return s("}"),g;s(","),l()}}o("Bad object")};return u=function(){switch(l(),t){case"{":return d();case"[":return f();case'"':return a();case"-":return i();default:return t>="0"&&t<="9"?i():c()}},function(p){var g;return n=p,e=0,t=" ",g=u(),l(),t&&o("Syntax error"),g}}();w.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,o,s,i,a,l,c,u=0,f=0,d="",p=[];if(!e)return e;e=w.utf8Encode(e);do r=e.charCodeAt(u++),n=e.charCodeAt(u++),o=e.charCodeAt(u++),c=r<<16|n<<8|o,s=c>>18&63,i=c>>12&63,a=c>>6&63,l=c&63,p[f++]=t.charAt(s)+t.charAt(i)+t.charAt(a)+t.charAt(l);while(u127&&i<2048?a=String.fromCharCode(i>>6|192,i&63|128):a=String.fromCharCode(i>>12|224,i>>6&63|128,i&63|128),a!==null&&(n>r&&(t+=e.substring(r,n)),t+=a,r=n=s+1)}return n>r&&(t+=e.substring(r,e.length)),t};w.UUID=function(){var e=function(){var n=1*new Date,o;if(Ee.performance&&Ee.performance.now)o=Ee.performance.now();else for(o=0;n==1*new Date;)o++;return n.toString(16)+Math.floor(o).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},r=function(){var n=On,o,s,i=[],a=0;function l(c,u){var f,d=0;for(f=0;f=4&&(a=l(a,i),i=[]);return i.length>0&&(a=l(a,i)),a.toString(16)};return function(){var n=(Of.height*Of.width).toString(16);return e()+"-"+t()+"-"+r()+"-"+n+"-"+e()}}();var d0=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];w.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function n(o){if(!nt.getElementsByTagName)return[];var s=o.split(" "),i,a,l,c,u,f,d,p,g,h,m=[nt];for(f=0;f-1){a=i.split("#"),l=a[0];var y=a[1],b=nt.getElementById(y);if(!b||l&&b.nodeName.toLowerCase()!=l)return[];m=[b];continue}if(i.indexOf(".")>-1){a=i.split("."),l=a[0];var _=a[1];for(l||(l="*"),c=[],u=0,d=0;d-1};break;default:R=function(A){return A.getAttribute(S)}}for(m=[],h=0,d=0;d=3?t[2]:""},currentUrl:function(){return Ee.location.href},properties:function(e){return typeof e!="object"&&(e={}),w.extend(w.strip_empty_properties({$os:w.info.os(),$browser:w.info.browser(On,Fo.vendor,iu),$referrer:nt.referrer,$referring_domain:w.info.referringDomain(nt.referrer),$device:w.info.device(On)}),{$current_url:w.info.currentUrl(),$browser_version:w.info.browserVersion(On,Fo.vendor,iu),$screen_height:Of.height,$screen_width:Of.width,mp_lib:"web",$lib_version:co.LIB_VERSION,$insert_id:ey(),time:w.timestamp()/1e3},w.strip_empty_properties(e))},people_properties:function(){return w.extend(w.strip_empty_properties({$os:w.info.os(),$browser:w.info.browser(On,Fo.vendor,iu)}),{$browser_version:w.info.browserVersion(On,Fo.vendor,iu)})},mpPageViewProperties:function(){return w.strip_empty_properties({current_page_title:nt.title,current_domain:Ee.location.hostname,current_url_path:Ee.location.pathname,current_url_protocol:Ee.location.protocol,current_url_search:Ee.location.search})}};var ey=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},H4=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,V4=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,p0=function(e){var t=V4,r=e.split("."),n=r[r.length-1];(n.length>4||n==="com"||n==="org")&&(t=H4);var o=e.match(t);return o?o[0]:""},W4=function(){var e=Ee.navigator.onLine;return w.isUndefined(e)||e},Lf=null,Pf=null;typeof JSON<"u"&&(Lf=JSON.stringify,Pf=JSON.parse);Lf=Lf||w.JSONEncode;Pf=Pf||w.JSONDecode;w.toArray=w.toArray;w.isObject=w.isObject;w.JSONEncode=w.JSONEncode;w.JSONDecode=w.JSONDecode;w.isBlockedUA=w.isBlockedUA;w.isEmptyObject=w.isEmptyObject;w.info=w.info;w.info.device=w.info.device;w.info.browser=w.info.browser;w.info.browserVersion=w.info.browserVersion;w.info.properties=w.info.properties;var z4="__mp_opt_in_out_";function G4(e,t){AC(!0,e,t)}function q4(e,t){AC(!1,e,t)}function K4(e,t){return IC(e,t)==="1"}function TC(e,t){if(Z4(t))return Ke.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r=IC(e,t)==="0";return r&&Ke.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function is(e){return ny(e,function(t){return this.get_config(t)})}function as(e){return ny(e,function(t){return this._get_config(t)})}function _a(e){return ny(e,function(t){return this._get_config(t)})}function Y4(e,t){t=t||{},ty(t).remove(ry(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function ty(e){return e=e||{},e.persistenceType==="localStorage"?w.localStorage:w.cookie}function ry(e,t){return t=t||{},(t.persistencePrefix||z4)+e}function IC(e,t){return ty(t).get(ry(e,t))}function Z4(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Ee,r=t.navigator||{},n=!1;return w.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(o){w.includes([!0,1,"1","yes"],o)&&(n=!0)}),n}function AC(e,t,r){if(!w.isString(t)||!t.length){Ke.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}r=r||{},ty(r).set(ry(t,r),e?1:0,w.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function ny(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),o=t.call(this,"ignore_dnt"),s=t.call(this,"opt_out_tracking_persistence_type"),i=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=TC(n,{ignoreDnt:o,persistenceType:s,persistencePrefix:i,window:a}))}catch(c){Ke.error("Unexpected error when checking tracking opt-out status: "+c)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var X4=Rd("lock"),OC=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};OC.prototype.withLock=function(e,t,r){!r&&typeof t!="function"&&(r=t,t=null);var n=r||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,i=this.pollIntervalMS,a=this.timeoutMS,l=this.storage,c=s+":X",u=s+":Y",f=s+":Z",d=function(b){t&&t(b)},p=function(b){if(new Date().getTime()-o>a){X4.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+n+"]"),l.removeItem(f),l.removeItem(u),m();return}setTimeout(function(){try{b()}catch(_){d(_)}},i*(Math.random()+.1))},g=function(b,_){b()?_():p(function(){g(b,_)})},h=function(){var b=l.getItem(u);if(b&&b!==n)return!1;if(l.setItem(u,n),l.getItem(u)===n)return!0;if(!Rf(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},m=function(){l.setItem(c,n),g(h,function(){if(l.getItem(c)===n){y();return}p(function(){if(l.getItem(u)!==n){m();return}g(function(){return!l.getItem(f)},y)})})},y=function(){l.setItem(f,"1");try{e()}finally{l.removeItem(f),l.getItem(u)===n&&l.removeItem(u),l.getItem(c)===n&&l.removeItem(c)}};try{if(Rf(l,!0))m();else throw new Error("localStorage support check failed")}catch(b){d(b)}};var h0=Rd("batch"),ls=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||w.bind(h0.error,h0),this.lock=new OC(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};ls.prototype.enqueue=function(e,t,r){var n={id:ey(),flushAfter:new Date().getTime()+t*2,payload:e};this.usePersistence?this.lock.withLock(w.bind(function(){var s;try{var i=this.readFromStorage();i.push(n),s=this.saveToStorage(i),s&&this.memQueue.push(n)}catch{this.reportError("Error enqueueing item",e),s=!1}r&&r(s)},this),w.bind(function(s){this.reportError("Error acquiring storage lock",s),r&&r(!1)},this),this.pid):(this.memQueue.push(n),r&&r(!0))};ls.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.lengths.flushAfter&&!n[s.id]&&(s.orphaned=!0,t.push(s),t.length>=e))break}}}return t};var g0=function(e,t){var r=[];return w.each(e,function(n){n.id&&!t[n.id]&&r.push(n)}),r};ls.prototype.removeItemsByID=function(e,t){var r={};if(w.each(e,function(o){r[o]=!0}),this.memQueue=g0(this.memQueue,r),!this.usePersistence)t&&t(!0);else{var n=w.bind(function(){var o;try{var s=this.readFromStorage();if(s=g0(s,r),o=this.saveToStorage(s),o){s=this.readFromStorage();for(var i=0;i5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:u,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[p]}),d=!1):this.reportError("[dupe] found item with no ID",{item:u}),d&&i.push(f)}a[u.id]=f},this),i.length<1){this.resetFlush();return}this.requestInProgress=!0;var l=w.bind(function(u){this.requestInProgress=!1;try{var f=!1;if(e.unloading)this.queue.updatePayloads(a);else if(w.isObject(u)&&u.error==="timeout"&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(w.isObject(u)&&(u.httpStatusCode>=500||u.httpStatusCode===429||u.httpStatusCode<=0&&!W4()||u.error==="timeout")){var d=this.flushInterval*2;u.retryAfter&&(d=parseInt(u.retryAfter,10)*1e3||d),d=Math.min(J4,d),this.reportError("Error; retry in "+d+" ms"),this.scheduleFlush(d)}else if(w.isObject(u)&&u.httpStatusCode===413)if(o.length>1){var p=Math.max(1,Math.floor(n/2));this.batchSize=Math.min(this.batchSize,p,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),f=!0;else f=!0;f&&(this.queue.removeItemsByID(w.map(o,function(g){return g.id}),w.bind(function(g){g?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),w.each(o,w.bind(function(g){var h=g.id;h?(this.itemIdsSentSuccessfully[h]=this.itemIdsSentSuccessfully[h]||0,this.itemIdsSentSuccessfully[h]++,this.itemIdsSentSuccessfully[h]>5&&this.reportError("[dupe] item ID sent too many times",{item:g,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[h]})):this.reportError("[dupe] found item with no ID while removing",{item:g})},this)))}catch(g){this.reportError("Error handling API response",g),this.resetFlush()}},this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(c.transport="sendBeacon"),bl.log("MIXPANEL REQUEST:",i),this.sendRequest(i,c,l)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};_n.prototype.reportError=function(e,t){if(bl.error.apply(bl.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(r){bl.error(r)}};var xs=Rd("recorder"),y0=Ee.CompressionStream,Q4={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},e5=new Set([Tn.MouseMove,Tn.MouseInteraction,Tn.Scroll,Tn.ViewportResize,Tn.Input,Tn.TouchMove,Tn.MediaInteraction,Tn.Drag,Tn.Selection]);function t5(e){return e.type===kC.IncrementalSnapshot&&e5.has(e.data.source)}var vn=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=vl,this.recordMinMs=0,this._initBatcher()};vn.prototype._initBatcher=function(){this.batcher=new _n("__mprec",{libConfig:Q4,sendRequestFunc:w.bind(this.flushEventsWithOptOut,this),errorReporter:w.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})};vn.prototype.get_config=function(e){return this._mixpanel.get_config(e)};vn.prototype.startRecording=function(e){if(this._stopRecording!==null){xs.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>vl&&(this.recordMaxMs=vl,xs.critical("record_max_ms cannot be greater than "+vl+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs>Pp&&(this.recordMinMs=Pp,xs.critical("record_min_ms cannot be greater than "+Pp+"ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=new Date().getTime(),this.replayId=w.UUID(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=w.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(w.bind(function(){xs.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this),r=this.get_config("record_block_selector");(r===""||r===null)&&(r=void 0),this._stopRecording=xc({emit:w.bind(function(n){this.batcher.enqueue(n),t5(n)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())},this),blockClass:this.get_config("record_block_class"),blockSelector:r,collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),t(),this.maxTimeoutId=setTimeout(w.bind(this.resetRecording,this),this.recordMaxMs)};vn.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)};vn.prototype.stopRecording=function(){this._stopRecording!==null&&(this._stopRecording(),this._stopRecording=null),this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)};vn.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,w.bind(this._onOptOut,this))};vn.prototype._onOptOut=function(e){e===0&&(this.recEvents=[],this.stopRecording())};vn.prototype._sendRequest=function(e,t,r,n){var o=w.bind(function(s,i){s.status===200&&this.replayId===e&&this.seqNo++,n({status:0,httpStatusCode:s.status,responseBody:i,retryAfter:s.headers.get("Retry-After")})},this);Ee.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(s){s.json().then(function(i){o(s,i)}).catch(function(i){n({error:i})})}).catch(function(s){n({error:s,httpStatusCode:0})})};vn.prototype._flushEvents=is(function(e,t,r){const n=e.length;if(n>0){var o=this.replayId,s=e[0].timestamp;(this.seqNo===0||!this.replayStartTime)&&(this.seqNo!==0&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var i=e[n-1].timestamp-this.replayStartTime,a={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:s/1e3,replay_id:o,replay_length_ms:i,replay_start_time:this.replayStartTime/1e3},l=w.JSONEncode(e),c=this._mixpanel.get_property("$device_id");c&&(a.$device_id=c);var u=this._mixpanel.get_property("$user_id");if(u&&(a.$user_id=u),y0){var f=new Blob([l],{type:"application/json"}).stream(),d=f.pipeThrough(new y0("gzip"));new Response(d).blob().then(w.bind(function(p){a.format="gzip",this._sendRequest(o,a,p,r)},this))}else a.format="body",this._sendRequest(o,a,l,r)}});vn.prototype.reportError=function(e,t){xs.error.apply(xs.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){xs.error(r)}};Ee.__mp_recorder=vn;var vo=function(){};vo.prototype.create_properties=function(){};vo.prototype.event_handler=function(){};vo.prototype.after_track_handler=function(){};vo.prototype.init=function(e){return this.mp=e,this};vo.prototype.track=function(e,t,r,n){var o=this,s=w.dom_query(e);if(s.length===0){Ke.error("The DOM query ("+e+") returned 0 elements");return}return w.each(s,function(i){w.register_event(i,this.override_event,function(a){var l={},c=o.create_properties(r,this),u=o.mp.get_config("track_links_timeout");o.event_handler(a,this,l),window.setTimeout(o.track_callback(n,c,l,!0),u),o.mp.track(t,c,o.track_callback(n,c,l))})},this),!0};vo.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,!(e&&e(n,t)===!1)&&o.after_track_handler(t,r,n))}};vo.prototype.create_properties=function(e,t){var r;return typeof e=="function"?r=e(t):r=w.extend({},e),r};var Qi=function(){this.override_event="click"};w.inherit(Qi,vo);Qi.prototype.create_properties=function(e,t){var r=Qi.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r};Qi.prototype.event_handler=function(e,t,r){r.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",r.href=t.href,r.new_tab||e.preventDefault()};Qi.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Ld=function(){this.override_event="submit"};w.inherit(Ld,vo);Ld.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()};Ld.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Yo="$set",ea="$set_once",tn="$unset",Ws="$add",Dn="$append",zs="$union",uo="$remove",r5="$delete",RC={set_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[Yo]=n,r},unset_action:function(e){var t={},r=[];return w.isArray(e)||(e=[e]),w.each(e,function(n){this._is_reserved_property(n)||r.push(n)},this),t[tn]=r,t},set_once_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[ea]=n,r},union_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=w.isArray(o)?o:[o])},this):n[e]=w.isArray(t)?t:[t],r[zs]=n,r},append_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[Dn]=n,r},remove_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[uo]=n,r},delete_action:function(){var e={};return e[r5]="",e}},pt=function(){};w.extend(pt.prototype,RC);pt.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r};pt.prototype.set=_a(function(e,t,r){var n=this.set_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});pt.prototype.set_once=_a(function(e,t,r){var n=this.set_once_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});pt.prototype.unset=_a(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});pt.prototype.union=_a(function(e,t,r){w.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});pt.prototype.delete=_a(function(e){var t=this.delete_action();return this._send_request(t,e)});pt.prototype.remove=_a(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)});pt.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=w.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};pt.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};pt.prototype._get_config=function(e){return this._mixpanel.get_config(e)};pt.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};pt.prototype.remove=pt.prototype.remove;pt.prototype.set=pt.prototype.set;pt.prototype.set_once=pt.prototype.set_once;pt.prototype.union=pt.prototype.union;pt.prototype.unset=pt.prototype.unset;pt.prototype.toString=pt.prototype.toString;var xe=function(){};w.extend(xe.prototype,RC);xe.prototype._init=function(e){this._mixpanel=e};xe.prototype.set=as(function(e,t,r){var n=this.set_action(e,t);return w.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Yo]=w.extend({},w.info.people_properties(),n[Yo]),this._send_request(n,r)});xe.prototype.set_once=as(function(e,t,r){var n=this.set_once_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});xe.prototype.unset=as(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});xe.prototype.increment=as(function(e,t,r){var n={},o={};return w.isObject(e)?(w.each(e,function(s,i){if(!this._is_reserved_property(i))if(isNaN(parseFloat(s))){Ke.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else o[i]=s},this),r=t):(w.isUndefined(t)&&(t=1),o[e]=t),n[Ws]=o,this._send_request(n,r)});xe.prototype.append=as(function(e,t,r){w.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)});xe.prototype.remove=as(function(e,t,r){w.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)});xe.prototype.union=as(function(e,t,r){w.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});xe.prototype.track_charge=as(function(e,t,r){if(!w.isNumber(e)&&(e=parseFloat(e),isNaN(e))){Ke.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",w.extend({$amount:e},t),r)});xe.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};xe.prototype.delete_user=function(){if(!this._identify_called()){Ke.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};xe.prototype.toString=function(){return this._mixpanel.toString()+".people"};xe.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var s=w.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),w.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),w.truncate(s,255))};xe.prototype._get_config=function(e){return this._mixpanel.get_config(e)};xe.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};xe.prototype._enqueue=function(e){Yo in e?this._mixpanel.persistence._add_to_people_queue(Yo,e):ea in e?this._mixpanel.persistence._add_to_people_queue(ea,e):tn in e?this._mixpanel.persistence._add_to_people_queue(tn,e):Ws in e?this._mixpanel.persistence._add_to_people_queue(Ws,e):Dn in e?this._mixpanel.persistence._add_to_people_queue(Dn,e):uo in e?this._mixpanel.persistence._add_to_people_queue(uo,e):zs in e?this._mixpanel.persistence._add_to_people_queue(zs,e):Ke.error("Invalid call to _enqueue():",e)};xe.prototype._flush_one_queue=function(e,t,r,n){var o=this,s=w.extend({},this._mixpanel.persistence.load_queue(e)),i=s;!w.isUndefined(s)&&w.isObject(s)&&!w.isEmptyObject(s)&&(o._mixpanel.persistence._pop_from_people_queue(e,s),o._mixpanel.persistence.save(),n&&(i=n(s)),t.call(o,i,function(a,l){a===0&&o._mixpanel.persistence._add_to_people_queue(e,s),w.isUndefined(r)||r(a,l)}))};xe.prototype._flush=function(e,t,r,n,o,s,i){var a=this;this._flush_one_queue(Yo,this.set,e),this._flush_one_queue(ea,this.set_once,n),this._flush_one_queue(tn,this.unset,s,function(m){return w.keys(m)}),this._flush_one_queue(Ws,this.increment,t),this._flush_one_queue(zs,this.union,o);var l=this._mixpanel.persistence.load_queue(Dn);if(!w.isUndefined(l)&&w.isArray(l)&&l.length)for(var c,u=function(m,y){m===0&&a._mixpanel.persistence._add_to_people_queue(Dn,c),w.isUndefined(r)||r(m,y)},f=l.length-1;f>=0;f--)l=this._mixpanel.persistence.load_queue(Dn),c=l.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(c)||a.append(c,u);var d=this._mixpanel.persistence.load_queue(uo);if(!w.isUndefined(d)&&w.isArray(d)&&d.length)for(var p,g=function(m,y){m===0&&a._mixpanel.persistence._add_to_people_queue(uo,p),w.isUndefined(i)||i(m,y)},h=d.length-1;h>=0;h--)d=this._mixpanel.persistence.load_queue(uo),p=d.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(p)||a.remove(p,g)};xe.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};xe.prototype.set=xe.prototype.set;xe.prototype.set_once=xe.prototype.set_once;xe.prototype.unset=xe.prototype.unset;xe.prototype.increment=xe.prototype.increment;xe.prototype.append=xe.prototype.append;xe.prototype.remove=xe.prototype.remove;xe.prototype.union=xe.prototype.union;xe.prototype.track_charge=xe.prototype.track_charge;xe.prototype.clear_charges=xe.prototype.clear_charges;xe.prototype.delete_user=xe.prototype.delete_user;xe.prototype.toString=xe.prototype.toString;var oy="__mps",sy="__mpso",iy="__mpus",ay="__mpa",ly="__mpap",cy="__mpr",uy="__mpu",LC="$people_distinct_id",Nf="__alias",ic="__timers",n5=[oy,sy,iy,ay,ly,cy,uy,LC,Nf,ic],Re=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(Ke.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&w.localStorage.is_supported()?this.storage=w.localStorage:this.storage=w.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Re.prototype.properties=function(){var e={};return this.load(),w.each(this.props,function(t,r){w.include(n5,r)||(e[r]=t)}),e};Re.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=w.extend({},e))}};Re.prototype.upgrade=function(){var e,t;this.storage===w.localStorage?(e=w.cookie.parse(this.name),w.cookie.remove(this.name),w.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===w.cookie&&(t=w.localStorage.parse(this.name),w.localStorage.remove(this.name),t&&this.register_once(t))};Re.prototype.save=function(){this.disabled||this.storage.set(this.name,w.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};Re.prototype.load_prop=function(e){return this.load(),this.props[e]};Re.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};Re.prototype.clear=function(){this.remove(),this.props={}};Re.prototype.register_once=function(e,t,r){return w.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof r>"u"?this.default_expiry:r,this.load(),w.each(e,function(n,o){(!this.props.hasOwnProperty(o)||this.props[o]===t)&&(this.props[o]=n)},this),this.save(),!0):!1};Re.prototype.register=function(e,t){return w.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),w.extend(this.props,e),this.save(),!0):!1};Re.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())};Re.prototype.update_search_keyword=function(e){this.register(w.info.searchInfo(e))};Re.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:w.info.referringDomain(e)||"$direct"},"")};Re.prototype.get_referrer_info=function(){return w.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};Re.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};Re.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};Re.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};Re.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};Re.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};Re.prototype.get_cross_subdomain=function(){return this.cross_subdomain};Re.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};Re.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(Yo),s=this._get_or_create_queue(ea),i=this._get_or_create_queue(tn),a=this._get_or_create_queue(Ws),l=this._get_or_create_queue(zs),c=this._get_or_create_queue(uo,[]),u=this._get_or_create_queue(Dn,[]);r===oy?(w.extend(o,n),this._pop_from_people_queue(Ws,n),this._pop_from_people_queue(zs,n),this._pop_from_people_queue(tn,n)):r===sy?(w.each(n,function(f,d){d in s||(s[d]=f)}),this._pop_from_people_queue(tn,n)):r===iy?w.each(n,function(f){w.each([o,s,a,l],function(d){f in d&&delete d[f]}),w.each(u,function(d){f in d&&delete d[f]}),i[f]=!0}):r===ay?(w.each(n,function(f,d){d in o?o[d]+=f:(d in a||(a[d]=0),a[d]+=f)},this),this._pop_from_people_queue(tn,n)):r===uy?(w.each(n,function(f,d){w.isArray(f)&&(d in l||(l[d]=[]),l[d]=l[d].concat(f))}),this._pop_from_people_queue(tn,n)):r===cy?(c.push(n),this._pop_from_people_queue(Dn,n)):r===ly&&(u.push(n),this._pop_from_people_queue(tn,n)),Ke.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Ke.log(t),this.save()};Re.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];w.isUndefined(r)||w.each(t,function(n,o){e===Dn||e===uo?w.each(r,function(s){s[o]===n&&delete s[o]}):delete r[o]},this)};Re.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};Re.prototype._get_queue_key=function(e){if(e===Yo)return oy;if(e===ea)return sy;if(e===tn)return iy;if(e===Ws)return ay;if(e===Dn)return ly;if(e===uo)return cy;if(e===zs)return uy;Ke.error("Invalid queue:",e)};Re.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=w.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)};Re.prototype.set_event_timer=function(e,t){var r=this.load_prop(ic)||{};r[e]=t,this.props[ic]=r,this.save()};Re.prototype.remove_event_timer=function(e){var t=this.load_prop(ic)||{},r=t[e];return w.isUndefined(r)||(delete this.props[ic][e],this.save()),r};var fy,PC=function(e,t){throw new Error(e+" not available in this build.")},nr,NC=0,o5=1,s5=function(e){return e},ac=function(){},Wr="mixpanel",MC="base64",i5="json",dy="$device:",Ui=Ee.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,DC=!Ui&&On.indexOf("MSIE")===-1&&On.indexOf("Mozilla")===-1,Mf=null;Fo.sendBeacon&&(Mf=function(){return Fo.sendBeacon.apply(Fo,arguments)});var $C={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},_0={api_host:"https://api-js.mixpanel.com",api_routes:$C,api_method:"POST",api_transport:"XHR",api_payload_format:MC,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ac,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ac,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:30*60*1e3,record_inline_images:!1,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:vl,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},FC=!1,V=function(){},Ng=function(e,t,r){var n,o=r===Wr?nr:nr[r];if(o&&fy===NC)n=o;else{if(o&&!w.isArray(o)){Ke.error("You have already initialized "+r);return}n=new V}if(n._cached_groups={},n._init(e,t,r),n.people=new xe,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var s=w.info.campaignParams(null),i={},a=!1;w.each(s,function(l,c){i["initial_"+c]=l,l&&(a=!0)}),a&&n.people.set_once(i)}return co.DEBUG=co.DEBUG||n.get_config("debug"),!w.isUndefined(o)&&w.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};V.prototype.init=function(e,t,r){if(w.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===Wr){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=Ng(e,t,r);return nr[r]=n,n._loaded(),n};V.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)){var o=t.api_host||_0.api_host;o.match(/\.mixpanel\.com/)&&(n.api_payload_format=i5)}if(this.set_config(w.extend({},_0,n,t,{name:r,token:e,callback_fn:(r===Wr?r:Wr+"."+r)+"._jsc"})),this._jsc=ac,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!w.localStorage.is_supported(!0)||!Ui)this._batch_requests=!1,Ke.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),w.each(this.get_batcher_configs(),function(l){Ke.log("Clearing batch queue "+l.queue_key),w.localStorage.remove(l.queue_key)});else if(this.init_batchers(),Mf&&Ee.addEventListener){var s=w.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Ee.addEventListener("pagehide",function(l){l.persisted&&s()}),Ee.addEventListener("visibilitychange",function(){nt.visibilityState==="hidden"&&s()})}}this.persistence=this.cookie=new Re(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=w.UUID();this.get_distinct_id()||this.register_once({distinct_id:dy+i,$device_id:i},"");var a=this.get_config("track_pageview");a&&this._init_url_change_tracking(a),this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent")&&this.start_session_recording()};V.prototype.start_session_recording=is(function(){if(!Ee.MutationObserver){Ke.critical("Browser does not support MutationObserver; skipping session recording");return}var e=w.bind(function(){this._recorder=this._recorder||new Ee.__mp_recorder(this),this._recorder.startRecording()},this);w.isUndefined(Ee.__mp_recorder)?PC(this.get_config("recorder_src"),e):e()});V.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():Ke.critical("Session recorder module not loaded")};V.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e};V.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=w.info.campaignParams(null);w.each(e,(function(t,r){this.unregister(r)}).bind(this))}};V.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(nt.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(w.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(nt.referrer)};V.prototype._dom_loaded=function(){w.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||w.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};V.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!FC)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)};V.prototype._init_url_change_tracking=function(e){var t="",r=this.track_pageview();if(r&&(t=w.info.currentUrl()),w.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){Ee.addEventListener("popstate",function(){Ee.dispatchEvent(new Event("mp_locationchange"))}),Ee.addEventListener("hashchange",function(){Ee.dispatchEvent(new Event("mp_locationchange"))});var n=Ee.history.pushState;typeof n=="function"&&(Ee.history.pushState=function(s,i,a){n.call(Ee.history,s,i,a),Ee.dispatchEvent(new Event("mp_locationchange"))});var o=Ee.history.replaceState;typeof o=="function"&&(Ee.history.replaceState=function(s,i,a){o.call(Ee.history,s,i,a),Ee.dispatchEvent(new Event("mp_locationchange"))}),Ee.addEventListener("mp_locationchange",(function(){var s=w.info.currentUrl(),i=!1;if(e==="full-url"?i=s!==t:e==="url-with-path-and-query-string"?i=s.split("#")[0]!==t.split("#")[0]:e==="url-with-path"&&(i=s.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),i){var a=this.track_pageview();a&&(t=s)}}).bind(this))}};V.prototype._prepare_callback=function(e,t){if(w.isUndefined(e))return null;if(Ui){var r=function(i){e(i,t)};return r}else{var n=this._jsc,o=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+o+"]";return n[o]=function(i){delete n[o],e(i,t)},s}};V.prototype._send_request=function(e,t,r,n){var o=!0;if(DC)return this.__request_queue.push(arguments),o;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},i=null;!n&&(w.isFunction(r)||typeof r=="string")&&(n=r,r=null),r=w.extend(s,r||{}),Ui||(r.method="GET");var a=r.method==="POST",l=Mf&&a&&r.transport.toLowerCase()==="sendbeacon",c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Ui||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(i="data="+encodeURIComponent(t.data),delete t.data),e+="?"+w.HTTPBuildQuery(t);var u=this;if("img"in t){var f=nt.createElement("img");f.src=e,nt.body.appendChild(f)}else if(l){try{o=Mf(e,i)}catch(y){u.report_error(y),o=!1}try{n&&n(o?1:0)}catch(y){u.report_error(y)}}else if(Ui)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),w.each(p,function(y,b){d.setRequestHeader(b,y)}),r.timeout_ms&&typeof d.timeout<"u"){d.timeout=r.timeout_ms;var g=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200){if(n)if(c){var y;try{y=w.JSONDecode(d.responseText)}catch(v){if(u.report_error(v),r.ignore_json_errors)y=d.responseText;else return}n(y)}else n(Number(d.responseText))}else{var b;if(d.timeout&&!d.status&&new Date().getTime()-g>=d.timeout?b="timeout":b="Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(b),n)if(c){var _=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:b,retryAfter:_["Retry-After"]})}else n(0)}},d.send(i)}catch(y){u.report_error(y),o=!1}else{var h=nt.createElement("script");h.type="text/javascript",h.async=!0,h.defer=!0,h.src=e;var m=nt.getElementsByTagName("script")[0];m.parentNode.insertBefore(h,m)}return o};V.prototype._execute_array=function(e){var t,r=[],n=[],o=[];w.each(e,function(i){i&&(t=i[0],w.isArray(t)?o.push(i):typeof i=="function"?i.call(this):w.isArray(i)&&t==="alias"?r.push(i):w.isArray(i)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?o.push(i):n.push(i))},this);var s=function(i,a){w.each(i,function(l){if(w.isArray(l[0])){var c=a;w.each(l,function(u){c=c[u[0]].apply(c,u.slice(1))})}else this[l[0]].apply(this,l.slice(1))},a)};s(r,this),s(n,this),s(o,this)};V.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};V.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs};V.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=w.bind(function(r){return new _n(r.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:w.bind(function(n,o,s){this._send_request(this.get_config("api_host")+r.endpoint,this._encode_data_for_request(n),o,this._prepare_callback(s,n))},this),beforeSendHook:w.bind(function(n){return this._run_hook("before_send_"+r.type,n)},this),stopAllBatchingFunc:w.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};V.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,w.each(this.request_batchers,function(e){e.start()}))};V.prototype.stop_batch_senders=function(){this._batch_requests=!1,w.each(this.request_batchers,function(e){e.stop(),e.clear()})};V.prototype.push=function(e){this._execute_array([e])};V.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};V.prototype._encode_data_for_request=function(e){var t=w.JSONEncode(e);return this.get_config("api_payload_format")===MC&&(t=w.base64Encode(t)),{data:t}};V.prototype._track_or_batch=function(e,t){var r=w.truncate(e.data,255),n=e.endpoint,o=e.batcher,s=e.should_send_immediately,i=e.send_request_options||{};t=t||ac;var a=!0,l=w.bind(function(){return i.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Ke.log("MIXPANEL REQUEST:"),Ke.log(r),this._send_request(n,this._encode_data_for_request(r),i,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!s?o.enqueue(r,function(c){c?t(1,r):l()}):a=l(),a&&r};V.prototype.track=is(function(e,t,r,n){!n&&typeof r=="function"&&(n=r,r=null),r=r||{};var o=r.transport;o&&(r.transport=o);var s=r.send_immediately;if(typeof n!="function"&&(n=ac),w.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(0);return}t=w.extend({},t),t.token=this.get_config("token");var i=this.persistence.remove_event_timer(e);if(!w.isUndefined(i)){var a=new Date().getTime()-i;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?w.info.marketingParams():{};t=w.extend({},w.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");w.isArray(c)?w.each(c,function(d){delete t[d]}):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t},f=this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n);return f});V.prototype.set_group=is(function(e,t,r){w.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)});V.prototype.add_group=is(function(e,t,r){var n=this.get_property(e),o={};return n===void 0?(o[e]=[t],this.register(o)):n.indexOf(t)===-1&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)});V.prototype.remove_group=is(function(e,t,r){var n=this.get_property(e);if(n!==void 0){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),n.length===0&&this.unregister(e)}return this.people.remove(e,t,r)});V.prototype.track_with_groups=is(function(e,t,r,n){var o=w.extend({},t||{});return w.each(r,function(s,i){s!=null&&(o[i]=s)}),this.track(e,o,n)});V.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};V.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};V.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(n===void 0||n._group_key!==e||n._group_id!==t)&&(n=new pt,n._init(this,e,t),this._cached_groups[r]=n),n};V.prototype.track_pageview=is(function(e,t){typeof e!="object"&&(e={}),t=t||{};var r=t.event_name||"$mp_web_page_view",n=w.extend(w.info.mpPageViewProperties(),w.info.campaignParams(),w.info.clickParams()),o=w.extend({},n,e);return this.track(r,o)});V.prototype.track_links=function(){return this._track_dom.call(this,Qi,arguments)};V.prototype.track_forms=function(){return this._track_dom.call(this,Ld,arguments)};V.prototype.time_event=function(e){if(w.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var a5={persistent:!0},py=function(e){var t;return w.isObject(e)?t=e:w.isUndefined(e)?t={}:t={days:e},w.extend({},a5,t)};V.prototype.register=function(e,t){var r=py(t);r.persistent?this.persistence.register(e,r.days):w.extend(this.unpersisted_superprops,e)};V.prototype.register_once=function(e,t,r){var n=py(r);n.persistent?this.persistence.register_once(e,t,n.days):(typeof t>"u"&&(t="None"),w.each(e,function(o,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===t)&&(this.unpersisted_superprops[s]=o)},this))};V.prototype.unregister=function(e,t){t=py(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};V.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)};V.prototype.identify=function(e,t,r,n,o,s,i,a){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(dy)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property(Nf)&&(this.unregister(Nf),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,s,i,a),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})};V.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=w.UUID();this.register_once({distinct_id:dy+e,$device_id:e},"")};V.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};V.prototype.alias=function(e,t){if(e===this.get_property(LC))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return w.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Nf,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};V.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};V.prototype.set_config=function(e){if(w.isObject(e)){w.extend(this.config,e);var t=e.batch_size;t&&w.each(this.request_batchers,function(r){r.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),co.DEBUG=co.DEBUG||this.get_config("debug")}};V.prototype.get_config=function(e){return this.config[e]};V.prototype._run_hook=function(e){var t=(this.config.hooks[e]||s5).apply(this,$o.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};V.prototype.get_property=function(e){return this.persistence.load_prop([e])};V.prototype.toString=function(){var e=this.get_config("name");return e!==Wr&&(e=Wr+"."+e),e};V.prototype._event_is_disabled=function(e){return w.isBlockedUA(On)||this._flags.disable_all_events||w.include(this.__disabled_events,e)};V.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&w.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||w.cookie.get("mp_optout"))&&(w.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};V.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()};V.prototype._gdpr_call_func=function(e,t){return t=w.extend({track:w.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),w.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};V.prototype.opt_in_tracking=function(e){e=w.extend({enable_persistence:!0},e),this._gdpr_call_func(G4,e),this._gdpr_update_persistence(e)};V.prototype.opt_out_tracking=function(e){e=w.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(q4,e),this._gdpr_update_persistence(e)};V.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(K4,e)};V.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(TC,e)};V.prototype.clear_opt_in_out_tracking=function(e){e=w.extend({enable_persistence:!0},e),this._gdpr_call_func(Y4,e),this._gdpr_update_persistence(e)};V.prototype.report_error=function(e,t){Ke.error.apply(Ke.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){Ke.error(r)}};V.prototype.init=V.prototype.init;V.prototype.reset=V.prototype.reset;V.prototype.disable=V.prototype.disable;V.prototype.time_event=V.prototype.time_event;V.prototype.track=V.prototype.track;V.prototype.track_links=V.prototype.track_links;V.prototype.track_forms=V.prototype.track_forms;V.prototype.track_pageview=V.prototype.track_pageview;V.prototype.register=V.prototype.register;V.prototype.register_once=V.prototype.register_once;V.prototype.unregister=V.prototype.unregister;V.prototype.identify=V.prototype.identify;V.prototype.alias=V.prototype.alias;V.prototype.name_tag=V.prototype.name_tag;V.prototype.set_config=V.prototype.set_config;V.prototype.get_config=V.prototype.get_config;V.prototype.get_property=V.prototype.get_property;V.prototype.get_distinct_id=V.prototype.get_distinct_id;V.prototype.toString=V.prototype.toString;V.prototype.opt_out_tracking=V.prototype.opt_out_tracking;V.prototype.opt_in_tracking=V.prototype.opt_in_tracking;V.prototype.has_opted_out_tracking=V.prototype.has_opted_out_tracking;V.prototype.has_opted_in_tracking=V.prototype.has_opted_in_tracking;V.prototype.clear_opt_in_out_tracking=V.prototype.clear_opt_in_out_tracking;V.prototype.get_group=V.prototype.get_group;V.prototype.set_group=V.prototype.set_group;V.prototype.add_group=V.prototype.add_group;V.prototype.remove_group=V.prototype.remove_group;V.prototype.track_with_groups=V.prototype.track_with_groups;V.prototype.start_batch_senders=V.prototype.start_batch_senders;V.prototype.stop_batch_senders=V.prototype.stop_batch_senders;V.prototype.start_session_recording=V.prototype.start_session_recording;V.prototype.stop_session_recording=V.prototype.stop_session_recording;V.prototype.get_session_recording_properties=V.prototype.get_session_recording_properties;V.prototype.DEFAULT_API_ROUTES=$C;Re.prototype.properties=Re.prototype.properties;Re.prototype.update_search_keyword=Re.prototype.update_search_keyword;Re.prototype.update_referrer_info=Re.prototype.update_referrer_info;Re.prototype.get_cross_subdomain=Re.prototype.get_cross_subdomain;Re.prototype.clear=Re.prototype.clear;var Ti={},l5=function(){w.each(Ti,function(e,t){t!==Wr&&(nr[t]=e)}),nr._=w},c5=function(){nr.init=function(e,t,r){if(r)return nr[r]||(nr[r]=Ti[r]=Ng(e,t,r),nr[r]._loaded()),nr[r];var n=nr;Ti[Wr]?n=Ti[Wr]:e&&(n=Ng(e,t,Wr),n._loaded(),Ti[Wr]=n),nr=n,fy===o5&&(Ee[Wr]=nr),l5()}},u5=function(){function e(){e.done||(e.done=!0,FC=!0,DC=!1,w.each(Ti,function(n){n._dom_loaded()}))}function t(){try{nt.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(nt.addEventListener)nt.readyState==="complete"?e():nt.addEventListener("DOMContentLoaded",e,!1);else if(nt.attachEvent){nt.attachEvent("onreadystatechange",e);var r=!1;try{r=Ee.frameElement===null}catch{}nt.documentElement.doScroll&&r&&t()}w.register_event(Ee,"load",e,!0)};function f5(e){return PC=e,fy=NC,nr=new V,c5(),nr.init(),u5(),nr}function d5(e,t){t()}var Jn=f5(d5);const UC={layoutSkeleton:{type:"string",defaultValue:"control",description:"The layout skeleton to use",weightedSplit:!0,values:[{value:"control",weight:80},{value:"test",weight:20}]},siteSettings:{type:"string",defaultValue:"control",description:"Which version of site settings to use",values:["control","test"]},layoutSettings:{type:"string",defaultValue:"control",description:"Which version of layout settings to use",values:["control","test"]},adSettings:{type:"string",defaultValue:"control",description:"Which version of layout settings to use",values:["control","test"]},summaryPageSettings:{type:"string",defaultValue:"control",description:"Which version of summary page settings to use",values:["control","test"]},contentSource:{type:"string",defaultValue:"dynamodb",description:"Which content source to use",values:["content-api","dynamodb","discover-feed"]},showArticleImage:{type:"boolean",defaultValue:!1,description:"Whether to show the article image",values:[!0,!1]},enableSearchboxUrlNavigation:{type:"boolean",defaultValue:!1,description:"Enable omnibox-style URL navigation in searchbox (A/B test for DXT-1619)",values:[!0,!1]}};let v0=!1;const p5=Object.keys(UC);function h5(e,t={}){window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:t})}const lc=Je.withTag("mixpanel"),b0=[];let w0=!1;function g5(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(b0.includes(t.ntp_placement_name))return!1;b0.push(t.ntp_placement_name)}if(e==="NtpPage_Viewed"){if(w0)return!1;w0=!0}return!0}const $p=new Map;async function jC(){var s;if($p.has("metadata"))return $p.get("metadata");const{client:e}=await ss(),t=(i,a)=>{if(typeof a=="string")return e.getStringValue(i,a);if(typeof a=="boolean")return e.getBooleanValue(i,a);if(typeof a=="number")return e.getNumberValue(i,a);throw new Error(`Unsupported default value type for key: ${i}`)},o={...(await Promise.all(p5.map(async i=>{try{const a=UC[i];return{[i]:await t(i,a.defaultValue)}}catch(a){return lc.warn(`Failed retrieving feature flag '${i}':`,a),{}}}))).reduce((i,a)=>Object.assign(i,a),{}),...no.getContext(),...((s=e.apiContextAccessor)==null?void 0:s.call(e))??{},splittestname:e.getStringValue("splittestname","control")};return $p.set("metadata",o),o}async function m5(){var o;if(v0)return Jn;const e=at();if(!e.public.mixpanelToken)throw new Error("Mixpanel token is not defined in the runtime config.");Jn.init(e.public.mixpanelToken,{api_host:e.public.mixpanelApiHost}),lc.info("Mixpanel SDK initialized");const t=await jC();lc.info("Mixpanel metadata:",t),Jn.register(t);const r=t!=null&&t.cohort?String(t.cohort):"",n=t!=null&&t.targetingKey?String(t.targetingKey):"";return r&&n&&(Jn.identify(t.targetingKey),Jn.people.set_once?Jn.people.set_once({cohort:r}):(o=Jn.people)==null||o.set({cohort:r})),v0=!0,Jn}function y5(e,t){return m5().then(()=>{Jn.track(e,t)}).catch(()=>{lc.error("Failed to send event to Mixpanel. The Mixpanel SDK is not initialized.")})}async function BC(e,t){var u,f;if(lc.info(`Sending Mixpanel event: ${e}`,t),!g5(e,t))return;const r=await jC(),n={...t,split_test_data:r};h5(e,n);const{shift:o,chrome:s,onelaunch:i}=Zk.getHostApis(),a=(u=o==null?void 0:o.analytics)==null?void 0:u.track;if(a){a(e,n);return}const l=i==null?void 0:i.sendEvent;if(l){l(e,n);return}const c=(f=s==null?void 0:s.runtime)==null?void 0:f.sendEvent;if(c){c(e,n);return}try{await y5(e,t)}catch{}}async function HC(e,t={}){const r=Td(),{data:n}=ga(r);return{...await WC(n,e),...t}}function _5(e=300){const t=ue({article:0,video:0});let r=null;function n(o){r&&clearTimeout(r),t.value[o]+=1,r=setTimeout(async()=>{const s=await HC("NtpNewsTile_Rendered",{article_tiles_rendered_count:t.value.article,video_tiles_rendered_count:t.value.video});BC("NtpNewsTile_Rendered",s),t.value={article:0,video:0},r=null},e)}return n}const v5=_5(),Zo=()=>{async function e(t,r){if(!P5(t,r))return;const{client:n}=await ss();if(n.track(t,r),t==="NtpNewsTile_Rendered"&&r&&N5(r))v5(r.ntp_content_type);else{const o=await HC(t,r);try{await BC(t,o)}catch{}}}return{track:e,sendMixpanelEvent:e}},b5=vc(()=>{var i,a;const e=Td(),{data:t}=ga(e),r=eC(),n=Px("app:userSelectedTheme",!1);n.value||(r.preference=((i=t.value.userSettings)==null?void 0:i.defaultSettings.theme)??"system");const o=X(()=>r.preference==="system"&&r.value==="light"?"auto-light":r.preference==="system"&&r.value==="dark"?"auto-dark":r.preference),s=l=>{const{track:c}=Zo();n.value=!0,r.preference=l,document.documentElement.className=`${r.value} bg-background-default dark:bg-background-neutral-subtle`,c("NtpSetting_Changed",{setting_name:"ntp_theme",setting_value:o.value}),Ef("ntp_theme",o.value)};return r.preference=(n?r.preference:(a=t.value.userSettings)==null?void 0:a.defaultSettings.theme)??"system",{theme:r,updateTheme:s,mixpanelPropertyName:o}}),w5=vc(e=>{const t=Px("app:userSettings",{articleSummary:{isEnabled:!0,showSettingsToggle:!1,isUserSelected:!1}}),r=X(()=>e==null?void 0:e.value.userSettings);Oe(()=>r.value,o=>{o&&(t.value.articleSummary.isUserSelected||(t.value.articleSummary.isEnabled=o.defaultSettings.articleSummary),t.value.articleSummary.showSettingsToggle=o.enabledSettings.articleSummary)},{immediate:!0});const n=o=>{const{track:s}=Zo();t.value.articleSummary.isUserSelected=!0,t.value.articleSummary.isEnabled=o,s("NtpSetting_Changed",{setting_name:"ntp_article_summary",setting_value:o?"on":"off"})};return{articleSummary:t.value.articleSummary,updateArticleSummary:n}}),S5=Je.withTag("composables:useAssertiveYield");function E5(e){var s,i,a,l,c,u;const{$ayLoaded:t}=Ie();if(!t)return{assertive:null,ayManagerEnv:null,ayData:null,initAY:()=>Promise.resolve(),unMountSlotTargeting:()=>Promise.resolve()};const r=ue(null);window.addEventListener("assertive_logImpression",async f=>{var d;try{const p=(d=f==null?void 0:f.data)==null?void 0:d.payload,{unfilled:g,auctionId:h}=p,m=r.value!==h;e!=null&&e.onAdFulfilled}catch(p){S5.error(p)}});const n=hD();Oe(n,f=>{const d=f==="visible";window.isPageVisible=d,d&&window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.changePage(),window.ayManagerEnv.dispatchManualEvent()})});const o={version:(i=(s=window.ayManagerEnv)==null?void 0:s.versionInfo)==null?void 0:i.versionId,deployment:(l=(a=window.ayManagerEnv)==null?void 0:a.versionInfo)==null?void 0:l.deployId,deploymentPercentage:((u=(c=window.ayManagerEnv)==null?void 0:c.versionInfo)==null?void 0:u.percentage)||0};return{assertive:window.assertive,ayManagerEnv:window.ayManagerEnv,ayData:o}}const x5=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomImpression=="function"&&window.assertive.logCustomImpression(e)}))},k5=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomClick=="function"&&window.assertive.logCustomClick(e)}))},Au=Je.withTag("analytics:helper");function C5(e){if(e==null)return null;const r=e.match("([0-9]{1}_[0-9]{4}_[0-9]{3}_[0-9]{4}_[0-9]{3}(_[0-9]{3})?_[0-9]{6})");return r!=null?r[0]:null}async function VC(){const e="0_1000_100_1000_100_691231";try{const t=await Zk.getConfig();if(t!=null&&t.type_tag)return t.type_tag;const r=(t==null?void 0:t.search_url)||null,n=C5(r);if(n)return n;const s=new URL(location.href).searchParams.get("type")||"0_1000_100_1000_100_691231";return s||e}catch(t){return Au.error(`Error getting type tag: ${t}`),e}}function T5(){const e=ti();return e.path.includes("/v8/article/")?"/v8/article":e.path.includes("/article/")?"/article":e.path.includes("/video/")?"/video":e.path}function I5({fullUrl:e=!1}={}){return e?window.location.href:"https://"+window.location.hostname+window.location.pathname}function A5(){const e=SV(),{newsToggle:t}=ga(e);return t.value?"on":"off"}function O5(){return b5().mixpanelPropertyName.value}function Pd(){return Op==null?void 0:Op.version}function R5(){const t=Pd().split(".").map(s=>parseInt(s,10));if(t.length!==3||t.some(isNaN))return;const[r,n,o]=t;return r*1e6+n*1e3+o}function hy(){const e=window.location.pathname;return e.includes("article")?"article":e.includes("summary")?"summary":e.includes("video")?"video":"homepage"}const L5=async e=>{e.value&&await new Promise(t=>{const r=Oe(e,n=>{n||(r(),t(!0))})})},WC=async(e,t)=>{const{articleSummary:r}=w5(e),n=ti(),o=mV(),{data:s,isLoading:i}=ga(o),{ayData:a}=await E5();await L5(i);const l={ntp_type_tag:await VC(),ntp_window_active:window.isPageVisible||document.visibilityState==="visible",ntp_url:I5(),ntp_app_version:Pd(),ntp_app_version_number:R5(),ntp_layout:T5(),ntp_page_type:hy(),ntp_assertive_data:a??void 0,ntp_news_content_toggle:A5(),ntp_is_user_idle:window.isUserIdle??!1,ntp_user_settings:{theme:O5(),ai_news_summary:{...r}}};if(t==="NtpPage_Viewed"||t==="NtpAd_Rendered"||t==="NtpMoreNews_Loaded"){const{browser_window_size:u,browser_window_height:f,browser_window_width:d,column_count:p}=dV();l.browser_window_size=u,l.browser_window_height=f,l.browser_window_width=d,["/","/v8","/v8/"].includes(n.path)&&(l.column_count=p)}if(["/","/v8","/v8/"].includes(n.path)&&(l.ntp_layout_skeleton=Me(s.value)),["/","/v8","/v8/"].includes(n.path)&&(t==="NtpPage_Viewed"||t==="NtpMoreNews_Loaded"))try{const{client:u}=await ss();if(!u)throw new Error("OpenFeature client is not available");if(!u.getBooleanValue("ntp_visible_content_enabled",!1))return l;const p=_V(!0);if(p.length===0)return Au.warn(`[visibleContent] No content found in registry for ${t}; sending event without visibleContent`),l;const g=l.column_count;if(!g||g<=0)return Au.warn(`[visibleContent] column_count missing/invalid (${g}) for ${t}; sending event without visibleContent`),l;l.visibleContent=bV(p,g),t==="NtpMoreNews_Loaded"&&wV()}catch(u){Au.warn("Failed to check visible content feature flag",u)}return l},S0=[];function P5(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(S0.includes(t.ntp_placement_name))return!1;S0.push(t.ntp_placement_name)}return!0}function N5(e){return e.ntp_content_type==="article"||e.ntp_content_type==="video"}const M5=Qe(e=>{const t=at(),r=Pd(),n=t.public.buildVersion||r;try{"nocache"in e._route.query&&(Je.log("Clearing all storage due to no-cache query param"),Rn.clear());const o=Rn.getItem("app:buildVersion");n!==o&&(["app:config:adSettings","app:config:layoutSettings","app:config:layoutSkeleton","app:config:siteSettings","app:buildVersion"].forEach(i=>{Rn.removeItem(i)}),Rn.setItem("app:buildVersion",`${n}`))}catch{}e.provide("buildVersion",n),e.provide("storage",Rn)}),E0=Je.withTag("plugins:filters"),zC=O.object({userAgent:O.string().nullable(),country:O.string(),isMobile:O.boolean().default(!1)}),x0=zC.parse({country:"US",userAgent:null,isMobile:!1}),D5=Qe(async e=>{var n;let t,r;try{const o="/api/v2/filters",s=([t,r]=Pt(()=>$fetch(o)),t=await t,r(),t),i={...s,isMobile:((n=s.userAgent)==null?void 0:n.includes("Mobile"))||!1},a=zC.safeParse(i);if(!a.success){E0.warn("Invalid user filtering data:",a.error),e.provide("filters",x0);return}e.provide("filters",a.data)}catch(o){E0.warn("Error fetching user filtering data:",o),e.provide("filters",x0)}}),$5=Qe({name:"openfeature",setup:async e=>{let t,r;const{loaded:n,client:o}=([t,r]=Pt(()=>ss()),t=await t,r(),t);e.provide("openfeatureLoaded",n),e.provide("openfeature",o)}});function GC(){return window.location.pathname.includes("/v8/article/")?`https://${window.location.hostname}/v8/article/`:window.location.pathname.includes("/article/")?`https://${window.location.hostname}/article/`:window.location.pathname.includes("/video/")?`https://${window.location.hostname}/video/`:`https://${window.location.hostname}${window.location.pathname}`}function F5(e=_m){return vE(e,{asyncContext:!1})}function U5(e){var r;let t;return pa()&&(t=(r=er())==null?void 0:r.appContext.app.$nuxt),t||(t=F5(e).tryUse()),t||null}function j5(e){const t=U5(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function B5(){const e=j5();return e._appConfig||(e._appConfig=Jt(Dr)),e._appConfig}const ja={SM:480,MD:600,LG:767,XL:1024},k0=Je.withTag("utils:loadScriptAsync"),au=new Map;function wl(e,t,r={}){const n=t.src||t.key;if(!n)throw new Error("Script key or src is required");const o=t.src,s=t.textContent;return au.has(n)||au.set(n,new Promise((i,a)=>{if(typeof document>"u")return typeof $s=="function"&&e==="head"?$s({script:[{...o?{src:o}:{},...s?{textContent:s}:{},type:"text/javascript",async:!0,onload:()=>{i()},onerror:()=>{a(new Error(`Failed to load script: ${n}`))},...r,...t.key?{key:t.key}:{}}]}):(k0.warn("loadScriptAsync is called outside of the browser environment"),a(new Error("Document is not defined")));if(o){const c=document.querySelector(`script[src="${o}"]`);if(c)if(c.hasAttribute("data-loaded")){i();return}else{k0.warn(`loadScriptAsync: Script with src "${o}" is already present but not loaded yet. Attaching listeners.`);const u=()=>{c.setAttribute("data-loaded","true"),i(),c.removeEventListener("load",u),c.removeEventListener("error",f)},f=()=>{c.removeAttribute("data-loaded"),a(new Error(`Failed to load script: ${n}`)),c.removeEventListener("load",u),c.removeEventListener("error",f)};c.addEventListener("load",u),c.addEventListener("error",f),c.hasAttribute("data-loaded")&&u();return}}const l=document.createElement("script");l.type="text/javascript",l.async=!0,o?(l.src=o,l.referrerPolicy="no-referrer-when-downgrade"):s&&(l.textContent=s,i()),l.onload=()=>{l.setAttribute("data-loaded","true"),i()},l.onerror=()=>{l.removeAttribute("data-loaded"),a(new Error(`Failed to load script: ${n}`))},e==="head"?document.head.appendChild(l):document.body.appendChild(l)})),au.get(n)}const pi=Je.withTag("useTaboolaAds"),H5=vc(()=>{var l,c;const e=Fr().taboola.publisherName,{$assertive:t}=Ie(),r=((c=(l=t==null?void 0:t.analytics)==null?void 0:l.custom)==null?void 0:c.custom_1)||"",n=hy()==="homepage"?wl("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ homepage:'auto', custom_tracking:'sub_id=${r}' }); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } } (document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/${e}/loader.js', 'tb_loader_script'); if(window.performance && typeof(window.performance.mark) == 'function') {window.performance.mark('tbl_ic');}`,key:"taboola-homepage-header-script"},{id:"taboola-homepage-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,onload:()=>pi.debug("Taboola script loaded."),onerror:()=>pi.error("Taboola script failed to load.")}):wl("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ article:'auto', custom_tracking:'sub_id=${r}' }); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } } (document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/${e}/loader.js', 'tb_loader_script'); if(window.performance && typeof(window.performance.mark) == 'function') {window.performance.mark('tbl_ic');}`,key:"taboola-article-header-script"},{id:"taboola-article-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,onload:()=>pi.debug("Taboola script loaded."),onerror:()=>pi.error("Taboola script failed to load.")}),o=wl("body",{textContent:`window._taboola = window._taboola || []; _taboola.push({flush: true});`,key:"taboola-homepage-body-script"},{id:"taboola-homepage-body-script",type:"text/javascript",async:!0,onload:()=>pi.debug("Taboola body script loaded."),onerror:()=>pi.error("Taboola body script failed to load.")});return{triggerTaboolaRenderedEvent:async(u,f,d,p)=>{await n,await o,p(),window._taboola=window._taboola||[],window._taboola.push({mode:u,container:f,placement:d,target_type:"mix"})},fireRenderCallback:(u,f,d)=>new Promise(p=>{window._taboola.push({listenTo:"render",handler:function(g){f.value=!0,g.detail.placement===u&&(d(),p())}})}),callRenderTaboolaWidgets:async()=>{await n,await o,window._taboola=window._taboola||[],window._taboola.push({notify:"newPageLoad"}),window._taboola.push({flush:!0})}}}),lu=Je.withTag("useAdFunctions"),V5=()=>{const{track:e}=Zo(),{callRenderResearchWidgets:t}=gy(),{callRenderTaboolaWidgets:r}=H5(),n=(f,d)=>{k5(d),e("NtpAd_Clicked",f)},o=(f,d)=>{x5(d),e("NtpAd_Rendered",f)},s=(f,d,p,g)=>{let h=0;try{if(!f)throw new Error("No element to render when visible");if(!d){p&&C0(f);const y=g();y instanceof Promise&&y.catch(b=>{lu.error("Error in async callback for non-lazy render",b)});return}const m=Lx(f,{threshold:1/100});oD(m,()=>{h&&clearTimeout(h),m.value&&(h=setTimeout(()=>{p&&C0(f);const y=g();y instanceof Promise&&y.catch(b=>{lu.error("Error in async callback for element visibility",b)})},1))})}catch(m){h&&clearTimeout(h),lu.error("Unable to render element when visible",m)}},i=()=>{window.ayManagerEnv.cmd=window.ayManagerEnv.cmd||[];try{window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.changePage(),window.ayManagerEnv.dispatchManualEvent()}),t(),r()}catch(f){lu.error("Error triggering ad renders on breakpoint change",f)}},{width:a}=Nx(),l=ue("MD"),c=X(()=>a.value<=ja.LG),u=X(()=>a.value>=ja.XL);return Oe(a,f=>{let d=l.value;f>=ja.LG?d="LG":f>=ja.MD?d="MD":f>=ja.SM?d="SM":d="XS",d!==l.value&&(l.value=d,i())}),{adClicked:n,adRendered:o,renderWhenCurrentElementIsVisible:s,triggerAdRenders:i,isMobile:c,isXLDesktop:u}},W5=It({__name:"Outbrain",props:{placement:{},widgetId:{},tilePosition:{default:-1},lazyRender:{type:Boolean,default:!1},sticky:{type:Boolean,default:!1},adHeight:{default:"auto"},adWidth:{default:"auto"},adInstanceId:{default:""}},setup(e,{expose:t}){const r=Je.withTag("Outbrain:DXT-1780"),n=e;if(!n.placement||!n.widgetId)throw new Error(`Outbrain component requires placement and widgetId props- ${n.placement}`);const{outbrain:o}=B5(),{adClicked:s,renderWhenCurrentElementIsVisible:i}=V5(),{track:a}=Zo(),{callRenderResearchWidgets:l,triggerOutbrainRenderedEvent:c}=gy(),u=ue(n.placement),f=NA("widgetWrapperEl"),d=ue(""),p=ue(!1),g=ue({"data-ob-portalUrl":"","data-ob-language":"en","data-widget-id":n.widgetId,"data-external-id":"","data-ob-installation-key":(o==null?void 0:o.installationKey)||"","data-external-secondary-id":Q3(),"data-render-registered":!1});g.value["data-ob-portalUrl"]=GC(),g.value["data-external-id"]=window.location.host;function h(x){var A;if(!x)return"";const R=[".ob-rec-source",".ob-source",".ob-author-name"];for(const N of R){const U=x.querySelector(N),L=(A=U==null?void 0:U.textContent)==null?void 0:A.trim();if(L)return L}return""}function m(){return{ntp_tile_position:n.tilePosition,ntp_ad_provider:"outbrain",ntp_creative_id:n.widgetId,ntp_placement_name:n.placement,ntp_ad_brand:d.value}}function y(){s(m(),n.widgetId)}function b(x){const R=x.querySelector("a");R&&!R.getAttribute("data-click-registered")&&(R.setAttribute("data-click-registered","true"),R.addEventListener("click",y))}function _(x){if(!x)return;x.querySelectorAll('a[data-click-registered="true"]').forEach(A=>{A.removeEventListener("click",y),A.removeAttribute("data-click-registered")})}async function v(x){var L,G;await qr();const R=x.element,A=((G=(L=R==null?void 0:R.parentElement)==null?void 0:L.parentElement)==null?void 0:G.parentElement)||null;if(p.value){r.debug("[handleOutbrainRenderedEvent] Already tracked render - skipping",{placement:n.placement,widgetId:n.widgetId});return}const N=A==null?void 0:A.classList.contains(n.placement),U={placement:n.placement,placementClassName:u.value,widgetId:n.widgetId,hasElement:!!R,hasParentElement:!!A,parentElementTag:A==null?void 0:A.tagName,parentElementClasses:A?Array.from(A.classList):[],expectedClass:n.placement,hasExpectedClass:N,hasTrackedRender:p.value,widgetWrapperRefExists:!!f.value,widgetWrapperRefClasses:f.value?Array.from(f.value.classList):[],timestamp:Date.now()};if(r.debug("[handleOutbrainRenderedEvent] Render event fired",U),!A){let re=0;if(R){let le=R;for(;le.parentElement&&re<3;)le=le.parentElement,re++}r.warn("[handleOutbrainRenderedEvent] No parent element - DOM not ready?",{placement:n.placement,hasElement:!!R,elementParentCount:re});return}if(!N){r.warn("[handleOutbrainRenderedEvent] Class mismatch - event may be lost",{placement:n.placement,expectedClass:n.placement,placementClassName:u.value,parentElementClasses:Array.from(A.classList),widgetWrapperClasses:f.value?Array.from(f.value.classList):[]});return}if(A&&!p.value&&N){p.value=!0,r.debug("[handleOutbrainRenderedEvent] Processing render - tracking event",{placement:n.placement,widgetId:n.widgetId}),b(x.element);const re=await new Promise(q=>{const oe=h(R);if(oe)return q(oe);let ne=null,Se=null;const ct=new MutationObserver(()=>{const We=h(R);We&&(ve(),q(We))}),ve=()=>{ct.disconnect(),ne!==null&&"cancelIdleCallback"in window&&window.cancelIdleCallback(ne),Se!==null&&clearTimeout(Se)};ct.observe(R,{childList:!0,subtree:!0}),"requestIdleCallback"in window&&(ne=window.requestIdleCallback(()=>{ve(),q(h(R))},{timeout:1e3})),Se=setTimeout(()=>{ve(),q(h(R))},1500)});d.value=re;const le=m();le.ntp_ad_brand||r.error("[handleOutbrainRenderedEvent] adBrand is still empty after MutationObserver timeout",{placement:n.placement,widgetId:n.widgetId,innerHTML:R==null?void 0:R.innerHTML.substring(0,500)}),a("NtpAd_Rendered",le),r.debug("[handleOutbrainRenderedEvent] Tracking NtpAd_Rendered",le)}}const S=ue(!1);async function E(){var R,A;if(S.value=!0,await qr(),!f.value||(R=f.value)!=null&&R.getAttribute("data-render-registered")){r.debug("[renderOutbrainAd] Early return",{placement:n.placement,hasWrapper:!!f.value,isAlreadyRegistered:(A=f.value)==null?void 0:A.getAttribute("data-render-registered")});return}const x=Y5(n.placement,f.value);u.value=x>0?`${n.placement} ${n.placement}-${x}`:n.placement,f.value.setAttribute("data-render-registered","true");try{await l(),await c(n.widgetId,v),r.debug("[renderOutbrainAd] Triggering Outbrain rendered event",{widgetId:n.widgetId,placement:n.placement})}catch(N){const U=N instanceof Error?N.message:"Unknown error",L={...m(),ntp_error_message:U};a("NtpAd_Render_Failed",L),r.error("[renderOutbrainAd] Error rendering Outbrain ad",{placement:n.placement,widgetId:n.widgetId,error:N})}}return Or(()=>{r.debug("[onMounted] Outbrain component mounted",{placement:n.placement,widgetId:n.widgetId,lazyRender:n.lazyRender,sticky:n.sticky,tilePosition:n.tilePosition,adInstanceId:n.adInstanceId}),i(f.value,n.lazyRender,n.sticky,E)}),Qs(()=>{f.value&&_(f.value)}),t({renderOutbrainAd:E,handleOutbrainRenderedEvent:v}),(x,R)=>(me(),_t("div",{ref_key:"widgetWrapperEl",ref:f,class:et(u.value)},[S.value?(me(),_t("div",ir({key:0,class:["OUTBRAIN",u.value]},g.value),null,16)):Xt("",!0)],2))}}),Ba=Je.withTag("useOutbrainAds"),gy=vc(()=>{const e=()=>wl("head",{src:"https://widgets.outbrain.com/outbrain.js",key:"outbrain-homepage-header-script"},{id:"outbrain-homepage-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,"data-disableLocalStorageGdpr":"true",onload:()=>Ba.debug("Outbrain script loaded."),onerror:()=>Ba.error("Outbrain script failed to load.")}),t=async()=>{if(await e(),!window.OBR||!window.OBR.extern||typeof window.OBR.extern.researchWidget!="function"){Ba.warn("Outbrain research widget function not available after script load");return}window.OBR.extern.researchWidget()};return{callRenderResearchWidgets:t,triggerOutbrainRenderedEvent:async(o,s)=>{await e(),window.OBREvents||(window.OBREvents=[],Ba.warn("Initialized empty OBREvents array after script load")),window.OBREvents.push({name:"rendered",widgetId:o,feedCards:1,callback:s})},renderFallbackOutbrainAd:async(o,s)=>{const i=q5(o);if(!i.widgetId||!s)return;const a=`${i.placement}-fallback`;s.classList.remove(o),s.classList.add(a),s.innerHTML="";try{const{vueApp:l}=Ie(),c=Tt(W5,{...i,placement:a});c.appContext=l._context,uR(c,s),await t()}catch(l){Ba.error("[Native-Fallback]: Error rendering fallback Outbrain ad component",l)}}}}),Gs=Je.withTag("adFunctions");function my(e){return e.replace(/__ayManagerEnv__.+$/,"")}function z5(e,t){const{track:r}=Zo();r("NtpAd_Rendered",{ntp_ad_brand:"programmatic",ntp_ad_provider:"programmatic",ntp_creative_id:t,ntp_placement_name:e,ntp_ad_refresh:!1})}function G5(e){var o;const t=e.slot.getSlotElementId(),r=(o=document.getElementById(t))==null?void 0:o.parentElement,n=my(t);if(!r){Gs.error("Element not found for native ad fallback",n);return}if(e.isEmpty)try{const{renderFallbackOutbrainAd:s}=gy();window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.destroy([t],{useInstanceCodes:!0})}),s(n,r);return}catch(s){Gs.error("[Native-Fallback]: Error on Gtag slotRenderEnded listener for native ad fallback",s)}z5(n,e.slot.getAdUnitPath())}function q5(e){var r,n;const t=(r=Fr().adops)==null?void 0:r.placements;if(!t){Gs.error("No outbrain widgets found");return}if(!t||!((n=t[e])!=null&&n.outbrain)){Je.error("No outbrain widget found for: ",e);return}return{...t[e].outbrain,fallback:!0,placement:e}}function K5(e){var r,n;const t=(r=Fr().adops)==null?void 0:r.placements;if(!t){Gs.error("No mapping for placement to outbrain widgets found.");return}if(!t[e]||!((n=t[e].outbrain)!=null&&n.widgetId)){Gs.error("No outbrain widget found for: ",e);return}return t[e].outbrain.widgetId}function Y5(e,t){if(!t||!e)return Gs.error("Element is null for placement:",e),0;const r=Array.from(document.querySelectorAll(`.${e}`)).filter(n=>n.hasAttribute("ad"));if(r.length>1&&t){const n=Array.from(r).findIndex(o=>o===t);if(n!==-1)return n}return 0}function C0(e,t=3e3){if(!e){Gs.error("No element to handle sticky ad");return}e.classList.add("sticky"),e.classList.add("top-0"),e.classList.add("z-[1000]");let r;window.addEventListener("scroll",()=>{e.classList.contains("sticky")||clearTimeout(r),r=setTimeout(()=>{e.classList.remove("sticky"),e.classList.remove("top-0"),e.classList.remove("z-[1000]")},t)})}const qC=[{min:0,max:2,increment:.05},{min:2,max:5,increment:.1},{min:5,max:10,increment:.25},{min:10,max:20,increment:.5}],Z5=e=>{if(!e)return null;const t=qC.find(n=>e>=n.min&&e{const a=await r(i);return{placement:i,cpm:a}});(await Promise.allSettled(o)).forEach(i=>{i.status==="fulfilled"&&i.value.cpm?n.set(i.value.placement,i.value.cpm):i.status==="rejected"&&Je.error("Failed to fetch CPM for placement:",i.reason)})}catch(o){Je.error("Error fetching CPMs:",o)}return n}function J5(e,t,r,n){const o=my(e);if(!n||!r.has(o)){t.updateTargetingFromMap({placement:o});return}const s=Number(Fr().defaultCpm);t.updateTargetingFromMap({ay_floor:Z5(r.get(o)??s??0)??"",placement:o}),Je.info(`Updated slot targeting for ${o} with ay_floor: ${r.get(o)}`)}const T0=Je.withTag("utils:scriptLoadAY");async function Q5(e,t,r,n,o,s){const{isDevMode:i,devDisableAds:a,devAYTestEntityId:l}=at().public;if(i&&a)return T0.info("Ads are disabled in development mode"),{ayManagerEnv:null,assertive:null,loading:!1};if(window.assertive&&window.ayManagerEnv)return{ayManagerEnv:window.ayManagerEnv,assertive:window.assertive,loading:!0};const c=i&&l?l:e,u={integrations:{webAnalytics:!0},logUnfilled:!0,custom:{layout:n,userState:null,custom_1:t.type_tag,custom_2:t.ntp_app_version,custom_3:t.host_browser_app_version,custom_4:GC(),custom_5:o,custom_6:s},useHistoryChangeTrigger:!0},f={ayEntityId:c,floor:r?{enabled:!0,currency:"USD",prebid:!0,priceBuckets:qC}:{},debug:!0,analytics:u};window.assertiveYieldAnalytics??(window.assertiveYieldAnalytics={...u}),window.assertive??(window.assertive={...f}),window.ayManagerEnv??(window.ayManagerEnv={cmd:[]});try{c&&await wl("head",{src:`https://${c}.ay.delivery/manager/${c}`})}catch(d){return T0.error("Failed to load Assertive Yield SDK:",d),{ayManagerEnv:null,assertive:null,loading:!1}}return window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var d,p;(p=(d=window.assertive)==null?void 0:d.analytics)!=null&&p.custom&&(window.assertive.analytics.custom.custom_5=o,window.assertive.analytics.custom.custom_6=s)}),{ayManagerEnv:window.ayManagerEnv,assertive:window.assertive,loading:!0}}const yy=Je.withTag("useCpms"),Mg="app:ad-cpms";function _y(){return new Date().toISOString().split("T")[0]}function Fp(){return new Date().getUTCHours().toString().padStart(2,"0")}function eW(){return Number(Fr().defaultCpm)}function tW(){try{const e=Rn.getItem(Mg);if(!e)return null;const t=JSON.parse(e);return t.date===_y()?t:null}catch(e){return yy.error("Error reading stored data from localStorage:",e),Rn.removeItem(Mg),null}}function rW(e){try{Rn.setItem(Mg,JSON.stringify(e))}catch(t){yy.error("Error saving data to localStorage:",t)}}async function nW(){const t=`/api/v2/ad-placement/cpm?date=${_y()}`;return await $fetch(t)}function Up(e,t,r){var o,s,i;if(!e)return;const n=(i=(s=(o=e.prices)==null?void 0:o[r])==null?void 0:s.cpms)==null?void 0:i[t];return n==null?void 0:Number(n)}function I0(e){var r,n;const{track:t}=Zo();return t("NtpDefaultCpm_Used",{placement:e,country:((n=(r=window.ayManagerEnv)==null?void 0:r.geoInfo)==null?void 0:n.country)??""}),eW()}function oW(){const e=ue(null);let t=null,r=null;function n(a){if(e.value){const l=Up(e.value,a,Fp());return Promise.resolve(l!==void 0?Number(l):void 0)}return Promise.resolve(void 0)}function o(a){const l=tW();if(l){e.value=l;const c=Up(l,a,Fp());return Promise.resolve(c!==void 0?Number(c):void 0)}return Promise.resolve(void 0)}async function s(a){const l=_y();async function c(){const u=await nW(),f={date:l,prices:u};return e.value=f,rW(f),u}(!t||r!==l)&&(r=l,t=c());try{if(await t,e.value){const u=Up(e.value,a,Fp());return u!==void 0?Number(u):void 0}}catch(u){yy.error("Error fetching placement data:",u);return}}async function i(a){const l=K5(a);if(!l)return I0(a);const c=[n,o,s];for(const u of c){const f=await u(l);if(f!==void 0)return f}return I0(a)}return{getHourlyCpmForPlacement:i}}function sW(){return{getHourlyCpmForPlacement:oW().getHourlyCpmForPlacement}}const iW=vc(sW),jp=Je.withTag("revContentStore"),aW="/api/v2/revcontent",lW="https://trends.revcontent.com/view.php",cW=ha("revContent",{state:()=>({ads:[],currentIndex:0,offset:0}),actions:{async splitTestCheck(){const{client:e}=await ss();return e.getStringValue("splittestname","default")==="sp7_rev_content_native"},async init(){if(await this.splitTestCheck())try{await this.fetchAds(3)}catch(e){jp.error("Failed to initialize and populate RevContent store",e)}},async fetchAds(e){if(await this.splitTestCheck())try{const t=await fetch(`${aW}?offset=${this.offset}&count=${e||1}`,{method:"POST"});if(!t.ok)throw new Error(`Failed to fetch RevContent ads : ${t.statusText}`);const r=await t.json();return this.offset=this.offset+(e||1),this.ads=[...this.ads,...r.content],r.content[0]}catch(t){return jp.error("Failed to fetch RevContent ads",t),[]}},async getNextAd(){const e={...this.ads[this.currentIndex]};if(this.currentIndex===0?e.view_type="widget":e.view_type="fill",this.currentIndex=this.currentIndex+1,!e.headline){const t=await this.fetchAds(1);if(t)return t.view_type="fill",t}return e},async postView(e){var t;try{const r=new URLSearchParams([["view",decodeURIComponent(e.viewHash??"")],["p[]",((t=e.index)==null?void 0:t.toString())??"0"],["view_type",e.view_type??"fill"]]);await fetch(`${lW}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:r})}catch(r){jp.error("Failed to post view for RevContent ad",r)}}}}),Bp=O.object({y:O.number(),x:O.number(),classes:O.string()}),uW=O.object({billboardAdClasses:O.object({widgetId:O.string().optional(),classes:O.string().optional()}),billboardAdSize:O.optional(O.union([O.literal("small"),O.literal("medium"),O.literal("large")])),grid3:O.array(Bp),grid2:O.array(Bp),grid1:O.array(Bp)}),fW=O.object({provider:O.union([O.literal("affinity"),O.literal("admarketplace"),O.literal("off")]),tilesCount:O.number().default(5),design:O.union([O.literal("msn"),O.literal("google")]).optional(),variant:O.union([O.literal("default"),O.literal("circle"),O.literal("large-primary"),O.literal("large-secondary")]).optional()}),dW=O.object({provider:O.union([O.literal("affinity"),O.literal("admarketplace")]),tilesCount:O.number().default(5)}),pW=O.object({provider:O.literal("direct"),name:O.string(),image_url:O.string(),click_url:O.string(),impression_url:O.string()}),hW=O.object({tilesProvider:O.array(O.union([dW,pW])),design:O.union([O.literal("msn"),O.literal("google")]).optional(),variant:O.union([O.literal("default"),O.literal("circle"),O.literal("large-primary"),O.literal("large-secondary")]).optional()}),gW=O.object({isEnabled:O.boolean().default(!0),flooredPlacements:O.array(O.string()).optional().default([])}),A0=O.object({sponsoredTiles:O.optional(fW),dynamicSponsoredTiles:O.optional(hW),aboveFoldSectionAds:O.optional(uW),aboveFoldSectionLeaderboardAd:O.union([O.literal("testsection_leader"),O.literal("testsection_leader"),O.literal("testsection_leader"),O.literal("")]).default("").optional(),adsDynamicFloorPricing:O.optional(gW),enableSubtleGreyAdBackground:O.boolean().optional()}),KC=Cd({defaults:A0.parse({sponsoredTiles:{provider:"off",tilesCount:5},dynamicSponsoredTiles:void 0,aboveFoldSectionAds:void 0,aboveFoldSectionLeaderboardAd:"",enableSubtleGreyAdBackground:!1,adsDynamicFloorPricing:{isEnabled:!1,flooredPlacements:[]}}),configStoreKey:"adSettings",schema:e=>A0.parse(e)}),O0=Je.withTag("plugins/assertive.client"),mW=Qe({name:"assertive",dependsOn:["openfeature"],setup:async e=>{let t,r;const{client:n}=([t,r]=Pt(()=>ss()),t=await t,r(),t),{track:o}=Zo(),{ayEntityId:s}=at().public,i=n.getStringValue("splittestname","control"),a=n.getStringValue("layoutSkeleton","default"),l=KC();[t,r]=Pt(()=>l.initialized),await t,r();const{data:c}=ga(l),u=cW();[t,r]=Pt(()=>u.init()),await t,r();const f=X(()=>{var b;return(b=c.value.adsDynamicFloorPricing)==null?void 0:b.isEnabled}),d=X(()=>{var b;return Array.from(((b=c.value.adsDynamicFloorPricing)==null?void 0:b.flooredPlacements)??[])}),p={ntp_app_version:Pd(),host_browser_app_version:([t,r]=Pt(()=>yk()),t=await t,r(),t),type_tag:([t,r]=Pt(()=>VC()),t=await t,r(),t)},g=no.getContext(),h=([t,r]=Pt(()=>Q5(s,p,f.value,i,a,typeof g.cohort=="string"?g.cohort:null)),t=await t,r(),t);if(!h.loading){O0.error("Assertive Yield SDK failed to load");return}O0.info("Assertive Yield loaded");const{getHourlyCpmForPlacement:m}=iW(),y=([t,r]=Pt(()=>X5(f.value,d.value,m)),t=await t,r(),t);window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.onEvent("afterDefineSlot",(b,_)=>{J5(b,_,y,f.value)})}),window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.onEvent("afterRefresh",b=>{b.forEach(_=>{const v={ntp_tile_position:-1,ntp_ad_provider:"programmatic",ntp_creative_id:"",ntp_placement_name:my(_),ntp_ad_brand:"",ntp_ad_clickurl:"",ntp_ad_refresh:!0};o("NtpAd_Rendered",v)})})}),window.analytics||(window.analytics=Zo()),e.provide("ayLoaded",h),e.provide("assertive",window.assertive)}}),yW=Qe(e=>{e.vueApp.directive("click-outside",{beforeMount:(t,{value:r})=>{t.clickOutsideEvent=n=>{t===n.target||t.contains(n.target)||r()},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted:t=>{document.body.removeEventListener("click",t.clickOutsideEvent)}})});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:YC,setPrototypeOf:R0,isFrozen:_W,getPrototypeOf:vW,getOwnPropertyDescriptor:bW}=Object;let{freeze:wr,seal:Yr,create:ZC}=Object,{apply:Dg,construct:$g}=typeof Reflect<"u"&&Reflect;wr||(wr=function(t){return t});Yr||(Yr=function(t){return t});Dg||(Dg=function(t,r,n){return t.apply(r,n)});$g||($g=function(t,r){return new t(...r)});const cu=$r(Array.prototype.forEach),L0=$r(Array.prototype.pop),Ha=$r(Array.prototype.push),Ou=$r(String.prototype.toLowerCase),Hp=$r(String.prototype.toString),P0=$r(String.prototype.match),Va=$r(String.prototype.replace),wW=$r(String.prototype.indexOf),SW=$r(String.prototype.trim),Jr=$r(Object.prototype.hasOwnProperty),fr=$r(RegExp.prototype.test),Wa=EW(TypeError);function $r(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Ou;R0&&R0(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const s=r(o);s!==o&&(_W(t)||(t[n]=s),o=s)}e[o]=!0}return e}function xW(e){for(let t=0;t/gm),AW=Yr(/\${[\w\W]*}/gm),OW=Yr(/^data-[\-\w.\u00B7-\uFFFF]/),RW=Yr(/^aria-[\-\w]+$/),XC=Yr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LW=Yr(/^(?:\w+script|data):/i),PW=Yr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),JC=Yr(/^html$/i),NW=Yr(/^[a-z][.\w]*(-[.\w]+)+$/i);var F0=Object.freeze({__proto__:null,ARIA_ATTR:RW,ATTR_WHITESPACE:PW,CUSTOM_ELEMENT:NW,DATA_ATTR:OW,DOCTYPE_NAME:JC,ERB_EXPR:IW,IS_ALLOWED_URI:XC,IS_SCRIPT_OR_DATA:LW,MUSTACHE_EXPR:TW,TMPLIT_EXPR:AW});const Ga={element:1,text:3,progressingInstruction:7,comment:8,document:9},MW=function(){return typeof window>"u"?null:window},DW=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const s="dompurify"+(n?"#"+n:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},U0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function QC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MW();const t=ge=>QC(ge);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==Ga.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:p}=e,g=l.prototype,h=za(g,"cloneNode"),m=za(g,"remove"),y=za(g,"nextSibling"),b=za(g,"childNodes"),_=za(g,"parentNode");if(typeof i=="function"){const ge=r.createElement("template");ge.content&&ge.content.ownerDocument&&(r=ge.content.ownerDocument)}let v,S="";const{implementation:E,createNodeIterator:x,createDocumentFragment:R,getElementsByTagName:A}=r,{importNode:N}=n;let U=U0();t.isSupported=typeof YC=="function"&&typeof _=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:G,TMPLIT_EXPR:re,DATA_ATTR:le,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:Se}=F0;let{IS_ALLOWED_URI:ct}=F0,ve=null;const We=Ne({},[...N0,...Vp,...Wp,...zp,...M0]);let je=null;const tr=Ne({},[...D0,...Gp,...$0,...uu]);let ze=Object.seal(ZC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ht=null,W=null,Q=!0,J=!0,ie=!1,te=!0,we=!1,C=!0,I=!1,$=!1,B=!1,H=!1,k=!1,T=!1,D=!0,j=!1;const z="user-content-";let K=!0,P=!1,F={},ee=null;const de=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Le=null;const Pe=Ne({},["audio","video","img","source","image","track"]);let gt=null;const Ct=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",cr="http://www.w3.org/1999/xhtml";let Hn=cr,Kt=!1,Sr=null;const Oc=Ne({},[qt,Vt,cr],Hp);let Rc=Ne({},["mi","mo","mn","ms","mtext"]),Lc=Ne({},["annotation-xml"]);const RI=Ne({},["title","style","font","a","script"]);let Ea=null;const LI=["application/xhtml+xml","text/html"],PI="text/html";let Wt=null,ii=null;const NI=r.createElement("form"),Vy=function(M){return M instanceof RegExp||M instanceof Function},Vd=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ii&&ii===M)){if((!M||typeof M!="object")&&(M={}),M=ms(M),Ea=LI.indexOf(M.PARSER_MEDIA_TYPE)===-1?PI:M.PARSER_MEDIA_TYPE,Wt=Ea==="application/xhtml+xml"?Hp:Ou,ve=Jr(M,"ALLOWED_TAGS")?Ne({},M.ALLOWED_TAGS,Wt):We,je=Jr(M,"ALLOWED_ATTR")?Ne({},M.ALLOWED_ATTR,Wt):tr,Sr=Jr(M,"ALLOWED_NAMESPACES")?Ne({},M.ALLOWED_NAMESPACES,Hp):Oc,gt=Jr(M,"ADD_URI_SAFE_ATTR")?Ne(ms(Ct),M.ADD_URI_SAFE_ATTR,Wt):Ct,Le=Jr(M,"ADD_DATA_URI_TAGS")?Ne(ms(Pe),M.ADD_DATA_URI_TAGS,Wt):Pe,ee=Jr(M,"FORBID_CONTENTS")?Ne({},M.FORBID_CONTENTS,Wt):de,ht=Jr(M,"FORBID_TAGS")?Ne({},M.FORBID_TAGS,Wt):{},W=Jr(M,"FORBID_ATTR")?Ne({},M.FORBID_ATTR,Wt):{},F=Jr(M,"USE_PROFILES")?M.USE_PROFILES:!1,Q=M.ALLOW_ARIA_ATTR!==!1,J=M.ALLOW_DATA_ATTR!==!1,ie=M.ALLOW_UNKNOWN_PROTOCOLS||!1,te=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=M.SAFE_FOR_TEMPLATES||!1,C=M.SAFE_FOR_XML!==!1,I=M.WHOLE_DOCUMENT||!1,H=M.RETURN_DOM||!1,k=M.RETURN_DOM_FRAGMENT||!1,T=M.RETURN_TRUSTED_TYPE||!1,B=M.FORCE_BODY||!1,D=M.SANITIZE_DOM!==!1,j=M.SANITIZE_NAMED_PROPS||!1,K=M.KEEP_CONTENT!==!1,P=M.IN_PLACE||!1,ct=M.ALLOWED_URI_REGEXP||XC,Hn=M.NAMESPACE||cr,Rc=M.MATHML_TEXT_INTEGRATION_POINTS||Rc,Lc=M.HTML_INTEGRATION_POINTS||Lc,ze=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&Vy(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ze.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&Vy(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ze.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ze.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(J=!1),k&&(H=!0),F&&(ve=Ne({},M0),je=[],F.html===!0&&(Ne(ve,N0),Ne(je,D0)),F.svg===!0&&(Ne(ve,Vp),Ne(je,Gp),Ne(je,uu)),F.svgFilters===!0&&(Ne(ve,Wp),Ne(je,Gp),Ne(je,uu)),F.mathMl===!0&&(Ne(ve,zp),Ne(je,$0),Ne(je,uu))),M.ADD_TAGS&&(ve===We&&(ve=ms(ve)),Ne(ve,M.ADD_TAGS,Wt)),M.ADD_ATTR&&(je===tr&&(je=ms(je)),Ne(je,M.ADD_ATTR,Wt)),M.ADD_URI_SAFE_ATTR&&Ne(gt,M.ADD_URI_SAFE_ATTR,Wt),M.FORBID_CONTENTS&&(ee===de&&(ee=ms(ee)),Ne(ee,M.FORBID_CONTENTS,Wt)),K&&(ve["#text"]=!0),I&&Ne(ve,["html","head","body"]),ve.table&&(Ne(ve,["tbody"]),delete ht.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=DW(p,o)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));wr&&wr(M),ii=M}},Wy=Ne({},[...Vp,...Wp,...kW]),zy=Ne({},[...zp,...CW]),MI=function(M){let Z=_(M);(!Z||!Z.tagName)&&(Z={namespaceURI:Hn,tagName:"template"});const fe=Ou(M.tagName),mt=Ou(Z.tagName);return Sr[M.namespaceURI]?M.namespaceURI===Vt?Z.namespaceURI===cr?fe==="svg":Z.namespaceURI===qt?fe==="svg"&&(mt==="annotation-xml"||Rc[mt]):!!Wy[fe]:M.namespaceURI===qt?Z.namespaceURI===cr?fe==="math":Z.namespaceURI===Vt?fe==="math"&&Lc[mt]:!!zy[fe]:M.namespaceURI===cr?Z.namespaceURI===Vt&&!Lc[mt]||Z.namespaceURI===qt&&!Rc[mt]?!1:!zy[fe]&&(RI[fe]||!Wy[fe]):!!(Ea==="application/xhtml+xml"&&Sr[M.namespaceURI]):!1},wn=function(M){Ha(t.removed,{element:M});try{_(M).removeChild(M)}catch{m(M)}},Pc=function(M,Z){try{Ha(t.removed,{attribute:Z.getAttributeNode(M),from:Z})}catch{Ha(t.removed,{attribute:null,from:Z})}if(Z.removeAttribute(M),M==="is")if(H||k)try{wn(Z)}catch{}else try{Z.setAttribute(M,"")}catch{}},Gy=function(M){let Z=null,fe=null;if(B)M=""+M;else{const Yt=P0(M,/^[\r\n\t ]+/);fe=Yt&&Yt[0]}Ea==="application/xhtml+xml"&&Hn===cr&&(M=''+M+"");const mt=v?v.createHTML(M):M;if(Hn===cr)try{Z=new d().parseFromString(mt,Ea)}catch{}if(!Z||!Z.documentElement){Z=E.createDocument(Hn,"template",null);try{Z.documentElement.innerHTML=Kt?S:mt}catch{}}const rr=Z.body||Z.documentElement;return M&&fe&&rr.insertBefore(r.createTextNode(fe),rr.childNodes[0]||null),Hn===cr?A.call(Z,I?"html":"body")[0]:I?Z.documentElement:rr},qy=function(M){return x.call(M.ownerDocument||M,M,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ky=function(M){return M instanceof f&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof u)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},Yy=function(M){return typeof a=="function"&&M instanceof a};function Vn(ge,M,Z){cu(ge,fe=>{fe.call(t,M,Z,ii)})}const Zy=function(M){let Z=null;if(Vn(U.beforeSanitizeElements,M,null),Ky(M))return wn(M),!0;const fe=Wt(M.nodeName);if(Vn(U.uponSanitizeElement,M,{tagName:fe,allowedTags:ve}),M.hasChildNodes()&&!Yy(M.firstElementChild)&&fr(/<[/\w]/g,M.innerHTML)&&fr(/<[/\w]/g,M.textContent)||M.nodeType===Ga.progressingInstruction||C&&M.nodeType===Ga.comment&&fr(/<[/\w]/g,M.data))return wn(M),!0;if(!ve[fe]||ht[fe]){if(!ht[fe]&&Jy(fe)&&(ze.tagNameCheck instanceof RegExp&&fr(ze.tagNameCheck,fe)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(fe)))return!1;if(K&&!ee[fe]){const mt=_(M)||M.parentNode,rr=b(M)||M.childNodes;if(rr&&mt){const Yt=rr.length;for(let Er=Yt-1;Er>=0;--Er){const Sn=h(rr[Er],!0);Sn.__removalCount=(M.__removalCount||0)+1,mt.insertBefore(Sn,y(M))}}}return wn(M),!0}return M instanceof l&&!MI(M)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&fr(/<\/no(script|embed|frames)/i,M.innerHTML)?(wn(M),!0):(we&&M.nodeType===Ga.text&&(Z=M.textContent,cu([L,G,re],mt=>{Z=Va(Z,mt," ")}),M.textContent!==Z&&(Ha(t.removed,{element:M.cloneNode()}),M.textContent=Z)),Vn(U.afterSanitizeElements,M,null),!1)},Xy=function(M,Z,fe){if(D&&(Z==="id"||Z==="name")&&(fe in r||fe in NI))return!1;if(!(J&&!W[Z]&&fr(le,Z))){if(!(Q&&fr(q,Z))){if(!je[Z]||W[Z]){if(!(Jy(M)&&(ze.tagNameCheck instanceof RegExp&&fr(ze.tagNameCheck,M)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(M))&&(ze.attributeNameCheck instanceof RegExp&&fr(ze.attributeNameCheck,Z)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(Z))||Z==="is"&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&fr(ze.tagNameCheck,fe)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(fe))))return!1}else if(!gt[Z]){if(!fr(ct,Va(fe,ne,""))){if(!((Z==="src"||Z==="xlink:href"||Z==="href")&&M!=="script"&&wW(fe,"data:")===0&&Le[M])){if(!(ie&&!fr(oe,Va(fe,ne,"")))){if(fe)return!1}}}}}}return!0},Jy=function(M){return M!=="annotation-xml"&&P0(M,Se)},Qy=function(M){Vn(U.beforeSanitizeAttributes,M,null);const{attributes:Z}=M;if(!Z)return;const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je,forceKeepAttr:void 0};let mt=Z.length;for(;mt--;){const rr=Z[mt],{name:Yt,namespaceURI:Er,value:Sn}=rr,xa=Wt(Yt);let ur=Yt==="value"?Sn:SW(Sn);if(fe.attrName=xa,fe.attrValue=ur,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Vn(U.uponSanitizeAttribute,M,fe),ur=fe.attrValue,j&&(xa==="id"||xa==="name")&&(Pc(Yt,M),ur=z+ur),C&&fr(/((--!?|])>)|<\/(style|title)/i,ur)){Pc(Yt,M);continue}if(fe.forceKeepAttr||(Pc(Yt,M),!fe.keepAttr))continue;if(!te&&fr(/\/>/i,ur)){Pc(Yt,M);continue}we&&cu([L,G,re],t_=>{ur=Va(ur,t_," ")});const e_=Wt(M.nodeName);if(Xy(e_,xa,ur)){if(v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Er)switch(p.getAttributeType(e_,xa)){case"TrustedHTML":{ur=v.createHTML(ur);break}case"TrustedScriptURL":{ur=v.createScriptURL(ur);break}}try{Er?M.setAttributeNS(Er,Yt,ur):M.setAttribute(Yt,ur),Ky(M)?wn(M):L0(t.removed)}catch{}}}Vn(U.afterSanitizeAttributes,M,null)},DI=function ge(M){let Z=null;const fe=qy(M);for(Vn(U.beforeSanitizeShadowDOM,M,null);Z=fe.nextNode();)Vn(U.uponSanitizeShadowNode,Z,null),!Zy(Z)&&(Z.content instanceof s&&ge(Z.content),Qy(Z));Vn(U.afterSanitizeShadowDOM,M,null)};return t.sanitize=function(ge){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,fe=null,mt=null,rr=null;if(Kt=!ge,Kt&&(ge=""),typeof ge!="string"&&!Yy(ge))if(typeof ge.toString=="function"){if(ge=ge.toString(),typeof ge!="string")throw Wa("dirty is not a string, aborting")}else throw Wa("toString is not a function");if(!t.isSupported)return ge;if($||Vd(M),t.removed=[],typeof ge=="string"&&(P=!1),P){if(ge.nodeName){const Sn=Wt(ge.nodeName);if(!ve[Sn]||ht[Sn])throw Wa("root node is forbidden and cannot be sanitized in-place")}}else if(ge instanceof a)Z=Gy(""),fe=Z.ownerDocument.importNode(ge,!0),fe.nodeType===Ga.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?Z=fe:Z.appendChild(fe);else{if(!H&&!we&&!I&&ge.indexOf("<")===-1)return v&&T?v.createHTML(ge):ge;if(Z=Gy(ge),!Z)return H?null:T?S:""}Z&&B&&wn(Z.firstChild);const Yt=qy(P?ge:Z);for(;mt=Yt.nextNode();)Zy(mt)||(mt.content instanceof s&&DI(mt.content),Qy(mt));if(P)return ge;if(H){if(k)for(rr=R.call(Z.ownerDocument);Z.firstChild;)rr.appendChild(Z.firstChild);else rr=Z;return(je.shadowroot||je.shadowrootmode)&&(rr=N.call(n,rr,!0)),rr}let Er=I?Z.outerHTML:Z.innerHTML;return I&&ve["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&fr(JC,Z.ownerDocument.doctype.name)&&(Er=" `+Er),we&&cu([L,G,re],Sn=>{Er=Va(Er,Sn," ")}),v&&T?v.createHTML(Er):Er},t.setConfig=function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vd(ge),$=!0},t.clearConfig=function(){ii=null,$=!1},t.isValidAttribute=function(ge,M,Z){ii||Vd({});const fe=Wt(ge),mt=Wt(M);return Xy(fe,mt,Z)},t.addHook=function(ge,M){typeof M=="function"&&Ha(U[ge],M)},t.removeHook=function(ge){return L0(U[ge])},t.removeHooks=function(ge){U[ge]=[]},t.removeAllHooks=function(){U=U0()},t}var $W=QC();function FW(e,t){const r=e.hooks??{};let n;for(n in r){const o=r[n];o!==void 0&&t.addHook(n,o)}}function eT(){return $W()}function UW(e={},t=eT){const r=t();FW(e,r);const n=function(o,s){const i=s.value;if(s.oldValue===i)return;const a=`${i}`,l=s.arg,c=e.namedConfigurations,u=e.default??{};if(c&&l!==void 0){o.innerHTML=r.sanitize(a,c[l]??u);return}o.innerHTML=r.sanitize(a,u)};return{mounted:n,updated:n}}const jW={install(e,t={},r=eT){e.directive("dompurify-html",UW(t,r))}},BW=Qe(e=>{e.vueApp.use(jW)});function HW(e){window[`ga-disable-${e}`]=!0}function VW(e){const t=`ga-disable-${e}`;t in window&&delete window[t]}function WW(){const e=at().public.gtag,t=sx(e);let r;r=Eu;const n=a=>{const l=[...t];let c=l.find(u=>u.id===a);return c||(a?(c={id:a},l.unshift(c)):c=l[0]),c||console.error("[nuxt-gtag] Missing Google tag ID"),{tag:c,tags:l}},o=a=>{{const{tag:l,tags:c}=n(a);if(!l)return;window.dataLayer||ox({tags:c}),document.head.querySelector("script[data-gtag]")||$s({script:[{src:Nl(e.url,{id:l.id}),"data-gtag":""}]})}};function s(a){{const{tag:l}=n(a);l&&HW(l.id)}}function i(a){{const{tag:l}=n(a);l&&VW(l.id)}}return{gtag:r,initialize:o,disableAnalytics:s,enableAnalytics:i}}const qp=Je.withTag("plugins:google-tag-manager"),zW=Qe(async e=>{let t,r;const{googleTagManagerId:n,redesignedNtpPaths:o}=Fr(),{gtag:s,initialize:i}=WW(),a=ti(),{client:l}=([t,r]=Pt(()=>ss()),t=await t,r(),t);if(!n){qp.warn("Google Tag Manager: Gtag ID not available in app config");return}i(n),o.includes(a.path)||(s("js",new Date),s("config","UA-62117061-22")),e.hook("app:mounted",()=>{try{window.googletag=window.googletag||{cmd:[]};const c="nofallback"in a.query;window.googletag.cmd.push(()=>{if(!window.googletag.pubads||c){qp.error("addEventListener: Gtag pubads not found");return}window.googletag.pubads().addEventListener("slotRenderEnded",G5);const u=pB(Fk);window.googletag.setConfig({targeting:{page_type:hy(),split_test_name:l.getStringValue("splittestname","default"),ntp_cohort:u}})})}catch(c){qp.error("Error mounting event listeners for native fallback",c)}})}),GW=e=>{e!==void 0&&setTimeout(e,100)},qW=Qe(e=>{const t=r=>{(document==null?void 0:document.visibilityState)==="visible"&&r.focus()};e.vueApp.directive("autofocus-on-document-visible",{mounted:(r,n)=>{r._visibilityChangeEvent=()=>t(r),document.addEventListener("visibilitychange",r._visibilityChangeEvent),GW(n==null?void 0:n.value),r.focus()},unmounted:r=>{document.removeEventListener("visibilitychange",r._visibilityChangeEvent),delete r._visibilityChangeEvent}})});function KW(e,t,r){return(e=(t.split?t.split("."):t).reduce(function(n,o){return n&&n[o]},e))===void 0?r:e}function j0(e,t,r,n){return(t=t.split?t.split("."):t.slice(0)).slice(0,-1).reduce(function(o,s){return/^(__proto__|constructor|prototype)$/.test(s)?{}:o[s]=o[s]||{}},e)[t.pop()]=r,e}function B0(e,t){return e??t}function kn(e,t,r,n){return B0(B0(r[t],n[t]),e)}function YW(e){const t=e||{};function r(n){const o=function(){try{return n.options.persistedState||{}}catch{return{}}}();if(kn(!0,"persist",o,t)===!1)return;const s=kn(n.store.$id,"key",o,{}),i=kn(!1,"overwrite",o,t),a=kn(function(){try{return window.localStorage}catch{return{getItem:function(){},setItem:function(){},removeItem:function(){}}}}(),"storage",o,t),l=kn(function(){return!0},"filter",o,t),c=kn(JSON.stringify,"serialize",o,t),u=kn(JSON.parse,"deserialize",o,t),f=kn(function(v){return v},"migrate",o,{}),d=kn(function(v,S){return S},"merge",o,{}),p=kn(function(v){const S="@@",E=v.setItem(S,"1"),x=function(){v.removeItem(S)};E instanceof Promise?E.then(x):x()},"assertStorage",o,t);function g(v){(o.beforeHydrate||function(){})(n.store.$state);const S=d(n.store.$state,v);i?n.store.$patch(E=>{Object.keys(E).forEach(x=>{E[x]=S[x]})}):n.store.$patch(S),m()}function h(v){if(v!=null){const S=u(v),E=f(S);E instanceof Promise?E.then(g):g(E)}else m()}let m;const y=new Promise(function(v){m=v});let b=0;n.store.$persistedState={isReady:function(){return y},pending:!1};try{_()}catch{m()}function _(){const v=a.getItem(s);v instanceof Promise?v.then(h):h(v)}n.store.$subscribe(function(v,S){if(l(v,S)===!1)return;Array.isArray(o.includePaths)&&(S=o.includePaths.reduce(function(R,A){return j0(R,A,KW(S,A,void 0))},{})),Array.isArray(o.excludePaths)&&(S=u(c(S)),o.excludePaths.forEach(function(R){return j0(S,R,void 0)},{}));const E=c(S),x=a.setItem(s,E);x instanceof Promise&&(++b,n.store.$persistedState.pending=b!==0,x.catch(function(){}).finally(function(){--b,n.store.$persistedState.pending=b!==0}))})}return r}const ZW=Qe(e=>{e.$pinia.use(YW({persist:!1}))}),XW=Qe({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),JW=[TL,LL,eN,rN,nN,oN,iN,DN,BN,HN,VN,YM,kD,TD,nF,iF,lB,cB,fB,M5,D5,$5,mW,yW,BW,zW,qW,ZW,XW],tT=(e="RouteProvider")=>It({name:e,props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,n=t.route,o={};for(const s in t.route)Object.defineProperty(o,s,{get:()=>r===t.renderKey?t.route[s]:n[s],enumerable:!0});return Is(mc,oo(o)),()=>Tt(t.vnode,{ref:t.vnodeRef})}}),QW=tT(),H0=new WeakMap,e2=It({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:r,expose:n}){const o=Ie(),s=ue(),i=jt(mc,null);let a;n({pageRef:s});const l=jt(O1,null);let c;const u=o.deferHydration();if(o.isHydrating){const d=o.hooks.hookOnce("app:error",u);Ht().beforeEach(d)}e.pageKey&&Oe(()=>e.pageKey,(d,p)=>{d!==p&&o.callHook("page:loading:start")});let f=!1;{const d=Ht().beforeResolve(()=>{f=!1});da(()=>{d()})}return()=>Tt(ZE,{name:e.name,route:e.route,...t},{default:d=>{const p=r2(i,d.route,d.Component),g=i&&i.matched.length===d.route.matched.length;if(!d.Component){if(c&&!g)return c;u();return}if(c&&l&&!l.isCurrent(d.route))return c;if(p&&i&&(!l||l!=null&&l.isCurrent(i)))return g?c:null;const h=Yh(d,e.pageKey),m=n2(i,d.route,d.Component);!o.isHydrating&&a===h&&!m&&(o.callHook("page:loading:end"),f=!0),a=h;const y=!!(e.transition??d.route.meta.pageTransition??$h),b=y&&t2([e.transition,d.route.meta.pageTransition,$h,{onAfterLeave:()=>{o.callHook("page:transition:finish",d.Component)}}]),_=e.keepalive??d.route.meta.keepalive??m1;return c=WP(y&&b,UP(_,Tt(HS,{suspensible:!0,onPending:()=>o.callHook("page:start",d.Component),onResolve:()=>{qr(()=>o.callHook("page:finish",d.Component).then(()=>{if(!f&&!m)return f=!0,o.callHook("page:loading:end")}).finally(u))}},{default:()=>{const v={key:h||void 0,vnode:r.default?o2(r.default,d):d.Component,route:d.route,renderKey:h||void 0,trackRootNodes:y,vnodeRef:s};if(!_)return Tt(QW,v);const S=d.Component.type,E=S;let x=H0.get(E);return x||(x=tT(S.name||S.__name),H0.set(E,x)),Tt(x,v)}}))).default(),c}})}});function t2(e){const t=e.filter(Boolean).map(r=>({...r,onAfterLeave:r.onAfterLeave?Cm(r.onAfterLeave):void 0}));return SE(...t)}function r2(e,t,r){if(!e)return!1;const n=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(r==null?void 0:r.type)});return!n||n===-1?!1:t.matched.slice(0,n).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||r&&Yh({route:t,Component:r})!==Yh({route:e,Component:r})}function n2(e,t,r){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(r==null?void 0:r.type)}){switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function l2(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}const c2=/(-?[0-9.]*[0-9]+[0-9.]*)/g,u2=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function V0(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(c2);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=u2.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function f2(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function d2(e,t){return e?""+e+""+t:t}function p2(e,t,r){const n=f2(e);return d2(n.defs,t+n.content+r)}const h2=e=>e==="unset"||e==="undefined"||e==="none";function g2(e,t){const r={...vy,...e},n={...sT,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(h=>{const m=[],y=h.hFlip,b=h.vFlip;let _=h.rotate;y?b?_+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):b&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let v;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:v=o.height/2+o.top,m.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,m.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}_%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),m.length&&(s=p2(s,'',""))});const i=n.width,a=n.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=V0(f,l/c)):(u=i==="auto"?l:i,f=a===null?V0(u,c/l):a==="auto"?c:a);const d={},p=(h,m)=>{h2(m)||(d[h]=m.toString())};p("width",u),p("height",f);const g=[o.left,o.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:s}}const m2=/\sid="(\S+)"/g,y2="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _2=0;function v2(e,t=y2){const r=[];let n;for(;n=m2.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(_2++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function b2(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'"+e+""}function w2(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function S2(e){return"data:image/svg+xml,"+w2(e)}function E2(e){return'url("'+S2(e)+'")'}const W0={...sT,inline:!1},x2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},k2={display:"inline-block"},Fg={backgroundColor:"currentColor"},iT={backgroundColor:"transparent"},z0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},G0={webkitMask:Fg,mask:Fg,background:iT};for(const e in G0){const t=G0[e];for(const r in z0)t[e+r]=z0[r]}const Ru={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Ru[e+"-flip"]=t,Ru[e.slice(0,1)+"-flip"]=t,Ru[e+"Flip"]=t});function q0(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const C2=(e,t)=>{const r=s2(W0,t),n={...x2},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const m=t[h];if(m!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[h]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&a2(r,m);break;case"color":s.color=m;break;case"rotate":typeof m=="string"?r[h]=l2(m):typeof m=="number"&&(r[h]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete n["aria-hidden"];break;default:{const y=Ru[h];y?(m===!0||m==="true"||m===1)&&(r[y]=!0):W0[h]===void 0&&(n[h]=m)}}}const l=g2(e,r),c=l.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,c);let h=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),n.innerHTML=v2(l.body,m?()=>m+"ID"+h++:"iconifyVue"),Tt("svg",n)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=b2(u,{...c,width:f+"",height:d+""});return n.style={...s,"--svg":E2(g),width:q0(c.width),height:q0(c.height),...k2,...p?Fg:iT,...a},Tt("span",n)},T2=Object.create(null),I2=It({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,r=typeof t=="string"?T2[t]:typeof t=="object"?t:null;return r===null||typeof r!="object"||typeof r.body!="string"?this.$slots.default?this.$slots.default():null:C2({...vy,...r},e)}}),Sl=/^[a-z0-9]+(-[a-z0-9]+)*$/,Nd=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:n,prefix:l,name:a};return t&&!Lu(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!Lu(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!Lu(a,r)?null:a}return null},Lu=(e,t)=>e?!!((e.provider===""||e.provider.match(Sl))&&(t&&e.prefix===""||e.prefix.match(Sl))&&e.name.match(Sl)):!1,aT=Object.freeze({left:0,top:0,width:16,height:16}),Df=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),by=Object.freeze({...aT,...Df}),Ug=Object.freeze({...by,body:"",hidden:!1});function A2(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function K0(e,t){const r=A2(e,t);for(const n in Ug)n in Df?n in e&&!(n in r)&&(r[n]=Df[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function O2(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function R2(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=K0(n[a]||o[a],s)}return i(t),r.forEach(i),K0(e,s)}function lT(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=O2(e);for(const o in n){const s=n[o];s&&(t(o,R2(e,o,s)),r.push(o))}return r}const L2={provider:"",aliases:{},not_found:{},...aT};function Kp(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function cT(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Kp(e,L2))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o.match(Sl)||typeof s.body!="string"||!Kp(s,Ug))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o.match(Sl)||typeof i!="string"||!r[i]&&!n[i]||!Kp(s,Ug))return null}return t}const Y0=Object.create(null);function P2(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function qs(e,t){const r=Y0[e]||(Y0[e]=Object.create(null));return r[t]||(r[t]=P2(e,t))}function wy(e,t){return cT(t)?lT(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function N2(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let cc=!1;function uT(e){return typeof e=="boolean"&&(cc=e),cc}function M2(e){const t=typeof e=="string"?Nd(e,!0,cc):e;if(t){const r=qs(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function D2(e,t){const r=Nd(e,!0,cc);if(!r)return!1;const n=qs(r.provider,r.prefix);return N2(n,r.name,t)}function $2(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),cc&&!t&&!e.prefix){let o=!1;return cT(e)&&(e.prefix="",lT(e,(s,i)=>{i&&D2(s,i)&&(o=!0)})),o}const r=e.prefix;if(!Lu({provider:t,prefix:r,name:"a"}))return!1;const n=qs(t,r);return!!wy(n,e)}const F2=Object.freeze({width:null,height:null}),U2=Object.freeze({...F2,...Df});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const jg=Object.create(null);function j2(e,t){jg[e]=t}function Bg(e){return jg[e]||jg[""]}function Sy(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ey=Object.create(null),qa=["https://api.simplesvg.com","https://api.unisvg.com"],Pu=[];for(;qa.length>0;)qa.length===1||Math.random()>.5?Pu.push(qa.shift()):Pu.push(qa.pop());Ey[""]=Sy({resources:["https://api.iconify.design"].concat(Pu)});function Hg(e,t){const r=Sy(t);return r===null?!1:(Ey[e]=r,!0)}function xy(e){return Ey[e]}const B2=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Z0=B2();function H2(e,t){const r=xy(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function V2(e){return e===404}const W2=(e,t,r)=>{const n=[],o=H2(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),n.push(i),n};function z2(e){if(typeof e=="string"){const t=xy(e);if(t)return t.path}return"/"}const G2=(e,t,r)=>{if(!Z0){r("abort",424);return}let n=z2(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;Z0(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r(V2(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},q2={prepare:W2,send:G2};function K2(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const s=o.provider,i=o.prefix,a=o.name,l=r[s]||(r[s]=Object.create(null)),c=l[i]||(l[i]=qs(s,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:a};u.push(f)}),t}function fT(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function Y2(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:n,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:n,prefix:o,name:c});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||fT([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Z2=0;function X2(e,t,r){const n=Z2++,o=fT.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function J2(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?Nd(o,t,r):o;s&&n.push(s)}),n}var Q2={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ez(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let E=e.resources.slice(0);for(i=[];E.length>1;){const x=Math.floor(Math.random()*E.length);i.push(E[x]),E=E.slice(0,x).concat(E.slice(x+1))}i=i.concat(E)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof n=="function"&&p.push(n);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function m(E,x){x&&(p=[]),typeof E=="function"&&p.push(E)}function y(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:m,abort:h}}function b(){l="failed",p.forEach(E=>{E(void 0,u)})}function _(){d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function v(E,x,R){const A=x!=="success";switch(d=d.filter(N=>N!==E),l){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=R,b();return}if(A){u=R,d.length||(i.length?S():b());return}if(g(),_(),!e.random){const N=e.resources.indexOf(E.resource);N!==-1&&N!==e.index&&(e.index=N)}l="completed",p.forEach(N=>{N(R)})}function S(){if(l!=="pending")return;g();const E=i.shift();if(E===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const x={status:"pending",resource:E,callback:(R,A)=>{v(x,R,A)}};d.push(x),c++,f=setTimeout(S,e.rotate),r(E,t,x.callback)}return setTimeout(S),y}function dT(e){const t={...Q2,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,l,c){const u=ez(t,a,l,(f,d)=>{n(),c&&c(f,d)});return r.push(u),u}function s(a){return r.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function X0(){}const Yp=Object.create(null);function tz(e){if(!Yp[e]){const t=xy(e);if(!t)return;const r=dT(t),n={config:t,redundancy:r};Yp[e]=n}return Yp[e]}function rz(e,t,r){let n,o;if(typeof e=="string"){const s=Bg(e);if(!s)return r(void 0,424),X0;o=s.send;const i=tz(e);i&&(n=i.redundancy)}else{const s=Sy(e);if(s){n=dT(s);const i=e.resources?e.resources[0]:"",a=Bg(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),X0):n.query(t,o,r)().abort}const J0="iconify2",uc="iconify",pT=uc+"-count",Q0=uc+"-version",hT=36e5,nz=168,oz=50;function Vg(e,t){try{return e.getItem(t)}catch{}}function ky(e,t,r){try{return e.setItem(t,r),!0}catch{}}function ew(e,t){try{e.removeItem(t)}catch{}}function Wg(e,t){return ky(e,pT,t.toString())}function zg(e){return parseInt(Vg(e,pT))||0}const Md={local:!0,session:!0},gT={local:new Set,session:new Set};let Cy=!1;function sz(e){Cy=e}let fu=typeof window>"u"?{}:window;function mT(e){const t=e+"Storage";try{if(fu&&fu[t]&&typeof fu[t].length=="number")return fu[t]}catch{}Md[e]=!1}function yT(e,t){const r=mT(e);if(!r)return;const n=Vg(r,Q0);if(n!==J0){if(n){const a=zg(r);for(let l=0;l{const l=uc+a.toString(),c=Vg(r,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}ew(r,l)}};let i=zg(r);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,Wg(r,i)):gT[e].add(a))}function _T(){if(!Cy){sz(!0);for(const e in Md)yT(e,t=>{const r=t.data,n=t.provider,o=r.prefix,s=qs(n,o);if(!wy(s,r).length)return!1;const i=r.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function iz(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Md)yT(n,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function az(e,t){Cy||_T();function r(n){let o;if(!Md[n]||!(o=mT(n)))return;const s=gT[n];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=zg(o),i>=oz||!Wg(o,i+1))return;const a={cached:Math.floor(Date.now()/hT),provider:e.provider,data:t};return ky(o,uc+i.toString(),JSON.stringify(a))}t.lastModified&&!iz(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function tw(){}function lz(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Y2(e)}))}function cz(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=Bg(r)))return;s.prepare(r,n,o).forEach(a=>{rz(r,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=wy(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),az(e,l)}catch(c){console.error(c)}lz(e)})})}))}const uz=(e,t)=>{const r=J2(e,!0,uT()),n=K2(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,tw)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(qs(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=qs(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),o[c][u].push(f))}),s.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&cz(l,o[c][u])}),t?X2(t,n,s):tw},fz=e=>new Promise((t,r)=>{const n=typeof e=="string"?Nd(e,!0):e;if(!n){r(e);return}uz([n||e],o=>{if(o.length&&n){const s=M2(n);if(s){t({...by,...s});return}}r(e)})});({...U2});const rw={backgroundColor:"currentColor"},dz={backgroundColor:"transparent"},nw={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ow={webkitMask:rw,mask:rw,background:dz};for(const e in ow){const t=ow[e];for(const r in nw)t[e+r]=nw[r]}const Zp={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Zp[e+"-flip"]=t,Zp[e.slice(0,1)+"-flip"]=t,Zp[e+"Flip"]=t});uT(!0);j2("",q2);if(typeof document<"u"&&typeof window<"u"){_T();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!$2(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;Hg(r,o)||console.error(n)}catch{console.error(n)}}}}({...by});const pz=["fluent-emoji-high-contrast","material-symbols-light","cryptocurrency-color","icon-park-outline","icon-park-twotone","fluent-emoji-flat","emojione-monotone","streamline-emojis","heroicons-outline","simple-line-icons","material-symbols","flat-color-icons","icon-park-solid","pepicons-pencil","heroicons-solid","pepicons-print","cryptocurrency","pixelarticons","system-uicons","bitcoin-icons","entypo-social","token-branded","devicon-plain","grommet-icons","fluent-color","pepicons-pop","svg-spinners","fluent-emoji","simple-icons","circle-flags","vscode-icons","medical-icon","icomoon-free","majesticons","radix-icons","humbleicons","fa6-regular","rivet-icons","emojione-v1","skill-icons","academicons","healthicons","fluent-mdl2","lucide-lab","teenyicons","ant-design","gravity-ui","akar-icons","lets-icons","streamline","fa6-brands","file-icons","catppuccin","game-icons","foundation","fa-regular","mono-icons","hugeicons","iconamoon","zondicons","mdi-light","eos-icons","gridicons","duo-icons","icon-park","heroicons","fa6-solid","meteocons","arcticons","dashicons","fa-brands","websymbol","fontelico","mingcute","flowbite","proicons","marketeq","bytesize","guidance","openmoji","emojione","nonicons","brandico","flagpack","fa-solid","fontisto","si-glyph","pepicons","iconoir","tdesign","clarity","octicon","pajamas","formkit","line-md","twemoji","noto-v1","fxemoji","codicon","devicon","raphael","flat-ui","topcoat","feather","tabler","carbon","lucide","lsicon","memory","mynaui","circum","fluent","nimbus","entypo","icons8","subway","vaadin","solar","basil","typcn","charm","prime","cuida","quill","logos","token","covid","maki","weui","gala","mage","ooui","noto","flag","unjs","iwwa","zmdi","bpmn","mdi","ion","uil","bxs","cil","uiw","uim","uit","uis","jam","oui","bxl","cib","cbi","cif","gis","map","geo","fad","eva","wpf","whh","ic","ph","ri","bi","bx","gg","ci","ep","fe","mi","f7","ei","wi","la","fa","oi","et","el","ls","vs","il","ps"];function hz(e=""){let t,r="";if(e[0]==="@"&&e.includes(":")&&(r=e.split(":")[0].slice(1),e=e.split(":").slice(1).join(":")),e.startsWith("i-")){e=e.replace(/^i-/,"");for(const n of pz)if(e.startsWith(n)){t=n,e=e.slice(n.length+1);break}}else if(e.includes(":")){const[n,o]=e.split(":");t=n,e=o}return{provider:r,prefix:t||"",name:e||""}}const gz=It({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,r;const n=Ie(),o=Fr(),s=e;Oe(()=>{var m;return(m=o.nuxtIcon)==null?void 0:m.iconifyApiOptions},()=>{var m,y,b,_,v,S;if((y=(m=o.nuxtIcon)==null?void 0:m.iconifyApiOptions)!=null&&y.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((_=(b=o.nuxtIcon)==null?void 0:b.iconifyApiOptions)!=null&&_.publicApiFallback){Hg("custom",{resources:[(v=o.nuxtIcon)==null?void 0:v.iconifyApiOptions.url],index:0});return}Hg("",{resources:[(S=o.nuxtIcon)==null?void 0:S.iconifyApiOptions.url]})}},{immediate:!0});const i=ri("icons",()=>({})),a=ue(!1),l=X(()=>{var m,y;return(y=(m=o.nuxtIcon)==null?void 0:m.aliases)!=null&&y[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),c=X(()=>hz(l.value)),u=X(()=>[c.value.provider,c.value.prefix,c.value.name].filter(Boolean).join(":")),f=X(()=>{var m;return(m=i.value)==null?void 0:m[u.value]}),d=X(()=>{var m;return(m=n.vueApp)==null?void 0:m.component(l.value)}),p=X(()=>{var y,b,_;if(!s.size&&typeof((y=o.nuxtIcon)==null?void 0:y.size)=="boolean"&&!((b=o.nuxtIcon)!=null&&b.size))return;const m=s.size||((_=o.nuxtIcon)==null?void 0:_.size)||"1em";return String(Number(m))===m?`${m}px`:m}),g=X(()=>{var m;return((m=o==null?void 0:o.nuxtIcon)==null?void 0:m.class)??"icon"});async function h(){var m;d.value||(m=i.value)!=null&&m[u.value]||(a.value=!0,i.value[u.value]=await fz(c.value).catch(()=>{}),a.value=!1)}return Oe(l,h),!d.value&&([t,r]=ES(()=>h()),t=await t,r()),(m,y)=>a.value?(me(),_t("span",{key:0,class:et(g.value),style:Ps({width:p.value,height:p.value})},null,6)):f.value?(me(),ft(He(I2),{key:1,icon:f.value,class:et(g.value),width:p.value,height:p.value},null,8,["icon","class","width","height"])):d.value?(me(),ft(Qf(d.value),{key:2,class:et(g.value),width:p.value,height:p.value},null,8,["class","width","height"])):(me(),_t("span",{key:3,class:et(g.value),style:Ps({fontSize:p.value,lineHeight:p.value,width:p.value,height:p.value})},[Nn(m.$slots,"default",{},()=>[Ol(Uo(e.name),1)],!0)],6))}}),ni=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},vT=ni(gz,[["__scopeId","data-v-5ad9b18b"]]),mz=Object.freeze(Object.defineProperty({__proto__:null,default:vT},Symbol.toStringTag,{value:"Module"})),yz=It({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=Fr();return{dynamic:X(()=>{var n,o;return e.dynamic||((o=(n=t.ui)==null?void 0:n.icons)==null?void 0:o.dynamic)})}}});function _z(e,t,r,n,o,s){const i=vT;return e.dynamic?(me(),ft(i,{key:0,name:e.name},null,8,["name"])):(me(),_t("span",{key:1,class:et(e.name)},null,2))}const va=ni(yz,[["render",_z]]),Dd=(e,t,r,n,o=!1)=>{const s=YA(),i=Fr(),a=X(()=>{var d;const c=yu(t),u=yu(r),f=yu(n);return bc((c==null?void 0:c.strategy)||((d=i.ui)==null?void 0:d.strategy),f?{wrapper:f}:{},c||{},o?a$(i.ui,e,{}):{},u||{})}),l=X(()=>i$(s,["class"]));return{ui:a,attrs:l}},vz={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},bz={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",truncate:"text-left break-all line-clamp-1",block:"w-full flex justify-center items-center",inline:"inline-flex items-center",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},bT={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"},sw={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...bT,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},z9={...sw,select:"inline-flex items-center text-left cursor-default",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",required:"absolute inset-0 w-px opacity-0 cursor-default",label:"block truncate",option:{...sw.option,create:"block truncate"},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",clearSearchOnClose:!1,showCreateOptionWhen:"empty"},arrow:{...bT,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},wz={wrapper:"w-full pointer-events-auto",container:"relative overflow-hidden",inner:"w-0 flex-1",title:"text-sm font-medium text-gray-900 dark:text-white",description:"mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",actions:"flex items-center gap-2 mt-3 flex-shrink-0",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-lg",padding:"p-4",gap:"gap-3",ring:"ring-1 ring-gray-200 dark:ring-gray-800",icon:{base:"flex-shrink-0 w-5 h-5",color:"text-{color}-500 dark:text-{color}-400"},avatar:{base:"flex-shrink-0 self-center",size:"md"},progress:{base:"absolute bottom-0 end-0 start-0 h-1",background:"bg-{color}-500 dark:bg-{color}-400"},transition:{enterActiveClass:"transform ease-out duration-300 transition",enterFromClass:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterToClass:"translate-y-0 opacity-100 sm:translate-x-0",leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},default:{color:"primary",icon:null,timeout:5e3,closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"link",padded:!1},actionButton:{size:"xs",color:"white"}}},Sz={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},hs=bc(Dr.ui.strategy,Dr.ui.avatar,vz),Ez=It({components:{UIcon:va},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>hs.default.icon},size:{type:String,default:()=>hs.default.size,validator(e){return Object.keys(hs.size).includes(e)}},chipColor:{type:String,default:()=>hs.default.chipColor,validator(e){return["gray",...Dr.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>hs.default.chipPosition,validator(e){return Object.keys(hs.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=Dd("avatar",Js(e,"ui"),hs),n=X(()=>typeof e.src=="boolean"?null:e.src),o=X(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=X(()=>zi(zr(t.value.wrapper,(c.value||!n.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=X(()=>zi(zr(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=X(()=>zr(t.value.icon.base,t.value.icon.size[e.size])),l=X(()=>zr(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),c=ue(!1);Oe(()=>e.src,()=>{c.value&&(c.value=!1)});function u(){c.value=!0}return{ui:t,attrs:r,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:n,placeholder:o,error:c,onError:u}}});function xz(e,t,r,n,o,s){const i=va;return me(),_t("span",{class:et(e.wrapperClass)},[e.url&&!e.error?(me(),ft(Qf(e.as),ir({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(me(),_t("span",{key:1,class:et(e.ui.text)},Uo(e.text),3)):e.icon?(me(),ft(i,{key:2,name:e.icon,class:et(e.iconClass)},null,8,["name","class"])):e.placeholder?(me(),_t("span",{key:3,class:et(e.ui.placeholder)},Uo(e.placeholder),3)):Xt("",!0),e.chipColor?(me(),_t("span",{key:4,class:et(e.chipClass)},Uo(e.chipText),3)):Xt("",!0),Nn(e.$slots,"default")],2)}const wT=ni(Ez,[["render",xz]]),iw=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 aw(e,t){t?t={...iw,...t}:t=iw;const r=ST(t);return r.dispatch(e),r.toString()}const kz=Object.freeze(["prototype","__proto__","constructor"]);function ST(e){let t="",r=new Map;const n=o=>{t+=o};return{toString(){return t},getContext(){return r},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const s=Object.prototype.toString.call(o);let i="";const a=s.length;a<10?i="unknown:["+s+"]":i=s.slice(8,a-1),i=i.toLowerCase();let l=null;if((l=r.get(o))===void 0)r.set(o,r.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return n("buffer:"),n(o.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](o):e.ignoreUnknown||this.unkown(o,i);else{let c=Object.keys(o);e.unorderedObjects&&(c=c.sort());let u=[];e.respectType!==!1&&!lw(o)&&(u=kz),e.excludeKeys&&(c=c.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),n("object:"+(c.length+u.length)+":");const f=d=>{this.dispatch(d),n(":"),e.excludeValues||this.dispatch(o[d]),n(",")};for(const d of c)f(d);for(const d of u)f(d)}},array(o,s){if(s=s===void 0?e.unorderedArrays!==!1:s,n("array:"+o.length+":"),!s||o.length<=1){for(const l of o)this.dispatch(l);return}const i=new Map,a=o.map(l=>{const c=ST(e);c.dispatch(l);for(const[u,f]of c.getContext())i.set(u,f);return c.toString()});return r=i,a.sort(),this.array(a,!1)},date(o){return n("date:"+o.toJSON())},symbol(o){return n("symbol:"+o.toString())},unkown(o,s){if(n(s),!!o&&(n(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return n("error:"+o.toString())},boolean(o){return n("bool:"+o)},string(o){n("string:"+o.length+":"),n(o)},function(o){n("fn:"),lw(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return n("number:"+o)},xml(o){return n("xml:"+o.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(o){return n("regex:"+o.toString())},uint8array(o){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return n("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return n("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return n("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return n("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return n("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return n("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return n("url:"+o.toString())},map(o){n("map:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},set(o){n("set:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},file(o){return n("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return n("domwindow")},bigint(o){return n("bigint:"+o.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")},context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const ET="[native code] }",Cz=ET.length;function lw(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-Cz)===ET}function Tz(e,t,r={}){return e===t||aw(e,r)===aw(t,r)}const Iz=It({inheritAttrs:!1,props:{...Nm,as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function t(r,n,{isActive:o,isExactActive:s}){return e.exactQuery&&!Tz(r.query,n.query)||e.exactHash&&r.hash!==n.hash?e.inactiveClass:e.exact&&s||!e.exact&&o?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),Az=["href","aria-disabled","role","rel","target","onClick"];function Oz(e,t,r,n,o,s){const i=CN;return e.to?(me(),ft(i,ir({key:1},e.$props,{custom:""}),{default:Ns(({route:a,href:l,target:c,rel:u,navigate:f,isActive:d,isExactActive:p,isExternal:g})=>[Do("a",ir(e.$attrs,{href:e.disabled?void 0:l,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:u,target:c,class:e.active!==void 0?e.active?e.activeClass:e.inactiveClass:e.resolveLinkClass(a,e._.provides[mc]||e.$route,{isActive:d,isExactActive:p}),onClick:h=>!g&&!e.disabled&&f(h)}),[Nn(e.$slots,"default",s_(xh({isActive:e.active!==void 0?e.active:e.exact?p:d})))],16,Az)]),_:3},16)):(me(),ft(Qf(e.as),ir({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:Ns(()=>[Nn(e.$slots,"default",s_(xh({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const xT=ni(Iz,[["render",Oz]]);function Rz({ui:e,props:t}){const r=er();if(Is("ButtonGroupContextConsumer",!0),jt("ButtonGroupContextConsumer",!1))return{size:X(()=>t.size),rounded:X(()=>e.value.rounded)};let o=r.parent,s;for(;o&&!s;){if(o.type.name==="ButtonGroup"){s=jt(`group-${o.uid}`);break}o=o.parent}const i=X(()=>s==null?void 0:s.value.children.indexOf(r));return Or(()=>{s==null||s.value.register(r)}),Qs(()=>{s==null||s.value.unregister(r)}),{size:X(()=>(s==null?void 0:s.value.size)||t.size),rounded:X(()=>!s||i.value===-1?e.value.rounded:s.value.children.length===1?s.value.ui.rounded:i.value===0?s.value.rounded.start:i.value===s.value.children.length-1?s.value.rounded.end:"rounded-none")}}const Yn=bc(Dr.ui.strategy,Dr.ui.button,bz),Lz=It({components:{UIcon:va,ULink:xT},inheritAttrs:!1,props:{...Nm,type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>Yn.default.size,validator(e){return Object.keys(Yn.size).includes(e)}},color:{type:String,default:()=>Yn.default.color,validator(e){return[...Dr.ui.colors,...Object.keys(Yn.color)].includes(e)}},variant:{type:String,default:()=>Yn.default.variant,validator(e){return[...Object.keys(Yn.variant),...Object.values(Yn.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Yn.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e,{slots:t}){const{ui:r,attrs:n}=Dd("button",Js(e,"ui"),Yn),{size:o,rounded:s}=Rz({ui:r,props:e}),i=X(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),a=X(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),l=X(()=>e.square||!t.default&&!e.label),c=X(()=>{var m,y;const h=((y=(m=r.value.color)==null?void 0:m[e.color])==null?void 0:y[e.variant])||r.value.variant[e.variant];return zi(zr(r.value.base,r.value.font,s.value,r.value.size[o.value],r.value.gap[o.value],e.padded&&r.value[l.value?"square":"padding"][o.value],h==null?void 0:h.replaceAll("{color}",e.color),e.block?r.value.block:r.value.inline),e.class)}),u=X(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),f=X(()=>e.loading&&!i.value?e.loadingIcon:e.trailingIcon||e.icon),d=X(()=>zr(r.value.icon.base,r.value.icon.size[o.value],e.loading&&r.value.icon.loading)),p=X(()=>zr(r.value.icon.base,r.value.icon.size[o.value],e.loading&&!i.value&&r.value.icon.loading)),g=X(()=>l$(e));return{ui:r,attrs:n,isLeading:i,isTrailing:a,isSquare:l,buttonClass:c,leadingIconName:u,trailingIconName:f,leadingIconClass:d,trailingIconClass:p,linkProps:g}}});function Pz(e,t,r,n,o,s){const i=va,a=xT;return me(),ft(a,ir({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:Ns(()=>[Nn(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(me(),ft(i,{key:0,name:e.leadingIconName,class:et(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Xt("",!0)]),Nn(e.$slots,"default",{},()=>[e.label?(me(),_t("span",{key:0,class:et([e.truncate?e.ui.truncate:""])},Uo(e.label),3)):Xt("",!0)]),Nn(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(me(),ft(i,{key:0,name:e.trailingIconName,class:et(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Xt("",!0)])]),_:3},16,["type","disabled","class"])}const kT=ni(Lz,[["render",Pz]]);function Nz(e,t,r){let n=null;const{pause:o,resume:s,timestamp:i}=SD({controls:!0}),a=ue(null),l=X(()=>a.value?t-(i.value-a.value):0);function c(...h){n=setTimeout(()=>{n=null,a.value=null,e(...h)},l.value)}function u(){n&&(clearTimeout(n),n=null)}function f(){a.value=Date.now(),c()}function d(){u(),o()}function p(){u(),o()}function g(){c(),s(),a.value=(a.value||0)+(Date.now()-i.value)}return f(),{start:f,stop:d,pause:p,resume:g,remaining:l}}const Ka=bc(Dr.ui.strategy,Dr.ui.notification,wz),Mz=It({components:{UIcon:va,UAvatar:wT,UButton:kT},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:()=>Ka.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>Ka.default.closeButton},timeout:{type:Number,default:()=>Ka.default.timeout},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>Ka.default.color,validator(e){return["gray",...Dr.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const{ui:r,attrs:n}=Dd("notification",Js(e,"ui"),Ka);let o=null;const s=ue(e.timeout),i=X(()=>{var h,m;return zi(zr(r.value.wrapper,(h=r.value.background)==null?void 0:h.replaceAll("{color}",e.color),r.value.rounded,r.value.shadow,(m=r.value.ring)==null?void 0:m.replaceAll("{color}",e.color)),e.class)}),a=X(()=>{var h;return zr(r.value.progress.base,(h=r.value.progress.background)==null?void 0:h.replaceAll("{color}",e.color))}),l=X(()=>({width:`${s.value/e.timeout*100||0}%`})),c=X(()=>{var h;return zr(r.value.icon.base,(h=r.value.icon.color)==null?void 0:h.replaceAll("{color}",e.color))});function u(){o&&o.pause()}function f(){o&&o.resume()}function d(){o&&o.stop(),e.callback&&e.callback(),t("close")}function p(h){o&&o.stop(),h.click&&h.click(),t("close")}function g(){o&&o.stop(),e.timeout&&(o=Nz(()=>{d()},e.timeout),ed(()=>{s.value=o.remaining.value}))}return Oe(()=>e.timeout,g),Or(g),Qs(()=>{o&&o.stop()}),{ui:r,attrs:n,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p,twMerge:zi}}});function Dz(e,t,r,n,o,s){const i=va,a=wT,l=kT;return me(),ft(QS,ir({appear:""},e.ui.transition),{default:Ns(()=>[Do("div",ir({class:e.wrapperClass,role:"status"},e.attrs,{onMouseover:t[0]||(t[0]=(...c)=>e.onMouseover&&e.onMouseover(...c)),onMouseleave:t[1]||(t[1]=(...c)=>e.onMouseleave&&e.onMouseleave(...c))}),[Do("div",{class:et([e.ui.container,e.ui.rounded,e.ui.ring])},[Do("div",{class:et(["flex",[e.ui.padding,e.ui.gap,{"items-start":e.description||e.$slots.description,"items-center":!e.description&&!e.$slots.description}]])},[e.icon?(me(),ft(i,{key:0,name:e.icon,class:et(e.iconClass)},null,8,["name","class"])):Xt("",!0),e.avatar?(me(),ft(a,ir({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):Xt("",!0),Do("div",{class:et(e.ui.inner)},[e.title||e.$slots.title?(me(),_t("p",{key:0,class:et(e.ui.title)},[Nn(e.$slots,"title",{title:e.title},()=>[Ol(Uo(e.title),1)])],2)):Xt("",!0),e.description||e.$slots.description?(me(),_t("div",{key:1,class:et(e.twMerge(e.ui.description,!(e.title&&e.$slots.title)&&"mt-0 leading-5"))},[Nn(e.$slots,"description",{description:e.description},()=>[Ol(Uo(e.description),1)])],2)):Xt("",!0),(e.description||e.$slots.description)&&e.actions.length?(me(),_t("div",{key:2,class:et(e.ui.actions)},[(me(!0),_t(bt,null,Wu(e.actions,(c,u)=>(me(),ft(l,ir({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:sp(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))],2)):Xt("",!0)],2),e.closeButton||!e.description&&!e.$slots.description&&e.actions.length?(me(),_t("div",{key:2,class:et(e.twMerge(e.ui.actions,"mt-0"))},[!e.description&&!e.$slots.description&&e.actions.length?(me(!0),_t(bt,{key:0},Wu(e.actions,(c,u)=>(me(),ft(l,ir({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:sp(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128)):Xt("",!0),e.closeButton?(me(),ft(l,ir({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{onClick:sp(e.onClose,["stop"])}),null,16,["onClick"])):Xt("",!0)],2)):Xt("",!0)],2),e.timeout?(me(),_t("div",{key:0,class:et(e.progressClass),style:Ps(e.progressStyle)},null,6)):Xt("",!0)],2)],16)]),_:3},16)}const CT=ni(Mz,[["render",Dz]]);function $z(){const e=ri("notifications",()=>[]);function t(s){const i={id:new Date().getTime().toString(),...s};return e.value.findIndex(l=>l.id===i.id)===-1&&e.value.push(i),i}function r(s){e.value=e.value.filter(i=>i.id!==s)}function n(s,i){const a=e.value.findIndex(l=>l.id===s);if(a!==-1){const l=e.value[a];e.value.splice(a,1,{...l,...i})}}function o(){e.value=[]}return{add:t,remove:r,update:n,clear:o}}const Fz=bc(Dr.ui.strategy,Dr.ui.notifications,Sz),Uz=It({components:{UNotification:CT},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=Dd("notifications",Js(e,"ui"),Fz),n=$z(),o=ri("notifications",()=>[]),s=X(()=>zi(zr(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:r,toast:n,notifications:o,wrapperClass:s}}});function jz(e,t,r,n,o,s){const i=CT;return me(),ft(OA,{to:"body"},[Do("div",ir({class:e.wrapperClass,role:"region"},e.attrs),[e.notifications.length?(me(),_t("div",{key:0,class:et(e.ui.container)},[(me(!0),_t(bt,null,Wu(e.notifications,a=>(me(),_t("div",{key:a.id},[it(i,ir({ref_for:!0},a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),qA({_:2},[Wu(e.$slots,(l,c)=>({name:c,fn:Ns(u=>[Nn(e.$slots,c,ir({ref_for:!0},u))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):Xt("",!0)],16)])}const Bz=ni(Uz,[["render",jz]]);function Hz(){Or(()=>{const{idle:e}=vD(5e3,{initialState:!1});Oe(e,t=>{window.isUserIdle=t},{immediate:!0})})}const Rt={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Ln=console,_s={};Object.keys(Rt).forEach(e=>{_s[e]=Ln[e]});const Ya="Datadog Browser SDK:",St={debug:_s.debug.bind(Ln,Ya),log:_s.log.bind(Ln,Ya),info:_s.info.bind(Ln,Ya),warn:_s.warn.bind(Ln,Ya),error:_s.error.bind(Ln,Ya)},Ty="https://docs.datadoghq.com",Vz=`${Ty}/real_user_monitoring/browser/troubleshooting`,Iy="More details:";function TT(e,t){return(...r)=>{try{return e(...r)}catch(n){St.error(t,n)}}}function nl(e){return e!==0&&Math.random()*100<=e}function Wz(e){return zz(e)&&e>=0&&e<=100}function zz(e){return typeof e=="number"}const ba=1e3,cs=60*ba,IT=60*cs,Gz=24*IT,qz=365*Gz;function Ho(){return new Date().getTime()}function bo(){return Ho()}function $f(){return performance.now()}function jn(){return{relative:$f(),timeStamp:bo()}}function Kz(){return{relative:0,timeStamp:OT()}}function AT(e,t){return t-e}function Yz(e,t){return e+t}function Zz(e){return e-OT()}let Xp;function OT(){var e,t;return Xp===void 0&&(Xp=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),Xp}const ta=1024,RT=1024*ta,Xz=/[^\u0000-\u007F]/;function LT(e){return Xz.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function Jz(e){return{...e}}function PT(e,t){return Object.keys(e).some(r=>e[r]===t)}function Cc(e){return Object.keys(e).length===0}function bn(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}const mn=bn(),Ks="WorkerGlobalScope"in mn;function ra(e,t){const r=bn();let n;return r.Zone&&typeof r.Zone.__symbol__=="function"&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}let Ff,NT=!1;function Qz(e){Ff=e}function e8(e){NT=e}function t8(e,t,r){const n=r.value;r.value=function(...o){return(Ff?wt(n):n).apply(this,o)}}function wt(e){return function(){return na(e,this,arguments)}}function na(e,t,r){try{return e.apply(t,r)}catch(n){Ay(n)}}function Ay(e){if(Gg(e),Ff)try{Ff(e)}catch(t){Gg(t)}}function Gg(...e){NT&&St.error("[MONITOR]",...e)}function Tc(e,t){return ra(bn(),"setTimeout")(wt(e),t)}function MT(e){ra(bn(),"clearTimeout")(e)}function Oy(e,t){return ra(bn(),"setInterval")(wt(e),t)}function DT(e){ra(bn(),"clearInterval")(e)}function cw(e){var t;const r=(t=mn.queueMicrotask)===null||t===void 0?void 0:t.bind(mn);typeof r=="function"?r(wt(e)):Promise.resolve().then(wt(e))}class Et{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(r=>r(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(r=>t!==r),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function $T(...e){return new Et(t=>{const r=e.map(n=>n.subscribe(o=>t.notify(o)));return()=>r.forEach(n=>n.unsubscribe())})}class FT extends Et{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}subscribe(t){let r=!1;const n={unsubscribe:()=>{r=!0,this.removeObserver(t)}};return cw(()=>{for(const o of this.buffer){if(r)return;t(o)}r||this.addObserver(t)}),n}unbuffer(){cw(()=>{this.maxBufferSize=this.buffer.length=0})}}function r8(e,t,r){let n=!1,o,s;return{throttled:(...i)=>{if(n){o=i;return}e(...i),n=!0,s=Tc(()=>{o&&e(...o),n=!1,o=void 0},t)},cancel:()=>{MT(s),n=!1,o=void 0}}}function Xo(){}function Jo(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,Jo)}const oa=/([\w-]+)\s*=\s*([^;]+)/g;function n8(e,t){for(oa.lastIndex=0;;){const r=oa.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function o8(e){const t=new Map;for(oa.lastIndex=0;;){const r=oa.exec(e);if(r){const n=r[1],o=r[2];t.has(n)?t.get(n).push(o):t.set(n,[o])}else break}return t}function s8(e){const t=new Map;for(oa.lastIndex=0;;){const r=oa.exec(e);if(r)t.set(r[1],r[2]);else break}return t}function i8(e,t,r=""){const n=e.charCodeAt(t-1),s=n>=55296&&n<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${r}`}var Ys;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation",e.ENCODE_COOKIE_OPTIONS="encode_cookie_options",e.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive"})(Ys||(Ys={}));const Ry=new Set;function a8(e){Array.isArray(e)&&l8(e.filter(t=>PT(Ys,t)))}function l8(e){e.forEach(t=>{Ry.add(t)})}function $d(e){return Ry.has(e)}function c8(){return Ry}function u8(){return f8()===0}let du;function f8(){return du??(du=d8())}function d8(e=window){var t;const r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}function Ly(e){return UT(e,location.href).href}function UT(e,t){const{URL:r}=p8();try{return t!==void 0?new r(e,t):new r(e)}catch(n){throw new Error(`Failed to construct URL: ${String(n)}`)}}let Jp;function p8(){if(!Jp){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch{t=mn}Jp={URL:t.URL},e==null||e.remove()}return Jp}function Fd(e,t,r=0,n){const o=new Date;o.setTime(o.getTime()+r);const s=`expires=${o.toUTCString()}`,i=n&&n.crossSite?"none":"strict",a=n&&n.domain?`;domain=${n.domain}`:"",l=n&&n.secure?";secure":"",c=n&&n.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${i}${a}${l}${c}`}function Py(e){return n8(document.cookie,e)}function h8(e){return o8(document.cookie).get(e)||[]}let Qp;function ks(e){return Qp||(Qp=s8(document.cookie)),Qp.get(e)}function jT(e,t){Fd(e,"",0,t)}function g8(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${Jo()}`,r="test";Fd(t,r,cs,e);const n=Py(t)===r;return jT(t,e),n}catch(t){return St.error(t),!1}}let eh;function BT(e=location.hostname,t=document.referrer){if(eh===void 0){const r=m8(e,t);if(r){const n=`dd_site_test_${Jo()}`,o="test",s=r.split(".");let i=s.pop();for(;s.length&&!Py(n);)i=`${s.pop()}.${i}`,Fd(n,o,ba,{domain:i});jT(n,{domain:i}),eh=i}}return eh}function m8(e,t){try{return e||UT(t).hostname}catch{}}const ho="_dd_s";function y8(e,t){for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(t(n,r,e))return n}}function Uf(e){return Object.values(e)}function _8(e){return Object.entries(e)}const Ny=4*IT,HT=15*cs,v8=qz,VT="0",sa={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},WT=/^([a-zA-Z]+)=([a-z0-9-]+)$/,My="&";function b8(e){return!!e&&(e.indexOf(My)!==-1||WT.test(e))}const w8="1";function vs(e,t){const r={isExpired:w8};return t.trackAnonymousUser&&(e!=null&&e.anonymousId)&&(r.anonymousId=e==null?void 0:e.anonymousId),r}function Nu(e){return Cc(e)}function zT(e){return!Nu(e)}function El(e){return e.isExpired!==void 0||!S8(e)}function S8(e){return(e.created===void 0||Ho()-Number(e.created)t==="anonymousId"?`aid=${r}`:`${t}=${r}`).join(My)}function Ud(e){const t={};return b8(e)&&e.split(My).forEach(r=>{const n=WT.exec(r);if(n!==null){const[,o,s]=n;o==="aid"?t.anonymousId=s:t[o]=s}}),t}const E8="_dd",x8="_dd_r",k8="_dd_l",C8="rum",T8="logs";function I8(e){if(!ks(ho)){const r=ks(E8),n=ks(x8),o=ks(k8),s={};r&&(s.id=r),o&&/^[01]$/.test(o)&&(s[T8]=o),n&&/^[012]$/.test(n)&&(s[C8]=n),zT(s)&&(GT(s),e.persistSession(s))}}const A8=0;function uw(e){const t=R8(e);return t&&g8(t)?{type:sa.COOKIE,cookieOptions:t}:void 0}function O8(e,t){const r={isLockEnabled:u8(),persistSession:n=>fw(t,e,n,HT),retrieveSession:()=>qT(t),expireSession:n=>fw(t,e,vs(n,e),Ny)};return I8(r),r}function fw(e,t,r,n){let o=qg(r);$d(Ys.ENCODE_COOKIE_OPTIONS)&&(o=qg({...r,...Cc(r)?{}:{c:KT(e)}})),Fd(ho,o,t.trackAnonymousUser?v8:n,e)}function qT(e){if($d(Ys.ENCODE_COOKIE_OPTIONS))return L8(e);const t=Py(ho);return Ud(t)}function R8(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const r=BT();if(!r)return;t.domain=r}return t}function KT(e){const t=e.domain?e.domain.split(".").length-1:0;let r=0;return r|=A8<<5,r|=t<<1,r|=e.crossSite?1:0,r.toString(16)}function L8(e){const t=h8(ho),r=KT(e);let n;for(const o of t.reverse())if(n=Ud(o),n.c===r)break;return n==null||delete n.c,n??{}}const P8="_dd_test_";function dw(){try{const e=Jo(),t=`${P8}${e}`;localStorage.setItem(t,e);const r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:sa.LOCAL_STORAGE}:void 0}catch{return}}function N8(e){return{isLockEnabled:!1,persistSession:YT,retrieveSession:ZT,expireSession:t=>M8(t,e)}}function YT(e){localStorage.setItem(ho,qg(e))}function ZT(){const e=localStorage.getItem(ho);return Ud(e)}function M8(e,t){YT(vs(e,t))}const D8=10,$8=100,F8=ba,XT="--",JT=[];let Mu;function bs(e,t,r=0){var n;const{isLockEnabled:o,persistSession:s,expireSession:i}=t,a=d=>s({...d,lock:c}),l=()=>{const{lock:d,...p}=t.retrieveSession();return{session:p,lock:d&&!j8(d)?d:void 0}};if(Mu||(Mu=e),e!==Mu){JT.push(e);return}if(o&&r>=$8){pw(t);return}let c,u=l();if(o){if(u.lock){pu(e,t,r);return}if(c=U8(),a(u.session),u=l(),u.lock!==c){pu(e,t,r);return}}let f=e.process(u.session);if(o&&(u=l(),u.lock!==c)){pu(e,t,r);return}if(f&&(El(f)?i(f):(GT(f),o?a(f):s(f))),o&&!(f&&El(f))){if(u=l(),u.lock!==c){pu(e,t,r);return}s(u.session),f=u.session}(n=e.after)===null||n===void 0||n.call(e,f||u.session),pw(t)}function pu(e,t,r){Tc(()=>{bs(e,t,r+1)},D8)}function pw(e){Mu=void 0;const t=JT.shift();t&&bs(t,e)}function U8(){return Jo()+XT+bo()}function j8(e){const[,t]=e.split(XT);return!t||AT(Number(t),bo())>F8}const hw=ba;function B8(e){switch(e.sessionPersistence){case sa.COOKIE:return uw(e);case sa.LOCAL_STORAGE:return dw();case void 0:{let t=uw(e);return!t&&e.allowFallbackToLocalStorage&&(t=dw()),t}default:St.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function H8(e,t){return e.type===sa.COOKIE?O8(t,e.cookieOptions):N8(t)}function V8(e,t,r,n,o=H8(e,t)){const s=new Et,i=new Et,a=new Et,l=Oy(p,hw);let c;h();const{throttled:u,cancel:f}=r8(()=>{bs({process:E=>{if(Nu(E))return;const x=g(E);return m(x),x},after:E=>{zT(E)&&!y()&&v(E),c=E}},o)},hw);function d(){bs({process:E=>y()?g(E):void 0},o)}function p(){const E=o.retrieveSession();El(E)?bs({process:x=>El(x)?vs(x,t):void 0,after:g},o):g(E)}function g(E){return El(E)&&(E=vs(E,t)),y()&&(b(E)?_():(a.notify({previousState:c,newState:E}),c=E)),E}function h(){bs({process:E=>{if(Nu(E))return E.anonymousId=Jo(),vs(E,t)},after:E=>{c=E}},o)}function m(E){if(Nu(E))return!1;const x=n(E[r]);E[r]=x,delete E.isExpired,x!==VT&&!E.id&&(E.id=Jo(),E.created=String(Ho()))}function y(){return(c==null?void 0:c[r])!==void 0}function b(E){return c.id!==E.id||c[r]!==E[r]}function _(){c=vs(c,t),i.notify()}function v(E){c=E,s.notify()}function S(E){bs({process:x=>({...x,...E}),after:g},o)}return{expandOrRenewSession:u,expandSession:d,getSession:()=>c,renewObservable:s,expireObservable:i,sessionStateUpdateObservable:a,restartSession:h,expire:E=>{f(),E===!1&&c&&delete c.anonymousId,o.expireSession(c),g(vs(c,t))},stop:()=>{DT(l)},updateSessionState:S}}const Kg={GRANTED:"granted",NOT_GRANTED:"not-granted"};function W8(e){const t=new Et;return{tryToInit(r){e||(e=r)},update(r){e=r,t.notify()},isGranted(){return e===Kg.GRANTED},observable:t}}function QT(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function z8(e,t,r=!1){return e.some(n=>{try{if(typeof n=="function")return n(t);if(n instanceof RegExp)return n.test(t);if(typeof n=="string")return r?t.startsWith(n):n===t}catch(o){St.error(o)}return!1})}const G8=["chrome-extension://","moz-extension://"];function gw(e){return G8.some(t=>e.includes(t))}function q8(e,t=""){if(gw(e))return!1;const n=t.split(` `).filter(o=>{const s=o.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return gw(n)}const K8="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",Y8="SDK initialized on a non-allowed domain.";function Z8(e,t,r=typeof location<"u"?location.origin:""){const n=e.allowedTrackingOrigins;if(!n)return q8(r,t)?(St.error(K8),!1):!0;const o=z8(n,r);return o||St.error(Y8),o}const X8="datad0g.com",J8="dd0g-gov.com",Ii="datadoghq.com",Q8="ddog-gov.com",e6="pci.browser-intake-datadoghq.com",t6=["ddsource","dd-api-key","dd-request-id"];function ws(e,t,r){const n=r6(e,t);return{build(o,s){const i=o6(e,t,o,s,r);return n(i)},trackType:t}}function r6(e,t){const r=`/api/v2/${t}`,n=e.proxy;if(typeof n=="string"){const s=Ly(n);return i=>`${s}?ddforward=${encodeURIComponent(`${r}?${i}`)}`}if(typeof n=="function")return s=>n({path:r,parameters:s});const o=n6(t,e);return s=>`https://${o}${r}?${s}`}function n6(e,t){const{site:r=Ii,internalAnalyticsSubdomain:n}=t;if(e==="logs"&&t.usePciIntake&&r===Ii)return e6;if(n&&r===Ii)return`${n}.${Ii}`;if(r===J8)return`http-intake.logs.${r}`;const o=r.split("."),s=o.pop();return`browser-intake-${o.join("-")}.${s}`}function o6({clientToken:e,internalAnalyticsSubdomain:t,source:r="browser"},n,o,{retry:s,encoding:i},a=[]){const l=[`ddsource=${r}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.23.0")}`,"dd-evp-origin=browser",`dd-request-id=${Jo()}`].concat(a);return i&&l.push(`dd-evp-encoding=${i}`),n==="rum"&&(l.push(`batch_time=${bo()}`,`_dd.api=${o}`),s&&l.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&l.reverse(),l.join("&")}function s6(e){const t=e.site||Ii,r=i6(e.source),n=a6({...e,site:t,source:r});return{replica:l6({...e,site:t,source:r}),site:t,source:r,...n}}function i6(e){return e==="flutter"||e==="unity"?e:"browser"}function a6(e){return{logsEndpointBuilder:ws(e,"logs"),rumEndpointBuilder:ws(e,"rum"),profilingEndpointBuilder:ws(e,"profile"),sessionReplayEndpointBuilder:ws(e,"replay"),exposuresEndpointBuilder:ws(e,"exposures")}}function l6(e){if(!e.replica)return;const t={...e,site:Ii,clientToken:e.replica.clientToken};return{logsEndpointBuilder:ws(t,"logs"),rumEndpointBuilder:ws(t,"rum",[`application.id=${e.replica.applicationId}`])}}function c6(e){return t6.every(t=>e.includes(t))}function th(e,t){return e!=null&&typeof e!="string"?(St.error(`${t} must be defined as a string`),!1):!0}function u6(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(St.error(`Site should be a valid Datadog site. ${Iy} ${Ty}/getting_started/site/.`),!1):!0}function hu(e,t){return e!==void 0&&!Wz(e)?(St.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function f6(e,t){var r,n,o,s,i,a,l,c,u,f;if(!e||!e.clientToken){St.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){St.error("Allowed Tracking Origins must be an array");return}if(!(!u6(e.site)||!hu(e.sessionSampleRate,"Session")||!hu(e.telemetrySampleRate,"Telemetry")||!hu(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!hu(e.telemetryUsageSampleRate,"Telemetry Usage")||!th(e.version,"Version")||!th(e.env,"Env")||!th(e.service,"Service")||!Z8(e,t??""))){if(e.trackingConsent!==void 0&&!PT(Kg,e.trackingConsent)){St.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&TT(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Ks?void 0:B8(e),sessionSampleRate:(r=e.sessionSampleRate)!==null&&r!==void 0?r:100,telemetrySampleRate:(n=e.telemetrySampleRate)!==null&&n!==void 0?n:20,telemetryConfigurationSampleRate:(o=e.telemetryConfigurationSampleRate)!==null&&o!==void 0?o:5,telemetryUsageSampleRate:(s=e.telemetryUsageSampleRate)!==null&&s!==void 0?s:5,service:(i=e.service)!==null&&i!==void 0?i:void 0,env:(a=e.env)!==null&&a!==void 0?a:void 0,version:(l=e.version)!==null&&l!==void 0?l:void 0,datacenter:(c=e.datacenter)!==null&&c!==void 0?c:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(u=e.trackingConsent)!==null&&u!==void 0?u:Kg.GRANTED,trackAnonymousUser:(f=e.trackAnonymousUser)!==null&&f!==void 0?f:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*ta,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*ba,batchMessagesLimit:Ks?1:50,messageBytesLimit:256*ta,variant:e.variant,sdkVersion:e.sdkVersion,...s6(e)}}}function d6(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}const ia="?";function wa(e){var t,r;const n=[];let o=rh(e,"stack");const s=String(e);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split(` `).forEach(i=>{const a=g6(i)||y6(i)||v6(i)||S6(i);a&&(!a.func&&a.line&&(a.func=ia),n.push(a))}),n.length>0&&C6()&&e instanceof Error){const i=[];let a=e;for(;(a=Object.getPrototypeOf(a))&&tI(a);){const l=((t=a.constructor)===null||t===void 0?void 0:t.name)||ia;i.push(l)}for(let l=i.length-1;l>=0&&((r=n[0])===null||r===void 0?void 0:r.func)===i[l];l--)n.shift()}return{message:rh(e,"message"),name:rh(e,"name"),stack:n}}const eI="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",aa="(?::(\\d+))",p6=new RegExp(`^\\s*at (.*?) ?\\(${eI}${aa}?${aa}?\\)?\\s*$`,"i"),h6=new RegExp(`\\((\\S*)${aa}${aa}\\)`);function g6(e){const t=p6.exec(e);if(!t)return;const r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,o=h6.exec(t[2]);return n&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ia,line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}const m6=new RegExp(`^\\s*at ?${eI}${aa}?${aa}??\\s*$`,"i");function y6(e){const t=m6.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:ia,line:t[2]?+t[2]:void 0,url:t[1]}}const _6=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function v6(e){const t=_6.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ia,line:+t[3],url:t[2]}}const b6=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,w6=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function S6(e){const t=b6.exec(e);if(!t)return;const r=t[3]&&t[3].indexOf(" > eval")>-1,n=w6.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ia,line:t[4]?+t[4]:void 0,url:t[3]}}function rh(e,t){if(typeof e!="object"||!e||!(t in e))return;const r=e[t];return typeof r=="string"?r:void 0}function E6(e,t,r,n){if(t===void 0)return;const{name:o,message:s}=k6(e);return{name:o,message:s,stack:[{url:t,column:n,line:r}]}}const x6=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function k6(e){let t,r;return{}.toString.call(e)==="[object String]"&&([,t,r]=x6.exec(e)),{name:t,message:r}}function tI(e){return String(e.constructor).startsWith("class ")}let gu;function C6(){if(gu!==void 0)return gu;class e extends Error{constructor(){super(),this.name="Error"}}const[t,r]=[e,Error].map(n=>new n);return gu=tI(Object.getPrototypeOf(t))&&r.stack!==t.stack,gu}function jd(e){const r=new Error(e);r.name="HandlingStack";let n;return na(()=>{const o=wa(r);o.stack=o.stack.slice(2),n=Sa(o)}),n}function Sa(e){let t=rI(e);return e.stack.forEach(r=>{const n=r.func==="?"?"":r.func,o=r.args&&r.args.length>0?`(${r.args.join(", ")})`:"",s=r.line?`:${r.line}`:"",i=r.line&&r.column?`:${r.column}`:"";t+=` at ${n}${o} @ ${r.url}${s}${i}`}),t}function rI(e){return`${e.name||"Error"}: ${e.message}`}function Rs(e,t,r,{computeHandlingStack:n}={}){let o=e[t];if(typeof o!="function")if(t in e&&t.startsWith("on"))o=Xo;else return{stop:Xo};let s=!1;const i=function(){if(s)return o.apply(this,arguments);const a=Array.from(arguments);let l;na(r,null,[{target:this,parameters:a,onPostCall:u=>{l=u},handlingStack:n?jd("instrumented method"):void 0}]);const c=o.apply(this,a);return l&&na(l,null,[c]),c};return e[t]=i,{stop:()=>{s=!0,e[t]===i&&(e[t]=o)}}}function Ic(e,t,r){if(typeof e!="object"||e===null)return JSON.stringify(e);const n=Ai(Object.prototype),o=Ai(Array.prototype),s=Ai(Object.getPrototypeOf(e)),i=Ai(e);try{return JSON.stringify(e,t,r)}catch{return""}finally{n(),o(),s(),i()}}function Ai(e){const t=e,r=t.toJSON;return r?(delete t.toJSON,()=>{t.toJSON=r}):Xo}const T6=220*ta,I6="$",A6=3;function go(e,t=T6){const r=Ai(Object.prototype),n=Ai(Array.prototype),o=[],s=new WeakMap,i=nh(e,I6,void 0,o,s),a=JSON.stringify(i);let l=a?a.length:0;if(l>t){oh(t,"discarded",e);return}for(;o.length>0&&lt){oh(t,"truncated",e);break}c.target[f]=d}else for(const f in c.source)if(Object.prototype.hasOwnProperty.call(c.source,f)){const d=nh(c.source[f],c.path,f,o,s);if(d!==void 0&&(l+=JSON.stringify(d).length+u+f.length+A6,u=1),l>t){oh(t,"truncated",e);break}c.target[f]=d}}return r(),n(),i}function nh(e,t,r,n,o){const s=L6(e);if(!s||typeof s!="object")return O6(s);const i=Yg(s);if(i!=="[Object]"&&i!=="[Array]"&&i!=="[Error]")return i;const a=e;if(o.has(a))return`[Reference seen at ${o.get(a)}]`;const l=r!==void 0?`${t}.${r}`:t,c=Array.isArray(s)?[]:{};return o.set(a,l),n.push({source:s,target:c,path:l}),c}function O6(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function Yg(e){try{if(e instanceof Event)return R6(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const r=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(r&&r[1])return`[${r[1]}]`}catch{}return"[Unserializable]"}function R6(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?Yg(e.currentTarget):null,target:e.target?Yg(e.target):null}}function L6(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function oh(e,t,r){St.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}const nI="No stack, consider using an instance of Error";function Dy({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:o,nonErrorPrefix:s,useFallbackStack:i=!0,source:a,handling:l}){const c=oi(t);return!e&&c&&(e=wa(t)),{startClocks:o,source:a,handling:l,handlingStack:r,componentStack:n,originalError:t,type:e?e.name:void 0,message:P6(e,c,s,t),stack:e?Sa(e):i?nI:void 0,causes:c?$6(t,a):void 0,fingerprint:N6(t),context:M6(t)}}function P6(e,t,r,n){return e!=null&&e.message&&(e!=null&&e.name)?e.message:t?"Empty message":`${r} ${Ic(go(n))}`}function N6(e){return oi(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function M6(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function D6(e){var t;return(t=/@ (.+)/.exec(e))===null||t===void 0?void 0:t[1]}function oi(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function $6(e,t){let r=e;const n=[];for(;oi(r==null?void 0:r.cause)&&n.length<10;){const o=wa(r.cause);n.push({message:r.cause.message,source:t,type:o==null?void 0:o.name,stack:o&&Sa(o)}),r=r.cause}return n.length?n:void 0}const Ur={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function F6(){return new Et(e=>{const t=(o,s)=>{const i=Dy({stackTrace:s,originalError:o,startClocks:jn(),nonErrorPrefix:"Uncaught",source:Ur.SOURCE,handling:"unhandled"});e.notify(i)},{stop:r}=U6(t),{stop:n}=j6(t);return()=>{r(),n()}})}function U6(e){return Rs(bn(),"onerror",({parameters:[t,r,n,o,s]})=>{let i;oi(s)||(i=E6(t,r,n,o)),e(s??t,i)})}function j6(e){return Rs(bn(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function B6(e){const t={version:"6.23.0",onReady(r){r()},...e};return Object.defineProperty(t,"_setDebug",{get(){return e8},enumerable:!1}),t}function H6(e,t,r){const n=e[t];n&&!n.q&&n.version&&St.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,n&&n.q&&n.q.forEach(o=>TT(o,"onReady callback threw an error:")())}function oI(e,t){t.silentMultipleInit||St.error(`${e} is already initialized.`)}function si(e,t,r,n,o){return $y(e,t,[r],n,o)}function $y(e,t,r,n,{once:o,capture:s,passive:i}={}){const a=wt(d=>{!d.isTrusted&&!d.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&f(),n(d))}),l=i?{capture:s,passive:i}:s,c=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,u=ra(c,"addEventListener");r.forEach(d=>u.call(t,d,a,l));function f(){const d=ra(c,"removeEventListener");r.forEach(p=>d.call(t,p,a,l))}return{stop:f}}const jf={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function V6(e,t){const r=[];t.includes(jf.cspViolation)&&r.push(z6(e));const n=t.filter(o=>o!==jf.cspViolation);return n.length&&r.push(W6(n)),$T(...r)}function W6(e){return new Et(t=>{if(!window.ReportingObserver)return;const r=wt((o,s)=>o.forEach(i=>t.notify(G6(i)))),n=new window.ReportingObserver(r,{types:e,buffered:!0});return n.observe(),()=>{n.disconnect()}})}function z6(e){return new Et(t=>{const{stop:r}=si(e,document,"securitypolicyviolation",n=>{t.notify(q6(n))});return r})}function G6(e){const{type:t,body:r}=e;return sI({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:iI(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}function q6(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return sI({type:e.effectiveDirective,message:`${jf.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:iI(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${i8(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function sI(e){return{startClocks:jn(),source:Ur.REPORT,handling:"unhandled",...e}}function iI(e,t,r,n,o){return r?Sa({name:e,message:t,stack:[{func:"?",url:r,line:n??void 0,column:o??void 0}]}):void 0}const K6=200;function aI(e){const{env:t,service:r,version:n,datacenter:o,sdkVersion:s,variant:i}=e,a=[ys("sdk_version",s??"6.23.0")];return t&&a.push(ys("env",t)),r&&a.push(ys("service",r)),n&&a.push(ys("version",n)),o&&a.push(ys("datacenter",o)),i&&a.push(ys("variant",i)),a}function ys(e,t){const r=t?`${e}:${t}`:e;return(r.length>K6||Y6(r))&&St.warn(`Tag ${r} doesn't meet tag requirements and will be sanitized. ${Iy} ${Ty}/getting_started/tagging/#defining-tags`),lI(r)}function lI(e){return e.replace(/,/g,"_")}function Y6(e){return Z6()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function Z6(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function cI(e,t){const r=mn.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function Bf(e,t,r=X6()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const o=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,o)}if(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const o=Array.isArray(e)?e:[];for(let s=0;s=0;return r||e.push(t),r}}}function J6(){var e;const t=mn.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function fI(e){return e>=500}function Q6(e){try{return e.clone()}catch{return}}const eG=80*ta,tG=32,dI=20*RT,rG=cs,pI=ba;function hI(e,t,r,n,o,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?mI(e,t,r,s,{onSuccess:()=>yI(0,t,r,n,o,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),gI(t,r,n,o,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function gI(e,t,r,n,o){e.transportStatus===2&&Tc(()=>{const s=e.queuedPayloads.first();mI(s,e,t,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=pI,yI(1,e,t,r,n,o)},onFailure:()=>{e.currentBackoffTime=Math.min(rG,e.currentBackoffTime*2),gI(e,t,r,n,o)}})},e.currentBackoffTime)}function mI(e,t,r,n,{onSuccess:o,onFailure:s}){t.bandwidthMonitor.add(e),r(e,i=>{t.bandwidthMonitor.remove(e),nG(i)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:i.status},n.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,n.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o())})}function yI(e,t,r,n,o,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${n} events size queued for upload: ${dI/RT}MiB`,source:Ur.AGENT,startClocks:jn()}),t.queueFullReported=!0);const i=t.queuedPayloads;for(t.queuedPayloads=_I();i.size()>0;)hI(i.dequeue(),t,r,n,o,s)}function nG(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||fI(e.status))}function oG(){return{transportStatus:0,currentBackoffTime:pI,bandwidthMonitor:sG(),queuedPayloads:_I(),queueFullReported:!1}}function _I(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=dI}}}function sG(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=eG&&this.ongoingRequestCount{for(const i of e)hI(s,o,(a,l)=>{$d(Ys.AVOID_FETCH_KEEPALIVE)?Hf(i,a,l):lG(i,t,a,l)},i.trackType,r,n)},sendOnExit:s=>{for(const i of e)iG(i,t,s)}}}function iG(e,t,r){if(!!navigator.sendBeacon&&r.bytesCountn==null?void 0:n({status:i.status,type:i.type}))).catch(wt(()=>Hf(e,r,n)))}else Hf(e,r,n)}function Hf(e,t,r){const n=e.build("fetch",t);fetch(n,{method:"POST",body:t.data,mode:"cors"}).then(wt(o=>r==null?void 0:r({status:o.status,type:o.type}))).catch(wt(()=>r==null?void 0:r({status:0})))}function cG(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Fy(){const e=uG();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,r,n){const o=n?{id:n}:void 0;e.send(JSON.stringify({eventType:t,event:r,view:o}))}}}function Vf(e){var t;e===void 0&&(e=(t=bn().location)===null||t===void 0?void 0:t.hostname);const r=Fy();return!!r&&r.getAllowedWebViewHosts().some(n=>e===n||e.endsWith(`.${n}`))}function uG(){return bn().DatadogEventBridge}const Du={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function fG(e){return new Et(t=>{const{stop:r}=$y(e,window,["visibilitychange","freeze"],o=>{o.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:Du.HIDDEN}):o.type==="freeze"&&t.notify({reason:Du.FROZEN})},{capture:!0}),n=si(e,window,"beforeunload",()=>{t.notify({reason:Du.UNLOADING})}).stop;return()=>{r(),n()}})}function dG(e){return Uf(Du).includes(e)}function bI({encoder:e,request:t,flushController:r,messageBytesLimit:n}){let o={};const s=r.flushObservable.subscribe(f=>u(f));function i(f,d,p){r.notifyBeforeAddMessage(d),p!==void 0?(o[p]=f,r.notifyAfterAddMessage()):e.write(e.isEmpty?f:` ${f}`,g=>{r.notifyAfterAddMessage(g-d)})}function a(f){return f!==void 0&&o[f]!==void 0}function l(f){const d=o[f];delete o[f];const p=e.estimateEncodedBytesCount(d);r.notifyAfterRemoveMessage(p)}function c(f,d){const p=Ic(f),g=e.estimateEncodedBytesCount(p);if(g>=n){St.warn(`Discarded a message whose size was bigger than the maximum allowed size ${n}KB. ${Iy} ${Vz}/#technical-limitations`);return}a(d)&&l(d),i(p,g,d)}function u(f){const d=Uf(o).join(` `);o={};const p=dG(f.reason),g=p?t.sendOnExit:t.send;if(p&&e.isAsync){const h=e.finishSync();h.outputBytesCount&&g(yw(h));const m=[h.pendingData,d].filter(Boolean).join(` `);m&&g({data:m,bytesCount:LT(m)})}else d&&e.write(e.isEmpty?d:` ${d}`),e.finish(h=>{g(yw(h))})}return{flushController:r,add:c,upsert:c,stop:s.unsubscribe}}function yw(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function wI({messagesLimit:e,bytesLimit:t,durationLimit:r,pageMayExitObservable:n,sessionExpireObservable:o}){const s=n.subscribe(g=>u(g.reason)),i=o.subscribe(()=>u("session_expire")),a=new Et(()=>()=>{s.unsubscribe(),i.unsubscribe()});let l=0,c=0;function u(g){if(c===0)return;const h=c,m=l;c=0,l=0,p(),a.notify({reason:g,messagesCount:h,bytesCount:m})}let f;function d(){f===void 0&&(f=Tc(()=>{u("duration_limit")},r))}function p(){MT(f),f=void 0}return{flushObservable:a,get messagesCount(){return c},notifyBeforeAddMessage(g){l+g>=t&&u("bytes_limit"),c+=1,l+=g,d()},notifyAfterAddMessage(g=0){l+=g,c>=e?u("messages_limit"):l>=t&&u("bytes_limit")},notifyAfterRemoveMessage(g){l-=g,c-=1,c===0&&p()}}}const la="DISCARDED",Xs="SKIPPED";function pG(){const e={};return{register(t,r){return e[t]||(e[t]=[]),e[t].push(r),{unregister:()=>{e[t]=e[t].filter(n=>n!==r)}}},triggerHook(t,r){const n=e[t]||[],o=[];for(const s of n){const i=s(r);if(i===la)return la;i!==Xs&&o.push(i)}return Zs(...o)}}}const Ls={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},hG=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],gG=1,mG=[Q8];let sh;function Ac(){return sh||(sh=new FT(100)),sh}function yG(e,t,r,n,o,s){const i=new Et,{stop:a}=vG(t,n,o,s,i),{enabled:l,metricsEnabled:c}=_G(e,t,r,i);return{stop:a,enabled:l,metricsEnabled:c}}function _G(e,t,r,n,o=gG){const s={},i=!mG.includes(t.site)&&nl(t.telemetrySampleRate),a={[Ls.LOG]:i,[Ls.CONFIGURATION]:i&&nl(t.telemetryConfigurationSampleRate),[Ls.USAGE]:i&&nl(t.telemetryUsageSampleRate),metric:i&&nl(o)},l=bG(),c=Ac();return c.subscribe(({rawEvent:f,metricName:d})=>{if(d&&!a.metric||!a[f.type])return;const p=d||f.status||f.type;let g=s[p];if(g||(g=s[p]=new Set),g.size>=t.maxTelemetryEventsPerPage)return;const h=Ic(f);if(g.has(h))return;const m=r.triggerHook(1,{startTime:jn().relative});if(m===la)return;const y=u(m,e,f,l);n.notify(y),cI("telemetry",y),g.add(h)}),c.unbuffer(),Qz(SG),{enabled:i,metricsEnabled:a.metric};function u(f,d,p,g){const m={type:"telemetry",date:jn().timeStamp,service:d,version:"6.23.0",source:"browser",_dd:{format_version:2},telemetry:Zs(p,{runtime_env:g,connectivity:J6(),sdk_setup:"npm"}),ddtags:aI(t).join(","),experimental_features:Array.from(c8())};return Zs(m,f)}}function vG(e,t,r,n,o){const s=[];if(Vf()){const i=Fy(),a=o.subscribe(l=>i.send("internal_telemetry",l));s.push(a.unsubscribe)}else{const i=[e.rumEndpointBuilder];e.replica&&wG(e)&&i.push(e.replica.rumEndpointBuilder);const a=bI({encoder:n(4),request:vI(i,e.batchBytesLimit,t),flushController:wI({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:r,sessionExpireObservable:new Et}),messageBytesLimit:e.messageBytesLimit});s.push(a.stop);const l=o.subscribe(a.add);s.push(l.unsubscribe)}return{stop:()=>s.forEach(i=>i())}}function bG(){var e;return{is_local_file:((e=mn.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:Ks}}function wG(e){return e.site===X8}function Uy(e,t){Gg(Rt.debug,e,t),Ac().notify({rawEvent:{type:Ls.LOG,message:e,status:"debug",...t}})}function SG(e,t){Ac().notify({rawEvent:{type:Ls.LOG,status:"error",...kG(e),...t}})}function EG(e){Ac().notify({rawEvent:{type:Ls.CONFIGURATION,configuration:e}})}function xG(e){Ac().notify({rawEvent:{type:Ls.USAGE,usage:e}})}function kG(e){if(oi(e)){const t=wa(e);return{error:{kind:t.name,stack:Sa(CG(t))},message:t.message}}return{error:{stack:nI},message:`Uncaught ${Ic(e)}`}}function CG(e){return e.stack=e.stack.filter(t=>!t.url||hG.some(r=>t.url.startsWith(r))),e}function TG(e){const t=new Set;return e.forEach(r=>t.add(r)),Array.from(t)}function SI(e,t){const r=e.indexOf(t);r>=0&&e.splice(r,1)}const mu=1/0,IG=cs;let Za=null;const $u=new Set;function AG(){$u.forEach(e=>e())}function OG({expireDelay:e,maxEntries:t}){let r=[];Za||(Za=Oy(()=>AG(),IG));const n=()=>{const u=$f()-e;for(;r.length>0&&r[r.length-1].endTime{SI(r,d)},close:p=>{d.endTime=p}};return t&&r.length>=t&&r.pop(),r.unshift(d),d}function s(u=mu,f={returnInactive:!1}){for(const d of r)if(d.startTime<=u){if(f.returnInactive||u<=d.endTime)return d.value;break}}function i(u){const f=r[0];f&&f.endTime===mu&&f.close(u)}function a(u=mu,f=0){const d=Yz(u,f);return r.filter(p=>p.startTime<=d&&u<=p.endTime).map(p=>p.value)}function l(){r=[]}function c(){$u.delete(n),$u.size===0&&Za&&(DT(Za),Za=null)}return{add:o,find:s,closeActive:i,findAll:a,reset:l,stop:c}}const RG="datadog-synthetics-public-id",LG="datadog-synthetics-result-id",PG="datadog-synthetics-injects-rum";function EI(){return Ks?!1:!!(mn._DATADOG_SYNTHETICS_INJECTS_RUM||ks(PG))}function NG(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||ks(RG);return typeof e=="string"?e:void 0}function MG(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||ks(LG);return typeof e=="string"?e:void 0}function DG(){return!!(NG()&&MG())}const $G=cs,FG=Ny;function UG(e,t,r,n){const o=new Et,s=new Et,i=V8(e.sessionStoreStrategyType,e,t,r),a=OG({expireDelay:FG});if(i.renewObservable.subscribe(()=>{a.add(l(),$f()),o.notify()}),i.expireObservable.subscribe(()=>{s.notify(),a.closeActive($f())}),i.expandOrRenewSession(),a.add(l(),Kz().relative),$d(Ys.SHORT_SESSION_INVESTIGATION)){const c=i.getSession();c&&WG(e,c)}n.observable.subscribe(()=>{n.isGranted()?i.expandOrRenewSession():i.expire(!1)}),jG(e,()=>{n.isGranted()&&i.expandOrRenewSession()}),BG(e,()=>i.expandSession()),HG(e,()=>i.restartSession());function l(){const c=i.getSession();return c?{id:c.id,trackingType:c[t],isReplayForced:!!c.forcedReplay,anonymousId:c.anonymousId}:(VG(e).catch(()=>{}),{id:"invalid",trackingType:VT,isReplayForced:!1,anonymousId:void 0})}return{findSession:(c,u)=>a.find(c,u),renewObservable:o,expireObservable:s,sessionStateUpdateObservable:i.sessionStateUpdateObservable,expire:i.expire,updateSessionState:i.updateSessionState}}function jG(e,t){const{stop:r}=$y(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function BG(e,t){const r=()=>{document.visibilityState==="visible"&&t()},{stop:n}=si(e,document,"visibilitychange",r);Oy(r,$G)}function HG(e,t){const{stop:r}=si(e,window,"resume",t,{capture:!0})}async function VG(e){const t=e.sessionStoreStrategyType;if(!t)return;let r,n;t.type===sa.COOKIE?(r=qT(t.cookieOptions),n={cookie:await xI(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):r=ZT(),Uy("Unexpected session state",{sessionStoreStrategyType:t.type,session:r,isSyntheticsTest:DG(),createdTimestamp:r==null?void 0:r.created,expireTimestamp:r==null?void 0:r.expire,...n})}function WG(e,t){if(!window.cookieStore||!t.created)return;const r=Number(t.created),n=Ho(),{stop:o}=si(e,cookieStore,"change",s);function s(i){const a=y8(i.changed,c=>c.name===ho);if(!a)return;const l=Ho()-r;if(l>14*cs)o();else{const c=Ud(a.value);if(c.id&&c.id!==t.id){o();const u=Ho()-n;xI().then(f=>{Uy("Session cookie changed",{time:u,session_age:l,old:t,new:c,cookie:f})}).catch(Ay)}}}}async function xI(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(ho):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(ho)),{count:e.length,domain:BT()||"undefined",...e}}function kI(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,n){const o=LT(r);t+=o,e+=r,n&&n(o)},finish(r){r(this.finishSync())},finishSync(){const r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount(r){return r.length}}}class zG{constructor(){this.callbacks={}}notify(t,r){const n=this.callbacks[t];n&&n.forEach(o=>o(r))}subscribe(t,r){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(r),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(n=>r!==n)}}}}function GG(e,t,r){let n=0,o=!1;return{isLimitReached(){if(n===0&&Tc(()=>{n=0},cs),n+=1,n<=t||o)return o=!1,!1;if(n===t+1){o=!0;try{r({message:`Reached max number of ${e}s by minute: ${t}`,source:Ur.AGENT,startClocks:jn()})}finally{o=!1}}return!0}}}let ih;const jy=new WeakMap;function qG(e){return ih||(ih=KG(e)),ih}function KG(e){return new Et(t=>{const{stop:r}=Rs(XMLHttpRequest.prototype,"open",YG),{stop:n}=Rs(XMLHttpRequest.prototype,"send",s=>{ZG(s,e,t)},{computeHandlingStack:!0}),{stop:o}=Rs(XMLHttpRequest.prototype,"abort",XG);return()=>{r(),n(),o()}})}function YG({target:e,parameters:[t,r]}){jy.set(e,{state:"open",method:String(t).toUpperCase(),url:Ly(String(r))})}function ZG({target:e,parameters:[t],handlingStack:r},n,o){const s=jy.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=jn(),i.isAborted=!1,i.xhr=e,i.handlingStack=r,i.body=t;let a=!1;const{stop:l}=Rs(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{if(u(),l(),a)return;a=!0;const f=s;f.state="complete",f.duration=AT(i.startClocks.timeStamp,bo()),f.status=e.status,o.notify(Jz(f))},{stop:u}=si(n,e,"loadend",c);o.notify(i)}function XG({target:e}){const t=jy.get(e);t&&(t.isAborted=!0)}let ah;function CI(){return ah||(ah=JG()),ah}function JG(){return new Et(e=>{if(!mn.fetch)return;const{stop:t}=Rs(mn,"fetch",r=>QG(r,e),{computeHandlingStack:!0});return t})}function QG({parameters:e,onPostCall:t,handlingStack:r},n){const[o,s]=e;let i=s&&s.method;i===void 0&&o instanceof Request&&(i=o.method);const a=i!==void 0?String(i).toUpperCase():"GET",l=o instanceof Request?o.url:Ly(String(o)),c=jn(),u={state:"start",init:s,input:o,method:a,startClocks:c,url:l,handlingStack:r};n.notify(u),e[0]=u.input,e[1]=u.init,t(f=>eq(n,f,u))}function eq(e,t,r){const n=r;function o(s){n.state="resolve",Object.assign(n,s),e.notify(n)}t.then(wt(s=>{o({response:s,responseType:s.type,status:s.status,isAborted:!1})}),wt(s=>{var i,a;o({status:0,isAborted:((a=(i=n.init)===null||i===void 0?void 0:i.signal)===null||a===void 0?void 0:a.aborted)||s instanceof DOMException&&s.code===DOMException.ABORT_ERR,error:s})}))}let lh={};function tq(e){const t=e.map(r=>(lh[r]||(lh[r]=rq(r)),lh[r]));return $T(...t)}function rq(e){return new Et(t=>{const r=Ln[e];return Ln[e]=(...n)=>{r.apply(console,n);const o=jd("console error");na(()=>{t.notify(nq(n,e,o))})},()=>{Ln[e]=r}})}function nq(e,t,r){const n=e.map(o=>oq(o)).join(" ");if(t===Rt.error){const o=e.find(oi),s=Dy({originalError:o,handlingStack:r,startClocks:jn(),source:Ur.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=n,{api:t,message:n,handlingStack:r,error:s}}return{api:t,message:n,error:void 0,handlingStack:r}}function oq(e){return typeof e=="string"?go(e):oi(e)?rI(wa(e)):Ic(go(e),void 0,2)}const sq=500;function iq(){const e=[];return{add:o=>{e.push(o)>sq&&e.splice(0,1)},remove:o=>{SI(e,o)},drain:o=>{e.forEach(s=>s(o)),e.length=0}}}function aq(e){const t=QT(e)==="object";return t||St.error("Unsupported context:",e),t}function ch(e,t,r){const n={...e};for(const[o,{required:s,type:i}]of Object.entries(t))i==="string"&&!_w(n[o])&&(n[o]=String(n[o])),s&&_w(n[o])&&St.warn(`The property ${o} of ${r} is required; context will not be sent to the intake.`);return n}function _w(e){return e==null||e===""}function Bd(e="",{propertiesConfig:t={}}={}){let r={};const n=new Et,o={getContext:()=>uI(r),setContext:s=>{aq(s)?r=go(ch(s,t,e)):o.clearContext(),n.notify()},setContextProperty:(s,i)=>{r=go(ch({...r,[s]:i},t,e)),n.notify()},removeContextProperty:s=>{delete r[s],ch(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return o}function dr(e,t,r,n){return wt((...o)=>e()[t][r](...o))}function uh(e,t,r){e.changeObservable.subscribe(()=>{const n=e.getContext();r.add(o=>o[t].setContext(n))})}const lq="_dd_c",cq=[];function By(e,t,r,n){const o=uq(r,n);cq.push(si(e,window,"storage",({key:c})=>{o===c&&i()})),t.changeObservable.subscribe(a);const s=Zs(l(),t.getContext());Cc(s)||t.setContext(s);function i(){t.setContext(l())}function a(){localStorage.setItem(o,JSON.stringify(t.getContext()))}function l(){const c=localStorage.getItem(o);return c?JSON.parse(c):{}}}function uq(e,t){return`${lq}_${e}_${t}`}function fq(e,t,r){const n=TI();return t.storeContextsAcrossPages&&By(t,n,r,4),e.register(0,()=>{const o=n.getContext();return Cc(o)||!o.id?Xs:{account:o}}),n}function TI(){return Bd("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function dq(e,t,r,n){const o=II();return t.storeContextsAcrossPages&&By(t,o,r,2),e.register(0,()=>o.getContext()),o}function II(){return Bd("global context")}function pq(e,t,r,n){const o=AI();return t.storeContextsAcrossPages&&By(t,o,n,1),e.register(0,({eventType:s,startTime:i})=>{const a=o.getContext(),l=r.findTrackedSession(i);return l&&l.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=l.anonymousId),Cc(a)?Xs:{type:s,usr:a}}),e.register(1,({startTime:s})=>{var i;return{anonymous_id:(i=r.findTrackedSession(s))===null||i===void 0?void 0:i.anonymousId}}),o}function AI(){return Bd("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const zt={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},pr={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function hq(e,t,r){const n=e.getReader(),o=[];let s=0;i();function i(){n.read().then(wt(l=>{if(l.done){a();return}o.push(l.value),s+=l.value.length,s>r.bytesLimit?a():i()}),wt(l=>t(l)))}function a(){n.cancel().catch(Xo);let l,c;{let u;if(o.length===1)u=o[0];else{u=new Uint8Array(s);let f=0;o.forEach(d=>{u.set(d,f),f+=d.length})}l=u.slice(0,r.bytesLimit),c=u.length>r.bytesLimit}t(void 0,l,c)}}const vw={XHR:"xhr",FETCH:"fetch"},Zg={FETCH:vw.FETCH,XHR:vw.XHR},gq=500;function mq(e=F6){const t=new FT(gq),r=e().subscribe(n=>{t.notify({type:0,error:n})});return{observable:t,stop:()=>{r.unsubscribe()}}}function Wf(e,t,r){const n=r.getHandler(),o=Array.isArray(n)?n:[n];return bw[e]>=bw[r.getLevel()]&&o.includes(t)}const ke={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},bw={[ke.ok]:0,[ke.debug]:1,[ke.info]:2,[ke.notice]:4,[ke.warn]:5,[ke.error]:6,[ke.critical]:7,[ke.alert]:8,[ke.emerg]:9};function Hd(e,{includeMessage:t=!1}={}){return{stack:e.stack,kind:e.type,message:t?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var yq=function(e,t,r,n){var o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};const fc={console:"console",http:"http"},_q=Object.keys(ke);class Zr{constructor(t,r,n=fc.http,o=ke.debug,s={}){this.handleLogStrategy=t,this.handlerType=n,this.level=o,this.contextManager=Bd("logger"),this.tags=[],this.contextManager.setContext(s),r&&this.contextManager.setContextProperty("logger",{name:r})}logImplementation(t,r,n=ke.info,o,s){const i=go(r);let a;if(o!=null){const l=Dy({originalError:o,nonErrorPrefix:"Provided",source:Ur.LOGGER,handling:"handled",startClocks:jn()});a=Zs({error:Hd(l,{includeMessage:!0})},l.context,i)}else a=i;this.handleLogStrategy({message:go(t),context:a,status:n},this,s)}log(t,r,n=ke.info,o){let s;Wf(n,fc.http,this)&&(s=jd("log")),this.logImplementation(t,r,n,o,s)}setContext(t){this.contextManager.setContext(t)}getContext(){return this.contextManager.getContext()}setContextProperty(t,r){this.contextManager.setContextProperty(t,r)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}addTag(t,r){this.tags.push(ys(t,r))}removeTagsWithKey(t){const r=lI(t);this.tags=this.tags.filter(n=>n!==r&&!n.startsWith(`${r}:`))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}}yq([t8],Zr.prototype,"logImplementation",null);Zr.prototype.ok=wo(ke.ok);Zr.prototype.debug=wo(ke.debug);Zr.prototype.info=wo(ke.info);Zr.prototype.notice=wo(ke.notice);Zr.prototype.warn=wo(ke.warn);Zr.prototype.error=wo(ke.error);Zr.prototype.critical=wo(ke.critical);Zr.prototype.alert=wo(ke.alert);Zr.prototype.emerg=wo(ke.emerg);function wo(e){return function(t,r,n){let o;Wf(e,fc.http,this)&&(o=jd("log")),this.logImplementation(t,r,e,n,o)}}function ww(){return Ks?{}:{view:{referrer:document.referrer,url:window.location.href}}}const vq=32*ta;function bq(e,t){e.usePciIntake===!0&&e.site&&e.site!=="datadoghq.com"&&St.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");const r=f6(e,t),n=Sw(e.forwardConsoleLogs,Uf(Rt),"Forward Console Logs"),o=Sw(e.forwardReports,Uf(jf),"Forward Reports");if(!(!r||!n||!o))return e.forwardErrorsToLogs&&!n.includes(Rt.error)&&n.push(Rt.error),{forwardErrorsToLogs:e.forwardErrorsToLogs!==!1,forwardConsoleLogs:n,forwardReports:o,requestErrorResponseLengthLimit:vq,...r}}function Sw(e,t,r){if(e===void 0)return[];if(!(e==="all"||Array.isArray(e)&&e.every(n=>t.includes(n)))){St.error(`${r} should be "all" or an array with allowed values "${t.join('", "')}"`);return}return e==="all"?t:TG(e)}function wq(e){const t=d6(e);return{forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,...t}}function Sq(e,t,r){const n=iq(),o=II();uh(o,zt.globalContext,n);const s=TI();uh(s,zt.accountContext,n);const i=AI();uh(i,zt.userContext,n);let a,l;const c=t.observable.subscribe(u);function u(){if(!l||!a||!t.isGranted())return;c.unsubscribe();const f=r(a,l);n.drain(f)}return{init(f,d){if(!f){St.error("Missing configuration");return}if(a8(f.enableExperimentalFeatures),Vf()&&(f=Eq(f)),a=f,EG(wq(f)),l){oI("DD_LOGS",f);return}const p=bq(f,d);p&&(l=p,CI().subscribe(Xo),t.tryToInit(p.trackingConsent),u())},get initConfiguration(){return a},globalContext:o,accountContext:s,userContext:i,getInternalContext:Xo,handleLog(f,d,p,g=e(),h=bo()){n.add(m=>m.handleLog(f,d,p,g,h))}}}function Eq(e){return{...e,clientToken:"empty"}}function xq(e){const t=W8(),r=mq().observable;let n=Sq(ww,t,(a,l)=>{const c=e(l,ww,t,r);return n=kq(a,c),c});const o=()=>n,s={},i=new Zr((...a)=>n.handleLog(...a));return B6({logger:i,init:a=>{const l=new Error().stack;na(()=>n.init(a,l))},setTrackingConsent:wt(a=>{t.update(a),xG({feature:"set-tracking-consent",tracking_consent:a})}),getGlobalContext:dr(o,zt.globalContext,pr.getContext),setGlobalContext:dr(o,zt.globalContext,pr.setContext),setGlobalContextProperty:dr(o,zt.globalContext,pr.setContextProperty),removeGlobalContextProperty:dr(o,zt.globalContext,pr.removeContextProperty),clearGlobalContext:dr(o,zt.globalContext,pr.clearContext),createLogger:wt((a,l={})=>(s[a]=new Zr((...c)=>n.handleLog(...c),go(a),l.handler,l.level,go(l.context)),s[a])),getLogger:wt(a=>s[a]),getInitConfiguration:wt(()=>uI(n.initConfiguration)),getInternalContext:wt(a=>n.getInternalContext(a)),setUser:dr(o,zt.userContext,pr.setContext),getUser:dr(o,zt.userContext,pr.getContext),setUserProperty:dr(o,zt.userContext,pr.setContextProperty),removeUserProperty:dr(o,zt.userContext,pr.removeContextProperty),clearUser:dr(o,zt.userContext,pr.clearContext),setAccount:dr(o,zt.accountContext,pr.setContext),getAccount:dr(o,zt.accountContext,pr.getContext),setAccountProperty:dr(o,zt.accountContext,pr.setContextProperty),removeAccountProperty:dr(o,zt.accountContext,pr.removeContextProperty),clearAccount:dr(o,zt.accountContext,pr.clearContext)})}function kq(e,t){return{init:r=>{oI("DD_LOGS",r)},initConfiguration:e,...t}}const Cq="logs";function Tq(e,t){const r=UG(e,Cq,n=>OI(e,n),t);return{findTrackedSession:(n,o={returnInactive:!1})=>{const s=r.findSession(n,o);return s&&s.trackingType==="1"?{id:s.id,anonymousId:s.anonymousId}:void 0},expireObservable:r.expireObservable}}function Iq(e){const r=OI(e)==="1"?{}:void 0;return{findTrackedSession:()=>r,expireObservable:new Et}}function OI(e,t){return Aq(t)?t:nl(e.sessionSampleRate)?"1":"0"}function Aq(e){return e==="0"||e==="1"}function Oq(e,t,r,n,o){const s=_q.concat(["custom"]),i={};s.forEach(a=>{i[a]=GG(a,e.eventRateLimiterThreshold,o)}),t.subscribe(0,({rawLogsEvent:a,messageContext:l=void 0,savedCommonContext:c=void 0,domainContext:u,ddtags:f=[]})=>{var d,p;const g=Zz(a.date),h=c||n(),m=r.triggerHook(0,{startTime:g});if(m===la)return;const y=aI(e),b=Zs({view:h.view},m,a,l,{ddtags:y.concat(f).join(",")});((d=e.beforeSend)===null||d===void 0?void 0:d.call(e,b,u))===!1||b.origin!==Ur.AGENT&&((p=i[b.status])!==null&&p!==void 0?p:i.custom).isLimitReached()||t.notify(1,b)})}const Rq={[Rt.log]:ke.info,[Rt.debug]:ke.debug,[Rt.info]:ke.info,[Rt.warn]:ke.warn,[Rt.error]:ke.error};function Lq(e,t){const r=tq(e.forwardConsoleLogs).subscribe(n=>{var o;const s={rawLogsEvent:{date:bo(),message:n.message,origin:Ur.CONSOLE,error:n.error&&Hd(n.error),status:Rq[n.api]},messageContext:(o=n.error)===null||o===void 0?void 0:o.context,domainContext:{handlingStack:n.handlingStack}};t.notify(0,s)});return{stop:()=>{r.unsubscribe()}}}function Pq(e,t){const r=V6(e,e.forwardReports).subscribe(n=>{let o=n.message,s;const i=n.originalError.type==="deprecation"?ke.warn:ke.error;i===ke.error?s=Hd(n):n.stack&&(o+=` Found in ${D6(n.stack)}`),t.notify(0,{rawLogsEvent:{date:bo(),message:o,origin:Ur.REPORT,error:s,status:i}})});return{stop:()=>{r.unsubscribe()}}}function Nq(e,t){if(!e.forwardErrorsToLogs)return{stop:Xo};const r=(Ks?new Et:qG(e)).subscribe(s=>{s.state==="complete"&&o(Zg.XHR,s)}),n=CI().subscribe(s=>{s.state==="resolve"&&o(Zg.FETCH,s)});function o(s,i){!c6(i.url)&&(Fq(i)||fI(i.status))&&("xhr"in i?Mq(i.xhr,e,a):i.response?$q(i.response,e,a):i.error&&Dq(i.error,e,a));function a(l){const c={isAborted:i.isAborted,handlingStack:i.handlingStack};t.notify(0,{rawLogsEvent:{message:`${Uq(s)} error ${i.method} ${i.url}`,date:i.startClocks.timeStamp,error:{stack:l||"Failed to load",handling:void 0},http:{method:i.method,status_code:i.status,url:i.url},status:ke.error,origin:Ur.NETWORK},domainContext:c})}}return{stop:()=>{r.unsubscribe(),n.unsubscribe()}}}function Mq(e,t,r){typeof e.response=="string"?r(Hy(e.response,t)):r(e.response)}function Dq(e,t,r){r(Hy(Sa(wa(e)),t))}function $q(e,t,r){const n=Q6(e);!n||!n.body?r():window.TextDecoder?jq(n.body,t.requestErrorResponseLengthLimit,(o,s)=>{r(o?`Unable to retrieve response: ${o}`:s)}):n.text().then(wt(o=>r(Hy(o,t))),wt(o=>r(`Unable to retrieve response: ${o}`)))}function Fq(e){return e.status===0&&e.responseType!=="opaque"}function Hy(e,t){return e.length>t.requestErrorResponseLengthLimit?`${e.substring(0,t.requestErrorResponseLengthLimit)}...`:e}function Uq(e){return Zg.XHR===e?"XHR":"Fetch"}function jq(e,t,r){hq(e,(n,o,s)=>{if(n)r(n);else{let i=new TextDecoder().decode(o);s&&(i+="..."),r(void 0,i)}},{bytesLimit:t})}function Bq(e,t,r){if(!e.forwardErrorsToLogs)return{stop:Xo};const n=r.subscribe(o=>{if(o.type===0){const s=o.error;t.notify(0,{rawLogsEvent:{message:s.message,date:s.startClocks.timeStamp,error:Hd(s),origin:Ur.SOURCE,status:ke.error},messageContext:s.context})}});return{stop:()=>{n.unsubscribe()}}}const Hq=zG;function Vq(e){function t(r,n,o,s,i){const a=Zs(n.getContext(),r.context);if(Wf(r.status,fc.console,n)&&zq(r,a),Wf(r.status,fc.http,n)){const l={rawLogsEvent:{date:i||bo(),message:r.message,status:r.status,origin:Ur.LOGGER},messageContext:a,savedCommonContext:s,ddtags:n.getTags()};o&&(l.domainContext={handlingStack:o}),e.notify(0,l)}}return{handleLog:t}}const Wq={[ke.ok]:Rt.debug,[ke.debug]:Rt.debug,[ke.info]:Rt.info,[ke.notice]:Rt.info,[ke.warn]:Rt.warn,[ke.error]:Rt.error,[ke.critical]:Rt.error,[ke.alert]:Rt.error,[ke.emerg]:Rt.error};function zq({status:e,message:t},r){_s[Wq[e]].call(Ln,t,r)}function Gq(e,t,r,n,o){const s=[e.logsEndpointBuilder];e.replica&&s.push(e.replica.logsEndpointBuilder);const i=bI({encoder:kI(),request:vI(s,e.batchBytesLimit,r),flushController:wI({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:n,sessionExpireObservable:o.expireObservable}),messageBytesLimit:e.messageBytesLimit});return t.subscribe(1,a=>{i.add(a)}),i}function qq(e){const t=Fy();e.subscribe(1,r=>{t.send("log",r)})}function Kq(e){return{get:t=>{const r=e.findTrackedSession(t);if(r)return{session_id:r.id}}}}function Yq(e){return t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:Ur.AGENT,status:ke.error}}),Uy("Error reported to customer",{"error.message":t.message})}}const Zq=pG;function Xq(e){const t=mn;e.register(0,({startTime:o})=>{const s=r(o);return s||Xs}),e.register(1,({startTime:o})=>{var s,i;const a=r(o);return a?{application:{id:a.application_id},view:{id:(s=a.view)===null||s===void 0?void 0:s.id},action:{id:(i=a.user_action)===null||i===void 0?void 0:i.id}}:Xs});function r(o){const i=EI()?t.DD_RUM_SYNTHETICS:t.DD_RUM,a=n(o,i);if(a)return a}function n(o,s){if(s&&s.getInternalContext)return s.getInternalContext(o)}}function Jq(e,t,r){e.register(0,({startTime:n})=>{const o=r.findTrackedSession(n);return r.findTrackedSession(n,{returnInactive:!0})?{service:t.service,session_id:o?o.id:void 0,session:o?{id:o.id}:void 0}:la}),e.register(1,({startTime:n})=>{const o=r.findTrackedSession(n);return!o||!o.id?Xs:{session:{id:o.id}}})}function Qq(e,t){function r(){return t.isGranted()?Xs:la}e.register(0,r),e.register(1,r)}const fh="logs";function e9(e,t,r,n){const o=new Hq,s=Zq(),i=[];o.subscribe(1,m=>cI("logs",m));const a=Yq(o),l=Ks?new Et:fG(e),c=yG("browser-logs-sdk",e,s,a,l,kI);i.push(c.stop);const u=e.sessionStoreStrategyType&&!Vf()&&!EI()?Tq(e,r):Iq(e);Qq(s,r),Jq(s,e,u);const f=fq(s,e,fh),d=pq(s,e,u,fh),p=dq(s,e,fh);Xq(s),Nq(e,o),Bq(e,o,n),n.unbuffer(),Lq(e,o),Pq(e,o);const{handleLog:g}=Vq(o);if(Oq(e,o,s,t,a),Vf())qq(o);else{const{stop:m}=Gq(e,o,a,l,u);i.push(()=>m())}const h=Kq(u);return{handleLog:g,getInternalContext:h.get,accountContext:f,globalContext:p,userContext:d,stop:()=>{i.forEach(m=>m())}}}const Xg=xq(e9);H6(bn(),"DD_LOGS",Xg);function t9(e){dm(()=>{const t=at(),r=t.public.datadogSite||"us3.datadoghq.com";Xg.init({clientToken:"pubc8593913151c3de3f3d832c73b59ffa8",site:r,env:"production",version:t.public.datadogVersion||"unknown",forwardErrorsToLogs:!0,sessionSampleRate:.01,...e}),Xg.logger.setLevel("warn")})}const r9=""+new URL("one_news_logo.B36a5Azn.svg",import.meta.url).href,n9=""+new URL("one_news_logo_dark.DmBixRSb.svg",import.meta.url).href,Ew=O.enum(["Automotive","Business","Entertainment","Food","Health","Lifestyle","Money","News","Politics","Science","Shopping","Sports","Technology","Travel"]).catch("News");function o9(){const e=ED("history",{initialValue:{category:"News",lang:void 0}});Or(()=>{Ew.safeParse(e.category).success||(e.category="News")});const t=ue(Ew.parse(e.category));Oe(t,n=>{e.category=n});const r=ue(e.lang);return Oe(r,n=>{Array.isArray(n)?e.lang=n[0]:e.lang=n},{immediate:!0}),{selectedCategory:t,selectedLang:r}}const xw=O.string().regex(/^[A-Za-z]{2}(-([A-Za-z]{2})){0,1}$/).transform(e=>({language:e.split("-")[0].toLowerCase(),country:e.includes("-")?e.split("-")[1].toUpperCase():""})),s9=O.string().regex(/^[a-z]{2}$/,"Invalid language code"),i9=O.string().regex(/^[A-Z]{2}$/,"Invalid country code"),kw={en:"US",es:"MX",fr:"FR",pt:"BR",de:"DE",it:"IT",pl:"PL",tr:"TR",ca:"ES",ko:"KR",uk:"UA",da:"DK",sv:"SE",no:"NO",hi:"IN",ja:"JP",tl:"PH",th:"TH",id:"ID",vi:"VN",ur:"PK",cs:"CZ",he:"IL",sw:"KE",bn:"BD",ro:"RO",hu:"HU",el:"GR",nl:"NL",ar:"AE",ta:"SG"},a9=ha("locale",()=>{const e=ue(void 0),t=ue(void 0),{selectedLang:r}=o9(),n=X(()=>Array.isArray(r.value)?l(r.value)??e.value??"en":a(r.value??"")??e.value??"en"),o=X(()=>{if(!r.value)return t.value??"US"}),s=p=>{if(!p)return"";const g=xw.safeParse(p);return g.success?g.data.country:""},i=p=>{if(!p)return"";const g=xw.safeParse(p);return g.success?g.data.language:""},a=p=>{const g=i(p),h=s9.safeParse(g);return h.success?h.data:void 0},l=p=>{for(const g of p)if(a(g))return a(g)},c=p=>{for(const g of p){const h=s(g);if(h){const y=i9.safeParse(h);if(y.success)return y.data;continue}const m=a(g);if(m)return u(void 0,m)}},u=(p,g)=>p||(kw[g??"en"]??kw.en);Oe(()=>r.value,p=>{if(!p){r.value=void 0;return}const g=Array.isArray(p)?l(p):a(p);r.value=g},{immediate:!0});const f=l(navigator.languages);e.value=f;const d=c(navigator.languages);return t.value=u(d,f),window.addEventListener("languagechange",()=>{const p=l(navigator.languages),g=c(navigator.languages);e.value=p,t.value=g}),{locale:n,country:o}});function l9(e){function t(o,s){Oe(o,(i,a)=>{if(i!==a){const l=document==null?void 0:document.head.querySelector(`link[rel="${s}"]`);l&&(l.href=i)}},{immediate:!0})}const r=Rx(),n=X(()=>{const o=e();return{ico:`${at().app.cdnURL}/${o}.ico`,svg:`${at().app.cdnURL}/${o}.svg`,png96x96:`${at().app.cdnURL}/${o}-96x96.png`,png180x180:`${at().app.cdnURL}/${o}-180x180.png`}});return $s({link:[{rel:"shortcut icon",type:"image/x-icon",href:n.value.ico},{rel:"alternate icon",type:"image/svg+xml",href:n.value.svg},{rel:"icon",sizes:"96x96",href:n.value.png96x96},{rel:"apple-touch-icon",sizes:"180x180",href:n.value.png180x180}]}),t(()=>n.value.ico,"shortcut icon"),t(()=>n.value.svg,"alternate icon"),t(()=>n.value.png96x96,"icon"),t(()=>n.value.png180x180,"apple-touch-icon"),{isDark:r,favicon:n}}const c9=O.object({doodle:O.union([O.literal("off"),O.literal("on"),O.literal("random")]),design:O.optional(O.union([O.literal("google"),O.literal("msn")])),searchboxDesign:O.optional(O.union([O.literal("default"),O.literal("v2"),O.literal("v2-big-yolo"),O.literal("v3")])),searchSuggestionType:O.optional(O.union([O.literal("simple"),O.literal("rich")])),aboveFoldSectionShown:O.optional(O.union([O.literal("LargeCardWithGridSection"),O.literal("HalfPageAdWithGridSection"),O.literal("ContentNewsMixSection"),O.literal("ContentNewsMixWithKeywordSection"),O.literal("CarouselWithGridSection"),O.literal("GamesSection"),O.literal("CategoryMixSection"),O.literal("FiveColumn2x2Card")]))}),Cw=O.object({homePage:O.optional(c9.partial())}),u9=Cd({defaults:Cw.parse({homePage:{doodle:"off",design:"msn",searchboxDesign:"default",searchSuggestionType:"simple",aboveFoldSectionShown:void 0}}),configStoreKey:"layoutSettings",schema:e=>Cw.parse(e)}),f9=ha("app:layoutSettings",()=>{const e=ue({siteName:"",articlePageUrl:"",homePageUrl:"",tabCategories:[],videoPageUrl:"",headerLogo:"",headerLogoDarkMode:"",tagline:"",footerBrandName:""}),t=vk(n=>{e.value={...e.value,...n}}),r=X(()=>e.value);return{setup:t,settings:r}}),d9=It({__name:"app",async setup(e){let t,r;const n=u9(),o=Td(),s=KC();[t,r]=ES(()=>Promise.all([n.initialized,o.initialized,s.initialized])),await t,r();function i(){const m=ti();return["/contact","/privacy-policy","/terms"].includes(m.path)}$s({htmlAttrs:{lang:"en",class:"bg-background-default dark:bg-background-neutral-subtle"},link:[{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:""},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto&display=swap"}],meta:[{name:"apple-mobile-web-app-title",content:"OneNews"}]});const a=()=>{const{onelaunch:m}=Bn();return!!m},l=gk(),c=Rx();function u(){const m=c.value?"-dark":"-light";return a()?l?`home-favicon${m}`:`search-favicon${m}`:"onenews-favicon"}l9(u),Hz();const{setLocale:f}=Ed();Or(()=>{const m=eC();i()&&(m.value="light")});{const{locale:m}=a9();f(m.toLowerCase())}const d=[{id:"News",label:"News"},{id:"Sports",label:"Sports"},{id:"Politics",label:"Politics"},{id:"Entertainment",label:"Entertainment"},{id:"Money",label:"Money"},{id:"Lifestyle",label:"Lifestyle"},{id:"Technology",label:"Technology"},{id:"Food",label:"Food"},{id:"Travel",label:"Travel"},{id:"Health",label:"Health"},{id:"Automotive",label:"Automotive"},{id:"Shopping",label:"Shopping"},{id:"Weather",label:"Weather",disableSelection:!0,onClick:p}];function p(){window.open("https://www.accuweather.com/en/ca/woburn/m1h/current-weather/3394003?lang=en-us&partner=web_onelaunch_ntp_adc","_blank").focus()}const{urls:g,siteName:h}=Fr();return f9().setup({siteName:h,homePageUrl:g.home,articlePageUrl:g.article,videoPageUrl:g.video,tabCategories:d,headerLogo:a()?void 0:r9,headerLogoDarkMode:a()?void 0:n9}),t9({service:"onenews"}),(m,y)=>{const b=e2,_=Bz;return me(),_t(bt,null,[it(b),it(_)],64)}}}),p9={key:0,class:"h-screen flex justify-center items-center"},h9=It({__name:"error",props:{error:{}},setup(e){const t=e;return dm(()=>{var r;((r=t.error)==null?void 0:r.statusCode)===404&&Oo({path:"/"})}),(r,n)=>{var o;return((o=t.error)==null?void 0:o.statusCode)!==404?(me(),_t("div",p9," An error occured. Please retry! ")):Xt("",!0)}}}),g9={key:0},Tw={__name:"nuxt-root",setup(e){const t=()=>null,r=Ie(),n=r.deferHydration();if(r.isHydrating){const l=r.hooks.hookOnce("app:error",n);Ht().beforeEach(l)}const o=!1;Is(mc,ti()),r.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const s=ld(),i=!1;bS((l,c,u)=>{if(r.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),kE(l)&&(l.fatal||l.unhandled))return r.runWithContext(()=>Ro(l)),!1});const a=!1;return(l,c)=>(me(),ft(HS,{onResolve:He(n)},{default:Ns(()=>[He(i)?(me(),_t("div",g9)):He(s)?(me(),ft(He(h9),{key:1,error:He(s)},null,8,["error"])):He(a)?(me(),ft(He(t),{key:2,context:He(a)},null,8,["context"])):He(o)?(me(),ft(Qf(He(o)),{key:3})):(me(),ft(He(d9),{key:4}))]),_:1},8,["onResolve"]))}};let Iw;{let e;Iw=async function(){var i,a;if(e)return e;const n=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?dR(Tw):fR(Tw),o=S1({vueApp:n});async function s(l){var c;await o.callHook("app:error",l),(c=o.payload).error||(c.error=cd(l))}n.config.errorHandler=s,o.hook("app:suspense:resolve",()=>{n.config.errorHandler===s&&(n.config.errorHandler=void 0)});try{await k1(o,JW)}catch(l){s(l)}try{await o.hooks.callHook("app:created",n),await o.hooks.callHook("app:beforeMount",n),n.mount(v1),await o.hooks.callHook("app:mounted",n),await qr()}catch(l){s(l)}return n},e=Iw().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{tD as $,Zo as A,Oe as B,Ef as C,k9 as D,iV as E,bt as F,Ox as G,Zk as H,Ns as I,ft as J,KC as K,ES as L,ga as M,fn as N,y9 as O,xl as P,Qs as Q,jt as R,Is as S,ed as T,fo as U,Tt as V,qr as W,Jt as X,Me as Y,nn as Z,ni as _,Do as a,xh as a$,Qf as a0,bc as a1,wT as a2,va as a3,Dd as a4,Js as a5,SE as a6,Rz as a7,zi as a8,zr as a9,Td as aA,O as aB,Nx as aC,fV as aD,x9 as aE,W5 as aF,qA as aG,at as aH,Zf as aI,V5 as aJ,mV as aK,L5 as aL,u9 as aM,ja as aN,Nl as aO,NB as aP,Bn as aQ,Oo as aR,Ie as aS,mc as aT,N9 as aU,qc as aV,O9 as aW,WP as aX,HS as aY,O1 as aZ,s_ as a_,Dr as aa,F9 as ab,a$ as ac,z9 as ad,g_ as ae,Nn as af,ir as ag,QS as ah,Ps as ai,v9 as aj,ti as ak,Ht as al,a9 as am,ss as an,f9 as ao,o9 as ap,P9 as aq,Xf as ar,Zt as as,$B as at,oH as au,Pb as av,ei as aw,wB as ax,J3 as ay,ri as az,dm as b,vH as b$,Cd as b0,w9 as b1,S9 as b2,W9 as b3,hy as b4,qB as b5,GB as b6,MB as b7,Rn as b8,Fr as b9,B9 as bA,V9 as bB,H9 as bC,NA as bD,H5 as bE,Y5 as bF,cW as bG,Q3 as bH,kT as bI,bD as bJ,U9 as bK,YB as bL,gf as bM,V_ as bN,yn as bO,hE as bP,I9 as bQ,kR as bR,YA as bS,sp as bT,kv as bU,yu as bV,L9 as bW,R9 as bX,ua as bY,cd as bZ,er as b_,w5 as ba,E9 as bb,hz as bc,M9 as bd,NM as be,ZN as bf,D9 as bg,Nk as bh,Bb as bi,Ek as bj,bk,mH as bl,eo as bm,Vl as bn,os as bo,no as bp,vk as bq,ha as br,Ua as bs,gD as bt,A9 as bu,j9 as bv,b5 as bw,CN as bx,LB as by,mD as bz,_t as c,yH as c0,wH as c1,Ak as c2,EB as c3,UC as c4,It as d,X as e,b9 as f,Xt as g,it as h,_9 as i,He as j,T9 as k,Je as l,qe as m,et as n,me as o,Ol as p,Wu as q,ue as r,oV as s,Uo as t,Ed as u,C9 as v,$9 as w,Or as x,$s as y,hD as z}; //# sourceMappingURL=dyjEFKqM.js.map