1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./F9fI8ZTB.js","./CxXxvYxE.js","./ErrorNotification.COr42_8i.css","./DkJGWGAE.js","./CDbXMMwW.js","./DhSgQLqh.js","./BVtj2nyh.js","./CqkleIqs.js","./DCgFvPl5.js","./v_-QsEY5.js","./CKWrWwPe.js","./Dm-cPW_D.js","./_WlVQju8.js","./index.pc4mQxKw.css","./DwGPUiQ8.js","./login.CSBQm8zI.css","./CszOV7n9.js","./_layers.BPmXxDye.css","./BJk3UH7m.js","./C6KIftee.js","./BSDtez9M.js","./BMm6t3u4.js","./index.CmvydwM3.css","./0ekbVufX.js","./DWKuUK1k.js","./index.CBQFO3XV.css","./DGpkQt9g.js","./KlJH24p3.js","./e-2vJSxi.js","./DEHv7peM.js","./TSkeleton.BplFGOQo.css","./gW4ofI-w.js","./BhZZGsyC.js","./CClg45q6.js","./BaseCheckoutNew.BkiUiswu.css","./DQREW9Z4.js","./CFn6kVO4.js","./D9l6fa8S.js","./CQfBR3YH.js","./l3QDY6Xh.js","./CheckoutError.Dsk7qmSL.css","./BFXqLExF.js","./CIBoYGTF.js","./CCUBYAuH.js","./B6Gm-V1Q.js","./BInpqRcV.js","./CheckoutTitle.DLl1maSO.css","./DZu6Ti2i.js","./DHC-KhyU.js","./Bh4JC3Tu.js","./DetailsBoxRow.DQRcpoxw.css","./DSgjzqlK.js","./CheckoutSeparator.Di6qJT4-.css","./CheckoutDetailsBox.C-H8C92R.css","./LvjpH1vl.js","./Hix0Qm4e.js","./B_m_5JoQ.js","./TermsAndConditionsCheckbox.BgXUBkMR.css","./DWOlbzUf.js","./DRfsxepS.js","./wNSGIzw6.js","./IPAC.CWjfRqtz.css","./DkE7mHT9.js","./DgZ2fmsb.js","./TPaymentMethodCard.B51LdRrq.css","./Hc49PKlK.js","./CzqRfm2S.js","./BVJXUJJo.js","./BaseDrawerHeader.DMb9ZAcu.css","./index.Bb4zFWkO.css","./Cvs3eKtF.js","./6baCRldn.js","./PaymentInProgress.DdZwYscV.css","./Cpe9Ej5e.js","./Vgdfg4MX.js","./BvMsmYrB.js","./BcFYqWGL.js","./C6DzfFyT.js","./Bg33uy9J.js","./-4kNJdCr.js","./GbVveIO9.js","./BwddVilO.js","./BKrj-4V8.js","./DwDNgv4f.js","./WalletPaymentOptions.d_TzK0B-.css","./CtZsz8z-.js","./DbPzi-8z.js","./DnmQYn0B.js","./index.Ca8EY3LR.css","./Dl4FbP5y.js","./DQG4KSbA.js","./PNP49Sfl.js","./ScannableCodeModal.BchOrOLZ.css","./DOcSfJPg.js","./CjQGSEbz.js","./boleto.DAyBQsRx.css","./CpjQlH7t.js","./BbUSY_aA.js","./adaptive.B8wRa3ex.css","./CFkEtv8f.js","./MpAAhRke.js","./_slug_.CngxUsFu.css","./D1RiH3-s.js","./HauwYBW1.js","./Sy159Vcb.js","./DZX1JAAy.js","./index.BsAV592n.css","./540uGBmU.js","./B6mLMUly.js","./index.DSO-eo4g.css","./CI6nqQou.js","./Clor5wws.js","./_product_.WngSnXJ0.css","./xkDUnxn-.js","./pix-banking.BfX623MF.css","./DSzqdAzK.js","./BcV--AFU.js","./transfer-mx.kKgGJtrG.css","./p60Ks28F.js","./_formName_.DZXaEVCI.css","./BOtw6L57.js","./street-map.CyTOG4od.css","./DmJbwgWf.js","./DF8UEJfA.js","./BaseCard.B7-1Au-0.css","./B1zdMm_9.js","./index.27Vhop_C.css","./BPpAphs6.js","./XxlW4x5B.js","./nWmk2mYZ.js","./useCustomerPortalSessionGuard.3jnfS8_j.css","./CTd-yS3N.js","./C8d0I7BZ.js","./BvpD8Lty.js","./rFjxoBU8.js","./BDdNfvWj.js","./SubscriptionPaymentMethod.DOJpcVrA.css","./DxylVwld.js","./OlfjteP-.js","./BPwDSxYi.js","./C8vL_yU4.js","./BnGiThZz.js","./zvO_Lx1c.js","./C4IKE9g5.js","./mHYuRcD4.js","./DUwr9jCW.js","./useExternalTransactionRequestEntryPointSync.D4tVD-cd.css","./DwinCXLI.js","./D_WUFGeG.js","./index.BJXWYTl5.css","./DeVNfZsk.js","./_product_.B5BR4rIX.css","./CHfBWYmx.js","./Dbc48uo4.js","./index.BGClY21Q.css","./DHAk21qN.js","./index.CPaUyve4.css","./CydkGsqo.js","./CnHLsUeV.js","./CodiStep.DYdJbyDK.css","./enrollment.Bf2U_T4y.css","./CZV_fosM.js","./DBExxKTR.js","./M8vJJUO7.js","./tLfneW1f.js","./D8KA1UOR.js","./index.ychtCq3K.css","./oElUYSqa.js","./_section_.-bmPlnbw.css","./BmwCyo7F.js","./DMhAizGV.js","./SelectSubscriptionSkeleton.B4jPJu_b.css","./index.DRRtLqki.css","./CHYlEqwl.js","./reference.BEXqbAmK.css","./BQ5XzMbp.js","./confirmation.N5jHLDY8.css","./BA2jl4mA.js","./Dg7-iWIj.js","./TransferBankAppNotice.CsJhfhWo.css","./index.DnIDVfBR.css","./CCy1jBlG.js","./CCa87jF-.js","./Dusy4xJb.js","./StreamStepsSummary.C9hGoUfq.css","./DtsiYhAz.js","./CecpLTi6.js","./ReviewEnrollmentStep.DDWn86mv.css","./BCI6ULMA.js","./D5TPVhLf.js","./DJLsn-6j.js","./BwaTbP1Z.js","./BFeD4MBL.js","./ReviewPlanStep.3F-9ZoVn.css","./fRtSKVVD.js","./Cv6F0lZY.js","./finalize.CRlPOrrk.css","./BjlGNywD.js","./demo.DLwMwyJb.css","./BUo2FXCc.js","./contact-information.BRG-Vvx-.css","./D1GVBQKV.js","./9lG2wS4e.js","./change-password.B0JI15D6.css","./CcjM1je9.js","./Dno4DkxX.js","./index.BCd-_89X.css","./CRUlWCV8.js","./Dx3_cdd8.js","./mercadopago-challenge.DYaisI4z.css","./Xj9qVv3X.js","./e-Wap_g7.js","./pix-banking-automatic.DS5DnQ9r.css","./kI1FX_9I.js","./_streamInstanceId_.BLLR-6aa.css","./Cn9tpRro.js","./DGbe9Bj0.js","./XKHSUvgF.js","./useCpfModalHandlers.CuSLMnm7.css","./pix-openfinance-onetime.CZv496h1.css","./Ye43HWTB.js","./Db4xYTR6.js","./RedirectCheckout.JYewepxr.css","./CpXjIT9T.js","./success.Q9Ry8OlI.css","./BpFVTcLk.js","./index.DM4al0ol.css","./Cb-MjvD0.js","./1dcRZ3B7.js","./ReportLayout.F714Njow.css","./index.CyI81zEF.css","./ZODX2r3x.js","./pix-openfinance-recurring.RO8b3m6c.css","./Db_NVyq2.js","./DkKN0Ph9.js","./kPTUunhl.js","./payment.DZZMitrN.css","./FHKGm8D2.js","./success.4cOHrClM.css","./D0tMmgnk.js","./index.DK7bTL1y.css","./BywnVQAg.js","./556cI8w4.js","./CSrCY-UN.js","./mandate-validating.e3LmQ_53.css","./ACmMecmc.js","./C38q6S5e.js","./useOnetimeUpsell.DMvRMoa9.css","./_operationId_.jFGqFLxG.css","./BC0QUzYT.js","./CELkwQZf.js","./success.DgnS4t3u.css","./RqhUxqk3.js","./DTHQjZge.js","./_operationId_.CKDq0r5M.css","./C_csrTyU.js","./d8K8IaRg.js","./BTQQFnta.js","./PaymentMethodAssociationSuccess.DXwx6Dld.css","./5mad5Nm7.js","./_idValidatorExecution_.B43x2KuC.css","./CZ-dJFrm.js","./index.CKCz23re.css","./CbnDKOhr.
1js","./DyQdM3Xv.js","./useSignatureValidationApi.DGoYZ38J.css","./index.DmsMRiOP.css","./BUQV5zrE.js","./result.ZOfQLQGK.css","./n5lKmfbM.js","./fAh1GZx2.js","./CUDsBlsx.js","./CAFu81-u.js","./DEaHVUzh.js","./i176YjBI.js","./login.LABEMnJx.css","./DRz4dCyC.js","./BBi9vq_9.js","./customerPortal.DSl92CUu.css","./CBbHNEya.js","./default.Dg1fTR-l.css","./Dech1sMc.js","./preCheckout.-veSufD8.css","./X1ffOA1X.js","./bank-button-demo.dqPiIkv3.css","./fKd9s4wT.js","./CDdE2yW8.js","./useCheckoutLogoAbandonNavigation.B0Y087rJ.css","./BVFjVa_c.js"])))=>i.map(i=>d[i]); 2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** 3* @vue/shared v3.5.22 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
vendor: 21,308 bytes, lines 6-13
6**/function Cv(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const wt={},Zc=[],eo=()=>{},pI=()=>!1,Yh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),T1=e=>e.startsWith("onUpdate:"),Vt=Object.assign,C1=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},EF=Object.prototype.hasOwnProperty,Pt=(e,t)=>EF.call(e,t),xe=Array.isArray,Jc=e=>ed(e)==="[object Map]",ic=e=>ed(e)==="[object Set]",yk=e=>ed(e)==="[object Date]",kF=e=>ed(e)==="[object RegExp]",$e=e=>typeof e=="function",Zt=e=>typeof e=="string",Co=e=>typeof e=="symbol",Bt=e=>e!==null&&typeof e=="object",A1=e=>(Bt(e)||$e(e))&&$e(e.then)&&$e(e.catch),mI=Object.prototype.toString,ed=e=>mI.call(e),xF=e=>ed(e).slice(8,-1),Av=e=>ed(e)==="[object Object]",R1=e=>Zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,eu=Cv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rv=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},TF=/-\w/g,Vn=Rv(e=>e.replace(TF,t=>t.slice(1).toUpperCase())),CF=/\B([A-Z])/g,as=Rv(e=>e.replace(CF,"-$1").toLowerCase()),Xh=Rv(e=>e.charAt(0).toUpperCase()+e.slice(1)),tu=Rv(e=>e?`on${Xh(e)}`:""),zr=(e,t)=>!Object.is(e,t),nu=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},gI=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Jm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},eg=e=>{const t=Zt(e)?Number(e):NaN;return isNaN(t)?e:t};let bk;const Iv=()=>bk||(bk=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}),AF="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",RF=Cv(AF);function io(e){if(xe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Zt(r)?LF(r):io(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Zt(e)||Bt(e))return e}const IF=/;(?![^(]*\))/g,OF=/:([^]+)/,PF=/\/\*[^]*?\*\//g;function LF(e){const t={};return e.replace(PF,"").split(IF).forEach(n=>{if(n){const r=n.split(OF);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Et(e){let t="";if(Zt(e))t=e;else if(xe(e))for(let n=0;n<e.length;n++){const r=Et(e[n]);r&&(t+=r+" ")}else if(Bt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ar(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Zt(t)&&(e.class=Et(t)),n&&(e.style=io(n)),e}const NF="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",DF=Cv(NF);function vI(e){return!!e||e===""}function MF(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Fa(e[r],t[r]);return n}function Fa(e,t){if(e===t)return!0;let n=yk(e),r=yk(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Co(e),r=Co(t),n||r)return e===t;if(n=xe(e),r=xe(t),n||r)return n&&r?MF(e,t):!1;if(n=Bt(e),r=Bt(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Fa(e[i],t[i]))return!1}}return String(e)===String(t)}function Ov(e,t){return e.findIndex(n=>Fa(n,t))}const _I=e=>!!(e&&e.__v_isRef===!0),at=e=>Zt(e)?e:e==null?"":xe(e)||Bt(e)&&(e.toString===mI||!$e(e.toString))?_I(e)?at(e.value):JSON.stringify(e,yI,2):String(e),yI=(e,t)=>_I(t)?yI(e,t.value):Jc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[K_(r,o)+" =>"]=s,n),{})}:ic(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>K_(n))}:Co(t)?K_(t):Bt(t)&&!xe(t)&&!Av(t)?String(t):t,K_=(e,t="")=>{var n;return Co(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function $F(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/** 7* @vue/reactivity v3.5.22 8* (c) 2018-present Yuxi (Evan) You and Vue contributors 9* @license MIT 10**/let _r;class I1{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=_r,!t&&_r&&(this.index=(_r.scopes||(_r.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=_r;try{return _r=this,t()}finally{_r=n}}}on(){++this._on===1&&(this.prevScope=_r,_r=this)}off(){this._on>0&&--this._on===0&&(_r=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Ji(e){return new I1(e)}function ea(){return _r}function gs(e,t=!1){_r&&_r.cleanups.push(e)}let Xt;const G_=new WeakSet;class Hf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,_r&&_r.active&&_r.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,G_.has(this)&&(G_.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wI(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wk(this),SI(this);const t=Xt,n=Eo;Xt=this,Eo=!0;try{return this.fn()}finally{EI(this),Xt=t,Eo=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)L1(t);this.deps=this.depsTail=void 0,wk(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?G_.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ub(this)&&this.run()}get dirty(){return Ub(this)}}let bI=0,pf,mf;function wI(e,t=!1){if(e.flags|=8,t){e.next=mf,mf=e;return}e.next=pf,pf=e}function O1(){bI++}function P1(){if(--bI>0)return;if(mf){let t=mf;for(mf=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;pf;){let t=pf;for(pf=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function SI(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function EI(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),L1(r),FF(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ub(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(kI(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function kI(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zf)||(e.globalVersion=zf,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ub(e))))return;e.flags|=2;const t=e.dep,n=Xt,r=Eo;Xt=e,Eo=!0;try{SI(e);const s=e.fn(e._value);(t.version===0||zr(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Xt=n,Eo=r,EI(e),e.flags&=-3}}function L1(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)L1(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function FF(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function UF(e,t){e.effect instanceof Hf&&(e=e.effect.fn);const n=new Hf(e);t&&Vt(n,t);try{n.run()}catch(s){throw n.stop(),s}const r=n.run.bind(n);return r.effect=n,r}function BF(e){e.effect.stop()}let Eo=!0;const xI=[];function Bi(){xI.push(Eo),Eo=!1}function Vi(){const e=xI.pop();Eo=e===void 0?!0:e}function wk(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Xt;Xt=void 0;try{t()}finally{Xt=n}}}let zf=0;class VF{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Pv{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,this.__v_skip=!0}track(t){if(!Xt||!Eo||Xt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Xt)n=this.activeLink=new VF(Xt,this),Xt.deps?(n.prevDep=Xt.depsTail,Xt.depsTail.nextDep=n,Xt.depsTail=n):Xt.deps=Xt.depsTail=n,TI(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Xt.depsTail,n.nextDep=void 0,Xt.depsTail.nextDep=n,Xt.depsTail=n,Xt.deps===n&&(Xt.deps=r)}return n}trigger(t){this.version++,zf++,this.notify(t)}notify(t){O1();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{P1()}}}function TI(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)TI(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const tg=new WeakMap,Cl=Symbol(""),Bb=Symbol(""),qf=Symbol("");function br(e,t,n){if(Eo&&Xt){let r=tg.get(e);r||tg.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Pv),s.map=r,s.key=n),s.track()}}function Ti(e,t,n,r,s,o){const i=tg.get(e);if(!i){zf++;return}const a=l=>{l&&l.trigger()};if(O1(),t==="clear")i.forEach(a);else{const l=xe(e),c=l&&R1(n);if(l&&n==="length"){const u=Number(r);i.forEach((d,f)=>{(f==="length"||f===qf||!Co(f)&&f>=u)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(qf)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Cl)),Jc(e)&&a(i.get(Bb)));break;case"delete":l||(a(i.get(Cl)),Jc(e)&&a(i.get(Bb)));break;case"set":Jc(e)&&a(i.get(Cl));break}}P1()}function jF(e,t){const n=tg.get(e);return n&&n.get(t)}function wc(e){const t=pt(e);return t===e?t:(br(t,"iterate",qf),Ns(e)?t:t.map(sr))}function Lv(e){return br(e=pt(e),"iterate",qf),e}const HF={__proto__:null,[Symbol.iterator](){return Y_(this,Symbol.iterator,sr)},concat(...e){return wc(this).concat(...e.map(t=>xe(t)?wc(t):t))},entries(){return Y_(this,"entries",e=>(e[1]=sr(e[1]),e))},every(e,t){return pi(this,"every",e,t,void 0,arguments)},filter(e,t){return pi(this,"filter",e,t,n=>n.map(sr),arguments)},find(e,t){return pi(this,"find",e,t,sr,arguments)},findIndex(e,t){return pi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pi(this,"findLast",e,t,sr,arguments)},findLastIndex(e,t){return pi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pi(this,"forEach",e,t,void 0,arguments)},includes(...e){return X_(this,"includes",e)},indexOf(...e){return X_(this,"indexOf",e)},join(e){return wc(this).join(e)},lastIndexOf(...e){return X_(this,"lastIndexOf",e)},map(e,t){return pi(this,"map",e,t,void 0,arguments)},pop(){return Pd(this,"pop")},push(...e){return Pd(this,"push",e)},reduce(e,...t){return Sk(this,"reduce",e,t)},reduceRight(e,...t){return Sk(this,"reduceRight",e,t)},shift(){return Pd(this,"shift")},some(e,t){return pi(this,"some",e,t,void 0,arguments)},splice(...e){return Pd(this,"splice",e)},toReversed(){return wc(this).toReversed()},toSorted(e){return wc(this).toSorted(e)},toSpliced(...e){return wc(this).toSpliced(...e)},unshift(...e){return Pd(this,"unshift",e)},values(){return Y_(this,"values",sr)}};function Y_(e,t,n){const r=Lv(e),s=r[t]();return r!==e&&!Ns(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const zF=Array.prototype;function pi(e,t,n,r,s,o){const i=Lv(e),a=i!==e&&!Ns(e),l=i[t];if(l!==zF[t]){const d=l.apply(e,o);return a?sr(d):d}let c=n;i!==e&&(a?c=function(d,f){return n.call(this,sr(d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=l.call(i,c,r);return a&&s?s(u):u}function Sk(e,t,n,r){const s=Lv(e);let o=n;return s!==e&&(Ns(e)?n.length>3&&(o=function(i,a,l){return n.call(this,i,a,l,e)}):o=function(i,a,l){return n.call(this,i,sr(a),l,e)}),s[t](o,...r)}function X_(e,t,n){const r=pt(e);br(r,"iterate",qf);const s=r[t](...n);return(s===-1||s===!1)&&Mv(n[0])?(n[0]=pt(n[0]),r[t](...n)):s}function Pd(e,t,n=[]){Bi(),O1();const r=pt(e)[t].apply(e,n);return P1(),Vi(),r}const qF=Cv("__proto__,__v_isRef,__isVue"),CI=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Co));function WF(e){Co(e)||(e=String(e));const t=pt(this);return br(t,"has",e),t.hasOwnProperty(e)}class AI{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?NI:LI:o?PI:OI).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=xe(t);if(!s){let l;if(i&&(l=HF[n]))return l;if(n==="hasOwnProperty")return WF}const a=Reflect.get(t,n,et(t)?t:r);if((Co(n)?CI.has(n):qF(n))||(s||br(t,"get",n),o))return a;if(et(a)){const l=i&&R1(n)?a:a.value;return s&&Bt(l)?Ao(l):l}return Bt(a)?s?Ao(a):jn(a):a}}class RI extends AI{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=ii(o);if(!Ns(r)&&!ii(r)&&(o=pt(o),r=pt(r)),!xe(t)&&et(o)&&!et(r))return l||(o.value=r),!0}const i=xe(t)&&R1(n)?Number(n)<t.length:Pt(t,n),a=Reflect.set(t,n,r,et(t)?t:s);return t===pt(s)&&(i?zr(r,o)&&Ti(t,"set",n,r):Ti(t,"add",n,r)),a}deleteProperty(t,n){const r=Pt(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Ti(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Co(n)||!CI.has(n))&&br(t,"has",n),r}ownKeys(t){return br(t,"iterate",xe(t)?"length":Cl),Reflect.ownKeys(t)}}class II extends AI{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const KF=new RI,GF=new II,YF=new RI(!0),XF=new II(!0),Vb=e=>e,Ep=e=>Reflect.getPrototypeOf(e);function QF(e,t,n){return function(...r){const s=this.__v_raw,o=pt(s),i=Jc(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),u=n?Vb:t?ng:sr;return!t&&br(o,"iterate",l?Bb:Cl),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function kp(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ZF(e,t){const n={get(s){const o=this.__v_raw,i=pt(o),a=pt(s);e||(zr(s,a)&&br(i,"get",s),br(i,"get",a));const{has:l}=Ep(i),c=t?Vb:e?ng:sr;if(l.call(i,s))return c(o.get(s));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&br(pt(s),"iterate",Cl),s.size},has(s){const o=this.__v_raw,i=pt(o),a=pt(s);return e||(zr(s,a)&&br(i,"has",s),br(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=pt(a),c=t?Vb:e?ng:sr;return!e&&br(l,"iterate",Cl),a.forEach((u,d)=>s.call(o,c(u),c(d),i))}};return Vt(n,e?{add:kp("add"),set:kp("set"),delete:kp("delete"),clear:kp("clear")}:{add(s){!t&&!Ns(s)&&!ii(s)&&(s=pt(s));const o=pt(this);return Ep(o).has.call(o,s)||(o.add(s),Ti(o,"add",s,s)),this},set(s,o){!t&&!Ns(o)&&!ii(o)&&(o=pt(o));const i=pt(this),{has:a,get:l}=Ep(i);let c=a.call(i,s);c||(s=pt(s),c=a.call(i,s));const u=l.call(i,s);return i.set(s,o),c?zr(o,u)&&Ti(i,"set",s,o):Ti(i,"add",s,o),this},delete(s){const o=pt(this),{has:i,get:a}=Ep(o);let l=i.call(o,s);l||(s=pt(s),l=i.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return l&&Ti(o,"delete",s,void 0),c},clear(){const s=pt(this),o=s.size!==0,i=s.clear();return o&&Ti(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=QF(s,e,t)}),n}function Nv(e,t){const n=ZF(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Pt(n,s)&&s in r?n:r,s,o)}const JF={get:Nv(!1,!1)},eU={get:Nv(!1,!0)},tU={get:Nv(!0,!1)},nU={get:Nv(!0,!0)},OI=new WeakMap,PI=new WeakMap,LI=new WeakMap,NI=new WeakMap;function rU(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sU(e){return e.__v_skip||!Object.isExtensible(e)?0:rU(xF(e))}function jn(e){return ii(e)?e:Dv(e,!1,KF,JF,OI)}function cs(e){return Dv(e,!1,YF,eU,PI)}function Ao(e){return Dv(e,!0,GF,tU,LI)}function td(e){return Dv(e,!0,XF,nU,NI)}function Dv(e,t,n,r,s){if(!Bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=sU(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function ko(e){return ii(e)?ko(e.__v_raw):!!(e&&e.__v_isReactive)}function ii(e){return!!(e&&e.__v_isReadonly)}function Ns(e){return!!(e&&e.__v_isShallow)}function Mv(e){return e?!!e.__v_raw:!1}function pt(e){const t=e&&e.__v_raw;return t?pt(t):e}function nd(e){return!Pt(e,"__v_skip")&&Object.isExtensible(e)&&gI(e,"__v_skip",!0),e}const sr=e=>Bt(e)?jn(e):e,ng=e=>Bt(e)?Ao(e):e;function et(e){return e?e.__v_isRef===!0:!1}function G(e){return DI(e,!1)}function vn(e){return DI(e,!0)}function DI(e,t){return et(e)?e:new oU(e,t)}class oU{constructor(t,n){this.dep=new Pv,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pt(t),this._value=n?t:sr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ns(t)||ii(t);t=r?t:pt(t),zr(t,n)&&(this._rawValue=t,this._value=r?t:sr(t),this.dep.trigger())}}function MI(e){e.dep&&e.dep.trigger()}function C(e){return et(e)?e.value:e}function Je(e){return $e(e)?e():C(e)}const iU={get:(e,t,n)=>t==="__v_raw"?e:C(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return et(s)&&!et(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function N1(e){return ko(e)?e:new Proxy(e,iU)}class aU{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Pv,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Qh(e){return new aU(e)}function Gr(e){const t=xe(e)?new Array(e.length):{};for(const n in e)t[n]=$I(e,n);return t}class lU{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return jF(pt(this._object),this._key)}}class cU{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 us(e,t,n){return et(e)?e:$e(e)?new cU(e):Bt(e)&&arguments.length>1?$I(e,t,n):G(e)}function $I(e,t,n){const r=e[t];return et(r)?r:new lU(e,t,n)}class uU{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Pv(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zf-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Xt!==this)return wI(this,!0),!0}get value(){const t=this.dep.track();return kI(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dU(e,t,n=!1){let r,s;return $e(e)?r=e:(r=e.get,s=e.set),new uU(r,s,n)}const fU={GET:"get",HAS:"has",ITERATE:"iterate"},hU={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},xp={},rg=new WeakMap;let ha;function pU(){return ha}function FI(e,t=!1,n=ha){if(n){let r=rg.get(n);r||rg.set(n,r=[]),r.push(e)}}function mU(e,t,n=wt){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,c=y=>s?y:Ns(y)||s===!1||s===0?Ci(y,1):Ci(y);let u,d,f,h,p=!1,m=!1;if(et(e)?(d=()=>e.value,p=Ns(e)):ko(e)?(d=()=>c(e),p=!0):xe(e)?(m=!0,p=e.some(y=>ko(y)||Ns(y)),d=()=>e.map(y=>{if(et(y))return y.value;if(ko(y))return c(y);if($e(y))return l?l(y,2):y()})):$e(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){Bi();try{f()}finally{Vi()}}const y=ha;ha=u;try{return l?l(e,3,[h]):e(h)}finally{ha=y}}:d=eo,t&&s){const y=d,w=s===!0?1/0:s;d=()=>Ci(y(),w)}const g=ea(),v=()=>{u.stop(),g&&g.active&&C1(g.effects,u)};if(o&&t){const y=t;t=(...w)=>{y(...w),v()}}let b=m?new Array(e.length).fill(xp):xp;const _=y=>{if(!(!(u.flags&1)||!u.dirty&&!y))if(t){const w=u.run();if(s||p||(m?w.some((S,E)=>zr(S,b[E])):zr(w,b))){f&&f();const S=ha;ha=u;try{const E=[w,b===xp?void 0:m&&b[0]===xp?[]:b,h];b=w,l?l(t,3,E):t(...E)}finally{ha=S}}}else u.run()};return a&&a(_),u=new Hf(d),u.scheduler=i?()=>i(_,!1):_,h=y=>FI(y,!1,u),f=u.onStop=()=>{const y=rg.get(u);if(y){if(l)l(y,4);else for(const w of y)w();rg.delete(u)}},t?r?_(!0):b=u.run():i?i(_.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function Ci(e,t=1/0,n){if(t<=0||!Bt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,et(e))Ci(e.value,t,n);else if(xe(e))for(let r=0;r<e.length;r++)Ci(e[r],t,n);else if(ic(e)||Jc(e))e.forEach(r=>{Ci(r,t,n)});else if(Av(e)){for(const r in e)Ci(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ci(e[r],t,n)}return e}/** 11* @vue/runtime-core v3.5.22 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT
14**/const UI=[];function gU(e){UI.push(e)}function vU(){UI.pop()}function _U(e,t){}const yU={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},bU={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function rd(e,t,n,r){try{return r?e(...r):e()}catch(s){ac(s,t,n)}}function ao(e,t,n,r){if($e(e)){const s=rd(e,t,n,r);return s&&A1(s)&&s.catch(o=>{ac(o,t,n)}),s}if(xe(e)){const s=[];for(let o=0;o<e.length;o++)s.push(ao(e[o],t,n,r));return s}}function ac(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||wt;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(o){Bi(),rd(o,null,10,[e,l,c]),Vi();return}}wU(e,n,s,r,i)}function wU(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const qr=[];let Uo=-1;const ru=[];let pa=null,Pc=0;const BI=Promise.resolve();let sg=null;function Lt(e){const t=sg||BI;return e?t.then(this?e.bind(this):e):t}function SU(e){let t=Uo+1,n=qr.length;for(;t<n;){const r=t+n>>>1,s=qr[r],o=Kf(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function D1(e){if(!(e.flags&1)){const t=Kf(e),n=qr[qr.length-1];!n||!(e.flags&2)&&t>=Kf(n)?qr.push(e):qr.splice(SU(t),0,e),e.flags|=1,VI()}}function VI(){sg||(sg=BI.then(jI))}function Wf(e){xe(e)?ru.push(...e):pa&&e.id===-1?pa.splice(Pc+1,0,e):e.flags&1||(ru.push(e),e.flags|=1),VI()}function Ek(e,t,n=Uo+1){for(;n<qr.length;n++){const r=qr[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;qr.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function og(e){if(ru.length){const t=[...new Set(ru)].sort((n,r)=>Kf(n)-Kf(r));if(ru.length=0,pa){pa.push(...t);return}for(pa=t,Pc=0;Pc<pa.length;Pc++){const n=pa[Pc];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pa=null,Pc=0}}const Kf=e=>e.id==null?e.flags&2?-1:1/0:e.id;function jI(e){try{for(Uo=0;Uo<qr.length;Uo++){const t=qr[Uo];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),rd(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Uo<qr.length;Uo++){const t=qr[Uo];t&&(t.flags&=-2)}Uo=-1,qr.length=0,og(),sg=null,(qr.length||ru.length)&&jI()}}let Lc,Tp=[];function HI(e,t){var n,r;Lc=e,Lc?(Lc.enabled=!0,Tp.forEach(({event:s,args:o})=>Lc.emit(s,...o)),Tp=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{HI(o,t)}),setTimeout(()=>{Lc||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Tp=[])},3e3)):Tp=[]}let lr=null,$v=null;function Gf(e){const t=lr;return lr=e,$v=e&&e.type.__scopeId||null,t}function EU(e){$v=e}function kU(){$v=null}const xU=e=>ne;function ne(e,t=lr,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Qf(-1);const o=Gf(t);let i;try{i=e(...s)}finally{Gf(o),r._d&&Qf(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function TU(e,t){if(lr===null)return e;const n=np(lr),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=wt]=t[s];o&&($e(o)&&(o={mounted:o,updated:o}),o.deep&&Ci(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bo(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(Bi(),ao(l,n,8,[e.el,a,e,t]),Vi())}}const zI=Symbol("_vte"),qI=e=>e.__isTeleport,gf=e=>e&&(e.disabled||e.disabled===""),kk=e=>e&&(e.defer||e.defer===""),xk=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Tk=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,jb=(e,t)=>
vendor: 56,952 bytes, lines 14-18
14{const n=e&&e.to;return Zt(n)?t?t(n):null:n},WI={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:m,createComment:g}}=c,v=gf(t.props);let{shapeFlag:b,children:_,dynamicChildren:y}=t;if(e==null){const w=t.el=m(""),S=t.anchor=m("");h(w,n,r),h(S,n,r);const E=(T,O)=>{b&16&&u(_,T,O,s,o,i,a,l)},x=()=>{const T=t.target=jb(t.props,p),O=KI(T,t,m,h);T&&(i!=="svg"&&xk(T)?i="svg":i!=="mathml"&&Tk(T)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(T),v||(E(T,O),Em(t,!1)))};v&&(E(n,S),Em(t,!0)),kk(t.props)?(t.el.__isMounted=!1,Un(()=>{x(),delete t.el.__isMounted},o)):x()}else{if(kk(t.props)&&e.el.__isMounted===!1){Un(()=>{WI.process(e,t,n,r,s,o,i,a,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const w=t.anchor=e.anchor,S=t.target=e.target,E=t.targetAnchor=e.targetAnchor,x=gf(e.props),T=x?n:S,O=x?w:E;if(i==="svg"||xk(S)?i="svg":(i==="mathml"||Tk(S))&&(i="mathml"),y?(f(e.dynamicChildren,y,T,s,o,i,a),X1(e,t,!0)):l||d(e,t,T,O,s,o,i,a,!1),v)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Cp(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=jb(t.props,p);z&&Cp(t,z,null,c,0)}else x&&Cp(t,S,E,c,1);Em(t,v)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(s(c),s(u)),o&&s(l),i&16){const h=o||!gf(f);for(let p=0;p<a.length;p++){const m=a[p];r(m,t,n,h,!!m.dynamicChildren)}}},move:Cp,hydrate:CU};function Cp(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&r(i,t,n),(!d||gf(u))&&l&16)for(let f=0;f<c.length;f++)s(c[f],t,n,2);d&&r(a,t,n)}function CU(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},d){function f(m,g,v,b){g.anchor=d(i(m),g,a(m),n,r,s,o),g.targetStart=v,g.targetAnchor=b}const h=t.target=jb(t.props,l),p=gf(t.props);if(h){const m=h._lpa||h.firstChild;if(t.shapeFlag&16)if(p)f(e,t,m,m&&i(m));else{t.anchor=i(e);let g=m;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,h._lpa=t.targetAnchor&&i(t.targetAnchor);break}}g=i(g)}t.targetAnchor||KI(h,t,u,c),d(m&&i(m),t,h,n,r,s,o)}Em(t,p)}else p&&t.shapeFlag&16&&f(e,t,e,i(e));return t.anchor&&i(t.anchor)}const Fv=WI;function Em(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function KI(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[zI]=o,e&&(r(s,e),r(o,e)),o}const Si=Symbol("_leaveCb"),Ap=Symbol("_enterCb");function M1(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ut(()=>{e.isMounted=!0}),Oo(()=>{e.isUnmounting=!0}),e}const zs=[Function,Array],$1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zs,onEnter:zs,onAfterEnter:zs,onEnterCancelled:zs,onBeforeLeave:zs,onLeave:zs,onAfterLeave:zs,onLeaveCancelled:zs,onBeforeAppear:zs,onAppear:zs,onAfterAppear:zs,onAppearCancelled:zs},GI=e=>{const t=e.subTree;return t.component?GI(t.component):t},AU={name:"BaseTransition",props:$1,setup(e,{slots:t}){const n=At(),r=M1();return()=>{const s=t.default&&Uv(t.default(),!0);if(!s||!s.length)return;const o=YI(s),i=pt(e),{mode:a}=i;if(r.isLeaving)return Q_(o);const l=Ck(o);if(!l)return Q_(o);let c=Eu(l,i,r,n,d=>c=d);l.type!==pn&&ji(l,c);let u=n.subTree&&Ck(n.subTree);if(u&&u.type!==pn&&!yo(u,l)&&GI(n).type!==pn){let d=Eu(u,i,r,n);if(ji(u,d),a==="out-in"&&l.type!==pn)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},Q_(o);a==="in-out"&&l.type!==pn?d.delayLeave=(f,h,p)=>{const m=QI(r,u);m[String(u.key)]=u,f[Si]=()=>{h(),f[Si]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function YI(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pn){t=n;break}}return t}const XI=AU;function QI(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Eu(e,t,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:b,onAppearCancelled:_}=t,y=String(e.key),w=QI(n,e),S=(T,O)=>{T&&ao(T,r,9,O)},E=(T,O)=>{const z=O[1];S(T,O),xe(T)?T.every(P=>P.length<=1)&&z():T.length<=1&&z()},x={mode:i,persisted:a,beforeEnter(T){let O=l;if(!n.isMounted)if(o)O=g||l;else return;T[Si]&&T[Si](!0);const z=w[y];z&&yo(e,z)&&z.el[Si]&&z.el[Si](),S(O,[T])},enter(T){let O=c,z=u,P=d;if(!n.isMounted)if(o)O=v||c,z=b||u,P=_||d;else return;let q=!1;const X=T[Ap]=J=>{q||(q=!0,J?S(P,[T]):S(z,[T]),x.delayedLeave&&x.delayedLeave(),T[Ap]=void 0)};O?E(O,[T,X]):X()},leave(T,O){const z=String(e.key);if(T[Ap]&&T[Ap](!0),n.isUnmounting)return O();S(f,[T]);let P=!1;const q=T[Si]=X=>{P||(P=!0,O(),X?S(m,[T]):S(p,[T]),T[Si]=void 0,w[z]===e&&delete w[z])};w[z]=e,h?E(h,[T,q]):q()},clone(T){const O=Eu(T,t,n,r,s);return s&&s(O),O}};return x}function Q_(e){if(Jh(e))return e=Bs(e),e.children=null,e}function Ck(e){if(!Jh(e))return qI(e.type)&&e.children?YI(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&$e(n.default))return n.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 Uv(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===mt?(i.patchFlag&128&&s++,r=r.concat(Uv(i.children,t,a))):(t||i.type!==pn)&&r.push(a!=null?Bs(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function oe(e,t){return $e(e)?Vt({name:e.name},t,{setup:e}):e}function Zh(){const e=At();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function F1(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function U1(e){const t=At(),n=vn(null);if(t){const s=t.refs===wt?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const ig=new WeakMap;function su(e,t,n,r,s=!1){if(xe(e)){e.forEach((p,m)=>su(p,t&&(xe(t)?t[m]:t),n,r,s));return}if(Aa(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&su(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?np(r.component):r.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===wt?a.refs={}:a.refs,d=a.setupState,f=pt(d),h=d===wt?pI:p=>Pt(f,p);if(c!=null&&c!==l){if(Ak(t),Zt(c))u[c]=null,h(c)&&(d[c]=null);else if(et(c)){c.value=null;const p=t;p.k&&(u[p.k]=null)}}if($e(l))rd(l,a,12,[i,u]);else{const p=Zt(l),m=et(l);if(p||m){const g=()=>{if(e.f){const v=p?h(l)?d[l]:u[l]:l.value;if(s)xe(v)&&C1(v,o);else if(xe(v))v.includes(o)||v.push(o);else if(p)u[l]=[o],h(l)&&(d[l]=u[l]);else{const b=[o];l.value=b,e.k&&(u[e.k]=b)}}else p?(u[l]=i,h(l)&&(d[l]=i)):m&&(l.value=i,e.k&&(u[e.k]=i))};if(i){const v=()=>{g(),ig.delete(e)};v.id=-1,ig.set(e,v),Un(v,n)}else Ak(e),g()}}}function Ak(e){const t=ig.get(e);t&&(t.flags|=8,ig.delete(e))}let Rk=!1;const Sc=()=>{Rk||(console.error("Hydration completed but contains mismatches."),Rk=!0)},RU=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",IU=e=>e.namespaceURI.includes("MathML"),Rp=e=>{if(e.nodeType===1){if(RU(e))return"svg";if(IU(e))return"mathml"}},Bc=e=>e.nodeType===8;function OU(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(_,y)=>{if(!y.hasChildNodes()){n(null,_,y),og(),y._vnode=_;return}d(y.firstChild,_,null,null,null),og(),y._vnode=_},d=(_,y,w,S,E,x=!1)=>{x=x||!!y.dynamicChildren;const T=Bc(_)&&_.data==="[",O=()=>m(_,y,w,S,E,T),{type:z,ref:P,shapeFlag:q,patchFlag:X}=y;let J=_.nodeType;y.el=_,X===-2&&(x=!1,y.dynamicChildren=null);let F=null;switch(z){case Qo:J!==3?y.children===""?(l(y.el=s(""),i(_),_),F=_):F=O():(_.data!==y.children&&(Sc(),_.data=y.children),F=o(_));break;case pn:b(_)?(F=o(_),v(y.el=_.content.firstChild,_,w)):J!==8||T?F=O():F=o(_);break;case Rl:if(T&&(_=o(_),J=_.nodeType),J===1||J===3){F=_;const Q=!y.children.length;for(let W=0;W<y.staticCount;W++)Q&&(y.children+=F.nodeType===1?F.outerHTML:F.data),W===y.staticCount-1&&(y.anchor=F),F=o(F);return T?o(F):F}else O();break;case mt:T?F=p(_,y,w,S,E,x):F=O();break;default:if(q&1)(J!==1||y.type.toLowerCase()!==_.tagName.toLowerCase())&&!b(_)?F=O():F=f(_,y,w,S,E,x);else if(q&6){y.slotScopeIds=E;const Q=i(_);if(T?F=g(_):Bc(_)&&_.data==="teleport start"?F=g(_,_.data,"teleport end"):F=o(_),t(y,Q,null,w,S,Rp(Q),x),Aa(y)&&!y.type.__asyncResolved){let W;T?(W=H(mt),W.anchor=F?F.previousSibling:Q.lastChild):W=_.nodeType===3?gt(""):H("div"),W.el=_,y.component.subTree=W}}else q&64?J!==8?F=O():F=y.type.hydrate(_,y,w,S,E,x,e,h):q&128&&(F=y.type.hydrate(_,y,w,S,Rp(i(_)),E,x,e,d))}return P!=null&&su(P,null,S,y),F},f=(_,y,w,S,E,x)=>{x=x||!!y.dynamicChildren;const{type:T,props:O,patchFlag:z,shapeFlag:P,dirs:q,transition:X}=y,J=T==="input"||T==="option";if(J||z!==-1){q&&Bo(y,null,w,"created");let F=!1;if(b(_)){F=bO(null,X)&&w&&w.vnode.props&&w.vnode.props.appear;const W=_.content.firstChild;if(F){const ee=W.getAttribute("class");ee&&(W.$cls=ee),X.beforeEnter(W)}v(W,_,w),y.el=_=W}if(P&16&&!(O&&(O.innerHTML||O.textContent))){let W=h(_.firstChild,y,_,w,S,E,x);for(;W;){Ip(_,1)||Sc();const ee=W;W=W.nextSibling,a(ee)}}else if(P&8){let W=y.children;W[0]===` 15`&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(W=W.slice(1)),_.textContent!==W&&(Ip(_,0)||Sc(),_.textContent=y.children)}if(O){if(J||!x||z&48){const W=_.tagName.includes("-");for(const ee in O)(J&&(ee.endsWith("value")||ee==="indeterminate")||Yh(ee)&&!eu(ee)||ee[0]==="."||W)&&r(_,ee,null,O[ee],void 0,w)}else if(O.onClick)r(_,"onClick",null,O.onClick,void 0,w);else if(z&4&&ko(O.style))for(const W in O.style)O.style[W]}let Q;(Q=O&&O.onVnodeBeforeMount)&&es(Q,w,y),q&&Bo(y,null,w,"beforeMount"),((Q=O&&O.onVnodeMounted)||q||F)&&RO(()=>{Q&&es(Q,w,y),F&&X.enter(_),q&&Bo(y,null,w,"mounted")},S)}return _.nextSibling},h=(_,y,w,S,E,x,T)=>{T=T||!!y.dynamicChildren;const O=y.children,z=O.length;for(let P=0;P<z;P++){const q=T?O[P]:O[P]=os(O[P]),X=q.type===Qo;_?(X&&!T&&P+1<z&&os(O[P+1]).type===Qo&&(l(s(_.data.slice(q.children.length)),w,o(_)),_.data=q.children),_=d(_,q,S,E,x,T)):X&&!q.children?l(q.el=s(""),w):(Ip(w,1)||Sc(),n(null,q,w,null,S,E,Rp(w),x))}return _},p=(_,y,w,S,E,x)=>{const{slotScopeIds:T}=y;T&&(E=E?E.concat(T):T);const O=i(_),z=h(o(_),y,O,w,S,E,x);return z&&Bc(z)&&z.data==="]"?o(y.anchor=z):(Sc(),l(y.anchor=c("]"),O,z),z)},m=(_,y,w,S,E,x)=>{if(Ip(_.parentElement,1)||Sc(),y.el=null,x){const z=g(_);for(;;){const P=o(_);if(P&&P!==z)a(P);else break}}const T=o(_),O=i(_);return a(_),n(null,y,O,T,w,S,Rp(O),E),w&&(w.vnode.el=y.el,qv(w,y.el)),T},g=(_,y="[",w="]")=>{let S=0;for(;_;)if(_=o(_),_&&Bc(_)&&(_.data===y&&S++,_.data===w)){if(S===0)return o(_);S--}return _},v=(_,y,w)=>{const S=y.parentNode;S&&S.replaceChild(_,y);let E=w;for(;E;)E.vnode.el===y&&(E.vnode.el=E.subTree.el=_),E=E.parent},b=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[u,d]}const Ik="data-allow-mismatch",PU={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ip(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ik);)e=e.parentElement;const n=e&&e.getAttribute(Ik);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(PU[t])}}const LU=Iv().requestIdleCallback||(e=>setTimeout(e,1)),NU=Iv().cancelIdleCallback||(e=>clearTimeout(e)),DU=(e=1e4)=>t=>{const n=LU(t,{timeout:e});return()=>NU(n)};function MU(e){const{top:t,left:n,bottom:r,right:s}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:i}=window;return(t>0&&t<o||r>0&&r<o)&&(n>0&&n<i||s>0&&s<i)}const $U=e=>(t,n)=>{const r=new IntersectionObserver(s=>{for(const o of s)if(o.isIntersecting){r.disconnect(),t();break}},e);return n(s=>{if(s instanceof Element){if(MU(s))return t(),r.disconnect(),!1;r.observe(s)}}),()=>r.disconnect()},FU=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},UU=(e=[])=>(t,n)=>{Zt(e)&&(e=[e]);let r=!1;const s=i=>{r||(r=!0,o(),t(),i.target.dispatchEvent(new i.constructor(i.type,i)))},o=()=>{n(i=>{for(const a of e)i.removeEventListener(a,s)})};return n(i=>{for(const a of e)i.addEventListener(a,s,{once:!0})}),o};function BU(e,t){if(Bc(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Bc(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Aa=e=>!!e.type.__asyncLoader;function _i(e){$e(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const f=()=>(d++,c=null,h()),h=()=>{let p;return c||(p=c=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((g,v)=>{l(m,()=>g(f()),()=>v(m),d+1)});throw m}).then(m=>p!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return oe({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,m,g){let v=!1;(m.bu||(m.bu=[])).push(()=>v=!0);const b=()=>{v||g()},_=o?()=>{const y=o(b,w=>BU(p,w));y&&(m.bum||(m.bum=[])).push(y)}:b;u?_():h().then(()=>!m.isUnmounted&&_())},get __asyncResolved(){return u},setup(){const p=ar;if(F1(p),u)return()=>Z_(u,p);const m=_=>{c=null,ac(_,p,13,!r)};if(a&&p.suspense||xu)return h().then(_=>()=>Z_(_,p)).catch(_=>(m(_),()=>r?H(r,{error:_}):null));const g=G(!1),v=G(),b=G(!!s);return s&&setTimeout(()=>{b.value=!1},s),i!=null&&setTimeout(()=>{if(!g.value&&!v.value){const _=new Error(`Async component timed out after ${i}ms.`);m(_),v.value=_}},i),h().then(()=>{g.value=!0,p.parent&&Jh(p.parent.vnode)&&p.parent.update()}).catch(_=>{m(_),v.value=_}),()=>{if(g.value&&u)return Z_(u,p);if(v.value&&r)return H(r,{error:v.value});if(n&&!b.value)return H(n)}}})}function Z_(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=H(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Jh=e=>e.type.__isKeepAlive,VU={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=At(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const s=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,f=d("div");r.activate=(b,_,y,w,S)=>{const E=b.component;c(b,_,y,0,a),l(E.vnode,b,_,y,E,a,w,b.slotScopeIds,S),Un(()=>{E.isDeactivated=!1,E.a&&nu(E.a);const x=b.props&&b.props.onVnodeMounted;x&&es(x,E.parent,b)},a)},r.deactivate=b=>{const _=b.component;lg(_.m),lg(_.a),c(b,f,null,1,a),Un(()=>{_.da&&nu(_.da);const y=b.props&&b.props.onVnodeUnmounted;y&&es(y,_.parent,b),_.isDeactivated=!0},a)};function h(b){J_(b),u(b,n,a,!0)}function p(b){s.forEach((_,y)=>{const w=e0(_.type);w&&!b(w)&&m(y)})}function m(b){const _=s.get(b);_&&(!i||!yo(_,i))?h(_):i&&J_(i),s.delete(b),o.delete(b)}be(()=>[e.include,e.exclude],([b,_])=>{b&&p(y=>Jd(b,y)),_&&p(y=>!Jd(_,y))},{flush:"post",deep:!0});let g=null;const v=()=>{g!=null&&(cg(n.subTree.type)?Un(()=>{s.set(g,Op(n.subTree))},n.subTree.suspense):s.set(g,Op(n.subTree)))};return Ut(v),ep(v),Oo(()=>{s.forEach(b=>{const{subTree:_,suspense:y}=n,w=Op(_);if(b.type===w.type&&b.key===w.key){J_(w);const S=w.component.da;S&&Un(S,y);return}h(b)})}),()=>{if(g=null,!t.default)return i=null;const b=t.default(),_=b[0];if(b.length>1)return i=null,b;if(!ai(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return i=null,_;let y=Op(_);if(y.type===pn)return i=null,y;const w=y.type,S=e0(Aa(y)?y.type.__asyncResolved||{}:w),{include:E,exclude:x,max:T}=e;if(E&&(!S||!Jd(E,S))||x&&S&&Jd(x,S))return y.shapeFlag&=-257,i=y,_;const O=y.key==null?w:y.key,z=s.get(O);return y.el&&(y=Bs(y),_.shapeFlag&128&&(_.ssContent=y)),g=O,z?(y.el=z.el,y.component=z.component,y.transition&&ji(y,y.transition),y.shapeFlag|=512,o.delete(O),o.add(O)):(o.add(O),T&&o.size>parseInt(T,10)&&m(o.values().next().value)),y.shapeFlag|=256,i=y,cg(_.type)?_:y}}},ZI=VU;function Jd(e,t){return xe(e)?e.some(n=>Jd(n,t)):Zt(e)?e.split(",").includes(t):kF(e)?(e.lastIndex=0,e.test(t)):!1}function Bv(e,t){JI(e,"a",t)}function Vv(e,t){JI(e,"da",t)}function JI(e,t,n=ar){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(jv(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Jh(s.parent.vnode)&&jU(r,t,n,s),s=s.parent}}function jU(e,t,n,r){const s=jv(t,e,r,!0);qn(()=>{C1(r[t],s)},n)}function J_(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Op(e){return e.shapeFlag&128?e.ssContent:e}function jv(e,t,n=ar,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Bi();const a=Hl(n),l=ao(t,n,e,i);return a(),Vi(),l});return r?s.unshift(o):s.push(o),o}}const ta=e=>(t,n=ar)=>{(!xu||e==="sp")&&jv(e,(...r)=>t(...r),n)},B1=ta("bm"),Ut=ta("m"),V1=ta("bu"),ep=ta("u"),Oo=ta("bum"),qn=ta("um"),eO=ta("sp"),tO=ta("rtg"),nO=ta("rtc");function j1(e,t=ar){jv("ec",e,t)}const H1="components",HU="directives";function Hb(e,t){return z1(H1,e,!0,t)||e}const rO=Symbol.for("v-ndc");function bo(e){return Zt(e)?z1(H1,e,!1)||e:e||rO}function zU(e){return z1(HU,e)}function z1(e,t,n=!0,r=!1){const s=lr||ar;if(s){const o=s.type;if(e===H1){const a=e0(o,!1);if(a&&(a===t||a===Vn(t)||a===Xh(Vn(t))))return o}const i=Ok(s[e]||o[e],t)||Ok(s.appContext[e],t);return!i&&r?o:i}}function Ok(e,t){return e&&(e[t]||e[Vn(t)]||e[Xh(Vn(t))])}function Vl(e,t,n,r){let s;const o=n&&n[r],i=xe(e);if(i||Zt(e)){const a=i&&ko(e);let l=!1,c=!1;a&&(l=!Ns(e),c=ii(e),e=Lv(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(l?c?ng(sr(e[u])):sr(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o&&o[a])}else if(Bt(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,o&&o[l])}}else s=[];return n&&(n[r]=s),s}function sO(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(xe(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function le(e,t,n={},r,s){if(lr.ce||lr.parent&&Aa(lr.parent)&&lr.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),V(),te(mt,null,[H("slot",n,r&&r())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),V();const i=o&&q1(o(n)),a=n.key||i&&i.key,l=te(mt,{key:(a&&!Co(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function q1(e){return e.some(t=>ai(t)?!(t.type===pn||t.type===mt&&!q1(t.children)):!0)?e:null}function oO(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:tu(r)]=e[r];return n}const zb=e=>e?NO(e)?np(e):zb(e.parent):null,vf=Vt(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=>zb(e.parent),$root:e=>zb(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>K1(e),$forceUpdate:e=>e.f||(e.f=()=>{D1(e.update)}),$nextTick:e=>e.n||(e.n=Lt.bind(e.proxy)),$watch:e=>v6.bind(e)}),ey=(e,t)=>e!==wt&&!e.__isScriptSetup&&Pt(e,t),qb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(ey(r,t))return i[t]=1,r[t];if(s!==wt&&Pt(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&Pt(c,t))return i[t]=3,o[t];if(n!==wt&&Pt(n,t))return i[t]=4,n[t];Wb&&(i[t]=0)}}const u=vf[t];let d,f;if(u)return t==="$attrs"&&br(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==wt&&Pt(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,Pt(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return ey(s,t)?(s[t]=n,!0):r!==wt&&Pt(r,t)?(r[t]=n,!0):Pt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o,type:i}},a){let l,c;return!!(n[a]||e!==wt&&a[0]!=="$"&&Pt(e,a)||ey(t,a)||(l=o[0])&&Pt(l,a)||Pt(r,a)||Pt(vf,a)||Pt(s.config.globalProperties,a)||(c=i.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qU=Vt({},qb,{get(e,t){if(t!==Symbol.unscopables)return qb.get(e,t,e)},has(e,t){return t[0]!=="_"&&!RF(t)}});function WU(){return null}function KU(){return null}function GU(e){}function YU(e){}function XU(){return null}function QU(){}function ZU(e,t){return null}function lc(){return iO().slots}function W1(){return iO().attrs}function iO(e){const t=At();return t.setupContext||(t.setupContext=$O(t))}function Yf(e){return xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function JU(e,t){const n=Yf(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?xe(s)||$e(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function ku(e,t){return!e||!t?e||t:xe(e)&&xe(t)?e.concat(t):Vt({},Yf(e),Yf(t))}function e6(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function t6(e){const t=At();let n=e();return Qb(),A1(n)&&(n=n.catch(r=>{throw Hl(t),r})),[n,()=>Hl(t)]}let Wb=!0;function n6(e){const t=K1(e),n=e.proxy,r=e.ctx;Wb=!1,t.beforeCreate&&Pk(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:_,unmounted:y,render:w,renderTracked:S,renderTriggered:E,errorCaptured:x,serverPrefetch:T,expose:O,inheritAttrs:z,components:P,directives:q,filters:X}=t;if(c&&r6(c,r,null),i)for(const Q in i){const W=i[Q];$e(W)&&(r[Q]=W.bind(n))}if(s){const Q=s.call(n,n);Bt(Q)&&(e.data=jn(Q))}if(Wb=!0,o)for(const Q in o){const W=o[Q],ee=$e(W)?W.bind(n,n):$e(W.get)?W.get.bind(n,n):eo,N=!$e(W)&&$e(W.set)?W.set.bind(n):eo,de=A({get:ee,set:N});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>de.value,set:pe=>de.value=pe})}if(a)for(const Q in a)aO(a[Q],r,n,Q);if(l){const Q=$e(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(W=>{Zn(W,Q[W])})}u&&Pk(u,e,"c");function F(Q,W){xe(W)?W.forEach(ee=>Q(ee.bind(n))):W&&Q(W.bind(n))}if(F(B1,d),F(Ut,f),F(V1,h),F(ep,p),F(Bv,m),F(Vv,g),F(j1,x),F(nO,S),F(tO,E),F(Oo,b),F(qn,y),F(eO,T),xe(O))if(O.length){const Q=e.exposed||(e.exposed={});O.forEach(W=>{Object.defineProperty(Q,W,{get:()=>n[W],set:ee=>n[W]=ee,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===eo&&(e.render=w),z!=null&&(e.inheritAttrs=z),P&&(e.components=P),q&&(e.directives=q),T&&F1(e)}function r6(e,t,n=eo){xe(e)&&(e=Kb(e));for(const r in e){const s=e[r];let o;Bt(s)?"default"in s?o=vt(s.from||r,s.default,!0):o=vt(s.from||r):o=vt(s),et(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Pk(e,t,n){ao(xe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function aO(e,t,n,r){let s=r.includes(".")?xO(n,r):()=>n[r];if(Zt(e)){const o=t[e];$e(o)&&be(s,o)}else if($e(e))be(s,e.bind(n));else if(Bt(e))if(xe(e))e.forEach(o=>aO(o,t,n,r));else{const o=$e(e.handler)?e.handler.bind(n):t[e.handler];$e(o)&&be(s,o,e)}}function K1(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>ag(l,c,i,!0)),ag(l,t,i)),Bt(t)&&o.set(t,l),l}function ag(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&ag(e,o,n,!0),s&&s.forEach(i=>ag(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=s6[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const s6={data:Lk,props:Nk,emits:Nk,methods:ef,computed:ef,beforeCreate:Fr,created:Fr,beforeMount:Fr,mounted:Fr,beforeUpdate:Fr,updated:Fr,beforeDestroy:Fr,beforeUnmount:Fr,destroyed:Fr,unmounted:Fr,activated:Fr,deactivated:Fr,errorCaptured:Fr,serverPrefetch:Fr,components:ef,directives:ef,watch:i6,provide:Lk,inject:o6};function Lk(e,t){return t?e?function(){return Vt($e(e)?e.call(this,this):e,$e(t)?t.call(this,this):t)}:t:e}function o6(e,t){return ef(Kb(e),Kb(t))}function Kb(e){if(xe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fr(e,t){return e?[...new Set([].concat(e,t))]:t}function ef(e,t){return e?Vt(Object.create(null),e,t):t}function Nk(e,t){return e?xe(e)&&xe(t)?[...new Set([...e,...t])]:Vt(Object.create(null),Yf(e),Yf(t??{})):t}function i6(e,t){if(!e)return t;if(!t)return e;const n=Vt(Object.create(null),e);for(const r in t)n[r]=Fr(e[r],t[r]);return n}function lO(){return{app:null,config:{isNativeTag:pI,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let a6=0;function l6(e,t){return function(r,s=null){$e(r)||(r=Vt({},r)),s!=null&&!Bt(s)&&(s=null);const o=lO(),i=new WeakSet,a=[];let l=!1;const c=o.app={_uid:a6++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:UO,get config(){return o.config},set config(u){},use(u,...d){return i.has(u)||(u&&$e(u.install)?(i.add(u),u.install(c,...d)):$e(u)&&(i.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,f){if(!l){const h=c._ceVNode||H(r,s);return h.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),d&&t?t(h,u):e(h,u,f),l=!0,c._container=u,u.__vue_app__=c,np(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(ao(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=Al;Al=c;try{return u()}finally{Al=d}}};return c}}let Al=null;function Zn(e,t){if(ar){let n=ar.provides;const r=ar.parent&&ar.parent.provides;r===n&&(n=ar.provides=Object.create(r)),n[e]=t}}function vt(e,t,n=!1){const r=At();if(r||Al){let s=Al?Al._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&$e(t)?t.call(r&&r.proxy):t}}function Ya(){return!!(At()||Al)}const cO={},uO=()=>Object.create(cO),dO=e=>Object.getPrototypeOf(e)===cO;function c6(e,t,n,r=!1){const s={},o=uO();e.propsDefaults=Object.create(null),fO(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:cs(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function u6(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=pt(s),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(zv(e.emitsOptions,f))continue;const h=t[f];if(l)if(Pt(o,f))h!==o[f]&&(o[f]=h,c=!0);else{const p=Vn(f);s[p]=Gb(l,a,p,h,e,!1)}else h!==o[f]&&(o[f]=h,c=!0)}}}else{fO(e,t,s,o)&&(c=!0);let u;for(const d in a)(!t||!Pt(t,d)&&((u=as(d))===d||!Pt(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=Gb(l,a,d,void 0,e,!0)):delete s[d]);if(o!==a)for(const d in o)(!t||!Pt(t,d))&&(delete o[d],c=!0)}c&&Ti(e.attrs,"set","")}function fO(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(eu(l))continue;const c=t[l];let u;s&&Pt(s,u=Vn(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:zv(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=pt(n),c=a||wt;for(let u=0;u<o.length;u++){const d=o[u];n[d]=Gb(s,l,d,c[d],e,!Pt(c,d))}}return i}function Gb(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=Pt(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&$e(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=Hl(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===as(n))&&(r=!0))}return r}const d6=new WeakMap;function hO(e,t,n=!1){const r=n?d6:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!$e(e)){const u=d=>{l=!0;const[f,h]=hO(d,t,!0);Vt(i,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Bt(e)&&r.set(e,Zc),Zc;if(xe(o))for(let u=0;u<o.length;u++){const d=Vn(o[u]);Dk(d)&&(i[d]=wt)}else if(o)for(const u in o){const d=Vn(u);if(Dk(d)){const f=o[u],h=i[d]=xe(f)||$e(f)?{type:f}:Vt({},f),p=h.type;let m=!1,g=!0;if(xe(p))for(let v=0;v<p.length;++v){const b=p[v],_=$e(b)&&b.name;if(_==="Boolean"){m=!0;break}else _==="String"&&(g=!1)}else m=$e(p)&&p.name==="Boolean";h[0]=m,h[1]=g,(m||Pt(h,"default"))&&a.push(d)}}const c=[i,a];return Bt(e)&&r.set(e,c),c}function Dk(e){return e[0]!=="$"&&!eu(e)}const G1=e=>e==="_"||e==="_ctx"||e==="$stable",Y1=e=>xe(e)?e.map(os):[os(e)],f6=(e,t,n)=>{if(t._n)return t;const r=ne((...s)=>Y1(t(...s)),n);return r._c=!1,r},pO=(e,t,n)=>{const r=e._ctx;for(const s in e){if(G1(s))continue;const o=e[s];if($e(o))t[s]=f6(s,o,r);else if(o!=null){const i=Y1(o);t[s]=()=>i}}},mO=(e,t)=>{const n=Y1(t);e.slots.default=()=>n},gO=(e,t,n)=>{for(const r in t)(n||!G1(r))&&(e[r]=t[r])},h6=(e,t,n)=>{const r=e.slots=uO();if(e.vnode.shapeFlag&32){const s=t._;s?(gO(r,t,n),n&&gI(r,"_",s,!0)):pO(t,r)}else t&&mO(e,t)},p6=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=wt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:gO(s,t,n):(o=!t.$stable,pO(t,s)),i=t}else t&&(mO(e,t),i={default:1});if(o)for(const a in s)!G1(a)&&i[a]==null&&delete s[a]},Un=RO;function vO(e){return yO(e)}function _O(e){return yO(e,OU)}function yO(e,t){const n=Iv();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=eo,insertStaticContent:p}=e,m=(I,D,B,Y=null,L=null,k=null,R=void 0,$=null,U=!!D.dynamicChildren)=>{if(I===D)return;I&&!yo(I,D)&&(Y=Le(I),pe(I,L,k,!0),I=null),D.patchFlag===-2&&(U=!1,D.dynamicChildren=null);const{type:Z,ref:re,shapeFlag:M}=D;switch(Z){case Qo:g(I,D,B,Y);break;case pn:v(I,D,B,Y);break;case Rl:I==null&&b(D,B,Y,R);break;case mt:P(I,D,B,Y,L,k,R,$,U);break;default:M&1?w(I,D,B,Y,L,k,R,$,U):M&6?q(I,D,B,Y,L,k,R,$,U):(M&64||M&128)&&Z.process(I,D,B,Y,L,k,R,$,U,ie)}re!=null&&L?su(re,I&&I.ref,k,D||I,!D):re==null&&I&&I.ref!=null&&su(I.ref,null,k,I,!0)},g=(I,D,B,Y)=>{if(I==null)r(D.el=a(D.children),B,Y);else{const L=D.el=I.el;D.children!==I.children&&c(L,D.children)}},v=(I,D,B,Y)=>{I==null?r(D.el=l(D.children||""),B,Y):D.el=I.el},b=(I,D,B,Y)=>{[I.el,I.anchor]=p(I.children,D,B,Y,I.el,I.anchor)},_=({el:I,anchor:D},B,Y)=>{let L;for(;I&&I!==D;)L=f(I),r(I,B,Y),I=L;r(D,B,Y)},y=({el:I,anchor:D})=>{let B;for(;I&&I!==D;)B=f(I),s(I),I=B;s(D)},w=(I,D,B,Y,L,k,R,$,U)=>{D.type==="svg"?R="svg":D.type==="math"&&(R="mathml"),I==null?S(D,B,Y,L,k,R,$,U):T(I,D,L,k,R,$,U)},S=(I,D,B,Y,L,k,R,$)=>{let U,Z;const{props:re,shapeFlag:M,transition:j,dirs:ue}=I;if(U=I.el=i(I.type,k,re&&re.is,re),M&8?u(U,I.children):M&16&&x(I.children,U,null,Y,L,ty(I,k),R,$),ue&&Bo(I,null,Y,"created"),E(U,I,I.scopeId,R,Y),re){for(const Fe in re)Fe!=="value"&&!eu(Fe)&&o(U,Fe,null,re[Fe],k,Y);"value"in re&&o(U,"value",null,re.value,k),(Z=re.onVnodeBeforeMount)&&es(Z,Y,I)}ue&&Bo(I,null,Y,"beforeMount");const he=bO(L,j);he&&j.beforeEnter(U),r(U,D,B),((Z=re&&re.onVnodeMounted)||he||ue)&&Un(()=>{Z&&es(Z,Y,I),he&&j.enter(U),ue&&Bo(I,null,Y,"mounted")},L)},E=(I,D,B,Y,L)=>{if(B&&h(I,B),Y)for(let k=0;k<Y.length;k++)h(I,Y[k]);if(L){let k=L.subTree;if(D===k||cg(k.type)&&(k.ssContent===D||k.ssFallback===D)){const R=L.vnode;E(I,R,R.scopeId,R.slotScopeIds,L.parent)}}},x=(I,D,B,Y,L,k,R,$,U=0)=>{for(let Z=U;Z<I.length;Z++){const re=I[Z]=$?ma(I[Z]):os(I[Z]);m(null,re,D,B,Y,L,k,R,$)}},T=(I,D,B,Y,L,k,R)=>{const $=D.el=I.el;let{patchFlag:U,dynamicChildren:Z,dirs:re}=D;U|=I.patchFlag&16;const M=I.props||wt,j=D.props||wt;let ue;if(B&&cl(B,!1),(ue=j.onVnodeBeforeUpdate)&&es(ue,B,D,I),re&&Bo(D,I,B,"beforeUpdate"),B&&cl(B,!0),(M.innerHTML&&j.innerHTML==null||M.textContent&&j.textContent==null)&&u($,""),Z?O(I.dynamicChildren,Z,$,B,Y,ty(D,L),k):R||W(I,D,$,null,B,Y,ty(D,L),k,!1),U>0){if(U&16)z($,M,j,B,L);else if(U&2&&M.class!==j.class&&o($,"class",null,j.class,L),U&4&&o($,"style",M.style,j.style,L),U&8){const he=D.dynamicProps;for(let Fe=0;Fe<he.length;Fe++){const Ne=he[Fe],Qe=M[Ne],xt=j[Ne];(xt!==Qe||Ne==="value")&&o($,Ne,Qe,xt,L,B)}}U&1&&I.children!==D.children&&u($,D.children)}else!R&&Z==null&&z($,M,j,B,L);((ue=j.onVnodeUpdated)||re)&&Un(()=>{ue&&es(ue,B,D,I),re&&Bo(D,I,B,"updated")},Y)},O=(I,D,B,Y,L,k,R)=>{for(let $=0;$<D.length;$++){const U=I[$],Z=D[$],re=U.el&&(U.type===mt||!yo(U,Z)||U.shapeFlag&198)?d(U.el):B;m(U,Z,re,null,Y,L,k,R,!0)}},z=(I,D,B,Y,L)=>{if(D!==B){if(D!==wt)for(const k in D)!eu(k)&&!(k in B)&&o(I,k,D[k],null,L,Y);for(const k in B){if(eu(k))continue;const R=B[k],$=D[k];R!==$&&k!=="value"&&o(I,k,$,R,L,Y)}"value"in B&&o(I,"value",D.value,B.value,L)}},P=(I,D,B,Y,L,k,R,$,U)=>{const Z=D.el=I?I.el:a(""),re=D.anchor=I?I.anchor:a("");let{patchFlag:M,dynamicChildren:j,slotScopeIds:ue}=D;ue&&($=$?$.concat(ue):ue),I==null?(r(Z,B,Y),r(re,B,Y),x(D.children||[],B,re,L,k,R,$,U)):M>0&&M&64&&j&&I.dynamicChildren?(O(I.dynamicChildren,j,B,L,k,R,$),(D.key!=null||L&&D===L.subTree)&&X1(I,D,!0)):W(I,D,B,re,L,k,R,$,U)},q=(I,D,B,Y,L,k,R,$,U)=>{D.slotScopeIds=$,I==null?D.shapeFlag&512?L.ctx.activate(D,B,Y,R,U):X(D,B,Y,L,k,R,U):J(I,D,U)},X=(I,D,B,Y,L,k,R)=>{const $=I.component=LO(I,Y,L);if(Jh(I)&&($.ctx.renderer=ie),DO($,!1,R),$.asyncDep){if(L&&L.registerDep($,F,R),!I.el){const U=$.subTree=H(pn);v(null,U,D,B),I.placeholder=U.el}}else F($,I,D,B,L,k,R)},J=(I,D,B)=>{const Y=D.component=I.component;if(E6(I,D,B))if(Y.asyncDep&&!Y.asyncResolved){Q(Y,D,B);return}else Y.next=D,Y.update();else D.el=I.el,Y.vnode=D},F=(I,D,B,Y,L,k,R)=>{const $=()=>{if(I.isMounted){let{next:M,bu:j,u:ue,parent:he,vnode:Fe}=I;{const An=wO(I);if(An){M&&(M.el=Fe.el,Q(I,M,R)),An.asyncDep.then(()=>{I.isUnmounted||$()});return}}let Ne=M,Qe;cl(I,!1),M?(M.el=Fe.el,Q(I,M,R)):M=Fe,j&&nu(j),(Qe=M.props&&M.props.onVnodeBeforeUpdate)&&es(Qe,he,M,Fe),cl(I,!0);const xt=km(I),ft=I.subTree;I.subTree=xt,m(ft,xt,d(ft.el),Le(ft),I,L,k),M.el=xt.el,Ne===null&&qv(I,xt.el),ue&&Un(ue,L),(Qe=M.props&&M.props.onVnodeUpdated)&&Un(()=>es(Qe,he,M,Fe),L)}else{let M;const{el:j,props:ue}=D,{bm:he,m:Fe,parent:Ne,root:Qe,type:xt}=I,ft=Aa(D);if(cl(I,!1),he&&nu(he),!ft&&(M=ue&&ue.onVnodeBeforeMount)&&es(M,Ne,D),cl(I,!0),j&&ge){const An=()=>{I.subTree=km(I),ge(j,I.subTree,I,L,null)};ft&&xt.__asyncHydrate?xt.__asyncHydrate(j,I,An):An()}else{Qe.ce&&Qe.ce._def.shadowRoot!==!1&&Qe.ce._injectChildStyle(xt);const An=I.subTree=km(I);m(null,An,B,Y,I,L,k),D.el=An.el}if(Fe&&Un(Fe,L),!ft&&(M=ue&&ue.onVnodeMounted)){const An=D;Un(()=>es(M,Ne,An),L)}(D.shapeFlag&256||Ne&&Aa(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&I.a&&Un(I.a,L),I.isMounted=!0,D=B=Y=null}};I.scope.on();const U=I.effect=new Hf($);I.scope.off();const Z=I.update=U.run.bind(U),re=I.job=U.runIfDirty.bind(U);re.i=I,re.id=I.uid,U.scheduler=()=>D1(re),cl(I,!0),Z()},Q=(I,D,B)=>{D.component=I;const Y=I.vnode.props;I.vnode=D,I.next=null,u6(I,D.props,Y,B),p6(I,D.children,B),Bi(),Ek(I),Vi()},W=(I,D,B,Y,L,k,R,$,U=!1)=>{const Z=I&&I.children,re=I?I.shapeFlag:0,M=D.children,{patchFlag:j,shapeFlag:ue}=D;if(j>0){if(j&128){N(Z,M,B,Y,L,k,R,$,U);return}else if(j&256){ee(Z,M,B,Y,L,k,R,$,U);return}}ue&8?(re&16&&Ie(Z,L,k),M!==Z&&u(B,M)):re&16?ue&16?N(Z,M,B,Y,L,k,R,$,U):Ie(Z,L,k,!0):(re&8&&u(B,""),ue&16&&x(M,B,Y,L,k,R,$,U))},ee=(I,D,B,Y,L,k,R,$,U)=>{I=I||Zc,D=D||Zc;const Z=I.length,re=D.length,M=Math.min(Z,re);let j;for(j=0;j<M;j++){const ue=D[j]=U?ma(D[j]):os(D[j]);m(I[j],ue,B,null,L,k,R,$,U)}Z>re?Ie(I,L,k,!0,!1,M):x(D,B,Y,L,k,R,$,U,M)},N=(I,D,B,Y,L,k,R,$,U)=>{let Z=0;const re=D.length;let M=I.length-1,j=re-1;for(;Z<=M&&Z<=j;){const ue=I[Z],he=D[Z]=U?ma(D[Z]):os(D[Z]);if(yo(ue,he))m(ue,he,B,null,L,k,R,$,U);else break;Z++}for(;Z<=M&&Z<=j;){const ue=I[M],he=D[j]=U?ma(D[j]):os(D[j]);if(yo(ue,he))m(ue,he,B,null,L,k,R,$,U);else break;M--,j--}if(Z>M){if(Z<=j){const ue=j+1,he=ue<re?D[ue].el:Y;for(;Z<=j;)m(null,D[Z]=U?ma(D[Z]):os(D[Z]),B,he,L,k,R,$,U),Z++}}else if(Z>j)for(;Z<=M;)pe(I[Z],L,k,!0),Z++;else{const ue=Z,he=Z,Fe=new Map;for(Z=he;Z<=j;Z++){const ln=D[Z]=U?ma(D[Z]):os(D[Z]);ln.key!=null&&Fe.set(ln.key,Z)}let Ne,Qe=0;const xt=j-he+1;let ft=!1,An=0;const an=new Array(xt);for(Z=0;Z<xt;Z++)an[Z]=0;for(Z=ue;Z<=M;Z++){const ln=I[Z];if(Qe>=xt){pe(ln,L,k,!0);continue}let Mn;if(ln.key!=null)Mn=Fe.get(ln.key);else for(Ne=he;Ne<=j;Ne++)if(an[Ne-he]===0&&yo(ln,D[Ne])){Mn=Ne;break}Mn===void 0?pe(ln,L,k,!0):(an[Mn-he]=Z+1,Mn>=An?An=Mn:ft=!0,m(ln,D[Mn],B,null,L,k,R,$,U),Qe++)}const Zr=ft?m6(an):Zc;for(Ne=Zr.length-1,Z=xt-1;Z>=0;Z--){const ln=he+Z,Mn=D[ln],Po=D[ln+1],Ze=ln+1<re?Po.el||Po.placeholder:Y;an[Z]===0?m(null,Mn,B,Ze,L,k,R,$,U):ft&&(Ne<0||Z!==Zr[Ne]?de(Mn,B,Ze,2):Ne--)}}},de=(I,D,B,Y,L=null)=>{const{el:k,type:R,transition:$,children:U,shapeFlag:Z}=I;if(Z&6){de(I.component.subTree,D,B,Y);return}if(Z&128){I.suspense.move(D,B,Y);return}if(Z&64){R.move(I,D,B,ie);return}if(R===mt){r(k,D,B);for(let M=0;M<U.length;M++)de(U[M],D,B,Y);r(I.anchor,D,B);return}if(R===Rl){_(I,D,B);return}if(Y!==2&&Z&1&&$)if(Y===0)$.beforeEnter(k),r(k,D,B),Un(()=>$.enter(k),L);else{const{leave:M,delayLeave:j,afterLeave:ue}=$,he=()=>{I.ctx.isUnmounted?s(k):r(k,D,B)},Fe=()=>{k._isLeaving&&k[Si](!0),M(k,()=>{he(),ue&&ue()})};j?j(k,he,Fe):Fe()}else r(k,D,B)},pe=(I,D,B,Y=!1,L=!1)=>{const{type:k,props:R,ref:$,children:U,dynamicChildren:Z,shapeFlag:re,patchFlag:M,dirs:j,cacheIndex:ue}=I;if(M===-2&&(L=!1),$!=null&&(Bi(),su($,null,B,I,!0),Vi()),ue!=null&&(D.renderCache[ue]=void 0),re&256){D.ctx.deactivate(I);return}const he=re&1&&j,Fe=!Aa(I);let Ne;if(Fe&&(Ne=R&&R.onVnodeBeforeUnmount)&&es(Ne,D,I),re&6)Pe(I.component,B,Y);else{if(re&128){I.suspense.unmount(B,Y);return}he&&Bo(I,null,D,"beforeUnmount"),re&64?I.type.remove(I,D,B,ie,Y):Z&&!Z.hasOnce&&(k!==mt||M>0&&M&64)?Ie(Z,D,B,!1,!0):(k===mt&&M&384||!L&&re&16)&&Ie(U,D,B),Y&&je(I)}(Fe&&(Ne=R&&R.onVnodeUnmounted)||he)&&Un(()=>{Ne&&es(Ne,D,I),he&&Bo(I,null,D,"unmounted")},B)},je=I=>{const{type:D,el:B,anchor:Y,transition:L}=I;if(D===mt){Re(B,Y);return}if(D===Rl){y(I);return}const k=()=>{s(B),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(I.shapeFlag&1&&L&&!L.persisted){const{leave:R,delayLeave:$}=L,U=()=>R(B,k);$?$(I.el,k,U):U()}else k()},Re=(I,D)=>{let B;for(;I!==D;)B=f(I),s(I),I=B;s(D)},Pe=(I,D,B)=>{const{bum:Y,scope:L,job:k,subTree:R,um:$,m:U,a:Z}=I;lg(U),lg(Z),Y&&nu(Y),L.stop(),k&&(k.flags|=8,pe(R,I,D,B)),$&&Un($,D),Un(()=>{I.isUnmounted=!0},D)},Ie=(I,D,B,Y=!1,L=!1,k=0)=>{for(let R=k;R<I.length;R++)pe(I[R],D,B,Y,L)},Le=I=>{if(I.shapeFlag&6)return Le(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const D=f(I.anchor||I.el),B=D&&D[zI];return B?f(B):D};let fe=!1;const K=(I,D,B)=>{I==null?D._vnode&&pe(D._vnode,null,null,!0):m(D._vnode||null,I,D,null,null,null,B),D._vnode=I,fe||(fe=!0,Ek(),og(),fe=!1)},ie={p:m,um:pe,m:de,r:je,mt:X,mc:x,pc:W,pbc:O,n:Le,o:e};let ae,ge;return t&&([ae,ge]=t(ie)),{render:K,hydrate:ae,createApp:l6(K,ae)}}function ty({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function cl({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function X1(e,t,n=!1){const r=e.children,s=t.children;if(xe(r)&&xe(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=ma(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&X1(i,a)),a.type===Qo&&a.patchFlag!==-1&&(a.el=i.el),a.type===pn&&!a.el&&(a.el=i.el)}}function m6(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function wO(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wO(t)}function lg(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const SO=Symbol.for("v-scx"),EO=()=>vt(SO);function Yr(e,t){return tp(e,null,t)}function g6(e,t){return tp(e,null,{flush:"post"})}function kO(e,t){return tp(e,null,{flush:"sync"})}function be(e,t,n){return tp(e,t,n)}function tp(e,t,n=wt){const{immediate:r,deep:s,flush:o,once:i}=n,a=Vt({},n),l=t&&r||!t&&o!=="post";let c;if(xu){if(o==="sync"){const h=EO();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=eo,h.resume=eo,h.pause=eo,h}}const u=ar;a.call=(h,p,m)=>ao(h,u,p,m);let d=!1;o==="post"?a.scheduler=h=>{Un(h,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(h,p)=>{p?h():D1(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const f=mU(e,t,a);return xu&&(c?c.push(f):l&&f()),f}function v6(e,t,n){const r=this.proxy,s=Zt(e)?e.includes(".")?xO(r,e):()=>r[e]:e.bind(r,r);let o;$e(t)?o=t:(o=t.handler,n=t);const i=Hl(this),a=tp(s,o.bind(r),n);return i(),a}function xO(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Hv(e,t,n=wt){const r=At(),s=Vn(t),o=as(t),i=TO(e,s),a=Qh((l,c)=>{let u,d=wt,f;return kO(()=>{const h=e[s];zr(u,h)&&(u=h,c())}),{get(){return l(),n.get?n.get(u):u},set(h){const p=n.set?n.set(h):h;if(!zr(p,u)&&!(d!==wt&&zr(h,d)))return;const m=r.vnode.props;m&&(t in m||s in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${s}`in m||`onUpdate:${o}`in m)||(u=h,c()),r.emit(`update:${t}`,p),zr(h,p)&&zr(h,d)&&!zr(p,f)&&c(),d=h,f=p}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||wt:a,done:!1}:{done:!0}}}},a}const TO=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Vn(t)}Modifiers`]||e[`${as(t)}Modifiers`];function _6(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||wt;let s=n;const o=t.startsWith("update:"),i=o&&TO(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>Zt(u)?u.trim():u)),i.number&&(s=n.map(Jm)));let a,l=r[a=tu(t)]||r[a=tu(Vn(t))];!l&&o&&(l=r[a=tu(as(t))]),l&&ao(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ao(c,e,6,s)}}const y6=new WeakMap;function CO(e,t,n=!1){const r=n?y6:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!$e(e)){const l=c=>{const u=CO(c,t,!0);u&&(a=!0,Vt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Bt(e)&&r.set(e,null),null):(xe(o)?o.forEach(l=>i[l]=null):Vt(i,o),Bt(e)&&r.set(e,i),i)}function zv(e,t){return!e||!Yh(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pt(e,t[0].toLowerCase()+t.slice(1))||Pt(e,as(t))||Pt(e,t))}function km(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:p,inheritAttrs:m}=e,g=Gf(e);let v,b;try{if(n.shapeFlag&4){const y=s||r,w=y;v=os(c.call(w,y,u,d,h,f,p)),b=a}else{const y=t;v=os(y.length>1?y(d,{attrs:a,slots:i,emit:l}):y(d,null)),b=t.props?a:w6(a)}}catch(y){_f.length=0,ac(y,e,1),v=H(pn)}let _=v;if(b&&m!==!1){const y=Object.keys(b),{shapeFlag:w}=_;y.length&&w&7&&(o&&y.some(T1)&&(b=S6(b,o)),_=Bs(_,b,!1,!0))}return n.dirs&&(_=Bs(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&ji(_,n.transition),v=_,Gf(g),v}function b6(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(ai(s)){if(s.type!==pn||s.children==="v-if"){if(n)return;n=s}}else return}return n}const w6=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yh(n))&&((t||(t={}))[n]=e[n]);return t},S6=(e,t)=>{const n={};for(const r in e)(!T1(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function E6(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Mk(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(i[f]!==r[f]&&!zv(c,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Mk(r,i,c):!0:!!i;return!1}function Mk(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!zv(n,o))return!0}return!1}function qv({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const cg=e=>e.__isSuspense;let Yb=0;const k6={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,c){if(e==null)x6(t,n,r,s,o,i,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}T6(e,t,n,r,s,i,a,l,c)}},hydrate:C6,normalize:A6},Wv=k6;function Xf(e,t){const n=e.props&&e.props[t];$e(n)&&n()}function x6(e,t,n,r,s,o,i,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=AO(e,s,r,t,d,n,o,i,a,l);c(null,f.pendingBranch=e.ssContent,d,null,r,f,o,i),f.deps>0?(Xf(e,"onPending"),Xf(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,i),ou(f,e.ssFallback)):f.resolve(!1,!0)}function T6(e,t,n,r,s,o,i,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=f,yo(m,f)?(l(m,f,d.hiddenContainer,null,s,d,o,i,a),d.deps<=0?d.resolve():g&&(v||(l(p,h,n,r,s,null,o,i,a),ou(d,h)))):(d.pendingId=Yb++,v?(d.isHydrating=!1,d.activeBranch=m):c(m,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,f,d.hiddenContainer,null,s,d,o,i,a),d.deps<=0?d.resolve():(l(p,h,n,r,s,null,o,i,a),ou(d,h))):p&&yo(p,f)?(l(p,f,n,r,s,d,o,i,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,s,d,o,i,a),d.deps<=0&&d.resolve()));else if(p&&yo(p,f))l(p,f,n,r,s,d,o,i,a),ou(d,f);else if(Xf(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Yb++,l(null,f,d.hiddenContainer,null,s,d,o,i,a),d.deps<=0)d.resolve();else{const{timeout:b,pendingId:_}=d;b>0?setTimeout(()=>{d.pendingId===_&&d.fallback(h)},b):b===0&&d.fallback(h)}}function AO(e,t,n,r,s,o,i,a,l,c,u=!1){const{p:d,m:f,um:h,n:p,o:{parentNode:m,remove:g}}=c;let v;const b=R6(e);b&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const _=e.props?eg(e.props.timeout):void 0,y=o,w={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Yb++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,E=!1){const{vnode:x,activeBranch:T,pendingBranch:O,pendingId:z,effects:P,parentComponent:q,container:X}=w;let J=!1;w.isHydrating?w.isHydrating=!1:S||(J=T&&O.transition&&O.transition.mode==="out-in",J&&(T.transition.afterLeave=()=>{z===w.pendingId&&(f(O,X,o===y?p(T):o,0),Wf(P))}),T&&(m(T.el)===X&&(o=p(T)),h(T,q,w,!0)),J||f(O,X,o,0)),ou(w,O),w.pendingBranch=null,w.isInFallback=!1;let F=w.parent,Q=!1;for(;F;){if(F.pendingBranch){F.effects.push(...P),Q=!0;break}F=F.parent}!Q&&!J&&Wf(P),w.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Xf(x,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:E,activeBranch:x,parentComponent:T,container:O,namespace:z}=w;Xf(E,"onFallback");const P=p(x),q=()=>{w.isInFallback&&(d(null,S,O,P,T,null,z,a,l),ou(w,S))},X=S.transition&&S.transition.mode==="out-in";X&&(x.transition.afterLeave=q),w.isInFallback=!0,h(x,T,null,!0),X||q()},move(S,E,x){w.activeBranch&&f(w.activeBranch,S,E,x),w.container=S},next(){return w.activeBranch&&p(w.activeBranch)},registerDep(S,E,x){const T=!!w.pendingBranch;T&&w.deps++;const O=S.vnode.el;S.asyncDep.catch(z=>{ac(z,S,0)}).then(z=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:P}=S;Zb(S,z,!1),O&&(P.el=O);const q=!O&&S.subTree.el;E(S,P,m(O||S.subTree.el),O?null:p(S.subTree),w,i,x),q&&g(q),qv(S,P.el),T&&--w.deps===0&&w.resolve()})},unmount(S,E){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,S,E),w.pendingBranch&&h(w.pendingBranch,n,S,E)}};return w}function C6(e,t,n,r,s,o,i,a,l){const c=t.suspense=AO(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,i);return c.deps===0&&c.resolve(!1,!0),u}function A6(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=$k(r?n.default:n),e.ssFallback=r?$k(n.fallback):H(pn)}function $k(e){let t;if($e(e)){const n=jl&&e._c;n&&(e._d=!1,V()),e=e(),n&&(e._d=!0,t=kr,IO())}return xe(e)&&(e=b6(e)),e=os(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function RO(e,t){t&&t.pendingBranch?xe(e)?t.effects.push(...e):t.effects.push(e):Wf(e)}function ou(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,qv(r,s))}function R6(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const mt=Symbol.for("v-fgt"),Qo=Symbol.for("v-txt"),pn=Symbol.for("v-cmt"),Rl=Symbol.for("v-stc"),_f=[];let kr=null;function V(e=!1){_f.push(kr=e?null:[])}function IO(){_f.pop(),kr=_f[_f.length-1]||null}let jl=1;function Qf(e,t=!1){jl+=e,e<0&&kr&&t&&(kr.hasOnce=!0)}function OO(e){return e.dynamicChildren=jl>0?kr||Zc:null,IO(),jl>0&&kr&&kr.push(e),e}function Ae(e,t,n,r,s,o){return OO(Ft(e,t,n,r,s,o,!0))}function te(e,t,n,r,s){return OO(H(e,t,n,r,s,!0))}function ai(e){return e?e.__v_isVNode===!0:!1}function yo(e,t){return e.type===t.type&&e.key===t.key}function I6(e){}const PO=({key:e})=>e??null,xm=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Zt(e)||et(e)||$e(e)?{i:lr,r:e,k:t,f:!!n}:e:null);function Ft(e,t=null,n=null,r=0,s=null,o=e===mt?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&PO(t),ref:t&&xm(t),scopeId:$v,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:lr};return a?(Q1(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Zt(n)?8:16),jl>0&&!i&&kr&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&kr.push(l),l}const H=O6;function O6(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===rO)&&(e=pn),ai(e)){const a=Bs(e,t,!0);return n&&Q1(a,n),jl>0&&!o&&kr&&(a.shapeFlag&6?kr[kr.indexOf(e)]=a:kr.push(a)),a.patchFlag=-2,a}if(U6(e)&&(e=e.__vccOpts),t){t=Us(t);let{class:a,style:l}=t;a&&!Zt(a)&&(t.class=Et(a)),Bt(l)&&(Mv(l)&&!xe(l)&&(l=Vt({},l)),t.style=io(l))}const i=Zt(e)?1:cg(e)?128:qI(e)?64:Bt(e)?4:$e(e)?2:0;return Ft(e,t,n,r,s,i,o,!0)}function Us(e){return e?Mv(e)||dO(e)?Vt({},e):e:null}function Bs(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?we(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&PO(c),ref:t&&t.ref?n&&o?xe(o)?o.concat(xm(t)):[o,xm(t)]:xm(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==mt?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&&Bs(e.ssContent),ssFallback:e.ssFallback&&Bs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ji(u,l.clone(u)),u}function gt(e=" ",t=0){return H(Qo,null,e,t)}function P6(e,t){const n=H(Rl,null,e);return n.staticCount=t,n}function Ce(e="",t=!1){return t?(V(),te(pn,null,e)):H(pn,null,e)}function os(e){return e==null||typeof e=="boolean"?H(pn):xe(e)?H(mt,null,e.slice()):ai(e)?ma(e):H(Qo,null,String(e))}function ma(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bs(e)}function Q1(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(xe(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Q1(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!dO(t)?t._ctx=lr:s===3&&lr&&(lr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $e(t)?(t={default:t,_ctx:lr},n=32):(t=String(t),r&64?(n=16,t=[gt(t)]):n=8);e.children=t,e.shapeFlag|=n}function we(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Et([t.class,r.class]));else if(s==="style")t.style=io([t.style,r.style]);else if(Yh(s)){const o=t[s],i=r[s];i&&o!==i&&!(xe(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function es(e,t,n,r=null){ao(e,t,7,[n,r])}const L6=lO();let N6=0;function LO(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||L6,o={uid:N6++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new I1(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hO(r,s),emitsOptions:CO(r,s),emit:null,emitted:null,propsDefaults:wt,inheritAttrs:r.inheritAttrs,ctx:wt,data:wt,props:wt,attrs:wt,slots:wt,refs:wt,setupState:wt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=_6.bind(null,o),e.ce&&e.ce(o),o}let ar=null;const At=()=>ar||lr;let ug,Xb;{const e=Iv(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};ug=t("__VUE_INSTANCE_SETTERS__",n=>ar=n),Xb=t("__VUE_SSR_SETTERS__",n=>xu=n)}const Hl=e=>{const t=ar;return ug(e),e.scope.on(),()=>{e.scope.off(),ug(t)}},Qb=()=>{ar&&ar.scope.off(),ug(null)};function NO(e){return e.vnode.shapeFlag&4}let xu=!1;function DO(e,t=!1,n=!1){t&&Xb(t);const{props:r,children:s}=e.vnode,o=NO(e);c6(e,r,o,t),h6(e,s,n||t);const i=o?D6(e,t):void 0;return t&&Xb(!1),i}function D6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qb);const{setup:r}=n;if(r){Bi();const s=e.setupContext=r.length>1?$O(e):null,o=Hl(e),i=rd(r,e,0,[e.props,s]),a=A1(i);if(Vi(),o(),(a||e.sp)&&!Aa(e)&&F1(e),a){if(i.then(Qb,Qb),t)return i.then(l=>{Zb(e,l,t)}).catch(l=>{ac(l,e,0)});e.asyncDep=i}else Zb(e,i,t)}else MO(e,t)}function Zb(e,t,n){$e(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Bt(t)&&(e.setupState=N1(t)),MO(e,n)}let dg,Jb;function M6(e){dg=e,Jb=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,qU))}}const $6=()=>!dg;function MO(e,t,n){const r=e.type;if(!e.render){if(!t&&dg&&!r.render){const s=r.template||K1(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Vt(Vt({isCustomElement:o,delimiters:a},i),l);r.render=dg(s,c)}}e.render=r.render||eo,Jb&&Jb(e)}{const s=Hl(e);Bi();try{n6(e)}finally{Vi(),s()}}}const F6={get(e,t){return br(e,"get",""),e[t]}};function $O(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,F6),slots:e.slots,emit:e.emit,expose:t}}function np(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(N1(nd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vf)return vf[n](e)},has(t,n){return n in t||n in vf}})):e.proxy}function e0(e,t=!0){return $e(e)?e.displayName||e.name:e.name||t&&e.__name}function U6(e){return $e(e)&&"__vccOpts"in e}const A=(e,t)=>dU(e,t,xu);function qe(e,t,n){try{Qf(-1);const r=arguments.length;return r===2?Bt(t)&&!xe(t)?ai(t)?H(e,null,[t]):H(e,t):H(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ai(n)&&(n=[n]),H(e,t,n))}finally{Qf(1)}}function B6(){}function V6(e,t,n,r){const s=n[r];if(s&&FO(s,e))return s;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function FO(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(zr(n[r],t[r]))return!1;return jl>0&&kr&&kr.push(e),!0}const UO="3.5.22",j6=eo,H6=bU,z6=Lc,q6=HI,W6={createComponentInstance:LO,setupComponent:DO,renderComponentRoot:km,setCurrentRenderingInstance:Gf,isVNode:ai,normalizeVNode:os,getComponentPublicInstance:np,ensureValidVNode:q1,pushWarningContext:gU,popWarningContext:vU},K6=W6,G6=null,Y6=null,X6=null;/** 16* @vue/runtime-dom v3.5.22 17* (c) 2018-present Yuxi (Evan) You and Vue contributors 18* @license MIT
19**/let t0;const Fk=typeof window<"u"&&window.trustedTypes;if(Fk)try{t0=Fk.createPolicy("vue",{createHTML:e=>e})}catch{}const BO=t0?e=>t0.createHTML(e):e=>e,Q6="http://www.w3.org/2000/svg",Z6="http://www.w3.org/1998/Math/MathML",yi=typeof document<"u"?document:null,Uk=yi&&yi.createElement("template"),J6={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?yi.createElementNS(Q6,e):t==="mathml"?yi.createElementNS(Z6,e):n?yi.createElement(e,{is:n}):yi.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>yi.createTextNode(e),createComment:e=>yi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Uk.innerHTML=BO(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Uk.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},oa="transition",Ld="animation",Tu=Symbol("_vtc"),VO={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=Vt({},$1,VO),eB=e=>(e.displayName="Transition",e.props=jO,e),fg=eB((e,{slots:t})=>qe(XI,HO(e),t)),ul=(e,t=[])=>{xe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Bk=e=>e?xe(e)?e.some(t=>t.length>1):e.length>1:!1;function HO(e){const t={};for(const P in e)P in VO||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=tB(s),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:_,onLeave:y,onLeaveCancelled:w,onBeforeAppear:S=v,onAppear:E=b,onAppearCancelled:x=_}=t,T=(P,q,X,J)=>{P._enterCancelled=J,ca(P,q?u:a),ca(P,q?c:i),X&&X()},O=(P,q)=>{P._isLeaving=!1,ca(P,d),ca(P,h),ca(P,f),q&&q()},z=P=>(q,X)=>{const J=P?E:b,F=()=>T(q,P,X);ul(J,[q,F]),Vk(()=>{ca(q,P?l:o),Fo(q,P?u:a),Bk(J)||jk(q,r,m,F)})};return Vt(t,{onBeforeEnter(P){ul(v,[P]),Fo(P,o),Fo(P,i)},onBeforeAppear(P){ul(S,[P]),Fo(P,l),Fo(P,c)},onEnter:z(!1),onAppear:z(!0),onLeave(P,q){P._isLeaving=!0;const X=()=>O(P,q);Fo(P,d),P._enterCancelled?(Fo(P,f),n0(P)):(n0(P),Fo(P,f)),Vk(()=>{P._isLeaving&&(ca(P,d),Fo(P,h),Bk(y)||jk(P,r,g,X))}),ul(y,[P,X])},onEnterCancelled(P){T(P,!1,void 0,!0),ul(_,[P])},onAppearCancelled(P){T(P,!0,void 0,!0),ul(x,[P])},onLeaveCancelled(P){O(P),ul(w,[P])}})}function tB(e){if(e==null)return null;if(Bt(e))return[ny(e.enter),ny(e.leave)];{const t=ny(e);return[t,t]}}function ny(e){return eg(e)}function Fo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Tu]||(e[Tu]=new Set)).add(t)}function ca(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Tu];n&&(n.delete(t),n.size||(e[Tu]=void 0))}function Vk(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nB=0;function jk(e,t,n,r){const s=e._endId=++nB,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=zO(e,t);if(!i)return r();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=h=>{h.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,f)}function zO(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),s=r(`${oa}Delay`),o=r(`${oa}Duration`),i=Hk(s,o),a=r(`${Ld}Delay`),l=r(`${Ld}Duration`),c=Hk(a,l);let u=null,d=0,f=0;t===oa?i>0&&(u=oa,d=i,f=o.length):t===Ld?c>0&&(u=Ld,d=c,f=l.length):(d=Math.max(i,c),u=d>0?i>c?oa:Ld:null,f=u?u===oa?o.length:l.length:0);const h=u===oa&&/\b(?:transform|all)(?:,|$)/.test(r(`${oa}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function Hk(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>zk(n)+zk(e[r])))}function zk(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function n0(e){return(e?e.ownerDocument:document).body.offsetHeight}function rB(e,t,n){const r=e[Tu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hg=Symbol("_vod"),qO=Symbol("_vsh"),WO={name:"show",beforeMount(e,{value:t},{transition:n}){e[hg]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nd(e,t)}
vendor: 17,242 bytes, lines 19-22
19,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Nd(e,!0),r.enter(e)):r.leave(e,()=>{Nd(e,!1)}):Nd(e,t))},beforeUnmount(e,{value:t}){Nd(e,t)}};function Nd(e,t){e.style.display=t?e[hg]:"none",e[qO]=!t}function sB(){WO.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const KO=Symbol("");function sd(e){const t=At();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>pg(o,s))},r=()=>{const s=e(t.proxy);t.ce?pg(t.ce,s):r0(t.subTree,s),n(s)};V1(()=>{Wf(r)}),Ut(()=>{be(r,eo,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),qn(()=>s.disconnect())})}function r0(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{r0(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)pg(e.el,t);else if(e.type===mt)e.children.forEach(n=>r0(n,t));else if(e.type===Rl){let{el:n,anchor:r}=e;for(;n&&(pg(n,t),n!==r);)n=n.nextSibling}}function pg(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t){const o=$F(t[s]);n.setProperty(`--${s}`,o),r+=`--${s}: ${o};`}n[KO]=r}}const oB=/(?:^|;)\s*display\s*:/;function iB(e,t,n){const r=e.style,s=Zt(n);let o=!1;if(n&&!s){if(t)if(Zt(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Tm(r,a,"")}else for(const i in t)n[i]==null&&Tm(r,i,"");for(const i in n)i==="display"&&(o=!0),Tm(r,i,n[i])}else if(s){if(t!==n){const i=r[KO];i&&(n+=";"+i),r.cssText=n,o=oB.test(n)}}else t&&e.removeAttribute("style");hg in e&&(e[hg]=o?r.display:"",e[qO]&&(r.display="none"))}const qk=/\s*!important$/;function Tm(e,t,n){if(xe(n))n.forEach(r=>Tm(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=aB(e,t);qk.test(n)?e.setProperty(as(r),n.replace(qk,""),"important"):e[r]=n}}const Wk=["Webkit","Moz","ms"],ry={};function aB(e,t){const n=ry[t];if(n)return n;let r=Vn(t);if(r!=="filter"&&r in e)return ry[t]=r;r=Xh(r);for(let s=0;s<Wk.length;s++){const o=Wk[s]+r;if(o in e)return ry[t]=o}return t}const Kk="http://www.w3.org/1999/xlink";function Gk(e,t,n,r,s,o=DF(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Kk,t.slice(6,t.length)):e.setAttributeNS(Kk,t,n):n==null||o&&!vI(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Co(n)?String(n):n)}function Yk(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?BO(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=vI(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Ai(e,t,n,r){e.addEventListener(t,n,r)}function lB(e,t,n,r){e.removeEventListener(t,n,r)}const Xk=Symbol("_vei");function cB(e,t,n,r,s=null){const o=e[Xk]||(e[Xk]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=uB(t);if(r){const c=o[t]=hB(r,s);Ai(e,a,c,l)}else i&&(lB(e,a,i,l),o[t]=void 0)}}const Qk=/(?:Once|Passive|Capture)$/;function uB(e){let t;if(Qk.test(e)){t={};let r;for(;r=e.match(Qk);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):as(e.slice(2)),t]}let sy=0;const dB=Promise.resolve(),fB=()=>sy||(dB.then(()=>sy=0),sy=Date.now());function hB(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ao(pB(r,n.value),t,5,[r])};return n.value=e,n.attached=fB(),n}function pB(e,t){if(xe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Zk=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mB=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?rB(e,r,i):t==="style"?iB(e,n,r):Yh(t)?T1(t)||cB(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gB(e,t,r,i))?(Yk(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Gk(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Zt(r))?Yk(e,Vn(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Gk(e,t,r,i))};function gB(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zk(t)&&$e(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Zk(t)&&Zt(n)?!1:t in e}const Jk={};function GO(e,t,n){let r=oe(e,t);Av(r)&&(r=Vt({},r,t));class s extends Kv{constructor(i){super(r,i,n)}}return s.def=r,s}const vB=((e,t)=>GO(e,t,eS)),_B=typeof HTMLElement<"u"?HTMLElement:class{};class Kv extends _B{constructor(t,n={},r=vg){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==vg?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Vt({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Kv){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Lt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:i}=r;let a;if(o&&!xe(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=eg(this._props[l])),(a||(a=Object.create(null)))[Vn(l)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(i),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Pt(this,r)||Object.defineProperty(this,r,{get:()=>C(n[r])})}_resolveProps(t){const{props:n}=t,r=xe(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(Vn))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(o){this._setProp(s,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Jk;const s=Vn(t);n&&this._numberProps&&this._numberProps[s]&&(r=eg(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(n===Jk?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),n===!0?this.setAttribute(as(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(as(t),n+""):n||this.removeAttribute(as(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),iP(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=H(this._def,Vt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(o,i)=>{this.dispatchEvent(new CustomEvent(o,Av(i[0])?Vt({detail:i},i[0]):{detail:i}))};r.emit=(o,...i)=>{s(o,i),as(o)!==o&&s(as(o),i)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[s],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const s=t[r],o=s.getAttribute("name")||"default",i=this._slots[o],a=s.parentNode;if(i)for(const l of i){if(n&&l.nodeType===1){const c=n+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const t=[this];return this._teleportTargets&&t.push(...this._teleportTargets),t.reduce((n,r)=>(n.push(...Array.from(r.querySelectorAll("slot"))),n),[])}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function YO(e){const t=At(),n=t&&t.ce;return n||null}function yB(){const e=YO();return e&&e.shadowRoot}function bB(e="$style"){{const t=At();if(!t)return wt;const n=t.type.__cssModules;if(!n)return wt;const r=n[e];return r||wt}}const XO=new WeakMap,QO=new WeakMap,mg=Symbol("_moveCb"),ex=Symbol("_enterCb"),wB=e=>(delete e.props.mode,e),SB=wB({name:"TransitionGroup",props:Vt({},jO,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=At(),r=M1();let s,o;return ep(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!CB(s[0].el,n.vnode.el,i)){s=[];return}s.forEach(kB),s.forEach(xB);const a=s.filter(TB);n0(n.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;Fo(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[mg]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[mg]=null,ca(c,i))};c.addEventListener("transitionend",d)}),s=[]}),()=>{const i=pt(e),a=HO(i);let l=i.tag||mt;if(s=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(s.push(u),ji(u,Eu(u,a,r,n)),XO.set(u,u.el.getBoundingClientRect()))}o=t.default?Uv(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&ji(u,Eu(u,a,r,n))}return H(l,null,o)}}}),EB=SB;function kB(e){const t=e.el;t[mg]&&t[mg](),t[ex]&&t[ex]()}function xB(e){QO.set(e,e.el.getBoundingClientRect())}function TB(e){const t=XO.get(e),n=QO.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function CB(e,t,n){const r=e.cloneNode(),s=e[Tu];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=zO(r);return o.removeChild(r),i}const Ua=e=>{const t=e.props["onUpdate:modelValue"]||!1;return xe(t)?n=>nu(t,n):t};function AB(e){e.target.composing=!0}function tx(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const to=Symbol("_assign"),gg={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[to]=Ua(s);const o=r||s.props&&s.props.type==="number";Ai(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=Jm(a)),e[to](a)}),n&&Ai(e,"change",()=>{e.value=e.value.trim()}),t||(Ai(e,"compositionstart",AB),Ai(e,"compositionend",tx),Ai(e,"change",tx))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[to]=Ua(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Jm(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},Z1={deep:!0,created(e,t,n){e[to]=Ua(n),Ai(e,"change",()=>{const r=e._modelValue,s=Cu(e),o=e.checked,i=e[to];if(xe(r)){const a=Ov(r,s),l=a!==-1;if(o&&!l)i(r.concat(s));else if(!o&&l){const c=[...r];c.splice(a,1),i(c)}}else if(ic(r)){const a=new Set(r);o?a.add(s):a.delete(s),i(a)}else i(JO(e,o))})},mounted:nx,beforeUpdate(e,t,n){e[to]=Ua(n),nx(e,t,n)}};function nx(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(xe(t))s=Ov(t,r.props.value)>-1;else if(ic(t))s=t.has(r.props.value);else{if(t===n)return;s=Fa(t,JO(e,!0))}e.checked!==s&&(e.checked=s)}const J1={created(e,{value:t},n){e.checked=Fa(t,n.props.value),e[to]=Ua(n),Ai(e,"change",()=>{e[to](Cu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[to]=Ua(r),t!==n&&(e.checked=Fa(t,r.props.value))}},ZO={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=ic(t);Ai(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Jm(Cu(i)):Cu(i));e[to](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,Lt(()=>{e._assigning=!1})}),e[to]=Ua(r)},mounted(e,{value:t}){rx(e,t)},beforeUpdate(e,t,n){e[to]=Ua(n)},updated(e,{value:t}){e._assigning||rx(e,t)}};function rx(e,t){const n=e.multiple,r=xe(t);if(!(n&&!r&&!ic(t))){for(let s=0,o=e.options.length;s<o;s++){const i=e.options[s],a=Cu(i);if(n)if(r){const l=typeof a;l==="string"||l==="number"?i.selected=t.some(c=>String(c)===String(a)):i.selected=Ov(t,a)>-1}else i.selected=t.has(a);else if(Fa(Cu(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Cu(e){return"_value"in e?e._value:e.value}function JO(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const eP={created(e,t,n){Pp(e,t,n,null,"created")},mounted(e,t,n){Pp(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Pp(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Pp(e,t,n,r,"updated")}};function tP(e,t){switch(e){case"SELECT":return ZO;case"TEXTAREA":return gg;default:switch(t){case"checkbox":return Z1;case"radio":return J1;default:return gg}}}function Pp(e,t,n,r,s){const i=tP(e.tagName,n.props&&n.props.type)[s];i&&i(e,t,n,r)}function RB(){gg.getSSRProps=({value:e})=>({value:e}),J1.getSSRProps=({value:e},t)=>{if(t.props&&Fa(t.props.value,e))return{checked:!0}},Z1.getSSRProps=({value:e},t)=>{if(xe(e)){if(t.props&&Ov(e,t.props.value)>-1)return{checked:!0}}else if(ic(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},eP.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=tP(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const IB=["ctrl","shift","alt","meta"],OB={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)=>IB.some(n=>e[`${n}Key`]&&!t.includes(n))},Il=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let i=0;i<t.length;i++){const a=OB[t[i]];if(a&&a(s,t))return}return e(s,...o)}))},PB={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},nP=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=as(s.key);if(t.some(i=>i===o||PB[i]===o))return e(s)}))},rP=Vt({patchProp:mB},J6);let yf,sx=!1;function sP(){return yf||(yf=vO(rP))}function oP(){return yf=sx?yf:_O(rP),sx=!0,yf}const iP=((...e)=>{sP().render(...e)}),LB=((...e)=>{oP().hydrate(...e)}),vg=((...e)=>{const t=sP().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=lP(r);if(!s)return;const o=t._component;!$e(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,aP(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),eS=((...e)=>{const t=oP().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=lP(r);if(s)return n(s,!0,aP(s))},t});function aP(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lP(e){return Zt(e)?document.querySelector(e):e}let ox=!1;const NB=()=>{ox||(ox=!0,RB(),sB())};/** 20* vue v3.5.22 21* (c) 2018-present Yuxi (Evan) You and Vue contributors 22* @license MIT
23**/const DB=()=>{},MB=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:XI,BaseTransitionPropsValidators:$1,Comment:pn,DeprecationTypes:X6,EffectScope:I1,ErrorCodes:yU,ErrorTypeStrings:H6,Fragment:mt,KeepAlive:ZI,ReactiveEffect:Hf,Static:Rl,Suspense:Wv,Teleport:Fv,Text:Qo,TrackOpTypes:fU,Transition:fg,TransitionGroup:EB,TriggerOpTypes:hU,VueElement:Kv,assertNumber:_U,callWithAsyncErrorHandling:ao,callWithErrorHandling:rd,camelize:Vn,capitalize:Xh,cloneVNode:Bs,compatUtils:Y6,compile:DB,computed:A,createApp:vg,createBlock:te,createCommentVNode:Ce,createElementBlock:Ae,createElementVNode:Ft,createHydrationRenderer:_O,createPropsRestProxy:e6,createRenderer:vO,createSSRApp:eS,createSlots:sO,createStaticVNode:P6,createTextVNode:gt,createVNode:H,customRef:Qh,defineAsyncComponent:_i,defineComponent:oe,defineCustomElement:GO,defineEmits:KU,defineExpose:GU,defineModel:QU,defineOptions:YU,defineProps:WU,defineSSRCustomElement:vB,defineSlots:XU,devtools:z6,effect:UF,effectScope:Ji,getCurrentInstance:At,getCurrentScope:ea,getCurrentWatcher:pU,getTransitionRawChildren:Uv,guardReactiveProps:Us,h:qe,handleError:ac,hasInjectionContext:Ya,hydrate:LB,hydrateOnIdle:DU,hydrateOnInteraction:UU,hydrateOnMediaQuery:FU,hydrateOnVisible:$U,initCustomFormatter:B6,initDirectivesForSSR:NB,inject:vt,isMemoSame:FO,isProxy:Mv,isReactive:ko,isReadonly:ii,isRef:et,isRuntimeOnly:$6,isShallow:Ns,isVNode:ai,markRaw:nd,mergeDefaults:JU,mergeModels:ku,mergeProps:we,nextTick:Lt,normalizeClass:Et,normalizeProps:Ar,normalizeStyle:io,onActivated:Bv,onBeforeMount:B1,onBeforeUnmount:Oo,onBeforeUpdate:V1,onDeactivated:Vv,onErrorCaptured:j1,onMounted:Ut,onRenderTracked:nO,onRenderTriggered:tO,onScopeDispose:gs,onServerPrefetch:eO,onUnmounted:qn,onUpdated:ep,onWatcherCleanup:FI,openBlock:V,popScopeId:kU,provide:Zn,proxyRefs:N1,pushScopeId:EU,queuePostFlushCb:Wf,reactive:jn,readonly:Ao,ref:G,registerRuntimeCompiler:M6,render:iP,renderList:Vl,renderSlot:le,resolveComponent:Hb,resolveDirective:zU,resolveDynamicComponent:bo,resolveFilter:G6,resolveTransitionHooks:Eu,setBlockTracking:Qf,setDevtoolsHook:q6,setTransitionHooks:ji,shallowReactive:cs,shallowReadonly:td,shallowRef:vn,ssrContextKey:SO,ssrUtils:K6,stop:BF,toDisplayString:at,toHandlerKey:tu,toHandlers:oO,toRaw:pt,toRef:us,toRefs:Gr,toValue:Je,transformVNodeArgs:I6,triggerRef:MI,unref:C,useAttrs:W1,useCssModule:bB,useCssVars:sd,useHost:YO,useId:Zh,useModel:Hv,useSSRContext:EO,useShadowRoot:yB,useSlots:lc,useTemplateRef:U1,useTransitionState:M1,vModelCheckbox:Z1,vModelDynamic:eP,vModelRadio:J1,vModelSelect:ZO,vModelText:gg,vShow:WO,version:UO,warn:j6,watch:be,watchEffect:Yr,watchPostEffect:g6,watchSyncEffect:kO,withAsyncContext:t6,withCtx:ne,withDefaults:ZU,withDirectives:TU,withKeys:nP,withMemo:V6,withModifiers:Il,withScopeId:xU},Symbol.toStringTag,{value:"Module"})),$B=/"(?:_|\\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*:/,FB=/"(?: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*:/,UB=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function BB(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){VB(e);return}return t}function VB(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Zf(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!UB.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if($B.test(e)||FB.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,BB)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const cP=/#/g,uP=/&/g,dP=/\//g,jB=/=/g,HB=/\?/g,Gv=/\+/g,zB=/%5e/gi,qB=/%60/gi,WB=/%7c/gi,KB=/%20/gi,GB=/%252f/gi;function fP(e){return encodeURI(""+e).replace(WB,"|")}function s0(e){return fP(typeof e=="string"?e:JSON.stringify(e)).replace(Gv,"%2B").replace(KB,"+").replace(cP,"%23").replace(uP,"%26").replace(qB,"`").replace(zB,"^").replace(dP,"%2F")}function oy(e){return s0(e).replace(jB,"%3D")}function hP(e){return fP(e).replace(cP,"%23").replace(HB,"%3F").replace(GB,"%2F").replace(uP,"%26").replace(Gv,"%2B")}function ix(e){return hP(e).replace(dP,"%2F")}function pP(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function YB(e){return pP(e.replace(Gv," "))}function XB(e){return pP(e.replace(Gv," "))}function QB(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=YB(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=XB(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function ZB(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${oy(e)}=${s0(n)}`).join("&"):`${oy(e)}=${s0(t)}`:oy(e)}function JB(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
23ZB(t,e[t])).filter(Boolean).join("&")}const e4=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,t4=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,n4=/^([/\\]\s*){2,}[^/\\]/,r4=/^\.?\//;function Jf(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?e4.test(e):t4.test(e)||(t.acceptRelative?n4.test(e):!1)}function s4(e="",t){return e.endsWith("/")}function o4(e="",t){return(s4(e)?e.slice(0,-1):e)||"/"}function i4(e="",t){return e.endsWith("/")?e:e+"/"}function a4(e=""){return e.startsWith("/")}function l4(e=""){return a4(e)?e:"/"+e}function c4(e,t){if(d4(t)||Jf(e))return e;const n=o4(t);return e.startsWith(n)?e:_g(n,e)}function u4(e,t){const n=vP(e),r={...QB(n.search),...t};return n.search=JB(r),h4(n)}function d4(e){return!e||e==="/"}function f4(e){return e&&e!=="/"}function _g(e,...t){let n=e||"";for(const r of t.filter(s=>f4(s)))if(n){const s=r.replace(r4,"");n=i4(n)+s}else n=r;return n}function mP(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Jf(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let o=r.join("/");return s>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}const gP=Symbol.for("ufo:protocolRelative");function vP(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Jf(e,{acceptRelative:!0}))return ax(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=ax(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:c,hash:u,[gP]:!r}}function ax(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function h4(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[gP]?(e.protocol||"")+"//":"")+s+o+t+n+r}class p4 extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function m4(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new p4(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[c]}});return a}const g4=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function lx(e="GET"){return g4.has(e.toUpperCase())}function v4(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 _4=new Set(["image/svg","application/xml","application/xhtml","application/html"]),y4=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function b4(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return y4.test(t)?"json":_4.has(t)||t.startsWith("text/")?"text":"blob"}function w4(e,t,n,r){const s=S4(t?.headers??e?.headers,n?.headers,r);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:s}}function S4(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function Lp(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const E4=new Set([408,409,425,429,500,502,503,504]),k4=new Set([101,204,205,304]);function _P(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(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=lx(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):E4.has(d))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),o(a.request,{...a.options,retry:u-1})}}const c=m4(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(l,c={}){const u={request:l,options:w4(l,c,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Lp(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=c4(u.request,u.options.baseURL)),u.options.query&&(u.request=u4(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&&lx(u.options.method)&&(v4(u.options.body)?(u.options.body=typeof u.options.body=="str
23ing"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let d;if(!u.options.signal&&u.options.timeout){const h=new r;d=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},u.options.timeout),u.options.signal=h.signal}try{u.response=await t(u.request,u.options)}catch(h){return u.error=h,u.options.onRequestError&&await Lp(u,u.options.onRequestError),await s(u)}finally{d&&clearTimeout(d)}if((u.response.body||u.response._bodyInit)&&!k4.has(u.response.status)&&u.options.method!=="HEAD"){const h=(u.options.parseResponse?"json":u.options.responseType)||b4(u.response.headers.get("content-type")||"");switch(h){case"json":{const p=await u.response.text(),m=u.options.parseResponse||Zf;u.response._data=m(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[h]()}}return u.options.onResponse&&await Lp(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Lp(u,u.options.onResponseError),await s(u)):u.response},i=async function(l,c){return(await o(l,c))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>_P({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const yg=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")})(),x4=yg.fetch?(...e)=>yg.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),T4=yg.Headers,C4=yg.AbortController,A4=_P({fetch:x4,Headers:T4,AbortController:C4}),R4=A4,I4=()=>window?.__NUXT__?.config||{},tS=()=>I4().app,O4=()=>tS().baseURL,P4=()=>tS().buildAssetsDir,L4=(...e)=>mP(yP(),P4(),...e),yP=(...e)=>{const t=tS(),n=t.cdnURL||t.baseURL;return e.length?mP(n,...e):n};globalThis.__buildAssetsURL=L4,globalThis.__publicAssetsURL=yP;globalThis.$fetch||(globalThis.$fetch=R4.create({baseURL:O4()}));"global"in globalThis||(globalThis.global=globalThis);function o0(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?o0(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const N4={run:e=>e()},D4=()=>N4,bP=typeof console.createTask<"u"?console.createTask:D4;function M4(e,t){const n=t.shift(),r=bP(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function $4(e,t){const n=t.shift(),r=bP(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function iy(e,t){for(const n of[...e])n(t)}class F4{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let i=o.message;i||(i=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...o)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...o));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=o0(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=o0(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(M4,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith($4,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;
23this._before&&iy(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&iy(this._after,s)}):(this._after&&s&&iy(this._after,s),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function wP(){return new F4}function U4(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;i0.add(c);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{i0.delete(c)}}}}function B4(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=U4({...e,...r})),t[n]}}}const bg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},cx="__unctx__",V4=bg[cx]||(bg[cx]=B4()),j4=(e,t={})=>V4.get(e,t),ux="__unctx_async_handlers__",i0=bg[ux]||(bg[ux]=new Set);function or(e){const t=[];for(const s of i0){const o=s();o&&t.push(o)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const H4=!1,dx=!1,z4=!1,fx={id:"__nuxt-loader"},q4={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},W4=void 0,K4="#__nuxt",SP="nuxt-app",G4="vite:preloadError";function EP(e=SP){return j4(e,{asyncContext:!1})}const Y4="__nuxt_plugin";function X4(e){let t=0;const n={_id:e.id||SP||"nuxt-app",_scope:Ji(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.19.3"},get vue(){return n.vueApp.version}},payload:cs({...e.ssrContext?.payload||{},data:cs({}),state:jn({}),once:new Set,_errors:cs({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!ea()?n._scope.run(()=>hx(n,s)):hx(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:cs({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const o in s)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],s[o]);break;default:n.payload[o]=s[o]}}n.hooks=wP(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;Np(n,i,o),Np(n.vueApp.config.globalProperties,i,o)},Np(n.vueApp,"$nuxt",n),Np(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(G4,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=De;const s=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function Q4(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Z4(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function J4(e,t){const n=new Set,r=[],s=[];let o,i=0;async function a(l){const c=l.dependsOn?.filter(u=>t.some(d=>d._name===u)&&!n.has(u))??[];if(c.length>0)r.push([new Set(c),l]);else{const u=Z4(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([d,f])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(f)))})))}).catch(d=>{if(!l.parallel&&!e.payload.error)throw d;o||=d});l.parallel?s.push(u):await u}}for(const l of t)Q4(e,l);for(const l of t)await a(l);if(await Promise.all(s),i)for(let l=0;l<i;l++)await Promise.all(s);if(o)throw e.payload.error||o}function nt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Y4]:!0,_name:t})}const eV=nt;
23function hx(e,t,n){const r=()=>t();return EP(e._id).set(e),e.vueApp.runWithContext(r)}function kP(e){let t;return Ya()&&(t=At()?.appContext.app.$nuxt),t||=EP(e).tryUse(),t||null}function De(e){const t=kP(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Or(e){return De().$config}function Np(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ay(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 a0(e,t,n=".",r){if(!ay(t))return a0(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:ay(i)&&ay(s[o])?s[o]=a0(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function xP(e){return(...t)=>t.reduce((n,r)=>a0(n,r,"",e),{})}const cc=xP(),tV=xP((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function nV(e,t){try{return t in e}catch{return!1}}class px extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:l0(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=TP(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function rV(e){if(typeof e=="string")return new px(e);if(sV(e))return e;const t=new px(e.message??e.statusMessage??"",{cause:e.cause||e});if(nV(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=l0(e.statusCode,t.statusCode):e.status&&(t.statusCode=l0(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;TP(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function sV(e){return e?.constructor?.__h3_error__===!0}const oV=/[^\u0009\u0020-\u007E]/g;function TP(e=""){return e.replace(oV,"")}function l0(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const iV=/#/g,aV=/&/g,lV=/\//g,cV=/=/g,nS=/\+/g,uV=/%5e/gi,dV=/%60/gi,fV=/%7c/gi,hV=/%20/gi;function pV(e){return encodeURI(""+e).replace(fV,"|")}function c0(e){return pV(typeof e=="string"?e:JSON.stringify(e)).replace(nS,"%2B").replace(hV,"+").replace(iV,"%23").replace(aV,"%26").replace(dV,"`").replace(uV,"^").replace(lV,"%2F")}function ly(e){return c0(e).replace(cV,"%3D")}function wg(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function mV(e){return wg(e.replace(nS," "))}function gV(e){return wg(e.replace(nS," "))}function rS(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=mV(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=gV(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function vV(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ly(e)}=${c0(n)}`).join("&"):`${ly(e)}=${c0(t)}`:ly(e)}function _V(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>vV(t,e[t])).filter(Boolean).join("&")}const yV=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,bV=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,wV=/^([/\\]\s*){2,}[^/\\]/,SV=/^[\s\0]*(blob|data|javascript|vbscript):$/i,EV=/\/$|\/\?|\/#/,kV=/^\.?\//;function od(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?yV.test(e):bV.test(e)||(t.acceptRelative?wV.test(e):!1)}function xV(e){return!!e&&SV.test(e)}function u0(e="",t){return t?EV.test(e):e.endsWith("/")}function Sg(e="",t){if(!t)return(u0(e)?e.slice(0,-1):e)||"/";if(!u0(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function CP(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(u0(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function mx(e,t){if(CV(t))return e;const n=Sg(t);if(!e.startsWith(n))return e;const r=e[n.length];if(r&&r!=="/"&&r!=="?")return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function TV(e,t){const n=oS(e),r={...rS(n.search),...t};return n.search=_V(r),IV(n)}function CV(e){return!e||e==="/"}function AV(e){return e&&e!=="/"}function sS(e,...t){let n=e||"";for(const r of t.filter(s=>AV(s)))if(n){const s=r.replace(kV,"");n=CP(n)+s}else n=r;return n}function RV(e,t){return wg(Sg(e))===wg(Sg(t))}const AP=Symbol.for("ufo:protocolRelative");function oS(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!od(e,{acceptRelative:!0}))return t?oS(t+e):gx(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=gx(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:c,hash:u,[AP]:!r}}function gx(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function IV(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?""
23:"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[AP]?(e.protocol||"")+"//":"")+s+o+t+n+r}const RP=Symbol("layout-meta"),zl=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Hn=()=>De()?.$router,Pr=()=>Ya()?vt(zl,De()._route):De()._route;function $0e(e){return e}const OV=()=>{try{if(De()._processingMiddleware)return!0}catch{return!1}return!1},xr=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?d0(e):Hn().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=[];for(const[d,f]of Object.entries(c))f!==void 0&&u.push(`${d.toLowerCase()}=${f}`);return open(n,l,u.join(", ")),Promise.resolve()}const r=od(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!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(n,window.location.href);if(l&&xV(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=OV();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=oS(e);return{path:l,...c&&{query:rS(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Hn(),a=De();return s?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?i.replace(e):i.push(e)};function d0(e){return TV(e.path||"",e.query||{})+(e.hash||"")}const IP="__nuxt_error",Yv=()=>us(De().payload,"error"),_l=e=>{const t=Mi(e);try{const n=Yv();De().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},PV=async(e={})=>{const t=De(),n=Yv();t.callHook("app:error:cleared",e),e.redirect&&await Hn().replace(e.redirect),n.value=W4},OP=e=>!!e&&typeof e=="object"&&IP in e,Mi=e=>{const t=rV(e);return Object.defineProperty(t,IP,{value:!0,configurable:!1,writable:!1}),t};/*! 24 * pinia v3.0.3 25 * (c) 2025 Eduardo San Martin Morote 26 * @license MIT 27 */let PP;const rp=e=>PP=e,LP=Symbol();function f0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var bf;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bf||(bf={}));function LV(){const e=Ji(!0),t=e.run(()=>G({}));let n=[],r=[];const s=nd({install(o){rp(s),s._a=o,o.provide(LP,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const NP=()=>{};function vx(e,t,n,r=NP){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&ea()&&gs(s),s}function Ec(e,...t){e.slice().forEach(n=>{n(...t)})}const NV=e=>e(),_x=Symbol(),cy=Symbol();function h0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];f0(s)&&f0(r)&&e.hasOwnProperty(n)&&!et(r)&&!ko(r)?e[n]=h0(s,r):e[n]=r}return e}const DV=Symbol();function MV(e){return!f0(e)||!Object.prototype.hasOwnProperty.call(e,DV)}const{assign:ua}=Object;function $V(e){return!!(et(e)&&e.effect)}function FV(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=Gr(n.state.value[e]);return ua(u,o,Object.keys(i||{}).reduce((d,f)=>(d[f]=nd(A(()=>{rp(n);const h=n._s.get(e);return i[f].call(h,h)})),d),{}))}return l=DP(e,c,t,n,r,!0),l}function DP(e,t,n={},r,s,o){let i;const a=ua({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],h;const p=r.state.value[e];!o&&!p&&(r.state.value[e]={}),G({});let m;function g(x){let T;c=u=!1,typeof x=="function"?(x(r.state.value[e]),T={type:bf.patchFunction,storeId:e,events:h}):(h0(r.state.value[e],x),T={type:bf.patchObject,payload:x,storeId:e,events:h});const O=m=Symbol();Lt().then(()=>{m===O&&(c=!0)}),u=!0,Ec(d,T,r.state.value[e])}const v=o?function(){const{state:T}=n,O=T?T():{};this.$patch(z=>{ua(z,O)})}:NP;function b(){i.stop(),d=[],f=[],r._s.delete(e)}const _=(x,T="")=>{if(_x in x)return x[cy]=T,x;const O=function(){rp(r);const z=Array.from(arguments),P=[],q=[];function X(Q){P.push(Q)}function J(Q){q.push(Q)}Ec(f,{args:z,name:O[cy],store:w,after:X,onError:J});let F;try{F=x.apply(this&&this.$id===e?this:w,z)}catch(Q){throw Ec(q,Q),Q}return F instanceof Promise?F.then(Q=>(Ec(P,Q),Q)).catch(Q=>(Ec(q,Q),Promise.reject(Q))):(Ec(P,F),F)};return O[_x]=!0,O[cy]=T,O}
27,y={_p:r,$id:e,$onAction:vx.bind(null,f),$patch:g,$reset:v,$subscribe(x,T={}){const O=vx(d,x,T.detached,()=>z()),z=i.run(()=>be(()=>r.state.value[e],P=>{(T.flush==="sync"?u:c)&&x({storeId:e,type:bf.direct,events:h},P)},ua({},l,T)));return O},$dispose:b},w=jn(y);r._s.set(e,w);const E=(r._a&&r._a.runWithContext||NV)(()=>r._e.run(()=>(i=Ji()).run(()=>t({action:_}))));for(const x in E){const T=E[x];if(et(T)&&!$V(T)||ko(T))o||(p&&MV(T)&&(et(T)?T.value=p[x]:h0(T,p[x])),r.state.value[e][x]=T);else if(typeof T=="function"){const O=_(T,x);E[x]=O,a.actions[x]=T}}return ua(w,E),ua(pt(w),E),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:x=>{g(T=>{ua(T,x)})}}),r._p.forEach(x=>{ua(w,i.run(()=>x({store:w,app:r._a,pinia:r,options:a})))}),p&&o&&n.hydrate&&n.hydrate(w.$state,p),c=!0,u=!0,w}/*! #__NO_SIDE_EFFECTS__ */function Xv(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function o(i,a){const l=Ya();return i=i||(l?vt(LP,null):null),i&&rp(i),i=PP,i._s.has(e)||(s?DP(e,t,r,i):FV(e,r,i)),i._s.get(e)}return o.$id=e,o}function MP(e){const t=pt(e),n={};for(const r in t){const s=t[r];s.effect?n[r]=A({get:()=>e[r],set(o){e[r]=o}}):(et(s)||ko(s))&&(n[r]=us(e,r))}return n}function UV(e){const t=VV(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const BV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function VV(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=BV.indexOf(e[s]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const jV=-1,HV=-2,zV=-3,qV=-4,WV=-5,KV=-6;function GV(e,t){return YV(JSON.parse(e),t)}function YV(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(o,i=!1){if(o===jV)return;if(o===zV)return NaN;if(o===qV)return 1/0;if(o===WV)return-1/0;if(o===KV)return-0;if(i||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t?.[l];if(c)return r[o]=c(s(a[1]));switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const u=new Set;r[o]=u;for(let h=1;h<a.length;h+=1)u.add(s(a[h]));break;case"Map":const d=new Map;r[o]=d;for(let h=1;h<a.length;h+=2)d.set(s(a[h]),s(a[h+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const f=Object.create(null);r[o]=f;for(let h=1;h<a.length;h+=2)f[a[h]]=s(a[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[l],p=new h(s(a[1]));r[o]=a[2]!==void 0?p.subarray(a[2],a[3]):p;break}case"ArrayBuffer":{const h=a[1],p=UV(h);r[o]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=l.slice(9);r[o]=Temporal[h].from(a[1]);break}case"URL":{const h=new URL(a[1]);r[o]=h;break}case"URLSearchParams":{const h=new URLSearchParams(a[1]);r[o]=h;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let c=0;c<a.length;c+=1){const u=a[c];u!==HV&&(l[c]=s(u))}}else{const l={};r[o]=l;for(const c in a){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const u=a[c];l[c]=s(u)}}return r[o]}return s(0)}const XV=new Set(["link","style","script","noscript"]),QV=new Set(["title","titleTemplate","script","style","noscript"]),yx=new Set(["base","meta","link","style","script","noscript"]),ZV=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),JV=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),ej=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),tj=new Set(["onload","onerror"]),nj=new Set(["templateParams","htmlAttrs","bodyAttrs"]),rj=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),sj=["name","property","http-equiv"],oj=new Set(["viewport","description","keywords","robots"]);function $P(e){const t=e.split(":");return t.length?rj.has(t[1]):!1}function p0(e){const{props:t,tag:n}=e;if(JV.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of sj)if(t[r]!==void 0){const s=t[r],o=s.includes(":"),i=oj.has(s),l=!(o||i)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(QV.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function bx(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function Eg(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let s;if(t&&(s=t(n,e)),Array.isArray(s))return s.map(o=>Eg(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=Eg(s[i],t,i);return o}return s}function ij(e,t){const n=e==="style"?new Map:new Set;function r(s){const o=s.trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}
27else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(s.trim(),o):r(s))}),n}function FP(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=ij(n,r);return}if(ej.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-");s==="true"||s===""?e.props[n]=o?s:!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function aj(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=FP({tag:e,props:{}},n);return r.key&&XV.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function lj(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let i=0;i<t.length;i++)o=t[i](s,o);return o};e=n(void 0,e);const r=[];return e=Eg(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(aj(s,i))}),r.flat()}const wx=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Sx={base:-10,title:10},cj={critical:-8,high:-1,low:2},Ex={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}},uj=/@import/,Dd=e=>e===""||e===!0;function dj(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=cj[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Ex;if(t.tag in Sx)n=Sx[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=Ex.meta[o])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?Dd(t.props.async)?n=s.script.async:t.props.src&&!Dd(t.props.defer)&&!Dd(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=s.script.sync:Dd(t.props.defer)&&t.props.src&&!Dd(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&uj.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function kx(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function fj(e={}){const t=wP();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=new Set,i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>kx(i,a),push(a,l){const c={...l||{}};delete c.head;const u=c._index??i._entryCount++,d={_i:u,input:a,options:c},f={_poll(h=!1){i.dirty=!0,!h&&o.add(u),t.callHook("entries:updated",i)},dispose(){r.delete(u)&&i.invalidate()},patch(h){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(d.input=h,r.set(u,d),f._poll())}};return f.patch(a),f},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const f=o.values().next().value;o.delete(f);const h=r.get(f);if(h){const p={tags:lj(h.input,e.propResolvers||[]).map(m=>Object.assign(m,h.options)),entry:h};await t.callHook("entries:normalize",p),h._tags=p.tags.map((m,g)=>(m._w=dj(i,m),m._p=(h._i<<10)+g,m._d=p0(m),m))}}let l=!1;a.entries.flatMap(f=>(f._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(wx).reduce((f,h)=>{const p=String(h._d||h._p);if(!f.has(p))return f.set(p,h);const m=f.get(p);if((h?.tagDuplicateStrategy||(nj.has(h.tag)?"merge":null)||(h.key&&h.key===m.key?"merge":null))==="merge"){const v={...m.props};
27Object.entries(h.props).forEach(([b,_])=>v[b]=b==="style"?new Map([...m.props.style||new Map,..._]):b==="class"?new Set([...m.props.class||new Set,..._]):_),f.set(p,{...h,props:v})}else h._p>>10===m._p>>10&&h.tag==="meta"&&$P(p)?(f.set(p,Object.assign([...Array.isArray(m)?m:[m],h],h)),l=!0):(h._w===m._w?h._p>m._p:h?._w<m?._w)&&f.set(p,h);return f},a.tagMap);const c=a.tagMap.get("title"),u=a.tagMap.get("titleTemplate");if(i._title=c?.textContent,u){const f=u?.textContent;if(i._titleTemplate=f,f){let h=typeof f=="function"?f(c?.textContent):f;typeof h=="string"&&!i.plugins.has("template-params")&&(h=h.replace("%s",c?.textContent||"")),c?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:h}):(u.tag="title",u.textContent=h)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(wx)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const d=[];for(const f of a.tags){const{innerHTML:h,tag:p,props:m}=f;if(ZV.has(p)&&!(Object.keys(m).length===0&&!f.innerHTML&&!f.textContent)&&!(p==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(p==="script"&&h){if(m.type?.endsWith("json")){const g=typeof h=="string"?h:JSON.stringify(h);f.innerHTML=g.replace(/</g,"\\u003C")}else typeof h=="string"&&(f.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));f._d=p0(f)}d.push(f)}}return d},invalidate(){for(const a of r.values())o.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>kx(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}function hj(e={}){const t=[];let n=-1;const r=(s=!1)=>({get(o,i,a){if(!s){const l=Reflect.get(o,i,a);if(typeof l<"u")return l;n++,t[n]=[]}return t[n].push({type:"get",key:i}),new Proxy(()=>{},r(!0))},apply(o,i,a){t[n].push({type:"apply",key:"",args:a})}});return{proxy:new Proxy(e||{},r()),stack:t}}function pj(e){const t={get(n,r,s){const o=Reflect.get(n,r,s);return typeof o=="object"?new Proxy(o,t):o},apply(n,r,s){Reflect.apply(n,r,s)}};return new Proxy(e,t)}function mj(e,t){t.forEach(n=>{let r=e,s=e;n.forEach(({type:o,key:i,args:a})=>{o==="get"?(s=r,r=r[i]):o==="apply"&&(r=r.call(s,...a))})})}function gj(e){return e.key||e.src||(typeof e.innerHTML=="string"?e.innerHTML:"")}const vj=["preconnect","dns-prefetch"];function _j(e,t,n){const r=typeof t=="string"?{src:t}:t,s=n||{},o=gj(r),i=e._scripts?.[o];if(i)return i.setupTriggerHandler(s.trigger),i;s.beforeInit?.();const a=p=>{f.status=p,e.hooks.callHook("script:updated",h)};tj.forEach(p=>{const m=p,g=typeof r[m]=="function"?r[m].bind(s.eventContext):null;r[m]=v=>{a(p==="onload"?"loaded":p==="onerror"?"error":"loading"),g?.(v)}});const l={loaded:[],error:[]},c=new Set,u=(p,m,g)=>{if(!e.ssr){if(g?.key){const v=`${g?.key}:${g.key}`;if(c.has(v))return;c.add(v)}if(l[p]){const v=l[p].push(m);return()=>l[p]?.splice(v-1,1)}return m(f.instance),()=>{}}},d=new Promise(p=>{if(e.ssr)return;const m=v=>requestAnimationFrame(()=>p(v)),g=e.hooks.hook("script:updated",({script:v})=>{const b=v.status;if(v.id===o&&(b==="loaded"||b==="error")){if(b==="loaded")if(typeof s.use=="function"){const _=s.use();_&&m(_)}else m({});else b==="error"&&p(!1);g()}})}),f={_loadPromise:d,instance:!e.ssr&&s?.use?.()||null,proxy:null,id:o,status:"awaitingLoad",remove(){return f._triggerAbortController?.abort(),f._triggerPromises=[],f._warmupEl?.dispose(),f.entry?(f.entry.dispose(),f.entry=void 0,a("removed"),delete e._scripts?.[o],!0):!1},warmup(p){const{src:m}=r,g=!m.startsWith("/")||m.startsWith("//"),v=p&&vj.includes(p);let b=m;if(!p||v&&!g)return;if(v){const y=new URL(m);b=`${y.protocol}//${y.host}`}const _={href:b,rel:p,crossorigin:typeof r.crossorigin<"u"?r.crossorigin:g?"anonymous":void 0,referrerpolicy:typeof r.referrerpolicy<"u"?r.referrerpolicy:g?"no-referrer":void 0,fetchpriority:typeof r.fetchpriority<"u"?r.fetchpriority:"low",integrity:r.integrity,as:p==="preload"?"script":void 0};return f._warmupEl=e.push({link:[_]},{head:e,tagPriority:"high"}),f._warmupEl},load(p){if(f._triggerAbortController?.abort(),f._triggerPromises=[],!f.entry){a("loading");const m={defer:!0,fetchpriority:"low"};r.src&&(r.src.startsWith("http")||r.src.startsWith("//"))&&(m.crossorigin="anonymous",m.referrerpolicy="no-referrer"),f.entry=e.push({script:[{...m,...r}]},s)}return p&&u("loaded",p),d},onLoaded(p,m){return u("loaded",p,m)},onError(p,m){return u("error",p,m)},setupTriggerHandler(p){if(f.status==="awaitingLoad")if((typeof p>"u"||p==="client")&&!e.ssr||p==="server")f.load();else if(p instanceof Promise){if(e.ssr)return;f._triggerAbortController||(f._triggerAbortController=new AbortController,f._triggerAbortPromise=new Promise(g=>{f._triggerAbortController.signal.addEventListener("abort",()=>{f._triggerAbortController=null,g()})})),f._triggerPromises=f._triggerPromises||[];
27const m=f._triggerPromises.push(Promise.race([p.then(g=>typeof g>"u"||g?f.load:void 0),f._triggerAbortPromise]).catch(()=>{}).then(g=>{g?.()}).finally(()=>{f._triggerPromises?.splice(m,1)}))}else typeof p=="function"&&p(f.load)},_cbs:l};d.then(p=>{p!==!1?(f.instance=p,l.loaded?.forEach(m=>m(p)),l.loaded=null):(l.error?.forEach(m=>m()),l.error=null)});const h={script:f};if(f.setupTriggerHandler(s.trigger),s.use){const{proxy:p,stack:m}=hj(e.ssr?{}:s.use()||{});f.proxy=p,f.onLoaded(g=>{mj(g,m),f.proxy=pj(g)})}return!s.warmupStrategy&&(typeof s.trigger>"u"||s.trigger==="client")&&(s.warmupStrategy="preload"),s.warmupStrategy&&f.warmup(s.warmupStrategy),e._scripts=Object.assign(e._scripts||{},{[o]:f}),f}const yj=(e,t)=>et(t)?Je(t):t,iS="usehead";function bj(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(iS,e)}}.install}function UP(){if(Ya()){const e=vt(iS);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 wj(e,t={}){const n=t.head||UP();return n.ssr?n.push(e||{},t):Sj(n,e,t)}function Sj(e,t,n={}){const r=G(!1);let s;return Yr(()=>{const i=r.value?{}:Eg(t,yj);s?s.patch(i):s=e.push(i,n)}),At()&&(Oo(()=>{s.dispose()}),Vv(()=>{r.value=!0}),Bv(()=>{r.value=!1})),s}function Ej(e,t){if(!t)return;const n=(r,s)=>{if(!e._cbs[r])return s(e.instance),()=>{};let o=e._cbs[r].push(s);const i=()=>{o&&(e._cbs[r]?.splice(o-1,1),o=null)};return gs(i),i};e.onLoaded=r=>n("loaded",r),e.onError=r=>n("error",r),gs(()=>{e._triggerAbortController?.abort()})}function kj(e,t){const n=typeof e=="string"?{src:e}:e,r=t||{},s=r?.head||UP();r.head=s;const o=At();if(r.eventContext=o,o&&typeof r.trigger>"u")r.trigger=Ut;else if(et(r.trigger)){const a=r.trigger;let l;r.trigger=new Promise(c=>{l=be(a,u=>{u&&c(!0)},{immediate:!0}),gs(()=>c(!1),!0)}).then(c=>(l?.(),c))}s._scriptStatusWatcher=s._scriptStatusWatcher||s.hooks.hook("script:updated",({script:a})=>{a._statusRef.value=a.status});const i=_j(s,n,r);return i._statusRef=i._statusRef||G(i.status),Ej(i,o),new Proxy(i,{get(a,l,c){return Reflect.get(a,l==="status"?"_statusRef":l,c)}})}function BP(e){const t=e||De();return t.ssrContext?.head||t.runWithContext(()=>{if(Ya()){const n=vt(iS);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function Qv(e,t={}){const n=t.head||BP(t.nuxt);return wj(e,{head:n,...t})}const xj="modulepreload",Tj=function(e,t){return new URL(e,t).href},xx={},ce=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=c(n.map(u=>{if(u=Tj(u,r),u in xx)return;xx[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(r)for(let p=i.length-1;p>=0;p--){const m=i[p];if(m.href===u&&(!d||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":xj,d||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};function uy(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 m0(e,t,n=".",r){if(!uy(t))return m0(e,{},n,r);const s={...t};for(const o of Object.keys(e)){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:uy(i)&&uy(s[o])?s[o]=m0(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function VP(e){return(...t)=>t.reduce((n,r)=>m0(n,r,"",e),{})}const jP=VP();async function Tx(e,t={}){if(!await zP(e))return null;const r=await Aj(e,t);return await HP(r)||null}const Cj="_payload.json";async function Aj(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||od(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);
27const r=Or(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await zP(e)?o:r.app.baseURL;return sS(i,n.pathname,Cj+(s?`?${s}`:""))}async function HP(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(qP));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function zP(e=Pr().path){return!!De().payload.prerenderedAt}let dl=null;async function Rj(){if(dl)return dl;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await qP(e.textContent||""),n=e.dataset.src?await HP(e.dataset.src):void 0;return dl={...t,...n,...window.__NUXT__},dl.config?.public&&(dl.config.public=jn(dl.config.public)),dl}async function qP(e){return await GV(e,De()._payloadRevivers)}function WP(e,t){De()._payloadRevivers[e]=t}const Ij=eV(()=>{WP("skipHydrate",e=>{})}),Oj=[["NuxtError",e=>Mi(e)],["EmptyShallowRef",e=>vn(e==="_"?void 0:e==="0n"?BigInt(0):Zf(e))],["EmptyRef",e=>G(e==="_"?void 0:e==="0n"?BigInt(0):Zf(e))],["ShallowRef",e=>vn(e)],["ShallowReactive",e=>cs(e)],["Ref",e=>G(e)],["Reactive",e=>jn(e)]],Pj=nt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of Oj)WP(r,s);Object.assign(e.payload,([t,n]=or(()=>e.runWithContext(Rj)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function aS(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const o=new Map,i=new Promise(h=>{e.resolveTags().then(p=>{h(p.map(m=>{const g=o.get(m._d)||0,v={tag:m,id:(g?`${m._d}:${g}`:m._d)||bx(m),shouldRender:!0};return m._d&&$P(m._d)&&o.set(m._d,g+1),v}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const m of p){const g=m.tagName.toLowerCase();if(!yx.has(g))continue;const v=FP({tag:g,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((b,_)=>(b[_]=m.getAttribute(_),b),{})||{}});if(v.key=m.getAttribute("data-hid")||void 0,v._d=p0(v)||bx(v),a.elMap.has(v._d)){let b=1,_=v._d;for(;a.elMap.has(_);)_=`${v._d}:${b++}`;a.elMap.set(_,m)}else a.elMap.set(v._d,m)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,m){const g=`${h}:${p}`;a.sideEffects[g]=m,delete a.pendingSideEffects[g]}function c({id:h,$el:p,tag:m}){const g=m.tag.endsWith("Attrs");a.elMap.set(h,p),g||(m.textContent&&m.textContent!==p.textContent&&(p.textContent=m.textContent),m.innerHTML&&m.innerHTML!==p.innerHTML&&(p.innerHTML=m.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const v in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,v))continue;const b=m.props[v];if(v.startsWith("on")&&typeof b=="function"){const y=p?.dataset;if(y&&y[`${v}fired`]){const w=v.slice(0,-5);b.call(p,new Event(w.substring(2)))}p.getAttribute(`data-${v}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:p).addEventListener(v.substring(2),b.bind(p)),p.setAttribute(`data-${v}`,""));continue}const _=`attr:${v}`;if(v==="class"){if(!b)continue;for(const y of b)g&&l(h,`${_}:${y}`,()=>p.classList.remove(y)),!p.classList.contains(y)&&p.classList.add(y)}else if(v==="style"){if(!b)continue;for(const[y,w]of b)l(h,`${_}:${y}`,()=>{p.style.removeProperty(y)}),p.style.setProperty(y,w)}else b!==!1&&b!==null&&(p.getAttribute(v)!==b&&p.setAttribute(v,b===!0?"":String(b)),g&&l(h,_,()=>p.removeAttribute(v)))}}const u=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await i;for(const h of f){const{tag:p,shouldRender:m,id:g}=h;if(m){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(g),h.$el?c(h):yx.has(p.tag)&&u.push(h)}}for(const h of u){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),c(h),d[p]=d[p]||n.createDocumentFragment(),d[p].appendChild(h.$el)}for(const h of f)await e.hooks.callHook("dom:renderTag",h,n,l);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:f}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Lj(e={}){const t=e.domOptions?.render||aS;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return fj({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Nj(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function Dj(e={}){const t=Lj({domOptions:{render:Nj(()=>aS(t),n=>setTimeout(n,0))},...e});return t.install=bj(t),t}const Mj={disableDefaults:!0},$j=nt({name:"nuxt:head",enforce:"pre",setup(e){const t=Dj(Mj);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await aS(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! 28* vue-router v5.3.1 29* (c) 2026 Eduardo San Martin Morote 30* @license MIT
31*/const lS=e=>e.startsWith("/");function KP(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Fj(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&KP(e.default)}const Dt=Object.assign;function dy(e,t){const n={};for(const r in t){const s=t[r];n[r]=lo(s)?s.map(e):e(s)}return n}const wf=()=>{},lo=Array.isArray;function Cx(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const GP=Symbol("");function Au(e,t){return Dt(new Error,{type:e,[GP]:!0},t)}function mi(e,t){return e instanceof Error&&GP in e&&(t==null||!!(e.type&t))}const YP=Symbol(""),Ax=Symbol(""),Zv=Symbol(""),cS=Symbol(""),g0=Symbol("");function F0e(){return vt(Zv)}function XP(e){return vt(cS)}/*! 32* vue-router v5.3.1 33* (c) 2026 Eduardo San Martin Morote 34* @license MIT 35*/const Nc=typeof document<"u",QP=/#/g,Uj=/&/g,Bj=/\//g,Vj=/=/g,jj=/\?/g,ZP=/\+/g,Hj=/%5B/g,zj=/%5D/g,JP=/%5E/g,qj=/%60/g,eL=/%7B/g,Wj=/%7C/g,tL=/%7D/g,Kj=/%20/g;function uS(e){return e==null?"":encodeURI(""+e).replace(Wj,"|").replace(Hj,"[").replace(zj,"]")}function Gj(e){return uS(e).replace(eL,"{").replace(tL,"}").replace(JP,"^")}function v0(e){return uS(e).replace(ZP,"%2B").replace(Kj,"+").replace(QP,"%23").replace(Uj,"%26").replace(qj,"`").replace(eL,"{").replace(tL,"}").replace(JP,"^")}function Yj(e){return v0(e).replace(Vj,"%3D")}function Xj(e){return uS(e).replace(QP,"%23").replace(jj,"%3F")}function Qj(e){return Xj(e).replace(Bj,"%2F")}function kg(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Zj=/\/$/,Jj=e=>e.replace(Zj,"");function fy(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),o=t.slice(l,a>0?a:t.length),s=e(o.slice(1))),a>=0&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=r8(r??t,n),{fullPath:r+o+i,path:r,query:s,hash:kg(i)}}function e8(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rx(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function t8(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ru(t.matched[r],n.matched[s])&&nL(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ru(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nL(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!n8(e[n],t[n]))return!1;return!0}function n8(e,t){return lo(e)?Ix(e,t):lo(t)?Ix(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Ix(e,t){return lo(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function r8(e,t){if(lS(e))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i<r.length;i++)if(a=r[i],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const ts={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function s8(e){if(!e)if(Nc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Jj(e)}const o8=/^[^#]+#/;function i8(e,t){return e.replace(o8,"#")+t}function a8(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const dS=()=>history.scrollRestoration==="manual"?{left:window.scrollX,top:window.scrollY}:null;function l8(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=a8(s,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 Ox(e,t){return(history.state?history.state.position-t:-1)+e}const _0=new Map;function c8(e){_0.set(e,dS())}function u8(e){const t=_0.get(e);return _0.delete(e),t}function d8(e){return typeof e=="string"||e&&typeof e=="object"}function rL(e){return typeof e=="string"||typeof e=="symbol"}function f8(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(ZP," "),o=s.indexOf("="),i=kg(o<0?s:s.slice(0,o)),a=o<0?null:kg(s.slice(o+1));if(i in t){let l=t[i];lo(l)||(l=t[i]=[l]),l.push(a)}else t[i]=a}return t}function Px(e){let t="";for(let n in e){const r=e[n];if(n=Yj(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(lo(r)?r.map(s=>
vendor: 1,778 bytes, lines 35-38
35s&&v0(s)):[r&&v0(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function h8(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=lo(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}function Md(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function p8(e,t,n){const r=e.value;if(!r)return;let s=r;const o=()=>{s[t].delete(n)};qn(o),Vv(o),Bv(()=>{const i=e.value;i&&(s=i),s[t].add(n)}),s[t].add(n)}function U0e(e){p8(vt(YP,{}),"leaveGuards",e)}function ga(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Au(4,{from:n,to:t})):f instanceof Error?l(f):d8(f)?l(Au(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),a())},u=o(()=>e.call(r&&r.instances[s],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function hy(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(KP(l)){const c=(l.__vccOpts||l)[t];c&&o.push(ga(c,n,r,i,a,s))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const d=Fj(u)?u.default:u;i.mods[a]=u,i.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&ga(f,n,r,i,a,s)()}))}}return o}function m8(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(c=>Ru(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Ru(c,l))||s.push(l))}return[n,r,s]}/*! 36* vue-router v5.3.1 37* (c) 2026 Eduardo San Martin Morote 38* @license MIT
39*/let g8=()=>location.protocol+"//"+location.host;function sL(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(i);return a[0]!=="/"&&(a="/"+a),Rx(a,"")}return Rx(n,e)+r+s}function v8(e,t,n,r){let s=[],o=[],i=null;const a=({state:f})=>{const h=sL(e,location),p=n.value,m=t.value;let g=0;if(f){if(n.value=h,t.value=f,i&&i===p){i=null;return}g=m?f.position-m.position:0}else r(h);s.forEach(v=>{v(n.value,p,{delta:g,type:"pop",direction:g?g>0?"forward":"back":""})})};function l(){i=n.value}function c(f){s.push(f);const h=()=>{const p=s.indexOf(f);p>-1&&s.splice(p,1)};return o.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Dt({},f.state,{scroll:dS()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),{pauseListeners:l,listen:c,destroy:d}}function Lx(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function _8(e){const{history:t,location:n}=window,r={value:sL(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:g8()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function i(l,c){o(l,Dt({},t.state,Lx(s.value.back,l,s.value.forward,!0),c,{position:s.value.position}),!0),r.value=l}function a(l,c){const u=Dt({},s.value,t.state,{forward:l,scroll:dS()});o(u.current,u,!0),o(l,Dt({},Lx(r.value,l,null),{position:u.position+1},c),!1),r.value=l}return{location:r,state:s,push:a,replace:i}}function y8(e){e=s8(e);const t=_8(e),n=v8(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=Dt({location:"",base:e,go:r,createHref:i8.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}const b8={type:0,value:""},w8=/[a-zA-Z0-9_]/;function S8(e){if(!e)return[[]];if(e==="/")return[[b8]];if(!lS(e))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<e.length;)switch(l=e[a++],n){case 0:l==="\\"?(r=n,n=4):l==="/"?(c&&d(),i()):l===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:w8.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state")}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),s}const Nx="[^/]+?",E8={sensitive:!1,strict:!1,start:!0,end:!0},k8=/[.+*?^${}()[\]/\\]/g;function x8(e,t){const n=Dt({},E8,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;d<c.length;d++){const f=c[d];let h=40+(n.sensitive?.25:0);if(f.type===0)d||(s+="/"),s+=f.value.replace(k8,"\\$&"),h+=40;else if(f.type===1){const{value:p,repeatable:m,optional:g,regexp:v}=f;o.push({name:p,repeatable:m,optional:g});const b=v||Nx;if(b!==Nx){h+=10;try{new RegExp(`(${b})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+y.message)}}let _=m?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;d||(_=g&&c.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),s+=_,h+=20,g&&(h+=-8),m&&(h+=-20),b===".*"&&(h+=-50)}u.push(h)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function a(c){const u=c.match(i),d={};if(!u)return null;for(let f=1;f<u.length;f++){const h=u[f]||"",p=o[f-1];d[p.name]=h&&p.repeatable?h.split("/"):h}return d}function l(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const h of f)if(h.type===0)u+=h.value;else if(h.type===1){const{value:p,repeatable:m,optional:g}=h,v=p in c?c[p]:"";if(lo(v)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=lo(v)?v.join("/"):v;if(!b)if(g)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${p}"`);u+=b}}return u||"/"}return{re:i,score:r,keys:o,parse:a,stringify:l}}function T8(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}
vendor: 6,251 bytes, line 39
39return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function oL(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=T8(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(Dx(r))return 1;if(Dx(s))return-1}return s.length-r.length}function Dx(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const C8={strict:!1,end:!0,sensitive:!1};function A8(e,t,n){const r=x8(S8(e.path),n),s=Dt(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function R8(e,t){const n=[],r=new Map;t=Cx(C8,t);function s(d){return r.get(d)}function o(d,f,h){const p=!h,m=$x(d);m.aliasOf=h&&h.record;const g=Cx(t,d),v=[m];if("alias"in d){const y=typeof d.alias=="string"?[d.alias]:d.alias;for(const w of y)v.push($x(Dt({},m,{components:h?h.record.components:m.components,path:w,aliasOf:h?h.record:m})))}let b,_;for(const y of v){const{path:w}=y;if(f&&!lS(w)){const S=f.record.path,E=S[S.length-1]==="/"?"":"/";y.path=f.record.path+(w&&E+w)}if(b=A8(y,f,g),h?h.alias.push(b):(_=_||b,_!==b&&_.alias.push(b),p&&d.name&&!Fx(b)&&i(d.name)),iL(b)&&l(b),m.children){const S=m.children;for(let E=0;E<S.length;E++)o(S[E],b,h&&h.children[E])}h=h||b}return _?()=>{i(_)}:wf}function i(d){if(rL(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function l(d){const f=P8(d,n);n.splice(f,0,d),d.record.name&&!Fx(d)&&r.set(d.record.name,d)}function c(d,f){let h,p={},m,g;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Au(1,{location:d});g=h.record.name,p=Dt(Mx(f.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),d.params&&Mx(d.params,h.keys.map(_=>_.name))),m=h.stringify(p)}else if(d.path!=null)m=d.path,h=n.find(_=>_.re.test(m)),h&&(p=h.parse(m),g=h.record.name,h.keys.forEach(_=>{_.optional&&!p[_.name]&&delete p[_.name]}));else{if(h=f.name?r.get(f.name):n.find(_=>_.re.test(f.path)),!h)throw Au(1,{location:d,currentLocation:f});g=h.record.name,p=Dt({},f.params,d.params),m=h.stringify(p)}const v=[];let b=h;for(;b;)v.unshift(b.record),b=b.parent;return{name:g,path:m,params:p,matched:v,meta:O8(v)}}e.forEach(d=>o(d));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function Mx(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function $x(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:I8(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 I8(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Fx(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function O8(e){return e.reduce((t,n)=>Dt(t,n.meta),{})}function P8(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;oL(e,t[o])<0?r=o:n=o+1}const s=L8(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function L8(e){let t=e;for(;t=t.parent;)if(iL(t)&&oL(e,t)===0)return t}function iL({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ux(e){const t=vt(Zv),n=vt(cS),r=A(()=>{const l=C(e.to);return t.resolve(l)}),s=A(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Ru.bind(null,u));if(f>-1)return f;const h=Bx(l[c-2]);return c>1&&Bx(u)===h&&d[d.length-1].path!==h?d.findIndex(Ru.bind(null,l[c-2])):f}),o=A(()=>s.value>-1&&$8(n.params,r.value.params)),i=A(()=>s.value>-1&&s.value===n.matched.length-1&&nL(n.params,r.value.params));function a(l={}){if(M8(l)){const c=t[C(e.replace)?"replace":"push"](C(e.to)).catch(wf);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:A(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}function N8(e){return e.length===1?e[0]:e}const D8=oe({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"},viewTransition:Boolean},useLink:Ux,setup(e,{slots:t}){const n=jn(Ux(e)),{options:r}=vt(Zv),s=A(()=>({[Vx(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Vx(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&N8(t.default(n));return e.custom?o:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}});function M8(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 $8(e,t){for(const n in t){const r=t[n],s=e[n];if(lo(r)){if(!lo(s)||s.length!==r.length||r.some((o,i)=>o.valueOf()!==s[i].valueOf()))return!1}else if(r!==s)return!1}return!0}function Bx(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vx=(e,t,n)=>e??t??n,F8=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=vt(g0),s=A(()=>e.route||r.value),o=vt(Ax,0),i=A(()=>{let c=C(o);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=A(()=>s.value.matched[i.value]);Zn(Ax,A(()=>i.value+1)),Zn(YP,a),Zn(g0,s);const l=G();return be(()=>[l.value,a.value,e.name],([c,u,d],[f,h,p])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Ru(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEac
39h(m=>m(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return jx(n.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,g=qe(f,Dt({},p,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return jx(n.default,{Component:g,route:c})||g}}});function jx(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const aL=F8;function U8(e){const t=R8(e.routes,e),n=e.parseQuery||f8,r=e.stringifyQuery||Px,s=e.history,o=Md(),i=Md(),a=Md(),l=vn(ts),c=vn(0);let u=ts;Nc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=dy.bind(null,K=>""+K),f=dy.bind(null,Qj),h=dy.bind(null,kg);function p(K,ie){let ae,ge;rL(K)?(ae=t.getRecordMatcher(K),ge=ie):ge=K;const I=t.addRoute(ge,ae);return c.value++,()=>{I(),c.value++}}function m(K){const ie=t.getRecordMatcher(K);ie&&(t.removeRoute(ie),c.value++)}function g(){t.clearRoutes(),c.value++}function v(){return t.getRoutes().map(K=>K.record)}function b(K){return!!t.getRecordMatcher(K)}function _(K,ie){if(c.value,typeof K=="string"){ie=ie||(K.startsWith("/")?ts:l.value);const Y=fy(n,K,ie.path),L=t.resolve({path:Y.path},ie),k=s.createHref(Y.fullPath);return Dt(Y,L,{params:h(L.params),redirectedFrom:void 0,href:k})}ie=Dt({},ie||(K.path!=null&&K.path.startsWith("/")&&!("name"in K&&K.name)?ts:l.value));let ae;if(K.path!=null)ae=Dt({},K,{path:fy(n,K.path,ie.path).path});else{const Y=Dt({},K.params);for(const L in Y)Y[L]==null&&delete Y[L];ae=Dt({},K,{params:f(Y)}),ie.params=f(ie.params)}const ge=t.resolve(ae,ie),I=K.hash||"";ge.params=d(h(ge.params));const D=e8(r,Dt({},K,{hash:Gj(I),path:ge.path})),B=s.createHref(D);return Dt({fullPath:D,hash:I,query:r===Px?h8(K.query):K.query||{}},ge,{redirectedFrom:void 0,href:B})}function y(K){return typeof K=="string"?fy(n,K,l.value.path):Dt({},K)}function w(K,ie){if(u!==K)return Au(8,{from:ie,to:K})}function S(K){return T(K)}function E(K){return S(Dt(y(K),{replace:!0}))}function x(K,ie){const ae=K.matched[K.matched.length-1];if(ae&&ae.redirect){const{redirect:ge}=ae;let I=typeof ge=="function"?ge(K,ie):ge;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=y(I):{path:I},I.params={}),Dt({query:K.query,hash:K.hash,params:I.path!=null?{}:K.params},I)}}function T(K,ie){const ae=u=_(K),ge=l.value,I=K.state,D=K.force,B=K.replace===!0,Y=x(ae,ge);if(Y)return T(Dt(y(Y),{state:typeof Y=="object"?Dt({},I,Y.state):I,force:D,replace:B}),ie||ae);const L=ae;L.redirectedFrom=ie;let k;return!D&&t8(r,ge,ae)&&(k=Au(16,{to:L,from:ge}),je(ge,ge,!0,!1)),(k?Promise.resolve(k):P(L,ge)).catch(R=>mi(R)?mi(R,2)?R:pe(R):N(R,L,ge)).then(R=>{if(R){if(mi(R,2))return T(Dt({replace:B},y(R.to),{state:typeof R.to=="object"?Dt({},I,R.to.state):I,force:D}),ie||L)}else R=X(L,ge,!0,B,I);return q(L,ge,R),R})}function O(K,ie){const ae=w(K,ie);return ae?Promise.reject(ae):Promise.resolve()}function z(K){const ie=Ie.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(K):K()}function P(K,ie){let ae;const[ge,I,D]=m8(K,ie);ae=hy(ge.reverse(),"beforeRouteLeave",K,ie);for(const Y of ge)Y.leaveGuards.forEach(L=>{ae.push(ga(L,K,ie))});const B=O.bind(null,K,ie);return ae.push(B),fe(ae).then(()=>{ae=[];for(const Y of o.list())ae.push(ga(Y,K,ie));return ae.push(B),fe(ae)}).then(()=>{ae=hy(I,"beforeRouteUpdate",K,ie);for(const Y of I)Y.updateGuards.forEach(L=>{ae.push(ga(L,K,ie))});return ae.push(B),fe(ae)}).then(()=>{ae=[];for(const Y of D)if(Y.beforeEnter)if(lo(Y.beforeEnter))for(const L of Y.beforeEnter)ae.push(ga(L,K,ie));else ae.push(ga(Y.beforeEnter,K,ie));return ae.push(B),fe(ae)}).then(()=>(K.matched.forEach(Y=>Y.enterCallbacks={}),ae=hy(D,"beforeRouteEnter",K,ie,z),ae.push(B),fe(ae))).then(()=>{ae=[];for(const Y of i.list())ae.push(ga(Y,K,ie));return ae.push(B),fe(ae)}).catch(Y=>mi(Y,8)?Y:Promise.reject(Y))}function q(K,ie,ae){a.list().forEach(ge=>z(()=>ge(K,ie,ae)))}function X(K,ie,ae,ge,I){const D=w(K,ie);if(D)return D;const B=ie===ts,Y=Nc?history.state:{};ae&&(ge||B?s.replace(K.fullPath,Dt({scroll:B&&Y&&Y.scroll},I)):s.push(K.fullPath,I)),l.value=K,je(K,ie,ae,B),pe()}let J;function F(){J||(J=s.listen((K,ie,ae)=>{if(!Le.listening)return;const ge=_(K),I=x(ge,Le.currentRoute.value);if(I){T(Dt(I,{replace:!0,force:!0}),ge).catch(wf);return}u=ge;const D=l.value;Nc&&ae.delta&&c8(Ox(D.fullPath,ae.delta)),P(ge,D).catch(B=>mi(B,12)?B:mi(B,2)?(T(Dt(y(B.to),{force:!0}),ge).then(Y=>{mi(Y,20)&&!ae.delta&&ae.type==="pop"&&s.go(-1,!1)}).catch(wf),Promise.reject()):(ae.delta&&s.go(-ae.delta,!1),N(B,ge,D))).then(B=>{B=B||X(ge,D,!1),B&&(ae.delta&&!mi(B,8)?s.go(-ae.delta,!1):ae.type==="pop"&&mi(B,20)&&s.go(-1,!1)),q(ge,D,B)}).catch(wf)}))}let Q=Md(),W=Md(),ee;function N(K,ie,ae){pe(K);const ge=W.list();return ge.length?ge.forEach(I=>I(K,ie,ae)):console.error(K),Promise.reject(K)}function de(){return ee&&l.value!==ts?Promise.resolve():new Promise((K,ie)=>{Q.add([K,ie])})}
39function pe(K){return ee||(ee=!K,F(),Q.list().forEach(([ie,ae])=>K?ae(K):ie()),Q.reset()),K}function je(K,ie,ae,ge){const{scrollBehavior:I}=e;if(!Nc||!I)return Promise.resolve();const D=!ae&&u8(Ox(K.fullPath,0))||(ge||!ae)&&history.state&&history.state.scroll||null;return Lt().then(()=>I(K,ie,D)).then(B=>K===l.value&&B&&l8(B)).catch(B=>K===l.value&&N(B,K,ie))}const Re=K=>s.go(K);let Pe;const Ie=new Set,Le={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,clearRoutes:g,hasRoute:b,getRoutes:v,resolve:_,options:e,push:S,replace:E,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:W.add,isReady:de,install(K){K.component("RouterLink",D8),K.component("RouterView",aL),K.config.globalProperties.$router=Le,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>C(l)}),Nc&&!Pe&&l.value===ts&&(Pe=!0,S(s.location).catch(ge=>{}));const ie={};for(const ge in ts)Object.defineProperty(ie,ge,{get:()=>l.value[ge],enumerable:!0});K.provide(Zv,Le),K.provide(cS,cs(ie)),K.provide(g0,l);const ae=K.unmount;Ie.add(K),K.unmount=function(){Ie.delete(K),Ie.size<1&&(u=ts,J&&J(),J=null,l.value=ts,Pe=!1,ee=!1),ae()}}};function fe(K){return K.reduce((ie,ae)=>ie.then(()=>z(ae)),Promise.resolve())}return Le}const B8=/(:\w+)\([^)]+\)/g,V8=/(:\w+)[?+*]/g,j8=/:\w+/g,H8=(e,t)=>t.path.replace(B8,"$1").replace(V8,"$1").replace(j8,n=>e.params[n.slice(1)]?.toString()||""),y0=(e,t)=>{const n=e.route.matched.find(s=>s.components?.default===e.Component.type),r=t??n?.meta.key??(n&&H8(e.route,n));return typeof r=="function"?r(e.route):r},z8=(e,t)=>({default:()=>e?qe(ZI,e===!0?{}:e,t):t});function fS(e){return Array.isArray(e)?e:[e]}const q8={layout:"login",public:!0},W8={layout:"login",public:!0},K8={public:!0,allowsAuthenticated:!0},G8={layout:"login"},Y8={layout:"checkout"},X8={layout:"default"},Q8={layout:"checkout"},Z8={layout:"checkout"},J8={public:!0},eH={layout:"checkout"},tH={layout:"checkout"},nH={},rH={layout:"checkout"},sH={layout:"checkout"},oH={public:!0,allowsAuthenticated:!0},iH={public:!0},aH={layout:"checkout"},lH={layout:"checkout"},cH={layout:!1},uH={},dH={layout:"checkout"},fH={layout:"pre-checkout"},hH={layout:"checkout"},pH={layout:"checkout"},mH={layout:!1},gH={layout:"pre-checkout"},vH={layout:"checkout"},_H={layout:"checkout"},yH={layout:"checkout"},bH={layout:"pre-checkout"},wH={layout:"pre-checkout"},SH={layout:"pre-checkout"},EH={layout:"checkout"},kH={layout:"bank-button-demo"},xH={layout:"checkout"},TH={layout:"pre-checkout"},CH={layout:"checkout"},AH={layout:"checkout"},RH={layout:"checkout"},IH={layout:"checkout"},OH={layout:!1},PH={layout:"checkout"},LH={layout:"pre-checkout"},NH={layout:"checkout"},DH={layout:"checkout"},MH={layout:"checkout"},$H={layout:"checkout"},FH={layout:"pre-checkout"},UH={layout:"pre-checkout"},BH={layout:"checkout"},VH={layout:"checkout"},jH={layout:"checkout"},HH={layout:"checkout"},zH={layout:"pre-checkout"},qH={layout:"checkout"},WH={layout:"checkout"},KH={layout:"checkout"},GH={layout:"checkout"},YH={layout:"base"},XH={layout:"checkout"},QH={layout:"checkout"},ZH={layout:"base"},JH={layout:"checkout"},ez={layout:"checkout"},tz={layout:"pre-checkout"},nz={middleware:[e=>xr({path:`/checkout/operation-receipt/${String(e.params.operationId)}`,query:{checkoutSession:String(e.params.idCheckoutSession)}})]},py=[{name:"index",path:"/",meta:q8||{},alias:["/landing"],component:()=>ce(()=>import("./F9fI8ZTB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)},{name:"login",path:"/login",meta:W8||{},component:()=>ce(()=>import("./DwGPUiQ8.js"),__vite__mapDeps([14,3,4,5,15]),import.meta.url)},{name:"_layers",path:"/_layers",component:()=>ce(()=>import("./CszOV7n9.js"),__vite__mapDeps([16,17]),import.meta.url)},{name:"arco",path:"/arco",meta:K8||{},component:()=>ce(()=>import("./BJk3UH7m.js"),__vite__mapDeps([18,19,20,8,21,12,22]),import.meta.url)},{name:"sync",path:"/sync",meta:G8||{},component:()=>ce(()=>import("./0ekbVufX.js"),__vite__mapDeps([23,24,25]),import.meta.url)},{name:"checkout-pac",path:"/checkout/pac",meta:Y8||{},component:()=>ce(()=>import("./DGpkQt9g.js"),__vite__mapDeps([26,27,28,29,30,31,32,12,33,34,35,36,37,38,39,40,41,42,8,43,44,45,46,47,48,49,50,51,52,53,6,7,54,55,21,56,57,58,59,60,61]),import.meta.url)},{name:"wallet",path:"/wallet",meta:X8||{},component:()=>ce(()=>import("./DkE7mHT9.js"),__vite__mapDeps([62,29,30,63,64,65,66,67,68,12,69]),import.meta.url)},{name:"checkout",path:"/checkout",meta:{...Q8||{},middleware:["legacy-checkout","single-payment-option-redirect"]},component:()=>ce(()=>import("./Cvs3eKtF.js"),__vite__mapDeps([70,71,45,46,28,29,30,31,32,12,33,34,72,63,64,51,52,60,73,65,54,55,74,75,76,77,44,78,79,80,37,81,82,35,39,83,84,66,85,86,87,88]),import.meta.url)},{name:"checkout-boleto",path:"/checkout/boleto",meta:Z8||{},component:()=>ce(()=>import("./Dl4FbP5y.js"),__vite__mapDeps([89,28,29,30,31,32,12,33,34,90,60,91,92,93,94,54,55,38,39,95]),import.meta.url)},{name:"checkout-rejected",path:"/checkout/rejected",component:()=>ce(()=>import("./CpjQlH7t.js"),__vite__mapDeps([96,27,28,29,30,31,32,12,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"new-forms-adaptive",path:"/new-forms/adaptive",meta:J8||{},alias:["/forms/adaptive"],component:()=>ce(()=>import("./BbUSY_aA.js"),__vite__mapDeps([97,98]),import.meta.url)},{name:"on-demand-slug",path:"/on-demand/:slug?",component:()=>ce(()=>import("./CFkEtv8f.js"),__vite__mapDeps([99,100,101]),import.meta.url)},{name:"checkout-card",path:"/checkout/card",meta:{...eH||{},middleware:["card-combine-amount"]},component:()=>ce(()=>import("./D1RiH3-s.js"),__vite__mapDeps([102,45,46,29,30,63,64,65,66,74,75,12,28,31,32,33,34,76,77,44,78,79,80,37,81,82,35,54,55,39,83,84,60,8,85,21,103,104,105,38,106]
39),import.meta.url)},{name:"checkout-codi",path:"/checkout/codi",meta:tH||{},component:()=>ce(()=>import("./540uGBmU.js"),__vite__mapDeps([107,48,49,50,28,29,30,31,32,12,33,34,51,52,53,45,46,21,54,55,83,108,60,38,39,109]),import.meta.url)},{name:"onetime-product",path:"/onetime/:product?",meta:nH||{},alias:["/checkout/one_time"],component:()=>ce(()=>import("./CI6nqQou.js"),__vite__mapDeps([110,111,100,112]),import.meta.url)},{name:"checkout-pix-banking",path:"/checkout/pix-banking",meta:rH||{},component:()=>ce(()=>import("./xkDUnxn-.js"),__vite__mapDeps([113,60,91,92,28,29,30,31,32,12,33,34,93,94,90,54,55,38,39,114]),import.meta.url)},{name:"checkout-transfer-mx",path:"/checkout/transfer-mx",meta:sH||{},component:()=>ce(()=>import("./DSzqdAzK.js"),__vite__mapDeps([115,48,49,50,28,29,30,31,32,12,33,34,51,52,53,45,46,116,38,39,117]),import.meta.url)},{name:"new-forms-formName",path:"/new-forms/:formName()",meta:oH||{},alias:["/forms/:formName"],component:()=>ce(()=>import("./p60Ks28F.js"),__vite__mapDeps([118,4,7,119]),import.meta.url)},{name:"new-forms-street-map",path:"/new-forms/street-map",meta:iH||{},alias:["/forms/street-map"],component:()=>ce(()=>import("./BOtw6L57.js"),__vite__mapDeps([120,121]),import.meta.url)},{name:"checkout-amount",path:"/checkout/amount",meta:aH||{},component:()=>ce(()=>import("./DmJbwgWf.js"),__vite__mapDeps([122,123,124,21,60,28,29,30,31,32,12,33,34,90,86,87,78,76,125,126]),import.meta.url)},{name:"checkout-direct-debit",path:"/checkout/direct-debit",meta:lH||{},component:()=>ce(()=>import("./BPpAphs6.js"),__vite__mapDeps([127,27,28,29,30,31,32,12,33,34,35,36,37,38,39,40,41,43,42,8,44,45,46,47,48,49,50,51,52,53,6,7,54,55,21,56,57,58,59,60,61]),import.meta.url)},{name:"customer-portal",path:"/customer-portal",meta:{...cH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./XxlW4x5B.js"),__vite__mapDeps([128,129,130,87,125,131,132,75,133,134,32,86,12,135,63,64,73,65,136,29,30,67,68,76,5,137,138,139,24,43,140,141,142,143,123,124,144,20,145,9,10,78,146,147,148,149]),import.meta.url)},{name:"recurring-product",path:"/recurring/:product?",meta:uH||{},alias:["/checkout/recurring"],component:()=>ce(()=>import("./DeVNfZsk.js"),__vite__mapDeps([150,111,100,151]),import.meta.url)},{name:"checkout-cash-mx",path:"/checkout/cash-mx",meta:dH||{},component:()=>ce(()=>import("./CHfBWYmx.js"),__vite__mapDeps([152,48,49,50,28,29,30,31,32,12,33,34,51,52,53,45,46,153,38,39,154]),import.meta.url)},{name:"credit-selection",path:"/credit-selection",meta:{...fH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./DHAk21qN.js"),__vite__mapDeps([155,129,130,45,46,60,28,29,30,31,32,12,33,34,141,125,132,139,24,134,5,137,20,86,87,156]),import.meta.url)},{name:"checkout-codi-enrollment",path:"/checkout/codi/enrollment",meta:hH||{},component:()=>ce(()=>import("./CydkGsqo.js"),__vite__mapDeps([157,45,46,158,159,28,29,30,31,32,12,33,34,60,160]),import.meta.url)},{name:"checkout-account-mx",path:"/checkout/account-mx",meta:pH||{},component:()=>ce(()=>import("./CZV_fosM.js"),__vite__mapDeps([161,48,49,50,28,29,30,31,32,12,33,34,51,52,53,60,47,37,81,162,35,54,55,76,83,21,75,163,56,57,38,39,164,165,58,94,166]),import.meta.url)},{name:"customer-portal-section",path:"/customer-portal/:section()",meta:{...mH||{},middleware:["persist-query-params","check-customer","validate-customer-portal-section"]},component:()=>ce(()=>import("./oElUYSqa.js"),__vite__mapDeps([167,129,130,87,125,131,132,75,133,134,32,86,12,135,63,64,73,65,136,29,30,67,68,76,5,137,138,139,24,43,140,141,142,143,123,124,144,20,145,9,10,78,146,147,148,168]),import.meta.url)},{name:"select-subscription",path:"/select-subscription",meta:{...gH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./BmwCyo7F.js"),__vite__mapDeps([169,129,130,60,28,29,30,31,32,12,33,34,170,123,124,135,125,63,64,73,65,136,171,145,133,134,132,86,87,172]),import.meta.url)},{name:"checkout-cash-mx-reference",path:"/checkout/cash-mx/reference",meta:vH||{},component:()=>ce(()=>import("./CHYlEqwl.js"),__vite__mapDeps([173,48,49,50,28,29,30,31,32,12,33,34,51,52,53,45,46,153,19,60,174]),import.meta.url)},{name:"checkout-codi-confirmation",path:"/checkout/codi/confirmation",meta:_H||{},component:()=>ce(()=>import("./BQ5XzMbp.js"),__vite__mapDeps([175,48,49,50,28,29,30,31,32,12,33,34,51,52,53,45,46,158,159,60,108,176]),import.meta.url)},{name:"checkout-transfer-cl",path:"/checkout/transfer-cl",meta:yH||{},component:()=>ce(()=>import("./BA2jl4mA.js"),__vite__mapDeps([177,45,46,28,29,30,31,32,12,33,34,27,35,36,37,38,39,40,65,8,42,43,44,47,48,49,50,51,52,53,6,7,54,55,21,56,57,58,59,41,60,61,162,76,83,147,116,178,179,94,180]),import.meta.url)},{name:"education-enrollments-id",path:"/education-enrollments/:id()",meta:{...bH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./CCy1jBlG.js"),__vite__mapDeps([181,182,129,130,45,46,60,28,29,30,31,32,12,33,34,125,137,183,184,143,185,186,87,187]),import.meta.url)},{name:"education-enrollments",path:"/education-enrollments",meta:{...wH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./BCI6ULMA.js"),__vite__mapDeps([188,182,129,130,45,46,60,28,29,30,31,32,12,33,34,125,137,183,184,143,185,186,87,187]),import.meta.url)},{name:"invoice-restructurings-id",path:"/invoice-restructurings/:id()",meta:{...SH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./D5TPVhLf.js"),__vite__mapDeps([189,190,129,130,45,46,60,28,29,30,31,32,12,33,34,143,125,142,191,186,87,137,192,183,184,193]),import.meta.url)},{name:"checkout-account-mx-finalize",path:"/checkout/account-mx/finalize",meta:EH||{},component:()=>ce(()=>import("./fRtSKVVD.js"),__vite__mapDeps([194,45,46,28,29,30,31,32,12,33,34,195,75,196]),import.meta.url)},{name:"checkout-bank-button-cl-demo",path:"/checkout/bank-button-cl/demo",meta:kH||{},component:()=>ce(()=>import("./BjlGNywD.js"),__vite__mapDeps([197,8,198]),import.meta.url)},{name:"checkout-contact-information",path:"/checkout/contact-information",meta:xH||{},component:()=>ce(()=>import("./BUo2FXCc.js"),__vite__mapDeps([199,28,29,30,31,32,12,33,34,60,21,163,200]),import.meta.url)},{name:"invoice-restructurings",path:"/invoice-restructurings",meta:{...TH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./D1GVBQKV.js"),__vite__mapDeps([201,190,129,130,45,46,60,28,29,30,31,32,12,33,34,143,125,142,191,186,87,137,192,183,184,193]),import.meta.url)},{name:"checkout-atoa-change-password",path:"/checkout/atoa/change-password",meta:CH||{},component:()=>ce(()=>import("./9lG2wS4e.js"),__vite__mapDeps([202,45,46,28,29,30,31,32,12,33,34,203]),import.meta.url)},{name:"checkout-card-action-required",path:"/checkout/card/action-required",meta:AH||{},component:()=>ce(()=>import("./CcjM1je9.js"),__vite__mapDeps([204,77,44,78,76,75,31,79,80]),import.meta.url)},{name:"checkout-combine-amount",path:"/checkout/combine-amount",meta:{...RH||{},middleware:["combine-flow"]},component:()=>ce(()=>import("./Dno4DkxX.js"),__vite__mapDeps([205,28,29,30,31,32,12,33,34,21,60,104,105,103,206]),import.meta.url)},{name:"checkout-account-mx-initialize",path:"/checkout/account-mx/initialize",meta:IH||{},component:()=>ce(()=>import("./CRUlWCV8.js"),__vite__mapDeps([207,195,162,35,54,55,76,83,165]),import.meta.url)},{name:"checkout-mercadopago-challenge",path:"/checkout/mercadopago-challenge",meta:OH||{},component:()=>ce(()=>import("./Dx3_cdd8.js"),__vite__mapDeps([208,209]),import.meta.url)},{name:"checkout-pix-banking-automatic",path:"/checkout/pix-banking-automatic",meta:PH||{},component:()=>ce(()=>import("./Xj9qVv3X.js"),__vite__mapDeps([210,49,50,60,91,92,28,29,30,31,32,12,33,34,93,94,211,54,55,38,39,212]),import.meta.url)},{name:"form-stream-streamInstanceId",path:"/form-stream/:streamInstanceId()",meta:{...LH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./kI1FX_9I.js"),__vite__mapDeps([213,143,125,129,130,45,46,60,28,29,30,31,32,12,33,34,87,191,186,63,64,65,66,137,185,214]),import.meta.url)},{name:"checkout-bank-button-cl-rejected",path:"/checkout/bank-button-cl/rejected",meta:NH||{},component:()=>ce(()=>import("./Cn9tpRro.js"),__vite__mapDeps([215,27,28,29,30,31,32,12,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"checkout-pix-openfinance-onetime",path:"/checkout/pix-openfinance-onetime",meta:DH||{},component:()=>ce(()=>import("./DGbe9Bj0.js"),__vite__mapDeps([216,217,29,30,218,28,31,32,12,33,34,93,94,90,54,55,38,39,219]),import.meta.url)},{name:"checkout-transbank-oneclick",path:"/checkout/transbank-oneclick",meta:MH||{},component:()=>ce(()=>import("./Ye43HWTB.js"),__vite__mapDeps([220,45,46,221,28,29,30,31,32,12,33,34,222,147,162,35,54,55,76,83,47,37,38,39]),import.meta.url)},{name:"checkout-wallet-gateway-success",path:"/checkout/wallet/:gateway()/success",meta:$H||{},component:()=>ce(()=>import("./CpXjIT9T.js"),__vite__mapDeps([223,28,29,30,31,32,12,33,34,38,39,36,224]),import.meta.url)},{name:"confirm-contact-information",path:"/confirm-contact-information",meta:{...FH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./BpFVTcLk.js"),__vite__mapDeps([225,129,130,60,28,29,30,31,32,12,33,34,21,163,134,132,125,133,86,87,140,141,226]),import.meta.url)},{name:"report-external-transaction",path:"/report-external-transaction",meta:{...UH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>
39import("./Cb-MjvD0.js"),__vite__mapDeps([227,137,138,139,125,24,132,228,229,230]),import.meta.url)},{name:"checkout-pix-openfinance-recurring",path:"/checkout/pix-openfinance-recurring",meta:BH||{},component:()=>ce(()=>import("./ZODX2r3x.js"),__vite__mapDeps([231,217,29,30,218,60,31,28,32,12,33,34,93,94,211,54,55,38,39,232]),import.meta.url)},{name:"checkout-wallet-gateway-rejected",path:"/checkout/wallet/:gateway()/rejected",meta:VH||{},component:()=>ce(()=>import("./Db_NVyq2.js"),__vite__mapDeps([233,27,28,29,30,31,32,12,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"checkout-account-mx-mandate-signing",path:"/checkout/account-mx/mandate-signing",meta:jH||{},component:()=>ce(()=>import("./DkKN0Ph9.js"),__vite__mapDeps([234,164]),import.meta.url)},{name:"checkout-transbank-oneclick-payment",path:"/checkout/transbank-oneclick/payment",meta:HH||{},component:()=>ce(()=>import("./kPTUunhl.js"),__vite__mapDeps([235,71,45,46,28,29,30,31,32,12,33,34,72,51,52,75,236]),import.meta.url)},{name:"report-external-transaction-success",path:"/report-external-transaction/success",meta:{...zH||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./FHKGm8D2.js"),__vite__mapDeps([237,228,229,238]),import.meta.url)},{name:"checkout-external-collector-cl",path:"/checkout/external-collector-cl",meta:qH||{},component:()=>ce(()=>import("./D0tMmgnk.js"),__vite__mapDeps([239,147,32,45,46,28,29,30,31,12,33,34,162,35,54,55,76,83,38,39,240]),import.meta.url)},{name:"checkout-transbank-oneclick-rejected",path:"/checkout/transbank-oneclick/rejected",meta:WH||{},component:()=>ce(()=>import("./BywnVQAg.js"),__vite__mapDeps([241,27,28,29,30,31,32,12,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"checkout-transbank-webpay-plus",path:"/checkout/transbank-webpay-plus",meta:KH||{},component:()=>ce(()=>import("./556cI8w4.js"),__vite__mapDeps([242,221,45,46,28,29,30,31,32,12,33,34,222,147,162,35,54,55,76,83,38,39]),import.meta.url)},{name:"checkout-account-mx-mandate-validating",path:"/checkout/account-mx/mandate-validating",meta:GH||{},component:()=>ce(()=>import("./CSrCY-UN.js"),__vite__mapDeps([243,28,29,30,31,32,12,33,34,75,244]),import.meta.url)},{name:"checkout-pending-multirol-operationId",path:"/checkout/pending-multirol/:operationId()",meta:YH||{},component:()=>ce(()=>import("./ACmMecmc.js"),__vite__mapDeps([245,246,28,29,30,31,32,12,33,34,59,75,78,76,80,44,247,51,52,63,64,65,60,8,248]),import.meta.url)},{name:"checkout-transbank-webpay-plus-rejected",path:"/checkout/transbank-webpay-plus/rejected",meta:XH||{},component:()=>ce(()=>import("./BC0QUzYT.js"),__vite__mapDeps([249,27,28,29,30,31,32,12,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"checkout-transfer-cl-activation-success",path:"/checkout/transfer-cl/activation/success",meta:QH||{},component:()=>ce(()=>import("./CELkwQZf.js"),__vite__mapDeps([250,45,46,51,52,28,29,30,31,32,12,33,34,36,251]),import.meta.url)},{name:"checkout-operation-receipt-operationId",path:"/checkout/operation-receipt/:operationId()",meta:ZH||{},component:()=>ce(()=>import("./RqhUxqk3.js"),__vite__mapDeps([252,51,52,28,29,30,31,32,12,33,34,60,38,39,246,59,75,78,76,80,44,247,63,64,65,253,104,79,36,254]),import.meta.url)},{name:"checkout-transfer-cl-khipu-receipt-check",path:"/checkout/transfer-cl/khipu-receipt-check",meta:JH||{},component:()=>ce(()=>import("./C_csrTyU.js"),__vite__mapDeps([255,71,45,46,28,29,30,31,32,12,33,34,72,75]),import.meta.url)},{name:"checkout-associate-payment-method-success",path:"/checkout/associate-payment-method/success",meta:ez||{},component:()=>ce(()=>import("./d8K8IaRg.js"),__vite__mapDeps([256,45,46,257,258,28,29,30,31,32,12,33,34,60,86,87]),import.meta.url)},{name:"identity-validator-idValidatorExecution",path:"/identity-validator/:idValidatorExecution()",component:()=>ce(()=>import("./5mad5Nm7.js"),__vite__mapDeps([259,253,75,58,260]),import.meta.url)},{name:"associate-subscription-paymentMethodId",path:"/associate-subscription/:paymentMethodId()",meta:{...tz||{},middleware:["persist-query-params","check-customer"]},component:()=>ce(()=>import("./CZ-dJFrm.js"),__vite__mapDeps([261,45,46,257,258,60,28,29,30,31,32,12,33,34,170,123,124,135,125,63,64,73,65,136,171,144,132,262]),import.meta.url)},{name:"signature-validator-idValidatorExecution",path:"/signature-validator/:idValidatorExecution()",component:()=>ce(()=>
39import("./CbnDKOhr.js"),__vite__mapDeps([263,264,265,266]),import.meta.url)},{name:"signature-validator-idValidatorExecution-result",path:"/signature-validator/:idValidatorExecution()/result",component:()=>ce(()=>import("./BUQV5zrE.js"),__vite__mapDeps([267,264,265,268]),import.meta.url)},{name:"checkout-pix-openfinance-redirection-belvo-operationId-idCheckoutSession-errorMessage",path:"/checkout/pix-openfinance/redirection/belvo-:operationId()-:idCheckoutSession()-:errorMessage()",component:()=>ce(()=>import("./BVDwz4Bx.js"),[],import.meta.url)},{name:"checkout-pix-openfinance-redirection-iniciador-failure-operationId-idCheckoutSession-errorMessage",path:"/checkout/pix-openfinance/redirection/iniciador/failure-:operationId()-:idCheckoutSession()-:errorMessage()",component:()=>ce(()=>import("./DbFMtnDy.js"),[],import.meta.url)},{name:"checkout-pix-openfinance-redirection-iniciador-success-operationId-idCheckoutSession-errorMessage",path:"/checkout/pix-openfinance/redirection/iniciador/success-:operationId()-:idCheckoutSession()-:errorMessage()",meta:nz||{},component:()=>ce(()=>import("./DPzUpAgI.js"),[],import.meta.url)}],lL=(e,t)=>({default:()=>e?qe(fg,e===!0?{}:e,t):t.default?.()}),rz=/(:\w+)\([^)]+\)/g,sz=/(:\w+)[?+*]/g,oz=/:\w+/g;function Hx(e){const t=e?.meta.key??e.path.replace(rz,"$1").replace(sz,"$1").replace(oz,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function iz(e,t){return e===t||t===ts?!1:Hx(e)!==Hx(t)?!0:!e.matched.every((r,s)=>r.components&&r.components.default===t.matched[s]?.components?.default)}const az={scrollBehavior(e,t,n){const r=De(),s=Hn().options?.scrollBehaviorType??"auto";if(e.path.replace(/\/$/,"")===t.path.replace(/\/$/,""))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:cL(e.hash),behavior:s}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const i=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(t===ts){a(zx(e,t,n,s));return}r.hooks.hookOnce(i,()=>{requestAnimationFrame(()=>a(zx(e,t,n,s)))})})}};function cL(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 zx(e,t,n,r){if(n)return n;const s=iz(e,t);return e.hash?{el:e.hash,top:cL(e.hash),behavior:s?r:"instant"}:{left:0,top:0}}const lz={hashMode:!1,scrollBehaviorType:"auto"},ia={...lz,...az},cz=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const s=([n,r]=or(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(s===!0)return;const o=Mi({fatal:!0,statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),o},uz=32,dz=64,fz=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,hz=/^(?:0|\d+(?:\.\d+)?(?:px|rem|em|%))$/,pz=e=>{for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<=8||n===11||n===12||n>=14&&n<=31||n===127)return!0}return!1},uL=e=>pz(e)?!0:/[;{}'"<>`]|\/\*|\/\/|url\s*\(|expression\s*\(|@import|javascript:/i.test(e),qx=(e,t)=>{const n=e.trim();return n.length===0||n.length>uz||uL(n)?t:fz.test(n)?n:t},Wx=(e,t)=>{const n=e.trim();return n.length===0||n.length>dz||uL(n)?t:hz.test(n)?n:t};/*! 40 * shared v11.4.10 41 * (c) 2026 kazuya kawaguchi 42 * Released under the MIT License. 43 */const xg=typeof window<"u",Xa=(e,t=!1)=>t?Symbol.for(e):Symbol(e),mz=(e,t,n)=>dL({l:e,k:t,s:n}),dL=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Nn=e=>typeof e=="number"&&isFinite(e),fL=e=>Jv(e)==="[object Date]",Tg=e=>Jv(e)==="[object RegExp]",hS=e=>Qt(e)&&Object.keys(e).length===0,gn=Object.assign,gz=Object.create,Tt=(e=null)=>gz(e);let Kx;const vz=()=>Kx||(Kx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:Tt()),_z=Object.prototype.hasOwnProperty;function Xs(e,t){return _z.call(e,t)}const en=Array.isArray,Wt=e=>typeof e=="function",ye=e=>typeof e=="string",hn=e=>typeof e=="boolean",Ct=e=>e!==null&&typeof e=="object",yz=e=>Ct(e)&&Wt(e.then)&&Wt(e.catch),hL=Object.prototype.toString,Jv=e=>hL.call(e),Qt=e=>Jv(e)==="[object Object]",bz=e=>e==null?"":en(e)||Qt(e)&&e.toString===hL?JSON.stringify(e,null,2):String(e);function pS(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function wz(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function Gx(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Sz(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}const Ez=/^javascript:/i,kz=/^(?:href|src|action|formaction)$/i,xz=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Tz=/&(?:Tab|NewLine);/g,Cz=/:?/gi,Az=/[\u0000-\u0020\u007f-\u009f]/g,Rz=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,Iz=/(^|[\s"'<>/])on(\w+\s*=)/gi,Oz=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function Pz(e,t,n){const r=t||n;if(!r)return e;const s=Number.parseInt(r,t?16:10);return s<=127?String.fromCharCode(s):e}function mS(e){const t=e.replace(xz,Pz).replace(Tz,"").replace(Cz,":").replace(Az,"");return Ez.test(t)}function Lz(e){const t=/url\s*\(/gi;let n="",r=0,s;for(;(s=t.exec(e))!==null;){const o=s.index,i=t.lastIndex-1;let a=i+1,l=1,c=null;for(;a<e.length;a++){const f=e[a];if(c){f===c&&(c=null);continue}if(f==='"'||f==="'")c=f;else if(f==="(")l++;else if(f===")"&&(l--,l===0))break}if(l!==0)break;const u=e.slice(i+1,a).trim(),d=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;n+=e.slice(r,o),n+=mS(d)?"url(about:blank)":e.slice(o,a+1),r=a+1}return n+e.slice(r)}function Yx(e,t){if(kz.test(e)&&mS(t))return"about:blank";const n=e.toLowerCase()==="style"?Lz(t):t;return Sz(n)}function Nz(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,n,r)=>`${n}="${Yx(n,r)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,r)=>`${n}='${Yx(n,r)}'`),Rz.test(e)&&(e=e.replace(Iz,"$1on$2")),e=e.replace(Oz,(t,n,r,s)=>mS(s)?`${n}${r}about:blank`:t),e}const Xx=e=>!Ct(e)||en(e);
43function iu(e,t){if(Xx(e)||Xx(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(o=>{if(o==="__proto__")return;const i=r[o];if(en(i)){const a=[];a.length=i.length,s[o]=a,n.push({src:i,des:a})}else Ct(i)?((!Ct(s[o])||en(s[o]))&&(s[o]=Tt()),n.push({src:i,des:s[o]})):s[o]=i})}}/*! 44 * message-compiler v11.4.10 45 * (c) 2026 kazuya kawaguchi 46 * Released under the MIT License. 47 */function Dz(e,t,n){return{line:e,column:t,offset:n}}function b0(e,t,n){return{start:e,end:t}}const $t={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},Mz=17;function e_(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function $z(e){throw e}const Mo=" ",Fz="\r",vr=` 48`,Uz="\u2028",Bz="\u2029";function Vz(e){const t=e;let n=0,r=1,s=1,o=0;const i=E=>t[E]===Fz&&t[E+1]===vr,a=E=>
48t[E]===vr,l=E=>t[E]===Bz,c=E=>t[E]===Uz,u=E=>i(E)||a(E)||l(E)||c(E),d=()=>n,f=()=>r,h=()=>s,p=()=>o,m=E=>i(E)||l(E)||c(E)?vr:t[E],g=()=>m(n),v=()=>m(n+o);function b(){return o=0,u(n)&&(r++,s=0),i(n)&&n++,n++,s++,t[n]}function _(){return i(n+o)&&o++,o++,t[n+o]}function y(){n=0,r=1,s=1,o=0}function w(E=0){o=E}function S(){const E=n+o;for(;E!==n;)b();o=0}return{index:d,line:f,column:h,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:b,peek:_,reset:y,resetPeek:w,skipToPeek:S}}const gi=void 0,jz=".",Qx="'",Hz="tokenizer";function zz(e,t={}){const n=t.location!==!1,r=Vz(e),s=()=>r.index(),o=()=>Dz(r.line(),r.column(),r.index()),i=o(),a=s(),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 d(k,R,$,...U){const Z=c();if(R.column+=$,R.offset+=$,u){const re=n?b0(Z.startLoc,R):null,M=e_(k,re,{domain:Hz,args:U});u(M)}}function f(k,R,$){k.endLoc=o(),k.currentType=R;const U={type:R};return n&&(U.loc=b0(k.startLoc,k.endLoc)),$!=null&&(U.value=$),U}const h=k=>f(k,13);function p(k,R){return k.currentChar()===R?(k.next(),R):(d($t.EXPECTED_TOKEN,o(),0,R),"")}function m(k){let R="";for(;k.currentPeek()===Mo||k.currentPeek()===vr;)R+=k.currentPeek(),k.peek();return R}function g(k){const R=m(k);return k.skipToPeek(),R}function v(k){if(k===gi)return!1;const R=k.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R===95}function b(k){if(k===gi)return!1;const R=k.charCodeAt(0);return R>=48&&R<=57}function _(k,R){const{currentType:$}=R;if($!==2)return!1;m(k);const U=v(k.currentPeek());return k.resetPeek(),U}function y(k,R){const{currentType:$}=R;if($!==2)return!1;m(k);const U=k.currentPeek()==="-"?k.peek():k.currentPeek(),Z=b(U);return k.resetPeek(),Z}function w(k,R){const{currentType:$}=R;if($!==2)return!1;m(k);const U=k.currentPeek()===Qx;return k.resetPeek(),U}function S(k,R){const{currentType:$}=R;if($!==7)return!1;m(k);const U=k.currentPeek()===".";return k.resetPeek(),U}function E(k,R){const{currentType:$}=R;if($!==8)return!1;m(k);const U=v(k.currentPeek());return k.resetPeek(),U}function x(k,R){const{currentType:$}=R;if(!($===7||$===11))return!1;m(k);const U=k.currentPeek()===":";return k.resetPeek(),U}function T(k,R){const{currentType:$}=R;if($!==9)return!1;const U=()=>{const re=k.currentPeek();return re==="{"?v(k.peek()):re==="@"||re==="|"||re===":"||re==="."||re===Mo||!re?!1:re===vr?(k.peek(),U()):z(k,!1)},Z=U();return k.resetPeek(),Z}function O(k){m(k);const R=k.currentPeek()==="|";return k.resetPeek(),R}function z(k,R=!0){const $=(Z=!1,re="")=>{const M=k.currentPeek();return M==="{"||M==="@"||!M?Z:M==="|"?!(re===Mo||re===vr):M===Mo?(k.peek(),$(!0,Mo)):M===vr?(k.peek(),$(!0,vr)):!0},U=$();return R&&k.resetPeek(),U}function P(k,R){const $=k.currentChar();return $===gi?gi:R($)?(k.next(),$):null}function q(k){const R=k.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===95||R===36}function X(k){return P(k,q)}function J(k){const R=k.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===95||R===36||R===45}function F(k){return P(k,J)}function Q(k){const R=k.charCodeAt(0);return R>=48&&R<=57}function W(k){return P(k,Q)}function ee(k){const R=k.charCodeAt(0);return R>=48&&R<=57||R>=65&&R<=70||R>=97&&R<=102}function N(k){return P(k,ee)}function de(k){let R="",$="";for(;R=W(k);)$+=R;return $}function pe(k){let R="";for(;;){const $=k.currentChar();if($==="\\"){const U=k.peek();U==="{"||U==="}"||U==="@"||U==="|"||U==="\\"?(R+=$+U,k.next(),k.next()):(k.resetPeek(),R+=$,k.next())}else{if($==="{"||$==="}"||$==="@"||$==="|"||!$)break;if($===Mo||$===vr)if(z(k))R+=$,k.next();else{if(O(k))break;R+=$,k.next()}else R+=$,k.next()}}return R}function je(k){g(k);let R="",$="";for(;R=F(k);)$+=R;const U=k.currentChar();if(U&&U!=="}"&&U!==gi&&U!==Mo&&U!==vr&&U!==" "){const Z=ie(k);return d($t.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,$+Z),$+Z}return k.currentChar()===gi&&d($t.UNTERMINATED_CLOSING_BRACE,o(),0),$}function Re(k){g(k);let R="";return k.currentChar()==="-"?(k.next(),R+=`-${de(k)}`):R+=de(k),k.currentChar()===gi&&d($t.UNTERMINATED_CLOSING_BRACE,o(),0),R}function Pe(k){return k!==Qx&&k!==vr}function Ie(k){g(k),p(k,"'");let R="",$="";for(;R=P(k,Pe);)R==="\\"?$+=Le(k):$+=R;const U=k.currentChar();return U===vr||U===gi?(d($t.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),U===vr&&(k.next(),p(k,"'")),$):(p(k,"'"),$)}function Le(k){const R=k.currentChar();switch(R){case"\\":case"'":return k.next(),`\\${R}`;case"u":return fe(k,R,4);case"U":return fe(k,R,6);default:return d($t.UNKNOWN_ESCAPE_SEQUENCE,o(),0,R),""}}function fe(k,R,$){p(k,R);let U="";for(let Z=0;Z<$;Z++){const re=N(k);if(!re){d($t.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${R}${U}${k.currentChar()}`);break}U+=re}return`\\${R}${U}`}function K(k){return k!=="{"&&k!=="}"&&k!==Mo&&k!==vr}function ie(k){g(k);let R="",$="";for(;R=P(k,K);)$+=R;return $}function ae(k){let R="",$="";for(;R=X(k);)$+=R;return $}function ge(k){const R=$=>{const U=k.currentChar();return U==="{"||U==="@"||U==="|"||U==="("||U===")"||!U||U===Mo?$:($+=U,k.next(),R($))};return R("")}function I(k){g(k);const R=p(k,"|");return g(k),R}function D(k,R){let $=null;switch(k.currentChar()){case"{":return R.braceNest>=1&&d($t.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),k.next(),$=f(R,2,"{"),g(k),R.braceNest++,$;case"}":return R.braceNest>0&&R.currentType===2&&d($t.EMPTY_PLACEHOLDER,o(),0),k.next(),$=f(R,3,"}"),R.braceNest--,R.braceNest>0&&g(k),R.inLinked&&R.braceNest===0&&(R.inLinked=!1),$;
48case"@":return R.braceNest>0&&d($t.UNTERMINATED_CLOSING_BRACE,o(),0),$=B(k,R)||h(R),R.braceNest=0,$;default:{let Z=!0,re=!0,M=!0;if(O(k))return R.braceNest>0&&d($t.UNTERMINATED_CLOSING_BRACE,o(),0),$=f(R,1,I(k)),R.braceNest=0,R.inLinked=!1,$;if(R.braceNest>0&&(R.currentType===4||R.currentType===5||R.currentType===6))return d($t.UNTERMINATED_CLOSING_BRACE,o(),0),R.braceNest=0,Y(k,R);if(Z=_(k,R))return $=f(R,4,je(k)),g(k),$;if(re=y(k,R))return $=f(R,5,Re(k)),g(k),$;if(M=w(k,R))return $=f(R,6,Ie(k)),g(k),$;if(!Z&&!re&&!M)return $=f(R,12,ie(k)),d($t.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,$.value),g(k),$;break}}return $}function B(k,R){const{currentType:$}=R;let U=null;const Z=k.currentChar();switch(($===7||$===8||$===11||$===9)&&(Z===vr||Z===Mo)&&d($t.INVALID_LINKED_FORMAT,o(),0),Z){case"@":return k.next(),U=f(R,7,"@"),R.inLinked=!0,U;case".":return g(k),k.next(),f(R,8,".");case":":return g(k),k.next(),f(R,9,":");default:return O(k)?(U=f(R,1,I(k)),R.braceNest=0,R.inLinked=!1,U):S(k,R)||x(k,R)?(g(k),B(k,R)):E(k,R)?(g(k),f(R,11,ae(k))):T(k,R)?(g(k),Z==="{"?D(k,R)||U:f(R,10,ge(k))):($===7&&d($t.INVALID_LINKED_FORMAT,o(),0),R.braceNest=0,R.inLinked=!1,Y(k,R))}}function Y(k,R){let $={type:13};if(R.braceNest>0)return D(k,R)||h(R);if(R.inLinked)return B(k,R)||h(R);switch(k.currentChar()){case"{":return D(k,R)||h(R);case"}":return d($t.UNBALANCED_CLOSING_BRACE,o(),0),k.next(),f(R,3,"}");case"@":return B(k,R)||h(R);default:{if(O(k))return $=f(R,1,I(k)),R.braceNest=0,R.inLinked=!1,$;if(z(k))return f(R,0,pe(k));break}}return $}function L(){const{currentType:k,offset:R,startLoc:$,endLoc:U}=l;return l.lastType=k,l.lastOffset=R,l.lastStartLoc=$,l.lastEndLoc=U,l.offset=s(),l.startLoc=o(),r.currentChar()===gi?f(l,13):Y(r,l)}return{nextToken:L,currentOffset:s,currentPosition:o,context:c}}const qz="parser",Wz=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Kz=/\\([\\@{}|])/g;function Gz(e,t){return t}function Yz(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Xz(e={}){const t=e.location!==!1,{onError:n}=e;function r(v,b,_,y,...w){const S=v.currentPosition();if(S.offset+=y,S.column+=y,n){const E=t?b0(_,S):null,x=e_(b,E,{domain:qz,args:w});n(x)}}function s(v,b,_){const y={type:v};return t&&(y.start=b,y.end=b,y.loc={start:_,end:_}),y}function o(v,b,_,y){t&&(v.end=b,v.loc&&(v.loc.end=_))}function i(v,b){const _=v.context(),y=s(3,_.offset,_.startLoc);return y.value=b.replace(Kz,Gz),o(y,v.currentOffset(),v.currentPosition()),y}function a(v,b){const _=v.context(),{lastOffset:y,lastStartLoc:w}=_,S=s(5,y,w);return S.index=parseInt(b,10),v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function l(v,b){const _=v.context(),{lastOffset:y,lastStartLoc:w}=_,S=s(4,y,w);return S.key=b,v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function c(v,b){const _=v.context(),{lastOffset:y,lastStartLoc:w}=_,S=s(9,y,w);return S.value=b.replace(Wz,Yz),v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function u(v){const b=v.nextToken(),_=v.context(),{lastOffset:y,lastStartLoc:w}=_,S=s(8,y,w);return b.type!==11?(r(v,$t.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),S.value="",o(S,y,w),{nextConsumeToken:b,node:S}):(b.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,$o(b)),S.value=b.value||"",o(S,v.currentOffset(),v.currentPosition()),{node:S})}function d(v,b){const _=v.context(),y=s(7,_.offset,_.startLoc);return y.value=b,o(y,v.currentOffset(),v.currentPosition()),y}function f(v){const b=v.context(),_=s(6,b.offset,b.startLoc);let y=v.nextToken();if(y.type===8){const w=u(v);_.modifier=w.node,y=w.nextConsumeToken||v.nextToken()}switch(y.type!==9&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(y)),y=v.nextToken(),y.type===2&&(y=v.nextToken()),y.type){case 10:y.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(y)),_.key=d(v,y.value||"");break;case 4:y.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(y)),_.key=l(v,y.value||"");break;case 5:y.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(y)),_.key=a(v,y.value||"");break;case 6:y.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(y)),_.key=c(v,y.value||"");break;default:{r(v,$t.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const w=v.context(),S=s(7,w.offset,w.startLoc);return S.value="",o(S,w.offset,w.startLoc),_.key=S,o(_,w.offset,w.startLoc),{nextConsumeToken:y,node:_}}}return o(_,v.currentOffset(),v.currentPosition()),{node:_}}function h(v){const b=v.context(),_=b.currentType===1?v.currentOffset():b.offset,y=b.currentType===1?b.endLoc:b.startLoc,w=s(2,_,y);w.items=[];let S=null;do{const T=S||v.nextToken();switch(S=null,T.type){case 0:T.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(T)),w.items.push(i(v,T.value||""));break;case 5:T.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(T)),w.items.push(a(v,T.value||""));break;case 4:T.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(T)),w.items.push(l(v,T.value||""));break;case 6:T.value==null&&r(v,$t.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(T)),w.items.push(c(v,T.value||""));break;case 7:{const O=f(v);w.items.push(O.node),S=O.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const E=b.currentType===1?b.lastOffset:v.currentOffset(),x=b.currentType===1?b.lastEndLoc:v.currentPosition();return o(w,E,x),w}function p(v,b,_,y){const w=v.context();let S=y.items.length===0;const E=s(1,b,_);E.cases=[],E.cases.push(y);do{const x=h(v);S||(S=x.items.length===0),E.cases.push(x)}while(w.currentType!==13);return S&&r(v,$t.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),o(E,v.currentOffset(),v.currentPosition()),E}function m(v){const b=v.context(),{offset:_,startLoc:y}=b,w=h(v);return b.currentType===13?w:p(v,_,y,w)}function g(v){const b=zz(v,gn({},e)),_=b.context(),y=s(0,_.offset,_.startLoc);return t&&y.loc&&(y.loc.source=v),y.body=m(b),e.onCacheKey&&(y.cacheKey=e.onCacheKey(v)),_.currentType!==13&&r(b,$t.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,v[_.offset]||""),o(y,b.currentOffset(),b.currentPosition()),y}return{parse:g}}function $o(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 Qz(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Zx(e,t){for(let n=0;n<e.length;n++)gS(e[n],t)}function gS(e,t){switch(e.type){case 1:Zx(e.cases,t),t.helper("plural");break;case 2:Zx(e.items,t);break;case 6:{gS(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Zz(e,t={}){const n=Qz(e);n.helper("normalize"),e.body&&gS(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Jz(e){const t=e.body;
48return t.type===2?Jx(t):t.cases.forEach(n=>Jx(n)),e}function Jx(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 n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=pS(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Dc(e){switch(e.t=e.type,e.type){case 0:{const t=e;Dc(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Dc(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Dc(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Dc(t.key),t.k=t.key,delete t.key,t.modifier&&(Dc(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function e9(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,o=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const a=()=>i;function l(m,g){i.code+=m}function c(m,g=!0){const v=g?r:"";l(s?v+" ".repeat(m):v)}function u(m=!0){const g=++i.indentLevel;m&&c(g)}function d(m=!0){const g=--i.indentLevel;m&&c(g)}function f(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:d,newline:f,helper:m=>`_${m}`,needIndent:()=>i.needIndent}}function t9(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Iu(e,t.key),t.modifier?(e.push(", "),Iu(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function n9(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let o=0;o<s&&(Iu(e,t.items[o]),o!==s-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function r9(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let o=0;o<s&&(Iu(e,t.cases[o]),o!==s-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function s9(e,t){t.body?Iu(e,t.body):e.push("null")}function Iu(e,t){const{helper:n}=e;switch(t.type){case 0:s9(e,t);break;case 1:r9(e,t);break;case 2:n9(e,t);break;case 6:t9(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const o9=(e,t={})=>{const n=ye(t.mode)?t.mode:"normal",r=ye(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` 49`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=e9(e,{filename:r,breakLineCode:s,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),i.length>0&&(a.push(`const { ${pS(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),Iu(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function i9(e,t={}){const n=gn({},t),r=!!n.jit,s=!!n.minify,o=n.optimize==null?!0:n.optimize,a=Xz(n).parse(e);return r?(o&&Jz(a),s&&Dc(a),{ast:a,code:""}):(Zz(a,n),o9(a,n))}/*! 50 * core-base v11.4.10 51 * (c) 2026 kazuya kawaguchi 52 * Released under the MIT License. 53 */function Zo(e){return Ct(e)&&vS(e)===0&&(Xs(e,"b")||Xs(e,"body"))}const pL=["b","body"];function a9(e){return Qa(e,pL)}const mL=["c","cases"];function l9(e){return Qa(e,mL,[])}const gL=["s","static"];function c9(e){return Qa(e,gL)}const vL=["i","items"];function u9(e){return Qa(e,vL,[])}const _L=["t","type"];function vS(e){return Qa(e,_L)}const yL=["v","value"];function Dp(e,t){const n=Qa(e,yL);if(n!=null)return n;throw eh(t)}const bL=["m","modifier"];function d9(e){return Qa(e,bL)}const wL=["k","key"];function f9(e){const t=Qa(e,wL);if(t)return t;throw eh(6)}
53function Qa(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(Xs(e,s)&&e[s]!=null)return e[s]}return n}const SL=[...pL,...mL,...gL,...vL,...wL,...bL,...yL,..._L];function eh(e){return new Error(`unhandled node type: ${e}`)}function my(e){return n=>h9(n,e)}function h9(e,t){const n=a9(t);if(n==null)throw eh(0);if(vS(n)===1){const o=l9(n);return e.plural(o.reduce((i,a)=>[...i,eT(e,a)],[]))}else return eT(e,n)}function eT(e,t){const n=c9(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=u9(t).reduce((s,o)=>[...s,w0(e,o)],[]);return e.normalize(r)}}function w0(e,t){const n=vS(t);switch(n){case 3:return Dp(t,n);case 9:return Dp(t,n);case 4:{const r=t;if(Xs(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Xs(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw eh(n)}case 5:{const r=t;if(Xs(r,"i")&&Nn(r.i))return e.interpolate(e.list(r.i));if(Xs(r,"index")&&Nn(r.index))return e.interpolate(e.list(r.index));throw eh(n)}case 6:{const r=t,s=d9(r),o=f9(r);return e.linked(w0(e,o),s?w0(e,s):void 0,e.type)}case 7:return Dp(t,n);case 8:return Dp(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const p9=e=>e;let Mp=Tt();function m9(e,t={}){let n=!1;const r=t.onError||$z;return t.onError=s=>{n=!0,r(s)},{...i9(e,t),detectError:n}}function g9(e,t){if(ye(e)){hn(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||p9)(e),s=Mp[r];if(s)return s;const{ast:o,detectError:i}=m9(e,{...t,location:!1,jit:!0}),a=my(o);return i?a:Mp[r]=a}else{const n=e.cacheKey;if(n){const r=Mp[n];return r||(Mp[n]=my(e))}else return my(e)}}const Oi={INVALID_ARGUMENT:Mz,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},v9=24;function Pi(e){return e_(e,null,void 0)}function _S(e,t){return t.locale!=null?tT(t.locale):tT(e.locale)}let gy;function tT(e){if(ye(e))return e;if(Wt(e)){if(e.resolvedOnce&&gy!=null)return gy;if(e.constructor.name==="Function"){const t=e();if(yz(t))throw Pi(Oi.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return gy=t}else throw Pi(Oi.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Pi(Oi.NOT_SUPPORT_LOCALE_TYPE)}function _9(e,t,n){return[...new Set([n,...en(t)?t:Ct(t)?Object.keys(t).filter(r=>r!=="default"):ye(t)?[t]:[n]])]}function S0(e,t,n){const r=ye(n)?n:Cg,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);const o=dL(t);let i=s.__localeChainCache.get(r);i||(i=new Map,s.__localeChainCache.set(r,i));const a=i.get(o);if(a)return a;const l=[];let c=[n];for(;en(c);)c=nT(l,c,t);const u=en(t)||!Qt(t)?t:t.default?t.default:null;return c=ye(u)?[u]:u,en(c)&&nT(l,c,!1),i.set(o,l),l}function nT(e,t,n){let r=!0;for(let s=0;s<t.length&&hn(r);s++){const o=t[s];ye(o)&&(r=y9(e,t[s],n))}return r}function y9(e,t,n){let r;const s=t.split("-");do{const o=s.join("-");r=b9(e,o,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function b9(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(en(n)||Qt(n))&&n[s]&&(r=n[s])}return r}const Za=[];Za[0]={w:[0],i:[3,0],"[":[4],o:[7]};Za[1]={w:[1],".":[2],"[":[4],o:[7]};Za[2]={w:[2],i:[3,0],0:[3,0]};Za[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Za[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Za[5]={"'":[4,0],o:8,l:[5,0]};Za[6]={'"':[4,0],o:8,l:[6,0]};const w9=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function S9(e){return w9.test(e)}function E9(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function k9(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function x9(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:S9(t)?E9(t):"*"+t}function T9(e){const t=[];let n=-1,r=0,s=0,o,i,a,l,c,u,d;const f=[];f[0]=()=>{i===void 0?i=a:i+=a},f[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},f[2]=()=>{f[0](),s++},f[3]=()=>{if(s>0)s--,r=4,f[0]();else{if(s=0,i===void 0||(i=x9(i),i===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,a="\\"+p,f[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(l=k9(o),d=Za[r],c=d[l]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(a=o,u()===!1))))return;if(r===7)return t}}const rT=new Map;function C9(e,t){return Ct(e)?e[t]:null}function A9(e,t){if(!Ct(e))return null;let n=rT.get(t);if(n||(n=T9(t),n&&rT.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;o<r;){const i=n[o];if(SL.includes(i)&&Zo(s)||!Ct(s)||!Xs(s,i))return null;const a=s[i];if(a===void 0||Wt(s))return null;s=a,o++}return s}const R9="11.4.10",t_=-1,Cg="en-US",Ag="",sT=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function I9(){return{upper:(e,t)=>t==="text"&&ye(e)?e.toUpperCase():t==="vnode"&&Ct(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ye(e)?e.toLowerCase():t==="vnode"&&Ct(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>
53t==="text"&&ye(e)?sT(e):t==="vnode"&&Ct(e)&&"__v_isVNode"in e?sT(e.children):e}}let EL;function O9(e){EL=e}let kL;function P9(e){kL=e}let xL;function L9(e){xL=e}let TL=null;const oT=e=>{TL=e},N9=()=>TL;let iT=0;function D9(e={}){const t=Wt(e.onWarn)?e.onWarn:wz,n=ye(e.version)?e.version:R9,r=ye(e.locale)||Wt(e.locale)?e.locale:Cg,s=Wt(r)?Cg:r,o=en(e.fallbackLocale)||Qt(e.fallbackLocale)||ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,i=Qt(e.messages)?e.messages:vy(s),a=Qt(e.datetimeFormats)?e.datetimeFormats:vy(s),l=Qt(e.numberFormats)?e.numberFormats:vy(s),c=gn(Tt(),e.modifiers,I9()),u=e.pluralRules||Tt(),d=Wt(e.missing)?e.missing:null,f=hn(e.missingWarn)||Tg(e.missingWarn)?e.missingWarn:!0,h=hn(e.fallbackWarn)||Tg(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,m=!!e.unresolving,g=Wt(e.postTranslation)?e.postTranslation:null,v=Qt(e.processor)?e.processor:null,b=hn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,y=Wt(e.messageCompiler)?e.messageCompiler:EL,w=Wt(e.messageResolver)?e.messageResolver:kL||C9,S=Wt(e.localeFallbacker)?e.localeFallbacker:xL||_9,E=Ct(e.fallbackContext)?e.fallbackContext:void 0,x=e,T=Ct(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,O=Ct(x.__numberFormatters)?x.__numberFormatters:new Map,z=Ct(x.__meta)?x.__meta:{};iT++;const P={version:n,cid:iT,locale:r,fallbackLocale:o,messages:i,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:m,postTranslation:g,processor:v,warnHtmlMessage:b,escapeParameter:_,messageCompiler:y,messageResolver:w,localeFallbacker:S,fallbackContext:E,onWarn:t,__meta:z};return P.datetimeFormats=a,P.numberFormats=l,P.__datetimeFormatters=T,P.__numberFormatters=O,P}const vy=e=>({[e]:Tt()});function CL(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,s);return ye(a)?a:t}else return t}function $d(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function M9(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function $9(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(M9(e,t[r]))return!0;return!1}function AL(e,t,n,r,s,o,i){const{fallbackLocale:a,localeFallbacker:l,onWarn:c}=e,u=l(e,a,n);for(let d=0;d<u.length;d++){const f=u[d],h=(r[f]||{})[t];if(Qt(h)&&ye(f))return f;CL(e,t,f,s,i)}return null}function RL(e,t,n){let r=`${e}__${t}`;return Qt(n)&&!hS(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function IL(e,t,n){for(const r in n){const s=`${t}__${r}`;for(const o of e.keys())(o===s||o.startsWith(`${s}__`))&&e.delete(o)}}function OL(e,t,n,r){const[,s,o,i]=e;let a=n;return ye(s)?t.key=s:Qt(s)&&Object.keys(s).forEach(l=>{r.includes(l)?a[l]=s[l]:t[l]=s[l]}),ye(o)?t.locale=o:Qt(o)&&(a=o),Qt(i)&&(a=i),a}function aT(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:s}=e,{__datetimeFormatters:o}=e;if(!ye(t[0])&&!fL(t[0])&&!Nn(t[0]))return Ag;const[i,a,l,c]=E0(...t),u=hn(l.missingWarn)?l.missingWarn:e.missingWarn,d=hn(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=!!l.part,h=_S(e,l);if(!ye(i)||i===""){const b=new Intl.DateTimeFormat(h.replace(/!/g,""),c);return f?b.formatToParts(a):b.format(a)}const p=AL(e,i,h,n,u,d,"datetime format");if(!ye(p))return r?t_:i;const m=n[p][i],g=RL(p,i,c);let v=o.get(g);return v||(v=new Intl.DateTimeFormat(p,gn({},m,c)),o.set(g,v)),f?v.formatToParts(a):v.format(a)}const PL=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function E0(...e){const[t]=e,n=Tt(),r=Tt();let s;if(ye(t)){const i=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!i)throw Pi(Oi.INVALID_ISO_DATE_ARGUMENT);const a=i[3]?i[3].trim().startsWith("T")?`${i[1].trim()}${i[3].trim()}`:`${i[1].trim()}T${i[3].trim()}`:i[1].trim();s=new Date(a);try{s.toISOString()}catch{throw Pi(Oi.INVALID_ISO_DATE_ARGUMENT)}}else if(fL(t)){if(isNaN(t.getTime()))throw Pi(Oi.INVALID_DATE_ARGUMENT);s=t}else if(Nn(t))s=t;else throw Pi(Oi.INVALID_ARGUMENT);const o=OL(e,n,r,PL);return[n.key||"",s,n,o]}function lT(e,t,n){IL(e.__datetimeFormatters,t,n)}function cT(e,...t){const{numberFormats:n,unresolving:r,onWarn:s}=e,{__numberFormatters:o}=e;if(!Nn(t[0]))return Ag;const[i,a,l,c]=k0(...t),u=hn(l.missingWarn)?l.missingWarn:e.missingWarn,d=hn(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=!!l.part,h=_S(e,l);if(!ye(i)||i===""){const b=new Intl.NumberFormat(h.replace(/!/g,""),c);return f?b.formatToParts(a):b.format(a)}const p=AL(e,i,h,n,u,d,"number format");if(!ye(p))return r?t_:i;const m=n[p][i],g=RL(p,i,c);let v=o.get(g);return v||(v=new Intl.NumberFormat(p,gn({},m,c)),o.set(g,v)),f?v.formatToParts(a):v.format(a)}const LL=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function k0(...e){const[t]=e,n=Tt(),r=Tt();if(!Nn(t))throw Pi(Oi.INVALID_ARGUMENT);const s=t,o=OL(e,n,r,LL);return[n.key||"",s,n,o]}function uT(e,t,n){IL(e.__numberFormatters,t,n)}const F9=e=>e,U9=e=>"",B9="text",V9=e=>e.length===0?"":pS(e),j9=bz;function _y(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function H9(e){const t=Nn(e.pluralIndex)?e.pluralIndex:-1;return Nn(e.named?.count)?e.named.count:Nn(e.named?.n)?e.named.n:t}function z9(e={}){const t=e.locale,n=H9(e),r=ye(t)&&Wt(e.pluralRules?.[t])?e.pluralRules[t]:_y,s=r===_y?void 0:_y,o=v=>v[r(n,v.length,s)],i=e.list||[],a=v=>i[v],l=e.named||Tt();Nn(e.pluralIndex)&&(l.count||=e.pluralIndex,l.n||=e.pluralIndex);const c=v=>l[v];function u(v,b){const _=Wt(e.messages)?e.messages(v,!!b):Ct(e.messages)?e.messages[v]:!1;return _||(e.parent?e.parent.message(v):U9)}const d=v=>e.modifiers?e.modifiers[v]:F9,f=Wt(e.processor?.normalize)?e.processor.normalize:V9,h=Wt(e.processor?.interpolate)?e.processor.interpolate:j9,p=ye(e.processor?.type)?e.processor.type:B9,g={list:a,named:c,plural:o,linked:(v,...b)=>{const[_,y]=b;let w="text",S="";b.length===1?Ct(_)?(S=_.modifier||S,w=_.type||w):ye(_)&&(S=_||S):b.length===2&&(ye(_)&&(S=_||S),ye(y)&&(w=y||w));const E=u(v,!0)(g),x=E===""||E===void 0?v:E,T=w==="vnode"&&en(x)&&S?x[0]:x;return S?d(S)(T,w):T},message:u,type:p,interpolate:h,normalize:f,values:gn(Tt(),i,l)};return g}const dT=()=>"",$i=e=>Wt(e);function fT(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:i,messages:a}=e,[l,c]=x0(...t),u=hn(c.missingWarn)?c.missingWarn:e.missingWarn,d=hn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=hn(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,p=ye(c.default)||hn(c.default)?hn(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,m=n||p!=null&&(ye(p)||Wt(p)),g=_S(e,c);f&&q9(c);let[v,b,_]=h?[l,g,a[g]||Tt()]:NL(e,l,g,i,d,u),y=v,w=l;if(!h&&!(ye(y)||Zo(y)||$i(y))&&m&&(y=p,w=y),!h&&(!(ye(y)||Zo(y)||$i(y))||!ye(b)))return s?t_:l;let S=!1;const E=()=>{S=!0},x=$i(y)?y:DL(e,l,b,y,w,E);if(S)return y;const T=G9(e,b,_,c),O=z9(T),z=W9(e,x,O);let P=r?r(z,l):z;return f&&ye(P)&&(P=Nz(P)),P}function q9(e){en(e.list)?e.list=e.list.map(t=>
53ye(t)?Gx(t):t):Ct(e.named)&&Object.keys(e.named).forEach(t=>{ye(e.named[t])&&(e.named[t]=Gx(e.named[t]))})}function NL(e,t,n,r,s,o){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let d=Tt(),f,h=null;const p="translate";for(let m=0;m<u.length&&(f=u[m],d=i[f]||Tt(),(h=l(d,t))===null&&(h=d[t]),!(ye(h)||Zo(h)||$i(h)));m++)if(!$9(f,u)){const g=CL(e,t,f,o,p);g!==t&&(h=g)}return[h,f,d]}function DL(e,t,n,r,s,o){const{messageCompiler:i,warnHtmlMessage:a}=e;if($i(r)){const c=r;return c.locale=c.locale||n,c.key=c.key||t,c}if(i==null){const c=(()=>r);return c.locale=n,c.key=t,c}const l=i(r,K9(e,n,s,r,a,o));return l.locale=n,l.key=t,l.source=r,l}function W9(e,t,n){return t(n)}function x0(...e){const[t,n,r]=e,s=Tt();if(!ye(t)&&!Nn(t)&&!$i(t)&&!Zo(t))throw Pi(Oi.INVALID_ARGUMENT);const o=Nn(t)?String(t):($i(t),t);return Nn(n)?s.plural=n:ye(n)?s.default=n:Qt(n)&&!hS(n)?s.named=n:en(n)&&(s.list=n),Nn(r)?s.plural=r:ye(r)?s.default=r:Qt(r)&&gn(s,r),[o,s]}function K9(e,t,n,r,s,o){return{locale:t,key:n,warnHtmlMessage:s,onError:i=>{throw o&&o(i),i},onCacheKey:i=>mz(t,n,i)}}function G9(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:s,pluralRules:o,messages:(h,p)=>{let m=i(n,h);if(m==null&&(u||p)){const[g,,v]=NL(u||e,h,t,a,l,c);m=g??i(v,h)}if(ye(m)||Zo(m)){let g=!1;const b=DL(e,h,t,m,h,()=>{g=!0});return g?dT:b}else return $i(m)?m:dT}};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),Nn(r.plural)&&(f.pluralIndex=r.plural),f}/*! 54 * vue-i18n v11.4.10 55 * (c) 2026 kazuya kawaguchi 56 * Released under the MIT License. 57 */const Y9="11.4.10",Ds={UNEXPECTED_RETURN_TYPE:v9,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,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function no(e,...t){return e_(e,null,void 0)}const T0=Xa("__translateVNode"),C0=Xa("__datetimeParts"),A0=Xa("__numberParts"),X9=Xa("__setPluralRules"),Q9=Xa("__injectWithOption"),Vc=Xa("__dispose");let ML=null;{const e=vz().__VUE_INSTANCE_SETTERS__;en(e)&&e.push(t=>{ML=t})}function th(e){if(!Ct(e)||Zo(e))return e;for(const t in e)if(Xs(e,t))if(!t.includes("."))Ct(e[t])&&th(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in s||(s[n[i]]=Tt()),!Ct(s[n[i]])){o=!0;break}s=s[n[i]]}if(o||(Zo(s)?SL.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!Zo(s)){const i=s[n[r]];Ct(i)&&th(i)}}return e}function $L(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:o}=t,i=Qt(n)?n:en(r)?Tt():{[e]:Tt()};if(en(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||Tt(),iu(c,i[l])):iu(c,i)}else ye(a)&&iu(JSON.parse(a),i)}),s==null&&o)for(const a in i)Xs(i,a)&&th(i[a]);return i}function Z9(e){return e.type}function J9(e,t,n){let r=Ct(t.messages)?t.messages:Tt();"__i18nGlobal"in n&&(r=$L(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Ct(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Ct(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function hT(e){return H(Qo,null,e,0)}function FL(){return ML??At()}const pT=()=>[],eq=()=>!1;let mT=0;function gT(e){return((t,n,r,s)=>e(n,r,FL()||void 0,s))}function R0(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,o=xg?G:vn;let i=hn(e.inheritLocale)?e.inheritLocale:!0;const a=o(t&&i?t.locale.value:ye(e.locale)?e.locale:Cg),l=o(t&&i?t.fallbackLocale.value:ye(e.fallbackLocale)||en(e.fallbackLocale)||Qt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=o($L(a.value,e)),u=o(Qt(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),d=o(Qt(e.numberFormats)?e.numberFormats:{[a.value]:{}});let f=t?t.missingWarn:hn(e.missingWarn)||Tg(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:hn(e.fallbackWarn)||Tg(e.fallbackWarn)?e.fallbackWarn:!0,p=t?t.fallbackRoot:hn(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,g=Wt(e.missing)?e.missing:null,v=Wt(e.missing)?gT(e.missing):null,b=Wt(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:hn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const w=t?t.modifiers:Qt(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&oT(null);const M={version:Y9,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:w,pluralRules:S,missing:v===null?void 0:v,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:_,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};M.datetimeFormats=u.value,M.numberFormats=d.value,M.__datetimeFormatters=Qt(E)?E.__datetimeFormatters:void 0,M.__numberFormatters=Qt(E)?E.__numberFormatters:void 0;const j=D9(M);return r&&oT(j),j})(),$d(E,a.value,l.value);function T(){return[a.value,l.value,c.value,u.value,d.value]}const O=A({get:()=>a.value,set:M=>{E.locale=M,a.value=M}}),z=A({get:()=>l.value,set:M=>{E.fallbackLocale=M,l.value=M,$d(E,a.value,M)}}),P=A(()=>c.value),q=A(()=>u.value),X=A(()=>d.value);function J(){return Wt(b)?b:null}function F(M){b=M,E.postTranslation=M}function Q(){return g}function W(M){M!==null&&(v=gT(M)),g=M,E.missing=v}const ee=(M,j,ue,he,Fe,Ne)=>{T();let Qe;try{r||(E.fallbackContext=t?N9():void 0),Qe=M(E)}finally{r||(E.fallbackContext=void 0)}if(ue!=="translate exists"&&Nn(Qe)&&Qe===t_||ue==="translate exists"&&!Qe){const[xt,ft]=j();return t&&p?he(t):Fe(xt)}else{if(Ne(Qe))return Qe;throw no(Ds.UNEXPECTED_RETURN_TYPE)}};function N(...M){return ee(j=>Reflect.apply(fT,null,[j,...M]),()=>x0(...M),"translate",j=>Reflect.apply(j.t,j,[...M]),j=>j,j=>ye(j))}function de(...M){const[j,ue,he]=M;if(he&&!Ct(he))throw no(Ds.INVALID_ARGUMENT);return N(j,ue,gn({resolvedMessage:!0},he||{}))}function pe(...M){return ee(j=>Reflect.apply(aT,null,[j,...M]),()=>E0(...M),"datetime format",j=>Reflect.apply(j.d,j,[...M]),()=>Ag,j=>ye(j)||en(j))}function je(...M){return ee(j=>Reflect.apply(cT,null,[j,...M]),()=>k0(...M),"number format",j=>Reflect.apply(j.n,j,[...M]),()=>Ag,j=>ye(j)||en(j))}function Re(M){return M.map(j=>ye(j)||Nn(j)||hn(j)?hT(String(j)):j)}const Ie={normalize:Re,interpolate:M=>M,type:"vnode"};function Le(...M){return ee(j=>{let ue;const he=j;try{he.processor=Ie,ue=Reflect.apply(fT,null,[he,...M])}finally{he.processor=null}return ue},()=>x0(...M),"translate",j=>j[T0](...M),j=>[hT(j)],j=>en(j))}function fe(...M){return ee(j=>Reflect.apply(cT,null,[j,...M]),()=>k0(...M),"number format",j=>j[A0](...M),pT,j=>ye(j)||en(j))}function K(...M){return ee(j=>Reflect.apply(aT,null,[j,...M]),()=>E0(...M),"datetime format",j=>j[C0](...M),pT,j=>ye(j)||en(j))}function ie(M){S=M,E.pluralRules=S}function ae(M,j){return ee(()=>{if(!M)return!1;const ue=ye(j)?j:a.value,he=ye(j)?[ue]:S0(E,l.value,ue);for(let Fe=0;Fe<he.length;Fe++){const Ne=D(he[Fe]);let Qe=E.messageResolver(Ne,M);if(Qe===null&&(Qe=Ne[M]),Zo(Qe)||$i(Qe)||ye(Qe))return!0}return!1},()=>[M],"translate exists",ue=>Reflect.apply(ue.te,ue,[M,j]),eq,ue=>hn(ue))}function ge(M){let j=null;const ue=S0(E,l.value,a.value);for(let he=0;he<ue.length;he++){const Fe=c.value[ue[he]]||{},Ne=E.messageResolver(Fe,M);if(Ne!=null){j=Ne;break}}return j}function I(M){const j=ge(M);return j??(t?t.tm(M)||{}:{})}function D(M){return c.value[M]||{}}function B(M,j){if(s){const ue={[M]:j};for(const he in ue)Xs(ue,he)&&th(ue[he]);j=ue[M]}c.value[M]=j,E.messages=c.value}function Y(M,j){c.value[M]=c.value[M]||{};const ue={[M]:j};if(s)for(const he in ue)Xs(ue,he)&&th(ue[he]);j=ue[M],iu(j,c.value[M]),E.messages=c.value}function L(M){return u.value[M]||{}}function k(M,j){u.value[M]=j,E.datetimeFormats=u.value,lT(E,M,j)}function R(M,j){u.value[M]=gn(u.value[M]||{},j),E.datetimeFormats=u.value,lT(E,M,j)}function $(M){return d.value[M]||{}}function U(M,j){d.value[M]=j,E.numberFormats=d.value,uT(E,M,j)}function Z(M,j){d.value[M]=gn(d.value[M]||{},j),E.numberFormats=d.value,uT(E,M,j)}mT++,t&&xg&&(be(t.locale,M=>{i&&(a.value=M,E.locale=M,$d(E,a.value,l.value))}),be(t.fallbackLocale,M=>{i&&(l.value=M,E.fallbackLocale=M,$d(E,a.value,l.value))}));const re={id:mT,locale:O,fallbackLocale:z,get inheritLocale(){return i},set inheritLocale(M){i=M,M&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,$d(E,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:P,get modifiers(){return w},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return f}
57,set missingWarn(M){f=M,E.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(M){h=M,E.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(M){p=M},get fallbackFormat(){return m},set fallbackFormat(M){m=M,E.fallbackFormat=m},get warnHtmlMessage(){return _},set warnHtmlMessage(M){_=M,E.warnHtmlMessage=M},get escapeParameter(){return y},set escapeParameter(M){y=M,E.escapeParameter=M},t:N,getLocaleMessage:D,setLocaleMessage:B,mergeLocaleMessage:Y,getPostTranslationHandler:J,setPostTranslationHandler:F,getMissingHandler:Q,setMissingHandler:W,[X9]:ie};return re.datetimeFormats=q,re.numberFormats=X,re.rt=de,re.te=ae,re.tm=I,re.d=pe,re.n=je,re.getDateTimeFormat=L,re.setDateTimeFormat=k,re.mergeDateTimeFormat=R,re.getNumberFormat=$,re.setNumberFormat=U,re.mergeNumberFormat=Z,re[Q9]=n,re[T0]=Le,re[C0]=K,re[A0]=fe,re}const yS={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function tq({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===mt?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},Tt())}function UL(){return mt}const nq=oe({name:"i18n-t",props:gn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Nn(e)||!isNaN(e)}},yS),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||uc({useScope:e.scope,__useComponent:!0});return()=>{const o=()=>{const l=Object.keys(n).filter(d=>d[0]!=="_"),c=Tt();e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=ye(e.plural)?+e.plural:e.plural);const u=tq(t,l);return s[T0](e.keypath,u,c)},i=gn(Tt(),r),a=ye(e.tag)||Ct(e.tag)?e.tag:UL();return Ct(a)?qe(a,i,{default:o}):qe(a,i,o())}}}),vT=nq;function rq(e){return en(e)&&!ye(e[0])}function BL(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const i=()=>{const c={part:!0};let u=Tt();e.locale&&(c.locale=e.locale),ye(e.format)?c.key=e.format:Ct(e.format)&&(ye(e.format.key)&&(c.key=e.format.key),u=Object.keys(e.format).reduce((h,p)=>n.includes(p)?gn(Tt(),h,{[p]:e.format[p]}):h,Tt()));const d=r(e.value,c,u);let f=[c.key];return en(d)?f=d.map((h,p)=>{const m=s[h.type],g=m?m({[h.type]:h.value,index:p,parts:d}):[h.value];return rq(g)&&(g[0].key=`${h.type}-${p}`),g}):ye(d)&&(f=[d]),f},a=gn(Tt(),o),l=ye(e.tag)||Ct(e.tag)?e.tag:UL();return Ct(l)?qe(l,a,{default:i}):qe(l,a,i())}}const sq=oe({name:"i18n-n",props:gn({value:{type:Number,required:!0},format:{type:[String,Object]}},yS),setup(e,t){const n=e.i18n||uc({useScope:e.scope,__useComponent:!0});return BL(e,t,LL,(...r)=>n[A0](...r))}}),_T=sq;function oq(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function iq(e){const t=i=>{const{instance:a,value:l}=i;if(!a||!a.$)throw no(Ds.UNEXPECTED_ERROR);const c=oq(e,a.$),u=yT(l);return[Reflect.apply(c.t,c,[...bT(u)]),c]};return{created:(i,a)=>{const[l,c]=t(a);xg&&(i.__i18nWatcher=be(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{xg&&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=yT(a);i.textContent=Reflect.apply(l.t,l,[...bT(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function yT(e){if(ye(e))return{path:e};if(Qt(e)){if(!("path"in e))throw no(Ds.REQUIRED_VALUE,"path");return e}else throw no(Ds.INVALID_VALUE)}function bT(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,i={},a=r||{};return ye(n)&&(i.locale=n),Nn(s)&&(i.plural=s),Nn(o)&&(i.plural=o),[t,a,i]}function aq(e,t,...n){const r=Qt(n[0])?n[0]:{};(hn(r.globalInstall)?r.globalInstall:!0)&&([vT.name,"I18nT"].forEach(o=>e.component(o,vT)),[_T.name,"I18nN"].forEach(o=>e.component(o,_T)),[ET.name,"I18nD"].forEach(o=>e.component(o,ET))),e.directive("t",iq(t))}const lq=Xa("global-vue-i18n");function cq(e={}){const t=hn(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,s]=uq(e),o=Xa("");function i(u){return n.get(u)||null}function a(u,d){n.set(u,d)}function l(u){n.delete(u)}const c={get mode(){return"composition"}
57,async install(u,...d){if(u.__VUE_I18N_SYMBOL__=o,u.provide(u.__VUE_I18N_SYMBOL__,c),Qt(d[0])){const p=d[0];c.__composerExtend=p.__composerExtend,c.__vueI18nExtend=p.__vueI18nExtend}let f=null;t&&(f=vq(u,c.global)),aq(u,c,...d);const h=u.unmount;u.unmount=()=>{f&&f(),c.dispose(),h()}},get global(){return s},dispose(){r.stop()},__instances:n,__getInstance:i,__setInstance:a,__deleteInstance:l};return c}function uc(e={}){const t=FL();if(t==null)throw no(Ds.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw no(Ds.NOT_INSTALLED);const n=dq(t),r=hq(n),s=Z9(t),o=fq(e,s);if(o==="global")return J9(r,e,s),r;if(o==="parent"){let l=wT(n,t,e.__useComponent);return l==null&&(l=r),l}if(o==="isolated"){if(n.mode!=="composition")throw no(Ds.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const l=n,c=gn({},e),u=wT(n,t);c.__root=u||r;const d=R0(c);return l.__composerExtend&&(d[Vc]=l.__composerExtend(d)),ea()&&gs(()=>{const h=d[Vc];h&&(h(),delete d[Vc])}),d}const i=n;let a=i.__getInstance(t);if(a==null){const l=gn({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=R0(l),i.__composerExtend&&(a[Vc]=i.__composerExtend(a)),mq(i,t,a),i.__setInstance(t,a)}return a}function uq(e,t){const n=Ji(),r=n.run(()=>R0(e));if(r==null)throw no(Ds.UNEXPECTED_ERROR);return[n,r]}function dq(e){const t=vt(e.isCE?lq:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw no(e.isCE?Ds.NOT_INSTALLED_WITH_PROVIDE:Ds.UNEXPECTED_ERROR);return t}function fq(e,t){return hS(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function hq(e){return e.mode==="composition"?e.global:e.global.__composer}function wT(e,t,n=!1){let r=null;const s=t.root;let o=pq(t,n);for(;o!=null;){const i=e;if(e.mode==="composition"&&(r=i.__getInstance(o)),r!=null||s===o)break;o=o.parent}return r}function pq(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function mq(e,t,n){Ut(()=>{},t),qn(()=>{const r=n;e.__deleteInstance(t);const s=r[Vc];s&&(s(),delete r[Vc])},t)}const gq=["locale","fallbackLocale","availableLocales"],ST=["t","rt","d","n","tm","te"];function vq(e,t){const n=Object.create(null);return gq.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o)throw no(Ds.UNEXPECTED_ERROR);const i=et(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,s,i)}),e.config.globalProperties.$i18n=n,ST.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o||!o.value)throw no(Ds.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,o)}),()=>{delete e.config.globalProperties.$i18n,ST.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const _q=oe({name:"i18n-d",props:gn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yS),setup(e,t){const n=e.i18n||uc({useScope:e.scope,__useComponent:!0});return BL(e,t,PL,(...r)=>n[C0](...r))}}),ET=_q;O9(g9);P9(A9);L9(S0);const yq=["textColorPrimary","inputBorderRadius","ctaBorderRadius","backgroundColor","displayCheckoutDetailsBox","checkoutTitle","displayBaseCheckoutShadows","iframeContentMaxWidth"],n_=()=>{const e=Pr(),{t}=uc(),n=A(()=>({textColorPrimary:"#373737",inputBorderRadius:"0.375rem",ctaBorderRadius:"0.5rem",backgroundColor:"#FFFFFF",displayCheckoutDetailsBox:!0,checkoutTitle:t("tokenized.common.cardFormNew.title"),displayBaseCheckoutShadows:!0,iframeC
57ontentMaxWidth:!1})),r=(h,p)=>{const m=Array.isArray(h)?h[0]:h;return m==null||m===""?p:String(m)},s=(h,p)=>{const m=Array.isArray(h)?h[0]:h;if(m==null||m==="")return p;const g=String(m).trim().toLowerCase();return g==="false"?!1:g==="true"?!0:p},o=A(()=>qx(r(e.query.textColorPrimary,n.value.textColorPrimary),n.value.textColorPrimary)),i=A(()=>Wx(r(e.query.inputBorderRadius,n.value.inputBorderRadius),n.value.inputBorderRadius)),a=A(()=>Wx(r(e.query.ctaBorderRadius,n.value.ctaBorderRadius),n.value.ctaBorderRadius)),l=A(()=>qx(r(e.query.backgroundColor,n.value.backgroundColor),n.value.backgroundColor)),c=A(()=>s(e.query.displayCheckoutDetailsBox,n.value.displayCheckoutDetailsBox)),u=A(()=>s(e.query.displayBaseCheckoutShadows,n.value.displayBaseCheckoutShadows)),d=A(()=>r(e.query.checkoutTitle,n.value.checkoutTitle)),f=A(()=>s(e.query.iframeContentMaxWidth,n.value.iframeContentMaxWidth));return{textColorPrimary:o,inputBorderRadius:i,ctaBorderRadius:a,backgroundColor:l,displayCheckoutDetailsBox:c,checkoutTitle:d,displayBaseCheckoutShadows:u,iframeContentMaxWidth:f}},VL=[...yq,"redirection","branding","accessSource","sentBy","portal","interactionEsid","embedder","sessionId"],bq=["nextPath","nextQuery","useInternalNavigation","previous"],wq=(e,t,n=[])=>[...new Set([...VL,...n])].filter(s=>e[s]&&!t[s]&&typeof e[s]=="string").reduce((s,o)=>({...s,[o]:e[o]}),{}),jL=(e,t)=>{const n=new URL(e,window.location.origin);return VL.forEach(r=>{const s=t[r];s&&typeof s=="string"&&!n.searchParams.has(r)&&n.searchParams.set(r,s)}),e.startsWith("http")?n.toString():`${n.pathname}${n.search}`},Sq=e=>{try{return new URL(e,window.location.origin).origin===window.location.origin}catch{return!1}},B0e=(e,t)=>Sq(e)?jL(e,t):e,Eq=e=>{try{let t=decodeURIComponent(atob(e.previous??""));return t.length===0?null:(t.startsWith("/")||(t=`/${t}`),t)}catch{return null}},V0e=e=>{const t=Eq(e);return t?jL(window.location.origin+t,e):null},kq=(e,t)=>{const n=wq(t.query,e.query,e.path.startsWith("/checkout")?bq:[]);if(Object.keys(n).length>0)return xr({path:e.path,query:{...e.query,...n}})};/** 58 * @license 59 * Copyright 2025 Google LLC 60 * 61 * Licensed under the Apache License, Version 2.0 (the "License"); 62 * you may not use this file except in compliance with the License. 63 * You may obtain a copy of the License at 64 * 65 * http://www.apache.org/licenses/LICENSE-2.0 66 * 67 * Unless required by applicable law or agreed to in writing, software 68 * distributed under the License is distributed on an "AS IS" BASIS, 69 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 70 * See the License for the specific language governing permissions and 71 * limitations under the License. 72 */const xq=()=>{};var kT={};/** 73 * @license 74 * Copyright 2017 Google LLC 75 * 76 * Licensed under the Apache License, Version 2.0 (the "License"); 77 * you may not use this file except in compliance with the License. 78 * You may obtain a copy of the License at 79 * 80 * http://www.apache.org/licenses/LICENSE-2.0 81 * 82 * Unless required by applicable law or agreed to in writing, software 83 * distributed under the License is distributed on an "AS IS" BASIS, 84 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 85 * See the License for the specific language governing permissions and 86 * limitations under the License. 87 */const HL=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);s<128?t[n++]=s:s<2048?(t[n++]=s>>6|192,t[n++]=s&63|128):(s&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(s=65536+((s&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=s>>18|240,t[n++]=s>>12&63|128,t[n++]=s>>6&63|128,t[n++]=s&63|128):(t[n++]=s>>12|224,t[n++]=s>>6&63|128,t[n++]=s&63|128)}return t},Tq=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const s=e[n++];if(s<128)t[r++]=String.fromCharCode(s);else if(s>191&&s<224){const o=e[n++];t[r++]=String.fromCharCode((s&31)<<6|o&63)}else if(s>239&&s<365){const o=e[n++],i=e[n++],a=e[n++],l=((s&7)<<18|(o&63)<<12|(i&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const o=e[n++],i=e[n++];t[r++]=String.fromCharCode((s&15)<<12|(o&63)<<6|i&63)}}return t.join("")},zL={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s<e.length;s+=3){const o=e[s],i=s+1<e.length,a=i?e[s+1]:0,l=s+2<e.length,c=l?e[s+2]:0,u=o>>2,d=(o&3)<<4|a>>4;let f=(a&15)<<2|c>>6,h=c&63;l||(h=64,i||(f=64)),r.push(n[u],n[d],n[f],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(HL(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):Tq(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s<e.length;){const o=n[e.charAt(s++)],a=s<e.length?n[e.charAt(s)]:0;++s;const c=s<e.length?n[e.charAt(s)]:64;++s;const d=s<e.length?n[e.charAt(s)]:64;if(++s,o==null||a==null||c==null||d==null)throw new Cq;const f=o<<2|a>>4;if(r.push(f),c!==64){const h=a<<4&240|c>>2;if(r.push(h),d!==64){const p=c<<6&192|d;r.push(p)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
87class Cq extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Aq=function(e){const t=HL(e);return zL.encodeByteArray(t,!0)},qL=function(e){return Aq(e).replace(/\./g,"")},WL=function(e){try{return zL.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** 88 * @license 89 * Copyright 2022 Google LLC 90 * 91 * Licensed under the Apache License, Version 2.0 (the "License"); 92 * you may not use this file except in compliance with the License. 93 * You may obtain a copy of the License at 94 * 95 * http://www.apache.org/licenses/LICENSE-2.0 96 * 97 * Unless required by applicable law or agreed to in writing, software 98 * distributed under the License is distributed on an "AS IS" BASIS, 99 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 100 * See the License for the specific language governing permissions and 101 * limitations under the License. 102 */function Rq(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("Unable to locate global object.")}/** 103 * @license 104 * Copyright 2022 Google LLC 105 * 106 * Licensed under the Apache License, Version 2.0 (the "License"); 107 * you may not use this file except in compliance with the License. 108 * You may obtain a copy of the License at 109 * 110 * http://www.apache.org/licenses/LICENSE-2.0 111 * 112 * Unless required by applicable law or agreed to in writing, software 113 * distributed under the License is distributed on an "AS IS" BASIS, 114 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115 * See the License for the specific language governing permissions and 116 * limitations under the License. 117 */const Iq=()=>Rq().__FIREBASE_DEFAULTS__,Oq=()=>{if(typeof process>"u"||typeof kT>"u")return;const e=kT.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Pq=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&WL(e[1]);return t&&JSON.parse(t)},bS=()=>{try{return xq()||Iq()||Oq()||Pq()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Lq=e=>bS()?.emulatorHosts?.[e],KL=()=>bS()?.config,GL=e=>bS()?.[`_${e}`];/** 118 * @license 119 * Copyright 2017 Google LLC 120 * 121 * Licensed under the Apache License, Version 2.0 (the "License"); 122 * you may not use this file except in compliance with the License. 123 * You may obtain a copy of the License at 124 * 125 * http://www.apache.org/licenses/LICENSE-2.0 126 * 127 * Unless required by applicable law or agreed to in writing, software 128 * distributed under the License is distributed on an "AS IS" BASIS, 129 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 130 * See the License for the specific language governing permissions and 131 * limitations under the License. 132 */class Nq{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/** 133 * @license 134 * Copyright 2025 Google LLC 135 * 136 * Licensed under the Apache License, Version 2.0 (the "License"); 137 * you may not use this file except in compliance with the License. 138 * You may obtain a copy of the License at 139 * 140 * http://www.apache.org/licenses/LICENSE-2.0 141 * 142 * Unless required by applicable law or agreed to in writing, software 143 * distributed under the License is distributed on an "AS IS" BASIS, 144 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 145 * See the License for the specific language governing permissions and 146 * limitations under the License. 147 */function r_(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function Dq(e){return(await fetch(e,{credentials:"include"})).ok}const Sf={};function Mq(){const e={prod:[],emulator:[]};for(const t of Object.keys(Sf))Sf[t]?e.emulator.push(t):e.prod.push(t);return e}function $q(e){let t=document.getElementById(e),n=!1;return t||(t=document.createElement("div"),t.setAttribute("id",e),n=!0),{created:n,element:t}}let xT=!1;function Fq(e,t){if(typeof window>"u"||typeof document>"u"||!r_(window.location.host)||Sf[e]===t||Sf[e]||xT)return;Sf[e]=t;function n(f){return`__firebase__banner__${f}`}const r="__firebase__banner",o=Mq().prod.length>0;function i(){const f=document.getElementById(r);f&&f.remove()}function a(f){f.style.display="flex",f.style.background="#7faaf0",f.style.position="fixed",f.style.bottom="5px",f.style.left="5px",f.style.padding=".5em",f.style.borderRadius="5px",f.style.alignItems="center"}function l(f,h){f.setAttribute("width","24"),f.setAttribute("id",h),f.setAttribute("height","24"),f.setAttribute("viewBox","0 0 24 24"),f.setAttribute("fill","none"),f.style.marginLeft="-6px"}function c(){const f=document.createElement("span");
147return f.style.cursor="pointer",f.style.marginLeft="16px",f.style.fontSize="24px",f.innerHTML=" ×",f.onclick=()=>{xT=!0,i()},f}function u(f,h){f.setAttribute("id",h),f.innerText="Learn more",f.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",f.setAttribute("target","__blank"),f.style.paddingLeft="5px",f.style.textDecoration="underline"}function d(){const f=$q(r),h=n("text"),p=document.getElementById(h)||document.createElement("span"),m=n("learnmore"),g=document.getElementById(m)||document.createElement("a"),v=n("preprendIcon"),b=document.getElementById(v)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(f.created){const _=f.element;a(_),u(g,m);const y=c();l(b,v),_.append(b,p,g,y),document.body.appendChild(_)}o?(p.innerText="Preview backend disconnected.",b.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 148<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 149</g> 150<defs> 151<clipPath id="clip0_6013_33858"> 152<rect width="24" height="24" fill="white"/> 153</clipPath> 154</defs>`):(b.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 155<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 156</g> 157<defs> 158<clipPath id="clip0_6083_34804"> 159<rect width="24" height="24" fill="white"/> 160</clipPath> 161</defs>`,p.innerText="Preview backend running in this workspace."),p.setAttribute("id",h)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",d):d()}/** 162 * @license 163 * Copyright 2017 Google LLC 164 * 165 * Licensed under the Apache License, Version 2.0 (the "License"); 166 * you may not use this file except in compliance with the License. 167 * You may obtain a copy of the License at 168 * 169 * http://www.apache.org/licenses/LICENSE-2.0 170 * 171 * Unless required by applicable law or agreed to in writing, software 172 * distributed under the License is distributed on an "AS IS" BASIS, 173 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 174 * See the License for the specific language governing permissions and 175 * limitations under the License. 176 */function Xr(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Uq(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Xr())}function Bq(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Vq(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function jq(){return typeof navigator=="object"&&navigator.product==="ReactNative"}
176function Hq(){const e=Xr();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function zq(){try{return typeof indexedDB=="object"}catch{return!1}}function qq(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{t(s.error?.message||"")}}catch(n){t(n)}})}/** 177 * @license 178 * Copyright 2017 Google LLC 179 * 180 * Licensed under the Apache License, Version 2.0 (the "License"); 181 * you may not use this file except in compliance with the License. 182 * You may obtain a copy of the License at 183 * 184 * http://www.apache.org/licenses/LICENSE-2.0 185 * 186 * Unless required by applicable law or agreed to in writing, software 187 * distributed under the License is distributed on an "AS IS" BASIS, 188 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 189 * See the License for the specific language governing permissions and 190 * limitations under the License. 191 */const Wq="FirebaseError";
191class Ja extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Wq,Object.setPrototypeOf(this,Ja.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,sp.prototype.create)}}class sp{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},s=`${this.service}/${t}`,o=this.errors[t],i=o?Kq(o,r):"Error",a=`${this.serviceName}: ${i} (${s}).`;return new Ja(s,a,r)}}function Kq(e,t){return e.replace(Gq,(n,r)=>{const s=t[r];return s!=null?String(s):`<${r}?>`})}const Gq=/\{\$([^}]+)}/g;function Yq(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Ou(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const s of n){if(!r.includes(s))return!1;const o=e[s],i=t[s];if(TT(o)&&TT(i)){if(!Ou(o,i))return!1}else if(o!==i)return!1}for(const s of r)if(!n.includes(s))return!1;return!0}function TT(e){return e!==null&&typeof e=="object"}/** 192 * @license 193 * Copyright 2017 Google LLC 194 * 195 * Licensed under the Apache License, Version 2.0 (the "License"); 196 * you may not use this file except in compliance with the License. 197 * You may obtain a copy of the License at 198 * 199 * http://www.apache.org/licenses/LICENSE-2.0 200 * 201 * Unless required by applicable law or agreed to in writing, software 202 * distributed under the License is distributed on an "AS IS" BASIS, 203 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 204 * See the License for the specific language governing permissions and 205 * limitations under the License. 206 */function op(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(s=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(s))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function Xq(e,t){const n=new Qq(e,t);return n.subscribe.bind(n)}class Qq{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let s;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Zq(t,["next","error","complete"])?s=t:s={next:t,error:n,complete:r},s.next===void 0&&(s.next=yy),s.error===void 0&&(s.error=yy),s.complete===void 0&&(s.complete=yy);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?s.error(this.finalError):s.complete()}catch{}}),this.observers.push(s),o}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,t)}sendOne(t,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Zq(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function yy(){}/** 207 * @license 208 * Copyright 2021 Google LLC 209 * 210 * Licensed under the Apache License, Version 2.0 (the "License"); 211 * you may not use this file except in compliance with the License. 212 * You may obtain a copy of the License at 213 * 214 * http://www.apache.org/licenses/LICENSE-2.0 215 * 216 * Unless required by applicable law or agreed to in writing, software 217 * distributed under the License is distributed on an "AS IS" BASIS, 218 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 219 * See the License for the specific language governing permissions and 220 * limitations under the License. 221 */function el(e){return e&&e._delegate?e._delegate:e}class Pu{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 222 * @license 223 * Copyright 2019 Google LLC 224 * 225 * Licensed under the Apache License, Version 2.0 (the "License");
226 * you may not use this file except in compliance with the License. 227 * You may obtain a copy of the License at 228 * 229 * http://www.apache.org/licenses/LICENSE-2.0 230 * 231 * Unless required by applicable law or agreed to in writing, software 232 * distributed under the License is distributed on an "AS IS" BASIS, 233 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 234 * See the License for the specific language governing permissions and 235 * limitations under the License. 236 */const yl="[DEFAULT]";/** 237 * @license 238 * Copyright 2019 Google LLC 239 * 240 * Licensed under the Apache License, Version 2.0 (the "License"); 241 * you may not use this file except in compliance with the License. 242 * You may obtain a copy of the License at 243 * 244 * http://www.apache.org/licenses/LICENSE-2.0 245 * 246 * Unless required by applicable law or agreed to in writing, software 247 * distributed under the License is distributed on an "AS IS" BASIS, 248 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 249 * See the License for the specific language governing permissions and 250 * limitations under the License. 251 */class Jq{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new Nq;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:n});s&&r.resolve(s)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){const n=this.normalizeInstanceIdentifier(t?.identifier),r=t?.optional??!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(s){if(r)return null;throw s}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(t7(t))try{this.getOrInitializeService({instanceIdentifier:yl})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:s});r.resolve(o)}catch{}}}}clearInstance(t=yl){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=yl){return this.instances.has(t)}getOptions(t=yl){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,i]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(o);r===a&&i.resolve(s)}return s}onInit(t,n){const r=this.normalizeInstanceIdentifier(n),s=this.onInitCallbacks.get(r)??new Set;s.add(t),this.onInitCallbacks.set(r,s);const o=this.instances.get(r);return o&&t(o,r),()=>{s.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:e7(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=yl){return this.component?this.component.multipleInstances?t:yl:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function e7(e){return e===yl?void 0:e}function t7(e){return e.instantiationMode==="EAGER"}/** 252 * @license 253 * Copyright 2019 Google LLC 254 * 255 * Licensed under the Apache License, Version 2.0 (the "License");
256 * you may not use this file except in compliance with the License. 257 * You may obtain a copy of the License at 258 * 259 * http://www.apache.org/licenses/LICENSE-2.0 260 * 261 * Unless required by applicable law or agreed to in writing, software 262 * distributed under the License is distributed on an "AS IS" BASIS, 263 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 264 * See the License for the specific language governing permissions and 265 * limitations under the License. 266 */class n7{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new Jq(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** 267 * @license 268 * Copyright 2017 Google LLC 269 * 270 * Licensed under the Apache License, Version 2.0 (the "License"); 271 * you may not use this file except in compliance with the License. 272 * You may obtain a copy of the License at 273 * 274 * http://www.apache.org/licenses/LICENSE-2.0 275 * 276 * Unless required by applicable law or agreed to in writing, software 277 * distributed under the License is distributed on an "AS IS" BASIS, 278 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 279 * See the License for the specific language governing permissions and 280 * limitations under the License. 281 */var zt;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(zt||(zt={}));const r7={debug:zt.DEBUG,verbose:zt.VERBOSE,info:zt.INFO,warn:zt.WARN,error:zt.ERROR,silent:zt.SILENT},s7=zt.INFO,o7={[zt.DEBUG]:"log",[zt.VERBOSE]:"log",[zt.INFO]:"info",[zt.WARN]:"warn",[zt.ERROR]:"error"},i7=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),s=o7[t];if(s)console[s](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class YL{constructor(t){this.name=t,this._logLevel=s7,this._logHandler=i7,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in zt))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?r7[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,zt.DEBUG,...t),this._logHandler(this,zt.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,zt.VERBOSE,...t),this._logHandler(this,zt.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,zt.INFO,...t),this._logHandler(this,zt.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,zt.WARN,...t),this._logHandler(this,zt.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,zt.ERROR,...t),this._logHandler(this,zt.ERROR,...t)}}const a7=(e,t)=>t.some(n=>e instanceof n);let CT,AT;function l7(){return CT||(CT=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function c7(){return AT||(AT=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const XL=new WeakMap,I0=new WeakMap,QL=new WeakMap,by=new WeakMap,wS=new WeakMap;function u7(e){const t=new Promise((n,r)=>{const s=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{n(Ra(e.result)),s()},i=()=>{r(e.error),s()};e.addEventListener("success",o),e.addEventListener("error",i)});return t.then(n=>{n instanceof IDBCursor&&XL.set(n,e)}).catch(()=>{}),wS.set(t,e),t}function d7(e){if(I0.has(e))return;const t=new Promise((n,r)=>{const s=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{n(),s()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),s()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});I0.set(e,t)}let O0={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return I0.get(e);if(t==="objectStoreNames")return e.objectStoreNames||QL.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ra(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function f7(e){O0=e(O0)}function h7(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(wy(this),t,...n);return QL.set(r,t.sort?t.sort():[t]),Ra(r)}:c7().includes(e)?function(...t){return e.apply(wy(this),t),Ra(XL.get(this))}:function(...t){return Ra(e.apply(wy(this),t))}}function p7(e){return typeof e=="function"?h7(e):(e instanceof IDBTransaction&&d7(e),a7(e,l7())?new Proxy(e,O0):e)}function Ra(e){if(e instanceof IDBRequest)return u7(e);if(by.has(e))return by.get(e);const t=p7(e);return t!==e&&(by.set(e,t),wS.set(t,e)),t}const wy=e=>wS.get(e);function m7(e,t,{blocked:n,upgrade:r,blocking:s,terminated:o}={}){const i=indexedDB.open(e,t),a=Ra(i);return r&&i.addEventListener("upgradeneeded",l=>{r(Ra(i.result),l.oldVersion,l.newVersion,Ra(i.transaction),l)}),n&&i.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),s&&l.addEventListener("versionchange",c=>s(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const g7=["get","getKey","getAll","getAllKeys","count"],v7=["put","add","delete","clear"],Sy=new Map;function RT(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Sy.get(t))return Sy.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,s=v7.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||g7.includes(n)))return;const o=async function(i,...a){const l=this.transaction(i,s?"readwrite":"readonly");let c=l.store;
281return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),s&&l.done]))[0]};return Sy.set(t,o),o}f7(e=>({...e,get:(t,n,r)=>RT(t,n)||e.get(t,n,r),has:(t,n)=>!!RT(t,n)||e.has(t,n)}));/** 282 * @license 283 * Copyright 2019 Google LLC 284 * 285 * Licensed under the Apache License, Version 2.0 (the "License"); 286 * you may not use this file except in compliance with the License. 287 * You may obtain a copy of the License at 288 * 289 * http://www.apache.org/licenses/LICENSE-2.0 290 * 291 * Unless required by applicable law or agreed to in writing, software 292 * distributed under the License is distributed on an "AS IS" BASIS, 293 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 294 * See the License for the specific language governing permissions and 295 * limitations under the License. 296 */class _7{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(y7(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function y7(e){return e.getComponent()?.type==="VERSION"}const P0="@firebase/app",IT="0.14.2";/** 297 * @license 298 * Copyright 2019 Google LLC 299 * 300 * Licensed under the Apache License, Version 2.0 (the "License"); 301 * you may not use this file except in compliance with the License. 302 * You may obtain a copy of the License at 303 * 304 * http://www.apache.org/licenses/LICENSE-2.0 305 * 306 * Unless required by applicable law or agreed to in writing, software 307 * distributed under the License is distributed on an "AS IS" BASIS, 308 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 309 * See the License for the specific language governing permissions and 310 * limitations under the License. 311 */const Hi=new YL("@firebase/app"),b7="@firebase/app-compat",w7="@firebase/analytics-compat",S7="@firebase/analytics",E7="@firebase/app-check-compat",k7="@firebase/app-check",x7="@firebase/auth",T7="@firebase/auth-compat",C7="@firebase/database",A7="@firebase/data-connect",R7="@firebase/database-compat",I7="@firebase/functions",O7="@firebase/functions-compat",P7="@firebase/installations",L7="@firebase/installations-compat",N7="@firebase/messaging",D7="@firebase/messaging-compat",M7="@firebase/performance",$7="@firebase/performance-compat",F7="@firebase/remote-config",U7="@firebase/remote-config-compat",B7="@firebase/storage",V7="@firebase/storage-compat",j7="@firebase/firestore",H7="@firebase/ai",z7="@firebase/firestore-compat",q7="firebase",W7="12.2.0";/** 312 * @license 313 * Copyright 2019 Google LLC 314 * 315 * Licensed under the Apache License, Version 2.0 (the "License"); 316 * you may not use this file except in compliance with the License. 317 * You may obtain a copy of the License at 318 * 319 * http://www.apache.org/licenses/LICENSE-2.0 320 * 321 * Unless required by applicable law or agreed to in writing, software 322 * distributed under the License is distributed on an "AS IS" BASIS, 323 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 324 * See the License for the specific language governing permissions and 325 * limitations under the License. 326 */const L0="[DEFAULT]",K7={[P0]:"fire-core",[b7]:"fire-core-compat",[S7]:"fire-analytics",[w7]:"fire-analytics-compat",[k7]:"fire-app-check",[E7]:"fire-app-check-compat",[x7]:"fire-auth",[T7]:"fire-auth-compat",[C7]:"fire-rtdb",[A7]:"fire-data-connect",[R7]:"fire-rtdb-compat",[I7]:"fire-fn",[O7]:"fire-fn-compat",[P7]:"fire-iid",[L7]:"fire-iid-compat",[N7]:"fire-fcm",[D7]:"fire-fcm-compat",[M7]:"fire-perf",[$7]:"fire-perf-compat",[F7]:"fire-rc",[U7]:"fire-rc-compat",[B7]:"fire-gcs",[V7]:"fire-gcs-compat",[j7]:"fire-fst",[z7]:"fire-fst-compat",[H7]:"fire-vertex","fire-js":"fire-js",[q7]:"fire-js-all"};/** 327 * @license 328 * Copyright 2019 Google LLC 329 * 330 * Licensed under the Apache License, Version 2.0 (the "License"); 331 * you may not use this file except in compliance with the License. 332 * You may obtain a copy of the License at 333 * 334 * http://www.apache.org/licenses/LICENSE-2.0 335 * 336 * Unless required by applicable law or agreed to in writing, software 337 * distributed under the License is distributed on an "AS IS" BASIS, 338 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 339 * See the License for the specific language governing permissions and 340 * limitations under the License. 341 */const Rg=new Map,G7=new Map,N0=new Map;function OT(e,t){try{e.container.addComponent(t)}catch(n){Hi.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function nh(e){const t=e.name;if(N0.has(t))return Hi.debug(`There were multiple attempts to register component ${t}.`),!1;N0.set(t,e);for(const n of Rg.values())OT(n,e);for(const n of G7.values())OT(n,e);return!0}function ZL(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function qo(e){return e==null?!1:e.settings!==void 0}/** 342 * @license 343 * Copyright 2019 Google LLC 344 * 345 * Licensed under the Apache License, Version 2.0 (the "License");
346 * you may not use this file except in compliance with the License. 347 * You may obtain a copy of the License at 348 * 349 * http://www.apache.org/licenses/LICENSE-2.0 350 * 351 * Unless required by applicable law or agreed to in writing, software 352 * distributed under the License is distributed on an "AS IS" BASIS, 353 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 354 * See the License for the specific language governing permissions and 355 * limitations under the License. 356 */const Y7={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
356d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Ia=new sp("app","Firebase",Y7);/** 357 * @license 358 * Copyright 2019 Google LLC 359 * 360 * Licensed under the Apache License, Version 2.0 (the "License"); 361 * you may not use this file except in compliance with the License. 362 * You may obtain a copy of the License at 363 * 364 * http://www.apache.org/licenses/LICENSE-2.0 365 * 366 * Unless required by applicable law or agreed to in writing, software 367 * distributed under the License is distributed on an "AS IS" BASIS, 368 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 369 * See the License for the specific language governing permissions and 370 * limitations under the License. 371 */class X7{constructor(t,n,r){this._isDeleted=!1,this._options={...t},this._config={...n},this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Pu("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Ia.create("app-deleted",{appName:this._name})}}/** 372 * @license 373 * Copyright 2019 Google LLC 374 * 375 * Licensed under the Apache License, Version 2.0 (the "License"); 376 * you may not use this file except in compliance with the License. 377 * You may obtain a copy of the License at 378 * 379 * http://www.apache.org/licenses/LICENSE-2.0 380 * 381 * Unless required by applicable law or agreed to in writing, software 382 * distributed under the License is distributed on an "AS IS" BASIS, 383 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 384 * See the License for the specific language governing permissions and 385 * limitations under the License. 386 */const ip=W7;function JL(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r={name:L0,automaticDataCollectionEnabled:!0,...t},s=r.name;if(typeof s!="string"||!s)throw Ia.create("bad-app-name",{appName:String(s)});if(n||(n=KL()),!n)throw Ia.create("no-options");const o=Rg.get(s);if(o){if(Ou(n,o.options)&&Ou(r,o.config))return o;throw Ia.create("duplicate-app",{appName:s})}const i=new n7(s);for(const l of N0.values())i.addComponent(l);const a=new X7(n,r,i);return Rg.set(s,a),a}function eN(e=L0){const t=Rg.get(e);if(!t&&e===L0&&KL())return JL();if(!t)throw Ia.create("no-app",{appName:e});return t}function au(e,t,n){let r=K7[e]??e;n&&(r+=`-${n}`);const s=r.match(/\s|\//),o=t.match(/\s|\//);if(s||o){const i=[`Unable to register library "${r}" with version "${t}":`];s&&i.push(`library name "${r}" contains illegal characters (whitespace or "/")`),s&&o&&i.push("and"),o&&i.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Hi.warn(i.join(" "));return}nh(new Pu(`${r}-version`,()=>({library:r,version:t}),"VERSION"))}/** 387 * @license 388 * Copyright 2021 Google LLC 389 * 390 * Licensed under the Apache License, Version 2.0 (the "License"); 391 * you may not use this file except in compliance with the License. 392 * You may obtain a copy of the License at 393 * 394 * http://www.apache.org/licenses/LICENSE-2.0 395 * 396 * Unless required by applicable law or agreed to in writing, softw
396are 397 * distributed under the License is distributed on an "AS IS" BASIS, 398 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 399 * See the License for the specific language governing permissions and 400 * limitations under the License. 401 */const Q7="firebase-heartbeat-database",Z7=1,rh="firebase-heartbeat-store";let Ey=null;function tN(){return Ey||(Ey=m7(Q7,Z7,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(rh)}catch(n){console.warn(n)}}}}).catch(e=>{throw Ia.create("idb-open",{originalErrorMessage:e.message})})),Ey}async function J7(e){try{const n=(await tN()).transaction(rh),r=await n.objectStore(rh).get(nN(e));return await n.done,r}catch(t){if(t instanceof Ja)Hi.warn(t.message);else{const n=Ia.create("idb-get",{originalErrorMessage:t?.message});Hi.warn(n.message)}}}async function PT(e,t){try{const r=(await tN()).transaction(rh,"readwrite");await r.objectStore(rh).put(t,nN(e)),await r.done}catch(n){if(n instanceof Ja)Hi.warn(n.message);else{const r=Ia.create("idb-set",{originalErrorMessage:n?.message});Hi.warn(r.message)}}}function nN(e){return`${e.name}!${e.options.appId}`}/** 402 * @license 403 * Copyright 2021 Google LLC 404 * 405 * Licensed under the Apache License, Version 2.0 (the "License"); 406 * you may not use this file except in compliance with the License. 407 * You may obtain a copy of the License at 408 * 409 * http://www.apache.org/licenses/LICENSE-2.0 410 * 411 * Unless required by applicable law or agreed to in writing, software 412 * distributed under the License is distributed on an "AS IS" BASIS, 413 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 414 * See the License for the specific language governing permissions and 415 * limitations under the License. 416 */const eW=1024,tW=30;class nW{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new sW(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=LT();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(s=>s.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>tW){const s=oW(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(s,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(t){Hi.warn(t)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const t=LT(),{heartbeatsToSend:n,unsentEntries:r}=rW(this._heartbeatsCache.heartbeats),s=qL(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(t){return Hi.warn(t),""}}}function LT(){return new Date().toISOString().substring(0,10)}function rW(e,t=eW){const n=[];let r=e.slice();for(const s of e){const o=n.find(i=>i.agent===s.agent);if(o){if(o.dates.push(s.date),NT(n)>t){o.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),NT(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class sW{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return zq()?qq().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await J7(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){if(await this._canUseIndexedDBPromise){const r=await this.read();return PT(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){if(await this._canUseIndexedDBPromise){const r=await this.read();return PT(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...t.heartbeats]})}else return}}function NT(e){return qL(JSON.stringify({version:2,heartbeats:e})).length}function oW(e){if(e.length===0)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}/** 417 * @license 418 * Copyright 2019 Google LLC 419 * 420 * Licensed under the Apache License, Version 2.0 (the "License");
421 * you may not use this file except in compliance with the License. 422 * You may obtain a copy of the License at 423 * 424 * http://www.apache.org/licenses/LICENSE-2.0 425 * 426 * Unless required by applicable law or agreed to in writing, software 427 * distributed under the License is distributed on an "AS IS" BASIS, 428 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 429 * See the License for the specific language governing permissions and 430 * limitations under the License. 431 */function iW(e){nh(new Pu("platform-logger",t=>new _7(t),"PRIVATE")),nh(new Pu("heartbeat",t=>new nW(t),"PRIVATE")),au(P0,IT,e),au(P0,IT,"esm2020"),au("fire-js","")}iW("");function rN(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const aW=rN,sN=new sp("auth","Firebase",rN());/** 432 * @license 433 * Copyright 2020 Google LLC 434 * 435 * Licensed under the Apache License, Version 2.0 (the "License"); 436 * you may not use this file except in compliance with the License. 437 * You may obtain a copy of the License at 438 * 439 * http://www.apache.org/licenses/LICENSE-2.0 440 * 441 * Unless required by applicable law or agreed to in writing, software 442 * distributed under the License is distributed on an "AS IS" BASIS, 443 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 444 * See the License for the specific language governing permissions and 445 * limitations under the License. 446 */const Ig=new YL("@firebase/auth");function lW(e,...t){Ig.logLevel<=zt.WARN&&Ig.warn(`Auth (${ip}): ${e}`,...t)}function Cm(e,...t){Ig.logLevel<=zt.ERROR&&Ig.error(`Auth (${ip}): ${e}`,...t)}/** 447 * @license 448 * Copyright 2020 Google LLC 449 * 450 * Licensed under the Apache License, Version 2.0 (the "License"); 451 * you may not use this file except in compliance with the License. 452 * You may obtain a copy of the License at 453 * 454 * http://www.apache.org/licenses/LICENSE-2.0 455 * 456 * Unless required by applicable law or agreed to in writing, software 457 * distributed under the License is distributed on an "AS IS" BASIS, 458 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 459 * See the License for the specific language governing permissions and 460 * limitations under the License. 461 */function zi(e,...t){throw SS(e,...t)}function Jo(e,...t){return SS(e,...t)}function oN(e,t,n){const r={...aW(),[t]:n};return new sp("auth","Firebase",r).create(t,{appName:e.name})}function Oa(e){return oN(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function SS(e,...t){if(typeof e!="string"){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return sN.create(e,...t)}function He(e,t,...n){if(!e)throw SS(t,...n)}function Li(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Cm(t),new Error(t)}function qi(e,t){e||Li(t)}/** 462 * @license 463 * Copyright 2020 Google LLC 464 * 465 * Licensed under the Apache License, Version 2.0 (the "License"); 466 * you may not use this file except in compliance with the License. 467 * You may obtain a copy of the License at 468 * 469 * http://www.apache.org/licenses/LICENSE-2.0 470 * 471 * Unless required by applicable law or agreed to in writing, software 472 * distributed under the License is distributed on an "AS IS" BASIS, 473 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 474 * See the License for the specific language governing permissions and 475 * limitations under the License. 476 */function D0(){return typeof self<"u"&&self.location?.href||""}function cW(){return DT()==="http:"||DT()==="https:"}function DT(){return typeof self<"u"&&self.location?.protocol||null}/** 477 * @license 478 * Copyright 2020 Google LLC 479 * 480 * Licensed under the Apache License, Version 2.0 (the "License"); 481 * you may not use this file except in compliance with the License. 482 * You may obtain a copy of the License at 483 * 484 * http://www.apache.org/licenses/LICENSE-2.0 485 * 486 * Unless required by applicable law or agreed to in writing, softw
486are 487 * distributed under the License is distributed on an "AS IS" BASIS, 488 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 489 * See the License for the specific language governing permissions and 490 * limitations under the License. 491 */function uW(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(cW()||Vq()||"connection"in navigator)?navigator.onLine:!0}function dW(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/** 492 * @license 493 * Copyright 2020 Google LLC 494 * 495 * Licensed under the Apache License, Version 2.0 (the "License"); 496 * you may not use this file except in compliance with the License. 497 * You may obtain a copy of the License at 498 * 499 * http://www.apache.org/licenses/LICENSE-2.0 500 * 501 * Unless required by applicable law or agreed to in writing, software 502 * distributed under the License is distributed on an "AS IS" BASIS, 503 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 504 * See the License for the specific language governing permissions and 505 * limitations under the License. 506 */class ap{constructor(t,n){this.shortDelay=t,this.longDelay=n,qi(n>t,"Short delay should be less than long delay!"),this.isMobile=Uq()||jq()}get(){return uW()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 507 * @license 508 * Copyright 2020 Google LLC 509 * 510 * Licensed under the Apache License, Version 2.0 (the "License"); 511 * you may not use this file except in compliance with the License. 512 * You may obtain a copy of the License at 513 * 514 * http://www.apache.org/licenses/LICENSE-2.0 515 * 516 * Unless required by applicable law or agreed to in writing, software 517 * distributed under the License is distributed on an "AS IS" BASIS, 518 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 519 * See the License for the specific language governing permissions and 520 * limitations under the License. 521 */function ES(e,t){qi(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/** 522 * @license 523 * Copyright 2020 Google LLC 524 * 525 * Licensed under the Apache License, Version 2.0 (the "License"); 526 * you may not use this file except in compliance with the License. 527 * You may obtain a copy of the License at 528 * 529 * http://www.apache.org/licenses/LICENSE-2.0 530 * 531 * Unless required by applicable law or agreed to in writing, software 532 * distributed under the License is distributed on an "AS IS" BASIS, 533 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 534 * See the License for the specific language governing permissions and 535 * limitations under the License. 536 */class iN{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Li("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Li("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Li("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 537 * @license 538 * Copyright 2020 Google LLC 539 * 540 * Licensed under the Apache License, Version 2.0 (the "License"); 541 * you may not use this file except in compliance with the License. 542 * You may obtain a copy of the License at 543 * 544 * http://www.apache.org/licenses/LICENSE-2.0 545 * 546 * Unless required by applicable law or agreed to in writing, softw
546are 547 * distributed under the License is distributed on an "AS IS" BASIS, 548 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 549 * See the License for the specific language governing permissions and 550 * limitations under the License. 551 */const fW={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 552 * @license 553 * Copyright 2020 Google LLC 554 * 555 * Licensed under the Apache License, Version 2.0 (the "License"); 556 * you may not use this file except in compliance with the License. 557 * You may obtain a copy of the License at 558 * 559 * http://www.apache.org/licenses/LICENSE-2.0 560 * 561 * Unless required by applicable law or agreed to in writing, software 562 * distributed under the License is distributed on an "AS IS" BASIS, 563 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 564 * See the License for the specific language governing permissions and 565 * limitations under the License. 566 */const hW=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],pW=new ap(3e4,6e4);function s_(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function id(e,t,n,r,s={}){return aN(e,s,async()=>{let o={},i={};r&&(t==="GET"?i=r:o={body:JSON.stringify(r)});const a=op({key:e.config.apiKey,...i}).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);const c={method:t,headers:l,...o};return Bq()||(c.referrerPolicy="no-referrer"),e.emulatorConfig&&r_(e.emulatorConfig.host)&&(c.credentials="include"),iN.fetch()(await cN(e,e.config.apiHost,n,a),c)})}async function aN(e,t,n){e._canInitEmulator=!1;const r={...fW,...t};try{const s=new mW(e),o=await Promise.race([n(),s.promise]);s.clearNetworkTimeout();const i=await o.json();if("needConfirmation"in i)throw $p(e,"account-exists-with-different-credential",i);if(o.ok&&!("errorMessage"in i))return i;{const a=o.ok?i.errorMessage:i.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw $p(e,"credential-already-in-use",i);if(l==="EMAIL_EXISTS")throw $p(e,"email-already-in-use",i);if(l==="USER_DISABLED")throw $p(e,"user-disabled",i);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw oN(e,u,c);zi(e,u)}}catch(s){if(s instanceof Ja)throw s;zi(e,"network-request-failed",{message:String(s)})}}async function lN(e,t,n,r,s={}
566){const o=await id(e,t,n,r,s);return"mfaPendingCredential"in o&&zi(e,"multi-factor-auth-required",{_serverResponse:o}),o}async function cN(e,t,n,r){const s=`${t}${n}?${r}`,o=e,i=o.config.emulator?ES(e.config,s):`${e.config.apiScheme}://${s}`;return hW.includes(n)&&(await o._persistenceManagerAvailable,o._getPersistenceType()==="COOKIE")?o._getPersistence()._getFinalTarget(i).toString():i}class mW{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Jo(this.auth,"network-request-failed")),pW.get())})}}function $p(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const s=Jo(e,t,r);return s.customData._tokenResponse=n,s}/** 567 * @license 568 * Copyright 2020 Google LLC 569 * 570 * Licensed under the Apache License, Version 2.0 (the "License"); 571 * you may not use this file except in compliance with the License. 572 * You may obtain a copy of the License at 573 * 574 * http://www.apache.org/licenses/LICENSE-2.0 575 * 576 * Unless required by applicable law or agreed to in writing, software 577 * distributed under the License is distributed on an "AS IS" BASIS, 578 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 579 * See the License for the specific language governing permissions and 580 * limitations under the License. 581 */async function gW(e,t){return id(e,"POST","/v1/accounts:delete",t)}async function Og(e,t){return id(e,"POST","/v1/accounts:lookup",t)}/** 582 * @license 583 * Copyright 2020 Google LLC 584 * 585 * Licensed under the Apache License, Version 2.0 (the "License"); 586 * you may not use this file except in compliance with the License. 587 * You may obtain a copy of the License at 588 * 589 * http://www.apache.org/licenses/LICENSE-2.0 590 * 591 * Unless required by applicable law or agreed to in writing, software 592 * distributed under the License is distributed on an "AS IS" BASIS, 593 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 594 * See the License for the specific language governing permissions and 595 * limitations under the License. 596 */function Ef(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function vW(e,t=!1){const n=el(e),r=await n.getIdToken(t),s=kS(r);He(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");const o=typeof s.firebase=="object"?s.firebase:void 0,i=o?.sign_in_provider;return{claims:s,token:r,authTime:Ef(ky(s.auth_time)),issuedAtTime:Ef(ky(s.iat)),expirationTime:Ef(ky(s.exp)),signInProvider:i||null,signInSecondFactor:o?.sign_in_second_factor||null}}function ky(e){return Number(e)*1e3}function kS(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return Cm("JWT malformed, contained fewer than 3 sections"),null;try{const s=WL(n);return s?JSON.parse(s):(Cm("Failed to decode base64 JWT payload"),null)}catch(s){return Cm("Caught error parsing JWT payload as JSON",s?.toString()),null}}function MT(e){const t=kS(e);return He(t,"internal-error"),He(typeof t.exp<"u","internal-error"),He(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/** 597 * @license 598 * Copyright 2020 Google LLC 599 * 600 * Licensed under the Apache License, Version 2.0 (the "License"); 601 * you may not use this file except in compliance with the License. 602 * You may obtain a copy of the License at 603 * 604 * http://www.apache.org/licenses/LICENSE-2.0 605 * 606 * Unless required by applicable law or agreed to in writing, software 607 * distributed under the License is distributed on an "AS IS" BASIS, 608 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 609 * See the License for the specific language governing permissions and 610 * limitations under the License. 611 */async function sh(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof Ja&&_W(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function _W({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/** 612 * @license 613 * Copyright 2020 Google LLC 614 * 615 * Licensed under the Apache License, Version 2.0 (the "License"); 616 * you may not use this file except in compliance with the License. 617 * You may obtain a copy of the License at 618 * 619 * http://www.apache.org/licenses/LICENSE-2.0 620 * 621 * Unless required by applicable law or agreed to in writing, softw
621are 622 * distributed under the License is distributed on an "AS IS" BASIS, 623 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 624 * See the License for the specific language governing permissions and 625 * limitations under the License. 626 */class yW{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){if(t){const n=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),n}else{this.errorBackoff=3e4;const r=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,r)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){t?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 627 * @license 628 * Copyright 2020 Google LLC 629 * 630 * Licensed under the Apache License, Version 2.0 (the "License"); 631 * you may not use this file except in compliance with the License. 632 * You may obtain a copy of the License at 633 * 634 * http://www.apache.org/licenses/LICENSE-2.0 635 * 636 * Unless required by applicable law or agreed to in writing, software 637 * distributed under the License is distributed on an "AS IS" BASIS, 638 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 639 * See the License for the specific language governing permissions and 640 * limitations under the License. 641 */class M0{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Ef(this.lastLoginAt),this.creationTime=Ef(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 642 * @license 643 * Copyright 2019 Google LLC 644 * 645 * Licensed under the Apache License, Version 2.0 (the "License"); 646 * you may not use this file except in compliance with the License. 647 * You may obtain a copy of the License at 648 * 649 * http://www.apache.org/licenses/LICENSE-2.0 650 * 651 * Unless required by applicable law or agreed to in writing, software 652 * distributed under the License is distributed on an "AS IS" BASIS, 653 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 654 * See the License for the specific language governing permissions and 655 * limitations under the License. 656 */async function Pg(e){const t=e.auth,n=await e.getIdToken(),r=await sh(e,Og(t,{idToken:n}));He(r?.users.length,t,"internal-error");const s=r.users[0];e._notifyReloadListener(s);const o=s.providerUserInfo?.length?uN(s.providerUserInfo):[],i=wW(e.providerData,o),a=e.isAnonymous,l=!(e.email&&s.passwordHash)&&!i?.length,c=a?l:!1,u={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:i,metadata:new M0(s.createdAt,s.lastLoginAt),isAnonymous:c};Object.assign(e,u)}async function bW(e){const t=el(e);await Pg(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function wW(e,t){return[...e.filter(r=>!t.some(s=>s.providerId===r.providerId)),...t]}function uN(e){return e.map(({providerId:t,...n})=>({providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}))}/** 657 * @license 658 * Copyright 2020 Google LLC 659 * 660 * Licensed under the Apache License, Version 2.0 (the "License"); 661 * you may not use this file except in compliance with the License. 662 * You may obtain a copy of the License at 663 * 664 * http://www.apache.org/licenses/LICENSE-2.0 665 * 666 * Unless required by applicable law or agreed to in writing, software 667 * distributed under the License is distributed on an "AS IS" BASIS, 668 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 669 * See the License for the specific language governing permissions and 670 * limitations under the License. 671 */async function SW(e,t){const n=await aN(e,{},async()=>{const r=op({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:s,apiKey:o}=e.config,i=await cN(e,s,"/v1/token",`key=${o}`),a=await e._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";const l={method:"POST",headers:a,body:r};return e.emulatorConfig&&r_(e.emulatorConfig.host)&&(l.credentials="include"),iN.fetch()(i,l)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function EW(e,t){return id(e,"POST","/v2/accounts:revokeToken",s_(e,t))}/** 672 * @license 673 * Copyright 2020 Google LLC 674 * 675 * Licensed under the Apache License, Version 2.0 (the "License");
676 * you may not use this file except in compliance with the License. 677 * You may obtain a copy of the License at 678 * 679 * http://www.apache.org/licenses/LICENSE-2.0 680 * 681 * Unless required by applicable law or agreed to in writing, software 682 * distributed under the License is distributed on an "AS IS" BASIS, 683 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 684 * See the License for the specific language governing permissions and 685 * limitations under the License. 686 */class lu{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){He(t.idToken,"internal-error"),He(typeof t.idToken<"u","internal-error"),He(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):MT(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){He(t.length!==0,"internal-error");const n=MT(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(He(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:s,expiresIn:o}=await SW(t,n);this.updateTokensAndExpiration(r,s,Number(o))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:s,expirationTime:o}=n,i=new lu;return r&&(He(typeof r=="string","internal-error",{appName:t}),i.refreshToken=r),s&&(He(typeof s=="string","internal-error",{appName:t}),i.accessToken=s),o&&(He(typeof o=="number","internal-error",{appName:t}),i.expirationTime=o),i}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new lu,this.toJSON())}_performRefresh(){return Li("not implemented")}}/** 687 * @license 688 * Copyright 2020 Google LLC 689 * 690 * Licensed under the Apache License, Version 2.0 (the "License"); 691 * you may not use this file except in compliance with the License. 692 * You may obtain a copy of the License at 693 * 694 * http://www.apache.org/licenses/LICENSE-2.0 695 * 696 * Unless required by applicable law or agreed to in writing, software 697 * distributed under the License is distributed on an "AS IS" BASIS, 698 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 699 * See the License for the specific language governing permissions and 700 * limitations under the License. 701 */function aa(e,t){He(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class wo{constructor({uid:t,auth:n,stsTokenManager:r,...s}){this.providerId="firebase",this.proactiveRefresh=new yW(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new M0(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(t){const n=await sh(this,this.stsTokenManager.getToken(this.auth,t));return He(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return vW(this,t)}reload(){return bW(this)}_assign(t){this!==t&&(He(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>({...n})),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new wo({...this,auth:t,stsTokenManager:this.stsTokenManager._clone()});return n.metadata._copy(this.metadata),n}_onReload(t){He(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await Pg(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(qo(this.auth.app))return Promise.reject(Oa(this.auth));const t=await this.getIdToken();return await sh(this,gW(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
701nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>({...t})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){const r=n.displayName??void 0,s=n.email??void 0,o=n.phoneNumber??void 0,i=n.photoURL??void 0,a=n.tenantId??void 0,l=n._redirectEventId??void 0,c=n.createdAt??void 0,u=n.lastLoginAt??void 0,{uid:d,emailVerified:f,isAnonymous:h,providerData:p,stsTokenManager:m}=n;He(d&&m,t,"internal-error");const g=lu.fromJSON(this.name,m);He(typeof d=="string",t,"internal-error"),aa(r,t.name),aa(s,t.name),He(typeof f=="boolean",t,"internal-error"),He(typeof h=="boolean",t,"internal-error"),aa(o,t.name),aa(i,t.name),aa(a,t.name),aa(l,t.name),aa(c,t.name),aa(u,t.name);const v=new wo({uid:d,auth:t,email:s,emailVerified:f,displayName:r,isAnonymous:h,photoURL:i,phoneNumber:o,tenantId:a,stsTokenManager:g,createdAt:c,lastLoginAt:u});return p&&Array.isArray(p)&&(v.providerData=p.map(b=>({...b}))),l&&(v._redirectEventId=l),v}static async _fromIdTokenResponse(t,n,r=!1){const s=new lu;s.updateFromServerResponse(n);const o=new wo({uid:n.localId,auth:t,stsTokenManager:s,isAnonymous:r});return await Pg(o),o}static async _fromGetAccountInfoResponse(t,n,r){const s=n.users[0];He(s.localId!==void 0,"internal-error");const o=s.providerUserInfo!==void 0?uN(s.providerUserInfo):[],i=!(s.email&&s.passwordHash)&&!o?.length,a=new lu;a.updateFromIdToken(r);const l=new wo({uid:s.localId,auth:t,stsTokenManager:a,isAnonymous:i}),c={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:o,metadata:new M0(s.createdAt,s.lastLoginAt),isAnonymous:!(s.email&&s.passwordHash)&&!o?.length};return Object.assign(l,c),l}}/** 702 * @license 703 * Copyright 2020 Google LLC 704 * 705 * Licensed under the Apache License, Version 2.0 (the "License"); 706 * you may not use this file except in compliance with the License. 707 * You may obtain a copy of the License at 708 * 709 * http://www.apache.org/licenses/LICENSE-2.0 710 * 711 * Unless required by applicable law or agreed to in writing, software 712 * distributed under the License is distributed on an "AS IS" BASIS, 713 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 714 * See the License for the specific language governing permissions and 715 * limitations under the License. 716 */const $T=new Map;function Ni(e){qi(e instanceof Function,"Expected a class definition");let t=$T.get(e);return t?(qi(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,$T.set(e,t),t)}/** 717 * @license 718 * Copyright 2019 Google LLC 719 * 720 * Licensed under the Apache License, Version 2.0 (the "License"); 721 * you may not use this file except in compliance with the License. 722 * You may obtain a copy of the License at 723 * 724 * http://www.apache.org/licenses/LICENSE-2.0 725 * 726 * Unless required by applicable law or agreed to in writing, software 727 * distributed under the License is distributed on an "AS IS" BASIS, 728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 729 * See the License for the specific language governing permissions and 730 * limitations under the License. 731 */class dN{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}dN.type="NONE";const FT=dN;/** 732 * @license 733 * Copyright 2019 Google LLC 734 * 735 * Licensed under the Apache License, Version 2.0 (the "License"); 736 * you may not use this file except in compliance with the License. 737 * You may obtain a copy of the License at 738 * 739 * http://www.apache.org/licenses/LICENSE-2.0 740 * 741 * Unless required by applicable law or agreed to in writing, softw
741are 742 * distributed under the License is distributed on an "AS IS" BASIS, 743 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 744 * See the License for the specific language governing permissions and 745 * limitations under the License. 746 */function Am(e,t,n){return`firebase:${e}:${t}:${n}`}class cu{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:s,name:o}=this.auth;this.fullUserKey=Am(this.userKey,s.apiKey,o),this.fullPersistenceKey=Am("persistence",s.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);if(!t)return null;if(typeof t=="string"){const n=await Og(this.auth,{idToken:t}).catch(()=>{});return n?wo._fromGetAccountInfoResponse(this.auth,n,t):null}return wo._fromJSON(this.auth,t)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new cu(Ni(FT),t,r);const s=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let o=s[0]||Ni(FT);const i=Am(r,t.config.apiKey,t.name);let a=null;for(const c of n)try{const u=await c._get(i);if(u){let d;if(typeof u=="string"){const f=await Og(t,{idToken:u}).catch(()=>{});if(!f)break;d=await wo._fromGetAccountInfoResponse(t,f,u)}else d=wo._fromJSON(t,u);c!==o&&(a=d),o=c;break}}catch{}const l=s.filter(c=>c._shouldAllowMigration);return!o._shouldAllowMigration||!l.length?new cu(o,t,r):(o=l[0],a&&await o._set(i,a.toJSON()),await Promise.all(n.map(async c=>{if(c!==o)try{await c._remove(i)}catch{}})),new cu(o,t,r))}}/** 747 * @license 748 * Copyright 2020 Google LLC 749 * 750 * Licensed under the Apache License, Version 2.0 (the "License"); 751 * you may not use this file except in compliance with the License. 752 * You may obtain a copy of the License at 753 * 754 * http://www.apache.org/licenses/LICENSE-2.0 755 * 756 * Unless required by applicable law or agreed to in writing, software 757 * distributed under the License is distributed on an "AS IS" BASIS, 758 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 759 * See the License for the specific language governing permissions and 760 * limitations under the License. 761 */function UT(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(mN(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(fN(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(vN(t))return"Blackberry";if(_N(t))return"Webos";if(hN(t))return"Safari";if((t.includes("chrome/")||pN(t))&&!t.includes("edge/"))return"Chrome";if(gN(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if(r?.length===2)return r[1]}return"Other"}function fN(e=Xr()){return/firefox\//i.test(e)}function hN(e=Xr()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function pN(e=Xr()){return/crios\//i.test(e)}function mN(e=Xr()){return/iemobile/i.test(e)}function gN(e=Xr()){return/android/i.test(e)}function vN(e=Xr()){return/blackberry/i.test(e)}function _N(e=Xr()){return/webos/i.test(e)}function xS(e=Xr()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function kW(e=Xr()){return xS(e)&&!!window.navigator?.standalone}function xW(){return Hq()&&document.documentMode===10}function yN(e=Xr()){return xS(e)||gN(e)||_N(e)||vN(e)||/windows phone/i.test(e)||mN(e)}/** 762 * @license 763 * Copyright 2020 Google LLC 764 * 765 * Licensed under the Apache License, Version 2.0 (the "License");
766 * you may not use this file except in compliance with the License. 767 * You may obtain a copy of the License at 768 * 769 * http://www.apache.org/licenses/LICENSE-2.0 770 * 771 * Unless required by applicable law or agreed to in writing, software 772 * distributed under the License is distributed on an "AS IS" BASIS, 773 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 774 * See the License for the specific language governing permissions and 775 * limitations under the License. 776 */function bN(e,t=[]){let n;switch(e){case"Browser":n=UT(Xr());break;case"Worker":n=`${UT(Xr())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${ip}/${r}`}/** 777 * @license 778 * Copyright 2022 Google LLC 779 * 780 * Licensed under the Apache License, Version 2.0 (the "License"); 781 * you may not use this file except in compliance with the License. 782 * You may obtain a copy of the License at 783 * 784 * http://www.apache.org/licenses/LICENSE-2.0 785 * 786 * Unless required by applicable law or agreed to in writing, software 787 * distributed under the License is distributed on an "AS IS" BASIS, 788 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 789 * See the License for the specific language governing permissions and 790 * limitations under the License. 791 */class TW{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=o=>new Promise((i,a)=>{try{const l=t(o);i(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const s=this.queue.length-1;return()=>{this.queue[s]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const s of n)try{s()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}}/** 792 * @license 793 * Copyright 2023 Google LLC 794 * 795 * Licensed under the Apache License, Version 2.0 (the "License"); 796 * you may not use this file except in compliance with the License. 797 * You may obtain a copy of the License at 798 * 799 * http://www.apache.org/licenses/LICENSE-2.0 800 * 801 * Unless required by applicable law or agreed to in writing, software 802 * distributed under the License is distributed on an "AS IS" BASIS, 803 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 804 * See the License for the specific language governing permissions and 805 * limitations under the License. 806 */async function CW(e,t={}){return id(e,"GET","/v2/passwordPolicy",s_(e,t))}/** 807 * @license 808 * Copyright 2023 Google LLC 809 * 810 * Licensed under the Apache License, Version 2.0 (the "License"); 811 * you may not use this file except in compliance with the License. 812 * You may obtain a copy of the License at 813 * 814 * http://www.apache.org/licenses/LICENSE-2.0 815 * 816 * Unless required by applicable law or agreed to in writing, software 817 * distributed under the License is distributed on an "AS IS" BASIS, 818 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 819 * See the License for the specific language governing permissions and 820 * limitations under the License. 821 */const AW=6;class RW{constructor(t){const n=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=n.minPasswordLength??AW,n.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=n.maxPasswordLength),n.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=n.containsLowercaseCharacter),n.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=n.containsUppercaseCharacter),n.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=n.containsNumericCharacter),n.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=n.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=t.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=t.forceUpgradeOnSignin??!1,this.schemaVersion=t.schemaVersion}validatePassword(t){const n={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,n),this.validatePasswordCharacterOptions(t,n),n.isValid&&
821(n.isValid=n.meetsMinPasswordLength??!0),n.isValid&&(n.isValid=n.meetsMaxPasswordLength??!0),n.isValid&&(n.isValid=n.containsLowercaseLetter??!0),n.isValid&&(n.isValid=n.containsUppercaseLetter??!0),n.isValid&&(n.isValid=n.containsNumericCharacter??!0),n.isValid&&(n.isValid=n.containsNonAlphanumericCharacter??!0),n}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,s=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),s&&(n.meetsMaxPasswordLength=t.length<=s)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let s=0;s<t.length;s++)r=t.charAt(s),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,s,o){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=s)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=o))}}/** 822 * @license 823 * Copyright 2020 Google LLC 824 * 825 * Licensed under the Apache License, Version 2.0 (the "License"); 826 * you may not use this file except in compliance with the License. 827 * You may obtain a copy of the License at 828 * 829 * http://www.apache.org/licenses/LICENSE-2.0 830 * 831 * Unless required by applicable law or agreed to in writing, software 832 * distributed under the License is distributed on an "AS IS" BASIS, 833 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 834 * See the License for the specific language governing permissions and 835 * limitations under the License. 836 */class IW{constructor(t,n,r,s){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=s,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new BT(this),this.idTokenSubscription=new BT(this),this.beforeStateQueue=new TW(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=sN,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=s.sdkClientVersion,this._persistenceManagerAvailable=new Promise(o=>this._resolvePersistenceManagerAvailable=o)}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=Ni(n)),this._initializationPromise=this.queue(async()=>{if(!this._deleted&&(this.persistenceManager=await cu.create(this,t),this._resolvePersistenceManagerAvailable?.(),!this._deleted)){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await Og(this,{idToken:t}),r=await wo._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){if(qo(this.app)){const o=this.app.settings.authIdToken;return o?new Promise(i=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(i,i))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,s=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=this.redirectUser?._redirectEventId,i=r?._redirectEventId,a=await this.tryRedirectSignIn(t);(!o||o===i)&&a?.user&&(r=a.user,s=!0)}if(!r)return this.directlySetCurrentUser(null);
836if(!r._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(r)}catch(o){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return He(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await Pg(t)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=dW()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(qo(this.app))return Promise.reject(Oa(this));const n=t?el(t):null;return n&&He(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&He(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return qo(this.app)?Promise.reject(Oa(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return qo(this.app)?Promise.reject(Oa(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Ni(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await CW(this),n=new RW(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(t){this._errorFactory=new sp("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await EW(this,r)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&Ni(t)||this._popupRedirectResolver;He(n,this,"argument-error"),this.redirectPersistenceManager=await cu.create(this,[Ni(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===t?this._currentUser:this.redirectUser?._redirectEventId===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const t=this.currentUser?.uid??null;this.lastNotifiedUid!==t&&(this.lastNotifiedUid=t,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,s){if(this._deleted)return()=>{};const o=typeof n=="function"?n:n.next.bind(n);let i=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(He(a,this,"internal-error"),a.then(()=>{i||o(this.currentUser)}),typeof n=="function"){const l=t.addObserver(n,r,s);return()=>{i=!0,l()}}else{const l=t.addObserver(n);return()=>{i=!0,l()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return He(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=bN(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){if(qo(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return t?.error&&lW(`Error while retrieving App Check token: ${t.error}`),t?.token}}function o_(e){return el(e)}class BT{constructor(t){this.auth=t,this.observer=null,this.addObserver=Xq(n=>this.observer=n)}get next(){return He(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 837 * @license 838 * Copyright 2020 Google LLC 839 * 840 * Licensed under the Apache License, Version 2.0 (the "License");
841 * you may not use this file except in compliance with the License. 842 * You may obtain a copy of the License at 843 * 844 * http://www.apache.org/licenses/LICENSE-2.0 845 * 846 * Unless required by applicable law or agreed to in writing, software 847 * distributed under the License is distributed on an "AS IS" BASIS, 848 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 849 * See the License for the specific language governing permissions and 850 * limitations under the License. 851 */let TS={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function OW(e){TS=e}function PW(e){return TS.loadJS(e)}function LW(){return TS.gapiScript}function NW(e){return`__${e}${Math.floor(Math.random()*1e6)}`}/** 852 * @license 853 * Copyright 2020 Google LLC 854 * 855 * Licensed under the Apache License, Version 2.0 (the "License"); 856 * you may not use this file except in compliance with the License. 857 * You may obtain a copy of the License at 858 * 859 * http://www.apache.org/licenses/LICENSE-2.0 860 * 861 * Unless required by applicable law or agreed to in writing, software 862 * distributed under the License is distributed on an "AS IS" BASIS, 863 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 864 * See the License for the specific language governing permissions and 865 * limitations under the License. 866 */function DW(e,t){const n=ZL(e,"auth");if(n.isInitialized()){const s=n.getImmediate(),o=n.getOptions();if(Ou(o,t??{}))return s;zi(s,"already-initialized")}return n.initialize({options:t})}function MW(e,t){const n=t?.persistence||[],r=(Array.isArray(n)?n:[n]).map(Ni);t?.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t?.popupRedirectResolver)}function $W(e,t,n){const r=o_(e);He(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const s=!1,o=wN(t),{host:i,port:a}=FW(t),l=a===null?"":`:${a}`,c={url:`${o}//${i}${l}/`},u=Object.freeze({host:i,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:s})});if(!r._canInitEmulator){He(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),He(Ou(c,r.config.emulator)&&Ou(u,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=c,r.emulatorConfig=u,r.settings.appVerificationDisabledForTesting=!0,r_(i)?(Dq(`${o}//${i}${l}`),Fq("Auth",!0)):UW()}function wN(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function FW(e){const t=wN(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",s=/^(\[[^\]]+\])(:|$)/.exec(r);if(s){const o=s[1];return{host:o,port:VT(r.substr(o.length+1))}}else{const[o,i]=r.split(":");return{host:o,port:VT(i)}}}function VT(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function UW(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/** 867 * @license 868 * Copyright 2020 Google LLC 869 * 870 * Licensed under the Apache License, Version 2.0 (the "License"); 871 * you may not use this file except in compliance with the License. 872 * You may obtain a copy of the License at 873 * 874 * http://www.apache.org/licenses/LICENSE-2.0 875 * 876 * Unless required by applicable law or agreed to in writing, software 877 * distributed under the License is distributed on an "AS IS" BASIS, 878 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 879 * See the License for the specific language governing permissions and 880 * limitations under the License. 881 */class SN{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return Li("not implemented")}_getIdTokenResponse(t){return Li("not implemented")}_linkToIdToken(t,n){return Li("not implemented")}_getReauthenticationResolver(t){return Li("not implemented")}}/** 882 * @license 883 * Copyright 2020 Google LLC 884 * 885 * Licensed under the Apache License, Version 2.0 (the "License");
886 * you may not use this file except in compliance with the License. 887 * You may obtain a copy of the License at 888 * 889 * http://www.apache.org/licenses/LICENSE-2.0 890 * 891 * Unless required by applicable law or agreed to in writing, software 892 * distributed under the License is distributed on an "AS IS" BASIS, 893 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 894 * See the License for the specific language governing permissions and 895 * limitations under the License. 896 */async function uu(e,t){return lN(e,"POST","/v1/accounts:signInWithIdp",s_(e,t))}/** 897 * @license 898 * Copyright 2020 Google LLC 899 * 900 * Licensed under the Apache License, Version 2.0 (the "License"); 901 * you may not use this file except in compliance with the License. 902 * You may obtain a copy of the License at 903 * 904 * http://www.apache.org/licenses/LICENSE-2.0 905 * 906 * Unless required by applicable law or agreed to in writing, software 907 * distributed under the License is distributed on an "AS IS" BASIS, 908 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 909 * See the License for the specific language governing permissions and 910 * limitations under the License. 911 */const BW="http://localhost";class ql extends SN{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new ql(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):zi("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
911once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:s,...o}=n;if(!r||!s)return null;const i=new ql(r,s);return i.idToken=o.idToken||void 0,i.accessToken=o.accessToken||void 0,i.secret=o.secret,i.nonce=o.nonce,i.pendingToken=o.pendingToken||null,i}_getIdTokenResponse(t){const n=this.buildRequest();return uu(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,uu(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,uu(t,n)}buildRequest(){const t={requestUri:BW,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=op(n)}return t}}/** 912 * @license 913 * Copyright 2020 Google LLC 914 * 915 * Licensed under the Apache License, Version 2.0 (the "License"); 916 * you may not use this file except in compliance with the License. 917 * You may obtain a copy of the License at 918 * 919 * http://www.apache.org/licenses/LICENSE-2.0 920 * 921 * Unless required by applicable law or agreed to in writing, software 922 * distributed under the License is distributed on an "AS IS" BASIS, 923 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 924 * See the License for the specific language governing permissions and 925 * limitations under the License. 926 */class EN{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/** 927 * @license 928 * Copyright 2019 Google LLC 929 * 930 * Licensed under the Apache License, Version 2.0 (the "License"); 931 * you may not use this file except in compliance with the License. 932 * You may obtain a copy of the License at 933 * 934 * http://www.apache.org/licenses/LICENSE-2.0 935 * 936 * Unless required by applicable law or agreed to in writing, software 937 * distributed under the License is distributed on an "AS IS" BASIS, 938 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 939 * See the License for the specific language governing permissions and 940 * limitations under the License. 941 */class lp extends EN{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/** 942 * @license 943 * Copyright 2020 Google LLC 944 * 945 * Licensed under the Apache License, Version 2.0 (the "License"); 946 * you may not use this file except in compliance with the License. 947 * You may obtain a copy of the License at 948 * 949 * http://www.apache.org/licenses/LICENSE-2.0 950 * 951 * Unless required by applicable law or agreed to in writing, software 952 * distributed under the License is distributed on an "AS IS" BASIS, 953 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 954 * See the License for the specific language governing permissions and 955 * limitations under the License. 956 */class va extends lp{constructor(){super("facebook.com")}static credential(t){return ql._fromParams({providerId:va.PROVIDER_ID,signInMethod:va.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return va.credentialFromTaggedObject(t)}static credentialFromError(t){return va.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return va.credential(t.oauthAccessToken)}catch{return null}}}va.FACEBOOK_SIGN_IN_METHOD="facebook.com";va.PROVIDER_ID="facebook.com";/** 957 * @license 958 * Copyright 2020 Google LLC 959 * 960 * Licensed under the Apache License, Version 2.0 (the "License"); 961 * you may not use this file except in compliance with the License. 962 * You may obtain a copy of the License at 963 * 964 * http://www.apache.org/licenses/LICENSE-2.0 965 * 966 * Unless required by applicable law or agreed to in writing, softw
966are 967 * distributed under the License is distributed on an "AS IS" BASIS, 968 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 969 * See the License for the specific language governing permissions and 970 * limitations under the License. 971 */class _a extends lp{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return ql._fromParams({providerId:_a.PROVIDER_ID,signInMethod:_a.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return _a.credentialFromTaggedObject(t)}static credentialFromError(t){return _a.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return _a.credential(n,r)}catch{return null}}}_a.GOOGLE_SIGN_IN_METHOD="google.com";_a.PROVIDER_ID="google.com";/** 972 * @license 973 * Copyright 2020 Google LLC 974 * 975 * Licensed under the Apache License, Version 2.0 (the "License"); 976 * you may not use this file except in compliance with the License. 977 * You may obtain a copy of the License at 978 * 979 * http://www.apache.org/licenses/LICENSE-2.0 980 * 981 * Unless required by applicable law or agreed to in writing, software 982 * distributed under the License is distributed on an "AS IS" BASIS, 983 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 984 * See the License for the specific language governing permissions and 985 * limitations under the License. 986 */class ya extends lp{constructor(){super("github.com")}static credential(t){return ql._fromParams({providerId:ya.PROVIDER_ID,signInMethod:ya.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return ya.credentialFromTaggedObject(t)}static credentialFromError(t){return ya.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return ya.credential(t.oauthAccessToken)}catch{return null}}}ya.GITHUB_SIGN_IN_METHOD="github.com";ya.PROVIDER_ID="github.com";/** 987 * @license 988 * Copyright 2020 Google LLC 989 * 990 * Licensed under the Apache License, Version 2.0 (the "License"); 991 * you may not use this file except in compliance with the License. 992 * You may obtain a copy of the License at 993 * 994 * http://www.apache.org/licenses/LICENSE-2.0 995 * 996 * Unless required by applicable law or agreed to in writing, software 997 * distributed under the License is distributed on an "AS IS" BASIS, 998 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 999 * See the License for the specific language governing permissions and 1000 * limitations under the License. 1001 */class ba extends lp{constructor(){super("twitter.com")}static credential(t,n){return ql._fromParams({providerId:ba.PROVIDER_ID,signInMethod:ba.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return ba.credentialFromTaggedObject(t)}static credentialFromError(t){return ba.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return ba.credential(n,r)}catch{return null}}}ba.TWITTER_SIGN_IN_METHOD="twitter.com";ba.PROVIDER_ID="twitter.com";/** 1002 * @license 1003 * Copyright 2020 Google LLC 1004 * 1005 * Licensed under the Apache License, Version 2.0 (the "License"); 1006 * you may not use this file except in compliance with the License. 1007 * You may obtain a copy of the License at 1008 * 1009 * http://www.apache.org/licenses/LICENSE-2.0 1010 * 1011 * Unless required by applicable law or agreed to in writing, software 1012 * distributed under the License is distributed on an "AS IS" BASIS, 1013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1014 * See the License for the specific language governing permissions and 1015 * limitations under the License. 1016 */class Wl{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,s=!1){const o=await wo._fromIdTokenResponse(t,r,s),i=jT(r);return new Wl({user:o,providerId:i,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const s=jT(r);return new Wl({user:t,providerId:s,_tokenResponse:r,operationType:n})}}function jT(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/** 1017 * @license 1018 * Copyright 2020 Google LLC 1019 * 1020 * Licensed under the Apache License, Version 2.0 (the "License");
1021 * you may not use this file except in compliance with the License. 1022 * You may obtain a copy of the License at 1023 * 1024 * http://www.apache.org/licenses/LICENSE-2.0 1025 * 1026 * Unless required by applicable law or agreed to in writing, software 1027 * distributed under the License is distributed on an "AS IS" BASIS, 1028 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1029 * See the License for the specific language governing permissions and 1030 * limitations under the License. 1031 */class Lg extends Ja{constructor(t,n,r,s){super(n.code,n.message),this.operationType=r,this.user=s,Object.setPrototypeOf(this,Lg.prototype),this.customData={appName:t.name,tenantId:t.tenantId??void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,s){return new Lg(t,n,r,s)}}function kN(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(o=>{throw o.code==="auth/multi-factor-auth-required"?Lg._fromErrorAndOperation(e,o,t,r):o})}async function VW(e,t,n=!1){const r=await sh(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Wl._forOperation(e,"link",r)}/** 1032 * @license 1033 * Copyright 2019 Google LLC 1034 * 1035 * Licensed under the Apache License, Version 2.0 (the "License"); 1036 * you may not use this file except in compliance with the License. 1037 * You may obtain a copy of the License at 1038 * 1039 * http://www.apache.org/licenses/LICENSE-2.0 1040 * 1041 * Unless required by applicable law or agreed to in writing, software 1042 * distributed under the License is distributed on an "AS IS" BASIS, 1043 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1044 * See the License for the specific language governing permissions and 1045 * limitations under the License. 1046 */async function jW(e,t,n=!1){const{auth:r}=e;if(qo(r.app))return Promise.reject(Oa(r));const s="reauthenticate";try{const o=await sh(e,kN(r,s,t,e),n);He(o.idToken,r,"internal-error");const i=kS(o.idToken);He(i,r,"internal-error");const{sub:a}=i;return He(e.uid===a,r,"user-mismatch"),Wl._forOperation(e,s,o)}catch(o){throw o?.code==="auth/user-not-found"&&zi(r,"user-mismatch"),o}}/** 1047 * @license 1048 * Copyright 2020 Google LLC 1049 * 1050 * Licensed under the Apache License, Version 2.0 (the "License"); 1051 * you may not use this file except in compliance with the License. 1052 * You may obtain a copy of the License at 1053 * 1054 * http://www.apache.org/licenses/LICENSE-2.0 1055 * 1056 * Unless required by applicable law or agreed to in writing, software 1057 * distributed under the License is distributed on an "AS IS" BASIS, 1058 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1059 * See the License for the specific language governing permissions and 1060 * limitations under the License. 1061 */async function HW(e,t,n=!1){if(qo(e.app))return Promise.reject(Oa(e));const r="signIn",s=await kN(e,r,t),o=await Wl._fromIdTokenResponse(e,r,s);return n||await e._updateCurrentUser(o.user),o}/** 1062 * @license 1063 * Copyright 2020 Google LLC 1064 * 1065 * Licensed under the Apache License, Version 2.0 (the "License"); 1066 * you may not use this file except in compliance with the License. 1067 * You may obtain a copy of the License at 1068 * 1069 * http://www.apache.org/licenses/LICENSE-2.0 1070 * 1071 * Unless required by applicable law or agreed to in writing, software 1072 * distributed under the License is distributed on an "AS IS" BASIS, 1073 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1074 * See the License for the specific language governing permissions and 1075 * limitations under the License. 1076 */async function zW(e,t){return lN(e,"POST","/v1/accounts:signInWithCustomToken",s_(e,t))}/** 1077 * @license 1078 * Copyright 2020 Google LLC 1079 * 1080 * Licensed under the Apache License, Version 2.0 (the "License"); 1081 * you may not use this file except in compliance with the License. 1082 * You may obtain a copy of the License at 1083 * 1084 * http://www.apache.org/licenses/LICENSE-2.0 1085 * 1086 * Unless required by applicable law or agreed to in writing, software 1087 * distributed under the License is distributed on an "AS IS" BASIS, 1088 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1089 * See the License for the specific language governing permissions and 1090 * limitations under the License. 1091 */async function qW(e,t){if(qo(e.app))return Promise.reject(Oa(e));const n=o_(e),r=await zW(n,{token:t,returnSecureToken:!0}),s=await Wl._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(s.user),s}/** 1092 * @license 1093 * Copyright 2020 Google LLC 1094 * 1095 * Licensed under the Apache License, Version 2.0 (the "License");
1096 * you may not use this file except in compliance with the License. 1097 * You may obtain a copy of the License at 1098 * 1099 * http://www.apache.org/licenses/LICENSE-2.0 1100 * 1101 * Unless required by applicable law or agreed to in writing, software 1102 * distributed under the License is distributed on an "AS IS" BASIS, 1103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1104 * See the License for the specific language governing permissions and 1105 * limitations under the License. 1106 */function WW(e,t){return el(e).setPersistence(t)}function KW(e,t,n,r){return el(e).onIdTokenChanged(t,n,r)}function GW(e,t,n){return el(e).beforeAuthStateChanged(t,n)}function xN(e){return el(e).signOut()}const Ng="__sak";/** 1107 * @license 1108 * Copyright 2019 Google LLC 1109 * 1110 * Licensed under the Apache License, Version 2.0 (the "License"); 1111 * you may not use this file except in compliance with the License. 1112 * You may obtain a copy of the License at 1113 * 1114 * http://www.apache.org/licenses/LICENSE-2.0 1115 * 1116 * Unless required by applicable law or agreed to in writing, software 1117 * distributed under the License is distributed on an "AS IS" BASIS, 1118 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1119 * See the License for the specific language governing permissions and 1120 * limitations under the License. 1121 */class TN{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Ng,"1"),this.storage.removeItem(Ng),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1122 * @license 1123 * Copyright 2020 Google LLC 1124 * 1125 * Licensed under the Apache License, Version 2.0 (the "License"); 1126 * you may not use this file except in compliance with the License. 1127 * You may obtain a copy of the License at 1128 * 1129 * http://www.apache.org/licenses/LICENSE-2.0 1130 * 1131 * Unless required by applicable law or agreed to in writing, software 1132 * distributed under the License is distributed on an "AS IS" BASIS, 1133 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1134 * See the License for the specific language governing permissions and 1135 * limitations under the License. 1136 */const YW=1e3,XW=10;class CN extends TN{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=yN(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),s=this.localCache[n];r!==s&&t(n,s,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((i,a,l)=>{this.notifyListeners(i,l)});return}const r=t.key;n?this.detachListener():this.stopPolling();const s=()=>{const i=this.storage.getItem(r);!n&&this.localCache[r]===i||this.notifyListeners(r,i)},o=this.storage.getItem(r);xW()&&o!==t.newValue&&t.newValue!==t.oldValue?setTimeout(s,XW):s()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const s of Array.from(r))s(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},YW)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}CN.type="LOCAL";const QW=CN;/** 1137 * @license 1138 * Copyright 2020 Google LLC 1139 * 1140 * Licensed under the Apache License, Version 2.0 (the "License");
1141 * you may not use this file except in compliance with the License. 1142 * You may obtain a copy of the License at 1143 * 1144 * http://www.apache.org/licenses/LICENSE-2.0 1145 * 1146 * Unless required by applicable law or agreed to in writing, software 1147 * distributed under the License is distributed on an "AS IS" BASIS, 1148 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1149 * See the License for the specific language governing permissions and 1150 * limitations under the License. 1151 */class AN extends TN{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}AN.type="SESSION";const CS=AN;/** 1152 * @license 1153 * Copyright 2019 Google LLC 1154 * 1155 * Licensed under the Apache License, Version 2.0 (the "License"); 1156 * you may not use this file except in compliance with the License. 1157 * You may obtain a copy of the License at 1158 * 1159 * http://www.apache.org/licenses/LICENSE-2.0 1160 * 1161 * Unless required by applicable law or agreed to in writing, software 1162 * distributed under the License is distributed on an "AS IS" BASIS, 1163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1164 * See the License for the specific language governing permissions and 1165 * limitations under the License. 1166 */function ZW(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/** 1167 * @license 1168 * Copyright 2019 Google LLC 1169 * 1170 * Licensed under the Apache License, Version 2.0 (the "License"); 1171 * you may not use this file except in compliance with the License. 1172 * You may obtain a copy of the License at 1173 * 1174 * http://www.apache.org/licenses/LICENSE-2.0 1175 * 1176 * Unless required by applicable law or agreed to in writing, software 1177 * distributed under the License is distributed on an "AS IS" BASIS, 1178 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1179 * See the License for the specific language governing permissions and 1180 * limitations under the License. 1181 */class i_{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(s=>s.isListeningto(t));if(n)return n;const r=new i_(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:s,data:o}=n.data,i=this.handlersMap[s];if(!i?.size)return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:s});const a=Array.from(i).map(async c=>c(n.origin,o)),l=await ZW(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:s,response:l})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}i_.receivers=[];/** 1182 * @license 1183 * Copyright 2020 Google LLC 1184 * 1185 * Licensed under the Apache License, Version 2.0 (the "License"); 1186 * you may not use this file except in compliance with the License. 1187 * You may obtain a copy of the License at 1188 * 1189 * http://www.apache.org/licenses/LICENSE-2.0 1190 * 1191 * Unless required by applicable law or agreed to in writing, software 1192 * distributed under the License is distributed on an "AS IS" BASIS, 1193 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1194 * See the License for the specific language governing permissions and 1195 * limitations under the License.
1196 */function AS(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(Math.random()*10);return e+n}/** 1197 * @license 1198 * Copyright 2019 Google LLC 1199 * 1200 * Licensed under the Apache License, Version 2.0 (the "License"); 1201 * you may not use this file except in compliance with the License. 1202 * You may obtain a copy of the License at 1203 * 1204 * http://www.apache.org/licenses/LICENSE-2.0 1205 * 1206 * Unless required by applicable law or agreed to in writing, software 1207 * distributed under the License is distributed on an "AS IS" BASIS, 1208 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1209 * See the License for the specific language governing permissions and 1210 * limitations under the License. 1211 */class JW{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const s=typeof MessageChannel<"u"?new MessageChannel:null;if(!s)throw new Error("connection_unavailable");let o,i;return new Promise((a,l)=>{const c=AS("",20);s.port1.start();const u=setTimeout(()=>{l(new Error("unsupported_event"))},r);i={messageChannel:s,onMessage(d){const f=d;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(u),o=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),a(f.data.response);break;default:clearTimeout(u),clearTimeout(o),l(new Error("invalid_response"));break}}},this.handlers.add(i),s.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:t,eventId:c,data:n},[s.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}/** 1212 * @license 1213 * Copyright 2020 Google LLC 1214 * 1215 * Licensed under the Apache License, Version 2.0 (the "License"); 1216 * you may not use this file except in compliance with the License. 1217 * You may obtain a copy of the License at 1218 * 1219 * http://www.apache.org/licenses/LICENSE-2.0 1220 * 1221 * Unless required by applicable law or agreed to in writing, software 1222 * distributed under the License is distributed on an "AS IS" BASIS, 1223 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1224 * See the License for the specific language governing permissions and 1225 * limitations under the License. 1226 */function ei(){return window}function eK(e){ei().location.href=e}/** 1227 * @license 1228 * Copyright 2020 Google LLC. 1229 * 1230 * Licensed under the Apache License, Version 2.0 (the "License"); 1231 * you may not use this file except in compliance with the License. 1232 * You may obtain a copy of the License at 1233 * 1234 * http://www.apache.org/licenses/LICENSE-2.0 1235 * 1236 * Unless required by applicable law or agreed to in writing, software 1237 * distributed under the License is distributed on an "AS IS" BASIS, 1238 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1239 * See the License for the specific language governing permissions and 1240 * limitations under the License. 1241 */function RN(){return typeof ei().WorkerGlobalScope<"u"&&typeof ei().importScripts=="function"}async function tK(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function nK(){return navigator?.serviceWorker?.controller||null}function rK(){return RN()?self:null}/** 1242 * @license 1243 * Copyright 2019 Google LLC 1244 * 1245 * Licensed under the Apache License, Version 2.0 (the "License"); 1246 * you may not use this file except in compliance with the License. 1247 * You may obtain a copy of the License at 1248 * 1249 * http://www.apache.org/licenses/LICENSE-2.0 1250 * 1251 * Unless required by applicable law or agreed to in writing, software 1252 * distributed under the License is distributed on an "AS IS" BASIS, 1253 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1254 * See the License for the specific language governing permissions and 1255 * limitations under the License. 1256 */const IN="firebaseLocalStorageDb",sK=1,Dg="firebaseLocalStorage",ON="fbase_key";class cp{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function a_(e,t){return e.transaction([Dg],t?"readwrite":"readonly").objectStore(Dg)}function oK(){const e=indexedDB.deleteDatabase(IN);
1256return new cp(e).toPromise()}function $0(){const e=indexedDB.open(IN,sK);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(Dg,{keyPath:ON})}catch(s){n(s)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(Dg)?t(r):(r.close(),await oK(),t(await $0()))})})}async function HT(e,t,n){const r=a_(e,!0).put({[ON]:t,value:n});return new cp(r).toPromise()}async function iK(e,t){const n=a_(e,!1).get(t),r=await new cp(n).toPromise();return r===void 0?null:r.value}function zT(e,t){const n=a_(e,!0).delete(t);return new cp(n).toPromise()}const aK=800,lK=3;class PN{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await $0(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>lK)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return RN()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=i_._getInstance(rK()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1256)),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){if(this.activeServiceWorker=await tK(),!this.activeServiceWorker)return;this.sender=new JW(this.activeServiceWorker);const t=await this.sender._send("ping",{},800);t&&t[0]?.fulfilled&&t[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||nK()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await $0();return await HT(t,Ng,"1"),await zT(t,Ng),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>HT(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>iK(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>zT(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(s=>{const o=a_(s,!1).getAll();return new cp(o).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:s,value:o}of t)r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(o)&&(this.notifyListeners(s,o),n.push(s));for(const s of Object.keys(this.localCache))this.localCache[s]&&!r.has(s)&&(this.notifyListeners(s,null),n.push(s));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const s of Array.from(r))s(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),aK)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}PN.type="LOCAL";const cK=PN;new ap(3e4,6e4);/** 1257 * @license 1258 * Copyright 2021 Google LLC 1259 * 1260 * Licensed under the Apache License, Version 2.0 (the "License"); 1261 * you may not use this file except in compliance with the License. 1262 * You may obtain a copy of the License at 1263 * 1264 * http://www.apache.org/licenses/LICENSE-2.0 1265 * 1266 * Unless required by applicable law or agreed to in writing, software 1267 * distributed under the License is distributed on an "AS IS" BASIS, 1268 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1269 * See the License for the specific language governing permissions and 1270 * limitations under the License. 1271 */function uK(e,t){return t?Ni(t):(He(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/** 1272 * @license 1273 * Copyright 2019 Google LLC 1274 * 1275 * Licensed under the Apache License, Version 2.0 (the "License"); 1276 * you may not use this file except in compliance with the License. 1277 * You may obtain a copy of the License at 1278 * 1279 * http://www.apache.org/licenses/LICENSE-2.0 1280 * 1281 * Unless required by applicable law or agreed to in writing, software 1282 * distributed under the License is distributed on an "AS IS" BASIS, 1283 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1284 * See the License for the specific language governing permissions and 1285 * limitations under the License. 1286 */class RS extends SN{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return uu(t,this._buildIdpRequest())}_linkToIdToken(t,n){return uu(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return uu(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}function dK(e){return HW(e.auth,new RS(e),e.bypassAuthState)}function fK(e){const{auth:t,user:n}=e;return He(n,t,"internal-error"),jW(n,new RS(e),e.bypassAuthState)}async function hK(e){const{auth:t,user:n}=e;return He(n,t,"internal-error"),VW(n,new RS(e),e.bypassAuthState)}/** 1287 * @license 1288 * Copyright 2020 Google LLC 1289 * 1290 * Licensed under the Apache License, Version 2.0 (the "License");
1291 * you may not use this file except in compliance with the License. 1292 * You may obtain a copy of the License at 1293 * 1294 * http://www.apache.org/licenses/LICENSE-2.0 1295 * 1296 * Unless required by applicable law or agreed to in writing, software 1297 * distributed under the License is distributed on an "AS IS" BASIS, 1298 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1299 * See the License for the specific language governing permissions and 1300 * limitations under the License. 1301 */class LN{constructor(t,n,r,s,o=!1){this.auth=t,this.resolver=r,this.user=s,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:s,tenantId:o,error:i,type:a}=t;if(i){this.reject(i);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:o||void 0,postBody:s||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(c){this.reject(c)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return dK;case"linkViaPopup":case"linkViaRedirect":return hK;case"reauthViaPopup":case"reauthViaRedirect":return fK;default:zi(this.auth,"internal-error")}}resolve(t){qi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){qi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1302 * @license 1303 * Copyright 2020 Google LLC 1304 * 1305 * Licensed under the Apache License, Version 2.0 (the "License"); 1306 * you may not use this file except in compliance with the License. 1307 * You may obtain a copy of the License at 1308 * 1309 * http://www.apache.org/licenses/LICENSE-2.0 1310 * 1311 * Unless required by applicable law or agreed to in writing, software 1312 * distributed under the License is distributed on an "AS IS" BASIS, 1313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1314 * See the License for the specific language governing permissions and 1315 * limitations under the License. 1316 */const pK=new ap(2e3,1e4);class jc extends LN{constructor(t,n,r,s,o){super(t,n,s,o),this.provider=r,this.authWindow=null,this.pollId=null,jc.currentPopupAction&&jc.currentPopupAction.cancel(),jc.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return He(t,this.auth,"internal-error"),t}async onExecution(){qi(this.filter.length===1,"Popup operations only handle one event");const t=AS();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Jo(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(Jo(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,jc.currentPopupAction=null}pollUserCancellation(){const t=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Jo(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,pK.get())};t()}}jc.currentPopupAction=null;/** 1317 * @license 1318 * Copyright 2020 Google LLC 1319 * 1320 * Licensed under the Apache License, Version 2.0 (the "License"); 1321 * you may not use this file except in compliance with the License. 1322 * You may obtain a copy of the License at 1323 * 1324 * http://www.apache.org/licenses/LICENSE-2.0 1325 * 1326 * Unless required by applicable law or agreed to in writing, softw
1326are 1327 * distributed under the License is distributed on an "AS IS" BASIS, 1328 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1329 * See the License for the specific language governing permissions and 1330 * limitations under the License. 1331 */const mK="pendingRedirect",Rm=new Map;class gK extends LN{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Rm.get(this.auth._key());if(!t){try{const r=await vK(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Rm.set(this.auth._key(),t)}return this.bypassAuthState||Rm.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function vK(e,t){const n=bK(t),r=yK(e);if(!await r._isAvailable())return!1;const s=await r._get(n)==="true";return await r._remove(n),s}function _K(e,t){Rm.set(e._key(),t)}function yK(e){return Ni(e._redirectPersistence)}function bK(e){return Am(mK,e.config.apiKey,e.name)}async function wK(e,t,n=!1){if(qo(e.app))return Promise.reject(Oa(e));const r=o_(e),s=uK(r,t),i=await new gK(r,s,n).execute();return i&&!n&&(delete i.user._redirectEventId,await r._persistUserIfCurrent(i.user),await r._setRedirectUser(null,t)),i}/** 1332 * @license 1333 * Copyright 2020 Google LLC 1334 * 1335 * Licensed under the Apache License, Version 2.0 (the "License"); 1336 * you may not use this file except in compliance with the License. 1337 * You may obtain a copy of the License at 1338 * 1339 * http://www.apache.org/licenses/LICENSE-2.0 1340 * 1341 * Unless required by applicable law or agreed to in writing, software 1342 * distributed under the License is distributed on an "AS IS" BASIS, 1343 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1344 * See the License for the specific language governing permissions and 1345 * limitations under the License. 1346 */const SK=600*1e3;class EK{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!kK(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){if(t.error&&!NN(t)){const r=t.error.code?.split("auth/")[1]||"internal-error";n.onError(Jo(this.auth,r))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=SK&&this.cachedEventUids.clear(),this.cachedEventUids.has(qT(t))}saveEventToCache(t){this.cachedEventUids.add(qT(t)),this.lastProcessedEventTime=Date.now()}}function qT(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function NN({type:e,error:t}){return e==="unknown"&&t?.code==="auth/no-auth-event"}function kK(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return NN(e);default:return!1}}/** 1347 * @license 1348 * Copyright 2020 Google LLC 1349 * 1350 * Licensed under the Apache License, Version 2.0 (the "License"); 1351 * you may not use this file except in compliance with the License. 1352 * You may obtain a copy of the License at 1353 * 1354 * http://www.apache.org/licenses/LICENSE-2.0 1355 * 1356 * Unless required by applicable law or agreed to in writing, softw
1356are 1357 * distributed under the License is distributed on an "AS IS" BASIS, 1358 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1359 * See the License for the specific language governing permissions and 1360 * limitations under the License. 1361 */async function xK(e,t={}){return id(e,"GET","/v1/projects",t)}/** 1362 * @license 1363 * Copyright 2020 Google LLC 1364 * 1365 * Licensed under the Apache License, Version 2.0 (the "License"); 1366 * you may not use this file except in compliance with the License. 1367 * You may obtain a copy of the License at 1368 * 1369 * http://www.apache.org/licenses/LICENSE-2.0 1370 * 1371 * Unless required by applicable law or agreed to in writing, software 1372 * distributed under the License is distributed on an "AS IS" BASIS, 1373 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1374 * See the License for the specific language governing permissions and 1375 * limitations under the License. 1376 */const TK=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,CK=/^https?/;async function AK(e){if(e.config.emulator)return;const{authorizedDomains:t}=await xK(e);for(const n of t)try{if(RK(n))return}catch{}zi(e,"unauthorized-domain")}function RK(e){const t=D0(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return i.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&i.hostname===r}if(!CK.test(n))return!1;if(TK.test(e))return r===e;const s=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(r)}/** 1377 * @license 1378 * Copyright 2020 Google LLC. 1379 * 1380 * Licensed under the Apache License, Version 2.0 (the "License"); 1381 * you may not use this file except in compliance with the License. 1382 * You may obtain a copy of the License at 1383 * 1384 * http://www.apache.org/licenses/LICENSE-2.0 1385 * 1386 * Unless required by applicable law or agreed to in writing, software 1387 * distributed under the License is distributed on an "AS IS" BASIS, 1388 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1389 * See the License for the specific language governing permissions and 1390 * limitations under the License. 1391 */const IK=new ap(3e4,6e4);function WT(){const e=ei().___jsl;if(e?.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}}function OK(e){return new Promise((t,n)=>{function r(){WT(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{WT(),n(Jo(e,"network-request-failed"))},timeout:IK.get()})}if(ei().gapi?.iframes?.Iframe)t(gapi.iframes.getContext());else if(ei().gapi?.load)r();else{const s=NW("iframefcb");return ei()[s]=()=>{gapi.load?r():n(Jo(e,"network-request-failed"))},PW(`${LW()}?onload=${s}`).catch(o=>n(o))}}).catch(t=>{throw Im=null,t})}let Im=null;function PK(e){return Im=Im||OK(e),Im}/** 1392 * @license 1393 * Copyright 2020 Google LLC. 1394 * 1395 * Licensed under the Apache License, Version 2.0 (the "License"); 1396 * you may not use this file except in compliance with the License. 1397 * You may obtain a copy of the License at 1398 * 1399 * http://www.apache.org/licenses/LICENSE-2.0 1400 * 1401 * Unless required by applicable law or agreed to in writing, software 1402 * distributed under the License is distributed on an "AS IS" BASIS, 1403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1404 * See the License for the specific language governing permissions and 1405 * limitations under the License. 1406 */const LK=new ap(5e3,15e3),NK="__/auth/iframe",DK="emulator/auth/iframe",MK={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},$K=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function FK(e){const t=e.config;He(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?ES(t,DK):`https://${e.config.authDomain}/${NK}`,r={apiKey:t.apiKey,appName:e.name,v:ip},s=$K.get(e.config.apiHost);s&&(r.eid=s);const o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${op(r).slice(1)}`}async function UK(e){const t=await PK(e),n=ei().gapi;return He(n,e,"internal-error"),t.open({where:document.body,url:FK(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:MK,dontclear:!0},r=>new Promise(async(s,o)=>{await r.restyle({setHideOnLeave:!1});const i=Jo(e,"network-request-failed"),a=ei().setTimeout(()=>{o(i)},LK.get());function l(){ei().clearTimeout(a),s(r)}r.ping(l).then(l,()=>{o(i)})}))}/** 1407 * @license 1408 * Copyright 2020 Google LLC. 1409 * 1410 * Licensed under the Apache License, Version 2.0 (the "License");
1411 * you may not use this file except in compliance with the License. 1412 * You may obtain a copy of the License at 1413 * 1414 * http://www.apache.org/licenses/LICENSE-2.0 1415 * 1416 * Unless required by applicable law or agreed to in writing, software 1417 * distributed under the License is distributed on an "AS IS" BASIS, 1418 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1419 * See the License for the specific language governing permissions and 1420 * limitations under the License. 1421 */const BK={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},VK=500,jK=600,HK="_blank",zK="http://localhost";class KT{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function qK(e,t,n,r=VK,s=jK){const o=Math.max((window.screen.availHeight-s)/2,0).toString(),i=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l={...BK,width:r.toString(),height:s.toString(),top:o,left:i},c=Xr().toLowerCase();n&&(a=pN(c)?HK:n),fN(c)&&(t=t||zK,l.scrollbars="yes");const u=Object.entries(l).reduce((f,[h,p])=>`${f}${h}=${p},`,"");if(kW(c)&&a!=="_self")return WK(t||"",a),new KT(null);const d=window.open(t||"",a,u);He(d,e,"popup-blocked");try{d.focus()}catch{}return new KT(d)}function WK(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** 1422 * @license 1423 * Copyright 2021 Google LLC 1424 * 1425 * Licensed under the Apache License, Version 2.0 (the "License"); 1426 * you may not use this file except in compliance with the License. 1427 * You may obtain a copy of the License at 1428 * 1429 * http://www.apache.org/licenses/LICENSE-2.0 1430 * 1431 * Unless required by applicable law or agreed to in writing, software 1432 * distributed under the License is distributed on an "AS IS" BASIS, 1433 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1434 * See the License for the specific language governing permissions and 1435 * limitations under the License. 1436 */const KK="__/auth/handler",GK="emulator/auth/handler",YK=encodeURIComponent("fac");async function GT(e,t,n,r,s,o){He(e.config.authDomain,e,"auth-domain-config-required"),He(e.config.apiKey,e,"invalid-api-key");const i={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:ip,eventId:s};if(t instanceof EN){t.setDefaultLanguage(e.languageCode),i.providerId=t.providerId||"",Yq(t.getCustomParameters())||(i.customParameters=JSON.stringify(t.getCustomParameters()));for(const[u,d]of Object.entries({}))i[u]=d}if(t instanceof lp){const u=t.getScopes().filter(d=>d!=="");u.length>0&&(i.scopes=u.join(","))}e.tenantId&&(i.tid=e.tenantId);const a=i;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const l=await e._getAppCheckToken(),c=l?`#${YK}=${encodeURIComponent(l)}`:"";return`${XK(e)}?${op(a).slice(1)}${c}`}function XK({config:e}){return e.emulator?ES(e,GK):`https://${e.authDomain}/${KK}`}/** 1437 * @license 1438 * Copyright 2020 Google LLC 1439 * 1440 * Licensed under the Apache License, Version 2.0 (the "License"); 1441 * you may not use this file except in compliance with the License. 1442 * You may obtain a copy of the License at 1443 * 1444 * http://www.apache.org/licenses/LICENSE-2.0 1445 * 1446 * Unless required by applicable law or agreed to in writing, software 1447 * distributed under the License is distributed on an "AS IS" BASIS, 1448 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1449 * See the License for the specific language governing permissions and 1450 * limitations under the License. 1451 */const xy="webStorageSupport";class QK{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=CS,this._completeRedirectFn=wK,this._overrideRedirectResult=_K}async _openPopup(t,n,r,s){qi(this.eventManagers[t._key()]?.manager,"_initialize() not called before _openPopup()");const o=await GT(t,n,r,D0(),s);return qK(t,o,AS())}async _openRedirect(t,n,r,s){await this._originValidation(t);const o=await GT(t,n,r,D0(),s);return eK(o),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:s,promise:o}=this.eventManagers[n];return s?Promise.resolve(s):(qi(o,"If manager is not set, promise should be"),o)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await UK(t),r=new EK(t);return n.register("authEvent",s=>
1451(He(s?.authEvent,t,"invalid-auth-event"),{status:r.onEvent(s.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(xy,{type:xy},s=>{const o=s?.[0]?.[xy];o!==void 0&&n(!!o),zi(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=AK(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return yN()||hN()||xS()}}const ZK=QK;var YT="@firebase/auth",XT="1.11.0";/** 1452 * @license 1453 * Copyright 2020 Google LLC 1454 * 1455 * Licensed under the Apache License, Version 2.0 (the "License"); 1456 * you may not use this file except in compliance with the License. 1457 * You may obtain a copy of the License at 1458 * 1459 * http://www.apache.org/licenses/LICENSE-2.0 1460 * 1461 * Unless required by applicable law or agreed to in writing, software 1462 * distributed under the License is distributed on an "AS IS" BASIS, 1463 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1464 * See the License for the specific language governing permissions and 1465 * limitations under the License. 1466 */class JK{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){He(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 1467 * @license 1468 * Copyright 2020 Google LLC 1469 * 1470 * Licensed under the Apache License, Version 2.0 (the "License"); 1471 * you may not use this file except in compliance with the License. 1472 * You may obtain a copy of the License at 1473 * 1474 * http://www.apache.org/licenses/LICENSE-2.0 1475 * 1476 * Unless required by applicable law or agreed to in writing, software 1477 * distributed under the License is distributed on an "AS IS" BASIS, 1478 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1479 * See the License for the specific language governing permissions and 1480 * limitations under the License. 1481 */function eG(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function tG(e){nh(new Pu("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),s=t.getProvider("heartbeat"),o=t.getProvider("app-check-internal"),{apiKey:i,authDomain:a}=r.options;He(i&&!i.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:i,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:bN(e)},c=new IW(r,s,o,l);return MW(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),nh(new Pu("auth-internal",t=>{const n=o_(t.getProvider("auth").getImmediate());return(r=>new JK(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),au(YT,XT,eG(e)),au(YT,XT,"esm2020")}/** 1482 * @license 1483 * Copyright 2021 Google LLC 1484 * 1485 * Licensed under the Apache License, Version 2.0 (the "License"); 1486 * you may not use this file except in compliance with the License. 1487 * You may obtain a copy of the License at 1488 * 1489 * http://www.apache.org/licenses/LICENSE-2.0 1490 * 1491 * Unless required by applicable law or agreed to in writing, softw
1491are 1492 * distributed under the License is distributed on an "AS IS" BASIS, 1493 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1494 * See the License for the specific language governing permissions and 1495 * limitations under the License. 1496 */const nG=300,rG=GL("authIdTokenMaxAge")||nG;let QT=null;const sG=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>rG)return;const s=n?.token;QT!==s&&(QT=s,await fetch(e,{method:s?"POST":"DELETE",headers:s?{Authorization:`Bearer ${s}`}:{}}))};function Mg(e=eN()){const t=ZL(e,"auth");if(t.isInitialized())return t.getImmediate();const n=DW(e,{popupRedirectResolver:ZK,persistence:[cK,QW,CS]}),r=GL("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const o=new URL(r,location.origin);if(location.origin===o.origin){const i=sG(o.toString());GW(n,i,()=>i(n.currentUser)),KW(n,a=>i(a))}}const s=Lq("auth");return s&&$W(n,`http://${s}`),n}function oG(){return document.getElementsByTagName("head")?.[0]??document}OW({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=s=>{const o=Jo("internal-error");o.customData=s,n(o)},r.type="text/javascript",r.charset="UTF-8",oG().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});tG("Browser");var ad=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},iG={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},aG=class{#e=iG;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},kl=new aG;function lG(e){setTimeout(e,0)}var Kl=typeof window>"u"||"Deno"in globalThis;function Hr(){}function cG(e,t){return typeof e=="function"?e(t):e}function F0(e){return typeof e=="number"&&e>=0&&e!==1/0}function DN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pa(e,t){return typeof e=="function"?e(t):e}function Ws(e,t){return typeof e=="function"?e(t):e}function ZT(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==IS(i,t.options))return!1}else if(!oh(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function JT(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Gl(t.options.mutationKey)!==Gl(o))return!1}else if(!oh(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function IS(e,t){return(t?.queryKeyHashFn||Gl)(e)}function Gl(e){return JSON.stringify(e,(t,n)=>U0(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function oh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>oh(e[n],t[n])):!1}var uG=Object.prototype.hasOwnProperty;function MN(e,t){if(e===t)return e;const n=eC(e)&&eC(t);if(!n&&!(U0(e)&&U0(t)))return t;const s=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),i=o.length,a=n?new Array(i):{};let l=0;for(let c=0;c<i;c++){const u=n?c:o[c],d=e[u],f=t[u];if(d===f){a[u]=d,(n?c<s:uG.call(e,u))&&l++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){a[u]=f;continue}const h=MN(d,f);a[u]=h,h===d&&l++}return s===i&&l===s?e:a}function $g(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function eC(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function U0(e){if(!tC(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!tC(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tC(e){return Object.prototype.toString.call(e)==="[object Object]"}function dG(e){return new Promise(t=>{kl.setTimeout(t,e)})}function B0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?MN(e,t):t}function fG(e){return e}function hG(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pG(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var OS=Symbol();function $N(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===OS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function V0(e,t){return typeof e=="function"?e(...t):!!e}var mG=class extends ad{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Kl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();
1496this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},PS=new mG;function j0(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function gG(e){let t;if(e.then(n=>(t=n,n),Hr)?.catch(Hr),t!==void 0)return{data:t}}function vG(e){return e}function _G(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),s=e.getQueryCache(),o=e.getDefaultOptions().hydrate?.deserializeData??vG,i=t.mutations||[],a=t.queries||[];i.forEach(({state:l,...c})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...c},l)}),a.forEach(({queryKey:l,state:c,queryHash:u,meta:d,promise:f,dehydratedAt:h})=>{const p=f?gG(f):void 0,m=c.data===void 0?p?.data:c.data,g=m===void 0?m:o(m);let v=s.get(u);const b=v?.state.status==="pending",_=v?.state.fetchStatus==="fetching";if(v){const y=p&&h!==void 0&&h>v.state.dataUpdatedAt;if(c.dataUpdatedAt>v.state.dataUpdatedAt||y){const{fetchStatus:w,...S}=c;v.setState({...S,data:g})}}else v=s.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:l,queryHash:u,meta:d},{...c,data:g,fetchStatus:"idle",status:g!==void 0?"success":c.status});f&&!b&&!_&&(h===void 0||h>v.state.dataUpdatedAt)&&v.fetch(void 0,{initialPromise:Promise.resolve(f).then(o)}).catch(Hr)})}var yG=lG;function bG(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=yG;const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var ir=bG(),wG=class extends ad{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Kl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Fg=new wG;function SG(e){return Math.min(1e3*2**e,3e4)}function FN(e){return(e??"online")==="online"?Fg.isOnline():!0}var H0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function UN(e){let t=!1,n=0,r;const s=j0(),o=()=>s.status!=="pending",i=m=>{if(!o()){const g=new H0(m);f(g),e.onCancel?.(g)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>PS.isFocused()&&(e.networkMode==="always"||Fg.isOnline())&&e.canRun(),u=()=>FN(e.networkMode)&&e.canRun(),d=m=>{o()||(r?.(),s.resolve(m))},f=m=>{o()||(r?.(),s.reject(m))},h=()=>new Promise(m=>{r=g=>{(o()||c())&&m(g)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),p=()=>{if(o())return;let m;const g=n===0?e.initialPromise:void 0;try{m=g??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(d).catch(v=>{if(o())return;const b=e.retry??(Kl?0:3),_=e.retryDelay??SG,y=typeof _=="function"?_(n,v):_,w=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,v);if(t||!w){f(v);return}n++,e.onFail?.(n,v),dG(y).then(()=>c()?void 0:h()).then(()=>{t?f(v):p()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(r?.(),s),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?p():h().then(p),s)}}var BN=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),F0(this.gcTime)&&(this.#e=kl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Kl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(kl.clearTimeout(this.#e),this.#e=void 0)}},EG=class extends BN{#e;#t;#n;#s;#r;#i;#a;constructor(e){super(),this.#a=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#n=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=nC(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=nC(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=B0(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;
1496return this.#r?.cancel(e),t?t.then(Hr).catch(Hr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Ws(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===OS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Pa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!DN(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#a?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},s=()=>{const a=$N(this.options,t),c=(()=>{const u={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},i=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return r(a),a})();this.options.behavior?.onFetch(i,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#o({type:"fetch",meta:i.fetchOptions?.meta}),this.#r=UN({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:a=>{a instanceof H0&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(a,l)=>{this.#o({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const a=await this.#r.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof H0){if(a.silent)return this.#r.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#o({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...VN(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};
1496case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ir.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function VN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:FN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function nC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var kG=class extends ad{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#a=j0(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#s=void 0;#r;#i;#a;#o;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),rC(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return z0(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return z0(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ws(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!$g(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&sC(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||Ws(this.options.enabled,this.#t)!==Ws(t.enabled,this.#t)||Pa(this.options.staleTime,this.#t)!==Pa(t.staleTime,this.#t))&&this.#g();const s=this.#v();r&&(this.#t!==n||Ws(this.options.enabled,this.#t)!==Ws(t.enabled,this.#t)||s!==this.#l)&&this.#_(s)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return TG(this,n)&&(this.#s=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Hr)),t}#g(){this.#b();const e=Pa(this.options.staleTime,this.#t);if(Kl||this.#s.isStale||!F0(e))return;const n=DN(this.#s.dataUpdatedAt,e)+1;this.#c=kl.setTimeout(()=>{this.#s.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#_(e){this.#w(),this.#l=e,!(Kl||Ws(this.options.enabled,this.#t)===!1||!F0(this.#l)||this.#l===0)&&(this.#u=kl.setInterval(()=>{(this.options.refetchIntervalInBackground||PS.isFocused())&&this.#d()},this.#l))}#y(){this.#g(),this.#_(this.#v())}#b(){this.#c&&(kl.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(kl.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,s=this.#s,o=this.#r,i=this.#i,l=e!==n?e.state:this.#n,{state:c}=e;let u={...c},d=!1,f;if(t._optimisticResults){const x=this.hasListeners(),T=!x&&rC(e,t),O=x&&sC(e,n,t,r);(T||O)&&(u={...u,...VN(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:h,errorUpdatedAt:p,status:m}=u;f=u.data;let g=!1;if(t.placeholderData!==void 0&&f===void 0&&m==="pending"){let x;s?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(x=s.data,g=!0):x=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,x!==void 0&&(m="success",f=B0(s?.data,x,t),d=!0)}if(t.select&&f!==void 0&&!g)if(s&&f===o?.data&&t.select===this.#m)f=this.#f;
1496else try{this.#m=t.select,f=t.select(f),f=B0(s?.data,f,t),this.#f=f,this.#o=null}catch(x){this.#o=x}this.#o&&(h=this.#o,f=this.#f,p=Date.now(),m="error");const v=u.fetchStatus==="fetching",b=m==="pending",_=m==="error",y=b&&v,w=f!==void 0,E={status:m,fetchStatus:u.fetchStatus,isPending:b,isSuccess:m==="success",isError:_,isInitialLoading:y,isLoading:y,data:f,dataUpdatedAt:u.dataUpdatedAt,error:h,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:_&&!w,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:_&&w,isStale:LS(e,t),refetch:this.refetch,promise:this.#a,isEnabled:Ws(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const x=z=>{E.status==="error"?z.reject(E.error):E.data!==void 0&&z.resolve(E.data)},T=()=>{const z=this.#a=E.promise=j0();x(z)},O=this.#a;switch(O.status){case"pending":e.queryHash===n.queryHash&&x(O);break;case"fulfilled":(E.status==="error"||E.data!==O.value)&&T();break;case"rejected":(E.status!=="error"||E.error!==O.reason)&&T();break}}return E}updateResult(){const e=this.#s,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#h=this.#t),$g(t,e))return;this.#s=t;const n=()=>
1496{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,s=typeof r=="function"?r():r;if(s==="all"||!s&&!this.#p.size)return!0;const o=new Set(s??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#s).some(i=>{const a=i;return this.#s[a]!==e[a]&&o.has(a)})};this.#E({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){ir.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#s)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function xG(e,t){return Ws(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rC(e,t){return xG(e,t)||e.state.data!==void 0&&z0(e,t,t.refetchOnMount)}function z0(e,t,n){if(Ws(t.enabled,e)!==!1&&Pa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&LS(e,t)}return!1}function sC(e,t,n,r){return(e!==t||Ws(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&LS(e,n)}function LS(e,t){return Ws(t.enabled,e)!==!1&&e.isStaleByTime(Pa(t.staleTime,e))}function TG(e,t){return!$g(e.getCurrentResult(),t)}function oC(e){return{onFetch:(t,n)=>{const r=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const d=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=$N(t.options,t.fetchOptions),h=async(p,m,g)=>{if(u)return Promise.reject();if(m==null&&p.pages.length)return Promise.resolve(p);const b=(()=>{const S={client:t.client,queryKey:t.queryKey,pageParam:m,direction:g?"backward":"forward",meta:t.options.meta};return d(S),S})(),_=await f(b),{maxPages:y}=t.options,w=g?pG:hG;return{pages:w(p.pages,_,y),pageParams:w(p.pageParams,m,y)}};if(s&&o.length){const p=s==="backward",m=p?jN:q0,g={pages:o,pageParams:i},v=m(r,g);a=await h(g,v,p)}else{const p=e??o.length;do{const m=l===0?i[0]??r.initialPageParam:q0(r,a);if(l>0&&m==null)break;a=await h(a,m),l++}while(l<p)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function q0(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function jN(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function j0e(e,t){return t?q0(e,t)!=null:!1}function H0e(e,t){return!t||!e.getPreviousPageParam?!1:jN(e,t)!=null}var CG=class extends BN{#e;#t;#n;#s;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||HN(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=UN({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,i)=>{this.#r({type:"failed",failureCount:o,error:i})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});
1496const r=this.state.status==="pending",s=!this.#s.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#n.config.onMutate?.(e,this,n);const i=await this.options.onMutate?.(e,n);i!==this.state.context&&this.#r({type:"pending",context:i,variables:e,isPaused:s})}const o=await this.#s.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#n.config.onError?.(o,e,this.state.context,this,n),await this.options.onError?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,o,e,this.state.context,n),o}finally{this.#r({type:"error",error:o})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ir.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function HN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zN=class extends ad{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,n,r){const s=new CG({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){this.#e.add(t);const n=Fp(t);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(t):this.#t.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const n=Fp(t);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&this.#t.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Fp(t);if(typeof n=="string"){const s=this.#t.get(n)?.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){const n=Fp(t);return typeof n=="string"?this.#t.get(n)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ir.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const n={exact:!0,...t};return this.getAll().find(r=>JT(n,r))}findAll(t={}){return this.getAll().filter(n=>JT(t,n))}notify(t){ir.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ir.batch(()=>Promise.all(t.map(n=>n.continue().catch(Hr))))}};function Fp(e){return e.options.scope?.id}var AG=class extends ad{#e;#t=void 0;#n;#s;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),$g(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Gl(n.mutationKey)!==Gl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#s=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??HN();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.
1496status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){ir.batch(()=>{if(this.#s&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#s.onSuccess?.(t.data,n,r,s),this.#s.onSettled?.(t.data,null,n,r,s)):t?.type==="error"&&(this.#s.onError?.(t.error,n,r,s),this.#s.onSettled?.(void 0,t.error,n,r,s))}this.listeners.forEach(n=>{n(this.#t)})})}},qN=class extends ad{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,n,r){const s=n.queryKey,o=n.queryHash??IS(s,n);let i=this.get(o);return i||(i=new EG({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=this.#e.get(t.queryHash);n&&(t.destroy(),n===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ir.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ZT(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ZT(t,r)):n}notify(t){ir.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ir.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ir.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},RG=class{#e;#t;#n;#s;#r;#i;#a;#o;constructor(t={}){this.#e=t.queryCache||new qN,this.#t=t.mutationCache||new zN,this.#n=t.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=PS.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Fg.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=this.#e.build(this,n),s=r.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Pa(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.defaultQueryOptions({queryKey:t}),i=this.#e.get(s.queryHash)?.state.data,a=cG(n,i);if(a!==void 0)return this.#e.build(this,s).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return ir.batch(()=>this.#e.findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state}removeQueries(t){const n=this.#e;ir.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=this.#e;return ir.batch(()=>(r.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},s=ir.batch(()=>this.#e.findAll(t).map(o=>o.cancel(r)));return Promise.all(s).then(Hr).catch(Hr)}invalidateQueries(t,n={}){return ir.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},s=ir.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(Hr)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Hr)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Pa(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Hr).catch(Hr)}fetchInfiniteQuery(t){return t.behavior=oC(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Hr).cat
1496ch(Hr)}ensureInfiniteQueryData(t){return t.behavior=oC(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Fg.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,n){this.#s.set(Gl(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#s.values()],r={};return n.forEach(s=>{oh(t,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(t,n){this.#r.set(Gl(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#r.values()],r={};return n.forEach(s=>{oh(t,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=IS(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===OS&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},IG="VUE_QUERY_CLIENT";function WN(e){const t=e?`:${e}`:"";return`${IG}${t}`}function W0(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function K0(e,t,n="",r=0){if(t){const s=t(e,n,r);if(s===void 0&&et(e)||s!==void 0)return s}if(Array.isArray(e))return e.map((s,o)=>K0(s,t,String(o),r+1));if(typeof e=="object"&&PG(e)){const s=Object.entries(e).map(([o,i])=>[o,K0(i,t,o,r+1)]);return Object.fromEntries(s)}return e}function OG(e,t){return K0(e,t)}function rt(e,t=!1){return OG(e,(n,r,s)=>{if(s===1&&r==="queryKey")return rt(n,!0);if(t&&LG(n))return rt(n(),t);if(et(n))return rt(C(n),t)})}function PG(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function LG(e){return typeof e=="function"}function tl(e=""){if(!Ya())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=WN(e),n=vt(t);if(!n)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return n}var NG=class extends qN{find(e){return super.find(rt(e))}findAll(e={}){return super.findAll(rt(e))}},DG=class extends zN{find(e){return super.find(rt(e))}findAll(e={}){return super.findAll(rt(e))}},KN=class extends RG{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new NG,mutationCache:e.mutationCache||new DG};super(t),this.isRestoring=G(!1)}isFetching(e={}){return super.isFetching(rt(e))}isMutating(e={}){return super.isMutating(rt(e))}getQueryData(e){return super.getQueryData(rt(e))}ensureQueryData(e){return super.ensureQueryData(rt(e))}getQueriesData(e){return super.getQueriesData(rt(e))}setQueryData(e,t,n={}){return super.setQueryData(rt(e),t,rt(n))}setQueriesData(e,t,n={}){return super.setQueriesData(rt(e),t,rt(n))}getQueryState(e){return super.getQueryState(rt(e))}removeQueries(e={}){return super.removeQueries(rt(e))}resetQueries(e={},t={}){return super.resetQueries(rt(e),rt(t))}cancelQueries(e={},t={}){return super.cancelQueries(rt(e),rt(t))}invalidateQueries(e={},t={}){const n=rt(e),r=rt(t);if(super.invalidateQueries({...n,refetchType:"none"},r),n.refetchType==="none")return Promise.resolve();const s={...n,type:n.refetchType??n.type??"active"};return Lt().then(()=>super.refetchQueries(s,r))}refetchQueries(e={},t={}){return super.refetchQueries(rt(e),rt(t))}fetchQuery(e){return super.fetchQuery(rt(e))}prefetchQuery(e){return super.prefetchQuery(rt(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(rt(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(rt(e))}setDefaultOptions(e){super.setDefaultOptions(rt(e))}setQueryDefaults(e,t){super.setQueryDefaults(rt(e),rt(t))}getQueryDefaults(e){return super.getQueryDefaults(rt(e))}setMutationDefaults(e,t){super.setMutationDefaults(rt(e),rt(t))}getMutationDefaults(e){return super.getMutationDefaults(rt(e))}},MG={install:(e,t={})=>{const n=WN(t.queryClientKey);let r;if("queryClient"in t&&t.queryClient)r=t.queryClient;else{const i="queryClientConfig"in t?t.queryClientConfig:void 0;r=new KN(i)}Kl||r.mount();let s=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);const[i,a]=t.clientPersister(r);s=i,a.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}const o=()=>{r.unmount(),s()};if(e.onUnmount)e.onUnmount(o);else{const i=e.unmount;e.unmount=function(){o(),i()}}e.provide(n,r)}};function $G(e,t,n){const r=tl(),s=A(()=>{const h=rt(t);typeof h.enabled=="function"&&(h.enabled=h.enabled());const p=r.defaultQueryOptions(h);return p._optimisticResults=r.isRestoring?.value?"isRestoring":"optimistic",p}),o=new e(r,s.value),i=s.value.shallow?cs(o.getCurrentResult()):jn(o.getCurrentResult());let a=()=>{};r.isRestoring&&be(r.isRestoring,h=>{h||(a(),a=o.subscribe(p=>{W0(i,p)}))},{immediate:!0});const l=()=>{o.setOptions(s.value),W0(i,o.getCurrentResult())};be(s,l),gs(()=>{a()});const c=(...h)=>(l(),i.refetch(...h)),u=()=>new Promise((h,p)=>{let m=()=>{};const g=()=>{if(s.value.enabled!==!1){o.setOptions(s.value);const v=o.getOptimisticResult(s.value);v.isStale?(m(),o.fetchOptimistic(s.value).then(h,b=>{V0(s.value.throwOnError,[b,o.getCurrentQuery()])?p(b):h(o.getCurrentResult())})):(m(),h(v))}};g(),m=be(s,g)});be(()=>i.error,h=>{if(i.isError&&!i.isFetching&&V0(s.value.throwOnError,[h,o.getCurrentQuery()]))throw h});const d=s.value.shallow?td(i):Ao(i),f=Gr(d);for(const h in i)typeof i[h]=="function"&&(f[h]=i[h]);return f.suspense=u,f.refetch=c,f}function NS(e,t){return $G(kG,e)}function GN(e,t){const n=tl(),r=A(()=>n.defaultMutationOptions(rt(e))),s=new AG(n,r.value),o=r.value.shallow?cs(s.getCurrentResult()):jn(s.getCurrentResult()),i=s.subscribe(u=>{W0(o,u)}),a=(u,d)=>{s.mutate(u,d).catch(()=>{})};be(r,()=>{s.setOptions(r.value)}),gs(()=>{i()});const l=r.value.shallow?td(o):Ao(o),c=Gr(l);return be(()=>o.error,u=>
1496{if(u&&V0(r.value.throwOnError,[u]))throw u}),{...c,mutate:a,mutateAsync:o.mutate,reset:o.reset}}const FG="$s";function dr(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=FG+n,o=De(),i=us(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(et(a))return o.payload.state[s]=a,a;i.value=a}return i}const l_=()=>dr("flowRemap",()=>null),DS=(e,t)=>e?t&&e===t.from?t.to:e:null,UG=e=>{const t=Pr(),n=l_();return A(()=>{const r=e!==void 0?Je(e):typeof t.query.portal=="string"&&t.query.portal?t.query.portal:null;return DS(r??"0",n.value)})};const G0e=e=>e.replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),BG=e=>e.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`),G0=(e,t)=>Array.isArray(e)?e.map(n=>G0(n,t)):e!==null&&typeof e=="object"&&e.constructor===Object?Object.entries(e).reduce((n,[r,s])=>{const o=t(r);return n[o]=s&&typeof s=="object"&&!Array.isArray(s)?G0(s,t):s,n},{}):e,VG=e=>G0(e,BG),jG=(e,t)=>{const n=t?.statusCode??t?.response?.status;return n&&n>=400&&n<500&&n!==408&&n!==429?!1:e<2},HG=e=>Math.min(1e3*2**e,4e3),Y0={all:["portal-configuration"]},MS=Symbol("portalFlowName"),iC=["texts"],zG="/organization/portal-bootstrap",na=()=>{const e=Or(),t=Pr(),{branding:n}=t.query,r=tl(),s=l_(),o=vt(MS,G(null)),i=A(()=>{const u=t.query.portal;return o.value??(typeof u=="string"&&u?u:"0")}),a=A(()=>{const u=t.query.checkoutSession;return typeof u=="string"&&u?u:null}),l=()=>{const d=window.location.origin?.split(",")[0];return d?d?.startsWith("http")?d:`https://${d}`:""},c=A(()=>[...Y0.all,i.value,a.value,n]);return NS({queryKey:c,queryFn:async()=>{const u=i.value,d=a.value,f=new URLSearchParams;u&&f.set("flow_name",u),d&&f.set("checkout_session",d),n&&typeof n=="string"&&f.set("branding",n);const h=await $fetch(`${zG}${f.size>0?`?${f.toString()}`:""}`,{baseURL:e.public.publicPortalGatewayUrl,headers:{"x-org-id":e.public.genericOrgId??"",origin:l()},timeout:3e4,retry:0}),p=Object.fromEntries(Object.entries(h).filter(([_])=>iC.includes(_))),m=Object.fromEntries(Object.entries(h).filter(([_])=>!iC.includes(_))),v={...VG(m),...p},b=v.remapped_flow;return b&&i.value===u&&(s.value={from:u??"0",to:b},r.setQueryData([...Y0.all,b,d,n],v)),v},retry:jG,retryDelay:HG,staleTime:6e5,placeholderData:fG})},YN=()=>{const{data:e}=na();return{data:A(()=>e.value?.secure_login)}},Up="sessionExpiresAt",Bp="wasLoggedOutDueToInactivity",qG=Xv("auth",()=>{const e=G(null),t=A(()=>!!e.value),n=G(null),r=G(null),s=G(!1),{data:o}=YN(),i=Hn(),a=m=>{e.value=m,sessionStorage.setItem("user",JSON.stringify(m))},l=m=>{n.value=m,m&&(c(),s.value=!1,sessionStorage.removeItem(Up),sessionStorage.removeItem(Bp))},c=()=>{r.value&&(clearTimeout(r.value),r.value=null)},u=(m=!1)=>{e.value=null,n.value=null,c(),sessionStorage.clear(),m&&sessionStorage.setItem(Bp,"1"),s.value=m},d=async()=>{try{await xN(Mg())}finally{u(!0)}},f=async()=>{e.value&&(await d(),await i.push("/"))},h=()=>Number(sessionStorage.getItem(Up))||null,p=()=>{if(!e.value)return;const m=o.value;if(!m)return;const g=m.session_timeout;if(!g){c(),sessionStorage.removeItem(Up);return}let v=h();if(v||(v=Date.now()+g*60*1e3,sessionStorage.setItem(Up,String(v))),v<=Date.now())return d();r.value||(r.value=setTimeout(()=>{r.value=null,f()},v-Date.now()))};{Ut(()=>{const g=sessionStorage.getItem("user");e.value=g?JSON.parse(g):null}),sessionStorage.getItem(Bp)&&(s.value=!0,sessionStorage.removeItem(Bp));const m=()=>{if(document.visibilityState!=="visible"||!o.value?.session_timeout)return;const g=h();g&&g<=Date.now()&&f()};document.addEventListener("visibilitychange",m),gs(()=>{document.removeEventListener("visibilitychange",m)})}return{user:e,isUserAuthenticated:t,sessionId:n,setUser:a,logoutUser:u,setSessionId:l,wasLoggedOutDueToInactivity:s,ensureLogoutTimer:p,logOutInactiveUser:f}});function X0(e){return typeof e=="string"?`'${e}'`:new WG().serialize(e)}
1496const WG=(function(){class e{#e=new Map;compare(n,r){const s=typeof n,o=typeof r;return s==="string"&&o==="string"?n.localeCompare(r):s==="number"&&o==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?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 r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const s=n.constructor,o=s===Object||s===void 0?"":s.name;if(o!==""&&globalThis[o]===s)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const i=n.toJSON();return o+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,r){const s=this["$"+n];if(s)return s.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const s=Array.from(r).sort((i,a)=>this.compare(i[0],a[0]));let o=`${n}{`;for(let i=0;i<s.length;i++){const[a,l]=s[i];o+=`${this.serialize(a,!0)}:${this.serialize(l)}`,i<s.length-1&&(o+=",")}return o+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let s=0;s<n.length;s++)r+=this.serialize(n[s]),s<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,s)=>this.compare(r,s)))}`}
1496$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function $S(e,t){return e===t||X0(e)===X0(t)}const KG=Symbol.for("nuxt:client-only"),GG=oe({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=vn(!1);Ut(()=>{r.value=!0});const s=At();return s&&(s._nuxtClientOnly=!0),Zn(KG,!0),()=>{if(r.value){const l=t.default?.();return l&&l.length===1?[Bs(l[0],n)]:l}const o=t.fallback||t.placeholder;if(o)return qe(o);const i=e.fallback||e.placeholder||"",a=e.fallbackTag||e.placeholderTag||"span";return Ae(a,n,i)}}}),ih=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),YG=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),c_=e=>{const t=De();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{ih(()=>e())}):ih(()=>e())};function XG(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},s=r.decode||QG;let o=0;for(;o<e.length;){const i=e.indexOf("=",o);if(i===-1)break;let a=e.indexOf(";",o);if(a===-1)a=e.length;else if(a<i){o=e.lastIndexOf(";",i-1)+1;continue}const l=e.slice(o,i).trim();if(r?.filter&&!r?.filter(l)){o=a+1;continue}if(n[l]===void 0){let c=e.slice(i+1,a).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),n[l]=ZG(c,s)}o=a+1}return n}function QG(e){return e.includes("%")?decodeURIComponent(e):e}function ZG(e,t){try{return t(e)}catch{return e}}const Vp=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function aC(e,t,n){const r=n||{},s=r.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Vp.test(e))throw new TypeError("argument name is invalid");const o=s(t);if(o&&!Vp.test(o))throw new TypeError("argument val is invalid");let i=e+"="+o;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Vp.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!Vp.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){if(!JG(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
1496d");i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{i+="; Priority=Low";break}case"medium":{i+="; Priority=Medium";break}case"high":{i+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{i+="; SameSite=Strict";break}case"lax":{i+="; SameSite=Lax";break}case"strict":{i+="; SameSite=Strict";break}case"none":{i+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i}function JG(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function vo(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=vo(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:vo(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=vo(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=vo(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(s){n.add(vo(s))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(s,o){n.set(vo(o),vo(s))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(vo(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const eY={path:"/",watch:!0,decode:e=>Zf(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},jp=globalThis.cookieStore;function XN(e,t){const n={...eY,...t};n.filter??=c=>c===e;const r=lC(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const o=s!==void 0&&s<=0,i=o||r[e]===void 0||r[e]===null,a=vo(o?void 0:r[e]??n.default?.()),l=s&&!o?rY(a,s,n.watch&&n.watch!=="shallow"):G(a);{let c=null;try{!jp&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const u=(p=!1)=>{!p&&(n.readonly||$S(l.value,r[e]))||(nY(e,l.value,n),r[e]=vo(l.value),c?.postMessage({value:n.encode(l.value)}))},d=p=>{const m=p.refresh?lC(n)?.[e]:n.decode(p.value);f=!0,l.value=m,r[e]=vo(m),Lt(()=>{f=!1})};let f=!1;const h=!!ea();if(h&&gs(()=>{f=!0,u(),c?.close()}),jp){const p=m=>{const g=m.changed.find(b=>b.name===e),v=m.deleted.find(b=>b.name===e);g&&d({value:g.value}),v&&d({value:null})};jp.addEventListener("change",p),h&&gs(()=>jp.removeEventListener("change",p))}else c&&(c.onmessage=({data:p})=>d(p));n.watch&&be(l,()=>{f||u()},{deep:n.watch!=="shallow"}),i&&u(i)}return l}function lC(e={}){return XG(document.cookie,e)}function tY(e,t,n={}){return t==null?aC(e,t,{...n,maxAge:-1}):aC(e,t,n)}function nY(e,t,n={}){document.cookie=tY(e,t,n)}const cC=2147483647;function rY(e,t,n){let r,s,o=0;const i=n?G(e):{value:e};return ea()&&gs(()=>{s?.(),clearTimeout(r)}),Qh((a,l)=>{n&&(s=be(i,l));function c(){o=0,clearTimeout(r);const u=t-o,d=u<cC?u:cC;r=setTimeout(()=>{if(o+=d,o<t)return c();i.value=void 0,l()},d)}return{get(){return a(),i.value},set(u){c(),i.value=u,l()}}})}function sY(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function QN(e,t=Hn()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>QN(e,t));t._routePreloaded.add(n);for(const o of r){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function oY(e={}){const t=e.path||window.location.pathname;let n={};try{n=Zf(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:De().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}function FS(e){return new URL(globalThis.location.href)}const iY=(...e)=>e.find(t=>t!==void 0);function aY(e){const t=e.componentName||"NuxtLink";
1496function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i,a){const l=a??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return Hp(o,l);const c="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:Hp(c,l)}}function s(o){const i=Hn(),a=Or(),l=A(()=>!!o.target&&o.target!=="_self"),c=A(()=>{const g=o.to||o.href||"";return typeof g=="string"&&od(g,{acceptRelative:!0})}),u=Hb("RouterLink"),d=u&&typeof u!="string"?u.useLink:void 0,f=A(()=>{if(o.external)return!0;const g=o.to||o.href||"";return typeof g=="object"?!1:g===""||c.value}),h=A(()=>{const g=o.to||o.href||"";return f.value?g:r(g,i.resolve,o.trailingSlash)}),p=f.value?void 0:d?.({...o,to:h}),m=A(()=>{const g=o.trailingSlash??e.trailingSlash;if(!h.value||c.value||n(h.value))return h.value;if(f.value){const v=typeof h.value=="object"&&"path"in h.value?d0(h.value):h.value,b=typeof v=="object"?i.resolve(v).href:v;return Hp(b,g)}return typeof h.value=="object"?i.resolve(h.value)?.href??null:Hp(sS(a.app.baseURL,h.value),g)});return{to:h,hasTarget:l,isAbsoluteUrl:c,isExternal:f,href:m,isActive:p?.isActive??A(()=>h.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??A(()=>h.value===i.currentRoute.value.path),route:p?.route??A(()=>i.resolve(h.value)),async navigate(g){await xr(m.value,{replace:o.replace,external:f.value||l.value})}}}return oe({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},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=Hn(),{to:l,href:c,navigate:u,isExternal:d,hasTarget:f,isAbsoluteUrl:h}=s(o),p=vn(!1),m=G(null),g=_=>{m.value=o.custom?_?.$el?.nextElementSibling:_?.$el};function v(_){return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===_:o.prefetchOn?.[_]??e.prefetchOn?.[_])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!uY()}async function b(_=De()){if(p.value)return;p.value=!0;const y=typeof l.value=="string"?l.value:d.value?d0(l.value):a.resolve(l.value).fullPath,w=d.value?new URL(y,window.location.href).href:y;await Promise.all([_.hooks.callHook("link:prefetch",w).catch(()=>{}),!d.value&&!f.value&&QN(l.value,a).catch(()=>{})])}if(v("visibility")){const _=De();let y,w=null;Ut(()=>{const S=lY();c_(()=>{y=ih(()=>{m?.value?.tagName&&(w=S.observe(m.value,async()=>{w?.(),w=null,await b(_)}))})})}),Oo(()=>{y&&YG(y),w?.(),w=null})}return()=>{if(!d.value&&!f.value&&!n(l.value)){const w={ref:g,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};
1496return o.custom||(v("interaction")&&(w.onPointerenter=b.bind(null,void 0),w.onFocus=b.bind(null,void 0)),p.value&&(w.class=o.prefetchedClass||e.prefetchedClass),w.rel=o.rel||void 0),qe(Hb("RouterLink"),w,i.default)}const _=o.target||null,y=iY(o.noRel?"":o.rel,e.externalRelAttribute,h.value||f.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:c.value,navigate:u,prefetch:b,get route(){if(!c.value)return;const w=new URL(c.value,window.location.href);return{path:w.pathname,fullPath:w.pathname,get query(){return rS(w.search)},hash:w.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:y,target:_,isExternal:d.value||f.value,isActive:!1,isExactActive:!1}):null:qe("a",{ref:m,href:c.value||null,rel:y,target:_,onClick:w=>{if(!(d.value||f.value))return w.preventDefault(),o.replace?a.replace(c.value):a.push(c.value)}},i.default?.())}}})}const ZN=aY(q4);function Hp(e,t){const n=t==="append"?CP:Sg;return od(e)&&!e.startsWith("http")?e:n(e,!0)}function lY(){const e=De();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||=new IntersectionObserver(a=>{for(const l of a){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}}),n.set(o,i),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const cY=/2g/;function uY(){const e=navigator.connection;return!!(e&&(e.saveData||cY.test(e.effectiveType)))}var uC={};const dY={ui:{colors:{primary:"violet"}},test:!uC.PROD||uC.TEST},fY={nuxt:{},icon:{provider:"server",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/api/_nuxt_icon",fallbackToApi:!0,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","lucide-lab","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:1500},ui:{colors:{primary:"green",secondary:"blue",success:"green",info:"blue",warning:"yellow",error:"red",neutral:"slate"},icons:{arrowLeft:"i-lucide-arrow-left",arrowRight:"i-lucide-arrow-right",check:"i-lucide-check",chevronDoubleLeft:"i-lucide-chevrons-left",chevronDoubleRight:"i-lucide-chevrons-right",chevronDown:"i-lucide-chevron-down",chevronLeft:"i-lucide-chevron-left",chevronRight:"i-lucide-chevron-right",chevronUp:"i-lucide-chevron-up",close:"i-lucide-x",ellipsis:"i-lucide-ellipsis",external:"i-lucide-arrow-up-right",file:"i-lucide-file",folder:"i-lucide-folder",folderOpen:"i-lucide-folder-open",loading:"i-lucide-loader-circle",minus:"i-lucide-minus",plus:"i-lucide-plus",search:"i-lucide-search",upload:"i-lucide-upload"}}},JN=tV(dY,fY);function Lr(){const e=De();return e._appConfig||=jn(JN),e._appConfig}const hY=async e=>{let t,n;const r=Mg(),{data:s}=YN(),o=qG(),{setSessionId:i,setUser:a,ensureLogoutTimer:l,logoutUser:c}=o,{user:u,isUserAuthenticated:d}=MP(o),{$publicPortalGatewayApi:f}=De(),h=e.meta.public;if(s.value?.has_secure_login){[t,n]=or(()=>r.authStateReady()),await t,n(),!d.value&&r.currentUser&&a({uid:r.currentUser.uid});const p=l();if(p)return[t,n]=or(()=>p),await t,n(),xr("/");const m=!!(e.query.user&&e.query.token);if(!d.value&&m){const v=([t,n]=or(()=>f("/customer-portal-sessions/validate",{method:"POST",body:{customer:e.query.user,token:e.query.token}})),t=await t,n(),t);[t,n]=or(()=>WW(r,CS)),await t,n(),i(v.session_id),a({uid:e.query.user?.toString()??""}),l(),[t,n]=or(()=>qW(r,v.token)),await t,n();return}else if(d.value){if(!h&&e.query.user&&e.query.user!==u.value?.uid
1496)return xr({path:"/customer-portal",query:{user:u.value?.uid}});if(h){if(e.path==="/"||e.path==="/forms/street-map"){[t,n]=or(()=>xN(Mg())),await t,n(),c();return}return m||e.meta.allowsAuthenticated?void 0:xr({path:"/customer-portal",query:{user:u.value?.uid}})}}else if(!h){const v=new URLSearchParams({returnTo:e.fullPath});e.query.user&&v.set("user",e.query.user.toString()),window.location.href=`/?${v.toString()}`;return}}},pY=e=>{const n=(typeof e.query.portal=="string"&&e.query.portal?e.query.portal:null)??"0",r=DS(n,l_().value);if(r&&r!==n)return xr({path:e.path,query:{...e.query,portal:r},hash:e.hash},{})},mY=e=>{if(!(e.path!=="/dashboard"&&!e.path.startsWith("/dashboard/")))return xr({path:"/customer-portal",query:e.query},{replace:!0})},gY=new Set(["/success","/receipt","/toku_transfer/receipt","/pac/highValueTransfer/success"]),vY=/^[a-zA-Z0-9_-]+$/,_Y=e=>{if(!gY.has(e.path))return;const t=e.query.operationId??e.query.operation_id,n=Array.isArray(t)?t[0]:t;if(!n||!vY.test(n))return;const r=Array.isArray(e.query.user)?e.query.user[0]:e.query.user;return xr({path:`/checkout/operation-receipt/${n}`,query:r?{user:r}:{}},{replace:!0})},yY=[cz,kq,hY,pY,mY,_Y],Q0={"card-combine-amount":()=>ce(()=>import("./n5lKmfbM.js"),__vite__mapDeps([269,105]),import.meta.url),"combine-flow":()=>ce(()=>import("./fAh1GZx2.js"),__vite__mapDeps([270,104,33,105]),import.meta.url),"legacy-checkout":()=>ce(()=>import("./EJf2_tBj.js"),[],import.meta.url),"single-payment-option-redirect":()=>ce(()=>import("./CUDsBlsx.js"),__vite__mapDeps([271,85]),import.meta.url),"check-customer":()=>ce(()=>import("./CAFu81-u.js"),__vite__mapDeps([272,87]),import.meta.url),"persist-query-params":()=>ce(()=>import("./DEaHVUzh.js"),__vite__mapDeps([273,11]),import.meta.url),"validate-customer-portal-section":()=>ce(()=>import("./DaOV2FEh.js"),[],import.meta.url)};function bY(e,t,n){const{pathname:r,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){const c=o.includes(e.slice(i))?e.slice(i).length:1;let u=o.slice(c);return u[0]!=="/"&&(u="/"+u),mx(u,"")}const a=mx(r,e),l=!n||RV(a,n)?a:n;return l+(l.includes("?")?"":s)+o}const wY=nt({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=Or().app.baseURL;const s=ia.history?.(r)??y8(r),o=ia.routes?([t,n]=or(()=>ia.routes(py)),t=await t,n(),t??py):py;let i;const a=U8({...ia,scrollBehavior:(g,v,b)=>{if(v===ts){i=b;return}if(ia.scrollBehavior){if(a.options.scrollBehavior=ia.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return ia.scrollBehavior(g,ts,i||b)}},history:s,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=vn(a.currentRoute.value);a.afterEach((g,v)=>{l.value=v}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=bY(r,window.location,e.payload.path),u=vn(a.currentRoute.value),d=()=>{u.value=a.currentRoute.value};e.hook("page:finish",d),a.afterEach((g,v)=>{g.matched[g.matched.length-1]?.components?.default===v.matched[v.matched.length-1]?.components?.default&&d()});const f={};for(const g in u.value)Object.defineProperty(f,g,{get:()=>u.value[g],enumerable:!0});e._route=cs(f),e._middleware||={global:[],named:{}};const h=Yv();a.afterEach(async(g,v,b)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(PV),b&&await e.callHook("page:loading:end")});try{[t,n]=or(()=>a.isReady()),await t,n()}catch(g){[t,n]=or(()=>e.runWithContext(()=>_l(g))),await t,n()}const p=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;d();const m=e.payload.state._layout;return a.beforeEach(async(g,v)=>{await e.callHook("page:loading:start"),g.meta=jn(g.meta),e.isHydrating&&m&&!ii(g.meta.layout)&&(g.meta.layout=m),e._processingMiddleware=!0;{const b=new Set([...yY,...e._middleware.global]);for(const _ of g.matched){const y=_.meta.middleware;if(y)for(const w of fS(y))b.add(w)}for(const _ of b){const y=typeof _=="string"?e._middleware.named[_]||await Q0[_]?.().then(w=>w.default||w):_;if(!y)throw new Error(`Unknown route middleware: '${_}'.`);try{const w=await e.runWithContext(()=>y(g,v));if(!e.payload.serverRendered&&e.isHydrating&&(w===!1||w instanceof Error)){const S=w||Mi({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>_l(S)),!1}if(w===!0)continue;if(w===!1)return w;if(w)return OP(w)&&w.fatal&&await e.runWithContext(()=>_l(w)),w}catch(w){const S=Mi(w);return S.fatal&&await e.runWithContext(()=>_l(S)),S}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(g=>{if(g.matched.length===0)return e.runWithContext(()=>_l(Mi({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`,data:{path:g.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=ia.scrollBehavior}catch(g){await e.runWithContext(()=>_l(g))}}),{provide:{router:a}}}});function ld(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function li(e){return ld(e)==="object"}function eD(e,t){return Z0(e,t,SY())}function Z0(e,t,n){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)return new RegExp(t.source,t.flags);if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const s=Array.isArray(e)?e:[];for(let o=0;o<t.length;++o)s[o]=Z0(s[o],t[o],n);return s}const r=ld(e)==="object"?e:{};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&(r[s]=Z0(r[s],t[s],n));return r}function US(e){return eD(void 0,e)}function Wi(...e){let t;for(const n of e)n!=null&&(t=eD(t,n));return t}function SY(){const e=new WeakSet;return{hasAlreadyBeenSeen(t){const n=e.has(t);return n||e.add(t),n}}}const BS={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},As=console,Fd={log:As.log,debug:As.debug,info:As.info,warn:As.warn,error:As.error};function EY(e){return{debug:Fd.debug.bind(As,e),log:Fd.log.bind(As,e),info:Fd.info.bind(As,e),warn:Fd.warn.bind(As,e),error:Fd.error.bind(As,e)}}let tD=!1;function kY(e){tD=e}function nD(){return tD}const _t=globalThis,cd="WorkerGlobalScope"in _t;function VS(e){return ud(e,_t.location?.href).href}function xY(e){try{return!!ud(e)}catch{return!1}}function TY(e){const t=ud(e).pathname;return t[0]==="/"?t:`/${t}`}function ud(e,t){const{URL:n}=CY();try{return t!==void 0?new n(e,t):new n(e)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let Ty;function CY(){if(!Ty){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow??_t}catch{t=_t}Ty={URL:t.URL},e?.remove()}return Ty}const Oe=EY("Datadog Browser SDK:"),u_="https://docs.datadoghq.com",AY=`${u_}/real_user_monitoring/browser/troubleshooting`,jS="More details:";function rD(e,t){return(...n)=>{try{return e(...n)}catch(r){Oe.error(t,r)}}}function zp(e){return e!==0&&Math.random()*100<=e}function tf(e,t){return+e.toFixed(t)}function RY(e){return d_(e)&&e>=0&&e<=100}function d_(e){return typeof e=="number"}const IY=(e,t)=>e==="__proto__"?void 0:t;function dd(e){try{return JSON.parse(e,IY)}catch{}}function ah(e){return{...e}}function Ug(e,t){return Object.keys(e).some(n=>e[n]===t)}function fi(e){return Object.keys(e).length===0}function sD(e,t){const n={};for(const r of Object.keys(e))n[r]=t(e[r]);return n}function zn(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,zn)}const Lu=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function J0(e,t){for(Lu.lastIndex=0;;){const n=Lu.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function OY(e){const t=new Map;for(Lu.lastIndex=0;;){const n=Lu.exec(e);if(n){const r=n[1],s=n[2];t.has(r)?t.get(r).push(s):t.set(r,[s])}else break}return t}function PY(e){const t=new Map;for(Lu.lastIndex=0;;){const n=Lu.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function up(e,t,n=""){const r=e.charCodeAt(t-1),s=r>=55296&&r<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${n}`}const Nr=1e3,Ss=60*Nr,oD=60*Ss,iD=365*24*60*60*1e3;function Ro(){return new Date().getTime()}function xn(){return Ro()}function on(e,t){return t-e}function Ge(e){return typeof e!="number"?e:Math.round(e*1e6)}function Nu(e,t){return e+t}function Ps(){return performance.now()}function Kt(){return{relative:Ps(),timeStamp:xn()}}function aD(){return{relative:0,timeStamp:fd()}}function dp(e){return{relative:e,timeStamp:MY(e)}}function lD(e){return{relative:cD(e),timeStamp:e}}function cD(e){return e-fd()}function LY(e){return Math.round(Nu(fd(),e))}function NY(e){return e<iD}function DY(){return Math.round(Ro()-Nu(fd(),performance.now()))}let Cy;function fd(){return Cy===void 0&&(Cy=performance.timing?.navigationStart??performance.timeOrigin),Cy}function MY(e){const t=Ro()-performance.now();return t>fd()?Math.round(Nu(t,e)):LY(e)}function HS(e,t,n=0,r){const s=new Date;s.setTime(s.getTime()+n);const o=`expires=${s.toUTCString()}`,i=r?.crossSite?"none":"strict",a=r?.domain?`;domain=${r.domain}`:"",l=r?.secure?";secure":"",c=r?.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${i}${a}${l}${c}`}function Bg(e){const t=J0(document.cookie,e);if(t!=="")return t}function Hc(e){return OY(document.cookie).get(e)||[]}let Ay;function kf(e){return Ay||(Ay=PY(document.cookie)),Ay.get(e)}function $Y(e,t){HS(e,"",0,t)}let Ry;function FY(e=_t.location?.hostname??"",t=typeof document<"u"?document.referrer:""){if(!(typeof document>"u")){if(Ry===void 0){const n=UY(e,t);if(n){const r=`dd_site_test_${zn()}`,s="test",o=n.split(".");let i=o.pop();for(;o.length&&!Bg(r);)i=`${o.pop()}.${i}`,HS(r,s,Nr,{domain:i});$Y(r,{domain:i}),Ry=i}}return Ry}}function UY(e,t){try{return e||ud(t).hostname}catch{}}function BY(e,t){function n(i,a,l){l.value=r(l.value)}function r(i){return function(...a){return s(i,this,a)}}function s(i,a,l){try{return i.apply(a,l)}catch(c){o(c)}}function o(i){const a=l=>{nD()&&e.error("[MONITOR]",l)};a(i);try{t(i)}catch(l){a(l)}}return{monitored:n,monitor:r,callMonitored:s,monitorError:o}}let uD;const{monitor:it,callMonitored:Ks,monitorError:nr}=BY(Oe,e=>uD?.(e));function VY(e){uD=e}function dC(e){const t=_t.queueMicrotask;typeof t=="function"?t(it(e)):Promise.resolve().then(it(e))}var dt=class{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}
1496notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};function dD(...e){return new dt(t=>{const n=e.map(r=>r.subscribe(s=>t.notify(s)));return()=>n.forEach(r=>r.unsubscribe())})}var zS=class extends dt{constructor(e,t){super(),this.maxBufferSize=e,this.onDrop=t,this.buffer=[],this.droppedCount=0}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(e)}subscribe(e){let t=!1;const n={unsubscribe:()=>{t=!0,this.removeObserver(e)}};return dC(()=>{for(const r of this.buffer){if(t)return;e(r)}t||this.addObserver(e)}),n}unbuffer(){dC(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}};const ew={GRANTED:"granted",NOT_GRANTED:"not-granted"};function jY(e){const t=new dt;function n(){return e===ew.GRANTED}return{tryToInit(r){e||(e=r)},onGrantedOnce(r){if(n())r();else{const s=t.subscribe(()=>{n()&&(r(),s.unsubscribe())})}},update(r){e=r,t.notify()},isGranted:n,observable:t}}function Du(e){const t=ld(e);return t==="string"||t==="function"||e instanceof RegExp}function hd(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.lastIndex=0,r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(s){Oe.error(s)}return!1})}function Y0e(e){return e}const HY=["chrome-extension://","moz-extension://"];function fC(e){return HY.some(t=>e.includes(t))}function zY(e,t=""){return fC(e)?!1:fC(t.split(` 1497`).filter(n=>{const r=n.trim();return r.length&&/^at\s+|@/.test(r)})[1]||"")}const qY="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",WY="SDK initialized on a non-allowed domain.";function KY(e,t){const n=_t.location,r=n?n.origin:"",s=e.allowedTrackingOrigins;if(!s)return zY(r,t)?(Oe.error(qY),!1):!0;const o=hd(s,r);return o||Oe.error(WY),o}const fD="datad0g.com",f_="datadoghq.com",GY="datadoghq.eu",YY="ddog-gov.com",XY="us2.ddog-gov.com",QY=["ddsource","dd-api-key","dd-request-id"];function ZY(e){return QY.every(t=>e.includes(t))}function qS(e,t,n){return{build(r,s){return pD({proxy:e.proxy,site:e.site,path:`/api/v2/${t}`,parameters:JY(e,t,r,s,n)})},trackType:t}}function hD({replica:e,proxy:t,source:n},r){if(e)return qS({clientToken:e.clientToken,proxy:t,source:n,site:f_},r,[`application.id=${e.applicationId}`])}function pD({proxy:e,site:t=f_,path:n,parameters:r="",subdomain:s}){let o=n;if(r&&(o+=`?${r}`),typeof e=="string"){let c=`${VS(e)}?ddforward=${encodeURIComponent(o)}`;return s&&(c+=`&ddforwardSubdomain=${s}`),c}if(typeof e=="function")return e({path:n,parameters:r,subdomain:s});const i=t.split("."),a=i.pop();let l=`browser-intake-${i.join("-")}.${a}`;return s&&(l=`${s}.${l}`),`https://${l}${o}`}function JY({clientToken:e,source:t="browser"},n,r,{retry:s,encoding:o},i=[]){const a=[`ddsource=${t}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("7.5.0")}`,"dd-evp-origin=browser",`dd-request-id=${mD()}`].concat(i);return o&&a.push(`dd-evp-encoding=${o}`),n==="rum"&&(a.push(`batch_time=${xn()}`,`_dd.api=${r}`),s&&a.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),a.join("&")}function mD(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,mD)}const zc={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},tw={ALL:"all",SAMPLED:"sampled"};function Iy(e,t){return e!=null&&typeof e!="string"?(Oe.error(`${t} must be defined as a string`),!1):!0}function eX(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(Oe.error(`Site should be a valid Datadog site. ${jS} ${u_}/getting_started/site/.`),!1):!0}function qc(e,t){return e!==void 0&&!RY(e)?(Oe.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function tX(e,t){if(!e?.clientToken){Oe.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){Oe.error("Allowed Tracking Origins must be an array");return}if(!(!eX(e.site)||!qc(e.sessionSampleRate,"Session")||!qc(e.telemetrySampleRate,"Telemetry")||!qc(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!qc(e.telemetryUsageSampleRate,"Telemetry Usage")||!Iy(e.version,"Version")||!Iy(e.env,"Env")||!Iy(e.service,"Service")||!KY(e,t??""))){if(e.trackingConsent!==void 0&&!Ug(ew,e.trackingConsent)){Oe.error('Tracking Consent should be either "granted" or "not-granted"');return}return{clientToken:e.clientToken,proxy:e.proxy,site:e.site||f_,source:sX(e.source),beforeSend:e.beforeSend&&rD(e.beforeSend,"beforeSend threw an error:"),cookieOptions:nX(e),sessionPersistence:e.sessionPersistence,sessionSampleRate:e.sessionSampleRate??100,telemetrySampleRate:e.telemetrySampleRate??20,telemetryConfigurationSampleRate:e.telemetryConfigurationSampleRate??5,telemetryUsageSampleRate:e.telemetryUsageSampleRate??5,service:e.service??void 0,env:e.env??void 0,version:e.version??void 0,datacenter:e.datacenter??void 0,silentMultipleInit:!!e.silentMultipleInit,trackingConsent:e.trackingConsent??ew.GRANTED,trackAnonymousUser:e.trackA
1497nonymousUser??!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,variant:e.variant,sdkVersion:e.sdkVersion,replica:e.replica}}}function nX(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=FY();if(!n)return;t.domain=n}return t}function rX(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:Array.isArray(e.sessionPersistence)?e.sessionPersistence[0]:e.sessionPersistence,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}}function sX(e){return e==="flutter"||e==="unity"?e:"browser"}let gD=(function(e){return e.TRACK_INTAKE_REQUESTS="track_intake_requests",e})({});const WS=new Set;function oX(e){Array.isArray(e)&&iX(e.filter(t=>Ug(gD,t)))}function iX(e){e.forEach(t=>{WS.add(t)})}function aX(e){return WS.has(e)}function lX(){return WS}function Ki(e,t){const n=_t;let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}function Tr(e,t){return Ki(_t,"setTimeout")(it(e),t)}function Rs(e){Ki(_t,"clearTimeout")(e)}function pd(e,t){return Ki(_t,"setInterval")(it(e),t)}function h_(e){Ki(_t,"clearInterval")(e)}function p_(e,t,n){const r=n?.leading!==void 0?n.leading:!0,s=n?.trailing!==void 0?n.trailing:!0;let o=!1,i,a;return{throttled:(...l)=>{if(o){i=l;return}r?e(...l):i=l,o=!0,a=Tr(()=>{s&&i&&e(...i),o=!1,i=void 0},t)},cancel:()=>{Rs(a),o=!1,i=void 0}}}function Gt(){}const Mu="?";function dc(e){const t=[];let n=Oy(e,"stack");const r=String(e);if(n?.startsWith(r)&&(n=n.slice(r.length)),n&&n.split(` 1498`).forEach(s=>{const o=dX(s)||hX(s)||mX(s)||_X(s);o&&(!o.func&&o.line&&(o.func=Mu),t.push(o))}),t.length>0&&SX()&&e instanceof Error){const s=[];let o=e;for(;(o=Object.getPrototypeOf(o))&&_D(o);){const i=o.constructor?.name||Mu;s.push(i)}for(let i=s.length-1;i>=0&&t[0]?.func===s[i];i--)t.shift()}return{message:Oy(e,"message"),name:Oy(e,"name"),stack:t}}const vD="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",$u="(?::(\\d+))",cX=new RegExp(`^\\s*at (.*?) ?\\(${vD}${$u}?${$u}?\\)?\\s*$`,"i"),uX=new RegExp(`\\((\\S*)${$u}${$u}\\)`);function dX(e){const t=cX.exec(e);if(!t)return;const n=t[2]?.indexOf("native")===0,r=t[2]?.indexOf("eval")===0,s=uX.exec(t[2]);return r&&s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||Mu,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const fX=new RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${vD}${$u}?${$u}??\\s*$`,"i");function hX(e){const t=fX.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Mu,line:t[3]?+t[3]:void 0,url:t[2]}}const pX=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function mX(e){const t=pX.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Mu,line:+t[3],url:t[2]}}const gX=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,vX=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function _X(e){const t=gX.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,r=vX.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||Mu,line:t[4]?+t[4]:void 0,url:t[3]}}
1498function Oy(e,t){return li(e)&&typeof e[t]=="string"?e[t]:void 0}function yX(e,t,n,r){if(t===void 0)return;const{name:s,message:o}=wX(e);return{name:s,message:o,stack:[{url:t,column:r,line:n}]}}const bX=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function wX(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=bX.exec(e)),{name:t,message:n}}function _D(e){return String(e.constructor).startsWith("class ")}let qp;function SX(){if(qp!==void 0)return qp;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(r=>new r);return qp=_D(Object.getPrototypeOf(t))&&n.stack!==t.stack,qp}function Ei(e){const n=new Error(e);n.name="HandlingStack";let r;return Ks(()=>{const s=dc(n);s.stack=s.stack.slice(2),r=m_(s)}),r}function m_(e){let t=yD(e);return e.stack.forEach(n=>{const r=n.func==="?"?"<anonymous>":n.func,s=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",o=n.line?`:${n.line}`:"",i=n.line&&n.column?`:${n.column}`:"";t+=` 1499 at ${r}${s} @ ${n.url}${o}${i}`}),t}function yD(e){return`${e.name||"Error"}: ${e.message}`}function ti(e,t,n,{computeHandlingStack:r}={}){let s=e[t];if(typeof s!="function")if(t in e&&typeof t=="string"&&t.startsWith("on"))s=Gt;else return{stop:Gt};let o=!1;const i=function(){if(o)return s.apply(this,arguments);const l=Array.from(arguments);return kX(n,{target:this,parameters:l,handlingStack:r?Ei("instrumented method"):void 0},()=>s.apply(this,l))},{stop:a}=EX(e,t,s,i);return{stop:()=>{o=!0,a()}}}function EX(e,t,n,r){return e[t]=r,{stop:()=>{e[t]===r&&(e[t]=n)}}}function kX(e,t,n){let r;Ks(e,null,[{...t,onPostCall:o=>{r=o}}]);const s=n();return r&&Ks(r,null,[s]),s}function X0e(e,t,n){const r=Object.getOwnPropertyDescriptor(e,t);if(!r?.set||!r.configurable)return{stop:Gt};const s=Gt;let o=(a,l)=>{Tr(()=>{o!==s&&n(a,l)},0)};const i=function(a){r.set.call(this,a),o(this,a)};return Object.defineProperty(e,t,{set:i}),{stop:()=>{Object.getOwnPropertyDescriptor(e,t)?.set===i&&Object.defineProperty(e,t,r),o=s}}}let Jt=(function(e){return e.BEFORE_UNLOAD="beforeunload",e.CLICK="click",e.DBL_CLICK="dblclick",e.KEY_DOWN="keydown",e.LOAD="load",e.POP_STATE="popstate",e.SCROLL="scroll",e.TOUCH_START="touchstart",e.TOUCH_END="touchend",e.TOUCH_MOVE="touchmove",e.VISIBILITY_CHANGE="visibilitychange",e.PAGE_SHOW="pageshow",e.FREEZE="freeze",e.RESUME="resume",e.DOM_CONTENT_LOADED="DOMContentLoaded",e.POINTER_DOWN="pointerdown",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.HASH_CHANGE="hashchange",e.PAGE_HIDE="pagehide",e.MOUSE_DOWN="mousedown",e.MOUSE_UP="mouseup",e.MOUSE_MOVE="mousemove",e.FOCUS="focus",e.BLUR="blur",e.CONTEXT_MENU="contextmenu",e.RESIZE="resize",e.CHANGE="change",e.INPUT="input",e.PLAY="play",e.PAUSE="pause",e.SECURITY_POLICY_VIOLATION="securitypolicyviolation",e.SELECTION_CHANGE="selectionchange",e.STORAGE="storage",e.UNHANDLED_REJECTION="unhandledrejection",e})({});function tn(e,t,n,r){return md(e,[t],n,r)}function md(e,t,n,{once:r,capture:s,passive:o}={}){const i=it(d=>{!d.isTrusted&&!d.__ddIsTrusted&&nw===!1||(r&&u(),n(d))}),a=o?{capture:s,passive:o}:s,l=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,c=Ki(l,"addEventListener");t.forEach(d=>c.call(e,d,i,a));function u(){const d=Ki(l,"removeEventListener");t.forEach(f=>d.call(e,f,i,a))}return{stop:u}}function KS(e,t){if(!e)return!1;try{return tn(e,t,Gt).stop(),!0}catch{return!1}}let nw;function xX(e){nw!==!0&&(nw=e??!1)}const nl=1024,bD=1024*nl,TX=/[^\u0000-\u007F]/;function wD(e){return TX.test(e)?new TextEncoder().encode(e).length:e.length}function SD(e){if(e.length===1)return e[0];const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Fu(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const r=Wc(Object.prototype),s=Wc(Array.prototype),o=Wc(Object.getPrototypeOf(e)),i=Wc(e);try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{r(),s(),o(),i()}}function Wc(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Gt}const CX=220*nl,AX="$",RX=3;function st(e,t=CX){const n=Wc(Object.prototype),r=Wc(Array.prototype);try{const s=[],o=new WeakMap,i=Py(e,AX,void 0,s,o),a=JSON.stringify(i);let l=a?a.length:0;if(l>t){Ly(t,"discarded",e);return}for(;s.length>0&&l<t;){const c=s.shift();let u=0;if(Array.isArray(c.source))for(let d=0;d<c.source.length;d++){const f=Py(c.source[d],c.path,d,s,o);if(f!==void 0?l+=JSON.stringify(f).length:l+=4,l+=u,u=1,l>t){Ly(t,"truncated",e);break}c.target[d]=f}else for(const d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){const f=Py(c.source[d],c.path,d,s,o);if(f!==void 0&&(l+=JSON.stringify(f).length+u+d.length+RX,u=1),l>t){Ly(t,"truncated",e);break}c.target[d]=f}}return i}finally{n(),r()}}
1499function Py(e,t,n,r,s){const o=PX(e);if(!o||typeof o!="object")return IX(o);const i=rw(o);if(i!=="[Object]"&&i!=="[Array]"&&i!=="[Error]")return i;const a=e;if(s.has(a))return`[Reference seen at ${s.get(a)}]`;const l=n!==void 0?`${t}.${n}`:t,c=Array.isArray(o)?[]:{};return s.set(a,l),r.push({source:o,target:c,path:l}),c}function IX(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 rw(e){try{if(e instanceof Event)return OX(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t?.[1])return`[${t[1]}]`}catch{}return"[Unserializable]"}function OX(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?rw(e.currentTarget):null,target:e.target?rw(e.target):null}}function PX(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function Ly(e,t,n){Oe.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const ED="No stack, consider using an instance of Error";function Gi(e){try{return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}catch{return!1}}function kD(e){const{env:t,service:n,version:r,datacenter:s,sdkVersion:o,variant:i}=e,a=[kc("sdk_version",o??"7.5.0")];return t&&a.push(kc("env",t)),n&&a.push(kc("service",n)),r&&a.push(kc("version",r)),s&&a.push(kc("datacenter",s)),i&&a.push(kc("variant",i)),a}function kc(e,t){const n=t?`${e}:${t}`:e;return(n.length>200||NX(n))&&Oe.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${jS} ${u_}/getting_started/tagging/#defining-tags`),LX(n)}function LX(e){return e.replace(/,/g,"_")}function NX(e){return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e)}function GS(e,t){const n=_t.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}const fp={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",SOURCE:"source",REPORT:"report"};let DX=(function(e){return e.UNCAUGHT="Uncaught",e.PROVIDED="Provided",e})({}),MX=(function(e){return e.HANDLED="handled",e.UNHANDLED="unhandled",e})({});function xD(){const{navigator:e}=_t;return{status:e?.onLine?"connected":"not_connected",interfaces:e?.connection?.type?[e.connection.type]:void 0,effective_type:e?.connection?.effectiveType}}function TD(e,t){return Ki(_t,"fetch")(e,t)}function $X(e){return e>=500}function FX(e){try{return e.clone()}catch{return}}const UX=80*nl,CD=20*bD,BX=Ss,AD=Nr;function RD(e,t,n,r,s,o){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?OD(e,t,n,o,{onSuccess:()=>PD(0,t,n,r,s,o),onFailure:()=>{t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),ID(t,n,r,s,o)}}):t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function ID(e,t,n,r,s){e.transportStatus===2&&Tr(()=>{OD(e.queuedPayloads.first(),e,t,s,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=AD,PD(1,e,t,n,r,s)},onFailure:()=>{e.currentBackoffTime=Math.min(BX,e.currentBackoffTime*2),ID(e,t,n,r,s)}})},e.currentBackoffTime)}function OD(e,t,n,r,{onSuccess:s,onFailure:o}){t.bandwidthMonitor.add(e),n(e,i=>{t.bandwidthMonitor.remove(e),VX(i)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:i.status},r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s())})}function PD(e,t,n,r,s,o){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(s(`Reached max ${r} events size queued for upload: ${CD/bD}MiB`),t.queueFullReported=!0);const i=t.queuedPayloads;for(t.queuedPayloads=LD();i.size()>0;)RD(i.dequeue(),t,n,r,s,o)}function VX(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||$X(e.status))}function jX(){return{transportStatus:0,currentBackoffTime:AD,bandwidthMonitor:HX(),queuedPayloads:LD(),queueFullReported:!1}}function LD(){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>=CD}}}function HX(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=UX&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}}}const sw=16*nl;function zX(e,t,n=sw){const r=new dt,s=jX();return{observable:r,send:o=>{for(const i of e)RD(o,s,(a,l)=>{ND(i,a,l)},i.trackType,t,r)},sendOnExit:o=>{for(const i of e)qX(i,n,o)}}}function qX(e,t,n){if(n.bytesCount<t)try{const r=e.build("beacon",n);if(navigator.sendBeacon(r,n.data))return}catch(r){WX(r)}
1499ND(e,n)}let hC=!1;function WX(e){hC||(hC=!0,nr(e))}function ND(e,t,n){TD(e.build("fetch",t),{method:"POST",body:t.data,mode:"cors"}).then(it(r=>n?.({status:r.status,type:r.type}))).catch(it(()=>n?.({status:0})))}let YS=(function(e){return e.RECORDS="records",e.PROFILES="profiles",e})({});function gd(){const e=GX();if(e)return{getCapabilities(){return JSON.parse(e.getCapabilities?.()||"[]")},getPrivacyLevel(){return e.getPrivacyLevel?.()},getIsTraceSampled(){return JSON.parse(e.getIsTraceSampled?.()||"null")},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,n,r){const s=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:s}))}}}function XS(e){const t=gd();return!!t&&t.getCapabilities().includes(e)}function Yi(e=_t.location?.hostname){return gd()?.getAllowedWebViewHosts().some(t=>KX(e,t))??!1}function KX(e,t){if(!t.includes("*"))return e===t||e.endsWith(`.${t}`);const n=t.split("*");if(n.length!==2)return Oe.error(`Invalid WebView host pattern "${t}": only one wildcard (*) is supported.`),!1;const[r,s]=n;return e.length>r.length+s.length&&e.startsWith(r)&&e.endsWith(s)}function GX(){return _t.DatadogEventBridge}function DD(e,t){for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(t(r,n,e))return r}}function MD(e){return Object.values(e)}function QS(e){return Object.entries(e)}const xf={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function $D(){return new dt(e=>{const t=_t.window;if(!t)return;const{stop:n}=md(t,["visibilitychange","freeze"],s=>{s.type==="visibilitychange"&&document.visibilityState==="hidden"?e.notify({reason:xf.HIDDEN}):s.type==="freeze"&&e.notify({reason:xf.FROZEN})},{capture:!0}),r=tn(t,"beforeunload",()=>{e.notify({reason:xf.UNLOADING})}).stop;return()=>{n(),r()}})}function YX(e){return MD(xf).includes(e)}function FD(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const s=wD(n);t+=s,e+=n,r&&r(s)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}const XX=30*Nr,QX=cd?1:50;function ZX({pageMayExitObservable:e}){let t;const n=new dt,r=e.subscribe(d=>{t=d.reason;try{n.notify(d.reason)}finally{t=void 0}a(d.reason)}),s=new dt(()=>()=>{r.unsubscribe()});let o=0,i=0;function a(d){if(i===0)return;const f=i,h=o;i=0,o=0,u(),s.notify({reason:d,messagesCount:f,bytesCount:h})}let l;function c(){l===void 0&&(l=Tr(()=>{a("duration_limit")},XX))}function u(){Rs(l),l=void 0}return{flushObservable:s,prepareUrgentFlushObservable:n,forceFlush:a,get messagesCount(){return i},notifyBeforeAddMessage(d){o+d>=sw&&a(t??"bytes_limit"),i+=1,o+=d,c()},notifyAfterAddMessage(d=0){o+=d,i>=QX?a(t??"messages_limit"):o>=sw&&a(t??"bytes_limit")}}}const pC=256*nl;function UD({encoder:e=FD(),endpoints:t,reportError:n}){const r=zX(t,n),s=$D(),o=ZX({pageMayExitObservable:s});let i={};const a=o.flushObservable.subscribe(d=>u(d));function l(d,f,h){if(h!==void 0){let p;i[h]!==void 0?p=f-e.estimateEncodedBytesCount(i[h]):(o.notifyBeforeAddMessage(f),p=0),i[h]=d,o.notifyAfterAddMessage(p)}else o.notifyBeforeAddMessage(f),e.write(e.isEmpty?d:` 1500${d}`,p=>{o.notifyAfterAddMessage(p-f)})}function c(d,f){const h=Fu(d),p=e.estimateEncodedBytesCount(h);if(p>=pC){Oe.warn(`Discarded a message whose size was bigger than the maximum allowed size ${pC/nl}KiB. ${jS} ${AY}/#technical-limitations`);return}l(h,p,f)}function u(d){const f=MD(i).join(` 1501`);i={};const h=YX(d.reason),p=h?r.sendOnExit:r.send;if(h&&e.isAsync){const m=e.finishSync();m.outputBytesCount&&p(mC(m));const g=[m.pendingData,f].filter(Boolean).join(` 1502`);g&&p({data:g,bytesCount:wD(g)})}else f&&e.write(e.isEmpty?f:` 1503${f}`),e.finish(m=>{p(mC(m))})}return{get isEmpty(){return o.messagesCount===0},add:c,upsert:c,prepareUrgentFlushObservable:o.prepareUrgentFlushObservable,forceFlush:o.forceFlush,flushObservable:o.flushObservable,stop:a.unsubscribe}}function mC(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}}const La={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"};function gC(){let e=[];return{register(t){return e.push(t),{unregister(){e=e.filter(n=>n!==t)}}},trigger(t){const n=[];for(const r of e){const s=r(t);if(s==="DISCARDED")return fc;s!=="SKIPPED"&&n.push(s)}return Wi(...n)}}}const fc="DISCARDED",vs="SKIPPED",JX=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"];let eQ=(function(e){return e.LOGS="browser-logs-sdk",e.RUM="browser-rum-sdk",e})({}),g_=(function(e){return e.CUSTOMER_DATA_METRIC_NAME="Customer data measures",e.REMOTE_CONFIGURATION_METRIC_NAME="remote configuration metrics",e.RECORDER_INIT_METRICS_TELEMETRY_NAME="Recorder init metrics",e.SEGMENT_METRICS_TELEMETRY_NAME="Segment network request metrics",e.SESSION_MANAGER_INIT_METRICS_TELEMETRY_NAME="Session manager init metrics",e})({});const tQ=1,nQ=[YY,XY],rQ=15;let Ny;function vd(){return Ny||(Ny=new zS(100)),Ny}
1503function sQ(e,t,n){const r=new dt,{enabled:s,metricsEnabled:o}=oQ(e,t,n,r),{stop:i}=iQ(t,r);return{stop:i,enabled:s,metricsEnabled:o}}function oQ(e,t,n,r,s=tQ,o=rQ){const i={},a=!nQ.includes(t.site)&&zp(t.telemetrySampleRate),l={[La.LOG]:a,[La.CONFIGURATION]:a&&zp(t.telemetryConfigurationSampleRate),[La.USAGE]:a&&zp(t.telemetryUsageSampleRate),metric:a&&zp(s)},c=aQ(),u=vd();return u.subscribe(({rawEvent:f,metricName:h})=>{if(h&&!l.metric||!l[f.type])return;const p=h||f.status||f.type;let m=i[p];if(m||(m=i[p]=new Set),m.size>=o)return;const g=Fu(f);if(m.has(g))return;const v=n.trigger({startTime:Kt().relative});if(v===fc)return;const b=d(v,e,f,c);r.notify(b),GS("telemetry",b),m.add(g)}),u.unbuffer(),VY(ZS),{enabled:a,metricsEnabled:l.metric};function d(f,h,p,m){return Wi({type:"telemetry",date:Kt().timeStamp,service:h,version:"7.5.0",source:"browser",_dd:{format_version:2},telemetry:Wi(p,{runtime_env:m,connectivity:xD(),sdk_setup:"npm"}),ddtags:kD(t).join(","),experimental_features:Array.from(lX())},f)}}function iQ(e,t){const n=[];if(Yi()){const r=gd(),s=t.subscribe(o=>r.send("internal_telemetry",o));n.push(s.unsubscribe)}else{const r=[qS(e,"rum")],s=hD(e,"rum");s&&lQ(e)&&r.push(s);const o=UD({endpoints:r,reportError:Gt});n.push(o.stop);const i=t.subscribe(o.add);n.push(i.unsubscribe)}return{stop:()=>n.forEach(r=>r())}}function aQ(){return{is_local_file:_t.location?.protocol==="file:",is_worker:cd}}function lQ(e){return e.site===fD}function Uu(e,t){nD()&&Oe.debug("[Telemetry]",e,t),vd().notify({rawEvent:{type:La.LOG,message:e,status:"debug",...t}})}function ZS(e,t){vd().notify({rawEvent:{type:La.LOG,status:"error",...uQ(e),...t}})}function cQ(e){vd().notify({rawEvent:{type:La.CONFIGURATION,configuration:e}})}function hp(e,t){vd().notify({rawEvent:{type:La.LOG,message:e,status:"debug",...t},metricName:e})}function rn(e){vd().notify({rawEvent:{type:La.USAGE,usage:e}})}function uQ(e){if(Gi(e)){const t=dc(e);return{error:{kind:t.name,stack:m_(dQ(t))},message:t.message}}return{error:{stack:ED},message:`Uncaught ${Fu(e)}`}}function dQ(e){return e.stack=e.stack.filter(t=>!t.url||JX.some(n=>t.url.startsWith(n))),e}const Vg=new Map,vC=new Set;let _C=!1;function BD(){const e=_t.window?.DD_SOURCE_CODE_CONTEXT;if(!e)return;let t=!1,n=!1,r=!1;for(const[s,o]of Object.entries(e)){if(t=t||o.ddDebugId!==void 0,n=n||o.service!==void 0,r=r||o.version!==void 0,vC.has(s))continue;vC.add(s);const i=dc({stack:s}).stack[0]?.url;i&&!Vg.has(i)&&Vg.set(i,o)}_C||(_C=!0,rn({feature:"source-code-context",use_debug_id:t,use_service:n,use_version:r}))}function VD(e){BD();const t={};for(const n of e){const r=Vg.get(n)?.ddDebugId;r!==void 0&&(t[n]=r)}return fi(t)?void 0:t}function fQ(e){return BD(),Vg.get(e)}function yC({originalError:e,stackTrace:t,source:n,useFallbackStack:r=!0,nonErrorPrefix:s}){const o=Gi(e);return{source:n,type:t?t.name:void 0,message:mQ(t,o,s,e),stack:t?m_(t):r?ED:void 0}}function bC(e){return e?.stack.map(t=>t.url).filter(t=>!!t)??[]}function hQ(e,t){const n=t.flatMap(({stackTrace:r})=>bC(r));return VD(bC(e).concat(n))}function pQ(e){const t=[];let n=e.cause;for(;n!=null&&t.length<10;){const r=Gi(n),s=r?dc(n):void 0;t.push({originalError:n,stackTrace:s}),n=r?n.cause:void 0}return t}function JS({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:s,nonErrorPrefix:o,useFallbackStack:i=!0,source:a,handling:l}){const c=e??(Gi(t)?dc(t):void 0),u=Gi(t)?pQ(t):[],d=yC({originalError:t,stackTrace:c,source:a,useFallbackStack:i,nonErrorPrefix:o}),f=u.map(({originalError:h,stackTrace:p})=>yC({originalError:h,stackTrace:p,source:a,useFallbackStack:!1}));return{startClocks:s,handling:l,handlingStack:n,componentStack:r,originalError:t,...d,debugIds:hQ(c,u),causes:f.length?f:void 0,fingerprint:gQ(t),context:vQ(t)}}function mQ(e,t,n,r){return e?.message&&e?.name?e.message:t?"Empty message":n?`${n} ${Fu(st(r))}`:Fu(st(r))}function gQ(e){return Gi(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function vQ(e){if(li(e))return e.dd_context}function _Q(){return new dt(e=>{const t=(s,o)=>{const i=JS({stackTrace:o,originalError:s,startClocks:Kt(),nonErrorPrefix:"Uncaught",source:fp.SOURCE,handling:"unhandled"});e.notify(i)},{stop:n}=yQ(t),{stop:r}=bQ(t);return()=>{n(),r()}})}function yQ(e){return ti(_t,"onerror",({parameters:[t,n,r,s,o]})=>{let i;
1503Gi(o)||(i=yX(t,n,r,s)),e(o??t,i)})}function bQ(e){return KS(_t.window,"unhandledrejection")?ti(_t,"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")}):{stop:Gt}}function wQ(e){const t={version:"7.5.0",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return kY},enumerable:!1}),t}function SQ(e,t,n){const r=e[t];r&&!r.q&&r.version&&Oe.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r?.q&&r.q.forEach(s=>rD(s,"onReady callback threw an error:")())}function jD(e,t){t.silentMultipleInit||Oe.error(`${e} is already initialized.`)}const lh={intervention:"intervention",cspViolation:"csp_violation"};function EQ(e){const t=[];e.includes(lh.cspViolation)&&t.push(xQ());const n=e.filter(r=>r!==lh.cspViolation);return n.length&&t.push(kQ(n)),dD(...t)}function kQ(e){return new dt(t=>{if(!window.ReportingObserver)return;const n=it((s,o)=>s.forEach(i=>t.notify(TQ(i)))),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function xQ(){return new dt(e=>{if(!KS(document,"securitypolicyviolation"))return;const{stop:t}=tn(document,"securitypolicyviolation",n=>{e.notify(CQ(n))});return t})}function TQ(e){const{type:t,body:n}=e;return HD({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:zD(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function CQ(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return HD({type:e.effectiveDirective,message:`${lh.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:zD(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${up(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function HD(e){return{startClocks:Kt(),source:fp.REPORT,handling:"unhandled",...e}}function zD(e,t,n,r,s){return n?m_({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:s??void 0}]}):void 0}function AQ(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function Ol(e){return Array.isArray(e)&&e.length>0}const Ud=1/0,RQ=Ss;let Bd;const Om=new Set;function IQ(){Om.forEach(e=>e())}function _d({expireDelay:e,maxEntries:t}){let n=[];const r=()=>{if(!e)return;const f=Ps()-e;for(;n.length>0&&n[n.length-1].endTime<f;)n.pop()};e&&(Bd||(Bd=pd(()=>IQ(),RQ)),Om.add(r));function s(f,h){const p={value:f,startTime:h,endTime:Ud,remove:()=>{AQ(n,p)},close:m=>{p.endTime=m}};return t&&n.length>=t&&n.pop(),n.unshift(p),p}function o(f=Ud,h={returnInactive:!1}){for(const p of n)if(p.startTime<=f){if(h.returnInactive||f<=p.endTime)return p.value;break}}function i(f){const h=n[0];h?.endTime===Ud&&h.close(f)}function a(f=Ud,h=0){const p=Nu(f,h);return n.filter(m=>m.startTime<=p&&f<=m.endTime).map(m=>m.value)}function l(f=Ud,h=0){const p=Nu(f,h);return n.filter(m=>m.startTime<=p&&f<=m.endTime)}function c(f){return n.filter(h=>h.startTime===f)}function u(){n=[]}function d(){Om.delete(r),Om.size===0&&Bd&&(h_(Bd),Bd=void 0)}return{add:s,find:o,closeActive:i,findAll:a,findAllEntries:l,getEntries:c,reset:u,stop:d}}function eE(e,t){return e*t/100}const wC=new Map;function v_(e,t){if(t===100)return!0;if(t===0)return!1;const n=wC.get(t);if(e===n?.sessionId)return n.decision;const r=OQ(BigInt(`0x${e.split("-")[4]}`),t);return wC.set(t,{sessionId:e,decision:r}),r}function OQ(e,t){const n=1111111111111111111n,r=2n**64n,s=e*n%r;return Number(s)<=t/100*Number(r)}const yd=4*oD,PQ=15*Ss,LQ=iD,ro={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},NQ="dd_cookie_test_";async function SC(e,t){const n=`${NQ}${zn()}`,r="test",s=e(n,t);try{return await s.getAllAndSet(()=>({value:r,expireDelay:Ss})),(await s.getAll()).includes(r)}catch(o){return Oe.error(o),!1}finally{try{await s.getAllAndSet(()=>({value:"",expireDelay:0}))}catch{}}}function qD(e,t){const n=_t.cookieStore,r=new dt(()=>tn(n,"change",s=>{(s.changed.some(o=>o.name===e)||s.deleted.some(o=>o.name===e))&&r.notify()}).stop);return{async getAll(){return(await n.getAll(e)).map(s=>s.value)},async getAllAndSet(s){const o=await n.getAll(e),{value:i,expireDelay:a}
1503=s(o.map(l=>l.value));try{await n.set({name:e,value:i,expires:Ro()+a,path:"/",sameSite:t.crossSite?"none":"strict",domain:t.domain,secure:t.secure,partitioned:t.partitioned})}catch(l){if(!e.startsWith("dd_cookie_test_")){const c=Hc(e);Uu("Failed to set cookie using Cookie Store API",{"error.message":l.message,newValue:i,cookieOptions:{...t},cookies:o.map(u=>({...u})),cookieCount:o.length,documentCookies:c})}}},observable:r}}const DQ=Nr;function WD(e,t){let n=Hc(e);const r=new dt(()=>{const o=pd(()=>{s(Hc(e))},DQ);return()=>{h_(o)}});function s(o){String(o)!==String(n)&&(n=o,r.notify())}return{getAll(){return Promise.resolve(Hc(e))},async getAllAndSet(o){const{value:i,expireDelay:a}=o(Hc(e));HS(e,i,a,t),await Promise.resolve(),s([i])},observable:r}}function KD(){const e=_t.cookieStore;return!!(e&&KS(e,"change"))}const ch="_dd_s_v2",GD="_dd_s",EC="_DD_SESSION";function MQ(){return{type:ro.MEMORY}}function $Q(){const e=_t;e._DD_SESSION||(e[EC]={});const t=e[EC],n=new dt,r=t.onChange;return t.onChange=s=>{r?.(s),n.notify(s)},{async setSessionState(s,o){const i=ah(s(t.state??{}));t.state=i,await Promise.resolve(),t.onChange?.(i)},sessionObservable:n}}const YD=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function FQ(e){return!!e&&(e.indexOf("&")!==-1||YD.test(e))}function XD(e){return e.created?Number(e.created):void 0}function QD(e){const t=e.expire&&Number(e.expire),n=XD(e);if(t&&n)return Math.min(t,n+yd)}function Tf(e,t){const n={isExpired:"1"};return t.trackAnonymousUser&&e?.anonymousId&&(n.anonymousId=e?.anonymousId),n}function __(e){return fi(e)}function tE(e){return e.isExpired!==void 0||!UQ(e)}function UQ(e){const t=QD(e);return t?Ro()<t:!1}function ZD(e){e.expire=String(Ro()+PQ)}function JD(e){return QS(e).map(([t,n])=>t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join("&")}function Pm(e){const t={};return FQ(e)&&e.split("&").forEach(n=>{const r=YD.exec(n);if(r!==null){const[,s,o]=r;s==="aid"?t.anonymousId=o:t[s]=o}}),t}function kC(e,t){return __(e)?(t.trackAnonymousUser&&(e.anonymousId=zn()),Tf(e,t)):e}function Dy(e,t){if(__(e))return e;let n=e;return tE(e)&&(n=Tf(e,t)),n.id||(n.id=zn(),n.created=String(Ro())),t.trackAnonymousUser&&!n.anonymousId&&(n.anonymousId=zn()),delete n.isExpired,ZD(n),n}function BQ(e){return tE(e)||__(e)||!e.id||ZD(e),e}const VQ=0;async function jQ(e){const{cookieOptions:t}=e;if(t){if(KD()&&await SC(qD,t))return{type:ro.COOKIE,cookieOptions:t,cookieApi:1};if(await SC(WD,t))return{type:ro.COOKIE,cookieOptions:t,cookieApi:0}}}let My;function HQ(e,t){const{cookieOptions:n,cookieApi:r}=e,s=new dt,o=!!t.trackAnonymousUser,i=eM(n),a=qQ(r,n);let l=!0;a.observable.subscribe(()=>{a.getAll().then(u=>{s.notify($y(u,i))}).catch(u=>nr(new Error(`Error while reading session cookies on change: ${u}`)))});function c(u){return a.getAllAndSet(d=>{let f=$y(d,i);return l&&fi(f)&&(f=$y(Hc(GD),i)),l=!1,{value:WQ(u(f),n),expireDelay:o?LQ:yd}})}return{async setSessionState(u,d){typeof navigator<"u"&&navigator.locks?await navigator.locks.request(ch,()=>c(u)).catch(f=>{if(!zQ(f))throw f}):(My=(My??Promise.resolve()).then(()=>c(u)),await My)},sessionObservable:s}}function zQ(e){return e instanceof Error?e.name==="AbortError"||e.message.includes("no longer runnable"):!1}function qQ(e,t){return e===1?qD(ch,t):WD(ch,t)}function $y(e,t){let n;for(const r of e.slice().reverse())if(n=Pm(r),n.c===t)break;return delete n?.c,n??{}}function WQ(e,t){return JD(fi(e)?e:{...e,c:eM(t)})}function eM(e){const t=e.domain?e.domain.split(".").length-1:0;let n=0;return n|=VQ<<5,n|=t<<1,n|=e.crossSite?1:0,n.toString(16)}const KQ="_dd_test_";function GQ(){try{const e=zn(),t=`${KQ}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:ro.LOCAL_STORAGE}:void 0}catch{return}}function YQ(){const e=new dt(n=>tn(window,"storage",r=>{r.key==="_dd_s_v2"&&r.storageArea===localStorage&&n.notify(Pm(r.newValue))}).stop);let t=!0;return{async setSessionState(n,r){let s=Pm(localStorage.getItem(ch));t&&__(s)&&(s=Pm(localStorage.getItem(GD))),t=!1;const o=n(s);localStorage.setItem(ch,JD(o)),await Promise.resolve(),e.notify(o)},sessionObservable:e}}async function XQ(e){const t=QQ(e.sessionPersistence);for(const n of t){const r=await ZQ(n,e);if(r!==void 0)return r}}function QQ(e){return Array.isArray(e)?e:e!==void 0?[e]:cd?[ro.MEMORY]:[ro.COOKIE]}function ZQ(e,t){switch(e){case ro.COOKIE:return jQ(t);case ro.LOCAL_STORAGE:return GQ();case ro.MEMORY:return MQ();default:Oe.error(`Invalid session persistence '${String(e)}'`);return}}function JQ(e,t){switch(e.type){case ro.COOKIE:return HQ(e,t);case ro.LOCAL_STORAGE:return YQ();case ro.MEMORY:return $Q()}}const eZ=Ss,tZ=1e3,nZ=oD*12;async function rZ(e,t){const n=Ps(),r=new dt,s=new dt,o=await XQ(e);if(!o){Oe.warn("No storage available for session. We will not send any data.");return}const i=JQ(o,e),a=_d({maxEntries:tZ});let l=!1;const{throttled:c,cancel:u}=p_(()=>{l=!1,i.setSessionState(S=>Dy(S,e),"expandOrRenewOnActivity").catch(nr)},Nr);let d,f=!1,h=await p().catch(S=>nr(new Error(`Error while resolving initial session state: ${S}`)));if(!h||f)return;for(;!t.isGranted();)if(y(),await new Promise(S=>t.onGrantedOnce(S)),h=await p().catch(nr),!h||f)return;return a.add(w(h),aD().relative),g(h),m(),v(),hp("Session manager init metrics",{metrics:{duration:on(n,Ps())}}),b();async function p(){let S={};return await i.setSessionState(E=>(S=Dy(kC(E,e),e),S),"initialize"),S}function m(){i.sessionObservable.subscribe(S=>{g(S),_(S)})}function g(S){Rs(d);const E=QD(S);E&&(d=Tr(()=>{i.setSessionState(x=>tE(x)?(t.isGranted()||delete x.anonymousId,Tf(x,e)):x,"expireOnTimeout").catch(nr)},E-Ro()))}function v(){t.observable.subscribe(()=>{t.isGranted()?(l=!1,i.setSessionState(S=>Dy(S,e),"expandOrRenewOnConsent").catch(nr)):y()}),cd||(oZ(()=>{t.isGranted()&&c()}),iZ(()=>{l||i.setSessionState(S=>BQ(S),"expandOnVisibility").catch(nr)}),aZ(()=>{i.setSessionState(S=>kC(S,e),"initializeOnResume").catch(nr)}))}function b(){return{findSession:(S,E)=>a.find(S,E),findTrackedSession:(S,{returnInactive:E=!1,maxAge:x=nZ}={})=>{const T=a.find(S,{returnInactive:E});if(!(!T||T.id==="invalid"||!v_(T.id,e.sessionSampleRate))&&!(Ro()-T.createdAt>x))return T},renewObservable:r,expireObservable:s,expire:y,updateSessionState:S=>{i.setSessionState(E=>({...E,...S}),"updateState").catch(nr)}}}function _(S){const E=a.find(),x=E?.id!==void 0,T=S.id!==void 0,O=x&&T&&E.id!==S.id;if(x&&(!T||O)&&(l=!0,s.notify(),a.closeActive(Ps())),T&&(!x||O)){
1503if(l)return;a.add(w(S),Ps()),r.notify()}else x&&T&&!O&&(E.isReplayForced=!!S.forcedReplay)}function y(){u();const S=Tf(a.find(),e);t.isGranted()||delete S.anonymousId,_(S),i.setSessionState(E=>(t.isGranted()||delete E.anonymousId,Tf(E,e)),"expire").catch(nr)}function w(S){const E=XD(S)??xn();return S.id?{id:S.id,isReplayForced:!!S.forcedReplay,anonymousId:S.anonymousId,createdAt:E}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:E}}}function sZ(){let e={id:zn(),isReplayForced:!1,anonymousId:void 0,createdAt:xn()};return Promise.resolve({findSession:()=>e,findTrackedSession:()=>e,renewObservable:new dt,expireObservable:new dt,expire:Gt,updateSessionState:t=>{e={...e,...t}}})}function oZ(e){const{stop:t}=md(window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0})}function iZ(e){const t=()=>{document.visibilityState==="visible"&&e()},{stop:n}=tn(document,"visibilitychange",t);pd(t,eZ)}function aZ(e){const{stop:t}=tn(window,"resume",e,{capture:!0})}var lZ=class{constructor(){this.callbacks={}}notify(e,t){const n=this.callbacks[e];n&&n.forEach(r=>r(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(n=>t!==n)}}}};const cZ=3e3;function Fy(e,t,n=cZ){let r=0,s=!1;return{isLimitReached(){if(r===0&&Tr(()=>{r=0},Ss),r+=1,r<=n||s)return s=!1,!1;if(r===n+1){s=!0;try{t(`Reached max number of ${e}s by minute: ${n}`)}finally{s=!1}}return!0}}}function nE(e,t){return document.readyState===e||document.readyState==="complete"?(t(),{stop:Gt}):tn(window,e==="complete"?"load":"DOMContentLoaded",t,{once:!0})}function uZ(e){return new Promise(t=>{nE(e,t)})}let Uy;const rE=new WeakMap;function tM(){return Uy||(Uy=dZ()),Uy}function dZ(){return"XMLHttpRequest"in _t?new dt(e=>{const{stop:t}=ti(XMLHttpRequest.prototype,"open",fZ),{stop:n}=ti(XMLHttpRequest.prototype,"send",s=>{hZ(s,e)},{computeHandlingStack:!0}),{stop:r}=ti(XMLHttpRequest.prototype,"abort",pZ);return()=>{t(),n(),r()}}):new dt}function fZ({target:e,parameters:[t,n]}){rE.set(e,{state:"open",method:String(t).toUpperCase(),url:VS(String(n))})}function hZ({target:e,parameters:[t],handlingStack:n},r){const s=rE.get(e);if(!s)return;const o=s;o.state="start",o.startClocks=Kt(),o.isAborted=!1,o.xhr=e,o.handlingStack=n,o.requestBody=t;let i=!1;const{stop:a}=ti(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&l()}),l=()=>{if(c(),a(),i)return;i=!0;const u=s;u.duration=on(o.startClocks.timeStamp,xn()),u.status=e.status,typeof e.response=="string"&&(u.responseBody=e.response),r.notify({...u,state:"complete"})},{stop:c}=tn(e,"loadend",l);r.notify(o)}function pZ({target:e}){const t=rE.get(e);t&&(t.isAborted=!0)}async function mZ(e){const t=e.getReader(),n=[];for(;;){const r=await t.read();if(r.done)break;n.push(r.value)}return t.cancel().catch(Gt),SD(n)}let xC=(function(e){return e[e.IGNORE=0]="IGNORE",e[e.COLLECT=1]="COLLECT",e})({}),By;const nM=[];function rM({responseBodyAction:e}={}){return e&&nM.push(e),By||(By=gZ()),By}function gZ(){return new dt(e=>{if(!_t.fetch)return;const{stop:t}=ti(_t,"fetch",n=>vZ(n,e),{computeHandlingStack:!0});return t})}function vZ({parameters:e,onPostCall:t,handlingStack:n},r){const[s,o]=e;let i=o?.method;i===void 0&&s instanceof Request&&(i=s.method);const a=i!==void 0?String(i).toUpperCase():"GET",l=s instanceof Request?s.url:VS(String(s)),c={state:"start",init:o,input:s,method:a,startClocks:Kt(),url:l,handlingStack:n,isAbortedOnStart:s instanceof Request&&s.signal?.aborted||o?.signal?.aborted||!1};r.notify(c),e[0]=c.input,e[1]=c.init,t(u=>{_Z(r,u,c).catch(nr)})}async function _Z(e,t,n){const r=n;let s;try{s=await t}catch(o){e.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||o instanceof DOMException&&o.code===DOMException.ABORT_ERR,error:o});return}if(r.response=s,r.status=s.status,r.responseType=s.type,r.isAborted=!1,nM.reduce((o,i)=>Math.max(o,i(r)),0)===1){const o=FX(s);if(o?.body)try{const i=await mZ(o.body);r.responseBody=new TextDecoder().decode(i)}catch{}}e.notify({...r,state:"resolve"})}function yZ(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(it(e),t);return()=>window.cancelIdleCallback(n)}return bZ(e)}function bZ(e){const t=Ro(),n=Tr(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Ro()-t))})}
1503,0);return()=>Rs(n)}const wZ=Nr;function SZ(){const e=[];function t(r){let s;if(!r||r.didTimeout){const o=performance.now();s=()=>30-(performance.now()-o)}else s=r.timeRemaining.bind(r);for(;s()>0&&e.length;)e.shift()();e.length&&n()}function n(){yZ(t,{timeout:wZ})}return{push(r){e.push(r)===1&&n()},stop(){e.length=0}}}let Vy={};function EZ(e){return dD(...e.map(t=>(Vy[t]||(Vy[t]=kZ(t)),Vy[t])))}function kZ(e){return new dt(t=>{const n=As[e];return As[e]=(...r)=>{n.apply(console,r);const s=Ei("console error");Ks(()=>{t.notify(xZ(r,e,s))})},()=>{As[e]=n}})}function xZ(e,t,n){const r=e.map(s=>TZ(s)).join(" ");if(t===BS.error){const s=JS({originalError:e.find(Gi),handlingStack:n,startClocks:Kt(),source:fp.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=r,{api:t,message:r,handlingStack:n,error:s}}return{api:t,message:r,error:void 0,handlingStack:n}}function TZ(e){return typeof e=="string"?st(e):Gi(e)?yD(dc(e)):Fu(st(e),void 0,2)}function CZ(e){const t=ld(e)==="object";return t||Oe.error("Unsupported context:",e),t}function jy(e,t,n){const r={...e};for(const[s,{required:o,type:i}]of Object.entries(t))i==="string"&&!TC(r[s])&&(r[s]=String(r[s])),o&&TC(r[s])&&Oe.warn(`The property ${s} of ${n} is required; context will not be sent to the intake.`);return r}function TC(e){return e==null||e===""}function y_(e="",{propertiesConfig:t={}}={}){let n={};const r=new dt,s={getContext:()=>US(n),setContext:o=>{CZ(o)?n=st(jy(o,t,e)):s.clearContext(),r.notify()},setContextProperty:(o,i)=>{n=st(jy({...n,[o]:i},t,e)),r.notify()},removeContextProperty:o=>{delete n[o],jy(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return s}function Dr(e,t,n,r){return it((...s)=>(r&&rn({feature:r}),e()[t][n](...s)))}function Hy(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.notify(s=>s[t].setContext(r))})}const AZ="_dd_c",RZ=[];function sE(e,t,n){if(typeof window>"u"||typeof localStorage>"u")return;const r=IZ(t,n);RZ.push(tn(window,"storage",({key:l})=>{r===l&&o()})),e.changeObservable.subscribe(i);const s=Wi(a(),e.getContext());fi(s)||e.setContext(s);function o(){e.setContext(a())}function i(){localStorage.setItem(r,JSON.stringify(e.getContext()))}function a(){const l=localStorage.getItem(r);return l?dd(l)??{}:{}}}function IZ(e,t){return`${AZ}_${e}_${t}`}const Gn={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Mr={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function OZ(e,t,n){const r=sM();return t.storeContextsAcrossPages&&sE(r,n,4),e.register(()=>{const s=r.getContext();return fi(s)||!s.id?vs:{account:s}}),r}function sM(){return y_("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}const CC="_dd_tab_id";let zy;function PZ(e){const t=LZ();e.register(()=>({tab:{id:t}}))}function LZ(){return zy||(zy=NZ()??zn()),zy}function NZ(){try{const e=sessionStorage.getItem(CC);if(e)return e;const t=zn();return sessionStorage.setItem(CC,t),t}catch{return}}function DZ(e,t,n,r){const s=oM();return t.storeContextsAcrossPages&&sE(s,n,2),e.register(()=>({context:s.getContext()})),s}function oM(){return y_("global context")}function MZ(e,t,n,r){const s=iM();return t.storeContextsAcrossPages&&sE(s,r,1),e.register(({eventType:o,startTime:i})=>{const a=s.getContext(),l=n.findTrackedSession(i);return l?.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=l.anonymousId),fi(a)?vs:{type:o,usr:a}}),s}function iM(){return y_("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const b_="datadog-synthetics-",$Z=`${b_}public-id`,FZ=`${b_}result-id`,UZ=`${b_}injects-rum`,BZ=`${b_}rum-context`;function aM(){return cd?!1:!!(_t._DATADOG_SYNTHETICS_INJECTS_RUM||kf(UZ))}function lM(){const e=jZ();return HZ(e)?e:void 0}function VZ(){return!!lM()}function jZ(){const e=_t._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;const t=kf(BZ);return t?dd(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||kf($Z),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||kf(FZ)}}function HZ(e){return typeof e=="object"&&e!==null&&typeof e.test_id=="string"&&typeof e.result_id=="string"}const ns={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},uh={FETCH:ns.FETCH,XHR:ns.XHR},zZ=500;let jg=(function(e){return e[e.RUNTIME_ERROR=0]="RUNTIME_ERROR",e[e.FETCH=1]="FETCH",e[e.XHR=2]="XHR",e[e.CONSOLE=3]="CONSOLE",e})({});function qZ(){const e=new zS(zZ,r=>{Uu("Early data collection dropped data on unbuffer",{count:r})}),t=[];function n(r,s){t.push(s.subscribe(o=>{e.notify({type:r,data:o})}))}return n(0,_Q()),n(1,rM()),n(2,tM()),n(3,EZ(Object.values(BS))),{observable:e,stop:()=>t.forEach(r=>r.unsubscribe())}}function WZ(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}let cM=(function(e){return e[e.REPLAY=1]="REPLAY",e[e.RUM=2]="RUM",e[e.TELEMETRY=4]="TELEMETRY",e[e.PROFILING=6]="PROFILING",e})({});
1503function KZ(e,t,n){e.register(({startTime:r})=>{const s=t.findTrackedSession(r);return s?{session:{id:s.id},anonymous_id:s.anonymousId,...n}:vs})}function uM(e,t){let n=0,r=[],s,o=!0,i=0;const a=[],l=t,{stop:c}=tn(e,"message",({data:f})=>{if(f.type!=="wrote"||f.streamId!==l)return;const h=a[0];h&&(h.id===f.id?(a.shift(),n+=f.additionalBytesCount,r.push(f.result),s=f.trailer,h.writeCallback?h.writeCallback(f.result.byteLength):h.finishCallback&&h.finishCallback()):h.id<f.id&&c())});function u(){const f=r.length===0?new Uint8Array(0):SD(r.concat(s)),h={rawBytesCount:n,output:f,outputBytesCount:f.byteLength,encoding:"deflate"};return n=0,r=[],h}function d(){o||(e.postMessage({action:"reset",streamId:t}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(f,h){e.postMessage({action:"write",id:i,data:f,streamId:t}),a.push({id:i,writeCallback:h,data:f}),o=!1,i+=1},finish(f){d(),a.length?(a.forEach(h=>{delete h.writeCallback}),a[a.length-1].finishCallback=()=>f(u())):f(u())},finishSync(){d();const f=a.map(h=>h.data).join("");return a.length=0,{...u(),pendingData:f}},estimateEncodedBytesCount(f){return f.length/8},stop(){c()}}}function oE({configuredUrl:e,error:t,source:n,scriptType:r}){if(Oe.error(`${n} failed to start: an error occurred while initializing the ${r}:`,t),t instanceof Event||t instanceof Error&&GZ(t.message)){let s;e?s=`Please make sure the ${r} URL ${e} is correct and CSP is correctly configured.`:s="Please make sure CSP is correctly configured.",Oe.error(`${s} See documentation at ${u_}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else r==="worker"&&ZS(t)}function GZ(e){return e.includes("Content Security Policy")||e.includes("requires 'TrustedScriptURL'")}const YZ=30*Nr;function XZ(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;
vendor: 4,235 bytes, line 1503
1503a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}
1503(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),M=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
1503=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t?.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1503i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.5.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let kn={status:0};function dM(e,t,n){switch(kn.status===0&&QZ(e,t),kn.status){case 1:return kn.initializationFailureCallbacks.push(n),kn.worker;case 3:return kn.worker}}function AC(){return kn.status}function QZ(e,t){try{const n=XZ(e),{stop:r}=tn(n,"error",i=>{qy(e,t,i)}),{stop:s}=tn(n,"message",({data:i})=>{i.type==="errored"?qy(e,t,i.error,i.streamId):i.type==="initialized"&&JZ(i.version)});n.postMessage({action:"init"}),Tr(()=>ZZ(t),YZ),kn={status:1,worker:n,stop:()=>{r(),s()},initializationFailureCallbacks:[]}}catch(n){qy(e,t,n)}}function ZZ(e){kn.status===1&&(Oe.error(`${e} failed to start: a timeout occurred while initializing the Worker`),kn.initializationFailureCallbacks.forEach(t=>t()),kn={status:2})}function JZ(e){kn.status===1&&(kn={status:3,worker:kn.worker,stop:kn.stop,version:e})}function qy(e,t,n,r){kn.status===1||kn.status===0?(oE({configuredUrl:e.workerUrl,error:n,source:t,scriptType:"worker"}),kn.status===1&&kn.initializationFailureCallbacks.forEach(s=>s()),kn={status:2}):ZS(n,{worker_version:kn.status===3&&kn.version,stream_id:r})}let Ho;function Q0e(e){return w_(e).segments_count}function Z0e(e){w_(e).segments_count+=1}function J0e(e){w_(e).records_count+=1}function ewe(e,t){w_(e).segments_total_raw_size+=t}function eJ(e){return Ho?.get(e)}function w_(e){Ho||(Ho=new Map);let t;return Ho.has(e)?t=Ho.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},Ho.set(e,t),Ho.size>1e3&&tJ()),t}function tJ(){if(!Ho)return;const e=Ho.keys().next().value;e&&Ho.delete(e)}const ze={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},RC={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},Ri={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"},iE={CLICK:"click",CUSTOM:"custom"},Mc={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"}
1503,du={DURATION:"duration",OPERATION_STEP:"operation_step"};function fM(e,t){t.lastIndex=0;const n=t.exec(e);if(!n)return;const[r,s]=n;return s||r}function nJ(e){const t=[];let n=0,r;const s={quote:void 0,escapeSequence:void 0};let o="";for(const i of e){if(r=IC[n].find(a=>lJ[a](i,s)),!r)return[];if(s.escapeSequence!==void 0&&r!==12){if(!dJ(s.escapeSequence))return[];o+=hJ(s.escapeSequence),s.escapeSequence=void 0}cJ.includes(r)?o+=i:uJ.includes(r)&&o!==""?(t.push(o),o=""):r===12?s.escapeSequence=s.escapeSequence?`${s.escapeSequence}${i}`:i:r===8?s.quote=i:r===9&&(s.quote=void 0),n=r}return IC[n].includes(1)?(o!==""&&t.push(o),t):[]}const rJ=/[a-zA-Z_$]/,sJ=/[a-zA-Z0-9_$]/,oJ=/[0-9]/,iJ=/[a-fA-F0-9]/,aJ=`'"`,lJ={0:()=>!1,1:()=>!1,2:e=>rJ.test(e),3:e=>sJ.test(e),4:e=>e===".",5:e=>e==="[",6:e=>e==="]",7:e=>oJ.test(e),8:e=>aJ.includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>e==="\\",12:(e,t)=>t.escapeSequence===void 0?`${t.quote}/\\bfnrtu`.includes(e):t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5?iJ.test(e):!1},IC={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},cJ=[2,3,7,10],uJ=[4,5,6];function dJ(e){return`"'/\\bfnrt`.includes(e)||e.startsWith("u")&&e.length===5}const fJ={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:` 1504`,r:"\r",t:" "};function hJ(e){return e.startsWith("u")?String.fromCharCode(parseInt(e.slice(1),16)):fJ[e]}const pJ="dd_rc_",mJ={hit:"success",miss:"missing",error:"failure"};function gJ(e){return`${pJ}${e}`}function vJ(e){if(typeof e!="object"||e===null)return!1;const t="version"in e&&e.version===1,n="config"in e&&typeof e.config=="object"&&e.config!==null;return t&&n}function _J({remoteConfigurationId:e}){const t=gJ(e);return{read(){let n;try{n=localStorage.getItem(t)}catch{return{status:"error"}}if(n===null)return{status:"miss"};const r=dd(n);return r===void 0?(this.remove(),{status:"error"}):vJ(r)?{status:"hit",config:r.config}:(this.remove(),{status:"error"})},remove(){try{localStorage.removeItem(t)}catch{}},write(n){const r={version:1,config:n,fetchedAt:xn()};try{localStorage.setItem(t,JSON.stringify(r))}catch{}}}}const yJ="v1",bJ=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function wJ(e,t){let n;const r=pM(),s=await gM(e);return s.ok?(r.increment("fetch","success"),n=hM(e,s.value,t,r)):(r.increment("fetch","failure"),Oe.error(s.error)),hp(g_.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:r.get()}),n}function hM(e,t,n,r){const s={...e};return bJ.forEach(h=>{h in t&&(s[h]=o(t[h]))}),Object.keys(n).forEach(h=>{t[h]!==void 0&&i(n[h],t[h])}),s;function o(h){if(Array.isArray(h))return h.map(o);if(li(h)){if(SJ(h)){const p=h.rcSerializedType;switch(p){case"string":return h.value;case"regex":return mM(h.value);case"dynamic":return a(h);default:Oe.error(`Unsupported remote configuration: "rcSerializedType": "${p}"`);return}}return sD(h,o)}return h}function i(h,p){p.forEach(({key:m,value:g})=>{h.setContextProperty(m,o(g))})}function a(h){const p=h.strategy;let m;switch(p){case"cookie":m=l(h);break;case"dom":m=u(h);break;case"js":m=f(h);break;case"localStorage":m=c(h);break;default:Oe.error(`Unsupported remote configuration: "strategy": "${p}"`);return}const g=h.extractor;return g!==void 0&&typeof m=="string"?EJ(g,m):m}function l({name:h}){const p=Bg(h);return r.increment("cookie",p!==void 0?"success":"missing"),p}function c({key:h}){let p;try{p=localStorage.getItem(h)}catch{r.increment("localStorage","failure");return}return r.increment("localStorage",p!==null?"success":"missing"),p??void 0}function u({selector:h,attribute:p}){let m;try{m=document.querySelector(h)}catch{Oe.error(`Invalid selector in the remote configuration: '${h}'`),r.increment("dom","failure");return}if(!m){r.increment("dom","missing");return}if(d(m,p)){Oe.error(`Forbidden element selected by the remote configuration: '${h}'`),r.increment("dom","failure");return}const g=p!==void 0?m.getAttribute(p):m.textContent;if(g===null){r.increment("dom","missing");return}return r.increment("dom","success"),g}function d(h,p){return h.getAttribute("type")==="password"&&p==="value"}function f({path:h}){let p=window;const m=nJ(h);if(m.length===0){Oe.error(`Invalid JSON path in the remote configuration: '${h}'`),r.increment("js","failure");return}for(const g of m){if(!(g in p)){r.increment("js","missing");return}try{p=p[g]}catch(v){Oe.error(`Error accessing: '${h}'`,v),r.increment("js","failure");return}}return r.increment("js","success"),p}}function pM(){const e={fetch:{}};return{get:()=>e,increment:(t,n)=>{e[t]||(e[t]={}),e[t][n]||(e[t][n]=0),e[t][n]=e[t][n]+1}}}function SJ(e){return"rcSerializedType"in e}function mM(e){try{return new RegExp(e)}catch{Oe.error(`Invalid regex in the remote configuration: '${e}'`)}}function EJ(e,t){const n=mM(e.value);if(n!==void 0)return fM(t,n)}async function gM(e){let t;try{t=await TD(kJ(e))}catch{t=void 0}if(!t?.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function pp(e){return e.remoteConfiguration?.id??e.remoteConfigurationId}function kJ(e){if(e.remoteConfigurationProxy)return e.remoteConfigurationProxy;const t=pp(e);return pD({site:e.site,path:`/${yJ}/${encodeURIComponent(t)}.json`,subdomain:"sdk-configuration"})}function xJ(e,t,n){gM(e).then(r=>{r.ok?(n.increment("fetch","success"),t.write(r.value)):(n.increment("fetch","failure"),Oe.error(r.error))}).catch(nr).finally(()=>{hp(g_.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:n.get()})})}function TJ(e,t){const n=_J({remoteConfigurationId:pp(e)}),r=pM(),s=n.read();if(r.increment("cache",mJ[s.status]),xJ(e,n,r),s.status==="hit")return hM(e,s.config,t,r);if(!e.remoteConfiguration?.required)return e}const OC=["tracecontext","datadog"],vM=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache"];function CJ(e,t){if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&Oe.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){Oe.error("Application ID is not configured, no RUM data will be collected.");return}if(!qc(e.sessionReplaySampleRate,"Session Replay")||!qc(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){Oe.error("Excluded A
1504ctivity Urls should be an array");return}const n=AJ(e);if(!n)return;const r=tX(e,t),s=IJ(e);if(!r)return;const o=e.sessionReplaySampleRate??0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:o,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:o===0,traceSampleRate:e.traceSampleRate??100,rulePsr:d_(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:n,excludedActivityUrls:e.excludedActivityUrls??[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(e.trackUserInteractions??!0),betaEnableViewUpdates:!!e.betaEnableViewUpdates,trackViewsManually:!!e.trackViewsManually,trackResources:!!(e.trackResources??!0),trackResourceHeaders:PJ(e),trackLongTasks:!!(e.trackLongTasks??!0),subdomain:e.subdomain,defaultPrivacyLevel:Ug(zc,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:zc.MASK_USER_INPUT,enablePrivacyForActionName:e.enablePrivacyForActionName!==!1,traceContextInjection:Ug(tw,e.traceContextInjection)?e.traceContextInjection:tw.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:e.profilingSampleRate??0,propagateTraceBaggage:e.propagateTraceBaggage!==!1,allowedGraphQlUrls:s,remoteConfigurationId:pp(e),...r}}function AJ(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){Oe.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){Oe.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{const r=_M(n);r?t.push(r):Oe.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function RJ(e){const t=new Set;return Ol(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(n=>{_M(n)?.propagatorTypes.forEach(r=>t.add(r))}),Array.from(t)}function _M(e){if(Du(e))return{match:e,propagatorTypes:OC};if(li(e)&&Du(e.match)&&(e.propagatorTypes===null||e.propagatorTypes===void 0||Array.isArray(e.propagatorTypes)))return{match:e.match,propagatorTypes:e.propagatorTypes||OC}}function IJ(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return Oe.warn("allowedGraphQlUrls should be an array"),[];const t=[];
1504return e.allowedGraphQlUrls.forEach(n=>{Du(n)?t.push({match:n,trackPayload:!1,trackResponseErrors:!1}):li(n)&&Du(n.match)&&t.push({match:n.match,trackPayload:!!n.trackPayload,trackResponseErrors:!!n.trackResponseErrors})}),t}const OJ=["request","response","any"];function PJ(e){const t=e.trackResourceHeaders;if(t===void 0||t===!1)return[];if(t===!0)return vM.map(r=>({name:r}));if(!Array.isArray(t))return Oe.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(t.length===0)return Oe.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];const n=[];return t.forEach((r,s)=>{if(!li(r)||!Du(r.name)){Oe.warn(`trackResourceHeaders[${s}] should be a MatchHeader object with a 'name' property`);return}if(r.url!==void 0&&!Du(r.url)){Oe.warn(`trackResourceHeaders[${s}].url should be a MatchOption`);return}if(r.extractor!==void 0&&!(r.extractor instanceof RegExp)){Oe.warn(`trackResourceHeaders[${s}].extractor should be a RegExp`);return}if(r.location!==void 0&&!OJ.includes(r.location)){Oe.warn(`trackResourceHeaders[${s}].location should be 'request', 'response', or 'any'`);return}n.push({...r,name:typeof r.name=="string"?r.name.toLowerCase():r.name})}),n}function LJ(e){return Ol(e)&&e.some(t=>li(t)&&t.trackPayload)}function NJ(e){return Ol(e)&&e.some(t=>li(t)&&t.trackResponseErrors)}function DJ(e){if(e===!0)return"default_headers";if(Array.isArray(e))return"custom"}function MJ(e){const t=rX(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Ol(e.allowedTracingUrls),use_allowed_graph_ql_urls:Ol(e.allowedGraphQlUrls),use_track_graph_ql_payload:LJ(e.allowedGraphQlUrls),use_track_graph_ql_response_errors:NJ(e.allowedGraphQlUrls),selected_tracing_propagators:RJ(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Ol(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:e.plugins?.map(n=>({name:n.name,...n.getConfigurationTelemetry?.()})),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:pp(e),profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,track_resource_headers:DJ(e.trackResourceHeaders),beta_enable_view_updates:e.betaEnableViewUpdates,...t}}function $J(){return{assemble:gC(),assembleTelemetry:gC()}}function FJ(){const e=UJ();return new dt(t=>{const n=new e(it(r=>t.notify(r)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function UJ(){let e;const t=window;return t.Zone&&(e=Ki(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver&&(e=Ki(new t.MutationObserver(Gt),"originalInstance")?.constructor)),e||(e=t.MutationObserver),e}let PC=(function(e){return e[e.AUTO_ACTION_COMPLETED=0]="AUTO_ACTION_COMPLETED",e[e.BEFORE_VIEW_CREATED=1]="BEFORE_VIEW_CREATED",e[e.VIEW_CREATED=2]="VIEW_CREATED",e[e.BEFORE_VIEW_UPDATED=3]="BEFORE_VIEW_UPDATED",e[e.VIEW_UPDATED=4]="VIEW_UPDATED",e[e.VIEW_ENDED=5]="VIEW_ENDED",e[e.AFTER_VIEW_ENDED=6]="AFTER_VIEW_ENDED",e[e.REQUEST_STARTED=7]="REQUEST_STARTED",e[e.REQUEST_COMPLETED=8]="REQUEST_COMPLETED",e[e.SESSION_EXPIRED=9]="SESSION_EXPIRED",e[e.SESSION_RENEWED=10]="SESSION_RENEWED",e[e.PREPARE_URGENT_FLUSH=11]="PREPARE_URGENT_FLUSH",e[e.RAW_RUM_EVENT_COLLECTED=12]="RAW_RUM_EVENT_COLLECTED",e[e.RUM_EVENT_COLLECTED=13]="RUM_EVENT_COLLECTED",e[e.RAW_ERROR_COLLECTED=14]="RAW_ERROR_COLLECTED",e[e.ACTION_STARTED=15]="ACTION_STARTED",e[e.DURATION_VITAL_STARTED=16]="DURATION_VITAL_STARTED",e})({});const BJ=lZ,VJ=yd;function jJ(e){const t=_d({expireDelay:VJ});e.subscribe(1,r=>{t.add(n(r),r.startClocks.relative)}),e.subscribe(6,({endClocks:r})=>{t.closeActive(r.relative)}),e.subscribe(3,r=>{const s=t.find(r.startClocks.relative);s&&(r.name&&(s.name=r.name),r.context&&(s.context=r.context),s.sessionIsActive=r.sessionIsActive)}),e.subscribe(10,()=>{t.reset()});function n(r){return{service:r.service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:r=>t.find(r),stop:()=>{t.stop()}}}const HJ=[[ns.DOCUMENT,e=>e==="navigation"],[ns.XHR,e=>e==="xmlhttprequest"],[ns.FETCH,e=>e==="fetch"],[ns.BEACON,e=>e==="beacon"],[ns.CSS,(e,t)=>/\.css$/i.test(t)],[ns.JS,(e,t)=>/\.js$/i.test(t)],[ns.IMAGE,(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],[ns.FONT,(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],[ns.MEDIA,(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function zJ(e){const t=e.name;if(!xY(t))return ns.OTHER;const n=TY(t);for(const[r,s]of HJ)if(s(e.initiatorType,n))return r;return ns.OTHER}function LC(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function qJ(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function WJ(e){const{duration:t,startTime:n,responseEnd:r}=e;return e.initiatorType==="navigation"||t===0&&n<r?on(n,r):t}function KJ(e){if(!YJ(e))return;const{startTime:t,fetchStart:n,workerStart:r,redirectStart:s,redirectEnd:o,domainLookupStart:i,domainLookupEnd:a,connectStart:l,secureConnectionStart:c,connectEnd:u,requestStart:d,responseStart:f,responseEnd:h}=e,p={download:fl(t,f,h),first_byte:fl(t,d,f)};return 0<r&&r<n&&(p.worker=fl(t,r,n)),n<u&&(p.connect=fl(t,l,u),l<=c&&c<=u&&(p.ssl=fl(t,c,u))),n<a&&(p.dns=fl(t,i,a)),t<o&&(p.redirect=fl(t,s,o)),p}function GJ(e){return e.duration>=0}function YJ(e){const t=LC(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=XJ(e)?LC(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function XJ(e){return e.redirectEnd>e.startTime}function fl(e,t,n){if(e<=t&&t<=n)return{duration:Ge(on(t,n)),start:Ge(on(e,t))}}function QJ(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function ZJ(e){return e.deliveryType===""?"other":e.deliveryType}function JJ(e){if(e.startTime<e.responseStart){const{encodedBodySize:t,decodedBodySize:n,transferSize:r}=e;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function dh(e){return e&&(!ZY(e)||aX(gD.TRACK_INTAKE_REQUESTS))}const eee=/data:(.+)?(;base64)?,/g,tee=24e3;function yM(e,t=tee){if(e.length<=t||!e.startsWith("data:"))return e;const n=e.substring(0,100).match(eee);return n?`${n[0]}[...]`:e}
1504function ow(e){return e.nodeType===Node.TEXT_NODE}function nee(e){return e.nodeType===Node.COMMENT_NODE}function Ba(e){return e.nodeType===Node.ELEMENT_NODE}function bM(e){return Ba(e)&&!!e.shadowRoot}function aE(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Ba(t.host)}function twe(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;bM(e)&&t(e.shadowRoot)}function ree(e){return aE(e)?e.host:e.parentNode}function wM(e){if(e.parentElement)return e.parentElement;const t=e.parentNode;return t&&aE(t)?t.host:null}let nwe=(function(e){return e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state",e})({});function Va(e){return new dt(t=>{const n=i=>{const a=iee(i);a.length>0&&t.notify(a)};let r,s=!0;const o=new PerformanceObserver(it(i=>{s?r=Tr(()=>n(i.getEntries())):n(i.getEntries())}));return o.observe(e),s=!1,see(),()=>{o.disconnect(),Rs(r)}})}let NC;function see(){!NC&&oee()&&"addEventListener"in performance&&(NC=tn(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()}))}function oee(){return window.performance!==void 0&&"getEntries"in performance}function hc(e){return PerformanceObserver.supportedEntryTypes.includes(e)}function iee(e){return e.filter(t=>!aee(t))}function aee(e){return e.entryType==="resource"&&(!dh(e.name)||!GJ(e))}const lee="data-dd-action-name",SM="Masked Element",cee="::shadow ",lE=[lee,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],uee=[xM,EM],dee=[xM,pee,kM];function S_(e,t){if(!e.isConnected)return;const n=fee(e),r=[];for(const{rootNode:s,target:o}of n){const i=hee(o,s,t);if(!i)return;r.push(i)}return r.join(cee)}function fee(e){const t=[];let n=e;for(;n;){const r=n.getRootNode();if(t.push({rootNode:r,target:n}),aE(r))n=r.host;else break}return t.reverse()}function hee(e,t,n){let r,s=e;for(;s&&s.nodeName!=="HTML";){const o=DC(s,t,uee,gee,n,r);if(o)return Hg(o,r);r=Hg(DC(s,t,dee,vee,n,r)||mee(s),r),s=s.parentElement}return r}function cE(e){return/[0-9]/.test(e)}function EM(e){if(e.id&&!cE(e.id))return`#${CSS.escape(e.id)}`}function pee(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;n<t.length;n+=1){const r=t[n];if(!cE(r))return`${CSS.escape(e.tagName)}.${CSS.escape(r)}`}}function kM(e){return CSS.escape(e.tagName)}function xM(e,t){if(t){const r=n(t);if(r)return r}for(const r of lE){const s=n(r);if(s)return s}function n(r){if(e.hasAttribute(r))return`${CSS.escape(e.tagName)}${TM(r,e.getAttribute(r))}`}}function TM(e,t){return`[${e}="${CSS.escape(t)}"]`}function mee(e){const t=CM(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}function CM(e){let t=e.parentNode.firstElementChild,n=1;for(;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return n}function DC(e,t,n,r,s,o){for(const i of n){const a=i(e,s);if(a&&r(e,t,a,o))return a}}function gee(e,t,n,r){return t.querySelectorAll(Hg(n,r)).length===1}function vee(e,t,n,r){let s;if(r===void 0)s=i=>i.matches(n);else{const i=Hg(`${n}:scope`,r);s=a=>a.querySelector(i)!==null}let o=e.previousElementSibling;for(;o;){if(s(o))return!1;o=o.previousElementSibling}for(o=e.nextElementSibling;o;){if(s(o))return!1;o=o.nextElementSibling}return!0}function Hg(e,t){return t?`${e}>${t}`:e}const bt={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:zc.ALLOW,MASK:zc.MASK,MASK_USER_INPUT:zc.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:zc.MASK_UNLESS_ALLOWLISTED},_ee="data-dd-privacy",rwe="hidden",yee="dd-privacy-",swe="***",owe="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",bee={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Vd(e){return`[${_ee}="${e}"], .${yee}${e}`}function E_(e,t,n){if(n?.has(e))return n.get(e);const r=ree(e),s=r?E_(r,t,n):t,o=wee(See(e),s);return n&&n.set(e,o),o}function wee(e,t){switch(t){case bt.HIDDEN:case bt.IGNORE:return t}switch(e){case bt.ALLOW:case bt.MASK:case bt.MASK_USER_INPUT:case bt.MASK_UNLESS_ALLOWLISTED:case bt.HIDDEN:case bt.IGNORE:return e;default:return t}}function See(e){if(Ba(e)){if(e.tagName==="BASE")return bt.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return bt.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return bt.MASK}if(e.matches(Vd(bt.HIDDEN)))return bt.HIDDEN;if(e.matches(Vd(bt.MASK)))return bt.MASK;if(e.matches(Vd(bt.MASK_UNLESS_ALLOWLISTED)))return bt.MASK_UNLESS_ALLOWLISTED;if(e.matches(Vd(bt.MASK_USER_INPUT)))return bt.MASK_USER_INPUT;if(e.matches(Vd(bt.ALLOW)))return bt.ALLOW;if(kee(e))return bt.IGNORE}}function AM(e,t){switch(t){case bt.MASK:case bt.HIDDEN:case bt.IGNORE:return!0;case bt.MASK_UNLESS_ALLOWLISTED:return ow(e)?Wp(e.parentNode)?!0:!IM(e.textContent||""):Wp(e);case bt.MASK_USER_INPUT:return ow(e)?Wp(e.parentNode):Wp(e);default:return!1}}
1504function Eee(e,t,n,r,s){if(r!==bt.MASK&&r!==bt.MASK_UNLESS_ALLOWLISTED||t==="data-dd-privacy"||lE.includes(t)||t===s.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!(e==="A"&&t==="href"||e==="IFRAME"&&t==="srcdoc"||n&&t.startsWith("data-")||(e==="IMG"||e==="SOURCE")&&(t==="src"||t==="srcset"))}function Wp(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!bee[t.tagName]}function RM(e){return e.replace(/\S/g,"x")}function iwe(e,t){const n=e.parentElement?.tagName;let r=e.textContent||"";const s=t;return n==="SCRIPT"||s===bt.HIDDEN?r="***":AM(e,s)&&(n==="DATALIST"||n==="SELECT"||n==="OPTGROUP"||(n==="OPTION"?r="***":r=RM(r))),n==="HEAD"&&!r.trim()?"":r}function kee(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),r=t("rel"),s=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||r==="icon"||r==="apple-touch-icon"||r==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(s)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(s)||/^product:/.test(s)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function IM(e){return e?.trim()?window.$DD_ALLOW?.has(e.toLocaleLowerCase())||!1:!0}function xee(e,t){return IM(e)?e:t||RM(e)}function awe(){let e;const t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function Tee(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let Wy;function Cee(){return Wy||(Wy=Aee()),Wy}function Aee(){return new dt(e=>{const{throttled:t}=p_(()=>{e.notify(uE())},200);return tn(window,Jt.RESIZE,t,{capture:!0,passive:!0}).stop})}function uE(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}let dE=(function(e){return e[e.OFF=0]="OFF",e[e.SAMPLED=1]="SAMPLED",e[e.FORCED=2]="FORCED",e})({});function fE(e,t){return Yi()?XS(YS.RECORDS)?1:0:v_(e.id,eE(t.sessionSampleRate,t.sessionReplaySampleRate))?1:e.isReplayForced?2:0}function Ree(){const e=new dt,{stop:t}=ti(window,"open",()=>e.notify());return{observable:e,stop:t}}function Iee(e,t,n,r,s){return{get:o=>{const i=n.findView(o),a=s.findUrl(o),l=t.findTrackedSession(o);if(l&&i&&a){const c=r.findActionId(o);return{application_id:e,session_id:l.id,user_action:c?{id:c}:void 0,view:{id:i.id,name:i.name,referrer:a.referrer,url:a.url}}}}}}function Oee(){return PM(64)}function OM(){return PM(63)}function PM(e){const t=crypto.getRandomValues(new Uint32Array(2));let n=BigInt(t[0])+(BigInt(t[1])<<32n);return e===63&&(n&=9223372036854775807n),n}function xc(e){return e.toString(16).padStart(16,"0")}function Pee(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function Lee(e,t,n,r){return{clearTracingIfNeeded:Pee,traceFetch:s=>MC(e,s,t,n,r,o=>{if(s.input instanceof Request&&!s.init?.headers)s.input=new Request(s.input),Object.keys(o).forEach(i=>{s.input.headers.append(i,o[i])});else{s.init=ah(s.init);const i=[];s.init.headers instanceof Headers?s.init.headers.forEach((a,l)=>{i.push([l,a])}):Array.isArray(s.init.headers)?s.init.headers.forEach(a=>{i.push(a)}):s.init.headers&&Object.keys(s.init.headers).forEach(a=>{i.push([a,s.init.headers[a]])}),s.init.headers=i.concat(QS(o))}}),traceXhr:(s,o)=>MC(e,s,t,n,r,i=>
1504{try{Object.keys(i).forEach(a=>{o.setRequestHeader(a,i[a])})}catch{}})}}function MC(e,t,n,r,s,o){const i=n.findTrackedSession();if(!i)return;const a=e.allowedTracingUrls.find(u=>hd([u.match],t.url,!0));if(!a)return;const l=v_(i.id,eE(e.sessionSampleRate,e.traceSampleRate)),c=Yi()?gd()?.getIsTraceSampled()??l:l;(c||e.traceContextInjection===tw.ALL)&&(t.traceSampled=c,t.traceId=Oee(),t.spanId=OM(),o(Nee(t.traceId,t.spanId,t.traceSampled,i.id,a.propagatorTypes,r,s,e)))}function Nee(e,t,n,r,s,o,i,a){const l={};if(s.forEach(c=>{switch(c){case"datadog":Object.assign(l,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(l,{traceparent:`00-0000000000000000${xc(e)}-${xc(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break;case"b3":Object.assign(l,{b3:`${xc(e)}-${xc(t)}-${n?"1":"0"}`});break;case"b3multi":Object.assign(l,{"X-B3-TraceId":xc(e),"X-B3-SpanId":xc(t),"X-B3-Sampled":n?"1":"0"});break}}),a.propagateTraceBaggage){const c={"session.id":r},u=o.getContext().id;typeof u=="string"&&(c["user.id"]=u);const d=i.getContext().id;typeof d=="string"&&(c["account.id"]=d);const f=Object.entries(c).map(([h,p])=>`${h}=${encodeURIComponent(p)}`).join(",");f&&(l.baggage=f)}return l}const Dee=32*nl;function Mee(e,t){const n=Fee(e,t.trackPayload);if(n){if(t.trackResponseErrors&&e.responseBody){const r=$ee(e.responseBody);r&&(n.error_count=r.length,n.errors=r)}return n}}function $ee(e){const t=dd(e);if(!t||typeof t!="object")return;const n=t;if(Ol(n.errors))return n.errors.map(r=>({message:r.message,path:r.path,locations:r.locations,code:r.extensions?.code}))}function LM(e,t){return t.allowedGraphQlUrls.find(n=>hd([n.match],e))}function Fee(e,t=!1){let n;if(e.method==="POST"?n=Uee(e.requestBody):e.method==="GET"&&(n=Bee(e.url)),!!n)return Vee(n,t)}function Uee(e){if(!e||typeof e!="string")return;const t=dd(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0,operationType:t.operationType}}function Bee(e){const t=ud(e).searchParams,n=t.get("variables"),r=n&&dd(n)!==void 0?n:void 0;return{query:t.get("query")||void 0,operationName:t.get("operationName")||void 0,variables:r,operationType:t.get("operationType")||void 0}}function Vee(e,t){let n,r,s;if(e.query){const o=e.query.trim();n=jee(o),t&&(r=up(o,Dee,"..."))}if(!n){const o=e.operationType;(o==="query"||o==="mutation"||o==="subscription")&&(n=o)}return e.variables&&(s=e.variables),{operationType:n,operationName:e.operationName,variables:s,payload:r}}function jee(e){return e.match(/^\s*(query|mutation|subscription)\b/i)?.[1]}let Hee=1;function zee(e,t,n,r,s,o){const i=Lee(t,n,r,s);qee(e,i,o),Wee(e,t,i,o)}function qee(e,t,n){const r=[];return r.push(tM().subscribe(s=>{s.state==="start"&&dh(s.url)&&(t.traceXhr(s,s.xhr),zg(s))})),r.push(n.subscribe(({data:s,type:o})=>{if(o!==jg.XHR)return;const i=s;
1504if(dh(i.url))switch(i.state){case"start":zg(i),e.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"complete":t.clearTracingIfNeeded(i),e.notify(8,{...i,type:uh.XHR,isAbortedOnStart:!1});break}})),{stop:()=>r.forEach(s=>s.unsubscribe())}}function Wee(e,t,n,r){const s=[];return s.push(rM({responseBodyAction:o=>LM(o.url,t)?.trackResponseErrors?xC.COLLECT:xC.IGNORE}).subscribe(o=>{o.state==="start"&&dh(o.url)&&(n.traceFetch(o),zg(o))})),s.push(r.subscribe(({data:o,type:i})=>{if(i!==jg.FETCH)return;const a=o;if(dh(a.url))switch(a.state){case"start":zg(a),e.notify(7,{requestIndex:a.requestIndex,url:a.url});break;case"resolve":n.clearTracingIfNeeded(a),e.notify(8,{...a,duration:on(a.startClocks.timeStamp,xn()),type:uh.FETCH,requestBody:a.init?.body});break}})),{stop:()=>s.forEach(o=>o.unsubscribe())}}function zg(e){e.requestIndex||(e.requestIndex=Hee++)}function NM(e){return d_(e)&&e<0?void 0:e}function hE(e,t,n,r,s,o){const i=Kee(e,t,n,r);let a,l=!1;const c=Tr(it(()=>h({hadActivity:!1})),100),u=o!==void 0?Tr(it(()=>h({hadActivity:!0,end:xn()})),o):void 0,d=i.subscribe(({isBusy:p})=>{Rs(c),Rs(a);const m=xn();p||(a=Tr(it(()=>h({hadActivity:!0,end:m})),100))}),f=()=>{l=!0,Rs(c),Rs(a),Rs(u),d.unsubscribe()};function h(p){l||(f(),s(p))}return{stop:f}}function Kee(e,t,n,r){return new dt(s=>{const o=[];let i,a=0;return o.push(t.subscribe(c=>{c.every(Gee)||l()}),n.subscribe(l),Va({type:"resource"}).subscribe(c=>{c.some(u=>!Ky(r,u.name))&&l()}),e.subscribe(7,c=>{Ky(r,c.url)||(i===void 0&&(i=c.requestIndex),a+=1,l())}),e.subscribe(8,c=>{Ky(r,c.url)||i===void 0||c.requestIndex<i||(a-=1,l())})),()=>{o.forEach(c=>c.unsubscribe())};function l(){s.notify({isBusy:a>0})}})}function Ky(e,t){return hd(e.excludedActivityUrls,t)}function Gee(e){const t=e.type==="characterData"?e.target.parentElement:e.target;return!!(t&&Ba(t)&&t.matches("[data-dd-excluded-activity-mutations], [data-dd-excluded-activity-mutations] *"))}function DM({lifeCycle:e,isChildEvent:t,onChange:n=Gt}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},s=e.subscribe(13,o=>{if(!(o.type==="view"||o.type==="vital"||!t(o)))switch(o.type){case ze.ERROR:r.errorCount+=1,n();break;case ze.ACTION:r.actionCount+=1,o.action.frustration&&(r.frustrationCount+=o.action.frustration.type.length),n();break;case ze.LONG_TASK:r.longTaskCount+=1,n();break;case ze.RESOURCE:o._dd?.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{s.unsubscribe()},eventCounts:r}}const Yee=5*Ss;function k_(e){const t=_d({expireDelay:Yee}),n=new Map;function r(f){n.delete(f.key),f.eventCounts?.stop()}function s(){n.forEach(f=>{r(f)}),t.reset()}const o=e.subscribe(10,s);function i(f,h,p,m){const g=zn(),v=t.add(g,h.relative),b=n.get(f);b&&r(b);const _={id:g,key:f,startClocks:h,data:p,historyEntry:v,eventCounts:m?.isChildEvent?DM({lifeCycle:e,isChildEvent:m.isChildEvent(g)}):void 0};return n.set(f,_),_}function a(f,h,p){const m=n.get(f);if(!m)return;const g=p?Wi(m.data,p):m.data;m.historyEntry.close(h.relative);const v=on(m.startClocks.timeStamp,h.timeStamp),b=m.eventCounts?.eventCounts;return r(m),{...g,id:m.id,startClocks:m.startClocks,duration:v,counts:b}}function l(f){const h=n.get(f);if(!h)return;const p=h.eventCounts?.eventCounts;return r(h),h.historyEntry.remove(),{...h.data,id:h.id,startClocks:h.startClocks,counts:p}}function c(f){return t.findAll(f)}function u(f){return n.get(f)?.eventCounts?.eventCounts}function d(){o.unsubscribe(),s(),t.stop()}return{start:i,stop:a,discard:l,getCounts:u,findId:c,stopAll:d}}const Xee=["HTML","BODY"],$C=2*nl,FC=lE.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]);function Qee(e,t){const n=e.filter(o=>o instanceof Element&&!Xee.includes(o.tagName));if(n.length===0)return"";const r=t?[t].concat(FC):FC;let s="";for(const o of n){const i=Zee(o,r);if(s+=i,s.length>=$C)return up(s,$C)}return s}function Zee(e,t){const n=kM(e),r=EM(e),s=Jee(e),o=tte(e,t),i=ete(e);return`${n}${r||""}${o}${s}${i};`}function Jee(e){return Array.from(e.classList).filter(t=>!cE(t)).sort().map(t=>`.${CSS.escape(t)}`).join("")}function ete(e){const t=Array.from(e.parentNode.children);if(t.length<=1)return"";const n=t.filter(o=>o.tagName===e.tagName),r=t.indexOf(e),s=CM(e);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${s})`:""}`}function tte(e,t){const n=[],r=Array.from(e.attributes);for(const s of r)t.includes(s.name)&&n.push(TM(s.name,s.value));return n.sort().join("")}const MM=Nr;function nte(e,t){const n=[];let r=0,s;o(e);function o(l){l.stopObservable.subscribe(i),n.push(l),Rs(s),s=Tr(a,MM)}function i(){r===1&&n.every(l=>l.isStopped())&&(r=2,t(n))}function a(){Rs(s),r===0&&(r=1,i())}return{tryAppend:l=>r!==0?!1:n.length>0&&!rte(n[n.length-1].event,l.event)?(a(),!1):(o(l),!0),stop:()=>{a()}}}function rte(e,t){return e.target===t.target&&ste(e,t)<=100&&e.timeStamp-t.timeStamp<=MM}function ste(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function ote(e,t,n=bt.ALLOW){const r=new Map,{actionNameAttribute:s}=t,o=UC(e,"data-dd-action-name")||s&&UC(e,s);return o?{name:o,nameSource:"custom_attribute"}:n===bt.MASK?{name:SM,nameSource:"mask_placeholder"}:BC(e,ate,t,r)||BC(e,lte,t,r)||{name:"",nameSource:"blank"}}function UC(e,t){const n=ite(e,`[${t}]`);
1504if(n)return FM($M(n.getAttribute(t).trim()))}function ite(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=wM(n)}return null}const ate=[(e,t,n)=>{if("labels"in e&&e.labels&&e.labels.length>0)return Lm(e.labels[0],t,n)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t,n)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return Lm(e,t,n)},(e,t,n)=>jd(e,"aria-label",t,n),(e,t,n)=>{const r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(s=>ute(e,s)).filter(s=>!!s).map(s=>UM(s,t,n)).join(" "),nameSource:"text_content"}},(e,t,n)=>jd(e,"alt",t,n),(e,t,n)=>jd(e,"name",t,n),(e,t,n)=>jd(e,"title",t,n),(e,t,n)=>jd(e,"placeholder",t,n),(e,t,n)=>{if("options"in e&&e.options.length>0)return Lm(e.options[0],t,n)}],lte=[(e,t,n)=>Lm(e,t,n)],cte=10;function BC(e,t,n,r){let s=e,o=0;for(;o<=cte&&s&&s.nodeName!=="BODY"&&s.nodeName!=="HTML"&&s.nodeName!=="HEAD";){for(const i of t){const a=i(s,n,r);if(a){const{name:l,nameSource:c}=a,u=l?.trim();if(u)return{name:FM($M(u)),nameSource:c}}}if(s.nodeName==="FORM")break;s=wM(s),o+=1}}function $M(e){return e.replace(/\s+/g," ")}function FM(e){return e.length>100?`${up(e,100)} [...]`:e}function ute(e,t){const n=e.getRootNode();if(n instanceof ShadowRoot){const r=n.getElementById(t);if(r)return r}return e.ownerDocument?e.ownerDocument.getElementById(t):null}function jd(e,t,n,r){const{enablePrivacyForActionName:s,defaultPrivacyLevel:o}=n;let i=e.getAttribute(t);if(i&&s){const a=E_(e,o,r);Eee(e.tagName,t,i,a,n)&&(i=xee(i,SM))}else i||(i="");return{name:i,nameSource:"standard_attribute"}}function Lm(e,t,n){return{name:UM(e,t,n)||"",nameSource:"text_content"}}function UM(e,t,n){if(e.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:s,defaultPrivacyLevel:o}=t,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,l);let a="";for(;i.nextNode();){const c=i.currentNode;if(Ba(c)){(c.nodeName==="BR"||c.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(c).display))&&(a+=" ");continue}a+=c.textContent||""}return a.replace(/\s+/g," ").trim();function l(c){const u=E_(c,o,n);if(r&&u&&AM(c,u))return NodeFilter.FILTER_REJECT;if(Ba(c)){if(c.hasAttribute("data-dd-action-name")||s&&c.hasAttribute(s))return NodeFilter.FILTER_REJECT;const d=getComputedStyle(c);if(d.visibility!=="visible"||d.display==="none"||d.contentVisibility&&d.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function dte({onPointerDown:e,onPointerUp:t}){let n,r={selection:!1,input:!1,scroll:!1},s;const o=[tn(window,Jt.POINTER_DOWN,i=>{jC(i)&&(n=VC(),r={selection:!1,input:!1,scroll:!1},s=e(i))},{capture:!0}),tn(window,Jt.SELECTION_CHANGE,()=>{(!n||!VC())&&(r.selection=!0)},{capture:!0}),tn(window,Jt.SCROLL,()=>{r.scroll=!0},{capture:!0,passive:!0}),tn(window,Jt.POINTER_UP,i=>{if(jC(i)&&s){const a=r;t(s,i,()=>a),s=void 0}},{capture:!0}),tn(window,Jt.INPUT,()=>{r.input=!0},{capture:!0})];return{stop:()=>{o.forEach(i=>i.stop())}}}function VC(){const e=window.getSelection();return!e||e.isCollapsed}function jC(e){return e.target instanceof Element&&e.isPrimary!==!1}const HC=3;function fte(e,t){if(hte(e))return t.addFrustration(Mc.RAGE_CLICK),e.some(zC)&&t.addFrustration(Mc.DEAD_CLICK),t.hasError&&t.addFrustration(Mc.ERROR_CLICK),{isRage:!0};const n=e.some(r=>r.getUserActivity().selection);return e.forEach(r=>{r.hasError&&r.addFrustration(Mc.ERROR_CLICK),zC(r)&&!n&&r.addFrustration(Mc.DEAD_CLICK)}),{isRage:!1}}function hte(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t<e.length-(HC-1);t+=1)if(e[t+HC-1].event.timeStamp-e[t].event.timeStamp<=Nr)return!0;return!1}const pte='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function zC(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return t.tagName==="LABEL"&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t?.matches(pte)}const BM=10*Nr,Cf=new Map;function mte(e){const t=Cf.get(e);return Cf.delete(e),t}
1504function VM(e,t){Cf.set(e,t),Cf.forEach((n,r)=>{on(r,Ps())>BM&&Cf.delete(r)})}function jM(e){return t=>t.action?.id?.includes(e)??!1}function gte(e,t,n,r){const s=k_(e),o=new dt;let i;e.subscribe(5,c),e.subscribe(11,c);const{stop:a}=dte({onPointerDown:u=>vte(r,e,t,u,n),onPointerUp:({clickActionBase:u,hadActivityOnPointerDown:d},f,h)=>{_te(r,e,t,n,s,o,l,u,f,h,d)}});return{stop:()=>{c(),o.notify(),a(),s.stopAll()},findActionId:s.findId};function l(u){if(!i?.tryAppend(u)){const d=u.clone();i=nte(u,f=>{bte(f,d),i=void 0})}}function c(){i&&i.stop()}}function vte(e,t,n,r,s){let o;if(e.enablePrivacyForActionName?o=E_(HM(r),e.defaultPrivacyLevel):o=bt.ALLOW,o===bt.HIDDEN)return;const i=yte(r,o,e);let a=!1;return hE(t,n,s,e,l=>{a=l.hadActivity},100),{clickActionBase:i,hadActivityOnPointerDown:()=>a}}function _te(e,t,n,r,s,o,i,a,l,c,u){const d=zM(t,s,c,a,l);i(d);const f=a?.target?.selector;f&&VM(l.timeStamp,f);const{stop:h}=hE(t,n,r,e,v=>{v.hadActivity&&v.end<d.startClocks.timeStamp?d.discard():v.hadActivity?d.stop(v.end):u()?d.stop(d.startClocks.timeStamp):d.stop()},BM),p=t.subscribe(5,({endClocks:v})=>{d.stop(v.timeStamp)}),m=t.subscribe(11,()=>{d.stop(xn())}),g=o.subscribe(()=>{d.stop()});d.stopObservable.subscribe(()=>{m.unsubscribe(),p.unsubscribe(),h(),g.unsubscribe()})}function yte(e,t,n){const r=HM(e),s=r.getBoundingClientRect(),o=S_(r,n.actionNameAttribute),i=Qee(e.composedPath(),n.actionNameAttribute);o&&VM(e.timeStamp,o);const{name:a,nameSource:l}=ote(r,n,t);return{type:iE.CLICK,target:{width:Math.round(s.width),height:Math.round(s.height),selector:o,composedPathSelector:i||void 0},position:{x:Math.round(e.clientX-s.left),y:Math.round(e.clientY-s.top)},name:a,nameSource:l}}function HM(e){if(e.composed&&bM(e.target)&&typeof e.composedPath=="function"){const t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function zM(e,t,n,r,s){const o=zn(),i=dp(s.timeStamp),a=t.start(o,i,r,{isChildEvent:jM});e.notify(15,a);let l=0,c;const u=[],d=new dt;function f(h){l===0&&(l=1,c=h?t.stop(o,lD(h)):t.discard(o),d.notify())}return{event:s,stop:f,stopObservable:d,get hasError(){const h=c?.counts??t.getCounts(o);return h?h.errorCount>0:!1},get hasPageActivity(){return c&&"duration"in c},getUserActivity:n,addFrustration:h=>{u.push(h)},get startClocks(){return i},isStopped:()=>l===1||l===2,clone:()=>zM(e,t,n,r,s),validate:h=>{if(f(),l!==1||!c)return;const p={frustrationTypes:u,events:h??[s],event:s,...c,counts:c.counts};e.notify(0,p),l=2},discard:()=>{f(),l=2}}}function bte(e,t){const{isRage:n}=fte(e,t);n?(e.forEach(r=>r.discard()),t.stop(xn()),t.validate(e.map(r=>r.event))):(t.discard(),e.forEach(r=>r.validate()))}function wte(e,t){const n=k_(e);function r(i,a={},l=Kt()){const c=a.actionKey??i,u=n.start(c,l,{name:i,...a},{isChildEvent:jM});e.notify(15,u)}function s(i,a={},l=Kt()){const c=a.actionKey??i,u=n.stop(c,l,a);if(!u)return;const d=[];u.counts&&u.counts.errorCount>0&&d.push(Mc.ERROR_CLICK),t({...u,type:u.type||iE.CUSTOM,frustrationTypes:d})}function o(i){t({id:zn(),frustrationTypes:[],...i})}return{addAction:o,startAction:r,stopAction:s,findActionId:n.findId,stop:n.stopAll}}function Ste(e,t,n,r,s){const{unsubscribe:o}=e.subscribe(0,c=>{e.notify(12,qC(c))});let i;s.trackUserInteractions&&(i=gte(e,n,r,s));const a=wte(e,c=>{e.notify(12,qC(c))}),l={findActionId:c=>{const u=a.findActionId(c),d=i?.findActionId(c)??[];return u.concat(d)}};return t.assemble.register(({startTime:c,eventType:u})=>
1504{if(u!==ze.ERROR&&u!==ze.RESOURCE&&u!==ze.LONG_TASK)return vs;const d=u===ze.LONG_TASK?Nu(c,1):c,f=l.findActionId(d);return f.length?{type:u,action:{id:f}}:vs}),t.assembleTelemetry.register(({startTime:c})=>({action:{id:l.findActionId(c)}})),{addAction:a.addAction,startAction:a.startAction,stopAction:a.stopAction,actionContexts:l,stop:()=>{o(),a.stop(),i?.stop()}}}function qC(e){const t=Ete(e),n=NM(Ge(e.duration));return{rawRumEvent:{type:ze.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...n!==void 0&&{loading_time:n},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...t?{_dd:{action:{target:{selector:e.target?.selector||void 0,width:e.target?.width||void 0,height:e.target?.height||void 0,composed_path_selector:e.target?.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:t?{events:e.events}:{handlingStack:e.handlingStack}}}function Ete(e){return"events"in e}function kte(e){const t=EQ([lh.cspViolation,lh.intervention]).subscribe(n=>e.notify(n));return{stop:()=>{t.unsubscribe()}}}function xte(e,t){const n=new dt;return t.subscribe(({data:r,type:s})=>{s===jg.RUNTIME_ERROR?n.notify(r):s===jg.CONSOLE&&r.api===BS.error&&n.notify(r.error)}),kte(n),n.subscribe(r=>e.notify(14,{error:r})),Tte(e)}function Tte(e){return e.subscribe(14,({error:t})=>{e.notify(12,Cte(t))}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:s,context:o})=>{const i=JS({originalError:t,handlingStack:n,componentStack:r,startClocks:s,nonErrorPrefix:DX.PROVIDED,source:fp.CUSTOM,handling:MX.HANDLED});i.context=Wi(i.context,o),e.notify(14,{error:i})}}}function Cte(e){const t={date:e.startClocks.timeStamp,error:{id:zn(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},_dd:{debug_ids:e.debugIds},type:ze.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startClocks:e.startClocks,domainContext:n}}const Ate=2*Ss;function Rte(e){const t=Ite(e)||Ote(e);if(!(!t||t.traceTime<=fd()-Ate))return t.traceId}function Ite(e){const t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return qM(t?.content,n?.content)}function Ote(e){const t=Pte(e);if(t)return qM(J0(t,"trace-id"),J0(t,"trace-time"))}function qM(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function Pte(e){for(let t=0;t<e.childNodes.length;t+=1){const n=WC(e.childNodes[t]);if(n)return n}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){const n=e.body.childNodes[t],r=WC(n);if(r)return r;if(!ow(n))break}}function WC(e){if(e&&nee(e)){const t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Lte(e){return!(e.loadEventEnd>0&&e.domComplete<=0)}function pE(){if(hc("navigation")){const n=performance.getEntriesByType("navigation")[0];if(n&&Lte(n))return n}const e=Nte(),t={entryType:"navigation",initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function Nte(){const e={},t=performance.timing;for(const n in t)if(d_(t[n])){const r=n,s=t[r];e[r]=s===0?0:cD(s)}return e}function WM(e){return e.responseStart>=0&&e.responseStart<=Ps()?e.responseStart:void 0}function Dte(){if(hc("resource"))return performance.getEntriesByType("resource")}function Mte(e,t){const n=Dte();if(n)return DD(n,r=>r.name===e&&r.startTime<=t)}function $te(e){const t=new Set,n=e.subscribe(8,r=>{t.add(r),t.size>1e3&&t.delete(t.values().next().value)});return{getMatchingRequest(r){let s=1/0,o;for(const i of t){const a=r.startTime-i.startClocks.relative;0<=a&&a<s&&i.url===r.name&&(s=Math.abs(a),o=i)}return o&&t.delete(o),o},stop(){n.unsubscribe()}}}function Fte(e,t){function n(s,o={},i=Kt()){const a=o.resourceKey??s;t.start(a,i,{url:s,...o})}function r(s,o={},i=Kt()){const a=o.resourceKey??s,l=t.stop(a,i,{context:o.context,type:o.type});if(!l)return;const c=on(l.startClocks.relative,i.relative),u={date:l.startClocks.timeStamp,type:ze.RESOURCE,resource:{id:l.id,type:l.type||ns.OTHER,url:yM(l.url),duration:Ge(c),method:l.method,status_code:o.statusCode,size:o.size},_dd:{},context:l.context};e.notify(12,{rawRumEvent:u,startClocks:l.startClocks,duration:c,domainContext:{isManual:!0}})}return{startResource:n,stopResource:r}}function Ute(e,t){const n=SZ(),r=$te(e),s=Va({type:"resource",buffered:!0}).subscribe(c=>{for(const u of c)qJ(u)?Tr(()=>{const d=Gy(u,r.getMatchingRequest(u),t);d&&e.notify(12,d)},50):i(()=>Gy(u,void 0,t))}),{stop:o}=nE("interactive",()=>{i(()=>Gy(pE(),void 0,t))});function i(c){n.push(()=>{const u=c();u&&e.notify(12,u)})}const a=k_(e),l=Fte(e,a);return{startResource:l.startResource,stopResource:l.stopResource,stop:()=>{o(),n.stop(),s.unsubscribe(),a.stopAll()}}}function Gy(e,t,n){const r=t?Hte(t,n):zte(e,n);if(!n.trackResources&&!r)return;const s=dp(e.startTime),o=WJ(e),i=Wte(t,n);return{startClocks:s,duration:o,rawRumEvent:Wi({date:s.timeStamp,resource:{id:zn(),duration:Ge(o),type:zJ(e),method:t?.method,status_code:t?t.status:qte(e.responseStatus),url:t?yM(t.url):e.name,protocol:QJ(e),delivery_type:ZJ(e),graphql:t&&Bte(t,n),render_blocking_status:e.renderBlockingStatus,...JJ(e),...KJ(e)},type:ze.RESOURCE,_dd:{discarded:!n.trackResources}},r,Vte(e),i),domainContext:jte(e,t)}}function Bte(e,t){const n=LM(e.url,t);if(n)return Mee(e,n)}function Vte(e){const t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}function jte(e,t){return{performanceEntry:e,isManual:!1,isAborted:t?t.isAborted:!1,handlingStack:t?.handlingStack,requestInit:t?.init,requestInput:t?.input,response:t?.response,error:t?.error,xhr:t?.xhr}}function Hte(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function zte(e,t){if(e.initiatorType!=="navigation")return;const n=Rte(document);if(n)return{_dd:{trace_id:n,span_id:OM().toString(),rule_psr:t.rulePsr}}}function qte(e){return e===0?void 0:e}function Wte(e,t){const n=t.trackResourceHeaders;if(n.length===0||!e)return;const r=n.filter(l=>l.url!==void 0?hd([l.url],e.url,!0):!0);if(r.length===0)return;const s=r.filter(l=>l.location===void 0||l.location==="any"||l.location==="response"),o=r.filter(l=>l.location===void 0||l.location==="any"||l.location==="request"),i=s.length>0?Kte(e,s):void 0,a=o.length>0?Gte(e,o):void 0;if(!(!i&&!a))return{resource:{request:a?{headers:a}:void 0,response:i?{headers:i}:void 0}}}function Kte(e,t){if(e.type===uh.FETCH&&e.response)return iw(e.response.headers,t);if(e.type===uh.XHR&&e.xhr){const n=e.xhr.getAllResponseHeaders();if(n)try{return iw(new Headers(Xte(n)),t)}catch{}}}function Gte(e,t){if(e.type!==uh.FETCH)return;let n;return e.init?.headers?n=new Headers(e.init.headers):e.input instanceof Request&&(n=e.input.headers),n?iw(n,t):void 0}const Yte=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,KC=100,Kp=128;function iw(e,t){const n={};let r=0,s=0,o=!1;return e.forEach((i,a)=>
1504{if(s++,r>=KC){o||(Oe.warn(`Maximum number of headers (${KC}) has been reached. Further headers are dropped.`),o=!0);return}const l=a.toLowerCase();if(Yte.test(l))return;const c=t.find(f=>hd([f.name],l));if(!c)return;const{extractor:u}=c,d=u?fM(i,u):i;d!==void 0&&(d.length>Kp&&(Oe.warn(`Header "${l}" value was truncated from ${d.length} to ${Kp} characters.`),Uu("Resource header value was truncated",{header_name:l,original_length:d.length,limit:Kp})),n[l]=up(d,Kp),r++)}),o&&Uu("Maximum number of resource headers reached",{collectedHeaderCount:r,totalHeaderCount:s}),r>0?n:void 0}function Xte(e){const t=[],n=e.trim().split(/\r\n/);for(const r of n){const s=r.indexOf(":");s>0&&t.push([r.substring(0,s).trim(),r.substring(s+1).trim()])}return t}function Qte(e,t,n){const{stop:r,eventCounts:s}=DM({lifeCycle:e,isChildEvent:o=>o.view.id===t,onChange:n});return{stop:r,eventCounts:s}}const Zte=10*Ss;function Jte(e,t){return{stop:Va({type:"paint",buffered:!0}).subscribe(n=>{const r=n.find(s=>s.name==="first-contentful-paint"&&s.startTime<e.timeStamp&&s.startTime<Zte);r&&t(r.startTime)}).unsubscribe}}function ene(e,t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t(on(e,Ps()))})})}function tne(e){return sne(()=>{const t=pE();rne(t)||e(nne(t))})}function nne(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:WM(e)}}function rne(e){return e.loadEventEnd<=0}function sne(e){let t;const{stop:n}=nE("complete",()=>{t=Tr(()=>e())});return{stop:()=>{n(),Rs(t)}}}const one=10*Ss;function ine(e,t,n,r){let s=1/0;const{stop:o}=md(n,[Jt.POINTER_DOWN,Jt.KEY_DOWN],l=>{s=l.timeStamp},{capture:!0,once:!0});let i=0;const a=Va({type:"largest-contentful-paint",buffered:!0}).subscribe(l=>{const c=DD(l,u=>u.entryType==="largest-contentful-paint"&&u.startTime<s&&u.startTime<t.timeStamp&&u.startTime<one&&u.size>i);if(c){let u;c.element&&(u=S_(c.element,e.actionNameAttribute));const d=ane(c),f=c.startTime,h=lne(d,f);r({value:f,targetSelector:u,resourceUrl:d,subParts:h}),i=c.size}});return{stop:()=>{o(),a.unsubscribe()}}}function ane(e){return e.url===""?void 0:e.url}function lne(e,t){const n=WM(pE());if(n===void 0)return;const r=e?Mte(e,t):void 0,s=r?Math.max(n,r.requestStart||r.startTime):n,o=Math.min(t,Math.max(s,r?.responseEnd||0));return{loadDelay:s-n,loadTime:o-s,renderDelay:t-o}}function KM(e,t=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:Gt};if(hc("visibility-state")){const s=performance.getEntriesByType("visibility-state").filter(o=>o.name==="hidden").find(o=>o.startTime>=e.relative);if(s)return{timeStamp:s.startTime,stop:Gt}}let n=1/0;const{stop:r}=md(t,[Jt.PAGE_HIDE,Jt.VISIBILITY_CHANGE],s=>{(s.type===Jt.PAGE_HIDE||document.visibilityState==="hidden")&&(n=s.timeStamp,r())},{capture:!0});return{get timeStamp(){return n},stop:r}}function cne(e,t,n,r){const s={},{stop:o}=tne(u=>{n(u.loadEvent),s.navigationTimings=u,r()}),i=KM(t),{stop:a}=Jte(i,u=>{s.firstContentfulPaint=u,r()}),{stop:l}=ine(e,i,window,u=>{s.largestContentfulPaint=u,r()});function c(){o(),a(),l(),i.stop()}return{stop:c,initialViewMetrics:s}}const aw=(e,t)=>e*t,une=(e,t)=>{const n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),s=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom);return n>=s||r>=o?0:aw(s-n,o-r)},GC=e=>{const t=aw(e.previousRect.width,e.previousRect.height),n=aw(e.currentRect.width,e.currentRect.height),r=une(e.previousRect,e.currentRect);return t+n-r};function dne(e,t,n){if(!gne())return{stop:Gt};let r=0,s;n({value:0});const o=mne(),i=Va({type:"layout-shift",buffered:!0}).subscribe(a=>{for(const l of a){if(l.hadRecentInput||l.startTime<t)continue;const{cumulatedValue:c,isMaxValue:u}=o.update(l);if(u){const d=fne(l.sources);s={target:d?.node?new WeakRef(d.node):void 0,time:on(t,l.startTime),previousRect:d?.previousRect,currentRect:d?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(c>r){r=c;const d=s?.target?.deref();n({value:tf(r,4),targetSelector:d&&S_(d,e.actionNameAttribute),time:s?.time,previousRect:s?.previousRect?YC(s.previousRect):void 0,currentRect:s?.currentRect?YC(s.currentRect):void 0,devicePixelRatio:s?.devicePixelRatio})}}});return{stop:()=>{i.unsubscribe()}}}function fne(e){let t;for(const n of e)if(n.node&&Ba(n.node)){const r=GC(n);(!t||GC(t)<r)&&(t=n)}return t}function YC({x:e,y:t,width:n,height:r}){return{x:e,y:t,width:n,height:r}}const hne=5*Nr,pne=Nr;
1504function mne(){let e=0,t,n,r=0;return{update:s=>{const o=t===void 0||s.startTime-n>=pne||s.startTime-t>=hne;let i;return o?(t=n=s.startTime,r=e=s.value,i=!0):(e+=s.value,n=s.startTime,i=s.value>r,i&&(r=s.value)),{cumulatedValue:e,isMaxValue:i}}}}function gne(){return hc("layout-shift")&&"WeakRef"in window}let Nm,GM=0,Yy=1/0,Xy=0;function vne(){"interactionCount"in performance||Nm||(Nm=new window.PerformanceObserver(it(e=>{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(Yy=Math.min(Yy,n.interactionId),Xy=Math.max(Xy,n.interactionId),GM=(Xy-Yy)/7+1)})})),Nm.observe({type:"event",buffered:!0,durationThreshold:0}))}const XC=()=>Nm?GM:window.performance.interactionCount||0,QC=10,_ne=1*Ss,yne=8;function bne(e,t,n){if(!kne())return{getInteractionToNextPaint:()=>{},setViewEnd:Gt,stop:Gt};let r=1/0,s;const{getViewInteractionCount:o,stopViewInteractionCount:i}=Sne(n),a=wne(o),l=Ene(a),c=Va({type:"first-input",buffered:!0}).subscribe(d),u=Va({type:"event",durationThreshold:40,buffered:!0}).subscribe(d);function d(h){for(const m of h)m.interactionId&&m.startTime>=t&&m.startTime<=r&&(a.process(m),l.process(m));l.pruneUntracked();const p=a.estimateP98Interaction();p&&f(p)}function f(h){const p=on(t,h.startTime);if(h.duration!==s?.duration||p!==s.startTime){let m=mte(h.startTime);!m&&h.target&&Ba(h.target)&&(m=S_(h.target,e.actionNameAttribute)),s={duration:h.duration,startTime:p,targetSelector:m}}s.subParts=l.computeSubParts(h,ZC(s.duration))}return{getInteractionToNextPaint:()=>{if(s)return{value:ZC(s.duration),targetSelector:s.targetSelector,time:s.startTime,subParts:s.subParts};if(o())return{value:0}}
1504,setViewEnd:h=>{r=h,i()},stop:()=>{u.unsubscribe(),c.unsubscribe(),l.stop()}}}function wne(e){const t=[];function n(){t.sort((r,s)=>s.duration-r.duration).splice(QC)}return{process(r){const s=t.findIndex(i=>r.interactionId===i.interactionId),o=t[t.length-1];s!==-1?r.duration>t[s].duration&&(t[s]=r,n()):(t.length<QC||r.duration>o.duration)&&(t.push(r),n())},estimateP98Interaction(){return t[Math.min(t.length-1,Math.floor(e()/50))]},isTracked(r){return t.some(s=>s.interactionId===r)}}}function Sne(e){vne();const t=e===Ri.INITIAL_LOAD?0:XC();let n={stopped:!1};function r(){return XC()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function Ene(e){const t=new Map;function n(r,s){r.startTime=Math.min(s.startTime,r.startTime),r.processingStart=Math.min(s.processingStart,r.processingStart),r.processingEnd=Math.max(s.processingEnd,r.processingEnd)}return{process(r){if(r.interactionId===void 0||!r.processingStart||!r.processingEnd)return;const s=r.startTime+r.duration,o=t.get(r.interactionId);if(o){n(o,r);return}for(const[,i]of t.entries())if(Math.abs(s-i.referenceRenderTime)<=yne){n(i,r),t.set(r.interactionId,i);return}t.set(r.interactionId,{startTime:r.startTime,processingStart:r.processingStart,processingEnd:r.processingEnd,referenceRenderTime:s})},pruneUntracked(){for(const[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(r,s){if(!r.processingStart||!r.processingEnd||r.interactionId===void 0)return;const o=t.get(r.interactionId);if(!o)return;const i=Math.max(o.startTime+s,o.processingStart),a=Math.min(o.processingEnd,i);return{inputDelay:on(o.startTime,o.processingStart),processingDuration:on(o.processingStart,a),presentationDelay:on(a,i)}},stop(){t.clear()}}}function kne(){return hc("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function ZC(e){return Math.min(e,_ne)}function xne(e,t,n,r,s,o,i){let a=s===Ri.INITIAL_LOAD,l=!0;const c=[],u=KM(o);function d(){if(!l&&!a&&c.length>0){const h=Math.max(...c);h<u.timeStamp-o.relative&&i(h)}}const{stop:f}=hE(e,t,n,r,h=>{l&&(l=!1,h.hadActivity&&c.push(on(o.timeStamp,h.end)),d())});return{stop:()=>{f(),u.stop()},setLoadEvent:h=>{a&&(a=!1,c.push(h),d())}}}const Tne=Nr;function Cne(e,t,n=Rne()){let r=0,s=0,o=0;const i=n.subscribe(({scrollDepth:a,scrollTop:l,scrollHeight:c})=>{let u=!1;if(a>r&&(r=a,u=!0),c>s){s=c;const d=Ps();o=on(e.relative,d),u=!0}u&&t({maxDepth:Math.min(r,s),maxDepthScrollTop:l,maxScrollHeight:s,maxScrollHeightTime:o})});return{stop:()=>i.unsubscribe()}}function Ane(){const e=Tee(),{height:t}=uE();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}function Rne(e=Tne){return new dt(t=>{function n(){t.notify(Ane())}const r=p_(n,e,{leading:!1,trailing:!0}),s=document.scrollingElement||document.documentElement,o=new ResizeObserver(it(r.throttled));s&&o.observe(s);const i=tn(window,Jt.SCROLL,r.throttled,{passive:!0});return()=>{r.cancel(),o.disconnect(),i.stop()}})}function Ine(e,t,n,r,s,o,i){const a={};let l=!1,c=!1;const{stop:u,setLoadEvent:d}=xne(e,t,n,r,o,i,v=>{l||(a.loadingTime=v,s())}),{stop:f}=Cne(i,v=>{a.scroll=v}),{stop:h}=dne(r,i.relative,v=>{a.cumulativeLayoutShift=v,s()}),{stop:p,getInteractionToNextPaint:m,setViewEnd:g}=bne(r,i.relative,o);return{stop:()=>{u(),h(),f()},stopINPTracking:p,setLoadEvent:d,setViewEnd:v=>{c=!0,g(v)},getCommonViewMetrics:()=>(a.interactionToNextPaint=m(),a),setLoadingTime:v=>{if(c)return;const b=on(i.timeStamp,v??xn());l||u(),l=!0,a.loadingTime=b,s()}}}function One(e){const{stop:t}=tn(window,Jt.PAGE_SHOW,n=>{n.persisted&&e(n)},{capture:!0});return t}function Pne(e,t,n){ene(e.relative,r=>{t.firstContentfulPaint=r,t.largestContentfulPaint={value:r},n()})}const Lne=3e3,Nne=5*Ss,Dne=5*Ss;function Mne(e,t,n,r,s,o,i){const a=new Set;let l=d(Ri.INITIAL_LOAD,aD(),i),c;f();let u;o&&(u=h(s),c=One(p=>{l.end();const m=dp(p.timeStamp);l=d(Ri.BF_CACHE,m,void 0)}));function d(p,m,g){const v=$ne(e,t,n,r,p,m,g);return a.add(v),v.stopObservable.subscribe(()=>{a.delete(v)}),v}function f(){e.subscribe(10,()=>{l=d(Ri.SESSION_RENEWAL,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})}),e.subscribe(9,()=>{l.end({sessionIsActive:!1})})}function h(p){return p.subscribe(({oldLocation:m,newLocation:g})=>{Une(m,g)&&(l.end(),l=d(Ri.ROUTE_CHANGE))})}return{addTiming:(p,m=xn())=>{l.addTiming(p,m)}
1504,setLoadingTime:p=>l.setLoadingTime(p),startView:(p,m)=>{l.end({endClocks:m}),l=d(Ri.ROUTE_CHANGE,m,p)},setViewContext:p=>{l.contextManager.setContext(p)},setViewContextProperty:(p,m)=>{l.contextManager.setContextProperty(p,m)},setViewName:p=>{l.setViewName(p)},getViewContext:()=>l.contextManager.getContext(),stop:()=>{u&&u.unsubscribe(),c&&c(),l.end(),a.forEach(p=>p.stop())}}}function $ne(e,t,n,r,s,o=Kt(),i){const a=zn(),l=new dt,c={};let u=0,d;const f=ah(window.location),h=y_();let p=!0,m=i?.name;const g=i?.service||r.service,v=i?.version||r.version,b=i?.context,_=i?.handlingStack;b&&h.setContext(b);const y={id:a,name:m,startClocks:o,service:g,version:v,context:b,url:i?.url};e.notify(1,y),e.notify(2,y);const{throttled:w,cancel:S}=p_(de,Lne,{leading:!1}),{setLoadEvent:E,setViewEnd:x,stop:T,stopINPTracking:O,getCommonViewMetrics:z,setLoadingTime:P}=Ine(e,t,n,r,N,s,o),{stop:q,initialViewMetrics:X}=s===Ri.INITIAL_LOAD?cne(r,o,E,N):{stop:Gt,initialViewMetrics:{}};s===Ri.BF_CACHE&&Pne(o,X,N);const{stop:J,eventCounts:F}=Qte(e,a,N),Q=pd(de,Nne),W=e.subscribe(11,pe=>{pe===xf.UNLOADING&&de()});de(),h.changeObservable.subscribe(N);function ee(){e.notify(3,{id:a,name:m,context:h.getContext(),startClocks:o,sessionIsActive:p})}function N(){ee(),w()}function de(){S(),ee(),u+=1;const pe=d===void 0?xn():d.timeStamp;e.notify(4,{customTimings:c,documentVersion:u,id:a,name:m,service:g,version:v,context:h.getContext(),loadingType:s,location:f,handlingStack:_,startClocks:o,commonViewMetrics:z(),initialViewMetrics:X,duration:on(o.timeStamp,pe),isActive:d===void 0,sessionIsActive:p,eventCounts:F})}return{get name(){return m},service:g,version:v,contextManager:h,stopObservable:l,end(pe={}){d||(d=pe.endClocks??Kt(),p=pe.sessionIsActive??!0,e.notify(5,{endClocks:d}),e.notify(6,{endClocks:d}),h_(Q),x(d.relative),T(),W.unsubscribe(),de(),Tr(()=>{this.stop()},Dne))},stop(){q(),J(),O(),l.notify()},addTiming(pe,je){if(d)return;const Re=NY(je)?je:on(o.timeStamp,je);c[Fne(pe)]=Re,N()},setLoadingTime:P,setViewName(pe){m=pe,de()}}}function Fne(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&Oe.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function Une(e,t){return e.pathname!==t.pathname||!Bne(t.hash)&&JC(t.hash)!==JC(e.hash)}function Bne(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function JC(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function Vne(e,t,n,r,s,o,i,a,l){return e.subscribe(4,c=>e.notify(12,jne(c,n,i))),t.assemble.register(({startTime:c,eventType:u})=>{const d=a.findView(c);return d?{type:u,service:d.service,version:d.version,context:d.context,view:{id:d.id,name:d.name}}:fc}),t.assembleTelemetry.register(({startTime:c})=>({view:{id:a.findView(c)?.id}})),Mne(e,r,s,n,o,!n.trackViewsManually,l)}function jne(e,t,n){const r=n.getReplayStats(e.id),s=e.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,o={_dd:{document_version:e.documentVersion,replay_stats:r,cls:s?{device_pixel_ratio:s}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually,remote_configuration_id:t.remoteConfigurationId}},date:e.startClocks.timeStamp,type:ze.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:e.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:Ge(e.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:e.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:Ge(e.initialViewMetrics.navigationTimings?.firstByte),dom_complete:Ge(e.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:Ge(e.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:Ge(e.initialViewMetrics.navigationTimings?.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:Ge(e.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:Ge(e.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:Ge(e.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:e.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:Ge(e.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:e.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:Ge(e.initialViewMetrics.navigationTimings?.loadEvent),loading_time:NM(Ge(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:Hne(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:Ge(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:Ge(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:WZ()}};return fi(e.customTimings)||(o.view.custom_timings=sD(e.customTimings,Ge)),{rawRumEvent:o,startClocks:e.startClocks,duration:e.duration,domainContext:{location:e.location,handlingStack:e.handlingStack}}}function Hne({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,largestContentfulPaint:r}){return{cls:e&&{score:e.value,timestamp:Ge(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:Ge(n)},inp:t&&{duration:Ge(t.value),timestamp:Ge(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:Ge(t.subParts.inputDelay),processing_duration:Ge(t.subParts.processingDuration),presentation_delay:Ge(t.subParts.presentationDelay)}:void 0},lcp:r&&{timestamp:Ge(r.value),target_selector:r.targetSelector,resource_url:r.resourceUrl,sub_parts:r.subParts?{load_delay:Ge(r.subParts.loadDelay),load_time:Ge(r.subParts.loadTime),render_delay:Ge(r.subParts.renderDelay)}:void 0}}}function lw(e,t){if(e===t)return!0;
1504if(e===null||typeof e!="object"||t===null||typeof t!="object")return e===t;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((i,a)=>lw(i,t[a]));if(Array.isArray(e)||Array.isArray(t))return!1;const n=e,r=t,s=Object.keys(n),o=Object.keys(r);return s.length!==o.length?!1:s.every(i=>o.includes(i)&&lw(n[i],r[i]))}function YM(e,t,n){const r={},s=n?.replaceKeys??new Set,o=n?.appendKeys??new Set,i=n?.ignoreKeys??new Set;for(const a of Object.keys(e)){if(i.has(a))continue;const l=e[a],c=t[a];if(!s.has(a)&&li(l)&&li(c)){const u=YM(l,c,{replaceKeys:Qy(s,a),appendKeys:Qy(o,a),ignoreKeys:Qy(i,a)});u&&(r[a]=u)}else o.has(a)&&Array.isArray(l)&&Array.isArray(c)?l.length>c.length&&(r[a]=l.slice(c.length)):lw(l,c)||(r[a]=l)}for(const a of Object.keys(t))a in e||(r[a]=null);return Object.keys(r).length>0?r:void 0}function Qy(e,t){const n=new Set;for(const r of e)r.startsWith(`${t}.`)&&n.add(r.slice(t.length+1));return n}function zne(e,t){const n=YM(e,t,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(n)return Wi(n,{type:ze.VIEW_UPDATE,date:e.date,application:e.application,session:e.session,view:{id:e.view.id,url:e.view.url},_dd:{document_version:e._dd.document_version,format_version:e._dd.format_version}})}function qne(e,t){let n,r,s=!1,o=0;const{unsubscribe:i}=e.flushObservable.subscribe(()=>{s=!1,r=n});return{dispatch:a=>{if(a.type!==ze.VIEW){e.add(a);return}if(!t){e.upsert(a,a.view.id);return}const l=a.view.id;if(!a.view.is_active){l===n?.view.id&&(n=void 0,r=void 0,s=!1,o=0),e.upsert(a,l);return}if(l!==n?.view.id){o=0,e.upsert(a,l),n=a,s=!e.isEmpty;return}if(n=a,s){e.upsert(a,l);return}if(o+=1,o>=100){o=0,e.upsert(a,l),s=!e.isEmpty;return}if(r){const c=zne(a,r);c&&(GS("rum",c),e.upsert(c,l))}},stop:i}}function Wne(e,t,n,r,s){const o=[qS(e,"rum")],i=hD(e,"rum");i&&o.push(i);const a=UD({encoder:s(cM.RUM),endpoints:o,reportError:n});r.subscribe(()=>a.forceFlush("session_expire"));const{dispatch:l,stop:c}=qne(a,e.betaEnableViewUpdates);t.subscribe(13,l);const u=a.stop.bind(a);return a.stop=()=>{c(),u()},a}function Kne(e){const t=gd();e.subscribe(13,n=>{t.send("rum",n)})}const Gne=yd;function Yne(e,t,n){const r=_d({expireDelay:Gne});let s;e.subscribe(1,({startClocks:a,url:l})=>{const c=_t.location.href,u=l!==void 0?ud(l,c).href:c;r.add(i({url:u,referrer:s||document.referrer}),a.relative),s=u}),e.subscribe(6,({endClocks:a})=>{r.closeActive(a.relative)});const o=n.subscribe(({newLocation:a})=>{const l=r.find();if(l){const c=Ps();r.closeActive(c),r.add(i({url:a.href,referrer:l.referrer}),c)}});function i({url:a,referrer:l}){return{url:a,referrer:l}}return t.register(({startTime:a,eventType:l})=>{const c=r.find(a);return c?{type:l,view:{url:c.url,referrer:c.referrer}}:fc}),{findUrl:a=>r.find(a),stop:()=>{o.unsubscribe(),r.stop()}}}function Xne(){let e=ah(Zy());return new dt(t=>{const{stop:n}=Qne(s),{stop:r}=Zne(s);function s(){if(e.href===Zy().href)return;const o=ah(Zy());t.notify({newLocation:o,oldLocation:e}),e=o}return()=>{n(),r()}})}function Zy(){return _t.location}function Qne(e){const{stop:t}=ti(eA("pushState"),"pushState",({onPostCall:s})=>{s(e)}),{stop:n}=ti(eA("replaceState"),"replaceState",({onPostCall:s})=>{s(e)}),{stop:r}=tn(window,Jt.POP_STATE,e);return{stop:()=>{t(),n(),r()}}}function Zne(e){return tn(window,Jt.HASH_CHANGE,e)}function eA(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const Jne=yd;function ere(e,t,n){const r=_d({expireDelay:Jne});return e.subscribe(1,({startClocks:s})=>{r.add({},s.relative)}),e.subscribe(6,({endClocks:s})=>{r.closeActive(s.relative)}),t.register(({startTime:s,eventType:o})=>{if(!n.trackFeatureFlagsForEvents.concat([ze.VIEW,ze.ERROR]).includes(o))return vs;const i=r.find(s);return!i||fi(i)?vs:{type:o,feature_flags:i}}),{addFeatureFlagEvaluation:(s,o)=>{const i=r.find();i&&(i[s]=o)}}}const tre=10*Nr;let fu,Gp;function nre(e,t,n){e.metricsEnabled&&(XM(),Gp=!1,t.subscribe(13,()=>{Gp=!0}),n.subscribe(({bytesCount:r,messagesCount:s})=>{Gp&&(Gp=!1,fu.batchCount+=1,nA(fu.batchBytesCount,r),nA(fu.batchMessagesCount,s))}),pd(rre,tre))}function rre(){fu.batchCount!==0&&(hp(g_.CUSTOMER_DATA_METRIC_NAME,fu),XM())}function tA(){return{min:1/0,max:0,sum:0}}function nA(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function XM(){fu={batchCount:0,batchBytesCount:tA(),batchMessagesCount:tA()}}const sre=4e3,ore=yd;function ire(e,t=500){const n=_d({expireDelay:ore,maxEntries:sre});let r;hc("visibility-state")&&performance.getEntriesByType("visibility-state").forEach(a=>{o(a.name==="hidden"?"hidden":"active",a.startTime)}),o(QM(),Ps());const{stop:s}=md(window,[Jt.PAGE_SHOW,Jt.FOCUS,Jt.BLUR,Jt.VISIBILITY_CHANGE,Jt.RESUME,Jt.FREEZE,Jt.PAGE_HIDE],a=>{o(lre(a),a.timeStamp)},{capture:!0});function o(a,l=Ps()){a!==r&&(r=a,n.closeActive(l),n.add({state:r,startTime:l},l))}function i(a,l,c){return n.findAll(l,c).some(u=>u.state===a)}return e.register(({startTime:a,duration:l=0,eventType:c})=>
1504c===ze.VIEW?{type:c,_dd:{page_states:are(n.findAll(a,l),a,t)}}:c===ze.ACTION||c===ze.ERROR?{type:c,view:{in_foreground:i("active",a,0)}}:vs),{wasInPageStateDuringPeriod:i,addPageState:o,stop:()=>{s(),n.stop()}}}function are(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:r,startTime:s})=>({state:r,start:Ge(on(t,s))}))}function lre(e){return e.type===Jt.FREEZE?"frozen":e.type===Jt.PAGE_HIDE?e.persisted?"frozen":"terminated":QM()}function QM(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function cre(e){let t;const n=requestAnimationFrame(it(()=>{t=uE()})),r=Cee().subscribe(s=>{t=s}).unsubscribe;return e.register(({eventType:s})=>({type:s,display:t?{viewport:t}:void 0})),{stop:()=>{r(),n&&cancelAnimationFrame(n)}}}function ure(e,t){const n=k_(e);function r(l){return!t.wasInPageStateDuringPeriod("frozen",l.startClocks.relative,l.duration)}function s(l){r(l)&&e.notify(12,rA(l))}function o(l,c,u,d){const{operationKey:f,context:h,description:p,handlingStack:m}=u||{},g={name:l,type:du.OPERATION_STEP,operationKey:f,failureReason:d,stepType:c,startClocks:Kt(),context:st(h),description:p,handlingStack:m};e.notify(12,rA(g))}function i(l,c={},u=Kt()){const{id:d}=n.start(c.vitalKey??l,u,{name:l,...c});e.notify(16,{id:d,name:l,startClocks:u,...c})}function a(l,c={},u=Kt()){const d=n.stop(c.vitalKey??l,u,c);d&&s({type:du.DURATION,...d})}return{addOperationStepVital:o,addDurationVital:s,startDurationVital:i,stopDurationVital:a}}function rA(e){const{startClocks:t,type:n,name:r,description:s,context:o,handlingStack:i}=e,a={id:(e.type===du.DURATION?e.id:void 0)??zn(),type:n,name:r,description:s,...n===du.DURATION?{duration:Ge(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:a,type:ze.VITAL,context:o},startClocks:t,duration:n===du.DURATION?e.duration:void 0,domainContext:i?{handlingStack:i}:{}}}function dre(e,t,n,r,s){e.register(({eventType:o,startTime:i})=>{const a=n.findTrackedSession(i),l=s.findView(i);if(!a||!l)return fc;let c,u,d;return o===ze.VIEW?(c=r.getReplayStats(l.id)?!0:void 0,u=fE(a,t)===1,d=l.sessionIsActive?void 0:!1):c=r.isRecording()?!0:void 0,{type:o,session:{id:a.id,type:"user",has_replay:c,sampled_for_replay:u,is_active:d}}})}function fre(e){const t=KD()?hre():mre;return new dt(n=>t(e,r=>n.notify(r)))}function hre(){return(e,t)=>tn(_t.cookieStore,Jt.CHANGE,n=>{const r=n.changed.find(s=>s.name===e)||n.deleted.find(s=>s.name===e);r&&t(r.value)}).stop}const pre=Nr;function mre(e,t){let n=Bg(e);const r=pd(()=>{const s=Bg(e);s!==n&&(n=s,t(s))},pre);return()=>{h_(r)}}const gre="datadog-ci-visibility-test-execution-id";function vre(e,t=fre(gre)){let n=kf("datadog-ci-visibility-test-execution-id")||_re();const r=t.subscribe(s=>{n=s});return e.register(({eventType:s})=>typeof n!="string"?vs:{type:s,session:{type:"ci_test"},ci_test:{test_execution_id:n}}),{stop:()=>{r.unsubscribe()}}}function _re(){const e=window.Cypress;if(e)try{return e.env("traceId")}catch{Oe.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.");return}}function yre(e,t){const n=Va({type:hc("long-animation-frame")?"long-animation-frame":"longtask",buffered:!0}).subscribe(r=>{for(const s of r){if(!t.trackLongTasks)break;const o=dp(s.startTime),i=bre(s,o);e.notify(12,{rawRumEvent:i,startClocks:o,duration:s.duration,domainContext:{performanceEntry:s}})}});return{stop:()=>n.unsubscribe()}}function bre(e,t){const n=zn(),r=Ge(e.duration),s={date:t.timeStamp,type:ze.LONG_TASK,_dd:{discarded:!1}};if(e.entryType==="longtask")return{...s,long_task:{id:n,entry_type:RC.LONG_TASK,duration:r}};const o=VD(e.scripts.map(i=>i.sourceURL).filter(i=>!!i));return{...s,_dd:{discarded:!1,debug_ids:o},long_task:{id:n,entry_type:RC.LONG_ANIMATION_FRAME,duration:r,blocking_duration:Ge(e.blockingDuration),first_ui_event_timestamp:Ge(e.firstUIEventTimestamp),render_start:Ge(e.renderStart),style_and_layout_start:Ge(e.styleAndLayoutStart),start_time:Ge(e.startTime),scripts:e.scripts.map(i=>({duration:Ge(i.duration),pause_duration:Ge(i.pauseDuration),forced_style_and_layout_duration:Ge(i.forcedStyleAndLayoutDuration),start_time:Ge(i.startTime),execution_start:Ge(i.executionStart),source_url:i.sourceURL,source_function_name:i.sourceFunctionName,source_char_position:i.sourceCharPosition,invoker:i.invoker,invoker_type:i.invokerType,window_attribution:i.windowAttribution}))}}}function wre(e){e.register(({eventType:t})=>VZ()?{type:t,session:{type:"synthetics"},synthetics:{...lM(),injected:aM()}}:vs)}function Sre(e,t,n){const r=US(e),s=n(r);return QS(t).forEach(([o,i])=>cw(e,r,o.split(/\.|(?=\[\])/),i)),s}function cw(e,t,n,r){const[s,...o]=n;if(s==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((i,a)=>cw(i,t[a],o,r));return}
1504if(!(!sA(e)||!sA(t))){if(o.length>0)return cw(e[s],t[s],o,r);Ere(e,s,t[s],r)}}function Ere(e,t,n,r){if(e[t]===n)return;const s=ld(n);s===r?e[t]=st(n):r==="object"&&(s==="undefined"||s==="null")&&(e[t]={})}function sA(e){return ld(e)==="object"}const Tc={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},kre={[ze.VIEW]:{...Tc,"view.performance.lcp.resource_url":"string"},[ze.ERROR]:{...Tc,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"object"},[ze.RESOURCE]:{...Tc,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object"},[ze.ACTION]:{...Tc,"action.target.name":"string"},[ze.LONG_TASK]:{...Tc,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"object"},[ze.VITAL]:Tc};function xre(e,t,n,r,s){const o={[ze.ERROR]:Fy(ze.ERROR,r,s),[ze.ACTION]:Fy(ze.ACTION,r,s),[ze.VITAL]:Fy(ze.VITAL,r,s)};t.subscribe(12,({startClocks:i,duration:a,rawRumEvent:l,domainContext:c})=>{const u=n.trigger({eventType:l.type,rawRumEvent:l,domainContext:c,startTime:i.relative,duration:a});if(u===fc)return;const d=Wi(u,l,{ddtags:kD(e).join(",")});Tre(d,e.beforeSend,c,o)&&(fi(d.context)&&delete d.context,t.notify(13,d))})}function Tre(e,t,n,r){if(t){const s=Sre(e,kre[e.type],o=>t(o,n));if(s===!1&&e.type!==ze.VIEW)return!1;s===!1&&Oe.warn("Can't dismiss view events using beforeSend!")}return!r[e.type]?.isLimitReached()}function Cre(e){e.register(({eventType:t})=>({type:t,connectivity:xD()}))}function Are(e,t,n){e.register(({eventType:r})=>{const s=t.source;return{type:r,_dd:{format_version:2,drift:DY(),configuration:{session_sample_rate:tf(t.sessionSampleRate,3),session_replay_sample_rate:tf(t.sessionReplaySampleRate,3),profiling_sample_rate:tf(t.profilingSampleRate,3),trace_sample_rate:tf(t.traceSampleRate,3)},browser_sdk_version:Yi()?"7.5.0":void 0,sdk_name:n},application:{id:t.applicationId},date:xn(),source:s}})}const Rre=[ze.ACTION,ze.ERROR,ze.LONG_TASK,ze.RESOURCE,ze.VITAL];function Ire(e){return{addEvent:(t,n,r,s)=>{Rre.includes(n.type)&&e.notify(12,{startClocks:dp(t),rawRumEvent:n,domainContext:r,duration:s})}}}function Ore(e){e.register(({domainContext:t,rawRumEvent:n})=>{const r=Pre(t,n);if(!r)return vs;const s=fQ(r);return s?{type:n.type,service:s.service,version:s.version}:vs})}function Pre(e,t){if(t.type==="long_task"&&t.long_task.entry_type==="long-animation-frame")return t.long_task.scripts[0]?.source_url;let n;return"handlingStack"in e&&(n=e.handlingStack),t.type==="error"&&t.error.stack&&(n=t.error.stack),dc({stack:n}).stack[0]?.url}function Lre(e,t,n,r,s,o,i,a,l,c){const u=[],d=new BJ;d.subscribe(13,m=>GS("rum",m)),t.expireObservable.subscribe(()=>d.notify(9)),t.renewObservable.subscribe(()=>d.notify(10));const f=m=>{d.notify(14,{error:{message:m,source:fp.AGENT,startClocks:Kt()}}),Uu("Error reported to customer",{"error.message":m})};if(Yi()){Kne(d);const m=$D().subscribe(g=>{d.notify(11,g.reason)});u.push(()=>m.unsubscribe())}else{const m=Wne(e,d,f,t.expireObservable,o),g=m.prepareUrgentFlushObservable.subscribe(v=>{d.notify(11,v)});u.push(()=>g.unsubscribe()),u.push(()=>m.stop()),nre(a,d,m.flushObservable)}const{stop:h,...p}=Nre(d,l,e,t,n,s,i,c,f);return u.push(h),i.unbuffer(),u.push(()=>r.stop()),{...p,lifeCycle:d,sessionManager:t,stopSession:()=>t.expire(),telemetry:a,stop:()=>{u.forEach(m=>m())},hooks:l}}function Nre(e,t,n,r,s,o,i,a,l){const c=[],u=FJ(),d=Xne(),{observable:f,stop:h}=Ree();c.push(h);const{assemble:p}=t;Are(p,n,a);const m=ire(p);c.push(()=>m.stop());const g=jJ(e);c.push(()=>g.stop());const v=Yne(e,p,d);c.push(()=>v.stop());const b=ere(e,p,n);dre(p,n,r,s,g),Cre(p),PZ(p);const _=DZ(p,n,"rum"),y=MZ(p,n,r,"rum"),w=OZ(p,n,"rum"),S=Ste(e,t,u,f,n);c.push(S.stop);const E=Ire(e),x=cre(p);c.push(x.stop);const T=vre(p);c.push(T.stop),wre(p),xre(n,e,p,l);const{addTiming:O,setLoadingTime:z,startView:P,setViewName:q,setViewContext:X,setViewContextProperty:J,getViewContext:F,stop:Q}=Vne(e,t,n,u,f,d,s,g,o);
1504Ore(p),c.push(Q);const W=Ute(e,n);c.push(W.stop);const{stop:ee}=yre(e,n);c.push(ee);const{addError:N}=xte(e,i);zee(e,n,r,y,w,i);const de=ure(e,m),pe=Iee(n.applicationId,r,g,S.actionContexts,v);return{addAction:S.addAction,startAction:S.startAction,stopAction:S.stopAction,startResource:W.startResource,stopResource:W.stopResource,addEvent:E.addEvent,addError:N,addTiming:O,setLoadingTime:z,addFeatureFlagEvaluation:b.addFeatureFlagEvaluation,startView:P,setViewContext:X,setViewContextProperty:J,getViewContext:F,setViewName:q,viewHistory:g,sessionManager:r,stopSession:()=>r.expire(),getInternalContext:pe.get,startDurationVital:de.startDurationVital,stopDurationVital:de.stopDurationVital,addDurationVital:de.addDurationVital,addOperationStepVital:de.addOperationStepVital,globalContext:_,userContext:y,accountContext:w,stop:()=>c.forEach(je=>je())}}function ZM(e,t,n){if(e)for(const r of e){const s=r[t];s&&s(n)}}function Dre(e,t){e.register(()=>t.isGranted()?vs:fc)}function Mre({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},n,r){const s=new zS(500,w=>{Uu("preStartRum buffer data lost",{count:w})}),o=oM();Hy(o,Gn.globalContext,s);const i=iM();Hy(i,Gn.userContext,s);const a=sM();Hy(a,Gn.accountContext,s);let l,c,u,d,f,h;const p=$J(),m=n.observable.subscribe(b),g={};let v=!1;function b(){if(v||!u||!d||!f||!h)return;m.unsubscribe();let w;if(d.trackViewsManually){if(!l)return;w=l.options}const S=d.trackViewsManually?l?.callback:void 0,E=r(d,f,c,w,h,p);v=!0,s.subscribe(x=>{x!==S&&x(E)}),s.unbuffer()}function _(w,S){const E=Yi();if(E&&(w=$re(w)),u=w,d){jD("DD_RUM",w);return}const x=CJ(w,S);x&&(x.compressIntakeRequests&&!E&&t&&(c=t(x,"Datadog RUM",Gt),!c)||(d=x,n.tryToInit(x.trackingConsent),n.onGrantedOnce(()=>{const{assembleTelemetry:T}=p;if(Dre(T,n),h=sQ(eQ.RUM,x,T),cd){Oe.warn("The RUM SDK is not supported in a web or service worker environment.");return}(Yi()?sZ():rZ(x,n)).then(O=>{O&&(f=O,KZ(T,f,{application:{id:x.applicationId}}),cQ(MJ(w)),b())}).catch(nr)})))}return{init(w,S,E){if(!w){Oe.error("Missing configuration");return}if(oX(w.enableExperimentalFeatures),xX(w.allowUntrustedEvents),u=w,!(e&&aM()))if(ZM(w.plugins,"onInit",{initConfiguration:w,publicApi:S}),pp(w)){const x={user:i,context:o};if(w.remoteConfigurationId||w.remoteConfiguration?.sync)wJ(w,x).then(T=>{T&&_(T,E)}).catch(nr);else{const T=TJ(w,x);T&&_(T,E)}}else _(w,E)},get initConfiguration(){return u},getInternalContext:Gt,stopSession:Gt,addTiming(w,S=xn()){s.notify(E=>E.addTiming(w,S))},setLoadingTime:(w=>{s.notify(S=>S.setLoadingTime(w))}),startView(w,S=Kt()){const E=x=>{x.startView(w,S)};s.notify(E),l||(l={options:w,callback:E},b())},setViewName(w){s.notify(S=>S.setViewName(w))},setViewContext(w){s.notify(S=>S.setViewContext(w))},setViewContextProperty(w,S){s.notify(E=>E.setViewContextProperty(w,S))},getViewContext:()=>g,globalContext:o,userContext:i,accountContext:a,addAction(w){s.notify(S=>S.addAction(w))},startAction(w,S){const E=Kt();s.notify(x=>x.startAction(w,S,E))},stopAction(w,S){const E=Kt();s.notify(x=>x.stopAction(w,S,E))},startResource(w,S){const E=Kt();s.notify(x=>x.startResource(w,S,E))},stopResource(w,S){const E=Kt();s.notify(x=>x.stopResource(w,S,E))},addError(w){s.notify(S=>S.addError(w))},addFeatureFlagEvaluation(w,S){s.notify(E=>E.addFeatureFlagEvaluation(w,S))},startDurationVital(w,S){const E=Kt();s.notify(x=>x.startDurationVital(w,S,E))},stopDurationVital(w,S){const E=Kt();s.notify(x=>x.stopDurationVital(w,S,E))},addDurationVital(w){s.notify(S=>S.addDurationVital(w))},addOperationStepVital:(w,S,E,x)=>{s.notify(T=>T.addOperationStepVital(st(w),S,st(E),st(x)))}}}function $re(e){return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:e.defaultPrivacyLevel??gd()?.getPrivacyLevel()}}function Fre(e,t,n={}){const r=jY(),s=qZ();let o=Mre(n,r,(f,h,p,m,g,v)=>{const b=p&&n.createDeflateEncoder?y=>n.createDeflateEncoder(p,y):FD,_=Lre(f,h,e,t,m,b,s.observable,g,v,n.sdkName);return e.onRumStart(_.lifeCycle,f,h,_.viewHistory,p,_.telemetry),t.onRumStart(_.lifeCycle,_.hooks,f,h,_.viewHistory,b),o=Ure(o,_),ZM(f.plugins,"onRumStart",{addEvent:_.addEvent,addError:_.addError}),_});const i=()=>o,a=f=>{const h=Ei("view");Ks(()=>{const p=typeof f=="object"?f:{name:f};o.startView({...p,handlingStack:h}),rn({feature:"start-view"})})},l=(f,h)=>{const p=Ei("vital");Ks(()=>{rn({feature:"add-operation-step-vital",action_type:"start"}),o.addOperationStepVital(f,"start",{...h,handlingStack:p})})},c=it((f,h)=>{rn({feature:"add-operation-step-vital",action_type:"succeed"}),o.addOperationStepVital(f,"end",h)}),u=it((f,h,p)=>{rn({feature:"add-operation-step-vital",action_type:"fail"}),o.addOperationStepVital(f,"end",p,h)}),d=wQ({init:f=>{const h=new Error().stack;Ks(()=>o.init(f,d,h))},setTrackingConsent:it(f=>{r.update(f),rn({feature:"set-tracking-consent",tracking_consent:f})}
1504),setViewName:it(f=>{o.setViewName(f),rn({feature:"set-view-name"})}),setViewContext:it(f=>{o.setViewContext(f),rn({feature:"set-view-context"})}),setViewContextProperty:it((f,h)=>{o.setViewContextProperty(f,h),rn({feature:"set-view-context-property"})}),getViewContext:it(()=>(rn({feature:"set-view-context-property"}),o.getViewContext())),getInternalContext:it(f=>o.getInternalContext(f)),getInitConfiguration:it(()=>US(o.initConfiguration)),addAction:(f,h)=>{const p=Ei("action");Ks(()=>{o.addAction({name:st(f),context:st(h),startClocks:Kt(),type:iE.CUSTOM,handlingStack:p}),rn({feature:"add-action"})})},startAction:it((f,h)=>{rn({feature:"start-action"}),o.startAction(st(f),{type:st(h?.type),context:st(h?.context),actionKey:h?.actionKey})}),stopAction:it((f,h)=>{rn({feature:"stop-action"}),o.stopAction(st(f),{type:st(h?.type),context:st(h?.context),actionKey:h?.actionKey})}),startResource:it((f,h)=>{rn({feature:"start-resource"}),o.startResource(st(f),{type:st(h?.type),method:st(h?.method),context:st(h?.context),resourceKey:h?.resourceKey})}),stopResource:it((f,h)=>{rn({feature:"stop-resource"}),o.stopResource(st(f),{type:st(h?.type),statusCode:h?.statusCode,size:h?.size,context:st(h?.context),resourceKey:h?.resourceKey})}),addError:(f,h)=>{const p=Ei("error");Ks(()=>{o.addError({error:f,handlingStack:p,context:st(h),startClocks:Kt()}),rn({feature:"add-error"})})},addTiming:it((f,h)=>{o.addTiming(st(f),h)}),setViewLoadingTime:it(()=>{const f=xn();o.setLoadingTime(f),rn({feature:"addViewLoadingTime"})}),setGlobalContext:Dr(i,Gn.globalContext,Mr.setContext,"set-global-context"),getGlobalContext:Dr(i,Gn.globalContext,Mr.getContext,"get-global-context"),setGlobalContextProperty:Dr(i,Gn.globalContext,Mr.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:Dr(i,Gn.globalContext,Mr.removeContextProperty,"remove-global-context-property"),clearGlobalContext:Dr(i,Gn.globalContext,Mr.clearContext,"clear-global-context"),setUser:Dr(i,Gn.userContext,Mr.setContext,"set-user"),getUser:Dr(i,Gn.userContext,Mr.getContext,"get-user"),setUserProperty:Dr(i,Gn.userContext,Mr.setContextProperty,"set-user-property"),removeUserProperty:Dr(i,Gn.userContext,Mr.removeContextProperty,"remove-user-property"),clearUser:Dr(i,Gn.userContext,Mr.clearContext,"clear-user"),setAccount:Dr(i,Gn.accountContext,Mr.setContext,"set-account"),getAccount:Dr(i,Gn.accountContext,Mr.getContext,"get-account"),setAccountProperty:Dr(i,Gn.accountContext,Mr.setContextProperty,"set-account-property"),removeAccountProperty:Dr(i,Gn.accountContext,Mr.removeContextProperty,"remove-account-property"),clearAccount:Dr(i,Gn.accountContext,Mr.clearContext,"clear-account"),startView:a,stopSession:it(()=>{o.stopSession(),rn({feature:"stop-session"})}),addFeatureFlagEvaluation:it((f,h)=>{o.addFeatureFlagEvaluation(st(f),st(h)),rn({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:it(()=>e.getSessionReplayLink()),startSessionReplayRecording:it(f=>{e.start(f),rn({feature:"start-session-replay-recording",force:f?.force})}),stopSessionReplayRecording:it(()=>e.stop()),addDurationVital:(f,h)=>{const p=Ei("vital");Ks(()=>{rn({feature:"add-duration-vital"}),o.addDurationVital({id:zn(),name:st(f),type:du.DURATION,startClocks:lD(h.startTime),duration:h.duration,context:st(h?.context),description:st(h?.description),handlingStack:p})})},startDurationVital:(f,h)=>{const p=Ei("vital");Ks(()=>{rn({feature:"start-duration-vital"}),o.startDurationVital(st(f),{vitalKey:h?.vitalKey,context:st(h?.context),description:st(h?.description),handlingStack:p})})},stopDurationVital:it((f,h)=>{rn({feature:"stop-duration-vital"}),o.stopDurationVital(st(f),{vitalKey:h?.vitalKey,context:st(h?.context),description:st(h?.description)})}),startOperation:l,succeedOperation:c,failOperation:u,startFeatureOperation:l,succeedFeatureOperation:c,failFeatureOperation:u,DEFAULT_TRACKED_RESOURCE_HEADERS:vM});return d}function Ure(e,t){return{...e,init:n=>{jD("DD_RUM",n)},getInternalContext:t.getInternalContext,stopSession:t.stopSession,getViewContext:t.getViewContext,globalContext:t.globalContext,userContext:t.userContext,accountContext:t.accountContext}}function Bre(e,{session:t,viewContext:n,errorType:r}){const s=t?t.id:"no-session-id",o=[];return r!==void 0&&o.push(`error-type=${r}`),n&&(o.push(`seed=${n.id}`),o.push(`from=${n.startClocks.timeStamp}`)),`${Vre(e)}${`/rum/replay/sessions/${s}`}?${o.join("&")}`}function Vre(e){const t=e.site,n=e.subdomain||jre(e);return`https://${n?`${n}.`:""}${t}`}function jre(e){switch(e.site){case f_:case GY:return"app";case fD:return"dd";default:return}}function Hre(e,t,n,r){const s=t.findTrackedSession(),o=zre(e,s,r);return Bre(e,{viewContext:n.findView(),errorType:o,session:s})}function zre(e,t,n){if(!t)return"rum-not-tracked";if(fE(t,e)===dE.OFF)return"incorrect-session-plan";if(!n)return"replay-not-started"}function qre(e,t){if(!e.metricsEnabled)return{stop:Gt};let n,r,s;const{unsubscribe:o}=t.subscribe(i=>
1504{switch(i.type){case"start":n={forced:i.forced,timestamp:xn()},r=void 0,s=void 0;break;case"document-ready":n&&(r=on(n.timestamp,xn()));break;case"recorder-settled":n&&(s=on(n.timestamp,xn()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":o(),n&&hp(g_.RECORDER_INIT_METRICS_TELEMETRY_NAME,{metrics:Wre(n.forced,s,on(n.timestamp,xn()),i.type,r)});break}});return{stop:o}}function Wre(e,t,n,r,s){return{forced:e,loadRecorderModuleDuration:t,recorderInitDuration:n,result:r,waitForDocReadyDuration:s}}async function Kre(){try{return await Gre()}catch(e){oE({error:e,source:"Recorder",scriptType:"module"})}}async function Gre(){return(await ce(async()=>{const{startRecording:e}=await import("./D9KmYFQ5.js");return{startRecording:e}},[],import.meta.url)).startRecording}function Yre(e,t,n,r,s,o){let i=0,a;t.subscribe(PC.SESSION_EXPIRED,()=>{(i===2||i===3)&&(d(),i=1)}),t.subscribe(PC.SESSION_RENEWED,()=>{i===1&&u()});const l=new dt;qre(o,l);const c=async f=>{l.notify({type:"start",forced:f});const[h]=await Promise.all([oA(l,{type:"recorder-settled"},Kre()),oA(l,{type:"document-ready"},uZ("interactive"))]);if(i!==2){l.notify({type:"aborted"});return}if(!h){i=0,l.notify({type:"recorder-load-failed"});return}const p=s();if(!p){i=0,l.notify({type:"deflate-encoder-load-failed"});return}({stop:a}=h(t,e,n,r,p,o)),i=3,l.notify({type:"succeeded"})};function u(f){const h=n.findTrackedSession(),p=h?fE(h,e):void 0;if(!Xre(p,f)){i=1;return}if(Qre(i))return;i=2;const m=Zre(p,f)||!1;c(m).catch(nr),m&&n.updateSessionState({forcedReplay:"1"})}function d(){i===3&&a?.(),i=0}return{start:u,stop:d,getSessionReplayLink(){return Hre(e,n,r,i!==0)},isRecording:()=>i===3}}function Xre(e,t){return e!==void 0&&(e!==dE.OFF||t?.force)}function Qre(e){return e===2||e===3}function Zre(e,t){return t&&t.force&&e===dE.OFF}async function oA(e,t,n){try{return await n}finally{e.notify(t)}}function Jre(){let e=0;return{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:Gt},shouldStartImmediately(t){return e===1||e===0&&!t.startSessionReplayRecordingManually}}}function ese(){if(Yi()&&!XS(YS.RECORDS))return{start:Gt,stop:Gt,getReplayStats:()=>{},onRumStart:Gt,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:e,shouldStartImmediately:t}=Jre();return{start:r=>e.start(r),stop:()=>e.stop(),getSessionReplayLink:()=>e.getSessionReplayLink(),onRumStart:n,isRecording:()=>AC()===3&&e.isRecording(),getReplayStats:r=>AC()===3?eJ(r):void 0};function n(r,s,o,i,a,l){let c;function u(){return c||(a??=dM(s,"Datadog Session Replay",()=>e.stop()),a&&(c=uM(a,cM.REPLAY))),c}e=Yre(s,r,o,i,u,l),t(s)&&e.start()}}function tse(){return _t.Profiler!==void 0}function nse(e){let t={status:"starting"};return e.assemble.register(({eventType:n})=>n!==ze.VIEW&&n!==ze.LONG_TASK&&n!==ze.ACTION&&n!==ze.VITAL?vs:{type:n,_dd:{profiling:t}}),{get:()=>t,set:n=>{t=n}}}async function rse(){try{return await sse()}catch(e){oE({error:e,source:"Profiler",scriptType:"module"})}}async function sse(){return(await ce(async()=>{const{createRumProfiler:e}=await import("./CSi1Fws3.js");return{createRumProfiler:e}},[],import.meta.url)).createRumProfiler}function ose(){let e;function t(n,r,s,o,i,a){const l=o.findTrackedSession();if(!l||!ise(s,l))return;const c=nse(r);if(!tse()){c.set({status:"error",error_reason:"not-supported-by-browser"});return}rse().then(u=>{if(!u){c.set({status:"error",error_reason:"failed-to-lazy-load"});return}e=u(s,n,o,c,a,i,void 0),e.start()}).catch(nr)}return{onRumStart:t,stop:()=>{e?.stop()}}}function ise(e,t){return Yi()?XS(YS.PROFILES):v_(t.id,eE(e.sessionSampleRate,e.profilingSampleRate))}const ds=Fre(ese(),ose(),{startDeflateWorker:dM,createDeflateEncoder:uM,sdkName:"rum"});SQ(_t,"DD_RUM",ds);const ase="(.*)*",lse="([^/]*)*",cse=/\\(.)|:([\w.]+)(\(\.\*\)\*|\(\[\^\/\]\*\)\*|\?|\(\))?/g;function use(e,t){t.currentRoute.value.matched.length>0&&e.startView(iA(t.currentRoute.value.matched)),t.afterEach((n,r,s)=>{s||r.matched.length>0&&n.path===r.path&&n.hash===r.hash||e.startView(iA(n.matched))})}function iA(e){const t=dse(e);return t&&fse(t)}function dse(e){for(let t=e.length-1;t>=0;t--){const n=e[t].path;if(n)return n}return""}function fse(e){return e.replace(cse,(t,n,r,s)=>
1504n!==void 0?n:r?s===ase||s===lse?`[...${r}]`:s==="?"?`[[${r}]]`:`[${r}]`:"")}function JM(e,t,n,r){const s=Ei("nuxt error"),o=Kt();Ks(()=>{e({error:t,handlingStack:s,componentStack:mse(n,r),startClocks:o,context:{...typeof t=="object"&&t!==null?t.dd_context:void 0,framework:"nuxt"}})})}function hse(e,t){const n=pse(t),r=e.vueApp.config.errorHandler;e.vueApp.config.errorHandler=(s,o,i)=>{n(s,o,i),r?.(s,o,i)},e.hook("app:error",s=>{n(s,null,"")})}function pse(e){const t=new WeakSet;return(n,r,s)=>{if(n!==null&&typeof n=="object"){if(t.has(n))return;t.add(n)}e(n,r,s)}}function mse(e,t){const n=[];t&&n.push(t);let r=e?.$??null;for(;r;){const s=r.type&&("name"in r.type?r.type.name:"__name"in r.type?r.type.__name:void 0);s&&n.push(`at <${s}>`),r=r.parent}return n.length>0?n.join(` 1505`):void 0}let uw;const gse=[],e2=[];function vse(e){return{name:"nuxt",onInit({publicApi:t,initConfiguration:n}){n.trackViewsManually=!0,use(t,e.router),e.nuxtApp&&hse(e.nuxtApp,(r,s,o)=>{t2(i=>{JM(i,r,s,o)})});for(const r of gse)r(t)},onRumStart({addError:t}){if(uw=t,t)for(const n of e2)n(t)},getConfigurationTelemetry(){return{router:!!e.router,nuxt:!0}}}}function t2(e){uw?e(uw):e2.push(e)}function _se(e,t,n){t2(r=>{JM(r,e,t,n)})}const yse=nt({name:"datadog-rum",enforce:"pre",setup(){const e=Or(),{ddApplicationId:t,ddApplicationToken:n,ddSite:r,ddVersion:s,env:o}=e.public;o!=="local"&&ds.init({applicationId:t,clientToken:n,site:r,service:"payment-portal",version:`${o}-${s}`,env:e.public.env,sessionSampleRate:25,sessionReplaySampleRate:0,profilingSampleRate:100,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",allowedTracingUrls:[i=>i.includes(".trytoku.com")&&!i.includes("hubspot.com"),i=>i.includes(".stgtoku.com")&&!i.includes("hubspot.com"),i=>i.includes(".devtoku.com")&&!i.includes("hubspot.com")],plugins:[vse({router:Hn(),nuxtApp:De()})]})}}),bse=nt({name:"nuxt:payload",setup(e){const t=new Set;Hn().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await Tx(n.path);if(s){for(const o of t)delete e.static.data[o];for(const o in s.data)o in e.static.data||t.add(o),e.static.data[o]=s.data[o]}}),c_(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Tx(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})})})}}),wse=nt(()=>{const e=Hn();c_(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Sse=nt({name:"nuxt:chunk-reload",setup(e){const t=Hn(),n=Or(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=sS(n.app.baseURL,o.fullPath);oY({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Ese=nt({name:"pinia",setup(e){const t=LV();return e.vueApp.use(t),rp(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),kse=_i(()=>ce(()=>Promise.resolve().then(()=>Yye),void 0,import.meta.url).then(e=>e.default||e.default||e)),xse=[["Icon",kse]],Tse=nt({name:"nuxt:global-components",setup(e){for(const[t,n]of xse)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),wa={login:_i(()=>ce(()=>import("./i176YjBI.js"),__vite__mapDeps([274,275]),import.meta.url).then(e=>e.default||e)),"customer-portal":_i(()=>ce(()=>import("./DRz4dCyC.js"),__vite__mapDeps([276,277,148,278]),import.meta.url).then(e=>e.default||e)),default:_i(()=>ce(()=>import("./CBbHNEya.js"),__vite__mapDeps([279,277,280]),import.meta.url).then(e=>e.default||e)),"pre-checkout":_i(()=>ce(()=>import("./Dech1sMc.js"),__vite__mapDeps([281,192,277,282]),import.meta.url).then(e=>e.default||e)),"bank-button-demo":_i(()=>ce(()=>import("./X1ffOA1X.js"),__vite__mapDeps([283,284]),import.meta.url).then(e=>e.default||e)),base:_i(()=>ce(()=>import("./fKd9s4wT.js"),__vite__mapDeps([285,286,287]),import.meta.url).then(e=>e.default||e)),checkout:_i(()=>ce(()=>import("./BVFjVa_c.js"),__vite__mapDeps([288,27,28,29,30,31,32,12,33,34,35,36,37,38,39,40,41,286,287,76,82,55]),import.meta.url).then(e=>e.default||e))},Cse=nt({name:"nuxt:prefetch",setup(e){const t=Hn();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof wa[r]=="function"&&await wa[r]()})}),e.hooks.hook("link:prefetch",n=>{if(od(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let o=fS(r.meta.middleware);o=o.filter(i=>typeof i=="string");for(const i of o)typeof Q0[i]=="function"&&Q0[i]();typeof s=="string"&&s in wa&&sY(wa[s])})}});var kt;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return e.objectValues(i)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},e.find=(s,o)=>{for(const i of s)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(kt||(kt={}));var dw;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(dw||(dw={}));const _e=kt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ki=e=>{switch(typeof e){case"undefined":return _e.undefined;case"string":return _e.string;case"number":return isNaN(e)?_e.nan:_e.number;case"boolean":return _e.boolean;case"function":return _e.function;case"bigint":return _e.bigint;case"symbol":return _e.symbol;case"object":return Array.isArray(e)?_e.array:e===null?_e.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?_e.promise:typeof Map<"u"&&e instanceof Map?_e.map:typeof Set<"u"&&e instanceof Set?_e.set:typeof Date<"u"&&e instanceof Date?_e.date:_e.object;default:return _e.unknown}}
vendor: 57,441 bytes, line 1505
1505,se=kt.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"]),Ase=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ms extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}static assert(t){if(!(t instanceof Ms))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,kt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ms.create=e=>new Ms(e);const Yl=(e,t)=>{let n;switch(e.code){case se.invalid_type:e.received===_e.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case se.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,kt.jsonStringifyReplacer)}`;break;case se.unrecognized_keys:n=`Unrecognized key(s) in object: ${kt.joinValues(e.keys,", ")}`;break;case se.invalid_union:n="Invalid input";break;case se.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${kt.joinValues(e.options)}`;break;case se.invalid_enum_value:n=`Invalid enum value. Expected ${kt.joinValues(e.options)}, received '${e.received}'`;break;case se.invalid_arguments:n="Invalid function arguments";break;case se.invalid_return_type:n="Invalid function return type";break;case se.invalid_date:n="Invalid date";break;case se.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:kt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case se.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case se.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case se.custom:n="Invalid input";break;case se.invalid_intersection_types:n="Intersection results could not be merged";break;case se.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case se.not_finite:n="Number must be finite";break;default:n=t.defaultError,kt.assertNever(e)}return{message:n}};let n2=Yl;function Rse(e){n2=e}function qg(){return n2}const Wg=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,o=[...n,...s.path||[]],i={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...s,path:o,message:a}},Ise=[];function me(e,t){const n=qg(),r=Wg({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Yl?void 0:Yl].filter(s=>!!s)});e.common.issues.push(r)}class Rr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return Ve;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const o=await s.key,i=await s.value;r.push({key:o,value:i})}return Rr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return Ve;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:t.value,value:r}}}const Ve=Object.freeze({status:"aborted"}),Kc=e=>({status:"dirty",value:e}),Qr=e=>({status:"valid",value:e}),fw=e=>e.status==="aborted",hw=e=>e.status==="dirty",Xl=e=>e.status==="valid",fh=e=>typeof Promise<"u"&&e instanceof Promise;function Kg(e,t,n,r){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 r2(e,t,n,r,s){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,n),n}var Te;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Te||(Te={}));var nf,rf;class ci{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}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 aA=(e,t)=>{if(Xl(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 n=new Ms(e.common.issues);return this._error=n,this._error}}};function Xe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{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??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:s}}class tt{get description(){return this._def.description}_getType(t){return ki(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ki(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Rr,ctx:{common:t.parent.common,data:t.data,parsedType:ki(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(fh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n?.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ki(t)},o=this._parseSync({data:t,path:s.path,parent:s});return aA(s,o)}"~validate"(t){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ki(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:s});return Xl(o)?{value:o.value}:{issues:s.common.issues}}catch(o){!((r=(n=o?.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(o=>Xl(o)?{value:o.value}:{issues:s.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ki(t)},s=this._parse({data:t,path:r.path,parent:r}),o=await(fh(s)?s:Promise.resolve(s));return aA(r,o)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=t(s),a=()=>o.addIssue({code:se.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new Io({schema:this,typeName:Be.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}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),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ni.create(this,this._def)}nullable(){return qa.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xo.create(this)}promise(){return Vu.create(this,this._def)}or(t){return gh.create([this,t],this._def)}and(t){return vh.create(this,t,this._def)}transform(t){return new Io({...Xe(this._def),schema:this,typeName:Be.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Sh({...Xe(this._def),innerType:this,defaultValue:n,typeName:Be.ZodDefault})}brand(){return new mE({typeName:Be.ZodBranded,type:this,...Xe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Eh({...Xe(this._def),innerType:this,catchValue:n,typeName:Be.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return mp.create(this,t)}readonly(){return kh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ose=/^c[^\s-]{8,}$/i,Pse=/^[0-9a-z]+$/,Lse=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Nse=/^[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,Dse=/^[a-z0-9_-]{21}$/i,Mse=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$se=/^[-+]?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)?)??$/,Fse=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Use="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Jy;const Bse=/^(?:(?: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])$/,Vse=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,jse=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Hse=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zse=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qse=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,s2="((\\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])))",Wse=new RegExp(`^${s2}$`);function o2(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 Kse(e){return new RegExp(`^${o2(e)}$`)}function i2(e){let t=`${s2}T${o2(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Gse(e,t){return!!((t==="v4"||!t)&&Bse.test(e)||(t==="v6"||!t)&&jse.test(e))}function Yse(e,t){if(!Mse.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||t&&s.alg!==t)}catch{return!1}}function Xse(e,t){return!!((t==="v4"||!t)&&Vse.test(e)||(t==="v6"||!t)&&Hse.test(e))}class So extends tt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==_e.string){const o=this._getOrReturnCtx(t);return me(o,{code:se.invalid_type,expected:_e.string,received:o.parsedType}),Ve}const r=new Rr;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),me(s,{code:se.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),me(s,{code:se.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=t.data.length>o.value,a=t.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(t,s),i?me(s,{code:se.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&me(s,{code:se.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Fse.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"email",code:se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Jy||(Jy=new RegExp(Use,"u")),Jy.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"emoji",code:se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Nse.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"uuid",code:se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Dse.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"nanoid",code:se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Ose.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"cuid",code:se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Pse.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"cuid2",code:se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Lse.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"ulid",code:se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),me(s,{validation:"url",code:se.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"regex",code:se.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),me(s,{code:se.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),me(s,{code:se.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),me(s,{code:se.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?i2(o).test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{code:se.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Wse.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{code:se.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?Kse(o).test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{code:se.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?$se.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"duration",code:se.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?Gse(t.data,o.version)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"ip",code:se.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?Yse(t.data,o.alg)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"jwt",code:se.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?Xse(t.data,o.version)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"cidr",code:se.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?zse.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"base64",code:se.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?qse.test(t.data)||(s=this._getOrReturnCtx(t,s),me(s,{validation:"base64url",code:se.invalid_string,message:o.message}),r.dirty()):kt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:se.invalid_string,...Te.errToObj(r)})}_addCheck(t){return new So({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Te.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Te.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Te.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Te.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Te.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Te.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Te.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Te.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Te.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Te.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Te.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Te.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Te.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(n=t?.offset)!==null&&n!==void 0?n:!1,local:(r=t?.local)!==null&&r!==void 0?r:!1,...Te.errToObj(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?.precision>"u"?null:t?.precision,...Te.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Te.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Te.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Te.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Te.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Te.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Te.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Te.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Te.errToObj(n)})}nonempty(t){return this.min(1,Te.errToObj(t))}trim(){return new So({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new So({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new So({...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 isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}So.create=e=>{var t;return new So({checks:[],typeName:Be.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Xe(e)})};function Qse(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,o=parseInt(e.toFixed(s).replace(".","")),i=parseInt(t.toFixed(s).replace(".",""));return o%i/Math.pow(10,s)}class ja extends tt{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)!==_e.number){const o=this._getOrReturnCtx(t);return me(o,{code:se.invalid_type,expected:_e.number,received:o.parsedType}),Ve}let r;const s=new Rr;for(const o of this._def.checks)o.kind==="int"?kt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),me(r,{code:se.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:se.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:se.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?Qse(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),me(r,{code:se.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),me(r,{code:se.not_finite,message:o.message}),s.dirty()):kt.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,s){return new ja({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(s)}]})}_addCheck(t){return new ja({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Te.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Te.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Te.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Te.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Te.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&kt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}ja.create=e=>new ja({checks:[],typeName:Be.ZodNumber,coerce:e?.coerce||!1,...Xe(e)});class Ha extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==_e.bigint)return this._getInvalidInput(t);let r;const s=new Rr;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:se.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:se.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),me(r,{code:se.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):kt.assertNever(o);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return me(n,{code:se.invalid_type,expected:_e.bigint,received:n.parsedType}),Ve}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,s){return new Ha({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(s)}]})}_addCheck(t){return new Ha({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Te.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ha.create=e=>{var t;return new Ha({checks:[],typeName:Be.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Xe(e)})};class hh extends tt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==_e.boolean){const r=this._getOrReturnCtx(t);return me(r,{code:se.invalid_type,expected:_e.boolean,received:r.parsedType}),Ve}return Qr(t.data)}}hh.create=e=>new hh({typeName:Be.ZodBoolean,coerce:e?.coerce||!1,...Xe(e)});class Ql extends tt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==_e.date){const o=this._getOrReturnCtx(t);return me(o,{code:se.invalid_type,expected:_e.date,received:o.parsedType}),Ve}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return me(o,{code:se.invalid_date}),Ve}const r=new Rr;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),me(s,{code:se.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),me(s,{code:se.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):kt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ql({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Te.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Te.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ql.create=e=>new Ql({checks:[],coerce:e?.coerce||!1,typeName:Be.ZodDate,...Xe(e)});class Gg extends tt{_parse(t){if(this._getType(t)!==_e.symbol){const r=this._getOrReturnCtx(t);return me(r,{code:se.invalid_type,expected:_e.symbol,received:r.parsedType}),Ve}return Qr(t.data)}}Gg.create=e=>new Gg({typeName:Be.ZodSymbol,...Xe(e)});class ph extends tt{_parse(t){if(this._getType(t)!==_e.undefined){const r=this._getOrReturnCtx(t);return me(r,{code:se.invalid_type,expected:_e.undefined,received:r.parsedType}),Ve}return Qr(t.data)}}ph.create=e=>new ph({typeName:Be.ZodUndefined,...Xe(e)});class mh extends tt{_parse(t){if(this._getType(t)!==_e.null){const r=this._getOrReturnCtx(t);return me(r,{code:se.invalid_type,expected:_e.null,received:r.parsedType}),Ve}return Qr(t.data)}}mh.create=e=>new mh({typeName:Be.ZodNull,...Xe(e)});class Bu extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return Qr(t.data)}}Bu.create=e=>new Bu({typeName:Be.ZodAny,...Xe(e)});class Pl extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Qr(t.data)}}Pl.create=e=>new Pl({typeName:Be.ZodUnknown,...Xe(e)});class Xi extends tt{_parse(t){const n=this._getOrReturnCtx(t);return me(n,{code:se.invalid_type,expected:_e.never,received:n.parsedType}),Ve}}Xi.create=e=>new Xi({typeName:Be.ZodNever,...Xe(e)});class Yg extends tt{_parse(t){if(this._getType(t)!==_e.undefined){const r=this._getOrReturnCtx(t);return me(r,{code:se.invalid_type,expected:_e.void,received:r.parsedType}),Ve}return Qr(t.data)}}Yg.create=e=>new Yg({typeName:Be.ZodVoid,...Xe(e)});class xo extends tt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==_e.array)return me(n,{code:se.invalid_type,expected:_e.array,received:n.parsedType}),Ve;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(me(n,{code:i?se.too_big:se.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(me(n,{code:se.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(me(n,{code:se.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new ci(n,i,n.path,a)))).then(i=>Rr.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new ci(n,i,n.path,a)));return Rr.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new xo({...this._def,minLength:{value:t,message:Te.toString(n)}})}max(t,n){return new xo({...this._def,maxLength:{value:t,message:Te.toString(n)}})}length(t,n){return new xo({...this._def,exactLength:{value:t,message:Te.toString(n)}})}nonempty(t){return this.min(1,t)}}xo.create=(e,t)=>new xo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Be.ZodArray,...Xe(t)});function $c(e){if(e instanceof dn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ni.create($c(r))}return new dn({...e._def,shape:()=>t})}else return e instanceof xo?new xo({...e._def,type:$c(e.element)}):e instanceof ni?ni.create($c(e.unwrap())):e instanceof qa?qa.create($c(e.unwrap())):e instanceof ui?ui.create(e.items.map(t=>$c(t))):e}class dn extends tt{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(),n=kt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==_e.object){const c=this._getOrReturnCtx(t);return me(c,{code:se.invalid_type,expected:_e.object,received:c.parsedType}),Ve}const{status:r,ctx:s}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Xi&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=o[c],d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ci(s,d,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof Xi){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")a.length>0&&(me(s,{code:se.unrecognized_keys,keys:a}),r.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 d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ci(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>Rr.mergeObjectSync(r,c)):Rr.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Te.errToObj,new dn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,o,i,a;const l=(i=(o=(s=this._def).errorMap)===null||o===void 0?void 0:o.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=Te.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new dn({...this._def,unknownKeys:"strip"})}passthrough(){return new dn({...this._def,unknownKeys:"passthrough"})}extend(t){return new dn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new dn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Be.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new dn({...this._def,catchall:t})}pick(t){const n={};return kt.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new dn({...this._def,shape:()=>n})}omit(t){const n={};return kt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new dn({...this._def,shape:()=>n})}deepPartial(){return $c(this)}partial(t){const n={};return kt.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new dn({...this._def,shape:()=>n})}required(t){const n={};return kt.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof ni;)o=o._def.innerType;n[r]=o}}),new dn({...this._def,shape:()=>n})}keyof(){return a2(kt.objectKeys(this.shape))}}dn.create=(e,t)=>new dn({shape:()=>e,unknownKeys:"strip",catchall:Xi.create(),typeName:Be.ZodObject,...Xe(t)});dn.strictCreate=(e,t)=>new dn({shape:()=>e,unknownKeys:"strict",catchall:Xi.create(),typeName:Be.ZodObject,...Xe(t)});dn.lazycreate=(e,t)=>new dn({shape:e,unknownKeys:"strip",catchall:Xi.create(),typeName:Be.ZodObject,...Xe(t)});class gh extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new Ms(a.ctx.common.issues));return me(n,{code:se.invalid_union,unionErrors:i}),Ve}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new Ms(l));return me(n,{code:se.invalid_union,unionErrors:a}),Ve}}get options(){return this._def.options}}gh.create=(e,t)=>new gh({options:e,typeName:Be.ZodUnion,...Xe(t)});const vi=e=>e instanceof yh?vi(e.schema):e instanceof Io?vi(e.innerType()):e instanceof bh?[e.value]:e instanceof za?e.options:e instanceof wh?kt.objectValues(e.enum):e instanceof Sh?vi(e._def.innerType):e instanceof ph?[void 0]:e instanceof mh?[null]:e instanceof ni?[void 0,...vi(e.unwrap())]:e instanceof qa?[null,...vi(e.unwrap())]:e instanceof mE||e instanceof kh?vi(e.unwrap()):e instanceof Eh?vi(e._def.innerType):[];class x_ extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==_e.object)return me(n,{code:se.invalid_type,expected:_e.object,received:n.parsedType}),Ve;const r=this.discriminator,s=n.data[r],o=this.optionsMap.get(s);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(me(n,{code:se.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ve)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const o of n){const i=vi(o.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(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,o)}}return new x_({typeName:Be.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...Xe(r)})}}function pw(e,t){const n=ki(e),r=ki(t);if(e===t)return{valid:!0,data:e};if(n===_e.object&&r===_e.object){const s=kt.objectKeys(t),o=kt.objectKeys(e).filter(a=>s.indexOf(a)!==-1),i={...e,...t};for(const a of o){const l=pw(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===_e.array&&r===_e.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const i=e[o],a=t[o],l=pw(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===_e.date&&r===_e.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class vh extends tt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(o,i)=>{if(fw(o)||fw(i))return Ve;const a=pw(o.value,i.value);return a.valid?((hw(o)||hw(i))&&n.dirty(),{status:n.value,value:a.data}):(me(r,{code:se.invalid_intersection_types}),Ve)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}vh.create=(e,t,n)=>new vh({left:e,right:t,typeName:Be.ZodIntersection,...Xe(n)});class ui extends tt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==_e.array)return me(r,{code:se.invalid_type,expected:_e.array,received:r.parsedType}),Ve;if(r.data.length<this._def.items.length)return me(r,{code:se.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&r.data.length>this._def.items.length&&(me(r,{code:se.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new ci(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>Rr.mergeArray(n,i)):Rr.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new ui({...this._def,rest:t})}}ui.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ui({items:e,typeName:Be.ZodTuple,rest:null,...Xe(t)})};class _h extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==_e.object)return me(r,{code:se.invalid_type,expected:_e.object,received:r.parsedType}),Ve;const s=[],o=this._def.keyType,i=this._def.valueType;for(const a in r.data)s.push({key:o._parse(new ci(r,a,r.path,a)),value:i._parse(new ci(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Rr.mergeObjectAsync(n,s):Rr.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof tt?new _h({keyType:t,valueType:n,typeName:Be.ZodRecord,...Xe(r)}):new _h({keyType:So.create(),valueType:t,typeName:Be.ZodRecord,...Xe(n)})}}class Xg extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==_e.map)return me(r,{code:se.invalid_type,expected:_e.map,received:r.parsedType}),Ve;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new ci(r,a,r.path,[c,"key"])),value:o._parse(new ci(r,l,r.path,[c,"value"]))}));if(r.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 Ve;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.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 Ve;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}Xg.create=(e,t,n)=>new Xg({valueType:t,keyType:e,typeName:Be.ZodMap,...Xe(n)});class Zl extends tt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==_e.set)return me(r,{code:se.invalid_type,expected:_e.set,received:r.parsedType}),Ve;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(me(r,{code:se.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(me(r,{code:se.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Ve;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new ci(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Zl({...this._def,minSize:{value:t,message:Te.toString(n)}})}max(t,n){return new Zl({...this._def,maxSize:{value:t,message:Te.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Zl.create=(e,t)=>new Zl({valueType:e,minSize:null,maxSize:null,typeName:Be.ZodSet,...Xe(t)});class hu extends tt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==_e.function)return me(n,{code:se.invalid_type,expected:_e.function,received:n.parsedType}),Ve;function r(a,l){return Wg({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qg(),Yl].filter(c=>!!c),issueData:{code:se.invalid_arguments,argumentsError:l}})}function s(a,l){return Wg({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qg(),Yl].filter(c=>!!c),issueData:{code:se.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Vu){const a=this;return Qr(async function(...l){const c=new Ms([]),u=await a._def.args.parseAsync(l,o).catch(h=>{throw c.addIssue(r(l,h)),c}),d=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(d,o).catch(h=>{throw c.addIssue(s(d,h)),c})})}else{const a=this;return Qr(function(...l){const c=a._def.args.safeParse(l,o);if(!c.success)throw new Ms([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),d=a._def.returns.safeParse(u,o);if(!d.success)throw new Ms([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new hu({...this._def,args:ui.create(t).rest(Pl.create())})}returns(t){return new hu({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new hu({args:t||ui.create([]).rest(Pl.create()),returns:n||Pl.create(),typeName:Be.ZodFunction,...Xe(r)})}}class yh extends tt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}yh.create=(e,t)=>new yh({getter:e,typeName:Be.ZodLazy,...Xe(t)});class bh extends tt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return me(n,{received:n.data,code:se.invalid_literal,expected:this._def.value}),Ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}bh.create=(e,t)=>new bh({value:e,typeName:Be.ZodLiteral,...Xe(t)});function a2(e,t){return new za({values:e,typeName:Be.ZodEnum,...Xe(t)})}class za extends tt{constructor(){super(...arguments),nf.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return me(n,{expected:kt.joinValues(r),received:n.parsedType,code:se.invalid_type}),Ve}if(Kg(this,nf)||r2(this,nf,new Set(this._def.values)),!Kg(this,nf).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return me(n,{received:n.data,code:se.invalid_enum_value,options:r}),Ve}return Qr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return za.create(t,{...this._def,...n})}exclude(t,n=this._def){return za.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}nf=new WeakMap;za.create=a2;class wh extends tt{constructor(){super(...arguments),rf.set(this,void 0)}_parse(t){const n=kt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==_e.string&&r.parsedType!==_e.number){const s=kt.objectValues(n);return me(r,{expected:kt.joinValues(s),received:r.parsedType,code:se.invalid_type}),Ve}if(Kg(this,rf)||r2(this,rf,new Set(kt.getValidEnumValues(this._def.values))),!Kg(this,rf).has(t.data)){const s=kt.objectValues(n);return me(r,{received:r.data,code:se.invalid_enum_value,options:s}),Ve}return Qr(t.data)}get enum(){return this._def.values}}rf=new WeakMap;wh.create=(e,t)=>new wh({values:e,typeName:Be.ZodNativeEnum,...Xe(t)});class Vu extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==_e.promise&&n.common.async===!1)return me(n,{code:se.invalid_type,expected:_e.promise,received:n.parsedType}),Ve;const r=n.parsedType===_e.promise?n.data:Promise.resolve(n.data);return Qr(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Vu.create=(e,t)=>new Vu({type:e,typeName:Be.ZodPromise,...Xe(t)});class Io extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:i=>{me(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return Ve;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?Ve:l.status==="dirty"||n.value==="dirty"?Kc(l.value):l});{if(n.value==="aborted")return Ve;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?Ve:a.status==="dirty"||n.value==="dirty"?Kc(a.value):a}}if(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);if(r.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(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ve:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?Ve:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Xl(i))return i;const a=s.transform(i.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Xl(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):i);kt.assertNever(s)}}Io.create=(e,t,n)=>new Io({schema:e,typeName:Be.ZodEffects,effect:t,...Xe(n)});Io.createWithPreprocess=(e,t,n)=>new Io({schema:t,effect:{type:"preprocess",transform:e},typeName:Be.ZodEffects,...Xe(n)});class ni extends tt{_parse(t){return this._getType(t)===_e.undefined?Qr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ni.create=(e,t)=>new ni({innerType:e,typeName:Be.ZodOptional,...Xe(t)});class qa extends tt{_parse(t){return this._getType(t)===_e.null?Qr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qa.create=(e,t)=>new qa({innerType:e,typeName:Be.ZodNullable,...Xe(t)});class Sh extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===_e.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Sh.create=(e,t)=>new Sh({innerType:e,typeName:Be.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Xe(t)});class Eh extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return fh(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ms(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ms(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Eh.create=(e,t)=>new Eh({innerType:e,typeName:Be.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Xe(t)});class Qg extends tt{_parse(t){if(this._getType(t)!==_e.nan){const r=this._getOrReturnCtx(t);return me(r,{code:se.invalid_type,expected:_e.nan,received:r.parsedType}),Ve}return{status:"valid",value:t.data}}}Qg.create=e=>new Qg({typeName:Be.ZodNaN,...Xe(e)});const Zse=Symbol("zod_brand");class mE extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class mp extends tt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ve:o.status==="dirty"?(n.dirty(),Kc(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Ve:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new mp({in:t,out:n,typeName:Be.ZodPipeline})}}class kh extends tt{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Xl(s)&&(s.value=Object.freeze(s.value)),s);return fh(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}kh.create=(e,t)=>new kh({innerType:e,typeName:Be.ZodReadonly,...Xe(t)});function lA(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function l2(e,t={},n){return e?Bu.create().superRefine((r,s)=>{var o,i;const a=e(r);if(a instanceof Promise)return a.then(l=>{var c,u;if(!l){const d=lA(t,r),f=(u=(c=d.fatal)!==null&&c!==void 0?c:n)!==null&&u!==void 0?u:!0;s.addIssue({code:"custom",...d,fatal:f})}});if(!a){const l=lA(t,r),c=(i=(o=l.fatal)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:!0;s.addIssue({code:"custom",...l,fatal:c})}}):Bu.create()}const Jse={object:dn.lazycreate};var Be;(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"})(Be||(Be={}));const eoe=(e,t={message:`Input not instance of ${e.name}`})=>l2(n=>n instanceof e,t),c2=So.create,u2=ja.create,toe=Qg.create,noe=Ha.create,d2=hh.create,roe=Ql.create,soe=Gg.create,ooe=ph.create,ioe=mh.create,aoe=Bu.create,loe=Pl.create,coe=Xi.create,uoe=Yg.create,doe=xo.create,foe=dn.create,hoe=dn.strictCreate,poe=gh.create,moe=x_.create,goe=vh.create,voe=ui.create,_oe=_h.create,yoe=Xg.create,boe=Zl.create,woe=hu.create,Soe=yh.create,Eoe=bh.create,koe=za.create,xoe=wh.create,Toe=Vu.create,cA=I
1505o.create,Coe=ni.create,Aoe=qa.create,Roe=Io.createWithPreprocess,Ioe=mp.create,Ooe=()=>c2().optional(),Poe=()=>u2().optional(),Loe=()=>d2().optional(),Noe={string:(e=>So.create({...e,coerce:!0})),number:(e=>ja.create({...e,coerce:!0})),boolean:(e=>hh.create({...e,coerce:!0})),bigint:(e=>Ha.create({...e,coerce:!0})),date:(e=>Ql.create({...e,coerce:!0}))},Doe=Ve;var Moe=Object.freeze({__proto__:null,defaultErrorMap:Yl,setErrorMap:Rse,getErrorMap:qg,makeIssue:Wg,EMPTY_PATH:Ise,addIssueToContext:me,ParseStatus:Rr,INVALID:Ve,DIRTY:Kc,OK:Qr,isAborted:fw,isDirty:hw,isValid:Xl,isAsync:fh,get util(){return kt},get objectUtil(){return dw},ZodParsedType:_e,getParsedType:ki,ZodType:tt,datetimeRegex:i2,ZodString:So,ZodNumber:ja,ZodBigInt:Ha,ZodBoolean:hh,ZodDate:Ql,ZodSymbol:Gg,ZodUndefined:ph,ZodNull:mh,ZodAny:Bu,ZodUnknown:Pl,ZodNever:Xi,ZodVoid:Yg,ZodArray:xo,ZodObject:dn,ZodUnion:gh,ZodDiscriminatedUnion:x_,ZodIntersection:vh,ZodTuple:ui,ZodRecord:_h,ZodMap:Xg,ZodSet:Zl,ZodFunction:hu,ZodLazy:yh,ZodLiteral:bh,ZodEnum:za,ZodNativeEnum:wh,ZodPromise:Vu,ZodEffects:Io,ZodTransformer:Io,ZodOptional:ni,ZodNullable:qa,ZodDefault:Sh,ZodCatch:Eh,ZodNaN:Qg,BRAND:Zse,ZodBranded:mE,ZodPipeline:mp,ZodReadonly:kh,custom:l2,Schema:tt,ZodSchema:tt,late:Jse,get ZodFirstPartyTypeKind(){return Be},coerce:Noe,any:aoe,array:doe,bigint:noe,boolean:d2,date:roe,discriminatedUnion:moe,effect:cA,enum:koe,function:woe,instanceof:eoe,intersection:goe,lazy:Soe,literal:Eoe,map:yoe,nan:toe,nativeEnum:xoe,never:coe,null:ioe,nullable:Aoe,number:u2,object:foe,oboolean:Loe,onumber:Poe,optional:Coe,ostring:Ooe,pipeline:Ioe,preprocess:Roe,promise:Toe,record:_oe,set:boe,strictObject:hoe,string:c2,symbol:soe,transformer:cA,tuple:voe,undefined:ooe,union:poe,unknown:loe,void:uoe,NEVER:Doe,ZodIssueCode:se,quotelessJson:Ase,ZodError:Ms});function eb(e,t=" | "){return e.map(n=>typeof n=="string"?`'${n}'`:n).join(t)}function $oe(e,t){return typeof t=="bigint"?t.toString():t}function uA(e){if(typeof e!="object"||e===null)return!1;for(const t in e)if(!Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Foe(e,t,n){const{t:r}=n;if(typeof e=="string")return{key:e,values:{}};if(uA(e)){const s="key"in e&&typeof e.key=="string"?e.key:t,o="values"in e&&uA(e.values)?Object.entries(e.values).reduce((i,[a,l])=>(i={...i,[a]:r(l)},i),{}):{};return{key:s,values:o}}return{key:t,values:{}}}const Uoe=nt({name:"zodI18n:plugin",dependsOn:["i18n:plugin"],parallel:!0,setup:e=>{const{dateFormat:t}=Or().public.zodI18n,n=e.$i18n,{t:r,d:s}=n,o=(i,a)=>{let l;switch(l=Yl(i,a).message,i.code){case se.invalid_type:i.received===_e.undefined?l=r("zodI18n.errors.invalid_type_received_undefined"):l=r("zodI18n.errors.invalid_type",{expected:r(`zodI18n.types.${i.expected}`),received:r(`zodI18n.types.${i.received}`)});break;case se.invalid_literal:l=r("zodI18n.errors.invalid_literal",{expected:JSON.stringify(i.expected,$oe)});break;case se.unrecognized_keys:l=r("zodI18n.errors.unrecognized_keys",{keys:eb(i.keys,", ")});break;case se.invalid_union:l=r("zodI18n.errors.invalid_union");break;case se.invalid_union_discriminator:l=r("zodI18n.errors.invalid_union_discriminator",{options:eb(i.options)});break;case se.invalid_enum_value:l=r("zodI18n.errors.invalid_enum_value",{options:eb(i.options),received:i.received});break;case se.invalid_arguments:l=r("zodI18n.errors.invalid_arguments");break;case se.invalid_return_type:l=r("zodI18n.errors.invalid_return_type");break;case se.invalid_date:l=r("zodI18n.errors.invalid_date");break;case se.invalid_string:typeof i.validation=="object"?"startsWith"in i.validation?l=r("zodI18n.errors.invalid_string.startsWith",{startsWith:i.validation.startsWith}):"endsWith"in i.validation&&(l=r("zodI18n.errors.invalid_string.endsWith",{endsWith:i.validation.endsWith})):l=r(`zodI18n.errors.invalid_string.${i.validation}`,{validation:r(`zodI18n.validations.${i.validation}`)});break;case se.too_small:l=r(`zodI18n.errors.too_small.${i.type}.${i.exact?"exact":i.inclusive?"inclusive":"not_inclusive"}`,{minimum:i.type==="date"?s(new Date(i.minimum),t):i.minimum});break;case se.too_big:l=r(`zodI18n.errors.too_big.${i.type}.${i.exact?"exact":i.inclusive?"inclusive":"not_inclusive"}`,{maximum:i.type==="date"?s(new Date(i.maximum),t):i.maximum});break;case se.custom:const{key:c,values:u}=Foe(i.params?.i18n,"zodI18n.errors.custom",n);l=r(c,u);break;case se.invalid_intersection_types:l=r("zodI18n.errors.invalid_intersection_types");break;case se.not_multiple_of:l=r("zodI18n.errors.not_multiple_of",{multipleOf:i.multipleOf});break;case se.not_finite:l=r("zodI18n.errors.not_finite");break}return{message:l}};Moe.setErrorMap(o)}});function Boe(e){var t=[],n="";for(n in e)t.push(n);return t}function mw(e){return e=JSON.stringify(e),!(typeof e!="string"||!/^\{[\s\S]*\}$/.test(e))}function Voe(e){return e instanceof Array}function joe(e){return Array.prototype.slice.call(e)}
1505function ju(){if(!(this instanceof ju))return new ju}ju.prototype={get:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var s=n[r];s.charAt(0)==" ";)s=s.substring(1,s.length);if(s.indexOf(t)==0)return decodeURI(s.substring(t.length,s.length))}return!1},set:function(e,t,n){if(mw(e))for(const r in e)this.set(r,e[r],t,n);else if(typeof e=="string"){const r=mw(n)?n:{expires:n},s=r.path!==void 0?`;path=${r.path};path=/`:";path=/",o=r.domain?`;domain=${r.domain}`:"",i=r.secure?";secure":"";let a=r.expires!==void 0?r.expires:"";typeof a=="string"&&a!==""?a=new Date(a):typeof a=="number"&&(a=new Date(+new Date+1e3*60*60*24*a)),a!==""&&"toGMTString"in a&&(a=`;expires=${a.toGMTString()}`);const l=r.sameSite?`;SameSite=${r.sameSite}`:"";document.cookie=`${e}=${encodeURI(t)+a+s+o+i+l}`}},remove:function(e){e=Voe(e)?e:joe(arguments);for(var t=0,n=e.length;t<n;t++)this.set(e[t],"",-1);return e},clear:function(e){return e?this.remove(e):this.remove(Boe(this.all()))},all:function(){if(document.cookie==="")return{};for(var e=document.cookie.split("; "),t={},n=0,r=e.length;n<r;n++){var s=e[n].split("=");
1505t[decodeURI(s[0])]=decodeURI(s[1])}return t}};let hl=null;const f2=function(e,t,n){const r=arguments;if(hl||(hl=ju()),r.length===0)return hl.all();if(r.length===1&&e===null)return hl.clear();if(r.length===2&&!t)return hl.clear(e);if(typeof e=="string"&&!t)return hl.get(e);if(typeof e=="string"&&t||mw(e))return hl.set(e,t,n)};for(const e in ju.prototype)f2[e]=ju.prototype[e];const Hoe="viewportState";function zoe(e,t){const n=A({get(){return t.value||e.fallbackBreakpoint},set(f){t.value=f,typeof window<"u"&&e.cookie.name&&f2.set(e.cookie.name,t.value,e.cookie)}}),r=A(()=>{const f=e.breakpoints||{},h=Object.keys(f).sort((g,v)=>f[g]-f[v]),p={};let m=h.length;for(;m--;){const g=h[m],v=f[g],b=f[h[m+1]];f[h[m-1]];let _="";m>0?_=`(min-width: ${v}px)`:_="(min-width: 1px)",b&&(_+=` and (max-width: ${b-1}px)`),p[g]={mediaQuery:_,size:v}}return p}),s=A(()=>Object.keys(r.value));return{breakpoint:n,breakpointValue:o,isGreaterThan:i,isGreaterOrEquals:a,isLessThan:l,isLessOrEquals:c,match:u,matches:d,queries:r};function o(f){return(e.breakpoints||{})[f]}function i(f){const h=s.value.indexOf(n.value),p=s.value.indexOf(f);return p===-1?!1:p>h}function a(f){return i(f)||u(f)}function l(f){const h=s.value.indexOf(n.value),p=s.value.indexOf(f);return p===-1?!1:p<h}function c(f){return l(f)||u(f)}function u(f){return n.value===f}function d(...f){return f.includes(n.value)}}const qoe={breakpoints:{mobile:768,desktop:769,desktopLg:1025},cookie:{expires:365,name:"viewport",path:"/",sameSite:"Strict",secure:!0},fallbackBreakpoint:"desktop"},Woe=nt(async e=>{const t=dr(Hoe,"$hunPuoZTzY"),n=zoe(qoe,t);return e.hook("app:suspense:resolve",()=>{for(const r in n.queries.value){const{mediaQuery:s}=n.queries.value[r],o=window.matchMedia(s);o.matches&&(n.breakpoint.value=r),o.onchange=i=>{i.matches&&(n.breakpoint.value=r)}}}),e.provide("viewport",n)});var Yp={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"}
1505,emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};const Koe=[50,100,200,300,400,500,600,700,800,900,950];function Goe(e,t){return e in Yp&&typeof Yp[e]=="object"&&t in Yp[e]?Yp[e][t]:""}function Yoe(e,t){return`${Koe.map(n=>`--ui-color-${e}-${n}: var(--color-${t==="neutral"?"old-neutral":t}-${n}, ${Goe(t,n)});`).join(` 1506 `)}`}function dA(e,t){return`--ui-${e}: var(--ui-color-${e}-${t});`}const Xoe=nt(()=>{const e=Lr(),t=De(),n=A(()=>{const{neutral:s,...o}=e.ui.colors;return`@layer base { 1507 :root {
1508 ${Object.entries(e.ui.colors).map(([i,a])=>Yoe(i,a)).join(` 1509 `)} 1510 } 1511 :root, .light { 1512 ${Object.keys(o).map(i=>dA(i,500)).join(` 1513 `)} 1514 } 1515 .dark { 1516 ${Object.keys(o).map(i=>dA(i,400)).join(` 1517 `)} 1518 } 1519}`}),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const s=document.createElement("style");s.innerHTML=n.value,s.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(s),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}Qv(r)}),h2=/^[a-z0-9]+(-[a-z0-9]+)*$/,gp=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const a=s.pop(),l=s.pop(),c={provider:s.length>0?s[0]:r,prefix:l,name:a};return t&&!Dm(c)?null:c}const o=s[0],i=o.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Dm(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:o};return t&&!Dm(a,n)?null:a}return null},Dm=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,p2=Object.freeze({left:0,top:0,width:16,height:16}),Zg=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),bd=Object.freeze({...p2,...Zg}),gw=Object.freeze({...bd,body:"",hidden:!1});function Qoe(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function fA(e,t){const n=Qoe(e,t);for(const r in gw)r in Zg?r in e&&!(r in n)&&(n[r]=Zg[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Zoe(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function o(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const a=r[i]&&r[i].parent,l=a&&o(a);l&&(s[i]=[a].concat(l))}return s[i]}return Object.keys(n).concat(Object.keys(r)).forEach(o),s}function Joe(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let o={};function i(a){o=fA(r[a]||s[a],o)}return i(t),n.forEach(i),fA(e,o)}function m2(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=Zoe(e);for(const s in r){const o=r[s];o&&(t(s,Joe(e,s,o)),n.push(s))}return n}const eie={provider:"",aliases:{},not_found:{},...p2};function tb(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function g2(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!tb(e,eie))return null;const n=t.icons;for(const s in n){const o=n[s];
1519if(!s||typeof o.body!="string"||!tb(o,gw))return null}const r=t.aliases||Object.create(null);for(const s in r){const o=r[s],i=o.parent;if(!s||typeof i!="string"||!n[i]&&!r[i]||!tb(o,gw))return null}return t}const hA=Object.create(null);function tie(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Jl(e,t){const n=hA[e]||(hA[e]=Object.create(null));return n[t]||(n[t]=tie(e,t))}function v2(e,t){return g2(t)?m2(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function nie(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let xh=!1;function _2(e){return typeof e=="boolean"&&(xh=e),xh}function gE(e){const t=typeof e=="string"?gp(e,!0,xh):e;if(t){const n=Jl(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Th(e,t){const n=gp(e,!0,xh);if(!n)return!1;const r=Jl(n.provider,n.prefix);return t?nie(r,n.name,t):(r.missing.add(n.name),!0)}function rie(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),xh&&!t&&!e.prefix){let s=!1;return g2(e)&&(e.prefix="",m2(e,(o,i)=>{Th(o,i)&&(s=!0)})),s}const n=e.prefix;if(!Dm({prefix:n,name:"a"}))return!1;const r=Jl(t,n);return!!v2(r,e)}function vw(e){const t=gE(e);return t&&{...bd,...t}}const y2=Object.freeze({width:null,height:null}),b2=Object.freeze({...y2,...Zg}),sie=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oie=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pA(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(sie);if(r===null||!r.length)return e;const s=[];let o=r.shift(),i=oie.test(o);for(;;){if(i){const a=parseFloat(o);isNaN(a)?s.push(o):s.push(Math.ceil(a*t*n)/n)}else s.push(o);if(o=r.shift(),o===void 0)return s.join("");i=!i}}function iie(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const s=e.indexOf(">",r),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const i=e.indexOf(">",o);if(i===-1)break;n+=e.slice(s+1,o).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function aie(e,t){return e?"<defs>"+e+"</defs>"+t:t}function lie(e,t,n){const r=iie(e);return aie(r.defs,t+r.content+n)}const cie=e=>e==="unset"||e==="undefined"||e==="none";function uie(e,t){const n={...bd,...e},r={...b2,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(m=>{const g=[],v=m.hFlip,b=m.vFlip;let _=m.rotate;v?b?_+=2:(g.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),g.push("scale(-1 1)"),s.top=s.left=0):b&&(g.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),g.push("scale(1 -1)"),s.top=s.left=0);let y;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:y=s.height/2+s.top,g.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:g.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:y=s.width/2+s.left,g.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}_%2===1&&(s.left!==s.top&&(y=s.left,s.left=s.top,s.top=y),s.width!==s.height&&(y=s.width,s.width=s.height,s.height=y)),g.length&&(o=lie(o,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=r.width,a=r.height,l=s.width,c=s.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?c:a,u=pA(d,l/c)):(u=i==="auto"?l:i,d=a===null?pA(u,c/l):a==="auto"?c:a);const f={},h=(m,g)=>{cie(g)||(f[m]=g.toString())};h("width",u),h("height",d);const p=[s.left,s.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:o}}const die=/\sid="(\S+)"/g,fie="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let hie=0;function pie(e,t=fie){const n=[];let r;for(;r=die.exec(e);)n.push(r[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const i=typeof t=="function"?t(o):t+(hie++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const _w=Object.create(null);function w2(e,t){_w[e]=t}function yw(e){return _w[e]||_w[""]}function vE(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 T_=Object.create(null),Hd=["https://api.simplesvg.com","https://api.unisvg.com"],Mm=[];for(;Hd.length>0;)Hd.length===1||Math.random()>.5?Mm.push(Hd.shift()):Mm.push(Hd.pop());T_[""]=vE({resources:["https://api.iconify.design"].concat(Mm)});function S2(e,t){const n=vE(t);return n===null?!1:(T_[e]=n,!0)}function C_(e){return T_[e]}function mie(){return Object.keys(T_)}const gie=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Jg=gie();function vie(e){Jg=e}function _ie(){return Jg}function yie(e,t){const n=C_(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;
1519n.resources.forEach(i=>{s=Math.max(s,i.length)});const o=t+".json?icons=";r=n.maxURL-s-n.path.length-o.length}return r}function bie(e){return e===404}const wie=(e,t,n)=>{const r=[],s=yie(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=s&&c>0&&(r.push(i),i={type:o,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),r.push(i),r};function Sie(e){if(typeof e=="string"){const t=C_(e);if(t)return t.path}return"/"}const Eie=(e,t,n)=>{if(!Jg){n("abort",424);return}let r=Sie(t.provider);switch(t.type){case"icons":{const o=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;r+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let s=503;Jg(e+r).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(bie(i)?"abort":"next",i)});return}return s=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",s)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",s)})},kie={prepare:wie,send:Eie};function xie(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,o)=>s.provider!==o.provider?s.provider.localeCompare(o.provider):s.prefix!==o.prefix?s.prefix.localeCompare(o.prefix):s.name.localeCompare(o.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const o=s.provider,i=s.prefix,a=s.name,l=n[o]||(n[o]=Object.create(null)),c=l[i]||(l[i]=Jl(o,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const d={provider:o,prefix:i,name:a};u.push(d)}),t}function E2(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function Tie(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(o=>{const i=o.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==s)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:r,prefix:s,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:s,name:c});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||E2([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let Cie=0;function Aie(e,t,n){const r=Cie++,s=E2.bind(null,n,r);if(!t.pending.length)return s;const o={id:r,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),s}function Rie(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const o=typeof s=="string"?gp(s,t,n):s;o&&r.push(o)}),r}var Iie={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Oie(e,t,n,r){const s=e.resources.length,o=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let S=e.resources.slice(0);for(i=[];S.length>1;){const E=Math.floor(Math.random()*S.length);i.push(S[E]),S=S.slice(0,E).concat(S.slice(E+1))}i=i.concat(S)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const a=Date.now();let l="pending",c=0,u,d=null,f=[],h=[];typeof r=="function"&&h.push(r);function p(){d&&(clearTimeout(d),d=null)}function m(){l==="pending"&&(l="aborted"),p(),f.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),f=[]}function g(S,E){E&&(h=[]),typeof S=="function"&&h.push(S)}function v(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:g,abort:m}}function b(){l="failed",h.forEach(S=>{S(void 0,u)})}function _(){f.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),f=[]}function y(S,E,x){const T=E!=="success";switch(f=f.filter(O=>O!==S),l){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){u=x,b();return}if(T){u=x,f.length||(i.length?w():b());return}if(p(),_(),!e.random){const O=e.resources.indexOf(S.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",h.forEach(O=>{O(x)})}function w(){if(l!=="pending")return;p();const S=i.shift();if(S===void 0){if(f.length){d=setTimeout(()=>{p(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const E={status:"pending",resource:S,callback:(x,T)=>{y(E,x,T)}};f.push(E),c++,d=setTimeout(w,e.rotate),n(S,t,E.callback)}return setTimeout(w),v}function k2(e){const t={...Iie,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function s(a,l,c){const u=Oie(t,a,l,(d,f)=>{r(),c&&c(d,f)});return n.push(u),u}function o(a){return n.find(l=>a(l))||null}return{query:s,find:o,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function mA(){}const nb=Object.create(null);function Pie(e){if(!nb[e]){const t=C_(e);if(!t)return;const n=k2(t),r={config:t,redundancy:n};nb[e]=r}return nb[e]}function x2(e,t,n){let r,s;if(typeof e=="string"){const o=yw(e);if(!o)return n(void 0,424),mA;s=o.send;const i=Pie(e);i&&(r=i.redundancy)}else{const o=vE(e);if(o){r=k2(o);const i=e.resources?e.resources[0]:"",a=yw(i);a&&(s=a.send)}}return!r||!s?(n(void 0,424),mA):r.query(t,s,n)().abort}function gA(){}function Lie(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Tie(e)}))}function Nie(e){const t=[],n=[];return e.forEach(r=>{(r.match(h2)?t:n).push(r)}
1519),{valid:t,invalid:n}}function zd(e,t,n){function r(){const s=e.pendingIcons;t.forEach(o=>{s&&s.delete(o),e.icons[o]||e.missing.add(o)})}if(n&&typeof n=="object")try{if(!v2(e,n).length){r();return}}catch(s){console.error(s)}r(),Lie(e)}function vA(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Die(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:n,prefix:r}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const o=e.loadIcon;if(e.loadIcons&&(s.length>1||!o)){vA(e.loadIcons(s,r,n),u=>{zd(e,s,u)});return}if(o){s.forEach(u=>{const d=o(u,r,n);vA(d,f=>{const h=f?{prefix:r,icons:{[u]:f}}:null;zd(e,[u],h)})});return}const{valid:i,invalid:a}=Nie(s);if(a.length&&zd(e,a,null),!i.length)return;const l=r.match(h2)?yw(n):null;if(!l){zd(e,i,null);return}l.prepare(n,r,i).forEach(u=>{x2(n,u,d=>{zd(e,u.icons,d)})})}))}const T2=(e,t)=>{const n=Rie(e,!0,_2()),r=xie(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,gA)}),()=>{l=!1}}const s=Object.create(null),o=[];let i,a;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,o.push(Jl(c,u));const d=s[c]||(s[c]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=Jl(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),s[c][u].push(d))}),o.forEach(l=>{const c=s[l.provider][l.prefix];c.length&&Die(l,c)}),t?Aie(t,r,o):gA},Mie=e=>new Promise((t,n)=>{const r=typeof e=="string"?gp(e,!0):e;if(!r){n(e);return}T2([r||e],s=>{if(s.length&&r){const o=gE(r);if(o){t({...bd,...o});return}}n(e)})});function $ie(e,t,n){Jl("",t).loadIcons=e}function Fie(e,t){const n={...e};for(const r in t){const s=t[r],o=typeof s;r in y2?(s===null||s&&(o==="string"||o==="number"))&&(n[r]=s):o===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const Uie=/[\s,]+/;function Bie(e,t){t.split(Uie).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Vie(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/s,o%1===0?r(o):0)}}return t}function jie(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Hie(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function zie(e){return"data:image/svg+xml,"+Hie(e)}function qie(e){return'url("'+zie(e)+'")'}const _A={...b2,inline:!1},Wie={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Kie={display:"inline-block"},bw={backgroundColor:"currentColor"},C2={backgroundColor:"transparent"},yA={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},bA={webkitMask:bw,mask:bw,background:C2};for(const e in bA){const t=bA[e];for(const n in yA)t[e+n]=yA[n]}const $m={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";$m[e+"-flip"]=t,$m[e.slice(0,1)+"-flip"]=t,$m[e+"Flip"]=t});function wA(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const SA=(e,t)=>{const n=Fie(_A,t),r={...Wie},s=t.mode||"svg",o={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let m in t){const g=t[m];if(g!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[m]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&Bie(n,g);break;case"color":o.color=g;break;case"rotate":typeof g=="string"?n[m]=Vie(g):typeof g=="number"&&(n[m]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete r["aria-hidden"];break;default:{const v=$m[m];v?(g===!0||g==="true"||g===1)&&(n[v]=!0):_A[m]===void 0&&(r[m]=g)}}}const l=uie(e,n),c=l.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),s==="svg"){r.style={...o,...a},Object.assign(r,c);let m=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),r.innerHTML=pie(l.body,g?()=>g+"ID"+m++:"iconifyVue"),qe("svg",r)}const{body:u,width:d,height:f}=e,h=s==="mask"||(s==="bg"?!1:u.indexOf("currentColor")!==-1),p=jie(u,{...c,width:d+"",height:f+""});return r.style={...o,"--svg":qie(p),width:wA(c.width),height:wA(c.height),...Kie,...h?bw:C2,...a},qe("span",r)};_2(!0);w2("",kie);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";
1519typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!rie(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;S2(n,s)||console.error(r)}catch{console.error(r)}}}}const Gie={...bd,body:""},so=oe((e,{emit:t})=>{const n=G(null);function r(){n.value&&(n.value.abort?.(),n.value=null)}const s=G(!!e.ssr),o=G(""),i=vn(null);function a(){const c=e.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string")return o.value="",{data:c};let u;if(typeof c!="string"||(u=gp(c,!1,!0))===null)return null;let d=gE(u);if(!d){const p=n.value;return(!p||p.name!==c)&&(d===null?n.value={name:c}:n.value={name:c,abort:T2([u],l)}),null}r(),o.value!==c&&(o.value=c,Lt(()=>{t("load",c)}));const f=e.customise;if(f){d=Object.assign({},d);const p=f(d.body,u.name,u.prefix,u.provider);typeof p=="string"&&(d.body=p)}const h=["iconify"];return u.prefix!==""&&h.push("iconify--"+u.prefix),u.provider!==""&&h.push("iconify--"+u.provider),{data:d,classes:h}}function l(){const c=a();c?c.data!==i.value?.data&&(i.value=c):i.value=null}return s.value?l():Ut(()=>{s.value=!0,l()}),be(()=>e.icon,l),qn(r),()=>{const c=i.value;if(!c)return SA(Gie,e);let u=e;return c.classes&&(u={...e,class:c.classes.join(" ")}),SA({...bd,...c.data},u)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]}),EA={getAPIConfig:C_,setAPIModule:w2,sendAPIQuery:x2,setFetch:vie,getFetch:_ie,listAPIProviders:mie},Yie=nt({name:"@nuxt/icon",setup(){const e=Or(),t=Lr().icon;EA.setFetch($fetch.native);const n=[];if(t.provider==="server"){const s=e.app?.baseURL?.replace(/\/$/,"")??"";n.push(s+(t.localApiEndpoint||"/api/_nuxt_icon")),(t.fallbackToApi===!0||t.fallbackToApi==="client-only")&&n.push(t.iconifyApiEndpoint)}else t.provider==="none"?EA.setFetch(()=>Promise.resolve(new Response)):n.push(t.iconifyApiEndpoint);async function r(s,o){try{const i=await $fetch(n[0]+"/"+o+".json",{query:{icons:s.join(",")}});if(!i||i.prefix!==o||!i.icons)throw new Error("Invalid data"+JSON.stringify(i));return i}catch(i){return console.error("Failed to load custom icons",i),null}}S2("",{resources:n});for(const s of t.customCollections||[])s&&$ie(r,s)}}),Xie=/#/g,Qie=/&/g,Zie=/\//g,Jie=/=/g,_E=/\+/g,eae=/%5e/gi,tae=/%60/gi,nae=/%7c/gi,rae=/%20/gi;function sae(e){return encodeURI(""+e).replace(nae,"|")}function ww(e){return sae(typeof e=="string"?e:JSON.stringify(e)).replace(_E,"%2B").replace(rae,"+").replace(Xie,"%23").replace(Qie,"%26").replace(tae,"`").replace(eae,"^").replace(Zie,"%2F")}function rb(e){return ww(e).replace(Jie,"%3D")}function A2(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function oae(e){return A2(e.replace(_E," "))}function iae(e){return A2(e.replace(_E," "))}function R2(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=oae(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=iae(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function aae(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${rb(e)}=${ww(n)}`).join("&"):`${rb(e)}=${ww(t)}`:rb(e)}function lae(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>aae(t,e[t])).filter(Boolean).join("&")}const cae=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,uae=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,dae=/^([/\\]\s*){2,}[^/\\]/,fae=/\/$|\/\?|\/#/,hae=/^\.?\//;function Hu(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?cae.test(e):uae.test(e)||(t.acceptRelative?dae.test(e):!1)}function Sw(e="",t){return t?fae.test(e):e.endsWith("/")}function I2(e="",t){if(!t)return(Sw(e)?e.slice(0,-1):e)||"/";if(!Sw(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function O2(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Sw(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function P2(e,t){if(pae(t)||Hu(e))return e;const n=I2(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return A_(n,e)}function L2(e,t){const n=D2(e),r={...R2(n.search),...t};return n.search=lae(r),gae(n)}function pae(e){return!e||e==="/"}function mae(e){return e&&e!=="/"}function A_(e,...t){let n=e||"";for(const r of t.filter(s=>mae(s)))if(n){const s=r.replace(hae,"");n=O2(n)+s}else n=r;return n}const N2=Symbol.for("ufo:protocolRelative");function D2(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Hu(e,{acceptRelative:!0}))return ev(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=ev(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:c,hash:u,[N2]:!r}}function ev(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function gae(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?""
1519:"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[N2]?(e.protocol||"")+"//":"")+s+o+t+n+r}function vae(e,t=e.getCurrentLanguage(),n=e.getCurrentDirection()){const r={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(r.htmlAttrs.dir=n),e.lang&&t&&(r.htmlAttrs.lang=t),e.seo){const s=e.strictCanonicals?e.getRouteWithoutQuery():void 0,o=yae(e,s),i=yE(e,s);r.link=r.link.concat(o,wae(e,i)),r.meta=r.meta.concat(Sae(e,i),Eae(e),xae(e,kae(e,o)))}return r}function _ae(e){const t=new Map;for(const n of e){if(!n.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[r,s]=n.language.split("-");r&&s&&(n.isCatchallLocale||!t.has(r))&&t.set(r,n),t.set(n.language,n)}return t}function yae(e,t=e.strictCanonicals?e.getRouteWithoutQuery():void 0){if(!e.hreflangLinks)return[];const n=[],r=_ae(e.locales),s=new Map;for(const[o,i]of r.entries()){const a=s.get(i.code)??bae(i.code,e,t);if(!a)continue;s.set(i.code,a);const l=e.strictSeo?{rel:"alternate",href:a,hreflang:o}:{[e.key]:`i18n-alt-${o}`,rel:"alternate",href:a,hreflang:o};n.push(l),e.defaultLocale&&e.defaultLocale===i.code&&n[0].hreflang!=="x-default"&&n.unshift(e.strictSeo?{rel:"alternate",href:a,hreflang:"x-default"}:{[e.key]:"i18n-xd",rel:"alternate",href:a,hreflang:"x-default"})}return n}function bae(e,t,n=t.strictCanonicals?t.getRouteWithoutQuery():void 0){const r=t.getLocalizedRoute(e,n);if(r)return L2(P2(r,t.baseUrl),t.strictCanonicals?M2(t):{})}function yE(e,t=e.strictCanonicals?e.getRouteWithoutQuery():void 0){const n=e.getLocalizedRoute(e.currentLocale,t);return n?L2(P2(n,e.baseUrl),M2(e)):""}function wae(e,t=yE(e)){return t?[e.strictSeo?{rel:"canonical",href:t}:{[e.key]:"i18n-can",rel:"canonical",href:t}]:[]}function M2(e,t=e.getCurrentRoute()){if(!e.canonicalQueries.length)return{};const r=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},s={};for(const o of e.canonicalQueries.filter(i=>i in r)){s[o]??=[];for(const i of Tae(r[o]))s[o].push(i||"")}return s}function Sae(e,t=yE(e)){return t?[e.strictSeo?{property:"og:url",content:t}:{[e.key]:"i18n-og-url",property:"og:url",content:t}]:[]}function Eae(e,t=e.getCurrentLanguage()){return t?[e.strictSeo?{property:"og:locale",content:tv(t)}:{[e.key]:"i18n-og",property:"og:locale",content:tv(t)}]:[]}function kae(e,t){const n=e.locales.map(s=>s.language||s.code);if(!e.strictSeo)return n;const r=new Set(t.map(s=>s.hreflang));return n.filter(s=>r.has(s))}function xae(e,t,n=e.getCurrentLanguage()){return t.filter(s=>s&&s!==n).map(s=>e.strictSeo?{property:"og:locale:alternate",content:tv(s)}:{[e.key]:`i18n-og-alt-${s}`,property:"og:locale:alternate",content:tv(s)})}function tv(e=""){return e.replace(/-/g,"_")}function Tae(e){return Array.isArray(e)?e:[e]}function $2(e,t,n=e.getLocale()){if(ye(t)&&Hu(t,{acceptRelative:!0}))return t;try{return U2(e,t,n).fullPath}catch{return""}}function F2(e,t,n=e.getLocale()){try{return U2(e,t,n)}catch{return}}function Cae(e){if(!ye(e))return gn({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=ev(e);return{path:t,query:R2(n),hash:r}}return{name:e}}function U2(e,t,n){const r=Cae(t),s=e.resolveLocalizedRouteObject(r,n);s.name&&(s.path=void 0);const o=e.router.resolve(s);return o.name?o:e.router.resolve(t)}function B2(e,t,n=e.router.currentRoute.value){const r=e.getRouteBaseName(n);if(!r)return"";const s={name:r,params:gn({},n.params,e.getLocalizedDynamicParams(t)),fullPath:n.fullPath,query:n.query,hash:n.hash,meta:n.meta},o=$2(e,s,t);return e.afterSwitchLocalePath(o,t)}function Aae(e,t,n=e.getLocale(),r=e.getLocales(),s=e.routingOptions.domains?e.getBaseUrl(n):e.getBaseUrl()){const o=r.find(l=>l.code===n)||{},i=[...new Set(typeof t.seo=="object"&&t.seo?.canonicalQueries||[])],a={...e,afterSwitchLocalePath:e.getAlternatePath};
1519if(!s&&!e.routingOptions.domains){if(e.strictSeo)throw new Error("I18n `baseUrl` is required to generate valid SEO tag links.");console.warn("I18n `baseUrl` is required to generate valid SEO tag links.")}return{...t,key:e.strictSeo?"key":"id",strictSeo:e.strictSeo,locales:r,currentLocale:n,baseUrl:s,canonicalQueries:i,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.strictSeo||e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>o.language,getCurrentDirection:()=>o.dir||"ltr",getLocaleRoute:l=>F2(e,l),getLocalizedRoute:(l,c)=>B2(a,l,c),getRouteWithoutQuery:()=>{try{return gn({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function Rae(e,{dir:t=!0,lang:n=!0,seo:r=!0}){return vae(Aae(e,{dir:t,lang:n,seo:r}))}function Iae(e=0){return t=>{const s=(typeof t=="string"?t:t.pathname).split("?")[0].split("/");return s[0]===""&&s.shift(),s.length>e&&s[e]||""}}const Ch="___",Oae="default",Pae=Ch+Oae;function Ew(e){return typeof e=="string"?e:e!=null?e.toString():""}function sb(e){return Ew(typeof e=="object"?e?.name:e).split(Ch)[0]}function kA(e,t,n){return n?e+Ch+t+Pae:e+Ch+t}const Lae=e=>e?O2:I2;function Nae(e,t,n){return n.routing&&(e!==t||n.strategy==="prefix")}const Dae=Iae(0),nv=e=>Dae(e),Mae=e=>e.split(Ch).at(1)??"";function $ae(e){return String(typeof e!="object"?e:e?.name||e?.path||"")}function Fae(e){const t=$ae(e);if(t[0]==="/")return nv(t);const n=Mae(t);return n||(typeof e=="object"&&e?.path?nv(String(e.path)):"")}function Uae(e,t){return!t.routing&&!t.domains?n=>Ew(n):(n,r)=>{const s=Ew(n),o=kA(s,r,!0);return e(o)?o:kA(s,r,!1)}}function Bae(e,t){return t.routing?t.strategy==="prefix"?(n,r)=>{const s="/"+r+(n.path==="/"?"":n.path),o=e.options.routes.find(i=>i.path===s);return o!=null?e.resolve(gn({},n,o,{path:s})):n}:n=>e.resolve(n):n=>n}const Ah=["es","es-CL","es-MX","pt-BR","en","en-MX"],Af={es:[{key:"locale_es_46json_5ffa144c",load:()=>Promise.resolve({}),cache:!0}],"es-CL":[{key:"locale_es_46json_5ffa144c",load:()=>Promise.resolve({}),cache:!0},{key:"locale_es_45CL_46json_55631a25",load:()=>Promise.resolve({}),cache:!0}],"es-MX":[{key:"locale_es_46json_5ffa144c",load:()=>Promise.resolve({}),cache:!0},{key:"locale_es_45MX_46json_0f1d6b65",load:()=>Promise.resolve({}),cache:!0}],"pt-BR":[{key:"locale_pt_45BR_46json_26765e92",load:()=>Promise.resolve({}),cache:!0}],en:[{key:"locale_en_46json_6e73d2ff",load:()=>Promise.resolve({}),cache:!0}],"en-MX":[{key:"locale_en_46json_6e73d2ff",load:()=>Promise.resolve({}),cache:!0},{key:"locale_en_45MX_46json_c41f6d05",load:()=>Promise.resolve({}),cache:!0}]},Vae=[()=>ce(()=>import("./D5nvvk55.js"),[],import.meta.url)],pc=[{code:"es",language:"es",name:"Español",domains:[],defaultForDomains:[]},{code:"es-CL",language:"es-CL",name:"Español (Chile)",domains:[],defaultForDomains:[]},{code:"es-MX",language:"es-MX",name:"Español (México)",domains:[],defaultForDomains:[]},{code:"pt-BR",language:"pt-BR",name:"Português (Brasil)",domains:[],defaultForDomains:[]},{code:"en",language:"en",name:"English",domains:[],defaultForDomains:[]},{code:"en-MX",language:"en-MX",name:"English (Mexico)",domains:[],defaultForDomains:[]}],mc=(e="")=>e.replace(/^https?:\/\//i,"").toLowerCase();function Rh(e,t){return!!e?.domains.some(n=>mc(n)===t)}function jae(e,t,n){const r=e.find(s=>s.code===n);return!r?.domains.length||Rh(r,t)?"here":e.some(s=>Rh(s,t))?"other-domain":"off-host"}function V2(e,t,n){return jae(e,t,n)!=="other-domain"}const j2=e=>e?.defaultForDomains[0]||e?.domain||e?.domains[0];function Hae(e,t,n){if(!V2(n,e,t))return j2(n.find(r=>r.code===t))}function zae(e,t,n){const r=e.filter(s=>Rh(s,t));return(r.find(s=>s.code===n)||r.find(s=>s.defaultForDomains.some(o=>mc(o)===t))||r[0])?.code}function qae(e,t){const n=t.replace(/^\./,"").replace(/:\d+$/,"").toLowerCase();return e.every(r=>r.domains.concat(r.domain||[]).every(s=>{const o=mc(s).replace(/:\d+$/,"");return o===n||o.endsWith("."+n)}))}const H2=(e,t)=>
1519Hu(e,{strict:!0})?e:t.protocol+"//"+e;function Wae(e,t,n,r=pc){const s=r.find(i=>i.code===n),o=e?.[n]?.domain||s?.domain||s?.domains.find(i=>mc(i)===t.host)||Hae(t.host,n,r);if(o)return H2(o,t)}function Kae(e,t,n=pc){let r;for(const s of n){const o=rv(s,e);for(const i of[o.domain,...o.domains])!i||mc(i)!==t.host||(!r||!Hu(r,{strict:!0})&&Hu(i,{strict:!0}))&&(r=i)}return r&&H2(r,t)}function rv(e,t){if(typeof e=="string")return e;const n=e,r=t[n.code]?.domain;return!r||r===n.domain?e:{...n,domain:r,domains:[r],defaultForDomains:n.defaultForDomains.length?[r]:[]}}function Gae(e){const t={};for(const n of Ah){const r=Yae(e,[n]),s=Xae(n,r);t[n]={fallbacks:r,cacheable:s}}return t}function Yae(e,t){if(e===!1)return[];if(en(e))return e;let n=[];if(ye(e))return t.every(s=>s!==e)&&n.push(e),n;const r=[...t,"default"];for(const s of r)s in e&&(n=[...n,...e[s].filter(Boolean)]);return n}function xA(e){return Af[e]!=null&&Af[e].every(t=>t.cache!==!1)}function Xae(e,t){return xA(e)&&t.every(n=>xA(n))}function Qae(e,t=pc){return t.find(n=>n.defaultForDomains.some(r=>mc(r)===e))?.code}function z2(e,t,n=pc){const r=Qae(e,n)||t;return r||(n.some(s=>s.domains.length)?n[0]?.code:"")||""}const Ll=e=>Ah.includes(e||""),TA=e=>Ll(e)?e:void 0,Zae=e=>!!e.path&&!e.name;function Jae(e){const{router:t,defaultLocale:n,strictSeo:r,compactRoutes:s}=e,o={strategy:e.strategy,routing:e.routing,domains:e.domains},i=Lae(e.trailingSlash),a=Uae(y=>t.hasRoute(y),o);function l(y,w){y.name=sb(y.name||t.currentRoute.value);const S=a(y.name,w);if(t.hasRoute(S))y.name=S,s&&y.params&&delete y.params.locale;else if(s&&Ll(w)&&d().has(y.name))return y.params={...y.params||{},locale:w},y;return y.name=S,y}const c=Bae(t,o);let u;function d(){if(u)return u;if(u=new Set,s)for(const y of t.getRoutes())y.name!=null&&/^\/:locale\(/.test(y.path)&&u.add(String(y.name));return u}function f(y,w){const S=c(y,w),E=sb(S);if(E){const x=a(E,w);if(t.hasRoute(x)){S.name=x;const T=S;return s&&T.params&&delete T.params.locale,S}if(s&&d().has(E)){const T=S;return T.name=E,T.params={...T.params||{},locale:w},T}return S.name=x,S}return Nae(w,n,o)&&(S.path="/"+w+S.path),S.path=i(S.path,!0),S}const h=()=>t.currentRoute.value.meta.nuxtI18nInternal??{},p=(y,w=h())=>r&&!!y&&Object.keys(w).length>0&&!w[y],m=o.strategy==="prefix_except_default"||o.strategy==="prefix_and_default",g=(y,w,S)=>!!y&&z2(mc(y),e.configuredDefaultLocale,S)===w,v=y=>(w,S,E,x)=>{const T=y(S);return T?(m&&g(j2(E),S,x)&&nv(w)===S&&(w=w.slice(S.length+1)||"/"),A_(T,w)):w},b=v(e.getBaseUrl),_=v(e.getCanonicalBaseUrl);return{router:t,getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:sb,getRouteLocalizedParams:h,getLocalizedDynamicParams:y=>{const w=e.getLocalePathPayload?.();return w?w[y]||{}:h()?.[y]},afterSwitchLocalePath:(y,w)=>{if(p(w))return"";if(!o.domains)return y;const S=e.getHost()??"",E=e.getLocales(),x=E.find(T=>T.code===w);return Rh(x,S)||!y?y:b(y,w,x,E)},getAlternatePath:(y,w)=>{if(w!==e.getLocale()&&p(w))return"";if(!o.domains||!y)return y;const S=e.getLocales();return _(y,w,S.find(E=>E.code===w),S)},resolveLocalizedRouteObject:(y,w)=>Zae(y)?f(y,w):l(y,w)}}function R_(e){const t=e?._nuxtI18n?.composableCtx;if(!t)throw new Error("i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.");return t}function ele(e,t=De()){const n=tle(t);return{...Jae({router:Hn(),defaultLocale:e.getDefaultLocale(),configuredDefaultLocale:e.config.defaultLocale||"",getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getCanonicalBaseUrl:e.getCanonicalBaseUrl,getHost:()=>FS().host,getLocalePathPayload:()=>!1,strategy:"no_prefix",routing:!1,domains:!1,trailingSlash:!1,strictSeo:!1,compactRoutes:!1}),strictSeo:!1,_head:void 0,get head(){return this._head??=Qv({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:typeof e.config.experimental.strictSeo=="object"&&e.config.experimental.strictSeo||!1},localePathPayload:n,routingOptions:{defaultLocale:e.config.defaultLocale||"",domains:!1,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!1}}}function tle(e=De()){const t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||"{}")}function CA(e=De()){const t=R_(e);return n=>{if(n!=null)return t.getRouteBaseName(n)||void 0}}function nle(e=De()){const t=R_(e);return(n,r)=>$2(t,n,r)}function rle(e=De()){const t=R_(e);return(n,r)=>F2(t,n,r)}function q2(e=De()){const t=R_(e);return n=>B2(t,n)}function I_(e,t){return e?e.$config.public.i18n:Or().public.i18n}function bE(e){const t=I_(e).detectBrowserLanguage,n=t||{};
1519return{...n,enabled:!!t,cookieKey:n.cookieKey||"i18n_redirected"}}function sle(e){if(e)return{path:"/"+(ye(e)?e:e.path).replace(/^\//,""),code:!ye(e)&&e.statusCode||302}}const ole={"&":"&",'"':""","'":"'","<":"<",">":">"};function ile(e){return e.replace(/["'&<>]/g,t=>ole[t])}const AA="nuxt-i18n-slp",ale=new RegExp([`<!--${AA}-\\[(\\w+)\\]-->`,".+?",`<!--/${AA}-->`].join(""),"g"),lle=nt({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){const t=De(e._id),n=q2(t);t.hook("app:rendered",r=>{r.renderResult?.html!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(ale,(s,o)=>{const i=ile(n(o??""));return s.replace(/href="([^"]+)"/,()=>`href="${i||"#"}" `)}))})}}),W2=new Map;function kw(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(kw);const t=Tt(null);for(const n of Object.keys(e))t[n]=kw(e[n]);return t}const cle=VP((e,t,n)=>{if(t==="messages"||t==="datetimeFormats"||t==="numberFormats")return e[t]??=Tt(null),iu(n,e[t]),!0});async function ule(e){const t=De();let n={messages:Tt(null)};for(const r of e){const s=await r().then(i=>K2(i)?i.default:i),o=Wt(s)?await t.runWithContext(()=>s()):s;n=cle(Tt(null),o,n)}return n.fallbackLocale??=!1,n}const K2=e=>Jv(e)==="[object Module]";async function dle(e,t){const n=De();try{const r=await n.runWithContext(t.load).then(s=>K2(s)?s.default:s);return Wt(r)?await n.runWithContext(()=>r(e)):r}catch(r){throw new Error(`Failed loading locale (${e}): `+r.message,{cause:r})}}async function fle(e,t=[]){const n=De(),r=await Promise.all(t.map(async o=>{const i=hle(o),a=i||await n.runWithContext(()=>dle(e,o));return!i&&o.cache!==!1&&W2.set(o.key,{ttl:Date.now()+86400*1e3,value:a}),a})),s={};for(const o of r)iu(o,s);return s}function hle(e){if(e.cache===!1)return;const t=W2.get(e.key);if(t!=null)return t.ttl>Date.now()?t.value:void 0}function ple(e){return t=>!e.dynamic.includes(t)&&!e.undeliverable.includes(t)}function mle(e){return t=>e.undeliverable.includes(t)||e.dynamic.includes(t)&&e.ssg}function wE(e){return e!=null&&"global"in e&&"mode"in e?e.global:e}function Xp(e){const t=wE(e);return"__composer"in t?t.__composer:t}var G2=[],gle={es:"f4a02919","es-CL":"f4a02919","es-MX":"f4a02919","pt-BR":"f4a02919",en:"f4a02919","en-MX":"f4a02919"},Y2=[];const X2=()=>dr("i18n:cached-locale-configs",()=>{}),Q2=()=>dr("i18n:resolved-locale",()=>"");function vle(e,t){const n=!Wt(t)&&D2(t).protocol;return n?{host:e.host,protocol:n}:e}function _le(e){const{baseUrl:t,appBase:n,domains:r,getDomainForHost:s,getDomainFromLocale:o}=e,i=Wt(t)?t:()=>r&&s()||t||"";return a=>A_(a&&o(a)||i(),n)}function yle({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:n,cookieKey:r}){const s=new Date;return XN(r||"i18n_redirected",{path:"/",readonly:!1,expires:new Date(s.setDate(s.getDate()+365)),sameSite:e?"none":"lax",domain:t||void 0,secure:e||n})}const ble=ple({dynamic:G2,undeliverable:Y2});function wle(e,t,n,r=!1){const s=wE(t),o=I_(e),i=bE(e),a=X2(),l=yle(i),c=new Set,u=E=>a.value[E];let d;const f=()=>d??=vle(FS(),o.baseUrl),h=E=>Wae(o.domainLocales,f(),E),p={baseUrl:Wt(o.baseUrl)?()=>o.baseUrl(e):o.baseUrl,appBase:e.$config.app.baseURL,domains:!1,getDomainForHost:()=>Kae(o.domainLocales,f())},m=_le({...p,getDomainFromLocale:h}),g=m,v=Q2(),b=mle({ssg:!1,dynamic:G2,undeliverable:Y2}),_=E=>"",y=async E=>{if(!(E in Af))return;const x=await e.runWithContext(()=>fle(E,Af[E])),T=r?kw(x):x;s.mergeLocaleMessage(E,T)},w=async E=>{if(!(E in Af))return;const x=P=>Object.keys(P).filter(q=>!S.usesRuntimeLoaders(q)),T=u(E)?.cacheable?{}:{"Cache-Control":"no-cache"},O=A_(_(),"/i18n-messages",gle[E],E,"messages.json"),z=await $fetch(O,{headers:T});for(const P of x(z))s.mergeLocaleMessage(P,z[P])},S={vueI18n:t,initial:!0,preloaded:!1,config:o,rootRedirect:sle(o.rootRedirect),redirectStatusCode:o.redirectStatusCode??302,usesRuntimeLoaders:E=>b(E),getDefaultLocale:()=>n,getLocale:()=>C(s.locale),setLocale:async E=>{const x=S.getLocale();E===x||!Ll(E)||(et(s.locale)?s.locale.value=E:s.locale=E,await e.callHook("i18n:localeSwitched",{newLocale:E,oldLocale:x}),v.value=E)},setLocaleSuspend:async E=>
1519{Ll(E)&&(S.vueI18n.__pendingLocale=E,S.vueI18n.__pendingLocalePromise=new Promise(x=>{S.vueI18n.__resolvePendingLocalePromise=async()=>{S.setCookieLocale(E),await S.setLocale(E),S.vueI18n.__pendingLocale=void 0,x()}}),(e.isHydrating||!S.config.skipSettingLocaleOnNavigate)&&await S.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>C(s.locales).map(E=>ye(E)?{code:E,domains:[],defaultForDomains:[]}:E),setCookieLocale:E=>{i.useCookie&&Ll(E)&&(l.value=E)},getBaseUrl:m,getCanonicalBaseUrl:g,loadMessages:async E=>{if(!(e.isHydrating&&c.has(E)))try{const x=u(E)?.fallbacks??[],T=x.includes(E)?x:[...x,E];if(!T.some(O=>S.usesRuntimeLoaders(O)))return await w(E);for(const O of T)try{await(S.usesRuntimeLoaders(O)?y(O):w(O))}catch(z){console.warn(`Failed to load messages for locale "${O}"`,z)}}catch(x){console.warn(`Failed to load messages for locale "${E}"`,x)}finally{c.add(E)}},composableCtx:void 0};return S.composableCtx=ele(S,e),S}function SE(e){if(e._nuxtI18n==null)throw new Error("Nuxt I18n context has not been set up yet.");return e._nuxtI18n}function Sle(e,t){const n=[];for(const[r,s]of t.entries()){const o=e.find(i=>i.language?.toLowerCase()===s.toLowerCase());if(o){n.push({code:o.code,score:1-r/t.length});break}}for(const[r,s]of t.entries()){const o=s.split("-")[0].toLowerCase(),i=e.find(a=>a.language?.split("-")[0].toLowerCase()===o);if(i){n.push({code:i.code,score:.999-r/t.length});break}}return n}function Ele(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function kle(e,t){return Sle(e.map(r=>({code:r.code,language:r.language||r.code})),t).sort(Ele).at(0)?.code??""}const xle=(e,t)=>XN(t).value||void 0,Tle=(e,t)=>Fae(t),Cle=e=>kle(pc,navigator.languages),Ale=e=>new URL(window.location.href).host,Rle=e=>{const t=document.referrer;try{return t&&new URL(t).host||void 0}catch{return}},Ile=e=>pc.map(t=>rv(t,e)),Z2=(e,t,n)=>{const r=I_(n);let s,o;const i=()=>s??=Ale(),a=()=>o??=Ile(r.domainLocales);return{cookie:()=>xle(e,t.cookieKey),header:()=>{},navigator:()=>Cle(),host:l=>zae(a(),i(),nv(l)),route:l=>Tle(e,l),onHost:l=>!l||V2(a(),i(),l)?l:void 0,fromOwnDomain:()=>{const l=Rle();return!!l&&a().some(c=>Rh(c,l))},cookieSpans:()=>!!t.cookieDomain&&qae(a(),t.cookieDomain)}};function Ole(e){const{detection:t}=e,n=e.isSupportedLocale??Ll;function r(s,o){return!1}return function(o,i,a){const l=ye(i)?ev(i).pathname:i.path,u=f=>f;function*d(){const f=a&&t.enabled&&!r(l,o.route(l));if(f){const h=u,p=u;yield h(o.cookie()),yield p(o.header()),yield p(o.navigator())}f&&(yield u(t.fallbackLocale))}for(const f of d())if(f&&n(f))return f;return""}}async function J2(e,t){const n=SE(e),r=n.getLocale();if(t===r&&!n.initial&&(!n.vueI18n.__pendingLocale||n.vueI18n.__pendingLocale===t))return t;const s={oldLocale:r,newLocale:t,initialSetup:n.initial,context:e};let o=await e.callHook("i18n:beforeLocaleSwitch",s);return o!=null,o??=s.newLocale,Ll(o)&&(t=o),await n.loadMessages(t),await n.setLocaleSuspend(t),t}function Ple(e,t){const n=bE(e),r=Z2(void 0,n,e),s=SE(e);return Ole({detection:n})(r,t,s.initial)||s.getLocale()||s.getDefaultLocale()||""}const Lle=nt({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,n;const r=De(e._id),s=SE(r),o=Q2();[t,n]=or(()=>r.runWithContext(()=>J2(r,s.initial&&o.value||Ple(r,r.$router.currentRoute.value)))),await t,n()}}),Nle=nt({name:"i18n:plugin:preload",dependsOn:["i18n:plugin"],async setup(e){}});function Dle(e,{extendComposer:t,extendComposerInstance:n}){const r=Ji(),s=e.install.bind(e);e.install=(o,...i)=>{const a=gn({},i[0]);a.__composerExtend=c=>(n(c,Xp(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=c=>(n(c,Xp(c)),()=>{})),Reflect.apply(s,e,[o,a]);const l=Xp(e);if(r.run(()=>{t(l),e.mode==="legacy"&&"__composer"in e.global&&n(e.global,Xp(e.global))}),e.mode==="composition"&&o.config.globalProperties.$i18n!=null&&n(o.config.globalProperties.$i18n,l),o.unmount){const c=o.unmount.bind(o);o.unmount=()=>{r.stop(),c()}}}}const Mle=async e=>{const t=await ule(Vae);t.locale=e||t.locale||"en-US",t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(const n of Ah)t.messages[n]??={};return t};var $le={es:"f4a02919","es-CL":"f4a02919","es-MX":"f4a02919","pt-BR":"f4a02919",en:"f4a02919","en-MX":"f4a02919"};const Fle=nt({name:"i18n:plugin",parallel:!1,async setup(e){let t,n;Object.defineProperty(e.versions,"nuxtI18n",{get:()=>"10.6.0"});const r=De(e._id),s=I_(r),o=r.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,i=z2(FS().host,s.defaultLocale),a=o||([t,n]=or(()=>Mle(i)),t=await t,n(),t),l=X2();l.value??=Gae(a.fallbackLocale),Ah.filter(ble).map(f=>`/i18n-messages/${$le[f]}/${f}/messages.json`);const c=cq(a),u=Z2(void 0,bE(r),r),d=wle(r,c,a.defaultLocale,!!a.flatJson);r._nuxtI18n=d,Dle(c,{extendComposer(f){f.locales=A(()=>s.locales.map(p=>rv(p,s.domainLocales))),f.localeCodes=A(()=>Ah);const h=G(d.getBaseUrl());f.baseUrl=A(()=>h.value),be(f.locale,()=>h.value=d.getBaseUrl()),f.strategy="no_prefix",f.localeProperties=A(()=>rv(pc.find(p=>p.code===f.locale.value)||{code:f.locale.value,domains:[],defaultForDomains:[]},s.domainLocales)),f.setLocale=async p=>{await J2(r,p),await r.runWithContext(()=>(r.$router.currentRoute.value,void 0))},f.loadLocaleMessages=d.loadMessages,f.differentDomains=!1,f.defaultLocale=a.defaultLocale,f.getBrowserLocale=()=>
1519TA(u.navigator()),f.getLocaleCookie=()=>TA(u.cookie()),f.setLocaleCookie=d.setCookieLocale,f.finalizePendingLocaleChange=async()=>{c.__pendingLocale&&await c.__resolvePendingLocalePromise?.()},f.waitForPendingLocaleChange=async()=>{await c?.__pendingLocalePromise}},extendComposerInstance(f,h){const p=[["locales",()=>h.locales],["localeCodes",()=>h.localeCodes],["baseUrl",()=>h.baseUrl],["strategy",()=>"no_prefix"],["localeProperties",()=>h.localeProperties],["setLocale",()=>m=>Reflect.apply(h.setLocale,h,[m])],["loadLocaleMessages",()=>m=>Reflect.apply(h.loadLocaleMessages,h,[m])],["differentDomains",()=>!1],["defaultLocale",()=>h.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(h.getBrowserLocale,h,[])],["getLocaleCookie",()=>()=>Reflect.apply(h.getLocaleCookie,h,[])],["setLocaleCookie",()=>m=>Reflect.apply(h.setLocaleCookie,h,[m])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(h.finalizePendingLocaleChange,h,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(h.waitForPendingLocaleChange,h,[])]];for(const[m,g]of p)Object.defineProperty(f,m,{get:g})}}),r.vueApp.use(c),Object.defineProperty(r,"$i18n",{get:()=>wE(c)}),r.provide("localeHead",f=>Rae(r._nuxtI18n.composableCtx,f)),r.provide("localePath",nle(r)),r.provide("localeRoute",rle(r)),r.provide("routeBaseName",CA(r)),r.provide("getRouteBaseName",CA(r)),r.provide("switchLocalePath",q2(r))}}),e$=e=>e?{journey_id:e}:{},lwe={atoa_batch_mx_recurring_pst:"/checkout/account-mx",boleto_bank_br_onetime_psp:"/checkout/boleto",boleto_br_onetime_pst:"/checkout/boleto",cards_batch_mx_recurring_pst:"/checkout/card",cards_br_onetime_pst:"/checkout/card",cards_br_recurring_pst:"/checkout/card",cards_cl_onetime_pst:"/checkout/card",cards_cl_recurring_pst:"/checkout/card",cash:"/checkout/cash-mx",cash_mx:"/checkout/cash-mx",cash_mx_psp:"/checkout/cash-mx",cash_mx_pst:"/checkout/cash-mx",codi:"/checkout/codi",direct_debit_cl:"/checkout/pac",pac_inscription:"/checkout/pac",payment_option_selection:"/checkout",payment_orchestration:"/checkout/card",payment_orchestration_onetime:"/checkout/card",pix_bank_br_automatic_psp:"/checkout/pix-banking-automatic",pix_bank_br_automatic_pst:"/checkout/pix-banking-automatic",pix_bank_br_onetime_psp:"/checkout/pix-banking",pix_br_onetime_psp:"/checkout/pix-openfinance-onetime",pix_br_onetime_pst:"/checkout/pix-banking",pix_br_recurring_psp:"/checkout/pix-openfinance-recurring",toku_card_on_file:"/checkout/card",toku_onetime:"/checkout/card",transbank_oneclick:"/checkout/transbank-oneclick",transbank_webpay_plus:"/checkout/transbank-webpay-plus",transfer_cl:"/checkout/transfer-cl",transfer_cl_psp:"/checkout/transfer-cl",transfer_cl_psp_wallet:"/checkout/transfer-cl",transfer_cl_pst:"/checkout/transfer-cl",transfer_mx_psp:"/checkout/transfer-mx",transfer_mx_pst:"/checkout/transfer-mx"},Fm=e=>{if(e!=null){if(Array.isArray(e)){const t=e[0];return t==null?void 0:String(t)}return String(e)}},cwe=e=>{if(e==null)return[];if(Array.isArray(e))return e.filter(r=>r!=null).map(r=>String(r).replace(/[[\]"']/g,"").trim()).filter(Boolean);const t=String(e);let n;try{n=decodeURIComponent(t)}catch{n=t}return n.replace(/[[\]"']/g,"").split(",").map(r=>r.trim()).filter(Boolean)},Ule=(e,t=["user","invoices","subscriptions"])=>{const n={};for(const[r,s]of Object.entries(e))r==="checkoutSession"||t.includes(r)||s==null||(n[r]=Array.isArray(s)?String(s[0]):String(s));return n},uwe=(e,t,n=["user","invoices","subscriptions"])=>{const r=Ule(e,n);return r.checkoutSession=t,r},Ble=e=>{const t=Fm(e.redirection),n=Fm(e.access_source)??Fm(e.accessSource),r={};return t!==void 0&&(r.redirection=t),n!==void 0&&(r.access_source=n),Object.keys(r).length>0?r:null},EE=()=>{const e=()=>kP()?.$tracking??null;return{track:(t,n,r)=>e()?.track(t,n,r),startScreen:t=>e()?.startScreen(t),identify:t=>e()?.identify(t),clearIdentity:()=>e()?.clearIdentity(),adoptBackendJourney:t=>e()?.adoptBackendJourney(t),journeyId:()=>e()?.getInternalContext().journeyId??null,counters:()=>e()?.counters()??null}},dwe=e=>Ble(e);function t$(e){return e??null}function n$(){if(typeof window>"u")return;const e=window.location.hostname;return{parent:new URLSearchParams(window.location.search).get("embedder")||e,window:e}}function fwe(e){const t={};for(const n of e.invoices??[]){const r=n.configured_product_name?.trim();r&&(t[n.id_subscription]=r)}for(const n of e.subscriptions??[]){const r=n.configured_product_name?.trim();r&&(t[n.id]=r)}return Object.keys(t).length?t:void 0}const Vle=15,jle=1e3*60*Vle,_s={all:["checkout-session"],detail:(e,t)=>[..._s.all,e,t]},kE=(e,t,n=!0)=>{const r=A(()=>Je(n)),s=A(()=>!!e.value&&!!t.value),o=A(()=>_s.detail(e.value??"",r.value)),{$portalGatewayApi:i}=De();return NS({queryKey:o,queryFn:async()=>!e.value||!t.value?null:i(`/v2/checkout-sessions/${e.value}/open?strict_invoice_mode_enabled=${r.value}`,{}),enabled:()=>s.value,staleTime:jle,retry:(a,l)=>l.status!==409&&a<3})},Hle=async e=>{if(!e)return null;const t=tl(),n=_s.detail(e,!1),r=t.getQueryData(n);if(r)return r;const{$portalGatewayApi:s}=De(),o=await s(`/v2/checkout-sessions/${e}/open?strict_invoice_mode_enabled=false`);return t.setQueryData(n,o),o},hwe=async e=>{const t=e.value??null;return Hle(t)},zle=e=>{const{$portalGatewayApi:t}=De(),{journeyId:n}=EE();return GN({mutationKey:[_s.all,"onetime"],mutationFn:async r=>{const s={flow_name:r.flowName,expiration_datetime:null,billing_data:{payment_engine:"saas",payment_frequency:"onetime",id_customer:r.customerId,ids_invoice:r.invoiceIds},additional_query_parameters:t$(r.additionalQueryParameters),customer_portal_session_id:r.customerPortalSessionId??null,host_properties:n$(),...r.productNames&&{product_names:r.productNames},...e$(n())};return t("/v2/checkout-sessions/saas",{method:"POST",headers:{"x-org-id":e.value??""},body:s})}})},qle=e=>{const{$portalGatewayApi:t}=De(),{journeyId:n}=EE();return GN({mutationKey:[_s.all,"recurring"],mutationFn:async r=>{const s={flow_name:r.flowName,expiration_datetime:null,billing_data:{payment_engine:"saas",payment_frequency:"recurring",id_customer:r.customerId,ids_subscription:r.subscriptionIds?.length?r.subscriptionIds:null},additional_query_parameters:t$(r.additionalQueryParameters),customer_portal_session_id:r.customerPortalSessionId??null,host_properties:n$(),...r.productNames&&{product_names:r.productNames},...e$(n())};return t("/v2/checkout-sessions/saas",{method:"POST",headers:{"x-org-id":e.value??""},body:s})}})},Wle=(e,t,n={})=>({...e.query,...t?{checkoutSession:t}:{},...n}),r$=e=>e==="/checkout"||e.startsWith("/checkout/"),pwe=async(e,t,n,r={})=>r$(e.path)?(await xr({path:`/checkout/operation-receipt/${t}`,query:Wle(e,n,r)}),!0):!1;function Kle(){const{data:e}=na(),t=(r,s)=>{const o=e.value;if(!s||!o?.attribute_as_product_id)return r;const i=o.attribute_as_product_id;return typeof s[i]=="string"?s[i]:r};return{resolveProductId:t,getResolvedProductId:r=>{if(r)return t(r.product_id,r.additional_metadata)}}}const O_=()=>{const e=na();return A(()=>e.data.value?.id_organization??null)},Qp=e=>Mi({statusMessage:"Checkout Error",data:{code:e?.code,title:e?.title,message:e?.message,isInfoError:e?.isInfoError??!1,type:e?.type,hidePrimaryButton:e?.hidePrimaryButton,primaryButtonText:e?.primaryButtonText,onClearError:e?.onClearError}}
1519),Gle={invoices_already_paid:"success",checkout_session_completed:"success",invoices_payment_in_progress:"none"},Yle=new Set(Object.keys(Gle)),Xle=["transfer-cl","transbank-oneclick","transbank-webpay-plus","operation-receipt","pending-multirol","bank-button-cl","wallet"],xE=e=>!Xle.some(t=>e.includes(t)),Qle=e=>{if(!(e.state==="open"&&e.mode==="PAYMENT"&&e.billing_data.payment_frequency==="onetime"))return!1;const n="invoices"in e.billing_data?e.billing_data.invoices:void 0;return!!n?.length&&n.every(({is_paid:r})=>r)},mwe=(e=G(null))=>{const{t}=uc(),n=Pr(),r=xE(n.path);e.value||(e=A(()=>n.query.checkoutSession));const s=O_(),{data:o,isLoading:i,suspense:a,isFetching:l,isSuccess:c,error:u,refetch:d}=kE(e,s,r),{resolveProductId:f}=Kle(),h=zle(s),p=qle(s),m=A(()=>o.value?.billing_data?.account),g=A(()=>{const fe=o.value?.billing_data;return fe&&"customer"in fe?fe.customer:void 0}),v=A(()=>o.value?.payment_options.filter(fe=>fe.payment_option_type==="internal")??[]),b=A(()=>v.value.map(fe=>fe.form.payment_processing_configuration)),_=A(()=>n.query.redirection||o.value?.redirection),y=A(()=>b.value.filter(fe=>fe.payment_processing_type==="toku_product")),w=A(()=>y.value.flatMap(fe=>fe.toku_products)),S=A(()=>y.value.filter(fe=>!!fe.price_changes&&fe.toku_products?.length).map(fe=>fe.toku_products??[]).flat()),E=A(()=>o.value?.billing_data.payment_frequency==="onetime"),x=A(()=>o.value?.billing_data.payment_frequency==="recurring"),T=A(()=>o.value?.billing_data.payment_engine),O=A(()=>({saas:"SAAS",on_demand:"GATEWAY",saas_multiple_customers:"SAAS_MULTIPLE_CUSTOMERS",saas_unrestricted_amount:"SAAS_UNRESTRICTED_AMOUNT"})[T.value]??void 0),z=A(()=>T.value==="saas"||T.value==="saas_multiple_customers"||T.value==="saas_unrestricted_amount"),P=A(()=>T.value==="saas_multiple_customers"),q=A(()=>T.value==="saas_unrestricted_amount"),X=A(()=>T.value==="on_demand"),J=A(()=>{const fe=o.value&&o.value.billing_data,K=z.value||P.value||q.value;return fe&&K&&E.value&&fe&&"invoices"in fe?fe.invoices:[]}),F=A(()=>{const fe=o.value?.billing_data,K=z.value||P.value;return fe&&K&&x.value&&"invoices"in fe?fe.invoices:[]}),Q=fe=>({...fe,product_id:f(fe.product_id,fe.additional_metadata)}),W=A(()=>{const fe=o.value?.billing_data,K=z.value||P.value;return fe&&K&&x.value&&"subscriptions"in fe?(fe.subscriptions??[]).map(Q):[]}),ee=A(()=>{if(W.value[0])return W.value[0];const fe=o.value?.billing_data,K=z.value||P.value;if(!(fe&&K&&x.value))return null;const ie="subscription"in fe?fe.subscription:null;return ie?Q(ie):null}),N=A(()=>(X.value||q.value)&&E.value&&o.value?.billing_data&&"amount"in o.value.billing_data?o.value.billing_data.amount:null),de=A(()=>o.value?.mode),pe=A(()=>de.value==="ENROLLMENT"),je=A(()=>de.value==="PAYMENT"),Re=A(()=>de.value==="SAVE_PAYMENT_INSTRUMENT"),Pe=A(()=>o.value?.external_id??null);be(u,fe=>{if(fe){if(fe.status===409){const K=fe.data?.code??"default";throw Qp({code:K,title:t("common.unexpectedError.title"),message:t(`checkout.errorCode.${K}`),isInfoError:Yle.has(K),hidePrimaryButton:!0})}else if(!o.value)throw Qp({title:t("common.unexpectedError.title"),message:t("common.unexpectedError.message"),hidePrimaryButton:!0})}});const Ie=dr("checkout/fullyPaidOnFirstLoad",()=>({})),Le=A(()=>!!o.value&&!!Ie.value[o.value.id_checkout_session]&&!n.path.includes("/checkout/wallet/")?Qp({code:"invoices_already_paid",message:t("checkout.errorCode.invoices_already_paid"),isInfoError:!0,hidePrimaryButton:!0}):null);return be(o,()=>{if(o.value&&Ie.value[o.value.id_checkout_session]===void 0&&(Ie.value[o.value.id_checkout_session]=Qle(o.value)),o.value?.state==="completed"&&!o.value?.is_receipt_redirection_disabled){if(!r$(n.path)||n.path.includes("/checkout/wallet/")||o.value?.mode==="SAVE_PAYMENT_INSTRUMENT"&&n.path.includes("/checkout/account-mx")||n.path.includes("/checkout/associate-payment-method/"))return;if(o.value?.mode==="ENROLLMENT"&&!o.value?.operation_id){xr({path:"/checkout/associate-payment-method/success",query:{...n.query,checkoutSession:o.value?.id_checkout_session}},{replace:!0});return}if(!o.value?.operation_id)throw Qp({title:t("common.unexpectedError.title"),message:t("checkout.errorCode.checkout_session_completed")});const K=`/checkout/operation-receipt/${o.value.operation_id}`;n.path!==K&&xr({path:K,query:{...n.query,checkoutSession:o.value?.id_checkout_session}},{replace:!0})}},{immediate:!0}),{session:o,suspense:a,isLoading:i,isFetching:l,refetch:d,openOnetimeSession:h,openRecurringSession:p,account:m,customer:g,isSuccess:c,tokuProducts:w,tokuProductsWithPriceChanges:S,isOnetime:E,isRecurring:x,invoices:J,recurringInvoices:F,subscription:ee,subscriptions:W,isSaas:z,isSaasMultipleCustomers:P,isSaasUnrestrictedAmount:q,isOnDemand:X,amount:N,paymentEngine:T,backendPaymentEngine:O,isEnrollment:pe,isPayment:je,isSavePaymentInstrument:Re,externalId:Pe,redirectionId:_,invoicesAlreadyPaidError:Le}},Zle=nt({name:"checkout-session-flow-name",dependsOn:["toku-vue-query","portal-gateway-api"],setup(e){const t=Pr(),n=O_(),r=A(()=>{const a=t.query.checkoutSession;
1519return typeof a=="string"?a:null}),{data:s}=kE(r,n,xE(t.path)),o=l_(),i=A(()=>DS(s.value?.flow_name,o.value));e.vueApp.provide(MS,i)}}),Rf=e=>{const t=e.query.checkoutSession;return typeof t=="string"&&t.length>0?t:Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0].length>0?t[0]:null},Jle=(e,t)=>Rf(e)===Rf(t)&&!!Rf(e),ece=(e,t)=>{if(!Jle(e,t))return!1;const n=t.path;return!!(n==="/checkout/combine-amount"||n==="/checkout/card"||n.startsWith("/checkout/card/")||n.startsWith("/checkout/operation-receipt")||n.startsWith("/checkout/pending-multirol"))};function s$(e){return{combine_enabled:e?.combine_enabled===!0,combine_active:e?.combine_active===!0}}const Ih={all:["combine-context"],detail:(e,t)=>[...Ih.all,e,t.combine_enabled,t.combine_active]},tce=1e3*15,nce=0,rce=1e3*60*30,gwe=(e,t,n,r=G(!0))=>{const{$portalGatewayApi:s}=De(),o=A(()=>s$(n.value));return NS({queryKey:A(()=>Ih.detail(e.value??"",o.value)),queryFn:async()=>{if(!e.value)return null;try{return await s(`/v2/checkout-sessions/${e.value}/combine-context`)}catch(a){const l=a;if((l?.status??l?.statusCode??0)===404)return null;throw a}},enabled:A(()=>!!e.value&&t.value),staleTime:nce,refetchInterval:A(()=>r.value?tce:!1),refetchIntervalInBackground:!0,refetchOnMount:!0,refetchOnWindowFocus:!0,refetchOnReconnect:!0,gcTime:rce,structuralSharing:!1})};function o$(e){return e==null||typeof e!="object"?!1:e.combine_active===!0}function vwe(e){if(e==null||typeof e!="object")return!1;const t=e;return t.combine_enabled===!0||t.combine_active===!0}function _we(e,t,n){return!!(e&&o$(t)&&n?.show_continue_button&&n?.all_paid!==!0)}function sce(e,t){if(!t)return!1;const n=e.getQueryData(_s.detail(t,!0)),r=e.getQueryData(_s.detail(t,!1));let s;if(r?.id_checkout_session===t?s=r:n?.id_checkout_session===t?s=n:s=r??n,!o$(s))return!1;const o=s$(s),i=e.getQueryData(Ih.detail(t,o));if(i!=null)return i.all_paid!==!0;const a=e.getQueriesData({queryKey:[...Ih.all,t]});let l=!1;for(const[,c]of a)if(c!=null&&(l=!0,c.all_paid===!0))return!1;return l}function ywe(e,t){if(!t)return!1;const n=e.getQueryData(_s.detail(t,!0)),r=e.getQueryData(_s.detail(t,!1));return n?.combine_active===!0||r?.combine_active===!0}async function oce(e,t){e.removeQueries({queryKey:[...Ih.all,t]}),e.removeQueries({queryKey:_s.detail(t,!0)}),await e.invalidateQueries({queryKey:_s.detail(t,!1),refetchType:"active"})}function bwe(e,t){e.resetQueries({queryKey:_s.detail(t,!0)}),e.resetQueries({queryKey:_s.detail(t,!1)})}function i$(e,t){const n=t.trim()||(typeof window>"u"?"":window.location.origin);if(n)try{return new URL(e,n).href}catch{return e}return e}function RA(e,t){return/^https?:\/\//i.test(e)?e:i$(e,t)}function ice(e,t,n){const r=e.trim(),s=n?.commerceHomeUrl?.trim(),o=a=>{try{const l=new URL(a,t||void 0),c=!t||l.origin===t;if(c&&l.pathname.startsWith("/checkout"))return{kind:"internal",fullPath:l.pathname+l.search+l.hash};const u=l.pathname;return c&&(u==="/"||u==="")&&s?{kind:"external",url:RA(s,t)}:{kind:"external",url:l.href}}catch{return{kind:"external",url:a}}};if(/^https?:\/\//i.test(r))return o(r);if(r.startsWith("/checkout"))return{kind:"internal",fullPath:r};const i=r.split("?")[0]?.split("#")[0]??r;return(i==="/"||i==="")&&s?{kind:"external",url:RA(s,t)}:{kind:"external",url:i$(r,t)}}const ace=Xv("combinePayment",()=>{const e=G({}),t=G([]),n=G({});return{amountBySessionId:e,payRemainingSessionIds:t,setAmount:(h,p)=>{e.value={...e.value,[h]:p},t.value=t.value.filter(m=>m!==h)},setPayRemainingForSession:h=>{const{[h]:p,...m}=e.value;e.value=m,t.value.includes(h)||(t.value=[...t.value,h])},isPayRemaining:h=>t.value.includes(h),isCombineMode:h=>e.value[h]!=null||t.value.includes(h),hasPartialCombineAmount:h=>e.value[h]!=null,setTtlExpiresAt:(h,p)=>{n.value[h]||(n.value={...n.value,[h]:p})},getTtlExpiresAt:h=>n.value[h]??null,clearAmount:h=>{const{[h]:p,...m}=e.value;e.value=m,t.value=t.value.filter(b=>b!==h);const{[h]:g,...v}=n.value;n.value=v},clearAll:()=>{e.value={},t.value=[],n.value={}}}}),lce=Xv("combineAbandonGuard",()=>{const e=tl(),t=G(!1),n=G(!1),r=G("idle"),s=G(null),o=G(null),i=G(null),a=G(!1),l=G(!1),c=G(null),u=G(null),d=y=>{for(const w of[!0,!1]){const E=e.getQueryData(_s.detail(y,w))?.checkout_config?.go_back_to_commerce_url;if(E)return E}return null},f=()=>{r.value="idle"},h=()=>{t.value=!1,s.value=null,u.value=null,o.value=null,i.value=null,l.value=!1,c.value=null,f()},p=async y=>{const{$portalGatewayApi:w}=De();try{return await w(`/v2/checkout-sessions/${y}/combine-refund`,{method:"POST",parseResponse:()=>null}),!0}catch(S){const E=S;return(E?.statusCode??E?.status??E?.response?.status??0)===409}},m=(y,w,S)=>{s.value=y,u.value=d(y),o.value=w,i.value=S?.trim()||null,f(),t.value=!0},g=()=>{a.value||h()},v=(y,w)=>
1519{t.value&&(a.value||r.value!=="idle")||(ds.addAction("combine_ttl_kickout",{checkoutSessionId:y}),s.value=y,u.value=d(y),l.value=!0,c.value=w,f(),t.value=!0)},b=()=>{n.value=!0;const y=o.value,w=i.value,S=u.value,E=l.value,x=c.value;if(ace().clearAll(),o.value=null,i.value=null,l.value=!1,c.value=null,f(),t.value=!1,s.value=null,u.value=null,E)return xr({path:"/checkout",query:x??void 0},{replace:!0});if(w){window.location.assign(w);return}if(y){const T=window.location.origin,O=ice(y.fullPath,T,{commerceHomeUrl:S??void 0});if(O.kind==="external"){window.location.href=O.url;return}return xr(O.fullPath)}window.history.back()};return{modalOpen:t,bypassNextNavigation:n,refundState:r,interceptingSessionId:s,commerceHomeUrl:u,combineTimerExpired:l,intercept:m,stayInCombineFlow:g,triggerCombineTimerExpiredRefund:v,completeAbandonNavigation:b,refundAndLeave:async()=>{const y=s.value;if(!(!y||a.value)){a.value=!0,r.value="loading";try{if(!await p(y)){ds.addAction("combine_refund_failed",{checkoutSessionId:y,trigger:l.value?"ttl_expired":"user_navigation"}),r.value="error";return}ds.addAction("combine_refund_completed",{checkoutSessionId:y,trigger:l.value?"ttl_expired":"user_navigation"});try{await oce(e,y)}catch{}b()}finally{a.value=!1}}},closeModal:h}}),cce=nt({name:"combine-payment-abandon-guard",dependsOn:["toku-vue-query"],setup(){const e=Hn(),t=tl();e.beforeEach((n,r)=>{const s=lce();if(s.bypassNextNavigation)return s.bypassNextNavigation=!1,!0;if(r.path===n.path&&JSON.stringify(r.query)===JSON.stringify(n.query))return!0;const o=Rf(r)||Rf(n);return!o||!sce(t,o)||ece(r,n)?!0:(s.intercept(o,n),!1)})}});function uce(){return Or().public["nuxt-scripts"]}function dce(e){return e.key||e.src||(typeof e.innerHTML=="string"?e.innerHTML:"")}function a$(e,t){e=typeof e=="string"?{src:e}:e,t=cc(t,uce()?.defaultScriptOptions);const n=String(dce(e)),r=De();if(t.head=t.head||BP(),!t.head)throw new Error("useScript() has been called without Nuxt context.");r.$scripts=r.$scripts||jn({}),r.$scripts?.[n],(t.trigger==="onNuxtReady"||t.trigger==="client")&&(t.warmupStrategy||(t.warmupStrategy="preload"),t.trigger==="onNuxtReady"&&(t.trigger=c_));const s=kj(e,t),o=s.remove;return s.remove=()=>(r.$scripts[n]=void 0,o()),r.$scripts[n]=s,s}const fce=nt(()=>{a$({src:"https://storage.googleapis.com/external-frontend-scripts/hotjar.js",integrity:"sha256-Wp6biH34ynSsoOq++FdGb0kE9B9hb4SlIPWWdOO96ZQ= sha384-nM5rpHFbOg/e7PgpMx1+Hui3sL+jCdDgDxswxLvUTkp6VkRGX3HuAhFZHnFxOLTm",crossorigin:"anonymous"})}),l$=Symbol("rumCheckoutCustomer"),hce=e=>{be(()=>Je(e),t=>{t?ds.setUser({id:t}):ds.clearUser()},{immediate:!0})},pce=nt({name:"rum-checkout-user",dependsOn:["datadog-rum","toku-vue-query","portal-gateway-api"],setup(e){const t=Pr(),n=O_(),r=A(()=>{const i=t.query.checkoutSession;return typeof i=="string"?i:null}),{data:s}=kE(r,n,xE(t.path)),o=A(()=>{const i=s.value?.billing_data;return(i&&"customer"in i?i.customer:void 0)?.id_customer});e.vueApp.provide(l$,o)}});function bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*! 1520 * GSAP 3.12.7 1521 * https://gsap.com 1522 * 1523 * @license Copyright 2008-2025, GreenSock. All rights reserved. 1524 * Subject to the terms at https://gsap.com/standard-license or for 1525 * Club GSAP members, the agreement issued with that membership. 1526 * @author: Jack Doyle, [email protected] 1527*/var $s={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},zu={duration:.5,overwrite:!1,delay:0},TE,ur,sn,Qs=1e8,qt=1/Qs,xw=Math.PI*2,mce=xw/4,gce=0,u$=Math.sqrt,vce=Math.cos,_ce=Math.sin,Jn=function(t){return typeof t=="string"},yn=function(t){return typeof t=="function"},Qi=function(t){return typeof t=="number"},CE=function(t){return typeof t>"u"},di=function(t){return typeof t=="object"},fs=function(t){return t!==!1},AE=function(){return typeof window<"u"},Zp=function(t){return yn(t)||Jn(t)},d$=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Cr=Array.isArray,Tw=/(?:-?\.?\d|\.)+/gi,f$=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Gc=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ob=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,h$=/[+-]=-?[.\d]+/,p$=/[^,'"\[\]\s]+/gi,yce=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,fn,Vo,Cw,RE,Vs={},sv={},m$,g$=function(t){return(sv=qu(t,Vs))&&ys},IE=function(t,n){return console.warn("Invalid property",t,"set to",n,"Missing plugin? gsap.registerPlugin()")},Oh=function(t,n){return!n&&console.warn(t)},v$=function(t,n){return t&&(Vs[t]=n)&&sv&&(sv[t]=n)||Vs},Ph=function(){return 0},bce={suppressEvents:!0,isStart:!0,kill:!1},Um={suppressEvents:!0,kill:!1},wce={suppressEvents:!0},OE={},Na=[],Aw={},_$,Ts={},ib={},IA=30,Bm=[],PE="",LE=function(t){var n=t[0],r,s;if(di(n)||yn(n)||(t=[t]),!(r=(n._gsap||{}).harness)){for(s=Bm.length;s--&&!Bm[s].targetTest(n););r=Bm[s]}for(s=t.length;s--;)t[s]&&(t[s]._gsap||(t[s]._gsap=new j$(t[s],r)))||t.splice(s,1);return t},Nl=function(t){return t._gsap||LE(Zs(t))[0]._gsap},y$=function(t,n,r){return(r=t[n])&&yn(r)?t[n]():CE(r)&&t.getAttribute&&t.getAttribute(n)||r}
vendor: 6,201 bytes, line 1527
1527,hs=function(t,n){return(t=t.split(",")).forEach(n)||t},En=function(t){return Math.round(t*1e5)/1e5||0},Pn=function(t){return Math.round(t*1e7)/1e7||0},pu=function(t,n){var r=n.charAt(0),s=parseFloat(n.substr(2));return t=parseFloat(t),r==="+"?t+s:r==="-"?t-s:r==="*"?t*s:t/s},Sce=function(t,n){for(var r=n.length,s=0;t.indexOf(n[s])<0&&++s<r;);return s<r},ov=function(){var t=Na.length,n=Na.slice(0),r,s;for(Aw={},Na.length=0,r=0;r<t;r++)s=n[r],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},b$=function(t,n,r,s){Na.length&&!ur&&ov(),t.render(n,r,ur&&n<0&&(t._initted||t._startAt)),Na.length&&!ur&&ov()},w$=function(t){var n=parseFloat(t);return(n||n===0)&&(t+"").match(p$).length<2?n:Jn(t)?t.trim():t},S$=function(t){return t},js=function(t,n){for(var r in n)r in t||(t[r]=n[r]);return t},Ece=function(t){return function(n,r){for(var s in r)s in n||s==="duration"&&t||s==="ease"||(n[s]=r[s])}},qu=function(t,n){for(var r in n)t[r]=n[r];return t},OA=function e(t,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(t[r]=di(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},iv=function(t,n){var r={},s;for(s in t)s in n||(r[s]=t[s]);return r},If=function(t){var n=t.parent||fn,r=t.keyframes?Ece(Cr(t.keyframes)):js;if(fs(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},kce=function(t,n){for(var r=t.length,s=r===n.length;s&&r--&&t[r]===n[r];);return r<0},E$=function(t,n,r,s,o){var i=t[s],a;if(o)for(a=n[o];i&&i[o]>a;)i=i._prev;return i?(n._next=i._next,i._next=n):(n._next=t[r],t[r]=n),n._next?n._next._prev=n:t[s]=n,n._prev=i,n.parent=n._dp=t,n},P_=function(t,n,r,s){r===void 0&&(r="_first"),s===void 0&&(s="_last");var o=n._prev,i=n._next;o?o._next=i:t[r]===n&&(t[r]=i),i?i._prev=o:t[s]===n&&(t[s]=o),n._next=n._prev=n.parent=null},Wa=function(t,n){t.parent&&(!n||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Dl=function(t,n){if(t&&(!n||n._end>t._dur||n._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},xce=function(t){for(var n=t.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return t},Rw=function(t,n,r,s){return t._startAt&&(ur?t._startAt.revert(Um):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(n,!0,s))},Tce=function e(t){return!t||t._ts&&e(t.parent)},PA=function(t){return t._repeat?Wu(t._tTime,t=t.duration()+t._rDelay)*t:0},Wu=function(t,n){var r=Math.floor(t=Pn(t/n));return t&&r===t?r-1:r},av=function(t,n){return(t-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},L_=function(t){return t._end=Pn(t._start+(t._tDur/Math.abs(t._ts||t._rts||qt)||0))},N_=function(t,n){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Pn(r._time-(t._ts>0?n/t._ts:((t._dirty?t.totalDuration():t._tDur)-n)/-t._ts)),L_(t),r._dirty||Dl(r,t)),t},k$=function(t,n){var r;if((n._time||!n._dur&&n._initted||n._start<t._time&&(n._dur||!n.add))&&(r=av(t.rawTime(),n),(!n._dur||vp(0,n.totalDuration(),r)-n._tTime>qt)&&n.render(r,!0)),Dl(t,n)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-qt}},Wo=function(t,n,r,s){return n.parent&&Wa(n),n._start=Pn((Qi(r)?r:r||t!==fn?qs(t,r,n):t._time)+n._delay),n._end=Pn(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),E$(t,n,"_first","_last",t._sort?"_start":0),Iw(n)||(t._recent=n),s||k$(t,n),t._ts<0&&N_(t,t._tTime),t},x$=function(t,n){return(Vs.ScrollTrigger||IE("scrollTrigger",n))&&Vs.ScrollTrigger.create(n,t)},T$=function(t,n,r,s,o){if(DE(t,n,o),!t._initted)return 1;if(!r&&t._pt&&!ur&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&_$!==Is.frame)return Na.push(t),t._lazy=[o,s],1},Cce=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Iw=function(t){var n=t.data;return n==="isFromStart"||n==="isStart"},Ace=function(t,n,r,s){var o=t.ratio,i=n<0||!n&&(!t._start&&Cce(t)&&!(!t._initted&&Iw(t))||(t._ts<0||t._dp._ts<0)&&!Iw(t))?0:1,a=t._rDelay,l=0,c,u,d;if(a&&t._repeat&&(l=vp(0,t._tDur,n),u=Wu(l,a),t._yoyo&&u&1&&(i=1-i),u!==Wu(t._tTime,a)&&(o=1-i,t.vars.repeatRefresh&&t._initted&&t.invalidate())),i!==o||ur||s||t._zTime===qt||!n&&t._zTime){if(!t._initted&&T$(t,n,s,r,l))return;for(d=t._zTime,t._zTime=n||(r?qt:0),r||(r=n&&!d),t.ratio=i,t._from&&(i=1-i),t._time=0,t._tTime=l,c=t._pt;c;)c.r(i,c.d),c=c._next;n<0&&Rw(t,n,r,!0),t._onUpdate&&!r&&Ls(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&Ls(t,"onRepeat"),(n>=t._tDur||n<0)&&t.ratio===i&&(i&&Wa(t,1),!r&&!ur&&(Ls(t,i?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=n)},Rce=function(t,n,r){var s;if(r>n)for(s=t._first;s&&s._start<=r;){if(s.data==="isPause"&&s._start>n)return s;s=s._next}else for(s=t._last;s&&s._start>=r;){if(s.data==="isPause"&&s._start<n)return s;s=s._prev}},Ku=function(t,n,r,s){var o=t._repeat,i=Pn(n)||0,a=t._tTime/t._tDur;return a&&!s&&(t._time*=i/t._dur),t._dur=i,t._tDur=o?o<0?1e10:Pn(i*(o+1)+t._rDelay*o):i,a>0&&!s&&N_(t,t._tTime=t._tDur*a),t.parent&&L_(t),r||Dl(t.parent,t),t},LA=function(t){return t instanceof Wr?Dl(t):Ku(t,t._dur)},Ice={_start:0,endTime:Ph,totalDuration:Ph},qs=function e(t,n,r){var s=t.labels,o=t._recent||Ice,i=t.duration()>=Qs?o.endTime(!1):t._dur,a,l,c;return Jn(n)&&(isNaN(n)||n in s)?(l=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?o._start:o.endTime(o._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?o:r).totalDuration()/100:1)):a<0?(n in s||(s[n]=i),s[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&r&&(l=l/100*(Cr(r)?r[0]:r).totalDuration()),a>1?e(t,n.substr(0,a-1),r)+l:i+l)):n==null?i:+n},Of=function(t,n,r){var s=Qi(n[1]),o=(s?2:1)+(t<2?0:1),i=n[o],a,l;if(s&&(i.duration=n[1]),i.parent=r,t){for(a=i,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=fs(l.vars.inherit)&&l.parent;i.immediateRender=fs(a.immediateRender),t<2?i.runBackwards=1:i.startAt=n[o-1]}return new On(n[0],i,n[o+1])},rl=function(t,n){return t||t===0?n(t):n},vp=function(t,n,r){return r<t?t:r>n?n:r},wr=function(t,n){return!Jn(t)||!(n=yce.exec(t))?"":n[1]},Oce=function(t,n,r){return rl(r,function(s){return vp(t,n,s)})},Ow=[].slice,C$=function(t,n){return t&&di(t)&&"length"in t&&(!n&&!t.length||t.length-1
vendor: 10,926 bytes, line 1527
1527in t&&di(t[0]))&&!t.nodeType&&t!==Vo},Pce=function(t,n,r){return r===void 0&&(r=[]),t.forEach(function(s){var o;return Jn(s)&&!n||C$(s,1)?(o=r).push.apply(o,Zs(s)):r.push(s)})||r},Zs=function(t,n,r){return sn&&!n&&sn.selector?sn.selector(t):Jn(t)&&!r&&(Cw||!Gu())?Ow.call((n||RE).querySelectorAll(t),0):Cr(t)?Pce(t,r):C$(t)?Ow.call(t,0):t?[t]:[]},Pw=function(t){return t=Zs(t)[0]||Oh("Invalid scope")||{},function(n){var r=t.current||t.nativeElement||t;return Zs(n,r.querySelectorAll?r:r===t?Oh("Invalid scope")||RE.createElement("div"):t)}},A$=function(t){return t.sort(function(){return .5-Math.random()})},R$=function(t){if(yn(t))return t;var n=di(t)?t:{each:t},r=Ml(n.ease),s=n.from||0,o=parseFloat(n.base)||0,i={},a=s>0&&s<1,l=isNaN(s)||a,c=n.axis,u=s,d=s;return Jn(s)?u=d={center:.5,edges:.5,end:1}[s]||0:!a&&l&&(u=s[0],d=s[1]),function(f,h,p){var m=(p||n).length,g=i[m],v,b,_,y,w,S,E,x,T;if(!g){if(T=n.grid==="auto"?0:(n.grid||[1,Qs])[1],!T){for(E=-Qs;E<(E=p[T++].getBoundingClientRect().left)&&T<m;);T<m&&T--}for(g=i[m]=[],v=l?Math.min(T,m)*u-.5:s%T,b=T===Qs?0:l?m*d/T-.5:s/T|0,E=0,x=Qs,S=0;S<m;S++)_=S%T-v,y=b-(S/T|0),g[S]=w=c?Math.abs(c==="y"?y:_):u$(_*_+y*y),w>E&&(E=w),w<x&&(x=w);s==="random"&&A$(g),g.max=E-x,g.min=x,g.v=m=(parseFloat(n.amount)||parseFloat(n.each)*(T>m?m-1:c?c==="y"?m/T:T:Math.max(T,m/T))||0)*(s==="edges"?-1:1),g.b=m<0?o-m:o,g.u=wr(n.amount||n.each)||0,r=r&&m<0?U$(r):r}return m=(g[f]-g.min)/g.max||0,Pn(g.b+(r?r(m):m)*g.v)+g.u}},Lw=function(t){var n=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var s=Pn(Math.round(parseFloat(r)/t)*t*n);return(s-s%1)/n+(Qi(r)?0:wr(r))}},I$=function(t,n){var r=Cr(t),s,o;return!r&&di(t)&&(s=r=t.radius||Qs,t.values?(t=Zs(t.values),(o=!Qi(t[0]))&&(s*=s)):t=Lw(t.increment)),rl(n,r?yn(t)?function(i){return o=t(i),Math.abs(o-i)<=s?o:i}:function(i){for(var a=parseFloat(o?i.x:i),l=parseFloat(o?i.y:0),c=Qs,u=0,d=t.length,f,h;d--;)o?(f=t[d].x-a,h=t[d].y-l,f=f*f+h*h):f=Math.abs(t[d]-a),f<c&&(c=f,u=d);return u=!s||c<=s?t[u]:i,o||u===i||Qi(i)?u:u+wr(i)}:Lw(t))},O$=function(t,n,r,s){return rl(Cr(t)?!n:r===!0?!!(r=0):!s,function(){return Cr(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(s=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(n-t+r*.99))/r)*r*s)/s})},Lce=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(s){return n.reduce(function(o,i){return i(o)},s)}},Nce=function(t,n){return function(r){return t(parseFloat(r))+(n||wr(r))}},Dce=function(t,n,r){return L$(t,n,0,1,r)},P$=function(t,n,r){return rl(r,function(s){return t[~~n(s)]})},Mce=function e(t,n,r){var s=n-t;return Cr(t)?P$(t,e(0,t.length),n):rl(r,function(o){return(s+(o-t)%s)%s+t})},$ce=function e(t,n,r){var s=n-t,o=s*2;return Cr(t)?P$(t,e(0,t.length-1),n):rl(r,function(i){return i=(o+(i-t)%o)%o||0,t+(i>s?o-i:i)})},Lh=function(t){for(var n=0,r="",s,o,i,a;~(s=t.indexOf("random(",n));)i=t.indexOf(")",s),a=t.charAt(s+7)==="[",o=t.substr(s+7,i-s-7).match(a?p$:Tw),r+=t.substr(n,s-n)+O$(a?o:+o[0],a?0:+o[1],+o[2]||1e-5),n=i+1;return r+t.substr(n,t.length-n)},L$=function(t,n,r,s,o){var i=n-t,a=s-r;return rl(o,function(l){return r+((l-t)/i*a||0)})},Fce=function e(t,n,r,s){var o=isNaN(t+n)?0:function(h){return(1-h)*t+h*n};if(!o){var i=Jn(t),a={},l,c,u,d,f;if(r===!0&&(s=1)&&(r=null),i)t={p:t},n={p:n};else if(Cr(t)&&!Cr(n)){for(u=[],d=t.length,f=d-2,c=1;c<d;c++)u.push(e(t[c-1],t[c]));d--,o=function(p){p*=d;var m=Math.min(f,~~p);return u[m](p-m)},r=n}else s||(t=qu(Cr(t)?[]:{},t));if(!u){for(l in n)NE.call(a,t,l,"get",n[l]);o=function(p){return FE(p,a)||(i?t.p:t)}}}return rl(r,o)},NA=function(t,n,r){var s=t.labels,o=Qs,i,a,l;for(i in s)a=s[i]-n,a<0==!!r&&a&&o>(a=Math.abs(a))&&(l=i,o=a);return l},Ls=function(t,n,r){var s=t.vars,o=s[n],i=sn,a=t._ctx,l,c,u;if(o)return l=s[n+"Params"],c=s.callbackScope||t,r&&Na.length&&ov(),a&&(sn=a),u=l?o.apply(c,l):o.call(c),sn=i,u},sf=function(t){return Wa(t),t.scrollTrigger&&t.scrollTrigger.kill(!!ur),t.progress()<1&&Ls(t,"onInterrupt"),t},Yc,N$=[],D$=function(t){if(t)if(t=!t.name&&t.default||t,AE()||t.headless){var n=t.name,r=yn(t),s=n&&!r&&t.init?function(){this._props=[]}:t,o={init:Ph,render:FE,add:NE,kill:eue,modifier:Jce,rawVars:0},i={targetTest:0,get:0,getSetter:$E,aliases:{},register:0};if(Gu(),t!==s){if(Ts[n])return;js(s,js(iv(t,o),i)),qu(s.prototype,qu(o,iv(t,i))),Ts[s.prop=n]=s,t.targetTest&&(Bm.push(s),OE[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}v$(n,s),t.register&&t.register(ys,s,ps)}else N$.push(t)},Ht=255,of={aqua:[0,Ht,Ht],lime:[0,Ht,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ht],navy:[0,0,128],white:[Ht,Ht,Ht],olive:[128,128,0],yellow:[Ht,Ht,0],orange:[Ht,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ht,0,0],pink:[Ht,192,203],cyan:[0,Ht,Ht],transparent:[Ht,Ht,Ht,0]},ab=function(t,n,r){return t+=t<0?1:t>1?-1:0,(t*6<1?n+(r-n)*t*6:t<.5?r:t*3<2?n+(r-n)*(2/3-t)*6:n)*Ht+.5|0},M$=function(t,n,r){var s=t?Qi(t)?[t>>16,t>>8&Ht,t&Ht]:0:of.black,o,i,a,l,c,u,d,f,h,p;if(!s){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),of[t])s=of[t];else if(t.charAt(0)==="#"){if(t.length<6&&(o=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+o+o+i+i+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return s=parseInt(t.substr(1,6),16),[s>>16,s>>8&Ht,s&Ht,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),s=[t>>16,t>>8&Ht,t&Ht]}else if(t.substr(0,3)==="hsl"){if(s=p=t.match(Tw),!n)l=+s[0]%360/360,c=+s[1]/100,u=+s[2]/100,i=u<=.5?u*(c+1):u+c-u*c,o=u*2-i,s.length>3&&(s[3]*=1),s[0]=ab(l+1/3,o,i),s[1]=ab(l,o,i),s[2]=ab(l-1/3,o,i);else if(~t.indexOf("="))return s=t.match(f$),r&&s.length<4&&(s[3]=1),s}else s=t.match(Tw)||of.transparent;s=s.map(Number)}return n&&!p&&(o=s[0]/Ht,i=s[1]/Ht,a=s[2]/Ht,d=Math.max(o,i,a),f=Math.min(o,i,a),u=(d+f)/2,d===f?l=c=0:(h=d-f,c=u>.5?h/(2-d-f):h/(d+f),l=d===o?(i-a)/h+(i<a?6:0):d===i?(a-o)/h+2:(o-i)/h+4,l*=60),s[0]=~~(l+.5),s[1]=~~(c*100+.5),s[2]=~~(u*100+.5)),r&&s.length<4&&(s[3]=1),s},$$=function(t){var n=[],r=[],s=-1;return t.split(Da).forEach(function(o){var i=o.match(Gc)||[];n.push.apply(n,i),r.push(s+=i.length+1)}),n.c=r,n},DA=function(t,n,r){var s="",o=(t+s).match(Da),i=n?"hsla(":"rgba(",a=0,l,c,u,d;if(!o)return t;if(o=o.map(function(f){return(f=M$(f,n,1))&&i+(n?f[0]+","+f[1]+"%,"+f[2]+"%,"+f[3]:f.join(","))+")"}),r&&(u=$$(t),l=r.c,l.join(s)!==u.c.join(s)))for(c=t.replace(Da,"1").split(Gc),d=c.length-1;a<d;a++)s+=c[a]+(~l.indexOf(a)?o.shift()||i+"0,0,0,0)":(u.length?u:o.length?o:r).shift());if(!c)for(c=t.split(Da),d=c.length-1;a<d;a++)s+=c[a]+o[a];return s+c[d]},Da=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in of)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),Uce=/hsl[a]?\(/,F$=function(t){var n=t.join(" "),r;if(Da.lastIndex=0,Da.test(n))return r=Uce.test(n),t[1]=DA(t[1],r),t[0]=DA(t[0],r,$$(t[1])),!0},Nh,Is=(function(){var e=Date.now,t=500,n=33,r=e(),s=r,o=1e3/240,i=o,a=[],l,c,u,d,f,h,p=function m(g){var v=e()-s,b=g===!0,_,y,w,S;if((v>t||v<0)&&(r+=v-n),s+=v,w=s-r,_=w-i,(_>0||b)&&(S=++d.frame,f=w-d.time*1e3,d.time=w=w/1e3,i+=_+(_>=o?4:o-_),y=1),b||(l=c(m)),y)for(h=0;h<a.length;h++)a[h](w,f,S,g)};return d={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(g){return f/(1e3/(g||60))},wake:function(){m$&&(!Cw&&AE()&&(Vo=Cw=window,RE=Vo.document||{},Vs.gsap=ys,(Vo.gsapVersions||(Vo.gsapVersions=[])).push(ys.version),g$(sv||Vo.GreenSockGlobals||!Vo.gsap&&Vo||{}),N$.forEach(D$)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&d.sleep(),c=u||function(g){return setTimeout(g,i-d.time*1e3+1|0)},Nh=1,p(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),Nh=0,c=Ph},lagSmoothing:function(g,v){t=g||1/0,n=Math.min(v||33,t)},fps:function(g){o=1e3/(g||240),i=d.time*1e3+o},add:function(g,v,b){var _=v?function(y,w,S,E){g(y,w,S,E),d.remove(_)}:g;return d.remove(g),a[b?"unshift":"push"](_),Gu(),_},remove:function(g,v){~(v=a.indexOf(g))&&a.splice(v,1)&&h>=v&&h--},_listeners:a},d})(),Gu=function(){return!Nh&&Is.wake()},St={},Bce=/^[\d.\-M][\d.\-,\s]/,Vce=/["']/g,jce=function(t){for(var n={},r=t.substr(1,t.length-3).split(":"),s=r[0],o=1,i=r.length,a,l,c;o<i;o++)l=r[o],a=o!==i-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),n[s]=isNaN(c)?c.replace(Vce,"").trim():+c,s=l.substr(a+1).trim();return n},Hce=function(t){var n=t.indexOf("(")+1,r=t.indexOf(")"),s=t.indexOf("(",n);return t.substring(n,~s&&s<r?t.indexOf(")",r+1):r)},zce=function(t){var n=(t+"").split("("),r=St[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[jce(n[1])]:Hce(t).split(",").map(w$)):St._CE&&Bce.test(t)?St._CE("",t):r},U$=function(t){return function(n){return 1-t(1-n)}},B$=function e(t,n){for(var r=t._first,s;r;)r instanceof Wr?e(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?e(r.timeline,n):(s=r._ease,r._ease=r._yEase,r._yEase=s,r._yoyo=n)),r=r._next},Ml=function(t,n){return t&&(yn(t)?t:St[t]||zce(t))||n},gc=function(t,n,r,s){r===void 0&&(r=function(l){return 1-n(1-l)}),s===void 0&&(s=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var o={easeIn:n,easeOut:r,easeInOut:s},i;return hs(t,function(a){St[a]=Vs[a]=o,St[i=a.toLowerCase()]=r;for(var l in o)St[i+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=St[a+"."+l]=o[l]}),o},V$=function(t){return function(n){return n<.5?(1-t(1-n*2))/2:.5+t((n-.5)*2)/2}},lb=function e(t,n,r){var s=n>=1?n:1,o=(r||(t?.3:.45))/(n<1?n:1),i=o/xw*(Math.asin(1/s)||0),a=function(u){return u===1?1:s*Math.pow(2,-10*u)*_ce((u-i)*o)+1},l=t==="out"?a:t==="in"?function(c){return 1-a(1-c)}:V$(a);return o=xw/o,l.config=function(c,u){return e(t,c,u)},l},cb=function e(t,n){n===void 0&&(n=1.70158);var r=function(i){return i?--i*i*((n+1)*i+n)+1:0},s=t==="out"?r:t==="in"?function(o){return 1-r(1-o)}:V$(r);return s.config=function(o){return e(t,o)},s};hs("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;gc(e+",Power"+(n-1),t?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});St.Linear.easeNone=St.none=St.Linear.easeIn;gc("Elastic",lb("in"),lb("out"),lb());(function(e,t){var n=1/t,r=2*n,s=2.5*n,o=function(a){return a<n?e*a*a:a<r?e*Math.pow(a-1.5/t,2)+.75:a<s?e*(a-=2.25/t)*a+.9375:e*Math.pow(a-2.625/t,2)+.984375};gc("Bounce",function(i){return 1-o(1-i)},o)})(7.5625,2.75);gc("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});gc("Circ",function(e){return-(u$(1-e*e)-1)});gc("Sine",function(e){return e===1?1:-vce(e*mce)+1});gc("Back",cb("in"),cb("out"),cb());St.SteppedEase=St.steps=Vs.SteppedEase={config:function(t,n){t===void 0&&(t=1);var r=1/t,s=t+(n?0:1),o=n?1:0,i=1-qt;return function(a){return((s*vp(0,i,a)|0)+o)*r}}};zu.ease=St["quad.out"];hs("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return PE+=e+","+e+"Params,"});
vendor: 12,491 bytes, line 1527
1527var j$=function(t,n){this.id=gce++,t._gsap=this,this.target=t,this.harness=n,this.get=n?n.get:y$,this.set=n?n.getSetter:$E},Dh=(function(){function e(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Ku(this,+n.duration,1,1),this.data=n.data,sn&&(this._ctx=sn,sn.data.push(this)),Nh||Is.wake()}var t=e.prototype;return t.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},t.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},t.totalDuration=function(r){return arguments.length?(this._dirty=0,Ku(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(r,s){if(Gu(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(N_(this,r),!o._dp||o.parent||k$(o,this);o&&o.parent;)o.parent._time!==o._start+(o._ts>=0?o._tTime/o._ts:(o.totalDuration()-o._tTime)/-o._ts)&&o.totalTime(o._tTime,!0),o=o.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Wo(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===qt||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),b$(this,r,s)),this},t.time=function(r,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+PA(this))%(this._dur+this._rDelay)||(r?this._dur:0),s):this._time},t.totalProgress=function(r,s){return arguments.length?this.totalTime(this.totalDuration()*r,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(r,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+PA(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(r,s){var o=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*o,s):this._repeat?Wu(this._tTime,o)+1:1},t.timeScale=function(r,s){if(!arguments.length)return this._rts===-qt?0:this._rts;if(this._rts===r)return this;var o=this.parent&&this._ts?av(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-qt?0:this._rts,this.totalTime(vp(-Math.abs(this._delay),this._tDur,o),s!==!1),L_(this),xce(this)},t.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Gu(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==qt&&(this._tTime-=qt)))),this):this._ps},t.startTime=function(r){if(arguments.length){this._start=r;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&Wo(s,this,r-this._delay),this}return this._start},t.endTime=function(r){return this._start+(fs(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(r){var s=this.parent||this._dp;return s?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?av(s.rawTime(r),this):this._tTime:this._tTime},t.revert=function(r){r===void 0&&(r=wce);var s=ur;return ur=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),ur=s,this},t.globalTime=function(r){for(var s=this,o=arguments.length?r:s.rawTime();s;)o=s._start+o/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(r):o},t.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,LA(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(r){if(arguments.length){var s=this._time;return this._rDelay=r,LA(this),s?this.time(s):this}return this._rDelay},t.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},t.seek=function(r,s){return this.totalTime(qs(this,r),fs(s))},t.restart=function(r,s){return this.play().totalTime(r?-this._delay:0,fs(s)),this._dur||(this._zTime=-qt),this},t.play=function(r,s){return r!=null&&this.seek(r,s),this.reversed(!1).paused(!1)},t.reverse=function(r,s){return r!=null&&this.seek(r||this.totalDuration(),s),this.reversed(!0).paused(!1)},t.pause=function(r,s){return r!=null&&this.seek(r,s),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-qt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-qt,this},t.isActive=function(){var r=this.parent||this._dp,s=this._start,o;return!!(!r||this._ts&&this._initted&&r.isActive()&&(o=r.rawTime(!0))>=s&&o<this.endTime(!0)-qt)},t.eventCallback=function(r,s,o){var i=this.vars;return arguments.length>1?(s?(i[r]=s,o&&(i[r+"Params"]=o),r==="onUpdate"&&(this._onUpdate=s)):delete i[r],this):i[r]},t.then=function(r){var s=this;return new Promise(function(o){var i=yn(r)?r:S$,a=function(){var c=s.then;s.then=null,yn(i)&&(i=i(s))&&(i.then||i===s)&&(s.then=c),o(i),s.then=c};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?a():s._prom=a})},t.kill=function(){sf(this)},e})();js(Dh.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-qt,_prom:0,_ps:!1,_rts:1});var Wr=(function(e){c$(t,e);function t(r,s){var o;return r===void 0&&(r={}),o=e.call(this,r)||this,o.labels={},o.smoothChildTiming=!!r.smoothChildTiming,o.autoRemoveChildren=!!r.autoRemoveChildren,o._sort=fs(r.sortChildren),fn&&Wo(r.parent||fn,bi(o),s),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&x$(bi(o),r.scrollTrigger),o}var n=t.prototype;return n.to=function(s,o,i){return Of(0,arguments,this),this},n.from=function(s,o,i){return Of(1,arguments,this),this},n.fromTo=function(s,o,i,a){return Of(2,arguments,this),this},n.set=function(s,o,i){return o.duration=0,o.parent=this,If(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new On(s,o,qs(this,i),1),this},n.call=function(s,o,i){return Wo(this,On.delayedCall(0,s,o),i)},n.staggerTo=function(s,o,i,a,l,c,u){return i.duration=o,i.stagger=i.stagger||a,i.onComplete=c,i.onCompleteParams=u,i.parent=this,new On(s,i,qs(this,l)),this},n.staggerFrom=function(s,o,i,a,l,c,u){return i.runBackwards=1,If(i).immediateRender=fs(i.immediateRender),this.staggerTo(s,o,i,a,l,c,u)},n.staggerFromTo=function(s,o,i,a,l,c,u,d){return a.startAt=i,If(a).immediateRender=fs(a.immediateRender),this.staggerTo(s,o,a,l,c,u,d)},n.render=function(s,o,i){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=s<=0?0:Pn(s),d=this._zTime<0!=s<0&&(this._initted||!c),f,h,p,m,g,v,b,_,y,w,S,E;if(this!==fn&&u>l&&s>=0&&(u=l),u!==this._tTime||i||d){if(a!==this._time&&c&&(u+=this._time-a,s+=this._time-a),f=u,y=this._start,_=this._ts,v=!_,d&&(c||(a=this._zTime),(s||!o)&&(this._zTime=s)),this._repeat){if(S=this._yoyo,g=c+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(g*100+s,o,i);if(f=Pn(u%g),u===l?(m=this._repeat,f=c):(w=Pn(u/g),m=~~w,m&&m===w&&(f=c,m--),f>c&&(f=c)),w=Wu(this._tTime,g),!a&&this._tTime&&w!==m&&this._tTime-w*g-this._dur<=0&&(w=m),S&&m&1&&(f=c-f,E=1),m!==w&&!this._lock){var x=S&&w&1,T=x===(S&&m&1);if(m<w&&(x=!x),a=x?0:u%c?c:u,this._lock=1,this.render(a||(E?0:Pn(m*g)),o,!c)._lock=0,this._tTime=u,!o&&this.parent&&Ls(this,"onRepeat"),this.vars.repeatRefresh&&!E&&(this.invalidate()._lock=1),a&&a!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,T&&(this._lock=2,a=x?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!E&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;B$(this,E)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=Rce(this,Pn(a),Pn(f)),b&&(u-=f-(f=b._start))),this._tTime=u,this._time=f,this._act=!_,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,a=0),!a&&f&&!o&&!m&&(Ls(this,"onStart"),this._tTime!==u))return this;if(f>=a&&s>=0)for(h=this._first;h;){if(p=h._next,(h._act||f>=h._start)&&h._ts&&b!==h){if(h.parent!==this)return this.render(s,o,i);if(h.render(h._ts>0?(f-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(f-h._start)*h._ts,o,i),f!==this._time||!this._ts&&!v){b=0,p&&(u+=this._zTime=-qt);break}}h=p}else{h=this._last;for(var O=s<0?s:f;h;){if(p=h._prev,(h._act||O<=h._end)&&h._ts&&b!==h){if(h.parent!==this)return this.render(s,o,i);if(h.render(h._ts>0?(O-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(O-h._start)*h._ts,o,i||ur&&(h._initted||h._startAt)),f!==this._time||!this._ts&&!v){b=0,p&&(u+=this._zTime=O?-qt:qt);break}}h=p}}if(b&&!o&&(this.pause(),b.render(f>=a?0:-qt)._zTime=f>=a?1:-1,this._ts))return this._start=y,L_(this),this.render(s,o,i);this._onUpdate&&!o&&Ls(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(y===this._start||Math.abs(_)!==Math.abs(this._ts))&&(this._lock||((s||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Wa(this,1),!o&&!(s<0&&!a)&&(u||a||!l)&&(Ls(this,u===l&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(s,o){var i=this;if(Qi(o)||(o=qs(this,o,s)),!(s instanceof Dh)){if(Cr(s))return s.forEach(function(a){return i.add(a,o)}),this;if(Jn(s))return this.addLabel(s,o);if(yn(s))s=On.delayedCall(0,s);else return this}return this!==s?Wo(this,s,o):this},n.getChildren=function(s,o,i,a){s===void 0&&(s=!0),o===void 0&&(o=!0),i===void 0&&(i=!0),a===void 0&&(a=-Qs);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof On?o&&l.push(c):(i&&l.push(c),s&&l.push.apply(l,c.getChildren(!0,o,i)))),c=c._next;return l},n.getById=function(s){for(var o=this.getChildren(1,1,1),i=o.length;i--;)if(o[i].vars.id===s)return o[i]},n.remove=function(s){return Jn(s)?this.removeLabel(s):yn(s)?this.killTweensOf(s):(s.parent===this&&P_(this,s),s===this._recent&&(this._recent=this._last),Dl(this))},n.totalTime=function(s,o){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Pn(Is.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),e.prototype.totalTime.call(this,s,o),this._forcing=0,this):this._tTime},n.addLabel=function(s,o){return this.labels[s]=qs(this,o),this},n.removeLabel=function(s){return delete this.labels[s],this},n.addPause=function(s,o,i){var a=On.delayedCall(0,o||Ph,i);return a.data="isPause",this._hasPause=1,Wo(this,a,qs(this,s))},n.removePause=function(s){var o=this._first;for(s=qs(this,s);o;)o._start===s&&o.data==="isPause"&&Wa(o),o=o._next},n.killTweensOf=function(s,o,i){for(var a=this.getTweensOf(s,i),l=a.length;l--;)Sa!==a[l]&&a[l].kill(s,o);return this},n.getTweensOf=function(s,o){for(var i=[],a=Zs(s),l=this._first,c=Qi(o),u;l;)l instanceof On?Sce(l._targets,a)&&(c?(!Sa||l._initted&&l._ts)&&l.globalTime(0)<=o&&l.globalTime(l.totalDuration())>o:!o||l.isActive())&&i.push(l):(u=l.getTweensOf(a,o)).length&&i.push.apply(i,u),l=l._next;return i},n.tweenTo=function(s,o){o=o||{};var i=this,a=qs(i,s),l=o,c=l.startAt,u=l.onStart,d=l.onStartParams,f=l.immediateRender,h,p=On.to(i,js({ease:o.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:o.duration||Math.abs((a-(c&&"time"in c?c.time:i._time))/i.timeScale())||qt,onStart:function(){if(i.pause(),!h){var g=o.duration||Math.abs((a-(c&&"time"in c?c.time:i._time))/i.timeScale());p._dur!==g&&Ku(p,g,0,1).render(p._time,!0,!0),h=1}u&&u.apply(p,d||[])}},o));return f?p.render(0):p},n.tweenFromTo=function(s,o,i){return this.tweenTo(o,js({startAt:{time:qs(this,s)}},i))},n.recent=function(){return this._recent},n.nextLabel=function(s){return s===void 0&&(s=this._time),NA(this,qs(this,s))},n.previousLabel=function(s){return s===void 0&&(s=this._time),NA(this,qs(this,s),1)},n.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+qt)},n.shiftChildren=function(s,o,i){i===void 0&&(i=0);for(var a=this._first,l=this.labels,c;a;)a._start>=i&&(a._start+=s,a._end+=s),a=a._next;if(o)for(c in l)l[c]>=i&&(l[c]+=s);return Dl(this)},n.invalidate=function(s){var o=this._first;for(this._lock=0;o;)o.invalidate(s),o=o._next;return e.prototype.invalidate.call(this,s)},n.clear=function(s){s===void 0&&(s=!0);
vendor: 5,155 bytes, line 1527
1527for(var o=this._first,i;o;)i=o._next,this.remove(o),o=i;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),Dl(this)},n.totalDuration=function(s){var o=0,i=this,a=i._last,l=Qs,c,u,d;if(arguments.length)return i.timeScale((i._repeat<0?i.duration():i.totalDuration())/(i.reversed()?-s:s));if(i._dirty){for(d=i.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&i._sort&&a._ts&&!i._lock?(i._lock=1,Wo(i,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(o-=u,(!d&&!i._dp||d&&d.smoothChildTiming)&&(i._start+=u/i._ts,i._time-=u,i._tTime-=u),i.shiftChildren(-u,!1,-1/0),l=0),a._end>o&&a._ts&&(o=a._end),a=c;Ku(i,i===fn&&i._time>o?i._time:o,1,1),i._dirty=0}return i._tDur},t.updateRoot=function(s){if(fn._ts&&(b$(fn,av(s,fn)),_$=Is.frame),Is.frame>=IA){IA+=$s.autoSleep||120;var o=fn._first;if((!o||!o._ts)&&$s.autoSleep&&Is._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||Is.sleep()}}},t})(Dh);js(Wr.prototype,{_lock:0,_hasPause:0,_forcing:0});var qce=function(t,n,r,s,o,i,a){var l=new ps(this._pt,t,n,0,1,G$,null,o),c=0,u=0,d,f,h,p,m,g,v,b;for(l.b=r,l.e=s,r+="",s+="",(v=~s.indexOf("random("))&&(s=Lh(s)),i&&(b=[r,s],i(b,t,n),r=b[0],s=b[1]),f=r.match(ob)||[];d=ob.exec(s);)p=d[0],m=s.substring(c,d.index),h?h=(h+1)%5:m.substr(-5)==="rgba("&&(h=1),p!==f[u++]&&(g=parseFloat(f[u-1])||0,l._pt={_next:l._pt,p:m||u===1?m:",",s:g,c:p.charAt(1)==="="?pu(g,p)-g:parseFloat(p)-g,m:h&&h<4?Math.round:0},c=ob.lastIndex);return l.c=c<s.length?s.substring(c,s.length):"",l.fp=a,(h$.test(s)||v)&&(l.e=0),this._pt=l,l},NE=function(t,n,r,s,o,i,a,l,c,u){yn(s)&&(s=s(o||0,t,i));var d=t[n],f=r!=="get"?r:yn(d)?c?t[n.indexOf("set")||!yn(t["get"+n.substr(3)])?n:"get"+n.substr(3)](c):t[n]():d,h=yn(d)?c?Xce:W$:ME,p;if(Jn(s)&&(~s.indexOf("random(")&&(s=Lh(s)),s.charAt(1)==="="&&(p=pu(f,s)+(wr(f)||0),(p||p===0)&&(s=p))),!u||f!==s||Nw)return!isNaN(f*s)&&s!==""?(p=new ps(this._pt,t,n,+f||0,s-(f||0),typeof d=="boolean"?Zce:K$,0,h),c&&(p.fp=c),a&&p.modifier(a,this,t),this._pt=p):(!d&&!(n in t)&&IE(n,s),qce.call(this,t,n,f,s,h,l||$s.stringFilter,c))},Wce=function(t,n,r,s,o){if(yn(t)&&(t=Pf(t,o,n,r,s)),!di(t)||t.style&&t.nodeType||Cr(t)||d$(t))return Jn(t)?Pf(t,o,n,r,s):t;var i={},a;for(a in t)i[a]=Pf(t[a],o,n,r,s);return i},H$=function(t,n,r,s,o,i){var a,l,c,u;if(Ts[t]&&(a=new Ts[t]).init(o,a.rawVars?n[t]:Wce(n[t],s,o,i,r),r,s,i)!==!1&&(r._pt=l=new ps(r._pt,o,t,0,1,a.render,a,0,a.priority),r!==Yc))for(c=r._ptLookup[r._targets.indexOf(o)],u=a._props.length;u--;)c[a._props[u]]=l;return a},Sa,Nw,DE=function e(t,n,r){var s=t.vars,o=s.ease,i=s.startAt,a=s.immediateRender,l=s.lazy,c=s.onUpdate,u=s.runBackwards,d=s.yoyoEase,f=s.keyframes,h=s.autoRevert,p=t._dur,m=t._startAt,g=t._targets,v=t.parent,b=v&&v.data==="nested"?v.vars.targets:g,_=t._overwrite==="auto"&&!TE,y=t.timeline,w,S,E,x,T,O,z,P,q,X,J,F,Q;if(y&&(!f||!o)&&(o="none"),t._ease=Ml(o,zu.ease),t._yEase=d?U$(Ml(d===!0?o:d,zu.ease)):0,d&&t._yoyo&&!t._repeat&&(d=t._yEase,t._yEase=t._ease,t._ease=d),t._from=!y&&!!s.runBackwards,!y||f&&!s.stagger){if(P=g[0]?Nl(g[0]).harness:0,F=P&&s[P.prop],w=iv(s,OE),m&&(m._zTime<0&&m.progress(1),n<0&&u&&a&&!h?m.render(-1,!0):m.revert(u&&p?Um:bce),m._lazy=0),i){if(Wa(t._startAt=On.set(g,js({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!m&&fs(l),startAt:null,delay:0,onUpdate:c&&function(){return Ls(t,"onUpdate")},stagger:0},i))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(ur||!a&&!h)&&t._startAt.revert(Um),a&&p&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&p&&!m){if(n&&(a=!1),E=js({overwrite:!1,data:"isFromStart",lazy:a&&!m&&fs(l),immediateRender:a,stagger:0,parent:v},w),F&&(E[P.prop]=F),Wa(t._startAt=On.set(g,E)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(ur?t._startAt.revert(Um):t._startAt.render(-1,!0)),t._zTime=n,!a)e(t._startAt,qt,qt);else if(!n)return}for(t._pt=t._ptCache=0,l=p&&fs(l)||l&&!p,S=0;S<g.length;S++){if(T=g[S],z=T._gsap||LE(g)[S]._gsap,t._ptLookup[S]=X={},Aw[z.id]&&Na.length&&ov(),J=b===g?S:b.indexOf(T),P&&(q=new P).init(T,F||w,t,J,b)!==!1&&(t._pt=x=new ps(t._pt,T,q.name,0,1,q.render,q,0,q.priority),q._props.forEach(function(W){X[W]=x}),q.priority&&(O=1)),!P||F)for(E in w)Ts[E]&&(q=H$(E,w,t,J,T,b))?q.priority&&(O=1):X[E]=x=NE.call(t,T,E,"get",w[E],J,b,0,s.stringFilter);t._op&&t._op[S]&&t.kill(T,t._op[S]),_&&t._pt&&(Sa=t,fn.killTweensOf(T,X,t.globalTime(n)),Q=!t.parent,Sa=0),t._pt&&l&&(Aw[z.id]=1)}O&&Y$(t),t._onInit&&t._onInit(t)}t._onUpdate=c,t._initted=(!t._op||t._pt)&&!Q,f&&n<=0&&y.render(Qs,!0,!0)},Kce=function(t,n,r,s,o,i,a,l){var c=(t._pt&&t._ptCache||(t._ptCache={}))[n],u,d,f,h;if(!c)for(c=t._ptCache[n]=[],f=t._ptLookup,h=t._targets.length;h--;){if(u=f[h][n],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==n&&u.fp!==n;)u=u._next;if(!u)return Nw=1,t.vars[n]="+=0",DE(t,a),Nw=0,l?Oh(n+" not eligible for reset"):1;c.push(u)}for(h=c.length;h--;)d=c[h],u=d._pt||d,u.s=(s||s===0)&&!o?s:u.s+(s||0)+i*u.c,u.c=r-u.s,d.e&&(d.e=En(r)+wr(d.e)),d.b&&(d.b=u.s+wr(d.b))},Gce=function(t,n){var r=t[0]?Nl(t[0]).harness:0,s=r&&r.aliases,o,i,a,l;if(!s)return n;o=qu({},n);for(i in s)if(i in o)for(l=s[i].split(","),a=l.length;a--;)o[l[a]]=o[i];return o},Yce=function(t,n,r,s){var o=n.ease||s||"power1.inOut",i,a;
vendor: 4,253 bytes, line 1527
1527if(Cr(n))a=r[t]||(r[t]=[]),n.forEach(function(l,c){return a.push({t:c/(n.length-1)*100,v:l,e:o})});else for(i in n)a=r[i]||(r[i]=[]),i==="ease"||a.push({t:parseFloat(t),v:n[i],e:o})},Pf=function(t,n,r,s,o){return yn(t)?t.call(n,r,s,o):Jn(t)&&~t.indexOf("random(")?Lh(t):t},z$=PE+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",q$={};hs(z$+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return q$[e]=1});var On=(function(e){c$(t,e);function t(r,s,o,i){var a;typeof s=="number"&&(o.duration=s,s=o,o=null),a=e.call(this,i?s:If(s))||this;var l=a.vars,c=l.duration,u=l.delay,d=l.immediateRender,f=l.stagger,h=l.overwrite,p=l.keyframes,m=l.defaults,g=l.scrollTrigger,v=l.yoyoEase,b=s.parent||fn,_=(Cr(r)||d$(r)?Qi(r[0]):"length"in s)?[r]:Zs(r),y,w,S,E,x,T,O,z;if(a._targets=_.length?LE(_):Oh("GSAP target "+r+" not found. https://gsap.com",!$s.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=h,p||f||Zp(c)||Zp(u)){if(s=a.vars,y=a.timeline=new Wr({data:"nested",defaults:m||{},targets:b&&b.data==="nested"?b.vars.targets:_}),y.kill(),y.parent=y._dp=bi(a),y._start=0,f||Zp(c)||Zp(u)){if(E=_.length,O=f&&R$(f),di(f))for(x in f)~z$.indexOf(x)&&(z||(z={}),z[x]=f[x]);for(w=0;w<E;w++)S=iv(s,q$),S.stagger=0,v&&(S.yoyoEase=v),z&&qu(S,z),T=_[w],S.duration=+Pf(c,bi(a),w,T,_),S.delay=(+Pf(u,bi(a),w,T,_)||0)-a._delay,!f&&E===1&&S.delay&&(a._delay=u=S.delay,a._start+=u,S.delay=0),y.to(T,S,O?O(w,T,_):0),y._ease=St.none;y.duration()?c=u=0:a.timeline=0}else if(p){If(js(y.vars.defaults,{ease:"none"})),y._ease=Ml(p.ease||s.ease||"none");var P=0,q,X,J;if(Cr(p))p.forEach(function(F){return y.to(_,F,">")}),y.duration();else{S={};for(x in p)x==="ease"||x==="easeEach"||Yce(x,p[x],S,p.easeEach);for(x in S)for(q=S[x].sort(function(F,Q){return F.t-Q.t}),P=0,w=0;w<q.length;w++)X=q[w],J={ease:X.e,duration:(X.t-(w?q[w-1].t:0))/100*c},J[x]=X.v,y.to(_,J,P),P+=J.duration;y.duration()<c&&y.to({},{duration:c-y.duration()})}}c||a.duration(c=y.duration())}else a.timeline=0;return h===!0&&!TE&&(Sa=bi(a),fn.killTweensOf(_),Sa=0),Wo(b,bi(a),o),s.reversed&&a.reverse(),s.paused&&a.paused(!0),(d||!c&&!p&&a._start===Pn(b._time)&&fs(d)&&Tce(bi(a))&&b.data!=="nested")&&(a._tTime=-qt,a.render(Math.max(0,-u)||0)),g&&x$(bi(a),g),a}var n=t.prototype;return n.render=function(s,o,i){var a=this._time,l=this._tDur,c=this._dur,u=s<0,d=s>l-qt&&!u?l:s<qt?0:s,f,h,p,m,g,v,b,_,y;if(!c)Ace(this,s,o,i);else if(d!==this._tTime||!s||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){if(f=d,_=this.timeline,this._repeat){if(m=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(m*100+s,o,i);if(f=Pn(d%m),d===l?(p=this._repeat,f=c):(g=Pn(d/m),p=~~g,p&&p===g?(f=c,p--):f>c&&(f=c)),v=this._yoyo&&p&1,v&&(y=this._yEase,f=c-f),g=Wu(this._tTime,m),f===a&&!i&&this._initted&&p===g)return this._tTime=d,this;p!==g&&(_&&this._yEase&&B$(_,v),this.vars.repeatRefresh&&!v&&!this._lock&&f!==m&&this._initted&&(this._lock=i=1,this.render(Pn(m*p),!0).invalidate()._lock=0))}if(!this._initted){if(T$(this,u?s:f,i,o,d))return this._tTime=0,this;if(a!==this._time&&!(i&&this.vars.repeatRefresh&&p!==g))return this;if(c!==this._dur)return this.render(s,o,i)}if(this._tTime=d,this._time=f,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(y||this._ease)(f/c),this._from&&(this.ratio=b=1-b),f&&!a&&!o&&!p&&(Ls(this,"onStart"),this._tTime!==d))return this;for(h=this._pt;h;)h.r(b,h.d),h=h._next;_&&_.render(s<0?s:_._dur*_._ease(f/this._dur),o,i)||this._startAt&&(this._zTime=s),this._onUpdate&&!o&&(u&&Rw(this,s,o,i),Ls(this,"onUpdate")),this._repeat&&p!==g&&this.vars.onRepeat&&!o&&this.parent&&Ls(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(u&&!this._onUpdate&&Rw(this,s,!0,!0),(s||!c)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Wa(this,1),!o&&!(u&&!a)&&(d||a||v)&&(Ls(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),e.prototype.invalidate.call(this,s)},n.resetTo=function(s,o,i,a,l){Nh||Is.wake(),this._ts||this.play();
vendor: 10,515 bytes, line 1527
1527var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||DE(this,c),u=this._ease(c/this._dur),Kce(this,s,o,i,a,u,c,l)?this.resetTo(s,o,i,a,1):(N_(this,0),this.parent||E$(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(s,o){if(o===void 0&&(o="all"),!s&&(!o||o==="all"))return this._lazy=this._pt=0,this.parent?sf(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ur),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(s,o,Sa&&Sa.vars.overwrite!==!0)._first||sf(this),this.parent&&i!==this.timeline.totalDuration()&&Ku(this,this._dur*this.timeline._tDur/i,0,1),this}var a=this._targets,l=s?Zs(s):a,c=this._ptLookup,u=this._pt,d,f,h,p,m,g,v;if((!o||o==="all")&&kce(a,l))return o==="all"&&(this._pt=0),sf(this);for(d=this._op=this._op||[],o!=="all"&&(Jn(o)&&(m={},hs(o,function(b){return m[b]=1}),o=m),o=Gce(a,o)),v=a.length;v--;)if(~l.indexOf(a[v])){f=c[v],o==="all"?(d[v]=o,p=f,h={}):(h=d[v]=d[v]||{},p=o);for(m in p)g=f&&f[m],g&&((!("kill"in g.d)||g.d.kill(m)===!0)&&P_(this,g,"_pt"),delete f[m]),h!=="all"&&(h[m]=1)}return this._initted&&!this._pt&&u&&sf(this),this},t.to=function(s,o){return new t(s,o,arguments[2])},t.from=function(s,o){return Of(1,arguments)},t.delayedCall=function(s,o,i,a){return new t(o,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:o,onReverseComplete:o,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:a})},t.fromTo=function(s,o,i){return Of(2,arguments)},t.set=function(s,o){return o.duration=0,o.repeatDelay||(o.repeat=0),new t(s,o)},t.killTweensOf=function(s,o,i){return fn.killTweensOf(s,o,i)},t})(Dh);js(On.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});hs("staggerTo,staggerFrom,staggerFromTo",function(e){On[e]=function(){var t=new Wr,n=Ow.call(arguments,0);return n.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,n)}});var ME=function(t,n,r){return t[n]=r},W$=function(t,n,r){return t[n](r)},Xce=function(t,n,r,s){return t[n](s.fp,r)},Qce=function(t,n,r){return t.setAttribute(n,r)},$E=function(t,n){return yn(t[n])?W$:CE(t[n])&&t.setAttribute?Qce:ME},K$=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e6)/1e6,n)},Zce=function(t,n){return n.set(n.t,n.p,!!(n.s+n.c*t),n)},G$=function(t,n){var r=n._pt,s="";if(!t&&n.b)s=n.b;else if(t===1&&n.e)s=n.e;else{for(;r;)s=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+s,r=r._next;s+=n.c}n.set(n.t,n.p,s,n)},FE=function(t,n){for(var r=n._pt;r;)r.r(t,r.d),r=r._next},Jce=function(t,n,r,s){for(var o=this._pt,i;o;)i=o._next,o.p===s&&o.modifier(t,n,r),o=i},eue=function(t){for(var n=this._pt,r,s;n;)s=n._next,n.p===t&&!n.op||n.op===t?P_(this,n,"_pt"):n.dep||(r=1),n=s;return!r},tue=function(t,n,r,s){s.mSet(t,n,s.m.call(s.tween,r,s.mt),s)},Y$=function(t){for(var n=t._pt,r,s,o,i;n;){for(r=n._next,s=o;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:i)?n._prev._next=n:o=n,(n._next=s)?s._prev=n:i=n,n=r}t._pt=o},ps=(function(){function e(n,r,s,o,i,a,l,c,u){this.t=r,this.s=o,this.c=i,this.p=s,this.r=a||K$,this.d=l||this,this.set=c||ME,this.pr=u||0,this._next=n,n&&(n._prev=this)}var t=e.prototype;return t.modifier=function(r,s,o){this.mSet=this.mSet||this.set,this.set=tue,this.m=r,this.mt=o,this.tween=s},e})();hs(PE+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return OE[e]=1});Vs.TweenMax=Vs.TweenLite=On;Vs.TimelineLite=Vs.TimelineMax=Wr;fn=new Wr({sortChildren:!1,defaults:zu,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});$s.stringFilter=F$;var $l=[],Vm={},nue=[],MA=0,rue=0,ub=function(t){return(Vm[t]||nue).map(function(n){return n()})},Dw=function(){var t=Date.now(),n=[];t-MA>2&&(ub("matchMediaInit"),$l.forEach(function(r){var s=r.queries,o=r.conditions,i,a,l,c;for(a in s)i=Vo.matchMedia(s[a]).matches,i&&(l=1),i!==o[a]&&(o[a]=i,c=1);c&&(r.revert(),l&&n.push(r))}),ub("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(s){return r.add(null,s)})}),MA=t,ub("matchMedia"))},X$=(function(){function e(n,r){this.selector=r&&Pw(r),this.data=[],this._r=[],this.isReverted=!1,this.id=rue++,n&&this.add(n)}var t=e.prototype;return t.add=function(r,s,o){yn(r)&&(o=s,s=r,r=yn);var i=this,a=function(){var c=sn,u=i.selector,d;return c&&c!==i&&c.data.push(i),o&&(i.selector=Pw(o)),sn=i,d=s.apply(i,arguments),yn(d)&&i._r.push(d),sn=c,i.selector=u,i.isReverted=!1,d};return i.last=a,r===yn?a(i,function(l){return i.add(null,l)}):r?i[r]=a:a},t.ignore=function(r){var s=sn;sn=null,r(this),sn=s},t.getTweens=function(){var r=[];return this.data.forEach(function(s){return s instanceof e?r.push.apply(r,s.getTweens()):s instanceof On&&!(s.parent&&s.parent.data==="nested")&&r.push(s)}),r},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(r,s){var o=this;if(r?(function(){for(var a=o.getTweens(),l=o.data.length,c;l--;)c=o.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,d){return d.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=o.data.length;l--;)c=o.data[l],c instanceof Wr?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof On)&&c.revert&&c.revert(r);o._r.forEach(function(u){return u(r,o)}),o.isReverted=!0})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),s)for(var i=$l.length;i--;)$l[i].id===this.id&&$l.splice(i,1)},t.revert=function(r){this.kill(r||{})},e})(),sue=(function(){function e(n){this.contexts=[],this.scope=n,sn&&sn.data.push(this)}var t=e.prototype;return t.add=function(r,s,o){di(r)||(r={matches:r});var i=new X$(0,o||this.scope),a=i.conditions={},l,c,u;sn&&!i.selector&&(i.selector=sn.selector),this.contexts.push(i),s=i.add("onMatch",s),i.queries=r;for(c in r)c==="all"?u=1:(l=Vo.matchMedia(r[c]),l&&($l.indexOf(i)<0&&$l.push(i),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(Dw):l.addEventListener("change",Dw)));return u&&s(i,function(d){return i.add(null,d)}),this},t.revert=function(r){this.kill(r||{})},t.kill=function(r){this.contexts.forEach(function(s){return s.kill(r,!0)})},e})(),lv={registerPlugin:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(s){return D$(s)})},timeline:function(t){return new Wr(t)},getTweensOf:function(t,n){return fn.getTweensOf(t,n)},getProperty:function(t,n,r,s){Jn(t)&&(t=Zs(t)[0]);var o=Nl(t||{}).get,i=r?S$:w$;return r==="native"&&(r=""),t&&(n?i((Ts[n]&&Ts[n].get||o)(t,n,r,s)):function(a,l,c){return i((Ts[a]&&Ts[a].get||o)(t,a,l,c))})},quickSetter:function(t,n,r){if(t=Zs(t),t.length>1){var s=t.map(function(u){return ys.quickSetter(u,n,r)}),o=s.length;return function(u){for(var d=o;d--;)s[d](u)}}t=t[0]||{};var i=Ts[n],a=Nl(t),l=a.harness&&(a.harness.aliases||{})[n]||n,c=i?function(u){var d=new i;Yc._pt=0,d.init(t,r?u+r:u,Yc,0,[t]),d.render(1,d),Yc._pt&&FE(1,Yc)}:a.set(t,l);return i?c:function(u){return c(t,l,r?u+r:u,a,1)}},quickTo:function(t,n,r){var s,o=ys.to(t,js((s={},s[n]="+=0.1",s.paused=!0,s.stagger=0,s),r||{})),i=function(l,c,u){return o.resetTo(n,l,c,u)};return i.tween=o,i},isTweening:function(t){return fn.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ml(t.ease,zu.ease)),OA(zu,t||{})},config:function(t){return OA($s,t||{})},registerEffect:function(t){var n=t.name,r=t.effect,s=t.plugins,o=t.defaults,i=t.extendTimeline;(s||"").split(",").forEach(function(a){return a&&!Ts[a]&&!Vs[a]&&Oh(n+" effect requires "+a+" plugin.")}),ib[n]=function(a,l,c){return r(Zs(a),js(l||{},o),c)},i&&(Wr.prototype[n]=function(a,l,c){return this.add(ib[n](a,di(l)?l:(c=l)&&{},this),c)})},registerEase:function(t,n){St[t]=Ml(n)},parseEase:function(t,n){return arguments.length?Ml(t,n):St},getById:function(t){return fn.getById(t)},exportRoot:function(t,n){t===void 0&&(t={});var r=new Wr(t),s,o;for(r.smoothChildTiming=fs(t.smoothChildTiming),fn.remove(r),r._dp=0,r._time=r._tTime=fn._time,s=fn._first;s;)o=s._next,(n||!(!s._dur&&s instanceof On&&s.vars.onComplete===s._targets[0]))&&Wo(r,s,s._start-s._delay),s=o;return Wo(fn,r,0),r},context:function(t,n){return t?new X$(t,n):sn},matchMedia:function(t){return new sue(t)},matchMediaRefresh:function(){return $l.forEach(function(t){var n=t.conditions,r,s;for(s in n)n[s]&&(n[s]=!1,r=1);r&&t.revert()})||Dw()},addEventListener:function(t,n){var r=Vm[t]||(Vm[t]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(t,n){var r=Vm[t],s=r&&r.indexOf(n);s>=0&&r.splice(s,1)},utils:{wrap:Mce,wrapYoyo:$ce,distribute:R$,random:O$,snap:I$,normalize:Dce,getUnit:wr,clamp:Oce,splitColor:M$,toArray:Zs,selector:Pw,mapRange:L$,pipe:Lce,unitize:Nce,interpolate:Fce,shuffle:A$},install:g$,effects:ib,ticker:Is,updateRoot:Wr.updateRoot,plugins:Ts,globalTimeline:fn,core:{PropTween:ps,globals:v$,Tween:On,Timeline:Wr,Animation:Dh,getCache:Nl,_removeLinkedListItem:P_,reverting:function(){return ur},context:function(t){return t&&sn&&(sn.data.push(t),t._ctx=sn),sn},suppressOverwrites:function(t){return TE=t}}};hs("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return lv[e]=On[e]});Is.add(Wr.updateRoot);Yc=lv.to({},{duration:0});var oue=function(t,n){for(var r=t._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},iue=function(t,n){var r=t._targets,s,o,i;for(s in n)for(o=r.length;o--;)i=t._ptLookup[o][s],i&&(i=i.d)&&(i._pt&&(i=oue(i,s)),i&&i.modifier&&i.modifier(n[s],t,r[o],s))},db=function(t,n){return{name:t,rawVars:1,init:function(s,o,i){i._onInit=function(a){var l,c;if(Jn(o)&&(l={},hs(o,function(u){return l[u]=1}),o=l),n){l={};for(c in o)l[c]=n(o[c]);o=l}iue(a,o)}}}},ys=lv.registerPlugin({name:"attr",init:function(t,n,r,s,o){var i,a,l;this.tween=r;for(i in n)l=t.getAttribute(i)||"",a=this.add(t,"setAttribute",(l||0)+"",n[i],s,o,0,0,i),a.op=i,a.b=l,this._props.push(i)},render:function(t,n){for(var r=n._pt;r;)ur?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function(t,n){for(var r=n.length;r--;)this.add(t,r,t[r]||0,n[r],0,0,0,0,0,1)}},db("roundProps",Lw),db("modifiers"),db("snap",I$))||lv;On.version=Wr.version=ys.version="3.12.7";m$=1;AE()&&Gu();St.Power0;St.Power1;St.Power2;St.Power3;St.Power4;St.Linear;St.Quad;St.Cubic;St.Quart;St.Quint;St.Strong;St.Elastic;St.Back;St.SteppedEase;St.Bounce;St.Sine;St.Expo;
vendor: 10,627 bytes, lines 1527-1535
1527St.Circ;/*! 1528 * CSSPlugin 3.12.7 1529 * https://gsap.com 1530 * 1531 * Copyright 2008-2025, GreenSock. All rights reserved. 1532 * Subject to the terms at https://gsap.com/standard-license or for 1533 * Club GSAP members, the agreement issued with that membership. 1534 * @author: Jack Doyle, [email protected] 1535*/var $A,Ea,mu,UE,xl,FA,BE,aue=function(){return typeof window<"u"},Zi={},bl=180/Math.PI,gu=Math.PI/180,Cc=Math.atan2,UA=1e8,VE=/([A-Z])/g,lue=/(left|right|width|margin|padding|x)/i,cue=/[\s,\(]\S/,Ko={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Mw=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},uue=function(t,n){return n.set(n.t,n.p,t===1?n.e:Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},due=function(t,n){return n.set(n.t,n.p,t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},fue=function(t,n){var r=n.s+n.c*t;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Q$=function(t,n){return n.set(n.t,n.p,t?n.e:n.b,n)},Z$=function(t,n){return n.set(n.t,n.p,t!==1?n.b:n.e,n)},hue=function(t,n,r){return t.style[n]=r},pue=function(t,n,r){return t.style.setProperty(n,r)},mue=function(t,n,r){return t._gsap[n]=r},gue=function(t,n,r){return t._gsap.scaleX=t._gsap.scaleY=r},vue=function(t,n,r,s,o){var i=t._gsap;i.scaleX=i.scaleY=r,i.renderTransform(o,i)},_ue=function(t,n,r,s,o){var i=t._gsap;i[n]=r,i.renderTransform(o,i)},mn="transform",ms=mn+"Origin",yue=function e(t,n){var r=this,s=this.target,o=s.style,i=s._gsap;if(t in Zi&&o){if(this.tfm=this.tfm||{},t!=="transform")t=Ko[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return r.tfm[a]=xi(s,a)}):this.tfm[t]=i.x?i[t]:xi(s,t),t===ms&&(this.tfm.zOrigin=i.zOrigin);else return Ko.transform.split(",").forEach(function(a){return e.call(r,a,n)});if(this.props.indexOf(mn)>=0)return;i.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(ms,n,"")),t=mn}(o||n)&&this.props.push(t,n,o[t])},J$=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},bue=function(){var t=this.props,n=this.target,r=n.style,s=n._gsap,o,i;for(o=0;o<t.length;o+=3)t[o+1]?t[o+1]===2?n[t[o]](t[o+2]):n[t[o]]=t[o+2]:t[o+2]?r[t[o]]=t[o+2]:r.removeProperty(t[o].substr(0,2)==="--"?t[o]:t[o].replace(VE,"-$1").toLowerCase());if(this.tfm){for(i in this.tfm)s[i]=this.tfm[i];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),o=BE(),(!o||!o.isStart)&&!r[mn]&&(J$(r),s.zOrigin&&r[ms]&&(r[ms]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},e5=function(t,n){var r={target:t,props:[],revert:bue,save:yue};return t._gsap||ys.core.getCache(t),n&&t.style&&t.nodeType&&n.split(",").forEach(function(s){return r.save(s)}),r},t5,$w=function(t,n){var r=Ea.createElementNS?Ea.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ea.createElement(t);return r&&r.style?r:Ea.createElement(t)},ri=function e(t,n,r){var s=getComputedStyle(t);return s[n]||s.getPropertyValue(n.replace(VE,"-$1").toLowerCase())||s.getPropertyValue(n)||!r&&e(t,Yu(n)||n,1)||""},BA="O,Moz,ms,Ms,Webkit".split(","),Yu=function(t,n,r){var s=n||xl,o=s.style,i=5;if(t in o&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(BA[i]+t in o););return i<0?null:(i===3?"ms":i>=0?BA[i]:"")+t},Fw=function(){aue()&&window.document&&($A=window,Ea=$A.document,mu=Ea.documentElement,xl=$w("div")||{style:{}},$w("div"),mn=Yu(mn),ms=mn+"Origin",xl.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",t5=!!Yu("perspective"),BE=ys.core.reverting,UE=1)},VA=function(t){var n=t.ownerSVGElement,r=$w("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=t.cloneNode(!0),o;s.style.display="block",r.appendChild(s),mu.appendChild(r);try{o=s.getBBox()}catch{}return r.removeChild(s),mu.removeChild(r),o},jA=function(t,n){for(var r=n.length;r--;)if(t.hasAttribute(n[r]))return t.getAttribute(n[r])},n5=function(t){var n,r;try{n=t.getBBox()}catch{n=VA(t),r=1}return n&&(n.width||n.height)||r||(n=VA(t)),n&&!n.width&&!n.x&&!n.y?{x:+jA(t,["x","cx","x1"])||0,y:+jA(t,["y","cy","y1"])||0,width:0,height:0}:n},r5=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&n5(t))},ec=function(t,n){if(n){var r=t.style,s;n in Zi&&n!==ms&&(n=mn),r.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(s==="--"?n:n.replace(VE,"-$1").toLowerCase())):r.removeAttribute(n)}},ka=function(t,n,r,s,o,i){var a=new ps(t._pt,n,r,0,1,i?Z$:Q$);return t._pt=a,a.b=s,a.e=o,t._props.push(r),a},HA={deg:1,rad:1,turn:1},wue={grid:1,flex:1},Ka=function e(t,n,r,s){var o=parseFloat(r)||0,i=(r+"").trim().substr((o+"").length)||"px",a=xl.style,l=lue.test(n),c=t.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),d=100,f=s==="px",h=s==="%",p,m,g,v;if(s===i||!o||HA[s]||HA[i])return o;if(i!=="px"&&!f&&(o=e(t,n,r,"px")),v=t.getCTM&&r5(t),(h||i==="%")&&(Zi[n]||~n.indexOf("adius")))return p=v?t.getBBox()[l?"width":"height"]:t[u],En(h?o/p*d:o/100*p);if(a[l?"width":"height"]=d+(f?i:s),m=s!=="rem"&&~n.indexOf("adius")||s==="em"&&t.appendChild&&!c?t:t.parentNode,v&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===Ea||!m.appendChild)&&(m=Ea.body),g=m._gsap,g&&h&&g.width&&l&&g.time===Is.time&&!g.uncache)return En(o/g.width*d);if(h&&(n==="height"||n==="width")){var b=t.style[n];t.style[n]=d+s,p=t[u],b?t.style[n]=b:ec(t,n)}else(h||i==="%")&&!wue[ri(m,"display")]&&(a.position=ri(t,"position")),m===t&&(a.position="static"),m.appendChild(xl),p=xl[u],m.removeChild(xl),a.position="absolute";return l&&h&&(g=Nl(m),g.time=Is.time,g.width=m[u]),En(f?p*o/d:p&&o?d/p*o:0)},xi=function(t,n,r,s){var o;return UE||Fw(),n in Ko&&n!=="transform"&&(n=Ko[n],~n.indexOf(",")&&(n=n.split(",")[0])),Zi[n]&&n!=="transform"?(o=$h(t,s),o=n!=="transformOrigin"?o[n]:o.svg?o.origin:uv(ri(t,ms))+" "+o.zOrigin+"px"):(o=t.style[n],(!o||o==="auto"||s||~(o+"").indexOf("calc("))&&(o=cv[n]&&cv[n](t,n,r)||ri(t,n)||y$(t,n)||(n==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Ka(t,n,o,r)+r:o},Sue=function(t,n,r,s){if(!r||r==="none"){var o=Yu(n,t,1),i=o&&ri(t,o,1);i&&i!==r?(n=o,r=i):n==="borderColor"&&(r=ri(t,"borderTopColor"))}var a=new ps(this._pt,t.style,n,0,1,G$),l=0,c=0,u,d,f,h,p,m,g,v,b,_,y,w;if(a.b=r,a.e=s,r+="",s+="",s==="auto"&&(m=t.style[n],t.style[n]=s,s=ri(t,n)||s,m?t.style[n]=m:ec(t,n)),u=[r,s],F$(u),r=u[0],s=u[1],f=r.match(Gc)||[],w=s.match(Gc)||[],w.length){for(;d=Gc.exec(s);)g=d[0],b=s.substring(l,d.index),p?p=(p+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(p=1),g!==(m=f[c++]||"")&&(h=parseFloat(m)||0,y=m.substr((h+"").length),g.charAt(1)==="="&&(g=pu(h,g)+y),v=parseFloat(g),_=g.substr((v+"").length),l=Gc.lastIndex-_.length,_||(_=_||$s.units[n]||y,l===s.length&&(s+=_,a.e+=_)),y!==_&&(h=Ka(t,n,m,_)||0),a._pt={_next:a._pt,p:b||c===1?b:",",s:h,c:v-h,m:p&&p<4||n==="zIndex"?Math.round:0});a.c=l<s.length?s.substring(l,s.length):""}else a.r=n==="display"&&s==="none"?Z$:Q$;return h$.test(s)&&(a.e=0),this._pt=a,a},zA={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Eue=function(t){var n=t.split(" "),r=n[0],s=n[1]||"50%";return(r==="top"||r==="bottom"||s==="left"||s==="right")&&(t=r,r=s,s=t),n[0]=zA[r]||r,n[1]=zA[s]||s,n.join(" ")},kue=function(t,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,s=r.style,o=n.u,i=r._gsap,a,l,c;if(o==="all"||o===!0)s.cssText="",l=1;else for(o=o.split(","),c=o.length;--c>-1;)a=o[c],Zi[a]&&(l=1,a=a==="transformOrigin"?ms:mn),ec(r,a);l&&(ec(r,mn),i&&(i.svg&&r.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",$h(r,1),i.uncache=1,J$(s)))}},cv={clearProps:function(t,n,r,s,o){if(o.data!=="isFromStart"){var i=t._pt=new ps(t._pt,n,r,0,0,kue);return i.u=s,i.pr=-10,i.tween=o,t._props.push(r),1}}},Mh=[1,0,0,1,0,0],s5={},o5=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},qA=function(t){var n=ri(t,mn);return o5(n)?Mh:n.substr(7).match(f$).map(En)},jE=function(t,n){var r=t._gsap||Nl(t),s=t.style,o=qA(t),i,a,l,c;return r.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,o=[l.a,l.b,l.c,l.d,l.e,l.f],o.join(",")==="1,0,0,1,0,0"?Mh:o):(o===Mh&&!t.offsetParent&&t!==mu&&!r.svg&&(l=s.display,s.display="block",i=t.parentNode,(!i||!t.offsetParent&&!t.getBoundingClientRect().width)&&(c=1,a=t.nextElementSibling,mu.appendChild(t)),o=qA(t),l?s.display=l:ec(t,"display"),c&&(a?i.insertBefore(t,a):i?i.appendChild(t):mu.removeChild(t))),n&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},Uw=function(t,n,r,s,o,i){var a=t._gsap,l=o||jE(t,!0),c=a.xOrigin||0,u=a.yOrigin||0,d=a.xOffset||0,f=a.yOffset||0,h=l[0],p=l[1],m=l[2],g=l[3],v=l[4],b=l[5],_=n.split(" "),y=parseFloat(_[0])||0,w=parseFloat(_[1])||0,S,E,x,T;r?l!==Mh&&(E=h*g-p*m)&&(x=y*(g/E)+w*(-m/E)+(m*b-g*v)/E,T=y*(-p/E)+w*(h/E)-(h*b-p*v)/E,y=x,w=T):(S=n5(t),y=S.x+(~_[0].indexOf("%")?y/100*S.width:y),w=S.y+(~(_[1]||_[0]).indexOf("%")?w/100*S.height:w)),s||s!==!1&&a.smooth?(v=y-c,b=w-u,a.xOffset=d+(v*h+b*m)-v,a.yOffset=f+(v*p+b*g)-b):a.xOffset=a.yOffset=0,a.xOrigin=y,a.yOrigin=w,a.smooth=!!s,a.origin=n,a.originIsAbsolute=!!r,t.style[ms]="0px 0px",i&&(ka(i,a,"xOrigin",c,y),ka(i,a,"yOrigin",u,w),ka(i,a,"xOffset",d,a.xOffset),ka(i,a,"yOffset",f,a.yOffset)),t.setAttribute("data-svg-origin",y+" "+w)},$h=function(t,n){var r=t._gsap||new j$(t);if("x"in r&&!n&&!r.uncache)return r;var s=t.style,o=r.scaleX<0,i="px",a="deg",l=getComputedStyle(t),c=ri(t,ms)||"0",u,d,f,h,p,m,g,v,b,_,y,w,S,E,x,T,O,z,P,q,X,J,F,Q,W,ee,N,de,pe,je,Re,Pe;return u=d=f=m=g=v=b=_=y=0,h=p=1,r.svg=!!(t.getCTM&&r5(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(s[mn]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[mn]!=="none"?l[mn]:"")),s.scale=s.rotate=s.translate="none"),E=jE(t,r.svg),r.svg&&(r.uncache?(W=t.getBBox(),c=r.xOrigin-W.x+"px "+(r.yOrigin-W.y)+"px",Q=""):Q=!n&&t.getAttribute("data-svg-origin"),Uw(t,Q||c,!!Q||r.originIsAbsolute,r.smooth!==!1,E)),w=r.xOrigin||0,S=r.yOrigin||0,E!==Mh&&(z=E[0],P=E[1],q=E[2],X=E[3],u=J=E[4],d=F=E[5],E.length===6?(h=Math.sqrt(z*z+P*P),p=Math.sqrt(X*X+q*q),m=z||P?Cc(P,z)*bl:0,b=q||X?Cc(q,X)*bl+m:0,b&&(p*=Math.abs(Math.cos(b*gu))),r.svg&&(u-=w-(w*z+S*q),d-=S-(w*P+S*X))):(Pe=E[6],je=E[7],N=E[8],de=E[9],pe=E[10],Re=E[11],u=E[12],d=E[13],f=E[14],x=Cc(Pe,pe),g=x*bl,x&&(T=Math.cos(-x),O=Math.sin(-x),Q=J*T+N*O,W=F*T+de*O,ee=Pe*T+pe*O,N=J*-O+N*T,de=F*-O+de*T,pe=Pe*-O+pe*T,Re=je*-O+Re*T,J=Q,F=W,Pe=ee),x=Cc(-q,pe),v=x*bl,x&&(T=Math.cos(-x),O=Math.sin(-x),Q=z*T-N*O,W=P*T-de*O,ee=q*T-pe*O,Re=X*O+Re*T,z=Q,P=W,q=ee),x=Cc(P,z),m=
vendor: 4,245 bytes, line 1535
1535x*bl,x&&(T=Math.cos(x),O=Math.sin(x),Q=z*T+P*O,W=J*T+F*O,P=P*T-z*O,F=F*T-J*O,z=Q,J=W),g&&Math.abs(g)+Math.abs(m)>359.9&&(g=m=0,v=180-v),h=En(Math.sqrt(z*z+P*P+q*q)),p=En(Math.sqrt(F*F+Pe*Pe)),x=Cc(J,F),b=Math.abs(x)>2e-4?x*bl:0,y=Re?1/(Re<0?-Re:Re):0),r.svg&&(Q=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!o5(ri(t,mn)),Q&&t.setAttribute("transform",Q))),Math.abs(b)>90&&Math.abs(b)<270&&(o?(h*=-1,b+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,b+=b<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+i,r.y=d-((r.yPercent=d&&(!n&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-d)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+i,r.z=f+i,r.scaleX=En(h),r.scaleY=En(p),r.rotation=En(m)+a,r.rotationX=En(g)+a,r.rotationY=En(v)+a,r.skewX=b+a,r.skewY=_+a,r.transformPerspective=y+i,(r.zOrigin=parseFloat(c.split(" ")[2])||!n&&r.zOrigin||0)&&(s[ms]=uv(c)),r.xOffset=r.yOffset=0,r.force3D=$s.force3D,r.renderTransform=r.svg?Tue:t5?i5:xue,r.uncache=0,r},uv=function(t){return(t=t.split(" "))[0]+" "+t[1]},fb=function(t,n,r){var s=wr(n);return En(parseFloat(n)+parseFloat(Ka(t,"x",r+"px",s)))+s},xue=function(t,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,i5(t,n)},pl="0deg",qd="0px",ml=") ",i5=function(t,n){var r=n||this,s=r.xPercent,o=r.yPercent,i=r.x,a=r.y,l=r.z,c=r.rotation,u=r.rotationY,d=r.rotationX,f=r.skewX,h=r.skewY,p=r.scaleX,m=r.scaleY,g=r.transformPerspective,v=r.force3D,b=r.target,_=r.zOrigin,y="",w=v==="auto"&&t&&t!==1||v===!0;if(_&&(d!==pl||u!==pl)){var S=parseFloat(u)*gu,E=Math.sin(S),x=Math.cos(S),T;S=parseFloat(d)*gu,T=Math.cos(S),i=fb(b,i,E*T*-_),a=fb(b,a,-Math.sin(S)*-_),l=fb(b,l,x*T*-_+_)}g!==qd&&(y+="perspective("+g+ml),(s||o)&&(y+="translate("+s+"%, "+o+"%) "),(w||i!==qd||a!==qd||l!==qd)&&(y+=l!==qd||w?"translate3d("+i+", "+a+", "+l+") ":"translate("+i+", "+a+ml),c!==pl&&(y+="rotate("+c+ml),u!==pl&&(y+="rotateY("+u+ml),d!==pl&&(y+="rotateX("+d+ml),(f!==pl||h!==pl)&&(y+="skew("+f+", "+h+ml),(p!==1||m!==1)&&(y+="scale("+p+", "+m+ml),b.style[mn]=y||"translate(0, 0)"},Tue=function(t,n){var r=n||this,s=r.xPercent,o=r.yPercent,i=r.x,a=r.y,l=r.rotation,c=r.skewX,u=r.skewY,d=r.scaleX,f=r.scaleY,h=r.target,p=r.xOrigin,m=r.yOrigin,g=r.xOffset,v=r.yOffset,b=r.forceCSS,_=parseFloat(i),y=parseFloat(a),w,S,E,x,T;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=gu,c*=gu,w=Math.cos(l)*d,S=Math.sin(l)*d,E=Math.sin(l-c)*-f,x=Math.cos(l-c)*f,c&&(u*=gu,T=Math.tan(c-u),T=Math.sqrt(1+T*T),E*=T,x*=T,u&&(T=Math.tan(u),T=Math.sqrt(1+T*T),w*=T,S*=T)),w=En(w),S=En(S),E=En(E),x=En(x)):(w=d,x=f,S=E=0),(_&&!~(i+"").indexOf("px")||y&&!~(a+"").indexOf("px"))&&(_=Ka(h,"x",i,"px"),y=Ka(h,"y",a,"px")),(p||m||g||v)&&(_=En(_+p-(p*w+m*E)+g),y=En(y+m-(p*S+m*x)+v)),(s||o)&&(T=h.getBBox(),_=En(_+s/100*T.width),y=En(y+o/100*T.height)),T="matrix("+w+","+S+","+E+","+x+","+_+","+y+")",h.setAttribute("transform",T),b&&(h.style[mn]=T)},Cue=function(t,n,r,s,o){var i=360,a=Jn(o),l=parseFloat(o)*(a&&~o.indexOf("rad")?bl:1),c=l-s,u=s+c+"deg",d,f;return a&&(d=o.split("_")[1],d==="short"&&(c%=i,c!==c%(i/2)&&(c+=c<0?i:-i)),d==="cw"&&c<0?c=(c+i*UA)%i-~~(c/i)*i:d==="ccw"&&c>0&&(c=(c-i*UA)%i-~~(c/i)*i)),t._pt=f=new ps(t._pt,n,r,s,c,uue),f.e=u,f.u="deg",t._props.push(r),f},WA=function(t,n){for(var r in n)t[r]=n[r];return t},Aue=function(t,n,r){var s=WA({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",i=r.style,a,l,c,u,d,f,h,p;s.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),i[mn]=n,a=$h(r,1),ec(r,mn),r.setAttribute("transform",c)):(c=getComputedStyle(r)[mn],i[mn]=n,a=$h(r,1),i[mn]=c);for(l in Zi)c=s[l],u=a[l],c!==u&&o.indexOf(l)<0&&(h=wr(c),p=wr(u),d=h!==p?Ka(r,l,c,p):parseFloat(c),f=parseFloat(u),t._pt=new ps(t._pt,a,l,d,f-d,Mw),t._pt.u=p||0,t._props.push(l));WA(a,s)};hs("padding,margin,Width,Radius",function(e,t){var n="Top",r="Right",s="Bottom",o="Left",i=(t<3?[n,r,s,o]:[n+o,n+r,s+r,s+o]).map(function(a){return t<2?e+a:"border"+a+e});cv[t>1?"border"+e:e]=function(a,l,c,u,d){var f,h;if(arguments.length<4)return f=i.map(function(p){return xi(a,p,c)}),h=f.join(" "),h.split(f[0]).length===5?f[0]:h;f=(u+"").split(" "),h={}
vendor: 45,746 bytes, lines 1535-1551
1535,i.forEach(function(p,m){return h[p]=f[m]=f[m]||f[(m-1)/2|0]}),a.init(l,h,d)}});var a5={name:"css",register:Fw,targetTest:function(t){return t.style&&t.nodeType},init:function(t,n,r,s,o){var i=this._props,a=t.style,l=r.vars.startAt,c,u,d,f,h,p,m,g,v,b,_,y,w,S,E,x;UE||Fw(),this.styles=this.styles||e5(t),x=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(u=n[m],!(Ts[m]&&H$(m,n,r,s,t,o)))){if(h=typeof u,p=cv[m],h==="function"&&(u=u.call(r,s,t,o),h=typeof u),h==="string"&&~u.indexOf("random(")&&(u=Lh(u)),p)p(this,t,m,u,r)&&(E=1);else if(m.substr(0,2)==="--")c=(getComputedStyle(t).getPropertyValue(m)+"").trim(),u+="",Da.lastIndex=0,Da.test(c)||(g=wr(c),v=wr(u)),v?g!==v&&(c=Ka(t,m,c,v)+v):g&&(u+=g),this.add(a,"setProperty",c,u,s,o,0,0,m),i.push(m),x.push(m,0,a[m]);else if(h!=="undefined"){if(l&&m in l?(c=typeof l[m]=="function"?l[m].call(r,s,t,o):l[m],Jn(c)&&~c.indexOf("random(")&&(c=Lh(c)),wr(c+"")||c==="auto"||(c+=$s.units[m]||wr(xi(t,m))||""),(c+"").charAt(1)==="="&&(c=xi(t,m))):c=xi(t,m),f=parseFloat(c),b=h==="string"&&u.charAt(1)==="="&&u.substr(0,2),b&&(u=u.substr(2)),d=parseFloat(u),m in Ko&&(m==="autoAlpha"&&(f===1&&xi(t,"visibility")==="hidden"&&d&&(f=0),x.push("visibility",0,a.visibility),ka(this,a,"visibility",f?"inherit":"hidden",d?"inherit":"hidden",!d)),m!=="scale"&&m!=="transform"&&(m=Ko[m],~m.indexOf(",")&&(m=m.split(",")[0]))),_=m in Zi,_){if(this.styles.save(m),y||(w=t._gsap,w.renderTransform&&!n.parseTransform||$h(t,n.parseTransform),S=n.smoothOrigin!==!1&&w.smooth,y=this._pt=new ps(this._pt,a,mn,0,1,w.renderTransform,w,0,-1),y.dep=1),m==="scale")this._pt=new ps(this._pt,w,"scaleY",w.scaleY,(b?pu(w.scaleY,b+d):d)-w.scaleY||0,Mw),this._pt.u=0,i.push("scaleY",m),m+="X";else if(m==="transformOrigin"){x.push(ms,0,a[ms]),u=Eue(u),w.svg?Uw(t,u,0,S,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==w.zOrigin&&ka(this,w,"zOrigin",w.zOrigin,v),ka(this,a,m,uv(c),uv(u)));continue}else if(m==="svgOrigin"){Uw(t,u,1,S,0,this);continue}else if(m in s5){Cue(this,w,m,f,b?pu(f,b+u):u);continue}else if(m==="smoothOrigin"){ka(this,w,"smooth",w.smooth,u);continue}else if(m==="force3D"){w[m]=u;continue}else if(m==="transform"){Aue(this,u,t);continue}}else m in a||(m=Yu(m)||m);if(_||(d||d===0)&&(f||f===0)&&!cue.test(u)&&m in a)g=(c+"").substr((f+"").length),d||(d=0),v=wr(u)||(m in $s.units?$s.units[m]:g),g!==v&&(f=Ka(t,m,c,v)),this._pt=new ps(this._pt,_?w:a,m,f,(b?pu(f,b+d):d)-f,!_&&(v==="px"||m==="zIndex")&&n.autoRound!==!1?fue:Mw),this._pt.u=v||0,g!==v&&v!=="%"&&(this._pt.b=c,this._pt.r=due);else if(m in a)Sue.call(this,t,m,c,b?b+u:u);else if(m in t)this.add(t,m,c||t[m],b?b+u:u,s,o);else if(m!=="parseTransform"){IE(m,u);continue}_||(m in a?x.push(m,0,a[m]):typeof t[m]=="function"?x.push(m,2,t[m]()):x.push(m,1,c||t[m])),i.push(m)}}E&&Y$(this)},render:function(t,n){if(n.tween._time||!BE())for(var r=n._pt;r;)r.r(t,r.d),r=r._next;else n.styles.revert()},get:xi,aliases:Ko,getSetter:function(t,n,r){var s=Ko[n];return s&&s.indexOf(",")<0&&(n=s),n in Zi&&n!==ms&&(t._gsap.x||xi(t,"x"))?r&&FA===r?n==="scale"?gue:mue:(FA=r||{})&&(n==="scale"?vue:_ue):t.style&&!CE(t.style[n])?hue:~n.indexOf("-")?pue:$E(t,n)},core:{_removeProperty:ec,_getMatrix:jE}};ys.utils.checkPrefix=Yu;ys.core.getStyleSaver=e5;(function(e,t,n,r){var s=hs(e+","+t+","+n,function(o){Zi[o]=1});hs(t,function(o){$s.units[o]="deg",s5[o]=1}),Ko[s[13]]=e+","+t,hs(r,function(o){var i=o.split(":");Ko[i[1]]=s[i[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");hs("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){$s.units[e]="px"});ys.registerPlugin(a5);var Bw=ys.registerPlugin(a5)||ys;Bw.core.Tween;function Rue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iue(e,t,n){return t&&Rue(e.prototype,t),e}/*! 1536 * Observer 3.12.7 1537 * https://gsap.com 1538 * 1539 * @license Copyright 2008-2025, GreenSock. All rights reserved. 1540 * Subject to the terms at https://gsap.com/standard-license or for 1541 * Club GSAP members, the agreement issued with that membership. 1542 * @author: Jack Doyle, [email protected] 1543*/var cr,jm,Os,xa,Ta,vu,l5,wl,Lf,c5,Di,mo,u5,d5=function(){return cr||typeof window<"u"&&(cr=window.gsap)&&cr.registerPlugin&&cr},f5=1,Xc=[],ct=[],si=[],Nf=Date.now,Vw=function(t,n){return n},Oue=function(){var t=Lf.core,n=t.bridge||{},r=t._scrollers,s=t._proxies;r.push.apply(r,ct),s.push.apply(s,si),ct=r,si=s,Vw=function(i,a){return n[i](a)}},Ma=function(t,n){return~si.indexOf(t)&&si[si.indexOf(t)+1][n]},Df=function(t){return!!~c5.indexOf(t)},Ur=function(t,n,r,s,o){return t.addEventListener(n,r,{passive:s!==!1,capture:!!o})},$r=function(t,n,r,s){return t.removeEventListener(n,r,!!s)},Jp="scrollLeft",em="scrollTop",jw=function(){return Di&&Di.isPressed||ct.cache++},dv=function(t,n){var r=function s(o){if(o||o===0){f5&&(Os.history.scrollRestoration="manual");var i=Di&&Di.isPressed;o=s.v=Math.round(o)||(Di&&Di.iOS?1:0),t(o),s.cacheID=ct.cache,i&&Vw("ss",o)}else(n||ct.cache!==s.cacheID||Vw("ref"))&&(s.cacheID=ct.cache,s.v=t());return s.v+s.offset};return r.offset=0,t&&r},Kr={s:Jp,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:dv(function(e){return arguments.length?Os.scrollTo(e,Bn.sc()):Os.pageXOffset||xa[Jp]||Ta[Jp]||vu[Jp]||0})},Bn={s:em,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Kr,sc:dv(function(e){return arguments.length?Os.scrollTo(Kr.sc(),e):Os.pageYOffset||xa[em]||Ta[em]||vu[em]||0})},rs=function(t,n){return(n&&n._ctx&&n._ctx.selector||cr.utils.toArray)(t)[0]||(typeof t=="string"&&cr.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},Ga=function(t,n){var r=n.s,s=n.sc;Df(t)&&(t=xa.scrollingElement||Ta);var o=ct.indexOf(t),i=s===Bn.sc?1:2;!~o&&(o=ct.push(t)-1),ct[o+i]||Ur(t,"scroll",jw);var a=ct[o+i],l=a||(ct[o+i]=dv(Ma(t,r),!0)||(Df(t)?s:dv(function(c){return arguments.length?t[r]=c:t[r]})));return l.target=t,a||(l.smooth=cr.getProperty(t,"scrollBehavior")==="smooth"),l},Hw=function(t,n,r){var s=t,o=t,i=Nf(),a=i,l=n||50,c=Math.max(500,l*3),u=function(p,m){var g=Nf();m||g-i>l?(o=s,s=p,a=i,i=g):r?s+=p:s=o+(p-o)/(g-a)*(i-a)},d=function(){o=s=r?0:s,a=i=0},f=function(p){var m=a,g=o,v=Nf();return(p||p===0)&&p!==s&&u(p),i===a||v-a>c?0:(s+(r?g:-g))/((r?v:i)-m)*1e3};return{update:u,reset:d,getVelocity:f}},Wd=function(t,n){return n&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},KA=function(t){var n=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(n)>=Math.abs(r)?n:r},h5=function(){Lf=cr.core.globals().ScrollTrigger,Lf&&Lf.core&&Oue()},p5=function(t){return cr=t||d5(),!jm&&cr&&typeof document<"u"&&document.body&&(Os=window,xa=document,Ta=xa.documentElement,vu=xa.body,c5=[Os,xa,Ta,vu],cr.utils.clamp,u5=cr.core.context||function(){},wl="onpointerenter"in vu?"pointer":"mouse",l5=Tn.isTouch=Os.matchMedia&&Os.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Os||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,mo=Tn.eventTypes=("ontouchstart"in Ta?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ta?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return f5=0},500),h5(),jm=1),jm};Kr.op=Bn;ct.cache=0;var Tn=(function(){function e(n){this.init(n)}var t=e.prototype;return t.init=function(r){jm||p5(cr)||console.warn("Please gsap.registerPlugin(Observer)"),Lf||h5();var s=r.tolerance,o=r.dragMinimum,i=r.type,a=r.target,l=r.lineHeight,c=r.debounce,u=r.preventDefault,d=r.onStop,f=r.onStopDelay,h=r.ignore,p=r.wheelSpeed,m=r.event,g=r.onDragStart,v=r.onDragEnd,b=r.onDrag,_=r.onPress,y=r.onRelease,w=r.onRight,S=r.onLeft,E=r.onUp,x=r.onDown,T=r.onChangeX,O=r.onChangeY,z=r.onChange,P=r.onToggleX,q=r.onToggleY,X=r.onHover,J=r.onHoverEnd,F=r.onMove,Q=r.ignoreCheck,W=r.isNormalizer,ee=r.onGestureStart,N=r.onGestureEnd,de=r.onWheel,pe=r.onEnable,je=r.onDisable,Re=r.onClick,Pe=r.scrollSpeed,Ie=r.capture,Le=r.allowClicks,fe=r.lockAxis,K=r.onLockAxis;this.target=a=rs(a)||Ta,this.vars=r,h&&(h=cr.utils.toArray(h)),s=s||1e-9,o=o||0,p=p||1,Pe=Pe||1,i=i||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(Os.getComputedStyle(vu).lineHeight)||22);var ie,ae,ge,I,D,B,Y,L=this,k=0,R=0,$=r.passive||!u&&r.passive!==!1,U=Ga(a,Kr),Z=Ga(a,Bn),re=U(),M=Z(),j=~i.indexOf("touch")&&!~i.indexOf("pointer")&&mo[0]==="pointerdown",ue=Df(a),he=a.ownerDocument||xa,Fe=[0,0,0],Ne=[0,0,0],Qe=0,xt=function(){return Qe=Nf()},ft=function(Ue,Rt){return(L.event=Ue)&&h&&~h.indexOf(Ue.target)||Rt&&j&&Ue.pointerType!=="touch"||Q&&Q(Ue,Rt)},An=function(){L._vx.reset(),L._vy.reset(),ae.pause(),d&&d(L)},an=function(){var Ue=L.deltaX=KA(Fe),Rt=L.deltaY=KA(Ne),ve=Math.abs(Ue)>=s,We=Math.abs(Rt)>=s;z&&(ve||We)&&z(L,Ue,Rt,Fe,Ne),ve&&(w&&L.deltaX>0&&w(L),S&&L.deltaX<0&&S(L),T&&T(L),P&&L.deltaX<0!=k<0&&P(L),k=L.deltaX,Fe[0]=Fe[1]=Fe[2]=0),We&&(x&&L.deltaY>0&&x(L),E&&L.deltaY<0&&E(L),O&&O(L),q&&L.deltaY<0!=R<0&&q(L),R=L.deltaY,Ne[0]=Ne[1]=Ne[2]=0),(I||ge)&&(F&&F(L),ge&&(g&&ge===1&&g(L),b&&b(L),ge=0),I=!1),B&&!(B=!1)&&K&&K(L),D&&(de(L),D=!1),ie=0},Zr=function(Ue,Rt,ve){Fe[ve]+=Ue,Ne[ve]+=Rt,L._vx.update(Ue),L._vy.update(Rt),c?ie||(ie=requestAnimationFrame(an)):an()},ln=function(Ue,Rt){fe&&!Y&&(L.axis=Y=Math.abs(Ue)>Math.abs(Rt)?"x":"y",B=!0),Y!=="y"&&(Fe[2]+=Ue,L._vx.update(Ue,!0)),Y!=="x"&&(Ne[2]+=Rt,L._vy.update(Rt,!0)),c?ie||(ie=requestAnimationFrame(an)):an()},Mn=function(Ue){if(!ft(Ue,1)){Ue=Wd(Ue,u);var Rt=Ue.clientX,ve=Ue.clientY,We=Rt-L.x,Me=ve-L.y,Ke=L.isDragging;L.x=Rt,L.y=ve,(Ke||(We||Me)&&(Math.abs(L.startX-Rt)>=o||Math.abs(L.startY-ve)>=o))&&(ge=Ke?2:1,Ke||(L.isDragging=!0),ln(We,Me))}},Po=L.onPress=function(Ye){ft(Ye,1)||Ye&&Ye.button||(L.axis=Y=null,ae.pause(),L.isPressed=!0,Ye=Wd(Ye),k=R=0,L.startX=L.x=Ye.clientX,L.startY=L.y=Ye.clientY,L._vx.reset(),L._vy.reset(),Ur(W?a:he,mo[1],Mn,$,!0),L.deltaX=L.deltaY=0,_&&_(L))},Ze=L.onRelease=function(Ye){if(!ft(Ye,1)){$r(W?a:he,mo[1],Mn,!0);var Ue=!isNaN(L.y-L.startY),Rt=L.isDragging,ve=Rt&&(Math.abs(L.x-L.startX)>3||Math.abs(L.y-L.startY)>3),We=Wd(Ye);!ve&&Ue&&(L._vx.reset(),L._vy.reset(),u&&Le&&cr.delayedCall(.08,function(){if(Nf()-Qe>300&&!Ye.defaultPrevented){if(Ye.target.click)Ye.target.click();else if(he.createEvent){var Me=he.createEvent("MouseEvents");Me.initMouseEvent("click",!0,!0,Os,1,We.screenX,We.screenY,We.clientX,We.clientY,!1,!1,!1,!1,0,null),Ye.target.dispatchEvent(Me)}}})),L.isDragging=L.isGesturing=L.isPressed=!1,d&&Rt&&!W&&ae.restart(!0),ge&&an(),v&&Rt&&v(L),y&&y(L,ve)}},il=function(Ue){return Ue.touches&&Ue.touches.length>1&&(L.isGesturing=!0)&&ee(Ue,L.isDragging)},co=function(){return(L.isGesturing=!1)||N(L)},uo=function(Ue){if(!ft(Ue)){var Rt=U(),ve=Z();Zr((Rt-re)*Pe,(ve-M)*Pe,1),re=Rt,M=ve,d&&ae.restart(!0)}},fo=function(Ue){if(!ft(Ue)){Ue=Wd(Ue,u),de&&(D=!0);var Rt=(Ue.deltaMode===1?l:Ue.deltaMode===2?Os.innerHeight:1)*p;Zr(Ue.deltaX*Rt,Ue.deltaY*Rt,0),d&&!W&&ae.restart(!0)}},al=function(Ue){if(!ft(Ue)){var Rt=Ue.clientX,ve=Ue.clientY,We=Rt-L.x,Me=ve-L.y;L.x=Rt,L.y=ve,I=!0,d&&ae.restart(!0),(We||Me)&&ln(We,Me)}},bc=function(Ue){L.event=Ue,X(L)},hi=function(Ue){L.event=Ue,J(L)},Ad=function(Ue){return ft(Ue)||Wd(Ue,u)&&Re(L)};ae=L._dc=cr.delayedCall(f||.25,An).pause(),L.deltaX=L.deltaY=0,L._vx=Hw(0,50,!0),L._vy=Hw(0,50,!0),L.scrollX=U,L.scrollY=Z,L.isDragging=L.isGesturing=L.isPressed=!1,u5(this),L.enable=function(Ye){return L.isEnabled||(Ur(ue?he:a,"scroll",jw),i.indexOf("scroll")>=0&&Ur(ue?he:a,"scroll",uo,$,Ie),i.indexOf("wheel")>=0&&Ur(a,"wheel",fo,$,Ie),(i.indexOf("touch")>=0&&l5||i.indexOf("pointer")>=0)&&(Ur(a,mo[0],Po,$,Ie),Ur(he,mo[2],Ze),Ur(he,mo[3],Ze),Le&&Ur(a,"click",xt,!0,!0),Re&&Ur(a,"click",Ad),ee&&Ur(he,"gesturestart",il),N&&Ur(he,"gestureend",co),X&&Ur(a,wl+"enter",bc),J&&Ur(a,wl+"leave",hi),F&&Ur(a,wl+"move",al)),L.isEnabled=!0,L.isDragging=L.isGesturing=L.isPressed=I=ge=!1,L._vx.reset(),L._vy.reset(),re=U(),M=Z(),Ye&&Ye.type&&Po(Ye),pe&&pe(L)),L},L.disable=function(){L.isEnabled&&(Xc.filter(function(Ye){return Ye!==L&&Df(Ye.target)}).length||$r(ue?he:a,"scroll",jw),L.isPressed&&(L._vx.reset(),L._vy.reset(),$r(W?a:he,mo[1],Mn,!0)),$r(ue?he:a,"scroll",uo,Ie),$r(a,"wheel",fo,Ie),$r(a,mo[0],Po,Ie),$r(he,mo[2],Ze),$r(he,mo[3],Ze),$r(a,"click",xt,!0),$r(a,"click",Ad),$r(he,"gesturestart",il),$r(he,"gestureend",co),$r(a,wl+"enter",bc),$r(a,wl+"leave",hi),$r(a,wl+"move",al),L.isEnabled=L.isPressed=L.isDragging=!1,je&&je(L))},L.kill=L.revert=function(){L.disable();var Ye=Xc.indexOf(L);Ye>=0&&Xc.splice(Ye,1),Di===L&&(Di=0)},Xc.push(L),W&&Df(a)&&(Di=L),L.enable(m)},Iue(e,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),e})();Tn.version="3.12.7";Tn.create=function(e){return new Tn(e)};Tn.register=p5;Tn.getAll=function(){return Xc.slice()};Tn.getById=function(e){return Xc.filter(function(t){return t.vars.id===e})[0]};d5()&&cr.registerPlugin(Tn);/*! 1544 * ScrollTrigger 3.12.7 1545 * https://gsap.com 1546 * 1547 * @license Copyright 2008-2025, GreenSock. All rights reserved. 1548 * Subject to the terms at https://gsap.com/standard-license or for 1549 * Club GSAP members, the agreement issued with that membership. 1550 * @author: Jack Doyle, [email protected] 1551*/var Se,Fc,lt,Yt,Cs,Mt,HE,fv,Fh,Mf,af,tm,gr,D_,zw,Vr,GA,YA,Uc,m5,hb,g5,Br,qw,v5,_5,da,Ww,zE,_u,qE,hv,Kw,pb,nm=1,yr=Date.now,mb=yr(),oo=0,lf=0,XA=function(t,n,r){var s=xs(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return r["_"+n+"Clamp"]=s,s?t.substr(6,t.length-7):t},QA=function(t,n){return n&&(!xs(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},Pue=function e(){return lf&&requestAnimationFrame(e)},ZA=function(){return D_=1},JA=function(){return D_=0},jo=function(t){return t},cf=function(t){return Math.round(t*1e5)/1e5||0},y5=function(){return typeof window<"u"},b5=function(){return Se||y5()&&(Se=window.gsap)&&Se.registerPlugin&&Se},tc=function(t){return!!~HE.indexOf(t)},w5=function(t){return(t==="Height"?qE:lt["inner"+t])||Cs["client"+t]||Mt["client"+t]},S5=function(t){return Ma(t,"getBoundingClientRect")||(tc(t)?function(){return Km.width=lt.innerWidth,Km.height=qE,Km}:function(){return Ii(t)})},Lue=function(t,n,r){var s=r.d,o=r.d2,i=r.a;return(i=Ma(t,"getBoundingClientRect"))?function(){return i()[s]}:function(){return(n?w5(o):t["client"+o])||0}},Nue=function(t,n){return!n||~si.indexOf(t)?S5(t):function(){return Km}},Go=function(t,n){var r=n.s,s=n.d2,o=n.d,i=n.a;return Math.max(0,(r="scroll"+s)&&(i=Ma(t,r))?i()-S5(t)()[o]:tc(t)?(Cs[r]||Mt[r])-w5(s):t[r]-t["offset"+s])},rm=function(t,n){for(var r=0;r<Uc.length;r+=3)(!n||~n.indexOf(Uc[r+1]))&&t(Uc[r],Uc[r+1],Uc[r+2])},xs=function(t){return typeof t=="string"},Sr=function(t){return typeof t=="function"},uf=function(t){return typeof t=="number"},Sl=function(t){return typeof t=="object"},Kd=function(t,n,r){return t&&t.progress(n?0:1)&&r&&t.pause()},gb=function(t,n){if(t.enabled){var r=t._ctx?t._ctx.add(function(){return n(t)}):n(t);r&&r.totalTime&&(t.callbackAnimation=r)}},Ac=Math.abs,E5="left",k5="top",WE="right",KE="bottom",Fl="width",Ul="height",$f="Right",Ff="Left",Uf="Top",Bf="Bottom",Rn="padding",Gs="margin",Xu="Width",GE="Height",Fn="px",Ys=function(t){return lt.getComputedStyle(t)},Due=function(t){var n=Ys(t).position;t.style.position=n==="absolute"||n==="fixed"?n:"relative"},eR=function(t,n){for(var r in n)r in t||(t[r]=n[r]);return t},Ii=function(t,n){var r=n&&Ys(t)[zw]!=="matrix(1, 0, 0, 1, 0, 0)"&&Se.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),s=t.getBoundingClientRect();return r&&r.progress(0).kill(),s},pv=function(t,n){var r=n.d2;return t["offset"+r]||t["client"+r]||0},x5=function(t){var n=[],r=t.labels,s=t.duration(),o;for(o in r)n.push(r[o]/s);return n},Mue=function(t){return function(n){return Se.utils.snap(x5(t),n)}},YE=function(t){var n=Se.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort(function(s,o){return s-o});return r?function(s,o,i){i===void 0&&(i=.001);var a;if(!o)return n(s);if(o>0){for(s-=i,a=0;a<r.length;a++)if(r[a]>=s)return r[a];return r[a-1]}else for(a=r.length,s+=i;a--;)if(r[a]<=s)return r[a];return r[0]}:function(s,o,i){i===void 0&&(i=.001);var a=n(s);return!o||Math.abs(a-s)<i||a-s<0==o<0?a:n(o<0?s-t:s+t)}},$ue=function(t){return function(n,r){return YE(x5(t))(n,r.direction)}},sm=function(t,n,r,s){return r.split(",").forEach(function(o){return t(n,o,s)})},Qn=function(t,n,r,s,o){return t.addEventListener(n,r,{passive:!s,capture:!!o})},Yn=function(t,n,r,s){return t.removeEventListener(n,r,!!s)},om=function(t,n,r){r=r&&r.wheelHandler,r&&(t(n,"wheel",r),t(n,"touchmove",r))},tR={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},im={toggleActions:"play",anticipatePin:0},mv={top:0,left:0,center:.5,bottom:1,right:1},Hm=function(t,n){if(xs(t)){var r=t.indexOf("="),s=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(s*=n/100),t=t.substr(0,r-1)),t=s+(t in mv?mv[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0)}return t},am=function(t,n,r,s,o,i,a,l){var c=o.startColor,u=o.endColor,d=o.fontSize,f=o.indent,h=o.fontWeight,p=Yt.createElement("div"),m=tc(r)||Ma(r,"pinType")==="fixed",g=t.indexOf("scroller")!==-1,v=m?Mt:r,b=t.indexOf("start")!==-1,_=b?c:u,y="border-color:"+_+";font-size:"+d+";color:"+_+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((g||l)&&m?"fixed;":"absolute;"),(g||l||!m)&&(y+=(s===Bn?WE:KE)+":"+(i+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=b,p.setAttribute("class","gsap-marker-"+t+(n?" marker-"+n:"")),p.style.cssText=y,p.innerText=n||n===0?t+"-"+n:t,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+s.op.d2],zm(p,0,s,b),p},zm=function(t,n,r,s){var o={display:"block"},i=r[s?"os2":"p2"],a=r[s?"p2":"os2"];t._isFlipped=s,o[r.a+"Percent"]=s?-100:0,o[r.a]=s?"1px":0,o["border"+i+Xu]=1,o["border"+a+Xu]=0,o[r.p]=n+"px",Se.set(t,o)},ot=[],Gw={},Uh,nR=function(){return yr()-oo>34&&(Uh||(Uh=requestAnimationFrame(Fi)))},Rc=function(){(!Br||!Br.isPressed||Br.startX>Mt.clientWidth)&&(ct.cache++,Br?Uh||(Uh=requestAnimationFrame(Fi)):Fi(),oo||rc("scrollStart"),oo=yr())},vb=function(){_5=lt.innerWidth,v5=lt.innerHeight},df=function(t){ct.cache++,(t===!0||!gr&&!g5&&!Yt.fullscreenElement&&!Yt.webkitFullscreenElement&&(!qw||_5!==lt.innerWidth||Math.abs(lt.innerHeight-v5)>lt.innerHeight*.25))&&fv.restart(!0)},nc={},Fue=[],T5=function e(){return Yn(ut,"scrollEnd",e)||Tl(!0)},rc=function(t){return nc[t]&&nc[t].map(function(n){return n()})||Fue},ks=[],C5=function(t){for(var n=0;n<ks.length;n+=5)(!t||ks[n+4]&&ks[n+4].query===t)&&(ks[n].style.cssText=ks[n+1],ks[n].getBBox&&ks[n].setAttribute("transform",ks[n+2]||""),ks[n+3].uncache=1)},XE=function(t,n){var r;for(Vr=0;Vr<ot.length;Vr++)r=ot[Vr],r&&(!n||r._ctx===n)&&(t?r.kill(1):r.revert(!0,!0));hv=!0,n&&C5(n),n||rc("revert")},A5=function(t,n){ct.cache++,(n||!jr)&&ct.forEach(function(r){return Sr(r)&&r.cacheID++&&(r.rec=0)}),xs(t)&&(lt.history.scrollRestoration=zE=t)},jr,Bl=0,rR,Uue=function(){if(rR!==Bl){var t=rR=Bl;requestAnimationFrame(function(){return t===Bl&&Tl(!0)})}},R5=function(){Mt.appendChild(_u),qE=!Br&&_u.offsetHeight||lt.innerHeight,Mt.removeChild(_u)},sR=function(t){return Fh(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=t?"none":"block"})},Tl=function(t,n){if(Cs=Yt.documentElement,Mt=Yt.body,HE=[lt,Yt,Cs,Mt],oo&&!t&&!hv){Qn(ut,"scrollEnd",T5);return}R5(),jr=ut.isRefreshing=!0,ct.forEach(function(s){return Sr(s)&&++s.cacheID&&(s.rec=s())});var r=rc("refreshInit");m5&&ut.sort(),n||XE(),ct.forEach(function(s){Sr(s)&&(s.smooth&&(s.target.style.scrollBehavior="auto"),s(0))}),ot.slice(0).forEach(function(s){return s.refresh()}),hv=!1,ot.forEach(function(s){if(s._subPinOffset&&s.pin){var o=s.vars.horizontal?"offsetWidth":"offsetHeight",i=s.pin[o];s.revert(!0,1),s.adjustPinSpacing(s.pin[o]-i),s.refresh()}}),Kw=1,sR(!0),ot.forEach(function(s){var o=Go(s.scroller,s._dir),i=s.vars.end==="max"||s._endClamp&&s.end>o,a=s._startClamp&&s.start>=o;(i||a)&&s.setPositions(a?o-1:s.start,i?Math.max(a?o:s.start+1,o):s.end,!0)}),sR(!1),Kw=0,r.forEach(function(s){return s&&s.render&&s.render(-1)}),ct.forEach(function(s){Sr(s)&&(s.smooth&&requestAnimationFrame(function(){return s.target.style.scrollBehavior="smooth"}),s.rec&&s(s.rec))}),A5(zE,1),fv.pause(),Bl++,jr=2,Fi(2),ot.forEach(function(s){return Sr(s.vars.onRefresh)&&s.vars.onRefresh(s)}),jr=ut.isRefreshing=!1,rc("refresh")},Yw=0,qm=1,Vf,Fi=function(t){if(t===2||!jr&&!hv){ut.isUpdating=!0,Vf&&Vf.update(0);var n=ot.length,r=yr(),s=r-mb>=50,o=n&&ot[0].scroll();if(qm=Yw>o?-1:1,jr||(Yw=o),s&&(oo&&!D_&&r-oo>200&&(oo=0,rc("scrollEnd")),af=mb,mb=r),qm<0){for(Vr=n;Vr-- >0;)ot[Vr]&&ot[Vr].update(0,s);qm=1}else for(Vr=0;Vr<n;Vr++)ot[Vr]&&ot[Vr].update(0,s);ut.isUpdating=!1}Uh=0},Xw=[E5,k5,KE,WE,Gs+Bf,Gs+$f,Gs+Uf,Gs+Ff,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Wm=Xw.concat([Fl,Ul,"boxSizing","max"+Xu,"max"+GE,"position",Gs,Rn,Rn+Uf,Rn+$f,Rn+Bf,Rn+Ff]),Bue=function(t,n,r){yu(r);var s=t._gsap;if(s.spacerIsNative)yu(s.spacerState);else if(t._gsap.swappedIn){var o=n.parentNode;o&&(o.insertBefore(t,n),o.removeChild(n))}t._gsap.swappedIn=!1},_b=function(t,n,r,s){if(!t._gsap.swappedIn){for(var o=Xw.length,i=n.style,a=t.style,l;o--;)l=Xw[o],i[l]=r[l];i.position=r.position==="absolute"?"absolute":"relative",r.display==="inline"&&(i.display="inline-block"),a[KE]=a[WE]="auto",i.flexBasis=r.flexBasis||"auto",i.overflow="visible",i.boxSizing="border-box",i[Fl]=pv(t,Kr)+Fn,i[Ul]=pv(t,Bn)+Fn,i[Rn]=a[Gs]=a[k5]=a[E5]="0",yu(s),a[Fl]=a["max"+Xu]=r[Fl],a[Ul]=a["max"+GE]=r[Ul],a[Rn]=r[Rn],t.parentNode!==n&&(t.parentNode.insertBefore(n,t),n.appendChild(t)),t._gsap.swappedIn=!0}},Vue=/([A-Z])/g,yu=function(t){if(t){var n=t.t.style,r=t.length,s=0,o,i;for((t.t._gsap||Se.core.getCache(t.t)).uncache=1;s<r;s+=2)i=t[s+1],o=t[s],i?n[o]=i:n[o]&&n.removeProperty(o.replace(Vue,"-$1").toLowerCase())}},lm=function(t){for(var n=Wm.length,r=t.style,s=[],o=0;o<n;o++)s.push(Wm[o],r[Wm[o]]);return s.t=t,s},jue=function(t,n,r){for(var s=[],o=t.length,i=r?8:0,a;i<o;i+=2)a=t[i],s.push(a,a in n?n[a]:t[i+1]);return s.t=t.t,s},Km={left:0,top:0},oR=function(t,n,r,s,o,i,a,l,c,u,d,f,h,p){Sr(t)&&(t=t(l)),xs(t)&&t.substr(0,3)==="max"&&(t=f+(t.charAt(4)==="="?Hm("0"+t.substr(3),r):0));var m=h?h.time():0,g,v,b;if(h&&h.seek(0),isNaN(t)||(t=+t),uf(t))h&&(t=Se.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),a&&zm(a,r,s,!0);else{Sr(n)&&(n=n(l));var _=(t||"0").split(" "),y,w,S,E;b=rs(n,l)||Mt,y=Ii(b)||{},(!y||!y.left&&!y.top)&&Ys(b).display==="none"&&(E=b.style.display,b.style.display="block",y=Ii(b),E?b.style.display=E:b.style.removeProperty("display")),w=Hm(_[0],y[s.d]),S=Hm(_[1]||"0",r),t=y[s.p]-c[s.p]-u+w+o-S,a&&zm(a,S,s,r-S<20||a._isStart&&S>20),r-=r-S}if(p&&(l[p]=t||-.001,t<0&&(t=0)),i){var x=t+r,T=i._isStart;g="scroll"+s.d2,zm(i,x,s,T&&x>20||!T&&(d?Math.max(Mt[g],Cs[g]):i.parentNode[g])<=x+1),d&&(c=Ii(a),d&&(i.style[s.op.p]=c[s.op.p]-s.op.m-i._offset+Fn))}return h&&b&&(g=Ii(b),h.seek(f),v=Ii(b),h._caScrollDist=g[s.p]-v[s.p],t=t/h._caScrollDist*f),h&&h.seek(m),h?t:Math.round(t)},Hue=/(webkit|moz|length|cssText|inset)/i,iR=function(t,n,r,s){if(t.parentNode!==n){var o=t.style,i,a;if(n===Mt){t._stOrig=o.cssText,a=Ys(t);for(i in a)!+i&&!Hue.test(i)&&a[i]&&typeof o[i]=="string"&&i!=="0"&&(o[i]=a[i]);o.top=r,o.left=s}else o.cssText=t._stOrig;Se.core.getCache(t).uncache=1,n.appendChild(t)}},I5=function(t,n,r){var s=n,o=s;return function(i){var a=Math.round(t());return a!==s&&a!==o&&Math.abs(a-s)>3&&Math.abs(a-o)>3&&(i=a,r&&r()),o=s,s=Math.round(i),s}},cm=function(t,n,r){var s={};s[n.p]="+="+r,Se.set(t,s)},aR=function(t,n){var r=Ga(t,n),s="_scroll"+n.p2,o=function i(a,l,c,u,d){var f=i.tween,h=l.onComplete,p={};c=c||r();var m=I5(r,c,function(){f.kill(),i.tween=0});return d=u&&d||0,u=u||a-c,f&&f.kill(),l[s]=a,l.inherit=!1,l.modifiers=p,p[s]=function(){return m(c+u*f.ratio+d*f.ratio*f.ratio)},l.onUpdate=function(){ct.cache++,i.tween&&Fi()},l.onComplete=function(){i.tween=0,h&&h.call(f)},f=i.tween=Se.to(t,l),f};return t[s]=r,r.wheelHandler=function(){return o.tween&&o.tween.kill()&&(o.tween=0)},Qn(t,"wheel",r.wheelHandler),ut.isTouch&&Qn(t,"touchmove",r.wheelHandler),o},ut=(function(){function e(n,r){Fc||e.register(Se)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Ww(this),this.init(n,r)}var t=e.prototype;return t.init=function(r,s){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!lf){this.update=this.refresh=this.kill=jo;return}r=eR(xs(r)||uf(r)||r.nodeType?{trigger:r}:r,im);var o=r,i=o.onUpdate,a=o.toggleClass,l=o.id,c=o.onToggle,u=o.onRefresh,d=o.scrub,f=o.trigger,h=o.pin,p=o.pinSpacing,m=o.invalidateOnRefresh,g=o.anticipatePin,v=o.onScrubComplete,b=o.onSnapComplete,_=o.once,y=o.snap,w=o.pinReparent,S=o.pinSpacer,E=o.containerAnimation,x=o.fastScrollEnd,T=o.preventOverlaps,O=r.horizontal||r.containerAnimation&&r.horizontal!==!1?Kr:Bn,z=!d&&d!==0,P=rs(r.scroller||lt),q=Se.core.getCache(P),X=tc(P),J=("pinType"in r?r.pinType:Ma(P,"pinType")||X&&"fixed")==="fixed",F=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],Q=z&&r.toggleActions.split(" "),W="markers"in r?r.markers:im.markers,ee=X?0:parseFloat(Ys(P)["border"+O.p2+Xu])||0,N=this,de=r.onRefreshInit&&function(){return r.onRefreshInit(N)},pe=Lue(P,X,O),je=Nue(P,X),Re=0,Pe=0,Ie=0,Le=Ga(P,O),fe,K,ie,ae,ge,I,D,B,Y,L,k,R,$,U,Z,re,M,j,ue,he,Fe,Ne,Qe,xt,ft,An,an,Zr,ln,Mn,Po,Ze,il,co,uo,fo,al,bc,hi;if(N._startClamp=N._endClamp=!1,N._dir=O,g*=45,N.scroller=P,N.scroll=E?E.time.bind(E):Le,ae=Le(),N.vars=r,s=s||r.animation,"refreshPriority"in r&&(m5=1,r.refreshPriority===-9999&&(Vf=N)),q.tweenScroll=q.tweenScroll||{top:aR(P,Bn),left:aR(P,Kr)},N.tweenTo=fe=q.tweenScroll[O.p],N.scrubDuration=function(ve){il=uf(ve)&&ve,il?Ze?Ze.duration(ve):Ze=Se.to(s,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:il,paused:!0,onComplete:function(){return v&&v(N)}}):(Ze&&Ze.progress(1).kill(),Ze=0)},s&&(s.vars.lazy=!1,s._initted&&!N.isReverted||s.vars.immediateRender!==!1&&r.immediateRender!==!1&&s.duration()&&s.render(0,!0,!0),N.animation=s.pause(),s.scrollTrigger=N,N.scrubDuration(d),Mn=0,l||(l=s.vars.id)),y&&((!Sl(y)||y.push)&&(y={snapTo:y}),"scrollBehavior"in Mt.style&&Se.set(X?[Mt,Cs]:P,{scrollBehavior:"auto"}),ct.forEach(function(ve){return Sr(ve)&&ve.target===(X?Yt.scrollingElement||Cs:P)&&(ve.smooth=!1)}),ie=Sr(y.snapTo)?y.snapTo:y.snapTo==="labels"?Mue(s):y.snapTo==="labelsDirectional"?$ue(s):y.directional!==!1?function(ve,We){return YE(y.snapTo)(ve,yr()-Pe<500?0:We.direction)}:Se.utils.snap(y.snapTo),co=y.duration||{min:.1,max:2},co=Sl(co)?Mf(co.min,co.max):Mf(co,co),uo=Se.delayedCall(y.delay||il/2||.1,function(){var ve=Le(),We=yr()-Pe<500,Me=fe.tween;if((We||Math.abs(N.getVelocity())<10)&&!Me&&!D_&&Re!==ve){var Ke=(ve-I)/U,Wn=s&&!z?s.totalProgress():Ke,yt=We?0:(Wn-Po)/(yr()-af)*1e3||0,Sn=Se.utils.clamp(-Ke,1-Ke,Ac(yt/2)*yt/.185),fr=Ke+(y.inertia===!1?0:Sn),_n,nn,jt=y,ho=jt.onStart,cn=jt.onInterrupt,Es=jt.onComplete;if(_n=ie(fr,N),uf(_n)||(_n=fr),nn=Math.max(0,Math.round(I+_n*U)),ve<=D&&ve>=I&&nn!==ve){if(Me&&!Me._initted&&Me.data<=Ac(nn-ve))return;y.inertia===!1&&(Sn=_n-Ke),fe(nn,{duration:co(Ac(Math.max(Ac(fr-Wn),Ac(_n-Wn))*.185/yt/.05||0)),ease:y.ease||"power3",data:Ac(nn-ve),onInterrupt:function(){return uo.restart(!0)&&cn&&cn(N)},onComplete:function(){N.update(),Re=Le(),s&&!z&&(Ze?Ze.resetTo("totalProgress",_n,s._tTime/s._tDur):s.progress(_n)),Mn=Po=s&&!z?s.totalProgress():N.progress,b&&b(N),Es&&Es(N)}},ve,Sn*U,nn-ve-Sn*U),ho&&ho(N,fe.tween)}}else N.isActive&&Re!==ve&&uo.restart(!0)}).pause()),l&&(Gw[l]=N),f=N.trigger=rs(f||h!==!0&&h),hi=f&&f._gsap&&f._gsap.stRevert,hi&&(hi=hi(N)),h=h===!0?f:rs(h),xs(a)&&(a={targets:f,className:a}),h&&(p===!1||p===Gs||(p=!p&&h.parentNode&&h.parentNode.style&&Ys(h.parentNode).display==="flex"?!1:Rn),N.pin=h,K=Se.core.getCache(h),K.spacer?Z=K.pinState:(S&&(S=rs(S),S&&!S.nodeType&&(S=S.current||S.nativeElement),K.spacerIsNative=!!S,S&&(K.spacerState=lm(S))),K.spacer=j=S||Yt.createElement("div"),j.classList.add("pin-spacer"),l&&j.classList.add("pin-spacer-"+l),K.pinState=Z=lm(h)),r.force3D!==!1&&Se.set(h,{force3D:!0}),N.spacer=j=K.spacer,ln=Ys(h),xt=ln[p+O.os2],he=Se.getProperty(h),Fe=Se.quickSetter(h,O.a,Fn),_b(h,j,ln),M=lm(h)),W){R=Sl(W)?eR(W,tR):tR,L=am("scroller-start",l,P,O,R,0),k=am("scroller-end",l,P,O,R,0,L),ue=L["offset"+O.op.d2];var Ad=rs(Ma(P,"content")||P);B=this.markerStart=am("start",l,Ad,O,R,ue,0,E),Y=this.markerEnd=am("end",l,Ad,O,R,ue,0,E),E&&(bc=Se.quickSetter([B,Y],O.a,Fn)),!J&&!(si.length&&Ma(P,"fixedMarkers")===!0)&&(Due(X?Mt:P),Se.set([L,k],{force3D:!0}),An=Se.quickSetter(L,O.a,Fn),Zr=Se.quickSetter(k,O.a,Fn))}if(E){var Ye=E.vars.onUpdate,Ue=E.vars.onUpdateParams;E.eventCallback("onUpdate",function(){N.update(0,0,1),Ye&&Ye.apply(E,Ue||[])})}if(N.previous=function(){return ot[ot.indexOf(N)-1]},N.next=function(){return ot[ot.indexOf(N)+1]},N.revert=function(ve,We){if(!We)return N.kill(!0);var Me=ve!==!1||!N.enabled,Ke=gr;Me!==N.isReverted&&(Me&&(fo=Math.max(Le(),N.scroll.rec||0),Ie=N.progress,al=s&&s.progress()),B&&[B,Y,L,k].forEach(function(Wn){return Wn.style.display=Me?"none":"block"}),Me&&(gr=N,N.update(Me)),h&&(!w||!N.isActive)&&(Me?Bue(h,j,Z):_b(h,j,Ys(h),ft)),Me||N.update(Me),gr=Ke,N.isReverted=Me)},N.refresh=function(ve,We,Me,Ke){if(!((gr||!N.enabled)&&!We)){if(h&&ve&&oo){Qn(e,"scrollEnd",T5);return}!jr&&de&&de(N),gr=N,fe.tween&&!Me&&(fe.tween.kill(),fe.tween=0),Ze&&Ze.pause(),m&&s&&s.revert({kill:!1}).invalidate(),N.isReverted||N.revert(!0,!0),N._subPinOffset=!1;var Wn=pe(),yt=je(),Sn=E?E.duration():Go(P,O),fr=U<=.01,_n=0,nn=Ke||0,jt=Sl(Me)?Me.end:r.end,ho=r.endTrigger||f,cn=Sl(Me)?Me.start:r.start||(r.start===0||!f?0:h?"0 0":"0 100%"),Es=N.pinnedContainer=r.pinnedContainer&&rs(r.pinnedContainer,N),Lo=f&&Math.max(0,ot.indexOf(N))||0,er=Lo,tr,hr,ll,wp,pr,$n,No,W_,_k,Rd,Do,Id,Sp;for(W&&Sl(Me)&&(Id=Se.getProperty(L,O.p),Sp=Se.getProperty(k,O.p));er-- >0;)$n=ot[er],$n.end||$n.refresh(0,1)||(gr=N),No=$n.pin,No&&(No===f||No===h||No===Es)&&!$n.isReverted&&(Rd||(Rd=[]),Rd.unshift($n),$n.revert(!0,!0)),$n!==ot[er]&&(Lo--,er--);for(Sr(cn)&&(cn=cn(N)),cn=XA(cn,"start",N),I=oR(cn,f,Wn,O,Le(),B,L,N,yt,ee,J,Sn,E,N._startClamp&&"_startClamp")||(h?-.001:0),Sr(jt)&&(jt=jt(N)),xs(jt)&&!jt.indexOf("+=")&&(~jt.indexOf(" ")?jt=(xs(cn)?cn.split(" ")[0]:"")+jt:(_n=Hm(jt.substr(2),Wn),jt=xs(cn)?cn:(E?Se.utils.mapRange(0,E.duration(),E.scrollTrigger.start,E.scrollTrigger.end,I):I)+_n,ho=f)),jt=XA(jt,"end",N),D=Math.max(I,oR(jt||(ho?"100% 0":Sn),ho,Wn,O,Le()+_n,Y,k,N,yt,ee,J,Sn,E,N._endClamp&&"_endClamp"))||-.001,_n=0,er=Lo;er--;)$n=ot[er],No=$n.pin,No&&$n.start-$n._pinPush<=I&&!E&&$n.end>0&&(tr=$n.end-(N._startClamp?Math.max(0,$n.start):$n.start),(No===f&&$n.start-$n._pinPush<I||No===Es)&&isNaN(cn)&&(_n+=tr*(1-$n.progress)),No===h&&(nn+=tr));if(I+=_n,D+=_n,N._startClamp&&(N._startClamp+=_n),N._endClamp&&!jr&&(N._endClamp=D||-.001,D=Math.min(D,Go(P,O))),U=D-I||(I-=.01)&&.001,fr&&(Ie=Se.utils.clamp(0,1,Se.utils.normalize(I,D,fo))),N._pinPush=nn,B&&_n&&(tr={},tr[O.a]="+="+_n,Es&&(tr[O.p]="-="+Le()),Se.set([B,Y],tr)),h&&!(Kw&&N.end>=Go(P,O)))tr=Ys(h),wp=O===Bn,ll=Le(),Ne=parseFloat(he(O.a))+nn,!Sn&&D>1&&(Do=(X?Yt.scrollingElement||Cs:P).style,Do={style:Do,value:Do["overflow"+O.a.toUpperCase()]},X&&Ys(Mt)["overflow"+O.a.toUpperCase()]!=="scroll"&&(Do.style["overflow"+O.a.toUpperCase()]="scroll")),_b(h,j,tr),M=lm(h),hr=Ii(h,!0),W_=J&&Ga(P,wp?Kr:Bn)(),p?(ft=[p+O.os2,U+nn+Fn],ft.t=j,er=p===Rn?pv(h,O)+U+nn:0,er&&(ft.push(O.d,er+Fn),j.style.flexBasis!=="auto"&&(j.style.flexBasis=er+Fn)),yu(ft),Es&&ot.forEach(function(Od){Od.pin===Es&&Od.vars.pinSpacing!==!1&&(Od._subPinOffset=!0)}),J&&Le(fo)):(er=pv(h,O),er&&j.style.flexBasis!=="auto"&&(j.style.flexBasis=er+Fn)),J&&(pr={top:hr.top+(wp?ll-I:W_)+Fn,left:hr.left+(wp?W_:ll-I)+Fn,boxSizing:"border-box",position:"fixed"},pr[Fl]=pr["max"+Xu]=Math.ceil(hr.width)+Fn,pr[Ul]=pr["max"+GE]=Math.ceil(hr.height)+Fn,pr[Gs]=pr[Gs+Uf]=pr[Gs+$f]=pr[Gs+Bf]=pr[Gs+Ff]="0",pr[Rn]=tr[Rn],pr[Rn+Uf]=tr[Rn+Uf],pr[Rn+$f]=tr[Rn+$f],pr[Rn+Bf]=tr[Rn+Bf],pr[Rn+Ff]=tr[Rn+Ff],re=jue(Z,pr,w),jr&&Le(0)),s?(_k=s._initted,hb(1),s.render(s.duration(),!0,!0),Qe=he(O.a)-Ne+U+nn,an=Math.abs(U-Qe)>1,J&&an&&re.splice(re.length-2,2),s.render(0,!0,!0),_k||s.invalidate(!0),s.parent||s.totalTime(s.totalTime()),hb(0)):Qe=U,Do&&(Do.value?Do.style["overflow"+O.a.toUpperCase()]=Do.value:Do.style.removeProperty("overflow-"+O.a));else if(f&&Le()&&!E)for(hr=f.parentNode;hr&&hr!==Mt;)hr._pinOffset&&(I-=hr._pinOffset,D-=hr._pinOffset),hr=hr.parentNode;Rd&&Rd.forEach(function(Od){return Od.revert(!1,!0)}),N.start=I,N.end=D,ae=ge=jr?fo:Le(),!E&&!jr&&(ae<fo&&Le(fo),N.scroll.rec=0),N.revert(!1,!0),Pe=yr(),uo&&(Re=-1,uo.restart(!0)),gr=0,s&&z&&(s._initted||al)&&s.progress()!==al&&s.progress(al||0,!0).render(s.time(),!0,!0),(fr||Ie!==N.progress||E||m||s&&!s._initted)&&(s&&!z&&s.totalProgress(E&&I<-.001&&!Ie?Se.utils.normalize(I,D,0):Ie,!0),N.progress=fr||(ae-I)/U===Ie?0:Ie),h&&p&&(j._pinOffset=Math.round(N.progress*Qe)),Ze&&Ze.invalidate(),isNaN(Id)||(Id-=Se.getProperty(L,O.p),Sp-=Se.getProperty(k,O.p),cm(L,O,Id),cm(B,O,Id-(Ke||0)),cm(k,O,Sp),cm(Y,O,Sp-(Ke||0))),fr&&!jr&&N.update(),u&&!jr&&!$&&($=!0,u(N),$=!1)}},N.getVelocity=function(){return(Le()-ge)/(yr()-af)*1e3||0},N.endAnimation=function(){Kd(N.callbackAnimation),s&&(Ze?Ze.progress(1):s.paused()?z||Kd(s,N.direction<0,1):Kd(s,s.reversed()))},N.labelToScroll=function(ve){return s&&s.labels&&(I||N.refresh()||I)+s.labels[ve]/s.duration()*U||0},N.getTrailing=function(ve){var We=ot.indexOf(N),Me=N.direction>0?ot.slice(0,We).reverse():ot.slice(We+1);return(xs(ve)?Me.filter(function(Ke){return Ke.vars.preventOverlaps===ve}):Me).filter(function(Ke){return N.direction>0?Ke.end<=I:Ke.start>=D})},N.update=function(ve,We,Me){if(!(E&&!Me&&!ve)){var Ke=jr===!0?fo:N.scroll(),Wn=ve?0:(Ke-I)/U,yt=Wn<0?0:Wn>1?1:Wn||0,Sn=N.progress,fr,_n,nn,jt,ho,cn,Es,Lo;if(We&&(ge=ae,ae=E?Le():Ke,y&&(Po=Mn,Mn=s&&!z?s.totalProgress():yt)),g&&h&&!gr&&!nm&&oo&&(!yt&&I<Ke+(Ke-ge)/(yr()-af)*g?yt=1e-4:yt===1&&D>Ke+(Ke-ge)/(yr()-af)*g&&(yt=.9999)),yt!==Sn&&N.enabled){if(fr=N.isActive=!!yt&&yt<1,_n=!!Sn&&Sn<1,cn=fr!==_n,ho=cn||!!yt!=!!Sn,N.direction=yt>Sn?1:-1,N.progress=yt,ho&&!gr&&(nn=yt&&!Sn?0:yt===1?1:Sn===1?2:3,z&&(jt=!cn&&Q[nn+1]!=="none"&&Q[nn+1]||Q[nn],Lo=s&&(jt==="complete"||jt==="reset"||jt in s))),T&&(cn||Lo)&&(Lo||d||!s)&&(Sr(T)?T(N):N.getTrailing(T).forEach(function(ll){return ll.endAnimation()})),z||(Ze&&!gr&&!nm?(Ze._dp._time-Ze._start!==Ze._time&&Ze.render(Ze._dp._time-Ze._start),Ze.resetTo?Ze.resetTo("totalProgress",yt,s._tTime/s._tDur):(Ze.vars.totalProgress=yt,Ze.invalidate().restart())):s&&s.totalProgress(yt,!!(gr&&(Pe||ve)))),h){if(ve&&p&&(j.style[p+O.os2]=xt),!J)Fe(cf(Ne+Qe*yt));else if(ho){if(Es=!ve&&yt>Sn&&D+1>Ke&&Ke+1>=Go(P,O),w)if(!ve&&(fr||Es)){var er=Ii(h,!0),tr=Ke-I;iR(h,Mt,er.top+(O===Bn?tr:0)+Fn,er.left+(O===Bn?0:tr)+Fn)}else iR(h,j);yu(fr||Es?re:M),an&&yt<1&&fr||Fe(Ne+(yt===1&&!Es?Qe:0))}}y&&!fe.tween&&!gr&&!nm&&uo.restart(!0),a&&(cn||_&&yt&&(yt<1||!pb))&&Fh(a.targets).forEach(function(ll){return ll.classList[fr||_?"add":"remove"](a.className)}),i&&!z&&!ve&&i(N),ho&&!gr?(z&&(Lo&&(jt==="complete"?s.pause().totalProgress(1):jt==="reset"?s.restart(!0).pause():jt==="restart"?s.restart(!0):s[jt]()),i&&i(N)),(cn||!pb)&&(c&&cn&&gb(N,c),F[nn]&&gb(N,F[nn]),_&&(yt===1?N.kill(!1,1):F[nn]=0),cn||(nn=yt===1?1:3,F[nn]&&gb(N,F[nn]))),x&&!fr&&Math.abs(N.getVelocity())>(uf(x)?x:2500)&&(Kd(N.callbackAnimation),Ze?Ze.progress(1):Kd(s,jt==="reverse"?1:!yt,1))):z&&i&&!gr&&i(N)}if(Zr){var hr=E?Ke/E.duration()*(E._caScrollDist||0):Ke;An(hr+(L._isFlipped?1:0)),Zr(hr)}bc&&bc(-Ke/E.duration()*(E._caScrollDist||0))}},N.enable=function(ve,We){N.enabled||(N.enabled=!0,Qn(P,"resize",df),X||Qn(P,"scroll",Rc),de&&Qn(e,"refreshInit",de),ve!==!1&&(N.progress=Ie=0,ae=ge=Re=Le()),We!==!1&&N.refresh())},N.getTween=function(ve){return ve&&fe?fe.tween:Ze},N.setPositions=function(ve,We,Me,Ke){if(E){var Wn=E.scrollTrigger,yt=E.duration(),Sn=Wn.end-Wn.start;ve=Wn.start+Sn*ve/yt,We=Wn.start+Sn*We/yt}N.refresh(!1,!1,{start:QA(ve,Me&&!!N._startClamp),end:QA(We,Me&&!!N._endClamp)},Ke),N.update()},N.adjustPinSpacing=function(ve){if(ft&&ve){var We=ft.indexOf(O.d)+1;ft[We]=parseFloat(ft[We])+ve+Fn,ft[1]=parseFloat(ft[1])+ve+Fn,yu(ft)}},N.disable=function(ve,We){if(N.enabled&&(ve!==!1&&N.revert(!0,!0),N.enabled=N.isActive=!1,We||Ze&&Ze.pause(),fo=0,K&&(K.uncache=1),de&&Yn(e,"refreshInit",de),uo&&(uo.pause(),fe.tween&&fe.tween.kill()&&(fe.tween=0)),!X)){for(var Me=ot.length;Me--;)if(ot[Me].scroller===P&&ot[Me]!==N)return;Yn(P,"resize",df),X||Yn(P,"scroll",Rc)}},N.kill=function(ve,We){N.disable(ve,We),Ze&&!We&&Ze.kill(),l&&delete Gw[l];var Me=ot.indexOf(N);Me>=0&&ot.splice(Me,1),Me===Vr&&qm>0&&Vr--,Me=0,ot.forEach(function(Ke){return Ke.scroller===N.scroller&&(Me=1)}),Me||jr||(N.scroll.rec=0),s&&(s.scrollTrigger=null,ve&&s.revert({kill:!1}),We||s.kill()),B&&[B,Y,L,k].forEach(function(Ke){return Ke.parentNode&&Ke.parentNode.removeChild(Ke)}),Vf===N&&(Vf=0),h&&(K&&(K.uncache=1),Me=0,ot.forEach(function(Ke){return Ke.pin===h&&Me++}),Me||(K.spacer=0)),r.onKill&&r.onKill(N)},ot.push(N),N.enable(!1,!1),hi&&hi(N),s&&s.add&&!U){var Rt=N.update;N.update=function(){N.update=Rt,ct.cache++,I||D||N.refresh()},Se.delayedCall(.01,N.update),U=.01,I=D=0}else N.refresh();h&&Uue()},e.register=function(r){return Fc||(Se=r||b5(),y5()&&window.document&&e.enable(),Fc=lf),Fc},e.defaults=function(r){if(r)for(var s in r)im[s]=r[s];return im},e.disable=function(r,s){lf=0,ot.forEach(function(i){return i[s?"kill":"disable"](r)}),Yn(lt,"wheel",Rc),Yn(Yt,"scroll",Rc),clearInterval(tm),Yn(Yt,"touchcancel",jo),Yn(Mt,"touchstart",jo),sm(Yn,Yt,"pointerdown,touchstart,mousedown",ZA),sm(Yn,Yt,"pointerup,touchend,mouseup",JA),fv.kill(),rm(Yn);for(var o=0;o<ct.length;o+=3)om(Yn,ct[o],ct[o+1]),om(Yn,ct[o],ct[o+2])},e.enable=function(){if(lt=window,Yt=document,Cs=Yt.documentElement,Mt=Yt.body,Se&&(Fh=Se.utils.toArray,Mf=Se.utils.clamp,Ww=Se.core.context||jo,hb=Se.core.suppressOverwrites||jo,zE=lt.history.scrollRestoration||"auto",Yw=lt.pageYOffset||0,Se.core.globals("ScrollTrigger",e),Mt)){lf=1,_u=document.createElement("div"),_u.style.height="100vh",_u.style.position="absolute",R5(),Pue(),Tn.register(Se),e.isTouch=Tn.isTouch,da=Tn.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),qw=Tn.isTouch===1,Qn(lt,"wheel",Rc),HE=[lt,Yt,Cs,Mt],Se.matchMedia?(e.matchMedia=function(c){var u=Se.matchMedia(),d;for(d in c)u.add(d,c[d]);return u},Se.addEventListener("matchMediaInit",function(){return XE()}),Se.addEventListener("matchMediaRevert",function(){return C5()}),Se.addEventListener("matchMedia",function(){Tl(0,1),rc("matchMedia")}),Se.matchMedia().add("(orientation: portrait)",function(){return vb(),vb})):console.warn("Requires GSAP 3.11.0 or later"),vb(),Qn(Yt,"scroll",Rc);var r=Mt.hasAttribute("style"),s=Mt.style,o=s.borderTopStyle,i=Se.core.Animation.prototype,a,l;for(i.revert||Object.defineProperty(i,"revert",{value:function(){return this.time(-.01,!0)}}),s.borderTopStyle="solid",a=Ii(Mt),Bn.m=Math.round(a.top+Bn.sc())||0,Kr.m=Math.round(a.left+Kr.sc())||0,o?s.borderTopStyle=o:s.removeProperty("border-top-style"),r||(Mt.setAttribute("style",""),Mt.removeAttribute("style")),tm=setInterval(nR,250),Se.delayedCall(.5,function(){return nm=0}),Qn(Yt,"touchcancel",jo),Qn(Mt,"touchstart",jo),sm(Qn,Yt,"pointerdown,touchstart,mousedown",ZA),sm(Qn,Yt,"pointerup,touchend,mouseup",JA),zw=Se.utils.checkPrefix("transform"),Wm.push(zw),Fc=yr(),fv=Se.delayedCall(.2,Tl).pause(),Uc=[Yt,"visibilitychange",function(){var c=lt.innerWidth,u=lt.innerHeight;Yt.hidden?(GA=c,YA=u):(GA!==c||YA!==u)&&df()},Yt,"DOMContentLoaded",Tl,lt,"load",Tl,lt,"resize",df],rm(Qn),ot.forEach(function(c){return c.enable(0,1)}),l=0;l<ct.length;l+=3)om(Yn,ct[l],ct[l+1]),om(Yn,ct[l],ct[l+2])}},e.config=function(r){"limitCallbacks"in r&&(pb=!!r.limitCallbacks);var s=r.syncInterval;s&&clearInterval(tm)||(tm=s)&&setInterval(nR,s),"ignoreMobileResize"in r&&(qw=e.isTouch===1&&r.ignoreMobileResize),"autoRefreshEvents"in r&&(rm(Yn)||rm(Qn,r.autoRefreshEvents||"none"),g5=(r.autoRefreshEvents+"").indexOf("resize")===-1)},e.scrollerProxy=function(r,s){var o=rs(r),i=ct.indexOf(o),a=tc(o);~i&&ct.splice(i,a?6:2),s&&(a?si.unshift(lt,s,Mt,s,Cs,s):si.unshift(o,s))},e.clearMatchMedia=function(r){ot.forEach(function(s){return s._ctx&&s._ctx.query===r&&s._ctx.kill(!0,!0)})},e.isInViewport=function(r,s,o){var i=(xs(r)?rs(r):r).getBoundingClientRect(),a=i[o?Fl:Ul]*s||0;return o?i.right-a>0&&i.left+a<lt.innerWidth:i.bottom-a>0&&i.top+a<lt.innerHeight},e.positionInViewport=function(r,s,o){xs(r)&&(r=rs(r));var i=r.getBoundingClientRect(),a=i[o?Fl:Ul],l=s==null?a/2:s in mv?mv[s]*a:~s.indexOf("%")?parseFloat(s)*a/100:parseFloat(s)||0;return o?(i.left+l)/lt.innerWidth:(i.top+l)/lt.innerHeight},e.killAll=function(r){if(ot.slice(0).forEach(function(o){return o.vars.id!=="ScrollSmoother"&&o.kill()}),r!==!0){var s=nc.killAll||[];nc={},s.forEach(function(o){return o()})}},e})();ut.version="3.12.7";ut.saveStyles=function(e){return e?Fh(e).forEach(function(t){if(t&&t.style){var n=ks.indexOf(t);n>=0&&ks.splice(n,5),ks.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Se.core.getCache(t),Ww())}}):ks};ut.revert=function(e,t){return XE(!e,t)};ut.create=function(e,t){return new ut(e,t)};ut.refresh=function(e){return e?df(!0):(Fc||ut.register())&&Tl(!0)};ut.update=function(e){return++ct.cache&&Fi(e===!0?2:0)};ut.clearScrollMemory=A5;ut.maxScroll=function(e,t){return Go(e,t?Kr:Bn)};ut.getScrollFunc=function(e,t){return Ga(rs(e),t?Kr:Bn)};ut.getById=function(e){return Gw[e]};ut.getAll=function(){return ot.filter(function(e){return e.vars.id!=="ScrollSmoother"})};ut.isScrolling=function(){return!!oo};ut.snapDirectional=YE;ut.addEventListener=function(e,t){var n=nc[e]||(nc[e]=[]);~n.indexOf(t)||n.push(t)};ut.removeEventListener=function(e,t){var n=nc[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)};ut.batch=function(e,t){var n=[],r={},s=t.interval||.016,o=t.batchMax||1e9,i=function(c,u){var d=[],f=[],h=Se.delayedCall(s,function(){u(d,f),d=[],f=[]}).pause();return function(p){d.length||h.restart(!0),d.push(p.trigger),f.push(p),o<=d.length&&h.progress(1)}},a;for(a in t)r[a]=a.substr(0,2)==="on"&&Sr(t[a])&&a!=="onRefreshInit"?i(a,t[a]):t[a];return Sr(o)&&(o=o(),Qn(ut,"refresh",function(){return o=t.batchMax()})),Fh(e).forEach(function(l){var c={};for(a in r)c[a]=r[a];c.trigger=l,n.push(ut.create(c))}),n};var lR=function(t,n,r,s){return n>s?t(s):n<0&&t(0),r>s?(s-n)/(r-n):r<0?n/(n-r):1},yb=function e(t,n){n===!0?t.style.removeProperty("touch-action"):t.style.touchAction=n===!0?"auto":n?"pan-"+n+(Tn.isTouch?" pinch-zoom":""):"none",t===Cs&&e(Mt,n)},um={auto:1,scroll:1},zue=function(t){var n=t.event,r=t.target,s=t.axis,o=(n.changedTouches?n.changedTouches[0]:n).target,i=o._gsap||Se.core.getCache(o),a=yr(),l;if(!i._isScrollT||a-i._isScrollT>2e3){for(;o&&o!==Mt&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!(um[(l=Ys(o)).overflowY]||um[l.overflowX]));)o=o.parentNode;i._isScroll=o&&o!==r&&!tc(o)&&(um[(l=Ys(o)).overflowY]||um[l.overflowX]),i._isScrollT=a}(i._isScroll||s==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},O5=function(t,n,r,s){return Tn.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:s=s&&zue,onPress:s,onDrag:s,onScroll:s,onEnable:function(){return r&&Qn(Yt,Tn.eventTypes[0],uR,!1,!0)},onDisable:function(){return Yn(Yt,Tn.eventTypes[0],uR,!0)}})},que=/(input|label|select|textarea)/i,cR,uR=function(t){var n=que.test(t.target.tagName);(n||cR)&&(t._gsapAllow=!0,cR=n)},Wue=function(t){Sl(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var n=t,r=n.normalizeScrollX,s=n.momentum,o=n.allowNestedScroll,i=n.onRelease,a,l,c=rs(t.target)||Cs,u=Se.core.globals().ScrollSmoother,d=u&&u.get(),f=da&&(t.content&&rs(t.content)||d&&t.content!==!1&&!d.smooth()&&d.content()),h=Ga(c,Bn),p=Ga(c,Kr),m=1,g=(Tn.isTouch&<.visualViewport?lt.visualViewport.scale*lt.visualViewport.width:lt.outerWidth)/lt.innerWidth,v=0,b=Sr(s)?function(){return s(a)}:function(){return s||2.8},_,y,w=O5(c,t.type,!0,o),S=function(){return y=!1},E=jo,x=jo,T=function(){l=Go(c,Bn),x=Mf(da?1:0,l),r&&(E=Mf(0,Go(c,Kr))),_=Bl},O=function(){f._gsap.y=cf(parseFloat(f._gsap.y)+h.offset)+"px",f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(f._gsap.y)+", 0, 1)",h.offset=h.cacheID=0},z=function(){if(y){requestAnimationFrame(S);var W=cf(a.deltaY/2),ee=x(h.v-W);if(f&&ee!==h.v+h.offset){h.offset=ee-h.v;var N=cf((parseFloat(f&&f._gsap.y)||0)-h.offset);f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+N+", 0, 1)",f._gsap.y=N+"px",h.cacheID=ct.cache,Fi()}return!0}h.offset&&O(),y=!0},P,q,X,J,F=function(){T(),P.isActive()&&P.vars.scrollY>l&&(h()>l?P.progress(1)&&h(l):P.resetTo("scrollY",l))};return f&&Se.set(f,{y:"+=0"}),t.ignoreCheck=function(Q){return da&&Q.type==="touchmove"&&z()||m>1.05&&Q.type!=="touchstart"||a.isGesturing||Q.touches&&Q.touches.length>1},t.onPress=function(){y=!1;var Q=m;
1551m=cf((lt.visualViewport&<.visualViewport.scale||1)/g),P.pause(),Q!==m&&yb(c,m>1.01?!0:r?!1:"x"),q=p(),X=h(),T(),_=Bl},t.onRelease=t.onGestureStart=function(Q,W){if(h.offset&&O(),!W)J.restart(!0);else{ct.cache++;var ee=b(),N,de;r&&(N=p(),de=N+ee*.05*-Q.velocityX/.227,ee*=lR(p,N,de,Go(c,Kr)),P.vars.scrollX=E(de)),N=h(),de=N+ee*.05*-Q.velocityY/.227,ee*=lR(h,N,de,Go(c,Bn)),P.vars.scrollY=x(de),P.invalidate().duration(ee).play(.01),(da&&P.vars.scrollY>=l||N>=l-1)&&Se.to({},{onUpdate:F,duration:ee})}i&&i(Q)},t.onWheel=function(){P._ts&&P.pause(),yr()-v>1e3&&(_=0,v=yr())},t.onChange=function(Q,W,ee,N,de){if(Bl!==_&&T(),W&&r&&p(E(N[2]===W?q+(Q.startX-Q.x):p()+W-N[1])),ee){h.offset&&O();var pe=de[2]===ee,je=pe?X+Q.startY-Q.y:h()+ee-de[1],Re=x(je);pe&&je!==Re&&(X+=Re-je),h(Re)}(ee||W)&&Fi()},t.onEnable=function(){yb(c,r?!1:"x"),ut.addEventListener("refresh",F),Qn(lt,"resize",F),h.smooth&&(h.target.style.scrollBehavior="auto",h.smooth=p.smooth=!1),w.enable()},t.onDisable=function(){yb(c,!0),Yn(lt,"resize",F),ut.removeEventListener("refresh",F),w.kill()},t.lockAxis=t.lockAxis!==!1,a=new Tn(t),a.iOS=da,da&&!h()&&h(1),da&&Se.ticker.add(jo),J=a._dc,P=Se.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:I5(h,h(),function(){return P.pause()})},onUpdate:Fi,onComplete:J.vars.onComplete}),a};ut.sort=function(e){if(Sr(e))return ot.sort(e);var t=lt.pageYOffset||0;return ut.getAll().forEach(function(n){return n._sortY=n.trigger?t+n.trigger.getBoundingClientRect().top:n.start+lt.innerHeight}),ot.sort(e||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};ut.observe=function(e){return new Tn(e)};ut.normalizeScroll=function(e){if(typeof e>"u")return Br;if(e===!0&&Br)return Br.enable();if(e===!1){Br&&Br.kill(),Br=e;return}var t=e instanceof Tn?e:Wue(e);return Br&&Br.target===t.target&&Br.kill(),tc(t.target)&&(Br=t),t};ut.core={_getVelocityProp:Hw,_inputObserver:O5,_scrollers:ct,_proxies:si,bridge:{ss:function(){oo||rc("scrollStart"),oo=yr()},ref:function(){return gr}}};b5()&&Se.registerPlugin(ut);/*! 1552 * ScrollToPlugin 3.12.7 1553 * https://gsap.com 1554 * 1555 * @license Copyright 2008-2025, GreenSock. All rights reserved. 1556 * Subject to the terms at https://gsap.com/standard-license or for 1557 * Club GSAP members, the agreement issued with that membership. 1558 * @author: Jack Doyle, [email protected] 1559*/var Er,P5,Ui,Yo,$a,L5,bu,dm,N5=function(){return typeof window<"u"},D5=function(){return Er||N5()&&(Er=window.gsap)&&Er.registerPlugin&&Er},M5=function(t){return typeof t=="string"},dR=function(t){return typeof t=="function"},Bh=function(t,n){var r=n==="x"?"Width":"Height",s="scroll"+r,o="client"+r;return t===Ui||t===Yo||t===$a?Math.max(Yo[s],$a[s])-(Ui["inner"+r]||Yo[o]||$a[o]):t[s]-t["offset"+r]},Vh=function(t,n){var r="scroll"+(n==="x"?"Left":"Top");return t===Ui&&(t.pageXOffset!=null?r="page"+n.toUpperCase()+"Offset":t=Yo[r]!=null?Yo:$a),function(){return t[r]}},Kue=function(t,n,r,s){if(dR(t)&&(t=t(n,r,s)),typeof t!="object")return M5(t)&&t!=="max"&&t.charAt(1)!=="="?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var o={},i;for(i in t)o[i]=i!=="onAutoKill"&&dR(t[i])?t[i](n,r,s):t[i];return o},$5=function(t,n){if(t=L5(t)[0],!t||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var r=t.getBoundingClientRect(),s=!n||n===Ui||n===$a,o=s?{top:Yo.clientTop-(Ui.pageYOffset||Yo.scrollTop||$a.scrollTop||0),left:Yo.clientLeft-(Ui.pageXOffset||Yo.scrollLeft||$a.scrollLeft||0)}:n.getBoundingClientRect(),i={x:r.left-o.left,y:r.top-o.top};return!s&&n&&(i.x+=Vh(n,"x")(),i.y+=Vh(n,"y")()),i},fR=function(t,n,r,s,o){return!isNaN(t)&&typeof t!="object"?parseFloat(t)-o:M5(t)&&t.charAt(1)==="="?parseFloat(t.substr(2))*(t.charAt(0)==="-"?-1:1)+s-o:t==="max"?Bh(n,r)-o:Math.min(Bh(n,r),$5(t,n)[r]-o)},Qw=function(){Er=D5(),N5()&&Er&&typeof document<"u"&&document.body&&(Ui=window,$a=document.body,Yo=document.documentElement,L5=Er.utils.toArray,Er.config({autoKillThreshold:7}),bu=Er.config(),P5=1)},sc={version:"3.12.7",name:"scrollTo",rawVars:1,register:function(t){Er=t,Qw()},init:function(t,n,r,s,o){P5||Qw();var i=this,a=Er.getProperty(t,"scrollSnapType");i.isWin=t===Ui,i.target=t,i.tween=r,n=Kue(n,s,t,o),i.vars=n,i.autoKill=!!("autoKill"in n?n:bu).autoKill,i.getX=Vh(t,"x"),i.getY=Vh(t,"y"),i.x=i.xPrev=i.getX(),i.y=i.yPrev=i.getY(),dm||(dm=Er.core.globals().ScrollTrigger),Er.getProperty(t,"scrollBehavior")==="smooth"&&Er.set(t,{scrollBehavior:"auto"}),a&&a!=="none"&&(i.snap=1,i.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),n.x!=null?(i.add(i,"x",i.x,fR(n.x,t,"x",i.x,n.offsetX||0),s,o),i._props.push("scrollTo_x")):i.skipX=1,n.y!=null?(i.add(i,"y",i.y,fR(n.y,t,"y",i.y,n.offsetY||0),s,o),i._props.push("scrollTo_y")):i.skipY=1},render:function(t,n){for(var r=n._pt,s=n.target,o=n.tween,i=n.autoKill,a=n.xPrev,l=n.yPrev,c=n.isWin,u=n.snap,d=n.snapInline,f,h,p,m,g;r;)r.r(t,r.d),r=r._next;f=c||!n.skipX?n.getX():a,h=c||!n.skipY?n.getY():l,p=h-l,m=f-a,g=bu.autoKillThreshold,n.x<0&&(n.x=0),n.y<0&&(n.y=0),i&&(!n.skipX&&(m>g||m<-g)&&f<Bh(s,"x")&&(n.skipX=1),!n.skipY&&(p>g||p<-g)&&h<Bh(s,"y")&&(n.skipY=1),n.skipX&&n.skipY&&(o.kill(),n.vars.onAutoKill&&n.vars.onAutoKill.apply(o,n.vars.onAutoKillParam
1559s||[]))),c?Ui.scrollTo(n.skipX?f:n.x,n.skipY?h:n.y):(n.skipY||(s.scrollTop=n.y),n.skipX||(s.scrollLeft=n.x)),u&&(t===1||t===0)&&(h=s.scrollTop,f=s.scrollLeft,d?s.style.scrollSnapType=d:s.style.removeProperty("scroll-snap-type"),s.scrollTop=h+1,s.scrollLeft=f+1,s.scrollTop=h,s.scrollLeft=f),n.xPrev=n.x,n.yPrev=n.y,dm&&dm.update()},kill:function(t){var n=t==="scrollTo",r=this._props.indexOf(t);return(n||t==="scrollTo_x")&&(this.skipX=1),(n||t==="scrollTo_y")&&(this.skipY=1),r>-1&&this._props.splice(r,1),!this._props.length}};sc.max=Bh;sc.getOffset=$5;sc.buildGetter=Vh;sc.config=function(e){bu||Qw()||(bu=Er.config());for(var t in e)bu[t]=e[t]};D5()&&Er.registerPlugin(sc);const Gue=nt(()=>(Bw.registerPlugin(ut,sc),{provide:{gsap:Bw,ScrollTrigger:ut,ScrollToPlugin:sc}})),Yue=nt(e=>{e.hook("api-party:request",async t=>{const r=window.location.origin?.split(",")[0];if(!r){t.options.headers.set("origin","");return}{const s=r?.startsWith("http")?r:`https://${r}`;t.options.headers.set("origin",s)}})}),Xue=nt({name:"toku-vue-query",setup(e){const t=dr("vue-query"),n=new KN({defaultOptions:{queries:{staleTime:300*1e3,retry:!1}}}),r={queryClient:n};e.vueApp.use(MG,r),_G(n,t.value)}}),Que=(e,t)=>e&&t.includes(e)?e:void 0,Zue=/\{[^}]+\}|@[^:]*:|\|/;function Jue(e,t){const n=t.split(".");let r=e;for(const s of n){if(typeof r!="object"||r===null)return;const o=r[s];if(o===void 0)return;r=o}return typeof r=="string"?r:void 0}function ede(e,t,n){if(typeof t!="string"||!e)return t;const r=Jue(e,n);return r===void 0||Zue.test(r)?t:r}const tde=nt(async e=>{let t,n;if(Pr().path.startsWith("/api"))return;const s=dr("orgId",()=>null),o=dr("orgCustomTexts",()=>{}),i=na();if([t,n]=or(()=>i.suspense()),await t,n(),!i.data.value?.organization.id)throw Mi({statusCode:500,statusMessage:"Organization ID is required"});s.value=i.data.value?.organization.id;const a=e;a.$i18n.setPostTranslationHandler((f,h)=>ede(o.value,f,h));const l=i.data.value?.organization.language,c=i.data.value?.flow_language,u=Que(c??l,C(a.$i18n.localeCodes)),d=i.data.value?.texts;u&&([t,n]=or(()=>a.$i18n.setLocale(u)),await t,n()),o.value=d,d&&e.hook("app:mounted",()=>{const f=u??a.$i18n.defaultLocale;a.$i18n.mergeLocaleMessage(f,d),f!==a.$i18n.defaultLocale&&a.$i18n.mergeLocaleMessage(a.$i18n.defaultLocale,d)})}),nde="Manrope",rde=["Montserrat","DM Sans","Noto Sans"],sde="--org-font",ode=nt(async()=>{let e,t;const n=na();[e,t]=or(()=>n.suspense()),await e,t();let r=nde;n.data.value?.font_family&&rde.includes(n.data.value.font_family)&&(r=n.data.value.font_family);const o=r.includes(" ")?`"${r}"`:r;document.documentElement.style.setProperty(sde,o)});function gv(e){return ea()?(gs(e),!0):!1}const bb=new WeakMap,wwe=(...e)=>{var t;const n=e[0],r=(t=At())==null?void 0:t.proxy;if(r==null&&!Ya())throw new Error("injectLocal must be called in setup");return r&&bb.has(r)&&n in bb.get(r)?bb.get(r)[n]:vt(...e)};function F5(e){let t=0,n,r;const s=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...o)=>(t+=1,r||(r=Ji(!0),n=r.run(()=>e(...o))),gv(s),n)}function ide(e){if(!et(e))return jn(e);const t=new Proxy({},{get(n,r,s){return C(Reflect.get(e.value,r,s))},set(n,r,s){return et(e.value[r])&&!et(s)?e.value[r].value=s:e.value[r]=s,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return jn(t)}function U5(e){return ide(A(e))}function ade(e,...t){const n=t.flat(),r=n[0];return U5(()=>Object.fromEntries(typeof r=="function"?Object.entries(Gr(e)).filter(([s,o])=>!r(Je(o),s)):Object.entries(Gr(e)).filter(s=>!n.includes(s[0]))))}const Zw=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Swe=e=>e!=null,lde=Object.prototype.toString,Ewe=e=>lde.call(e)==="[object Object]",jh=()=>{};function B5(...e){if(e.length!==1)return us(...e);const t=e[0];return typeof t=="function"?Ao(Qh(()=>({get:t,set:jh}))):G(t)}function vc(e,...t){const n=t.flat(),r=n[0];return U5(()=>Object.fromEntries(typeof r=="function"?Object.entries(Gr(e)).filter(([s,o]
1559)=>r(Je(o),s)):n.map(s=>[s,B5(e,s)])))}function QE(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const V5=e=>e();function cde(e,t={}){let n,r,s=jh;const o=l=>{clearTimeout(l),s(),s=jh};let i;return l=>{const c=Je(e),u=Je(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=void 0),Promise.resolve(l())):new Promise((d,f)=>{s=t.rejectOnCancel?f:d,i=l,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=void 0,d(i())},u)),n=setTimeout(()=>{r&&o(r),r=void 0,d(l())},c)})}}function ude(...e){let t=0,n,r=!0,s=jh,o,i,a,l,c;!et(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=()=>{n&&(clearTimeout(n),n=void 0,s(),s=jh)};return f=>{const h=Je(i),p=Date.now()-t,m=()=>o=f();return u(),h<=0?(t=Date.now(),m()):(p>h&&(l||!r)?(t=Date.now(),m()):a&&(o=new Promise((g,v)=>{s=c?v:g,n=setTimeout(()=>{t=Date.now(),r=!0,g(m()),u()},Math.max(0,h-p))})),!l&&!n&&(n=setTimeout(()=>r=!0,h)),r=!1,o)}}function dde(e=V5,t={}){const{initialState:n="active"}=t,r=B5(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:Ao(r),pause:s,resume:o,eventFilter:i}}function hR(e,t=!1,n="Timeout"){return new Promise((r,s)=>{setTimeout(t?()=>s(n):r,e)})}function kwe(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function xwe(e){return Array.isArray(e)?e:[e]}function j5(e){return At()}function Twe(e,t=200,n={}){return QE(cde(t,n),e)}function Cwe(e,t=200,n=!1,r=!0,s=!1){return QE(ude(t,n,r,s),e)}function fde(e,t,n={}){const{eventFilter:r=V5,...s}=n;return be(e,QE(r,t),s)}function Awe(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:c}=dde(r,{initialState:s});return{stop:fde(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:c}}function Rwe(e,t=!0,n){j5()?Ut(e,n):t?e():Lt(e)}function Iwe(e,t){j5()&&qn(e,t)}function Jw(e,t=!1){function n(d,{flush:f="sync",deep:h=!1,timeout:p,throwOnTimeout:m}={}){let g=null;const b=[new Promise(_=>{g=be(e,y=>{d(y)!==t&&(g?g():Lt(()=>g?.()),_(y))},{flush:f,deep:h,immediate:!0})})];return p!=null&&b.push(hR(p,m).then(()=>Je(e)).finally(()=>g?.())),Promise.race(b)}function r(d,f){if(!et(d))return n(y=>y===d,f);const{flush:h="sync",deep:p=!1,timeout:m,throwOnTimeout:g}=f??{};let v=null;const _=[new Promise(y=>{v=be([e,d],([w,S])=>{t!==(w===S)&&(v?v():Lt(()=>v?.()),y(w))},{flush:h,deep:p,immediate:!0})})];return m!=null&&_.push(hR(m,g).then(()=>Je(e)).finally(()=>(v?.(),Je(e)))),Promise.race(_)}function s(d){return n(f=>!!f,d)}function o(d){return r(null,d)}function i(d){return r(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,f){return n(h=>{const p=Array.from(h);return p.includes(d)||p.includes(Je(d))},f)}function c(d){return u(1,d)}function u(d=1,f){let h=-1;return n(()=>(h+=1,h>=d),f)}return Array.isArray(Je(e))?{toMatch:n,toContains:l,changed:c,changedTimes:u,get not(){return Jw(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:s,toBeNull:o,toBeNaN:a,toBeUndefined:i,changed:c,changedTimes:u,get not(){return Jw(e,!t)}}}function wb(e){return Jw(e)}function Owe(e=0,t={}){let n=C(e);const r=vn(e),{max:s=Number.POSITIVE_INFINITY,min:o=Number.NEGATIVE_INFINITY}=t,i=(d=1)=>r.value=Math.max(Math.min(s,r.value+d),o),a=(d=1)=>r.value=Math.min(Math.max(o,r.value-d),s),l=()=>r.value,c=d=>r.value=Math.max(o,Math.min(s,d)),u=(d=n)=>(n=d,c(d));return{count:td(r),inc:i,dec:a,get:l,set:c,reset:u}}function Pwe(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let o=null;const i=vn(!1);function a(){o&&(clearInterval(o),o=null)}function l(){i.value=!1,a()}function c(){const u=Je(t);u<=0||(i.value=!0,s&&e(),a(),i.value&&(o=setInterval(e,u)))}if(r&&Zw&&c(),et(t)||typeof t=="function"){const u=be(t,()=>{i.value&&Zw&&c()});gv(u)}return gv(l),{isActive:td(i),pause:l,resume:c}}function Lwe(e,t,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n,o=vn(!1);let i;function a(){i&&(clearTimeout(i),i=void 0)}function l(){o.value=!1,a()}function c(...u){s&&e(),a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=void 0,e(...u)},Je(t))}return r&&(o.value=!0,Zw&&c()),gv(l),{isPending:td(o),start:c,stop:l}}function Nwe(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,s=et(e),o=vn(e);function i(a){if(arguments.length)return o.value=a,o.value;{const l=Je(n);return o.value=o.value===l?Je(r):l,o.value}}return s?i:[o,i]}function Dwe(e,t,n){return be(e,t,{...n,immediate:!0})}function Mwe(e,t,n){return be(e,t,{...n,once:!0})}const Sb=5e3,hde=nt(()=>{const e=Or();Qv({script:[{src:`https://www.google.com/recaptcha/enterprise.js?trustedtypes=true&render=${e.public.recaptchaV3SiteKey}`,async:!0},{src:`https://www.google.com/recaptcha/api.js?trustedtypes=true&render=${e.public.recaptchaV3SiteKey}`,async:!0,defer:!0},{src:`https://www.google.com/recaptcha/enterprise.js?trustedtypes=true&render=${e.public.chdValidatorRecaptchaV3SiteKey}`,async:!0},{src:`https://www.google.com/recaptcha/api.js?trustedtypes=true&render=${e.public.chdValidatorRecaptchaV3SiteKey}`,async:!0,defer:!0}]});const t=async(l=Sb)=>{const c=A(()=>window.grecaptcha);await wb(c).toBeTruthy({timeout:l})},n=async(l=Sb)=>{const c=A(()=>window.grecaptcha?.render);await wb(c).toBeTruthy({timeout:l})},r=async(l=Sb)=>{const c=A(()=>window.grecaptcha?.getResponse);await wb(c).toBeTruthy({timeout:l})};return{provide:{recaptcha:{v2:{render:async(l,c)=>{try{if(await t(),await n(),!window.grecaptcha?.render)throw new Error("reCAPTCHA v2 not available.");window.grecaptcha.render(l,{sitekey:e.public.recaptchaV2SiteKey,...c?{callback:c}:{}})}catch(u){console.warn(`reCAPTCHA V2 render: ${u}`)}},getToken:async()=>
1559{if(await t(),await r(),!window.grecaptcha.getResponse)throw new Error("reCAPTCHA v2 not available.");return window.grecaptcha.getResponse()},reset:()=>{try{window.grecaptcha?.reset?.()}catch(l){console.warn("reCAPTCHA V2 reset failed",l)}}},v3:{getToken:async l=>{if(await t(),!window.grecaptcha.enterprise)throw new Error("reCAPTCHA v3 not available.");return window.grecaptcha.enterprise.execute(e.public.recaptchaV3SiteKey,{action:l})}}}}}});var pde="firebase",mde="12.2.1";/** 1560 * @license 1561 * Copyright 2020 Google LLC 1562 * 1563 * Licensed under the Apache License, Version 2.0 (the "License"); 1564 * you may not use this file except in compliance with the License. 1565 * You may obtain a copy of the License at 1566 * 1567 * http://www.apache.org/licenses/LICENSE-2.0 1568 * 1569 * Unless required by applicable law or agreed to in writing, software 1570 * distributed under the License is distributed on an "AS IS" BASIS, 1571 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1572 * See the License for the specific language governing permissions and 1573 * limitations under the License. 1574 */au(pde,mde,"app");const gde=nt(()=>{const e=Or(),t={apiKey:e.public.firebaseApiKey,authDomain:e.public.firebaseAuthDomain,projectId:e.public.firebaseProjectId,appId:e.public.firebaseAppId};let n;try{n=eN()}catch{n=void 0}return n||(n=JL(t)),{provide:{firebase:{auth:Mg(n)}}}}),vde=nt({name:"portal-gateway-api",setup(e){const{$recaptcha:t,$firebase:n}=De(),r=dr("orgId"),s=async({options:c})=>{if(c.recaptchaAction){try{const u=await t.v2.getToken();u&&c.headers.append("x-recaptcha-v2-token",u)}catch(u){console.error(u)}try{const u=await t.v3.getToken(c.recaptchaAction);u&&c.headers.append("x-recaptcha-token",u)}catch(u){console.warn(`reCAPTCHA V3: ${u}`)}}},o=async({options:c})=>{try{if(await n.auth.authStateReady(),n.auth.currentUser){const u=await n.auth.currentUser.getIdToken();c.headers.append("Authorization",`Bearer ${u}`)}}catch(u){console.error(u)}},i=$fetch.create({baseURL:e.$config.public.portalGatewayUrl,headers:{"X-Org-Id":r.value},onRequest:async({options:c})=>{await o({options:c}),await s({options:c})}}),a=$fetch.create({baseURL:e.$config.public.portalGatewayChdUrl,headers:{"X-Org-Id":r.value},onRequest:async({options:c})=>{await o({options:c}),await s({options:c})}}),l=$fetch.create({baseURL:e.$config.public.publicPortalGatewayUrl,headers:{"X-Org-Id":r.value},onRequest:async({options:c})=>{await o({options:c}),await s({options:c})}});return{provide:{portalGatewayApi:i,portalGatewayChdApi:a,publicPortalGatewayApi:l}}}}),_de=900*1e3,yde=14400*1e3,H5=(e,t)=>!pR(e.startedAt,t)||!pR(e.lastSeenAt,t)?!1:t-e.lastSeenAt<_de&&t-e.startedAt<yde,pR=(e,t)=>Number.isFinite(e)&&e<=t,bde=e=>{try{return e.read()}catch{return null}},wde=e=>{if(!e)return null;try{const t=JSON.parse(e);return typeof t.journeyId!="string"||!t.journeyId.trim()||typeof t.startedAt!="number"||typeof t.lastSeenAt!="number"?null:t}catch{return null}},e1=(e,t)=>{try{e.write(JSON.stringify(t))}catch{}return t},mR=({store:e,now:t,backendJourneyId:n,urlJourneyId:r,mintId:s})=>{const o=wde(bde(e));if(o&&H5(o,t))return e1(e,{...o,source:"reused"});const i=n?.trim()||r?.trim()||null,a=n?.trim()?"session":r?.trim()?"url":"minted";return e1(e,{journeyId:i??s(),source:a,startedAt:t,lastSeenAt:t})},gR=(e,t,n)=>e1(e,{...t,lastSeenAt:n}),Sde=(e=Date.now(),t=t1)=>{const n=t(16),r=Math.max(0,Math.floor(e)),s=Math.floor(r/2**32),o=r>>>0;n[0]=s>>>8&255,n[1]=s&255,n[2]=o>>>24&255,n[3]=o>>>16&255,n[4]=o>>>8&255,n[5]=o&255,n[6]=(n[6]??0)&15|112,n[8]=(n[8]??0)&63|128;const i=Array.from(n,a=>a.toString(16).padStart(2,"0")).join("");return`${i.slice(0,8)}-${i.slice(8,12)}-${i.slice(12,16)}-${i.slice(16,20)}-${i.slice(20)}`},z5=(e=t1)=>{if(e===t1&&typeof crypto<"u"&&typeof crypto.randomUUID=="function")try{return crypto.randomUUID()}catch{}const t=e(16);t[6]=(t[6]??0)&15|64,t[8]=(t[8]??0)&63|128;const n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`},t1=e=>{const t=new Uint8Array(e);if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return crypto.getRandomValues(t),t;for(let n=0;n<e;n+=1)t[n]=Math.floor(Math.random()*256);return t},ZE="_toku_jr",vR="1",Ede=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),q5=(e=ZE,{isPartitioned:t=!1,maxAgeSeconds:n}={})=>{const r=t?"; Path=/; SameSite=None; Secure; Partitioned":"; Path=/; SameSite=Lax; Secure",s=n===void 0?r:`${r}; Max-Age=${n}`;return{kind:"cookie",read:()=>{const o=document.cookie.match(new RegExp(`(?:^|; )${Ede(e)}=([^;]*)`));if(!o?.[1])return null;try{return decodeURIComponent(o[1])}catch{return null}},write:o=>{document.cookie=`${e}=${encodeURIComponent(o)}${s}`},clear:()=>{document.cookie=`${e}=${r}; Max-Age=0`}}},kde=(e=ZE)=>({kind:"session-storage",read:()=>window.sessionStorage.getItem(e),write:t=>window.sessionStorage.setItem(e,t),clear:()=>window.sessionStorage.removeItem(e)}),W5=()=>{let e=null;return{kind:"memory",read:()=>e,write:t=>{e=t},clear:()=>{e=null}}},K5=e=>`${e}.probe.${z5()}`,G5=e=>{try{return e.write(vR),e.read()===vR}catch{return!1}finally{try{e.clear()}catch{}}},xde=({name:e=ZE,isPartitioned:t=!1}={})=>{const n=[r=>q5(r,{isPartitioned:t}),r=>kde(r)];for(const r of n)if(G5(r(K5(e))))return r(e);return W5()},Tde=e=>({kind:"local-storage",read:()=>window.localStorage.getItem(e),write:t=>window.localStorage.setItem(e,t),clear:()=>window.localStorage.removeItem(e)}),Cde=3600*24*365,Ade=({name:e,isPartitioned:t=!1})=>{const n=[r=>Tde(r),r=>q5(r,{isPartitioned:t,maxAgeSeconds:Cde})];for(const r of n)if(G5(r(K5(e))))return r(e);return W5()},Rde="_toku_did",Ide=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Ode=({store:e,mintId:t=z5})=>{try{const n=e.read();if(n&&Ide.test(n))return{deviceId:n,isNewDevice:!1};const r=t();return e.write(r),{deviceId:r,isNewDevice:!0}}catch{try{return{deviceId:t(),isNewDevice:!0}}catch{return{deviceId:"",isNewDevice:!0}}}},Pde=32,n1=200,Lde=e=>{const t=Object.create(null);let n=0;for(const[r,s]of Object.entries(e)){if(n>=Pde)break;if(r.length>n1)continue;const o=Nde(s);o!==void 0&&(t[r]=o,n+=1)}return t},Nde=e=>{if(e!=null){if(typeof e=="string"){const t=e.trim();if(t==="")return;if(t.length<=n1)return t;const n=t.slice(0,n1);return/[\uD800-\uDBFF]$/.test(n)?n.slice(0,-1):n}return typeof e=="number"?Number.isFinite(e)?e:void 0:e}},Dde=e=>e!==void 0&&Object.keys(e).length>0,Mde=({name:e,journeyId:t,eventId:n,now:r,dimensions:s,payload:o})=>({event_id:n,name:e,journey_id:t,client_sent_at:Y5(r),dimensions:s??{},payload:$de(o)}),$de=e=>e?Object.fromEntries(Object.entries(e).filter(([,t])=>typeof t!="number"||Number.isFinite(t))):{},Y5=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?new Date().toISOString():t.toISOString()},fm=(e,t,n=Date.now())=>({organization_id:e.organizationId,source:e.source,sent_at:Y5(n),...e.flowName?{flow_name:e.flowName}:{},...Dde(e.properties)?{properties:e.properties}:{},events:t}),Gm=e=>{if(typeof TextEncoder<"u")return new TextEncoder().encode(e).length;let t=0;for(const n of e){const r=n.codePointAt(0)??0;r<128?t+=1:r<2048?t+=2:r<65536?t+=3:t+=4}return t},r1=60*1024,Fde=({url:e,post:t,sendBeacon:n})=>({send:async(r,{isUnloading:s=!1}={})=>{const o=JSON.stringify(r);
1574if(s&&n&&Gm(o)<=r1)try{if(n(e,new Blob([o],{type:"text/plain"})))return"sent"}catch{}try{const{status:i}=await t(e,o);return i>=200&&i<300?"sent":i===408||i===429?"retry":i>=400&&i<500?"rejected":"retry"}catch{return"retry"}}}),_R=20,yR=32*1024,Ude=2e3,bR=500,Bde=3,Vde=360*60*1e3,jde=3e4,Hde=(e,t)=>{const n=setTimeout(e,t);return n.unref?.(),n},zde=e=>{if(typeof ih=="function"){ih(()=>e(),{timeout:2e3});return}setTimeout(e,0)},qde=({transport:e,context:t,maxBatchEvents:n=_R,maxBatchBytes:r=yR,flushIntervalMs:s=Ude,maxQueueEvents:o=bR,maxAttempts:i=Bde,maxEventAgeMs:a=Vde,now:l=()=>Date.now(),scheduleIdle:c=zde,setTimer:u=Hde,clearTimer:d=h=>clearTimeout(h),random:f=Math.random})=>{const h=(ee,N)=>Number.isFinite(ee)?Math.max(1,Math.floor(ee)):N,p=h(n,_R),m=h(r,yR),g=h(o,bR),v=()=>typeof t=="function"?t():t,b=ee=>new Promise(N=>{const de=u(()=>N("retry"),jde);ee.then(pe=>{d(de),N(pe)},()=>{d(de),N("retry")})}),_=[],y={enqueued:0,sent:0,rejected:0,overflowed:0,expired:0};let w=0,S=null,E=!1,x=!1,T=[],O=0;const z=()=>{S!==null&&(d(S),S=null,E=!1)},P=(ee,N=!1)=>{S===null&&(E=N,S=u(()=>{S=null,E=!1,c(()=>void W())},ee))},q=ee=>{_.shift(),w-=ee.bytes},X=ee=>{const N=[];let de=0;for(;_.length>0&&N.length<p;){const pe=_[0];if(N.length>0&&de+pe.bytes>ee)break;de+=pe.bytes,N.push(pe),q(pe)}return N},J=(ee,N=O)=>{if(N!==O)return;const de=l(),pe=ee.filter(Ie=>{const Le=Ie.attempts<i&&de-Ie.enqueuedAt<a;return Le||(y.expired+=1),Le});if(pe.length===0)return;const je=Math.max(0,g-_.length),Re=pe.slice(0,je);if(y.overflowed+=pe.length-Re.length,Re.length===0)return;_.unshift(...Re),w+=Re.reduce((Ie,Le)=>Ie+Le.bytes,0);const Pe=Math.max(...Re.map(Ie=>Ie.attempts));P(2**(Pe-1)*1e3*(.5+f()*.5),!0)},F=ee=>Math.max(1,m-Gm(JSON.stringify(fm(ee,[])))),Q=async()=>{if(x||_.length===0)return!1;x=!0;let ee=[],N=O;try{const de=v();N=O,ee=X(F(de)),ee.forEach(je=>{je.attempts+=1}),T=ee;const pe=await b(e.send(fm(de,ee.map(je=>je.event),l())));return pe==="sent"?(y.sent+=ee.length,!0):pe==="rejected"?(y.rejected+=ee.length,!0):(J(ee,N),!1)}catch{return J(ee,N),!1}finally{x=!1,T=[]}},W=async()=>{for(;_.length>0&&await Q(););_.length>0&&P(s)};return{enqueue:ee=>{if(_.length>=g){const de=_[0];de&&q(de),y.overflowed+=1}const N=Gm(JSON.stringify(ee));if(_.push({event:ee,bytes:N,enqueuedAt:l(),attempts:0}),w+=N,y.enqueued+=1,!E){if(_.length>=p||w>=m){z(),c(()=>void W());return}P(s)}},flush:W,flushOnUnload:({isTerminal:ee=!0}={})=>{if(ee&&T.length>0&&(_.unshift(...T),w+=T.reduce((Pe,Ie)=>Pe+Ie.bytes,0),T=[],O+=1),_.length===0)return;z();let N;try{N=v()}catch{P(s);return}const de=Gm(JSON.stringify(fm(N,[]))),pe=r1-de-Math.max(0,p-1),je=Math.min(F(N),Math.max(1,pe));let Re=r1;for(;_.length>0;){const Pe=X(je),Ie=de+Pe.reduce((ie,ae)=>ie+ae.bytes,0)+Math.max(0,Pe.length-1),Le=Ie<=Re;Le&&(Re-=Ie),Pe.forEach(ie=>{ie.attempts+=1});const fe=O;let K;try{K=e.send(fm(N,Pe.map(ie=>ie.event),l()),{isUnloading:Le})}catch{J(Pe,fe);break}K.then(ie=>{ie==="sent"?y.sent+=Pe.length:ie==="rejected"?y.rejected+=Pe.length:J(Pe,fe)}).catch(()=>J(Pe,fe))}},counters:()=>({...y}),size:()=>_.length,discard:()=>{z(),_.length=0,w=0,O+=1,T=[]}}},Wde=({context:e,transport:t,store:n,backendJourneyId:r,urlJourneyId:s,trackingConsent:o="granted",beforeSend:i,onJourneyChange:a,payload:l,dimensions:c,now:u=()=>Date.now(),mintId:d=h=>Sde(h),queue:f})=>{let h=mR({store:n,now:u(),backendJourneyId:r,urlJourneyId:s,mintId:()=>d(u())}),p=o,m=null,g=null,v=null,b=!1,_=!1;const y=qde({transport:t,context:e,...f}),w=x=>{const T=mR({store:n,now:x,mintId:()=>d(x)});return b=!1,_=!1,h=T,S(),T},S=()=>{try{a?.(h.journeyId)}catch{}};return S(),{track:(x,T,O)=>{try{if(p!=="granted")return;const z=u();h=H5(h,z)?gR(n,h,z):w(z);const P={...l?.(),...T};m&&(P.screen=m),g&&(P.view_id=g),b||(P.journey_source=h.source);const q=Mde({name:x,journeyId:h.journeyId,eventId:d(z),now:z,dimensions:{...c?.(),...O,...v?{id_customer:v}:{}},payload:P}),X=i?i(q):q;X&&(y.enqueue(X),_=!0,b=!0)}catch{}},startScreen:x=>{try{m=x,g=d(u())}catch{}},adoptBackendJourney:x=>{try{if(!x||!x.trim()||_||h.source!=="minted")return;h=gR(n,{...h,journeyId:x.trim(),source:"session"},u()),S()}catch{}},identify:x=>{x&&x.trim()&&(v=x.trim())},clearIdentity:()=>{v=null},setTrackingConsent:x=>{p=x,x!=="granted"&&y.discard()},getInternalContext:()=>({journeyId:h.journeyId,journeySource:h.source,viewId:g,screen:m,customerId:v}),counters:y.counters,flushOnUnload:y.flushOnUnload}},Kde=(e,{isInIframe:t,referrer:n,host:r,deviceId:s,isNewDevice:o})=>Lde({access_source:po(e.accessSource)??po(e.access_source),sent_by:po(e.sentBy),trigger_source:po(e.triggerSource),interaction_esid:po(e.interactionEsid),utm_source:po(e.utm_source),utm_medium:po(e.utm_medium),utm_campaign:po(e.utm_campaign),utm_content:po(e.utm_content),utm_term:po(e.utm_term),is_in_iframe:t,embedder:po(e.embedder),referrer_host:Gde(n,r),domain:r,device_id:s,is_new_device:o}),po=e=>{const t=Array.isArray(e)?e[0]:e;return typeof t=="string"&&t.trim()!==""?t:null},Gde=(e,t)=>{try{if(!e)return null;const n=new URL(e).host;return n&&n!==t?n:null}catch{return null}},Yde=()=>dr("tracking/idCustomer",()=>null),Xde=()=>dr("tracking/portalExperience",()=>null),Qde=()=>dr("tracking/checkoutExperience",()=>null),Zde="/business-events/collect",Jde="0",efe="app.payment-portal.customer-portal",tfe=nt({name:"tracking",dependsOn:["portal-gateway-api"],setup(){let e=null;try{e=nfe(),ofe(e)}catch(t){rfe(t)}return{provide:{tracking:e}}}}),nfe=()=>{const e=dr("orgId"),t=Pr(),n=tl(),r=()=>n.getQueryCache().findAll({queryKey:Y0.all}).filter(h=>h.state.data?.country_iso).sort((h,p)=>p.state.dataUpdatedAt-h.state.dataUpdatedAt)[0]?.state.data?.country_iso,s=Yde(),o=Xde(),i=Q
1574de(),a=Or().public.publicPortalGatewayUrl,l=window.self!==window.top,{deviceId:c,isNewDevice:u}=Ode({store:Ade({name:Rde,isPartitioned:l})}),d=Kde(t.query,{isInIframe:l,referrer:document.referrer,host:window.location.host,deviceId:c,isNewDevice:u});return Wde({context:()=>({organizationId:e.value,source:efe,flowName:ff(t.query.portal)??Jde,properties:{...d,...o.value?{portal_experience:o.value}:{},...i.value?{checkout_experience:i.value}:{}}}),payload:()=>{const f=ff(t.query.checkoutSession),h=ff(t.query.sessionId);return{path:t.path,...f?{id_checkout_session:f}:{},...h?{id_customer_portal_session:h}:{}}},dimensions:()=>{const f=ufe(r()),h=lfe(s.value,t);return{...f?{country:f}:{},...h?{id_customer:h}:{}}},onJourneyChange:f=>sfe(f),transport:Fde({url:new URL(Zde,a).href,post:async(f,h)=>({status:(await $fetch.raw(f,{method:"POST",body:h,headers:{"Content-Type":"application/json"},ignoreResponseError:!0})).status}),...navigator.sendBeacon?{sendBeacon:(f,h)=>navigator.sendBeacon(f,h)}:{}}),store:xde({isPartitioned:l}),urlJourneyId:ff(t.query.journey)})},rfe=e=>{try{ds.addAction("tracking.init_failed",{reason:e instanceof Error?e.message:String(e)})}catch{}},sfe=e=>{try{ds.setGlobalContextProperty("journey_id",e)}catch{}},ofe=e=>{let t=null;const n=r=>{try{t=ife(e,t),e.flushOnUnload({isTerminal:r})}catch{}};window.addEventListener("pagehide",()=>n(!0)),window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&n(!1)})},ife=(e,t)=>{let n;try{n=e.counters()}catch{return t}const r=afe(n,t);if(!r)return t;try{ds.addAction("tracking.counters",{...r})}catch{}return n},afe=(e,t)=>{const n={enqueued:e.enqueued-(t?.enqueued??0),sent:e.sent-(t?.sent??0),rejected:e.rejected-(t?.rejected??0),overflowed:e.overflowed-(t?.overflowed??0),expired:e.expired-(t?.expired??0)};return Object.values(n).some(r=>r!==0)?n:null},lfe=(e,t)=>e||(t.query.checkoutSession?null:ff(t.query.user)),cfe=["CL","MX","BR"],ufe=e=>cfe.find(t=>t===e),ff=e=>typeof e=="string"&&e?e:null;function dfe(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ffe(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var hfe=(function(){function e(n){var r=this;this._insertTag=function(s){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,o),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ffe(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=dfe(s);try{o.insertRule(r,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++}
vendor: 8,879 bytes, line 1574
1574,t.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},e})(),mr="-ms-",vv="-moz-",It="-webkit-",X5="comm",JE="rule",ek="decl",pfe="@import",Q5="@keyframes",mfe="@layer",gfe=Math.abs,M_=String.fromCharCode,vfe=Object.assign;function _fe(e,t){return rr(e,0)^45?(((t<<2^rr(e,0))<<2^rr(e,1))<<2^rr(e,2))<<2^rr(e,3):0}function Z5(e){return e.trim()}function yfe(e,t){return(e=t.exec(e))?e[0]:e}function Ot(e,t,n){return e.replace(t,n)}function s1(e,t){return e.indexOf(t)}function rr(e,t){return e.charCodeAt(t)|0}function Hh(e,t,n){return e.slice(t,n)}function zo(e){return e.length}function tk(e){return e.length}function hm(e,t){return t.push(e),e}function bfe(e,t){return e.map(t).join("")}var $_=1,Qu=1,J5=0,bs=0,Ln=0,wd="";function F_(e,t,n,r,s,o,i){return{value:e,root:t,parent:n,type:r,props:s,children:o,line:$_,column:Qu,length:i,return:""}}function Gd(e,t){return vfe(F_("",null,null,"",null,null,0),e,{length:-e.length},t)}function wfe(){return Ln}function Sfe(){return Ln=bs>0?rr(wd,--bs):0,Qu--,Ln===10&&(Qu=1,$_--),Ln}function Fs(){return Ln=bs<J5?rr(wd,bs++):0,Qu++,Ln===10&&(Qu=1,$_++),Ln}function oi(){return rr(wd,bs)}function Ym(){return bs}function _p(e,t){return Hh(wd,e,t)}function zh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function e3(e){return $_=Qu=1,J5=zo(wd=e),bs=0,[]}function t3(e){return wd="",e}function Xm(e){return Z5(_p(bs-1,o1(e===91?e+2:e===40?e+1:e)))}function Efe(e){for(;(Ln=oi())&&Ln<33;)Fs();return zh(e)>2||zh(Ln)>3?"":" "}function kfe(e,t){for(;--t&&Fs()&&!(Ln<48||Ln>102||Ln>57&&Ln<65||Ln>70&&Ln<97););return _p(e,Ym()+(t<6&&oi()==32&&Fs()==32))}function o1(e){for(;Fs();)switch(Ln){case e:return bs;case 34:case 39:e!==34&&e!==39&&o1(Ln);break;case 40:e===41&&o1(e);break;case 92:Fs();break}return bs}function xfe(e,t){for(;Fs()&&e+Ln!==57;)if(e+Ln===84&&oi()===47)break;return"/*"+_p(t,bs-1)+"*"+M_(e===47?e:Fs())}function Tfe(e){for(;!zh(oi());)Fs();return _p(e,bs)}function Cfe(e){return t3(Qm("",null,null,null,[""],e=e3(e),0,[0],e))}function Qm(e,t,n,r,s,o,i,a,l){for(var c=0,u=0,d=i,f=0,h=0,p=0,m=1,g=1,v=1,b=0,_="",y=s,w=o,S=r,E=_;g;)switch(p=b,b=Fs()){case 40:if(p!=108&&rr(E,d-1)==58){s1(E+=Ot(Xm(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Xm(b);break;case 9:case 10:case 13:case 32:E+=Efe(p);break;case 92:E+=kfe(Ym()-1,7);continue;case 47:switch(oi()){case 42:case 47:hm(Afe(xfe(Fs(),Ym()),t,n),l);break;default:E+="/"}break;case 123*m:a[c++]=zo(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:v==-1&&(E=Ot(E,/\f/g,"")),h>0&&zo(E)-d&&hm(h>32?SR(E+";",r,n,d-1):SR(Ot(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(hm(S=wR(E,t,n,c,u,s,a,_,y=[],w=[],d),o),b===123)if(u===0)Qm(E,t,S,S,y,o,d,a,w);else switch(f===99&&rr(E,3)===110?100:f){case 100:case 108:case 109:case 115:Qm(e,S,S,r&&hm(wR(e,S,S,0,0,s,a,_,s,y=[],d),w),s,w,d,a,r?y:w);break;default:Qm(E,S,S,S,[""],w,0,a,w)}}c=u=h=0,m=v=1,_=E="",d=i;break;case 58:d=1+zo(E),h=p;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Sfe()==125)continue}switch(E+=M_(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:a[c++]=(zo(E)-1)*v,v=1;break;case 64:oi()===45&&(E+=Xm(Fs())),f=oi(),u=d=zo(_=E+=Tfe(Ym())),b++;break;case 45:p===45&&zo(E)==2&&(m=0)}}return o}function wR(e,t,n,r,s,o,i,a,l,c,u){for(var d=s-1,f=s===0?o:[""],h=tk(f),p=0,m=0,g=0;p<r;++p)for(var v=0,b=Hh(e,d+1,d=gfe(m=i[p])),_=e;v<h;++v)(_=Z5(m>0?f[v]+" "+b:Ot(b,/&\f/g,f[v])))&&(l[g++]=_);return F_(e,t,n,s===0?JE:a,l,c,u)}function Afe(e,t,n){return F_(e,t,n,X5,M_(wfe()),Hh(e,2,-2),0)}function SR(e,t,n,r){return F_(e,t,n,ek,Hh(e,0,r),Hh(e,r+1,-1),r)}function wu(e,t){for(var n="",r=tk(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function Rfe(e,t,n,r){switch(e.type){case mfe:if(e.children.length)break;case pfe:case ek:return e.return=e.return||e.value;case X5:return"";case Q5:return e.return=e.value+"{"+wu(e.children,r)+"}";case JE:e.value=e.props.join(",")}return zo(n=wu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ife(e){var t=tk(e);return function(n,r,s,o){for(var i="",a=0;a<t;a++)i+=e[a](n,r,s,o)||"";return i}}function Ofe(e){return function(t){t.root||(t=t.return)&&e(t)}}function Pfe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Lfe=function(t,n,r){for(var s=0,o=0;s=o,o=oi(),s===38&&o===12&&(n[r]=1),!zh(o);)Fs();return _p(t,bs)},Nfe=function(t,n){var r=-1,s=44;do switch(zh(s)){case 0:s===38&&oi()===12&&(n[r]=1),t[r]+=Lfe(bs-1,n,r);break;case 2:t[r]+=Xm(s);break;case 4:if(s===44){t[++r]=oi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=M_(s)}while(s=Fs());return t},Dfe=function(t,n){return t3(Nfe(e3(t),n))},ER=new WeakMap,Mfe=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,s=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ER.get(r))&&!s){ER.set(t,!0);for(var o=[],i=Dfe(n,o),a=r.props,l=0,c=0;l<i.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},$fe=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function n3(e,t){switch(_fe(e,t)){case 5103:return It+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return It+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return It+e+vv+e+mr+e+e;case 6828:case 4268:return It+e+mr+e+e;case 6165:return It+e+mr+"flex-"+e+e;case 5187:return It+e+Ot(e,/(\w+).+(:[^]+)/,It+"box-$1$2"+mr+"flex-$1$2")+e;case 5443:return It+e+mr+"flex-item-"+Ot(e,/flex-|-self/,"")+e;case 4675:return It+e+mr+"flex-line-pack"+Ot(e,/align-content|flex-|-self/,"")+e;case 5548:return It+e+mr+Ot(e,"shrink","negative")+e;case 5292:return It+e+mr+Ot(e,"basis","preferred-size")+e;case 6060:return It+"box-"+Ot(e,"-grow","")+It+e+mr+Ot(e,"grow","positive")+e;case 4554:return It+Ot(e,/([^-])(transform)/g,"$1"+It+"$2")+e;case 6187:return Ot(Ot(Ot(e,/(zoom-|grab)/,It+"$1"),/(image-set)/,It+"$1"),e,"")+e;case 5495:case 3959:return Ot(e,/(image-set\([^]*)/,It+"$1$`$1");case 4968:return Ot(Ot(e,/(.+:)(flex-)?(.*)/,It+"box-pack:$3"+mr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+It+e+e;case 4095:case 3583:case 4068:case 2532:return Ot(e,/(.+)-inline(.+)/,It+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zo(e)-1-t>6)switch(rr(e,t+1)){case 109:if(rr(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+It+"$2-$3$1"+vv+(rr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~s1(e,"stretch")?n3(Ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rr(e,t+1)!==115)break;case 6444:switch(rr(e,zo(e)-3-(~s1(e,"!important")&&10))){case 107:return Ot(e,":",":"+It)+e;case 101:return Ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+It+(rr(e,14)===45?"inline-":"")+"box$3$1"+It+"$2$3$1"+mr+"$2box$3")+e}break;case 5936:switch(rr(e,t+11)){case 114:return It+e+mr+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return It+e+mr+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return It+e+mr+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return It+e+mr+e+e}return e}var Ffe=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case ek:t.return=n3(t.value,t.length);break;case Q5:return wu([Gd(t,{value:Ot(t.value,"@","@"+It)})],s);case JE:if(t.length)return bfe(t.props,function(o){switch(yfe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wu([Gd(t,{props:[Ot(o,/:(read-\w+)/,":"+vv+"$1")]})],s);case"::placeholder":return wu([Gd(t,{props:[Ot(o,/:(plac\w+)/,":"+It+"input-$1")]}),Gd(t,{props:[Ot(o,/:(plac\w+)/,":"+vv+"$1")]}),Gd(t,{props:[Ot(o,/:(plac\w+)/,mr+"input-$1")]})],s)}return""})}},Ufe=[Ffe],Bfe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var s=t.stylisPlugins||Ufe,o={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)o[g[v]]=!0;a.push(m)});var l,c=[Mfe,$fe];{var u,d=[Rfe,Ofe(function(m){u.insert(m)})],f=Ife(c.concat(s,d)),h=function(g){return wu(Cfe(g),f)};l=function(g,v,b,_){u=b,h(g?g+"{"+v.styles+"}":v.styles),_&&(p.inserted[v.name]=!0)}}
1574var p={key:n,sheet:new hfe({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p};function Vfe(e){for(var t=0,n,r=0,s=e.length;s>=4;++r,s-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jfe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hfe=/[A-Z]|^ms/g,zfe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,r3=function(t){return t.charCodeAt(1)===45},kR=function(t){return t!=null&&typeof t!="boolean"},Eb=Pfe(function(e){return r3(e)?e:e.replace(Hfe,"-$&").toLowerCase()}),xR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zfe,function(r,s,o){return Ca={name:s,styles:o,next:Ca},s})}return jfe[t]!==1&&!r3(t)&&typeof n=="number"&&n!==0?n+"px":n};function _v(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Ca={name:s.name,styles:s.styles,next:Ca},s.name;var o=n;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ca={name:i.name,styles:i.styles,next:Ca},i=i.next;var a=o.styles+";";return a}return qfe(e,t,n)}}var l=n;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function qfe(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=_v(e,t,n[s])+";";else for(var o in n){var i=n[o];if(typeof i!="object"){var a=i;t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":kR(a)&&(r+=Eb(o)+":"+xR(o,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)kR(i[l])&&(r+=Eb(o)+":"+xR(o,i[l])+";");else{var c=_v(e,t,i);switch(o){case"animation":case"animationName":{r+=Eb(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var TR=/label:\s*([^\s;{]+)\s*(;|$)/g,Ca;function kb(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,s="";Ca=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,s+=_v(n,t,o);else{var i=o;s+=i[0]}for(var a=1;a<e.length;a++)if(s+=_v(n,t,e[a]),r){var l=o;s+=l[a]}TR.lastIndex=0;for(var c="",u;(u=TR.exec(s))!==null;)c+="-"+u[1];var d=Vfe(s)+c;return{name:d,styles:s,next:Ca}}function s3(e,t,n){var r="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(r+=s+" ")}),r}var Wfe=function(t,n,r){var s=t.key+"-"+n.name;t.registered[s]===void 0&&(t.registered[s]=n.styles)},Kfe=function(t,n,r){Wfe(t,n);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+s:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function CR(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function AR(e,t,n){var r=[],s=s3(e,r,n);return r.length<2?n:s+t(r)}var Gfe=function(t){var n=Bfe(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=kb(c,n.registered,void 0);return Kfe(n,d),n.key+"-"+d.name},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=kb(c,n.registered),f="animation-"+d.name;return CR(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=kb(c,n.registered);CR(n,d)},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return AR(n.registered,r,Yfe(c))};return{css:r,cx:i,injectGlobal:o,keyframes:s,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:s3.bind(null,n.registered),merge:AR.bind(null,n.registered,r)}},Yfe=function e(t){for(var n="",r=0;r<t.length;r++){var s=t[r];
1574if(s!=null){var o=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))o=e(s);else{o="";for(var i in s)s[i]&&i&&(o&&(o+=" "),o+=i)}break}default:o=s}o&&(n&&(n+=" "),n+=o)}}return n},o3=Gfe({key:"css"}),Xfe=o3.hydrate,bn=o3.css;const Qfe=nt(e=>{if(window?.$emotionSSRIds){const t=window.$emotionSSRIds;Xfe(t)}}),Zfe=nt(e=>{e.vueApp.config.errorHandler=(t,n,r)=>{_se(t,n,r)}}),Jfe=nt(async()=>{let e,t;if(Pr().path.startsWith("/api"))return;const r=na();[e,t]=or(()=>r.suspense()),await e,t(),be(()=>r.data.value?.show_hubspot_chat,s=>{s&&a$({src:"https://storage.googleapis.com/external-frontend-scripts/hs-7423287-1.0.js",async:!0,integrity:"sha256-rSUOYmnmistwbnRMCVTbevxak4V9JVSK9qRlMfLon+g= sha384-A6hOjJTH0JpZTa/lZof0M0P9k80tOH62Fu0yFSmnJUe2nZwixG2WQNzVAi9RzR2L",crossorigin:"anonymous"})},{immediate:!0})}),ehe=nt(e=>{const t=()=>typeof window<"u"&&window.self!==window.top;return{provide:{isInIframe:dr("isInIframe",()=>t())}}}),yp=()=>dr("isInIframe"),the=()=>{const e=yp(),t=Lr();return{emitIframeEvent:r=>{!e.value&&!t.test||!window?.parent||window.parent.postMessage({type:r?.operationType,result:r?.operationResult,data:{...r?.data,gateway:"gateway"in r.data?r?.data.gateway:void 0}},"*")}}},nhe=nt(e=>{const t=yp(),{emitIframeEvent:n}=the(),r=()=>{const s=document.querySelector(".iframe-layout"),o=document.querySelector(".t-card-container")||document.querySelector(".base-checkout-new"),i=document.querySelector(".layout"),a=document.querySelector("main"),l=s||o||i||a;return l?l.scrollHeight:0};if(t.value){const s=()=>{requestAnimationFrame(()=>{const a=r();n({operationType:"RESIZE",data:{height:a+50}})})},o=new MutationObserver(s),i=()=>{const a=document.querySelector(".iframe-layout"),l=document.querySelector(".t-card-container")||document.querySelector(".base-checkout-new"),c=document.querySelector(".layout"),u=document.querySelector("main"),d=a||l||c||u;d&&o.observe(d,{childList:!0,subtree:!0,characterData:!0})};i(),e.hook("page:finish",()=>{Lt(()=>{o.disconnect(),i(),s()})})}}),rhe=e=>e.replace(/[^a-zA-Z0-9_]/g,"_"),RR=e=>{if(e.queryKey[0]!=="feature-flags"||e.state.status!=="success")return;const t=e.state.data;t&&ds.addFeatureFlagEvaluation(rhe(String(e.queryKey[1])),t.is_active)},she=e=>(e.getAll().forEach(RR),e.subscribe(t=>{t.type==="updated"&&t.action.type==="success"&&RR(t.query)})),ohe=nt({name:"rum-feature-flags",dependsOn:["datadog-rum","toku-vue-query"],setup(){she(tl().getQueryCache())}}),ihe=()=>{const{track:e}=EE(),t=n=>{};return{customerPortalStarted:n=>e("customer_portal_session.opened"),paymentOptionSelected:n=>e("checkout_session.payment_method_selected",{...n?.payment_method_selected?{payment_method:n.payment_method_selected}:{},...typeof n?.position=="number"?{position:n.position}:{}}),signInStarted:n=>e("customer_portal_session.login_screen_viewed",{...n?.auth_type?{auth_type:n.auth_type}:{}}),customerPortalButtonClicked:t,paymentMethodFormStarted:t,paymentMethodFormFinished:t,iFrameStarted:t}},ahe=nt(()=>{const e=yp(),{iFrameStarted:t}=ihe();if(e.value){const n=new URLSearchParams(window.location.search);t({hostname:n.get("embedder")??"",portal_url:window.location.origin})}}),lhe=nt({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),che=[Ij,Pj,$j,wY,yse,bse,wse,Sse,Ese,Tse,Cse,Uoe,Woe,Xoe,Yie,lle,Lle,Nle,Fle,Zle,cce,fce,pce,Gue,Yue,Xue,tde,ode,hde,gde,vde,tfe,Qfe,Zfe,Jfe,ehe,nhe,ohe,ahe,lhe],i3=(e="RouteProvider")=>oe({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,s={};for(const o in t.route)Object.defineProperty(s,o,{get:()=>n===t.renderKey?t.route[o]:r[o],enumerable:!0});return Zn(zl,cs(s)),()=>t.vnode?qe(t.vnode,{ref:t.vnodeRef}):t.vnode}}),uhe=i3(),IR=new WeakMap,dhe=oe({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const s=De(),o=G(),i=vt(zl,null);let a;r({pageRef:o});const l=vt(RP,null);let c;const u=s.deferHydration();if(s.isHydrating){const f=s.hooks.hookOnce("app:error",u);Hn().beforeEach(f)}e.pageKey&&be(()=>e.pageKey,(f,h)=>{f!==h&&s.callHook("page:loading:start")});let d=!1;{const f=Hn().beforeResolve(()=>{d=!1});Oo(()=>{f()})}return()=>qe(aL,{name:e.name,route:e.route,...t},{default:f=>{const h=hhe(i,f.route,f.Component),p=i&&i.matched.length===f.route.matched.length;if(!f.Component){if(c&&!p)return c;
1574u();return}if(c&&l&&!l.isCurrent(f.route))return c;if(h&&i&&(!l||l?.isCurrent(i)))return p?c:null;const m=y0(f,e.pageKey),g=phe(i,f.route,f.Component);!s.isHydrating&&a===m&&!g&&Lt(()=>{d=!0,s.callHook("page:loading:end")}),a=m;const v=!!(e.transition??f.route.meta.pageTransition??dx),b=v&&fhe([e.transition,f.route.meta.pageTransition,dx,{onAfterLeave(){delete s._runningTransition,s.callHook("page:transition:finish",f.Component)}}]),_=e.keepalive??f.route.meta.keepalive??z4;return c=lL(v&&b,z8(_,qe(Wv,{suspensible:!0,onPending:()=>{v&&(s._runningTransition=!0),s.callHook("page:start",f.Component)},onResolve:()=>{Lt(()=>s.callHook("page:finish",f.Component).then(()=>{if(delete s._runningTransition,!d&&!g)return d=!0,s.callHook("page:loading:end")}).finally(u))}},{default:()=>{const y={key:m||void 0,vnode:n.default?mhe(n.default,f):f.Component,route:f.route,renderKey:m||void 0,trackRootNodes:v,vnodeRef:o};if(!_)return qe(uhe,y);const w=f.Component.type,S=w;let E=IR.get(S);return E||(E=i3(w.name||w.__name),IR.set(S,E)),qe(E,y)}}))).default(),c}})}});function fhe(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?fS(n.onAfterLeave):void 0});return jP(...t)}function hhe(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>s.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((s,o)=>s.components?.default!==e.matched[o]?.components?.default)||n&&y0({route:t,Component:n})!==y0({route:e,Component:n})}function phe(e,t,n){return e?t.matched.findIndex(s=>s.components?.default===n?.type)<t.matched.length-1:!1}function mhe(e,t){const n=e(t);return n.length===1?qe(n[0]):qe(mt,void 0,n)}const ghe=oe({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>qe(wa[e.name],e.layoutProps,t.slots)}}),vhe={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},_he=oe({name:"NuxtLayout",inheritAttrs:!1,props:vhe,setup(e,t){const n=De(),r=vt(zl),o=!r||r===Pr()?XP():r,i=A(()=>{let u=C(e.name)??o?.meta.layout??"default";return u&&!(u in wa)&&e.fallback&&(u=C(e.fallback)),u}),a=vn();t.expose({layoutRef:a});const l=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",l);Hn().beforeEach(u)}let c;return()=>{const u=i.value&&i.value in wa,d=o?.meta.layoutTransition??H4,f=c;return c=i.value,lL(u&&d,{default:()=>qe(Wv,{suspensible:!0,onResolve:()=>{Lt(l)}},{default:()=>qe(yhe,{layoutProps:we(t.attrs,{ref:a}),key:i.value||void 0,name:i.value,shouldProvide:!e.name,isRenderingNewLayout:h=>h!==f&&h===i.value,hasTransition:!!d},t.slots)})}).default()}}}),yhe=oe({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){const n=e.name;e.shouldProvide&&Zn(RP,{isCurrent:o=>n===(o.meta.layout??"default")});const r=vt(zl);if(r&&r===Pr()){const o=XP(),i={};for(const a in o){const l=a;Object.defineProperty(i,l,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?o[l]:r[l]})}Zn(zl,cs(i))}return()=>!n||typeof n=="string"&&!(n in wa)?t.slots.default?.():qe(ghe,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}});function nk(e){return e?e.flatMap(t=>t.type===mt?nk(t.children):[t]):[]}const qh=oe({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const r=nk(n.default()),s=r.findIndex(l=>l.type!==pn);if(s===-1)return r;const o=r[s];delete o.props?.ref;const i=o.props?we(t,o.props):t,a=Bs({...o,props:{}},i);return r.length===1?a:(r[s]=a,r)}}}),bhe=["area","img","input"],Dn=oe({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&bhe.includes(r)?()=>qe(r,t):r!=="template"?()=>qe(e.as,t,{default:n.default}):()=>qe(qh,t,{default:n.default})}}),rk=oe({__name:"VisuallyHidden",props:{feature:{default:"focusable"},asChild:{type:Boolean},as:{default:"span"}},setup(e){return(t,n)=>(V(),te(C(Dn),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:ne(()=>[le(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}});function $we(e,t){var n;const r=vn();return Yr(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Ao(r)}function Sd(e){return ea()?(gs(e),!0):!1}function Fwe(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const i=()=>t(o);return Sd(i),{off:i}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(i=>i(...o))),clear:()=>{e.clear()}}}function whe(e){let t=!1,n;const r=Ji(!0);return(...s)=>(t||(n=r.run(()=>e(...s)),t=!0),n)}function She(e){let t=0,n,r;const s=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...o)=>(t+=1,r||(r=Ji(!0),n=r.run(()=>e(...o))),Sd(s),n)}const ra=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ehe=e=>typeof e<"u",khe=Object.prototype.toString,xhe=e=>khe.call(e)==="[object Object]",The=()=>{},OR=Che();function Che(){var e,t;return ra&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Ahe(e){return At()}function xb(e){return Array.isArray(e)?e:[e]}function Uwe(e,t=1e4){return Qh((n,r)=>{let s=Je(e),o;const i=()=>setTimeout(()=>
1574{s=Je(e),r()},Je(t));return Sd(()=>{clearTimeout(o)}),{get(){return n(),s},set(a){s=a,r(),clearTimeout(o),o=i()}}})}function Rhe(e,t){Ahe()&&Oo(e,t)}function a3(e,t,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n,o=vn(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function l(){o.value=!1,a()}function c(...u){s&&e(),a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...u)},Je(t))}return r&&(o.value=!0,ra&&c()),Sd(l),{isPending:Ao(o),start:c,stop:l}}function Ihe(e=1e3,t={}){const{controls:n=!1,callback:r}=t,s=a3(r??The,e,t),o=A(()=>!s.isPending.value);return n?{ready:o,...s}:o}function Ohe(e,t,n){return be(e,t,{...n,immediate:!0})}const U_=ra?window:void 0;function oc(e){var t;const n=Je(e);return(t=n?.$el)!=null?t:n}function l3(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),s=A(()=>{const a=xb(Je(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=Ohe(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(c=>oc(c)))!=null?l:[U_].filter(c=>c!=null),xb(Je(s.value?e[1]:e[0])),xb(C(s.value?e[2]:e[1])),Je(s.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!a?.length||!l?.length||!c?.length)return;const d=xhe(u)?{...u}:u;t.push(...a.flatMap(f=>l.flatMap(h=>c.map(p=>r(f,h,p,d)))))},{flush:"post"}),i=()=>{o(),n()};return Sd(n),i}function Phe(){const e=vn(!1),t=At();return t&&Ut(()=>{e.value=!0},t),e}function Lhe(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function sk(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=U_,eventName:o="keydown",passive:i=!1,dedupe:a=!1}=r,l=Lhe(t);return l3(s,o,u=>{u.repeat&&Je(a)||l(u)&&n(u)},i)}function c3(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=U_,once:o=!1}=t,i=vn(!1),a=A(()=>r?1e3/Je(r):null);let l=0,c=null;function u(h){if(!i.value||!s)return;l||(l=h);const p=h-l;if(a.value&&p<a.value){c=s.requestAnimationFrame(u);return}if(l=h,e({delta:p,timestamp:h}),o){i.value=!1,c=null;return}c=s.requestAnimationFrame(u)}function d(){!i.value&&s&&(i.value=!0,l=0,c=s.requestAnimationFrame(u))}function f(){i.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&d(),Sd(f),{isActive:Ao(i),pause:f,resume:d}}function Nhe(e){return JSON.parse(JSON.stringify(e))}function yv(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:f}=r,h=At(),p=n||h?.emit||((s=h?.$emit)==null?void 0:s.bind(h))||((i=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(h?.proxy));let m=c;t||(t="modelValue"),m=m||`update:${t.toString()}`;const g=_=>a?typeof a=="function"?a(_):Nhe(_):_,v=()=>Ehe(e[t])?g(e[t]):d,b=_=>{f?f(_)&&p(m,_):p(m,_)};if(l){const _=v(),y=G(_);let w=!1;return be(()=>e[t],S=>{w||(w=!0,y.value=g(S),Lt(()=>w=!1))}),be(y,S=>{!w&&(S!==e[t]||u)&&b(S)},{deep:u}),y}else return A({get(){return v()},set(_){b(_)}})}function _c(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[i=>{const a=vt(r,i);if(a||a===null)return a;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(Zn(r,i),i)]}function u3(e){return e==null}const[d3,Dhe]=_c("ConfigProvider"),Mhe=oe({inheritAttrs:!1,__name:"ConfigProvider",props:{dir:{default:"ltr"},locale:{default:"en"},scrollBody:{type:[Boolean,Object],default:!0},nonce:{default:void 0},useId:{type:Function,default:void 0}},setup(e){const t=e,{dir:n,locale:r,scrollBody:s,nonce:o}=Gr(t);return Dhe({dir:n,locale:r,scrollBody:s,nonce:o,useId:t.useId}),(i,a)=>le(i.$slots,"default")}});function wn(){const e=At(),t=G(),n=A(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:oc(t)),r=Object.assign({},e.exposed),s={};for(const i in e.props)Object.defineProperty(s,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(r).length>0)for(const i in r)Object.defineProperty(s,i,{enumerable:!0,configurable:!0,get:()=>r[i]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function o(i){t.value=i,i&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),e.exposed=s)}return{forwardRef:o,currentRef:t,currentElement:n}}let $he=0;function i1(e,t="reka"){const n=d3({useId:void 0});return Object.hasOwn(MB,"useId")?`${t}-${Zh?.()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++$he}`}function Fhe(e,t){const n=G(e);function r(o){return t[n.value][o]??n.value}return{state:n,dispatch:o=>{n.value=r(o)}}}function Uhe(e,t){const n=G({}),r=G("none"),s=G(e),o=e.value?"mounted":"unmounted";let i;const a=t.value?.ownerDocument.defaultView??U_,{state:l,dispatch:c}=Fhe(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=g=>
1574{if(ra){const v=new CustomEvent(g,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(v)}};be(e,async(g,v)=>{const b=v!==g;if(await Lt(),b){const _=r.value,y=pm(t.value);g?(c("MOUNT"),u("enter"),y==="none"&&u("after-enter")):y==="none"||y==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):v&&_!==y?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=g=>{const v=pm(t.value),b=v.includes(g.animationName),_=l.value==="mounted"?"enter":"leave";if(g.target===t.value&&b&&(u(`after-${_}`),c("ANIMATION_END"),!s.value)){const y=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=y)})}g.target===t.value&&v==="none"&&c("ANIMATION_END")},f=g=>{g.target===t.value&&(r.value=pm(t.value))},h=be(t,(g,v)=>{g?(n.value=getComputedStyle(g),g.addEventListener("animationstart",f),g.addEventListener("animationcancel",d),g.addEventListener("animationend",d)):(c("ANIMATION_END"),i!==void 0&&a?.clearTimeout(i),v?.removeEventListener("animationstart",f),v?.removeEventListener("animationcancel",d),v?.removeEventListener("animationend",d))},{immediate:!0}),p=be(l,()=>{const g=pm(t.value);r.value=l.value==="mounted"?g:"none"});return qn(()=>{h(),p()}),{isPresent:A(()=>["mounted","unmountSuspended"].includes(l.value))}}function pm(e){return e&&getComputedStyle(e).animationName||"none"}const ok=oe({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:r,forceMount:s}=Gr(e),o=G(),{isPresent:i}=Uhe(r,o);n({present:i});let a=t.default({present:i.value});a=nk(a||[]);const l=At();if(a&&a?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(` 1575`)].join(` 1576`))}return()=>s.value||r.value||i.value?qe(t.default({present:i.value})[0],{ref:c=>{const u=oc(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?o.value=u.firstElementChild:o.value=u),u}}):null}}),[sa,Bhe]=_c("DialogRoot"),Vhe=oe({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,s=yv(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=G(),i=G(),{modal:a}=Gr(n);return Bhe({open:s,modal:a,openModal:()=>{s.value=!0},onOpenChange:l=>{s.value=l},onOpenToggle:()=>{s.value=!s.value},contentId:"",titleId:"",descriptionId:"",triggerElement:o,contentElement:i}),(l,c)=>le(l.$slots,"default",{open:C(s),close:()=>s.value=!1})}});function B_(e){const t=At(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(s=>{r[tu(Vn(s))]=(...o)=>e(s,...o)}),r}function To(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function jhe(e){return e?"open":"closed"}const Hhe=whe(()=>G([]));function zhe(){const e=Hhe();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=PR(e.value,t),e.value.unshift(t)},remove(t){e.value=PR(e.value,t),e.value[0]?.resume()}}}function PR(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function qhe(e){return e.filter(t=>t.tagName!=="A")}const Tb="focusScope.autoFocusOnMount",Cb="focusScope.autoFocusOnUnmount",LR={bubbles:!1,cancelable:!0};function Zm(e,{select:t=!1}={}){const n=To();for(const r of e)if(fa(r,{select:t}),To()!==n)return!0}function Whe(e){const t=ik(e),n=NR(t,e),r=NR(t.reverse(),e);return[n,r]}function ik(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function NR(e,t){for(const n of e)if(!Khe(n,{upTo:t}))return n}function Khe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ghe(e){return e instanceof HTMLInputElement&&"select"in e}function fa(e,{select:t=!1}={}){if(e&&e.focus){const n=To();e.focus({preventScroll:!0}),e!==n&&Ghe(e)&&t&&e.select()}}const Yhe=oe({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:s,currentElement:o}=wn(),i=G(null),a=zhe(),l=jn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Yr(u=>{if(!ra)return;const d=o.value;if(!n.trapped)return;function f(g){if(l.paused||!d)return;const v=g.target;d.contains(v)?i.value=v:fa(i.value,{select:!0})}function h(g){if(l.paused||!d)return;const v=g.relatedTarget;v!==null&&(d.contains(v)||fa(i.value,{select:!0}))}
1576function p(g){d.contains(i.value)||fa(d)}document.addEventListener("focusin",f),document.addEventListener("focusout",h);const m=new MutationObserver(p);d&&m.observe(d,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),m.disconnect()})}),Yr(async u=>{const d=o.value;if(await Lt(),!d)return;a.add(l);const f=To();if(!d.contains(f)){const p=new CustomEvent(Tb,LR);d.addEventListener(Tb,m=>r("mountAutoFocus",m)),d.dispatchEvent(p),p.defaultPrevented||(Zm(qhe(ik(d)),{select:!0}),To()===f&&fa(d))}u(()=>{d.removeEventListener(Tb,g=>r("mountAutoFocus",g));const p=new CustomEvent(Cb,LR),m=g=>{r("unmountAutoFocus",g)};d.addEventListener(Cb,m),d.dispatchEvent(p),setTimeout(()=>{p.defaultPrevented||fa(f??document.body,{select:!0}),d.removeEventListener(Cb,m),a.remove(l)},0)})});function c(u){if(!n.loop&&!n.trapped||l.paused)return;const d=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,f=To();if(d&&f){const h=u.currentTarget,[p,m]=Whe(h);p&&m?!u.shiftKey&&f===m?(u.preventDefault(),n.loop&&fa(p,{select:!0})):u.shiftKey&&f===p&&(u.preventDefault(),n.loop&&fa(m,{select:!0})):f===h&&u.preventDefault()}}return(u,d)=>(V(),te(C(Dn),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:c},{default:ne(()=>[le(u.$slots,"default")]),_:3},8,["as-child","as"]))}});function f3(e,t,n){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(s)}const Xhe="dismissableLayer.pointerDownOutside",Qhe="dismissableLayer.focusOutside";function h3(e,t){const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(r===n||s.indexOf(r)<s.indexOf(n)))}function Zhe(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,s=G(!1),o=G(()=>{});return Yr(i=>{if(!ra||!Je(n))return;const a=async c=>{const u=c.target;if(!(!t?.value||!u)){if(h3(t.value,u)){s.value=!1;return}if(c.target&&!s.value){let d=function(){f3(Xhe,e,f)};const f={originalEvent:c};c.pointerType==="touch"?(r.removeEventListener("click",o.value),o.value=d,r.addEventListener("click",o.value,{once:!0})):d()}else r.removeEventListener("click",o.value);s.value=!1}},l=window.setTimeout(()=>{r.addEventListener("pointerdown",a)},0);i(()=>{window.clearTimeout(l),r.removeEventListener("pointerdown",a),r.removeEventListener("click",o.value)})}),{onPointerDownCapture:()=>{Je(n)&&(s.value=!0)}}}function Jhe(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,s=G(!1);return Yr(o=>{if(!ra||!Je(n))return;const i=async a=>{if(!t?.value)return;await Lt(),await Lt();const l=a.target;!t.value||!l||h3(t.value,l)||a.target&&!s.value&&f3(Qhe,e,{originalEvent:a})};r.addEventListener("focusin",i),o(()=>r.removeEventListener("focusin",i))}),{onFocusCapture:()=>{Je(n)&&(s.value=!0)},onBlurCapture:()=>{Je(n)&&(s.value=!1)}}}const go=jn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),epe=oe({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=wn(),i=A(()=>o.value?.ownerDocument??globalThis.document),a=A(()=>go.layersRoot),l=A(()=>o.value?Array.from(a.value).indexOf(o.value):-1),c=A(()=>go.layersWithOutsidePointerEventsDisabled.size>0),u=A(()=>{const p=Array.from(a.value),[m]=[...go.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(m);return l.value>=g}),d=Zhe(async p=>{const m=[...go.branches].some(g=>g?.contains(p.target));!u.value||m||(r("pointerDownOutside",p),r("interactOutside",p),await Lt(),p.defaultPrevented||r("dismiss"))},o),f=Jhe(p=>{[...go.branches].some(g=>g?.contains(p.target))||(r("focusOutside",p),r("interactOutside",p),p.defaultPrevented||r("dismiss"))},o);sk("Escape",p=>{l.value===a.value.size-1&&(r("escapeKeyDown",p),p.defaultPrevented||r("dismiss"))});let h;return Yr(p=>{o.value&&(n.disableOutsidePointerEvents&&(go.layersWithOutsidePointerEventsDisabled.size===0&&(h=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),go.layersWithOutsidePointerEventsDisabled.add(o.value)),a.value.add(o.value),p(()=>{n.disableOutsidePointerEvents&&go.layersWithOutsidePointerEventsDisabled.size===1&&(i.value.body.style.pointerEvents=h)}))}),Yr(p=>{p(()=>
1576{o.value&&(a.value.delete(o.value),go.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(p,m)=>(V(),te(C(Dn),{ref:C(s),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:io({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:C(f).onFocusCapture,onBlurCapture:C(f).onBlurCapture,onPointerdownCapture:C(d).onPointerDownCapture},{default:ne(()=>[le(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),p3=oe({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=sa(),{forwardRef:o,currentElement:i}=wn();return s.titleId||=i1(void 0,"reka-dialog-title"),s.descriptionId||=i1(void 0,"reka-dialog-description"),Ut(()=>{s.contentElement=i,To()!==document.body&&(s.triggerElement.value=To())}),(a,l)=>(V(),te(C(Yhe),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:l[5]||(l[5]=c=>r("openAutoFocus",c)),onUnmountAutoFocus:l[6]||(l[6]=c=>r("closeAutoFocus",c))},{default:ne(()=>[H(C(epe),we({id:C(s).contentId,ref:C(o),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":C(s).descriptionId,"aria-labelledby":C(s).titleId,"data-state":C(jhe)(C(s).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=c=>C(s).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=c=>r("escapeKeyDown",c)),onFocusOutside:l[2]||(l[2]=c=>r("focusOutside",c)),onInteractOutside:l[3]||(l[3]=c=>r("interactOutside",c)),onPointerDownOutside:l[4]||(l[4]=c=>r("pointerDownOutside",c))}),{default:ne(()=>[le(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}});var tpe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ic=new WeakMap,mm=new WeakMap,gm={},Ab=0,m3=function(e){return e&&(e.host||m3(e.parentNode))},npe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=m3(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},rpe=function(e,t,n,r){var s=npe(t,Array.isArray(e)?e:[e]);gm[n]||(gm[n]=new WeakMap);var o=gm[n],i=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var h=f.getAttribute(r),p=h!==null&&h!=="false",m=(Ic.get(f)||0)+1,g=(o.get(f)||0)+1;Ic.set(f,m),o.set(f,g),i.push(f),m===1&&p&&mm.set(f,!0),g===1&&f.setAttribute(n,"true"),p||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),Ab++,function(){i.forEach(function(d){var f=Ic.get(d)-1,h=o.get(d)-1;Ic.set(d,f),o.set(d,h),f||(mm.has(d)||d.removeAttribute(r),mm.delete(d)),h||d.removeAttribute(n)}),Ab--,Ab||(Ic=new WeakMap,Ic=new WeakMap,mm=new WeakMap,gm={})}},spe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=tpe(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),rpe(r,s,n,"aria-hidden")):function(){return null}};function ope(e){let t;be(()=>oc(e),n=>{n?t=spe(n):t&&t()}),qn(()=>{t&&t()})}const ipe=oe({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=sa(),o=B_(r),{forwardRef:i,currentElement:a}=wn();return ope(a),(l,c)=>(V(),te(p3,we({...n,...C(o)},{ref:C(i),"trap-focus":C(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(u.preventDefault(),C(s).triggerElement.value?.focus())}),onPointerDownOutside:c[1]||(c[1]=u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0;(d.button===2||f)&&u.preventDefault()}),onFocusOutside:c[2]||(c[2]=u=>{u.preventDefault()})}),{default:ne(()=>[le(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),ape=oe({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=B_(t);wn();const o=sa(),i=G(!1),a=G(!1);return(l,c)=>(V(),te(p3,we({...n,...C(s)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(i.value||C(o).triggerElement.value?.focus(),u.preventDefault()),i.value=!1,a.value=!1}),onInteractOutside:c[1]||(c[1]=u=>{u.defaultPrevented||(i.value=!0,u.detail.originalEvent.type==="pointerdown"&&(a.value=!0));const d=u.target;C(o).triggerElement.value?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&a.value&&u.preventDefault()})}),{default:ne(()=>[le(l.$slots,"default")]),_:3},16))}}),lpe=oe({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=sa(),o=B_(r),{forwardRef:i}=wn();return(a,l)=>(V(),te(C(ok),{present:a.forceMount||C(s).open.value},{default:ne(()=>[C(s).modal.value?(V(),te(ipe,we({key:0,ref:C(i)},{...n,...C(o),...a.$attrs}),{default:ne(()=>[le(a.$slots,"default")]),_:3},16)):(V(),te(ape,we({key:1,ref:C(i)},{...n,...C(o),...a.$attrs}),{default:ne(()=>[le(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),DR=oe({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(e){const t=e;wn();const n=sa();return(r,s)=>(V(),te(C(Dn),we(t,{id:C(n).descriptionId}),{default:ne(()=>[le(r.$slots,"default")]),_:3},16,["id"]))}}),cpe=She(()=>{const e=G(new Map),t=G(),n=A(()=>{for(const i of e.value.values())if(i)return!0;return!1}),r=d3({scrollBody:G(!0)});let s=null;const o=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",OR&&s?.(),t.value=void 0};return be(n,(i,a)=>
1576{if(!ra)return;if(!i){a&&o();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,c={padding:l,margin:0},u=r.scrollBody?.value?typeof r.scrollBody.value=="object"?jP({padding:r.scrollBody.value.padding===!0?l:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?l:r.scrollBody.value.margin},c):c:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),OR&&(s=l3(document,"touchmove",d=>dpe(d),{passive:!1})),Lt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function upe(e){const t=Math.random().toString(36).substring(2,7),n=cpe();n.value.set(t,e);const r=A({get:()=>n.value.get(t)??!1,set:s=>n.value.set(t,s)});return Rhe(()=>{n.value.delete(t)}),r}function g3(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:g3(n)}}function dpe(e){const t=e||window.event,n=t.target;return n instanceof Element&&g3(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}const fpe=oe({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=sa();return upe(!0),wn(),(n,r)=>(V(),te(C(Dn),{as:n.as,"as-child":n.asChild,"data-state":C(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:ne(()=>[le(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),hpe=oe({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=sa(),{forwardRef:n}=wn();return(r,s)=>C(t)?.modal.value?(V(),te(C(ok),{key:0,present:r.forceMount||C(t).open.value},{default:ne(()=>[H(fpe,we(r.$attrs,{ref:C(n),as:r.as,"as-child":r.asChild}),{default:ne(()=>[le(r.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Ce("",!0)}}),v3=oe({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=Phe();return(n,r)=>C(t)||n.forceMount?(V(),te(Fv,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[le(n.$slots,"default")],8,["to","disabled","defer"])):Ce("",!0)}});function Ed(e){const t=At(),n=Object.keys(t?.type.props??{}).reduce((s,o)=>{const i=(t?.type.props[o]).default;return i!==void 0&&(s[o]=i),s},{}),r=us(e);return A(()=>{const s={},o=t?.vnode.props??{};return Object.keys(o).forEach(i=>{s[Vn(i)]=o[i]}),Object.keys({...n,...s}).reduce((i,a)=>(r.value[a]!==void 0&&(i[a]=r.value[a]),i),{})})}function V_(e,t){const n=Ed(e),r=t?B_(t):{};return A(()=>({...n.value,...r}))}const MR=oe({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e,n=sa();return wn(),(r,s)=>(V(),te(C(Dn),we(t,{id:C(n).titleId}),{default:ne(()=>[le(r.$slots,"default")]),_:3},16,["id"]))}}),ppe=oe({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=sa(),{forwardRef:r,currentElement:s}=wn();return n.contentId||=i1(void 0,"reka-dialog-content"),Ut(()=>{n.triggerElement.value=s.value}),(o,i)=>(V(),te(C(Dn),we(t,{ref:C(r),type:o.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":C(n).open.value||!1,"aria-controls":C(n).open.value?C(n).contentId:void 0,"data-state":C(n).open.value?"open":"closed",onClick:C(n).onOpenToggle}),{default:ne(()=>[le(o.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}});function $R(){const e=G(),t=A(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:oc(e));return{primitiveElement:e,currentElement:t}}const FR="data-reka-collection-item";function ak(e={}){const{key:t="",isProvider:n=!1}=e,r=`${t}CollectionProvider`;let s;if(n){const u=G(new Map);s={collectionRef:G(),itemMap:u},Zn(r,s)}else s=vt(r);const o=(u=!1)=>{const d=s.collectionRef.value;if(!d)return[];const f=Array.from(d.querySelectorAll(`[${FR}]`)),p=Array.from(s.itemMap.value.values()).sort((m,g)=>f.indexOf(m.ref)-f.indexOf(g.ref));return u?p:p.filter(m=>m.ref.dataset.disabled!=="")},i=oe({name:"CollectionSlot",setup(u,{slots:d}){const{primitiveElement:f,currentElement:h}=$R();return be(h,()=>{s.collectionRef.value=h.value}),()=>qe(qh,{ref:f},d)}}),a=oe({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:d,attrs:f}){const{primitiveElement:h,currentElement:p}=$R();return Yr(m=>{if(p.value){const g=nd(p.value);s.itemMap.value.set(g,{ref:p.value,value:u.value}),m(()=>s.itemMap.value.delete(g))}}),()=>qe(qh,{...f,[FR]:"",ref:h},d)}}),l=A(()=>
1576Array.from(s.itemMap.value.values())),c=A(()=>s.itemMap.value.size);return{getItems:o,reactiveItems:l,itemMapSize:c,CollectionSlot:i,CollectionItem:a}}const mpe=oe({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(V(),te(C(v3),Ar(Us(t)),{default:ne(()=>[le(n.$slots,"default")]),_:3},16))}}),Wh=100,[gpe,vpe]=_c("ProgressRoot"),bv=e=>typeof e=="number";function _pe(e,t){return u3(e)||bv(e)&&!Number.isNaN(e)&&e<=t&&e>=0?e:(console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be: 1577 - a positive number 1578 - less than the value passed to \`max\` (or ${Wh} if no \`max\` prop is set) 1579 - \`null\` or \`undefined\` if the progress is indeterminate. 1580 1581Defaulting to \`null\`.`),null)}function ype(e){return bv(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Wh}\`.`),Wh)}const bpe=oe({__name:"ProgressRoot",props:{modelValue:{},max:{default:Wh},getValueLabel:{type:Function,default:(e,t)=>bv(e)?`${Math.round(e/t*Wh)}%`:void 0},getValueText:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const n=e,r=t;wn();const s=yv(n,"modelValue",r,{passive:n.modelValue===void 0}),o=yv(n,"max",r,{passive:n.max===void 0});be(()=>s.value,async a=>{const l=_pe(a,n.max);l!==a&&(await Lt(),s.value=l)},{immediate:!0}),be(()=>n.max,a=>{const l=ype(n.max);l!==a&&(o.value=l)},{immediate:!0});const i=A(()=>u3(s.value)?"indeterminate":s.value===o.value?"complete":"loading");return vpe({modelValue:s,max:o,progressState:i}),(a,l)=>(V(),te(C(Dn),{"as-child":a.asChild,as:a.as,"aria-valuemax":C(o),"aria-valuemin":0,"aria-valuenow":bv(C(s))?C(s):void 0,"aria-valuetext":a.getValueText?.(C(s),C(o)),"aria-label":a.getValueLabel(C(s),C(o)),role:"progressbar","data-state":i.value,"data-value":C(s)??void 0,"data-max":C(o)},{default:ne(()=>[le(a.$slots,"default",{modelValue:C(s)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),wpe=oe({__name:"ProgressIndicator",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=gpe();return wn(),(r,s)=>(V(),te(C(Dn),we(t,{"data-state":C(n).progressState.value,"data-value":C(n).modelValue?.value??void 0,"data-max":C(n).max.value}),{default:ne(()=>[le(r.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),_3=oe({__name:"ToastAnnounceExclude",props:{altText:{},asChild:{type:Boolean},as:{}},setup(e){return(t,n)=>(V(),te(C(Dn),{as:t.as,"as-child":t.asChild,"data-reka-toast-announce-exclude":"","data-reka-toast-announce-alt":t.altText||void 0},{default:ne(()=>[le(t.$slots,"default")]),_:3},8,["as","as-child","data-reka-toast-announce-alt"]))}}),[j_,Spe]=_c("ToastProvider"),Epe=oe({inheritAttrs:!1,__name:"ToastProvider",props:{label:{default:"Notification"},duration:{default:5e3},swipeDirection:{default:"right"},swipeThreshold:{default:50}},setup(e){const t=e,{label:n,duration:r,swipeDirection:s,swipeThreshold:o}=Gr(t);ak({isProvider:!0});const i=G(),a=G(0),l=G(!1),c=G(!1);if(t.label&&typeof t.label=="string"&&!t.label.trim()){const u="Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.";throw new Error(u)}return Spe({label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:a,viewport:i,onViewportChange(u){i.value=u},onToastAdd(){a.value++},onToastRemove(){a.value--},isFocusedToastEscapeKeyDownRef:l,isClosePausedRef:c}),(u,d)=>le(u.$slots,"default")}}),kpe=oe({__name:"ToastAnnounce",setup(e){const t=j_(),n=Ihe(1e3),r=G(!1);return c3(()=>{r.value=!0}),(s,o)=>C(n)||r.value?(V(),te(C(rk),{key:0},{default:ne(()=>[gt(at(C(t).label.value)+" ",1),le(s.$slots,"default")]),_:3})):Ce("",!0)}}),xpe="toast.swipeStart",Tpe="toast.swipeMove",Cpe="toast.swipeCancel",Ape="toast.swipeEnd",a1="toast.viewportPause",l1="toast.viewportResume";function vm(e,t,n){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(s)}function UR(e,t,n=0){const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n}
1581function Rpe(e){return e.nodeType===e.ELEMENT_NODE}function y3(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Rpe(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.rekaToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.rekaToastAnnounceAlt;i&&t.push(i)}else t.push(...y3(r))}}),t}const[Ipe,Ope]=_c("ToastRoot"),Ppe=oe({inheritAttrs:!1,__name:"ToastRootImpl",props:{type:{},open:{type:Boolean,default:!1},duration:{},asChild:{type:Boolean},as:{default:"li"}},emits:["close","escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=wn(),{CollectionItem:i}=ak(),a=j_(),l=G(null),c=G(null),u=A(()=>typeof n.duration=="number"?n.duration:a.duration.value),d=G(0),f=G(u.value),h=G(0),p=G(u.value),m=c3(()=>{const _=new Date().getTime()-d.value;p.value=Math.max(f.value-_,0)},{fpsLimit:60});function g(_){_<=0||_===Number.POSITIVE_INFINITY||ra&&(window.clearTimeout(h.value),d.value=new Date().getTime(),h.value=window.setTimeout(v,_))}function v(_){const y=_?.pointerType==="";o.value?.contains(To())&&y&&a.viewport.value?.focus(),y&&(a.isClosePausedRef.value=!1),r("close")}const b=A(()=>o.value?y3(o.value):null);if(n.type&&!["foreground","background"].includes(n.type)){const _="Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.";throw new Error(_)}return Yr(_=>{const y=a.viewport.value;if(y){const w=()=>{g(f.value),m.resume(),r("resume")},S=()=>{const E=new Date().getTime()-d.value;f.value=f.value-E,window.clearTimeout(h.value),m.pause(),r("pause")};return y.addEventListener(a1,S),y.addEventListener(l1,w),()=>{y.removeEventListener(a1,S),y.removeEventListener(l1,w)}}}),be(()=>[n.open,u.value],()=>{f.value=u.value,n.open&&!a.isClosePausedRef.value&&g(u.value)},{immediate:!0}),sk("Escape",_=>{r("escapeKeyDown",_),_.defaultPrevented||(a.isFocusedToastEscapeKeyDownRef.value=!0,v())}),Ut(()=>{a.onToastAdd()}),qn(()=>{a.onToastRemove()}),Ope({onClose:v}),(_,y)=>(V(),Ae(mt,null,[b.value?(V(),te(kpe,{key:0,role:"alert","aria-live":_.type==="foreground"?"assertive":"polite","aria-atomic":"true"},{default:ne(()=>[gt(at(b.value),1)]),_:1},8,["aria-live"])):Ce("",!0),C(a).viewport.value?(V(),te(Fv,{key:1,to:C(a).viewport.value},[H(C(i),null,{default:ne(()=>[H(C(Dn),we({ref:C(s),role:"alert","aria-live":"off","aria-atomic":"true",tabindex:"0"},_.$attrs,{as:_.as,"as-child":_.asChild,"data-state":_.open?"open":"closed","data-swipe-direction":C(a).swipeDirection.value,style:{userSelect:"none",touchAction:"none"},onPointerdown:y[0]||(y[0]=Il(w=>{l.value={x:w.clientX,y:w.clientY}},["left"])),onPointermove:y[1]||(y[1]=w=>{if(!l.value)return;const S=w.clientX-l.value.x,E=w.clientY-l.value.y,x=!!c.value,T=["left","right"].includes(C(a).swipeDirection.value),O=["left","up"].includes(C(a).swipeDirection.value)?Math.min:Math.max,z=T?O(0,S):0,P=T?0:O(0,E),q=w.pointerType==="touch"?10:2,X={x:z,y:P},J={originalEvent:w,delta:X};x?(c.value=X,C(vm)(C(Tpe),F=>r("swipeMove",F),J)):C(UR)(X,C(a).swipeDirection.value,q)?(c.value=X,C(vm)(C(xpe),F=>r("swipeStart",F),J),w.target.setPointerCapture(w.pointerId)):(Math.abs(S)>q||Math.abs(E)>q)&&(l.value=null)}),onPointerup:y[2]||(y[2]=w=>{const S=c.value,E=w.target;if(E.hasPointerCapture(w.pointerId)&&E.releasePointerCapture(w.pointerId),c.value=null,l.value=null,S){const x=w.currentTarget,T={originalEvent:w,delta:S};C(UR)(S,C(a).swipeDirection.value,C(a).swipeThreshold.value)?C(vm)(C(Ape),O=>r("swipeEnd",O),T):C(vm)(C(Cpe),O=>r("swipeCancel",O),T),x?.addEventListener("click",O=>O.preventDefault(),{once:!0})}})}),{default:ne(()=>[le(_.$slots,"default",{remaining:p.value,duration:u.value})]),_:3},16,["as","as-child","data-state","data-swipe-direction"])]),_:3})],8,["to"])):Ce("",!0)],64))}}),b3=oe({__name:"ToastClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Ipe(),{forwardRef:r}=wn();return(s,o)=>(V(),te(_3,{"as-child":""},{default:ne(()=>[H(C(Dn),we(t,{ref:C(r),type:s.as==="button"?"button":void 0,onClick:C(n).onClose}),{default:ne(()=>[le(s.$slots,"default")]),_:3},16,["type","onClick"])]),_:3}))}}),BR=oe({__name:"ToastAction",props:{altText:{},asChild:{type:Boolean},as:{}},setup(e){if(!e.altText)throw new Error("Missing prop `altText` expected on `ToastAction`");const{forwardRef:n}=wn();return(r,s)=>r.altText?(V(),te(_3,{key:0,"alt-text":r.altText,"as-child":""},{default:ne(()=>[H(b3,{ref:C(n),as:r.as,"as-child":r.asChild},{default:ne(()=>[le(r.$slots,"default")]),_:3},8,["as","as-child"])]),_:3},8,["alt-text"])):Ce("",!0)}}),Lpe=oe({__name:"ToastDescription",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return wn(),(n,r)=>(V(),te(C(Dn),Ar(Us(t)),{default:ne(()=>[le(n.$slots,"default")]),_:3},16))}}
1581),Npe=oe({__name:"ToastPortal",props:{to:{},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(V(),te(C(v3),Ar(Us(t)),{default:ne(()=>[le(n.$slots,"default")]),_:3},16))}}),Dpe=oe({__name:"ToastRoot",props:{defaultOpen:{type:Boolean,default:!0},forceMount:{type:Boolean},type:{default:"foreground"},open:{type:Boolean,default:void 0},duration:{},asChild:{type:Boolean},as:{default:"li"}},emits:["escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd","update:open"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s}=wn(),o=yv(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return(i,a)=>(V(),te(C(ok),{present:i.forceMount||C(o)},{default:ne(()=>[H(Ppe,we({ref:C(s),open:C(o),type:i.type,as:i.as,"as-child":i.asChild,duration:i.duration},i.$attrs,{onClose:a[0]||(a[0]=l=>o.value=!1),onPause:a[1]||(a[1]=l=>r("pause")),onResume:a[2]||(a[2]=l=>r("resume")),onEscapeKeyDown:a[3]||(a[3]=l=>r("escapeKeyDown",l)),onSwipeStart:a[4]||(a[4]=l=>{r("swipeStart",l),l.defaultPrevented||l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:a[5]||(a[5]=l=>{if(r("swipeMove",l),!l.defaultPrevented){const{x:c,y:u}=l.detail.delta,d=l.currentTarget;d.setAttribute("data-swipe","move"),d.style.setProperty("--reka-toast-swipe-move-x",`${c}px`),d.style.setProperty("--reka-toast-swipe-move-y",`${u}px`)}}),onSwipeCancel:a[6]||(a[6]=l=>{if(r("swipeCancel",l),!l.defaultPrevented){const c=l.currentTarget;c.setAttribute("data-swipe","cancel"),c.style.removeProperty("--reka-toast-swipe-move-x"),c.style.removeProperty("--reka-toast-swipe-move-y"),c.style.removeProperty("--reka-toast-swipe-end-x"),c.style.removeProperty("--reka-toast-swipe-end-y")}}),onSwipeEnd:a[7]||(a[7]=l=>{if(r("swipeEnd",l),!l.defaultPrevented){const{x:c,y:u}=l.detail.delta,d=l.currentTarget;d.setAttribute("data-swipe","end"),d.style.removeProperty("--reka-toast-swipe-move-x"),d.style.removeProperty("--reka-toast-swipe-move-y"),d.style.setProperty("--reka-toast-swipe-end-x",`${c}px`),d.style.setProperty("--reka-toast-swipe-end-y",`${u}px`),o.value=!1}})}),{default:ne(({remaining:l,duration:c})=>[le(i.$slots,"default",{remaining:l,duration:c,open:C(o)})]),_:3},16,["open","type","as","as-child","duration"])]),_:3},8,["present"]))}}),Mpe=oe({__name:"ToastTitle",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return wn(),(n,r)=>(V(),te(C(Dn),Ar(Us(t)),{default:ne(()=>[le(n.$slots,"default")]),_:3},16))}}),VR=oe({__name:"FocusProxy",emits:["focusFromOutsideViewport"],setup(e,{emit:t}){const n=t,r=j_();return(s,o)=>(V(),te(C(rk),{"aria-hidden":"true",tabindex:"0",style:{position:"fixed"},onFocus:o[0]||(o[0]=i=>{const a=i.relatedTarget;!C(r).viewport.value?.contains(a)&&n("focusFromOutsideViewport")})},{default:ne(()=>[le(s.$slots,"default")]),_:3}))}}),$pe=oe({__name:"DismissableLayerBranch",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:r}=wn();return Ut(()=>{go.branches.add(r.value)}),qn(()=>{go.branches.delete(r.value)}),(s,o)=>(V(),te(C(Dn),we({ref:C(n)},t),{default:ne(()=>[le(s.$slots,"default")]),_:3},16))}}),Fpe=oe({inheritAttrs:!1,__name:"ToastViewport",props:{hotkey:{default:()=>["F8"]},label:{type:[String,Function],default:"Notifications ({hotkey})"},asChild:{type:Boolean},as:{default:"ol"}},setup(e){const t=e,{hotkey:n,label:r}=Gr(t),{forwardRef:s,currentElement:o}=wn(),{CollectionSlot:i,getItems:a}=ak(),l=j_(),c=A(()=>l.toastCount.value>0),u=G(),d=G(),f=A(()=>n.value.join("+").replace(/Key/g,"").replace(/Digit/g,""));sk(n.value,()=>{o.value.focus()}),Ut(()=>{l.onViewportChange(o.value)}),Yr(p=>{const m=o.value;if(c.value&&m){const g=()=>{if(!l.isClosePausedRef.value){const w=new CustomEvent(a1);m.dispatchEvent(w),l.isClosePausedRef.value=!0}},v=()=>{if(l.isClosePausedRef.value){const w=new CustomEvent(l1);m.dispatchEvent(w),l.isClosePausedRef.value=!1}},b=w=>{!m.contains(w.relatedTarget)&&v()},_=()=>{m.contains(To())||v()},y=w=>{const S=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!S){const x=To(),T=w.shiftKey;if(w.target===m&&T){u.value?.focus();return}const P=h({tabbingDirection:T?"backwards":"forwards"}),q=P.findIndex(X=>X===x);Zm(P.slice(q+1))?w.preventDefault():T?u.value?.focus():d.value?.focus()}};m.addEventListener("focusin",g),m.addEventListener("focusout",b),m.addEventListener("pointermove",g),m.addEventListener("pointerleave",_),m.addEventListener("keydown",y),window.addEventListener("blur",g),window.addEventListener("focus",v),p(()=>{m.removeEventListener("focusin",g),m.removeEventListener("focusout",b),m.removeEventListener("pointermove",g),m.removeEventListener("pointerleave",_),m.removeEventListener("keydown",y),window.removeEventListener("blur",g),window.removeEventListener("focus",v)})}});function h({tabbingDirection:p}){const g=a().map(v=>v.ref).map(v=>{const b=[v,...ik(v)];return p==="forwards"?b:b.reverse()});return(p==="forwards"?g.reverse():g).flat()}return(p,m)=>
1581(V(),te(C($pe),{role:"region","aria-label":typeof C(r)=="string"?C(r).replace("{hotkey}",f.value):C(r)(f.value),tabindex:"-1",style:io({pointerEvents:c.value?void 0:"none"})},{default:ne(()=>[c.value?(V(),te(VR,{key:0,ref:g=>{u.value=C(oc)(g)},onFocusFromOutsideViewport:m[0]||(m[0]=()=>{const g=h({tabbingDirection:"forwards"});C(Zm)(g)})},null,512)):Ce("",!0),H(C(i),null,{default:ne(()=>[H(C(Dn),we({ref:C(s),tabindex:"-1",as:p.as,"as-child":p.asChild},p.$attrs),{default:ne(()=>[le(p.$slots,"default")]),_:3},16,["as","as-child"])]),_:3}),c.value?(V(),te(VR,{key:1,ref:g=>{d.value=C(oc)(g)},onFocusFromOutsideViewport:m[1]||(m[1]=()=>{const g=h({tabbingDirection:"backwards"});C(Zm)(g)})},null,512)):Ce("",!0)]),_:3},8,["aria-label","style"]))}}),[Bwe,Upe]=_c("TooltipProvider"),Bpe=oe({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:s,disableClosingTrigger:o,ignoreNonKeyboardFocus:i,disabled:a}=Gr(t);wn();const l=G(!0),c=G(!1),{start:u,stop:d}=a3(()=>{l.value=!0},r,{immediate:!1});return Upe({isOpenDelayed:l,delayDuration:n,onOpen(){d(),l.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:s,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:i}),(f,h)=>le(f.$slots,"default")}});(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode('[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32,.72,0,1);animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform, 100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform, 100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true]):after{content:"";position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}
1581[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:hover,[data-vaul-handle]:active{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover: hover) and (pointer: fine){[data-vaul-drawer]{-webkit-user-select:none;user-select:none}}@media (pointer: fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{0%{transform:translate3d(0,var(--initial-transform, 100%),0)}to{transform:translateZ(0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform, 100%),0)}}@keyframes slideFromTop{0%{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}to{transform:translateZ(0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}}@keyframes slideFromLeft{0%{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}to{transform:translateZ(0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}}@keyframes slideFromRight{0%{transform:translate3d(var(--initial-transform, 100%),0,0)}to{transform:translateZ(0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform, 100%),0,0)}}')),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const Vpe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jpe=e=>typeof e<"u";function Hpe(e){return JSON.parse(JSON.stringify(e))}function jR(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:f}=r,h=At(),p=n||h?.emit||((s=h?.$emit)==null?void 0:s.bind(h))||((i=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(h?.proxy));let m=c;t||(t="modelValue"),m=m||`update:${t.toString()}`;const g=_=>a?typeof a=="function"?a(_):Hpe(_):_,v=()=>jpe(e[t])?g(e[t]):d,b=_=>{f?f(_)&&p(m,_):p(m,_)};if(l){const _=v(),y=G(_);let w=!1;return be(()=>e[t],S=>{w||(w=!0,y.value=g(S),Lt(()=>w=!1))}),be(y,S=>{!w&&(S!==e[t]||u)&&b(S)},{deep:u}),y}else return A({get(){return v()},set(_){b(_)}})}const[bp,zpe]=_c("DrawerRoot"),w3=new WeakMap;function Xn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;const r={};Object.entries(t).forEach(([s,o])=>{if(s.startsWith("--")){e.style.setProperty(s,o);return}r[s]=e.style[s],e.style[s]=o}),!n&&w3.set(e,r)}function qpe(e,t){if(!e||!(e instanceof HTMLElement))return;const n=w3.get(e);n&&Object.entries(n).forEach(([r,s])=>{e.style[r]=s})}function _m(e,t){const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let s=r.match(/^matrix3d\((.+)\)$/);return s?Number.parseFloat(s[1].split(", ")[In(t)?13:12]):(s=r.match(/^matrix\((.+)\)$/),s?Number.parseFloat(s[1].split(", ")[In(t)?5:4]):null)}function Wpe(e){return 8*(Math.log(e+1)-2)}function In(e){switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}}function Rb(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Kpe(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const un={DURATION:.5,EASE:[.32,.72,0,1]},S3=.4,Gpe=.25,Ype=100,E3=8,ym=16,k3=26,HR="vaul-dragging";function Xpe({activeSnapPoint:e,snapPoints:t,drawerRef:n,overlayRef:r,fadeFromIndex:s,onSnapPointChange:o,direction:i}){const a=G(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function l(){a.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}Ut(()=>{typeof window<"u"&&window.addEventListener("resize",l)}),Oo(()=>{typeof window<"u"&&window.removeEventListener("resize",l)});const c=A(()=>(t.value&&e.value===t.value[t.value.length-1])??null),u=A(()=>t.value&&t.value.length>0&&(s?.value||s?.value===0)&&!Number.isNaN(s?.value)&&t.value[s?.value??-1]===e.value||!t.value),d=A(()=>{var b;return((b=t.value)==null?void 0:b.findIndex(_=>_===e.value))??null}),f=A(()=>{var b;return((b=t.value)==null?void 0:b.map(_=>{const y=typeof _=="string";let w=0;if(y&&(w=Number.parseInt(_,10)),In(i.value)){const E=y?w:a.value?_*a.value.innerHe
1581ight:0;return a.value?i.value==="bottom"?a.value.innerHeight-E:-a.value.innerHeight+E:E}const S=y?w:a.value?_*a.value.innerWidth:0;return a.value?i.value==="right"?a.value.innerWidth-S:-a.value.innerWidth+S:S}))??[]}),h=A(()=>{var b;return d.value!==null?(b=f.value)==null?void 0:b[d.value]:null}),p=b=>{var _,y,w,S;const E=((_=f.value)==null?void 0:_.findIndex(x=>x===b))??null;Lt(()=>{var x;o(E,f.value),Xn((x=n.value)==null?void 0:x.$el,{transition:`transform ${un.DURATION}s cubic-bezier(${un.EASE.join(",")})`,transform:In(i.value)?`translate3d(0, ${b}px, 0)`:`translate3d(${b}px, 0, 0)`})}),f.value&&E!==f.value.length-1&&E!==s?.value?Xn((y=r.value)==null?void 0:y.$el,{transition:`opacity ${un.DURATION}s cubic-bezier(${un.EASE.join(",")})`,opacity:"0"}):Xn((w=r.value)==null?void 0:w.$el,{transition:`opacity ${un.DURATION}s cubic-bezier(${un.EASE.join(",")})`,opacity:"1"}),e.value=E!==null?((S=t.value)==null?void 0:S[E])??null:null};be([e,f,t],()=>{var b;if(e.value){const _=((b=t.value)==null?void 0:b.findIndex(y=>y===e.value))??-1;f.value&&_!==-1&&typeof f.value[_]=="number"&&p(f.value[_])}},{immediate:!0});function m({draggedDistance:b,closeDrawer:_,velocity:y,dismissible:w}){var S,E,x;if(s.value===void 0)return;const T=i.value==="bottom"||i.value==="right"?(h.value??0)-b:(h.value??0)+b,O=d.value===s.value-1,z=d.value===0,P=b>0;if(O&&Xn((S=r.value)==null?void 0:S.$el,{transition:`opacity ${un.DURATION}s cubic-bezier(${un.EASE.join(",")})`}),y>2&&!P){w?_():p(f.value[0]);return}if(y>2&&P&&f&&t.value){p(f.value[t.value.length-1]);return}const q=(E=f.value)==null?void 0:E.reduce((J,F)=>typeof J!="number"||typeof F!="number"?J:Math.abs(F-T)<Math.abs(J-T)?F:J),X=In(i.value)?window.innerHeight:window.innerWidth;if(y>S3&&Math.abs(b)<X*.4){const J=P?1:-1;if(J>0&&c){p(f.value[(((x=t.value)==null?void 0:x.length)??0)-1]);return}if(z&&J<0&&w&&_(),d.value===null)return;p(f.value[d.value+J]);return}p(q)}function g({draggedDistance:b}){var _;if(h.value===null)return;const y=i.value==="bottom"||i.value==="right"?h.value-b:h.value+b;(i.value==="bottom"||i.value==="right")&&y<f.value[f.value.length-1]||(i.value==="top"||i.value==="left")&&y>f.value[f.value.length-1]||Xn((_=n.value)==null?void 0:_.$el,{transform:In(i.value)?`translate3d(0, ${y}px, 0)`:`translate3d(${y}px, 0, 0)`})}function v(b,_){if(!t.value||typeof d.value!="number"||!f.value||s.value===void 0)return null;const y=d.value===s.value-1;if(d.value>=s.value&&_)return 0;if(y&&!_)return 1;if(!u.value&&!y)return null;const w=y?d.value+1:d.value-1,S=y?f.value[w]-f.value[w-1]:f.value[w+1]-f.value[w],E=b/Math.abs(S);return y?1-E:E}return{isLastSnapPoint:c,shouldFade:u,getPercentageDragged:v,activeSnapPointIndex:d,onRelease:m,onDrag:g,snapPointsOffset:f}}function zR(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}let Yd=null;function Qpe(e){const{isOpen:t,modal:n,nested:r,hasBeenOpened:s,preventScrollRestoration:o,noBodyStyles:i}=e,a=G(typeof window<"u"?window.location.href:""),l=G(0);function c(){if(zR()&&Yd===null&&t.value&&!i.value){Yd={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};const{scrollX:d,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.value}px`,left:`${-d}px`,right:"0px",height:"auto"}),setTimeout(()=>{requestAnimationFrame(()=>{const h=f-window.innerHeight;h&&l.value>=f&&(document.body.style.top=`-${l.value+h}px`)})},300)}}function u(){if(zR()&&Yd!==null&&!i.value){const d=-Number.parseInt(document.body.style.top,10),f=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,Yd),window.requestAnimationFrame(()=>{if(o.value&&a.value!==window.location.href){a.value=window.location.href;return}window.scrollTo(f,d)}),Yd=null}}return Ut(()=>{function d(){l.value=window.scrollY}d(),window.addEventListener("scroll",d),qn(()=>{window.removeEventListener("scroll",d)})}),be([t,s,a],()=>{r.value||!s.value||(t.value?(window.matchMedia("(display-mode: standalone)").matches||c(),n.value||setTimeout(()=>{u()},500)):u())}),{restorePositionSetting:u}}function Zpe(e,t){return e&&e.value?e:t}function Jpe(e){const{emitDrag:t,emitRelease:n,emitClose:r,emitOpenChange:s,open:o,dism
1581issible:i,nested:a,modal:l,shouldScaleBackground:c,setBackgroundColorOnScale:u,scrollLockTimeout:d,closeThreshold:f,activeSnapPoint:h,fadeFromIndex:p,direction:m,noBodyStyles:g,handleOnly:v,preventScrollRestoration:b}=e,_=G(o.value??!1),y=G(!1),w=G(!1),S=G(!1),E=G(null),x=G(null),T=G(null),O=G(null),z=G(null),P=G(!1),q=G(null),X=G(0),J=G(!1);G(0);const F=G(null);G(0);const Q=A(()=>{var k;return((k=F.value)==null?void 0:k.$el.getBoundingClientRect().height)||0}),W=Zpe(e.snapPoints,G(void 0)),ee=A(()=>{var k;return W&&(((k=W.value)==null?void 0:k.length)??0)>0}),N=G(null),{activeSnapPointIndex:de,onRelease:pe,snapPointsOffset:je,onDrag:Re,shouldFade:Pe,getPercentageDragged:Ie}=Xpe({snapPoints:W,activeSnapPoint:h,drawerRef:F,fadeFromIndex:p,overlayRef:E,onSnapPointChange:Le,direction:m});function Le(k,R){W.value&&k===R.length-1&&(x.value=new Date)}Qpe({isOpen:_,modal:l,nested:a,hasBeenOpened:y,noBodyStyles:g,preventScrollRestoration:b});function fe(){return(window.innerWidth-k3)/window.innerWidth}function K(k,R){var $;if(!k)return!1;let U=k;const Z=($=window.getSelection())==null?void 0:$.toString(),re=F.value?_m(F.value.$el,m.value):null,M=new Date;if(U.hasAttribute("data-vaul-no-drag")||U.closest("[data-vaul-no-drag]"))return!1;if(m.value==="right"||m.value==="left")return!0;if(x.value&&M.getTime()-x.value.getTime()<500)return!1;if(re!==null&&(m.value==="bottom"?re>0:re<0))return!0;if(Z&&Z.length>0)return!1;if(z.value&&M.getTime()-z.value.getTime()<d.value&&re===0||R)return z.value=M,!1;for(;U;){if(U.scrollHeight>U.clientHeight){if(U.scrollTop!==0)return z.value=new Date,!1;if(U.getAttribute("role")==="dialog")return!0}U=U.parentNode}return!0}function ie(k){!i.value&&!W.value||F.value&&!F.value.$el.contains(k.target)||(w.value=!0,T.value=new Date,k.target.setPointerCapture(k.pointerId),X.value=In(m.value)?k.clientY:k.clientX)}function ae(k){var R,$,U,Z,re,M;if(F.value&&w.value){const j=m.value==="bottom"||m.value==="right"?1:-1,ue=(X.value-(In(m.value)?k.clientY:k.clientX))*j,he=ue>0,Fe=W.value&&!i.value&&!he;if(Fe&&de.value===0)return;const Ne=Math.abs(ue),Qe=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");let xt=Ne/Q.value;const ft=Ie(Ne,he);if(ft!==null&&(xt=ft),Fe&&xt>=1||!P.value&&!K(k.target,he))return;if((R=F?.value)==null||R.$el.classList.add(HR),P.value=!0,Xn(($=F.value)==null?void 0:$.$el,{transition:"none"}),Xn((U=E.value)==null?void 0:U.$el,{transition:"none"}),W.value&&Re({draggedDistance:ue}),he&&!W.value){const an=Wpe(ue),Zr=Math.min(an*-1,0)*j;Xn((Z=F.value)==null?void 0:Z.$el,{transform:In(m.value)?`translate3d(0, ${Zr}px, 0)`:`translate3d(${Zr}px, 0, 0)`});return}const An=1-xt;if((Pe.value||p.value&&de.value===p.value-1)&&(t(xt),Xn((re=E.value)==null?void 0:re.$el,{opacity:`${An}`,transition:"none"},!0)),Qe&&E.value&&c.value){const an=Math.min(fe()+xt*(1-fe()),1),Zr=8-xt*8,ln=Math.max(0,14-xt*14);Xn(Qe,{borderRadius:`${Zr}px`,transform:In(m.value)?`scale(${an}) translate3d(0, ${ln}px, 0)`:`scale(${an}) translate3d(${ln}px, 0, 0)`,transition:"none"},!0)}if(!W.value){const an=Ne*j;Xn((M=F.value)==null?void 0:M.$el,{transform:In(m.value)?`translate3d(0, ${an}px, 0)`:`translate3d(${an}px, 0, 0)`})}}}function ge(){var k;if(!F.value)return;const R=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]"),$=_m(F.value.$el,m.value);Xn(F.value.$el,{transform:"translate3d(0, 0, 0)",transition:`transform ${un.DURATION}s cubic-bezier(${un.EASE.join(",")})`}),Xn((k=E.value)==null?void 0:k.$el,{transition:`opacity ${un.DURATION}s cubic-bezier(${un.EASE.join(",")})`,opacity:"1"}),c.value&&$&&$>0&&_.value&&Xn(R,{borderRadius:`${E3}px`,overflow:"hidden",...In(m.value)?{transform:`scale(${fe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${fe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${un.DURATION}s`,transitionTimingFunction:`cubic-bezier(${un.EASE.join(",")})`},!0)}function I(k){F.value&&(r(),k||(_.value=!1),window.setTimeout(()=>{W.value&&(h.value=W.value[0])},un.DURATION*1e3))}Yr(()=>{if(!_.value&&c.value&&Vpe){const k=setTimeout(()=>{qpe(document.body)},200);return()=>clearTimeout(k)}}),be(o,()=>{_.value=o.value,o.value||I()});function D(k){if(!w.value||!F.value)return;F.value.$el.classList.remove(HR),P.value=!1,w.value=!1,O.value=new Date;const R=_m(F.value.$el,m.value);
1581if(!K(k.target,!1)||!R||Number.isNaN(R)||T.value===null)return;const $=O.value.getTime()-T.value.getTime(),U=X.value-(In(m.value)?k.clientY:k.clientX),Z=Math.abs(U)/$;if(Z>.05&&(S.value=!0,window.setTimeout(()=>{S.value=!1},200)),W.value){const M=m.value==="bottom"||m.value==="right"?1:-1;pe({draggedDistance:U*M,closeDrawer:I,velocity:Z,dismissible:i.value}),n(!0);return}if(m.value==="bottom"||m.value==="right"?U>0:U<0){ge(),n(!0);return}if(Z>S3){I(),n(!1);return}const re=Math.min(F.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(R>=re*f.value){I(),n(!1);return}n(!0),ge()}be(_,k=>{k&&(x.value=new Date),s(k)},{immediate:!0});function B(k){var R,$;const U=k?(window.innerWidth-ym)/window.innerWidth:1,Z=k?-16:0;q.value&&window.clearTimeout(q.value),Xn((R=F.value)==null?void 0:R.$el,{transition:`transform ${un.DURATION}s cubic-bezier(${un.EASE.join(",")})`,transform:`scale(${U}) translate3d(0, ${Z}px, 0)`}),!k&&($=F.value)!=null&&$.$el&&(q.value=window.setTimeout(()=>{var re,M;const j=_m((re=F.value)==null?void 0:re.$el,m.value);Xn((M=F.value)==null?void 0:M.$el,{transition:"none",transform:In(m.value)?`translate3d(0, ${j}px, 0)`:`translate3d(${j}px, 0, 0)`})},500))}function Y(k){var R;if(k<0)return;const $=In(m.value)?window.innerHeight:window.innerWidth,U=($-ym)/$,Z=U+k*(1-U),re=-16+k*ym;Xn((R=F.value)==null?void 0:R.$el,{transform:In(m.value)?`scale(${Z}) translate3d(0, ${re}px, 0)`:`scale(${Z}) translate3d(${re}px, 0, 0)`,transition:"none"})}function L(k){var R;const $=In(m.value)?window.innerHeight:window.innerWidth,U=k?($-ym)/$:1,Z=k?-16:0;k&&Xn((R=F.value)==null?void 0:R.$el,{transition:`transform ${un.DURATION}s cubic-bezier(${un.EASE.join(",")})`,transform:In(m.value)?`scale(${U}) translate3d(0, ${Z}px, 0)`:`scale(${U}) translate3d(${Z}px, 0, 0)`})}return{open:o,isOpen:_,modal:l,keyboardIsOpen:J,hasBeenOpened:y,drawerRef:F,drawerHeightRef:Q,overlayRef:E,handleRef:N,isDragging:w,dragStartTime:T,isAllowedToDrag:P,snapPoints:W,activeSnapPoint:h,hasSnapPoints:ee,pointerStart:X,dismissible:i,snapPointsOffset:je,direction:m,shouldFade:Pe,fadeFromIndex:p,shouldScaleBackground:c,setBackgroundColorOnScale:u,onPress:ie,onDrag:ae,onRelease:D,closeDrawer:I,onNestedDrag:Y,onNestedRelease:L,onNestedOpenChange:B,emitClose:r,emitDrag:t,emitRelease:n,emitOpenChange:s,nested:a,handleOnly:v,noBodyStyles:g}}const x3=oe({__name:"DrawerRoot",props:{activeSnapPoint:{default:void 0},closeThreshold:{default:Gpe},shouldScaleBackground:{type:Boolean,default:void 0},setBackgroundColorOnScale:{type:Boolean,default:!0},scrollLockTimeout:{default:Ype},fixed:{type:Boolean,default:void 0},dismissible:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},nested:{type:Boolean,default:!1},direction:{default:"bottom"},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean,default:!1},preventScrollRestoration:{type:Boolean},snapPoints:{default:void 0},fadeFromIndex:{default:void 0}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{expose:t,emit:n}){const r=e,s=n;lc();const o=A(()=>r.fadeFromIndex??(r.snapPoints&&r.snapPoints.length-1)),i=jR(r,"open",s,{defaultValue:r.defaultOpen,passive:r.open===void 0}),a=jR(r,"activeSnapPoint",s,{passive:r.activeSnapPoint===void 0}),l={emitDrag:p=>s("drag",p),emitRelease:p=>s("release",p),emitClose:()=>s("close"),emitOpenChange:p=>{s("update:open",p),setTimeout(()=>{s("animationEnd",p)},un.DURATION*1e3)}},{closeDrawer:c,hasBeenOpened:u,modal:d,isOpen:f}=zpe(Jpe({...l,...Gr(r),activeSnapPoint:a,fadeFromIndex:o,open:i}));function h(p){if(i.value!==void 0){l.emitOpenChange(p);return}f.value=p,p?u.value=!0:c()}return t({open:f}),(p,m)=>(V(),te(C(Vhe),{open:C(f),modal:C(d),"onUpdate:open":h},{default:ne(()=>[le(p.$slots,"default",{open:C(f)})]),_:3},8,["open","modal"]))}}),eme=oe({__name:"DrawerRootNested",props:{activeSnapPoint:{},closeThreshold:{},shouldScaleBackground:{type:Boolean},setBackgroundColorOnScale:{type:Boolean},scrollLockTimeout:{},fixed:{type:Boolean},dismissible:{type:Boolean},modal:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},nested:{type:Boolean},direction:{},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean},preventScrollRestoration:{type:Boolean},snapPoints:{},fadeFromIndex:{}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const n=e,r=t,{onNestedDrag:s,onNestedOpenChange:o,onNestedRelease:i}=bp();function a(){o(!1)}function l(d){s(d)}function c(d){d&&o(d),r("update:open",d)}const u=V_(n,r);return(d,f)=>(V(),te(x3,we(C(u),{nested:"",onClose:a,onDrag:l,onRelease:C(i),"onUpdate:open":c}),{default:ne(()=>[le(d.$slots,"default")]),_:3},16,["onRelease"]))}}),tme=oe({__name:"DrawerOverlay",setup(e){const{overlayRef:t,hasSnapPoints:n,isOpen:r,shouldFade:s}=bp();return(o,i)=>(V(),te(C(hpe),{ref_key:"overlayRef",ref:t,"data-vaul-overlay":"","data-vaul-snap-points":C(r)&&C(n)?"true":"false","data-vaul-snap-points-overlay":C(r)&&C(s)?"true":"false"},null,8,["data-vaul-snap-points","data-vaul-snap-points-overlay"]))}}),nme=()=>()=>{};
1581function rme(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:s}=bp(),o=G(null),i=G(document.body.style.backgroundColor);function a(){return(window.innerWidth-k3)/window.innerWidth}Yr(l=>{if(t.value&&n.value){o.value&&clearTimeout(o.value);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;Kpe(r.value&&!s.value?Rb(document.body,{background:"black"}):nme,Rb(c,{transformOrigin:In(e.value)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${un.DURATION}s`,transitionTimingFunction:`cubic-bezier(${un.EASE.join(",")})`}));const u=Rb(c,{borderRadius:`${E3}px`,overflow:"hidden",...In(e.value)?{transform:`scale(${a()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${a()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});l(()=>{u(),o.value=window.setTimeout(()=>{i.value?document.body.style.background=i.value:document.body.style.removeProperty("background")},un.DURATION*1e3)})}},{flush:"pre"})}const sme=oe({__name:"DrawerContent",setup(e){const{open:t,isOpen:n,snapPointsOffset:r,hasSnapPoints:s,drawerRef:o,onPress:i,onDrag:a,onRelease:l,modal:c,emitOpenChange:u,dismissible:d,keyboardIsOpen:f,closeDrawer:h,direction:p,handleOnly:m}=bp();rme();const g=G(!1),v=A(()=>r.value&&r.value.length>0?`${r.value[0]}px`:"0");function b(w){if(!c.value||w.defaultPrevented){w.preventDefault();return}f.value&&(f.value=!1),d.value?u(!1):w.preventDefault()}function _(w){m.value||i(w)}function y(w){m.value||a(w)}return Yr(()=>{s.value&&window.requestAnimationFrame(()=>{g.value=!0})}),(w,S)=>(V(),te(C(lpe),{ref_key:"drawerRef",ref:o,"data-vaul-drawer":"","data-vaul-drawer-direction":C(p),"data-vaul-delayed-snap-points":g.value?"true":"false","data-vaul-snap-points":C(n)&&C(s)?"true":"false",style:io({"--snap-point-height":v.value}),onPointerdown:_,onPointermove:y,onPointerup:C(l),onPointerDownOutside:b,onOpenAutoFocus:S[0]||(S[0]=Il(()=>{},["prevent"])),onEscapeKeyDown:S[1]||(S[1]=E=>{C(d)||E.preventDefault()})},{default:ne(()=>[le(w.$slots,"default")]),_:3},8,["data-vaul-drawer-direction","data-vaul-delayed-snap-points","data-vaul-snap-points","style","onPointerup"]))}}),ome=["data-vaul-drawer-visible"],ime={"data-vaul-handle-hitarea":"","aria-hidden":"true"},ame=250,lme=120,cme=oe({__name:"DrawerHandle",props:{preventCycle:{type:Boolean,default:!1}},setup(e){const t=e,{onPress:n,onDrag:r,handleRef:s,handleOnly:o,isOpen:i,snapPoints:a,activeSnapPoint:l,isDragging:c,dismissible:u,closeDrawer:d}=bp(),f=G(null),h=G(!1);function p(){if(h.value){v();return}window.setTimeout(()=>{m()},lme)}function m(){if(c.value||t.preventCycle||h.value){v();return}if(v(),!a.value||a.value.length===0){u.value||d();return}const y=l.value===a.value[a.value.length-1];if(y&&u.value){d();return}const w=a.value.findIndex(E=>E===l.value);if(w===-1)return;const S=y?0:w+1;l.value=a.value[S]}function g(){f.value=window.setTimeout(()=>{h.value=!0},ame)}function v(){f.value&&window.clearTimeout(f.value),h.value=!1}function b(y){o.value&&n(y),g()}function _(y){o.value&&r(y)}return(y,w)=>(V(),Ae("div",{ref_key:"handleRef",ref:s,"data-vaul-drawer-visible":C(i)?"true":"false","data-vaul-handle":"","aria-hidden":"true",onClick:p,onPointercancel:v,onPointerdown:b,onPointermove:_},[Ft("span",ime,[le(y.$slots,"default")])],40,ome))}}),c1=Symbol("nuxt-ui.portal-target");function T3(e){const t=vt(c1,void 0),n=A(()=>typeof e.value=="boolean"||e.value===void 0?t?.value??"body":e.value),r=A(()=>typeof e.value=="boolean"?!e.value:!1);return Zn(c1,A(()=>n.value)),A(()=>({to:n.value,disabled:r.value}))}var qR=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Jr=e=>!e||typeof e!="object"||Object.keys(e).length===0,ume=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function C3(e,t){e.forEach(function(n){Array.isArray(n)?C3(n,t):t.push(n)})}function A3(e){let t=[];return C3(e,t),t}var R3=(...e)=>
1581A3(e).filter(Boolean),lk=(e,t)=>{let n={},r=Object.keys(e),s=Object.keys(t);for(let o of r)if(s.includes(o)){let i=e[o],a=t[o];Array.isArray(i)||Array.isArray(a)?n[o]=R3(a,i):typeof i=="object"&&typeof a=="object"?n[o]=lk(i,a):n[o]=a+" "+i}else n[o]=e[o];for(let o of s)r.includes(o)||(n[o]=t[o]);return n},WR=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const ck="-",dme=e=>{const t=hme(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(ck);return a[0]===""&&a.length!==1&&a.shift(),I3(a,t)||fme(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},I3=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?I3(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(ck);return t.validators.find(({validator:i})=>i(o))?.classGroupId},KR=/^\[(.+)\]$/,fme=e=>{if(KR.test(e)){const t=KR.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},hme=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const s in n)u1(n[s],r,s,t);return r},u1=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:GR(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(pme(s)){u1(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{u1(i,GR(t,o),n,r)})})},GR=(e,t)=>{let n=e;return t.split(ck).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},pme=e=>e.isThemeGetter,mme=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},d1="!",f1=":",gme=f1.length,vme=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const o=[];let i=0,a=0,l=0,c;for(let p=0;p<s.length;p++){let m=s[p];if(i===0&&a===0){if(m===f1){o.push(s.slice(l,p)),l=p+gme;continue}if(m==="/"){c=p;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const u=o.length===0?s:s.substring(l),d=_me(u),f=d!==u,h=c&&c>l?c-l:void 0;return{modifiers:o,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}};if(t){const s=t+f1,o=r;r=i=>i.startsWith(s)?o(i.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const s=r;r=o=>n({className:o,parseClassName:s})}return r},_me=e=>e.endsWith(d1)?e.substring(0,e.length-1):e.startsWith(d1)?e.substring(1):e,yme=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const s=[];let o=[];return r.forEach(i=>{i[0]==="["||t[i]?(s.push(...o.sort(),i),o=[]):o.push(i)}),s.push(...o.sort()),s}},bme=e=>({cache:mme(e.cacheSize),parseClassName:vme(e),sortModifiers:yme(e),...dme(e)}),wme=/\s+/,Sme=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:o}=t,i=[],a=e.trim().split(wme);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let g=!!m,v=r(g?p.substring(0,m):p);if(!v){if(!g){l=u+(l.length>0?" "+l:l);continue}if(v=r(p),!v){l=u+(l.length>0?" "+l:l);continue}g=!1}const b=o(f).join(":"),_=h?b+d1:b,y=_+v;if(i.includes(y))continue;i.push(y);const w=s(v,g);for(let S=0;S<w.length;++S){const E=w[S];i.push(_+E)}l=u+(l.length>0?" "+l:l)}return l};function Eme(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=O3(t))&&(r&&(r+=" "),r+=n);return r}const O3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=O3(e[r]))&&(n&&(n+=" "),n+=t);return n};function h1(e,...t){let n,r,s,o=i;function i(l){const c=t.reduce((u,d)=>d(u),e());return n=bme(c),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Sme(l,n);return s(l,u),u}return function(){return o(Eme.apply(null,arguments))}}const Kn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},P3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,L3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kme=/^\d+\/\d+$/,xme=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tme=/\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$/,Cme=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ame=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rme=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oc=e=>kme.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),gl=e=>!!e&&Number.isInteger(Number(e)),YR=e=>e.endsWith("%")&&ht(e.slice(0,-1)),la=e=>xme.test(e),Ime=()=>!0,Ome=e=>Tme.test(e)&&!Cme.test(e),uk=()=>!1,Pme=e=>Ame.test(e),Lme=e=>Rme.test(e),Nme=e=>!Ee(e)&&!ke(e),Dme=e=>kd(e,M3,uk),Ee=e=>P3.test(e),vl=e=>kd(e,$3,Ome),Ib=e=>kd(e,Wme,ht),Mme=e=>kd(e,N3,uk),$me=e=>kd(e,D3,Lme),Fme=e=>kd(e,uk,Pme),ke=e=>L3.test(e),bm=e=>xd(e,$3),Ume=e=>xd(e,Kme),Bme=e=>xd(e,N3),Vme=e=>xd(e,M3),jme=e=>xd(e,D3),Hme=e=>xd(e,Gme,!0),kd=(e,t,n)=>{const r=P3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xd=(e,t,n=!1)=>{const r=L3.exec(e);return r?r[1]?t(r[1]):n:!1},N3=e=>e==="position",zme=new Set(["image","url"]),D3=e=>zme.has(e),qme=new Set(["length","size","percentage"]),M3=e=>qme.has(e),$3=e=>e==="length",Wme=e=>e==="number",Kme=e=>e==="family-name",Gme=e=>e==="shadow",p1=()=>{const e=Kn("color"),t=Kn("font"),n=Kn("text"),r=Kn("font-weight"),s=Kn("tracking"),o=Kn("leading"),i=Kn("breakpoint"),a=Kn("container"),l=Kn("spacing"),c=Kn("radius"),u=Kn("shadow"),d=Kn("inset-shadow"),f=Kn("drop-shadow"),h=Kn("blur"),p=Kn("perspective"),m=Kn("aspect"),g=Kn("ease"),v=Kn("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],y=()=>["auto","hidden","clip","visible","scroll"],w=()=>["auto","contain","none"],S=()=>[ke,Ee,l],E=()=>[Oc,"full","auto",...S()],x=()=>[gl,"none","subgrid",ke,Ee],T=()=>["auto",{span:["full",gl,ke,Ee]},ke,Ee],O=()=>[gl,"auto",ke,Ee],z=()=>["auto","min","max","fr",ke,Ee],P=()=>["start","end","center","between","around","evenly","stretch","baseline"],q=()=>["start","end","center","stretch"],X=()=>["auto",...S()],J=()=>[Oc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],F=()=>[e,ke,Ee],Q=()=>[YR,vl],W=()=>["","none","full",c,ke,Ee],ee=()=>["",ht,bm,vl],N=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["","none",h,ke,Ee],je=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ke,Ee],Re=()=>["none",ht,ke,Ee],Pe=()=>["none",ht,ke,Ee],Ie=()=>[ht,ke,Ee],Le=()=>[Oc,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[la],breakpoint:[la],color:[Ime],container:[la],"drop-shadow":[la],ease:["in","out","in-out"],font:[Nme],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[la],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[la],shadow:[la],spacing:["px",ht],text:[la],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Oc,Ee,ke,m]}
vendor: 10,171 bytes, line 1581
1581],container:["container"],columns:[{columns:[ht,Ee,ke,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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"],sr:["sr-only","not-sr-only"],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:[..._(),Ee,ke]}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:w()}],"overscroll-x":[{"overscroll-x":w()}],"overscroll-y":[{"overscroll-y":w()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[gl,"auto",ke,Ee]}],basis:[{basis:[Oc,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,Oc,"auto","initial","none",Ee]}],grow:[{grow:["",ht,ke,Ee]}],shrink:[{shrink:["",ht,ke,Ee]}],order:[{order:[gl,"first","last","none",ke,Ee]}],"grid-cols":[{"grid-cols":x()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":x()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...q(),"baseline"]}],"align-self":[{self:["auto",...q(),"baseline"]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[a,"screen",...J()]}],"min-w":[{"min-w":[a,"screen","none",...J()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",n,bm,vl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ke,Ib]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",YR,Ee]}],"font-family":[{font:[Ume,Ee,t]}],"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-fractions"],tracking:[{tracking:[s,ke,Ee]}],"line-clamp":[{"line-clamp":[ht,"none",ke,Ib]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",ke,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",ke,vl]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[ht,"auto",ke,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,Ee]}],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",ke,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),Bme,Mme]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Vme,Dme]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gl,ke,Ee],radial:["",ke,Ee],conic:[gl,ke,Ee]},jme,$me]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...N(),"hidden","none"]}],"divide-style":[{divide:[...N(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...N(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,ke,Ee]}],"outline-w":[{outline:["",ht,bm,vl]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",u,Hme,Fme]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",ke,Ee,d]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[ht,vl]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":F()}],opacity:[{opacity:[ht,ke,Ee]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none",ke,Ee]}],blur:[{blur:pe()}],brightness:[{brightness:[ht,ke,Ee]}],contrast:[{contrast:[ht,ke,Ee]}],"drop-shadow":[{"drop-shadow":["","none",f,ke,Ee]}],grayscale:[{grayscale:["",ht,ke,Ee]}],"hue-rotate":[{"hue-rotate":[ht,ke,Ee]}],invert:[{invert:["",ht,ke,Ee]}],saturate:[{saturate:[ht,ke,Ee]}],sepia:[{sepia:["",ht,ke,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,Ee]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[ht,ke,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[ht,ke,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,ke,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,ke,Ee]}],"backdrop-invert":[{"backdrop-invert":["",ht,ke,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[ht,ke,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[ht,ke,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,ke,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",ke,Ee]}],ease:[{ease:["linear","initial",g,ke,Ee]}],delay:[{delay:[ht,ke,Ee]}],animate:[{animate:["none",v,ke,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,ke,Ee]}],"perspective-origin":[{"perspective-origin":je()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:Pe()}],"scale-x":[{"scale-x":Pe()}],"scale-y":[{"scale-y":Pe()}],"scale-z":[{"scale-z":Pe()}],"scale-3d":["scale-3d"],skew:[{skew:Ie()}],"skew-x":[{"skew-x":Ie()}],"skew-y":[{"skew-y":Ie()}],transform:[{transform:[ke,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:je()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le()}],"translate-x":[{"translate-x":Le()}],"translate-y":[{"translate-y":Le()}],"translate-z":[{"translate-z":Le()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}
vendor: 4,965 bytes, line 1581
1581],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ke,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",ke,Ee]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[ht,bm,vl,Ib]}],stroke:[{stroke:["none",...F()]}],"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-s","border-color-e","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Yme=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:s={},override:o={}})=>(hf(e,"cacheSize",t),hf(e,"prefix",n),hf(e,"experimentalParseClassName",r),wm(e.theme,o.theme),wm(e.classGroups,o.classGroups),wm(e.conflictingClassGroups,o.conflictingClassGroups),wm(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),hf(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Sm(e.theme,s.theme),Sm(e.classGroups,s.classGroups),Sm(e.conflictingClassGroups,s.conflictingClassGroups),Sm(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),F3(e,s,"orderSensitiveModifiers"),e),hf=(e,t,n
1581)=>{n!==void 0&&(e[t]=n)},wm=(e,t)=>{if(t)for(const n in t)hf(e,n,t[n])},Sm=(e,t)=>{if(t)for(const n in t)F3(e,t,n)},F3=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Xme=(e,...t)=>typeof e=="function"?h1(p1,e,...t):h1(()=>Yme(p1(),e),...t),Qme=h1(p1);var Zme={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},U3=e=>e||void 0,Kh=(...e)=>U3(A3(e).filter(Boolean).join(" ")),Ob=null,wi={},m1=!1,Xd=(...e)=>t=>t.twMerge?((!Ob||m1)&&(m1=!1,Ob=Jr(wi)?Qme:Xme({...wi,extend:{theme:wi.theme,classGroups:wi.classGroups,conflictingClassGroupModifiers:wi.conflictingClassGroupModifiers,conflictingClassGroups:wi.conflictingClassGroups,...wi.extend}})),U3(Ob(Kh(e)))):Kh(e),XR=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Kh(e[n],t[n]):e[n]=t[n];return e},Jme=(e,t)=>{let{extend:n=null,slots:r={},variants:s={},compoundVariants:o=[],compoundSlots:i=[],defaultVariants:a={}}=e,l={...Zme,...t},c=n!=null&&n.base?Kh(n.base,e?.base):e?.base,u=n!=null&&n.variants&&!Jr(n.variants)?lk(s,n.variants):s,d=n!=null&&n.defaultVariants&&!Jr(n.defaultVariants)?{...n.defaultVariants,...a}:a;!Jr(l.twMergeConfig)&&!ume(l.twMergeConfig,wi)&&(m1=!0,wi=l.twMergeConfig);let f=Jr(n?.slots),h=Jr(r)?{}:{base:Kh(e?.base,f&&n?.base),...r},p=f?h:XR({...n?.slots},Jr(h)?{base:e?.base}:h),m=Jr(n?.compoundVariants)?o:R3(n?.compoundVariants,o),g=b=>{if(Jr(u)&&Jr(r)&&f)return Xd(c,b?.class,b?.className)(l);if(m&&!Array.isArray(m))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof m}`);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof i}`);let _=(P,q,X=[],J)=>{let F=X;if(typeof q=="string")F=F.concat(WR(q).split(" ").map(Q=>`${P}:${Q}`));else if(Array.isArray(q))F=F.concat(q.reduce((Q,W)=>Q.concat(`${P}:${W}`),[]));else if(typeof q=="object"&&typeof J=="string"){for(let Q in q)if(q.hasOwnProperty(Q)&&Q===J){let W=q[Q];if(W&&typeof W=="string"){let ee=WR(W);F[J]?F[J]=F[J].concat(ee.split(" ").map(N=>`${P}:${N}`)):F[J]=ee.split(" ").map(N=>`${P}:${N}`)}else Array.isArray(W)&&W.length>0&&(F[J]=W.reduce((ee,N)=>ee.concat(`${P}:${N}`),[]))}}return F},y=(P,q=u,X=null,J=null)=>{var F;let Q=q[P];if(!Q||Jr(Q))return null;let W=(F=J?.[P])!=null?F:b?.[P];if(W===null)return null;let ee=qR(W),N=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,de=d?.[P],pe=[];if(typeof ee=="object"&&N)for(let[Pe,Ie]of Object.entries(ee)){let Le=Q[Ie];if(Pe==="initial"){de=Ie;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(Pe)||(pe=_(Pe,Le,pe,X))}let je=ee!=null&&typeof ee!="object"?ee:qR(de),Re=Q[je||"false"];return typeof pe=="object"&&typeof X=="string"&&pe[X]?XR(pe,Re):pe.length>0?(pe.push(Re),X==="base"?pe.join(" "):pe):Re},w=()=>u?Object.keys(u).map(P=>y(P,u)):null,S=(P,q)=>{if(!u||typeof u!="object")return null;let X=new Array;for(let J in u){let F=y(J,u,P,q),Q=P==="base"&&typeof F=="string"?F:F&&F[P];Q&&(X[X.length]=Q)}return X},E={};for(let P in b)b[P]!==void 0&&(E[P]=b[P]);let x=(P,q)=>{var X;let J=typeof b?.[P]=="object"?{[P]:(X=b[P])==null?void 0:X.initial}:{};return{...d,...E,...J,...q}},T=(P=[],q)=>{let X=[];for(let{class:J,className:F,...Q}of P){let W=!0;for(let[ee,N]of Object.entries(Q)){let de=x(ee,q)[ee];if(Array.isArray(N)){if(!N.includes(de)){W=!1;break}}else{let pe=je=>je==null||je===!1;if(pe(N)&&pe(de))continue;if(de!==N){W=!1;break}}}W&&(J&&X.push(J),F&&X.push(F))}return X},O=P=>{let q=T(m,P);if(!Array.isArray(q))return q;let X={};for(let J of q)if(typeof J=="string"&&(X.base=Xd(X.base,J)(l)),typeof J=="object")for(let[F,Q]of Object.entries(J))X[F]=Xd(X[F],Q)(l);return X},z=P=>{if(i.length<1)return null;let q={};for(let{slots:X=[],class:J,className:F,...Q}of i){if(!Jr(Q)){let W=!0;for(let ee of Object.keys(Q)){let N=x(ee,P)[ee];if(N===void 0||(Array.isArray(Q[ee])?!Q[ee].includes(N):Q[ee]!==N)){W=!1;break}}if(!W)continue}for(let W of X)q[W]=q[W]||[],q[W].push([J,F])}return q};if(!Jr(r)||!f){let P={};
1581if(typeof p=="object"&&!Jr(p))for(let q of Object.keys(p))P[q]=X=>{var J,F;return Xd(p[q],S(q,X),((J=O(X))!=null?J:[])[q],((F=z(X))!=null?F:[])[q],X?.class,X?.className)(l)};return P}return Xd(c,w(),T(m),b?.class,b?.className)(l)},v=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return g.variantKeys=v(),g.extend=n,g.base=c,g.slots=p,g.variants=u,g.defaultVariants=d,g.compoundSlots=i,g.compoundVariants=m,g},ege=e=>(t,n)=>Jme(t,n?lk(e,n):e);const tge=JN,Ir=ege(tge.ui?.tv),nge={slots:{overlay:"fixed inset-0 bg-elevated/75",content:"fixed bg-default ring ring-default flex focus:outline-none",handle:["shrink-0 !bg-accented","transition-opacity"],container:"w-full flex flex-col gap-4 p-4 overflow-y-auto",header:"",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",body:"flex-1",footer:"flex flex-col gap-1.5"},variants:{direction:{top:{content:"mb-24 flex-col-reverse",handle:"mb-4"},right:{content:"flex-row",handle:"!ml-4"},bottom:{content:"mt-24 flex-col",handle:"mt-4"},left:{content:"flex-row-reverse",handle:"!mr-4"}},inset:{true:{content:"rounded-lg after:hidden overflow-hidden"}}},compoundVariants:[{direction:["top","bottom"],class:{content:"h-auto max-h-[96%]",handle:"!w-12 !h-1.5 mx-auto"}},{direction:["right","left"],class:{content:"w-auto max-w-[calc(100%-2rem)]",handle:"!h-12 !w-1.5 mt-auto mb-auto"}},{direction:"top",inset:!0,class:{content:"inset-x-4 top-4"}},{direction:"top",inset:!1,class:{content:"inset-x-0 top-0 rounded-b-lg"}},{direction:"bottom",inset:!0,class:{content:"inset-x-4 bottom-4"}},{direction:"bottom",inset:!1,class:{content:"inset-x-0 bottom-0 rounded-t-lg"}},{direction:"left",inset:!0,class:{content:"inset-y-4 left-4"}},{direction:"left",inset:!1,class:{content:"inset-y-0 left-0 rounded-r-lg"}},{direction:"right",inset:!0,class:{content:"inset-y-4 right-4"}},{direction:"right",inset:!1,class:{content:"inset-y-0 right-0 rounded-l-lg"}}]},rge={__name:"UDrawer",props:{as:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},inset:{type:Boolean,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},handle:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},nested:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},activeSnapPoint:{type:[Number,String,null],required:!1},closeThreshold:{type:Number,required:!1},shouldScaleBackground:{type:Boolean,required:!1},setBackgroundColorOnScale:{type:Boolean,required:!1},scrollLockTimeout:{type:Number,required:!1},fixed:{type:Boolean,required:!1},dismissible:{type:Boolean,required:!1,default:!0},modal:{type:Boolean,required:!1,default:!0},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},direction:{type:String,required:!1,default:"bottom"},noBodyStyles:{type:Boolean,required:!1},handleOnly:{type:Boolean,required:!1},preventScrollRestoration:{type:Boolean,required:!1},snapPoints:{type:Array,required:!1}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const n=e,r=t,s=lc(),o=Lr(),i=V_(vc(n,"activeSnapPoint","closeThreshold","shouldScaleBackground","setBackgroundColorOnScale","scrollLockTimeout","fixed","dismissible","modal","open","defaultOpen","nested","direction","noBodyStyles","handleOnly","preventScrollRestoration","snapPoints"),r),a=T3(us(()=>n.portal)),l=us(()=>n.content),c={closeAutoFocus:d=>d.preventDefault()},u=A(()=>Ir({extend:Ir(nge),...o.ui?.drawer||{}})({direction:n.direction,inset:n.inset}));return(d,f)=>(V(),te(bo(e.nested?C(eme):C(x3)),Ar(Us(C(i))),{default:ne(()=>[s.default?(V(),te(C(ppe),{key:0,"as-child":"",class:Et(n.class)},{default:ne(()=>[le(d.$slots,"default")]),_:3},8,["class"])):Ce("",!0),H(C(mpe),Ar(Us(C(a))),{default:ne(()=>[e.overlay?(V(),te(C(tme),{key:0,class:Et(u.value.overlay({class:n.ui?.overlay}))},null,8,["class"])):Ce("",!0),H(C(sme),we({class:u.value.content({class:[!s.default&&n.class,n.ui?.content]})},l.value,oO(c)),{default:ne(()=>[e.handle?(V(),te(C(cme),{key:0,class:Et(u.value.handle({class:n.ui?.handle}))},null,8,["class"])):Ce("",!0),s.content&&(e.title||s.title||e.description||s.description)?(V(),te(C(rk),{key:1},{default:ne(()=>[e.title||s.title?(V(),te(C(MR),{key:0},{default:ne(()=>[le(d.$slots,"title",{},()=>
1581[gt(at(e.title),1)])]),_:3})):Ce("",!0),e.description||s.description?(V(),te(C(DR),{key:1},{default:ne(()=>[le(d.$slots,"description",{},()=>[gt(at(e.description),1)])]),_:3})):Ce("",!0)]),_:3})):Ce("",!0),le(d.$slots,"content",{},()=>[Ft("div",{class:Et(u.value.container({class:n.ui?.container}))},[s.header||e.title||s.title||e.description||s.description?(V(),Ae("div",{key:0,class:Et(u.value.header({class:n.ui?.header}))},[le(d.$slots,"header",{},()=>[e.title||s.title?(V(),te(C(MR),{key:0,class:Et(u.value.title({class:n.ui?.title}))},{default:ne(()=>[le(d.$slots,"title",{},()=>[gt(at(e.title),1)])]),_:3},8,["class"])):Ce("",!0),e.description||s.description?(V(),te(C(DR),{key:1,class:Et(u.value.description({class:n.ui?.description}))},{default:ne(()=>[le(d.$slots,"description",{},()=>[gt(at(e.description),1)])]),_:3},8,["class"])):Ce("",!0)])],2)):Ce("",!0),s.body?(V(),Ae("div",{key:1,class:Et(u.value.body({class:n.ui?.body}))},[le(d.$slots,"body")],2)):Ce("",!0),s.footer?(V(),Ae("div",{key:2,class:Et(u.value.footer({class:n.ui?.footer}))},[le(d.$slots,"footer")],2)):Ce("",!0)],2)])]),_:3},16,["class"])]),_:3},16)]),_:3},16))}},sge=Xv("drawer",()=>{const e=G(!1),t=vn({component:null,props:{}}),n=vn([]);return{isOpen:e,previousContent:n,currentContent:t,openDrawer:(i,a={},l=!1)=>{l&&t.value.component&&(n.value=[...n.value,{component:t.value.component,props:t.value.props}]),t.value={component:i,props:a},e.value=!0},closeDrawer:()=>{t.value={component:null,props:{}},n.value=[],e.value=!1},goBack:()=>{n.value.length&&(t.value=n.value.at(-1),n.value=n.value.slice(0,-1))}}});function oge(e,t){const n=`${e}Context`,r=Symbol(n);return[i=>{const a=vt(r,i);if(a||a===null)return a;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(Zn(r,i),i)]}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ige=e=>typeof e<"u";function dk(e){var t;const n=Je(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function age(e){return JSON.parse(JSON.stringify(e))}function lge(e,t,n,r={}){var s,o;const{clone:i=!1,passive:a=!1,eventName:l,deep:c=!1,defaultValue:u,shouldEmit:d}=r,f=At(),h=n||f?.emit||(f==null||(s=f.$emit)===null||s===void 0?void 0:s.bind(f))||(f==null||(o=f.proxy)===null||o===void 0||(o=o.$emit)===null||o===void 0?void 0:o.bind(f?.proxy));let p=l;p=p||`update:${t.toString()}`;const m=b=>i?typeof i=="function"?i(b):age(b):b,g=()=>ige(e[t])?m(e[t]):u,v=b=>{d?d(b)&&h(p,b):h(p,b)};if(a){const b=G(g());let _=!1;return be(()=>e[t],y=>{_||(_=!0,b.value=m(y),Lt(()=>_=!1))}),be(b,y=>{!_&&(y!==e[t]||c)&&v(y)},{deep:c}),b}else return A({get(){return g()},set(b){v(b)}})}function B3(e){return e?e.flatMap(t=>t.type===mt?B3(t.children):[t]):[]}function cge(e){return A(()=>Je(e)?!!dk(e)?.closest("form"):!0)}function fk(){const e=At(),t=G(),n=A(()=>r());ep(()=>{n.value!==r()&&MI(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:dk(t)}const s=Object.assign({},e.exposed),o={};for(const a in e.props)Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(s).length>0)for(const a in s)Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>s[a]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function i(a){if(t.value=a,!!a&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.hasOwn(a,"$el"))){const l=a.$.exposed,c=Object.assign({},o);for(const u in l)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>l[u]});e.exposed=c}}return{forwardRef:i,currentRef:t,currentElement:n}}const uge=oe({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const r=B3(n.default()),s=r.findIndex(l=>l.type!==pn);if(s===-1)return r;const o=r[s];delete o.props?.ref;const i=o.props?we(t,o.props):t,a=Bs({...o,props:{}},i);return r.length===1?a:(r[s]=a,r)}}}),dge=["area","img","input"],yc=oe({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&dge.includes(r)?()=>qe(r,t):r!=="template"?()=>qe(e.as,t,{default:n.default}):()=>qe(uge,t,{default:n.default})}});
1581function fge(){const e=G(),t=A(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:dk(e));return{primitiveElement:e,currentElement:t}}var hge=oe({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(V(),te(C(yc),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:ne(()=>[le(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),pge=hge,mge=oe({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:n,currentElement:r}=fge(),s=A(()=>t.checked??t.value);return be(s,(o,i)=>{if(!r.value)return;const a=r.value,l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(u&&o!==i){const d=new Event("input",{bubbles:!0}),f=new Event("change",{bubbles:!0});u.call(a,o),a.dispatchEvent(d),a.dispatchEvent(f)}}),(o,i)=>(V(),te(pge,we({ref_key:"primitiveElement",ref:n},{...t,...o.$attrs},{as:"input"}),null,16))}}),QR=mge,gge=oe({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,n=A(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=A(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((s,o)=>typeof s=="object"?Object.entries(s).map(([i,a])=>({name:`${t.name}[${o}][${i}]`,value:a})):{name:`${t.name}[${o}]`,value:s}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([s,o])=>({name:`${t.name}[${s}]`,value:o})):[]);return(s,o)=>(V(),Ae(mt,null,[Ce(" We render single input if it's required "),n.value?(V(),te(QR,we({key:s.name},{...t,...s.$attrs},{name:s.name,value:s.value}),null,16,["name","value"])):(V(!0),Ae(mt,{key:1},Vl(r.value,i=>(V(),te(QR,we({key:i.name},{ref_for:!0},{...t,...s.$attrs},{name:i.name,value:i.value}),null,16,["name","value"]))),128))],2112))}}),vge=gge,_ge=oe({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return fk(),(n,r)=>(V(),te(C(yc),we(t,{onMousedown:r[0]||(r[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:ne(()=>[le(n.$slots,"default")]),_:3},16))}}),yge=_ge;const[bge,wge]=oge("SwitchRoot");var Sge=oe({__name:"SwitchRoot",props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:"on"},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{disabled:s}=Gr(n),o=lge(n,"modelValue",r,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),i=A(()=>o.value===n.trueValue);function a(){s.value||(o.value=i.value?n.falseValue:n.trueValue)}const{forwardRef:l,currentElement:c}=fk(),u=cge(c),d=A(()=>n.id&&c.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return wge({checked:i,toggleCheck:a,disabled:s}),(f,h)=>(V(),te(C(yc),we(f.$attrs,{id:f.id,ref:C(l),role:"switch",type:f.as==="button"?"button":void 0,value:f.value,"aria-label":f.$attrs["aria-label"]||d.value,"aria-checked":i.value,"aria-required":f.required,"data-state":i.value?"checked":"unchecked","data-disabled":C(s)?"":void 0,"as-child":f.asChild,as:f.as,disabled:C(s),onClick:a,onKeydown:nP(Il(a,["prevent"]),["enter"])}),{default:ne(()=>[le(f.$slots,"default",{modelValue:C(o),checked:i.value}
1581),C(u)&&f.name?(V(),te(C(vge),{key:0,type:"checkbox",name:f.name,disabled:C(s),required:f.required,value:f.value,checked:i.value},null,8,["name","disabled","required","value","checked"])):Ce("v-if",!0)]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]))}}),Ege=Sge,kge=oe({__name:"SwitchThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=bge();return fk(),(n,r)=>(V(),te(C(yc),{"data-state":C(t).checked.value?"checked":"unchecked","data-disabled":C(t).disabled.value?"":void 0,"as-child":n.asChild,as:n.as},{default:ne(()=>[le(n.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"]))}}),xge=kge,hk={colors:{primary:{main:"#3C1053",ultraDark:"#461B5E",dark:"#3C1053",toku:"#51276A",light1:"#C59FDF",light2:"#E5D5F0",light3:"#EBE1F2",light4:"#F0ECF3",light5:"#F3F1F4"},gray:{main:"#373737",dark2:"#545454",dark3:"#707070",medium1:"#8D8D8D",medium2:"#A9A9A9",light1:"#C6C6C6",light2:"#E2E2E2",light3:"#F2F2F2",light4:"#FAFAFA"},error:"#B72E29",success:"#408645",warning:"#D06B35",inProcess:"#FFB038",inProcessDark:"#A37500",info:"#3070DD",background:"#F5F5F5"},typography:{color:"#373737",fontFamily:'"Manrope", sans-serif',buttonTextColor:"#FFFFFF",fontWeight:{bold:700,semibold:600,medium:500,regular:400}},button:{borderRadius:"0.5rem"},input:{borderRadius:"0.375rem"},spacing:"4px",breakpoints:{mobile:0,desktop:769},iconSet:"heroicons",parseMarkdown:!1};function Tge(e){return Number.isSafeInteger(e)&&e>=0}function Cge(e){return e!=null&&typeof e!="function"&&Tge(e.length)}function wv(e){return e==="__proto__"}function Age(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function V3(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function j3(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(j3).join(",");let t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Rge(e){if(Array.isArray(e))return e.map(V3);if(typeof e=="symbol")return[e];e=j3(e);let t=[],n=e.length;if(n===0)return t;let r=0,s="",o="",i=!1;for(e.charCodeAt(0)===46&&(t.push(""),r++);r<n;){let a=e[r];o?a==="\\"&&r+1<n?(r++,s+=e[r]):a===o?o="":s+=a:i?a==='"'||a==="'"?o=a:a==="]"?(i=!1,t.push(s),s=""):s+=a:a==="["?(i=!0,s&&=(t.push(s),"")):a==="."?s&&=(t.push(s),""):s+=a,r++}return s&&t.push(s),t}function H_(e,t,n){if(e==null)return n;switch(typeof t){case"string":{if(wv(t))return n;let r=e[t];return r===void 0?Age(t)?H_(e,Rge(t),n):n:r}case"number":case"symbol":{typeof t=="number"&&(t=V3(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Ige(e,t,n);if(t=Object.is(t?.valueOf(),-0)?"-0":String(t),wv(t))return n;let r=e[t];return r===void 0?n:r}}}function Ige(e,t,n){if(t.length===0)return n;let r=e;for(let s=0;s<t.length;s++){if(r==null||wv(t[s]))return n;r=r[t[s]]}return r===void 0?n:r}function pk(e){return e==null||typeof e!="object"&&typeof e!="function"}function H3(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function mk(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Oge="[object RegExp]",z3="[object String]",q3="[object Number]",W3="[object Boolean]",K3="[object Arguments]",Pge="[object Symbol]",Lge="[object Date]",Nge="[object Map]",Dge="[object Set]",Mge="[object Array]",$ge="[object ArrayBuffer]",Fge="[object Object]",Uge="[object DataView]",Bge="[object Uint8Array]",Vge="[object Uint8ClampedArray]",jge="[object Uint16Array]",Hge="[object Uint32Array]",zge="[object Int8Array]",qge="[object Int16Array]",Wge="[object Int32Array]",Kge="[object Float32Array]",Gge="[object Float64Array]",ZR=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof globalThis=="object"&&globalThis||(function(){return this})()||Function("return this")();function G3(e){return ZR.Buffer!==void 0&&ZR.Buffer.isBuffer(e)}function gk(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Yge(e,t){return Qc(e,void 0,e,new Map,t)}function Qc(e,t,n,r=new Map,s=void 0){let o=s?.(e,t,n,r);if(o!==void 0)return o;if(pk(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let i=Array(e.length);r.set(e,i);for(let a=0;a<e.length;
vendor: 5,159 bytes, line 1581
1581a++)i[a]=Qc(e[a],a,n,r,s);return Object.hasOwn(e,"index")&&(i.index=e.index),Object.hasOwn(e,"input")&&(i.input=e.input),i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){let i=new Map;r.set(e,i);for(let[a,l]of e)i.set(a,Qc(l,a,n,r,s));return i}if(e instanceof Set){let i=new Set;r.set(e,i);for(let a of e)i.add(Qc(a,void 0,n,r,s));return i}if(G3(e))return e.subarray();if(gk(e)){let i=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,i);for(let a=0;a<e.length;a++)i[a]=Qc(e[a],a,n,r,s);return i}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,i),_o(i,e,n,r,s),i}if(typeof File<"u"&&e instanceof File){let i=new File([e],e.name,{type:e.type});return r.set(e,i),_o(i,e,n,r,s),i}if(typeof Blob<"u"&&e instanceof Blob){let i=new Blob([e],{type:e.type});return r.set(e,i),_o(i,e,n,r,s),i}if(e instanceof Error){let i=structuredClone(e);return r.set(e,i),i.message=e.message,i.name=e.name,i.stack=e.stack,i.cause=e.cause,i.constructor=e.constructor,_o(i,e,n,r,s),i}if(e instanceof Boolean){let i=new Boolean(e.valueOf());return r.set(e,i),_o(i,e,n,r,s),i}if(e instanceof Number){let i=new Number(e.valueOf());return r.set(e,i),_o(i,e,n,r,s),i}if(e instanceof String){let i=new String(e.valueOf());return r.set(e,i),_o(i,e,n,r,s),i}if(typeof e=="object"&&Xge(e)){let i=Object.create(Object.getPrototypeOf(e));return r.set(e,i),_o(i,e,n,r,s),i}return e}function _o(e,t,n=e,r,s){let o=[...Object.keys(t),...H3(t)];for(let i=0;i<o.length;i++){let a=o[i],l=Object.getOwnPropertyDescriptor(e,a);(l==null||l.writable)&&(e[a]=Qc(t[a],a,n,r,s))}}function Xge(e){switch(mk(e)){case K3:case Mge:case $ge:case Uge:case W3:case Lge:case Kge:case Gge:case zge:case qge:case Wge:case Nge:case q3:case Fge:case Oge:case Dge:case z3:case Pge:case Bge:case Vge:case jge:case Hge:return!0;default:return!1}}function Qge(e,t){return Yge(e,(n,r,s,o)=>{if(typeof e=="object"){if(mk(e)==="[object Object]"&&typeof e.constructor!="function"){let i={};return o.set(e,i),_o(i,e,s,o),i}switch(Object.prototype.toString.call(e)){case q3:case z3:case W3:{let i=new e.constructor(e?.valueOf());return _o(i,e),i}case K3:{let i={};return _o(i,e),i.length=e.length,i[Symbol.iterator]=e[Symbol.iterator],i}default:return}}})}function JR(e){return Qge(e)}function eI(e){return typeof e=="object"&&!!e&&mk(e)==="[object Arguments]"}function g1(e){return typeof e=="object"&&!!e}function Zge(e){return g1(e)&&Cge(e)}function Jge(){}function Pb(e){return gk(e)}function Lb(e){if(typeof e!="object"||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let n=e[Symbol.toStringTag];return n==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${n}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function eve(e){if(pk(e))return e;if(Array.isArray(e)||gk(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let r=new n(e);return r.lastIndex=e.lastIndex,r}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let r;return r=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),r.stack=e.stack,Object.assign(r,e),r}return typeof File<"u"&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e=="object"?Object.assign(Object.create(t),e):e}function tve(e,...t){let n=t.slice(0,-1),r=t[t.length-1],s=e;for(let o=0;o<n.length;o++){let i=n[o];s=v1(s,i,r,new Map)}return s}function v1(e,t,n,r){if(pk(e)&&(e=Object(e)),typeof t!="object"||!t)return e;if(r.has(t))return eve(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let o=0;o<t.length;o++)t[o]=t[o]??void 0}let s=[...Object.keys(t),...H3(t)];for(let o=0;o<s.length;o++){let i=s[o];if(wv(i))continue;let a=t[i],l=e[i];if(eI(a)&&(a={...a}),eI(l)&&(l={...l}),G3(a)&&(a=JR(a)),Array.isArray(a))if(Array.isArray(l)){let u=[],d=Reflect.ownKeys(l);for(let f=0;f<d.length;f++){let h=d[f];u[h]=l[h]}l=u}else if(Zge(l)){let u=[];for(let d=0;d<l.length;d++)u[d]=l[d];l=u}else l=[];let c=n(l,a,i,e,t,r);c===void 0?Array.isArray(a)||g1(l)&&g1(a)&&(Lb(l)||Lb(a)||Pb(l)||Pb(a))?e[i]=v1(l,a,n,r):l==null&&Lb(a)?e[i]=v1({},a,n,r):l==null&&Pb(a)?e[i]=JR(a):(l===void 0||a!==void 0)&&(e[i]=a):e[i]=c}return e}function Cn(e,...t){return tve(e,...t,Jge)}function nve(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}var rve=new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+","gu");function sve(e){return Array.from(e.match(rve)??[])}function ove(e){let t=sve(e);
1581if(t.length===0)return"";let[n,...r]=t;return`${n.toLowerCase()}${r.map(s=>nve(s)).join("")}`}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ws.apply(null,arguments)}function ive(e){if(e===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gh(e,t){return Gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gh(e,t)}function ave(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gh(e,t)}function _1(e){return _1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_1(e)}function lve(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Y3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y3=function(){return!!e})()}function cve(e,t,n){if(Y3())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var s=new(e.bind.apply(e,r));return n&&Gh(s,n.prototype),s}function y1(e){var t=typeof Map=="function"?new Map:void 0;return y1=function(n){if(n===null||!lve(n))return n;if(typeof n!="function")throw TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return cve(n,arguments,_1(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Gh(r,n)},y1(e)}var Xo=(function(e){ave(t,e);function t(n){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this,ive(r)}return t})(y1(Error));function Nb(e){return Math.round(e*255)}function uve(e,t,n){return Nb(e)+","+Nb(t)+","+Nb(n)}function Sv(e,t,n,r){if(r===void 0&&(r=uve),t===0)return r(n,n,n);var s=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(s%2-1)),a=0,l=0,c=0;s>=0&&s<1?(a=o,l=i):s>=1&&s<2?(a=i,l=o):s>=2&&s<3?(l=o,c=i):s>=3&&s<4?(l=i,c=o):s>=4&&s<5?(a=i,c=o):s>=5&&s<6&&(a=o,c=i);var u=n-o/2,d=a+u,f=l+u,h=c+u;return r(d,f,h)}var tI={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
15810",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function dve(e){if(typeof e!="string")return e;var t=e.toLowerCase();return tI[t]?"#"+tI[t]:e}var fve=/^#[a-fA-F0-9]{6}$/,hve=/^#[a-fA-F0-9]{8}$/,pve=/^#[a-fA-F0-9]{3}$/,mve=/^#[a-fA-F0-9]{4}$/,Db=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,gve=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,vve=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_ve=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Zu(e){if(typeof e!="string")throw new Xo(3);var t=dve(e);if(t.match(fve))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(hve)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alph
vendor: 1,115 bytes, line 1581
1581a:n}}if(t.match(pve))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(mve)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var s=Db.exec(t);if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)};var o=gve.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=vve.exec(t);if(i){var a="rgb("+Sv(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=Db.exec(a);if(!l)throw new Xo(4,t,a);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=_ve.exec(t.substring(0,50));if(c){var u="rgb("+Sv(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Db.exec(u);if(!d)throw new Xo(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alph
1581a:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Xo(5)}function yve(e){var t=e.red/255,n=e.green/255,r=e.blue/255,s=Math.max(t,n,r),o=Math.min(t,n,r),i=(s+o)/2;if(s===o)return e.alpha===void 0?{hue:0,saturation:0,lightness:i}:{hue:0,saturation:0,lightness:i,alpha:e.alpha};var a,l=s-o,c=i>.5?l/(2-s-o):l/(s+o);switch(s){case t:a=(n-r)/l+(n<r?6:0);break;case n:a=(r-t)/l+2;break;default:a=(t-n)/l+4;break}return a*=60,e.alpha===void 0?{hue:a,saturation:c,lightness:i}:{hue:a,saturation:c,lightness:i,alpha:e.alpha}}function sl(e){return yve(Zu(e))}var b1=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function El(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Mb(e){return El(Math.round(e*255))}function bve(e,t,n){return b1("#"+Mb(e)+Mb(t)+Mb(n))}function X3(e,t,n){return Sv(e,t,n,bve)}function wve(e,t,n){if(typeof e=="object"&&t===void 0&&n===void 0)return X3(e.hue,e.saturation,e.lightness);throw new Xo(1)}function Sve(e,t,n,r){if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?X3(e.hue,e.saturation,e.lightness):"rgba("+Sv(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Xo(2)}function Q3(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return b1("#"+El(e)+El(t)+El(n));if(typeof e=="object"&&t===void 0&&n===void 0)return b1("#"+El(e.red)+El(e.green)+El(e.blue));throw new Xo(6)}function ls(e,t,n,r){if(typeof e=="string"&&typeof t=="number"){var s=Zu(e);return"rgba("+s.red+","+s.green+","+s.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?Q3(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Xo(7)}var Eve=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||e.alpha===void 0)},kve=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},xve=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||e.alpha===void 0)},Tve=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function ol(e){if(typeof e!="object")throw new Xo(8);if(kve(e))return ls(e);if(Eve(e))return Q3(e);if(Tve(e))return Sve(e);if(xve(e))return wve(e);throw new Xo(8)}function Z3(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Z3(e,t,r)}}function Hs(e){return Z3(e,e.length,[])}function Cve(e,t){if(t==="transparent")return t;var n=sl(t);return ol(ws({},n,{hue:n.hue+parseFloat(e)}))}Hs(Cve);function Td(e,t,n){return Math.max(e,Math.min(t,n))}function Ave(e,t){if(t==="transparent")return t;var n=sl(t);return ol(ws({},n,{lightness:Td(0,1,n.lightness-parseFloat(e))}))}var jf=Hs(Ave);function Rve(e,t){if(t==="transparent")return t;var n=sl(t);return ol(ws({},n,{saturation:Td(0,1,n.saturation-parseFloat(e))}))}Hs(Rve);function Ive(e,t){if(t==="transparent")return t;var n=sl(t);return ol(ws({},n,{lightness:Td(0,1,n.lightness+parseFloat(e))}))}var ss=Hs(Ive);function Ove(e,t,n){if(t==="transparent")return n;if(n==="transparent")return t;if(e===0)return n;var r=Zu(t),s=ws({},r,{alpha:typeof r.alpha=="number"?r.alpha:1}),o=Zu(n),i=ws({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),a=s.alpha-i.alpha,l=parseFloat(e)*2-1,c=((l*a===-1?l:l+a)/(1+l*a)+1)/2,u=1-c;return ls({red:Math.floor(s.red*c+i.red*u),green:Math.floor(s.green*c+i.green*u),blue:Math.floor(s.blue*c+i.blue*u),alpha:s.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))})}var J3=Hs(Ove);function Pve(e,t){if(t==="transparent")return t;var n=Zu(t);return ls(ws({},n,{alpha:Td(0,1,((typeof n.alpha=="number"?n.alpha:1)*100+parseFloat(e)*100)/100)}))}Hs(Pve);function Lve(e,t){if(t==="transparent")return t;var n=sl(t);return ol(ws({},n,{saturation:Td(0,1,n.saturation+parseFloat(e))}))}Hs(Lve);function Nve(e,t){return t==="transparent"?t:ol(ws({},sl(t),{hue:parseFloat(e)}))}Hs(Nve);function Dve(e,t){return t==="transparent"?t:ol(ws({},sl(t),{lightness:parseFloat(e)}))}Hs(Dve);function Mve(e,t){return t==="transparent"?t:ol(ws({},sl(t),{saturation:parseFloat(e)}))}Hs(Mve);function $ve(e,t){return t==="transparent"?t:J3(parseFloat(e),"rgb(0, 0, 0)",t)}Hs($ve);function Fve(e,t){return t==="transparent"?t:J3(parseFloat(e),"rgb(255, 255, 255)",t)}Hs(Fve);function Uve(e,t){if(t==="transparent")return t;var n=Zu(t);return ls(ws({},n,{alpha:Td(0,1,((typeof n.alpha=="number"?n.alpha:1)*100-parseFloat(e)*100).toFixed(2)/100)}))}var Bve=Hs(Uve);function Vve(e){return{1:ss(.35,e),2:ss(.3,e),3:ss(.25,e),4:ss(.2,e),5:ss(.15,e),6:ss(.12,e),7:ss(.08,e),8:ss(.04,e),9:e,10:jf(.08,e),11:jf(.1,e),12:jf(.15,e)}}var jve=[.03,.05,.1,.15,.2,.3,.4,.5,.6,.7,.8,.9];function eF(e={}){let t=Cn({},hk,e),n=e.colors?.brand?.base??e.colors?.primary?.main,r;if(n){let s=Vve(n);t.colors.primary.main=n,t.colors.primary.ultraDark=s[12],t.colors.primary.dark=n,t.colors.primary.toku=s[10],t.colors.primary.light1=s[7],t.colors.primary.light2=s[4],t.colors.primary.light3=s[3],t.colors.primary.light4=s[2],t.colors.primary.light5=s[1],r={};for(let[o,i]of Object.entries(s))r[`--color-primary-${o}`]=i,r[`--color-brand-${o}`]=i;for(let o=1;o<=12;o++){let i=Bve(1-jve[o-1],n);r[`--color-primary-alpha-${o}`]=i,r[`--color-brand-a-${o}`]=i}}return Object.assign(t,{cssVars:r})}var tF=Symbol("theme"),Nt=()=>{let e=vt(tF,void 0);return A(()=>e?.value??hk)},z_=(e,t)=>
1581{let n=e.__vccOpts||e;for(let[r,s]of t)n[r]=s;return n},nF=e=>ove(e),Hve=e=>{let t=Nt(),n=A(()=>nF(e.value)),r=A(()=>n.value==="primary"?t.value.colors.primary.toku:jf(.15,t.value.colors[n.value])),s=A(()=>n.value==="primary"?t.value.colors.primary.main:t.value.colors[n.value]),o=A(()=>n.value==="primary"?t.value.colors.primary.light1:ss(.15,t.value.colors[n.value])),i=A(()=>n.value==="primary"?t.value.colors.primary.light2:ss(.2,t.value.colors[n.value])),a=A(()=>n.value==="primary"?t.value.colors.primary.light3:ss(.25,t.value.colors[n.value]));return A(()=>bn({"&, *":{margin:0,padding:0,boxSizing:"border-box"},cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"0.625rem",fontWeight:t.value.typography.fontWeight.semibold,"&--primary":{borderRadius:t.value.button.borderRadius,backgroundColor:s.value,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",border:`1px solid ${s.value}`,color:t.value.typography.buttonTextColor,"&:hover:not(&:disabled)":{backgroundColor:r.value,color:t.value.typography.buttonTextColor},"&:focus":{border:`1px solid ${o.value}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${t.value.colors.gray.light2}`,backgroundColor:t.value.colors.gray.light2,color:t.value.colors.gray.medium2}},"&--secondary":{borderRadius:t.value.button.borderRadius,backgroundColor:"#FFFFFF",border:`1px solid ${s.value}`,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",color:s.value,"&:hover:not(&:disabled)":{backgroundColor:a.value},"&:focus":{border:`1px solid ${o.value}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${t.value.colors.gray.light2}`,backgroundColor:t.value.colors.gray.light2,color:t.value.colors.gray.medium2}},"&--tertiary":{background:"none",border:"none",margin:0,padding:0,color:s.value,"&:hover:not(&:disabled)":{color:i.value},"&:focus":{color:o.value},"&:disabled":{cursor:"not-allowed",color:t.value.colors.gray.medium1}},"&--large":{height:"3rem",padding:"0.5rem 1rem",lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{height:"2.5rem",padding:"0.5rem 1rem",lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{height:"2rem",padding:"0.5rem 0.75rem",lineHeight:"1.25rem",fontSize:"0.875rem"},"&--full-width":{width:"100%"},"&--loading, &--loading:disabled, &--loading:hover:not(&:disabled), &--loading:focus":{color:"transparent",position:"relative"},"&__spinner":{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},"&--primary &__spinner":{color:"#fff"},"&--loading:disabled &__spinner":{color:t.value.colors.gray.medium1},"&--tertiary:disabled &__spinner":{color:t.value.colors.gray.medium1},"&--secondary &__spinner, &--tertiary &__spinner":{color:s.value}}))},zve={variant:"primary",size:"medium",type:"button",color:"primary"},w1=oe({name:"TButton",props:{variant:String,size:String,disabled:Boolean,leftIcon:String,rightIcon:String,type:String,fullWidth:Boolean,loading:Boolean,color:String},emits:["click"],setup(e,{attrs:t,slots:n,emit:r}){let s=A(()=>Cn({},zve,e,t)),o=Hve(A(()=>s.value.color)),i=Nt(),a=A(()=>[o.value,`${o.value}--${s.value.variant}`,`${o.value}--${s.value.size}`,{[`${o.value}--full-width`]:s.value.fullWidth,[`${o.value}--loading`]:s.value.loading}]),l=()=>{s.value.loading||r("click")};return()=>H("button",we({class:a.value,type:s.value.type,disabled:s.value.disabled,onClick:l},t),[s.value.leftIcon&&H(so,{icon:`${i.value.iconSet}:${s.value.leftIcon}`},null),n.default?.(),s.value.rightIcon&&H(so,{icon:`${i.value.iconSet}:${s.value.rightIcon}`},null),s.value.loading&&H(so,{class:`${o.value}__spinner`,icon:"svg-spinners:90-ring-with-bg"},null)])}}),qve={color:"#000",size:"medium",variant:"outline"},Js=oe({name:"TIcon",props:{icon:{type:String,required:!0},color:String,size:String,variant:String},setup(e,{attrs:t}){let n=A(()=>Cn({},qve,e,t)),r=Nt(),s=A(()=>H_(r.value.colors,n.value.color)||n.value.color),o=A(()=>`${r.value.iconSet}:${n.value.icon}${n.value.variant==="solid"?"-solid":""}`),i={miniature:"6px","extra-small":"10px",small:"16px",medium:"19px",large:"24px","extra-large":"28px",huge:"44px"},a=A(()=>i[n.value.size]);return()=>H(so,we({icon:o.value,color:s.value,height:a.value,width:a.value},t),null)}}),Wve=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,boxSizing:"border-box"},borderRadius:"0.25rem",padding:"0.125rem 0.5rem",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",position:"relative","&--large":{maxWidth:"9.5rem",width:"100%"},"&--medium":{maxWidth:"8rem",width:"100%"},"&--small":{maxWidth:"6.813rem",width:"100%",padding:"0rem 0.5rem"}
1581,"&--miniature":{width:"1rem",height:"1rem"},"&__text":{fontWeight:e.value.typography.fontWeight.semibold,fontSize:"1rem"},"&__text--large":{fontSize:"0.75rem",lineHeight:"1.125rem"},"&__text--medium":{fontSize:"0.75rem",lineHeight:"1.125rem"},"&__text--small":{fontSize:"0.625rem",lineHeight:"1rem"},"&__status-indicator":{width:"0.625rem",height:"0.625rem",position:"absolute",borderRadius:"0.125rem"},"&--default":{color:e.value.colors.gray.medium1,background:e.value.colors.gray.light3},"&--default > &__text":{color:e.value.colors.gray.medium1},"&--default > &__status-indicator":{background:e.value.colors.gray.medium1},"&--success":{color:e.value.colors.success,background:ls(e.value.colors.success,.1)},"&--success > &__text":{color:e.value.colors.success},"&--success > &__status-indicator":{background:e.value.colors.success},"&--in-process":{background:ls(e.value.colors.inProcess,.1)},"&--in-process > &__text":{color:e.value.colors.inProcessDark},"&--in-process > &__status-indicator":{background:e.value.colors.inProcessDark},"&--pending":{background:ls(e.value.colors.info,.1)},"&--pending > &__text":{color:e.value.colors.info},"&--pending > &__status-indicator":{background:e.value.colors.info},"&--toku":{background:ls(e.value.colors.primary.light4,1)},"&--toku > &__text":{color:e.value.colors.primary.main},"&--toku > &__status-indicator":{background:e.value.colors.primary.main},"&--error":{color:e.value.colors.error,background:ls(e.value.colors.error,.1)},"&--error > &__text":{color:e.value.colors.error},"&--error > &__status-indicator":{background:e.value.colors.error}}))},Kve={size:"medium",variant:"default"},Gve=oe({name:"TTag",props:{size:String,variant:String},setup(e,{slots:t}){let n=A(()=>Cn({},Kve,e)),r=Wve(),s=A(()=>[r.value,`${r.value}--${n.value.variant}`,`${r.value}--${n.value.size}`]);return()=>H("div",{class:s.value},[n.value.size==="miniature"?H("div",{"data-testid":"t-tag-status-indicator",class:`${r.value}__status-indicator`},null):H("p",{"data-testid":"t-tag-text",class:`${r.value}__text ${r.value}__text--${n.value.size}`},[t.default?.()])])}}),Yve=["data-borderless","disabled"],Xve=["data-media"],Qve={class:"t-card-button__text"},Zve={class:"t-card-button__title"},Jve={key:0,class:"t-card-button__subtitle"},e_e={key:1,class:"t-card-button__tag"},t_e={class:"t-card-button__trailing"},Vwe=z_(oe({name:"TCardButton",__name:"TCardButton",props:{title:{},subtitle:{},tag:{},tagVariant:{default:"default"},borderless:{type:Boolean},disabled:{type:Boolean}},setup(e){return(t,n)=>(V(),Ae("button",{type:"button",class:"t-card-button","data-borderless":e.borderless||void 0,disabled:e.disabled},[t.$slots.icon||t.$slots.image?(V(),Ae("div",{key:0,class:"t-card-button__media","data-media":t.$slots.icon?"icon":"image"},[t.$slots.icon?le(t.$slots,"icon",{key:0},void 0,!0):le(t.$slots,"image",{key:1},void 0,!0)],8,Xve)):Ce("",!0),Ft("div",Qve,[le(t.$slots,"title",{},()=>[Ft("p",Zve,at(e.title),1)],!0),e.subtitle?(V(),Ae("p",Jve,at(e.subtitle),1)):Ce("",!0)]),e.tag||t.$slots.tag?(V(),Ae("span",e_e,[le(t.$slots,"tag",{},()=>[H(C(Gve),{size:"small",variant:e.tagVariant},{default:ne(()=>[gt(at(e.tag),1)]),_:1},8,["variant"])],!0)])):Ce("",!0),Ft("span",t_e,[le(t.$slots,"trailing",{},()=>[H(C(Js),{icon:"chevron-right",size:"small",color:"currentColor"})],!0)])],8,Yve))}}),[["__scopeId","data-v-b2bdf7ca"]]),n_e=()=>{let e=Nt(),t=e.value.colors.gray.light1,n=(r,s)=>{switch(s){case"large":return encodeURIComponent(`<svg width="10" height="9.5" viewBox="0 0 10 9.5" fill="none" xmlns="http://www.w3.org/2000/svg"> 1582 <path d="M0.833344 3.79167L3.75001 6.70834L9.16668 1.29167" stroke="${r}" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/> 1583 </svg>`);case"small":return encodeURIComponent(`<svg width="10" height="8.25" viewBox="0 0 10 8.25" fill="none" xmlns="http://www.w3.org/2000/svg"> 1584 <path d="M1.6 2.82999L3.98 5.20999L8.4 0.789993" stroke="${r}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> 1585 </svg>`);default:return""}};return A(()=>bn({"&, *":{margin:0,padding:0,boxSizing:"border-box",color:e.value.typography.color,fontFamily:e.value.typography.fontFamily,fontWeight:"400",fontStyle:"normal",whiteSpace:"nowrap",cursor:"pointer"},"&__wrapper":{display:"inline-flex",justifyContent:"center",alignItems:"center",gap:"0.1875rem"},"&__input":{appearance:"none",WebkitAppearance:"none",font:"inherit",color:e.value.colors.primary.main,border:`1px solid ${e.value.colors.primary.main}`,borderRadius:"0.125rem",display:"grid",placeContent:"center",cursor:"pointer",transform:"translateY(-0.5px)","&:hover:enabled":{backgroundColor:e.value.colors.primary.light3},"&:focus":{border:`1px solid ${e.value.colors.primary.light1}`},"&::before":{display:"grid",placeContent:"center",borderRadius:"0.125rem",transform:"scale(0)",transition:"120ms transform ease-in-out",backgroundColor:"CanvasText"},"&:checked::before":{transform:"scale(1)"},"&:checked:disabled::before":{boxShadow:"none",backgroundColor:"transparent"},"&:disabled":{color:t,border:`1px solid ${t}`,cursor:"not-allowed"}},"&--disabled":{color:t,cursor:"not-allowed"},"&--large":{lineHeight:"1.375rem",fontSize:"1rem","&__input":{width:"1.125rem",height:"1.125rem","&::before":{boxShadow:`inset 0 0 0 1.125rem ${e.value.colors.primary.main}`,content:`url('data:image/svg+xml,${n("white","large")}')`,width:"1.125rem",height:"1.125rem"},"&:checked:disabled::before":{content:`url('data:image/svg+xml,${n(t,"large")}')`}}},"&--small":{lineHeight:"1.25rem",fontSize:"0.875rem","&__input":{width:"1rem",he
1585ight:"1rem","&::before":{boxShadow:`inset 0 0 0 1rem ${e.value.colors.primary.main}`,content:`url('data:image/svg+xml,${n("white","small")}')`,width:"1rem",height:"1rem"},"&:checked:disabled::before":{content:`url('data:image/svg+xml,${n(t,"small")}')`}}}}))},r_e=()=>`checkbox-${Math.random().toString(36).substring(2,9)}-${Date.now()}`,s_e={size:"large",value:!1},jwe=oe({name:"TCheckbox",props:{labelPosition:String,size:String,value:Boolean,modelValue:Boolean,disabled:Boolean,id:String},emits:["input","change","update:modelValue"],setup(e,{attrs:t,slots:n,emit:r}){let s=r_e(),o=A(()=>Cn({},s_e,e,t,{id:e.id??t.id??s})),i=n_e(),a=A(()=>[i.value,`${i.value}--${o.value.size}`]),l=A(()=>[i.value,`${i.value}--${o.value.size}`,{[`${i.value}--disabled`]:o.value.disabled}]),c=G(o.value.modelValue||o.value.value);be([()=>o.value.modelValue,()=>o.value.value],()=>{c.value=o.value.modelValue||o.value.value});let u=()=>{r("update:modelValue",!c.value),r("input",!c.value),r("change",!c.value),c.value=!c.value};return()=>H("div",{class:a.value.map(d=>`${d}__wrapper`)},[n.default?.()&&o.value.labelPosition==="left"&&H("label",{for:o.value.id,class:l.value},[n.default()]),H("input",we({id:o.value.id,type:"checkbox",class:a.value.map(d=>`${d}__input`),checked:c.value,disabled:o.value.disabled,onClick:u},t),null),n.default?.()&&o.value.labelPosition==="right"&&H("label",{for:o.value.id,class:l.value},[n.default()])])}}),o_e=e=>{let t=Nt();return A(()=>bn({"&, *":{margin:0,boxSizing:"border-box"},position:"relative",width:"fit-content","&__menu":{position:"absolute",display:"none",padding:"0.625rem",background:"#fff",boxShadow:"0px 6px 30px 0px rgba(0, 0, 0, 0.10)",borderBottomLeftRadius:"0.5rem",borderBottomRightRadius:"0.5rem",marginTop:"0.5rem",zIndex:20},"&--active &__menu":{display:"block"},"&--center &__menu":{borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem"},"&--top-center &__menu":{borderRadius:"0.5rem"},"&--top-left &__menu":{right:"100%",borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem",borderBottomRightRadius:"0"},"&--top-right &__menu":{left:"100%",borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem",borderBottomLeftRadius:"0"},"&--left &__menu":{right:"100%",borderTopLeftRadius:"0.5rem"},"&--right &__menu":{left:"100%",borderTopRightRadius:"0.5rem"},"&--middle-left &__menu":{left:"-100%"},"&--middle-right &__menu":{right:"unset"},"&--small &__menu":{width:"240px"},"&--large &__menu":{width:"340px"},"&--full-width &__menu":{width:"100%"},'[class*="--center"][class*="--small"]:not(&--full-width) &__menu':{left:"calc(-120px + 50%)"},'[class*="--center"][class*="--large"]:not(&--full-width) &__menu':{left:"calc(-170px + 50%)"},'[class*="--top"] &__menu':{top:`calc(-${e.value}px - 16px)`},'[class*="--top-center"][class*="--small"]:not(&--full-width) &__menu':{left:"calc(-120px + 50%)"},'[class*="--top-center"][class*="--large"]:not(&--full-width) &__menu':{left:"calc(-170px + 50%)"},"&__divider":{width:"100%",height:"1px",background:t.value.colors.gray.light3,marginBlock:"0.5rem"}}))},i_e=()=>A(()=>bn({position:"fixed",display:"none",padding:"0.625rem",background:"#fff",boxShadow:"0px 6px 30px 0px rgba(0, 0, 0, 0.10)",borderBottomLeftRadius:"0.5rem",borderBottomRightRadius:"0.5rem",zIndex:30,"&--open":{display:"block"},"&--small":{width:"240px"},"&--large":{width:"340px"},"&--center":{borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem"},"&--left":{borderTopLeftRadius:"0.5rem"},"&--right":{borderTopRightRadius:"0.5rem"},"&--top-center":{borderRadius:"0.5rem"},"&--top-left":{borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem",borderBottomRightRadius:"0"},"&--top-right":{borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem",borderBottomLeftRadius:"0"}})),rF=e=>{let t=[];return e?.forEach(n=>{n.type?.name==="TDropdownItem"?t.push(n):Array.isArray(n.children)&&t.push(...rF(n.children))}),t};function a_e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ai(e)}var l_e={size:"small",position:"center"},c_e=oe({name:"TDropdown",props:{open:Boolean,size:String,position:String,fullWidth:Boolean,attachToBody:Bo
1585olean},emits:["cancel"],setup(e,{slots:t,attrs:n,emit:r}){let s=A(()=>Cn({},l_e,e,n)),o=G(null),i=G(null),a=G(null),l=G({top:0,left:0}),c=()=>{if(!i.value||!a.value)return;let y=i.value.getBoundingClientRect(),w=y.bottom+8,S=y.left,E=w,x=S;switch(s.value.position){case"center":x=S-a.value.clientWidth/2+i.value.clientWidth/2;break;case"right":x=S+i.value.clientWidth;break;case"left":x=S-a.value.clientWidth;break;case"middle-left":x=S-a.value.clientWidth+i.value.clientWidth;break;case"middle-right":x=S;break;case"top-center":E=y.top-a.value.clientHeight-8,x=S-a.value.clientWidth/2+i.value.clientWidth/2;break;case"top-left":E=y.top-a.value.clientHeight-8,x=S-a.value.clientWidth;break;case"top-right":E=y.top-a.value.clientHeight-8,x=S+i.value.clientWidth;break}l.value={top:E,left:x}},u=i_e(),d=A(()=>[u.value,`${u.value}--${s.value.size}`,`${u.value}--${s.value.position}`,{[`${u.value}--open`]:s.value.open}]),f=A(()=>({top:`${l.value.top}px`,left:`${l.value.left}px`,width:s.value.fullWidth?`${i.value?.clientWidth}px`:void 0})),h=o_e(A(()=>a.value?.clientHeight??0)),p=A(()=>[h.value,`${h.value}--${s.value.size}`,`${h.value}--${s.value.position}`,{[`${h.value}--active`]:s.value.open,[`${h.value}--full-width`]:s.value.fullWidth}]),m=y=>{s.value.open&&o.value&&!o.value.contains(y.target)&&!y.target?.closest(`.${u.value}`)&&r("cancel")},g=y=>{y.key==="Escape"&&r("cancel")},v=y=>{if(s.value.attachToBody&&y.key==="Tab"){y.preventDefault();let w=a.value?.querySelector('[role="menuitem"]');w&&w.focus()}};s.value.attachToBody&&be([()=>s.value.open,()=>s.value.position,()=>s.value.size,i,a],()=>{c(),s.value.open&&a.value?i.value?.addEventListener("keydown",v):i.value?.removeEventListener("keydown",v)},{immediate:!0}),Ut(()=>{s.value.attachToBody&&(window.addEventListener("scroll",c),window.addEventListener("resize",c)),document.addEventListener("click",m),document.addEventListener("keydown",g)}),qn(()=>{s.value.attachToBody&&(window.removeEventListener("scroll",c),window.removeEventListener("resize",c)),document.removeEventListener("click",m),document.removeEventListener("keydown",g)});let b=A(()=>rF(t.default?.()||[])),_=()=>H("div",{ref:a,class:s.value.attachToBody?d.value:`${h.value}__menu`,style:s.value.attachToBody?f.value:void 0,role:"menu",tabindex:s.value.attachToBody?0:void 0},[b.value.map((y,w,S)=>H("div",{key:w},[y,w<S.length-1&&H("div",{class:`${h.value}__divider`},null)]))]);return()=>{let y;return H("div",{ref:o,class:p.value},[H("div",{ref:i},[t.trigger?.()]),s.value.open&&(s.value.attachToBody?H(Fv,{to:"body"},a_e(y=_())?y:{default:()=>[y]}):_())])}}}),u_e=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,boxSizing:"border-box"},"*":{padding:0},background:"#fff",padding:"0.25rem 0.5rem",cursor:"pointer",borderRadius:"0.25rem",fontFamily:e.value.typography.fontFamily,fontSize:"0.875rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.regular,lineHeight:"1.25rem",color:e.value.colors.gray.main,"&:not(&--disabled):hover":{background:e.value.colors.gray.light3},"&--disabled":{color:e.value.colors.gray.light2,cursor:"not-allowed"}}))},d_e=oe({name:"TDropdownItem",emits:["click"],props:{disabled:Boolean},setup(e,{slots:t,emit:n,attrs:r}){let s=A(()=>Cn({},e,r)),o=u_e(),i=A(()=>[o.value,{[`${o.value}--disabled`]:s.value.disabled}]),a=()=>{s.value.disabled||n("click")},l=c=>{c.key==="Enter"&&!s.value.disabled&&(n("click"),c.preventDefault())};return()=>H("div",{class:i.value,onClick:a,role:"menuitem",tabindex:0,onKeydown:l,"aria-disabled":s.value.disabled},[t.default?.()])}}),f_e=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,padding:0,boxSizing:"border-box",fontFamily:e.value.typography.fontFamily},"&__container":{gap:e.value.spacing,display:"flex",flexDirection:"column",width:"358px"},"&__label":{color:e.value.typography.color,display:"block",fontSize:"13px",fontStyle:"normal",fontWeight:600,lineHeight:"20px"},"&__input-wrapper":{position:"relative"},"&__input":{color:"#373737",display:"flex",width:"100%",background:"#FFF",border:`1px solid ${e.value.colors.gray.light2}`,borderRadius:e.value.input.borderRadius,padding:"6px 8px",gap:"8px",fontSize:"13px",fontStyle:"normal",fontWeight:400,lineHeight:"9px","&::placeholder":{color:e.value.colors.gray.medium2},"&:hover":{borderColor:e.value.colors.gray.medium2},"&:focus":{borderColor:e.value.colors.primary.light1},"&:focus-visible":{outline:"none"},"&:disabled":{background:e.value.colors.gray.light3,borderColor:e.value.colors.gray.light3},"&--left-icon":{paddingLeft:"32px"},"&--right-icon":{paddingRight:"32px"}},"&__icon":{position:"absolute",top:"50%",transform:"translateY(-50%)",fontSize:"12px","&--left":{left:"8px"},"&--right":{right:"8px"}},"&__helper-text":{fontSize:"12px",fontStyle:"normal",fontWeight:400,lineHeight:"18px",color:e.value.colors.gray.medium1},"&--error &__input, &error &__input:focus":{borderColor:e.value.colors.error},"&--error &__helper-text":{color:e.value.colors.error},"&--full-width":{width:"100%"},"&--multiline &__input":{height:"80px",overflow:"auto",resize:"none"},"&--multiline &__icon":{top:0,transform:"translateY(50%)"}}))},h_e={type:"text"},p_e=oe({name:"TTextInput",emits:["input","change","update:modelValue","focus","blur"],props:{error:Boolean,disabled:Boolean,leftIcon:String,rightIcon:String,label:String,placeholder:String,helperText:String,value:[Number,String,Date],modelValue:[Number,String,Date],fullWidth:Boolean,id:String,type:String,maxlength:[String,Number],min:[String,Number],max:[String,Number],step:[String,Number]},setup(e,{attrs:t,emit:n,slots:r,expose:s}){let o=A(()=>Cn({},h_e,e,t)),i=f_e(),a=Nt(),l=A({get:()=>o.value.modelValue===void 0?o.value.value:o.value.modelValue,set:h=>{n("update:modelValue",h),n("input",h),n("change",h)}}),c=h=>{l.value=h.target.value},u=h=>{n("focus",h)},d=h=>{n("blur",h)},f=G(null);return s({focus:()=>{f.value?.focus()},blur:()=>{f.value?.blur()}}),()=>H("div",{class:[i.value,`${i.value}__container`,{[`${i.value}--error`]:o.value.error,[`${i.value}--full-width`]:o.value.fullWidth,[`${i.value}--multiline`]:o.value.multiline}]},[r.label?.()||o.value.label&&H("label",{class:[`${i.value}__label`],for:o.value.id},[o.value.label]),H("div",{class:`${i.value}__input-wrapper`},[r.leftIcon?.()||o.value.leftIcon&&H(so,{icon:`${a.value.iconSet}:${o.value.leftIcon}`,class:[`${i.value}__icon`,`${i.value}__icon--left`]},null),H("input",we(t,{id:o.value.id,type:o.value.multiline?void 0:o.value.type,class:[`${i.value}__input`,{[`${i.value}__input--left-icon`]:r.leftIcon?.()||o.value.leftIcon,[`${i.value}__input--right-icon`]:r.rightIcon?.()||o.value.rightIcon}],placeholder:o.value.placeholder,value:l.value,onInput:c,onFocus:u,onBlur:d,disabled:o.value.disabled,maxlength:o.value.maxlength,min:o.value.min,max:o.value.max,ref:f,step:o.value.step}),null),r.rightIcon?.()||o.value.rightIcon&&H(so,{icon:`${a.value.iconSet}:${o.value.rightIcon}`,class:[`${i.value}__icon`,`${i.value}__icon--right`]},null)]),r.helperText?.()||o.value.helperText&&H("p",{class:`${i.value}__helper-text`},[o.value.helperText])])}}),nI=e=>e.toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),""),Hwe=oe({name:"TCombobox",emits:["input","select","update:modelValue"],props:{modelValue:String,options:{type:Array,required:!0},placeholder:{type:String,default:""},label:String,helperText:String,disabled:Boolean},setup(e,{emit:t,expose:n}){let r=G(e.modelValue??""),s=G(null),o=G(!1),i=G(null),a=G(null),l=A(()=>e.disabled),c=()=>{o.value=!0},u=()=>{o.value=!1},d=()=>{a.value?.blur()},f=()=>{s.value===null?r.value="":r.value=s.value.label};n({resetTextValue:f,resetSelectedOption:()=>{s.value=null}});let h=()=>{c()},p=y=>{r.value=y,t("input",y)},m=y=>{i.value&&o.value&&(i.value.contains(y.target)||(u(),f(),d()))},g=y=>{r.value=y.label,s.value=y,t("select",y.value),t("update:modelValue",y.label),u()},v=y=>{y.key==="Escape"&&(u(),f(),d())},b=A(()=>r.value===""?e.options:e.options.filter(y=>{let w=nI(y.label),S=nI(r.value);return w.includes(S)}));Ut(()=>{document.addEventListener("click",m),i.value?.addEventListener("keydown",v)}),qn(()=>{document.removeEventListener("click",m),i.value?.removeEventListener("keydown",v)});let _=()=>H(p_e,{ref:a,modelValue:r.value,label:e.label,helperText:e.helperText,placeholder:e.placeholder,onFocus:h,onChange:p,disabled:l.value},null);return be(()=>e.modelValue,()=>{r.value=e.modelValue??""}),()=>H("div",{ref:i,role:"combobox","aria-controls":"menu","aria-expanded":o.value},[H(c_e,{open:o.value,"full-width":!0},{trigger:()=>H(_,null,null),default:()=>b.value.map(y=>H(d_e,{onClick:()=>g(y)},{default:()=>[y.label]}))})])}}),m_e=()=>{let e=Nt();return A(()=>bn({"&, & > *":{margin:0,padding:0,boxSizing:"border-box"},opacity:0,borderRadius:"10px",overflow:"hidden",border:`1px solid ${e.value.colors.gray.light3}`,background:"#fff",boxShadow:"4px 4px 30px 0px rgba(0, 0, 0, 0.10)",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",transition:"opacity 0.3s ease-in-out","&--non-blocking":{zIndex:50},"&--small":{width:"22.5rem"},"&--medium":{width:"35rem"},"&--large":{width:"40rem"},"&--extra-large":{width:"56rem"},"&--active":{opacity:1},"&:focus":{outline:"none"},"&::backdrop":{background:"rgba(226, 226, 226, 0.80)",transition:"all 0.3s ease-in-out"},"> *":{width:"100%",paddingInline:"2.5rem"},"&__header":{paddingBlock:"1rem",background:"#fff"},"&__close-button":{cursor:"pointer",border:"none",background:"transparent"},"&--featured > &__header":{background:e.value.colors.gray.light3,display:"flex",justifyContent:"space-between",alignItems:"center"},"&__body":{paddingTop:"1.5rem",paddingBottom:"1.5rem",background:"#fff",overflow:"auto"},"&__footer":{paddingTop:"1rem",paddingBottom:"1.5rem",background:"#fff",display:"flex",justifyContent:"flex-end",gap:"1rem"},"&__backdrop":{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(226, 226, 226, 0.80)",zIndex:45}}))},g_e={size:"medium"},zwe=oe({name:"TModal",props:{open:Boolean,featured:Boolean,size:String,destroyOnClose:Boolean,nonBlocking:Boolean},emits:["close","cancel"],setup(e,{slots:t,attrs:n,emit:r,expose:s}){let o=A(()=>Cn({},g_e,e,n)),i=G(o.value.open),a=m_e(),l=A(()=>[a.value,`${a.value}--${o.value.size}`,{[`${a.value}--featured`]:o.value.featured,[`${a.value}--active`]:i.value,[`${a.value}--non-blocking`]:o.value.nonBlocking}]),c=G(null),u=()=>{i.value=!0,o.value.nonBlocking?c.value?.show():c.value?.showModal()},d=()=>{i.value=!1,c.value?.close()};be([()=>o.value.open,c],()=>{c.value&&o.value.open?u():d()},{immediate:!0});let f=v=>{o.value.open?v.preventDefault():i.value=!1,r("cancel")};Ut(()=>{c.value&&c.value.addEventListener("cancel",f)}),qn(()=>{c.value&&c.value.removeEventListener("cancel",f)});let h=()=>{o.value.open||d(),r("close")},p=v=>{v.target===c.value&&(o.value.open||d(),r("close"))};s({showModal:u,close:d});
1585let m=G(0);be(i,()=>{!i.value&&o.value.destroyOnClose&&(m.value+=1)});let g=()=>H("dialog",{ref:c,class:l.value,"aria-labelledby":"modal-header","aria-describedby":"modal-body","aria-modal":"true",onClick:p,key:m.value},[t.header&&H("div",{id:"modal-header",class:`${a.value}__header`},[t.header(),o.value.featured&&H("button",{class:`${a.value}__close-button`,onClick:h,"aria-label":"Close"},[H(Js,{icon:"x-mark"},null)])]),(t.body||t.default)&&H("div",{id:"modal-body",class:`${a.value}__body`},[(t.body??t.default)?.()]),t.footer&&H("div",{class:`${a.value}__footer`},[t.footer()])]);return o.value.nonBlocking?()=>H("div",null,[o.value.nonBlocking&&i.value&&H("div",{class:`${a.value}__backdrop`},null),H(g,null,null)]):()=>H(g,null,null)}}),v_e=e=>{let t=Nt();return A(()=>bn({margin:0,padding:0,boxSizing:"border-box",color:e,fontFamily:t.value.typography.fontFamily,"&--h1":{fontSize:"3.25rem",linehHeight:"3.75rem"},"&--h2":{fontSize:"3rem",lineHeight:"3.5rem"},"&--h3":{fontSize:"2.5rem",lineHeight:"3rem"},"&--h4":{fontSize:"2rem",lineHeight:"2.5rem"},"&--s1":{fontSize:"1.75rem",lineHeight:"2.25rem"},"&--s2":{fontSize:"1.5rem",lineHeight:"2rem"},"&--s3":{fontSize:"1.125rem",lineHeight:"1.625rem"},"&--s4":{fontSize:"1rem",lineHeight:"1.5rem"},"&--b0":{fontSize:"1.25rem",lineHeight:"1.625rem"},"&--b1":{fontSize:"1.125rem",lineHeight:"1.5rem"},"&--b2":{fontSize:"1rem",lineHeight:"1.375rem"},"&--b3":{fontSize:"0.875rem",lineHeight:"1.25rem"},"&--b4":{fontSize:"0.75rem",lineHeight:"1.125rem"},"&--b5":{fontSize:"0.625rem",lineHeight:"1rem"},"&--b6":{fontSize:"0.5rem",lineHeight:"0.875rem"},"&--bold":{fontWeight:t.value.typography.fontWeight.bold},"&--semibold":{fontWeight:t.value.typography.fontWeight.semibold},"&--medium":{fontWeight:t.value.typography.fontWeight.medium},"&--regular":{fontWeight:t.value.typography.fontWeight.regular},"&--normal":{fontStyle:"normal"},"&--italic":{fontStyle:"italic"}}))},__e={h1:"h1",h2:"h2",h3:"h3",h4:"h4",s1:"h5",s2:"h5",s3:"h6",s4:"h6",b0:"p",b1:"p",b2:"p",b3:"p",b4:"p",b5:"p",b6:"p"},y_e=["http:","https:","mailto:","tel:","ftp:"],b_e=e=>y_e.some(t=>e.trim().toLowerCase().startsWith(t)),w_e=e=>{let t=[{regex:/\*\*([\s\S]+?)\*\*/g,tag:"strong"},{regex:/~~([\s\S]+?)~~/g,tag:"s"},{regex:/\[([^\]]+)\]\(([^)]+)\)/g,tag:"a",isLink:!0}],n=[];for(let{regex:r,tag:s,isLink:o}of t)for(let i of e.matchAll(r))n.push({start:i.index??0,end:(i.index??0)+i[0].length,tag:s,content:i[1],url:o?i[2]?.trim():void 0});return n},S_e=e=>{let t=[...e].sort((s,o)=>s.start-o.start||o.end-s.end),n=[],r=0;for(let s of t)s.start>=r&&(n.push(s),r=s.end);return n},Su=e=>{if(!e)return[e];let t=w_e(e);if(t.length===0)return[e];let n=S_e(t),r=[],s=0;for(let o of n){o.start>s&&r.push(e.substring(s,o.start));let i=Su(o.content);o.tag==="a"?o.url&&b_e(o.url)?r.push(qe("a",{href:o.url,target:"_blank",rel:"noopener noreferrer"},i)):r.push(...i):r.push(qe(o.tag,i)),s=o.end}return s<e.length&&r.push(e.substring(s)),r.length>0?r:[e]},Ev=e=>typeof e=="object"&&!!e&&"type"in e&&e.type!==void 0,kv=e=>{if(e.type===Qo)return Su(typeof e.children=="string"?e.children:"");if(!e.children)return e;let t;if(Array.isArray(e.children))t=e.children.flatMap(n=>{if(typeof n=="string")return Su(n);if(Ev(n)){let r=kv(n);return Array.isArray(r)?r:[r]}return[]});else if(typeof e.children=="string")t=Su(e.children);else if(Ev(e.children)){let n=kv(e.children);t=Array.isArray(n)?n:[n]}else return e;return qe(e.type,{...e.props},t)},E_e=e=>{if(typeof e=="string")return Su(e);if(Array.isArray(e))return e.flatMap(t=>{if(typeof t=="string")return Su(t);if(Ev(t)){let n=kv(t);return Array.isArray(n)?n:[n]}return[t]});if(Ev(e)){let t=kv(e);return Array.isArray(t)?t:[t]}return[e]},k_e={fontStyle:"normal",fontWeight:"regular",variant:"b0",color:"#373737"},is=oe({name:"TTypography",props:{fontStyle:String,fontWeight:String,variant:String,as:String,color:String},setup(e,{attrs:t,slots:n}){let r=A(()=>Cn({},k_e,e,t)),s=Nt(),o=v_e(A(()=>H_(s.value.colors,r.value.color)||s.value.typography.color).value),i=A(()=>[o.value,`${o.value}--${r.value.variant}`,`${o.value}--${r.value.fontWeight}`,`${o.value}--${r.value.fontStyle}`]),a=A(()=>r.value.as||__e[r.value.variant]);return()=>{let l=n.default?.();if(!l)return qe(a.value,{class:i.value});if(!s.value.parseMarkdown)return qe(a.value,{class:i.value},l);let c=E_e(l);return qe(a.value,{class:i.value},c)}}}),sF=()=>{let e=new Set(["class","style"]),t=([l])=>e.has(l),n=([l])=>/^on[A-Z]/.test(l),r=W1(),s=A(()=>Object.entries(r).filter(([l])=>l!=="data-state")),o=A(()=>Object.fromEntries(s.value.filter(t))),i=A(()=>Object.fromEntries(s.value.filter(n))),a=A(()=>Object.fromEntries(s.value.filter(l=>!t(l)&&!n(l))));return{wrapperAttrs:o,controlAttrs:A(()=>Object.fromEntries(s.value.filter(l=>!t(l)))),staticAttrs:a,listenerAttrs:i}},x_e={key:0,class:"t-file-upload__label"},T_e=["for"],C_e={class:"t-file-upload__filename"},A_e=["aria-label","disabled"],R_e=["id","name","required","disabled","form","accept"],I_e={key:4,class:"t-file-upload__hints"},O_e={key:1},qwe=z_(oe({name:"TFileUpload",inheritAttrs:!1,__name:"TFileUpload",props:ku({label:{},ctaText:{default:"Subir archivo"},loadingText:{default:"Cargando archivo"},removeLabel:{default:"Quitar archivo"},formatsHint:{},maxSizeHint:{},accept:{},maxSizeBytes:{},loading:{type:Boolean},id:{},name:{},required:{type:Boolean},disabled:{type:Boolean},form:{},as:{default:"div"}},{modelValue:{default:null},modelModifiers:{}}),emits:ku(["error"],["update:modelValue"]),setup(e,{expose:t,emit:n}){let r=n,s=Hv(e,"modelValue"),o=G(null),i=Zh(),a=A(()=>e.id??i),{wrapperAttrs:l,staticAttrs:c,listenerAttrs:u}=sF(),d=A(()=>e.loading?"loading":s.value?"loaded":"empty"),f=A(()=>{if(!(!e.accept||e.accept.length===0))return e.accept.map(v=>`.${v}`).join(",")}),h=A(()=>d.value==="empty"&&(!!e.formatsHint||!!e.maxSizeHint)),p=()=>{let v=o.value;if(!v)return;let b=s.value;if(b!==(v.files?.[0]??null)){if(!b){v.value="";return}try{let _=new DataTransfer;_.items.add(b),v.files=_.files}catch{}}},m=()=>{let v=o.value;if(!v)return;let b=v.files?.[0];if(b){if(e.accept?.length){let _=b.name.toLowerCase();if(!e.accept.some(y=>_.endsWith(`.${y.toLowerCase()}`))){p(),r("error","bad-format");return}}if(e.maxSizeBytes!==void 0&&b.size>e.maxSizeBytes){p(),r("error","too-large");return}s.value=b}},g=()=>{e.disabled||(s.value=null)};return Ut(p),be(s,p),t({inputRef:o}),(v,b)=>(V(),te(C(yc),we(C(l),{as:e.as,class:"t-file-upload","data-state":d.value,"data-disabled":e.disabled||void 0}),{default:ne(()=>[e.label||v.$slots.label?(V(),Ae("div",x_e,[le(v.$slots,"label",{},()=>[H(C(is),{variant:"b3","font-weight":"semibold"},{default:ne(()=>[gt(at(e.label),1)]),_:1})],!0)])):Ce("",!0),d.value==="empty"?(V(),Ae("label",we({key:1},C(u),{class:"t-file-upload__box","data-state":"empty",for:a.value}
1585),[H(C(Js),{icon:"paper-clip",size:"small",color:"gray.main"}),H(C(is),{variant:"b3",class:"t-file-upload__cta-text"},{default:ne(()=>[le(v.$slots,"cta",{},()=>[gt(at(e.ctaText),1)],!0)]),_:3})],16,T_e)):d.value==="loading"?(V(),Ae("div",we({key:2},C(u),{class:"t-file-upload__box","data-state":"loading"}),[H(C(Js),{icon:"arrow-path",size:"small",color:"primary.main"}),H(C(is),{variant:"b3",class:"t-file-upload__cta-text",color:"primary.main"},{default:ne(()=>[le(v.$slots,"loading",{},()=>[gt(at(e.loadingText),1)],!0)]),_:3})],16)):(V(),Ae("div",we({key:3},C(u),{class:"t-file-upload__box","data-state":"loaded"}),[H(C(Js),{icon:"document",size:"small",color:"primary.main"}),Ft("div",C_e,[le(v.$slots,"file",{file:s.value},()=>[H(C(is),{variant:"b3",color:"primary.main",class:"t-file-upload__filename-text"},{default:ne(()=>[gt(at(s.value.name),1)]),_:1})],!0)]),Ft("button",{type:"button",class:"t-file-upload__remove","aria-label":e.removeLabel,disabled:e.disabled,onClick:g},[H(C(Js),{icon:"x-circle",color:"#FFFFFF",width:18,height:18})],8,A_e)],16)),Ft("input",we({id:a.value,ref_key:"inputRef",ref:o},C(c),{class:"t-file-upload__input",type:"file",title:"",name:e.name,required:e.required,disabled:e.disabled||e.loading,form:e.form,accept:f.value,onChange:m}),null,16,R_e),h.value?(V(),Ae("div",I_e,[e.formatsHint?(V(),te(C(is),{key:0,variant:"b4",color:"gray.medium1"},{default:ne(()=>[gt(at(e.formatsHint),1)]),_:1})):(V(),Ae("span",O_e)),e.maxSizeHint?(V(),te(C(is),{key:2,variant:"b4",color:"gray.medium1"},{default:ne(()=>[gt(at(e.maxSizeHint),1)]),_:1})):Ce("",!0)])):Ce("",!0)]),_:3},16,["as","data-state","data-disabled"]))}}),[["__scopeId","data-v-1352af96"]]),P_e=e=>{let t=Nt(),n=A(()=>nF(e.value)),r=A(()=>n.value==="primary"?t.value.colors.primary.toku:jf(.15,t.value.colors[n.value])),s=A(()=>n.value==="primary"?t.value.colors.primary.main:t.value.colors[n.value]),o=A(()=>n.value==="primary"?t.value.colors.primary.light1:ss(.15,t.value.colors[n.value])),i=A(()=>n.value==="primary"?t.value.colors.primary.light2:ss(.2,t.value.colors[n.value])),a=A(()=>n.value==="primary"?t.value.colors.primary.light3:ss(.25,t.value.colors[n.value]));return{baseClass:A(()=>bn({"&, *":{margin:0,padding:0,boxSizing:"border-box"},display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer","&--primary":{borderRadius:t.value.button.borderRadius,backgroundColor:s.value,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",border:`1px solid ${s.value}`,color:"#FFFFFF","&:hover:not(&:disabled)":{backgroundColor:r.value},"&:focus":{border:`1px solid ${o.value}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${t.value.colors.gray.light2}`,backgroundColor:t.value.colors.gray.light2,color:t.value.colors.gray.medium2}},"&--secondary":{borderRadius:t.value.button.borderRadius,backgroundColor:"#FFFFFF",border:`1px solid ${s.value}`,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",color:s.value,"&:hover:not(&:disabled)":{backgroundColor:a.value},"&:focus":{border:`1px solid ${o.value}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${t.value.colors.gray.light2}`,backgroundColor:t.value.colors.gray.light2,color:t.value.colors.gray.medium2}},"&--tertiary":{background:"none",border:"none",margin:0,padding:0,color:s.value,"&:hover:not(&:disabled)":{color:i.value},"&:focus":{color:o.value},"&:disabled":{cursor:"not-allowed",color:t.value.colors.gray.medium1}},"&--large":{height:"3rem",width:"3rem",lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{height:"2.5rem",width:"2.5rem",lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{height:"2rem",width:"2rem",lineHeight:"1.25rem",fontSize:"0.875rem"},"&--rounded":{borderRadius:"50%"}})),iconClass:A(()=>bn({margin:0,padding:0,"&--large":{height:"1.25rem"},"&--medium":{height:"1.25rem"},"&--small":{height:"1rem"}}))}},L_e={variant:"primary",size:"medium",icon:"academic-cap",type:"button",color:"primary"},N_e=oe({name:"TIconButton",props:{variant:String,size:String,disabled:Boolean,icon:String,type:String,rounded:Boolean,loading:Boolean,color:String},emits:["click"],setup(e,{attrs:t,emit:n}){let r=A(()=>Cn({},L_e,e,t)),{baseClass:s,iconClass:o}=P_e(A(()=>r.value.color)),i=Nt(),a=A(()=>[s.value,`${s.value}--${r.value.variant}`,`${s.value}--${r.value.size}`,{[`${s.value}--rounded`]:r.value.rounded}]),l=A(()=>[o.value,`${o.value}--${r.value.variant}`,`${o.value}--${r.value.size}`,{[`${s.value}--loading`]:r.value.loading}]),c=()=>{r.value.loading||n("click")};return()=>H("button",we({class:a.value,type:r.value.type,disabled:r.value.disabled,onClick:c},t),[r.value.loading?H(so,{class:`${s.value}__spinner`,icon:"svg-spinners:90-ring-with-bg"},null):H(so,{icon:`${i.value.iconSet}:${r.value.icon}`,class:l.value},null)])}}),D_e=()=>{let e=Nt();return A(()=>
1585bn({margin:0,padding:0,width:"fit-content",cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"0.625rem",color:e.value.colors.primary.main,"&:hover:not(&:disabled)":{color:e.value.colors.primary.toku},"&:focus":{color:e.value.colors.primary.light1},textDecoration:"underline",fontWeight:600,"&--large":{lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{lineHeight:"1.25rem",fontSize:"0.875rem"}}))},M_e={variant:"primary",size:"medium"},$_e=oe({name:"TButton",props:{variant:String,size:String,href:String,leftIcon:String,rightIcon:String},setup(e,{attrs:t,slots:n}){let r=A(()=>Cn({},M_e,e,t)),s=D_e(),o=Nt(),i=A(()=>[s.value,`${s.value}--${r.value.variant}`,`${s.value}--${r.value.size}`]);return()=>H("a",we({class:i.value,href:r.value.href},t),[r.value.leftIcon?H(so,{icon:`${o.value.iconSet}:${r.value.leftIcon}`},null):null,n.default?n.default():null,r.value.rightIcon?H(so,{icon:`${o.value.iconSet}:${r.value.rightIcon}`},null):null])}}),F_e=e=>{let t=A(()=>e.color),n=Nt();return A(()=>bn({margin:0,padding:0,width:"3.5rem",height:"3.5rem",boxSizing:"border-box",background:"transparent",borderRadius:"50%",border:`0.5rem solid ${n.value.colors.background}`,borderBottomColor:t.value??n.value.colors.primary.main,animation:"rotate 0.75s linear infinite","&--medium":{width:"4.5rem",height:"4.5rem"},"&--auto":{[`@media (min-width: ${n.value.breakpoints.desktop}px)`]:{width:"4.5rem",height:"4.5rem"}},"@keyframes rotate":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}}))},U_e={size:"auto",color:"#3C1053"},Wwe=oe({name:"TSpinner",props:{size:String,color:String},setup(e,{attrs:t}){let n=A(()=>Cn({},U_e,e,t)),r=Nt(),s=F_e({color:A(()=>H_(r.value.colors,n.value.color)||n.value.color).value}),o=A(()=>[s.value,`${s.value}--${n.value.size}`]);return()=>H("div",{class:o.value},null)}}),B_e={key:0,class:"t-loading-dots__text"},V_e={key:0,class:"t-loading-dots__message"},j_e=["data-pending","aria-hidden"],Kwe=z_(oe({name:"TLoadingDots",__name:"TLoadingDots",props:{message:{},hint:{},hintDelay:{type:[Number,Boolean],default:5e3},as:{default:"div"}},setup(e){let t=lc(),n=G(!1),r,s=()=>{clearTimeout(r),r=void 0},o=l=>{r=setTimeout(()=>{n.value=!0},l)};qn(s),be(()=>e.hintDelay,l=>{s(),n.value=!1,l!==!1&&o(l)},{immediate:!0});let i=A(()=>!!(e.hint||t.hint)&&e.hintDelay!==!1),a=A(()=>!!(e.message||t.message));return(l,c)=>(V(),te(C(yc),{as:e.as,class:"t-loading-dots",role:"status","aria-live":"polite"},{default:ne(()=>[c[0]||=Ft("span",{class:"t-loading-dots__dots","aria-hidden":"true"},[Ft("span",{class:"t-loading-dots__dot"}),Ft("span",{class:"t-loading-dots__dot"}),Ft("span",{class:"t-loading-dots__dot"})],-1),a.value||i.value?(V(),Ae("span",B_e,[a.value?(V(),Ae("span",V_e,[le(l.$slots,"message",{},()=>[gt(at(e.message),1)],!0)])):Ce("",!0),i.value?(V(),Ae("span",{key:n.value?"shown":"pending",class:"t-loading-dots__hint","data-pending":!n.value||void 0,"aria-hidden":!n.value||void 0},[le(l.$slots,"hint",{},()=>[gt(at(e.hint),1)],!0)],8,j_e)):Ce("",!0)])):Ce("",!0)]),_:3},8,["as"]))}}),[["__scopeId","data-v-9bc5da3b"]]),H_e=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,padding:0,boxSizing:"border-box"},display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.375rem",width:"fit-content","&__radio":{appearance:"none",MozAppearance:"none",WebkitAppearance:"none",width:"18px",height:"18px",borderRadius:"50%",border:`1px solid ${e.value.colors.primary.main}`,position:"relative",cursor:"pointer"},"&:not(&--checked) &__radio:hover":{borderColor:e.value.colors.primary.light1},"&--checked &__radio::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"10px",height:"10px",background:e.value.colors.primary.main,borderRadius:"50%"},"&--label-left &__radio":{order:1},"&__label":{fontFamily:e.value.typography.fontFamily,color:e.value.typography.color,fontSize:"1rem",fontWeight:e.value.typography.fontWeight.regular,lineHeight:"1.375rem"},"&--disabled &__radio":{cursor:"not-allowed"},"&--disabled &__radio, &--disabled:not(&--checked):hover &__radio":{borderColor:e.value.colors.gray.medium2},"&--disabled &__radio::after":{background:e.value.colors.gray.medium2},"&--disabled &__label":{color:e.value.colors.gray.medium2}}))},z_e={labelPosition:"right"},Gwe=oe({name:"TRadio",props:{id:String,label:String,value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},modelValue:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},disabled:Boolean,labelPosition:String},emits:["input","change","update:modelValue"],setup(e,{emit:t,attrs:n}){let r=A(()=>Cn({},z_e,e,n)),s=G(r.value.modelValue===r.value.value);be(()=>[r.value.modelValue,r.value.value],()=>{s.value=r.value.modelValue===r.value.value});let o=H_e(),i=A(()=>[o.value,`${o.value}--label-${r.value.labelPosition}`,{[`${o.value}--checked`]:s.value,[`${o.value}--disabled`]:r.value.disabled}]),a=()=>{t("update:modelValue",r.value.value),t("change",r.value.value),t("input",r.value.value),s.value=!0},l=()=>{r.value.disabled||a()},c=u=>{(u.key==="Enter"||u.key===" ")&&!r.value.disabled&&a()};return()=>H("div",{class:i.value},[H("input",{id:r.value.id,type:"radio",class:`${o.value}__radio`,onClick:l,onKeydown:c,disabled:r.value.disabled},null),r.value.label&&H("label",{class:`${o.value}__label`,for:r.value.id},[r.value.label])])}}),q_e={railTopInset:3,railBottomInset:8,minThumbHeight:6,thumbHe
1585ightFactor:.65};function W_e(e,t={}){let{railTopInset:n,railBottomInset:r,minThumbHeight:s,thumbHeightFactor:o,onDragStart:i,onDragEnd:a}={...q_e,...t},l=G(0),c=G(0),u=G(!1),d=G(0),f=G(0),h=A(()=>l.value>0);function p(){let b=e.value;if(!b)return;let{scrollTop:_,scrollHeight:y,clientHeight:w}=b;if(y<=w){l.value=0,c.value=0;return}let S=Math.max(w-n-r,0),E=w/y*S,x=Math.max(E*o,s),T=Math.max(S-x,0),O=y-w,z=O>0?_/O:0;l.value=x,c.value=n+T*z}function m(b){if(!u.value||!e.value)return;let _=e.value,{scrollHeight:y,clientHeight:w}=_,S=Math.max(y-w,0);if(S===0)return;let E=Math.max(w-n-r,0),x=Math.max(E-l.value,0);if(x===0)return;let T=b.clientY-d.value,O=S/x;_.scrollTop=Math.min(Math.max(f.value+T*O,0),S),p()}function g(){u.value&&(u.value=!1,window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",g),a?.())}function v(b){!e.value||!h.value||(b.preventDefault(),b.stopPropagation(),i?.(),u.value=!0,d.value=b.clientY,f.value=e.value.scrollTop,window.addEventListener("mousemove",m),window.addEventListener("mouseup",g))}return qn(()=>{window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",g)}),{thumbHeight:l,thumbOffset:c,isScrollable:h,isDragging:u,update:p,onThumbMouseDown:v}}var K_e=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,padding:0,boxSizing:"border-box",color:"#373737",fontFamily:e.value.typography.fontFamily},"&__container":{gap:e.value.spacing,display:"flex",flexDirection:"column",width:"358px"},"&__label":{display:"block",fontSize:"0.875rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.semibold,lineHeight:"1.25rem"},"&__wrapper":{position:"relative"},"&__dropdown":{position:"relative"},"&__select":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",background:"#fff",border:`1px solid ${e.value.colors.gray.light2}`,borderRadius:e.value.input.borderRadius,padding:"0.25rem 0.5rem",gap:"0.5rem",height:"32px",fontSize:"0.8125rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.regular,lineHeight:"1.375rem",MozAppearance:"none",WebkitAppearance:"none",appearance:"none",backgroundImage:`url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path fill-rule='evenodd' d='M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z' clip-rule='evenodd' stroke='black' stroke-width='1'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 0.7rem top 50%",backgroundSize:"0.65rem auto","&:hover":{borderColor:e.value.colors.gray.medium2},"&:focus":{borderColor:e.value.colors.primary.light1},"&:focus-visible":{outline:"none"},"&:disabled":{backgroundColor:e.value.colors.gray.light3,borderColor:e.value.colors.gray.light3,cursor:"not-allowed"},"&--placeholder":{color:e.value.colors.gray.medium2},"&--open":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},"&--left-icon":{paddingLeft:"2rem"}},"&__selected-value":{overflow:"hidden",whiteSpace:"nowrap",maxWidth:"100%"},"&__menu-wrapper":{position:"absolute",top:"100%",left:0,width:"100%",border:`1px solid ${e.value.colors.gray.light2}`,borderTopRightRadius:"4px",borderTopLeftRadius:"4px",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",backgroundColor:"#fff",boxShadow:"0 6px 20px rgba(0, 0, 0, 0.08)",overflow:"hidden",zIndex:1e3},"&__menu":{margin:0,padding:"0.125rem 0.75rem 0.125rem 0.375rem",listStyle:"none",maxHeight:"14.25rem",overflowY:"auto",scrollbarWidth:"none"},"&__menu-scrollbar":{position:"absolute",top:"0.1875rem",bottom:"0.5rem",right:"0.25rem",width:"4px",borderRadius:"999px",backgroundColor:e.value.colors.gray.light4,opacity:0,transition:"opacity 120ms ease",pointerEvents:"auto","&--visible":{opacity:1}},"&__menu-scrollbar-thumb":{width:"100%",borderRadius:"999px",backgroundColor:e.value.typography.color,transition:"transform 120ms ease",cursor:"grab"},"&__icon":{position:"absolute",top:"50%",transform:"translateY(-50%)",fontSize:"1rem",zIndex:1,pointerEvents:"none","&--left":{left:"0.5rem"}},"&__helper-text":{fontSize:"0.75rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.regular,lineHeight:"1.125rem",color:e.value.colors.gray.medium1},"&--error &__select, &--error &__select:focus":{borderColor:e.value.colors.error},"&--error &__helper-text":{color:e.value.colors.error},"&--full-width":{width:"100%"}}))},S1=e=>typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(t=>S1(t)).join("").trim():e&&typeof e=="object"&&"children"in e?S1(e.children):"",oF=(e,t=[])=>(e?.forEach(n=>
1585{n.type==="option"?t.push(n):Array.isArray(n.children)&&oF(n.children,t)}),t),G_e=e=>oF(e).map(t=>({value:t.props?.value,disabled:!!t.props?.disabled,label:S1(t.children)})),E1=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;let n=Object.getPrototypeOf(e);if(n!==Object.prototype||Object.getPrototypeOf(t)!==n)return!1;let r=Object.keys(e),s=Object.keys(t);return r.length===s.length?r.every(o=>e[o]===t[o]):!1},Y_e=(e,t)=>{let n=e.findIndex(s=>E1(s.value,t)&&!s.disabled);if(n>=0)return n;let r=e.findIndex(s=>!s.disabled);return r>=0?r:-1},X_e=e=>{if(typeof e.leftIcon=="string")return e.leftIcon;let t=e["left-icon"];return typeof t=="string"?t:""},Q_e=(e,t)=>e?e.includes(":")?e:`${t}:${e}`:"",Z_e=()=>{let e=Nt();return A(()=>bn({"&, *":{boxSizing:"border-box"},listStyle:"none",padding:"0.5rem 0.625rem",fontFamily:e.value.typography.fontFamily,fontSize:"0.875rem",fontWeight:"400",lineHeight:"1.25rem",color:e.value.colors.gray.main,cursor:"pointer",transition:"background-color 120ms ease, color 120ms ease","&--with-separator":{borderBottom:`1px solid ${e.value.colors.gray.light3}`},"&--highlighted":{backgroundColor:e.value.colors.gray.light3,borderRadius:"4px",boxShadow:"inset 0 3px #fff, inset 0 -3px #fff"},"&--selected":{backgroundColor:e.value.colors.primary.light5,borderRadius:"4px",boxShadow:"inset 0 3px #fff, inset 0 -3px #fff",color:e.value.colors.primary.main,fontWeight:e.value.typography.fontWeight.semibold},"&--disabled":{color:e.value.colors.gray.medium2,cursor:"not-allowed",pointerEvents:"none"}}))},J_e=oe({name:"TSelectOption",emits:["select","hover"],props:{label:String,selected:Boolean,highlighted:Boolean,disabled:Boolean,withSeparator:Boolean},setup(e,{slots:t,emit:n}){let r=Z_e(),s=A(()=>[r.value,{[`${r.value}--selected`]:e.selected,[`${r.value}--highlighted`]:e.highlighted,[`${r.value}--disabled`]:e.disabled,[`${r.value}--with-separator`]:e.withSeparator}]),o=()=>{e.disabled||n("hover")},i=a=>{a.preventDefault(),e.disabled||n("select")};return()=>H("li",{class:s.value,role:"option","aria-selected":!!e.selected,onMousedown:i,onMouseenter:o},[t.default?.()||e.label])}}),eye=36;function tye(e,t,n){let r=G(!1),s=G(-1),o=G(null),i=G(null),a=G(null),l=G(!1),c=G(!1),u=()=>{n.value||!e.value.length||(r.value=!0,s.value=Y_e(e.value,t.value))},d=()=>{r.value=!1,s.value=-1,l.value=!1,c.value=!1},f=p=>{let m=a.value;m&&m.scrollBy({top:p*eye,behavior:"smooth"})},h=p=>{p.disabled||(t.value=p.value,d())};return{menuOpen:r,highlightedIndex:s,wrapperRef:o,triggerRef:i,menuRef:a,menuHovered:l,isInteractingWithMenu:c,openMenu:u,closeMenu:d,selectOption:h,handleClickTrigger:()=>{r.value?d():u()},handleBlur:()=>{requestAnimationFrame(()=>{if(c.value)return;let p=document.activeElement;o.value?.contains(p)||d()})},handleMenuInteractionStart:()=>{c.value=!0},handleKeydown:p=>{if(!n.value){if(!r.value&&["ArrowDown","ArrowUp","Enter"," "].includes(p.key)){p.preventDefault(),u();return}if(r.value)if(p.key==="ArrowDown")p.preventDefault(),f(1);else if(p.key==="ArrowUp")p.preventDefault(),f(-1);else if(p.key==="Enter"){p.preventDefault();let m=e.value[s.value];m&&h(m)}else(p.key==="Escape"||p.key==="Tab")&&d()}},scrollMenuBy:f}}var Ywe=oe({name:"TSelect",emits:["input","change","update:modelValue","focus","blur"],props:{error:Boolean,disabled:Boolean,leftIcon:String,label:String,placeholder:String,helperText:String,value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},modelValue:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},fullWidth:Boolean,id:String},setup(e,{attrs:t,emit:n,slots:r,expose:s}){let o=A(()=>Cn({},e,t)),i=Nt(),a=G(null),l=K_e(),c=A(()=>[l.value,`${l.value}__container`,{[`${l.value}--error`]:o.value.error,[`${l.value}--full-width`]:o.value.fullWidth}]);be(()=>[o.value.modelValue,o.value.value],([_,y])=>{a.value=_===null?y:_},{immediate:!0});let u=A({get:()=>o.value.modelValue===null?o.value.value===null?a.value:o.value.value:o.value.modelValue,set:_=>{a.value=_,n("update:modelValue",_),n("input",_),n("change",_)}}),d=A(()=>G_e(r.default?.()??[])),f=A(()=>d.value.find(_=>E1(_.value,u.value))),h=A(()=>!!f.value),p=A(()=>f.value?f.value.label:o.value.placeholder?o.value.placeholder:""),m=A(()=>X_e(o.value)),g=A(()=>Q_e(m.value,i.value.iconSet)),v=tye(d,u,A(()=>!!o.value.disabled)),b=W_e(v.menuRef,{onDragStart:()=>{v.isInteractingWithMenu.value=!0},onDragEnd:()=>{requestAnimationFrame(()=>{v.isInteractingWithMenu.value=!1})}});return be(()=>[v.menuOpen.value,d.value.length],([_])=>{_&&requestAnimationFrame(()=>
1585b.update())}),s({focus:()=>v.triggerRef.value?.focus()}),()=>H("div",{class:c.value},[r.label?.()||o.value.label&&H("label",{class:`${l.value}__label`,for:o.value.id},[o.value.label]),H("div",{class:`${l.value}__wrapper`},[m.value&&H(so,{icon:g.value,class:[`${l.value}__icon`,`${l.value}__icon--left`]},null),H("div",{class:[`${l.value}__dropdown`,{[`${l.value}__dropdown--open`]:v.menuOpen.value}],ref:v.wrapperRef},[H("button",we({class:[`${l.value}__select`,{[`${l.value}__select--left-icon`]:m.value,[`${l.value}__select--placeholder`]:!h.value,[`${l.value}__select--open`]:v.menuOpen.value}],disabled:o.value.disabled,id:o.value.id,onClick:v.handleClickTrigger,onFocus:_=>n("focus",_),onBlur:_=>{v.handleBlur(),n("blur",_)},onKeydown:v.handleKeydown,ref:v.triggerRef,role:"combobox","aria-haspopup":"listbox","aria-expanded":v.menuOpen.value,type:"button"},t),[H("div",{class:`${l.value}__selected-value`},[p.value])]),v.menuOpen.value&&H("div",{class:`${l.value}__menu-wrapper`,onMousedown:v.handleMenuInteractionStart,onMouseup:()=>{b.isDragging.value||(v.isInteractingWithMenu.value=!1)},onMouseenter:()=>v.menuHovered.value=!0,onMouseleave:()=>{v.menuHovered.value=!1,b.isDragging.value||(v.isInteractingWithMenu.value=!1)}},[H("ul",{class:`${l.value}__menu`,role:"listbox",ref:v.menuRef,onScroll:b.update},[d.value.map((_,y)=>H(J_e,{key:`${String(_.value)}-${y}`,label:_.label,selected:E1(_.value,u.value),highlighted:y===v.highlightedIndex.value,disabled:_.disabled,withSeparator:y<d.value.length-1,onHover:()=>v.highlightedIndex.value=y,onSelect:()=>v.selectOption(_)},null))]),H("div",{class:[`${l.value}__menu-scrollbar`,{[`${l.value}__menu-scrollbar--visible`]:v.menuHovered.value&&b.isScrollable.value}],"aria-hidden":"true"},[H("div",{class:`${l.value}__menu-scrollbar-thumb`,onMousedown:b.onThumbMouseDown,style:{height:`${b.thumbHeight.value}px`,transform:`translateY(${b.thumbOffset.value}px)`}},null)])])])]),r.helperText?.()||o.value.helperText&&H("p",{class:`${l.value}__helper-text`},[o.value.helperText])])}}),nye=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,boxSizing:"border-box"},"&__menu_container":{gap:e.value.spacing,display:"flex",flexDirection:"column",width:"100%"},"&__container":{width:"358px"},"&--full-width":{width:"100%"},position:"relative",width:"fit-content","&__menu":{position:"absolute",display:"none",padding:"0.625rem",width:"100%",background:"#fff",boxShadow:"0px 6px 30px 0px rgba(0, 0, 0, 0.10)",borderBottomLeftRadius:"0.5rem",borderBottomRightRadius:"0.5rem",marginTop:"40px",zIndex:20},"&--active &__menu":{display:"block"},"&__divider":{width:"100%",height:"1px",background:e.value.colors.gray.light3,marginBlock:"0.5rem"},"&__label":{display:"block",fontSize:"0.875rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.semibold,lineHeight:"1.25rem"},"&__helper-text":{fontSize:"0.75rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.regular,lineHeight:"1.125rem",color:e.value.colors.gray.medium1,marginTop:"0.125rem"},"&__select":{display:"flex",width:"100%",background:"#fff",border:`1px solid ${e.value.colors.gray.light2}`,borderRadius:e.value.input.borderRadius,padding:"0.25rem 0.5rem",gap:"0.5rem",height:"32px",fontSize:"0.813rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.regular,lineHeight:"20px",MozAppearance:"none",WebkitAppearance:"none",appearance:"none",backgroundImage:`url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path fill-rule='evenodd' d='M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z' clip-rule='evenodd' stroke='black' stroke-width='1'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 0.7rem top 50%",backgroundSize:"0.65rem auto","&:hover":{borderColor:e.value.colors.gray.medium2},"&:focus":{borderColor:e.value.colors.primary.light1},"&:focus-visible":{outline:"none"},"&:disabled":{backgroundColor:e.value.colors.gray.light3,borderColor:e.value.colors.gray.light3,cursor:"not-allowed"}},"&--error &__select:not(:disabled), &--error &__select:focus":{borderColor:e.value.colors.error},"&--error + &__helper-text":{color:e.value.colors.error}}))},iF=e=>{let t=[];return e?.forEach(n=>
1585{n.type?.name==="TSelectDropdownItem"?t.push(n):Array.isArray(n.children)&&t.push(...iF(n.children))}),t},Xwe=oe({name:"TSelectDropdown",props:{open:Boolean,label:String,selectedValue:String,disabled:Boolean,helperText:String,placeholder:String,error:Boolean,fullWidth:Boolean},emits:["cancel","click"],setup(e,{slots:t,attrs:n,emit:r}){let s=A(()=>Cn({},e,n)),o=nye(),i=A(()=>[o.value,`${o.value}__menu_container`,{[`${o.value}--active`]:s.value.open,[`${o.value}--error`]:s.value.error}]),a=A(()=>[o.value,`${o.value}__container`,{[`${o.value}--full-width`]:s.value.fullWidth}]),l=G(null),c=h=>{s.value.open&&l.value&&!l.value.contains(h.target)&&r("cancel")},u=h=>{h.key==="Escape"&&r("cancel")};Ut(()=>{document.addEventListener("click",c),l.value?.addEventListener("keydown",u)}),qn(()=>{document.removeEventListener("click",c),l.value?.removeEventListener("keydown",u)});let d=A(()=>iF(t.default?.()||[])),f=()=>{r("click")};return()=>H("div",{class:a.value},[t.label?.()||s.value.label&&H("label",{class:`${o.value}__label`},[s.value.label]),H("div",{ref:l,role:"menu",class:i.value},[H("button",{class:`${o.value}__select`,onClick:f,disabled:s.value.disabled,type:"button"},[s.value.selectedValue,s.value.placeholder&&!s.value.selectedValue&&H("option",{value:"",disabled:!0,selected:!0,class:`${o.value}__placeholder`},[s.value.placeholder])]),H("div",{class:`${o.value}__menu`},[d.value.map((h,p,m)=>H("div",null,[h,p<m.length-1&&H("div",{class:`${o.value}__divider`},null)]))])]),t.helperText?.()||s.value.helperText&&H("p",{class:`${o.value}__helper-text`},[s.value.helperText])])}}),rye=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,boxSizing:"border-box"},"*":{padding:0},background:"#fff",padding:"0.25rem 0.5rem",cursor:"pointer",borderRadius:"0.25rem",fontFamily:e.value.typography.fontFamily,fontSize:"0.813rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.regular,lineHeight:"1rem",color:"#373737",marginRight:"2rem","&:hover":{background:e.value.colors.gray.light3},"&__label":{fontSize:"0.75rem",fontStyle:"normal",fontWeight:e.value.typography.fontWeight.regular,color:e.value.colors.info,display:"inline-block",float:"right"}}))},Qwe=oe({name:"TSelectDropdownItem",emits:["click"],props:{label:String},setup(e,{slots:t,emit:n,attrs:r}){let s=A(()=>Cn({},e,r)),o=rye(),i=()=>{n("click")},a=l=>{l.key==="Enter"&&!s.value.disabled&&(n("click"),l.preventDefault())};return()=>H("div",{class:o.value,onClick:i,role:"menuitem",onKeydown:a,tabindex:0},[t.default?.(),t.label?.()||s.value.label&&H("label",{class:`${o.value}__label`},[s.value.label])])}}),Zwe=z_(oe({name:"TSwitch",inheritAttrs:!1,__name:"TSwitch",props:ku({label:{},disabled:{type:Boolean},value:{type:Boolean},modelValue:{},trueValue:{},falseValue:{},labelPosition:{default:"right"},id:{},as:{default:"div"}},{modelValue:{},modelModifiers:{}}),emits:ku(["change","input"],["update:modelValue"]),setup(e,{emit:t}){let n=t,r=Hv(e,"modelValue"),s=A(()=>e.modelValue??e.value),o=Zh(),i=A(()=>e.id??o),{wrapperAttrs:a,controlAttrs:l}=sF(),c=u=>{r.value=u,n("change",u),n("input",u)};return(u,d)=>(V(),te(C(yc),we(C(a),{as:e.as,class:"t-switch","data-label-position":e.labelPosition,"data-disabled":e.disabled||void 0}),{default:ne(()=>[H(C(Ege),we({id:i.value},C(l),{"model-value":s.value,"true-value":e.trueValue,"false-value":e.falseValue,disabled:e.disabled,class:"t-switch-track","onUpdate:modelValue":c}),{default:ne(()=>[H(C(xge),{class:"t-switch-thumb"})]),_:1},16,["id","model-value","true-value","false-value","disabled"]),e.label||u.$slots.label?(V(),te(C(yge),{key:0,as:e.as==="label"?"span":"label",for:e.as==="label"?void 0:i.value,class:"t-switch-label"},{default:ne(()=>[le(u.$slots,"label",{label:e.label},()=>[gt(at(e.label),1)],!0)]),_:3},8,["as","for"])):Ce("",!0)]),_:3},16,["as","data-label-position","data-disabled"]))}}),[["__scopeId","data-v-607c870f"]]),sye=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,padding:0,boxSizing:"border-box",color:e.value.typography.color,fontFamily:e.value.typography.fontFamily},"&__ul":{display:"flex",listStyleType:"none",gap:"1.5rem"},"&__button":{backgroundColor:"transparent",border:"0",outline:"none",fontSize:"0.875rem",lineHeight:"1.25rem",textAlign:"center","&:hover":{cursor:"pointer",fontWeight:e.value.typography.fontWeight.semibold}},"&__not-selected":{"&:hover":{"&:after":{content:'""',float:"left",background:e.value.colors.primary.light1,width:"100%",height:"0.25rem",borderRadius:"0.5rem"}}},"&__selected":{fontWeight:e.value.typography.fontWeight.semibold,"&:after":{content:'""',float:"left",background:e.value.colors.primary.main,width:"100%",height:"0.25rem",borderRadius:"0.5rem"}}}))},Jwe=oe({name:"TTabBar",emits:["input","change","update:modelValue"],props:{labels:Array,value:String,modelValue:String},setup(e,{attrs:t,emit:n}){let r=A(()=>Cn({},e,t)),s=sye(),o=G(r.value.modelValue===void 0?r.value.value:r.value.modelValue);be([()=>r.value.modelValue,()=>r.value.value],()=>{o.value=r.value.modelValue===void 0?r.value.value:r.value.modelValue});let i=a=>{n("update:modelValue",a),n("input",a),n("change",a),o.value=a};return()=>H("nav",{class:[s.value]},[H("ul",{class:[`${s.value}__ul`,`${s.value}`],role:"tablist"},[r.value.labels?.map(a=>H("li",{role:"tab","aria-selected":o.value===a,key:a},[H("button",{class:[`${s.value}__button`,{[`${s.value}__selected`]:o.value===a,[`${s.value}__not-selected`]:o.value!==a}],onClick:()=>i(a)},[a])]))])])}}),oye=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,padding:0,boxSizing:"border-box",color:e.value.typography.color,fontFamily:e.value.typography.fontFamily},"&__container":{gap:e.value.spacing,display:"flex",flexDirection:"column",width:"358px"},"&__label":{display:"block",fontSize:"14px",fontStyle:"normal",fontWeight:600,lineHeight:"20px"},"&__textarea-wrapper":{position:"relative"},"&__textarea":{display:"flex",width:"100%",height:"80px",overflow:"auto",resize:"none",background:"#FFF",border:`1px solid ${e.value.colors.gray.light2}`,borderRadius:e.value.input.borderRadius,padding:"6px 8px",gap:"8px",fontSize:"13px",fontStyle:"normal",fontWeight:400,lineHeight:"22px","&::placeholder":{color:e.value.colors.gray.medium2},"&:hover":{borderColor:e.value.colors.gray.medium2},"&:focus":{borderColor:e.value.colors.primary.light1},"&:focus-visible":{outline:"none"},"&:disabled":{background:e.value.colors.gray.light3,borderColor:e.value.colors.gray.light3}},"&__textarea--auto-resize":{overflowY:"auto"},"&__helper-text":{fontSize:"12px",fontStyle:"normal",fontWeight:400,lineHeight:"18px",color:e.value.colors.gray.medium1},"&--error &__textarea, &error &__textarea:focus":{borderColor:e.value.colors.error},"&--error &__helper-text":{color:e.value.colors.error},"&--full-width":{width:"100%"}}))},iye=1,e1e=oe({name:"TTextArea",emits:["input","change","update:modelValue","focus","blur"],props:{id:String,value:String,modelValue:String,label:String,error:Boolean,disabled:Boolean,placeholder:String,helperText:String,fullWidth:Boolean,maxlength:Number,autoResize:Boolean,maxRows:{type:Number,default:void 0}},setup(e,{attrs:t,emit:n,slots:r,expose:s}){let o=A(()=>Cn({},e,t)),i=oye(),a=A({get:()=>o.value.modelValue===void 0?o.value.value:o.value.modelValue,set:h=>{n("update:modelValue",h),n("input",h),n("change",h)}}),l=()=>{let h=f.value;if(!h||!o.value.autoResize)return;h.style.height="auto";let p=getComputedStyle(h),m=Number.parseFloat(p.borderTopWidth),g=Number.parseFloat(p.borderBottomWidth),v=o.value.maxRows;if(v){let b=Number.parseFloat(p.lineHeight),_=Number.parseFloat(p.paddingTop),y=Number.parseFloat(p.paddingBottom),w=b*v+_+y+m+g;h.style.maxHeight=`${w}px`}h.style.height=`${h.scrollHeight+m+g}px`},c=h=>{a.value=h.target.value,l()},u=h=>{n("focus",h)},d=h=>{n("blur",h)},f=G(null);return s({focus:()=>{f.value?.focus()}}),be(()=>a.value,async()=>{o.value.autoResize&&(await Lt(),l())}),()=>H("div",{class:[i.value,`${i.value}__container`,{[`${i.value}--error`]:o.value.error,[`${i.value}--full-width`]:o.value.fullWidth,[`${i.value}--multiline`]:o.value.multiline}]},[r.label?.()||o.value.label&&H("label",{class:[`${i.value}__label`],for:o.value.id},[o.value.label]),H("div",{class:`${i.value}__textarea-wrapper`},[H("textarea",we(t,{id:o.value.id,class:[`${i.value}__textarea`,{[`${i.value}__textarea--auto-resize`]:o.value.autoResize}],style:o.value.autoResize?{height:"auto"}:void 0,rows:o.value.autoResize?iye:void 0,placeholder:o.value.placeholder,value:a.value,onInput:c,onFocus:u,onBlur:d,disabled:o.value.disabled,maxlength:o.value.maxlength,ref:f}),null)]),r.helperText?.()||o.value.helperText&&H("p",{class:`${i.value}__helper-text`},[o.value.helperText])])}}
1585),aye=oe({name:"TThemeProvider",inheritAttrs:!1,props:{theme:{type:Object,default:()=>({})}},setup(e,{slots:t,attrs:n}){let r=A(()=>eF(e.theme??{}));return Zn(tF,r),()=>{let{cssVars:s}=r.value;return qe("div",{...n,class:["toku-theme",n.class],style:s?[n.style,s]:n.style},t.default?.())}}});function lye(e,t){let n=r=>{let s=e();s&&!s.contains(r.target)&&t()};Ut(()=>{document.addEventListener("click",n)}),Oo(()=>{document.removeEventListener("click",n)})}var cye=e=>{let t=G(!1),n=null,r=()=>{t.value=!0,n&&clearTimeout(n)},s=()=>t.value=!1,o={hover:{onMouseenter:r,onMouseleave:()=>{n=setTimeout(s,.1*1e3)}},click:{onClick:()=>t.value?s():r()}},i=A(()=>o[e.value??"hover"]),a=G(null);return lye(()=>a.value,s),{isVisible:t,triggerHandler:i,wrapperRef:a}},uye=()=>{let e=Nt();return A(()=>bn({position:"relative",width:"fit-content","&, *":{padding:0,margin:0,boxSizing:"border-box"},"&__tooltip":{display:"none",position:"absolute",width:"fit-content",background:"#fff",boxShadow:"3px 4px 25px 0px #26323826",borderRadius:"1rem",padding:"0.75rem 1rem",whiteSpace:"nowrap",fontSize:"0.75rem",weight:e.value.typography.fontWeight.regular,lineHeight:"1.125rem","&:before":{content:'""',width:0,height:0,position:"absolute",borderStyle:"solid"}},"&--visible &__tooltip":{display:"block"},"&--top &__tooltip":{marginBottom:"1.5rem",left:"50%",bottom:"100%",transform:"translateX(-50%)",background:"#fff","&:before":{left:"50%",top:"99%",transform:"translateX(-50%)",borderWidth:"15px 7.5px 0px 7.5px",borderColor:"#fff transparent transparent transparent"}},"&--right &__tooltip":{marginLeft:"1.5rem",top:"50%",left:"100%",transform:"translateY(-50%)","&:before":{top:"50%",right:"99%",transform:"translateY(-50%)",borderWidth:"7.5px 15px 7.5px 0",borderColor:"transparent #fff transparent transparent"}},"&--bottom &__tooltip":{marginTop:"1.5rem",left:"50%",top:"100%",transform:"translateX(-50%)","&:before":{left:"50%",bottom:"99%",transform:"translateX(-50%)",borderWidth:"0 7.5px 15px 7.5px",borderColor:"transparent transparent #fff transparent"}},"&--left &__tooltip":{marginRight:"1.5rem",top:"50%",right:"100%",transform:"translateY(-50%)","&:before":{top:"50%",left:"99%",transform:"translateY(-50%)",borderWidth:"7.5px 0px 7.5px 15px",borderColor:"transparent transparent transparent #fff"}},"&--multilined &__tooltip":{whiteSpace:"normal",width:"max-content"},"&--small &__tooltip":{maxWidth:"25ch"},"&--medium &__tooltip":{maxWidth:"30ch"},"&--large &__tooltip":{maxWidth:"35ch"}}))},dye={position:"right",size:"medium",trigger:"hover"},t1e=oe({name:"TTooltip",props:{label:String,position:String,multilined:Boolean,size:String,trigger:String},setup(e,{slots:t,attrs:n}){let r=A(()=>Cn({},dye,e,n)),{isVisible:s,wrapperRef:o,triggerHandler:i}=cye(A(()=>r.value.trigger)),a=uye(),l=A(()=>[a.value,`${a.value}--${r.value.position}`,`${a.value}--${r.value.trigger}`,{[`${a.value}--visible`]:s.value,[`${a.value}--multilined`]:r.value.multilined,[`${a.value}--${r.value.size}`]:r.value.multilined}]);return()=>H("div",we({ref:o,class:l.value},i.value),[t.default?.(),H("div",{role:"tooltip",class:`${a.value}__tooltip`},[t.label?.()||r.value.label])])}}),fye=()=>{let e=Nt();return A(()=>bn({"&, *":{margin:0,boxSizing:"border-box",cursor:"default"},borderRadius:"0.625rem",padding:"0.5rem",borderWidth:"1px",borderStyle:"solid",width:"25rem",gap:"0.5rem",display:"flex",alignItems:"center",textAlign:"left","&--full-width":{width:"100%"},"&--default":{borderColor:e.value.colors.gray.medium1,color:e.value.colors.gray.medium1,background:e.value.colors.gray.light3},"&--default > &__text":{color:e.value.colors.gray.medium1},"&--success":{borderColor:e.value.colors.success,color:e.value.colors.success,background:ls(e.value.colors.success,.2)},"&--success > &__text":{color:e.value.colors.success},"&--in-process":{borderColor:e.value.colors.inProcess,color:e.value.colors.inProcess,background:ls(e.value.colors.inProcess,.2)},"&--in-process > &__text":{color:e.value.colors.inProcessDark},"&--warning":{borderColor:e.value.colors.warning,color:e.value.colors.warning,background:ls(e.value.colors.warning,.2)},"&--warning > &__text":{color:e.value.colors.warning},"&--error":{borderColor:e.value.colors.error,color:e.value.colors.error,background:ls(e.value.colors.error,.2)},"&--error > &__text":{color:e.value.colors.error},"&--info":{borderColor:e.value.colors.info,color:e.value.colors.info,background:ls(e.value.colors.info,.2)},"&--info > &__text":{color:e.value.colors.info},"&__icon":{minWidth:"1.5rem",width:"1.5rem",maxWidth:"1.5rem",aspectRatio:"1 / 1",height:"auto"},[`@media (max-width: ${e.value.breakpoints.desktop}px)`]:{alignItems:"flex-start","&__icon":{minWidth:"1rem",width:"1rem",maxWidth:"1rem"},"&__text":{fontWeight:"400",fontSize:"0.75rem",lineHeight:"1.125rem"}}}))},hye={variant:"default"},n1e=oe({name:"TWarning",props:{fullWidth:Boolean,icon:String,variant:String},setup(e,{slots:t}){let n=A(()=>Cn({},hye,e)),r=fye(),s=A(()=>[r.value,`${r.value}--${n.value.variant}`,{[`${r.value}--full-width`]:n.value.fullWidth}]),o={default:"gray.medium1",success:"success","in-process":"inProcessDark",warning:"warning",error:"error",info:"info"},i=A(()=>o[n.value.variant]);return()=>H("div",{class:s.value,role:"alert"},[n.value.icon&&H(Js,{icon:n.value.icon,class:`${r.value}__icon`,color:i.value},null)," ",t.content?.()?t.content?.():H(is,{variant:"b3",class:`${r.value}__text`},{default:()=>[t.default?.()]})])}});const rI=()=>
1585{if(typeof navigator>"u")return!1;const e=navigator.userAgentData;return typeof e?.mobile=="boolean"?!e.mobile:!/Android|iPhone|iPod|Mobile|Windows Phone/i.test(navigator.userAgent)},q_=()=>{const t=De().$viewport,n=A(()=>t.isLessOrEquals("mobile")),r=A(()=>t.isGreaterThan("mobile")),s=A(()=>t.isGreaterOrEquals("desktopLg")),o=G(!1);return At()?Ut(()=>{o.value=rI()}):o.value=rI(),{isMobile:n,isDesktop:r,isDesktopLg:s,isDesktopBrowser:o}},pye={class:"base-drawer"},mye=oe({__name:"BaseDrawer",setup(e){const{isDesktop:t}=q_(),n=sge(),{goBack:r,closeDrawer:s}=n,{isOpen:o,currentContent:i,previousContent:a}=MP(n);return(l,c)=>{const u=rge;return V(),te(u,{open:C(o),"onUpdate:open":c[2]||(c[2]=d=>et(o)?o.value=d:null),direction:C(t)?"right":"bottom",handle:!1,"handle-only":"",onClose:C(s)},{content:ne(()=>[Ft("div",pye,[H(fg,{name:"slide-fade",mode:"out-in"},{default:ne(()=>[C(a).length?(V(),Ae("button",{key:0,class:"base-drawer__button",onClick:c[0]||(c[0]=(...d)=>C(r)&&C(r)(...d))},[H(C(Js),{icon:"arrow-left",size:"large"})])):(V(),Ae("button",{key:1,class:"base-drawer__button",onClick:c[1]||(c[1]=(...d)=>C(s)&&C(s)(...d))},[H(C(Js),{icon:"x-mark",size:"large"})]))]),_:1}),H(fg,{name:"slide-fade",mode:"out-in"},{default:ne(()=>[(V(),te(bo(C(i).component),Ar(Us(C(i).props)),null,16))]),_:1})])]),_:1},8,["open","direction","onClose"])}}}),gye=Object.assign(mye,{__name:"BaseDrawer"});function vye(e,t){const n=k1(e),r=k1(t);return aF(n,r)}function aF(e,t){const n=[],r=new Set([...Object.keys(e.props||{}),...Object.keys(t.props||{})]);if(e.props&&t.props)for(const s of r){const o=e.props[s],i=t.props[s];o&&i?n.push(...aF(e.props?.[s],t.props?.[s])):(o||i)&&n.push(new sI((i||o).key,o?"removed":"added",i,o))}return r.size===0&&e.hash!==t.hash&&n.push(new sI((t||e).key,"changed",t,e)),n}function k1(e,t=""){if(e&&typeof e!="object")return new oI(t,e,X0(e));const n={},r=[];for(const s in e)n[s]=k1(e[s],t?`${t}.${s}`:s),r.push(n[s].hash);return new oI(t,e,`{${r.join(":")}}`,n)}class sI{constructor(t,n,r,s){this.key=t,this.type=n,this.newValue=r,this.oldValue=s}toString(){return this.toJSON()}toJSON(){switch(this.type){case"added":return`Added \`${this.key}\``;case"removed":return`Removed \`${this.key}\``;case"changed":return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||"-"}\` to \`${this.newValue.toString()}\``}}}class oI{constructor(t,n,r,s){this.key=t,this.value=n,this.hash=r,this.props=s}toString(){return this.props?`{${Object.keys(this.props).join(",")}}`:JSON.stringify(this.value)}toJSON(){const t=this.key||".";return this.props?`${t}({${Object.keys(this.props).join(",")}})`:`${t}(${this.value})`}}function lF(e,t){const n={...e};for(const r of t)delete n[r];return n}function _ye(e,t,n){typeof t=="string"&&(t=t.split(".").map(s=>{const o=Number(s);return Number.isNaN(o)?s:o}));let r=e;for(const s of t){if(r==null)return n;r=r[s]}return r!==void 0?r:n}function xv(e,t){return!e&&!t?"":[...Array.isArray(e)?e:[e],t].filter(Boolean)}function yye(e){return(t,n)=>bye(t,n,C(e))}function bye(e,t,n){return _ye(n,`messages.${e}`,e).replace(/\{(\w+)\}/g,(s,o)=>`${t?.[o]??`{${o}}`}`)}function wye(e){const t=A(()=>C(e).name),n=A(()=>C(e).code),r=A(()=>C(e).dir),s=et(e)?e:G(e);return{lang:t,code:n,dir:r,locale:s,t:yye(e)}}function Sye(e){return cc(e,{dir:"ltr"})}const iI=Sye({name:"English",code:"en",messages:{inputMenu:{noMatch:"No matching data",noData:"No data",create:'Create "{label}"'},calendar:{prevYear:"Previous year",nextYear:"Next year",prevMonth:"Previous month",nextMonth:"Next month"},inputNumber:{increment:"Increment",decrement:"Decrement"},commandPalette:{placeholder:"Type a command or search...",noMatch:"No matching data",noData:"No data",close:"Close",back:"Back"},selectMenu:{noMatch:"No matching data",noData:"No data",create:'Create "{label}"',search:"Search..."},toast:{close:"Close"},carousel:{prev:"Prev",next:"Next",dots:"Choose slide to display",goto:"Go to slide {slide}"},modal:{close:"Close"},slideover:{close:"Close"},alert:{close:"Close"},table:{noData:"No data"}}}),cF=Symbol.for("nuxt-ui.locale-context"),Eye=e=>{const t=e||us(vt(cF,iI));return wye(A(()=>t.value||iI))},uF=F5(Eye);function kye(){const e=dr("toasts",()=>[]),t=G(!1),n=[],r=()=>`${Date.now()}-${Math.random().toString(36).slice(2,9)}`;async function s(){if(!(t.value||n.length===0)){for(t.value=!0;n.length>0;){const c=n.shift();await Lt(),e.value=[...e.value,c].slice(-5)}t.value=!1}}function o(c){const u={id:r(),open:!0,...c};return n.push(u),s(),u}function i(c,u){const d=e.value.findIndex(f=>f.id===c);d!==-1&&(e.value[d]={...e.value[d],...u})}function a(c){const u=e.value.findIndex(d=>d.id===c);u!==-1&&(e.value[u]={...e.value[u],open:!1}),setTimeout(()=>{e.value=e.value.filter(d=>d.id!==c)},200)}function l(){e.value=[]}return{toasts:e,add:o,update:i,remove:a,clear:l}}const xye=Object.freeze({left:0,top:0,width:16,height:16}),dF=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),vk=Object.freeze({...xye,...dF});Object.freeze({...vk,body:"",hidden:!1});function Tye(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}const Cye=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Aye=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function x1(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Cye);if(r===null||!r.length)return e;const s=[];let o=r.shift(),i=Aye.test(o);for(;;){if(i){const a=parseFloat(o);isNaN(a)?s.push(o):s.push(Math.ceil(a*t*n)/n)}else s.push(o);if(o=r.shift(),o===void 0)return s.join("");i=!i}}function Rye(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Iye(e){return"data:image/svg+xml,"+Rye(e)}function Oye(e){return'url("'+Iye(e)+'")'}function Pye(e){const[t,n,r,s]=e;if(r!==s){const o=Math.max(r,s);return[t-(o-r)/2,n-(o-s)/2,o,o]}return e}const Lye=Object.freeze({width:null,height:null}),Nye=Object.freeze({...Lye,...dF});function Dye(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const s=e.indexOf(">",r),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const i=e.indexOf(">",o);if(i===-1)break;n+=e.slice(s+1,o).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function Mye(e,t){return e?"<defs>"+e+"</defs>"+t:t}function $ye(e,t,n){const r=Dye(e);return Mye(r.defs,t+r.content+n)}const Fye=e=>e==="unset"||e==="undefined"||e==="none";function Uye(e,t){const n={...vk,...e},r={...Nye,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(m=>{const g=[],v=m.hFlip,b=m.vFlip;let _=m.rotate;v?b?_+=2:(g.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),g.push("scale(-1 1)"),s.top=s.left=0):b&&(g.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),g.push("scale(1 -1)"),s.top=s.left=0);let y;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:y=s.height/2+s.top,g.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:g.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:y=s.width/2+s.left,g.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}_%2===1&&(s.left!==s.top&&(y=s.left,s.left=s.top,s.top=y),s.width!==s.height&&(y=s.width,s.width=s.height,s.height=y)),g.length&&(o=$ye(o,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=r.width,a=r.height,l=s.width,c=s.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?c:a,u=x1(d,l/c)):(u=i==="auto"?l:i,d=a===null?x1(u,c/l):a==="auto"?c:a);const f={},h=(m,g)=>{Fye(g)||(f[m]=g.toString())};h("width",u),h("height",d);const p=[s.left,s.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:o}}function Bye(e){const t={display:"inline-block",width:"1em",height:"1em"},n=e.varName;switch(e.pseudoSelector&&(t.content="''"),e.mode){case"background":n&&(t["background-image"]="var(--"+n+")"),t["background-repeat"]="no-repeat",t["background-size"]="100% 100%";break;case"mask":t["background-color"]="currentColor",n&&(t["mask-image"]=t["-webkit-mask-image"]="var(--"+n+")"),t["mask-repeat"]=t["-webkit-mask-repeat"]="no-repeat",t["mask-size"]=t["-webkit-mask-size"]="100% 100%";break}return t}function Vye(e,t){const n={},r=t.varName,s=Uye(e);let o=s.viewBox;o[2]!==o[3]&&(t.forceSquare?o=Pye(o):n.width=x1("1em",o[2]/o[3]));const i=Tye(s.body.replace(/currentColor/g,t.color||"black"),{viewBox:`${o[0]} ${o[1]} ${o[2]} ${o[3]}`,width:`${o[2]}`,height:`${o[3]}`}),a=Oye(i);if(r)n["--"+r]=a;else switch(t.mode){case"background":n["background-image"]=a;break;case"mask":n["mask-image"]=n["-webkit-mask-image"]=a;break}return n}const $b={selectorStart:{compressed:"{",compact:" {",expanded:" {"},selectorEnd:{compressed:"}",compact:`; } 1586`,expanded:`; 1587} 1588`},rule:{compressed:"{key}:",compact:" {key}: ",expanded:` 1589 {key}: `}};function jye(e,t="expanded"){const n=[];for(let r=0;r<e.length;r++){const{selector:s,rules:o}=e[r];let a=(s instanceof Array?s.join(t==="compressed"?",":", "):s)+$b.selectorStart[t],l=!0;for(const c in o)l||(a+=";"),a+=$b.rule[t].replace("{key}",c)+o[c],l=!1;a+=$b.selectorEnd[t],n.push(a)}return n.join(t==="compressed"?"":` 1590`)}function Hye(e,t={}){const n=t.customise?t.customise(e.body):e.body,r=t.mode||(t.color||!n.includes("currentColor")?"background":"mask");let s=t.varName;s===void 0&&r==="mask"&&(s="svg");const o={...t,mode:r,varName:s};r==="background"&&delete o.varName;const i={...t.rules,...Bye(o),...Vye({...vk,...e,body:n},o)},a=t.iconSelector||".icon";return jye([{selector:a,rules:i}],o.format)}let aI=!1;function fF(e){if(aI)return;const t=JSON.parse('[{"prefix":"svg-spinners","icons":{"90-ring-with-bg":{"width":24,"height":24,"body":"<path fill=\\"currentColor\\" d=\\"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z\\" opacity=\\".25\\"/><path fill=\\"currentColor\\" d=\\"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z\\"><animateTransform attributeName=\\"transform\\" dur=\\"0.75s\\" repeatCount=\\"indefinite\\" type=\\"rotate\\" values=\\"0 12 12;360 12 12\\"/></path>"}}}]');for(const n of t)for(const[r,s]of Object.entries(n.icons))e(n.prefix?n.prefix+":"+r:r,s);aI=!0}async function zye(e,t){if(!e)return null;fF(Th);
1590const n=vw(e);return n||(await Mie(e).catch(()=>(console.warn(`[Icon] failed to load icon \`${e}\``),null)),vw(e))}function hF(e){const t=Lr().icon,n=(t.collections||[]).sort((r,s)=>s.length-r.length);return A(()=>{const r=e(),s=r.startsWith(t.cssSelectorPrefix)?r.slice(t.cssSelectorPrefix.length):r,o=t.aliases?.[s]||s;if(!o.includes(":")){const i=n.find(a=>o.startsWith(a+"-"));return i?i+":"+o.slice(i.length+1):o}return o})}function pF(e,t){if(e!==!1)return e===!0||e===null?t:e}let Qd;function qye(e){return e.replace(/([^\w-])/g,"\\$1")}function Wye(){if(Qd)return Qd;Qd=new Set;const e=n=>{if(n=n.replace(/^:where\((.*)\)$/,"$1").trim(),n.startsWith("."))return n},t=n=>{if(n?.length)for(const r of n){r?.cssRules&&t(r.cssRules);const s=r?.selectorText;if(typeof s=="string"){const o=e(s);o&&Qd.add(o)}}};if(typeof document<"u")for(const n of document.styleSheets)try{const r=n.cssRules||n.rules;t(r)}catch{}return Qd}const Kye=oe({name:"NuxtIconCss",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){const t=De(),n=Lr().icon,r=A(()=>e.name?n.cssSelectorPrefix+e.name:"");function s(a){if(!a)return;const l=vw(a);if(l)return l;const c=t.payload?.data?.[a];if(c)return Th(a,c),c}const o=A(()=>"."+qye(r.value));function i(a,l=!0){let c=o.value;n.cssWherePseudo&&(c=`:where(${c})`);const u=Hye(a,{iconSelector:c,format:"compressed",customise:pF(e.customize,n.customize)});return n.cssLayer&&l?`@layer ${n.cssLayer} { ${u} }`:u}{const a=Wye();async function l(c){if(a.has(o.value)||typeof document>"u")return;const u=document.createElement("style");u.textContent=i(c);const d=document.head.querySelector('style, link[rel="stylesheet"]');d?document.head.insertBefore(u,d):document.head.appendChild(u),a.add(o.value)}be(()=>e.name,()=>{if(a.has(o.value))return;const c=s(e.name);c?l(c):zye(e.name).then(u=>{u&&l(u)}).catch(()=>null)},{immediate:!0})}return()=>qe("span",{class:["iconify",r.value]})}}),Gye=oe({name:"NuxtIconSvg",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){const n=De(),r=Lr().icon,s=hF(()=>e.name),o="i-"+s.value;if(s.value){const i=n.payload.data[o];i?Th(s.value,i):fF(Th)}return()=>qe(so,{icon:s.value,ssr:!0,customise:pF(e.customize,r.customize)},t)}}),mF=oe({name:"NuxtIcon",props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){const n=De(),r=Lr().icon,s=hF(()=>e.name),o=A(()=>n.vueApp?.component(s.value)||((e.mode||r.mode)==="svg"?Gye:Kye)),i=A(()=>{const a=e.size||r.size;return a?{fontSize:Number.isNaN(+a)?a:a+"px"}:null});return()=>qe(o.value,{...r.attrs,name:s.value,class:r.class,style:i.value,customize:e.customize},t)}}),Yye=Object.freeze(Object.defineProperty({__proto__:null,default:mF},Symbol.toStringTag,{value:"Module"})),Tv={__name:"UIcon",props:{name:{type:String,required:!0},mode:{type:String,required:!1},size:{type:[String,Number],required:!1},customize:{type:Function,required:!1}},setup(e){const n=Ed(vc(e,"name","mode","size","customize"));return(r,s)=>{const o=mF;return V(),te(o,Ar(Us(C(n))),null,16)}}};async function Xye(e,t){return await Qye(t).catch(r=>(console.error("Failed to get image meta for "+t,r+""),{width:0,height:0,ratio:0}))}async function Qye(e){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((t,n)=>{const r=new Image;r.onload=()=>{const s={width:r.width,height:r.height,ratio:r.width/r.height};t(s)},r.onerror=s=>n(s),r.src=e})}function lI(e){return(t=>t!==void 0?e[t]||t:e.missingValue)}function Zye(e={}){const t=e.formatter,n=e.keyMap&&typeof e.keyMap!="function"?lI(e.keyMap):e.keyMap,r={};for(const s in e.valueMap){const o=s,i=e.valueMap[o];r[o]=typeof i=="object"?lI(i):i}return s=>{const o=[];for(const i in s){const a=i;if(typeof s[a]>"u")continue;const l=typeof r[a]=="function"?r[a](s[a]):s[a];o.push([n?n(a):a,l])}return t?o.map(i=>t(...i)).join(e.joinWith??"&"):new URLSearchParams(o).toString()}}function Jye(e=""){if(e===void 0||!e.length)return[];const t=new Set;for(const n of e.split(" ")){const r=Number.parseInt(n.replace("x",""));r&&t.add(r)}return Array.from(t)}function ebe(e){if(e.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function Ju(e=""){if(typeof e=="number")return e;if(typeof e=="string"&&e.replace("px","").match(/^\d+$/g))return Number.parseInt(e,10)}function tbe(e){const t={};if(typeof e=="string")for(const n of e.split(/[\s,]+/).filter(r=>r)){const r=n.split(":");r.length!==2?t["1px"]=r[0].trim():t[r[0].trim()]=r[1].trim()}else Object.assign(t,e);return t}function nbe(e){const t={options:e},n=(s,o={})=>gF(t,s,o),r=((s,o,i)=>n(s,cc({modifiers:o},i)).url);for(const s in e.presets)r[s]=((o,i,a)=>r(o,i,{...e.presets[s],...a}));return r.options=e,r.getImage=n,r.getMeta=((s,o)=>rbe(t,s,o)),r.getSizes=((s,o)=>obe(t,s,o)),t.$img=r,r}async function rbe(e,t,n){const r=gF(e,t,{...n});return typeof r.getMeta=="function"?await r.getMeta():await Xye(e,r.url)}function gF(e,t,n){if(t&&typeof t!="string")throw new TypeError(`input must be a string (received ${typeof t}: ${JSON.stringify(t)})`);if(!t||t.startsWith("data:"))return{url:t};const{setup:r,defaults:s}=sbe(e,n.provider||e.options.provider),o=r(),i=vF(e,n.preset);if(t=Jf(t)?t:l4(t),!o.supportsAlias){for(const u in e.options.alias)if(t.startsWith(u)){const d=e.options.alias[u];d&&(t=_g(d,t.slice(u.length)))}}if(o.validateDomains&&Jf(t)){const u=vP(t).host;if(!e.options.domains.find(d=>d===u))return{url:t}}const a=cc(n,i,s),l={...a,modifiers:{...a.modifiers,width:a.modifiers?.width?Ju(a.modifiers.width):void 0,height:a.modifiers?.height?Ju(a.modifiers.height):void 0}},c=o.getImage(t,l,e);return c.format||=l.modifiers.format||"",c}function sbe(e,t){const n=e.options.providers[t];if(!n)throw new Error("Unknown provider: "+t);return n}function vF(e,t){if(!t)return{};if(!e.options.presets[t])throw new Error("Unknown preset: "+t);return e.options.presets[t]}function obe(e,t,n){const r=vF(e,n.preset),s=cc(n,r),o=Ju(s.modifiers?.width),i=Ju(s.modifiers?.height),a=s.sizes?tbe(s.sizes):{},l=s.densities?.trim(),c=l?Jye(l):e.options.densities;ebe(c);const u=o&&i?i/o:0,d=[],f=[];if(Object.keys(a).length>=1){for(const v in a){const b=cI(v,String(a[v]),i,u,e);if(b!==void 0){d.push({size:b.size,screenMaxWidth:b.screenMaxWidth,media:`(max-width: ${b.screenMaxWidth}px)`});for(const _ of c)f.push({width:b._cWidth*_,src:uI(e,t,n,b,_)})}}ibe(d)}else for(const v of c){const b=Object.keys(a)[0];let _=b?cI(b,String(a[b]),i,u,e):void 0;_===void 0&&(_={size:"",screenMaxWidth:0,_cWidth:n.modifiers?.width,_cHeight:n.modifiers?.height}),f.push({width:v,src:uI(e,t,n,_,v)})}abe(f);const h=f[f.length-1],p=d.length?d.map(v=>`${v.media?v.media+" ":""}${v.size}`).join(", "):void 0,m=p?"w":"x",g=f.map(v=>`${v.src} ${v.width}${m}`).join(", ");return{sizes:p,srcset:g,src:h?.src}}
1590function cI(e,t,n,r,s){const o=s.options.screens&&s.options.screens[e]||Number.parseInt(e),i=t.endsWith("vw");if(!i&&/^\d+$/.test(t)&&(t=t+"px"),!i&&!t.endsWith("px"))return;let a=Number.parseInt(t);if(!o||!a)return;i&&(a=Math.round(a/100*o));const l=r?Math.round(a*r):n;return{size:t,screenMaxWidth:o,_cWidth:a,_cHeight:l}}function uI(e,t,n,r,s){return e.$img(t,{...n.modifiers,width:r._cWidth?r._cWidth*s:void 0,height:r._cHeight?r._cHeight*s:void 0},n)}function ibe(e){e.sort((n,r)=>n.screenMaxWidth-r.screenMaxWidth);let t=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.media===t&&e.splice(n,1),t=r.media}for(let n=0;n<e.length;n++)e[n].media=e[n+1]?.media||""}function abe(e){e.sort((n,r)=>n.width-r.width);let t=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.width===t&&e.splice(n,1),t=r.width}}function lbe(e){let t;return()=>t||(t=typeof e=="function"?e():e,t)}const cbe=Zye({keyMap:{format:"f",width:"w",height:"h",resize:"s",quality:"q",background:"b",position:"pos"},formatter:(e,t)=>ix(e)+"_"+ix(t.toString())}),ube=lbe({validateDomains:!0,supportsAlias:!0,getImage:(e,{modifiers:t,baseURL:n},r)=>{t.width&&t.height&&(t.resize=`${t.width}x${t.height}`,delete t.width,delete t.height);const s=cbe(t)||"_";return n||(n=_g(r.options.nuxt.baseURL,"/_ipx")),{url:_g(n,s,hP(e))}}}),dbe={screens:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},presets:{},provider:"ipx",domains:["toku-payment-portal-assets.s3.us-east-1.amazonaws.com"],alias:{},densities:[1,2],format:["webp"],provider:"ipx",providers:{ipx:{setup:ube,defaults:{}}}},_F=e=>{const t=Or(),n=De();return n.$img||n._img||(n._img=nbe({...dbe,event:n.ssrContext?.event,nuxt:{baseURL:t.app.baseURL},runtimeConfig:t}))};function fbe(e){performance?.mark?.("mark_feature_usage",{detail:{feature:e}})}const hbe=e=>{const t=_F(),n=A(()=>({provider:e.provider,preset:e.preset})),r=A(()=>({width:Ju(e.width),height:Ju(e.height),crossorigin:e.crossorigin===!0?"anonymous":e.crossorigin||void 0,nonce:e.nonce})),s=A(()=>({...e.modifiers,width:e.width,height:e.height,format:e.format,quality:e.quality||t.options.quality,background:e.background,fit:e.fit}));return{providerOptions:n,normalizedAttrs:r,imageModifiers:s}},pbe=["src"],yF={__name:"NuxtImg",props:{custom:{type:Boolean,required:!1},placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1},src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[String,Number],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:null,required:!1},sizes:{type:[String,Object],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},crossorigin:{type:[String,Boolean],required:!1},nonce:{type:String,required:!1}},emits:["load","error"],setup(e,{expose:t,emit:n}){const r=e,s=n,o=_F(),{providerOptions:i,normalizedAttrs:a,imageModifiers:l}=hbe(r),c=A(()=>o.getSizes(r.src,{...i.value,sizes:r.sizes,densities:r.densities,modifiers:l.value})),u=G(!1),d=W1(),f=A(()=>({...a.value,"data-nuxt-img":"",...!r.placeholder||u.value?{sizes:c.value.sizes,srcset:c.value.srcset}:{},...d})),h=A(()=>{if(u.value)return!1;const b=r.placeholder===""?[10,10]:r.placeholder;if(!b)return!1;if(typeof b=="string")return b;const[_=10,y=_,w=50,S=3]=Array.isArray(b)?b:typeof b=="number"?[b]:[];return o(r.src,{...l.value,width:_,height:y,quality:w,blur:S},i.value)}),p=A(()=>r.sizes?c.value.src:o(r.src,l.value,i.value)),m=A(()=>h.value||p.value),g=De().isHydrating,v=U1("imgEl");return t({imgEl:v}),Ut(()=>{if(h.value||r.custom){const b=new Image;p.value&&(b.src=p.value),r.sizes&&(b.sizes=c.value.sizes||"",b.srcset=c.value.srcset),b.decode?b.decode().then(()=>{u.value=!0,s("load",new Event("load"))}).catch(_=>{s("error",_)}):(b.onload=_=>{u.value=!0,s("load",_)},b.onerror=_=>{s("error",_)}),fbe("nuxt-image");return}v.value&&(v.value.complete&&g&&(v.value.getAttribute("data-error")?s("error",new Event("error")):s("load",new Event("load"))),v.value.onload=b=>{s("load",b)},v.value.onerror=b=>{s("error",b)})}),(b,_)=>e.custom?le(b.$slots,"default",Ar(we({key:1},{imgAttrs:f.value,isLoaded:u.value,src:m.value}))):(V(),Ae("img",we({key:0,ref_key:"imgEl",ref:v,class:h.value?e.placeholderClass:void 0},f.value,{src:m.value}),null,16,pbe))}},dI=Symbol("nuxt-ui.avatar-group");function bF(e){const t=vt(dI,void 0),n=A(()=>e.size??t?.value.size);return Zn(dI,A(()=>({size:n.value}))),{size:n}}const mbe={slots:{root:"relative inline-flex items-center justify-center shrink-0",base:"rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap"},variants:{color:{primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",info:"bg-info",warning:"bg-warning",error:"bg-error",neutral:"bg-inverted"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px]","2xs":"h-[5px] min-w-[5px] text-[5px]",xs:"h-[6px] min-w-[6px] text-[6px]",sm:"h-[7px] min-w-[7px] text-[7px]",md:"h-[8px] min-w-[8px] text-[8px]",lg:"h-[9px] min-w-[9px] text-[9px]",xl:"h-[10px] min-w-[10
1590px] text-[10px]","2xl":"h-[11px] min-w-[11px] text-[11px]","3xl":"h-[12px] min-w-[12px] text-[12px]"},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"},inset:{false:""},standalone:{false:"absolute"}},compoundVariants:[{position:"top-right",inset:!1,class:"-translate-y-1/2 translate-x-1/2 transform"},{position:"bottom-right",inset:!1,class:"translate-y-1/2 translate-x-1/2 transform"},{position:"top-left",inset:!1,class:"-translate-y-1/2 -translate-x-1/2 transform"},{position:"bottom-left",inset:!1,class:"translate-y-1/2 -translate-x-1/2 transform"}],defaultVariants:{size:"md",color:"primary",position:"top-right"}},gbe=Object.assign({inheritAttrs:!1},{__name:"UChip",props:ku({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:["update:show"],setup(e){const t=e,n=Hv(e,"show",{type:Boolean,default:!0}),{size:r}=bF(t),s=Lr(),o=A(()=>Ir({extend:Ir(mbe),...s.ui?.chip||{}})({color:t.color,size:r.value,position:t.position,inset:t.inset,standalone:t.standalone}));return(i,a)=>(V(),te(C(Dn),{as:e.as,class:Et(o.value.root({class:[t.ui?.root,t.class]}))},{default:ne(()=>[H(C(qh),Ar(Us(i.$attrs)),{default:ne(()=>[le(i.$slots,"default")]),_:3},16),n.value?(V(),Ae("span",{key:0,class:Et(o.value.base({class:t.ui?.base}))},[le(i.$slots,"content",{},()=>[gt(at(e.text),1)])],2)):Ce("",!0)]),_:3},8,["as","class"]))}}),vbe={slots:{root:"inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-elevated",image:"h-full w-full rounded-[inherit] object-cover",fallback:"font-medium leading-none text-muted truncate",icon:"text-muted shrink-0"},variants:{size:{"3xs":{root:"size-4 text-[8px]"},"2xs":{root:"size-5 text-[10px]"},xs:{root:"size-6 text-xs"},sm:{root:"size-7 text-sm"},md:{root:"size-8 text-base"},lg:{root:"size-9 text-lg"},xl:{root:"size-10 text-xl"},"2xl":{root:"size-11 text-[22px]"},"3xl":{root:"size-12 text-2xl"}}},defaultVariants:{size:"md"}},wF=Object.assign({inheritAttrs:!1},{__name:"UAvatar",props:{as:{type:null,required:!1,default:"span"},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:String,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:null,required:!1}},setup(e){const t=e,n=A(()=>t.text||(t.alt||"").split(" ").map(c=>c.charAt(0)).join("").substring(0,2)),r=Lr(),{size:s}=bF(t),o=A(()=>Ir({extend:Ir(vbe),...r.ui?.avatar||{}})({size:s.value})),i=A(()=>({"3xs":16,"2xs":20,xs:24,sm:28,md:32,lg:36,xl:40,"2xl":44,"3xl":48})[t.size||"md"]),a=G(!1);be(()=>t.src,()=>{a.value&&(a.value=!1)});function l(){a.value=!0}return(c,u)=>(V(),te(bo(t.chip?gbe:C(Dn)),we({as:e.as},t.chip?typeof t.chip=="object"?{inset:!0,...t.chip}:{inset:!0}:{},{class:o.value.root({class:[t.ui?.root,t.class]}),style:t.style}),{default:ne(()=>[e.src&&!a.value?(V(),te(bo(C(yF)),we({key:0,role:"img",src:e.src,alt:e.alt,width:i.value,height:i.value},c.$attrs,{class:o.value.image({class:t.ui?.image}),onError:l}),null,16,["src","alt","width","height","class"])):(V(),te(C(qh),Ar(we({key:1},c.$attrs)),{default:ne(()=>[le(c.$slots,"default",{},()=>[e.icon?(V(),te(Tv,{key:0,name:e.icon,class:Et(o.value.icon({class:t.ui?.icon}))},null,8,["name","class"])):(V(),Ae("span",{key:1,class:Et(o.value.fallback({class:t.ui?.fallback}))},at(n.value||" "),3))])]),_:3},16))]),_:3},16,["as","class","style"]))}});function _be(e){const t=Lr(),n=A(()=>Je(e)),r=A(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon),s=A(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing||!!n.value.trailingIcon),o=A(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),i=A(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon);return{isLeading:r,isTrailing:s,leadingIconName:o,trailingIconName:i}}const ybe=Symbol("nuxt-ui.button-group");function bbe(e){const t=vt(ybe,void 0);return{orientation:A(()=>t?.value.orientation),size:A(()=>e?.size??t?.value.size)}}const wbe=Symbol("nuxt-ui.form-loading");function Sbe(e){const t=Object.keys(e),n=t.filter(o=>o.startsWith("aria-")),r=t.filter(o=>o.startsWith("data-")),s=["active","activeClass","ariaCurrentValue","as","disabled","exact","exactActiveClass","exactHash","exactQuery","external","href","download","inactiveClass","noPrefetch","noRel","prefetch","prefetchedClass","rel","replace","target","to","type","title","onClick",...n,...r];
1590return vc(e,...s)}function Ebe(e,t){const n=vye(e,t).reduce((o,i)=>(i.type==="added"&&o.add(i.key),o),new Set),r=Object.fromEntries(Object.entries(e).filter(([o])=>!n.has(o))),s=Object.fromEntries(Object.entries(t).filter(([o])=>!n.has(o)));return $S(r,s)}const SF={__name:"ULinkBase",props:{as:{type:String,required:!1,default:"button"},type:{type:String,required:!1,default:"button"},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:String,required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){const t=e;function n(r){if(t.disabled){r.stopPropagation(),r.preventDefault();return}if(t.onClick)for(const s of Array.isArray(t.onClick)?t.onClick:[t.onClick])s(r);t.href&&t.navigate&&!t.isExternal&&t.navigate(r)}return(r,s)=>(V(),te(C(Dn),we(e.href?{as:"a",href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0}:e.as==="button"?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:n}),{default:ne(()=>[le(r.$slots,"default")]),_:3},16,["rel","target"]))}},kbe={base:"focus-visible:outline-primary",variants:{active:{true:"text-primary",false:"text-muted"},disabled:{true:"cursor-not-allowed opacity-75"}},compoundVariants:[{active:!1,disabled:!1,class:["hover:text-default","transition-colors"]}]},xbe=Object.assign({inheritAttrs:!1},{__name:"ULink",props:{as:{type:null,required:!1,default:"button"},type:{type:null,required:!1,default:"button"},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:"page"},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){const t=e,n=Pr(),r=Lr(),s=Ed(ade(t,"as","type","disabled","active","exact","exactQuery","exactHash","activeClass","inactiveClass","to","href","raw","custom","class")),o=A(()=>Ir({extend:Ir(kbe),...cc({variants:{active:{true:xv(r.ui?.link?.variants?.active?.true,t.activeClass),false:xv(r.ui?.link?.variants?.active?.false,t.inactiveClass)}}},r.ui?.link||{})})),i=A(()=>t.to??t.href);function a({route:c,isActive:u,isExactActive:d}){if(t.active!==void 0)return t.active;if(t.exactQuery==="partial"){if(!Ebe(c.query,n.query))return!1}else if(t.exactQuery===!0&&!$S(c.query,n.query))return!1;return t.exactHash&&c.hash!==n.hash?!1:!!(t.exact&&d||!t.exact&&u)}function l({route:c,isActive:u,isExactActive:d}){const f=a({route:c,isActive:u,isExactActive:d});return t.raw?[t.class,f?t.activeClass:t.inactiveClass]:o.value({class:t.class,active:f,disabled:t.disabled})}return(c,u)=>{const d=ZN;return V(),te(d,we(C(s),{to:i.value,custom:""}),{default:ne(({href:f,navigate:h,route:p,rel:m,target:g,isExternal:v,isActive:b,isExactActive:_})=>[e.custom?le(c.$slots,"default",Ar(we({key:0},{...c.$attrs,...e.exact&&_?{"aria-current":t.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:f,navigate:h,rel:m,target:g,isExternal:v,active:a({route:p,isActive:b,isExactActive:_})}))):(V(),te(SF,we({key:1},{...c.$attrs,...e.exact&&_?{"aria-current":t.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:f,navigate:h,rel:m,target:g,isExternal:v},{class:l({route:p,isActive:b,isExactActive:_})}),{default:ne(()=>[le(c.$slots,"default",{active:a({route:p,isActive:b,isExactActive:_})})]),_:2},1040,["class"]))]),_:3},16,["to"])}}}),Tbe={slots:{base:["rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75","transition-colors"],label:"truncate",leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailingIcon:"shrink-0"},variants:{buttonGroup:{horizontal:"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",vertical:"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"}
1590,color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:"",ghost:"",link:""},size:{xs:{base:"px-2 py-1 text-xs gap-1",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},sm:{base:"px-2.5 py-1.5 text-xs gap-1.5",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},md:{base:"px-2.5 py-1.5 text-sm gap-1.5",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},lg:{base:"px-3 py-2 text-sm gap-2",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},xl:{base:"px-3 py-2 text-base gap-2",leadingIcon:"size-6",leadingAvatarSize:"xs",trailingIcon:"size-6"}},block:{true:{base:"w-full justify-center",trailingIcon:"ms-auto"}},square:{true:""},leading:{true:""},trailing:{true:""},loading:{true:""},active:{true:{base:""},false:{base:""}}},compoundVariants:[{color:"primary",variant:"solid",class:"text-inverted bg-primary hover:bg-primary/75 active:bg-primary/75 disabled:bg-primary aria-disabled:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"},{color:"secondary",variant:"solid",class:"text-inverted bg-secondary hover:bg-secondary/75 active:bg-secondary/75 disabled:bg-secondary aria-disabled:bg-secondary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary"},{color:"success",variant:"solid",class:"text-inverted bg-success hover:bg-success/75 active:bg-success/75 disabled:bg-success aria-disabled:bg-success focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success"},{color:"info",variant:"solid",class:"text-inverted bg-info hover:bg-info/75 active:bg-info/75 disabled:bg-info aria-disabled:bg-info focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info"},{color:"warning",variant:"solid",class:"text-inverted bg-warning hover:bg-warning/75 active:bg-warning/75 disabled:bg-warning aria-disabled:bg-warning focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning"},{color:"error",variant:"solid",class:"text-inverted bg-error hover:bg-error/75 active:bg-error/75 disabled:bg-error aria-disabled:bg-error focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error"},{color:"primary",variant:"outline",class:"ring ring-inset ring-primary/50 text-primary hover:bg-primary/10 active:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"},{color:"secondary",variant:"outline",class:"ring ring-inset ring-secondary/50 text-secondary hover:bg-secondary/10 active:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-secondary"},{color:"success",variant:"outline",class:"ring ring-inset ring-success/50 text-success hover:bg-success/10 active:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-success"},{color:"info",variant:"outline",class:"ring ring-inset ring-info/50 text-info hover:bg-info/10 active:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-info"},{color:"warning",variant:"outline",class:"ring ring-inset ring-warning/50 text-warning hover:bg-warning/10 active:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-warning"},{color:"error",variant:"outline",class:"ring ring-inset ring-error/50 text-error hover:bg-error/10 active:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-error"},{color:"primary",variant:"soft",class:"text-primary bg-primary/10 hover:bg-primary/15 active:bg-primary/15 focu
1590s:outline-none focus-visible:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10"},{color:"secondary",variant:"soft",class:"text-secondary bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 focus:outline-none focus-visible:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10"},{color:"success",variant:"soft",class:"text-success bg-success/10 hover:bg-success/15 active:bg-success/15 focus:outline-none focus-visible:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10"},{color:"info",variant:"soft",class:"text-info bg-info/10 hover:bg-info/15 active:bg-info/15 focus:outline-none focus-visible:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10"},{color:"warning",variant:"soft",class:"text-warning bg-warning/10 hover:bg-warning/15 active:bg-warning/15 focus:outline-none focus-visible:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10"},{color:"error",variant:"soft",class:"text-error bg-error/10 hover:bg-error/15 active:bg-error/15 focus:outline-none focus-visible:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10"},{color:"primary",variant:"subtle",class:"text-primary ring ring-inset ring-primary/25 bg-primary/10 hover:bg-primary/15 active:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"},{color:"secondary",variant:"subtle",class:"text-secondary ring ring-inset ring-secondary/25 bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-secondary"},{color:"success",variant:"subtle",class:"text-success ring ring-inset ring-success/25 bg-success/10 hover:bg-success/15 active:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-success"},{color:"info",variant:"subtle",class:"text-info ring ring-inset ring-info/25 bg-info/10 hover:bg-info/15 active:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-info"},{color:"warning",variant:"subtle",class:"text-warning ring ring-inset ring-warning/25 bg-warning/10 hover:bg-warning/15 active:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-warning"},{color:"error",variant:"subtle",class:"text-error ring ring-inset ring-error/25 bg-error/10 hover:bg-error/15 active:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-error"},{color:"primary",variant:"ghost",class:"text-primary hover:bg-primary/10 active:bg-primary/10 focus:outline-none focus-visible:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"secondary",variant:"ghost",class:"text-secondary hover:bg-secondary/10 active:bg-secondary/10 focus:outline-none focus-visible:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"success",variant:"ghost",class:"text-success hover:bg-success/10 active:bg-success/10 focus:outline-none focus-visible:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"info",variant:"ghost",class:"text-info hover:bg-info/10 active:bg-info/10 focus:outline-none focus-visible:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"warning",variant:"ghost",class:"text-warning hover:bg-warning/10 active:bg-warning/10 focus:outline-none focus-visible:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"error",variant:"ghost",class:"text-error hover:bg-error/10 active:bg-error/10 focus:outline-none focus-visible:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"primary",variant:"link",class:"text-primary hover:text-primary/75 active:text-primary/75 disabled:text-primary aria-disabled:text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"},{color:"secondary",variant:"link",class:"text-secondary hover:text-secondary/75 active:text-secondary/75 disabled:text-secondary aria-disabled:text-secondary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"},{color:"success",variant:"link",class:"text-success hover:text-success/75 active:text-success/75 disabled:text-success aria-disabled:text-success focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"},{color:"info",variant:"link",class:"text-info hover:text-info/75 active:text-info/75 disabled:text-info aria-disabled:text-info focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"},{color:"warning",variant:"link",class:"text-warning hover:text-warning/75 active:text-warning/75 disabled:text-warning aria-disabled:text-warning focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"},{color:"error",variant:"link",class:"text-error hover:text-error/75 active:text-error/75 disabled:text-error aria-disabled:text-error focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted hover:bg-inverted/90 active:bg-inverted/90 disabled:bg-inverted aria-disabled:bg-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default hover:bg-elevated active:bg-elevated disabled:bg-default aria-disabled:bg-default focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted"},{color:"neutral",variant:"soft",class:"text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 focus:outline-none focus-visible:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted"},{color:"neutral",variant:"ghost",class:"text-default hover:bg-elevated active:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent"},{color:"neutral",variant:"link",class:"text-muted hover:text-default active:text-default disabled:text-muted aria-disabled:text-muted focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-inverted"},{size:"xs",square:!0,class:"p-1"},{size:"sm",square:!0,class:"p-1.5"},{size:"md",square:!0,class:"p-1.5"},{size:"lg",square:!0,class:"p-2"},{size:"xl",square:!0,class:"p-2"},{loading:!0,leading:!0,class:{leadingIcon:"animate-spin"}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:"animate-spin"}}],defaultVariants:{color:"primary",variant:"solid",size:"md"}},Fb={__name:"UButton",props:{label:{type:String,required:!1},color:{type:null,required:!1},activeColor:{type:null,required:!1},variant:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},icon:{type:String,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:String,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:String,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:String,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){const t=e,n=lc(),r=Lr(),{orientation:s,size:o}=bbe(t),i=Ed(Sbe(t)),a=G(!1),l=vt(wbe,void 0);async function c(g){a.value=!0;const v=Array.isArray(t.onClick)?t.onClick:[t.onClick];try{await Promise.all(v.map(b=>b?.(g)))}finally{a.value=!1}}const u=A(()=>t.loading||t.loadingAuto&&(a.value||l?.value&&t.type==="submit")),{isLeading:d,isTrailing:f,leadingIconName:h,trailingIconName:p}=_be(A(()=>({...t,loading:u.value}))),m=A(()=>Ir({extend:Ir(Tbe),...cc({variants:{active:{true:{base:xv(r.ui?.button?.variants?.active?.true?.base,t.activeClass)},false:{base:xv(r.ui?.button?.variants?.active?.false?.base,t.inactiveClass)}}}},r.ui?.button||{})})({color:t.color,variant:t.variant,size:o.value,loading:u.value,block:t.block,square:t.square||!n.default&&!t.label,leading:d.value,trailing:f.value,buttonGroup:s.value}));return(g,v)=>(V(),te(xbe,we({type:e.type,disabled:e.disabled||u.value},C(lF)(C(i),["type","disabled","onClick"]),{custom:""}),{default:ne(({active:b,..._})=>[H(SF,we(_,{class:m.value.base({class:[t.ui?.base,t.class],active:b,...b&&e.activeVariant?{variant:e.activeVariant}:{},...b&&e.activeColor?{color:e.activeColor}:{}}),onClick:c}),{default:ne(()=>[le(g.$slots,"leading",{},()=>[C(d)&&C(h)?(V(),te(Tv,{key:0,name:C(h),class:Et(m.value.leadingIcon({class:t.ui?.leadingIcon,active:b}))},null,8,["name","class"])):e.avatar?(V(),te(wF,we({key:1,size:t.ui?.leadingAvatarSize||m.value.leadingAvatarSize()},e.avatar,{class:m.value.leadingAvatar({class:t.ui?.leadingAvatar,active:b})}),null,16,["size","class"])):Ce("",!0)]),le(g.$slots,"default",{},()=>[e.label!==void 0&&e.label!==null?(V(),Ae("span",{key:0,class:Et(m.value.label({class:t.ui?.label,active:b}))},at(e.label),3)):Ce("",!0)]),le(g.$slots,"trailing",{},()=>[C(f)&&C(p)?(V(),te(Tv,{key:0,name:C(p),class:Et(m.value.trailingIcon({class:t.ui?.trailingIcon,active:b}))},null,8,["name","class"])):Ce("",!0)])]),_:2},1040,["class"])]),_:3},16,["type","disabled"]))}},Cbe={slots:{root:"gap-2",base:"relative overflow-hidden rounded-full bg-accented",indicator:"rounded-full size-full transition-transform duration-200 ease-out",status:"flex justify-end text-dimmed transition-[width] duration-200",steps:"grid items-end",step:"truncate text-end row-start-1 col-start-1 transition-opacity"},variants:{animation:{carousel:"","carousel-inverse":"",swing:"",elastic:""},color:{primary:{indicator:"bg-primary",steps:"text-primary"},secondary:{indicator:"bg-secondary",steps:"text-secondary"},success:{indicator:"bg-success",steps:"text-success"},info:{indicator:"bg-info",steps:"text-info"},warning:{indicator:"bg-warning",steps:"text-warning"},error:{indicator:"bg-error",steps:"text-error"},neutral:{indicator:"bg-inverted",steps:"text-inverted"}},size:{"2xs":{status:"text-xs",steps:"text-xs"},xs:{status:"text-xs",steps:"text-xs"},sm:{status:"text-sm",steps:"text-sm"},md:{status:"text-sm",steps:"text-sm"},lg:{status:"text-sm",steps:"text-sm"},xl:{status:"text-base",steps:"text-base"},"2xl":{status:"text-base",steps:"text-base"}},step:{active:{step:"opacity-100"},first:{step:"opacity-100 text-muted"},other:{step:"opacity-0"},last:{step:""}},orientation:{horizontal:{root:"w-full flex flex-col",base:"w-full",status:"flex-row"},vertical:{root:"h-full flex flex-row-reverse",base:"h-full",status:"flex-col"}},inverted:{true:{status:"self-end"}}},compoundVariants:[{inverted:!0,orientation:"horizontal",class:{step:"text-start",status:"flex-row-reverse"}},{inverted:!0,orientation:"vertical",class:{steps:"items-start",status:"flex-col-reverse"}},{orientation:"horizontal",size:"2xs",class:"h-px"},{orientation:"horizontal",size:"xs",class:"h-0.5"},{orientation:"horizontal",size:"sm",class:"h-1"},{orientation:"horizontal",size:"md",class:"h-2"},{orientation:"horizontal",size:"lg",class:"h-3"},{orientation:"horizontal",size:"xl",class:"h-4"},{orientation:"horizontal",size:"2xl",class:"h-5"},{orientation:"vertical",size:"2xs",class:"w-px"},{orientation:"vertical",size:"xs",class:"w-0.5"},{orientation:"vertical",size:"sm",class:"w-1"},{orientation:"vertical",size:"md",class:"w-2"},{orientation:"vertical",size:"lg",class:"w-3"},{orientation:"vertical",size:"xl",class:"w-4"},{orientation:"vertical",size:"2xl",class:"w-5"},{orientation:"horizontal",animation:"carousel",class:{indicator:"data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_ease-in-out_infinite]"}},{orientation:"vertical",animation:"carousel",class:{indicator:"data-[state=indeterminate]:animate-[carousel-vertical_2s_ease-in-out_infinite]"}},{orientation:"horizontal",animation:"carousel-inverse",class:{indicator:"data-[state=indeterminate]:animate-[carousel-inverse_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"}},{orientation:"vertical",animation:"carousel-inverse",class:{indicator:"data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_ease-in-out_infinite]"}},{orientation:"horizontal",animation:"swing",class:{indicator:"data-[state=indeterminate]:animate-[swing_2s_ease-in-out_infinite]"}},{orientation:"vertical",animation:"swing",class:{indicator:"data-[state=indeterminate]:animate-[swing-vertical_2s_ease-in-out_infinite]"}},{orientation:"horizontal",animation:"elastic",class:{indicator:"data-[state=indeterminate]:animate-[elastic_2s_ease-in-out_infinite]"}},{orientation:"vertical",animation:"elastic",class:{indicator:"data-[state=indeterminate]:animate-[elastic-vertical_2s_ease-in-out_infinite]"}}],defaultVariants:{animation:"carousel",color:"primary",size:"md"}},Abe={__name:"UProgress",props:{as:{type:null,required:!1},max:{type:[Number,Array],required:!1},status:{type:Boolean,required:!1},inverted:{type:Boolean,required:!1,default:!1},size:{type:null,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},animation:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},getValueLabel:{type:Function,required:!1},getValueText:{type:Function,required:!1},modelValue:{type:[Number,null],required:!1,default:null}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const n=e,r=t,s=lc(),{dir:o}=uF(),i=Lr(),a=V_(vc(n,"getValueLabel","getValueText","modelValue"),r),l=A(()=>a.value.modelValue===null),c=A(()=>Array.isArray(n.max)),u=A(()=>
1590{if(!(l.value||!n.max))return Array.isArray(n.max)?n.max.length-1:Number(n.max)}),d=A(()=>{if(!l.value)switch(!0){case a.value.modelValue<0:return 0;case a.value.modelValue>(u.value??100):return 100;default:return Math.round(a.value.modelValue/(u.value??100)*100)}}),f=A(()=>{if(d.value!==void 0)return n.orientation==="vertical"?{transform:`translateY(${n.inverted?"":"-"}${100-d.value}%)`}:o.value==="rtl"?{transform:`translateX(${n.inverted?"-":""}${100-d.value}%)`}:{transform:`translateX(${n.inverted?"":"-"}${100-d.value}%)`}}),h=A(()=>({[n.orientation==="vertical"?"height":"width"]:d.value?`${d.value}%`:"fit-content"}));function p(_){return _===Number(n.modelValue)}function m(_){return _===0}function g(_){return _===u.value}function v(_){return _=Number(_),p(_)&&!m(_)?"active":m(_)&&p(_)?"first":g(_)&&p(_)?"last":"other"}const b=A(()=>Ir({extend:Ir(Cbe),...i.ui?.progress||{}})({animation:n.animation,size:n.size,color:n.color,orientation:n.orientation,inverted:n.inverted}));return(_,y)=>(V(),te(C(Dn),{as:e.as,class:Et(b.value.root({class:[n.ui?.root,n.class]}))},{default:ne(()=>[!l.value&&(e.status||s.status)?(V(),Ae("div",{key:0,class:Et(b.value.status({class:n.ui?.status})),style:io(h.value)},[le(_.$slots,"status",{percent:d.value},()=>[gt(at(d.value)+"% ",1)])],6)):Ce("",!0),H(C(bpe),we(C(a),{max:u.value,class:b.value.base({class:n.ui?.base}),style:{transform:"translateZ(0)"}}),{default:ne(()=>[H(C(wpe),{class:Et(b.value.indicator({class:n.ui?.indicator})),style:io(f.value)},null,8,["class","style"])]),_:1},16,["max","class"]),c.value?(V(),Ae("div",{key:1,class:Et(b.value.steps({class:n.ui?.steps}))},[(V(!0),Ae(mt,null,Vl(e.max,(w,S)=>(V(),Ae("div",{key:S,class:Et(b.value.step({class:n.ui?.step,step:v(S)}))},[le(_.$slots,`step-${S}`,{step:w},()=>[gt(at(w),1)])],2))),128))],2)):Ce("",!0)]),_:3},8,["as","class"]))}},Rbe={slots:{root:"relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5 focus:outline-none",wrapper:"w-0 flex-1 flex flex-col",title:"text-sm font-medium text-highlighted",description:"text-sm text-muted",icon:"shrink-0 size-5",avatar:"shrink-0",avatarSize:"2xl",actions:"flex gap-1.5 shrink-0",progress:"absolute inset-x-0 bottom-0",close:"p-0"},variants:{color:{primary:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary",icon:"text-primary"},secondary:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",icon:"text-secondary"},success:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success",icon:"text-success"},info:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info",icon:"text-info"},warning:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning",icon:"text-warning"},error:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error",icon:"text-error"},neutral:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted",icon:"text-highlighted"}},orientation:{horizontal:{root:"items-center",actions:"items-center"},vertical:{root:"items-start",actions:"items-start mt-2.5"}},title:{true:{description:"mt-1"}}},defaultVariants:{color:"primary"}},Ibe={__name:"UToast",props:{as:{type:null,required:!1},title:{type:[String,Object,Function],required:!1},description:{type:[String,Object,Function],required:!1},icon:{type:String,required:!1},avatar:{type:Object,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:"vertical"},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:String,required:!1},actions:{type:Array,required:!1},progress:{type:[Boolean,Object],required:!1,default:!0},class:{type:null,required:!1},ui:{type:null,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},type:{type:String,required:!1},duration:{type:Number,required:!1}},emits:["escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd","update:open"],setup(e,{expose:t,emit:n}){const r=e,s=n,o=lc(),{t:i}=uF(),a=Lr(),l=V_(vc(r,"as","defaultOpen","open","duration","type"),s),c=A(()=>Ir({extend:Ir(Rbe),...a.ui?.toast||{}})({color:r.color,orientation:r.orientation,title:!!r.title||!!o.title})),u=G(),d=G(0);return Ut(()=>{u.value&&Lt(()=>{d.value=u.value?.$el?.getBoundingClientRect()?.height})}),t({height:d}),(f,h)=>(V(),te(C(Dpe),we({ref_key:"el",ref:u},C(l),{"data-orientation":e.orientation,class:c.value.root({class:[r.ui?.root,r.class]}),style:{"--height":d.value}}),{default:ne(({remaining:p,duration:m,open:g})=>[le(f.$slots,"leading",{},()=>[e.avatar?(V(),te(wF,we({key:0,size:r.ui?.avatarSize||c.value.avatarSize()},e.avatar,{class:c.value.avatar({class:r.ui?.avatar})}),null,16,["size","class"])):e.icon?(V(),te(Tv,{key:1,name:e.icon,class:Et(c.value.icon({class:r.ui?.icon}))},null,8,["name","class"])):Ce("",!0)]),Ft("div",{class:Et(c.value.wrapper({class:r.ui?.wrapper}))},[e.title||o.title?(V(),te(C(Mpe),{key:0,class:Et(c.value.title({class:r.ui?.title}))},{default:ne(()=>[le(f.$slots,"title",{},()=>[typeof e.title=="function"?(V(),te(bo(e.title()),{key:0})):typeof e.title=="object"?(V(),te(bo(e.title),{key:1})):(V(),Ae(mt,{key:2}
1590,[gt(at(e.title),1)],64))])]),_:3},8,["class"])):Ce("",!0),e.description||o.description?(V(),te(C(Lpe),{key:1,class:Et(c.value.description({class:r.ui?.description}))},{default:ne(()=>[le(f.$slots,"description",{},()=>[typeof e.description=="function"?(V(),te(bo(e.description()),{key:0})):typeof e.description=="object"?(V(),te(bo(e.description),{key:1})):(V(),Ae(mt,{key:2},[gt(at(e.description),1)],64))])]),_:3},8,["class"])):Ce("",!0),e.orientation==="vertical"&&(e.actions?.length||o.actions)?(V(),Ae("div",{key:2,class:Et(c.value.actions({class:r.ui?.actions}))},[le(f.$slots,"actions",{},()=>[(V(!0),Ae(mt,null,Vl(e.actions,(v,b)=>(V(),te(C(BR),{key:b,"alt-text":v.label||"Action","as-child":"",onClick:h[0]||(h[0]=Il(()=>{},["stop"]))},{default:ne(()=>[H(Fb,we({size:"xs",color:e.color},{ref_for:!0},v),null,16,["color"])]),_:2},1032,["alt-text"]))),128))])],2)):Ce("",!0)],2),e.orientation==="horizontal"&&(e.actions?.length||o.actions)||e.close?(V(),Ae("div",{key:0,class:Et(c.value.actions({class:r.ui?.actions,orientation:"horizontal"}))},[e.orientation==="horizontal"&&(e.actions?.length||o.actions)?le(f.$slots,"actions",{key:0},()=>[(V(!0),Ae(mt,null,Vl(e.actions,(v,b)=>(V(),te(C(BR),{key:b,"alt-text":v.label||"Action","as-child":"",onClick:h[1]||(h[1]=Il(()=>{},["stop"]))},{default:ne(()=>[H(Fb,we({size:"xs",color:e.color},{ref_for:!0},v),null,16,["color"])]),_:2},1032,["alt-text"]))),128))]):Ce("",!0),e.close||o.close?(V(),te(C(b3),{key:1,"as-child":""},{default:ne(()=>[le(f.$slots,"close",{ui:c.value},()=>[e.close?(V(),te(Fb,we({key:0,icon:e.closeIcon||C(a).ui.icons.close,color:"neutral",variant:"link","aria-label":C(i)("toast.close")},typeof e.close=="object"?e.close:{},{class:c.value.close({class:r.ui?.close}),onClick:h[2]||(h[2]=Il(()=>{},["stop"]))}),null,16,["icon","aria-label","class"])):Ce("",!0)])]),_:3})):Ce("",!0)],2)):Ce("",!0),e.progress&&g&&p>0&&m?(V(),te(Abe,we({key:1,"model-value":p/m*100,color:e.color},typeof e.progress=="object"?e.progress:{},{size:"sm",class:c.value.progress({class:r.ui?.progress})}),null,16,["model-value","color","class"])):Ce("",!0)]),_:3},16,["data-orientation","class","style"]))}},Obe={slots:{viewport:"fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",base:"pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"},variants:{position:{"top-left":{viewport:"left-4"},"top-center":{viewport:"left-1/2 transform -translate-x-1/2"},"top-right":{viewport:"right-4"},"bottom-left":{viewport:"left-4"},"bottom-center":{viewport:"left-1/2 transform -translate-x-1/2"},"bottom-right":{viewport:"right-4"}},swipeDirection:{up:"data-[swipe=end]:animate-[toast-slide-up_200ms_ease-out]",right:"data-[swipe=end]:animate-[toast-slide-right_200ms_ease-out]",down:"data-[swipe=end]:animate-[toast-slide-down_200ms_ease-out]",left:"data-[swipe=end]:animate-[toast-slide-left_200ms_ease-out]"}},compoundVariants:[{position:["top-left","top-center","top-right"],class:{viewport:"top-4",base:"top-0 data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out]"}},{position:["bottom-left","bottom-center","bottom-right"],class:{viewport:"bottom-4",base:"bottom-0 data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out]"}},{swipeDirection:["left","right"],class:"data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0"},{swipeDirection:["up","down"],class:"data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0"}],defaultVariants:{position:"bottom-right"}},Pbe={name:"Toaster"},Lbe=Object.assign(Pbe,{props:{position:{type:null,required:!1},expand:{type:Boolean,required:!1,default:!0},progress:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},class:{type:null,required:!1},ui:{type:null,required:!1},label:{type:String,required:!1},duration:{type:Number,required:!1,default:5e3},swipeThreshold:{type:Number,required:!1}},setup(e){const t=e,{toasts:n,remove:r}=kye(),s=Lr(),o=Ed(vc(t,"duration","label","swipeThreshold")),i=T3
1590(us(()=>t.portal)),a=A(()=>{switch(t.position){case"top-center":return"up";case"top-right":case"bottom-right":return"right";case"bottom-center":return"down";case"top-left":case"bottom-left":return"left"}return"right"}),l=A(()=>Ir({extend:Ir(Obe),...s.ui?.toaster||{}})({position:t.position,swipeDirection:a.value}));function c(g,v){g||r(v)}const u=G(!1),d=A(()=>t.expand||u.value),f=G([]),h=A(()=>f.value.reduce((g,{height:v})=>g+v+16,0)),p=A(()=>f.value[f.value.length-1]?.height||0);function m(g){return f.value.slice(g+1).reduce((v,{height:b})=>v+b+16,0)}return(g,v)=>(V(),te(C(Epe),we({"swipe-direction":a.value},C(o)),{default:ne(()=>[le(g.$slots,"default"),(V(!0),Ae(mt,null,Vl(C(n),(b,_)=>(V(),te(Ibe,we({key:b.id,ref_for:!0,ref_key:"refs",ref:f,progress:e.progress},{ref_for:!0},C(lF)(b,["id","close"]),{close:b.close,"data-expanded":d.value,"data-front":!d.value&&_===C(n).length-1,style:{"--index":_-C(n).length+C(n).length,"--before":C(n).length-1-_,"--offset":m(_),"--scale":d.value?"1":"calc(1 - var(--before) * var(--scale-factor))","--translate":d.value?"calc(var(--offset) * var(--translate-factor))":"calc(var(--before) * var(--gap))","--transform":"translateY(var(--translate)) scale(var(--scale))"},class:l.value.base({class:[t.ui?.base,b.onClick?"cursor-pointer":void 0]}),"onUpdate:open":y=>c(y,b.id),onClick:y=>b.onClick&&b.onClick(b)}),null,16,["progress","close","data-expanded","data-front","style","class","onUpdate:open","onClick"]))),128)),H(C(Npe),Ar(Us(C(i))),{default:ne(()=>[H(C(Fpe),{"data-expanded":d.value,class:Et(l.value.viewport({class:[t.ui?.viewport,t.class]})),style:io({"--scale-factor":"0.05","--translate-factor":e.position?.startsWith("top")?"1px":"-1px","--gap":e.position?.startsWith("top")?"16px":"-16px","--front-height":`${p.value}px`,"--height":`${h.value}px`}),onMouseenter:v[0]||(v[0]=b=>u.value=!0),onMouseleave:v[1]||(v[1]=b=>u.value=!1)},null,8,["data-expanded","class","style"])]),_:1},16)]),_:3},16,["swipe-direction"]))}}),Nbe=Object.assign(Lbe,{__name:"UToaster"});function Dbe(){const e=cs([]),t=(c,u)=>{const{props:d,defaultOpen:f,destroyOnClose:h}=u||{},p=jn({id:Symbol(""),isOpen:!!f,component:nd(c),isMounted:!!f,destroyOnClose:!!h,originalProps:d||{},props:{...d}});return e.push(p),{...p,open:m=>n(p.id,m),close:m=>r(p.id,m),patch:m=>i(p.id,m)}},n=(c,u)=>{const d=a(c);return u?d.props={...d.originalProps,...u}:d.props={...d.originalProps},d.isOpen=!0,d.isMounted=!0,{id:c,isMounted:d.isMounted,isOpen:d.isOpen,result:new Promise(f=>d.resolvePromise=f)}},r=(c,u)=>{const d=a(c);d.isOpen=!1,d.resolvePromise&&(d.resolvePromise(u),d.resolvePromise=void 0)},s=()=>{e.forEach(c=>
1590r(c.id))},o=c=>{const u=a(c);if(u.isMounted=!1,u.destroyOnClose){const d=e.findIndex(f=>f.id===c);e.splice(d,1)}},i=(c,u)=>{const d=a(c);d.props={...d.props,...u}},a=c=>{const u=e.find(d=>d.id===c);if(!u)throw new Error("Overlay not found");return u};return{overlays:e,open:n,close:r,closeAll:s,create:t,patch:i,unmount:o,isOpen:c=>a(c).isOpen}}const Mbe=F5(Dbe),$be={__name:"UOverlayProvider",setup(e){const{overlays:t,unmount:n,close:r}=Mbe(),s=A(()=>t.filter(a=>a.isMounted)),o=a=>{r(a),n(a)},i=(a,l)=>{r(a,l)};return(a,l)=>(V(!0),Ae(mt,null,Vl(s.value,c=>(V(),te(bo(c.component),we({key:c.id},{ref_for:!0},c.props,{open:c.isOpen,"onUpdate:open":u=>c.isOpen=u,onClose:u=>i(c.id,u),"onAfter:leave":u=>o(c.id)}),null,16,["open","onUpdate:open","onClose","onAfter:leave"]))),128))}},Fbe={name:"App"},Ube=Object.assign(Fbe,{props:{tooltip:{type:Object,required:!1},toaster:{type:[Object,null],required:!1},locale:{type:null,required:!1},portal:{type:null,required:!1,default:"body"},scrollBody:{type:[Boolean,Object],required:!1},nonce:{type:String,required:!1}},setup(e){const t=e,n=Ed(vc(t,"scrollBody")),r=us(()=>t.tooltip),s=us(()=>t.toaster),o=us(()=>t.locale);Zn(cF,o);const i=us(()=>t.portal);return Zn(c1,i),(a,l)=>(V(),te(C(Mhe),we({"use-id":()=>Zh(),dir:o.value?.dir,locale:o.value?.code},C(n)),{default:ne(()=>[H(C(Bpe),Ar(Us(r.value)),{default:ne(()=>[e.toaster!==null?(V(),te(Nbe,Ar(we({key:0},s.value)),{default:ne(()=>[le(a.$slots,"default")]),_:3},16)):le(a.$slots,"default",{key:1}),H($be)]),_:3},16)]),_:3},16,["use-id","dir","locale"]))}}),Bbe=Object.assign(Ube,{__name:"UApp"}),Vbe=function(){return null},Zd=e=>typeof e=="string"?e:null,jbe=()=>{const e=Pr(),t=na(),n=yp(),r=UG(),s=vt(MS,G(null)),o=A(()=>s.value??r.value),i=vt(l$,G(void 0)),a=A(()=>{if(i.value)return i.value;if(typeof e.query.checkoutSession!="string")return Zd(e.query.user)??void 0});B1(()=>{hce(a);const l=t.data.value;ds.setGlobalContext({customer_action_metadata:{access_source:Zd(e.query.accessSource),sent_by:Zd(e.query.sentBy),interaction_esid:Zd(e.query.interactionEsid),trigger_source:Zd(e.query.triggerSource)},is_in_iframe:!!n.value,flow:o.value,country:l?.country_iso??null}),l?.id_organization&&ds.setAccount({id:l.id_organization,name:l.organization_name}),be(o,c=>ds.setGlobalContextProperty("flow",c))})},Hbe=oe({__name:"app",setup(e){const t=na();jbe();const{t:n}=uc(),r=n("meta.titleTemplate",{organizationName:t.data.value?.client_name}),s=n("meta.descriptionTemplate",{organizationName:t.data.value?.client_name}),o=A(()=>t.data.value?.html_attributes?.title),i=A(()=>t.data.value?.html_attributes?.description),a=Or(),l=A(()=>{const p=t.data.value?.favicon_id??t.data.value?.logo_id??t.data.value?.id_organization;return p?`https://storage.googleapis.com/${a.public.imgBucketPath}/icon/${p}.png`:"/favicon.ico"}),{textColorPrimary:c,inputBorderRadius:u,ctaBorderRadius:d}=n_(),f=A(()=>t.data.value?eF({colors:{primary:{main:t.data.value.button_color},gray:{main:c.value}},typography:{color:c.value,buttonTextColor:t.data.value.button_text_color},button:{borderRadius:d.value},input:{borderRadius:u.value},parseMarkdown:!0}):hk);return Qv({title:o.value??r,meta:[{name:"description",content:i.value??s},{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"}],titleTemplate:null,link:[{rel:"icon",type:"image/png",id:"favicon",href:l.value||"/favicon.ico"}]}),(h,p)=>{const m=dhe,g=_he,v=gye,b=Bbe;return V(),Ae(mt,null,[H(C(Vbe)),H(b,null,{default:ne(()=>[H(C(aye),{theme:C(f)},{default:ne(()=>[H(g,null,{default:ne(()=>[H(m)]),_:1}),H(v)]),_:1},8,["theme"])]),_:1})],64)}}}),zbe={class:"t-separator"},qbe=oe({__name:"TSeparator",setup(e){sd(n=>({ec81adaa:C(t).colors.gray.light1}));const t=Nt();return(n,r)=>(V(),Ae("hr",zbe))}}),Cd=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Wbe=Object.assign(Cd(qbe,[["__scopeId","data-v-68628f84"]]),{__name:"TSeparator"}),Kbe=["width","height","viewBox"],Gbe=["fill"],Ybe=["fill"],Xbe=["fill"],Qbe=["fill"],Zbe=["fill"],Jbe=oe({__name:"TokuLogo",props:{color:{default:"#373737"},width:{default:40},height:{default:10}},setup(e){return(t,n)=>(V(),Ae("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ft("path",{d:"M11.2227 4.09536V0.101685H13.2882V2.23321H15.8776V4.05287H13.2882V6.6974C13.2882 7.53717 13.7822 7.92632 14.5456 7.92632C14.9347 7.92632 15.3537 7.83321 15.7578 7.72384L16.0272 9.57468C15.1589 9.85491 14.7698 9.91683 14.0963 9.91683C12.3603 9.91683 11.2227 8.64135 11.2227 6.71276V4.09491V4.09536Z",fill:e.color},null,8,Gbe),Ft("path",{d:"M23.8103 5.96609C23.8103 8.23682 22.1935 9.91682 19.9933 9.91682C17.7931 9.91682 16.147 8.23682 16.147 5.96609C16.147 3.69535 17.7782 2.07727 19.9933 2.07727C22.2084 2.07727 23.8103 3.71027 23.8103 5.96609ZM21.7578 6.06643C21.8008 4.91388 21.1034 4.00631 19.9938 4.00631C18.8841 4.00631 18.1976 4.86191 18.1976 5.96609C18.1976 6.97445 18.7675 7.80609 19.6783 7.96202C20.7675 8.14869 21.7153 7.21264 21.7578 6.06643Z",fill:e.color},null,8,Ybe),Ft("path",{d:"M26.6996 8.14283L27.8526 6.88272L29.7527 9.68181H32.3724L29.2736 5.31119L32.0542 2.23141H29.4698L26.6996 5.32837V0H24.6191V9.68181H26.6996V8.14283Z",fill:e.color}
1590,null,8,Xbe),Ft("path",{d:"M39.8106 6.3209V2.23773H37.7266V6.18621C37.7266 7.05807 37.04 7.79254 36.2011 7.77581C35.388 7.75954 34.734 7.06982 34.734 6.22101V2.23773H32.6676C32.6581 2.23773 32.6504 2.24587 32.6504 2.25536V6.3209C32.6504 8.35299 34.2355 10 36.1907 10H36.2703C38.2255 10 39.8106 8.35254 39.8106 6.32045",fill:e.color},null,8,Qbe),Ft("path",{d:"M4.72226 5.00747V0.101257H0C0 2.81132 2.1139 5.00838 4.72136 5.00883H0C0 7.71934 2.11435 9.9164 4.72226 9.9164C7.33017 9.9164 9.44453 7.71934 9.44453 5.00883V0.101257C6.83707 0.101257 4.72317 2.29787 4.72226 5.00747ZM7.52859 3.64838C7.15164 3.64838 6.84565 3.33064 6.84565 2.93877C6.84565 2.54691 7.15119 2.22917 7.52859 2.22917C7.90599 2.22917 8.21153 2.54691 8.21153 2.93877C8.21153 3.33064 7.90554 3.64838 7.52859 3.64838Z",fill:e.color},null,8,Zbe)],8,Kbe))}}),e0e=Object.assign(Jbe,{__name:"TokuLogo"}),t0e=""+new URL("pci-dss-compliant.DjE-nLkL.png",import.meta.url).href,n0e={ref:"container-div",class:"t-card-container"},r0e={class:"t-card-container__main-box"},s0e={class:"t-card-container__main-box-container"},o0e={key:0,class:"t-card-container__secure-info-container"},i0e={class:"t-card-container__secure-info-text-container"},a0e={key:1,class:"t-card-container__powered-by-container"},l0e={key:2,class:"t-card-container__pci-badge-container","data-testid":"t-card-container-pci-badge"},c0e=["src","alt"],u0e=oe({__name:"TCardContainer",props:{secureInfoDisclaimerLink:{},showSecureInfo:{type:Boolean,default:!0},showPoweredBy:{type:Boolean,default:!0},showPciComplianceBadge:{type:Boolean,default:!1}},setup(e,{expose:t}){sd(a=>({v45fc83f5:C(n).colors.gray.light1,v2305ca88:C(i)}));const n=Nt(),{isMobile:r}=q_(),s=U1("container-div");t({containerRef:s});const{displayBaseCheckoutShadows:o}=n_(),i=A(()=>o.value?"3px 3px 20px 0 rgb(38 50 56 / 10%)":"none");return(a,l)=>(V(),Ae("div",n0e,[le(a.$slots,"header",{},void 0,!0),Ft("div",r0e,[Ft("div",s0e,[le(a.$slots,"default",{},void 0,!0)])]),e.showSecureInfo?(V(),Ae("div",o0e,[H(C(Js),{icon:"shield-check",color:"inProcess",size:"extra-large",class:"t-card-container__secure-info-icon"}),Ft("div",i0e,[H(C(is),{variant:C(r)?"b4":"b3",class:"t-card-container__secure-info-text"},{default:ne(()=>[gt(at(a.$t("checkout.secureInfo.disclaimer"))+" ",1),e.secureInfoDisclaimerLink?(V(),Ae(mt,{key:0},[gt(at(a.$t("checkout.secureInfo.disclaimerWithLink.main"))+" ",1),H(C($_e),{href:e.secureInfoDisclaimerLink,target:"_blank",class:"t-card-container__secure-info-link",size:"small"},{default:ne(()=>[gt(at(a.$t("checkout.secureInfo.disclaimerWithLink.clickHereLabel")),1)]),_:1},8,["href"])],64)):(V(),Ae(mt,{key:1},[],64))]),_:1},8,["variant"])])])):Ce("",!0),e.showPoweredBy?(V(),Ae("div",a0e,[H(C(is),{class:"t-card-container__powered-by-text",variant:"b4","font-weight":"semibold"},{default:ne(()=>[gt(at(a.$t("common.poweredBy")),1)]),_:1}),H(e0e,{color:C(n).colors.gray.light1},null,8,["color"])])):Ce("",!0),e.showPciComplianceBadge?(V(),Ae("div",l0e,[Ft("img",{class:"t-card-container__pci-badge",src:C(t0e),alt:a.$t("checkout.secureInfo.pciBadgeAlt"),loading:"lazy"},null,8,c0e)])):Ce("",!0)],512))}}),d0e=Object.assign(Cd(u0e,[["__scopeId","data-v-43e9e23e"]]),{__name:"TCardContainer"}),f0e={class:"t-card-info__header"},h0e={class:"t-card-info__action-buttons"},p0e=oe({__name:"TCardInfo",props:{title:{},message:{}},setup(e){const{isMobile:t}=q_();return(n,r)=>{const s=Wbe,o=d0e;return V(),te(o,{class:"t-card-info"},{default:ne(()=>[Ft("div",f0e,[le(n.$slots,"icon",{},void 0,!0),H(C(is),{as:"h1",variant:C(t)?"b3":"s3","font-weight":"semibold"},{default:ne(()=>[gt(at(e.title),1)]),_:1},8,["variant"]),H(s,{class:"t-card-info__separator"})]),H(C(is),{variant:"b3"},{default:ne(()=>[gt(at(e.message),1)]),_:1}),Ft("div",h0e,[le(n.$slots,"buttons",{},void 0,!0)]),le(n.$slots,"additionalContent",{},void 0,!0)]),_:3})}}}),m0e=Object.assign(Cd(p0e,[["__scopeId","data-v-e670410f"]]),{__name:"TCardInfo"}),g0e=oe({__name:"TError",props:{name:{},message:{},isInfoError:{type:Boolean},primaryButton:{},secondaryButton:{}},setup(e){return(t,n)=>{const r=ZN;return V(),te(m0e,{title:e.name,message:e.message},sO({icon:ne(()=>[e.isInfoError?(V(),te(C(Js),{key:0,icon:"information-circle",size:"extra-large",color:"info"})):(V(),te(C(Js),{key:1,icon:"x-circle",size:"extra-large",color:"error"}))]),additionalContent:ne(()=>[le(t.$slots,"additionalContent")]),_:2},[e.primaryButton||e.secondaryButton&&!e.isInfoError?{name:"buttons",fn:ne(()=>[e.primaryButton?(V(),te(C(w1),{key:0,"full-width":"",variant:"primary",onClick:e.primaryButton.onClick},{default:ne(()=>[gt(at(e.primaryButton.text),1)]),_:1},8,["onClick"])):Ce("",!0),e.secondaryButton?(V(),te(r,{key:1,to:e.secondaryButton.link.to,external:e.secondaryButton.link.external??!1},{default:ne(()=>[H(C(w1),{variant:"secondary","full-width":""},{default:ne(()=>[gt(at(e.secondaryButton.text),1)]),_:1})]),_:1},8,["to","external"])):Ce("",!0)]),key:"0"}:void 0]),1032,["title","message"])}}}),v0e=Object.assign(g0e,{__name:"TError"}),_0e=()=>dr("externalTransactionRequestHeaderButton",()=>({isVisible:!1,onClick:null})),y0e={class:"base-header base-header--content-aligned"},b0e={class:"base-header__inner"},w0e=["data-header-redirect"],S0e={key:2,class:"base-header__divider"},E0e={key:3,class:"base-header__user"},k0e=oe({__name:"BaseHeader",props:{logoSrc:{},backgroundColor:{default:"#FFFFFF"},asideTextColor:{default:"#373737"},redirectUrl:{default:"/"},resolveRedirectUrl:{type:Function},onLogoClick:{type:Function},customerDetails:{}},setup(e){sd(d=>({v383a2b8c:d.backgroundColor,v7c75184e:d.asideTextColor,v5fe752ab:C(r)}));const{isDesktop:t}=q_(),n=Nt(),r=A(()=>n.value.button.borderRadius);async function s(){if(e.onLogoClick){await e.onLogoClick();return}const d=e.resolveRedirectUrl?e.resolveRedirectUrl():e.redirectUrl;if(!(!d||d==="#")){if(/^https?:\/\//i.test(d)){await xr(d,{external:!0});return}await xr(d)}}const o=A(()=>e.customerDetails?.name),i=A(()=>e.customerDetails?.governmentId),a=A(()=>e.customerDetails?.externalId),l=A(()=>!!(o.value||i.value||a.value)),c=_0e(),u=()=>{c.value.onClick?.()};return(d,f)=>{const h=yF,p=GG;return V(),Ae("header",y0e,[Ft("div",b0e,[e.logoSrc?(V(),Ae("button",{key:0,t
1590ype:"button",class:"base-header__logo-link","data-testid":"header-logo","data-header-redirect":e.redirectUrl,onClick:s},[H(h,{class:"base-header__logo",alt:"Logo",src:e.logoSrc},null,8,["src"])],8,w0e)):Ce("",!0),H(p,null,{default:ne(()=>[C(l)||C(c).isVisible?(V(),Ae("div",{key:0,class:Et(["base-header__right",C(t)?"base-header__right--desktop":"base-header__right--mobile"])},[C(c).isVisible&&C(t)?(V(),te(C(w1),{key:0,class:"base-header__external-transaction-request-btn",variant:"tertiary",size:"small","left-icon":"megaphone","data-testid":"header-external-transaction-request-button",onClick:u},{default:ne(()=>[gt(at(d.$t("customerPortal.externalTransactionRequest.entryButton")),1)]),_:1})):C(c).isVisible?(V(),te(C(N_e),{key:1,class:"base-header__external-transaction-request-btn",variant:"tertiary",size:"small",icon:"megaphone","data-testid":"header-external-transaction-request-button","aria-label":d.$t("customerPortal.externalTransactionRequest.entryButton"),onClick:u},null,8,["aria-label"])):Ce("",!0),C(t)&&C(l)?(V(),Ae("div",S0e)):Ce("",!0),C(t)&&C(l)?(V(),Ae("div",E0e,[C(o)?(V(),te(C(is),{key:0,class:"base-header__user-text",variant:"b3","font-weight":"semibold"},{default:ne(()=>[gt(at(C(o)),1)]),_:1})):Ce("",!0),C(i)||C(a)?(V(),te(C(is),{key:1,class:"base-header__user-text",variant:"b3","font-weight":C(o)?"regular":"semibold"},{default:ne(()=>[gt(at(C(i)||C(a)),1)]),_:1},8,["font-weight"])):Ce("",!0)])):!C(t)&&(C(o)||C(i)||C(a))?(V(),te(C(is),{key:4,class:"base-header__user-text",variant:"b3","font-weight":"semibold"},{default:ne(()=>[gt(at(C(o)||C(i)||C(a)),1)]),_:1})):Ce("",!0)],2)):Ce("",!0)]),_:1})])])}}}),x0e=Object.assign(Cd(k0e,[["__scopeId","data-v-a7da50a8"]]),{__name:"BaseHeader"}),T0e={class:"iframe-layout"},C0e=oe({__name:"IframeLayout",setup(e){sd(n=>({v5b31a9b6:C(t)}));const{backgroundColor:t}=n_();return Ut(()=>{document.documentElement.style.backgroundColor=t.value,document.documentElement.classList.add("iframe-empty-shell"),document.body.classList.add("iframe-empty-shell")}),Oo(()=>{document.documentElement.style.backgroundColor="unset",document.documentElement.classList.remove("iframe-empty-shell"),document.body.classList.remove("iframe-empty-shell")}),(n,r)=>(V(),Ae("div",T0e,[le(n.$slots,"default",{},void 0,!0)]))}}),A0e=Object.assign(Cd(C0e,[["__scopeId","data-v-0fc336c4"]]),{__name:"IframeLayout"}),R0e=oe({__name:"ContentWidthWrapper",props:{maxWidth:{default:"31.25rem"}},setup(e){return(t,n)=>(V(),Ae("div",{style:io({width:"100%",maxWidth:e.maxWidth})},[le(t.$slots,"default")],4))}}),I0e=Object.assign(R0e,{__name:"ContentWidthWrapper"}),O0e={key:1,class:"layout"},P0e=oe({__name:"LayoutBase",props:{backgroundColor:{},asideTextColor:{},logoSrc:{},redirectUrl:{},resolveRedirectUrl:{type:Function},customer:{},onLogoClick:{type:Function}},setup(e){sd(i=>({v726fda18:C(s)}));
1590const t=e,n=yp(),{iframeContentMaxWidth:r,backgroundColor:s}=n_(),o=A(()=>t.customer?{name:t.customer.name,governmentId:t.customer.governmentId,externalId:t.customer.externalId}:void 0);return(i,a)=>{const l=x0e;return C(n)&&C(r)?(V(),te(A0e,{key:0},{default:ne(()=>[le(i.$slots,"default",{},void 0,!0)]),_:3})):(V(),Ae("div",O0e,[C(n)?Ce("",!0):(V(),te(l,{key:0,"background-color":t.backgroundColor,"aside-text-color":t.asideTextColor,"logo-src":t.logoSrc,"redirect-url":t.redirectUrl,"resolve-redirect-url":t.resolveRedirectUrl,"customer-details":C(o),"on-logo-click":t.onLogoClick},null,8,["background-color","aside-text-color","logo-src","redirect-url","resolve-redirect-url","customer-details","on-logo-click"])),Ft("main",null,[H(I0e,null,{default:ne(()=>[le(i.$slots,"default",{},void 0,!0)]),_:3})])]))}}}),L0e=Object.assign(Cd(P0e,[["__scopeId","data-v-6bad2b15"]]),{__name:"LayoutBase"}),N0e=(e,t,n)=>{const{data:r}=na(),s=Or(),o=Pr(),i=O_(),a=A(()=>{const f=r.value?.logo_id??i.value;return f?`https://storage.googleapis.com/${s.public.imgBucketPath}/logo/${f}.webp`:""}),l=A(()=>{const f=r.value?.default_return_url;return f&&f!=="/"&&f!=="#"?f:"/"}),c=()=>{const f=r.value?.default_return_url;if(f==="#")return o.fullPath;if(f&&f!=="/")return f;const h=Je(e);if(h){const p=Je(t)||"0",m=Je(n)??Fm(o.query.sessionId),g=m?`&sessionId=${encodeURIComponent(m)}`:"";return`/customer-portal?user=${h}&portal=${p}${g}`}return"/"},u=A(()=>r.value?.color??"#FFFFFF"),d=A(()=>r.value?.aside_text_white?"#FFFFFF":"#373737");return{backgroundColor:u,asideTextColor:d,logoSrc:a,redirectUrl:l,resolveRedirectUrl:c}},D0e=oe({__name:"error",props:{error:{}},setup(e){const{backgroundColor:t,asideTextColor:n,logoSrc:r,redirectUrl:s,resolveRedirectUrl:o}=N0e(),{t:i}=uc(),a=e;console.error(a.error);const l=A(()=>!!(a.error.data?.custom??!1)),c=A(()=>l.value&&a.error.message?a.error.message:i("common.unexpectedError.message"));return(u,d)=>{const f=v0e,h=L0e;return V(),te(h,{"background-color":C(t),"aside-text-color":C(n),"logo-src":C(r),"redirect-url":C(s),"resolve-redirect-url":C(o)},{default:ne(()=>[H(f,{name:u.$t("common.unexpectedError.title"),message:C(c)},null,8,["name","message"])]),_:1},8,["background-color","aside-text-color","logo-src","redirect-url","resolve-redirect-url"])}}}),M0e={key:0},fI={__name:"nuxt-root",setup(e){const t=()=>null,n=De(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r);Hn().beforeEach(c)}const s=!1;Zn(zl,Pr()),n.hooks.callHookWith(c=>c.map(u=>u()),"vue:setup");const o=Yv(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;j1((c,u,d)=>{if(n.hooks.callHook("vue:error",c,u,d).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(OP(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>_l(c)),!1});const l=!1;return(c,u)=>(V(),te(Wv,{onResolve:C(r)},{default:ne(()=>[C(i)?(V(),Ae("div",M0e)):C(o)?(V(),te(C(D0e),{key:1,error:C(o)},null,8,["error"])):C(l)?(V(),te(C(t),{key:2,context:C(l)},null,8,["context"])):C(s)?(V(),te(bo(C(s)),{key:3})):(V(),te(C(Hbe),{key:4}))]),_:1},8,["onResolve"]))}};let hI;{let e;hI=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?eS(fI):vg(fI),s=X4({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=Mi(i)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&fx.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(fx.id)?.remove()});try{await J4(s,che)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(K4),await s.hooks.callHook("app:mounted",r),await Lt()}catch(i){o(i)}return r},e=hI().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{is as $,gt as A,at as B,et as C,p_e as D,xr as E,WO as F,EE as G,p4 as H,Cd as I,Nt as J,q_ as K,Pr as L,mt as M,Kwe as N,$_e as O,d0e as P,Et as Q,Vl as R,we as S,e0e as T,vt as U,Hv as V,le as W,w1 as X,Zn as Y,Js as Z,n1e as _,sd as a,ds as a$,Wwe as a0,N_e as a1,Xv as a2,MP as a3,F0e as a4,Mi as a5,Mg as a6,WW as a7,CS as a8,qW as a9,Nwe as aA,n_ as aB,Wle as aC,_s as aD,ace as aE,dr as aF,V0e as aG,t1e as aH,Hn as aI,Qp as aJ,PV as aK,jn as aL,qn as aM,Qwe as aN,Xwe as aO,Twe as aP,O_ as aQ,Fm as aR,Ule as aS,uwe as aT,yP as aU,lce as aV,Rf as aW,Ao as aX,jwe as aY,Zwe as aZ,gwe as a_,N0e as aa,U1 as ab,GG as ac,ku as ad,Moe as ae,Gwe as af,Ywe as ag,e1e as ah,io as ai,GN as aj,Qv as ak,I0e as al,Pwe as am,v0e as an,mwe as ao,Mwe as ap,d_e as aq,c_e as ar,zwe as as,Wbe as at,NS as au,tl as av,sge as aw,QN as ax,sO as ay,Vwe as az,C as b,o$ as b$,vwe as b0,Je as b1,a$ as b2,Or as b3,pwe as b4,Ih as b5,s$ as b6,Oo as b7,bo as b8,nd as b9,dwe as bA,wb as bB,the as bC,VL as bD,lc as bE,nP as bF,Xde as bG,_0e as bH,qle as bI,Dwe as bJ,Xh as bK,mF as bL,yF as bM,ce as bN,At as bO,dn as bP,Sh as bQ,Be as bR,Gle as bS,j1 as bT,Ar as bU,c_ as bV,Ms as bW,B0e as bX,_i as bY,Wv as bZ,oO as b_,Lt as ba,Gve as bb,XP as bc,Qh as bd,ZN as be,Yr as bf,qe as bg,us as bh,ai as bi,EU as bj,kU as bk,Fv as bl,fg as bm,_l as bn,pt as bo,eN as bp,JL as bq,Hwe as br,_he as bs,Jwe as bt,UG as bu,cwe as bv,Ble as bw,e$ as bx,lwe as by,fwe as bz,A as c,gg as c$,l_ as c0,DS as c1,G0e as c2,e6 as c3,ywe as c4,bwe as c5,kE as c6,xE as c7,Qde as c8,yp as c9,g6 as cA,Dn as cB,oc as cC,JU as cD,$we as cE,Uwe as cF,Fwe as cG,Us as cH,Bwe as cI,yv as cJ,a3 as cK,pn as cL,l3 as c
1590M,rk as cN,epe as cO,Ed as cP,V_ as cQ,ok as cR,v3 as cS,i1 as cT,F5 as cU,Lr as cV,Ir as cW,vc as cX,T3 as cY,cc as cZ,zle as c_,t0e as ca,jh as cb,Rwe as cc,Iwe as cd,Lwe as ce,Zw as cf,gv as cg,xwe as ch,Swe as ci,Ewe as cj,Awe as ck,kwe as cl,wwe as cm,Ya as cn,cs as co,Cwe as cp,r$ as cq,oce as cr,kG as cs,oC as ct,H0e as cu,j0e as cv,$G as cw,td as cx,_c as cy,wn as cz,oe as d,owe as d$,ad as d0,ir as d1,$g as d2,MN as d3,rt as d4,eF as d5,m0e as d6,qwe as d7,U0e as d8,Owe as d9,PC as dA,nwe as dB,RC as dC,Nu as dD,yd as dE,du as dF,on as dG,TD as dH,Rs as dI,Tr as dJ,pD as dK,Yi as dL,Y0e as dM,tn as dN,Jt as dO,_t as dP,Oe as dQ,nr as dR,v_ as dS,eE as dT,aD as dU,xn as dV,AM as dW,swe as dX,ud as dY,bt as dZ,Eee as d_,_we as da,Sq as db,P6 as dc,t6 as dd,$0e as de,or as df,hwe as dg,yq as dh,x0e as di,A0e as dj,L0e as dk,sce as dl,Yde as dm,Fu as dn,QS as dp,zX as dq,qS as dr,Kt as ds,fp as dt,Uu as du,gd as dv,cM as dw,kD as dx,DY as dy,_d as dz,na as e,yM as e0,See as e1,twe as e2,Ba as e3,_ee as e4,rwe as e5,iwe as e6,aE as e7,awe as e8,Tee as e9,wee as ea,ree as eb,E_ as ec,bM as ed,uE as ee,p_ as ef,md as eg,Cee as eh,Gt as ei,ti as ej,X0e as ek,yZ as el,UJ as em,it as en,GS as eo,J0e as ep,Q0e as eq,Z0e as er,ewe as es,YX as et,Nr as eu,hp as ev,g_ as ew,YN as f,ea as g,uc as h,qG as i,Ut as j,ihe as k,Hb as l,Ae as m,V as n,gs as o,Il as p,H as q,G as r,vn as s,te as t,De as u,Ce as v,be as w,Ft as x,TU as y,ne as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.