1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DKmH-wTi.js","./CdS6o5Ky.js","./V5Qtux6O.js","./ButtonGradient.C3PkPj0w.css","./BR_iR7l0.js","./BYhKJRFf.js","./DqWbNsfg.js","./dOsmCjyt.js","./DemoContainer.CngBsrOc.css","./vROPgKru.js","./DemoCtaButton.B3Za39TI.css","./BRh7WRWr.js","./5bHmfoPx.js","./CUp-KERS.js","./DRfckj7j.js","./CT4hr23E.js","./VOverlay.BKDvxpvl.css","./D_qxKlPu.js","./VTooltip.fSDlaDuf.css","./AudioPlayButton.B3msBcOP.css","./B0zwSITi.js","./D18nMXnv.js","./Coz-6Sd3.js","./BVEqpwZV.js","./VRow.CaFewmds.css","./CZMevSPq.js","./Ccp2rLOF.js","./lB_bmlE9.js","./Dwzeva7V.js","./VTextField.EQu_V7iV.css","./CiqmgyzA.js","./D7CR6nHy.js","./llKh8eKg.js","./VCheckboxBtn.CdaDJBAG.css","./VCheckbox.CvH8ekHL.css","./CdZyVoRz.js","./VOtpInput.BbYFIsyl.css","./yILdSpHw.js","./VSnackbar.aQS2aVjm.css","./tKG4-zS1.js","./MNxAeq5E.js","./CE1G-McA.js","./urCmEBAh.js","./Dpe2ffNy.js","./B7YB9FgE.js","./C5xGkl0z.js","./CEo0CBPd.js","./VImg.3DQfrNoh.css","./VAvatar.zPcHPbJ5.css","./VCard.BfAN-NMn.css","./-q-hBlvW.js","./DuvqfFmA.js","./VDialog.Dk_v9Av4.css","./Bw0KWEvk.js","./VTextarea.C6yB-CbO.css","./pSBBe05r.js","./DoD7zwd3.js","./BKQlJaUW.js","./VList.B_7VInIt.css","./CWosuIBA.js","./VMenu.ADsz2A20.css","./CPjShyP4.js","./VChip.CtpBTrCr.css","./VSelect.C1ghIoIM.css","./TextToSpeechNew.DkmTODXI.css","./D4PMBBRR.js","./DJ8SR0HU.js","./Cqf03kJt.js","./PrimaryButton.BM1ag2dg.css","./BzLCLO6P.js","./useLiveKitAgent.BJs2sz5q.css","./1IxffNtZ.js","./VoiceCloningDemoNew.D0KNhLFv.css","./B619oXnZ.js","./API.m1uaH29h.css","./5EnKVnCF.js","./Dv2sGSy1.js","./DownloadButtons.CGAWCcEK.css","./FAQ.B7A74faH.css","./BuYyK2kJ.js","./Tos.BUWvx6rV.css","./Di8SLnf_.js","./BI2jkENt.js","./BYLETZNS.js","./B2sqyNpT.js","./CbTxSwc4.js","./TagChip.CiQ8uzBf.css","./SectionHeader.BQFx4qx8.css","./Soundboard.-EcbmB7u.css","./tdYgVweT.js","./U63DfZxM.js","./index.9piABbhx.css","./LOL.BEkPpZ1B.css","./CYRUJn-R.js","./OBS.DA5Tykpp.css","./0ZpqyUoX.js","./WOW.XCZF6oUd.css","./B6Iu10Uq.js","./CSGO.Ch9VqkG8.css","./D65v6qDz.js","./PUBG.CR6W-Nwz.css","./sNC6-cr2.js","./Zoom.DPU-m7DF.css","./DTjVv3ie.js","./Skype.C9ffpZik.css","./9z20iceB.js","./Steam.Cel94Lr3.css","./W8r90m2r.js","./Viber.pWlbtWG4.css","./r0njuP7-.js","./Google.XWRDDoXs.css","./B6STZzCy.js","./Twitch.syEzuyq0.css","./D3LXWTbs.js","./AmongUs.Dcq9W_4-.css","./B-WVb8wm.js","./Discord.Cl7AwAsf.css","./B7aYH1cT.js","./Fortnite.V1A0vSMm.css","./YcGvdNeb.js","./Telegram.B-dfFGlB.css","./Da6qV_U5.js","./Valorant.B5oWCJB-.css","./KlQXEIfW.js","./Whatsapp.Dn1jEXyZ.css","./D1sdxWgt.js","./Messenger.m9SrmhAx.css","./WG-JIPYI.js","./Minecraft.pZtiCXl1.css","./fHmAURkQ.js","./Teamspeak.CvAVDCAJ.css","./fA9WIfdY.js","./Steps.CHQhPiZg.css","./NWohMWg-.js","./LandingTitle.YLD9BGoU.css","./Dg3Nv00z.js","./DBv8Dd-J.js","./roaFGmG2.js","./VAlert.CBy2hEmU.css","./Jobs.x5PuCx2l.css","./BXBP5zmK.js","./DBf3FSds.js","./LP1ON_6B.js","./Ethics.DD6qEMmX.css","./BN1rUwaV.js","./AiVoice.CP48YkNq.css","./DsMj2B8D.js","./Contact.D2Zd5YvO.css","./C_kLNMeC.js","./Credits.aYHk8YZw.css","./Cw1c9kxg.js","./PhoneAi.CcnHBKTu.css","./Dg5ZUC6T.js","./BusinessPhonePlan.GwL3iL0y.css","./Bu3o6Y7p.js","./HotelAnsweringService.D3Jre-BS.css","./BYfzgzc8.js","./LegalAnsweringService.C2HFQRSx.css","./-8pdxO2Z.js","./AiPhoneAnsweringService.iZgUo5qq.css","./B0sxXPwQ.js","./HvacCallAnsweringService.DYLMWRnR.css","./D98Yj2a0.js","./FinancialAnsweringService.BdGB8sl_.css","./BoSuiAaZ.js","./AccountingAnsweringService.DyxdZQwq.css","./B1c3g4t6.js","./ContractorAnsweringService.CtnS4fvy.css","./vHSXbyt5.js","./RealEstateAnsweringService.r3OK2EMD.css","./BPD5bFQD.js","./HospitalityAnsweringService.CMkrkG1K.css","./EU09ZCW2.js","./ConstructionAnsweringService.aZCxzALn.css","./BCGMircW.js","./AutomatedPhoneAnsweringService.BWWfVLId.css","./D2gWGZce.js","./RealEstateCallAnsweringService.MuuuYDwr.css","./IN1w9ztp.js","./AppointmentSettingAnsweringService.DAw73jmR.css","./_R-z92oe.js","./DaC5-A1T.js","./Privacy.CVaYxBkJ.css","./C7-A9qsE.js","./B2uf73WT.js","./WavePlayer.B4TNYhGa.css","./API.DfXwC_kT.css","./Demo.DB4NSJFX.css","./TtsDemo.zLRggQsy.css","./CEoZpsih.js","./Ij6t5zj0.js","./TwoCtas.eV8EYCkW.css","./HomeNew2.Jivue_pl.css","./DRMPLeFZ.js","./Register.Cf8biRoQ.css","./Ua99sjMP.js","./Affiliate.NdoYhUi9.css","./B2RktsRe.js","./B_MlkEDC.js","./D6a2_4T1.js","./useDeepLinking.DnRmCDFp.css","./CGrKJTSe.js","./AlertsModal.Dt-JNSUf.css","./BrX8u1rM.js","./BeZ4Q9VJ.js","./BRb1dums.js","./PaywallModal707.DJW7f3U6.
1css","./q7zjSbwk.js","./VApp.5sh4-81E.css","./znWeS1jJ.js","./VMain.BIPNqcQO.css","./Halloween.CyggiBnc.css","./CoYoJRRv.js","./BLiz71r8.js","./PC.DG475pMX.css","./Ck8oUGzj.js","./Mac.YLmcuFL-.css","./C-Avwx47.js","./DMCAPolicy.mWgJXzqJ.css","./DoQqQNm4.js","./Bfss0IEz.js","./GetVoiceai.hMmDdgo8.css","./kP3jOMq7.js","./Reactivate.DNgezZ6M.css","./Cu3lGJl6.js","./Soundboard.DSO5r0wZ.css","./BdPodHIh.js","./BlackFriday.DcbhiwQC.css","./DKpdI-CA.js","./AffiliateTos.ClPQ-MvH.css","./DtF8Jm6t.js","./ContactSales.CVkZ2JHX.css","./CppJgJvZ.js","./CqgF3rQr.js","./RefundPolicy.D8AVgnFh.css","./CD8xs0cL.js","./Chbs4CTe.js","./DiscoverArrow.h9KeKShy.css","./UseCases.BYWrdif0.css","./BDTHUsbF.js","./DAWSHhXF.js","./u_EstZte.js","./VoiceAiPhone.DNyjTHu3.css","./D-3NFSIh.js","./BCZQbPoL.js","./FAQ.BFXqFMUt.css","./VoiceCloning.CrzLBM3W.css","./UWIPnTEL.js","./AiVoiceAgents.FF9jbE-j.css","./-JZ18piw.js","./rbAk9K6x.js","./FAQ.cJTMBFeJ.css","./Ecommerce.C2oNjrN-.css","./CPEs5e0b.js","./ChristmasSale.kTu0V8Ia.css","./hNXuE0Rr.js","./RedirectLogin.CqYWr-zk.css","./gIQ6jzLC.js","./ResetPassword.aqsviGif.css","./CzAhggNq.js","./SupportedApps.DaYStMRm.css","./DHxEpla8.js","./VoiceAiPhone1.C6ebkJKG.css","./D2Y0ivwa.js","./VoiceAiPhone2.CfVUROLJ.css","./cVxN3xFf.js","./VoiceAiPhone3.iwI8q_3Y.css","./BBkFIWMz.js","./VoiceUniverse.eY2BIZFM.css","./D46hzMwr.js","./D7vu6ntv.js","./VxtkBQwa.js","./AiVoiceChanger.0j6D3z5p.css","./Cn_tlZBx.js","./BGQLF3kl.js","./DGGiBzZU.js","./Bvn26P7F.js","./BTmcFulE.js","./Enterprise.B7mor5G3.css","./snpD9_0w.js","./Publishing.DNYTs6EE.css","./CFshISAn.js","./AccountSettings.bGJ6ArN3.css","./CP6YRVTF.js","./ShareConversion.BJKBLAnM.css","./DRRIvb3k.js","./AiVoiceAgentsNew.CM5EYljU.css","./44Cryiew.js","./TtsIframe.DtyWBbrO.css","./DEs17HZD.js","./DownloadInstaller.WnO0c3hU.css","./BhwBVo_p.js","./TTSEnterprise.Ca16cc4P.css","./DCR8ydmk.js","./BrandingGuidelines.nOifLEv8.css","./CDRPLXJc.js","./SupportedPlatforms.8wUhUXB1.css","./C5vx8orS.js","./BDGmmbxW.js","./BYtfuQUX.js","./DragAndDropFile.Dgk81AQW.css","./BTkNA4K1.js","./CnFiGXki.js","./BpmFinder.B7oKLspv.css","./DL-R2_VC.js","./SocialLoginCallback.CR0QJBqp.css","./CGgpADI_.js","./TtsDemoIframe.Bgo4k8bZ.css","./CVABEIZx.js","./ConversationalAI.DiSfG6Ol.css","./CKQxkeL-.js","./B-_hPc0h.js","./QualityDropdown.UumhYiF4.css","./CdIhKPsQ.js","./C3kE5Hai.js","./C0SBhkZ9.js","./DXDqyAG5.js","./B6aY91zj.js","./AudioRecorder.yOSZ1XKE.css","./VoiceChanger.BTqFoM5b.css","./Q-ninzWo.js","./BOQP8Gqw.js","./p_Z3DZzO.js","./VoiceRecorder.CpcEk2l2.css","./BG5BUV--.js","./CpKFQgDv.js","./MediaAndEntertainment.DN6e8qzS.css","./FZuIwjAT.js","./WebTools.CxbVXUqR.css","./32MGLpSf.js","./icaZBxjn.js","./BDbwwlGq.js","./CnCspQkN.js","./FAQSection.5TLE-_xz.css","./VocalRemoverFooter.ZaI4ul1x.css","./BawqYuS0.js","./Can3c2a1.js","./BgTMY_Yk.js","./CWS0B0-U.js","./Dm0_YpQz.js","./C8BkFxwi.js","./uaYhl6QF.js","./DmmEtqXd.js","./BZz8jOHB.js","./DMGOeuDr.js","./D0TAGc6I.js","./auth.Ccp4G2Bt.css","./Dcrf8Y5O.js","./Dm2EnG5i.js","./website.NnzspOE8.css","./huyvd9Up.js"])))=>i.map(i=>d[i]); 2import{B as nr,r as jt,l as es,D as Gn,E as Qi,g as qn,d as st,G as Et,H as Lv,I as It,b as wt,w as td,q as un,y as rd,z as nd,s as Mt,e as Zt,u as Ve,J as Nv,c as W,h as Le,p as Jt,k as br,A as or,K as Mv,T as id,L as Hv,M as Uv,N as Fi,n as ts,O as rs,o as en,t as od,x as tn,P as Si,Q as Wt,R as Fv,S as Bv,U as _u,V as ai,W as ns,F as zr,m as is,X as kr,Y as lt,Z as Wr,j as ce,_ as Vv,$ as jv,a0 as ad,a1 as $v,a2 as sa,a3 as Ct,a4 as lr,a5 as Gv,a6 as qv,a7 as zv}from"./V5Qtux6O.js";import{g as os}from"./CE1G-McA.js";import{V as Wv,c as Kv,p as Ge,g as Dr,d as sd,i as Eu,a as Xv,b as Jv,e as Yv,f as Lr,h as Zi,j as ud,u as cn,m as zn,k as Wn,l as eo,n as Qv,o as cd,q as ld,w as Zv,r as em,s as tm,t as je,v as rm,x as nm,y as im,I as ua,S as om,z as am,A as dd,B as sm,C as fd,D as wu,E as Tu,F as um,G as Su}from"./DRfckj7j.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();const cm=/"(?:_|\\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*:/,lm=/"(?: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*:/,dm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function fm(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){pm(e);return}return t}function pm(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Bi(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!dm.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(cm.test(e)||lm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,fm)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const pd=/#/g,hd=/&/g,vd=/\//g,hm=/=/g,vm=/\?/g,to=/\+/g,mm=/%5e/gi,gm=/%60/gi,ym=/%7c/gi,bm=/%20/gi,_m=/%252f/gi;function md(e){return encodeURI(""+e).replace(ym,"|")}function ca(e){return md(typeof e=="string"?e:JSON.stringify(e)).replace(to,"%2B").replace(bm,"+").replace(pd,"%23").replace(hd,"%26").replace(gm,"`").replace(mm,"^").replace(vd,"%2F")}function So(e){return ca(e).replace(hm,"%3D")}function Em(e){return md(e).replace(pd,"%23").replace(vm,"%3F").replace(_m,"%2F").replace(hd,"%26").replace(to,"%2B")}function $R(e){return Em(e).replace(vd,"%2F")}function Vi(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function wm(e){return Vi(e.replace(to," "))}function Tm(e){return Vi(e.replace(to," "))}function as(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const i=wm(n[1]);if(i==="__proto__"||i==="constructor")continue;const o=Tm(n[2]||"");t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}return t}function Sm(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${So(e)}=${ca(r)}`).join("&"):`${So(e)}=${ca(t)}`:So(e)}function Am(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
2Sm(t,e[t])).filter(Boolean).join("&")}const km=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Pm=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Om=/^([/\\]\s*){2,}[^/\\]/,Im=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Rm=/\/$|\/\?|\/#/,Cm=/^\.?\//;function Nr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?km.test(e):Pm.test(e)||(t.acceptRelative?Om.test(e):!1)}function xm(e){return!!e&&Im.test(e)}function la(e="",t){return t?Rm.test(e):e.endsWith("/")}function Nn(e="",t){if(!t)return(la(e)?e.slice(0,-1):e)||"/";if(!la(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");i!==-1&&(r=e.slice(0,i),n=e.slice(i));const[o,...a]=r.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(a.length>0?`?${a.join("?")}`:"")+n}function gd(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(la(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");if(i!==-1&&(r=e.slice(0,i),n=e.slice(i),!r))return n;const[o,...a]=r.split("?");return o+"/"+(a.length>0?`?${a.join("?")}`:"")+n}function Dm(e=""){return e.startsWith("/")}function GR(e=""){return Dm(e)?e:"/"+e}function Lm(e,t){if(yd(t)||Nr(e))return e;const r=Nn(t);return e.startsWith(r)?e:bd(r,e)}function Au(e,t){if(yd(t))return e;const r=Nn(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return n[0]==="/"?n:"/"+n}function Mn(e,t){const r=wd(e),n={...as(r.search),...t};return r.search=Am(n),Hm(r)}function yd(e){return!e||e==="/"}function Nm(e){return e&&e!=="/"}function bd(e,...t){let r=e||"";for(const n of t.filter(i=>Nm(i)))if(r){const i=n.replace(Cm,"");r=gd(r)+i}else r=n;return r}function _d(...e){const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let i=0;for(const a of r)if(!(!a||a==="/")){for(const[s,u]of a.split(t).entries())if(!(!u||u===".")){if(u===".."){if(n.length===1&&Nr(n[0]))continue;n.pop(),i--;continue}if(s===1&&n[n.length-1]?.endsWith(":/")){n[n.length-1]+="/"+u;continue}n.push(u),i++}}let o=n.join("/");return i>=0?r[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:r[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*i)+o,r[r.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function Mm(e,t){return Vi(Nn(e))===Vi(Nn(t))}const Ed=Symbol.for("ufo:protocolRelative");function wd(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,p,d=""]=r;return{protocol:p.toLowerCase(),pathname:d,href:p+d,auth:"",host:"",search:"",hash:""}}if(!Nr(e,{acceptRelative:!0}))return ku(e);const[,n="",i,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,a="",s=""]=o.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:u,search:c,hash:l}=ku(s);return{protocol:n.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:a,pathname:u,search:c,hash:l,[Ed]:!n}}function ku(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function Hm(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Ed]?(e.protocol||"")+"//":"")+i+o+t+r+n}let Td=class extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}};function Um(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",i=`[${r}] ${JSON.stringify(n)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",a=`${i}: ${o}${t?` ${t}`:""}`,s=new Td(a,e.error?{cause:e.error}:void 0);for(const u of["request","options","response"])Object.defineProperty(s,u,{get(){return e[u]}});for(const[u,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,u,{get(){return e.response&&e.response[c]}});return s}const Fm=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Pu(e="GET"){return Fm.has(e.toUpperCase())}function Bm(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 Vm=new Set(["image/svg","application/xml","application/xhtml","application/html"]),jm=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function $m(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return jm.test(t)?"json":Vm.has(t)||t.startsWith("text/")?"text":"blob"}function Gm(e,t,r,n){const i=qm(t?.headers??e?.headers,r?.headers,n);let o;return(r?.query||r?.params||t?.params||t?.query)&&(o={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:o,params:o,headers:i}}function qm(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[i,o]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(i,o);return n}async function si(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const zm=new Set([408,409,425,429,500,502,503,504]),Wm=new Set([101,204,205,304]);function Sd(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;
2async function i(s){const u=s.error&&s.error.name==="AbortError"&&!s.options.timeout||!1;if(s.options.retry!==!1&&!u){let l;typeof s.options.retry=="number"?l=s.options.retry:l=Pu(s.options.method)?0:1;const p=s.response&&s.response.status||500;if(l>0&&(Array.isArray(s.options.retryStatusCodes)?s.options.retryStatusCodes.includes(p):zm.has(p))){const d=typeof s.options.retryDelay=="function"?s.options.retryDelay(s):s.options.retryDelay||0;return d>0&&await new Promise(f=>setTimeout(f,d)),o(s.request,{...s.options,retry:l-1})}}const c=Um(s);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(u,c={}){const l={request:u,options:Gm(u,c,e.defaults,r),response:void 0,error:void 0};l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&await si(l,l.options.onRequest),typeof l.request=="string"&&(l.options.baseURL&&(l.request=Lm(l.request,l.options.baseURL)),l.options.query&&(l.request=Mn(l.request,l.options.query),delete l.options.query),"query"in l.options&&delete l.options.query,"params"in l.options&&delete l.options.params),l.options.body&&Pu(l.options.method)&&(Bm(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new r(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half")));let p;if(!l.options.signal&&l.options.timeout){const f=new n;p=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,f.abort(h)},l.options.timeout),l.options.signal=f.signal}try{l.response=await t(l.request,l.options)}catch(f){return l.error=f,l.options.onRequestError&&await si(l,l.options.onRequestError),await i(l)}finally{p&&clearTimeout(p)}if((l.response.body||l.response._bodyInit)&&!Wm.has(l.response.status)&&l.options.method!=="HEAD"){const f=(l.options.parseResponse?"json":l.options.responseType)||$m(l.response.headers.get("content-type")||"");switch(f){case"json":{const h=await l.response.text(),m=l.options.parseResponse||Bi;l.response._data=m(h);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[f]()}}return l.options.onResponse&&await si(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await si(l,l.options.onResponseError),await i(l)):l.response},a=async function(u,c){return(await o(u,c))._data};return a.raw=o,a.native=(...s)=>t(...s),a.create=(s={},u={})=>Sd({...e,...u,defaults:{...e.defaults,...u.defaults,...s}}),a}const ji=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),Km=ji.fetch?(...e)=>ji.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Xm=ji.Headers,Jm=ji.AbortController,Ym=Sd({fetch:Km,Headers:Xm,AbortController:Jm}),Qm=Ym,Zm=()=>window?.__NUXT__?.config||{},ss=()=>Zm().app,eg=()=>ss().baseURL,tg=()=>ss().buildAssetsDir,rg=(...e)=>_d(Ad(),tg(),...e),Ad=(...e)=>{const t=ss(),r=t.cdnURL||t.baseURL;return e.length?_d(r,...e):r};globalThis.__buildAssetsURL=rg,globalThis.__publicAssetsURL=Ad;globalThis.$fetch||(globalThis.$fetch=Qm.create({baseURL:eg()}));"global"in globalThis||(globalThis.global=globalThis);function da(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?da(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const ng={run:e=>e()},ig=()=>ng,kd=typeof console.createTask<"u"?console.createTask:ig;function og(e,t){const r=t.shift(),n=kd(r);return e.reduce((i,o)=>i.then(()=>n.run(()=>o(...t))),Promise.resolve())}function ag(e,t){const r=t.shift(),n=kd(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}function Ao(e,t){for(const r of[...e])r(t)}class sg{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const i=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!n.allowDeprecated){let a=o.message;a||(a=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,i=(...o)=>(typeof n=="function"&&n(),n=void 0,i=void 0,r(...o));return n=this.hook(t,i),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const i of n)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=da(t),n=Object.keys(r).map(i=>this.hook(i,r[i]));return()=>{for(const i of n.splice(0,n.length))i()}}removeHooks(t){const r=da(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(og,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(ag,t,...r)}callHookWith(t,r,...n){const i=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Ao(this._before,i);const o=t(r in this._hooks?[...this._hooks[r]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&i&&Ao(this._after,i)}):(this._after&&i&&Ao(this._after,i),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function Pd(){return new sg}function ug(e={}){let t,r=!1;const n=a=>
2{if(t&&t!==a)throw new Error("Context conflict")};let i;if(e.asyncContext){const a=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;a?i=new a:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(i){const a=i.getStore();if(a!==void 0)return a}return t};return{use:()=>{const a=o();if(a===void 0)throw new Error("Context is not available");return a},tryUse:()=>o(),set:(a,s)=>{s||n(a),t=a,r=!0},unset:()=>{t=void 0,r=!1},call:(a,s)=>{n(a),t=a;try{return i?i.run(a,s):s()}finally{r||(t=void 0)}},async callAsync(a,s){t=a;const u=()=>{t=a},c=()=>t===a?u:void 0;fa.add(c);try{const l=i?i.run(a,s):s();return r||(t=void 0),await l}finally{fa.delete(c)}}}}function cg(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=ug({...e,...n})),t[r]}}}const $i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Ou="__unctx__",lg=$i[Ou]||($i[Ou]=cg()),dg=(e,t={})=>lg.get(e,t),Iu="__unctx_async_handlers__",fa=$i[Iu]||($i[Iu]=new Set);function Ir(e){const t=[];for(const i of fa){const o=i();o&&t.push(o)}const r=()=>{for(const i of t)i()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(i=>{throw r(),i})),[n,r]}const fg=!1,Ru=!1,pg=!1,hg={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},zR={value:null,errorValue:null,deep:!0},vg=null,mg="#__nuxt",Od="nuxt-app",gg="vite:preloadError";function Id(e=Od){return dg(e,{asyncContext:!1})}const yg="__nuxt_plugin";function bg(e){let t=0;const r={_id:e.id||Od||"nuxt-app",_scope:es(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.19.1"},get vue(){return r.vueApp.version}},payload:nr({...e.ssrContext?.payload||{},data:nr({}),state:jt({}),once:new Set,_errors:nr({})}),static:{data:{}},runWithContext(i){return r._scope.active&&!Gn()?r._scope.run(()=>Cu(r,i)):Cu(r,i)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:nr({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const o in i)switch(o){case"data":case"state":case"_errors":Object.assign(r.payload[o],i[o]);break;default:r.payload[o]=i[o]}}r.hooks=Pd(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(i,o)=>{const a="$"+i;ui(r,a,o),ui(r.vueApp.config.globalProperties,a,o)},ui(r.vueApp,"$nuxt",r),ui(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(gg,o=>{r.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=Ce;const i=r.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});r.hook("app:mounted",i)}const n=r.payload.config;return r.provide("config",n),r}function _g(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Eg(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function wg(e,t){const r=new Set,n=[],i=[];let o,a=0;async function s(u){const c=u.dependsOn?.filter(l=>t.some(p=>p._name===l)&&!r.has(l))??[];if(c.length>0)n.push([new Set(c),u]);else{const l=Eg(e,u).then(async()=>{u._name&&(r.add(u._name),await Promise.all(n.map(async([p,d])=>{p.has(u._name)&&(p.delete(u._name),p.size===0&&(a++,await s(d)))})))}).catch(p=>{if(!u.parallel&&!e.payload.error)throw p;o||=p});u.parallel?i.push(l):await l}}for(const u of t)_g(e,u);for(const u of t)await s(u);if(await Promise.all(i),a)for(let u=0;u<a;u++)await Promise.all(i);if(o)throw e.payload.error||o}function Be(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[yg]:!0,_name:t})}function Cu(e,t,r){const n=()=>t();return Id(e._id).set(e),e.vueApp.runWithContext(n)}function Rd(e){let t;return Qi()&&(t=qn()?.appContext.app.$nuxt),t||=Id(e).tryUse(),t||null}function Ce(e){const t=Rd(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function er(e){return Ce().$config}function ui(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function ko(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 pa(e,t,r=".",n){if(!ko(t))return pa(e,{},r,n);const i=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const a=e[o];a!=null&&(n&&n(i,o,a,r)||(Array.isArray(a)&&Array.isArray(i[o])?i[o]=[...a,...i[o]]:ko(a)&&ko(i[o])?i[o]=pa(a,i[o],(r?`${r}.`:"")+o.toString(),n):i[o]=a))}return i}function Cd(e){return(...t)=>t.reduce((r,n)=>pa(r,n,"",e),{})}const Tg=Cd(),Sg=Cd((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0});function Ag(e,t){try{return t in e}catch{return!1}}
2class xu extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,r={}){super(t,r),r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const t={message:this.message,statusCode:ha(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=xd(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function kg(e){if(typeof e=="string")return new xu(e);if(Pg(e))return e;const t=new xu(e.message??e.statusMessage??"",{cause:e.cause||e});if(Ag(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=ha(e.statusCode,t.statusCode):e.status&&(t.statusCode=ha(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;xd(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Pg(e){return e?.constructor?.__h3_error__===!0}const Og=/[^\u0009\u0020-\u007E]/g;function xd(e=""){return e.replace(Og,"")}function ha(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Dd=Symbol("layout-meta"),Cr=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Tt=()=>Ce()?.$router,us=()=>Qi()?st(Cr,Ce()._route):Ce()._route;function WR(e){return e}const Ig=()=>{try{if(Ce()._processingMiddleware)return!0}catch{return!1}return!1},cs=(e,t)=>{e||="/";const r=typeof e=="string"?e:"path"in e?va(e):Tt().resolve(e).href;if(t?.open){const{target:u="_blank",windowFeatures:c={}}=t.open,l=Object.entries(c).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p.toLowerCase()}=${d}`).join(", ");return open(r,u,l),Promise.resolve()}const n=Nr(r,{acceptRelative:!0}),i=t?.external||n;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(r,window.location.href);if(u&&xm(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const o=Ig();if(!i&&o){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:l}=wd(e);return{path:u,...c&&{query:as(c)},...l&&{hash:l},replace:!0}}return{...e,replace:!0}}return e}const a=Tt(),s=Ce();return i?(s._scope.stop(),t?.replace?location.replace(r):location.href=r,o?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?a.replace(e):a.push(e)};function va(e){return Mn(e.path||"",e.query||{})+(e.hash||"")}const Ld="__nuxt_error",ro=()=>Et(Ce().payload,"error"),Ar=e=>{const t=Rr(e);try{const r=Ce(),n=ro();r.hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},Nd=async(e={})=>{const t=Ce(),r=ro();t.callHook("app:error:cleared",e),e.redirect&&await Tt().replace(e.redirect),r.value=vg},Md=e=>!!e&&typeof e=="object"&&Ld in e,Rr=e=>{const t=kg(e);return Object.defineProperty(t,Ld,{value:!0,configurable:!1,writable:!1}),t};function Rg(e){const t=xg(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let i=0;i<r.byteLength;i++)n.setUint8(i,t.charCodeAt(i));return r}const Cg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function xg(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",r=0,n=0;for(let i=0;i<e.length;i++)r<<=6,r|=Cg.indexOf(e[i]),n+=6,n===24&&(t+=String.fromCharCode((r&16711680)>>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const Dg=-1,Lg=-2,Ng=-3,Mg=-4,Hg=-5,Ug=-6;function Fg(e,t){return Bg(JSON.parse(e),t)}function Bg(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);function i(o,a=!1){if(o===Dg)return;if(o===Ng)return NaN;if(o===Mg)return 1/0;if(o===Hg)return-1/0;if(o===Ug)return-0;if(a||typeof o!="number")throw new Error("Invalid input");if(o in n)return n[o];const s=r[o];if(!s||typeof s!="object")n[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const u=s[0],c=t?.[u];if(c)return n[o]=c(i(s[1]));switch(u){case"Date":n[o]=new Date(s[1]);break;case"Set":const l=new Set;n[o]=l;for(let f=1;f<s.length;f+=1)l.add(i(s[f]));break;case"Map":const p=new Map;n[o]=p;for(let f=1;f<s.length;f+=2)p.set(i(s[f]),i(s[f+1]));break;case"RegExp":n[o]=new RegExp(s[1],s[2]);break;case"Object":n[o]=Object(s[1]);break;case"BigInt":n[o]=BigInt(s[1]);break;case"null":const d=Object.create(null);n[o]=d;for(let f=1;f<s.length;f+=2)d[s[f]]=i(s[f+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 f=globalThis[u],h=new f(i(s[1]));n[o]=s[2]!==void 0?h.subarray(s[2],s[3]):h;break}case"ArrayBuffer":{const f=s[1],h=Rg(f);n[o]=h;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 f=u.slice(9);n[o]=Temporal[f].from(s[1]);break}case"URL":{const f=new URL(s[1]);n[o]=f;break}case"URLSearchParams":{const f=new URLSearchParams(s[1]);n[o]=f;break}default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(s.length);n[o]=u;for(let c=0;c<s.length;c+=1){const l=s[c];l!==Lg&&(u[c]=i(l))}}else{const u={};n[o]=u;for(const c in s){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const l=s[c];u[c]=i(l)}}return n[o]}return i(0)}
2const Vg=new Set(["link","style","script","noscript"]),jg=new Set(["title","titleTemplate","script","style","noscript"]),Du=new Set(["base","meta","link","style","script","noscript"]),$g=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Gg=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),qg=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),zg=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Wg=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const Kg=["name","property","http-equiv"],Xg=new Set(["viewport","description","keywords","robots"]);function Hd(e){const t=e.split(":");return t.length?Wg.has(t[1]):!1}function ma(e){const{props:t,tag:r}=e;if(Gg.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of Kg)if(t[n]!==void 0){const i=t[n],o=i.includes(":"),a=Xg.has(i),u=!(o||a)&&e.key?`:key:${e.key}`:"";return`${r}:${i}${u}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(jg.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function Lu(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,i])=>`${n}:${String(i)}`).join(",")}`}function Gi(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());let i;if(t&&(i=t(r,e)),Array.isArray(i))return i.map(o=>Gi(o,t));if(i?.constructor===Object){const o={};for(const a of Object.keys(i))o[a]=Gi(i[a],t,a);return o}return i}function Jg(e,t){const r=e==="style"?new Map:new Set;function n(i){const o=i.trim();if(o)if(e==="style"){const[a,...s]=o.split(":").map(u=>u.trim());a&&s.length&&r.set(a,s.join(":"))}else o.split(" ").filter(Boolean).forEach(a=>r.add(a))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(i=>n(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>{o&&o!=="false"&&(e==="style"?r.set(i.trim(),o):n(i))}),r}function Ud(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=Jg(r,n);return}if(qg.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let a=t.type;if(t.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;t.type=a,e.props.type=a,e[r]=JSON.stringify(n)}else e[r]=n;return}const i=String(n),o=r.startsWith("data-");i==="true"||i===""?e.props[r]=o?i:!0:!n&&o&&i==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e):e}function Yg(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=Ud({tag:e,props:{}},r);return n.key&&Vg.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(i=>({...n,props:{...n.props,content:i}})):n}function Qg(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(i,o)=>{for(let a=0;a<t.length;a++)o=t[a](i,o);return o};e=r(void 0,e);const n=[];return e=Gi(e,r),Object.entries(e||{}).forEach(([i,o])=>{if(o!==void 0)for(const a of Array.isArray(o)?o:[o])n.push(Yg(i,a))}),n.flat()}const ga=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Nu={base:-10,title:10},Zg={critical:-8,high:-1,low:2},Mu={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}},ey=/@import/,gn=e=>e===""||e===!0;function ty(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=Zg[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Mu;if(t.tag in Nu)r=Nu[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&&(r=Mu.meta[o])}else t.tag==="link"&&t.props.rel?r=i.link[t.props.rel]:t.tag==="script"?gn(t.props.async)?r=i.script.async:t.props.src&&!gn(t.props.defer)&&!gn(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?r=i.script.sync:gn(t.props.defer)&&t.props.src&&!gn(t.props.async)&&(r=i.script.defer):t.tag==="style"&&(r=t.innerHTML&&ey.test(t.innerHTML)?i.style.imported:i.style.sync);return(r||100)+n}function Hu(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function ry(e={}){const t=Pd();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,i=new Map,o=new Set,a={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:s=>Hu(a,s),push(s,u){const c={...u||{}};delete c.head;const l=c._index??a._entryCount++,p={_i:l,input:s,options:c},d={_poll(f=!1){a.dirty=!0,!f&&o.add(l),t.callHook("entries:updated",a)},dispose(){n.delete(l)&&a.invalidate()},patch(f){(!c.mode||c.mode==="server"&&r||c.mode==="client"&&!r)&&(p.input=f,n.set(l,p),d._poll())}};return d.patch(s),d},async resolveTags(){const s={tagMap:new Map,tags:[],entries:[...a.entries.values()]};for(await t.callHook("entries:resolve",s);o.size;){const d=o.values().next().value;
2o.delete(d);const f=n.get(d);if(f){const h={tags:Qg(f.input,e.propResolvers||[]).map(m=>Object.assign(m,f.options)),entry:f};await t.callHook("entries:normalize",h),f._tags=h.tags.map((m,g)=>(m._w=ty(a,m),m._p=(f._i<<10)+g,m._d=ma(m),m))}}let u=!1;s.entries.flatMap(d=>(d._tags||[]).map(f=>({...f,props:{...f.props}}))).sort(ga).reduce((d,f)=>{const h=String(f._d||f._p);if(!d.has(h))return d.set(h,f);const m=d.get(h);if((f?.tagDuplicateStrategy||(zg.has(f.tag)?"merge":null)||(f.key&&f.key===m.key?"merge":null))==="merge"){const E={...m.props};Object.entries(f.props).forEach(([w,T])=>E[w]=w==="style"?new Map([...m.props.style||new Map,...T]):w==="class"?new Set([...m.props.class||new Set,...T]):T),d.set(h,{...f,props:E})}else f._p>>10===m._p>>10&&f.tag==="meta"&&Hd(h)?(d.set(h,Object.assign([...Array.isArray(m)?m:[m],f],f)),u=!0):(f._w===m._w?f._p>m._p:f?._w<m?._w)&&d.set(h,f);return d},s.tagMap);const c=s.tagMap.get("title"),l=s.tagMap.get("titleTemplate");if(a._title=c?.textContent,l){const d=l?.textContent;if(a._titleTemplate=d,d){let f=typeof d=="function"?d(c?.textContent):d;typeof f=="string"&&!a.plugins.has("template-params")&&(f=f.replace("%s",c?.textContent||"")),c?f===null?s.tagMap.delete("title"):s.tagMap.set("title",{...c,textContent:f}):(l.tag="title",l.textContent=f)}}s.tags=Array.from(s.tagMap.values()),u&&(s.tags=s.tags.flat().sort(ga)),await t.callHook("tags:beforeResolve",s),await t.callHook("tags:resolve",s),await t.callHook("tags:afterResolve",s);const p=[];for(const d of s.tags){const{innerHTML:f,tag:h,props:m}=d;if($g.has(h)&&!(Object.keys(m).length===0&&!d.innerHTML&&!d.textContent)&&!(h==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(h==="script"&&f){if(m.type?.endsWith("json")){const g=typeof f=="string"?f:JSON.stringify(f);d.innerHTML=g.replace(/</g,"\\u003C")}else typeof f=="string"&&(d.innerHTML=f.replace(new RegExp(`</${h}`,"g"),`<\\/${h}`));d._d=ma(d)}p.push(d)}}return p},invalidate(){for(const s of n.values())o.add(s._i);a.dirty=!0,t.callHook("entries:updated",a)}};return(e?.plugins||[]).forEach(s=>Hu(a,s)),a.hooks.callHook("init",a),e.init?.forEach(s=>s&&a.push(s)),a}const Po="%separator";function ny(e,t,r=!1){let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const i=t.indexOf(".");n=e[t.substring(0,i)]?.[t.substring(i+1)]}else n=e[t];if(n!==void 0)return r?(n||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):n||""}function ci(e,t,r,n=!1){if(typeof e!="string"||!e.includes("%"))return e;let i=e;try{i=decodeURI(e)}catch{}const o=i.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const a=e.includes(Po);return e=e.replace(/%\w+(?:\.\w+)?/g,s=>{if(s===Po||!o.includes(s))return s;const u=ny(t,s.slice(1),n);return u!==void 0?u:s}).trim(),a&&(e=e.split(Po).map(s=>s.trim()).filter(s=>s!=="").join(r?` ${r} `:" ")),e}const Uu=e=>e.includes(":key")?e:e.split(":").join(":key:"),iy={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const r of e.tags){const n=r.tagPriority;if(!n)continue;const i=String(n);if(i.startsWith("before:")){const o=Uu(i.slice(7)),a=e.tagMap.get(o);a&&(typeof a.tagPriority=="number"&&(r.tagPriority=a.tagPriority),r._p=a._p-1,t=!0)}else if(i.startsWith("after:")){const o=Uu(i.slice(6)),a=e.tagMap.get(o);a&&(typeof a.tagPriority=="number"&&(r.tagPriority=a.tagPriority),r._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(ga))}}},oy={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function ya(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(r=>ya(r)));if(e?.constructor===Object){const r={};for(const n of Object.keys(e))r[n]=await ya(e[n]);return r}return e}const ay={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const r in e.entries)e.entries[r]._promisesProcessed||t.push(ya(e.entries[r].input).then(n=>{e.entries[r].input=n,e.entries[r]._promisesProcessed=!0}));await Promise.all(t)}}},sy={meta:"content",link:"href",htmlAttrs:"lang"}
2,uy=["innerHTML","textContent"],cy=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const r=t.tags.filter(n=>n.tag==="templateParams"&&n.mode==="server")?.[0]?.props||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{const n=t.get("templateParams")?.props||{},i=n.separator||"|";delete n.separator,n.pageTitle=ci(n.pageTitle||e._title||"",n,i);for(const o of r){if(o.processTemplateParams===!1)continue;const a=sy[o.tag];if(a&&typeof o.props[a]=="string")o.props[a]=ci(o.props[a],n,i);else if(o.processTemplateParams||o.tag==="titleTemplate"||o.tag==="title")for(const s of uy)typeof o[s]=="string"&&(o[s]=ci(o[s],n,i,o.tag==="script"&&o.props.type.endsWith("json")))}e._templateParams=n,e._separator=i},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r?.textContent&&r.processTemplateParams!==!1&&(r.textContent=ci(r.textContent,e._templateParams,e._separator))}}}),ly=(e,t)=>It(t)?Lv(t):t,ls="usehead";function dy(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(ls,e)}}.install}function fy(){if(Qi()){const e=st(ls);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 py(e,t={}){const r=t.head||fy();return r.ssr?r.push(e||{},t):hy(r,e,t)}function hy(e,t,r={}){const n=wt(!1);let i;return td(()=>{const a=n.value?{}:Gi(t,ly);i?i.patch(a):i=e.push(a,r)}),qn()&&(un(()=>{i.dispose()}),rd(()=>{n.value=!0}),nd(()=>{n.value=!1})),i}function Fd(e){const t=e||Rd();return t?.ssrContext?.head||t?.runWithContext(()=>{if(Qi())return st(ls)})}function ds(e,t={}){const r=Fd(t.nuxt);if(r)return py(e,{head:r,...t})}const vy="modulepreload",my=function(e,t){return new URL(e,t).href},Fu={},A=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let c=function(l){return Promise.all(l.map(p=>Promise.resolve(p).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),u=s?.nonce||s?.getAttribute("nonce");i=c(r.map(l=>{if(l=my(l,n),l in Fu)return;Fu[l]=!0;const p=l.endsWith(".css"),d=p?'[rel="stylesheet"]':"";if(!!n)for(let m=a.length-1;m>=0;m--){const g=a[m];if(g.href===l&&(!p||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=p?"stylesheet":vy,p||(h.as="script"),h.crossOrigin="",h.href=l,u&&h.setAttribute("nonce",u),document.head.appendChild(h),p)return new Promise((m,g)=>{h.addEventListener("load",m),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};async function gy(e){return null}let Sr=null;async function yy(){if(Sr)return Sr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await by(e.textContent||""),r=e.dataset.src?await gy(e.dataset.src):void 0;return Sr={...t,...r,...window.__NUXT__},Sr.config?.public&&(Sr.config.public=jt(Sr.config.public)),Sr}async function by(e){return await Fg(e,Ce()._payloadRevivers)}function _y(e,t){Ce()._payloadRevivers[e]=t}const Ey=[["NuxtError",e=>Rr(e)],["EmptyShallowRef",e=>Mt(e==="_"?void 0:e==="0n"?BigInt(0):Bi(e))],["EmptyRef",e=>wt(e==="_"?void 0:e==="0n"?BigInt(0):Bi(e))],["ShallowRef",e=>Mt(e)],["ShallowReactive",e=>nr(e)],["Ref",e=>wt(e)],["Reactive",e=>jt(e)]],wy=Be({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const[n,i]of Ey)_y(n,i);Object.assign(e.payload,([t,r]=Ir(()=>e.runWithContext(yy)),t=await t,r(),t)),window.__NUXT__=e.payload}});async function fs(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{const o=new Map,a=new Promise(f=>{e.resolveTags().then(h=>{f(h.map(m=>{const g=o.get(m._d)||0,E={tag:m,id:(g?`${m._d}:${g}`:m._d)||Lu(m),shouldRender:!0};return m._d&&Hd(m._d)&&o.set(m._d,g+1),E}))})});let s=e._dom;if(!s){s={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const f of["body","head"]){const h=r[f]?.children;for(const m of h){const g=m.tagName.toLowerCase();if(!Du.has(g))continue;const E=Ud({tag:g,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((w,T)=>(w[T]=m.getAttribute(T),w),{})||{}});if(E.key=m.getAttribute("data-hid")||void 0,E._d=ma(E)||Lu(E),s.elMap.has(E._d)){let w=1,T=E._d;for(;s.elMap.has(T);)T=`${E._d}:${w++}`;s.elMap.set(T,m)}else s.elMap.set(E._d,m)}}}s.pendingSideEffects={...s.sideEffects},s.sideEffects={};function u(f,h,m){const g=`${f}:${h}`;
2s.sideEffects[g]=m,delete s.pendingSideEffects[g]}function c({id:f,$el:h,tag:m}){const g=m.tag.endsWith("Attrs");s.elMap.set(f,h),g||(m.textContent&&m.textContent!==h.textContent&&(h.textContent=m.textContent),m.innerHTML&&m.innerHTML!==h.innerHTML&&(h.innerHTML=m.innerHTML),u(f,"el",()=>{h?.remove(),s.elMap.delete(f)}));for(const E in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,E))continue;const w=m.props[E];if(E.startsWith("on")&&typeof w=="function"){const k=h?.dataset;if(k&&k[`${E}fired`]){const P=E.slice(0,-5);w.call(h,new Event(P.substring(2)))}h.getAttribute(`data-${E}`)!==""&&((m.tag==="bodyAttrs"?r.defaultView:h).addEventListener(E.substring(2),w.bind(h)),h.setAttribute(`data-${E}`,""));continue}const T=`attr:${E}`;if(E==="class"){if(!w)continue;for(const k of w)g&&u(f,`${T}:${k}`,()=>h.classList.remove(k)),!h.classList.contains(k)&&h.classList.add(k)}else if(E==="style"){if(!w)continue;for(const[k,P]of w)u(f,`${T}:${k}`,()=>{h.style.removeProperty(k)}),h.style.setProperty(k,P)}else w!==!1&&w!==null&&(h.getAttribute(E)!==w&&h.setAttribute(E,w===!0?"":String(w)),g&&u(f,T,()=>h.removeAttribute(E)))}}const l=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await a;for(const f of d){const{tag:h,shouldRender:m,id:g}=f;if(m){if(h.tag==="title"){r.title=h.textContent,u("title","",()=>r.title=s.title);continue}f.$el=f.$el||s.elMap.get(g),f.$el?c(f):Du.has(h.tag)&&l.push(f)}}for(const f of l){const h=f.tag.tagPosition||"head";f.$el=r.createElement(f.tag.tag),c(f),p[h]=p[h]||r.createDocumentFragment(),p[h].appendChild(f.$el)}for(const f of d)await e.hooks.callHook("dom:renderTag",f,r,u);p.head&&r.head.appendChild(p.head),p.bodyOpen&&r.body.insertBefore(p.bodyOpen,r.body.firstChild),p.bodyClose&&r.body.appendChild(p.bodyClose);for(const f in s.pendingSideEffects)s.pendingSideEffects[f]();e._dom=s,await e.hooks.callHook("dom:rendered",{renders:d}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Ty(e={}){const t=e.domOptions?.render||fs;e.document=e.document||(typeof window<"u"?document:void 0);const r=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return ry({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function Sy(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function Ay(e={}){const t=Ty({domOptions:{render:Sy(()=>fs(t),r=>setTimeout(r,0))},...e});return t.install=dy(t),t}const ky={disableDefaults:!0,disableCapoSorting:!1,plugins:[oy,ay,cy,iy]},Py=Be({name:"nuxt:head",enforce:"pre",setup(e){const t=Ay(ky);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await fs(t)};t.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}});/*! 3 * vue-router v4.5.1 4 * (c) 2025 Eduardo San Martin Morote 5 * @license MIT 6 */const Gr=typeof document<"u";function Bd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Oy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Bd(e.default)}const we=Object.assign;function Oo(e,t){const r={};for(const n in t){const i=t[n];r[n]=$t(i)?i.map(e):e(i)}return r}const Pn=()=>{},$t=Array.isArray,Vd=/#/g,Iy=/&/g,Ry=/\//g,Cy=/=/g,xy=/\?/g,jd=/\+/g,Dy=/%5B/g,Ly=/%5D/g,$d=/%5E/g,Ny=/%60/g,Gd=/%7B/g,My=/%7C/g,qd=/%7D/g,Hy=/%20/g;function ps(e){return encodeURI(""+e).replace(My,"|").replace(Dy,"[").replace(Ly,"]")}function Uy(e){return ps(e).replace(Gd,"{").replace(qd,"}").replace($d,"^")}function ba(e){return ps(e).replace(jd,"%2B").replace(Hy,"+").replace(Vd,"%23").replace(Iy,"%26").replace(Ny,"`").replace(Gd,"{").replace(qd,"}").replace($d,"^")}function Fy(e){return ba(e).replace(Cy,"%3D")}function By(e){return ps(e).replace(Vd,"%23").replace(xy,"%3F")}function Vy(e){return e==null?"":By(e).replace(Ry,"%2F")}function Hn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const jy=/\/$/,$y=e=>e.replace(jy,"");function Io(e,t,r="/"){let n,i={},o="",a="";const s=t.indexOf("#");let u=t.indexOf("?");return s<u&&s>=0&&(u=-1),u>-1&&(n=t.slice(0,u),o=t.slice(u+1,s>-1?s:t.length),i=e(o)),s>-1&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=Wy(n??t,r),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:Hn(a)}}function Gy(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Bu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qy(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&rn(t.matched[n],r.matched[i])&&zd(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function rn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!zy(e[r],t[r]))return!1;return!0}function zy(e,t){return $t(e)?Vu(e,t):$t(t)?Vu(t,e):e===t}function Vu(e,t){return $t(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Wy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,a,s;for(a=0;a<n.length;a++)if(s=n[a],s!==".")if(s==="..")o>1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a).join("/")}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Un;(function(e){e.pop="pop",e.push="push"})(Un||(Un={}));var On;(function(e){e.back="back",e.forward="forward",e.unknown=""})(On||(On={}));function Ky(e){if(!e)if(Gr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),$y(e)}const Xy=/^[^#]+#/;function Jy(e,t){return e.replace(Xy,"#")+t}function Yy(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const no=()=>({left:window.scrollX,top:window.scrollY});function Qy(e){let t;
vendor: 6,850 bytes, line 6
6if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=Yy(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ju(e,t){return(history.state?history.state.position-t:-1)+e}const _a=new Map;function Zy(e,t){_a.set(e,t)}function eb(e){const t=_a.get(e);return _a.delete(e),t}let tb=()=>location.protocol+"//"+location.host;function Wd(e,t){const{pathname:r,search:n,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,u=i.slice(s);return u[0]!=="/"&&(u="/"+u),Bu(u,"")}return Bu(r,e)+n+i}function rb(e,t,r,n){let i=[],o=[],a=null;const s=({state:d})=>{const f=Wd(e,location),h=r.value,m=t.value;let g=0;if(d){if(r.value=f,t.value=d,a&&a===h){a=null;return}g=m?d.position-m.position:0}else n(f);i.forEach(E=>{E(r.value,h,{delta:g,type:Un.pop,direction:g?g>0?On.forward:On.back:On.unknown})})};function u(){a=r.value}function c(d){i.push(d);const f=()=>{const h=i.indexOf(d);h>-1&&i.splice(h,1)};return o.push(f),f}function l(){const{history:d}=window;d.state&&d.replaceState(we({},d.state,{scroll:no()}),"")}function p(){for(const d of o)d();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:u,listen:c,destroy:p}}function $u(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?no():null}}function nb(e){const{history:t,location:r}=window,n={value:Wd(e,r)},i={value:t.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,l){const p=e.indexOf("#"),d=p>-1?(r.host&&document.querySelector("base")?e:e.slice(p))+u:tb()+e+u;try{t[l?"replaceState":"pushState"](c,"",d),i.value=c}catch(f){console.error(f),r[l?"replace":"assign"](d)}}function a(u,c){const l=we({},t.state,$u(i.value.back,u,i.value.forward,!0),c,{position:i.value.position});o(u,l,!0),n.value=u}function s(u,c){const l=we({},i.value,t.state,{forward:u,scroll:no()});o(l.current,l,!0);const p=we({},$u(n.value,u,null),{position:l.position+1},c);o(u,p,!1),n.value=u}return{location:n,state:i,push:s,replace:a}}function Kd(e){e=Ky(e);const t=nb(e),r=rb(e,t.state,t.location,t.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=we({location:"",base:e,go:n,createHref:Jy.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ib(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Kd(e)}function ob(e){return typeof e=="string"||e&&typeof e=="object"}function Xd(e){return typeof e=="string"||typeof e=="symbol"}const Jd=Symbol("");var Gu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Gu||(Gu={}));function nn(e,t){return we(new Error,{type:e,[Jd]:!0},t)}function tr(e,t){return e instanceof Error&&Jd in e&&(t==null||!!(e.type&t))}const qu="[^/]+?",ab={sensitive:!1,strict:!1,start:!0,end:!0},sb=/[.+*?^${}()[\]/\\]/g;function ub(e,t){const r=we({},ab,t),n=[];let i=r.start?"^":"";const o=[];for(const c of e){const l=c.length?[]:[90];r.strict&&!c.length&&(i+="/");for(let p=0;p<c.length;p++){const d=c[p];let f=40+(r.sensitive?.25:0);if(d.type===0)p||(i+="/"),i+=d.value.replace(sb,"\\$&"),f+=40;else if(d.type===1){const{value:h,repeatable:m,optional:g,regexp:E}=d;o.push({name:h,repeatable:m,optional:g});const w=E||qu;if(w!==qu){f+=10;try{new RegExp(`(${w})`)}catch(k){throw new Error(`Invalid custom RegExp for param "${h}" (${w}): `+k.message)}}let T=m?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;p||(T=g&&c.length<2?`(?:/${T})`:"/"+T),g&&(T+="?"),i+=T,f+=20,g&&(f+=-8),m&&(f+=-20),w===".*"&&(f+=-50)}l.push(f)}n.push(l)}if(r.strict&&r.end){const c=n.length-1;n[c][n[c].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,r.sensitive?"":"i");function s(c){const l=c.match(a),p={};if(!l)return null;for(let d=1;d<l.length;d++){const f=l[d]||"",h=o[d-1];p[h.name]=f&&h.repeatable?f.split("/"):f}return p}function u(c){let l="",p=!1;for(const d of e){(!p||!l.endsWith("/"))&&(l+="/"),p=!1;for(const f of d)if(f.type===0)l+=f.value;else if(f.type===1){const{value:h,repeatable:m,optional:g}=f,E=h in c?c[h]:"";if($t(E)&&!m)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const w=$t(E)?E.join("/"):E;if(!w)if(g)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):p=!0);else throw new Error(`Missing required param "${h}"`);l+=w}}return l||"/"}return{re:a,score:n,keys:o,parse:s,stringify:u}}function cb(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Yd(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const o=cb(n[r],i[r]);if(o)return o;r++}if(Math.abs(i.length-n.length)===1){if(zu(n))return 1;if(zu(i))return-1}return i.length-n.length}function zu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const lb={type:0,value:""},db=/[a-zA-Z0-9_]/;function fb(e){if(!e)return[[]];if(e==="/")return[[lb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${r})/"${c}": ${f}`)}let r=0,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,u,c="",l="";function p(){c&&(r===0?o.push({type:0,value:c}):r===1||r===2||r===3?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:l,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=u}for(;s<e.length;){if(u=e[s++],u==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:u==="/"?(c&&p(),a()):u===":"?(p(),r=1):d();break;case 4:d(),r=n;break;case 1:u==="("?r=2:db.test(u)?d():(p(),r=0,u!=="*"&&u!=="?"&&u!=="+"&&s--);break;case 2:u===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+u:r=3:l+=u;break;case 3:p(),r=0,u!=="*"&&u!=="?"&&u!=="+"&&s--,l="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${c}"`),p(),a(),i}function pb(e,t,r){const n=ub(fb(e.path),r),i=we(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function hb(e,t){const r=[],n=new Map;t=Ju({strict:!1,end:!0,sensitive:!1},t);function i(p){return n.get(p)}function o(p,d,f){const h=!f,m=Ku(p);m.aliasOf=f&&f.record;
vendor: 8,009 bytes, line 6
6const g=Ju(t,p),E=[m];if("alias"in p){const k=typeof p.alias=="string"?[p.alias]:p.alias;for(const P of k)E.push(Ku(we({},m,{components:f?f.record.components:m.components,path:P,aliasOf:f?f.record:m})))}let w,T;for(const k of E){const{path:P}=k;if(d&&P[0]!=="/"){const C=d.record.path,D=C[C.length-1]==="/"?"":"/";k.path=d.record.path+(P&&D+P)}if(w=pb(k,d,g),f?f.alias.push(w):(T=T||w,T!==w&&T.alias.push(w),h&&p.name&&!Xu(w)&&a(p.name)),Qd(w)&&u(w),m.children){const C=m.children;for(let D=0;D<C.length;D++)o(C[D],w,f&&f.children[D])}f=f||w}return T?()=>{a(T)}:Pn}function a(p){if(Xd(p)){const d=n.get(p);d&&(n.delete(p),r.splice(r.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=r.indexOf(p);d>-1&&(r.splice(d,1),p.record.name&&n.delete(p.record.name),p.children.forEach(a),p.alias.forEach(a))}}function s(){return r}function u(p){const d=gb(p,r);r.splice(d,0,p),p.record.name&&!Xu(p)&&n.set(p.record.name,p)}function c(p,d){let f,h={},m,g;if("name"in p&&p.name){if(f=n.get(p.name),!f)throw nn(1,{location:p});g=f.record.name,h=we(Wu(d.params,f.keys.filter(T=>!T.optional).concat(f.parent?f.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),p.params&&Wu(p.params,f.keys.map(T=>T.name))),m=f.stringify(h)}else if(p.path!=null)m=p.path,f=r.find(T=>T.re.test(m)),f&&(h=f.parse(m),g=f.record.name);else{if(f=d.name?n.get(d.name):r.find(T=>T.re.test(d.path)),!f)throw nn(1,{location:p,currentLocation:d});g=f.record.name,h=we({},d.params,p.params),m=f.stringify(h)}const E=[];let w=f;for(;w;)E.unshift(w.record),w=w.parent;return{name:g,path:m,params:h,matched:E,meta:mb(E)}}e.forEach(p=>o(p));function l(){r.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:a,clearRoutes:l,getRoutes:s,getRecordMatcher:i}}function Wu(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Ku(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:vb(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 vb(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function Xu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mb(e){return e.reduce((t,r)=>we(t,r.meta),{})}function Ju(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function gb(e,t){let r=0,n=t.length;for(;r!==n;){const o=r+n>>1;Yd(e,t[o])<0?n=o:r=o+1}const i=yb(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function yb(e){let t=e;for(;t=t.parent;)if(Qd(t)&&Yd(e,t)===0)return t}function Qd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bb(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const o=n[i].replace(jd," "),a=o.indexOf("="),s=Hn(a<0?o:o.slice(0,a)),u=a<0?null:Hn(o.slice(a+1));if(s in t){let c=t[s];$t(c)||(c=t[s]=[c]),c.push(u)}else t[s]=u}return t}function Yu(e){let t="";for(let r in e){const n=e[r];if(r=Fy(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}($t(n)?n.map(o=>o&&ba(o)):[n&&ba(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+r,o!=null&&(t+="="+o))})}return t}function _b(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=$t(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const Zd=Symbol(""),Qu=Symbol(""),io=Symbol(""),hs=Symbol(""),Ea=Symbol("");function yn(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Eb(e,t,r){const n=()=>{e[t].delete(r)};Nv(n),rd(n),nd(()=>{e[t].add(r)}),e[t].add(r)}function KR(e){const t=st(Zd,{}).value;t&&Eb(t,"leaveGuards",e)}function pr(e,t,r,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,u)=>{const c=d=>{d===!1?u(nn(4,{from:r,to:t})):d instanceof Error?u(d):ob(d)?u(nn(2,{from:t,to:d})):(a&&n.enterCallbacks[i]===a&&typeof d=="function"&&a.push(d),s())},l=o(()=>e.call(n&&n.instances[i],t,r,c));let p=Promise.resolve(l);e.length<3&&(p=p.then(c)),p.catch(d=>u(d))})}function Ro(e,t,r,n,i=o=>o()){const o=[];for(const a of e)for(const s in a.components){let u=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(Bd(u)){const l=(u.__vccOpts||u)[t];l&&o.push(pr(l,r,n,a,s,i))}else{let c=u();o.push(()=>c.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const p=Oy(l)?l.default:l;a.mods[s]=l,a.components[s]=p;const f=(p.__vccOpts||p)[t];return f&&pr(f,r,n,a,s,i)()}))}}return o}function Zu(e){const t=st(io),r=st(hs),n=W(()=>{const u=Ve(e.to);return t.resolve(u)}),i=W(()=>{const{matched:u}=n.value,{length:c}=u,l=u[c-1],p=r.matched;if(!l||!p.length)return-1;const d=p.findIndex(rn.bind(null,l));if(d>-1)return d;const f=ec(u[c-2]);return c>1&&ec(l)===f&&p[p.length-1].path!==f?p.findIndex(rn.bind(null,u[c-2])):d}),o=W(()=>i.value>-1&&kb(r.params,n.value.params)),a=W(()=>i.value>-1&&i.value===r.matched.length-1&&zd(r.params,n.value.params));function s(u={}){if(Ab(u)){const c=t[Ve(e.replace)?"replace":"push"](Ve(e.to)).catch(Pn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:W(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}function wb(e){return e.length===1?e[0]:e}const Tb=Zt({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:Zu,setup(e,{slots:t}){const r=jt(Zu(e)),{options:n}=st(io),i=W(()=>({[tc(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[tc(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&wb(t.default(r));return e.custom?o:Le("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),Sb=Tb;function Ab(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 kb(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!$t(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function ec(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const tc=(e,t,r)=>e??t??r,Pb=Zt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=st(Ea),i=W(()=>e.route||n.value),o=st(Qu,0),a=W(()=>{let c=Ve(o);const{matched:l}=i.value;let p;for(;(p=l[c])&&!p.components;)c++;return c}),s=W(()=>i.value.matched[a.value]);Jt(Qu,W(()=>a.value+1)),Jt(Zd,s),Jt(Ea,i);const u=wt();return br(()=>[u.value,s.value,e.name],([c,l,p],[d,f,h])=>{l&&(l.instances[p]=c,f&&f!==l&&c&&c===d&&(l.leaveGuards.size||(l.leaveGuards=f.leaveGuards),l.updateGuards.size||(l.updateGuards=f.updateGuards))),c&&l&&(!f||!rn(l,f)||!d)&&(l.enterCallbacks[p]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=i.value,l=e.name,p=s.value,d=p&&p.components[l];if(!d)return rc(r.default,{Component:d,route:c});const f=p.props[l],h=f?f===!0?c.params:typeof f=="function"?f(c):f:null,g=Le(d,we({},h,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(p.instances[l]=null)},ref:u}));return rc(r.default,{Component:g,route:c})||g}}});function rc(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const ef=Pb;function Ob(e){const t=hb(e.routes,e),r=e.parseQuery||bb,n=e.stringifyQuery||Yu,i=e.history,o=yn(),a=yn(),s=yn(),u=
vendor: 4,189 bytes, line 6
6Mt(Dt);let c=Dt;Gr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=Oo.bind(null,x=>""+x),p=Oo.bind(null,Vy),d=Oo.bind(null,Hn);function f(x,j){let V,K;return Xd(x)?(V=t.getRecordMatcher(x),K=j):K=x,t.addRoute(K,V)}function h(x){const j=t.getRecordMatcher(x);j&&t.removeRoute(j)}function m(){return t.getRoutes().map(x=>x.record)}function g(x){return!!t.getRecordMatcher(x)}function E(x,j){if(j=we({},j||u.value),typeof x=="string"){const oe=Io(r,x,j.path),Te=t.resolve({path:oe.path},j),ct=i.createHref(oe.fullPath);return we(oe,Te,{params:d(Te.params),hash:Hn(oe.hash),redirectedFrom:void 0,href:ct})}let V;if(x.path!=null)V=we({},x,{path:Io(r,x.path,j.path).path});else{const oe=we({},x.params);for(const Te in oe)oe[Te]==null&&delete oe[Te];V=we({},x,{params:p(oe)}),j.params=p(j.params)}const K=t.resolve(V,j),me=x.hash||"";K.params=l(d(K.params));const se=Gy(n,we({},x,{hash:Uy(me),path:K.path})),le=i.createHref(se);return we({fullPath:se,hash:me,query:n===Yu?_b(x.query):x.query||{}},K,{redirectedFrom:void 0,href:le})}function w(x){return typeof x=="string"?Io(r,x,u.value.path):we({},x)}function T(x,j){if(c!==x)return nn(8,{from:j,to:x})}function k(x){return D(x)}function P(x){return k(we(w(x),{replace:!0}))}function C(x){const j=x.matched[x.matched.length-1];if(j&&j.redirect){const{redirect:V}=j;let K=typeof V=="function"?V(x):V;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=w(K):{path:K},K.params={}),we({query:x.query,hash:x.hash,params:K.path!=null?{}:x.params},K)}}function D(x,j){const V=c=E(x),K=u.value,me=x.state,se=x.force,le=x.replace===!0,oe=C(V);if(oe)return D(we(w(oe),{state:typeof oe=="object"?we({},me,oe.state):me,force:se,replace:le}),j||V);const Te=V;Te.redirectedFrom=j;let ct;return!se&&qy(n,K,V)&&(ct=nn(16,{to:Te,from:K}),tt(K,K,!0,!1)),(ct?Promise.resolve(ct):U(Te,K)).catch(Xe=>tr(Xe)?tr(Xe,2)?Xe:We(Xe):qe(Xe,Te,K)).then(Xe=>{if(Xe){if(tr(Xe,2))return D(we({replace:le},w(Xe.to),{state:typeof Xe.to=="object"?we({},me,Xe.to.state):me,force:se}),j||Te)}else Xe=re(Te,K,!0,le,me);return N(Te,K,Xe),Xe})}function F(x,j){const V=T(x,j);return V?Promise.reject(V):Promise.resolve()}function $(x){const j=Se.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(x):x()}function U(x,j){let V;const[K,me,se]=Ib(x,j);V=Ro(K.reverse(),"beforeRouteLeave",x,j);for(const oe of K)oe.leaveGuards.forEach(Te=>{V.push(pr(Te,x,j))});const le=F.bind(null,x,j);return V.push(le),z(V).then(()=>{V=[];for(const oe of o.list())V.push(pr(oe,x,j));return V.push(le),z(V)}).then(()=>{V=Ro(me,"beforeRouteUpdate",x,j);for(const oe of me)oe.updateGuards.forEach(Te=>{V.push(pr(Te,x,j))});return V.push(le),z(V)}).then(()=>{V=[];for(const oe of se)if(oe.beforeEnter)if($t(oe.beforeEnter))for(const Te of oe.beforeEnter)V.push(pr(Te,x,j));else V.push(pr(oe.beforeEnter,x,j));return V.push(le),z(V)}).then(()=>(x.matched.forEach(oe=>oe.enterCallbacks={}),V=Ro(se,"beforeRouteEnter",x,j,$),V.push(le),z(V))).then(()=>{V=[];for(const oe of a.list())V.push(pr(oe,x,j));return V.push(le),z(V)}).catch(oe=>tr(oe,8)?oe:Promise.reject(oe))}function N(x,j,V){s.list().forEach(K=>$(()=>K(x,j,V)))}function re(x,j,V,K,me){const se=T(x,j);if(se)return se;const le=j===Dt,oe=Gr?history.state:{};V&&(K||le?i.replace(x.fullPath,we({scroll:le&&oe&&oe.scroll},me)):i.push(x.fullPath,me)),u.value=x,tt(x,j,V,le),We()}let ae;function ie(){ae||(ae=i.listen((x,j,V)=>{if(!vt.listening)return;const K=E(x),me=C(K);if(me){D(we(me,{replace:!0,force:!0}),K).catch(Pn);return}c=K;const se=u.value;Gr&&Zy(ju(se.fullPath,V.delta),no()),U(K,se).catch(le=>tr(le,12)?le:tr(le,2)?(D(we(w(le.to),{force:!0}),K).then(oe=>{tr(oe,20)&&!V.delta&&V.type===Un.pop&&i.go(-1,!1)}).catch(Pn),Promise.reject()):(V.delta&&i.go(-V.delta,!1),qe(le,K,se))).then(le=>{le=le||re(K,se,!1),le&&(V.delta&&!tr(le,8)?i.go(-V.delta,!1):V.type===Un.pop&&tr(le,20)&&i.go(-1,!1)),N(K,se,le)}).catch(Pn)}))}let Y=yn(),ge=yn(),xe;function qe(x,j,V){We(x);const K=ge.list();return K.length?K.forEach(me=>me(x,j,V)):console.error(x),Promise.reject(x)}function ze(){return xe&&u.value!==Dt?Promise.resolve():new Promise((x,j)=>{Y.add([x,j])})}
6function We(x){return xe||(xe=!x,ie(),Y.list().forEach(([j,V])=>x?V(x):j()),Y.reset()),x}function tt(x,j,V,K){const{scrollBehavior:me}=e;if(!Gr||!me)return Promise.resolve();const se=!V&&eb(ju(x.fullPath,0))||(K||!V)&&history.state&&history.state.scroll||null;return or().then(()=>me(x,j,se)).then(le=>le&&Qy(le)).catch(le=>qe(le,x,j))}const Ke=x=>i.go(x);let ke;const Se=new Set,vt={currentRoute:u,listening:!0,addRoute:f,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:m,resolve:E,options:e,push:k,replace:P,go:Ke,back:()=>Ke(-1),forward:()=>Ke(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:ge.add,isReady:ze,install(x){const j=this;x.component("RouterLink",Sb),x.component("RouterView",ef),x.config.globalProperties.$router=j,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>Ve(u)}),Gr&&!ke&&u.value===Dt&&(ke=!0,k(i.location).catch(me=>{}));const V={};for(const me in Dt)Object.defineProperty(V,me,{get:()=>u.value[me],enumerable:!0});x.provide(io,j),x.provide(hs,nr(V)),x.provide(Ea,u);const K=x.unmount;Se.add(x),x.unmount=function(){Se.delete(x),Se.size<1&&(c=Dt,ae&&ae(),ae=null,u.value=Dt,ke=!1,xe=!1),K()}}};function z(x){return x.reduce((j,V)=>j.then(()=>$(V)),Promise.resolve())}return vt}function Ib(e,t){const r=[],n=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const s=t.matched[a];s&&(e.matched.find(c=>rn(c,s))?n.push(s):r.push(s));const u=e.matched[a];u&&(t.matched.find(c=>rn(c,u))||i.push(u))}return[r,n,i]}function XR(){return st(io)}function tf(e){return st(hs)}const Rb=/(:\w+)\([^)]+\)/g,Cb=/(:\w+)[?+*]/g,xb=/:\w+/g,Db=(e,t)=>t.path.replace(Rb,"$1").replace(Cb,"$1").replace(xb,r=>e.params[r.slice(1)]?.toString()||""),wa=(e,t)=>{const r=e.route.matched.find(i=>i.components?.default===e.Component.type),n=t??r?.meta.key??(r&&Db(e.route,r));return typeof n=="function"?n(e.route):n},Lb=(e,t)=>({default:()=>e?Le(Mv,e===!0?{}:e,t):t});function vs(e){return Array.isArray(e)?e:[e]}const Nb={path:"/voice-ai-phone/:slug(.*)?"},Co=[{name:"API",path:"/API",component:()=>A(()=>import("./DKmH-wTi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74]),import.meta.url)},{name:"FAQ",path:"/FAQ",component:()=>A(()=>import("./5EnKVnCF.js"),__vite__mapDeps([75,76,6,2,66,22,42,23,14,24,77,26,27,15,17,28,29,41,78]),import.meta.url)},{name:"Tos",path:"/Tos",component:()=>A(()=>import("./BuYyK2kJ.js"),__vite__mapDeps([79,30,23,14,2,24,41,80]),import.meta.url)},{name:"Apps",path:"/Apps",component:()=>A(()=>import("./Di8SLnf_.js"),__vite__mapDeps([81,2,41,14]),import.meta.url),children:[{name:"Apps-LOL",path:"LOL",component:()=>A(()=>import("./BI2jkENt.js"),__vite__mapDeps([82,6,2,73,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,90,91,92]),import.meta.url)},{name:"Apps-OBS",path:"OBS",component:()=>A(()=>import("./CYRUJn-R.js"),__vite__mapDeps([93,73,2,89,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,94]),import.meta.url)},{name:"Apps-WOW",path:"WOW",component:()=>A(()=>import("./0ZpqyUoX.js"),__vite__mapDeps([95,73,2,89,41,14,96]),import.meta.url)},{name:"Apps-CSGO",path:"CSGO",component:()=>A(()=>import("./B6Iu10Uq.js"),__vite__mapDeps([97,6,2,73,89,90,91,41,14,98]),import.meta.url)},{name:"Apps-PUBG",path:"PUBG",component:()=>A(()=>import("./D65v6qDz.js"),__vite__mapDeps([99,73,2,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,100]),import.meta.url)},{name:"Apps-Zoom",path:"Zoom",component:()=>A(()=>import("./sNC6-cr2.js"),__vite__mapDeps([101,6,2,73,89,90,91,41,14,102]),import.meta.url)},{name:"Apps-Skype",path:"Skype",component:()=>A(()=>import("./DTjVv3ie.js"),__vite__mapDeps([103,6,2,73,89,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,90,91,104]),import.meta.url)},{name:"Apps-Steam",path:"Steam",component:()=>A(()=>import("./9z20iceB.js"),__vite__mapDeps([105,73,2,89,41,14,106]),import.meta.url)},{name:"Apps-Viber",path:"Viber",component:()=>A(()=>import("./W8r90m2r.js"),__vite__mapDeps([107,6,2,73,89,90,91,41,14,108]),import.meta.url)},{name:"Apps-Google",path:"Google",component:()=>A(()=>import("./r0njuP7-.js"),__vite__mapDeps([109,6,2,73,89,90,91,41,14,110]),import.meta.url)},{name:"Apps-Twitch",path:"Twitch",component:()=>A(()=>import("./B6STZzCy.js"),__vite__mapDeps([111,73,2,89,41,14,112]),import.meta.url)},{name:"Apps-AmongUs",path:"AmongUs",component:()=>A(()=>import("./D3LXWTbs.js"),__vite__mapDeps([113,6,2,73,89,90,91,41,14,114]),import.meta.url)},{name:"Apps-Discord",path:"Discord",component:()=>A(()=>import("./B-WVb8wm.js"),__vite__mapDeps([115,6,2,73,89,90,91,41,14,116]),import.meta.url)},{name:"Apps-Fortnite",path:"Fortnite",component:()=>A(()=>import("./B7aYH1cT.js"),__vite__mapDeps([117,6,2,73,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,90,91,118]),import.meta.url)},{name:"Apps-Telegram",path:"Telegram",component:()=>A(()=>import("./YcGvdNeb.js"),__vite__mapDeps([119,73,2,89,41,14,120]),import.meta.url)},{name:"Apps-Valorant",path:"Valorant",component:()=>A(()=>import("./Da6qV_U5.js"),__vite__mapDeps([121,6,2,73,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,122]),import.meta.url)},{name:"Apps-Whatsapp",path:"Whatsapp",component:()=>A(()=>import("./KlQXEIfW.js"),__vite__mapDeps([123,6,2,73,89,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,90,91,124]),import.meta.url)},{name:"Apps-Messenger",path:"Messenger",component:()=>A(()=>import("./D1sdxWgt.js"),__vite__mapDeps([125,73,2,89,41,14,126]),import.meta.url)},{name:"Apps-Minecraft",path:"Minecraft",component:()=>A(()=>import("./WG-JIPYI.js"),__vite__mapDeps([127,73,2,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,128]),import.meta.url)},{name:"Apps-Teamspeak",path:"Teamspeak",component:()=>A(()=>import("./fHmAURkQ.js"),__vite__mapDeps([129,6,2,73,89,90,91,41,14,130]),import.meta.url)},{name:"Apps-Components-Steps",path:"Components/Steps",component:()=>A(()=>import("./fA9WIfdY.js"),__vite__mapDeps([131,2,41,14,132]),import.meta.url)},{name:"Apps-Components-Soundboard",path:"Components/Soundboard",component:()=>A(()=>
6import("./BYLETZNS.js"),__vite__mapDeps([83,84,85,2,61,27,14,45,46,15,28,47,48,62,86,87,41,88]),import.meta.url)},{name:"Apps-Components-LandingTitle",path:"Components/LandingTitle",component:()=>A(()=>import("./NWohMWg-.js"),__vite__mapDeps([133,2,14,15,41,134]),import.meta.url)}]},{name:"Jobs",path:"/Jobs",component:()=>A(()=>import("./Dg3Nv00z.js"),__vite__mapDeps([135,2,136,22,76,6,66,42,23,14,24,77,137,138,26,27,15,17,28,29,53,54,41,139]),import.meta.url)},{name:"About",path:"/About",component:()=>A(()=>import("./BXBP5zmK.js"),__vite__mapDeps([140,6,2,76,66,22,42,23,14,24,77,41]),import.meta.url)},{name:"Login",path:"/Login",component:()=>A(()=>import("./DBf3FSds.js"),__vite__mapDeps([141,2,21,22,23,14,24,25,26,27,15,17,28,29,41]),import.meta.url)},{name:"Ethics",path:"/Ethics",component:()=>A(()=>import("./LP1ON_6B.js"),__vite__mapDeps([142,76,6,2,66,22,42,23,14,24,77,41,143]),import.meta.url)},{name:"AiVoice",path:"/AiVoice",component:()=>A(()=>import("./BN1rUwaV.js"),__vite__mapDeps([144,73,2,89,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,145]),import.meta.url)},{name:"Contact",path:"/Contact",component:()=>A(()=>import("./DsMj2B8D.js"),__vite__mapDeps([146,2,136,22,76,6,66,42,23,14,24,77,137,138,26,27,15,17,28,29,55,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,53,54,41,147]),import.meta.url)},{name:"Credits",path:"/Credits",component:()=>A(()=>import("./C_kLNMeC.js"),__vite__mapDeps([148,2,76,6,66,22,42,23,14,24,77,41,149]),import.meta.url)},{name:"PhoneAi",path:"/PhoneAi",component:()=>A(()=>import("./Cw1c9kxg.js"),__vite__mapDeps([150,73,2,41,14,151]),import.meta.url),children:[{name:"PhoneAi-BusinessPhonePlan",path:"BusinessPhonePlan",component:()=>A(()=>import("./Dg5ZUC6T.js"),__vite__mapDeps([152,73,2,41,14,153]),import.meta.url)},{name:"PhoneAi-HotelAnsweringService",path:"HotelAnsweringService",component:()=>A(()=>import("./Bu3o6Y7p.js"),__vite__mapDeps([154,73,2,41,14,155]),import.meta.url)},{name:"PhoneAi-LegalAnsweringService",path:"LegalAnsweringService",component:()=>A(()=>import("./BYfzgzc8.js"),__vite__mapDeps([156,73,2,41,14,157]),import.meta.url)},{name:"PhoneAi-AiPhoneAnsweringService",path:"AiPhoneAnsweringService",component:()=>A(()=>import("./-8pdxO2Z.js"),__vite__mapDeps([158,73,2,41,14,159]),import.meta.url)},{name:"PhoneAi-HvacCallAnsweringService",path:"HvacCallAnsweringService",component:()=>A(()=>import("./B0sxXPwQ.js"),__vite__mapDeps([160,73,2,41,14,161]),import.meta.url)},{name:"PhoneAi-FinancialAnsweringService",path:"FinancialAnsweringService",component:()=>A(()=>import("./D98Yj2a0.js"),__vite__mapDeps([162,73,2,41,14,163]),import.meta.url)},{name:"PhoneAi-AccountingAnsweringService",path:"AccountingAnsweringService",component:()=>A(()=>import("./BoSuiAaZ.js"),__vite__mapDeps([164,73,2,41,14,165]),import.meta.url)},{name:"PhoneAi-ContractorAnsweringService",path:"ContractorAnsweringService",component:()=>A(()=>import("./B1c3g4t6.js"),__vite__mapDeps([166,73,2,41,14,167]),import.meta.url)},{name:"PhoneAi-RealEstateAnsweringService",path:"RealEstateAnsweringService",component:()=>A(()=>import("./vHSXbyt5.js"),__vite__mapDeps([168,73,2,41,14,169]),import.meta.url)},{name:"PhoneAi-HospitalityAnsweringService",path:"HospitalityAnsweringService",component:()=>A(()=>import("./BPD5bFQD.js"),__vite__mapDeps([170,73,2,41,14,171]),import.meta.url)},{name:"PhoneAi-ConstructionAnsweringService",path:"ConstructionAnsweringService",component:()=>A(()=>import("./EU09ZCW2.js"),__vite__mapDeps([172,73,2,41,14,173]),import.meta.url)},{name:"PhoneAi-AutomatedPhoneAnsweringService",path:"AutomatedPhoneAnsweringService",component:()=>A(()=>import("./BCGMircW.js"),__vite__mapDeps([174,73,2,41,14,175]),import.meta.url)},{name:"PhoneAi-RealEstateCallAnsweringService",path:"RealEstateCallAnsweringService",component:()=>A(()=>import("./D2gWGZce.js"),__vite__mapDeps([176,73,2,41,14,177]),import.meta.url)},{name:"PhoneAi-AppointmentSettingAnsweringService",path:"AppointmentSettingAnsweringService",component:()=>A(()=>import("./IN1w9ztp.js"),__vite__mapDeps([178,73,2,41,14,179]),import.meta.url)}]},{name:"Pricing",path:"/Pricing",component:()=>A(()=>import("./_R-z92oe.js"),__vite__mapDeps([180,2,41,14]),import.meta.url)},{name:"Privacy",path:"/Privacy",component:()=>A(()=>import("./DaC5-A1T.js"),__vite__mapDeps([181,30,23,14,2,24,41,182]),import.meta.url)},{name:"TTS-API",path:"/TTS/API",component:()=>A(()=>import("./C7-A9qsE.js"),__vite__mapDeps([183,184,185,40,41,2,39,22,42,43,1,3,73,14,186,187,188]),import.meta.url)},{name:"HomeNew2",path:"/HomeNew2",component:()=>A(()=>import("./CEoZpsih.js").then(e=>e.H),__vite__mapDeps([189,2,4,190,1,3,67,46,14,15,28,47,68,191,73,66,22,42,43,23,24,192]),import.meta.url)},{name:"Register",path:"/Register",component:()=>A(()=>import("./DRMPLeFZ.js"),__vite__mapDeps([193,2,21,22,23,14,24,25,26,27,15,17,28,29,31,32,33,34,41,194]),import.meta.url)},{name:"Affiliate",path:"/Affiliate",component:()=>A(()=>import("./Ua99sjMP.js"),__vite__mapDeps([195,6,2,136,22,76,66,42,23,14,24,77,137,138,25,26,27,15,17,28,29,53,54,31,32,33,34,41,196]),import.meta.url)},{name:"Halloween",path:"/Halloween",component:()=>A(()=>import("./B2RktsRe.js"),__vite__mapDeps([197,198,2,199,200,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,203,204,39,22,42,43,205,69,56,27,57,45,48,58,44,49,50,51,52,206,207,208,209,210,30,211]),import.meta.url)},{name:"Platforms",path:"/Platforms",component:()=>A(()=>import("./CoYoJRRv.js"),__vite__mapDeps([212,2,41,14]),import.meta.url),children:[{name:"Platforms-PC",path:"PC",component:()=>A(()=>import("./BLiz71r8.js"),__vite__mapDeps([213,73,2,41,14,214]),import.meta.url)},{name:"Platforms-Mac",path:"Mac",component:()=>A(()=>import("./Ck8oUGzj.js"),__vite__mapDeps([215,73,2,41,14,216]),import.meta.url)}]},{name:"DMCAPolicy",path:"/DMCAPolicy",component:()=>A(()=>import("./C-Avwx47.js"),__vite__mapDeps([217,76,6,2,66,22,42,23,14,24,77,41,218]),import.meta.url)},{name:"GetVoiceai",path:"/GetVoiceai",component:()=>A(()=>import("./DoQqQNm4.js"),__vite__mapDeps([219,220,22,2,41,14,221]),import.meta.url)},{name:"Reactivate",path:"/Reactivate",component:()=>A(()=>import("./kP3jOMq7.js"),__vite__mapDeps([222,198,2,199,200,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,203,42,22,207,208,209,57,210,30,223]),import.meta.url)},{name:"Soundboard",path:"/Soundboard",component:()=>A(()=>import("./Cu3lGJl6.js"),__vite__mapDeps([224,6,2,73,89,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,225]),import.meta.url)},{name:"BlackFriday",path:"/BlackFriday",component:()=>A(()=>import("./BdPodHIh.js"),__vite__mapDeps([226,198,2,199,200,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,203,204,39,22,42,43,205,69,56,27,57,45,48,58,44,49,50,51,52,206,207,208,209,210,30,227]),import.meta.url)},{name:"AffiliateTos",path:"/AffiliateTos",component:()=>A(()=>import("./DKpdI-CA.js"),__vite__mapDeps([228,30,23,14,2,24,41,229]),import.meta.url)},{name:"ContactSales",path:"/ContactSales",component:()=>A(()=>import("./DtF8Jm6t.js"),__vite__mapDeps([230,2,136,22,30,23,14,24,44,45,46,15,28,47,48,49,25,26,27,17,29,37,13,16,38,41,231]),import.meta.url)},{name:"CookiePolicy",path:"/CookiePolicy",component:()=>A(()=>import("./CppJgJvZ.js"),__vite__mapDeps([232,30,23,14,2,24,41]),import.meta.url)},{name:"RefundPolicy",path:"/RefundPolicy",component:()=>A(()=>import("./CqgF3rQr.js"),__vite__mapDeps([233,30,23,14,2,24,41,234]),import.meta.url)},{name:"TTS-UseCases",path:"/TTS/UseCases",component:()=>A(()=>import("./CD8xs0cL.js"),__vite__mapDeps([235,236,2,237,66,22,42,23,14,24,41,238]),import.meta.url)},{name:"VoiceAiPhone",path:"/voice-ai-phone/:slug(.*)?",meta:Nb||{},component:()=>A(()=>import("./BDTHUsbF.js"),__vite__mapDeps([239,240,241,2,41,14,242]),import.meta.url)},{name:"VoiceCloning",path:"/VoiceCloning",component:()=>A(()=>import("./D-3NFSIh.js"),__vite__mapDeps([243,1,2,3,71,7,8,9,10,6,11,12,13,14,15,16,17,18,19,69,41,72,244,245,73,246]),import.meta.url)},{name:"AiVoiceAgents",path:"/AiVoiceAgents",component:()=>A(()=>import("./UWIPnTEL.js"),__vite__mapDeps([247,6,2,22,23,14,24,25,26,27,15,17,28,29,53,54,41,248]),import.meta.url),children:[{name:"AiVoiceAgents-Ecommerce",path:"Ecommerce",component:()=>A(()=>import("./-JZ18piw.js"),__vite__mapDeps([249,6,2,250,23,14,24,251,236,237,41,252]),import.meta.url)}]},{name:"ChristmasSale",path:"/ChristmasSale",component:()=>A(()=>import("./CPEs5e0b.js"),__vite__mapDeps([253,198,2,199,200,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,203,204,39,22,42,43,205,69,56,27,57,45,48,58,44,49,50,51,52,206,207,208,209,210,30,254]),import.meta.url)},{name:"RedirectLogin",path:"/RedirectLogin",component:()=>A(()=>
6import("./hNXuE0Rr.js"),__vite__mapDeps([255,22,23,14,2,24,41,256]),import.meta.url)},{name:"ResetPassword",path:"/ResetPassword",component:()=>A(()=>import("./gIQ6jzLC.js"),__vite__mapDeps([257,2,22,23,14,24,25,26,27,15,17,28,29,35,13,16,36,41,258]),import.meta.url)},{name:"SupportedApps",path:"/SupportedApps",component:()=>A(()=>import("./CzAhggNq.js"),__vite__mapDeps([259,73,2,89,41,14,260]),import.meta.url)},{name:"VoiceAiPhone1",path:"/VoiceAiPhone1",component:()=>A(()=>import("./DHxEpla8.js"),__vite__mapDeps([261,241,2,41,14,262]),import.meta.url)},{name:"VoiceAiPhone2",path:"/VoiceAiPhone2",component:()=>A(()=>import("./D2Y0ivwa.js"),__vite__mapDeps([263,241,2,41,14,264]),import.meta.url)},{name:"VoiceAiPhone3",path:"/VoiceAiPhone3",component:()=>A(()=>import("./cVxN3xFf.js"),__vite__mapDeps([265,241,2,41,14,266]),import.meta.url)},{name:"VoiceUniverse",path:"/VoiceUniverse",component:()=>A(()=>import("./BBkFIWMz.js"),__vite__mapDeps([267,6,2,76,66,22,42,23,14,24,77,41,268]),import.meta.url)},{name:"WebTools-Home",path:"/WebTools/Home",component:()=>A(()=>import("./D46hzMwr.js"),__vite__mapDeps([269,39,40,41,2,22,42,43,270,23,14,24]),import.meta.url)},{name:"AiVoiceChanger",path:"/AiVoiceChanger",component:()=>A(()=>import("./VxtkBQwa.js"),__vite__mapDeps([271,6,2,73,89,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,272]),import.meta.url)},{name:"ForgotPassword",path:"/ForgotPassword",component:()=>A(()=>import("./Cn_tlZBx.js"),__vite__mapDeps([273,2,22,23,14,24,25,26,27,15,17,28,29,41]),import.meta.url)},{name:"TTS-Enterprise",path:"/TTS/Enterprise",component:()=>A(()=>import("./BGQLF3kl.js"),__vite__mapDeps([274,6,2,275,23,14,24,276,277,184,185,40,41,39,22,42,43,46,15,28,47,69,53,26,27,17,29,54,56,57,45,48,58,55,51,59,13,16,60,32,33,61,62,63,188,50,52,187,236,237,66,278]),import.meta.url)},{name:"TTS-Publishing",path:"/TTS/Publishing",component:()=>A(()=>import("./snpD9_0w.js"),__vite__mapDeps([279,1,2,3,73,41,14,280]),import.meta.url)},{name:"AccountSettings",path:"/AccountSettings",component:()=>A(()=>import("./CFshISAn.js"),__vite__mapDeps([281,2,40,41,39,22,42,43,44,14,45,46,15,28,47,48,49,23,24,50,13,16,17,51,52,25,26,27,29,282]),import.meta.url)},{name:"ShareConversion",path:"/ShareConversion",component:()=>A(()=>import("./CP6YRVTF.js"),__vite__mapDeps([283,2,76,6,66,22,42,23,14,24,77,40,41,201,46,15,28,47,37,13,16,17,38,202,284]),import.meta.url)},{name:"AiVoiceAgentsNew",path:"/AiVoiceAgentsNew",component:()=>A(()=>import("./DRRIvb3k.js"),__vite__mapDeps([285,6,2,250,23,14,24,251,22,25,26,27,15,17,28,29,53,54,41,286]),import.meta.url)},{name:"Iframe-TtsIframe",path:"/Iframe/TtsIframe",component:()=>A(()=>import("./44Cryiew.js"),__vite__mapDeps([287,6,2,22,69,53,26,27,14,15,17,28,29,54,55,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,50,52,41,288]),import.meta.url)},{name:"DownloadInstaller",path:"/DownloadInstaller",component:()=>A(()=>import("./DEs17HZD.js"),__vite__mapDeps([289,73,2,50,13,14,15,16,17,51,52,43,22,41,290]),import.meta.url)},{name:"TTS-TTSEnterprise",path:"/TTS/TTSEnterprise",component:()=>A(()=>import("./BhwBVo_p.js"),__vite__mapDeps([291,73,2,67,46,14,15,28,47,68,244,245,23,24,41,292]),import.meta.url)},{name:"BrandingGuidelines",path:"/BrandingGuidelines",component:()=>A(()=>import("./DCR8ydmk.js"),__vite__mapDeps([293,2,23,14,24,76,6,66,22,42,77,55,26,27,15,17,28,29,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,41,294]),import.meta.url)},{name:"SupportedPlatforms",path:"/SupportedPlatforms",component:()=>A(()=>import("./CDRPLXJc.js"),__vite__mapDeps([295,73,2,89,41,14,296]),import.meta.url)},{name:"WebTools-BpmFinder",path:"/WebTools/BpmFinder",component:()=>A(()=>import("./C5vx8orS.js"),__vite__mapDeps([297,2,298,299,22,39,40,41,42,43,300,301,302,23,14,24,303]),import.meta.url)},{name:"SocialLoginCallback",path:"/SocialLoginCallback",component:()=>A(()=>import("./DL-R2_VC.js"),__vite__mapDeps([304,22,2,41,14,305]),import.meta.url)},{name:"Iframe-TtsDemoIframe",path:"/Iframe/TtsDemoIframe",component:()=>A(()=>import("./CGgpADI_.js"),__vite__mapDeps([306,276,6,2,277,184,185,40,41,39,22,42,43,46,14,15,28,47,69,53,26,27,17,29,54,56,57,45,48,58,55,51,59,13,16,60,32,33,61,62,63,188,50,52,307]),import.meta.url)},{name:"TTS-ConversationalAI",path:"/TTS/ConversationalAI",component:()=>A(()=>import("./CVABEIZx.js"),__vite__mapDeps([308,6,2,275,23,14,24,276,277,184,185,40,41,39,22,42,43,46,15,28,47,69,53,26,27,17,29,54,56,57,45,48,58,55,51,59,13,16,60,32,33,61,62,63,188,50,52,187,250,251,236,237,66,309]),import.meta.url)},{name:"WebTools-EchoRemover",path:"/WebTools/EchoRemover",component:()=>A(()=>import("./CKQxkeL-.js"),__vite__mapDeps([310,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url)},{name:"WebTools-StemSplitter",path:"/WebTools/StemSplitter",component:()=>A(()=>import("./C3kE5Hai.js"),__vite__mapDeps([314,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url)},{name:"WebTools-VocalRemover",path:"/WebTools/VocalRemover",component:()=>A(()=>import("./C0SBhkZ9.js"),__vite__mapDeps([315,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url)},{name:"WebTools-VoiceChanger",path:"/WebTools/VoiceChanger",component:()=>A(()=>
6import("./DXDqyAG5.js"),__vite__mapDeps([316,6,2,317,39,40,41,22,42,43,69,55,26,27,14,15,17,28,29,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,318,298,299,300,277,184,185,73,23,24,50,52,12,18,44,49,319]),import.meta.url)},{name:"WebTools-AudioEnhancer",path:"/WebTools/AudioEnhancer",component:()=>A(()=>import("./Q-ninzWo.js"),__vite__mapDeps([320,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url)},{name:"WebTools-ReverbRemover",path:"/WebTools/ReverbRemover",component:()=>A(()=>import("./BOQP8Gqw.js"),__vite__mapDeps([321,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url)},{name:"WebTools-VoiceRecorder",path:"/WebTools/VoiceRecorder",component:()=>A(()=>import("./p_Z3DZzO.js"),__vite__mapDeps([322,2,317,39,40,41,22,42,43,69,55,26,27,14,15,17,28,29,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,318,12,18,277,184,185,299,23,24,323]),import.meta.url)},{name:"WebTools-AudioConverter",path:"/WebTools/AudioConverter",component:()=>A(()=>import("./BG5BUV--.js"),__vite__mapDeps([324,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,313,69,23,24]),import.meta.url)},{name:"TTS-MediaAndEntertainment",path:"/TTS/MediaAndEntertainment",component:()=>A(()=>import("./CpKFQgDv.js"),__vite__mapDeps([325,6,2,275,23,14,24,276,277,184,185,40,41,39,22,42,43,46,15,28,47,69,53,26,27,17,29,54,56,57,45,48,58,55,51,59,13,16,60,32,33,61,62,63,188,50,52,187,236,237,66,326]),import.meta.url)}],rf=(e,t)=>({default:()=>e?Le(id,e===!0?{}:e,t):t.default?.()}),Mb=/(:\w+)\([^)]+\)/g,Hb=/(:\w+)[?+*]/g,Ub=/:\w+/g;function nc(e){const t=e?.meta.key??e.path.replace(Mb,"$1").replace(Hb,"$1").replace(Ub,r=>e.params[r.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function Fb(e,t){return e===t||t===Dt?!1:nc(e)!==nc(t)?!0:!e.matched.every((n,i)=>n.components&&n.components.default===t.matched[i]?.components?.default)}function Bb(e,t=!1){if(e){if(e.nodeName==="#comment"&&e.nodeValue==="[")return nf(e,[],t);if(t){const r=e.cloneNode(!0);return r.querySelectorAll("[data-island-slot]").forEach(n=>{n.innerHTML=""}),[r.outerHTML]}return[e.outerHTML]}}function nf(e,t=[],r=!1){if(e&&e.nodeName){if(jb(e))return t;if(!Vb(e)){const n=e.cloneNode(!0);r&&n.querySelectorAll?.("[data-island-slot]").forEach(i=>{i.innerHTML=""}),t.push(n.outerHTML)}nf(e.nextSibling,t,r)}return t}function xo(e,t){const r=e?Bb(e):[t];return r?Hv(r.join(""),r.length):Le("div")}function Vb(e){return e.nodeName==="#comment"&&e.nodeValue==="["}function jb(e){return e.nodeName==="#comment"&&e.nodeValue==="]"}const of={scrollBehavior(e,t,r){const n=Ce(),i=Tt().options?.scrollBehaviorType??"auto";if(e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:af(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const a=n._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(s=>{if(t===Dt){s(ic(e,t,r,i));return}n.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>s(ic(e,t,r,i)))})})}};function af(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 ic(e,t,r,n){if(r)return r;const i=Fb(e,t);return e.hash?{el:e.hash,top:af(e.hash),behavior:i?n:"instant"}:{left:0,top:0}}const $b={routes:e=>[{path:"/",component:()=>A(()=>import("./CEoZpsih.js").then(t=>t.H),__vite__mapDeps([189,2,4,190,1,3,67,46,14,15,28,47,68,191,73,66,22,42,43,23,24,192]),import.meta.url),name:"home",meta:{layout:"website",newDesign:!0}},{path:"/login",component:()=>A(()=>import("./DBf3FSds.js"),__vite__mapDeps([141,2,21,22,23,14,24,25,26,27,15,17,28,29,41]),import.meta.url),name:"login",meta:{layout:"auth"}},{path:"/register",component:()=>A(()=>import("./DRMPLeFZ.js"),__vite__mapDeps([193,2,21,22,23,14,24,25,26,27,15,17,28,29,31,32,33,34,41,194]),import.meta.url),name:"register",meta:{layout:"auth"}},{path:"/get-voiceai",component:()=>A(()=>import("./DoQqQNm4.js"),__vite__mapDeps([219,220,22,2,41,14,221]),import.meta.url),name:"get-voiceai",meta:{layout:"iframe"}},{path:"/redirect",component:()=>A(()=>
6import("./hNXuE0Rr.js"),__vite__mapDeps([255,22,23,14,2,24,41,256]),import.meta.url),name:"redirect",meta:{layout:"auth"}},{path:"/social-login",component:()=>A(()=>import("./DL-R2_VC.js"),__vite__mapDeps([304,22,2,41,14,305]),import.meta.url),name:"social-login-callback",meta:{layout:"auth"}},{path:"/forgot-password",component:()=>A(()=>import("./Cn_tlZBx.js"),__vite__mapDeps([273,2,22,23,14,24,25,26,27,15,17,28,29,41]),import.meta.url),name:"forgot-password",meta:{layout:"auth"}},{path:"/reset-password",component:()=>A(()=>import("./gIQ6jzLC.js"),__vite__mapDeps([257,2,22,23,14,24,25,26,27,15,17,28,29,35,13,16,36,41,258]),import.meta.url),name:"reset-password",meta:{layout:"auth"}},{path:"/tts-demo-iframe",component:()=>A(()=>import("./CGgpADI_.js"),__vite__mapDeps([306,276,6,2,277,184,185,40,41,39,22,42,43,46,14,15,28,47,69,53,26,27,17,29,54,56,57,45,48,58,55,51,59,13,16,60,32,33,61,62,63,188,50,52,307]),import.meta.url),name:"tts-demo-iframe",meta:{layout:"iframe"}},{path:"/tts-iframe",component:()=>A(()=>import("./44Cryiew.js"),__vite__mapDeps([287,6,2,22,69,53,26,27,14,15,17,28,29,54,55,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,50,52,41,288]),import.meta.url),name:"tts-iframe",meta:{layout:"iframe"}},{path:"/download-installer",component:()=>A(()=>import("./DEs17HZD.js"),__vite__mapDeps([289,73,2,50,13,14,15,16,17,51,52,43,22,41,290]),import.meta.url),name:"download-installer",meta:{layout:"website"}},{path:"/ai-voice",component:()=>A(()=>import("./BN1rUwaV.js"),__vite__mapDeps([144,73,2,89,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,145]),import.meta.url),name:"ai-voice",meta:{layout:"website"}},{path:"/phone-ai",component:()=>A(()=>import("./Cw1c9kxg.js"),__vite__mapDeps([150,73,2,41,14,151]),import.meta.url),name:"phone-ai",meta:{layout:"website"}},{path:"/phone-ai/ai-phone-answering-service",component:()=>A(()=>import("./-8pdxO2Z.js"),__vite__mapDeps([158,73,2,41,14,159]),import.meta.url),name:"phone-ai.ai-phone-answering-service",meta:{layout:"website"}},{path:"/phone-ai/business-phone-plan",component:()=>A(()=>import("./Dg5ZUC6T.js"),__vite__mapDeps([152,73,2,41,14,153]),import.meta.url),name:"phone-ai.business-phone-plan",meta:{layout:"website"}},{path:"/phone-ai/automated-phone-answering-service",component:()=>A(()=>import("./BCGMircW.js"),__vite__mapDeps([174,73,2,41,14,175]),import.meta.url),name:"phone-ai.automated-phone-answering-service",meta:{layout:"website"}},{path:"/phone-ai/appointment-setting-answering-service",component:()=>A(()=>import("./IN1w9ztp.js"),__vite__mapDeps([178,73,2,41,14,179]),import.meta.url),name:"phone-ai.appointment-setting-answering-service",meta:{layout:"website"}},{path:"/phone-ai/hvac-call-answering-service",component:()=>A(()=>import("./B0sxXPwQ.js"),__vite__mapDeps([160,73,2,41,14,161]),import.meta.url),name:"phone-ai.hvac-call-answering-service",meta:{layout:"website"}},{path:"/phone-ai/legal-answering-service",component:()=>A(()=>import("./BYfzgzc8.js"),__vite__mapDeps([156,73,2,41,14,157]),import.meta.url),name:"phone-ai.legal-answering-service",meta:{layout:"website"}},{path:"/phone-ai/real-estate-call-answering-service",component:()=>A(()=>import("./D2gWGZce.js"),__vite__mapDeps([176,73,2,41,14,177]),import.meta.url),name:"phone-ai.real-estate-call-answering-service",meta:{layout:"website"}},{path:"/phone-ai/contractor-answering-service",component:()=>A(()=>import("./B1c3g4t6.js"),__vite__mapDeps([166,73,2,41,14,167]),import.meta.url),name:"phone-ai.contractor-answering-service",meta:{layout:"website"}},{path:"/phone-ai/accounting-answering-service",component:()=>A(()=>import("./BoSuiAaZ.js"),__vite__mapDeps([164,73,2,41,14,165]),import.meta.url),name:"phone-ai.accounting-answering-service",meta:{layout:"website"}},{path:"/phone-ai/construction-answering-service",component:()=>A(()=>import("./EU09ZCW2.js"),__vite__mapDeps([172,73,2,41,14,173]),import.meta.url),name:"phone-ai.construction-answering-service",meta:{layout:"website"}},{path:"/phone-ai/financial-answering-service",component:()=>A(()=>import("./D98Yj2a0.js"),__vite__mapDeps([162,73,2,41,14,163]),import.meta.url),name:"phone-ai.financial-answering-service",meta:{layout:"website"}},{path:"/phone-ai/real-estate-answering-service",component:()=>A(()=>import("./vHSXbyt5.js"),__vite__mapDeps([168,73,2,41,14,169]),import.meta.url),name:"phone-ai.real-estate-answering-service",meta:{layout:"website"}},{path:"/phone-ai/hotel-answering-service",component:()=>A(()=>import("./Bu3o6Y7p.js"),__vite__mapDeps([154,73,2,41,14,155]),import.meta.url),name:"phone-ai.hotel-answering-service",meta:{layout:"website"}},{path:"/phone-ai/hospitality-answering-service",component:()=>A(()=>import("./BPD5bFQD.js"),__vite__mapDeps([170,73,2,41,14,171]),import.meta.url),name:"phone-ai.hospital
6ity-answering-service",meta:{layout:"website"}},{path:"/ai-voice-changer",component:()=>A(()=>import("./VxtkBQwa.js"),__vite__mapDeps([271,6,2,73,89,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,272]),import.meta.url),name:"ai-voice-changer",meta:{layout:"website"}},{path:"/voice-cloning",component:()=>A(()=>import("./D-3NFSIh.js"),__vite__mapDeps([243,1,2,3,71,7,8,9,10,6,11,12,13,14,15,16,17,18,19,69,41,72,244,245,73,246]),import.meta.url),name:"voice-cloning",meta:{layout:"website"}},{path:"/share/:code?",component:()=>A(()=>import("./CP6YRVTF.js"),__vite__mapDeps([283,2,76,6,66,22,42,23,14,24,77,40,41,201,46,15,28,47,37,13,16,17,38,202,284]),import.meta.url),name:"share-conversion",meta:{layout:"website"}},{path:"/reactivate",name:"reactivate",component:()=>A(()=>import("./kP3jOMq7.js"),__vite__mapDeps([222,198,2,199,200,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,203,42,22,207,208,209,57,210,30,223]),import.meta.url),meta:{middleware:["user-agent-redirect"]}},{path:"/halloween",name:"halloween",component:()=>A(()=>import("./B2RktsRe.js"),__vite__mapDeps([197,198,2,199,200,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,203,204,39,22,42,43,205,69,56,27,57,45,48,58,44,49,50,51,52,206,207,208,209,210,30,211]),import.meta.url)},{path:"/black-friday",name:"black-friday",component:()=>A(()=>import("./BdPodHIh.js"),__vite__mapDeps([226,198,2,199,200,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,203,204,39,22,42,43,205,69,56,27,57,45,48,58,44,49,50,51,52,206,207,208,209,210,30,227]),import.meta.url)},{path:"/christmas-sale",name:"christmas-sale",component:()=>A(()=>import("./CPEs5e0b.js"),__vite__mapDeps([253,198,2,199,200,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,203,204,39,22,42,43,205,69,56,27,57,45,48,58,44,49,50,51,52,206,207,208,209,210,30,254]),import.meta.url)},{path:"/about",name:"about",component:()=>A(()=>import("./BXBP5zmK.js"),__vite__mapDeps([140,6,2,76,66,22,42,23,14,24,77,41]),import.meta.url),meta:{layout:"website"}},{path:"/jobs",name:"jobs",component:()=>A(()=>import("./Dg3Nv00z.js"),__vite__mapDeps([135,2,136,22,76,6,66,42,23,14,24,77,137,138,26,27,15,17,28,29,53,54,41,139]),import.meta.url),meta:{layout:"website"}},{path:"/ethics",name:"ethics",component:()=>A(()=>import("./LP1ON_6B.js"),__vite__mapDeps([142,76,6,2,66,22,42,23,14,24,77,41,143]),import.meta.url),meta:{layout:"website"}},{path:"/branding-guidelines",name:"branding-guidelines",component:()=>A(()=>import("./DCR8ydmk.js"),__vite__mapDeps([293,2,23,14,24,76,6,66,22,42,77,55,26,27,15,17,28,29,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,41,294]),import.meta.url),meta:{layout:"website"}},{path:"/dmca-policy",name:"dmca-policy",component:()=>A(()=>import("./C-Avwx47.js"),__vite__mapDeps([217,76,6,2,66,22,42,23,14,24,77,41,218]),import.meta.url),meta:{layout:"website"}},{path:"/affiliate",name:"affiliate",component:()=>A(()=>import("./Ua99sjMP.js"),__vite__mapDeps([195,6,2,136,22,76,66,42,23,14,24,77,137,138,25,26,27,15,17,28,29,53,54,31,32,33,34,41,196]),import.meta.url),meta:{layout:"website"}},{path:"/faq",name:"faq",component:()=>A(()=>import("./5EnKVnCF.js"),__vite__mapDeps([75,76,6,2,66,22,42,23,14,24,77,26,27,15,17,28,29,41,78]),import.meta.url),meta:{layout:"website"}},{path:"/cookie-policy",name:"cookie-policy",component:()=>A(()=>import("./CppJgJvZ.js"),__vite__mapDeps([232,30,23,14,2,24,41]),import.meta.url),meta:{layout:"website"}},{path:"/affiliate-tos",name:"affiliate-tos",component:()=>A(()=>import("./DKpdI-CA.js"),__vite__mapDeps([228,30,23,14,2,24,41,229]),import.meta.url),meta:{layout:"website"}},{path:"/tos",name:"tos",component:()=>A(()=>import("./BuYyK2kJ.js"),__vite__mapDeps([79,30,23,14,2,24,41,80]),import.meta.url),meta:{layout:"website"}},{path:"/privacy",name:"privacy-policy",component:()=>A(()=>import("./DaC5-A1T.js"),__vite__mapDeps([181,30,23,14,2,24,41,182]),import.meta.url),meta:{layout:"website"}},{path:"/pricing",name:"pricing",component:()=>A(()=>import("./_R-z92oe.js"),__vite__mapDeps([180,2,41,14]),import.meta.url),meta:{layout:"website"}},{path:"/refund-policy",name:"refund-policy",component:()=>A(()=>import("./CqgF3rQr.js"),__vite__mapDeps([233,30,23,14,2,24,41,234]),import.meta.url),meta:{layout:"website"}},{path:"/contact",name:"contact",component:()=>A(()=>import("./DsMj2B8D.js"),__vite__mapDeps([146,2,136,22,76,6,66,42,23,14,24,77,137,138,26,27,15,17,28,29,55,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,53,54,41,147]),import.meta.url),meta:{layout:"website"}},{path:"/soundboard",name:"soundboard",component:()=>A(()=>import("./Cu3lGJl6.js"),__vite__mapDeps([224,6,2,73,89,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,225]),import.meta.url),meta:{layout:"website"}},{path:"/credits",name:"credits",component:()=>A(()=>import("./C_kLNMeC.js"),__vite__mapDeps([148,2,76,6,66,22,42,23,14,24,77,41,149]),import.meta.url),meta:{layout:"website"}},{path:"/voice-universe",name:"voice-universe",component:()=>A(()=>import("./BBkFIWMz.js"),__vite__mapDeps([267,6,2,76,66,22,42,23,14,24,77,41,268]),import.meta.url),meta:{layout:"website"}},{path:"/platforms",name:"supported-platforms",component:()=>A(()=>import("./CDRPLXJc.js"),__vite__mapDeps([295,73,2,89,41,14,296]),import.meta.url),meta:{layout:"website"}},{path:"/platforms/mac",name:"platforms.mac",component:()=>A(()=>import("./Ck8oUGzj.js"),__vite__mapDeps([215,73,2,41,14,216]),import.meta.url),meta:{layout:"website"}},{path:"/platforms/pc",name:"platforms.pc",component:()=>A(()=>import("./BLiz71r8.js"),__vite__mapDeps([213,73,2,41,14,214]),import.meta.url),meta:{layout:"website"}},{path:"/apps",name:"supported-apps",component:()=>A(()=>import("./CzAhggNq.js"),__vite__mapDeps([259,73,2,89,41,14,260]),import.meta.url),meta:{layout:"website"}},{path:"/apps/among-us",name:"apps.amongus",component:()=>A(()=>import("./D3LXWTbs.js"),__vite__mapDeps([113,6,2,73,89,90,91,41,14,114]),import.meta.url),meta:{layout:"website"}},{path:"/apps/csgo",name:"apps.csgo",component:()=>A(()=>import("./B6Iu10Uq.js"),__vite__mapDeps([97,6,2,73,89,90,91,41,14,98]),import.meta.url),meta:{layout:"website"}}
6,{path:"/apps/discord",name:"apps.discord",component:()=>A(()=>import("./B-WVb8wm.js"),__vite__mapDeps([115,6,2,73,89,90,91,41,14,116]),import.meta.url),meta:{layout:"website"}},{path:"/apps/fortnite",name:"apps.fortnite",component:()=>A(()=>import("./B7aYH1cT.js"),__vite__mapDeps([117,6,2,73,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,90,91,118]),import.meta.url),meta:{layout:"website"}},{path:"/apps/google-meet",name:"apps.google",component:()=>A(()=>import("./r0njuP7-.js"),__vite__mapDeps([109,6,2,73,89,90,91,41,14,110]),import.meta.url),meta:{layout:"website"}},{path:"/apps/league-of-legends",name:"apps.lol",component:()=>A(()=>import("./BI2jkENt.js"),__vite__mapDeps([82,6,2,73,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,90,91,92]),import.meta.url),meta:{layout:"website"}},{path:"/apps/messenger",name:"apps.messenger",component:()=>A(()=>import("./D1sdxWgt.js"),__vite__mapDeps([125,73,2,89,41,14,126]),import.meta.url),meta:{layout:"website"}},{path:"/apps/minecraft",name:"apps.minecraft",component:()=>A(()=>import("./WG-JIPYI.js"),__vite__mapDeps([127,73,2,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,128]),import.meta.url),meta:{layout:"website"}},{path:"/apps/obs",name:"apps.obs",component:()=>A(()=>import("./CYRUJn-R.js"),__vite__mapDeps([93,73,2,89,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,94]),import.meta.url),meta:{layout:"website"}},{path:"/apps/pubg",name:"apps.pubg",component:()=>A(()=>import("./D65v6qDz.js"),__vite__mapDeps([99,73,2,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,100]),import.meta.url),meta:{layout:"website"}},{path:"/apps/skype",name:"apps.skype",component:()=>A(()=>import("./DTjVv3ie.js"),__vite__mapDeps([103,6,2,73,89,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,90,91,104]),import.meta.url),meta:{layout:"website"}},{path:"/apps/steam",name:"apps.steam",component:()=>A(()=>import("./9z20iceB.js"),__vite__mapDeps([105,73,2,89,41,14,106]),import.meta.url),meta:{layout:"website"}},{path:"/apps/teamspeak",name:"apps.teamspeak",component:()=>A(()=>import("./fHmAURkQ.js"),__vite__mapDeps([129,6,2,73,89,90,91,41,14,130]),import.meta.url),meta:{layout:"website"}},{path:"/apps/telegram",name:"apps.telegram",component:()=>A(()=>import("./YcGvdNeb.js"),__vite__mapDeps([119,73,2,89,41,14,120]),import.meta.url),meta:{layout:"website"}},{path:"/apps/twitch",name:"apps.twitch",component:()=>A(()=>import("./B6STZzCy.js"),__vite__mapDeps([111,73,2,89,41,14,112]),import.meta.url),meta:{layout:"website"}},{path:"/apps/valorant",name:"apps.valorant",component:()=>A(()=>import("./Da6qV_U5.js"),__vite__mapDeps([121,6,2,73,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,89,122]),import.meta.url),meta:{layout:"website"}},{path:"/apps/viber",name:"apps.viber",component:()=>A(()=>import("./W8r90m2r.js"),__vite__mapDeps([107,6,2,73,89,90,91,41,14,108]),import.meta.url),meta:{layout:"website"}},{path:"/apps/whatsapp",name:"apps.whatsapp",component:()=>A(()=>import("./KlQXEIfW.js"),__vite__mapDeps([123,6,2,73,89,83,84,85,61,27,14,45,46,15,28,47,48,62,86,87,41,88,90,91,124]),import.meta.url),meta:{layout:"website"}},{path:"/apps/wow",name:"apps.wow",component:()=>A(()=>import("./0ZpqyUoX.js"),__vite__mapDeps([95,73,2,89,41,14,96]),import.meta.url),meta:{layout:"website"}},{path:"/apps/zoom",name:"apps.zoom",component:()=>A(()=>import("./sNC6-cr2.js"),__vite__mapDeps([101,6,2,73,89,90,91,41,14,102]),import.meta.url),meta:{layout:"website"}},{path:"/enterprise",name:"tts-enterprise",component:()=>A(()=>import("./BhwBVo_p.js"),__vite__mapDeps([291,73,2,67,46,14,15,28,47,68,244,245,23,24,41,292]),import.meta.url),meta:{layout:"website",newDesign:!0}},{path:"/enterprise/api",name:"tts-api",component:()=>A(()=>import("./C7-A9qsE.js"),__vite__mapDeps([183,184,185,40,41,2,39,22,42,43,1,3,73,14,186,187,188]),import.meta.url),meta:{layout:"website",newDesign:!0}},{path:"/api",name:"api",component:()=>A(()=>import("./DKmH-wTi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74]),import.meta.url),meta:{layout:"website",newDesign:!0}},{path:"/enterprise/publishing",name:"tts-publishing",component:()=>A(()=>import("./snpD9_0w.js"),__vite__mapDeps([279,1,2,3,73,41,14,280]),import.meta.url),meta:{layout:"website",newDesign:!0}},{path:"/enterprise/media-and-entertainment",name:"tts-media-and-entertainment",component:()=>A(()=>import("./CpKFQgDv.js"),__vite__mapDeps([325,6,2,275,23,14,24,276,277,184,185,40,41,39,22,42,43,46,15,28,47,69,53,26,27,17,29,54,56,57,45,48,58,55,51,59,13,16,60,32,33,61,62,63,188,50,52,187,236,237,66,326]),import.meta.url),meta:{layout:"website",newDesign:!0}},{path:"/enterprise/conversational-ai",name:"tts-conversational-ai",component:()=>A(()=>import("./CVABEIZx.js"),__vite__mapDeps([308,6,2,275,23,14,24,276,277,184,185,40,41,39,22,42,43,46,15,28,47,69,53,26,27,17,29,54,56,57,45,48,58,55,51,59,13,16,60,32,33,61,62,63,188,50,52,187,250,251,236,237,66,309]),import.meta.url),meta:{layout:"website",newDesign:!0}},{path:"/enterprise/use-cases",name:"tts-use-cases",component:()=>A(()=>import("./CD8xs0cL.js"),__vite__mapDeps([235,236,2,237,66,22,42,23,14,24,41,238]),import.meta.url),meta:{layout:"website",newDesign:!0}},{path:"/tools",name:"web-tools",component:()=>A(()=>import("./FZuIwjAT.js"),__vite__mapDeps([327,2,6,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,20,21,22,25,26,27,29,30,31,32,33,34,35,36,39,42,43,44,45,48,49,50,51,52,270,204,205,69,56,57,58,206,59,60,207,208,209,210,328]),import.meta.url),redirect:{name:"web-tools-home"},children:[{path:"",name:"web-tools-home",components:{default:()=>A(()=>import("./D46hzMwr.js"),__vite__mapDeps([269,39,40,41,2,22,42,43,270,23,14,24]),import.meta.url),footer:()=>A(()=>import("./32MGLpSf.js"),__vite__mapDeps([329,6,2,23,14,24,41]),import.meta.url)}},{path:"account-settings",name:"web-tools-account-settings",component:()=>A(()=>import("./CFshISAn.js"),__vite__mapDeps([281,2,40,41,39,22,42,43,44,14,45,46,15,28,47,48,49,23,24,50,13,16,17,51,52,25,26,27,29,282]),import.meta.url),meta:{middleware:["sanctum:auth"]}},{path:"voice-changer",name:"voice-changer",components:{default:()=>A(()=>
6import("./DXDqyAG5.js"),__vite__mapDeps([316,6,2,317,39,40,41,22,42,43,69,55,26,27,14,15,17,28,29,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,318,298,299,300,277,184,185,73,23,24,50,52,12,18,44,49,319]),import.meta.url),footer:()=>A(()=>import("./icaZBxjn.js"),__vite__mapDeps([330,6,2,39,40,41,22,42,43,23,14,24]),import.meta.url)}},{path:"vocal-remover",name:"vocal-remover",components:{default:()=>A(()=>import("./C0SBhkZ9.js"),__vite__mapDeps([315,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url),footer:()=>A(()=>import("./BDbwwlGq.js"),__vite__mapDeps([331,6,2,39,40,41,22,42,43,332,333,277,184,185,46,14,15,28,47,23,24,334]),import.meta.url)}},{path:"echo-remover",name:"echo-remover",components:{default:()=>A(()=>import("./CKQxkeL-.js"),__vite__mapDeps([310,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url),footer:()=>A(()=>import("./BawqYuS0.js"),__vite__mapDeps([335,6,2,23,14,24,41]),import.meta.url)}},{path:"stem-splitter",name:"stem-splitter",components:{default:()=>A(()=>import("./C3kE5Hai.js"),__vite__mapDeps([314,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url),footer:()=>A(()=>import("./Can3c2a1.js"),__vite__mapDeps([336,332,2,333,23,14,24,41]),import.meta.url)}},{path:"bpm-finder",name:"bpm-finder",components:{default:()=>A(()=>import("./C5vx8orS.js"),__vite__mapDeps([297,2,298,299,22,39,40,41,42,43,300,301,302,23,14,24,303]),import.meta.url),footer:()=>A(()=>import("./BgTMY_Yk.js"),__vite__mapDeps([337,6,2,23,14,24,41]),import.meta.url)}},{path:"reverb-remover",name:"reverb-remover",components:{default:()=>A(()=>import("./BOQP8Gqw.js"),__vite__mapDeps([321,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url),footer:()=>A(()=>import("./CWS0B0-U.js"),__vite__mapDeps([338,23,14,2,24,41]),import.meta.url)}},{path:"converter",name:"audio-converter",components:{default:()=>A(()=>import("./BG5BUV--.js"),__vite__mapDeps([324,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,313,69,23,24]),import.meta.url),footer:()=>A(()=>import("./Dm0_YpQz.js"),__vite__mapDeps([339,332,2,333,23,14,24,41]),import.meta.url)},children:[{path:":to(mp3|wav|mp4|ogg|flac|m4a)-converter",name:"audio-converter-single",meta:{noScroll:!0}},{path:":from(mp3|wav|mp4|ogg|flac|m4a)-to-:to(mp3|wav|mp4|ogg|flac|m4a)",name:"audio-converter-pair",meta:{noScroll:!0}}]},{path:"audio-enhancer",name:"audio-enhancer",components:{default:()=>A(()=>import("./Q-ninzWo.js"),__vite__mapDeps([320,2,298,299,22,39,40,41,42,43,300,277,184,185,46,14,15,28,47,311,56,27,57,45,48,58,55,26,17,29,51,59,13,16,60,32,33,61,62,63,312,313,69,23,24]),import.meta.url),footer:()=>A(()=>import("./C8BkFxwi.js"),__vite__mapDeps([340,332,2,333,23,14,24,41]),import.meta.url)}},{path:"voice-recorder",name:"voice-recorder",components:{default:()=>A(()=>import("./p_Z3DZzO.js"),__vite__mapDeps([322,2,317,39,40,41,22,42,43,69,55,26,27,14,15,17,28,29,56,57,45,46,47,48,58,51,59,13,16,60,32,33,61,62,63,318,12,18,277,184,185,299,23,24,323]),import.meta.url),footer:()=>A(()=>import("./uaYhl6QF.js"),__vite__mapDeps([341,332,2,333,23,14,24,41]),import.meta.url)}}]},{path:"/contact-sales",name:"contact-sales",component:()=>A(()=>import("./DtF8Jm6t.js"),__vite__mapDeps([230,2,136,22,30,23,14,24,44,45,46,15,28,47,48,49,25,26,27,17,29,37,13,16,38,41,231]),import.meta.url),meta:{layout:"website"}},{path:"/voice-ai-phone/:any(.*)?",name:"voice-ai-phone",component:()=>A(()=>import("./BDTHUsbF.js"),__vite__mapDeps([239,240,241,2,41,14,242]),import.meta.url),meta:{layout:"iframe"}}],scrollBehavior(e,t,r){if(!(t.meta.noScroll||e.meta.noScroll))return e.hash?{selector:e.hash}:{top:0}}},Gb={hashMode:!1,scrollBehaviorType:"auto"},Ta=of.hashMode??!1,dr={...Gb,...of,...$b},qb=async(e,t)=>{let r,n;if(!e.meta?.validate)return;const i=([r,n]=Ir(()=>Promise.resolve(e.meta.validate(e))),r=await r,n(),r);if(i===!0)return;const o=Rr({fatal:!0,statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),o};var Do={exports:{}}
6,Ai={exports:{}};/*! 7 * tiny-cookie - A tiny cookie manipulation plugin 8 * https://github.com/Alex1990/tiny-cookie 9 * Under the MIT license | (c) Alex Chao 10 */var zb=Ai.exports,oc;function Wb(){return oc||(oc=1,(function(e,t){(function(r,n){e.exports=n()})(zb,function(){function r(a,s,u){if(s===void 0)return r.get(a);s===null?r.remove(a):r.set(a,s,u)}r.enabled=function(){var a="__test_key",s;return document.cookie=a+"=1",s=!!document.cookie,s&&r.remove(a),s},r.get=function(a,s){if(typeof a!="string"||!a)return null;a="(?:^|; )"+n(a)+"(?:=([^;]*?))?(?:;|$)";var u=new RegExp(a),c=u.exec(document.cookie);return c!==null?s?c[1]:decodeURIComponent(c[1]):null},r.getRaw=function(a){return r.get(a,!0)},r.set=function(a,s,u,c){u!==!0&&(c=u,u=!1),c=i(c||{});var l=a+"="+(u?s:encodeURIComponent(s))+c;document.cookie=l},r.setRaw=function(a,s,u){r.set(a,s,!0,u)},r.remove=function(a){r.set(a,"a",{expires:new Date})};function n(a){return a.replace(/[.*+?^$|[\](){}\\-]/g,"\\$&")}function i(a){var s="";for(var u in a)if(a.hasOwnProperty(u)){if(u==="expires"){var c=a[u];typeof c!="object"&&(c+=typeof c=="number"?"D":"",c=o(c)),a[u]=c.toUTCString()}if(u==="secure"){a[u]&&(s+=";"+u);continue}s+=";"+u+"="+a[u]}return a.hasOwnProperty("path")||(s+=";path=/"),s}function o(a){var s=new Date,u=a.charAt(a.length-1),c=parseInt(a,10);switch(u){case"Y":s.setFullYear(s.getFullYear()+c);break;case"M":s.setMonth(s.getMonth()+c);break;case"D":s.setDate(s.getDate()+c);break;case"h":s.setHours(s.getHours()+c);break;case"m":s.setMinutes(s.getMinutes()+c);break;case"s":s.setSeconds(s.getSeconds()+c);break;default:s=new Date(a)}return s}return r})})(Ai)),Ai.exports}var ac;function Kb(){return ac||(ac=1,(function(e,t){(function(){Number.isInteger=Number.isInteger||function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i};var r=Wb(),n={install:function(i){i.prototype.$cookie=this,i.cookie=this},set:function(i,o,a){var s=a;return Number.isInteger(a)&&(s={expires:a}),r.set(i,o,s)},get:function(i){return r.get(i)},delete:function(i,o){var a={expires:-1};o!==void 0&&(a=Object.assign(o,a)),this.set(i,"",a)}};e.exports=n})()})(Do)),Do.exports}var Xb=Kb();const li=os(Xb),Jb=(e,t)=>{const{query:r}=e;{const n={expires:"7d"};typeof window<"u"&&window.location.hostname.endsWith("voice.ai")&&(n.domain=".voice.ai"),r.utm_content&&li.set("utm_content",r.utm_content,n),r.utm_campaign&&li.set("utm_campaign",r.utm_campaign,n),r.utm_source&&li.set("utm_source",r.utm_source,n),r.utm_medium&&li.set("utm_medium",r.utm_medium,n)}},Yb=[qb,Jb],Sa={"user-agent-redirect":()=>A(()=>import("./DmmEtqXd.js"),__vite__mapDeps([342,199,2,41,14]),import.meta.url),"sanctum:auth":()=>A(()=>import("./BZz8jOHB.js"),__vite__mapDeps([343,42,22,2,41,14]),import.meta.url),"sanctum:guest":()=>A(()=>import("./DMGOeuDr.js"),__vite__mapDeps([344,42,22,2,41,14]),import.meta.url)};function Qb(e,t,r){const{pathname:n,search:i,hash:o}=t,a=e.indexOf("#");if(a>-1){const c=o.includes(e.slice(a))?e.slice(a).length:1;let l=o.slice(c);return l[0]!=="/"&&(l="/"+l),Au(l,"")}const s=Au(n,e),u=!r||Mm(s,r)?s:r;return u+(u.includes("?")?"":i)+o}const Zb=Be({name:"nuxt:router",enforce:"pre",async setup(e){let t,r,n=er().app.baseURL;Ta&&!n.includes("#")&&(n+="#");const i=dr.history?.(n)??(Ta?ib(n):Kd(n)),o=dr.routes?([t,r]=Ir(()=>dr.routes(Co)),t=await t,r(),t??Co):Co;let a;const s=Ob({...dr,scrollBehavior:(g,E,w)=>{if(E===Dt){a=w;return}if(dr.scrollBehavior){if(s.options.scrollBehavior=dr.scrollBehavior,"scrollRestoration"in window.history){const T=s.beforeEach(()=>{T(),window.history.scrollRestoration="manual"})}return dr.scrollBehavior(g,Dt,a||w)}},history:i,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(s);const u=Mt(s.currentRoute.value);s.afterEach((g,E)=>{u.value=E}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const c=Qb(n,window.location,e.payload.path),l=Mt(s.currentRoute.value),p=()=>{l.value=s.currentRoute.value};e.hook("page:finish",p),s.afterEach((g,E)=>{g.matched[g.matched.length-1]?.components?.default===E.matched[E.matched.length-1]?.components?.default&&p()});const d={};for(const g in l.value)Object.defineProperty(d,g,{get:()=>l.value[g],enumerable:!0});e._route=nr(d),e._middleware||={global:[],named:{}};const f=ro();s.afterEach(async(g,E,w)=>{delete e._processingMiddleware,!e.isHydrating&&f.value&&await e.runWithContext(Nd),w&&await e.callHook("page:loading:end")});try{[t,r]=Ir(()=>s.isReady()),await t,r()}catch(g){[t,r]=Ir(()=>e.runWithContext(()=>Ar(g))),await t,r()}const h=c!==s.currentRoute.value.fullPath?s.resolve(c):s.currentRoute.value;p();const m=e.payload.state._layout;return s.beforeEach(async(g,E)=>{await e.callHook("page:loading:start"),g.meta=jt(g.meta),e.isHydrating&&m&&!Uv(g.meta.layout)&&(g.meta.layout=m),e._processingMiddleware=!0;{const w=new Set([...Yb,...e._middleware.global]);for(const T of g.matched){const k=T.meta.middleware;if(k)for(const P of vs(k))w.add(P)}for(const T of w){const k=typeof T=="string"?e._middleware.named[T]||await Sa[T]?.().then(P=>P.default||P):T;if(!k)throw new Error(`Unknown route middleware: '${T}'.`);try{const P=await e.runWithContext(()=>k(g,E));if(!e.payload.serverRendered&&e.isHydrating&&(P===!1||P instanceof Error)){const C=P||Rr({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Ar(C)),!1}if(P===!0)continue;if(P===!1)return P;if(P)return Md(P)&&P.fatal&&await e.runWithContext(()=>Ar(P)),P}catch(P){const C=Rr(P);return C.fatal&&await e.runWithContext(()=>Ar(C)),C}}}}),s.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),s.afterEach(g=>{if(g.matched.length===0)return e.runWithContext(()=>Ar(Rr({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`,data:{path:g.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await s.replace({...h,force:!0}),s.options.scrollBehavior=dr.scrollBehavior}catch(g){await e.runWithContext(()=>Ar(g))}}),{provide:{router:s}}}}),Aa=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),e_=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),sf=e=>{const t=Ce();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Aa(()=>e())}):Aa(()=>e())},t_=Be(()=>{const e=Tt();sf(()=>
vendor: 4,652 bytes, lines 10-14
10{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})});/*! 11 * pinia v2.0.36 12 * (c) 2023 Eduardo San Martin Morote 13 * @license MIT 14 */let uf;const Kn=e=>uf=e,cf=Symbol();function ka(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var In;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(In||(In={}));function r_(){const e=es(!0),t=e.run(()=>wt({}));let r=[],n=[];const i=Fi({install(o){Kn(i),i._a=o,o.provide(cf,i),o.config.globalProperties.$pinia=i,n.forEach(a=>r.push(a)),n=[]},use(o){return this._a?r.push(o):n.push(o),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return i}const lf=()=>{};function sc(e,t,r,n=lf){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),n())};return!r&&Gn()&&en(i),i}function Vr(e,...t){e.slice().forEach(r=>{r(...t)})}function Pa(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,n)=>e.set(n,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],i=e[r];ka(i)&&ka(n)&&e.hasOwnProperty(r)&&!It(n)&&!rs(n)?e[r]=Pa(i,n):e[r]=n}return e}const n_=Symbol();function i_(e){return!ka(e)||!e.hasOwnProperty(n_)}const{assign:fr}=Object;function o_(e){return!!(It(e)&&e.effect)}function a_(e,t,r,n){const{state:i,actions:o,getters:a}=t,s=r.state.value[e];let u;function c(){s||(r.state.value[e]=i?i():{});const l=od(r.state.value[e]);return fr(l,o,Object.keys(a||{}).reduce((p,d)=>(p[d]=Fi(W(()=>{Kn(r);const f=r._s.get(e);return a[d].call(f,f)})),p),{}))}return u=df(e,c,t,r,n,!0),u}function df(e,t,r={},n,i,o){let a;const s=fr({actions:{}},r),u={deep:!0};let c,l,p=Fi([]),d=Fi([]),f;const h=n.state.value[e];!o&&!h&&(n.state.value[e]={}),wt({});let m;function g(D){let F;c=l=!1,typeof D=="function"?(D(n.state.value[e]),F={type:In.patchFunction,storeId:e,events:f}):(Pa(n.state.value[e],D),F={type:In.patchObject,payload:D,storeId:e,events:f});const $=m=Symbol();or().then(()=>{m===$&&(c=!0)}),l=!0,Vr(p,F,n.state.value[e])}const E=o?function(){const{state:F}=r,$=F?F():{};this.$patch(U=>{fr(U,$)})}:lf;function w(){a.stop(),p=[],d=[],n._s.delete(e)}function T(D,F){return function(){Kn(n);const $=Array.from(arguments),U=[],N=[];function re(Y){U.push(Y)}function ae(Y){N.push(Y)}Vr(d,{args:$,name:D,store:P,after:re,onError:ae});let ie;try{ie=F.apply(this&&this.$id===e?this:P,$)}catch(Y){throw Vr(N,Y),Y}return ie instanceof Promise?ie.then(Y=>(Vr(U,Y),Y)).catch(Y=>(Vr(N,Y),Promise.reject(Y))):(Vr(U,ie),ie)}}const k={_p:n,$id:e,$onAction:sc.bind(null,d),$patch:g,$reset:E,$subscribe(D,F={}){const $=sc(p,D,F.detached,()=>U()),U=a.run(()=>br(()=>n.state.value[e],N=>{(F.flush==="sync"?l:c)&&D({storeId:e,type:In.direct,events:f},N)},fr({},u,F)));return $},$dispose:w},P=jt(k);n._s.set(e,P);const C=n._e.run(()=>(a=es(),a.run(()=>t())));for(const D in C){const F=C[D];if(It(F)&&!o_(F)||rs(F))o||(h&&i_(F)&&(It(F)?F.value=h[D]:Pa(F,h[D])),n.state.value[e][D]=F);else if(typeof F=="function"){const $=T(D,F);C[D]=$,s.actions[D]=F}}return fr(P,C),fr(ts(P),C),Object.defineProperty(P,"$state",{get:()=>n.state.value[e],set:D=>{g(F=>{fr(F,D)})}}),n._p.forEach(D=>{fr(P,a.run(()=>D({store:P,app:n._a,pinia:n,options:s})))}),h&&o&&r.hydrate&&r.hydrate(P.$state,h),c=!0,l=!0,P}function JR(e,t,r){let n,i;const o=typeof t=="function";typeof e=="string"?(n=e,i=o?r:t):(i=e,n=e.id);function a(s,u){const c=qn();return s=s||c&&st(cf,null),s&&Kn(s),s=uf,s._s.has(n)||(o?df(n,t,i,s):a_(n,i,s)),s._s.get(n)}return a.$id=n,a}function YR(e){{e=ts(e);const t={};for(const r in e){const n=e[r];(It(n)||rs(n))&&(t[r]=Et(e,r))}return t}}function uc(e){return typeof e=="string"?`'${e}'`:new s_().serialize(e)}const s_=(function(){class e{#e=new Map;compare(r,n){const i=typeof r,o=typeof n;return i==="string"&&o==="string"?r.localeCompare(n):i==="number"&&o==="number"?r-n:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(n,!0))}serialize(r,n){if(r===null)return"null";switch(typeof r){case"string":return n?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const n=Object.prototype.toString.call(r);if(n!=="[object Object]")return this.serializeBuiltInType(n.length<10?`unknown:${n}`:n.slice(8,-1),r);const i=r.constructor,o=i===Object||i===void 0?"":i.name;if(o!==""&&globalThis[o]===i)return this.serializeBuiltInType(o,r);if(typeof r.toJSON=="function"){const a=r.toJSON();return o+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}
14return this.serializeObjectEntries(o,Object.entries(r))}serializeBuiltInType(r,n){const i=this["$"+r];if(i)return i.call(this,n);if(typeof n?.entries=="function")return this.serializeObjectEntries(r,n.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,n){const i=Array.from(n).sort((a,s)=>this.compare(a[0],s[0]));let o=`${r}{`;for(let a=0;a<i.length;a++){const[s,u]=i[a];o+=`${this.serialize(s,!0)}:${this.serialize(u)}`,a<i.length-1&&(o+=",")}return o+"}"}$object(r){let n=this.#e.get(r);return n===void 0&&(this.#e.set(r,`#${this.#e.size}`),n=this.serializeObject(r),this.#e.set(r,n)),n}$function(r){const n=Function.prototype.toString.call(r);return n.slice(-15)==="[native code] }"?`${r.name||""}()[native]`:`${r.name}(${r.length})${n.replace(/\s*\n\s*/g,"")}`}$Array(r){let n="[";for(let i=0;i<r.length;i++)n+=this.serialize(r[i]),i<r.length-1&&(n+=",");return n+"]"}$Date(r){try{return`Date(${r.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(r){return`ArrayBuffer[${new Uint8Array(r).join(",")}]`}$Set(r){return`Set${this.$Array(Array.from(r).sort((n,i)=>this.compare(n,i)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}
14for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(r){return`${t}(${r})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(r){return`${t}[${r.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(r){return`${t}[${r.join("n,")}${r.length>0?"n":""}]`};return e})();function u_(e,t){return e===t||uc(e)===uc(t)}const c_=Symbol.for("nuxt:client-only"),di="<div></div>",QR=Zt({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:r}){const n=Mt(!1);tn(()=>{n.value=!0});const i=qn();return i&&(i._nuxtClientOnly=!0),Jt(c_,!0),()=>{if(n.value){const u=t.default?.();return u&&u.length===1?[Si(u[0],r)]:u}const o=t.fallback||t.placeholder;if(o)return Le(o);const a=e.fallback||e.placeholder||"",s=e.fallbackTag||e.placeholderTag||"span";return Wt(s,r,a)}}}),Lo=new WeakMap;function l_(e){if(Lo.has(e))return Lo.get(e);const t={...e};return t.render?t.render=(r,n,i,o,a,s)=>{if(o.mounted$??r.mounted$){const u=e.render?.bind(r)(r,n,i,o,a,s);return u.children===null||typeof u.children=="string"?Si(u):Le(u)}return xo(r._.vnode.el,di)}:t.template&&=` 15 <template v-if="mounted$">${e.template}</template> 16 <template v-else>${di}</template> 17 `,t.setup=(r,n)=>{const i=Ce(),o=Mt(i.isHydrating===!1),a=qn();if(i.isHydrating){const u={...a.attrs},c=d_(a);for(const l in u)delete a.attrs[l];tn(()=>{Object.assign(a.attrs,u),a.vnode.dirs=c})}tn(()=>{o.value=!0});const s=e.setup?.(r,n)||{};return Fv(s)?Promise.resolve(s).then(u=>typeof u!="function"?(u||={},u.mounted$=o,u):(...c)=>{if(o.value||!i.isHydrating){const l=u(...c);return l.children===null||typeof l.children=="string"?Si(l):Le(l)}return xo(a?.vnode.el,di)}):typeof s=="function"?(...u)=>{if(o.value){const c=s(...u),l=t.inheritAttrs!==!1?n.attrs:void 0;return c.children===null||typeof c.children=="string"?Si(c,l):Le(c,l)}return xo(a?.vnode.el,di)}:Object.assign(s,{mounted$:o})},Lo.set(e,t),t}function d_(e){if(!e||!e.vnode.dirs)return null;const t=e.vnode.dirs;return e.vnode.dirs=null,t}const f_="$s";function ff(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const i=f_+r,o=Ce(),a=Et(o.payload.state,i);if(a.value===void 0&&n){const s=n();if(It(s))return o.payload.state[i]=s,s;a.value=s}return a}function p_(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const r={},n=t||{},i=n.decode||h_;let o=0;for(;o<e.length;){const a=e.indexOf("=",o);if(a===-1)break;let s=e.indexOf(";",o);if(s===-1)s=e.length;else if(s<a){o=e.lastIndexOf(";",a-1)+1;continue}const u=e.slice(o,a).trim();if(n?.filter&&!n?.filter(u)){o=s+1;continue}if(r[u]===void 0){let c=e.slice(a+1,s).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),r[u]=v_(c,i)}o=s+1}return r}function h_(e){return e.includes("%")?decodeURIComponent(e):e}function v_(e,t){try{return t(e)}catch{return e}}const fi=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function cc(e,t,r){const n=r||{},i=n.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!fi.test(e))throw new TypeError("argument name is invalid");const o=i(t);if(o&&!fi.test(o))throw new TypeError("argument val is invalid");let a=e+"="+o;if(n.maxAge!==void 0&&n.maxAge!==null){const s=n.maxAge-0;if(Number.isNaN(s)||!Number.isFinite(s))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(n.domain){if(!fi.test(n.domain))throw new TypeError("option domain is invalid");a+="; Domain="+n.domain}if(n.path){if(!fi.test(n.path))throw new TypeError("option path is invalid");a+="; Path="+n.path}if(n.expires){if(!m_(n.expires)||Number.isNaN(n.expires.valueOf()))throw new TypeError("option expires is invali
17d");a+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():n.priority){case"low":{a+="; Priority=Low";break}case"medium":{a+="; Priority=Medium";break}case"high":{a+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:{a+="; SameSite=Strict";break}case"lax":{a+="; SameSite=Lax";break}case"strict":{a+="; SameSite=Strict";break}case"none":{a+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(a+="; Partitioned"),a}function m_(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Ft(e){if(typeof e!="object")return e;var t,r,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){r=new e.constructor;for(t in e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=Ft(e[t]))}else{r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ft(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=Ft(e[t])}return r}if(n==="[object Array]"){for(t=e.length,r=Array(t);t--;)r[t]=Ft(e[t]);return r}return n==="[object Set]"?(r=new Set,e.forEach(function(i){r.add(Ft(i))}),r):n==="[object Map]"?(r=new Map,e.forEach(function(i,o){r.set(Ft(o),Ft(i))}),r):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(r=new RegExp(e.source,e.flags),r.lastIndex=e.lastIndex,r):n==="[object DataView]"?new e.constructor(Ft(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}const g_={path:"/",watch:!0,decode:e=>Bi(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},pi=globalThis.cookieStore;function Kr(e,t){const r={...g_,...t};r.filter??=c=>c===e;const n=lc(r)||{};let i;r.maxAge!==void 0?i=r.maxAge*1e3:r.expires&&(i=r.expires.getTime()-Date.now());const o=i!==void 0&&i<=0,a=o||n[e]===void 0||n[e]===null,s=Ft(o?void 0:n[e]??r.default?.()),u=i&&!o?__(s,i,r.watch&&r.watch!=="shallow"):wt(s);{let c=null;try{!pi&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const l=(h=!1)=>{!h&&(r.readonly||u_(u.value,n[e]))||(b_(e,u.value,r),n[e]=Ft(u.value),c?.postMessage({value:r.encode(u.value)}))},p=h=>{const m=h.refresh?lc(r)?.[e]:r.decode(h.value);d=!0,u.value=m,n[e]=Ft(m),or(()=>{d=!1})};let d=!1;const f=!!Gn();if(f&&en(()=>{d=!0,l(),c?.close()}),pi){const h=m=>{const g=m.changed.find(w=>w.name===e),E=m.deleted.find(w=>w.name===e);g&&p({value:g.value}),E&&p({value:null})};pi.addEventListener("change",h),f&&en(()=>pi.removeEventListener("change",h))}else c&&(c.onmessage=({data:h})=>p(h));r.watch&&br(u,()=>{d||l()},{deep:r.watch!=="shallow"}),a&&l(a)}return u}function lc(e={}){return p_(document.cookie,e)}function y_(e,t,r={}){return t==null?cc(e,t,{...r,maxAge:-1}):cc(e,t,r)}function b_(e,t,r={}){document.cookie=y_(e,t,r)}const dc=2147483647;function __(e,t,r){let n,i,o=0;const a=r?wt(e):{value:e};return Gn()&&en(()=>{i?.(),clearTimeout(n)}),Bv((s,u)=>{r&&(i=br(a,u));function c(){o=0,clearTimeout(n);const l=t-o,p=l<dc?l:dc;n=setTimeout(()=>{if(o+=p,o<t)return c();a.value=void 0,u()},p)}return{get(){return s(),a.value},set(l){c(),a.value=l,u()}}})}function E_(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function pf(e,t=Tt()){const{path:r,matched:n}=t.resolve(e);if(!n.length||(t._routePreloaded||=new Set,t._routePreloaded.has(r)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>pf(e,t));t._routePreloaded.add(r);const o=n.map(a=>a.components?.default).filter(a=>typeof a=="function");for(const a of o){const s=Promise.resolve(a()).catch(()=>{}).finally(()=>i.splice(i.indexOf(s)));i.push(s)}await Promise.all(i)}function w_(e={}){const t=Mt(""),r=Mt(e.politeness||"polite"),n=Fd();function i(c="",l="polite"){t.value=c,r.value=l}function o(c){return i(c,"polite")}function a(c){return i(c,"assertive")}function s(){i(document?.title?.trim(),r.value)}function u(){n?.hooks?.removeHook("dom:rendered",s)}return s(),n?.hooks?.hook("dom:rendered",()=>{s()}),{_cleanup:u,message:t,politeness:r,set:i,polite:o,assertive:a}}function T_(e={}){const t=Ce(),r=t._routeAnnouncer||=w_(e);return e.politeness!==r.politeness.value&&(r.politeness.value=e.politeness||"polite"),Gn()&&(t._routeAnnouncerDeps||=0,t._routeAnnouncerDeps++,en(()=>{t._routeAnnouncerDeps--,t._routeAnnouncerDeps===0&&(r._cleanup(),delete t._routeAnnouncer)}
17)),r}const S_=(...e)=>e.find(t=>t!==void 0);function A_(e){const t=e.componentName||"NuxtLink";function r(o){return!Ta&&typeof o=="string"&&o.startsWith("#")}function n(o,a,s){const u=s??e.trailingSlash;if(!o||u!=="append"&&u!=="remove")return o;if(typeof o=="string")return hi(o,u);const c="path"in o&&o.path!==void 0?o.path:a(o).path;return{...o,name:void 0,path:hi(c,u)}}function i(o){const a=Tt(),s=er(),u=W(()=>!!o.target&&o.target!=="_self"),c=W(()=>{const g=o.to||o.href||"";return typeof g=="string"&&Nr(g,{acceptRelative:!0})}),l=_u("RouterLink"),p=l&&typeof l!="string"?l.useLink:void 0,d=W(()=>{if(o.external)return!0;const g=o.to||o.href||"";return typeof g=="object"?!1:g===""||c.value}),f=W(()=>{const g=o.to||o.href||"";return d.value?g:n(g,a.resolve,o.trailingSlash)}),h=d.value?void 0:p?.({...o,to:f}),m=W(()=>{const g=o.trailingSlash??e.trailingSlash;if(!f.value||c.value||r(f.value))return f.value;if(d.value){const E=typeof f.value=="object"&&"path"in f.value?va(f.value):f.value,w=typeof E=="object"?a.resolve(E).href:E;return hi(w,g)}return typeof f.value=="object"?a.resolve(f.value)?.href??null:hi(bd(s.app.baseURL,f.value),g)});return{to:f,hasTarget:u,isAbsoluteUrl:c,isExternal:d,href:m,isActive:h?.isActive??W(()=>f.value===a.currentRoute.value.path),isExactActive:h?.isExactActive??W(()=>f.value===a.currentRoute.value.path),route:h?.route??W(()=>a.resolve(f.value)),async navigate(g){await cs(m.value,{replace:o.replace,external:d.value||u.value})}}}return Zt({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:i,setup(o,{slots:a}){const s=Tt(),{to:u,href:c,navigate:l,isExternal:p,hasTarget:d,isAbsoluteUrl:f}=i(o),h=Mt(!1),m=wt(null),g=T=>{m.value=o.custom?T?.$el?.nextElementSibling:T?.$el};function E(T){return!h.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===T:o.prefetchOn?.[T]??e.prefetchOn?.[T])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!I_()}async function w(T=Ce()){if(h.value)return;h.value=!0;const k=typeof u.value=="string"?u.value:p.value?va(u.value):s.resolve(u.value).fullPath,P=p.value?new URL(k,window.location.href).href:k;await Promise.all([T.hooks.callHook("link:prefetch",P).catch(()=>{}),!p.value&&!d.value&&pf(u.value,s).catch(()=>{})])}if(E("visibility")){const T=Ce();let k,P=null;tn(()=>{const C=P_();sf(()=>{k=Aa(()=>{m?.value?.tagName&&(P=C.observe(m.value,async()=>{P?.(),P=null,await w(T)}))})})}),un(()=>{k&&e_(k),P?.(),P=null})}return()=>{if(!p.value&&!d.value&&!r(u.value)){const P={ref:g,to:u.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};
17return o.custom||(E("interaction")&&(P.onPointerenter=w.bind(null,void 0),P.onFocus=w.bind(null,void 0)),h.value&&(P.class=o.prefetchedClass||e.prefetchedClass),P.rel=o.rel||void 0),Le(_u("RouterLink"),P,a.default)}const T=o.target||null,k=S_(o.noRel?"":o.rel,e.externalRelAttribute,f.value||d.value?"noopener noreferrer":"")||null;return o.custom?a.default?a.default({href:c.value,navigate:l,prefetch:w,get route(){if(!c.value)return;const P=new URL(c.value,window.location.href);return{path:P.pathname,fullPath:P.pathname,get query(){return as(P.search)},hash:P.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:k,target:T,isExternal:p.value||d.value,isActive:!1,isExactActive:!1}):null:Le("a",{ref:m,href:c.value||null,rel:k,target:T,onClick:P=>{if(!(p.value||d.value))return P.preventDefault(),o.replace?s.replace(c.value):s.push(c.value)}},a.default?.())}}})}const k_=A_(hg);function hi(e,t){const r=t==="append"?gd:Nn;return Nr(e)&&!e.startsWith("http")?e:r(e,!0)}function P_(){const e=Ce();if(e._observer)return e._observer;let t=null;const r=new Map,n=(o,a)=>(t||=new IntersectionObserver(s=>{for(const u of s){const c=r.get(u.target);(u.isIntersecting||u.intersectionRatio>0)&&c&&c()}}),r.set(o,a),t.observe(o),()=>{r.delete(o),t?.unobserve(o),r.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:n}}const O_=/2g/;function I_(){const e=navigator.connection;return!!(e&&(e.saveData||O_.test(e.effectiveType)))}var R_=typeof global=="object"&&global&&global.Object===Object&&global,C_=typeof self=="object"&&self&&self.Object===Object&&self,ms=R_||C_||Function("return this")(),on=ms.Symbol,hf=Object.prototype,x_=hf.hasOwnProperty,D_=hf.toString,bn=on?on.toStringTag:void 0;function L_(e){var t=x_.call(e,bn),r=e[bn];try{e[bn]=void 0;var n=!0}catch{}var i=D_.call(e);return n&&(t?e[bn]=r:delete e[bn]),i}var N_=Object.prototype,M_=N_.toString;function H_(e){return M_.call(e)}var U_="[object Null]",F_="[object Undefined]",fc=on?on.toStringTag:void 0;function vf(e){return e==null?e===void 0?F_:U_:fc&&fc in Object(e)?L_(e):H_(e)}function B_(e){return e!=null&&typeof e=="object"}var V_="[object Symbol]";function gs(e){return typeof e=="symbol"||B_(e)&&vf(e)==V_}function j_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var ys=Array.isArray,pc=on?on.prototype:void 0,hc=pc?pc.toString:void 0;function mf(e){if(typeof e=="string")return e;if(ys(e))return j_(e,mf)+"";if(gs(e))return hc?hc.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function gf(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $_="[object AsyncFunction]",G_="[object Function]",q_="[object GeneratorFunction]",z_="[object Proxy]";function W_(e){if(!gf(e))return!1;var t=vf(e);return t==G_||t==q_||t==$_||t==z_}var No=ms["__core-js_shared__"],vc=(function(){var e=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function K_(e){return!!vc&&vc in e}var X_=Function.prototype,J_=X_.toString;function Y_(e){if(e!=null){try{return J_.call(e)}catch{}try{return e+""}catch{}}return""}var Q_=/[\\^$.*+?()[\]{}|]/g,Z_=/^\[object .+?Constructor\]$/,e0=Function.prototype,t0=Object.prototype,r0=e0.toString,n0=t0.hasOwnProperty,i0=RegExp("^"+r0.call(n0).replace(Q_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o0(e){if(!gf(e)||K_(e))return!1;var t=W_(e)?i0:Z_;return t.test(Y_(e))}function a0(e,t){return e?.[t]}function yf(e,t){var r=a0(e,t);return o0(r)?r:void 0}function s0(e,t){return e===t||e!==e&&t!==t}var u0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c0=/^\w*$/;function l0(e,t){if(ys(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gs(e)?!0:c0.test(e)||!u0.test(e)||t!=null&&e in Object(t)}var Fn=yf(Object,"create");function d0(){this.__data__=Fn?Fn(null):{},this.size=0}function f0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var p0="__lodash_hash_undefined__",h0=Object.prototype,v0=h0.hasOwnProperty;function m0(e){var t=this.__data__;if(Fn){var r=t[e];return r===p0?void 0:r}return v0.call(t,e)?t[e]:void 0}var g0=Object.prototype,y0=g0.hasOwnProperty;function b0(e){var t=this.__data__;return Fn?t[e]!==void 0:y0.call(t,e)}var _0="__lodash_hash_undefined__";function E0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Fn&&t===void 0?_0:t,this}function xr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xr.prototype.clear=d0;xr.prototype.delete=f0;xr.prototype.get=m0;xr.prototype.has=b0;xr.prototype.set=E0;function w0(){this.__data__=[],this.size=0}function oo(e,t){for(var r=e.length;r--;)if(s0(e[r][0],t))return r;return-1}var T0=Array.prototype,S0=T0.splice;function A0(e){var t=this.__data__,r=oo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():S0.call(t,r,1),--this.size,!0}function k0(e){var t=this.__data__,r=oo(t,e);return r<0?void 0:t[r][1]}function P0(e){return oo(this.__data__,e)>-1}function O0(e,t){var r=this.__data__,n=oo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ln(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ln.prototype.clear=w0;ln.prototype.delete=A0;ln.prototype.get=k0;ln.prototype.has=P0;ln.prototype.set=O0;var I0=yf(ms,"Map");function R0(){this.size=0,this.__data__={hash:new xr,map:new(I0||ln),string:new xr}}function C0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ao(e,t){var r=e.__data__;return C0(t)?r[typeof t=="string"?"string":"hash"]:r.map}function x0(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t}function D0(e){return ao(this,e).get(e)}function L0(e){return ao(this,e).has(e)}function N0(e,t){var r=ao(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Mr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mr.prototype.clear=R0;Mr.prototype.delete=x0;Mr.prototype.get=D0;Mr.prototype.has=L0;Mr.prototype.set=N0;var M0="Expected a function";function bs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(M0);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(bs.Cache||Mr),r}bs.Cache=Mr;var H0=500;function U0(e){var t=bs(e,function(n){return r.size===H0&&r.clear(),n}
17),r=t.cache;return t}var F0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B0=/\\(\\)?/g,V0=U0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(F0,function(r,n,i,o){t.push(i?o.replace(B0,"$1"):n||r)}),t});function j0(e){return e==null?"":mf(e)}function $0(e,t){return ys(e)?e:l0(e,t)?[e]:V0(j0(e))}function G0(e){if(typeof e=="string"||gs(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function q0(e,t){t=$0(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[G0(t[r++])];return r&&r==n?e:void 0}function qr(e,t,r){var n=e==null?void 0:q0(e,t);return n===void 0?r:n}const z0={sanctum:{interceptors:{onResponse:async(e,t)=>{{const r=qr(t,"response.status");r>=500&&window.bugsnag&&window.bugsnag.notify(new Error(`[${t.options?.method||"GET"}] ${t.request}: ${r}`),i=>{i.addMetadata("request",{url:t.request,method:t.options?.method,status:r,response:qr(t,"response._data")})});const n=r===429&&qr(t,"response._data.message")||qr(t,"response._data.display_notification")||qr(t,"response._data.errors.display_notification[0]");n&&e.$emit("show-warning-message",n)}}}}},W0={nuxt:{}},K0=Sg(z0,W0);function X0(e){return Array.isArray(e)||!!e&&typeof e=="object"&&e.constructor?.name==="Object"}function bf(e,t){for(const r in t){if(r==="__proto__"||r==="constructor")continue;const n=t[r];if(X0(n)){const i=Array.isArray(n)?[]:{};e[r]||=i,bf(e[r],n)}else e[r]=n}}function _f(){const e=Ce();return e._appConfig||=jt(K0),e._appConfig}function J0(e){const t=_f();bf(t,e)}const Y0=Be({name:"pinia",setup(e){const t=r_();return e.vueApp.use(t),Kn(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),Q0=Be({name:"nuxt:global-components"}),mr={"web-tools":ai(()=>A(()=>import("./FZuIwjAT.js"),__vite__mapDeps([327,2,6,201,40,41,23,14,24,46,15,28,47,37,13,16,17,38,202,20,21,22,25,26,27,29,30,31,32,33,34,35,36,39,42,43,44,45,48,49,50,51,52,270,204,205,69,56,57,58,206,59,60,207,208,209,210,328]),import.meta.url).then(e=>e.default||e)),auth:ai(()=>A(()=>import("./D0TAGc6I.js"),__vite__mapDeps([345,203,209,14,2,57,210,30,23,24,46,15,28,47,207,208,41,346]),import.meta.url).then(e=>e.default||e)),iframe:ai(()=>A(()=>import("./Dcrf8Y5O.js"),__vite__mapDeps([347,207,14,2,208,41]),import.meta.url).then(e=>e.default||e)),website:ai(()=>A(()=>import("./Dm2EnG5i.js"),__vite__mapDeps([348,6,2,66,22,42,44,14,45,46,15,28,47,48,49,23,24,50,13,16,17,51,52,220,27,56,57,58,43,59,60,1,3,209,210,30,207,208,41,349]),import.meta.url).then(e=>e.default||e))},Z0=Be({name:"nuxt:prefetch",setup(e){const t=Tt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{const n=r?.meta?.layout;n&&typeof mr[n]=="function"&&await mr[n]()})}),e.hooks.hook("link:prefetch",r=>{if(Nr(r))return;const n=t.resolve(r);if(!n)return;const i=n.meta.layout;let o=vs(n.meta.middleware);o=o.filter(a=>typeof a=="string");for(const a of o)typeof Sa[a]=="function"&&Sa[a]();typeof i=="string"&&i in mr&&E_(mr[i])})}}),kt={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose
17:Number.POSITIVE_INFINITY},mc={silent:{level:-1},fatal:{level:kt.fatal},error:{level:kt.error},warn:{level:kt.warn},log:{level:kt.log},info:{level:kt.info},success:{level:kt.success},fail:{level:kt.fail},ready:{level:kt.info},start:{level:kt.info},box:{level:kt.info},debug:{level:kt.debug},trace:{level:kt.trace},verbose:{level:kt.verbose}};function Mo(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 Oa(e,t,r=".",n){if(!Mo(t))return Oa(e,{},r);const i=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const a=e[o];a!=null&&(Array.isArray(a)&&Array.isArray(i[o])?i[o]=[...a,...i[o]]:Mo(a)&&Mo(i[o])?i[o]=Oa(a,i[o],(r?`${r}.`:"")+o.toString()):i[o]=a)}return i}function eE(e){return(...t)=>t.reduce((r,n)=>Oa(r,n,""),{})}const tE=eE();function rE(e){return Object.prototype.toString.call(e)==="[object Object]"}function nE(e){return!(!rE(e)||!e.message&&!e.args||e.stack)}let Ho=!1;const gc=[];class ut{options;_lastLog;_mockFn;constructor(t={}){const r=t.types||mc;this.options=tE({...t,defaults:{...t.defaults},level:Uo(t.level,r),reporters:[...t.reporters||[]]},{types:mc,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in r){const i={type:n,...this.options.defaults,...r[n]};this[n]=this._wrapLogFn(i),this[n].raw=this._wrapLogFn(i,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=Uo(t,this.options.types,this.options.level)}prompt(t,r){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,r)}create(t){const r=new ut({...this.options,...t});return this._mockFn&&r.mockTypes(this._mockFn),r}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const r=this.options.reporters.indexOf(t);if(r!==-1)return this.options.reporters.splice(r,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,r){t&&(t.__write||(t.__write=t.write),t.write=n=>{this[r].raw(String(n).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){Ho=!0}resumeLogs(){Ho=!1;const t=gc.splice(0);for(const r of t)r[0]._logFn(r[1],r[2])}mockTypes(t){const r=t||this.options.mockFn;if(this._mockFn=r,typeof r=="function")for(const n in this.options.types)this[n]=r(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(t,r){return(...n)=>{if(Ho){gc.push([this,t,n,r]);return}return this._logFn(t,n,r)}}_logFn(t,r,n){if((t.level||0)>this.level)return!1;const i={date:new Date,args:[],...t,level:Uo(t.level,this.options.types)};!n&&r.length===1&&nE(r[0])?Object.assign(i,r[0]):i.args=[...r],i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split(` 18`)),i.args.push(` 19`+i.additional.join(` 20`)),delete i.additional),i.type=typeof i.type=="string"?i.type.toLowerCase():"log",i.tag=typeof i.tag=="string"?i.tag:"";const o=(s=!1)=>{const u=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&u>0){const c=[...this._lastLog.object.args];u>1&&c.push(`(repeated ${u} times)`),this._log({...this._lastLog.object,args:c}),this._lastLog.count=1}s&&(this._lastLog.object=i,this._log(i))};clearTimeout(this._lastLog.timeout);const a=this._lastLog.time&&i.date?i.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=i.date,a<this.options.throttle)try{const s=JSON.stringify([i.type,i.tag,i.args]),u=this._lastLog.serialized===s;if(this._lastLog.serialized=s,u&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(o,this.options.throttle);return}}catch{}o(!0)}_log(t){for(const r of this.options.reporters)r.log(t,{options:this.options})}}function Uo(e,t={},r=3){return e===void 0?r:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:r}ut.prototype.add=ut.prototype.addReporter;ut.prototype.remove=ut.prototype.removeReporter;ut.prototype.clear=ut.prototype.removeReporter;ut.prototype.withScope=ut.prototype.withTag;ut.prototype.mock=ut.prototype.mockTypes;ut.prototype.pause=ut.prototype.pauseLogs;ut.prototype.resume=ut.prototype.resumeLogs;function iE(e={}){return new ut(e)}class oE{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const r=this._getLogFn(t.level),n=t.type==="log"?"":t.type,i=t.tag||"",a=` 21 background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor}; 22 border-radius: 0.5em; 23 color: white; 24 font-weight: bold; 25 padding: 2px 0.5em;
26 `,s=`%c${[i,n].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?r(`${s}%c ${t.args[0]}`,a,"",...t.args.slice(1)):r(s,a,...t.args)}}function Ef(e={}){return iE({reporters:e.reporters||[new oE({})],prompt(r,n={}){return n.type==="confirm"?Promise.resolve(confirm(r)):Promise.resolve(prompt(r))},...e})}Ef();const so=()=>er().public.sanctum,wf=()=>{const e=so();return ff(e.userStateKey,()=>null)},_s=()=>_f().sanctum??{};function Es(e,t){for(const[r,n]of Object.entries(t))e.set(r,n);return e}const aE=new Set(["post","delete","put","patch"]),yc={readonly:!0};async function sE(e,t){if(e.endpoints.csrf===void 0)throw new Error("`sanctum.endpoints.csrf` is not defined");await $fetch(e.endpoints.csrf,{baseURL:e.baseUrl,credentials:"include"}),t.debug("[request] CSRF cookie has been initialized")}async function uE(e,t,r){if(t.csrf.cookie===void 0)throw new Error("`sanctum.csrf.cookie` is not defined");if(t.csrf.header===void 0)throw new Error("`sanctum.csrf.header` is not defined");let n=Kr(t.csrf.cookie,yc);if(n.value||(await sE(t,r),n=Kr(t.csrf.cookie,yc)),!n.value)return r.warn(`${t.csrf.cookie} cookie is missing, unable to set ${t.csrf.header} header`),e;const i={[t.csrf.header]:n.value};return r.debug("[request] added csrf token header",Object.keys(i)),Es(e,i)}async function cE(e,t,r){const n=so(),i=t.options.method?.toLowerCase()??"get";aE.has(i)&&(t.options.headers=await uE(t.options.headers,n,r))}async function lE(e,t,r){if(t.response===void 0){r.debug("[response] no response to process");return}t.response.redirected&&await e.runWithContext(async()=>await cs(t.response.url))}async function dE(e,t,r){const n=t.options.method?.toLowerCase()??"get",i={Accept:"application/json"};t.options.headers=Es(t.options.headers,i),n==="put"&&t.options.body instanceof FormData&&(t.options.method="POST",t.options.body.append("_method","PUT")),r.debug("[request] added default headers",Object.keys(i))}async function fE(e,t,r){const n=_s();if(n.tokenStorage===void 0)throw new Error("`sanctum.tokenStorage` is not defined in app.config.ts");const i=await n.tokenStorage.get(e);if(!i){r.debug("[request] authentication token is not set in the storage");return}const o={Authorization:`Bearer ${i}`};r.debug("[request] add authentication token header",Object.keys(o)),t.options.headers=Es(t.options.headers,o)}async function pE(e,t,r){{r.debug("[response] skipping headers validation on CSR");return}}function hE(e,t){const[r,n]=[[],[]];return r.push(dE),e.mode==="cookie"&&(r.push(cE),n.push(lE)),e.mode==="token"&&r.push(fE),n.push(pE),t.interceptors?.onRequest&&r.push(t.interceptors.onRequest),t.interceptors?.onResponse&&n.push(t.interceptors.onResponse),[r,n]}function vE(){if("credentials"in Request.prototype)return"include"}function mE(e,t){const r=so(),n=wf(),i=_s(),[o,a]=hE(r,i),s={baseURL:r.baseUrl,credentials:vE(),redirect:"manual",retry:r.client.retry===!0?1:r.client.retry,async onRequest(u){for(const c of o)await e.runWithContext(async()=>{await c(e,u,t)});t.trace(`Request headers for "${u.request.toString()}"`,u.options.headers instanceof Headers?Object.fromEntries(u.options.headers.entries()):u.options.headers)},async onResponse(u){for(const c of a)await e.runWithContext(async()=>{await c(e,u,t)});t.trace(`Response headers for "${u.request.toString()}"`,u.response?Object.fromEntries(u.response.headers.entries()):{})},async onResponseError({response:u}){if(u.status===419){t.warn("CSRF token mismatch, check your API configuration");return}u.status===401&&(n.value!==null&&(t.warn("User session is not set in API or expired, resetting identity"),n.value=null),r.redirectIfUnauthenticated&&r.redirect.onAuthOnly&&await e.runWithContext(async()=>await cs(r.redirect.onAuthOnly)))}};return $fetch.create(s)}const gE="sanctum.user.loaded",yE="nuxt-auth-sanctum";function bE(e){const r=yE+":csr";return Ef({level:e}).withTag(r)}async function _E(e,t){t.debug("Token storage is not defined, switch to default cookie storage");const r=await A(()=>import("./huyvd9Up.js"),__vite__mapDeps([350,205,2,41,14]),import.meta.url);e.runWithContext(()=>{J0({sanctum:{tokenStorage:r.cookieTokenStorage}})})}async function EE(e,t,r){const n=wf(),i=ff(gE,()=>!1);if(n.value===null&&!i.value){if(i.value=!0,r.debug("Fetching user identity on plugin initialization"),!t.endpoints.user)throw new Error("`sanctum.endpoints.user` is not defined");try{n.value=await e(t.endpoints.user)}catch(o){wE(o,r)}}}function wE(e,t){e instanceof Td&&e.response&&[401,419].includes(e.response.status)?t.debug("User is not authenticated on plugin initialization, status:",e.response.status):t.error("Unable to load user identity from API",e)}const TE=Be({name:"nuxt-auth-sanctum",async setup(e){let t,r;const n=e,i=so(),o=_s(),a=bE(i.logLevel),s=mE(n,a);return i.mode==="token"&&!o.tokenStorage&&([t,r]=Ir(()=>_E(n,a)),await t,r()),i.client.initialRequest&&([t,r]=Ir(()=>EE(s,i,a)),await t,r()),{provide:{sanctumClient:s}}}}),SE=new RegExp(/Googlebot\/|Googlebot-Mobile|Googlebot-Image|Googlebot-News|Googlebot-Video|AdsBot-Google([^-]|$)|AdsBot-Google-Mobile|Feedfetcher-Google|Mediapartners-Google|Mediapartners \(Googlebot\)|APIs-Google|Google-InspectionTool|Storebot-Google|GoogleOther|bingbot|Slurp|[
26wW]get|LinkedInBot|Python-urllib|python-requests|aiohttp|httpx|libwww-perl|httpunit|Nutch|Go-http-client|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|BIGLOTRON|Teoma|convera|seekbot|Gigabot|Gigablast|exabot|ia_archiver|GingerCrawler|webmon |HTTrack|grub\.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|findlink|msrbot|panscient|yacybot|AISearchBot|ips-agent|tagoobot|MJ12bot|woriobot|yanga|buzzbot|mlbot|yandex\.com\/bots|purebot|Linguee Bot|CyberPatrol|voilabot|Baiduspider|citeseerxbot|spbot|twengabot|postrank|Turnitin|scribdbot|page2rss|sitebot|linkdex|Adidxbot|ezooms|dotbot|Mail\.RU_Bot|discobot|heritrix|findthatfile|europarchive\.org|NerdByNature\.Bot|(sistrix|SISTRIX) [cC]rawler|Ahrefs(Bot|SiteAudit)|fuelbot|CrunchBot|IndeedBot|mappydata|woobot|ZoominfoBot|PrivacyAwareBot|Multiviewbot|SWIMGBot|Grobbot|eright|Apercite|semanticbot|Aboundex|domaincrawler|wbsearchbot|summify|CCBot|edisterbot|SeznamBot|ec2linkfinder|gslfbot|aiHitBot|intelium_bot|facebookexternalhit|Yeti|RetrevoPageAnalyzer|lb-spider|Sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net\.com\.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|it2media-domain-crawler|ip-web-crawler\.com|siteexplorer\.info|elisabot|proximic|changedetection|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|CC Metadata Scaper|g00g1e\.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Twitterbot|cXensebot|smtbot|bnf\.fr_bot|A6-Indexer|ADmantX|Facebot|OrangeBot\/|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive\.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|S[eE][mM]rushBot|yoozBot|lipperhey|Y!J|Domain Re-Animator Bot|AddThis|Screaming Frog SEO Spider|MetaURI|Scrapy|Livelap[bB]ot|OpenHoseBot|CapsuleChecker|collection@infegy\.com|IstellaBot|DeuSu\/|betaBot|Cliqzbot\/|MojeekBot\/|netEstate NE Crawler|SafeSearch microdata crawler|Gluten Free Crawler\/|Sonic|Sysomos|Trove|deadlinkchecker|Slack-ImgProxy|Embedly|RankActiveLinkBot|iskanie|SafeDNSBot|SkypeUriPreview|Veoozbot|Slackbot|redditbot|datagnionbot|Google-Adwords-Instant|adbeat_bot|WhatsApp|contxbot|pinterest\.com\/bot|electricmonk|GarlikCrawler|BingPreview\/|vebidoobot|FemtosearchBot|Yahoo Link Preview|MetaJobBot|DomainStatsBot|mindUpBot|Daum\/|Jugendschutzprogramm-Crawler|Xenu Link Sleuth|Pcore-HTTP|moatbot|KosmioBot|[pP]ingdom|AppInsights|PhantomJS|Gowikibot|PiplBot|Discordbot|TelegramBot|Jetslide|newsharecounts|James BOT|Bark[rR]owler|TinEye|SocialRankIOBot|trendictionbot|Ocarinabot|epicbot|Primalbot|DuckDuckGo-Favicons-Bot|GnowitNewsbot|Leikibot|LinkArchiver|YaK\/|PaperLiBot|Digg Deeper|dcrawl|Snacktory|AndersPinkBot|Fyrebot|EveryoneSocialBot|Mediatoolkitbot|Luminator-robots|ExtLinksBot|SurveyBot|NING\/|okhttp|Nuzzel|omgili|PocketParser|YisouSpider|um-LN|ToutiaoSpider|MuckRack|Jamie's Spider|AHC\/|NetcraftSurveyAgent|Laserlikebot|^Apache-HttpClient|AppEngine-Google|Jetty|Upflow|Thinklab|Traackr\.com|Twurly|Mastodon|http_get|DnyzBot|botify|007ac9 Crawler|BehloolBot|BrandVerity|check_http|BDCbot|ZumBot|EZID|ICC-Crawler|ArchiveBot|^LCC |filterdb\.iss\.net\/crawler|BLP_bbot|BomboraBot|Buck\/|Companybook-Crawler|Genieo|magpie-crawler|MeltwaterNews|Moreover|newspaper\/|ScoutJet|(^| )sentry\/|StorygizeBot|UptimeRobot|OutclicksBot|seoscanners|Hatena|Google Web Preview|MauiBot|AlphaBot|SBL-BOT|IAS crawler|adscanner|Netvibes|acapbot|Baidu-YunGuanCe|bitlybot|blogmuraBot|Bot\.AraTurka\.com|bot-pge\.chlooe\.com|BoxcarBot|BTWebClient|ContextAd Bot|Digincore bot|Disqus|Feedly|Fetch\/|Fever|Flamingo_SearchEngine|FlipboardProxy|g2reader-bot|G2 Web Services|imrbot|K7MLWCBot|Kemvibot|Landau-Media-Spider|linkapediabot|vkShare|Siteimprove\.com|BLEXBot\/|DareBoost|ZuperlistBot\/|Miniflux\/|Feedspot|Diffbot\/|SEOkicks|tracemyfile|Nimbostratus-Bot|zgrab|PR-CY\.RU|AdsTxtCrawler|Datafeedwatch|Zabbix|TangibleeBot|google-xrawler|axios|Amazon CloudFront|Pulsepoint|CloudFlare-AlwaysOnline|Google-Structured-Data-Testing-Tool|WordupInfoSearch|WebDataStats|HttpUrlConnection|ZoomBot|VelenPublicWebCrawler|MoodleBot|jpg-newsbot|outbrain|W3C_Validator|Validator\.nu|W3C-checklink|W3C-mobileOK|W3C_I18n-Checker|FeedValidator|W3C_CSS_Validator|W3C_Unicorn|Google-PhysicalWeb|Blackboard|ICBot\/|BazQux|Twingly|Rivva|Experibot|awesomecrawler|Dataprovider\.com|GroupHigh\/|theoldreader\.com|AnyEvent|Uptimebot\.org|Nmap Scripting Engine|2ip\.ru|Clickagy|Caliperbot|MBCrawler|online-webceo-bot|B2B Bot|AddSearchBot|Google Favicon|HubSpot|Chrome-Lighthouse|HeadlessChrome|CheckMarkNetwork\/|www\.uptime\.com|Streamline3Bot\/|serpstatbot\/|MixnodeCache\/|^curl|SimpleScraper|RSSingBot|Jooblebot|fedoraplanet|Friendica|NextCloud|Tiny Tiny RSS|RegionStuttgartBot|Bytespider|Datanyze|Google-Site-Verification|TrendsmapResolver|tweetedtimes|NTENTbot|Gwene|SimplePie|SearchAtlas|Superfeedr|feedbot|UT-Dorkbot|Amazonbot|SerendeputyBot|Eyeotabot|office
26storebot|Neticle Crawler|SurdotlyBot|LinkisBot|AwarioSmartBot|AwarioRssBot|RyteBot|FreeWebMonitoring SiteChecker|AspiegelBot|NAVER Blog Rssbot|zenback bot|SentiBot|Domains Project\/|Pandalytics|VKRobot|bidswitchbot|tigerbot|NIXStatsbot|Atom Feed Robot|[Cc]urebot|PagePeeker\/|Vigil\/|rssbot\/|startmebot\/|JobboerseBot|seewithkids|NINJA bot|Cutbot|BublupBot|BrandONbot|RidderBot|Taboolabot|Dubbotbot|FindITAnswersbot|infoobot|Refindbot|BlogTraffic\/\d\.\d+ Feed-Fetcher|SeobilityBot|Cincraw|Dragonbot|VoluumDSP-content-bot|FreshRSS|BitBot|^PHP-Curl-Class|Google-Certificates-Bridge|centurybot|Viber|e\.ventures Investment Crawler|evc-batch|PetalBot|virustotal|(^| )PTST\/|minicrawler|Cookiebot|trovitBot|seostar\.co|IonCrawl|Uptime-Kuma|Seekport|FreshpingBot|Feedbin|CriteoBot|Snap URL Preview Service|Better Uptime Bot|RuxitSynthetic|Google-Read-Aloud|Valve\/Steam|OdklBot\/|GPTBot|ChatGPT-User|YandexRenderResourcesBot\/|LightspeedSystemsCrawler|ev-crawler\/|BitSightBot\/|woorankreview\/|Google-Safety|AwarioBot|DataForSeoBot|Linespider|WellKnownBot|A Patent Crawler|StractBot|search\.marginalia\.nu|YouBot|Nicecrawler|Neevabot|BrightEdge Crawler|SiteCheckerBotCrawler|TombaPublicWebCrawler|CrawlyProjectCrawler|KomodiaBot|KStandBot|CISPA Webcrawler|MTRobot|hyscore\.io|AlexandriaOrgBot|2ip bot|Yellowbrandprotectionbot|SEOlizer|vuhuvBot|INETDEX-BOT|Synapse|t3versionsBot|deepnoc|Cocolyzebot|hypestat|ReverseEngineeringBot|sempi\.tech|Iframely|MetaInspector|node-fetch|lkxscan|python-opengraph|OpenGraphCheck|developers\.google\.com\/\+\/web\/snippet|SenutoBot|MaCoCu|NewsBlur|inoreader|NetSystemsResearch|PageThing|WordPress\/|PhxBot|ImagesiftBot|Expanse|InternetMeasurement|^BW\/|GeedoBot|Audisto Crawler|PerplexityBot\/|[cC]laude[bB]ot|Monsidobot|GroupMeBot|Vercelbot|vercel-screenshot/),AE=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,kE=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,PE=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,OE=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
26sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function IE(e){return AE.test(e)||kE.test(e.slice(0,4))}function RE(e){return PE.test(e)||OE.test(e.slice(0,4))}function CE(e){return/iPad|iPhone|iPod/.test(e)}function xE(e){return/android/i.test(e)}function DE(e){return/Windows/.test(e)}function LE(e){return/Mac OS X/.test(e)}const NE=[{name:"Samsung",regex:/SamsungBrowser/i},{name:"Edge",regex:/edg(?:[ea]|ios)?\//i},{name:"Firefox",regex:/firefox|iceweasel|fxios/i},{name:"Chrome",regex:/chrome|crios|crmo/i},{name:"Safari",regex:/safari|applewebkit/i}];function ME(e){for(const t of NE)if(t.regex.test(e))return t.name;return""}function bc(e,t={}){let r=!1,n=!1,i=!1,o=!1;if(e==="Amazon CloudFront")t["cloudfront-is-mobile-viewer"]==="true"&&(r=!0,n=!0),t["cloudfront-is-tablet-viewer"]==="true"&&(r=!1,n=!0),t["cloudfront-is-desktop-viewer"]==="true"&&(r=!1,n=!1),t["cloudfront-is-ios-viewer"]==="true"&&(i=!0),t["cloudfront-is-android-viewer"]==="true"&&(o=!0);else if(t&&t["cf-device-type"])switch(t["cf-device-type"]){case"mobile":r=!0,n=!0;break;case"tablet":r=!1,n=!0;break;case"desktop":r=!1,n=!1;break}else r=IE(e),n=RE(e),i=CE(e),o=xE(e);const a=DE(e),s=LE(e),u=ME(e),c=u==="Safari",l=u==="Firefox",p=u==="Edge",d=u==="Chrome",f=u==="Samsung",h=SE.test(e);return{userAgent:e,isMobile:r,isMobileOrTablet:n,isTablet:!r&&n,isDesktop:!n,isIos:i,isAndroid:o,isWindows:a,isMacOS:s,isApple:s||i,isDesktopOrTablet:!r,isSafari:c,isFirefox:l,isEdge:p,isChrome:d,isSamsung:f,isCrawler:h}}const HE=Be(()=>{const e=er(),t=e.public.device.defaultUserAgent;let r;{const n=navigator.userAgent||t;r=jt(bc(n)),e.public.device.refreshOnResize&&window.addEventListener("resize",()=>{setTimeout(()=>{const i=bc(navigator.userAgent||n);Object.entries(i).forEach(([o,a])=>{r[o]=a})},50)})}return{provide:{device:r}}});function ki(...e){window.dataLayer?.push(arguments)}function Tf({tags:e}){window.dataLayer=window.dataLayer||[];for(const t of e)for(const r of t.initCommands??[])ki(...r);ki("js",new Date);for(const t of e)ki("config",t.id,t.config??{})}function Sf(e){const t=ts(e),r=t.tags.filter(Boolean).map(n=>typeof n=="string"?{id:n}:n);if(t.id){const{id:n,config:i,initCommands:o}=t;r.unshift({id:n,config:i,initCommands:o})}return r}const UE=Be({parallel:!0,setup(){const e=er().public.gtag,t=Sf(e);if(!t.length||(Tf({tags:t}),e.initMode==="manual"))return;const r=e.loadingStrategy==="async"?"async":"defer";ds({link:[{rel:"preload",as:"script",href:Mn(e.url,{id:t[0]?.id})}],script:[{src:Mn(e.url,{id:t[0]?.id}),[r]:!0,"data-gtag":""}]})}});var Ia=function(e,t){return Ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ia(e,t)};function yt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ia(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var q=function(){return q=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},q.apply(this,arguments)};function qi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function M(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(l){try{c(n.next(l))}catch(p){a(p)}}function u(l){try{c(n.throw(l))}catch(p){a(p)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((n=n.apply(e,t||[])).next())})}function L(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function he(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
26if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function pe(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Yr(e){return this instanceof Yr?(this.v=e,this):new Yr(e)}function FE(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(f){return function(h){return Promise.resolve(h).then(f,p)}}function s(f,h){n[f]&&(i[f]=function(m){return new Promise(function(g,E){o.push([f,m,g,E])>1||u(f,m)})},h&&(i[f]=h(i[f])))}function u(f,h){try{c(n[f](h))}catch(m){d(o[0][3],m)}}function c(f){f.value instanceof Yr?Promise.resolve(f.value.v).then(l,p):d(o[0][2],f)}function l(f){u("next",f)}function p(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}}function BE(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof he=="function"?he(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(s,u){a=e[o](a),i(s,u,a.done,a.value)})}}function i(o,a,s,u){Promise.resolve(u).then(function(c){o({value:c,done:s})},a)}}var ir;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(ir||(ir={}));var Nt;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(Nt||(Nt={}));var _c="-",uo="AMP",VE="".concat(uo,"_unsent"),Af="$default_instance",kf="https://api2.amplitude.com/2/httpapi",jE="https://api.eu.amplitude.com/2/httpapi",$E="https://api2.amplitude.com/batch",GE="https://api.eu.amplitude.com/batch",qE="utm_campaign",zE="utm_content",WE="utm_id",KE="utm_medium",XE="utm_source",JE="utm_term",Ec="dclid",wc="fbclid",Tc="gbraid",Sc="gclid",Ac="ko_click_id",kc="li_fat_id",Pc="msclkid",Oc="rdt_cid",Ic="ttclid",Rc="twclid",Cc="wbraid",co={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},zi=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],YE=["authorization","cookie","set-cookie"],QE=1e3,Ra=function(e){if(Object.keys(e).length>QE)return!1;for(var t in e){var r=e[t];if(!Pf(t,r))return!1}return!0},Pf=function(e,t){var r,n;if(typeof e!="string")return!1;if(Array.isArray(t)){var i=!0;try{for(var o=he(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if(typeof s=="object")i=i&&Ra(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(u){r={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}else{if(t==null)return!1;if(typeof t=="object")return Ra(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},an=(function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return q({},this._properties)},e.prototype.set=function(t,r){return this._safeSet(Pe.SET,t,r),this},e.prototype.setOnce=function(t,r){return this._safeSet(Pe.SET_ONCE,t,r),this},e.prototype.append=function(t,r){return this._safeSet(Pe.APPEND,t,r),this},e.prototype.prepend=function(t,r){return this._safeSet(Pe.PREPEND,t,r),this},e.prototype.postInsert=function(t,r){return this._safeSet(Pe.POSTINSERT,t,r),this},e.prototype.preInsert=function(t,r){return this._safeSet(Pe.PREINSERT,t,r),this},e.prototype.remove=function(t,r){return this._safeSet(Pe.REMOVE,t,r),this},e.prototype.add=function(t,r){return this._safeSet(Pe.ADD,t,r),this},e.prototype.unset=function(t){return this._safeSet(Pe.UNSET,t,_c),this},e.prototype.clearAll=function(){return this._properties={},this._properties[Pe.CLEAR_ALL]=_c,this}
26,e.prototype._safeSet=function(t,r,n){if(this._validate(t,r,n)){var i=this._properties[t];return i===void 0&&(i={},this._properties[t]=i),i[r]=n,this._propertySet.add(r),!0}return!1},e.prototype._validate=function(t,r,n){return this._properties[Pe.CLEAR_ALL]!==void 0||this._propertySet.has(r)?!1:t===Pe.ADD?typeof n=="number":t!==Pe.UNSET&&t!==Pe.REMOVE?Pf(r,n):!0},e})(),Pe;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Pe||(Pe={}));var ZE=[Pe.CLEAR_ALL,Pe.UNSET,Pe.SET,Pe.SET_ONCE,Pe.ADD,Pe.APPEND,Pe.PREPEND,Pe.PREINSERT,Pe.POSTINSERT,Pe.REMOVE],ew="Event tracked successfully",tw="Unexpected error occurred",rw="Event rejected due to exceeded retry count",nw="Event skipped due to optOut config",iw="Event rejected due to missing API key",ow="Invalid API key",aw="Client not initialized",Je;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"})(Je||(Je={}));var Qr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Je.Unknown),{event:e,code:t,message:r}},$e=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},sw=function(e){return e?(e^Math.random()*16>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,_r)},xc=pe([],J(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),_r=function(e){var t,r=$e();if(!(!((t=r?.crypto)===null||t===void 0)&&t.getRandomValues))return sw(e);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=n[6]&15|64,n[8]=n[8]&63|128,pe([],J(n.entries()),!1).map(function(i){var o=J(i,2),a=o[0],s=o[1];return[4,6,8,10].includes(a)?"-".concat(xc[s]):xc[s]}).join("")},uw=(function(){function e(t){this.client=t,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(t,r){var n,i;return M(this,void 0,void 0,function(){return L(this,function(o){switch(o.label){case 0:return this.plugins.some(function(a){return a.name===t.name})?(this.loggerProvider.warn("Plugin with name ".concat(t.name," already exists, skipping registration")),[2]):(t.name===void 0&&(t.name=_r(),this.loggerProvider.warn(`Plugin name is undefined. 27 Generating a random UUID for plugin name: `.concat(t.name,`. 28 Set a name for the plugin to prevent it from being added multiple times.`))),t.type=(n=t.type)!==null&&n!==void 0?n:"enrichment",[4,(i=t.setup)===null||i===void 0?void 0:i.call(t,r,this.client)]);case 1:return o.sent(),this.plugins.push(t),[2]}})})},e.prototype.deregister=function(t,r){var n;return M(this,void 0,void 0,function(){var i,o;return L(this,function(a){switch(a.label){case 0:return i=this.plugins.findIndex(function(s){return s.name===t}),i===-1?(r.loggerProvider.warn("Plugin with name ".concat(t," does not exist, skipping deregistration")),[2]):(o=this.plugins[i],this.plugins.splice(i,1),[4,(n=o.teardown)===null||n===void 0?void 0:n.call(o)]);case 1:return a.sent(),[2]}})})},e.prototype.reset=function(t){this.applying=!1;var r=this.plugins;r.map(function(n){var i;return(i=n.teardown)===null||i===void 0?void 0:i.call(n)}),this.plugins=[],this.client=t},e.prototype.push=function(t){var r=this;return new Promise(function(n){r.queue.push([t,n]),r.scheduleApply(0)})},e.prototype.scheduleApply=function(t){var r=this;this.applying||(this.applying=!0,setTimeout(function(){r.apply(r.queue.shift()).then(function(){r.applying=!1,r.queue.length>0&&r.scheduleApply(0)})},t))},e.prototype.apply=function(t){return M(this,void 0,void 0,function(){var r,n,i,o,a,s,u,f,h,c,l,p,d,f,h,m,g,E,w,T,k,P;return L(this,function(C){switch(C.label){case 0:if(!t)return[2];r=J(t,1),n=r[0],i=J(t,2),o=i[1],this.loggerProvider.log("Timeline.apply: Initial event",n),a=this.plugins.filter(function(D){return D.type==="before"}),C.label=1;case 1:C.trys.push([1,6,7,8]),s=he(a),u=s.next(),C.label=2;case 2:return u.done?[3,5]:(f=u.value,f.execute?[4,f.execute(q({},n))]:[3,4]);case 3:if(h=C.sent(),h===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(f.name),"', event: ").concat(JSON.stringify(n))),o({event:n,code:0,message:""}),[2];n=h,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(f.name),"', event: ").concat(JSON.stringify(n))),C.label=4;case 4:return u=s.next(),[3,2];case 5:return[3,8];case 6:return c=C.sent(),w={error:c},[3,8];case 7:try{u&&!u.done&&(T=s.return)&&T.call(s)}finally{if(w)throw w.error}
28return[7];case 8:l=this.plugins.filter(function(D){return D.type==="enrichment"||D.type===void 0}),C.label=9;case 9:C.trys.push([9,14,15,16]),p=he(l),d=p.next(),C.label=10;case 10:return d.done?[3,13]:(f=d.value,f.execute?[4,f.execute(q({},n))]:[3,12]);case 11:if(h=C.sent(),h===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(f.name),"', event: ").concat(JSON.stringify(n))),o({event:n,code:0,message:""}),[2];n=h,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(f.name),"', event: ").concat(JSON.stringify(n))),C.label=12;case 12:return d=p.next(),[3,10];case 13:return[3,16];case 14:return m=C.sent(),k={error:m},[3,16];case 15:try{d&&!d.done&&(P=p.return)&&P.call(p)}finally{if(k)throw k.error}return[7];case 16:return g=this.plugins.filter(function(D){return D.type==="destination"}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(n))),E=g.map(function(D){var F=q({},n);return D.execute(F).catch(function($){return Qr(F,0,String($))})}),Promise.all(E).then(function(D){var F=J(D,1),$=F[0],U=$||Qr(n,100,"Event not tracked, no destination plugins on the instance");o(U)}),[2]}})})},e.prototype.flush=function(){return M(this,void 0,void 0,function(){var t,r,n,i=this;return L(this,function(o){switch(o.label){case 0:return t=this.queue,this.queue=[],[4,Promise.all(t.map(function(a){return i.apply(a)}))];case 1:return o.sent(),r=this.plugins.filter(function(a){return a.type==="destination"}),n=r.map(function(a){return a.flush&&a.flush()}),[4,Promise.all(n)];case 2:return o.sent(),[2]}})})},e.prototype.onIdentityChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onIdentityChanged)===null||n===void 0||n.call(r,t)})},e.prototype.onSessionIdChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onSessionIdChanged)===null||n===void 0||n.call(r,t)})},e.prototype.onOptOutChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onOptOutChanged)===null||n===void 0||n.call(r,t)})},e})(),cw=function(e,t,r){var n=typeof e=="string"?{event_type:e}:e;return q(q(q({},n),r),t&&{event_properties:t})},Of=function(e,t){var r=q(q({},t),{event_type:Nt.IDENTIFY,user_properties:e.getUserProperties()});return r},lw=function(e,t,r,n){var i,o=q(q({},n),{event_type:Nt.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(i={},i[e]=t,i)});return o},dw=function(e,t,r){var n,i=new an;i.set(e,t);var o=q(q({},r),{event_type:Nt.IDENTIFY,user_properties:i.getUserProperties(),groups:(n={},n[e]=t,n)});return o},fw=function(e,t){return q(q({},t),{event_type:Nt.REVENUE,event_properties:e.getEventProperties()})},bt=function(e){return{promise:e||Promise.resolve()}},pw=(function(){function e(t){t===void 0&&(t="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new uw(this),this.name=t}return e.prototype._init=function(t){return M(this,void 0,void 0,function(){return L(this,function(r){switch(r.label){case 0:return this.config=t,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return r.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(t){return M(this,void 0,void 0,function(){var r,n,i,o,a,s,u,c;return L(this,function(l){switch(l.label){case 0:r=this[t],this[t]=[],l.label=1;case 1:l.trys.push([1,8,9,10]),n=he(r),i=n.next(),l.label=2;case 2:return i.done?[3,7]:(o=i.value,a=o(),a&&"promise"in a?[4,a.promise]:[3,4]);case 3:return l.sent(),[3,6];case 4:return[4,a];case 5:l.sent(),l.label=6;case 6:return i=n.next(),[3,2];case 7:return[3,10];case 8:return s=l.sent(),u={error:s},[3,10];case 9:try{i&&!i.done&&(c=n.return)&&c.call(n)}finally{if(u)throw u.error}return[7];case 10:return this[t].length?[4,this.runQueuedFunctions(t)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[2]}})})},e.prototype.track=function(t,r,n){var i=cw(t,r,n);return bt(this.dispatch(i))},e.prototype.identify=function(t,r){var n=Of(t,r);return bt(this.dispatch(n))},e.prototype.groupIdentify=function(t,r,n,i){var o=lw(t,r,n,i);return bt(this.dispatch(o))},e.prototype.setGroup=function(t,r,n){var i=dw(t,r,n);return bt(this.dispatch(i))},e.prototype.revenue=function(t,r){var n=fw(t,r);return bt(this.dispatch(n))},e.prototype.add=function(t){return this.isReady?this._addPlugin(t):(this.q.push(this._addPlugin.bind(this,t)),bt())},e.prototype._addPlugin=function(t){return bt(this.timeline.register(t,this.config))},e.prototype.remove=function(t){return this.isReady?this._removePlugin(t):(this.q.push(this._removePlugin.bind(this,t)),bt())},e.prototype._removePlugin=function(t){return bt(this.timeline.deregister(t,this.config))},e.prototype.dispatchWithCallback=function(t,r){if(!this.isReady)return r(Qr(t,0,aw));this.process(t).then(r)},e.prototype.dispatch=function(t){return M(this,void 0,void 0,function(){var r=this;return L(this,function(n){return this.isReady?[2,this.process(t)]:[2,new Promise(function(i){r.dispatchQ.push(r.dispatchWithCallback.bind(r,t,i))})]})})},e.prototype.getOperationAppliedUserProperties=function(t){var r={};if(t===void 0)return r;var n={};return Object.keys(t).forEach(function(i){Object.values(ir).includes(i)||(n[i]=t[i])}),ZE.forEach(function(i){if(Object.keys(t).includes(i)){var o=t[i];switch(i){case ir.CLEAR_ALL:Object.keys(r).forEach(function(a){delete r[a]});break;
28case ir.UNSET:Object.keys(o).forEach(function(a){delete r[a]});break;case ir.SET:Object.assign(r,o);break}}}),Object.assign(r,n),r},e.prototype.process=function(t){return M(this,void 0,void 0,function(){var r,o,n,i,o;return L(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),this.config.optOut?[2,Qr(t,0,nw)]:(t.event_type===Nt.IDENTIFY&&(r=this.getOperationAppliedUserProperties(t.user_properties),this.timeline.onIdentityChanged({userProperties:r})),[4,this.timeline.push(t)]);case 1:return o=a.sent(),o.code===200?this.config.loggerProvider.log(o.message):o.code===100?this.config.loggerProvider.warn(o.message):this.config.loggerProvider.error(o.message),[2,o];case 2:return n=a.sent(),i=String(n),this.config.loggerProvider.error(i),o=Qr(t,0,i),[2,o];case 3:return[2]}})})},e.prototype.setOptOut=function(t){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!t));return}this._setOptOut(t)},e.prototype._setOptOut=function(t){this.config.optOut!==t&&(this.timeline.onOptOutChanged(t),this.config.optOut=!!t)},e.prototype.flush=function(){return bt(this.timeline.flush())},e.prototype.plugin=function(t){var r=this.timeline.plugins.find(function(n){return n.name===t});if(r===void 0){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(t));return}return r},e.prototype.plugins=function(t){return this.timeline.plugins.filter(function(r){return r instanceof t})},e})(),If=(function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(t){return this.productId=t,this},e.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},e.prototype.setPrice=function(t){return this.price=t,this},e.prototype.setRevenueType=function(t){return this.revenueType=t,this},e.prototype.setCurrency=function(t){return this.currency=t,this},e.prototype.setRevenue=function(t){return this.revenue=t,this},e.prototype.setReceipt=function(t){return this.receipt=t,this},e.prototype.setReceiptSig=function(t){return this.receiptSig=t,this},e.prototype.setEventProperties=function(t){return Ra(t)&&(this.properties=t),this},e.prototype.getEventProperties=function(){var t=this.properties?q({},this.properties):{};return t[Bt.REVENUE_PRODUCT_ID]=this.productId,t[Bt.REVENUE_QUANTITY]=this.quantity,t[Bt.REVENUE_PRICE]=this.price,t[Bt.REVENUE_TYPE]=this.revenueType,t[Bt.REVENUE_CURRENCY]=this.currency,t[Bt.REVENUE]=this.revenue,t[Bt.RECEIPT]=this.receipt,t[Bt.RECEIPT_SIG]=this.receiptSig,t},e})(),Bt;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"})(Bt||(Bt={}));var hw=function(e,t){var r=Math.max(t,1);return e.reduce(function(n,i,o){var a=Math.floor(o/r);return n[a]||(n[a]=[]),n[a].push(i),n},[])},_t;(function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"})(_t||(_t={}));var vi="Amplitude Logger ",Rf=(function(){function e(){this.logLevel=_t.None}return e.prototype.disable=function(){this.logLevel=_t.None},e.prototype.enable=function(t){t===void 0&&(t=_t.Warn),this.logLevel=t},e.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<_t.Verbose||console.log("".concat(vi,"[Log]: ").concat(t.join(" ")))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<_t.Warn||console.warn("".concat(vi,"[Warn]: ").concat(t.join(" ")))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<_t.Error||console.error("".concat(vi,"[Error]: ").concat(t.join(" ")))},e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<_t.Debug||console.log("".concat(vi,"[Debug]: ").concat(t.join(" ")))},e})(),Pi=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:Af,logLevel:_t.Warn,loggerProvider:new Rf,offline:!1,optOut:!1,serverUrl:kf,serverZone:"US",useBatch:!1}},vw=(function(){function e(t){var r,n,i,o;this._optOut=!1;var a=Pi();this.apiKey=t.apiKey,this.flushIntervalMillis=(r=t.flushIntervalMillis)!==null&&r!==void 0?r:a.flushIntervalMillis,this.flushMaxRetries=t.flushMaxRetries||a.flushMaxRetries,this.flushQueueSize=t.flushQueueSize||a.flushQueueSize,this.instanceName=t.instanceName||a.instanceName,this.loggerProvider=t.loggerProvider||a.loggerProvider,this.logLevel=(n=t.logLevel)!==null&&n!==void 0?n:a.logLevel,this.minIdLength=t.minIdLength,this.plan=t.plan,this.ingestionMetadata=t.ingestionMetadata,this.offline=t.offline!==void 0?t.offline:a.offline,this.optOut=(i=t.optOut)!==null&&i!==void 0?i:a.optOut,this.serverUrl=t.serverUrl,this.serverZone=t.serverZone||a.serverZone,this.storageProvider=t.storageProvider,this.transportProvider=t.transportProvider,this.useBatch=(o=t.useBatch)!==null&&o!==void 0?o:a.useBatch,this.loggerProvider.enable(this.logLevel);var s=Cf(t.serverUrl,t.serverZone,t.useBatch);this.serverZone=s.serverZone,this.serverUrl=s.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(t){this._optOut=t}
28,enumerable:!1,configurable:!0}),e})(),mw=function(e,t){return e==="EU"?t?GE:jE:t?$E:kf},Cf=function(e,t,r){if(e===void 0&&(e=""),t===void 0&&(t=Pi().serverZone),r===void 0&&(r=Pi().useBatch),e)return{serverUrl:e,serverZone:void 0};var n=["US","EU"].includes(t)?t:Pi().serverZone;return{serverZone:n,serverUrl:mw(n,r)}},gw=(function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(t,r){this.sdk.metrics.histogram[t]=r},e})();function xf(e){return e>=200&&e<300}var Df=function(e){e===void 0&&(e=0);var t=new Error().stack||"";return t.split(` 29`).slice(2+e).map(function(r){return r.trim()})},Ne=function(e){return function(){var t=q({},e.config),r=t.loggerProvider,n=t.logLevel;return{logger:r,logLevel:n}}},yw=function(e,t){var r,n;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");try{for(var i=he(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(a in e)e=e[a];else return}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},Me=function(e,t){return function(){var r,n,i={};try{for(var o=he(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=yw(e,s)}}catch(u){r={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}},He=function(e,t,r,n,i){return i===void 0&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=r(),u=s.logger,c=s.logLevel;if(c&&c<_t.Debug||!c||!u)return e.apply(i,o);var l={type:"invoke public method",name:t,args:o,stacktrace:Df(1),time:{start:new Date().toISOString()},states:{}};n&&l.states&&(l.states.before=n());var p=e.apply(i,o);return p&&p.promise?p.promise.then(function(){n&&l.states&&(l.states.after=n()),l.time&&(l.time.end=new Date().toISOString()),u.debug(JSON.stringify(l,null,2))}):(n&&l.states&&(l.states.after=n()),l.time&&(l.time.end=new Date().toISOString()),u.debug(JSON.stringify(l,null,2))),p}};function bw(e){return e instanceof Error?e.message:String(e)}function mi(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch{}return t}var _w=(function(){function e(t){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=t?.diagnosticsClient}return e.prototype.setup=function(t){var r;return M(this,void 0,void 0,function(){var n,i=this;return L(this,function(o){switch(o.label){case 0:return this.config=t,this.storageKey="".concat(VE,"_").concat(this.config.apiKey.substring(0,10)),[4,(r=this.config.storageProvider)===null||r===void 0?void 0:r.get(this.storageKey)];case 1:return n=o.sent(),n&&n.length>0&&Promise.all(n.map(function(a){return i.execute(a)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(t){var r=this;return t.insert_id||(t.insert_id=_r()),new Promise(function(n){var i={event:t,attempts:0,callback:function(o){return n(o)},timeout:0};r.queue.push(i),r.schedule(r.config.flushIntervalMillis),r.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(t){var r=this;return t.filter(function(n){return n.attempts+=1,n.attempts<r.config.flushMaxRetries?!0:(r.fulfillRequest([n],500,rw),!1)})},e.prototype.scheduleEvents=function(t){var r=this;t.forEach(function(n){r.schedule(n.timeout===0?r.config.flushIntervalMillis:n.timeout)})},e.prototype.schedule=function(t){var r=this;if(!this.config.offline&&(this.scheduleId===null||this.scheduleId&&t>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=t,this.scheduleId=setTimeout(function(){r.queue=r.queue.map(function(n){return n.timeout=0,n}),r.flush(!0)},t);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(t){return t===void 0&&(t=!1),M(this,void 0,void 0,function(){var r,n,i,o=this;return L(this,function(a){switch(a.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),r=[],n=[],this.queue.forEach(function(s){return s.timeout===0?r.push(s):n.push(s)}),i=hw(r,this.config.flushQueueSize),[4,i.reduce(function(s,u){return M(o,void 0,void 0,function(){return L(this,function(c){switch(c.label){case 0:return[4,s];case 1:return c.sent(),[4,this.send(u,t)];case 2:return[2,c.sent()]}})})},Promise.resolve())]);case 1:return a.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(t,r){return r===void 0&&(r=!0),M(this,void 0,void 0,function(){var n,i,o,a,s;return L(this,function(u){switch(u.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(t,400,iw)];n={api_key:this.config.apiKey,events:t.map(function(c){var l=c.event;l.extra;var p=qi(l,["extra"]);return p}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new gw,u.label=1;case 1:return u.trys.push([1,3,,4]),i=Cf(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(i,n)];case 2:return o=u.sent(),o===null?(this.fulfillRequest(t,0,tw),[2]):r?(this.handleResponse(o,t),[3,4]):("body"in o?this.fulfillRequest(t,o.statusCode,"".concat(o.status,": ").concat(mi(o))):this.fulfillRequest(t,o.statusCode,o.status),[2]);case 3:return a=u.sent(),s=bw(a),this.config.loggerProvider.error(s),this.handleResponse({status:Je.Failed,statusCode:0},t),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(t,r){var n=t.status;switch(n){case Je.Success:{this.handleSuccessResponse(t,r);break}case Je.Invalid:{this.handleInvalidResponse(t,r);break}case Je.PayloadTooLarge:{this.handlePayloadTooLargeResponse(t,r);break}case Je.RateLimit:{this.handleRateLimitResponse(t,r);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(n,"' provided for ").concat(r.length,' events"}')),this.handleOtherResponse(r);break}}},e.prototype.handleSuccessResponse=function(t,r){this.fulfillRequest(r,t.statusCode,ew)},e.prototype.handleInvalidResponse=function(t,r){var n=this;if(t.body.missingField||t.body.error.startsWith(ow)){this.fulfillRequest(r,t.statusCode,t.body.error);return}var i=pe(pe(pe(pe([],J(Object.values(t.body.eventsWithInvalidFields)),!1),J(Object.values(t.body.eventsWithMissingFields)),!1),J(Object.values(t.body.eventsWithInvalidIdLengths)),!1),J(t.body.silencedEvents),!1).flat(),o=new Set(i),a=r.filter(function(u,c){if
29(o.has(c)){n.fulfillRequest([u],t.statusCode,t.body.error);return}return!0});a.length>0&&this.config.loggerProvider.warn(mi(t));var s=this.removeEventsExceedFlushMaxRetries(a);this.scheduleEvents(s)},e.prototype.handlePayloadTooLargeResponse=function(t,r){if(r.length===1){this.fulfillRequest(r,t.statusCode,t.body.error);return}this.config.loggerProvider.warn(mi(t)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(t,r){var n=this,i=Object.keys(t.body.exceededDailyQuotaUsers),o=Object.keys(t.body.exceededDailyQuotaDevices),a=t.body.throttledEvents,s=new Set(i),u=new Set(o),c=new Set(a),l=r.filter(function(d,f){if(d.event.user_id&&s.has(d.event.user_id)||d.event.device_id&&u.has(d.event.device_id)){n.fulfillRequest([d],t.statusCode,t.body.error);return}return c.has(f)&&(d.timeout=n.throttleTimeout),!0});l.length>0&&this.config.loggerProvider.warn(mi(t));var p=this.removeEventsExceedFlushMaxRetries(l);this.scheduleEvents(p)},e.prototype.handleOtherResponse=function(t){var r=this,n=t.map(function(o){return o.timeout=o.attempts*r.retryTimeout,o}),i=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(i)},e.prototype.fulfillRequest=function(t,r,n){var i,o,a;xf(r)?(a=this.diagnosticsClient)===null||a===void 0||a.increment("analytics.events.sent",t.length):((i=this.diagnosticsClient)===null||i===void 0||i.increment("analytics.events.dropped",t.length),(o=this.diagnosticsClient)===null||o===void 0||o.recordEvent("analytics.events.dropped",{events:t.map(function(s){return s.event.event_type}),code:r,message:n,stack_trace:Df()})),this.removeEvents(t),t.forEach(function(s){return s.callback(Qr(s.event,r,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var t=this.queue.map(function(r){return r.event});this.config.storageProvider.set(this.storageKey,t)}},e.prototype.removeEvents=function(t){this.queue=this.queue.filter(function(r){return!t.some(function(n){return n.event.insert_id===r.event.insert_id})}),this.saveEvents()},e})(),Ew=(function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:ww(),platform:"Web",os:void 0,deviceModel:void 0}},e})(),ww=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},Tw=(function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(r){t(r)}),this.queue=[])},e})(),hr=function(){return hr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},hr.apply(this,arguments)};function Oi(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}var Ii=function(e,t){var r,n,i=["string","number","boolean","undefined"],o=typeof e,a=typeof t;if(o!==a)return!1;try{for(var s=Oi(i),u=s.next();!u.done;u=s.next()){var c=u.value;if(c===o)return e===t}}catch(g){r={error:g}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var l=Array.isArray(e),p=Array.isArray(t);if(l!==p)return!1;if(l&&p){for(var d=0;d<e.length;d++)if(!Ii(e[d],t[d]))return!1}else{var f=Object.keys(e).sort(),h=Object.keys(t).sort();if(!Ii(f,h))return!1;var m=!0;return Object.keys(e).forEach(function(g){Ii(e[g],t[g])||(m=!1)}),m}return!0},Sw="$set",Aw="$unset",kw="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var Pw=(function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var t=this,r=hr({},this.identity.userProperties),n=hr(hr({},this.identity),{userProperties:r});return{setUserId:function(i){return n.userId=i,this},setDeviceId:function(i){return n.deviceId=i,this},setUserProperties:function(i){return n.userProperties=i,this},setOptOut:function(i){return n.optOut=i,this},updateUserProperties:function(i){var o,a,s,u,c,l,p=n.userProperties||{};try{for(var d=Oi(Object.entries(i)),f=d.next();!f.done;f=d.next()){var h=Dc(f.value,2),m=h[0],g=h[1];switch(m){case Sw:try{for(var E=(s=void 0,Oi(Object.entries(g))),w=E.next();!w.done;w=E.next()){var T=Dc(w.value,2),k=T[0],P=T[1];p[k]=P}}catch(F){s={error:F}}finally{try{w&&!w.done&&(u=E.return)&&u.call(E)}finally{if(s)throw s.error}}break;case Aw:try{for(var C=(c=void 0,Oi(Object.keys(g))),D=C.next();!D.done;D=C.next()){var k=D.value;delete p[k]}}catch(F){c={error:F}}finally{try{D&&!D.done&&(l=C.return)&&l.call(C)}finally{if(c)throw c.error}}break;case kw:p={};break}}}catch(F){o={error:F}}
29finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return n.userProperties=p,this},commit:function(){return t.setIdentity(n),this}}},e.prototype.getIdentity=function(){return hr({},this.identity)},e.prototype.setIdentity=function(t){var r=hr({},this.identity);this.identity=hr({},t),Ii(r,this.identity)||this.listeners.forEach(function(n){n(t)})},e.prototype.addIdentityListener=function(t){this.listeners.add(t)},e.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},e})(),_n=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,Lf=(function(){function e(){this.identityStore=new Pw,this.eventBridge=new Tw,this.applicationContextProvider=new Ew}return e.getInstance=function(t){return _n.analyticsConnectorInstances||(_n.analyticsConnectorInstances={}),_n.analyticsConnectorInstances[t]||(_n.analyticsConnectorInstances[t]=new e),_n.analyticsConnectorInstances[t]},e})(),Bn=function(e){return e===void 0&&(e=Af),Lf.getInstance(e)},Ow=function(e,t){Bn(t).identityStore.editIdentity().setUserId(e).commit()},Iw=function(e,t){Bn(t).identityStore.editIdentity().setDeviceId(e).commit()},Rw=(function(){function e(){this.name="identity",this.type="before",this.identityStore=Bn().identityStore}return e.prototype.execute=function(t){return M(this,void 0,void 0,function(){var r;return L(this,function(n){return r=t.user_properties,r&&this.identityStore.editIdentity().updateUserProperties(r).commit(),[2,t]})})},e.prototype.setup=function(t){return M(this,void 0,void 0,function(){return L(this,function(r){return t.instanceName&&(this.identityStore=Bn(t.instanceName).identityStore),[2]})})},e})(),Nf=function(e,t){t===void 0&&(t=Date.now());var r=Date.now(),n=r-t;return n>e},Mf=function(e,t,r){return t===void 0&&(t=""),r===void 0&&(r=10),[uo,t,e.substring(0,r)].filter(Boolean).join("_")},Cw=function(e){return"".concat(uo.toLowerCase(),"_").concat(e.substring(0,6))},xw=function(){var e,t,r,n;if(typeof navigator>"u")return"";var i=navigator.userLanguage;return(n=(r=(t=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:navigator.language)!==null&&r!==void 0?r:i)!==null&&n!==void 0?n:""},Wi=function(){var e,t=$e();if(!(!((e=t?.location)===null||e===void 0)&&e.search))return{};var r=t.location.search.substring(1).split("&").filter(Boolean),n=r.reduce(function(i,o){var a=o.split("=",2),s=Lc(a[0]),u=Lc(a[1]);return u&&(i[s]=u),i},{});return n},Lc=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},Ca=function(e,t){return!t||!t.length?!0:t.some(function(r){return typeof r=="string"?e===r:e.match(r)})},Sn=function(e,t){var r=e;try{r=decodeURI(e)}catch(n){t?.error("Malformed URI sequence: ",n)}return r},Dw=function(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t|=0}return t},Nc=function(e,t){var r=Dw(e.toString()),n=Math.abs(r),i=n*31,o=i%1e5;return o/1e5<t},ws=(function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return M(this,void 0,void 0,function(){return L(this,function(t){return[2,!0]})})},e.prototype.get=function(t){return M(this,void 0,void 0,function(){return L(this,function(r){return[2,this.memoryStorage.get(t)]})})},e.prototype.getRaw=function(t){return M(this,void 0,void 0,function(){var r;return L(this,function(n){switch(n.label){case 0:return[4,this.get(t)];case 1:return r=n.sent(),[2,r?JSON.stringify(r):void 0]}})})},e.prototype.set=function(t,r){return M(this,void 0,void 0,function(){return L(this,function(n){return this.memoryStorage.set(t,r),[2]})})},e.prototype.remove=function(t){return M(this,void 0,void 0,function(){return L(this,function(r){return this.memoryStorage.delete(t),[2]})})},e.prototype.reset=function(){return M(this,void 0,void 0,function(){return L(this,function(t){return this.memoryStorage.clear(),[2]})})},e})(),xa=(function(){function e(t){this.options=q({},t)}return e.prototype.isEnabled=function(){return M(this,void 0,void 0,function(){var t,r,n;return L(this,function(i){switch(i.label){case 0:if(!$e())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,t.set(r,e.testValue)];case 2:return i.sent(),[4,t.get(r)];case 3:return n=i.sent(),[2,n===e.testValue];case 4:return i.sent(),[2,!1];case 5:return[4,t.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){var r;return M(this,void 0,void 0,function(){var n,i;return L(this,function(o){switch(o.label){case 0:return[4,this.getRaw(t)];case 1:if(n=o.sent(),!n)return[2,void 0];try{return i=(r=Lw(n))!==null&&r!==void 0?r:Nw(n),i===void 0?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(t,", value: ").concat(n)),[2,void 0]):[2,JSON.parse(i)]}catch{return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(t,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(t){var r,n;return M(this,void 0,void 0,function(){var i,o,a;return L(this,function(s){return i=$e(),o=(n=(r=i?.document)===null||r===void 0?void 0:r.cookie.split("; "))!==null&&n!==void 0?n:[],a=o.find(function(u){return u.indexOf(t+"=")===0}),a?[2,a.substring(t.length+1)]:[2,void 0]})})},e.prototype.set=function(t,r){var n;return M(this,void 0,void 0,function(){var i,o,a,s,u,c,l;return L(this,function(p){try{i=(n=this.options.expirationDays)!==null&&n!==void 0?n:0,o=r!==null?i:-1,a=void 0,o&&(s=new Date,s.setTime(s.getTime()+o*24*60*60*1e3),a=s),u="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(r)))),a&&(u+="; expires=".concat(a.toUTCString())),u+="; path=/",this.options.domain&&(u+="; domain=".concat(this.options.domain)),this.options.secure&&(u+="; Secure"),this.options.sameSite&&(u+="; SameSite=".concat(this.options.sameSite)),c=$e(),c&&(c.document.cookie=u)}catch(d){l=d instanceof Error?d.message:String(d),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(t,". Error: ").concat(l))}return[2]})})},e.prototype.remove=function(t){return M(this,void 0,void 0,function(){return L(this,function(r){switch(r.label){case 0:return[4,this.set(t,null)];case 1:return r.sent(),[2]}})})},e.prototype.reset=function(){return M(this,void 0,void 0,function(){return L(this,function(t){return[2]})})},e})(),Lw=function(e){try{return decodeURIComponent(atob(e))}catch{return}},Nw=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},Mc=function(e,t,r){return t===void 0&&(t=""),r===void 0&&(r=10),[uo,t,e.substring(0,r)].filter(
29Boolean).join("_")},Ts=(function(){function e(t){this.storage=t}return e.prototype.isEnabled=function(){return M(this,void 0,void 0,function(){var t,r,n,i;return L(this,function(o){switch(o.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return o.sent(),[4,r.get(n)];case 3:return i=o.sent(),[2,i===t];case 4:return o.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){return M(this,void 0,void 0,function(){var r;return L(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(t)];case 1:return r=n.sent(),r?[2,JSON.parse(r)]:[2,void 0];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(t){var r;return M(this,void 0,void 0,function(){return L(this,function(n){return[2,((r=this.storage)===null||r===void 0?void 0:r.getItem(t))||void 0]})})},e.prototype.set=function(t,r){var n;return M(this,void 0,void 0,function(){return L(this,function(i){try{(n=this.storage)===null||n===void 0||n.setItem(t,JSON.stringify(r))}catch{}return[2]})})},e.prototype.remove=function(t){var r;return M(this,void 0,void 0,function(){return L(this,function(n){try{(r=this.storage)===null||r===void 0||r.removeItem(t)}catch{}return[2]})})},e.prototype.reset=function(){var t;return M(this,void 0,void 0,function(){return L(this,function(r){try{(t=this.storage)===null||t===void 0||t.clear()}catch{}return[2]})})},e})(),Mw=10,Hw=1,be={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},Hc={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},Uc=(function(){function e(t,r){this.dbPromise=null,this.logger=r,this.dbName="AMP_diagnostics_".concat(t.substring(0,10))}return e.isSupported=function(){var t;return((t=$e())===null||t===void 0?void 0:t.indexedDB)!==void 0},e.prototype.getDB=function(){return M(this,void 0,void 0,function(){return L(this,function(t){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]})})},e.prototype.openDB=function(){var t=this;return new Promise(function(r,n){var i=indexedDB.open(t.dbName,Hw);i.onerror=function(){t.dbPromise=null,n(new Error("Failed to open IndexedDB"))},i.onsuccess=function(){var o=i.result;o.onclose=function(){t.dbPromise=null,t.logger.debug("DiagnosticsStorage: DB connection closed.")},o.onerror=function(a){t.logger.debug("DiagnosticsStorage: A global database error occurred.",a),o.close()},r(o)},i.onupgradeneeded=function(o){var a=o.target.result;t.createTables(a)}})},e.prototype.createTables=function(t){if(t.objectStoreNames.contains(be.TAGS)||t.createObjectStore(be.TAGS,{keyPath:"key"}),t.objectStoreNames.contains(be.COUNTERS)||t.createObjectStore(be.COUNTERS,{keyPath:"key"}),t.objectStoreNames.contains(be.HISTOGRAMS)||t.createObjectStore(be.HISTOGRAMS,{keyPath:"key"}),!t.objectStoreNames.contains(be.EVENTS)){var r=t.createObjectStore(be.EVENTS,{keyPath:"id",autoIncrement:!0});r.createIndex("time_idx","time",{unique:!1})}t.objectStoreNames.contains(be.INTERNAL)||t.createObjectStore(be.INTERNAL,{keyPath:"key"})},e.prototype.setTags=function(t){return M(this,void 0,void 0,function(){var r,n,i,o,a=this;return L(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=s.sent(),n=r.transaction([be.TAGS],"readwrite"),i=n.objectStore(be.TAGS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){a.logger.debug("DiagnosticsStorage: Failed to set tags",l),u()},c.forEach(function(l){var p=J(l,2),d=p[0],f=p[1],h=i.put({key:d,value:f});h.onerror=function(m){a.logger.debug("DiagnosticsStorage: Failed to set tag",d,f,m)}})})];case 2:return o=s.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",o),[3,3];case 3:return[2]}})})},e.prototype.incrementCounters=function(t){return M(this,void 0,void 0,function(){var r,n,i,o,a=this;return L(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=s.sent(),n=r.transaction([be.COUNTERS],"readwrite"),i=n.objectStore(be.COUNTERS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){a.logger.debug("DiagnosticsStorage: Failed to increment counters",l),u()}
29,c.forEach(function(l){var p=J(l,2),d=p[0],f=p[1],h=i.get(d);h.onsuccess=function(){var m=h.result,g=m?m.value:0,E=i.put({key:d,value:g+f});E.onerror=function(w){a.logger.debug("DiagnosticsStorage: Failed to update counter",d,w)}},h.onerror=function(m){a.logger.debug("DiagnosticsStorage: Failed to read existing counter",d,m)}})})];case 2:return o=s.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",o),[3,3];case 3:return[2]}})})},e.prototype.setHistogramStats=function(t){return M(this,void 0,void 0,function(){var r,n,i,o,a=this;return L(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=s.sent(),n=r.transaction([be.HISTOGRAMS],"readwrite"),i=n.objectStore(be.HISTOGRAMS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){a.logger.debug("DiagnosticsStorage: Failed to set histogram stats",l),u()},c.forEach(function(l){var p=J(l,2),d=p[0],f=p[1],h=i.get(d);h.onsuccess=function(){var m=h.result,g;m?g={key:d,count:m.count+f.count,min:Math.min(m.min,f.min),max:Math.max(m.max,f.max),sum:m.sum+f.
29sum}:g={key:d,count:f.count,min:f.min,max:f.max,sum:f.sum};var E=i.put(g);E.onerror=function(w){a.logger.debug("DiagnosticsStorage: Failed to set histogram stats",d,w)}},h.onerror=function(m){a.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",d,m)}})})];case 2:return o=s.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",o),[3,3];case 3:return[2]}})})},e.prototype.addEventRecords=function(t){return M(this,void 0,void 0,function(){var r,n,i,o,a=this;return L(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),t.length===0?[2]:[4,this.getDB()];case 1:return r=s.sent(),n=r.transaction([be.EVENTS],"readwrite"),i=n.objectStore(be.EVENTS),[2,new Promise(function(u){n.oncomplete=function(){u()},n.onabort=function(l){a.logger.debug("DiagnosticsStorage: Failed to add event records",l),u()};var c=i.count();c.onsuccess=function(){var l=c.result,p=Math.max(0,Mw-l);p<t.length&&a.logger.debug("DiagnosticsStorage: Only added ".concat(p," of ").concat(t.length," events due to storage limit")),t.slice(0,p).forEach(function(d){var f=i.add(d);f.onerror=function(h){a.logger.debug("DiagnosticsStorage: Failed to add event record",h)}})},c.onerror=function(l){a.logger.debug("DiagnosticsStorage: Failed to count existing events",l)}})];case 2:return o=s.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",o),[3,3];case 3:return[2]}})})},e.prototype.setInternal=function(t,r){return M(this,void 0,void 0,function(){var n,i,o,a;return L(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.getDB()];case 1:return n=s.sent(),i=n.transaction([be.INTERNAL],"readwrite"),o=i.objectStore(be.INTERNAL),[2,new Promise(function(u,c){i.onabort=function(){return c(new Error("Failed to set internal value"))};var l=o.put({key:t,value:r});l.onsuccess=function(){return u()},l.onerror=function(){return c(new Error("Failed to set internal value"))}})];case 2:return a=s.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",a),[3,3];case 3:return[2]}})})},e.prototype.getInternal=function(t){return M(this,void 0,void 0,function(){var r,n,i,o;return L(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([be.INTERNAL],"readonly"),i=n.objectStore(be.INTERNAL),[2,new Promise(function(s,u){n.onabort=function(){return u(new Error("Failed to get internal value"))};var c=i.get(t);c.onsuccess=function(){return s(c.result)},c.onerror=function(){return u(new Error("Failed to get internal value"))}})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",o),[2,void 0];case 3:return[2]}})})},e.prototype.getLastFlushTimestamp=function(){return M(this,void 0,void 0,function(){var t,r;return L(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getInternal(Hc.LAST_FLUSH_TIMESTAMP)];case 1:return t=n.sent(),[2,t?parseInt(t.value,10):void 0];case 2:return r=n.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",r),[2,void 0];case 3:return[2]}})})},e.prototype.setLastFlushTimestamp=function(t){return M(this,void 0,void 0,function(){var r;return L(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.setInternal(Hc.LAST_FLUSH_TIMESTAMP,t.toString())];case 1:return n.sent(),[3,3];case 2:return r=n.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",r),[3,3];case 3:return[2]}})})},e.prototype.clearTable=function(t,r){return new Promise(function(n,i){var o=t.objectStore(r),a=o.clear();a.onsuccess=function(){return n()},a.onerror=function(){return i(new Error("Failed to clear table ".concat(r)))}})},e.prototype.getAllAndClear=function(){return M(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u;return L(this,function(c){switch(c.label){case 0:return c.trys.push([0,4,,5]),[4,this.getDB()];case 1:return t=c.sent(),r=t.transaction([be.TAGS,be.COUNTERS,be.HISTOGRAMS,be.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(r,be.TAGS),this.getAllFromStore(r,be.COUNTERS),this.getAllFromStore(r,be.HISTOGRAMS),this.getAllFromStore(r,be.EVENTS)])];case 2:return n=J.apply(void 0,[c.sent(),4]),i=n[0],o=n[1],a=n[2],s=n[3],[4,Promise.all([this.clearTable(r,be.COUNTERS),this.clearTable(r,be.HISTOGRAMS),this.clearTable(r,be.EVENTS)])];case 3:return c.sent(),[2,{tags:i,counters:o,histogramStats:a,events:s}];case 4:return u=c.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",u),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}})})},e.prototype.getAllFromStore=function(t,r){return new Promise(function(n,i){var o=t.objectStore(r),a=o.getAll();a.onsuccess=function(){return n(a.result)},a.onerror=function(){return i(new Error("Failed to get all from ".concat(r)))}})},e})(),Uw=1e3,gi=300*1e3,Fw="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",Bw="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",Fo=1e4,Vw=10,jw=(function(){function e(t,r,n,i){n===void 0&&(n="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=t,this.logger=r,this.serverUrl=n==="US"?Fw:Bw,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(i,null,2)),this.config=q({enabled:!0,sampleRate:0},i),this.startTimestamp=Date.now(),this.shouldTrack=Nc(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,Uc.isSupported()?this.storage=new Uc(t,r):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&this.increment("sdk.diagnostics.sampled.in.and.enabled")}return e.prototype.isStorageAndTrackEnabled=function(){return!!this.storage&&!!this.shouldTrack},e.prototype.setTag=function(t,r){if(this.isStorageAndTrackEnabled()){if
29(Object.keys(this.inMemoryTags).length>=Fo){this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit");return}this.inMemoryTags[t]=r,this.startTimersIfNeeded()}},e.prototype.increment=function(t,r){if(r===void 0&&(r=1),!!this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryCounters).length>=Fo){this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit");return}this.inMemoryCounters[t]=(this.inMemoryCounters[t]||0)+r,this.startTimersIfNeeded()}},e.prototype.recordHistogram=function(t,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryHistograms).length>=Fo){this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");return}var n=this.inMemoryHistograms[t];n?(n.count+=1,n.min=Math.min(n.min,r),n.max=Math.max(n.max,r),n.sum+=r):this.inMemoryHistograms[t]={count:1,min:r,max:r,sum:r},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(t,r){if(this.isStorageAndTrackEnabled()){if(this.inMemoryEvents.length>=Vw){this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit");return}this.inMemoryEvents.push({event_name:t,time:Date.now(),event_properties:r}),this.startTimersIfNeeded()}},e.prototype.startTimersIfNeeded=function(){var t=this;this.saveTimer||(this.saveTimer=setTimeout(function(){t.saveAllDataToStorage().catch(function(r){t.logger.debug("DiagnosticsClient: Failed to save all data to storage",r)}).finally(function(){t.saveTimer=null})},Uw)),this.flushTimer||(this.flushTimer=setTimeout(function(){t._flush().catch(function(r){t.logger.debug("DiagnosticsClient: Failed to flush",r)}).finally(function(){t.flushTimer=null})},gi))},e.prototype.saveAllDataToStorage=function(){return M(this,void 0,void 0,function(){var t,r,n,i;return L(this,function(o){switch(o.label){case 0:return this.storage?(t=q({},this.inMemoryTags),r=q({},this.inMemoryCounters),n=q({},this.inMemoryHistograms),i=pe([],J(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(t),this.storage.incrementCounters(r),this.storage.setHistogramStats(n),this.storage.addEventRecords(i)])]):[2];case 1:return o.sent(),[2]}})})},e.prototype._flush=function(){return M(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u,c,l;return L(this,function(p){switch(p.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return p.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return t=p.sent(),r=t.tags,n=t.counters,i=t.histogramStats,o=t.events,this.storage.setLastFlushTimestamp(Date.now()),a={},r.forEach(function(d){a[d.key]=d.value}),s={},n.forEach(function(d){s[d.key]=d.value}),u={},i.forEach(function(d){u[d.key]={count:d.count,min:d.min,max:d.max,avg:Math.round(d.sum/d.count*100)/100}}),c=o.map(function(d){return{event_name:d.event_name,time:d.time,event_properties:d.event_properties}}),Object.keys(s).length===0&&Object.keys(u).length===0&&c.length===0?[2]:(l={tags:a,histogram:u,counters:s,events:c},this.fetch(l),[2])}})})},e.prototype.fetch=function(t){return M(this,void 0,void 0,function(){var r,n;return L(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!$e())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(t)})];case 1:return r=i.sent(),r.ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return n=i.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",n),[3,3];case 3:return[2]}})})},e.prototype.initializeFlushInterval=function(){return M(this,void 0,void 0,function(){var t,r,n;return L(this,function(i){switch(i.label){case 0:return this.storage?(t=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return r=i.sent()||-1,r===-1?(this.storage.setLastFlushTimestamp(t),this._setFlushTimer(gi),[2]):(n=t-r,n>=gi?(this._flush(),[2]):(this._setFlushTimer(gi-n),[2]))}})})},e.prototype._setFlushTimer=function(t){var r=this;this.flushTimer=setTimeout(function(){r._flush().catch(function(n){r.logger.debug("DiagnosticsClient: Failed to flush",n)}).finally(function(){r.flushTimer=null})},t)},e.prototype._setSampleRate=function(t){this.logger.debug("DiagnosticsClient: Setting sample rate to",t),this.config.sampleRate=t,this.shouldTrack=Nc(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e})(),Ss=(function(){function e(){}return e.prototype.send=function(t,r){return Promise.resolve(null)},e.prototype.buildResponse=function(t){var r,n,i,o,a,s,u,c,l,p,d,f,h,m,g,E,w,T,k,P,C,D;if(typeof t!="object")return null;var F=t.code||0,$=this.buildStatus(F);switch($){case Je.Success:return{status:$,statusCode:F,body:{eventsIngested:(r=t.events_ingested)!==null&&r!==void 0?r:0,payloadSizeBytes:(n=t.payload_size_bytes)!==null&&n!==void 0?n:0,serverUploadTime:(i=t.server_upload_time)!==null&&i!==void 0?i:0}};case Je.Invalid:return{status:$,statusCode:F,body:{error:(o=t.error)!==null&&o!==void 0?o:"",missingField:(a=t.missing_field)!==null&&a!==void 0?a:"",eventsWithInvalidFields:(s=t.events_with_invali
vendor: 6,014 bytes, line 29
29d_fields)!==null&&s!==void 0?s:{},eventsWithMissingFields:(u=t.events_with_missing_fields)!==null&&u!==void 0?u:{},eventsWithInvalidIdLengths:(c=t.events_with_invalid_id_lengths)!==null&&c!==void 0?c:{},epsThreshold:(l=t.eps_threshold)!==null&&l!==void 0?l:0,exceededDailyQuotaDevices:(p=t.exceeded_daily_quota_devices)!==null&&p!==void 0?p:{},silencedDevices:(d=t.silenced_devices)!==null&&d!==void 0?d:[],silencedEvents:(f=t.silenced_events)!==null&&f!==void 0?f:[],throttledDevices:(h=t.throttled_devices)!==null&&h!==void 0?h:{},throttledEvents:(m=t.throttled_events)!==null&&m!==void 0?m:[]}};case Je.PayloadTooLarge:return{status:$,statusCode:F,body:{error:(g=t.error)!==null&&g!==void 0?g:""}};case Je.RateLimit:return{status:$,statusCode:F,body:{error:(E=t.error)!==null&&E!==void 0?E:"",epsThreshold:(w=t.eps_threshold)!==null&&w!==void 0?w:0,throttledDevices:(T=t.throttled_devices)!==null&&T!==void 0?T:{},throttledUsers:(k=t.throttled_users)!==null&&k!==void 0?k:{},exceededDailyQuotaDevices:(P=t.exceeded_daily_quota_devices)!==null&&P!==void 0?P:{},exceededDailyQuotaUsers:(C=t.exceeded_daily_quota_users)!==null&&C!==void 0?C:{},throttledEvents:(D=t.throttled_events)!==null&&D!==void 0?D:[]}};case Je.Timeout:default:return{status:$,statusCode:F}}},e.prototype.buildStatus=function(t){return xf(t)?Je.Success:t===429?Je.RateLimit:t===413?Je.PayloadTooLarge:t===408?Je.Timeout:t>=400&&t<500?Je.Invalid:t>=500?Je.Failed:Je.Unknown},e})(),$w=(function(e){yt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(r,n){return M(this,void 0,void 0,function(){var i,o,a;return L(this,function(s){switch(s.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return i={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n),method:"POST"},[4,fetch(r,i)];case 1:return o=s.sent(),[4,o.text()];case 2:a=s.sent();try{return[2,this.buildResponse(JSON.parse(a))]}catch{return[2,this.buildResponse({code:o.status})]}return[2]}})})},t})(Ss),Gw=(function(){function e(t,r){this.key="AMP_remote_config_".concat(t.substring(0,10)),this.logger=r}return e.prototype.fetchConfig=function(){var t=null,r={remoteConfig:null,lastFetch:new Date};try{t=localStorage.getItem(this.key)}catch(i){return this.logger.debug("Remote config localstorage failed to access: ",i),Promise.resolve(r)}if(t===null)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(r);try{var n=JSON.parse(t);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(n))),Promise.resolve({remoteConfig:n.remoteConfig,lastFetch:new Date(n.lastFetch)})}catch(i){return this.logger.debug("Remote config localstorage failed to parse: ",i),localStorage.removeItem(this.key),Promise.resolve(r)}},e.prototype.setConfig=function(t){try{return localStorage.setItem(this.key,JSON.stringify(t)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(r){this.logger.debug("Remote config localstorage failed to set: ",r)}return Promise.resolve(!1)},e})(),qw="https://sr-client-cfg.amplitude.com/config",zw="https://sr-client-cfg.eu.amplitude.com/config",Ww=3,Kw=1e3,Xw=(function(){function e(t,r,n,i){n===void 0&&(n="US"),this.callbackInfos=[],this.apiKey=t,this.serverUrl=i||(n==="US"?qw:zw),this.logger=r,this.storage=new Gw(t,r)}return e.prototype.subscribe=function(t,r,n){var i=_r(),o={id:i,key:t,deliveryMode:r,callback:n};return this.callbackInfos.push(o),r==="all"?this.subscribeAll(o):this.subscribeWaitForRemote(o,r.timeout),i},e.prototype.unsubscribe=function(t){var r=this.callbackInfos.findIndex(function(n){return n.id===t});return r===-1?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(t," doesn't exist.")),!1):(this.callbackInfos.splice(r,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(t,".")),!0)},e.prototype.updateConfigs=function(){return M(this,void 0,void 0,function(){var t,r=this;return L(this,function(n){switch(n.label){case 0:return[4,this.fetch()];case 1:return t=n.sent(),this.storage.setConfig(t),this.callbackInfos.forEach(function(i){r.sendCallback(i,t,"remote")}),[2]}})})},e.prototype.subscribeAll=function(t){return M(this,void 0,void 0,function(){var r,n,i,o=this;return L(this,function(a){switch(a.label){case 0:return r=this.fetch().then(function(s){o.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(s))),o.sendCallback(t,s,"remote"),o.storage.setConfig(s)}),n=this.storage.fetchConfig().then(function(s){return s}),[4,Promise.race([r,n])];case 1:return i=a.sent(),i!==void 0&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(i))),this.sendCallback(t,i,"cache")),[4,r];case 2:return a.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(t,r){return M(this,void 0,void 0,function(){var n,i,i;return L(this,function(o){switch(o.label){case 0:n=new Promise(function(a,s){setTimeout(function(){s("Timeout exceeded")},r)}),o.label=1;case 1:return o.trys.push([1,3,,5]),[4,Promise.race([this.fetch(),n])];case 2:return i=o.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(t,i,"remote"),this.storage.setConfig(i),[3,5];case 3:return o.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return i=o.sent(),i.remoteConfig!==null?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(t,i,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(t,i,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(t,r,n){t.lastCallback=new Date;var i;
29t.key?i=t.key.split(".").reduce(function(o,a){return o===null?o:a in o?o[a]:null},r.remoteConfig):i=r.remoteConfig,t.callback(i,n,r.lastFetch)},e.prototype.fetch=function(t,r){return t===void 0&&(t=Ww),r===void 0&&(r=Kw),M(this,void 0,void 0,function(){var n,i,o,a,s,u,c=this;return L(this,function(l){switch(l.label){case 0:n=r/t,i={remoteConfig:null,lastFetch:new Date},o=function(p){var d,f,h,m,g,E;return L(this,function(w){switch(w.label){case 0:d=new AbortController,f=setTimeout(function(){return d.abort()},r),w.label=1;case 1:return w.trys.push([1,7,8,9]),[4,fetch(a.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:d.signal})];case 2:return h=w.sent(),h.ok?[3,4]:[4,h.text()];case 3:return m=w.sent(),a.logger.debug("Remote config client fetch with retry time ".concat(t," failed with ").concat(h.status,": ").concat(m)),[3,6];case 4:return[4,h.json()];case 5:return g=w.sent(),[2,{value:{remoteConfig:g,lastFetch:new Date}}];case 6:return[3,9];case 7:return E=w.sent(),E instanceof Error&&E.name==="AbortError"?a.logger.debug("Remote config client fetch with retry time ".concat(t," timed out after ").concat(r,"ms")):a.logger.debug("Remote config client fetch with retry time ".concat(t," is rejected because: "),E),[3,9];case 8:return clearTimeout(f),[7];case 9:return p<t-1?[4,new Promise(function(T){return setTimeout(T,c.getJitterDelay(n))})]:[3,11];case 10:w.sent(),w.label=11;case 11:return[2]}})},a=this,s=0,l.label=1;case 1:return s<t?[5,o(s)]:[3,4];case 2:if(u=l.sent(),typeof u=="object")return[2,u.value];l.label=3;case 3:return s++,[3,1];case 4:return[2,i]}})})},e.prototype.getJitterDelay=function(t){return Math.floor(Math.random()*t)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),r=new URLSearchParams;return r.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(r.toString())},e.CONFIG_GROUP="browser",e})(),Da;(function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"})(Da||(Da={}));var Hf=null,Uf=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],As="data-amp-track-",Ff=["div","span","h1","h2","h3","h4","h5","h6"],Jw=["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]'],Yw=pe(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],J(Jw),!1),Qw=["*"],Zw=1e3,eT=4,tT=50;function rT(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0}function Bf(e,t,r){if(e){var n=t.map(Fc),i=r.map(Fc);Vf({json:e,allowlist:n,excludelist:i,ancestors:[]})}}function Vf(e){var t,r,n=e.json,i=e.targetObject,o=e.allowlist,a=e.excludelist,s=e.ancestors,u=e.parentObject,c=e.targetKey;i||(i=n);var l=Object.keys(i);try{for(var p=he(l),d=p.next();!d.done;d=p.next()){var f=d.value,h=pe(pe([],J(s),!1),[f],!1);rT(i[f])?(!Bc(h,o)||Bc(h,a))&&delete i[f]:Vf({json:n,targetObject:i[f],allowlist:o,excludelist:a,ancestors:h,parentObject:i,targetKey:f})}}catch(m){t={error:m}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(t)throw t.error}}Object.keys(i).length===0&&u&&c&&delete u[c]}function Fc(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(t){return t.replace(/~0/g,"~").replace(/~1/g,"/")})}function La(e,t,r,n){if(r===void 0&&(r=0),n===void 0&&(n=0),n===t.length)return r===e.length;if(r===e.length){for(;n<t.length&&t[n]==="**";)n++;return n===t.length}var i=t[n];if(i==="**"){if(n+1===t.length)return!0;for(var o=r;o<=e.length;o++)if(La(e,t,o,n+1))return!0;return!1}else return i==="*"||i===e[r]?La(e,t,r+1,n+1):!1}function Bc(e,t){return t.some(function(r){return La(e,r)})}var nT=500,jf=100,iT=(function(){function e(t){this.request=t}return e.prototype.headers=function(t){var r,n;t===void 0&&(t=[]);var i=this.request.headers,o={};if(Array.isArray(i))i.forEach(function(p){var d=J(p,2),f=d[0],h=d[1];o[f]=h});else if(i instanceof Headers)i.forEach(function(p,d){o[d]=p});else if(typeof i=="object"&&i!==null)try{for(var a=he(Object.entries(i)),s=a.next();!s.done;s=a.next()){var u=J(s.value,2),c=u[0],l=u[1];o[c]=l}}catch(p){r={error:p}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return lo(o,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(typeof this._bodySize=="number")return this._bodySize;var t=$e();if(t?.TextEncoder){var r=this.request.body;return this._bodySize=$f(r,jf),this._bodySize}}
29,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.request.body=="string"?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),M(this,void 0,void 0,function(){var n;return L(this,function(i){return t.length===0?[2,null]:(n=this.body,[2,ks(n,t,r)])})})},e})(),oT=(function(){function e(t,r){this.bodyRaw=t,this.requestHeaders=r}return e.prototype.headers=function(t){return t===void 0&&(t=[]),lo(this.requestHeaders,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return $f(this.bodyRaw,jf)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.bodyRaw=="string"?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),M(this,void 0,void 0,function(){var n;return L(this,function(i){return t.length===0?[2,null]:(n=this.body,[2,ks(n,t,r)])})})},e})();function $f(e,t){var r,n,i,o=$e(),a=o?.TextEncoder;if(a){var s;if(typeof e=="string")s=e,i=new a().encode(s).length;else if(e instanceof Blob)s=e,i=s.size;else if(e instanceof URLSearchParams)s=e,i=new a().encode(s.toString()).length;else if(ArrayBuffer.isView(e))s=e,i=s.byteLength;else if(e instanceof ArrayBuffer)s=e,i=s.byteLength;else if(e instanceof FormData){var u=e,c=0,l=0;try{for(var p=he(u.entries()),d=p.next();!d.done;d=p.next()){var f=J(d.value,2),h=f[0],m=f[1];if(c+=h.length,typeof m=="string")c+=new a().encode(m).length;else if(m instanceof Blob)c+=m.size;else return;if(++l>=t)return}}catch(g){r={error:g}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}i=c}else if(e instanceof ReadableStream){s=e;return}return i}}var aT=(function(){function e(t){this.response=t}return e.prototype.headers=function(t){var r;if(t===void 0&&(t=[]),this.response.headers instanceof Headers){var n=this.response.headers,i={};return(r=n?.forEach)===null||r===void 0||r.call(n,function(o,a){i[a]=o}),lo(i,{allow:t})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var t,r;if(this._bodySize!==void 0)return this._bodySize;var n=(r=(t=this.response.headers)===null||t===void 0?void 0:t.get)===null||r===void 0?void 0:r.call(t,"content-length"),i=n?parseInt(n,10):void 0;return this._bodySize=i,i},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return M(this,void 0,void 0,function(){var t,r,n;return L(this,function(i){switch(i.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),i.label=1;case 1:return i.trys.push([1,3,,4]),t=this.clonedResponse.text(),r=new Promise(function(o){return setTimeout(function(){return o(null)},nT)}),[4,Promise.race([t,r])];case 2:return n=i.sent(),[2,n];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),M(this,void 0,void 0,function(){var n;return L(this,function(i){switch(i.label){case 0:return t.length===0?[2,null]:[4,this.text()];case 1:return n=i.sent(),[2,ks(n,t,r)]}})})},e})(),sT=(function(){function e(t,r,n,i){this.statusCode=t,this.headersString=r,this.size=n,this.getJson=i}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(t){var r,n;if(t===void 0&&(t=[]),!this.headersString)return{};var i={},o=this.headersString.split(`\r 30`);try{for(var a=he(o),s=a.next();!s.done;s=a.next()){var u=s.value,c=J(u.split(": "),2),l=c[0],p=c[1];l&&p&&(i[l]=p)}}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return lo(i,{allow:t})},e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),M(this,void 0,void 0,function(){var n;return L(this,function(i){return t.length===0?[2,null]:(n=this.getJson(),n?(Bf(n,t,r),[2,n]):[2,null])})})},e})();function ks(e,t,r){if(!e)return null;try{var n=JSON.parse(e);return Bf(n,t,r),n}catch{return null}}var Rn;(function(e){e.REDACT="redact",e.REMOVE="remove"})(Rn||(Rn={}));var Vc="[REDACTED]",lo=function(e,t){var r,n,i=t.allow,o=i===void 0?[]:i,a=t.strategy,s=a===void 0?Rn.REMOVE:a,u=pe([],J(YE),!1),c={},l=function(h){var m=h.toLowerCase();u.find(function(g){return g.toLowerCase()===m})?s===Rn.REDACT&&(c[h]=Vc):o.find(function(g){return g.toLowerCase()===m})?c[h]=e[h]:s===Rn.REDACT&&(c[h]=Vc)};try{for(var p=he(Object.keys(e)),d=p.next();!d.done;d=p.next()){var f=d.value;l(f)}}catch(h){r={error:h}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}return c},uT=(function(){function e(t,r,n,i,o,a,s,u,c,l,p){s===void 0&&(s=0),this.type=t,this.method=r,this.timestamp=n,this.startTime=i,this.url=o,this.requestWrapper=a,this.status=s,this.duration=u,this.responseWrapper=c,this.error=l,this.endTime=p}return e.prototype.toSerializable=function(){var t,r,n,i,o={type:this.t
30ype,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:(t=this.requestWrapper)===null||t===void 0?void 0:t.headers(pe([],J(zi),!1)),requestBodySize:(r=this.requestWrapper)===null||r===void 0?void 0:r.bodySize,responseHeaders:(n=this.responseWrapper)===null||n===void 0?void 0:n.headers(pe([],J(zi),!1)),responseBodySize:(i=this.responseWrapper)===null||i===void 0?void 0:i.bodySize};return Object.fromEntries(Object.entries(o).filter(function(a){var s=J(a,2);s[0];var u=s[1];return u!==void 0}))},e})();function cT(e){return typeof e=="object"&&e!==null&&"url"in e&&"method"in e}var lT=(function(){function e(t,r){r===void 0&&(r=_r()),this.callback=t,this.id=r}return e})(),dT=(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var r=$e();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var t=$e();return!!t&&!!t.fetch},e.prototype.subscribe=function(t,r){var n,i,o,a,s,u,c,l,p,d;if(this.logger||(this.logger=r),this.eventCallbacks.set(t.id,t),!this.isObserving){var f=(o=(i=(n=this.globalScope)===null||n===void 0?void 0:n.XMLHttpRequest)===null||i===void 0?void 0:i.prototype)===null||o===void 0?void 0:o.open,h=(u=(s=(a=this.globalScope)===null||a===void 0?void 0:a.XMLHttpRequest)===null||s===void 0?void 0:s.prototype)===null||u===void 0?void 0:u.send,m=(p=(l=(c=this.globalScope)===null||c===void 0?void 0:c.XMLHttpRequest)===null||l===void 0?void 0:l.prototype)===null||p===void 0?void 0:p.setRequestHeader;f&&h&&m&&this.observeXhr(f,h,m);var g=(d=this.globalScope)===null||d===void 0?void 0:d.fetch;g&&this.observeFetch(g),this.isObserving=!0}},e.prototype.unsubscribe=function(t){this.eventCallbacks.delete(t.id)},e.prototype.triggerEventCallbacks=function(t){var r=this;this.eventCallbacks.forEach(function(n){var i;try{n.callback(t)}catch(o){(i=r.logger)===null||i===void 0||i.debug("an unexpected error occurred while triggering event callbacks",o)}})},e.prototype.handleNetworkRequestEvent=function(t,r,n,i,o,a,s){var u;if(!(a===void 0||s===void 0)){var c,l="GET";if(cT(r)?(c=r.url,l=r.method):c=(u=r?.toString)===null||u===void 0?void 0:u.call(r),c)try{var p=new URL(c);c="".concat(p.protocol,"//").concat(p.host).concat(p.pathname).concat(p.search).concat(p.hash)}catch{}l=n?.method||l;var d,f;i&&(d=i.status),o&&(f={name:o.name||"UnknownError",message:o.message||"An unknown error occurred"},d=0);var h=Math.floor(performance.now()-s),m=Math.floor(a+h),g=new uT(t,l,a,a,c,n,d,h,i,f,m);this.triggerEventCallbacks(g)}},e.prototype.getTimestamps=function(){var t,r;return{startTime:(t=Date.now)===null||t===void 0?void 0:t.call(Date),durationStart:(r=performance?.now)===null||r===void 0?void 0:r.call(performance)}},e.prototype.observeFetch=function(t){var r=this;!this.globalScope||!t||(this.globalScope.fetch=function(n,i){return M(r,void 0,void 0,function(){var o,a,s,u,c,l;return L(this,function(p){switch(p.label){case 0:try{o=this.getTimestamps()}catch(d){(c=this.logger)===null||c===void 0||c.debug("an unexpected error occurred while retrieving timestamps",d)}p.label=1;case 1:return p.trys.push([1,3,,4]),[4,t(n,i)];case 2:return a=p.sent(),[3,4];case 3:return u=p.sent(),s=u,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",n,i?new iT(i):void 0,a?new aT(a):void 0,s,o?.startTime,o?.durationStart)}catch(d){(l=this.logger)===null||l===void 0||l.debug("an unexpected error occurred while handling fetch",d)}if(a)return[2,a];throw s}})})})},e.createXhrJsonParser=function(t,r){return function(){var n,i;try{if(t.responseType==="json"){if(!((n=r.globalScope)===null||n===void 0)&&n.structuredClone)return r.globalScope.structuredClone(t.response)}else if(["text",""].includes(t.responseType))return JSON.parse(t.responseText)}catch(o){return o instanceof Error&&o.name==="InvalidStateError"&&((i=r.logger)===null||i===void 0||i.error("unexpected error when retrieving responseText. responseType='".concat(t.responseType,"'"))),null}return null}},e.prototype.observeXhr=function(t,r,n){if(!(!this.globalScope||!t||!r)){var i=this.globalScope.XMLHttpRequest.prototype,o=this;i.open=function(){for(var a,s,u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];
30var l=this,p=J(u,2),d=p[0],f=p[1];try{l.$$AmplitudeAnalyticsEvent=q({method:d,url:(a=f?.toString)===null||a===void 0?void 0:a.call(f),headers:{}},o.getTimestamps())}catch(h){(s=o.logger)===null||s===void 0||s.error("an unexpected error occurred while calling xhr open",h)}return t.apply(l,u)},i.send=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u=this,c=u,l=e.createXhrJsonParser(u,o),p=a[0],d=c.$$AmplitudeAnalyticsEvent;return c.addEventListener("loadend",function(){var f;try{var h=c.getAllResponseHeaders(),m=c.getResponseHeader("content-length"),g=new sT(c.status,h,m?parseInt(m,10):void 0,l),E=c.$$AmplitudeAnalyticsEvent.headers,w=new oT(p,E);d.status=c.status,o.handleNetworkRequestEvent("xhr",{url:d.url,method:d.method},w,g,void 0,d.startTime,d.durationStart)}catch(T){(f=o.logger)===null||f===void 0||f.error("an unexpected error occurred while handling xhr send",T)}}),r.apply(c,a)},i.setRequestHeader=function(a,s){var u,c=this;try{c.$$AmplitudeAnalyticsEvent.headers[a]=s}catch(l){(u=o.logger)===null||u===void 0||u.error("an unexpected error occurred while calling xhr setRequestHeader",l)}n.apply(c,[a,s])}}},e})(),jc=new dT,Gf=(function(){function e(){}return e.prototype.parse=function(){return M(this,void 0,void 0,function(){return L(this,function(t){return[2,q(q(q(q({},co),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var t=Wi(),r=t[qE],n=t[zE],i=t[WE],o=t[KE],a=t[XE],s=t[JE];return{utm_campaign:r,utm_content:n,utm_id:i,utm_medium:o,utm_source:a,utm_term:s}},e.prototype.getReferrer=function(){var t,r,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=(r=(t=n.referrer)===null||t===void 0?void 0:t.split("/")[2])!==null&&r!==void 0?r:void 0}catch{}return n},e.prototype.getClickIds=function(){var t,r=Wi();return t={},t[Ec]=r[Ec],t[wc]=r[wc],t[Tc]=r[Tc],t[Sc]=r[Sc],t[Ac]=r[Ac],t[kc]=r[kc],t[Pc]=r[Pc],t[Oc]=r[Oc],t[Ic]=r[Ic],t[Rc]=r[Rc],t[Cc]=r[Cc],t},e})(),Cn="data-amp-mask",gr="*****",fT=/\b(?:\d[ -]*?){13,16}\b/,pT=/(\d{3}-?\d{2}-?\d{4})/g,hT=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,Ps=function(e,t){var r,n;if(t===void 0&&(t=[]),typeof e!="string")return"";var i=e;i=i.replace(fT,gr),i=i.replace(pT,gr),i=i.replace(hT,gr);try{for(var o=he(t),a=o.next();!a.done;a=o.next()){var s=a.value;try{i=i.replace(s,gr)}catch{}}}catch(u){r={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},Os=function(e){if(typeof document>"u"||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(Cn)?gr:e?e(document.title):document.title},dn=function(e,t){return typeof e=="boolean"?e:e?.[t]!==!1},qf=function(e){return dn(e,"attribution")},vT=function(e){return dn(e,"fileDownloads")},mT=function(e){return dn(e,"formInteractions")},zf=function(e){return dn(e,"pageViews")},$c=function(e){return dn(e,"sessions")},gT=function(e){return dn(e,"pageUrlEnrichment")},Wf=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.networkTracking===!0||typeof e.networkTracking=="object")},Kf=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},yT=function(e){return typeof e=="boolean"?e:typeof e=="object"&&e.webVitals===!0},Xf=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.frustrationInteractions===!0||typeof e.frustrationInteractions=="object")},bT=function(e){if(Kf(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},_T=function(e){if(Xf(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.frustrationInteractions=="object")return e.autocapture.frustrationInteractions},ET=function(e){var t;if(Wf(e.autocapture)){var r=void 0;return typeof e.autocapture=="object"&&typeof e.autocapture.networkTracking=="object"?r=e.autocapture.networkTracking:e.networkTrackingOptions&&(r=e.networkTrackingOptions),q(q({},r),{captureRules:(t=r?.captureRules)===null||t===void 0?void 0:t.map(function(n){var i,o,a;if(!((i=n.urls)===null||i===void 0)&&i.length&&(!((o=n.hosts)===null||o===void 0)&&o.length)){var s=JSON.stringify(n.hosts),u=JSON.stringify(n.urls);return(a=e.loggerProvider)===null||a===void 0||a.warn("Found network capture rule with both urls='".concat(u,"' and hosts='").concat(s,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),q(q({},n),{hosts:void 0})}return n})})}},wT=function(e){var t=function(){return!1},r=void 0,n,i=e.pageCounter,o=zf(e.defaultTracking);return o&&(t=void 0,n=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(n=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:r,eventType:n,pageCounter:i}},TT=function(e){return qf(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?q({},e.defaultTracking.attribution):{}},ST=function(e,t){Ri(e,t)},Ri=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.name,o=n.args,a=n.resolve,s=e&&e[i];if(typeof s=="function"){var u=s.apply(e,o);typeof a=="function"&&a(u?.promise)}}return e},Bo=function(e){var t=e;return t&&t._q!==void 0},Is="2.30.1",Jf="amplitude-ts",AT="Web",kT="$remote",PT=(function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(Jf,"/").concat(Is),typeof navigator<"u"&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(t){return this.config=t,Promise.resolve(void 0)},e.prototype.execute=function(t){var r,n;return M(this,void 0,void 0,function(){var i,o,a,s;return L(this,function(u){return i=new Date().getTime(),o=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1,a=(n=t.event_id)!==null&&n!==void 0?n:o+1,this.config.lastEventId=a,t.time||(this.config.lastEventTime=i),s=q(q(q(q(q(q(q(q({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:AT}),this.config.trackingOptions.language&&{language:xw()}),this.config.trackingOptions.ipAddress&&{ip:kT}),{insert_id:_r(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),t),{event_id:a,library:this.library,user_agent:this.userAgent}),[2,s]})})},e})(),yi=1e3,Yf=(function(e){yt(t,e);function t(r){var n=this,i,o,a;try{a=(i=$e())===null||i===void 0?void 0:i.localStorage}catch(s){(o=r?.loggerProvider)===null||o===void 0||o.debug("Failed to access localStorage. error=".concat(JSON.stringify(s))),a=void 0}return n=e.call(this,a)||this,n.loggerProvider=r?.loggerProvider,n}return t.prototype.set=function(r,n){var i;return M(this,void 0,void 0,function(){var o;return L(this,function(a){switch(a.label){case 0:return Array.isArray(n)&&n.length>yi?(o=n.length-yi,[4,e.prototype.set.call(this,r,n.slice(0,yi))]):[3,2];case 1:return a.sent(),(i=this.loggerProvider)===null||i===void 0||i.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(yi,".")),[3,4];case 2:return[4,e.prototype.set.call(this,r,n)];case 3:a.sent(),a.label=4;case 4:return[2]}})})},t})(Ts),OT=(function(e){yt(t,e);function t(){var r;return e.call(this,(r=$e())===null||r===void 0?void 0:r.sessionStorage)||this}return t})(Ts),IT=(function(e){yt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.state={done:4},r}return t.prototype.send=function(r,n){return M(this,void 0,void 0,function(){var i=this;return L(this,function(o){return[2,new Promise(function(a,s){typeof XMLHttpRequest>"u"&&s(new Error("XHRTransport is not supported."));var u=new XMLHttpRequest;u.open("POST",r,!0),u.onreadystatechange=function(){if(u.readyState===i.state.done){var c=u.responseText;try{a(i.buildResponse(JSON.parse(c)))}catch{a(i.buildResponse({code:u.status}))}}},u.setRequestHeader("Content-Type","application/json"),u.setRequestHeader("Accept","*/*"),u.send(JSON.stringify(n))})]})})},t})(Ss),RT=(function(e){yt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(r,n){return M(this,void 0,void 0,function(){var i=this;return L(this,function(o){return[2,new Promise(function(a,s){var u=$e();if(!u?.navigator.sendBeacon)throw new Error("SendBeaconTransport is not supported");try{var c=JSON.stringify(n),l=u.navigator.sendBeacon(r,JSON.stringify(n));return a(l?i.buildResponse({code:200,events_ingested:n.events.length,payload_size_bytes:c.length,server_upload_time:Date.now()}):i.buildResponse({code:500}))}
30catch(p){s(p)}})]})})},t})(Ss),CT=function(e,t,r){return r===void 0&&(r=!0),M(void 0,void 0,void 0,function(){var n,i,o,a,s,u,c,l,p;return L(this,function(d){switch(d.label){case 0:return n=Cw(e),[4,t.getRaw(n)];case 1:return i=d.sent(),i?r?[4,t.remove(n)]:[3,3]:[2,{optOut:!1}];case 2:d.sent(),d.label=3;case 3:return o=J(i.split("."),6),a=o[0],s=o[1],u=o[2],c=o[3],l=o[4],p=o[5],[2,{deviceId:a,userId:xT(s),sessionId:Vo(c),lastEventId:Vo(p),lastEventTime:Vo(l),optOut:!!u}]}})})},Vo=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},xT=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},Gt="[Amplitude]",Gc="".concat(Gt," Form Started"),DT="".concat(Gt," Form Submitted"),LT="".concat(Gt," File Downloaded"),qc="session_start",zc="session_end",NT="".concat(Gt," File Extension"),MT="".concat(Gt," File Name"),HT="".concat(Gt," Link ID"),UT="".concat(Gt," Link Text"),FT="".concat(Gt," Link URL"),jo="".concat(Gt," Form ID"),$o="".concat(Gt," Form Name"),Go="".concat(Gt," Form Destination"),Ki="cookie",BT="US",VT=(function(e){yt(t,e);function t(r,n,i,o,a,s,u,c,l,p,d,f,h,m,g,E,w,T,k,P,C,D,F,$,U,N,re,ae,ie,Y,ge,xe,qe,ze,We,tt,Ke,ke,Se,vt){i===void 0&&(i=new ws),o===void 0&&(o={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),c===void 0&&(c=1e3),l===void 0&&(l=5),p===void 0&&(p=30),d===void 0&&(d=Ki),E===void 0&&(E=new Rf),w===void 0&&(w=_t.Warn),k===void 0&&(k=!1),P===void 0&&(P=!1),F===void 0&&(F=""),$===void 0&&($=BT),N===void 0&&(N=1800*1e3),re===void 0&&(re=new Yf({loggerProvider:E})),ae===void 0&&(ae={ipAddress:!0,language:!0,platform:!0}),ie===void 0&&(ie="fetch"),Y===void 0&&(Y=!1),ge===void 0&&(ge=!0),Ke===void 0&&(Ke=!0),ke===void 0&&(ke=0);var z=e.call(this,{apiKey:r,storageProvider:re,transportProvider:Qf(ie)})||this;return z.apiKey=r,z.appVersion=n,z.cookieOptions=o,z.defaultTracking=a,z.autocapture=s,z.flushIntervalMillis=c,z.flushMaxRetries=l,z.flushQueueSize=p,z.identityStorage=d,z.ingestionMetadata=f,z.instanceName=h,z.loggerProvider=E,z.logLevel=w,z.minIdLength=T,z.offline=k,z.partnerId=C,z.plan=D,z.serverUrl=F,z.serverZone=$,z.sessionTimeout=N,z.storageProvider=re,z.trackingOptions=ae,z.transport=ie,z.useBatch=Y,z.fetchRemoteConfig=ge,z.networkTrackingOptions=We,z.identify=tt,z.enableDiagnostics=Ke,z.diagnosticsSampleRate=ke,z.diagnosticsClient=Se,z.remoteConfig=vt,z.version=Is,z._optOut=!1,z._cookieStorage=i,z.deviceId=u,z.lastEventId=m,z.lastEventTime=g,z.optOut=P,z.sessionId=U,z.pageCounter=qe,z.userId=xe,z.debugLogsEnabled=ze,z.loggerProvider.enable(ze?_t.Debug:z.logLevel),z.networkTrackingOptions=We,z.identify=tt,z.enableDiagnostics=Ke,z.diagnosticsSampleRate=ke,z.diagnosticsClient=Se,ge&&(z.remoteConfig||(z.remoteConfig={fetchRemoteConfig:ge}),z.remoteConfig.fetchRemoteConfig||(z.remoteConfig.fetchRemoteConfig=ge)),z}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(r){this._cookieStorage!==r&&(this._cookieStorage=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(r){this._deviceId!==r&&(this._deviceId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(r){this._userId!==r&&(this._userId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(r){this._sessionId!==r&&(this._sessionId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(r){this._optOut!==r&&(this._optOut=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(r){this._lastEventTime!==r&&(this._lastEventTime=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(r){this._lastEventId!==r&&(this._lastEventId=r,this.updateStorage())}
30,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(r){this._pageCounter!==r&&(this._pageCounter=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(r){this._debugLogsEnabled!==r&&(this._debugLogsEnabled=r,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var r={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(Mf(this.apiKey),r)},t})(vw),jT=function(e,t,r){return t===void 0&&(t={}),M(void 0,void 0,void 0,function(){var n,i,o,a,s,u,c,l,p,d,f,h,m,g,E,w,T,k,P,C,D,F,$,U,N,re,ae,ie,Y,ge,xe,qe,ze,We,tt,Ke,ke,Se,vt,z,x,j,V,K,me;return L(this,function(se){switch(se.label){case 0:return n=t.identityStorage||Ki,D={},n===Ki?[3,1]:(o="",[3,5]);case 1:return($=(F=t.cookieOptions)===null||F===void 0?void 0:F.domain)!==null&&$!==void 0?(a=$,[3,4]):[3,2];case 2:return[4,GT()];case 3:a=se.sent(),se.label=4;case 4:o=a,se.label=5;case 5:return i=q.apply(void 0,[(D.domain=o,D.expiration=365,D.sameSite="Lax",D.secure=!1,D.upgrade=!0,D),t.cookieOptions]),s=$T(t.identityStorage,i),[4,CT(e,s,(N=(U=t.cookieOptions)===null||U===void 0?void 0:U.upgrade)!==null&&N!==void 0?N:!0)];case 6:return u=se.sent(),[4,s.get(Mf(e))];case 7:return c=se.sent(),l=Wi(),p=l.ampTimestamp?Number(l.ampTimestamp):void 0,d=p?Date.now()<p:!0,f=(ge=(Y=(ie=(re=t.deviceId)!==null&&re!==void 0?re:d?(ae=l.ampDeviceId)!==null&&ae!==void 0?ae:l.deviceId:void 0)!==null&&ie!==void 0?ie:c?.deviceId)!==null&&Y!==void 0?Y:u.deviceId)!==null&&ge!==void 0?ge:_r(),h=(xe=c?.lastEventId)!==null&&xe!==void 0?xe:u.lastEventId,m=(qe=c?.lastEventTime)!==null&&qe!==void 0?qe:u.lastEventTime,g=(We=(ze=t.optOut)!==null&&ze!==void 0?ze:c?.optOut)!==null&&We!==void 0?We:u.optOut,E=(tt=c?.sessionId)!==null&&tt!==void 0?tt:u.sessionId,w=(ke=(Ke=t.userId)!==null&&Ke!==void 0?Ke:c?.userId)!==null&&ke!==void 0?ke:u.userId,r.previousSessionDeviceId=(Se=c?.deviceId)!==null&&Se!==void 0?Se:u.deviceId,r.previousSessionUserId=(vt=c?.userId)!==null&&vt!==void 0?vt:u.userId,T={ipAddress:(x=(z=t.trackingOptions)===null||z===void 0?void 0:z.ipAddress)!==null&&x!==void 0?x:!0,language:(V=(j=t.trackingOptions)===null||j===void 0?void 0:j.language)!==null&&V!==void 0?V:!0,platform:(me=(K=t.trackingOptions)===null||K===void 0?void 0:K.platform)!==null&&me!==void 0?me:!0},k=c?.pageCounter,P=c?.debugLogsEnabled,t.autocapture!==void 0&&(t.defaultTracking=t.autocapture),C=new VT(e,t.appVersion,s,i,t.defaultTracking,t.autocapture,f,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,n,t.ingestionMetadata,t.instanceName,h,m,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,g,t.partnerId,t.plan,t.serverUrl,t.serverZone,E,t.sessionTimeout,t.storageProvider,T,t.transport,t.useBatch,t.fetchRemoteConfig,w,k,P,t.networkTrackingOptions,t.identify,t.enableDiagnostics,void 0,void 0,t.remoteConfig),[4,C.storageProvider.isEnabled()];case 8:return se.sent()||(C.loggerProvider.warn("Storage provider ".concat(C.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),C.storageProvider=new ws),[2,C]}})})},$T=function(e,t){switch(e===void 0&&(e=Ki),t===void 0&&(t={}),e){case"localStorage":return new Yf;case"sessionStorage":return new OT;case"none":return new ws;case"cookie":default:return new xa(q(q({},t),{expirationDays:t.expiration}))}},Qf=function(e){return e==="xhr"?new IT:e==="beacon"?new RT:new $w},GT=function(e){return M(void 0,void 0,void 0,function(){var t,r,n,i,o,o,a,s,u,c;return L(this,function(l){switch(l.label){case 0:return[4,new xa().isEnabled()];case 1:if(!l.sent()||typeof location>"u"||!location.hostname)return[2,""];for(t=location.hostname,r=t.split("."),n=[],i="AMP_TLDTEST",o=r.length-2;o>=0;--o)n.push(r.slice(o).join("."));o=0,l.label=2;case 2:return o<n.length?(a=n[o],s={domain:"."+a},u=new xa(s),[4,u.set(i,1)]):[3,7];case 3:return l.sent(),[4,u.get(i)];case 4:return c=l.sent(),c?[4,u.remove(i)]:[3,6];case 5:return l.sent(),[2,"."+a];case 6:return o++,[3,2];case 7:return[2,""]}})})},qT=function(e){var t={};for(var r in e){var n=e[r];n&&(t[r]=n)}return t},zT="[Amplitude] Page Viewed",WT=function(e){e===void 0&&(e={});var t,r=$e(),n=void 0,i=!1,o,a=e.trackOn,s=e.trackHistoryChanges,u=e.eventType,c=u===void 0?zT:u,l=function(E){var w=E;try{w=decodeURI(E)}catch(T){n?.error("Malformed URI sequence: ",T)}return w},p=function(){return M(void 0,void 0,void 0,function(){var E,w,T;return L(this,function(k){switch(k.label){case 0:return E=l(typeof location<"u"&&location.href||""),T={event_type:c},w=[{}],[4,KT()];case 1:return[2,(T.event_properties=q.apply(void 0,[q.apply(void 0,w.concat([k.sent()])),{"[Amplitude] Page Domain":typeof location<"u"&&location.hostname||"","[Amplitude] Page Location":E,"[Amplitude] Page Path":typeof location<"u"&&l(location.pathname)||"","[Amplitude] Page Title":Os(Ps),"[Amplitude] Page URL":E.split("?")[0]}]),T)]}})})},d=function(){return typeof a>"u"||typeof a=="function"&&a()},f=typeof location<"u"?location.href:null,h=function(){return M(void 0,void 0,void 0,function(){var E,w,T,k;return L(this,function(P){switch(P.label){case 0:return E=location.href,w=JT(s,E,f||"")&&d(),f=E,w?(n?.log("Tracking page view event"),t!=null?[3,1]:[3,3]):[3,4];case 1:return k=(T=t).track,[4,p()];case 2:k.apply(T,[P.sent()]),P.label=3;case 3:P.label=4;case 4:return[2]}})})},m=function(){h()},g={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(E,w){return M(void 0,void 0,void 0,function(){var T,k;return L(this,function(P){switch(P.label){case 0:return t=w,o=E,n=E.loggerProvider,n.log("Installing @amplitude/plugin-page-view-tracking-browser"),i=!0,r&&(r.addEventListener("popstate",m),r.history.pushState=new Proxy(r.history.pushState,{apply:function(C,D,F){var $=J(F,3),U=$[0],N=$[1],re=$[2];C.apply(D,[U,N,re]),i&&h()}})),d()?(n.log("Tracking page view event"),k=(T=t).track,[4,p()]):[3,2];case 1:k.apply(T,[P.sent()]),P.label=2;case 2:return[2]}})})},execute:function(E){return M(void 0,void 0,void 0,function(){var w;return L(this,function(T){switch(T.label){case 0:return a==="attribution"&&XT(E)?(n?.log("Enriching c
30ampaign event to page view event with campaign parameters"),[4,p()]):[3,2];case 1:w=T.sent(),E.event_type=w.event_type,E.event_properties=q(q({},E.event_properties),w.event_properties),T.label=2;case 2:return o&&E.event_type===c&&(o.pageCounter=o.pageCounter?o.pageCounter+1:1,E.event_properties=q(q({},E.event_properties),{"[Amplitude] Page Counter":o.pageCounter})),[2,E]}})})},teardown:function(){return M(void 0,void 0,void 0,function(){return L(this,function(E){return r&&(r.removeEventListener("popstate",m),i=!1),[2]})})}};return g},KT=function(){return M(void 0,void 0,void 0,function(){var e;return L(this,function(t){switch(t.label){case 0:return e=qT,[4,new Gf().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},XT=function(e){if(e.event_type==="$identify"&&e.user_properties){var t=e.user_properties,r=t[ir.SET]||{},n=t[ir.UNSET]||{},i=pe(pe([],J(Object.keys(r)),!1),J(Object.keys(n)),!1);return Object.keys(co).every(function(o){return i.includes(o)})}return!1},JT=function(e,t,r){switch(e){case"pathOnly":{if(r=="")return!0;var n=new URL(t),i=new URL(r),o=n.origin+n.pathname,a=i.origin+i.pathname;return o!==a}default:return t!==r}},YT=function(){var e,t=[],r=function(c,l,p){c.addEventListener(l,p),t.push({element:c,type:l,handler:p})},n=function(){t.forEach(function(c){var l=c.element,p=c.type,d=c.handler;l?.removeEventListener(p,d)}),t=[]},i="@amplitude/plugin-form-interaction-tracking-browser",o="enrichment",a=function(c,l){return M(void 0,void 0,void 0,function(){var p,d;return L(this,function(f){return p=function(){if(!l){c.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var h=function(g){var E=!1;r(g,"change",function(){var w,T=Wc(g);E||l.track(Gc,(w={},w[jo]=jr(g.id),w[$o]=jr(g.name),w[Go]=T,w)),E=!0}),r(g,"submit",function(){var w,T,k=Wc(g);E||l.track(Gc,(w={},w[jo]=jr(g.id),w[$o]=jr(g.name),w[Go]=k,w)),l.track(DT,(T={},T[jo]=jr(g.id),T[$o]=jr(g.name),T[Go]=k,T)),E=!1})},m=Array.from(document.getElementsByTagName("form"));m.forEach(h),typeof MutationObserver<"u"&&(e=new MutationObserver(function(g){g.forEach(function(E){E.addedNodes.forEach(function(w){w.nodeName==="FORM"&&h(w),"querySelectorAll"in w&&typeof w.querySelectorAll=="function"&&Array.from(w.querySelectorAll("form")).map(h)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?p():(d=$e(),d?d.addEventListener("load",p):c.loggerProvider.debug("Form interaction tracking is not installed because global is undefined.")),[2]})})},s=function(c){return M(void 0,void 0,void 0,function(){return L(this,function(l){return[2,c]})})},u=function(){return M(void 0,void 0,void 0,function(){return L(this,function(c){return e?.disconnect(),n(),[2]})})};return{name:i,type:o,setup:a,execute:s,teardown:u}},jr=function(e){if(typeof e=="string")return e},Wc=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(t??""),window.location.href).href}catch{}return t},QT=function(){var e,t=[],r=function(c,l,p){c.addEventListener(l,p),t.push({element:c,type:l,handler:p})},n=function(){t.forEach(function(c){var l=c.element,p=c.type,d=c.handler;l?.removeEventListener(p,d)}),t=[]},i="@amplitude/plugin-file-download-tracking-browser",o="enrichment",a=function(c,l){return M(void 0,void 0,void 0,function(){var p,d;return L(this,function(f){return p=function(){if(!l){c.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var h=function(E){var w;try{w=new URL(E.href,window.location.href)}catch{return}var T=m.exec(w.href),k=T?.[1];k&&r(E,"click",function(){var P;k&&l.track(LT,(P={},P[NT]=k,P[MT]=w.pathname,P[HT]=E.id,P[UT]=E.text,P[FT]=E.href,P))})},m=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/,g=Array.from(document.getElementsByTagName("a"));g.forEach(h),typeof MutationObserver<"u"&&(e=new MutationObserver(function(E){E.forEac
30h(function(w){w.addedNodes.forEach(function(T){T.nodeName==="A"&&h(T),"querySelectorAll"in T&&typeof T.querySelectorAll=="function"&&Array.from(T.querySelectorAll("a")).map(h)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?p():(d=$e(),d?d.addEventListener("load",p):c.loggerProvider.debug("File download tracking is not installed because global is undefined.")),[2]})})},s=function(c){return M(void 0,void 0,void 0,function(){return L(this,function(l){return[2,c]})})},u=function(){return M(void 0,void 0,void 0,function(){return L(this,function(c){return e?.disconnect(),n(),[2]})})};return{name:i,type:o,setup:a,execute:s,teardown:u}},Kc=!1,ZT=function(e){if(!(Kc||e.defaultTracking!==void 0)){var t=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example: 31 32amplitude.init(<YOUR_API_KEY>, { 33 defaultTracking: true, 34}); 35 36Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(t),Kc=!0}},eS=function(){var e="@amplitude/plugin-network-checker-browser",t="before",r=$e(),n=[],i=function(u,c){r?.addEventListener&&(r?.addEventListener(u,c),n.push({type:u,handler:c}))},o=function(){n.forEach(function(u){var c=u.type,l=u.handler;r?.removeEventListener(c,l)}),n=[]},a=function(u,c){return M(void 0,void 0,void 0,function(){return L(this,function(l){return typeof navigator>"u"?(u.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),u.offline=!1,[2]):(u.offline=!navigator.onLine,i("online",function(){u.loggerProvider.debug("Network connectivity changed to online."),u.offline=!1,setTimeout(function(){c.flush()},u.flushIntervalMillis)}),i("offline",function(){u.loggerProvider.debug("Network connectivity changed to offline."),u.offline=!0}),[2])})})},s=function(){return M(void 0,void 0,void 0,function(){return L(this,function(u){return o(),[2]})})};return{name:e,type:t,setup:a,teardown:s}};function Zf(e){var t,r,n,i,o,a,s,u,c,l,p;if(!(typeof e!="object"||e===null)&&!Array.isArray(e)){var d=Object.keys(e);try{for(var f=he(d),h=f.next();!h.done;h=f.next()){var m=h.value;try{var g=e[m];typeof g?.enabled=="boolean"&&(g.enabled?(delete g.enabled,Object.keys(g).length===0&&(e[m]=!0)):e[m]=!1),Zf(g)}catch{}}}catch(N){t={error:N}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}try{if(!((c=(u=(s=e.autocapture)===null||s===void 0?void 0:s.networkTracking)===null||u===void 0?void 0:u.captureRules)===null||c===void 0)&&c.length)try{for(var E=he(e.autocapture.networkTracking.captureRules),w=E.next();!w.done;w=E.next()){var T=w.value;try{for(var k=(o=void 0,he(["responseHeaders","requestHeaders"])),P=k.next();!P.done;P=k.next()){var C=P.value,D=(l=T[C])!==null&&l!==void 0?l:{},F=D.captureSafeHeaders,$=D.allowlist;if(!(!F&&!$)){if($!==void 0&&!Array.isArray($)){delete T[C];continue}T[C]=pe(pe([],J(F?zi:[]),!1),J($??[]),!1)}}}catch(N){o={error:N}}finally{try{P&&!P.done&&(a=k.return)&&a.call(k)}finally{if(o)throw o.error}}}}catch(N){n={error:N}}finally{try{w&&!w.done&&(i=E.return)&&i.call(E)}finally{if(n)throw n.error}}}catch{}var U=(p=e.autocapture)===null||p===void 0?void 0:p.frustrationInteractions;U&&(U.rageClick&&(U.rageClicks=U.rageClick,delete U.rageClick),U.deadClick&&(U.deadClicks=U.deadClick,delete U.deadClick))}}function Xc(e,t,r){var n,i,o=[];try{for(var a=he(t??[]),s=a.next();!s.done;s=a.next()){var u=s.value;try{o.push(new RegExp(u))}catch(c){r.loggerProvider.warn("Invalid regex pattern: ".concat(u),c)}}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return e.concat(o)}function tS(e,t){var r,n,i,o,a,s,u;if(e){Zf(e);try{t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var c=e;if(c&&"autocapture"in c){if(typeof c.autocapture=="boolean"&&(t.autocapture=c.autocapture),typeof c.autocapture=="object"&&c.autocapture!==null){var l=q({},c.autocapture);if(t.autocapture===void 0&&(t.autocapture=c.autocapture),typeof c.autocapture.elementInteractions=="object"&&c.autocapture.elementInteractions!==null&&(!((i=c.autocapture.elementInteractions.pageUrlAllowlistRegex)===null||i===void 0)&&i.length)){l.elementInteractions=q({},c.autocapture.elementInteractions);var p=l.elementInteractions,d=(o=p.pageUrlAllowlist)!==null&&o!==void 0?o:[],f=c.autocapture.elementInteractions.pageUrlAllowlistRegex;p.pageUrlAllowlist=Xc(d,f,t),delete p.pageUrlAllowlistRegex}
vendor: 11,695 bytes, lines 36-38
36if(typeof c.autocapture.networkTracking=="object"&&c.autocapture.networkTracking!==null&&(!((a=c.autocapture.networkTracking.captureRules)===null||a===void 0)&&a.length)){l.networkTracking=q({},c.autocapture.networkTracking);var h=l.networkTracking,m=(s=h.captureRules)!==null&&s!==void 0?s:[];try{for(var g=he(m),E=g.next();!E.done;E=g.next()){var w=E.value;w.urls=Xc((u=w.urls)!==null&&u!==void 0?u:[],w.urlsRegex,t),delete w.urlsRegex}}catch(T){r={error:T}}finally{try{E&&!E.done&&(n=g.return)&&n.call(g)}finally{if(r)throw r.error}}}typeof t.autocapture=="boolean"&&(t.autocapture=q({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},l)),typeof t.autocapture=="object"&&(t.autocapture=q(q({},t.autocapture),l))}t.defaultTracking=t.autocapture}t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(T){t.loggerProvider.error("Failed to apply remote configuration because of error: ",T)}}}var rS="@amplitude/plugin-autocapture-browser",nS="@amplitude/plugin-frustration-browser",Na="[Amplitude] Element Clicked",iS="[Amplitude] Dead Click",Jc="[Amplitude] Rage Click",oS="[Amplitude] Element Changed",aS="[Amplitude] Element ID",sS="[Amplitude] Element Class",Yc="[Amplitude] Element Tag",Qc="[Amplitude] Element Text",uS="[Amplitude] Element Hierarchy",cS="[Amplitude] Element Href",lS="[Amplitude] Element Position Left",dS="[Amplitude] Element Position Top",fS="[Amplitude] Element Aria Label",pS="[Amplitude] Element Attributes",hS="[Amplitude] Element Parent Label",Zc="[Amplitude] Page URL",vS="[Amplitude] Page Title",mS="[Amplitude] Viewport Height",gS="[Amplitude] Viewport Width",Ci="https://app.amplitude.com",yS="https://app.eu.amplitude.com",bS="https://apps.stag2.amplitude.com",_S={US:Ci,EU:yS,STAGING:bS},ES="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",wS="amp-visual-tagging-selector-highlight",ep="data-amp-mask-attributes",TS=25;function Oe(e){return typeof e=="function"}function Rs(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var qo=Rs(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: 37`+r.map(function(n,i){return i+1+") "+n.toString()}).join(` 38 `):"",this.name="UnsubscriptionError",this.errors=r}});function Xi(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Xn=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=he(a),u=s.next();!u.done;u=s.next()){var c=u.value;c.remove(this)}}catch(m){t={error:m}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var l=this.initialTeardown;if(Oe(l))try{l()}catch(m){o=m instanceof qo?m.errors:[m]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=he(p),f=d.next();!f.done;f=d.next()){var h=f.value;try{el(h)}catch(m){o=o??[],m instanceof qo?o=pe(pe([],J(o)),J(m.errors)):o.push(m)}}}catch(m){n={error:m}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}}if(o)throw new qo(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)el(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Xi(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Xi(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),tp=Xn.EMPTY;function rp(e){return e instanceof Xn||e&&"closed"in e&&Oe(e.remove)&&Oe(e.add)&&Oe(e.unsubscribe)}function el(e){Oe(e)?e():e.unsubscribe()}var SS={Promise:void 0},AS={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,pe([e,t],J(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function np(e){AS.setTimeout(function(){throw e})}function Ma(){}function xi(e){e()}var Cs=(function(e){yt(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,rp(r)&&r.add(n)):n.destination=OS,n}return t.create=function(r,n,i){return new Vn(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Xn),kS=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){bi(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){bi(n)}else bi(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){bi(r)}},e})(),Vn=(function(e){yt(t,e);function t(r,n,i){var o=e.call(this)||this,a;return Oe(r)||!r?a={next:r??void 0,error:n??void 0,complete:i??void 0}:a=r,o.destination=new kS(a),o}return t})(Cs);function bi(e){np(e)}function PS(e){throw e}var OS={closed:!0,next:Ma,error:PS,complete:Ma},xs=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ip(e){return e}function IS(e){return e.length===0?ip:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var et=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=CS(t)?t:new Vn(t,r,n);return xi(function(){var a=i,s=a.operator,u=a.source;o.add(s?s.call(o,u):u?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=tl(r),new r(function(i,o){var a=new Vn({next:function(s){try{t(s)}catch(u){o(u),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[xs]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return IS(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=tl(t),new t(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},e.create=function(t){return new e(t)},e})();function tl(e){var t;return(t=e??SS.Promise)!==null&&t!==void 0?t:Promise}function RS(e){return e&&Oe(e.next)&&Oe(e.error)&&Oe(e.complete)}function CS(e){return e&&e instanceof Cs||RS(e)&&rp(e)}function xS(e){return Oe(e?.lift)}function Rt(e){return function(t){if(xS(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function pt(e,t,r,n,i){return new DS(e,t,r,n,i)}var DS=(function(e){yt(t,e);function t(r,n,i,o,a,s){var u=e.call(this,r)||this;return u.onFinalize=a,u.shouldUnsubscribe=s,u._next=n?function(c){try{n(c)}catch(l){r.error(l)}}:e.prototype._next,u._error=o?function(c){try{o(c)}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=i?function(){try{i()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(Cs),LS=Rs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),op=(function(e){yt(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new rl(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new LS},t.prototype.next=function(r){var n=this;xi(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=he(n.currentObservers),s=a.next();!s.done;s=a.next()){var u=s.value;u.next(r)}}catch(c){i={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;xi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;xi(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,a=i.isStopped,s=i.observers;return o||a?tp:(this.currentObservers=null,s.push(r),new Xn(function(){n.currentObservers=null,Xi(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},t.prototype.asObservable=function(){var r=new et;return r.source=this,r},t.create=function(r,n){return new rl(r,n)},t})(et),rl=(function(e){yt(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:tp},t})(op),NS={now:function(){return Date.now()}},MS=(function(e){yt(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t})(Xn),nl={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setInterval.apply(void 0,pe([e,t],J(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},HS=(function(e){yt(t,e);function t(r,n){var i=e.call(this,r,n)||this;
vendor: 4,604 bytes, line 38
38return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),nl.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&nl.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(a){i=!0,o=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Xi(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(MS),il=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=NS.now,e})(),US=(function(e){yt(t,e);function t(r,n){n===void 0&&(n=il.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t})(il),Jn=new US(HS),FS=Jn,Ds=new et(function(e){return e.complete()});function ap(e){return e&&Oe(e.schedule)}function sp(e){return e[e.length-1]}function BS(e){return ap(sp(e))?e.pop():void 0}function VS(e,t){return typeof sp(e)=="number"?e.pop():t}var Ls=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function up(e){return Oe(e?.then)}function cp(e){return Oe(e[xs])}function lp(e){return Symbol.asyncIterator&&Oe(e?.[Symbol.asyncIterator])}function dp(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function jS(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fp=jS();function pp(e){return Oe(e?.[fp])}function hp(e){return FE(this,arguments,function(){var r,n,i,o;return L(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Yr(r.read())];case 3:return n=a.sent(),i=n.value,o=n.done,o?[4,Yr(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Yr(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function vp(e){return Oe(e?.getReader)}function ht(e){if(e instanceof et)return e;if(e!=null){if(cp(e))return $S(e);if(Ls(e))return GS(e);if(up(e))return qS(e);if(lp(e))return mp(e);if(pp(e))return zS(e);if(vp(e))return WS(e)}throw dp(e)}function $S(e){return new et(function(t){var r=e[xs]();if(Oe(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function GS(e){return new et(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function qS(e){return new et(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,np)})}function zS(e){return new et(function(t){var r,n;try{for(var i=he(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function mp(e){return new et(function(t){KS(e,t).catch(function(r){return t.error(r)})})}function WS(e){return mp(hp(e))}function KS(e,t){var r,n,i,o;return M(this,void 0,void 0,function(){var a,s;return L(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=BE(e),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=u.sent(),i={error:s},[3,11];
38case 6:return u.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function yr(e,t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function gp(e,t){return t===void 0&&(t=0),Rt(function(r,n){r.subscribe(pt(n,function(i){return yr(n,e,function(){return n.next(i)},t)},function(){return yr(n,e,function(){return n.complete()},t)},function(i){return yr(n,e,function(){return n.error(i)},t)}))})}function yp(e,t){return t===void 0&&(t=0),Rt(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function XS(e,t){return ht(e).pipe(yp(t),gp(t))}function JS(e,t){return ht(e).pipe(yp(t),gp(t))}function YS(e,t){return new et(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function QS(e,t){return new et(function(r){var n;return yr(r,t,function(){n=e[fp](),yr(r,t,function(){var i,o,a;try{i=n.next(),o=i.value,a=i.done}catch(s){r.error(s);return}a?r.complete():r.next(o)},0,!0)}),function(){return Oe(n?.return)&&n.return()}})}function bp(e,t){if(!e)throw new Error("Iterable cannot be null");return new et(function(r){yr(r,t,function(){var n=e[Symbol.asyncIterator]();yr(r,t,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function ZS(e,t){return bp(hp(e),t)}function eA(e,t){if(e!=null){if(cp(e))return XS(e,t);if(Ls(e))return YS(e,t);if(up(e))return JS(e,t);if(lp(e))return bp(e,t);if(pp(e))return QS(e,t);if(vp(e))return ZS(e,t)}throw dp(e)}function tA(e,t){return t?eA(e,t):ht(e)}function _p(e){return e instanceof Date&&!isNaN(e)}var rA=Rs(function(e){return function(r){r===void 0&&(r=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function nA(e,t){var r=_p(e)?{first:e}:typeof e=="number"?{each:e}:e,n=r.first,i=r.each,o=r.with,a=o===void 0?iA:o,s=r.scheduler,u=s===void 0?Jn:s,c=r.meta,l=c===void 0?null:c;if(n==null&&i==null)throw new TypeError("No timeout provided.");return Rt(function(p,d){var f,h,m=null,g=0,E=function(w){h=yr(d,u,function(){try{f.unsubscribe(),ht(a({meta:l,lastValue:m,seen:g})).subscribe(d)}catch(T){d.error(T)}},w)};f=p.subscribe(pt(d,function(w){h?.unsubscribe(),g++,d.next(m=w),i>0&&E(i)},void 0,void 0,function(){h?.closed||h?.unsubscribe(),m=null})),!g&&E(n!=null?typeof n=="number"?n:+n-u.now():i)})}function iA(e){throw new rA(e)}function at(e,t){return Rt(function(r,n){var i=0;r.subscribe(pt(n,function(o){n.next(e.call(t,o,i++))}))})}var oA=Array.isArray;function aA(e,t){return oA(t)?e.apply(void 0,pe([],J(t))):e(t)}function sA(e){return at(function(t){return aA(e,t)})}function uA(e,t,r,n,i,o,a,s){var u=[],c=0,l=0,p=!1,d=function(){p&&!u.length&&!c&&t.complete()},f=function(m){return c<n?h(m):u.push(m)},h=function(m){c++;var g=!1;ht(r(m,l++)).subscribe(pt(t,function(E){t.next(E)},function(){g=!0},void 0,function(){if(g)try{c--;for(var E=function(){var w=u.shift();a||h(w)};u.length&&c<n;)E();d()}catch(w){t.error(w)}}))};return e.subscribe(pt(t,f,function(){p=!0,d()})),function(){}}
38function Yn(e,t,r){return r===void 0&&(r=1/0),Oe(t)?Yn(function(n,i){return at(function(o,a){return t(n,o,i,a)})(ht(e(n,i)))},r):(typeof t=="number"&&(r=t),Rt(function(n,i){return uA(n,i,e,r)}))}function cA(e){return e===void 0&&(e=1/0),Yn(ip,e)}var lA=["addListener","removeListener"],dA=["addEventListener","removeEventListener"],fA=["on","off"];function sn(e,t,r,n){if(Oe(r)&&(n=r,r=void 0),n)return sn(e,t,r).pipe(sA(n));var i=J(vA(e)?dA.map(function(s){return function(u){return e[s](t,u,r)}}):pA(e)?lA.map(ol(e,t)):hA(e)?fA.map(ol(e,t)):[],2),o=i[0],a=i[1];if(!o&&Ls(e))return Yn(function(s){return sn(s,t,r)})(ht(e));if(!o)throw new TypeError("Invalid event target");return new et(function(s){var u=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return s.next(1<c.length?c:c[0])};return o(u),function(){return a(u)}})}function ol(e,t){return function(r){return function(n){return e[r](t,n)}}}function pA(e){return Oe(e.addListener)&&Oe(e.removeListener)}function hA(e){return Oe(e.on)&&Oe(e.off)}function vA(e){return Oe(e.addEventListener)&&Oe(e.removeEventListener)}function Ep(e,t,r){e===void 0&&(e=0),r===void 0&&(r=FS);var n=-1;return t!=null&&(ap(t)?r=t:n=t),new et(function(i){var o=_p(e)?+e-r.now():e;o<0&&(o=0);var a=0;return r.schedule(function(){i.closed||(i.next(a++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function Ns(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=BS(e),n=VS(e,1/0),i=e;return i.length?i.length===1?ht(i[0]):cA(n)(tA(i,r)):Ds}var mA=Array.isArray;function gA(e){return e.length===1&&mA(e[0])?e[0]:e}function ft(e,t){return Rt(function(r,n){var i=0;r.subscribe(pt(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function yA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=gA(e),e.length===1?ht(e[0]):new et(bA(e))}function bA(e){return function(t){for(var r=[],n=function(o){r.push(ht(e[o]).subscribe(pt(t,function(a){if(r){for(var s=0;s<r.length;s++)s!==o&&r[s].unsubscribe();r=null}t.next(a)})))},i=0;r&&!t.closed&&i<e.length;i++)n(i)}}function _A(e){return Rt(function(t,r){var n=[];return t.subscribe(pt(r,function(i){return n.push(i)},function(){r.next(n),r.complete()})),ht(e).subscribe(pt(r,function(){var i=n;n=[],r.next(i)},Ma)),function(){n=null}})}function EA(e,t){return t===void 0&&(t=Jn),Rt(function(r,n){var i=null,o=null,a=null,s=function(){if(i){i.unsubscribe(),i=null;var c=o;o=null,n.next(c)}};function u(){var c=a+e,l=t.now();if(l<c){i=this.schedule(void 0,c-l),n.add(i);return}s()}r.subscribe(pt(n,function(c){o=c,a=t.now(),i||(i=t.schedule(u,e),n.add(i))},function(){s(),n.complete()},void 0,function(){o=i=null}))})}function Ms(e){return e<=0?function(){return Ds}:Rt(function(t,r){var n=0;t.subscribe(pt(r,function(i){++n<=e&&(r.next(i),e<=n&&r.complete())}))})}function wA(e){return at(function(){return e})}function TA(e,t){return Yn(function(r,n){return ht(e(r,n)).pipe(Ms(1),wA(r))})}function SA(e,t){t===void 0&&(t=Jn);var r=Ep(e,t);return TA(function(){return r})}function AA(){return Rt(function(e,t){var r,n=!1;e.subscribe(pt(t,function(i){var o=r;r=i,n&&t.next([o,i]),n=!0}))})}function Or(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new op}:t,n=e.resetOnError,i=n===void 0?!0:n,o=e.resetOnComplete,a=o===void 0?!0:o,s=e.resetOnRefCountZero,u=s===void 0?!0:s;return function(c){var l,p,d,f=0,h=!1,m=!1,g=function(){p?.unsubscribe(),p=void 0},E=function(){g(),l=d=void 0,h=m=!1},w=function(){var T=l;E(),T?.unsubscribe()};return Rt(function(T,k){f++,!m&&!h&&g();var P=d=d??r();k.add(function(){f--,f===0&&!m&&!h&&(p=zo(w,u))}),P.subscribe(k),!l&&f>0&&(l=new Vn({next:function(C){return P.next(C)},error:function(C){m=!0,g(),p=zo(E,i,C),P.error(C)},complete:function(){h=!0,g(),p=zo(E,a),P.complete()}}),ht(T).subscribe(l))})(c)}}function zo(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var i=new Vn({next:function(){i.unsubscribe(),e()}});return ht(t.apply(void 0,pe([],J(r)))).subscribe(i)}}function kA(e,t){return Rt(function(r,n){var i=null,o=0,a=!1,s=function(){return a&&!i&&n.c
38omplete()};r.subscribe(pt(n,function(u){i?.unsubscribe();var c=0,l=o++;ht(e(u,l)).subscribe(i=pt(n,function(p){return n.next(t?t(u,p,l,c++):p)},function(){i=null,s()}))},function(){a=!0,s()}))})}function PA(e,t){return Rt(function(r,n){var i=t??{},o=i.leading,a=o===void 0?!0:o,s=i.trailing,u=s===void 0?!1:s,c=!1,l=null,p=null,d=!1,f=function(){p?.unsubscribe(),p=null,u&&(g(),d&&n.complete())},h=function(){p=null,d&&n.complete()},m=function(E){return p=ht(e(E)).subscribe(pt(n,f,h))},g=function(){if(c){c=!1;var E=l;l=null,n.next(E),!d&&m(E)}};r.subscribe(pt(n,function(E){c=!0,l=E,!(p&&!p.closed)&&(a?g():m(E))},function(){d=!0,!(u&&c&&p&&!p.closed)&&n.complete()}))})}function OA(e,t,r){t===void 0&&(t=Jn);var n=Ep(e,t);return PA(function(){return n},r)}var IA=["input","select","textarea"],wp=function(e,t){var r,n=(r=window?.getComputedStyle)===null||r===void 0?void 0:r.call(window,e);return n?.getPropertyValue("cursor")==="pointer"&&t==="click"},xn=function(e,t,r){return r===void 0&&(r=!1),function(n,i){var o,a,s=e.pageUrlAllowlist,u=e.pageUrlExcludelist,c=e.shouldTrackEventResolver,l=(a=(o=i?.tagName)===null||o===void 0?void 0:o.toLowerCase)===null||a===void 0?void 0:a.call(o);if(!l)return!1;if(c)return c(n,i);if(!Ca(window.location.href,s)||u&&u.length>0&&Ca(window.location.href,u))return!1;var p=String(i?.getAttribute("type"))||"";if(typeof p=="string")switch(p.toLowerCase()){case"hidden":return!1;case"password":return!1}var d=wp(i,n);if(r&&d)return!0;if(t){var f=t.some(function(h){var m;return!!(!((m=i?.matches)===null||m===void 0)&&m.call(i,h))});if(!f)return!1}switch(l){case"input":case"select":case"textarea":return n==="change"||n==="click";default:return d?!0:n==="click"}}},RA=function(e){var t,r,n,i=(r=(t=e?.tagName)===null||t===void 0?void 0:t.toLowerCase)===null||r===void 0?void 0:r.call(t),o=e instanceof HTMLElement?((n=e.getAttribute("contenteditable"))===null||n===void 0?void 0:n.toLowerCase())==="true":!1;return!IA.includes(i)&&!o},CA=function(e){return e?e.split(",").map(function(t){return t.trim()}).filter(function(t){return t.length>0&&t!=="id"&&t!=="class"}):[]},xA=function(e,t){return Object.entries(e).reduce(function(r,n){var i=J(n,2),o=i[0],a=i[1];if(o.startsWith(t)){var s=o.replace(t,"");s&&(r[s]=a||"")}return r},{})},DA=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},al=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return DA(n)||(t[r]=n),t},{})},Hs=function(e,t){return e?t.some(function(r){var n;return(n=e?.matches)===null||n===void 0?void 0:n.call(e,r)})?e:Hs(e?.parentElement,t):null},LA=function(e){return new Promise(function(t,r){var n;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.addEventListener("load",function(){t({status:!0})},{once:!0}),i.addEventListener("error",function(){r({status:!1,message:"Failed to load the script ".concat(e)})}),(n=document.head)===null||n===void 0||n.appendChild(i)}catch(o){r(o)}})};function NA(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var Qn=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function MA(e){return e.type==="click"||e.type==="change"}var Tp="1.17.1",HA=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",ep,Cn]),UA=["type"],FA=["svg","path","g"],BA=["password","hidden"],VA=128;function jA(e,t){var r,n,i,o,a,s;if(e===null)return null;var u=String(e.tagName).toLowerCase(),c={tag:u},l=Array.from((o=(i=e.parentElement)===null||i===void 0?void 0:i.children)!==null&&o!==void 0?o:[]);l.length&&(c.index=l.indexOf(e),c.indexOfType=l.filter(function(P){return P.tagName===e.tagName}).indexOf(e));var p=(s=(a=e.previousElementSibling)===null||a===void 0?void 0:a.tagName)===null||s===void 0?void 0:s.toLowerCase();p&&(c.prevSib=String(p));var d=e.getAttribute("id");d&&(c.id=String(d));var f=Array.from(e.classList);f.length&&(c.classes=f);var h={},m=Array.from(e.attributes),g=m.filter(function(P){return!HA.has(P.name)}),E=!RA(e);if(!BA.includes(String(e.getAttribute("type")))&&!FA.includes(u))try{for(var w=he(g),T=w.next();!T.done;T=w.next()){var k=T.value;
38if(!(E&&!UA.includes(k.name))){if(t.has(k.name)){h[k.name]=gr;continue}h[k.name]=String(k.value).substring(0,VA)}}}catch(P){r={error:P}}finally{try{T&&!T.done&&(n=w.return)&&n.call(w)}finally{if(r)throw r.error}}return Object.keys(h).length&&(c.attrs=h),c}function $A(e){var t=[];if(!e)return t;t.push(e);for(var r=e.parentElement;r&&r.tagName!=="HTML";)t.push(r),r=r.parentElement;return t}var GA=function(e,t){try{if(e.sourceType==="DOM_ELEMENT"){var r=document.documentElement;return e.scope&&t&&(r=t.closest(e.scope)),r&&e.selector?r.querySelector(e.selector):r}}catch{return}},qA=function(e,t,r){e.forEach(function(n){if(typeof n!="string"&&n.actionType==="ATTACH_EVENT_PROPERTY"){var i=r.extractDataFromDataSource(n.dataSource,t.closestTrackedAncestor);t.targetElementProperties[n.destinationKey]=i}})},Us=(function(){function e(t,r){var n,i,o=this,a;this.replaceSensitiveString=function(d){return Ps(d,o.additionalMaskTextPatterns)},this.getHierarchy=function(d){var f,h,m,g,E=performance.now(),w=[];if(!d)return[];for(var T=$A(d),k=new Map,P=T.length-1;P>=0;P--){var C=T[P];if(C){var D=CA(C.getAttribute(ep)),F=P===T.length-1?[]:(m=k.get(T[P+1]))!==null&&m!==void 0?m:new Set,$=new Set(pe(pe([],J(F),!1),J(D),!1));k.set(C,$)}}w=T.map(function(Y){var ge;return jA(Y,(ge=k.get(Y))!==null&&ge!==void 0?ge:new Set)});var U=function(Y){Y?.attrs&&Object.entries(Y.attrs).forEach(function(ge){var xe=J(ge,2),qe=xe[0],ze=xe[1];Y.attrs&&(Y.attrs[qe]=o.replaceSensitiveString(ze))})};try{for(var N=he(w),re=N.next();!re.done;re=N.next()){var ae=re.value;U(ae)}}catch(Y){f={error:Y}}finally{try{re&&!re.done&&(h=N.return)&&h.call(N)}finally{if(f)throw f.error}}var ie=performance.now();return(g=o.diagnosticsClient)===null||g===void 0||g.recordHistogram("autocapturePlugin.getHierarchy",ie-E),w},this.getNearestLabel=function(d){var f=d.parentElement;if(!f)return"";var h;try{h=f.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{h=null}return h?o.getText(h):o.getNearestLabel(f)},this.getEventProperties=function(d,f,h){var m,g,E,w,T=(E=(g=f?.tagName)===null||g===void 0?void 0:g.toLowerCase)===null||E===void 0?void 0:E.call(g),k=typeof f.getBoundingClientRect=="function"?f.getBoundingClientRect():{left:null,top:null},P=o.getHierarchy(f),C=(w=P[0])===null||w===void 0?void 0:w.attrs,D=o.getNearestLabel(f),F=xA(C??{},h),$=(m={},m[uS]=P,m[Yc]=T,m[Qc]=o.getText(f),m[lS]=k.left==null?null:Math.round(k.left),m[dS]=k.top==null?null:Math.round(k.top),m[pS]=F,m[hS]=D,m[Zc]=Sn(window.location.href.split("?")[0]),m[vS]=Os(o.replaceSensitiveString),m[mS]=window.innerHeight,m[gS]=window.innerWidth,m);return $[aS]=f.getAttribute("id")||"",$[sS]=f.getAttribute("class"),$[fS]=C?.["aria-label"],T==="a"&&d==="click"&&f instanceof HTMLAnchorElement&&($[cS]=o.replaceSensitiveString(f.href)),al($)},this.addAdditionalEventProperties=function(d,f,h,m,g){g===void 0&&(g=!1);var E={event:d,timestamp:Date.now(),type:f};if(MA(E)&&E.event.target!==null){if(g){var w=wp(E.event.target,E.type);if(w)return E.closestTrackedAncestor=E.event.target,E.targetElementProperties=o.getEventProperties(E.type,E.closestTrackedAncestor,m),E}var T=Hs(E.event.target,h);return T&&(E.closestTrackedAncestor=T,E.targetElementProperties=o.getEventProperties(E.type,T,m)),E}return E},this.extractDataFromDataSource=function(d,f){if(d.sourceType==="DOM_ELEMENT"){var h=GA(d,f);return h?d.elementExtractType==="TEXT"?o.getText(h):d.elementExtractType==="ATTRIBUTE"&&d.attribute?h.getAttribute(d.attribute):void 0:void 0}},this.getText=function(d){var f=d.closest("[".concat(Cn,"]"))!==null;if(f)return gr;var h="";if(!d.querySelector("[".concat(Cn,"], [contenteditable]")))h=d.innerText||"";else{var m=d.cloneNode(!0);m.querySelectorAll("[".concat(Cn,"], [contenteditable]")).forEach(function(g){g.innerText=gr}),h=m.innerText||""}return o.replaceSensitiveString(h.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(d){var f,h,m;if(!d)return{};var g=(m=(h=d?.tagName)===null||h===void 0?void 0:h.toLowerCase)===null||m===void 0?void 0:m.call(h),E=(f={},f[Yc]=g,f[Qc]=o.getText(d),f[Zc]=window.location.href.split("?")[0],f);return al(E)},this.diagnosticsClient=r?.diagnosticsClient;var s=(a=t.maskTextRegex)!==null&&a!==void 0?a:[],u=[];try{for(var c=he(s),l=c.next();!l.done;l=c.next()){var p=l.value;if(u.length>=TS)break;if(p instanceof RegExp)u.push(p);else if("pattern"in p&&typeof p.pattern=="string")try{u.push(new RegExp(p.pattern,"i"))}catch{}}}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}this.additionalMaskTextPatterns=u}return e})(),zA=(function(){function e(t){var r=t===void 0?{}:t,n=r.origin,i=n===void 0?Ci:n,o=this;this.endpoint=Ci,this.requestCallbacks={},this.onSelect=function(a){o.notify({action:"element-selected",data:a})},this.onTrack=function(a,s){a==="selector-mode-changed"?o.notify({action:"track-selector-mode-changed",data:s}):a==="selector-moved"&&o.notify({action:"track-selector-moved",data:s})},this.endpoint=i}return e.prototype.notify=function(t){var r,n,i,o;(n=(r=this.logger)===null||r===void 0?void 0:r.debug)===null||n===void 0||n.call(r,"Message sent: ",JSON.stringify(t)),(o=(i=window.opener)===null||i===void 0?void 0:i.postMessage)===null||o===void 0||o.call(i,t,this.endpoint)},e.prototype.sendRequest=function(t,r,n){var i=this;n===void 0&&(n={timeout:15e3});var o=NA(),a={id:o,action:t,args:r},s=new Promise(function(u,c){i.requestCallbacks[o]={resolve:u,reject:c},i.notify(a),n?.timeout>0&&setTimeout(function(){c(new Error("".concat(t," timed out (id: ").concat(o,")"))),delete i.requestCallbacks[o]},n.timeout)});return s},e.prototype.handleResponse=function(t){var r;if(!this.requestCallbacks[t.id]){(r=this.logger)===null||r===void 0||r.warn("No callback found for request id: ".concat(t.id));return}this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]},e.prototype.setup=function(t){var r=this,n=t===void 0?{dataExtractor:new Us({})}:t,i=n.logger,o=n.endpoint,a=n.isElementSelectable,s=n.cssSelectorAllowlist,u=n.actionClickAllowlist,c=n.dataExtractor;
38this.logger=i,o&&this.endpoint===Ci&&(this.endpoint=o);var l=null;window.addEventListener("message",function(p){var d,f,h,m,g;if((f=(d=r.logger)===null||d===void 0?void 0:d.debug)===null||f===void 0||f.call(d,"Message received: ",JSON.stringify(p)),r.endpoint===p.origin){var E=p?.data,w=E?.action;if(w)if("id"in E)(m=(h=r.logger)===null||h===void 0?void 0:h.debug)===null||m===void 0||m.call(h,"Received Response to previous request: ",JSON.stringify(p)),r.handleResponse(E);else if(w==="ping")r.notify({action:"pong"});else if(w==="initialize-visual-tagging-selector"){var T=E?.data;LA(ES).then(function(){var k;l=(k=window?.amplitudeVisualTaggingSelector)===null||k===void 0?void 0:k.call(window,{getEventTagProps:c.getEventTagProps,isElementSelectable:function(P){return a?a(T?.actionType||"click",P):!0},onTrack:r.onTrack,onSelect:r.onSelect,visualHighlightClass:wS,messenger:r,cssSelectorAllowlist:s,actionClickAllowlist:u,extractDataFromDataSource:c.extractDataFromDataSource,dataExtractor:c,diagnostics:{autocapture:{version:Tp}}}),r.notify({action:"selector-loaded"})}).catch(function(){var k;(k=r.logger)===null||k===void 0||k.warn("Failed to initialize visual tagging selector")})}else w==="close-visual-tagging-selector"&&((g=l?.close)===null||g===void 0||g.call(l))}}),this.notify({action:"page-loaded"})},e})(),WA=5;function KA(e){var t=e.amplitude,r=e.allObservables,n=e.options,i=e.shouldTrackEvent,o=e.evaluateTriggers,a=r.clickObservable,s=a.pipe(AA(),ft(function(p){var d=J(p,2),f=d[0],h=d[1],m=f.event.target!==h.event.target,g=Math.abs(h.event.screenX-f.event.screenX)<=20&&Math.abs(h.event.screenY-f.event.screenY)<=20;return m&&!g})),u=a.pipe(EA(n.debounceTime),at(function(){return"timeout"})),c=Ns(s,u),l=a.pipe(SA(0),ft(Qn),ft(function(p){return i("click",p.closestTrackedAncestor)}),at(function(p){return o(p)}),_A(c));return l.subscribe(function(p){var d,f,h=(p.length>=WA,Na);try{for(var m=he(p),g=m.next();!g.done;g=m.next()){var E=g.value;t?.track(h,E.targetElementProperties)}}catch(w){d={error:w}}finally{try{g&&!g.done&&(f=m.return)&&f.call(m)}finally{if(d)throw d.error}}})}function XA(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackEvent,o=e.evaluateTriggers,a=r.changeObservable,s=a.pipe(ft(Qn),ft(function(u){return i("change",u.closestTrackedAncestor)}),at(function(u){return o(u)}));return s.subscribe(function(u){t?.track(oS,n("change",u.closestTrackedAncestor))})}function JA(e){var t=e.amplitude,r=e.allObservables,n=e.options,i=e.getEventProperties,o=e.shouldTrackEvent,a=e.shouldTrackActionClick,s=r.clickObservable,u=r.mutationObservable,c=r.navigateObservable,l=s.pipe(ft(function(h){return!o("click",h.closestTrackedAncestor)}),at(function(h){var m=Hs(h.event.target,n.actionClickAllowlist);return h.closestTrackedAncestor=m,h.closestTrackedAncestor!==null&&(h.targetElementProperties=i(h.type,h.closestTrackedAncestor)),h}),ft(Qn),ft(function(h){return a("click",h.closestTrackedAncestor)})),p=[u];c&&p.push(c);var d=Ns.apply(void 0,pe([],J(p),!1)),f=l.pipe(kA(function(h){return d.pipe(Ms(1),nA({first:500,with:function(){return Ds}}),at(function(){return h}))}));return f.subscribe(function(h){t?.track(Na,i("click",h.closestTrackedAncestor))})}var Sp=function(){return new et(function(e){var t=new MutationObserver(function(r){e.next(r)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},Ap=function(e){return e===void 0&&(e="click"),sn(document,e,{capture:!0})},YA=function(e,t){try{if(t.subprop_key==="[Amplitude] Element Text")return t.subprop_op==="is"&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if(t.subprop_key==="[Amplitude] Element Hierarchy")return t.subprop_op==="autotrack css match"&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(r){return console.error("Error matching event to filter",r),!1}return!1},Ha={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},sl=function(e){var t,r,n,i,o=Object.values(Ha).reduce(function(f,h){return f[h]=new Set,f},{});if(!e)return o;try{for(var a=he(e),s=a.next();!s.done;s=a.next()){var u=s.value;try{try{for(var c=(n=void 0,he(u.definition)),l=c.next();!l.done;l=c.next()){var p=l.value,d=Ha[p.event_type];d&&o[d].add(u.id)}}catch(f){n={error:f}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}catch(f){console.warn("Skipping Labeled Event due to malformed definition",u?.id,f)}}}catch(f){t={error:f}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},ul=function(e){var t,r,n,i,o=new Map;try{for(var a=he(e),s=a.next();!s.done;s=a.next()){var u=s.value;try{for(var c=(n=void 0,he(u.conditions)),l=c.next();!l.done;l=c.next()){var p=l.value;
38if(p.type==="LABELED_EVENT"){var d=p.match.eventId,f=o.get(d);f||(f=[],o.set(d,f)),f.push(u)}}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}}catch(h){t={error:h}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},QA=function(e,t){return t.filter(function(r){return r.definition.some(function(n){return Ha[n.event_type]===e.type&&n.filters.every(function(i){return YA(e,i)})})})},ZA=function(e,t){var r,n,i,o,a=new Set;try{for(var s=he(e),u=s.next();!u.done;u=s.next()){var c=u.value,l=t.get(c.id);if(l)try{for(var p=(i=void 0,he(l)),d=p.next();!d.done;d=p.next()){var f=d.value;a.add(f)}}catch(h){i={error:h}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}}catch(h){r={error:h}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return Array.from(a)},ek=(function(){function e(t,r,n,i){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=r,this.dataExtractor=n,this.options=i}return e.prototype.evaluate=function(t){var r,n,i=this.options.pageActions;if(!i)return t;var o=QA(t,Array.from(this.groupedLabeledEvents[t.type]).map(function(l){return i.labeledEvents[l]})),a=ZA(o,this.labeledEventToTriggerMap);try{for(var s=he(a),u=s.next();!u.done;u=s.next()){var c=u.value;qA(c.actions,t,this.dataExtractor)}}catch(l){r={error:l}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return t},e.prototype.update=function(t,r,n){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=r,this.options=n},e})(),tk=function(e,t,r,n){return new ek(e,t,r,n)},Xt;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"})(Xt||(Xt={}));var rk=function(e,t){var r,n,i,o,a,s,u,c;e===void 0&&(e={}),t?.diagnosticsClient.setTag("plugin.autocapture.version",Tp);var l=e.dataAttributePrefix,p=l===void 0?As:l,d=e.visualTaggingOptions,f=d===void 0?{enabled:!0,messenger:new zA}:d;e.cssSelectorAllowlist=(r=e.cssSelectorAllowlist)!==null&&r!==void 0?r:Uf,e.actionClickAllowlist=(n=e.actionClickAllowlist)!==null&&n!==void 0?n:Ff,e.debounceTime=(i=e.debounceTime)!==null&&i!==void 0?i:0,e.pageUrlExcludelist=(o=e.pageUrlExcludelist)===null||o===void 0?void 0:o.reduce(function(U,N){if(typeof N=="string"&&U.push(N),N instanceof RegExp&&U.push(N),typeof N=="object"&&N!==null&&"pattern"in N)try{U.push(new RegExp(N.pattern))}catch(re){return console.warn("Invalid regex pattern: ".concat(N.pattern),re),U}return U},[]);var h=rS,m="enrichment",g=[],E=new Us(e,t),w=function(){var U,N=Ap().pipe(at(function(Y){return E.addAdditionalEventProperties(Y,"click",e.cssSelectorAllowlist,p)}),Or()),re=sn(document,"change",{capture:!0}).pipe(at(function(Y){return E.addAdditionalEventProperties(Y,"change",e.cssSelectorAllowlist,p)}),Or()),ae;window.navigation&&(ae=sn(window.navigation,"navigate").pipe(at(function(Y){return E.addAdditionalEventProperties(Y,"navigate",e.cssSelectorAllowlist,p)}),Or()));var ie=Sp().pipe(at(function(Y){return E.addAdditionalEventProperties(Y,"mutation",e.cssSelectorAllowlist,p)}),Or());return U={},U[Xt.ClickObservable]=N,U[Xt.ChangeObservable]=re,U[Xt.NavigateObservable]=ae,U[Xt.MutationObservable]=ie,U},T=sl(Object.values((s=(a=e.pageActions)===null||a===void 0?void 0:a.labeledEvents)!==null&&s!==void 0?s:{})),k=ul((c=(u=e.pageActions)===null||u===void 0?void 0:u.triggers)!==null&&c!==void 0?c:[]),P=tk(T,k,E,e),C=function(U){var N,re;U&&(e.pageActions=q(q({},e.pageActions),U),T=sl(Object.values((N=e.pageActions.labeledEvents)!==null&&N!==void 0?N:{})),k=ul((re=e.pageActions.triggers)!==null&&re!==void 0?re:[]),P.update(T,k,e))},D=function(U,N){return M(void 0,void 0,void 0,function(){var re,ae,ie,Y,ge,xe,qe,ze,We,tt;return L(this,function(Ke){return typeof document>"u"?[2]:(U.fetchRemoteConfig&&(U.remoteConfigClient?U.remoteConfigClient.subscribe("analyticsSDK.pageActions","all",function(ke){C(ke)}):U.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),re=xn(e,e.cssSelectorAllowlist),ae=xn(e,e.actionClickAllowlist),ie=w(),Y=KA({allObservables:ie,options:e,amplitude:N,shouldTrackEvent:re,evaluateTriggers:P.evaluate.bind(P)}),g.push(Y),ge=XA({allObservables:ie,getEventProperties:function(){for(var ke=[],Se=0;Se<arguments.length;Se++)ke[Se]=arguments[Se];return E.getEventProperties.apply(E,pe(pe([],J(ke),!1),[p],!1))},amplitude:N,shouldTrackEvent:re,evaluateTriggers:P.evaluate.bind(P)}),g.push(ge),xe=JA({allObservables:ie,options:e,getEventProperties:function(){for(var ke=[],Se=0;Se<arguments.length;Se++)ke[Se]=arguments[Se];return E.getEventProperties.apply(E,pe(pe([],J(ke),!1),[p],!1))},amplitude:N,shouldTrackEvent:re,shouldTrackActionClick:ae}),g.push(xe),(We=U?.loggerProvider)===null||We===void 0||We.log("".concat(h," has been successfully added.")),window.opener&&f.enabled&&(qe=e.cssSelectorAllowlist,ze=e.actionClickAllowlist,(tt=f.messenger)===null||tt===void 0||tt.setup(q(q({dataExtractor:E,logger:U?.loggerProvider},U?.serverZone&&{endpoint:_S[U.serverZone]}),{isElementSelectable:xn(e,pe(pe([],J(qe),!1),J(ze),!1)),cssSelectorAllowlist:qe,actionClickAllowlist:ze}))),[2])})})},F=function(U){return M(void 0,void 0,void 0,function(){return L(this,function(N){return[2,U]})})},$=function(){return M(void 0,void 0,void 0,function(){var U,N,re,ae,ie;return L(this,function(Y){try{for(U=he(g),N=U.next();!N.done;N=U.next())re=N.value,re.unsubscribe()}catch(ge){ae={error:ge}}finally{try{N&&!N.done&&(ie=U.return)&&ie.call(U)}finally{if(ae)throw ae.error}}return[2]})})};return{name:h,type:m,setup:D,execute:F,teardown:$}},cl=3e3;function nk(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackDeadClick,o=r.clickObservable,a=r.mutationObservable,s=r.navigateObservable,u=o.pipe(ft(Qn),ft(function(d){return i("click",d.closestTrackedAncestor)}),ft(function(d){var f=d.event.target;return f.closest('a[target="_blank"]')===null})),c=[a];s&&c.push(s);var l=Ns.apply(void 0,pe([],J(c),!1)),p=u.pipe(Yn(function(d){var f,h=new et(function(m){return f=setTimeout(function(){return m.next(d)},cl),function(){clearTimeout(f)}});return yA(h,l.pipe(Ms(1),at(function(){return null}))).pipe(ft(function(m){return m!==null}))}),OA(cl));return p.subscribe(function(d){var f={"[Amplitude] X":d.event.clientX,"[Amplitude] Y":d.event.clientY};t.track(iS,q(q({},n("click",d.closestTrackedAncestor)),f),{time:d.timestamp})})}var Ua=eT,kp=Zw,ll=tT;function dl(e,t){var r,n,i,o,a=t.event,s=a.clientX,u=a.clientY;e.yMin=Math.min((r=e.yMin)!==null&&r!==void 0?r:u,u),e.yMax=Math.max((n=e.yMax)!==null&&n!==void 0?n:u,u),e.xMin=Math.min((i=e.xMin)!==null&&i!==void 0?i:s,s),e.xMax=Math.max((o=e.xMax)!==null&&o!==void 0?o:s,s),e.isOutOfBounds=e.yMax-e.yMin>ll||e.xMax-e.xMin>ll}function fl(e){var t=e[0],r=e[e.length-1],n=q({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(r.timestamp).toISOString(),"[Amplitude] Duration":r.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(i){return{X:i.event.clientX,Y:i.event.clientY,Time:i.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties);return{rageClickEvent:n,time:t.timestamp}}function ik(e,t){var r=Math.max(0,e.length-Ua+1),n=e[r];return t.timestamp-n.timestamp>=kp}function ok(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}function ak(e){var t=e.amplitude,r=e.allObservables,n=e.shouldTrackRageClick,i=r.clickObservable,o=[],a={},s;function u(c){o=[],a={},c&&(dl(a,c),o.push(c))}return i.pipe(ft(Qn),ft(function(c){return n("click",c.closestTrackedAncestor)}),at(function(c){if(s&&clearTimeout(s),dl(a,c),o.length===0)return o.push(c),null;if(ok(o,c)||ik(o,c)||a.isOutOfBounds){var l=o.length>=Ua?fl(o):null;return u(c),l}return o.push(c),o.length>=Ua&&(s=setTimeout(function(){var p=fl(o),d=p.rageClickEvent,f=p.time;t.track(Jc,d,{time:f}),u()},kp)),null}),ft(function(c){return c!==null})).subscribe(function(c){c!==null&&t.track(Jc,c.rageClickEvent,{time:c.time})})}var sk=function(e){var t,r,n,i,o;e===void 0&&(e={});var a=nS,s="enrichment",u=[],c=(r=(t=e.rageClicks)===null||t===void 0?void 0:t.cssSelectorAllowlist)!==null&&r!==void 0?r:Qw,l=(i=(n=e.deadClicks)===null||n===void 0?void 0:n.cssSelectorAllowlist)!==null&&i!==void 0?i:Yw,p=(o=e.dataAttributePrefix)!==null&&o!==void 0?o:As,d=new Us(e),f=pe([],J(new Set(pe(pe([],J(c),!1),J(l),!1))),!1),h=function(){var w,T=Ap("pointerdown").pipe(at(function(C){return d.addAdditionalEventProperties(C,"click",f,p,!0)}),Or()),k;window.navigation&&(k=sn(window.navigation,"navigate").pipe(at(function(C){return d.addAdditionalEventProperties(C,"navigate",f,p)}),Or()));var P=Sp().pipe(at(function(C){return d.addAdditionalEventProperties(C,"mutation",f,p)}),Or());return w={},w[Xt.ClickObservable]=T,w[Xt.ChangeObservable]=new et,w[Xt.NavigateObservable]=k,w[Xt.MutationObservable]=P,w},m=function(w,T){return M(void 0,void 0,void 0,function(){var k,P,C,D,F,$;return L(this,function(U){return typeof document>"u"?[2]:(k=xn(e,c),P=xn(e,l),C=h(),D=ak({allObservables:C,amplitude:T,shouldTrackRageClick:k}),u.push(D),F=nk({amplitude:T,allObservables:C,getEventProperties:function(N,re){return d.getEventProperties(N,re,p)},shouldTrackDeadClick:P}),u.push(F),($=w?.loggerProvider)===null||$===void 0||$.log("".concat(a," has been successfully added.")),[2])})})},g=function(w){return M(void 0,void 0,void 0,function(){return L(this,function(T){return[2,w]})})},E=function(){return M(void 0,void 0,void 0,function(){var w,T,k,P,C;return L(this,function(D){try{for(w=he(u),T=w.next();!T.done;T=w.next())k=T.value,k.unsubscribe()}catch(F){P={error:F}}finally{try{T&&!T.done&&(C=w.return)&&C.call(w)}finally{if(P)throw P.error}}return[2]})})};return{name:a,type:s,setup:m,execute:g,teardown:E}},uk="@amplitude/plugin-network-capture-browser",Pp="[Amplitude] Network Request",Op="500-599";function Di(e,t){var r=t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&"),n="^"+r.replace(/\*/g,".*")+"$",i=new RegExp(n);return i.test(e)}function Ip(e,t){var r,n,i=t.split(",");try{for(var o=he(i),a=o.next();!a.done;a=o.next()){var s=a.value,u=J(s.split("-").map(Number),2),c=u[0],l=u[1];if(e===c&&l===void 0||e>=c&&e<=l)return!0}}catch(p){r={error:p}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function ck(e,t,r,n,i){if(!(e.hosts&&!e.hosts.find(function(a){return Di(t,a)}))&&!(n&&e.urls&&!Ca(n,e.urls))&&!(i&&e.methods&&!e.methods.find(function(a){return i.toLowerCase()===a.toLowerCase()||a==="*"}))){if(r||r===0){var o=e.statusCodeRange||Op;if(!Ip(r,o))return!1}return!0}}function Rp(e){var t;if(e)try{var r=(t=$e())===null||t===void 0?void 0:t.location.href,n=new URL(e,r),i=n.searchParams.toString(),o=n.hash.replace("#",""),a=n.href,s=n.host;n.hash="",n.search="";var u=n.href;return{query:i,fragment:o,href:a,hrefWithoutQueryOrHash:u,host:s}}catch{return}}function lk(e,t){if(e.includes("amplitude.com"))try{var r=t.body;if(typeof r!="string")return!1;var n=JSON.parse(r),i=n.events;if(i.find(function(o){return o.event_type===Pp}))return!0}catch{}return!1}function pl(e){if(typeof e!="object"||e===null){if(e)return pe([],J(zi),!1);if(e===void 0){var t=void 0;return t}return}if(e.length!==0)return e}function hl(e){var t,r;return!(!((t=e?.allowlist)===null||t===void 0)&&t.length)&&!(!((r=e?.blocklist)===null||r===void 0)&&r.length)}function dk(e,t){var r;t===void 0&&(t={});var n=Rp(e.url);if(!n)return!1;var i=n.host;if(t.ignoreAmplitudeRequests!==!1&&(Di(i,"*.amplitude.com")||Di(i,"amplitude.com"))||!((r=t.ignoreHosts)===null||r===void 0)&&r.find(function(a){return Di(i,a)})||!t.captureRules&&e.status!==void 0&&!Ip(e.status,Op))return!1;if(t.captureRules){var o;
38if(pe([],J(t.captureRules),!1).reverse().find(function(a){if(o=ck(a,i,e.status,e.url,e.method),o){var s=pl(a.responseHeaders);if(e.responseWrapper&&s){var u=e.responseWrapper.headers(s);u&&(e.responseHeaders=u)}var c=pl(a.requestHeaders);if(e.requestWrapper&&c){var l=e.requestWrapper.headers(c);l&&(e.requestHeaders=l)}e.responseWrapper&&a.responseBody&&!hl(a.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(a.responseBody.allowlist,a.responseBody.blocklist)),e.requestWrapper&&a.requestBody&&!hl(a.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(a.requestBody.allowlist,a.requestBody.blocklist))}return o!==void 0}),!o)return!1}return!(e.requestWrapper&&lk(i,e.requestWrapper))}function fk(e,t,r,n){return M(this,void 0,void 0,function(){var i,o,a;return L(this,function(s){switch(s.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:if(i=J.apply(void 0,[s.sent(),2]),o=i[0],a=i[1],o)try{e["[Amplitude] Request Body"]=JSON.stringify(o)}catch(u){n?.debug("Failed to stringify request body",u)}if(a)try{e["[Amplitude] Response Body"]=JSON.stringify(a)}catch{n?.debug("Failed to stringify response body")}s.label=2;case 2:return r?.track(Pp,e),[2]}})})}function pk(e){var t=e.allObservables,r=e.networkTrackingOptions,n=e.amplitude,i=e.loggerProvider,o=t.networkObservable,a=o.pipe(ft(function(s){return dk(s.event,r)}));return a.subscribe(function(s){var u,c,l,p=s.event,d=Rp(p.url);if(d){var f=(c=p.responseWrapper)===null||c===void 0?void 0:c.bodySize,h=(l=p.requestWrapper)===null||l===void 0?void 0:l.bodySize,m=(u={},u["[Amplitude] URL"]=d.hrefWithoutQueryOrHash,u["[Amplitude] URL Query"]=d.query,u["[Amplitude] URL Fragment"]=d.fragment,u["[Amplitude] Request Method"]=p.method,u["[Amplitude] Status Code"]=p.status,u["[Amplitude] Start Time"]=p.startTime,u["[Amplitude] Completion Time"]=p.endTime,u["[Amplitude] Duration"]=p.duration,u["[Amplitude] Request Body Size"]=h,u["[Amplitude] Response Body Size"]=f,u["[Amplitude] Request Type"]=p.type,u["[Amplitude] Request Headers"]=p.requestHeaders,u["[Amplitude] Response Headers"]=p.responseHeaders,u);fk(m,p,n,i)}})}var Fa;(function(e){e.NetworkObservable="networkObservable"})(Fa||(Fa={}));var hk=function(e){e===void 0&&(e={});var t=uk,r="enrichment",n,i=[],o=function(l,p){var d={event:l,timestamp:Date.now(),type:p};return d},a=function(){var l,p=new et(function(d){var f=new lT(function(h){var m=o(h,"network");d.next(m)});return jc.subscribe(f,n),function(){jc.unsubscribe(f)}});return l={},l[Fa.NetworkObservable]=p,l},s=function(l,p){return M(void 0,void 0,void 0,function(){var d,f;return L(this,function(h){return typeof document>"u"?[2]:(d=a(),n=l?.loggerProvider,f=pk({allObservables:d,networkTrackingOptions:e,amplitude:p,loggerProvider:n}),i.push(f),n?.log("".concat(t," has been successfully added.")),[2])})})},u=function(l){return M(void 0,void 0,void 0,function(){return L(this,function(p){return[2,l]})})},c=function(){return M(void 0,void 0,void 0,function(){var l,p,d,f,h;return L(this,function(m){try{for(l=he(i),p=l.next();!p.done;p=l.next())d=p.value,d.unsubscribe()}catch(g){f={error:g}}finally{try{p&&!p.done&&(h=l.return)&&h.call(l)}finally{if(f)throw f.error}}return[2]})})};return{name:t,type:r,setup:s,execute:u,teardown:c}},vk="web-vitals-browser",mk="[Amplitude] Web Vitals";let Cp=-1;const fn=e=>{addEventListener("pageshow",(t=>{t.persisted&&(Cp=t.timeStamp,e(t))}),!0)},Yt=(e,t,r,n)=>{let i,o;return a=>{t.value>=0&&(a||n)&&(o=t.value-(i??0),(o||i===void 0)&&(i=t.value,t.delta=o,t.rating=((s,u)=>s>u[1]?"poor":s>u[0]?"needs-improvement":"good")(t.value,r),e(t)))}},Fs=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},Bs=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Zn=()=>Bs()?.activationStart??0,Qt=(e,t=-1)=>{const r=Bs();let n="navigate";return Cp>=0?n="back-forward-cache":r&&(document.prerendering||Zn()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},Wo=new WeakMap;function Vs(e,t){return Wo.get(e)||Wo.set(e,new t),Wo.get(e)}class gk{t;i=0;o=[];h(t){if(t.hadRecentInput)return;const r=this.o[0],n=this.o.at(-1);this.i&&r&&n&&t.startTime-n.startTime<1e3&&t.startTime-r.startTime<5e3?(this.i+=t.value,this.o.push(t)):(this.i=t.value,this.o=[t]),this.t?.(t)}}const ei=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((i=>{Promise.resolve().then((()=>{t(i.getEntries())}))}));return n.observe({type:e,buffered:!0,...r}),n}}catch{}},js=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Xr=-1;const xp=new Set,vl=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Ba=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const t of xp)t();isFinite(Xr)||(Xr=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Ba,!0))}},fo=()=>
38{if(Xr<0){const e=Zn();Xr=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((r=>r.name==="hidden"&&r.startTime>e))[0]?.startTime)??vl(),addEventListener("visibilitychange",Ba,!0),addEventListener("prerenderingchange",Ba,!0),fn((()=>{setTimeout((()=>{Xr=vl()}))}))}return{get firstHiddenTime(){return Xr},onHidden(e){xp.add(e)}}},po=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},ml=[1800,3e3],Dp=(e,t={})=>{po((()=>{const r=fo();let n,i=Qt("FCP");const o=ei("paint",(a=>{for(const s of a)s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<r.firstHiddenTime&&(i.value=Math.max(s.startTime-Zn(),0),i.entries.push(s),n(!0)))}));o&&(n=Yt(e,i,ml,t.reportAllChanges),fn((a=>{i=Qt("FCP"),n=Yt(e,i,ml,t.reportAllChanges),Fs((()=>{i.value=performance.now()-a.timeStamp,n(!0)}))})))}))},gl=[.1,.25],yk=(e,t={})=>{const r=fo();Dp(js((()=>{let n,i=Qt("CLS",0);const o=Vs(t,gk),a=u=>{for(const c of u)o.h(c);o.i>i.value&&(i.value=o.i,i.entries=o.o,n())},s=ei("layout-shift",a);s&&(n=Yt(e,i,gl,t.reportAllChanges),r.onHidden((()=>{a(s.takeRecords()),n(!0)})),fn((()=>{o.i=0,i=Qt("CLS",0),n=Yt(e,i,gl,t.reportAllChanges),Fs((()=>n()))})),setTimeout(n))})))};let Lp=0,Ko=1/0,_i=0;const bk=e=>{for(const t of e)t.interactionId&&(Ko=Math.min(Ko,t.interactionId),_i=Math.max(_i,t.interactionId),Lp=_i?(_i-Ko)/7+1:0)};let Va;const yl=()=>Va?Lp:performance.interactionCount??0,_k=()=>{"interactionCount"in performance||Va||(Va=ei("event",bk,{type:"event",buffered:!0,durationThreshold:0}))};let bl=0;class Ek{u=[];l=new Map;m;p;v(){bl=yl(),this.u.length=0,this.l.clear()}L(){const t=Math.min(this.u.length-1,Math.floor((yl()-bl)/50));return this.u[t]}h(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;const r=this.u.at(-1);let n=this.l.get(t.interactionId);if(n||this.u.length<10||t.duration>r.P){if(n?t.duration>n.P?(n.entries=[t],n.P=t.duration):t.duration===n.P&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],P:t.duration},this.l.set(n.id,n),this.u.push(n)),this.u.sort(((i,o)=>o.P-i.P)),this.u.length>10){const i=this.u.splice(10);for(const o of i)this.l.delete(o.id)}this.p?.(n)}}}const Np=e=>{const t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=js(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),t((()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})})))},_l=[200,500],wk=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=fo();po((()=>{_k();let n,i=Qt("INP");const o=Vs(t,Ek),a=u=>{Np((()=>{for(const l of u)o.h(l);const c=o.L();c&&c.P!==i.value&&(i.value=c.P,i.entries=c.entries,n())}))},s=ei("event",a,{durationThreshold:t.durationThreshold??40});n=Yt(e,i,_l,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{a(s.takeRecords()),n(!0)})),fn((()=>{o.v(),i=Qt("INP"),n=Yt(e,i,_l,t.reportAllChanges)})))}))};class Tk{m;h(t){this.m?.(t)}}const El=[2500,4e3],Sk=(e,t={})=>{po((()=>{const r=fo();let n,i=Qt("LCP");const o=Vs(t,Tk),a=u=>{t.reportAllChanges||(u=u.slice(-1));for(const c of u)o.h(c),c.startTime<r.firstHiddenTime&&(i.value=Math.max(c.startTime-Zn(),0),i.entries=[c],n())},s=ei("largest-contentful-paint",a);if(s){n=Yt(e,i,El,t.reportAllChanges);const u=js((()=>{a(s.takeRecords()),s.disconnect(),n(!0)})),c=l=>{l.isTrusted&&(Np(u),removeEventListener(l.type,c,{capture:!0}))};for(const l of["keydown","click","visibilitychange"])addEventListener(l,c,{capture:!0});fn((l=>{i=Qt("LCP"),n=Yt(e,i,El,t.reportAllChanges),Fs((()=>{i.value=performance.now()-l.timeStamp,n(!0)}))}))}}))},wl=[800,1800],ja=e=>{document.prerendering?po((()=>ja(e))):document.readyState!=="complete"?addEventListener("load",(()=>ja(e)),!0):setTimeout(e)},Ak=(e,t={})=>{let r=Qt("TTFB"),n=Yt(e,r,wl,t.reportAllChanges);ja((()=>{const i=Bs();i&&(r.value=Math.max(i.responseStart-Zn(),0),r.entries=[i],n(!0),fn((()=>{r=Qt("TTFB",0),n=Yt(e,r,wl,t.reportAllChanges),n(!0)})))}))};function kk(e){var t,r=((t=e.entries[0])===null||t===void 0?void 0:t.startTime)||0;return performance.timeOrigin+r}function En(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(kk(e)),navigationStart:Math.floor(performance.timeOrigin)}}var Pk=function(){var e=null,t=$e(),r=t?.document,n=t?.location,i=function(s,u){return M(void 0,void 0,void 0,function(){var c,l,p;return L(this,function(d){return c=function(f){var h;if(!f)return"";var m=f;try{m=decodeURI(f)}catch(g){(h=s.loggerProvider)===null||h===void 0||h.error("Malformed URI sequence: ",g)}return m},r===void 0?[2]:(l=c(n?.href),p={"[Amplitude] Page Domain":n?.hostname||"","[Amplitude] Page Location":l,"[Amplitude] Page Path":c(n?.pathname),"[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":l.split("?")[0]},Sk(function(f){p["[Amplitude] LCP"]=En(f)}),Dp(function(f){p["[Amplitude] FCP"]=En(f)}),wk(function(f){p["[Amplitude] INP"]=En(f)}),yk(function(f){p["[Amplitude] CLS"]=En(f)}),Ak(function(f){p["[Amplitude] TTFB"]=En(f)}),e=function(){r.visibilityState==="hidden"&&e&&(u.track(mk,p),r.removeEventListener("visibilitychange",e),e=null)},r.addEventListener("visibilitychange",e),[2])})})},o=function(s){return M(void 0,void 0,void 0,function(){return L(this,function(u){return[2,s]})})},a=function(){return M(void 0,void 0,void 0,function(){return L(this,function(s){return e&&r?.removeEventListener("visibilitychange",e),[2]})})};return{name:vk,type:"enrichment",setup:i,execute:o,teardown:a}},Tl=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},Ok=function(e){return Object.values(e).every(function(t){return!t})},Ik=function(e,t,r,n,i){i===void 0&&(i=!0),e.referrer;var o=e.referring_domain,a=qi(e,["referrer","referring_domain"]),s=t||{};s.referrer;var u=s.referring_domain,c=qi(s,["referrer","referring_domain"]);if(Rk(r.excludeReferrers,e.referring_domain))return n.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Ok(e)&&t)return n.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var l=JSON.stringify(a)!==JSON.stringify(c),p=Tl(o||"")!==Tl(u||""),d=!t||l||p;return d?n.debug("This is a new campaign. An $identify event will be sent."):n.debug("This is not a new campaign because it's the same as the previous one."),d},Rk=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=""),e.some(function(r){return r instanceof RegExp?r.test(t):r===t})},Ck=function(e,t){var r=q(q({},co),e),n=Object.entries(r).reduce(function(i,o){var a,s=J(o,2),u=s[0],c=s[1];return i.setOnce("initial_".concat(u),(a=c??t.initialEmptyValue)!==null&&a!==void 0?a:"EMPTY"),c?i.set(u,c):i.unset(u)},new an);return Of(n)},xk=function(e){var t=e;
38return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},Dk=(function(){function e(t,r){var n;this.shouldTrackNewCampaign=!1,this.options=q({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:xk((n=r.cookieOptions)===null||n===void 0?void 0:n.domain)},t),this.storage=r.cookieStorage,this.storageKey=Mc(r.apiKey,"MKTG"),this.webExpStorageKey=Mc(r.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=co,this.sessionTimeout=r.sessionTimeout,this.lastEventTime=r.lastEventTime,this.logger=r.loggerProvider,r.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return M(this,void 0,void 0,function(){var t,r;return L(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:return r=J.apply(void 0,[n.sent(),2]),this.currentCampaign=r[0],this.previousCampaign=r[1],t=this.lastEventTime?Nf(this.sessionTimeout,this.lastEventTime):!0,Ik(this.currentCampaign,this.previousCampaign,this.options,this.logger,t)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return M(this,void 0,void 0,function(){var t;return L(this,function(r){switch(r.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return t=r.sent(),t?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,Promise.all([t||new Gf().parse(),this.storage.get(this.storageKey)])];case 4:return[2,r.sent()]}})})},e.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var r=Ck(this.currentCampaign,this.options);return t&&(r.event_id=t),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e})(),Ei="AMP_CURRENT_PAGE",wi="AMP_PREVIOUS_PAGE",$r="AMP_URL_INFO",Dn;(function(e){e.Direct="direct",e.Internal="internal",e.External="external"})(Dn||(Dn={}));var Lk=new Set([Nt.IDENTIFY,Nt.GROUP_IDENTIFY,Nt.REVENUE]),Nk=function(){var e=$e(),t=void 0,r=!1,n=void 0,i=!1,o=!1,a=function(p){var d;try{var f=Sn(p,n);d=new URL(f).hostname}catch(h){n?.error("Could not parse URL: ",h)}return d},s=function(p){var d=typeof location<"u"&&location.hostname||"",f=p?a(p):void 0;switch(f){case void 0:return Dn.Direct;case d:return Dn.Internal;default:return Dn.External}},u=function(){return M(void 0,void 0,void 0,function(){var p,d,f,h,m;return L(this,function(g){switch(g.label){case 0:return t&&r?[4,t.get($r)]:[3,3];case 1:return p=g.sent(),d=Sn(typeof location<"u"&&location.href||""),f=p?.[Ei]||"",h=void 0,d===f?h=p?.[wi]||"":f?h=f:h=document.referrer||"",[4,t.set($r,(m={},m[Ei]=d,m[wi]=h,m))];case 2:g.sent(),g.label=3;case 3:return[2]}})})},c=function(){u()},l={name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(p,d){return M(void 0,void 0,void 0,function(){return L(this,function(f){switch(f.label){case 0:return n=p.loggerProvider,n.log("Installing @amplitude/plugin-page-url-enrichment-browser"),o=!0,e?(t=new Ts(e.sessionStorage),[4,t.isEnabled()]):[3,2];case 1:r=f.sent(),e.addEventListener("popstate",c),i||(e.history.pushState=new Proxy(e.history.pushState,{apply:function(h,m,g){var E=J(g,3),w=E[0],T=E[1],k=E[2];h.apply(m,[w,T,k]),o&&c()}}),e.history.replaceState=new Proxy(e.history.replaceState,{apply:function(h,m,g){var E=J(g,3),w=E[0],T=E[1],k=E[2];h.apply(m,[w,T,k]),o&&c()}}),i=!0),f.label=2;case 2:return[2]}})})},execute:function(p){return M(void 0,void 0,void 0,function(){var d,f,h,m,g;return L(this,function(E){switch(E.label){case 0:return d=Sn(typeof location<"u"&&location.href||""),t&&r?[4,t.get($r)]:[3,5];case 1:return f=E.sent(),f?.[Ei]?[3,3]:[4,t.set($r,(g={},g[Ei]=d,g[wi]=document.referrer||"",g))];case 2:E.sent(),E.label=3;case 3:return[4,t.get($r)];case 4:if(h=E.sent(),m="",h&&(m=h[wi]||""),Lk.has(p.event_type))return[2,p];p.event_properties=q(q({},p.event_properties||{}),{"[Amplitude] Page Domain":wn(p,"[Amplitude] Page Domain",typeof location<"u"&&location.hostname||""),"[Amplitude] Page Location":wn(p,"[Amplitude] Page Location",d),"[Amplitude] Page Path":wn(p,"[Amplitude] Page Path",typeof location<"u"&&Sn(location.pathname)||""),"[Amplitude] Page Title":wn(p,"[Amplitude] Page Title",Os(Ps)),"[Amplitude] Page URL":wn(p,"[Amplitude] Page URL",d.split("?")[0]),"[Amplitude] Previous Page Location":m,"[Amplitude] Previous Page Type":s(m)}),E.label=5;case 5:return[2,p]}})})},teardown:function(){return M(void 0,void 0,void 0,function(){return L(this,function(p){switch(p.label){case 0:return e&&(e.removeEventListener("popstate",c),o=!1),t&&r?[4,t.set($r,{})]:[3,2];case 1:p.sent(),p.label=2;case 2:return[2]}})})}};return l};function wn(e,t,r){return e.event_properties||(e.event_properties={}),e.event_properties[t]===void 0?r:e.event_properties[t]}var Mp=(function(e){yt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._diagnosticsSampleRate=0,r}return t.prototype.init=function(r,n,i){r===void 0&&(r="");var o,a;return arguments.length>2?(o=n,a=i):typeof n=="string"?(o=n,a=void 0):(o=n?.userId,a=n),bt(this._init(q(q({},a),{userId:o,apiKey:r})))},t.prototype._init=function(r){var n,i,o,a,s;return M(this,void 0,void 0,function(){var u,c,l,p,d,f,h,m,g,E=this;return L(this,function(w){switch(w.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,jT(r.apiKey,r,this)]);case 1:return u=w.sent(),!((n=u.remoteConfig)===null||n===void 0)&&n.fetchRemoteConfig?(c=new Xw(u.apiKey,u.loggerProvider,u.serverZone,(i=u.remoteConfig)===null||i===void 0?void 0:i.serverUrl),[4,new Promise(function(T){c?.subscribe("configs.analyticsSDK.browserSDK","all",function(k,P,C){u.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:k,source:P,lastFetch:C},null,2)),k&&tS(k,u),T()})})]):[3,3];case 2:w.sent(),w.label=3;case 3:return l=new jw(u.apiKey,u.loggerProvider,u.serverZone,{enabled:u.enableDiagnostics,sampleRate:u.diagnosticsSampleRate||this._diagnosticsSampleRate}),l.setTag("library","".concat(Jf,"/").concat(Is)),[4,e.prototype._init.call(this,u)];case 4:return w.sent(),this.logBrowserOptions(u),this.config.diagnosticsClient=l,this.config.remoteConfigClient=c,qf(this.config.defaultTracking)?(p=TT(this.config),this.webAttribution=new Dk(p,this.config),[4,this.webAttribution.init()]):[3,6];case 5:w.sent(),w.label=6;case 6:return d=Wi(),f=d.ampTimestamp?Number(d.ampTimestamp):void 0,h=f?Date.now()<f:!0,this.config.identify&&this.identify(this.config.identify),m=h&&!Number.isNaN(Number(d.ampSessionId))?Number(d.ampSessionId):void 0,this.setSessionId((s=(a=(o=r.sessionId)!==null&&o!==void 0?o:m)!==null&&a!==void 0?a:this.config.sessionId)!==null&&s!==void 0?s:Date.now()),g=Bn(r.instanceName),g.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===Hf?[3,8]:[4,this.add(eS()).promise];case 7:w.sent(),w.label=8;case 8:return[4,this.add(new _w({diagnosticsClient:l})).promise];case 9:return w.sent(),[4,this.add(new PT).promise];case 10:return w.sent(),[4,this.add(new Rw).promise];case 11:return w.sent(),ZT(this.config),vT(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(QT()).promise]):[3,13];case 12:w.sent(),w.label=13;case 13:return mT(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(YT()).promise]):[3,15];case 14:w.sent(),w.label=15;case 15:return zf(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(WT(wT(this.config))).promise]):[3,17];case 16:w.sent(),w.label=17;case 17:return Kf(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rk(bT(this.config),{diagnosticsClient:l})).promise]):[3,19];case 18:w.sent(),w.label=19;case 19:return Xf(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(sk(_T(this.config))).promise]):[3,21];case 20:w.sent(),w.label=21;case 21:return Wf(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(hk(ET(this.config))).promise]):[3,23];case 22:w.sent(),w.label=23;case 23:return yT(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(Pk()).promise]):[3,25];case 24:w.sent(),w.label=25;case 25:return gT(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(Nk()).promise]):[3,27];case 26:w.sent(),w.label=27;case 27:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 28:return w.sent(),g.eventBridge.setEventReceiver(function(T){var k=T.eventProperties||{},P=k.time,C=qi(k,["time"]),D=typeof P=="number"?{time:P}:void 0;E.track(T.eventType,C,D)}),[2]}})})},t.prototype.getUserId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.userId},t.prototype.setUserId=function(r){if(!this.config){this.q.push(this.setUserId.bind(this,r));return}
38this.config.loggerProvider.debug("function setUserId: ",r),(r!==this.config.userId||r===void 0)&&(this.config.userId=r,this.timeline.onIdentityChanged({userId:r}),Ow(r,this.config.instanceName))},t.prototype.getDeviceId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.deviceId},t.prototype.setDeviceId=function(r){if(!this.config){this.q.push(this.setDeviceId.bind(this,r));return}this.config.loggerProvider.debug("function setDeviceId: ",r),r!==this.config.deviceId&&(this.config.deviceId=r,this.timeline.onIdentityChanged({deviceId:r}),Iw(r,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(_r()),this.setUserId(void 0)},t.prototype.getIdentity=function(){var r,n;return{deviceId:(r=this.config)===null||r===void 0?void 0:r.deviceId,userId:(n=this.config)===null||n===void 0?void 0:n.userId,userProperties:this.userProperties}},t.prototype.getOptOut=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.optOut},t.prototype.getSessionId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.sessionId},t.prototype.setSessionId=function(r){var n,i=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,r)),bt(Promise.resolve());if(r===this.config.sessionId)return bt(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",r);var o=this.getSessionId();o!==r&&this.timeline.onSessionIdChanged(r);var a=this.config.lastEventTime,s=(n=this.config.lastEventId)!==null&&n!==void 0?n:-1;this.config.sessionId=r,this.config.lastEventTime=void 0,this.config.pageCounter=0,$c(this.config.defaultTracking)&&(o&&a&&i.push(this.track(zc,void 0,{device_id:this.previousSessionDeviceId,event_id:++s,session_id:o,time:a+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var u=this.trackCampaignEventIfNeeded(++s,i);return $c(this.config.defaultTracking)&&i.push(this.track(qc,void 0,{event_id:u?++s:s,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,bt(Promise.all(i))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(r){if(!this.config){this.q.push(this.setTransport.bind(this,r));return}this.config.transportProvider=Qf(r)},t.prototype.identify=function(r,n){if(Bo(r)){var i=r._q;r._q=[],r=Ri(new an,i)}return n?.user_id&&this.setUserId(n.user_id),n?.device_id&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,r,n)},t.prototype.groupIdentify=function(r,n,i,o){if(Bo(i)){var a=i._q;i._q=[],i=Ri(new an,a)}return e.prototype.groupIdentify.call(this,r,n,i,o)},t.prototype.revenue=function(r,n){if(Bo(r)){var i=r._q;r._q=[],r=Ri(new If,i)}return e.prototype.revenue.call(this,r,n)},t.prototype.trackCampaignEventIfNeeded=function(r,n){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var i=this.webAttribution.generateCampaignEvent(r);return n?n.push(this.track(i).promise):this.track(i),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(r){return M(this,void 0,void 0,function(){var n,i,o;return L(this,function(a){return n=Date.now(),i=Nf(this.config.sessionTimeout,this.config.lastEventTime),o=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),r.event_type!==qc&&r.event_type!==zc&&(!r.session_id||r.session_id===this.getSessionId())&&(i||o?(this.setSessionId(n),o&&this.config.loggerProvider.log("Created a new session for new campaign.")):i||this.trackCampaignEventIfNeeded()),r.event_type===Nt.IDENTIFY&&r.user_properties&&(this.userProperties=this.getOperationAppliedUserProperties(r.user_properties)),[2,e.prototype.process.call(this,r)]})})},t.prototype.logBrowserOptions=function(r){try{var n=q(q({},r),{apiKey:r.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(n))}catch(i){this.config.loggerProvider.error("Error logging browser config",i)}},t.prototype._setDiagnosticsSampleRate=function(r){if(!(r>1||r<0)&&!this.config){this._diagnosticsSampleRate=r;return}},t})(pw),Hp=function(){var e=new Mp;return{init:He(e.init.bind(e),"init",Ne(e),Me(e,["config"])),add:He(e.add.bind(e),"add",Ne(e),Me(e,["config.apiKey","timeline.plugins"])),remove:He(e.remove.bind(e),"remove",Ne(e),Me(e,["config.apiKey","timeline.plugins"])),track:He(e.track.bind(e),"track",Ne(e),Me(e,["config.apiKey","timeline.queue.length"])),logEvent:He(e.logEvent.bind(e),"logEvent",Ne(e),Me(e,["config.apiKey","timeline.queue.length"])),identify:He(e.identify.bind(e),"identify",Ne(e),Me(e,["config.apiKey","timeline.queue.length"])),groupIdentify:He(e.groupIdentify.bind(e),"groupIdentify",Ne(e),Me(e,["config.apiKey","timeline.queue.length"])),setGroup:He(e.setGroup.bind(e),"setGroup",Ne(e),Me(e,["config.apiKey","timeline.queue.length"])),revenue:He(e.revenue.bind(e),"revenue",Ne(e),Me(e,["config.apiKey","timeline.queue.length"])),flush:He(e.flush.bind(e),"flush",Ne(e),Me(e,["config.apiKey","timeline.queue.length"])),getUserId:He(e.getUserId.bind(e),"getUserId",Ne(e),Me(e,["config","config.userId"])),setUserId:He(e.setUserId.bind(e),"setUserId",Ne(e),Me(e,["config","config.userId"])),getDeviceId:He(e.getDeviceId.bind(e),"getDeviceId",Ne(e),Me(e,["config","config.deviceId"])),setDeviceId:He(e.setDeviceId.bind(e),"setDeviceId",Ne(e),Me(e,["config","config.deviceId"])),reset:He(e.reset.bind(e),"reset",Ne(e),Me(e,["config","config.userId","config.deviceId"])),getSessionId:He(e.getSessionId.bind(e),"getSessionId",Ne(e),Me(e,["config"])),setSessionId:He(e.setSessionId.bind(e),"setSessionId",Ne(e),Me(e,["config"])),extendSession:He(e.extendSession.bind(e),"extendSession",Ne(e),Me(e,["config"])),setOptOut:He(e.setOptOut.bind(e),"setOptOut",Ne(e),Me(e,["config"])),setTransport:He(e.setTransport.bind(e),"setTransport",Ne(e),Me(e,["config"])),getIdentity:He(e.getIdentity.bind(e),"getIdentity",Ne(e),Me(e,["config"])),getOptOut:He(e.getOptOut.bind(e),"getOptOut",Ne(e),Me(e,["config"])),_setDiagnosticsSampleRate:He(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",Ne(e),Me(e,["config"]))}};const Ue=Hp(),Mk=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_ACTION_CLICK_ALLOWLIST:Ff,DEFAULT_CSS_SELECTOR_ALLOWLIST:Uf,DEFAULT_DATA_ATTRIBUTE_PREFIX:As,get IdentifyOperation(){return ir},get LogLevel(){return _t},OfflineDisabled:Hf,get RevenueProperty(){return Bt},get ServerZone(){return Da},get SpecialEventType(){return Nt}},Symbol.toStringTag,{value:"Module"}));var Hk=Ue.add,Uk=Ue.extendSession,Up=Ue.flush,$a=Ue.getDeviceId,Fk=Ue.getIdentity,Bk=Ue.getOptOut,Vk=Ue.getSessionId,jk=Ue.getUserId,$k=Ue.groupIdentify,Fp=Ue.identify,Bp=Ue.init,Gk=Ue.logEvent,qk=Ue.remove,zk=Ue.reset,Wk=Ue.revenue,Kk=Ue.setDeviceId,Xk=Ue.setGroup,Jk=Ue.setOptOut,Yk=Ue.setSessionId,Vp=Ue.setTransport,jp=Ue.setUserId,Qk=Ue.track,Zk=Ue._setDiagnosticsSampleRate;const eP=Object.freeze(Object.defineProperty({__proto__:null,AmplitudeBrowser:Mp,Identify:an,Revenue:If,Types:Mk,_setDiagnosticsSampleRate:Zk,add:Hk,createInstance:Hp,extendSession:Uk,flush:Up,getDeviceId:$a,getIdentity:Fk,getOptOut:Bk,getSessionId:Vk,getUserId:jk,groupIdentify:$k,identify:Fp,init:Bp,logEvent:Gk,remove:qk,reset:zk,revenue:Wk,runQueuedFunctions:ST,setDeviceId:Kk,setGroup:Xk,setOptOut:Jk,setSessionId:Yk,setTransport:Vp,setUserId:jp,track:Qk},Symbol.toStringTag,{value:"Module"}));
vendor: 16,423 bytes, line 38
38var Ga=function(e,t){return Ga=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ga(e,t)};function $p(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ga(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var vr=function(){return vr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},vr.apply(this,arguments)};function Gp(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(l){try{c(n.next(l))}catch(p){a(p)}}function u(l){try{c(n.throw(l))}catch(p){a(p)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((n=n.apply(e,[])).next())})}function qp(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function xt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $s(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Gs(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Q={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},tP=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=i>>6|192,t[r++]=i&63|128):(i&64512)==55296&&n+1<e.length&&(e.charCodeAt(n+1)&64512)==56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++n)&1023),t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=i&63|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=i&63|128)}return Uint8Array.from(t)},Li=-862048943,Ni=461845907,Mi=15,rP=13,nP=5,iP=-430675100,oP=function(e,t){t===void 0&&(t=0);for(var r=tP(e),n=r.length,i=n>>2,o=t,a=0;a<i;a++){var s=a<<2,u=uP(r,s);o=aP(u,o)}var c=i<<2,l=0;switch(n-c){case 3:l^=r[c+2]<<16,l^=r[c+1]<<8,l^=r[c],l=Math.imul(l,Li),l=Ln(l,Mi),l=Math.imul(l,Ni),o^=l;break;case 2:l^=r[c+1]<<8,l^=r[c],l=Math.imul(l,Li),l=Ln(l,Mi),l=Math.imul(l,Ni),o^=l;break;case 1:l^=r[c],l=Math.imul(l,Li),l=Ln(l,Mi),l=Math.imul(l,Ni),o^=l;break}return o^=n,sP(o)>>>0},aP=function(e,t){var r=e,n=t;return r=Math.imul(r,Li),r=Ln(r,Mi),r=Math.imul(r,Ni),n^=r,n=Ln(n,rP),n=Math.imul(n,nP),n+iP|0},sP=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>13,t=Math.imul(t,-1028477387),t^=t>>>16,t},Ln=function(e,t,r){r===void 0&&(r=32),t>r&&(t=t%r);var n=4294967295<<r-t>>>0,i=(e&n)>>>0>>>r-t>>>0;return(e<<t|i)>>>0},uP=function(e,t){t===void 0&&(t=0);var r=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];return cP(r)},cP=function(e){return(e&-16777216)>>>24|(e&16711680)>>>8|(e&65280)<<8|(e&255)<<24},Sl=function(e,t){var r,n;if(!(!t||t.length===0)){try{for(var i=xt(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a||!e||typeof e!="object")return;e=e[a]}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(e!=null)return e}},lP="(\\d+)\\.(\\d+)",dP="(\\d+)",fP="(-(([-\\w]+\\.?)*))?",pP="^".concat(lP,"(\\.").concat(dP).concat(fP,")?$"),hP=(function(){function e(t,r,n,i){i===void 0&&(i=void 0),this.major=t,this.minor=r,this.patch=n,this.preRelease=i}return e.parse=function(t){if(t){var r=new RegExp(pP).exec(t);if(r){var n=Number(r[1]),i=Number(r[2]);if(!(isNaN(n)||isNaN(i))){var o=Number(r[4])||0,a=r[5]||void 0;return new e(n,i,o,a)}}}},e.prototype.compareTo=function(t){return this.major>t.major?1:this.major<t.major?-1:this.minor>t.minor?1:this.minor<t.minor?-1:this.patch>t.patch?1:this.patch<t.patch||this.preRelease&&!t.preRelease?-1:!this.preRelease&&t.preRelease?1:this.preRelease&&t.preRelease?this.preRelease>t.preRelease?1:this.preRelease<t.preRelease?-1:0:0},e})(),vP=(function(){function e(){}return e.prototype.evaluate=function(t,r){var n,i,o={},a={context:t,result:o};try{for(var s=xt(r),u=s.next();!u.done;u=s.next()){var c=u.value,l=this.evaluateFlag(a,c);l&&(o[c.key]=l)}}catch(p){n={error:p}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},e.prototype.evaluateFlag=function(t,r){var n,i,o;try{for(var a=xt(r.segments),s=a.next();!s.done;s=a.next()){var u=s.value;if(o=this.evaluateSegment(t,r,u),o){var c=vr(vr(vr({},r.metadata),u.metadata),o.metadata);o=vr(vr({},o),{metadata:c});break}}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},e.prototype.evaluateSegment=function(t,r,n){if(!n.conditions){var i=this.bucket(t,n);return i!==void 0?r.variants[i]:void 0}var o=this.evaluateConditions(t,n.conditions);if(o){var i=this.bucket(t,n);return i!==void 0?r.variants[i]:void 0}},e.prototype.evaluateConditions=function(t,r){var n,i,o,a;try{for(var s=xt(r),u=s.next();!u.done;u=s.next()){var c=u.value,l=!0;try{for(var p=(o=void 0,xt(c)),d=p.next();!d.done;d=p.next()){var f=d.value;if(l=this.matchCondition(t,f),!l)break}}catch(h){o={error:h}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}if(l)return!0}}catch(h){n={error:h}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return!1},e.prototype.matchCondition=function(t,r){var n=Sl(t,r.selector);if(n==null)return this.matchNull(r.op,r.values);if(this.isSetOperator(r.op)){var i=this.coerceStringArray(n);return i?this.matchSet(i,r.op,r.values):!1}else{var o=this.coerceString(n);return o!==void 0?this.matchString(o,r.op,r.values):!1}},e.prototype.getHash=function(t){return oP(t)},e.prototype.bucket=function(t,r){var n,i,o,a;if(!r.bucket)return r.variant;var s=this.coerceString(Sl(t,r.bucket.selector));if(!s||s.length===0)return r.variant;var u="".concat(r.bucket.salt,"/").concat(s),c=this.getHash(u),l=c%100,p=Math.floor(c/100);try{for(var d=xt(r.bucket.allocations),f=d.next();!f.done;f=d.next()){var h=f.value,m=h.range[0],g=h.range[1];if(l>=m&&l<g)try{for(var E=(o=void 0,xt(h.distributions)),w=E.next();!w.done;w=E.next()){var T=w.value,k=T.range[0],P=T.range[1];if(p>=k&&p<P)return T.variant}}catch(C){o={error:C}}finally{try{w&&!w.done&&(a=E.return)&&a.call(E)}finally{if(o)throw o.error}}}}catch(C){n={error:C}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return r.variant},e.prototype.matchNull=function(t,r){var n=this.containsNone(r);switch(t){case Q.IS:case Q.CONTAINS:case Q.LESS_THAN:case Q.LESS_THAN_EQUALS:case Q.GREATER_THAN:case Q.GREATER_THAN_EQUALS:case Q.VERSION_LESS_THAN:case Q.VERSION_LESS_THAN_EQUALS:case Q.VERSION_GREATER_THAN:case Q.VERSION_GREATER_THAN_EQUALS:case Q.SET_IS:case Q.SET_CONTAINS:case Q.SET_CONTAINS_ANY:return n;case Q.IS_NOT:case Q.DOES_NOT_CONTAIN:case Q.SET_DOES_NOT_CONTAIN:case Q.SET_DOES_NOT_CONTAIN_ANY:return!n;default:return!1}},e.prototype.matchSet=function(t,r,n){switch(r){case Q.SET_IS:return this.setEquals(t,n);case Q.SET_IS_NOT:return!this.setEquals(t,n);case Q.SET_CONTAINS:return this.matchesSetContainsAll(t,n);case Q.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(t,n);case Q.SET_CONTAINS_ANY:return this.matchesSetContainsAny(t,n);case Q.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(t,n);default:return!1}},e.prototype.matchString=function(t,r,n){var i=this;switch(r){case Q.IS:return this.matchesIs(t,n);case Q.IS_NOT:return!this.matchesIs(t,n);case Q.CONTAINS:return this.matchesContains(t,n);case Q.DOES_NOT_CONTAIN:return!this.matchesContains(t,n);case Q.LESS_THAN:case Q.LESS_THAN_EQUALS:case Q.GREATER_THAN:case Q.GREATER_THAN_EQUALS:return this.matchesComparable(t,r,n,function(o){return i.parseNumber(o)},this.comparator);case Q.VERSION_LESS_THAN:case Q.VERSION_LESS_THAN_EQUALS:case Q.VERSION_GREATER_THAN:case Q.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(t,r,n,function(o){return hP.parse(o)},this.versionComparator);case Q.REGEX_MATCH:return this.matchesRegex(t,n);case Q.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(t,n);default:return!1}},e.prototype.matchesIs=function(t,r){if(this.containsBooleans(r)){var n=t.toLowerCase();if(n==="true"||n==="false")return r.some(function(i){return i.toLowerCase()===n})}return r.some(function(i){return t===i})},e.prototype.matchesContains=function(t,r){var n,i;try{for(var o=xt(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(t.toLowerCase().includes(s.toLowerCase()))return!0}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},e.prototype.matchesComparable=function(t,r,n,i,o){var a=this,s=i(t),u=n.map(function(c){return i(c)}).filter(function(c){return c!==void 0});return s===void 0||u.length===0?n.some(function(c){return a.comparator(t,r,c)}):u.some(function(c){return o(s,r,c)})},e.prototype.comparator=function(t,r,n){switch(r){case Q.LESS_THAN:case Q.VERSION_LESS_THAN:return t<n;case Q.LESS_THAN_EQUALS:case Q.VERSION_LESS_THAN_EQUALS:return t<=n;case Q.GREATER_THAN:case Q.VERSION_GREATER_THAN:return t>n;case Q.GREATER_THAN_EQUALS:case Q.VERSION_GREATER_THAN_EQUALS:return t>=n;default:return!1}},e.prototype.versionComparator=function(t,r,n){var i=t.compareTo(n);switch(r){case Q.LESS_THAN:case Q.VERSION_LESS_THAN:return i<0;case Q.LESS_THAN_EQUALS:case Q.VERSION_LESS_THAN_EQUALS:return i<=0;case Q.GREATER_THAN:case Q.VERSION_GREATER_THAN:return i>0;case Q.GREATER_THAN_EQUALS:case Q.VERSION_GREATER_THAN_EQUALS:return i>=0;default:return!1}},e.prototype.matchesRegex=function(t,r){return r.some(function(n){return!!new RegExp(n).exec(t)})},e.prototype.containsNone=function(t){return t.some(function(r){return r==="(none)"})},e.prototype.containsBooleans=function(t){return t.some(function(r){switch(r.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(t){var r;return(r=Number(t))!==null&&r!==void 0?r:void 0},e.prototype.coerceString=function(t){if(t!=null)return typeof t=="object"?JSON.stringify(t):String(t)},e.prototype.coerceStringArray=function(t){var r=this;if(Array.isArray(t)){var n=t;return n.map(function(s){return r.coerceString(s)}).filter(Boolean)}var i=String(t);try{var o=JSON.parse(i);if(Array.isArray(o)){var n=t;return n.map(function(u){return r.coerceString(u)}).filter(Boolean)}else{var a=this.coerceString(i);return a?[a]:void 0}}catch{var a=this.coerceString(i);return a?[a]:void 0}},e.prototype.isSetOperator=function(t){switch(t){case Q.SET_IS:case Q.SET_IS_NOT:case Q.SET_CONTAINS:case Q.SET_DOES_NOT_CONTAIN:case Q.SET_CONTAINS_ANY:case Q.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(t,r){var n=new Set(t),i=new Set(r);return n.size===i.size&&Gs([],$s(i),!1).every(function(o){return n.has(o)})},e.prototype.matchesSetContainsAll=function(t,r){var n,i;if(t.length<r.length)return!1;try{for(var o=xt(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(!this.matchesIs(s,t))return!1}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!0},e.prototype.matchesSetContainsAny=function(t,r){var n,i;try{for(var o=xt(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(this.matchesIs(s,t))return!0}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},e})(),mP=function(e,t){var r,n,i=vr({},e),o=[],a=t||Object.keys(i);try{for(var s=xt(a),u=s.next();!u.done;u=s.next()){var c=u.value,l=zp(c,i);l&&o.push.apply(o,Gs([],$s(l),!1))}}catch(p){r={error:p}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o},zp=function(e,t,r){var n,i;r===void 0&&(r=[]);var o=t[e];if(o){if(!o.dependencies||o.dependencies.length===0)return delete t[o.key],[o]}else return;r.push(o.key);var a=[],s=function(p){if(r.some(function(f){return f===p}))throw Error("Detected a cycle between flags ".concat(r));var d=zp(p,t,r);d&&a.push.apply(a,Gs([],$s(d),!1))};try{for(var u=xt(o.dependencies),c=u.next();!c.done;c=u.next()){var l=c.value;s(l)}}catch(p){n={error:p}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return a.push(o),r.pop(),delete t[o.key],a};const Wp="3.7.7",gP=Wp,pn=typeof Buffer=="function",Al=typeof TextDecoder=="function"?new TextDecoder:void 0,kl=typeof TextEncoder=="function"?new TextEncoder:void 0,yP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",An=Array.prototype.slice.call(yP),Ti=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(An),bP=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ot=String.fromCharCode.bind(String),Pl=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Kp=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Xp=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Jp=e=>{let t,r,n,i,o="";const a=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=An[t>>18&63]+An[t>>12&63]+An[t>>6&63]+An[t&63]}return a?o.slice(0,a-3)+"===".substring(a):o},qs=typeof btoa=="function"?e=>btoa(e):pn?e=>Buffer.from(e,"binary").toString("base64"):Jp,qa=pn?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(ot.apply(null,e.subarray(n,n+4096)));return qs(r.join(""))},Hi=(e,t=!1)=>t?Kp(qa(e)):qa(e),_P=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?ot(192|t>>>6)+ot(128|t&63):ot(224|t>>>12&15)+ot(128|t>>>6&63)+ot(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return ot(240|t>>>18&7)+ot(128|t>>>12&63)+ot(128|t>>>6&63)+ot(128|t&63)}},EP=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Yp=e=>e.replace(EP,_P),Ol=pn?e=>Buffer.from(e,"utf8").toString("base64"):kl?e=>qa(kl.encode(e)):e=>qs(Yp(e)),Zr=(e,t=!1)=>t?Kp(Ol(e)):Ol(e),Il=e=>Zr(e,!0),wP=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,TP=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return ot((r>>>10)+55296)+ot((r&1023)+56320);case 3:return ot((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return ot((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Qp=e=>e.replace(wP,TP),Zp=e=>
38{if(e=e.replace(/\s+/g,""),!bP.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o<e.length;)t=Ti[e.charAt(o++)]<<18|Ti[e.charAt(o++)]<<12|(n=Ti[e.charAt(o++)])<<6|(i=Ti[e.charAt(o++)]),r+=n===64?ot(t>>16&255):i===64?ot(t>>16&255,t>>8&255):ot(t>>16&255,t>>8&255,t&255);return r},zs=typeof atob=="function"?e=>atob(Xp(e)):pn?e=>Buffer.from(e,"base64").toString("binary"):Zp,eh=pn?e=>Pl(Buffer.from(e,"base64")):e=>Pl(zs(e).split("").map(t=>t.charCodeAt(0))),th=e=>eh(rh(e)),SP=pn?e=>Buffer.from(e,"base64").toString("utf8"):Al?e=>Al.decode(eh(e)):e=>Qp(zs(e)),rh=e=>Xp(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),za=e=>SP(rh(e)),AP=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},nh=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),ih=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,nh(r));e("fromBase64",function(){return za(this)}),e("toBase64",function(t){return Zr(this,t)}),e("toBase64URI",function(){return Zr(this,!0)}),e("toBase64URL",function(){return Zr(this,!0)}),e("toUint8Array",function(){return th(this)})},oh=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,nh(r));e("toBase64",function(t){return Hi(this,t)}),e("toBase64URI",function(){return Hi(this,!0)}),e("toBase64URL",function(){return Hi(this,!0)})},kP=()=>{ih(),oh()},Wa={version:Wp,VERSION:gP,atob:zs,atobPolyfill:Zp,btoa:qs,btoaPolyfill:Jp,fromBase64:za,toBase64:Zr,encode:Zr,encodeURI:Il,encodeURL:Il,utob:Yp,btou:Qp,decode:za,isValid:AP,fromUint8Array:Hi,toUint8Array:th,extendString:ih,extendUint8Array:oh,extendBuiltins:kP};var ah=(function(e){$p(t,e);function t(r,n){var i=e.call(this,n)||this;return i.statusCode=r,Object.setPrototypeOf(i,t.prototype),i}return t})(Error),Ka=(function(e){$p(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t})(Error),PP=(function(){function e(t,r,n){this.deploymentKey=t,this.serverUrl=r,this.httpClient=n}return e.prototype.getVariants=function(t,r){return Gp(this,void 0,void 0,function(){var n,i,o,a;return qp(this,function(s){switch(s.label){case 0:return n=Wa.encodeURL(JSON.stringify(t)),i={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":n},r?.flagKeys&&(i["X-Amp-Exp-Flag-Keys"]=Wa.encodeURL(JSON.stringify(r.flagKeys))),r?.trackingOption&&(i["X-Amp-Exp-Track"]=r.trackingOption),o=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),r?.evaluationMode&&o.searchParams.append("eval_mode",r?.evaluationMode),r?.deliveryMethod&&o.searchParams.append("delivery_method",r?.deliveryMethod),[4,this.httpClient.request({requestUrl:o.toString(),method:"GET",headers:i,timeoutMillis:r?.timeoutMillis})];case 1:if(a=s.sent(),a.status!=200)throw new ah(a.status,"Fetch error response: status=".concat(a.status));return[2,JSON.parse(a.body)]}})})},e})(),OP=(function(){function e(t,r,n){this.deploymentKey=t,this.serverUrl=r,this.httpClient=n}return e.prototype.getFlags=function(t){return Gp(this,void 0,void 0,function(){var r,n,i;return qp(this,function(o){switch(o.label){case 0:return r={Authorization:"Api-Key ".concat(this.deploymentKey)},t?.libraryName&&t?.libraryVersion&&(r["X-Amp-Exp-Library"]="".concat(t.libraryName,"/").concat(t.libraryVersion)),t?.user&&(r["X-Amp-Exp-User"]=Wa.encodeURL(JSON.stringify(t.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+(t?.deliveryMethod?"?delivery_method=".concat(t.deliveryMethod):""),method:"GET",headers:r,timeoutMillis:t?.timeoutMillis})];case 1:if(n=o.sent(),n.status!=200)throw Error("Flags error response: status=".concat(n.status));return i=JSON.parse(n.body),[2,i.reduce(function(a,s){return a[s.key]=s,a},{})]}})})},e})(),rt=typeof globalThis<"u"?globalThis:global||self,Hr=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},IP=function(){var e=Hr();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch{return!1}return!1},RP=(function(){function e(t,r){this.poller=void 0,this.action=t,this.ms=r}return e.prototype.start=function(){this.poller||(this.poller=rt.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(rt.clearInterval(this.poller),this.poller=void 0)},e})(),kn={exports:{}},CP=kn.exports,Rl;function xP(){return Rl||(Rl=1,(function(e,t){(function(r,n){var i="0.7.33",o="",a="?",s="function",u="undefined",c="object",l="string",p="major",d="model",f="name",h="type",m="vendor",g="version",E="architecture",w="console",T="mobile",k="tablet",P="smarttv",C="wearable",D="embedded",F=350,$="Amazon",U="Apple",N="ASUS",re="BlackBerry",ae="Browser",ie="Chrome",Y="Edge",ge="Firefox",xe="Google",qe="Huawei",ze="LG",We="Microsoft",tt="Motorola",Ke="Opera",ke="Samsung",Se="Sharp",vt="Sony",z="Xiaomi",x="Zebra",j="Facebook",V=function(de,_e){var fe={};for(var De in de)_e[De]&&_e[De].length%2===0?fe[De]=_e[De].concat(de[De]):fe[De]=de[De];return fe},K=function(de){for(var _e={},fe=0;fe<de.length;fe++)_e[de[fe].toUpperCase()]=de[fe];return _e},me=function(de,_e){return typeof de===l?se(_e).indexOf(se(de))!==-1:!1},se=function(de){return de.toLowerCase()},le=function(de){return typeof de===l?de.replace(/[^\d\.]/g,o).split(".")[0]:n},oe=function(de,_e){if(typeof de===l)return de=de.replace(/^\s\s*/,o),typeof _e===u?de:de.substring(0,F)},Te=function(de,_e){for(var fe=0,De,ve,ur,Ae,wr,At;fe<_e.length&&!wr;){var Ur=_e[fe],hn=_e[fe+1];for(De=ve=0;De<Ur.length&&!wr;)if(wr=Ur[De++].exec(de),wr)for(ur=0;ur<hn.length;
vendor: 4,481 bytes, line 38
38ur++)At=wr[++ve],Ae=hn[ur],typeof Ae===c&&Ae.length>0?Ae.length===2?typeof Ae[1]==s?this[Ae[0]]=Ae[1].call(this,At):this[Ae[0]]=Ae[1]:Ae.length===3?typeof Ae[1]===s&&!(Ae[1].exec&&Ae[1].test)?this[Ae[0]]=At?Ae[1].call(this,At,Ae[2]):n:this[Ae[0]]=At?At.replace(Ae[1],Ae[2]):n:Ae.length===4&&(this[Ae[0]]=At?Ae[3].call(this,At.replace(Ae[1],Ae[2])):n):this[Ae]=At||n;fe+=2}},ct=function(de,_e){for(var fe in _e)if(typeof _e[fe]===c&&_e[fe].length>0){for(var De=0;De<_e[fe].length;De++)if(me(_e[fe][De],de))return fe===a?n:fe}else if(me(_e[fe],de))return fe===a?n:fe;return de},Xe={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ht={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ri={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,g],[/opios[\/ ]+([\w\.]+)/i],[g,[f,Ke+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[f,Ke]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[f,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[f,"UC"+ae]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[f,"IE"]],[/yabrowser\/([\w\.]+)/i],[g,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+ae],g],[/\bfocus\/([\w\.]+)/i],[g,[f,ge+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[f,Ke+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[f,Ke+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[f,"MIUI "+ae]],[/fxios\/([-\w\.]+)/i],[g,[f,ge]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+ae]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+ae],g],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,j],g],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[f,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[f,ie+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,ie+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[f,"Android "+ae]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[g,ct,Xe]],[/(webkit|khtml)\/([\w\.]+)/i],[f,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[f,ge+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[f,g],[/(cobalt)\/([\w\.]+)/i],[f,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,se]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,o,se]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
vendor: 9,816 bytes, line 38
38|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,se]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[m,ke],[h,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[m,ke],[h,T]],[/((ipod|iphone)\d+,\d+)/i],[d,[m,U],[h,T]],[/(ipad\d+,\d+)/i],[d,[m,U],[h,k]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[m,U],[h,T]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[m,U],[h,k]],[/(macintosh);/i],[d,[m,U]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[m,qe],[h,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[m,qe],[h,T]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[m,z],[h,T]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[m,z],[h,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[m,"OPPO"],[h,T]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[m,"Vivo"],[h,T]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[m,"Realme"],[h,T]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[m,tt],[h,T]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[m,tt],[h,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[m,ze],[h,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[m,ze],[h,T]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[m,"Lenovo"],[h,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[m,"Nokia"],[h,T]],[/(pixel c)\b/i],[d,[m,xe],[h,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[m,xe],[h,T]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[m,vt],[h,T]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[m,vt],[h,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[m,"OnePlus"],[h,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[m,$],[h,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[m,$],[h,T]],[/(playbook);[-\w\),; ]+(rim)/i],[d,m,[h,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[m,re],[h,T]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[m,N],[h,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[m,N],[h,T]],[/(nexus 9)/i],[d,[m,"HTC"],[h,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[d,/_/g," "],[h,T]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[m,"Acer"],[h,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[m,"Meizu"],[h,T]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[m,Se],[h,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,d,[h,T]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,d,[h,k]],[/(surface duo)/i],[d,[m,We],[h,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[m,"Fairphone"],[h,T]],[/(u304aa)/i],[d,[m,"AT&T"],[h,T]],[/\bsie-(\w*)/i],[d,[m,"Siemens"],[h,T]],[/\b(rct\w+) b/i],[d,[m,"RCA"],[h,k]],[/\b(venue[\d ]{2,7}) b/i],[d,[m,"Dell"],[h,k]],[/\b(q(?:mv|ta)\w+) b/i],[d,[m,"Verizon"],[h,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[m,"Barnes & Noble"],[h,k]],[/\b(tm\d{3}\w+) b/i],[d,[m,"NuVision"],[h,k]],[/\b(k88) b/i],[d,[m,"ZTE"],[h,k]],[/\b(nx\d{3}j) b/i],[d,[m,"ZTE"],[h,T]],[/\b(gen\d{3}) b.+49h/i],[d,[m,"Swiss"],[h,T]],[/\b(zur\d{3}) b/i],[d,[m,"Swiss"],[h,k]],[/\b((zeki)?tb.*\b) b/i],[d,[m,"Zeki"],[h,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],d,[h,k]],[/\b(ns-?\w{0,9}) b/i],[d,[m,"Insignia"],[h,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[m,"NextBook"],[h,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],d,[h,T]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],d,[h,T]],[/\b(ph-1) /i],[d,[m,"Essential"],[h,T]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[m,"Envizen"],[h,k]],[/\b(trio[-\w\. ]+) b/i],[d,[m,"MachSpeed"],[h,k]],[/\btu_(1491) b/i],[d,[m,"Rotor"],[h,k]],[/(shield[\w ]+) b/i],[d,[m,"Nvidia"],[h,k]],[/(sprint) (\w+)/i],[m,d,[h,T]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[m,We],[h,T]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[m,x],[h,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[m,x],[h,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,d,[h,w]],[/droid.+; (shield) bui/i],[d,[m,"Nvidia"],[h,w]],[/(playstation [345portablevi]+)/i],[d,[m,vt],[h,w]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[m,We],[h,w]],[/smart-tv.+(samsung)/i],[m,[h,P]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[m,ke],[h,P]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,ze],[h,P]],[/(apple) ?tv/i],[m,[d,U+" TV"],[h,P]],[/crkey/i],[[d,ie+"cast"],[m,xe],[h,P]],[/droid.+aft(\w)( bui|\))/i],[d,[m,$],[h,P]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[m,Se],[h,P]],[/(bravia[\w ]+)( bui|\))/i],[d,[m,vt],[h,P]],[/(mitv-\w{5}) bui/i],[d,[m,z],[h,P]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[m,oe],[d,oe],[h,P]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,P]],[/((pebble))app/i],[m,d,[h,C]],[/droid.+; (glass) \d/i],[d,[m,xe],[h,C]],[/droid.+; (wt63?0{2,3})\)/i],[d,[m,x],[h,C]],[/(quest( 2)?)/i],[d,[m,j],[h,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[h,D]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[h,T]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,T]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[f,Y+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[f,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[g,ct,Ht]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[g,ct,Ht]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,"Mac OS"],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,g],[/\(bb(10);/i],[g,[f,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[f,ge+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[f,"webOS"]],[/crkey\/([\d\.]+)/i],[g,[f,ie+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[f,"Chromium OS"],g],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,g],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[f,g]]},St=function(de,_e){if(typeof de===c&&(_e=de,de=n),!(this instanceof St))return new St(de,_e).getResult();var fe=de||(typeof r!==u&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:o),De=_e?V(ri,_e):ri;return this.getBrowser=function(){var ve={};return ve[f]=n,ve[g]=n,Te.call(ve,fe,De.browser),ve.major=le(ve.version),ve},this.getCPU=function(){var ve={};return ve[E]=n,Te.call(ve,fe,De.cpu),ve},this.getDevice=function(){var ve={};return ve[m]=n,ve[d]=n,ve[h]=n,Te.call(ve,fe,De.device),ve},this.getEngine=function(){var ve={};return ve[f]=n,ve[g]=n,Te.call(ve,fe,De.engine),ve},this.getOS=function(){var ve={};return ve[f]=n,ve[g]=n,Te.call(ve,fe,De.os),ve},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return fe},this.setUA=function(ve){return fe=typeof ve===l&&ve.length>F?oe(ve,F):ve,this},this.setUA(fe),this};
vendor: 15,999 bytes, line 38
38St.VERSION=i,St.BROWSER=K([f,g,p]),St.CPU=K([E]),St.DEVICE=K([d,m,h,w,T,P,k,C,D]),St.ENGINE=St.OS=K([f,g]),e.exports&&(t=e.exports=St),t.UAParser=St;var sr=typeof r!==u&&(r.jQuery||r.Zepto);if(sr&&!sr.ua){var Er=new St;sr.ua=Er.getResult(),sr.ua.get=function(){return Er.getUA()},sr.ua.set=function(de){Er.setUA(de);var _e=Er.getResult();for(var fe in _e)sr.ua[fe]=_e[fe]}}})(typeof window=="object"?window:CP)})(kn,kn.exports)),kn.exports}var DP=xP(),Ee=function(){return Ee=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ee.apply(this,arguments)};function nt(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(l){try{c(n.next(l))}catch(p){a(p)}}function u(l){try{c(n.throw(l))}catch(p){a(p)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((n=n.apply(e,t||[])).next())})}function it(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ar(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Lt(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Cl=function(e,t){var r,n;t===void 0&&(t=!1);var i=Ws(e,t),o=void 0,a=rt.document.cookie.split("; ");try{for(var s=ar(a),u=s.next();!u.done;u=s.next()){var c=u.value,l=dt(c.split("=",2),2),p=l[0],d=l[1];p===i&&(o=decodeURIComponent(d))}}catch(g){r={error:g}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}if(o)try{if(t){var f=atob(o);return JSON.parse(decodeURIComponent(f))}var h=o.split("."),m=void 0;return h.length>=2&&h[1]&&(m=atob(h[1])),{deviceId:h[0],userId:m}}catch{return}},LP=function(e){var t=Ws(e,!0);try{var r=rt.localStorage.getItem(t);if(!r)return;var n=JSON.parse(r);return typeof n!="object"?void 0:n}catch{return}},NP=function(e){var t=Ws(e,!0);try{var r=rt.sessionStorage.getItem(t);if(!r)return;var n=JSON.parse(r);return typeof n!="object"?void 0:n}catch{return}},Ws=function(e,t){if(t)return e?.length<10?void 0:"AMP_".concat(e.substring(0,10));if(!(e?.length<6))return"amp_".concat(e.substring(0,6))},MP=(function(){function e(t,r,n){this.type="integration",this.apiKey=t,this.identityStore=r.identityStore,this.eventBridge=r.eventBridge,this.contextProvider=r.applicationContextProvider,this.timeoutMillis=n,this.loadPersistedState(),n<=0&&(this.setup=void 0)}return e.prototype.setup=function(t,r){return nt(this,void 0,void 0,function(){return it(this,function(n){return t?.automaticFetchOnAmplitudeIdentityChange&&this.identityStore.addIdentityListener(function(){r?.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var t=this.identityStore.getIdentity();return{user_id:t.userId,device_id:t.deviceId,user_properties:t.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(t){return this.eventBridge.receiver?(this.eventBridge.logEvent({eventType:t.eventType,eventProperties:t.eventProperties}),!0):!1},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var t=Cl(this.apiKey,!0);return t?(this.commitIdentityToConnector(t),!0):(t=Cl(this.apiKey,!1),t?(this.commitIdentityToConnector(t),!0):(t=LP(this.apiKey),t?(this.commitIdentityToConnector(t),!0):(t=NP(this.apiKey),t?(this.commitIdentityToConnector(t),!0):!1)))},e.prototype.commitIdentityToConnector=function(t){var r=this.identityStore.editIdentity();r.setDeviceId(t.deviceId),t.userId&&r.setUserId(t.userId),r.commit()},e.prototype.waitForConnectorIdentity=function(t){return nt(this,void 0,void 0,function(){var r,n=this;return it(this,function(i){return r=this.identityStore.getIdentity(),!r.userId&&!r.deviceId?[2,Promise.race([new Promise(function(o){var a=function(){o(),n.identityStore.removeIdentityListener(a)};n.identityStore.addIdentityListener(a)}),new Promise(function(o,a){rt.setTimeout(a,t,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]:[2]})})},e})();function HP(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return a},get:function(l){return s[l.toLowerCase()]},has:function(l){return l.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(l,p,d){o.push(p=p.toLowerCase()),a.push([p,d]),s[p]=s[p]?s[p]+","+d:d}),r(u())},i.onerror=n,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}var UP=rt.fetch||HP,FP=function(e,t){return t==null||t<=0?e:new Promise(function(r,n){rt.setTimeout(function(){n(new Ka("Request timeout after "+t+" milliseconds"))},t),e.then(r,n)})},BP=function(e,t,r,n,i){var o=function(){return nt(void 0,void 0,void 0,function(){var a,s,u;return it(this,function(c){switch(c.label){case 0:return[4,UP(e,{method:t,headers:r,body:n})];case 1:return a=c.sent(),u={status:a.status},[4,a.text()];case 2:return s=(u.body=c.sent(),u),[2,s]}})})};return FP(o(),i)},VP=(function(){function e(t){this.client=t}return e.prototype.request=function(t){return nt(this,void 0,void 0,function(){return it(this,function(r){switch(r.label){case 0:return[4,this.client.request(t.requestUrl,t.method,t.headers,null,t.timeoutMillis)];case 1:return[2,r.sent()]}})})},e})(),sh={request:BP},Vt;(function(e){e[e.Disable=0]="Disable",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Info=3]="Info",e[e.Debug=4]="Debug",e[e.Verbose=5]="Verbose"})(Vt||(Vt={}));var rr;(function(e){e.LocalStorage="localStorage",e.InitialVariants="initialVariants"})(rr||(rr={}));var Ze;(function(e){e.LocalStorage="storage",e.InitialVariants="initial",e.SecondaryLocalStorage="secondary-storage",e.SecondaryInitialVariants="secondary-initial",e.FallbackInline="fallback-inline",e.FallbackConfig="fallback-config",e.LocalEvaluation="local-evaluation"})(Ze||(Ze={}));var xl=function(e){return!e||e===Ze.FallbackInline||e===Ze.FallbackConfig||e===Ze.SecondaryInitialVariants},Jr={debug:!1,logLevel:Vt.Error,loggerProvider:null,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:rr.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:sh},Dl="1.20.0",jP=512,$P=(function(){function e(t,r){var n=this,i;this.isReady=new Promise(function(a){n.resolve=a}),this.config=t,this.client=r;var o=(i=t.instanceName)!==null&&i!==void 0?i:Jr.instanceName;this.queue=new qP(o),this.cache=new GP(o)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(t){var r=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=t,t.setup?this.integration.setup(this.config,this.client).then(function(){r.queue.setTracker(r.integration.track.bind(t)),r.resolve()},function(){r.queue.setTracker(r.integration.track.bind(t)),r.resolve()}):(this.queue.setTracker(this.integration.track.bind(t)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(t){if(this.cache.shouldTrack(t)){var r=this.getExposureEvent(t);this.queue.push(r)}},e.prototype.getExposureEvent=function(t){var r,n,i,o={eventType:"$exposure",eventProperties:t};return!((r=t.metadata)===null||r===void 0)&&r.exposureEvent?o={eventType:(n=t.metadata)===null||n===void 0?void 0:n.exposureEvent,eventProperties:t}:((i=t.metadata)===null||i===void 0?void 0:i.deliveryMethod)==="web"&&(o={eventType:"$impression",eventProperties:t}),o},e})(),GP=(function(){function e(t){this.isSessionStorageAvailable=zP(),this.inMemoryCache={},this.storageKey="EXP_sent_v2_".concat(t),this.isSessionStorageAvailable&&rt.sessionStorage.removeItem("EXP_sent_".concat(t))}return e.prototype.shouldTrack=function(t){var r;if(((r=t.metadata)===null||r===void 0?void 0:r.deliveryMethod)==="web")return!0;this.loadCache();var n=this.inMemoryCache[t.flag_key],i=!1;return(!n||n.variant!==t.variant)&&(i=!0,this.inMemoryCache[t.flag_key]=t),this.storeCache(),i},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var t=rt.sessionStorage.getItem(this.storageKey);this.inMemoryCache=t?JSON.parse(t):{}}},e.prototype.storeCache=function(){this.isSessionStorageAvailable&&rt.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))},e})(),qP=(function(){function e(t,r){r===void 0&&(r=jP),this.isLocalStorageAvailable=IP(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(t),this.maxQueueSize=r}return e.prototype.push=function(t){this.loadQueue(),this.inMemoryQueue.push(t),this.flush(),this.storeQueue()},e.prototype.setTracker=function(t){var r=this;this.tracker=t,this.poller=rt.setInterval(function(){r.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){var t,r;if(this.tracker&&this.inMemoryQueue.length!==0){try{for(var n=ar(this.inMemoryQueue),i=n.next();!i.done;i=n.next()){var o=i.value;try{if(!this.tracker(o))return}catch{return}}}catch(a){t={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}this.inMemoryQueue=[],this.poller&&(rt.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var t=rt.localStorage.getItem(this.storageKey);this.inMemoryQueue=t?JSON.parse(t):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),rt.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e})(),zP=function(){var e=Hr();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch{return!1}return!1},WP=(function(){function e(t,r){r===void 0&&(r=Vt.Error),this.logger=t,this.logLevel=r}return e.prototype.error=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Vt.Error&&(r=this.logger).error.apply(r,Lt([t],dt(n),!1))},e.prototype.warn=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Vt.Warn&&(r=this.logger).warn.apply(r,Lt([t],dt(n),!1))},e.prototype.info=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Vt.Info&&(r=this.logger).info.apply(r,Lt([t],dt(n),!1))},e.prototype.debug=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Vt.Debug&&(r=this.logger).debug.apply(r,Lt([t],dt(n),!1))},e.prototype.verbose=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Vt.Verbose&&(r=this.logger).verbose.apply(r,Lt([t],dt(n),!1))},e})(),KP=(function(){function e(){}return e.prototype.error=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.error.apply(console,Lt([t],dt(r),!1))},e.prototype.warn=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.warn.apply(console,Lt([t],dt(r),!1))},e.prototype.info=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.info.apply(console,Lt([t],dt(r),!1))},e.prototype.debug=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.debug.apply(console,Lt([t],dt(r),!1))},e.prototype.verbose=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.debug.apply(console,Lt([t],dt(r),!1))},e})(),ho=(function(){function e(){this.globalScope=Hr()}return e.prototype.get=function(t){var r;return(r=this.globalScope)===null||r===void 0?void 0:r.localStorage.getItem(t)},e.prototype.put=function(t,r){var n;(n=this.globalScope)===null||n===void 0||n.localStorage.setItem(t,r)},e.prototype.delete=function(t){var r;(r=this.globalScope)===null||r===void 0||r.localStorage.removeItem(t)},e})(),XP=function(e,t,r){var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n);return new uh(i,r,ch)},JP=function(e,t,r){r===void 0&&(r=new ho);var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n,"-flags");return new uh(i,r)},YP=function(e,t,r){r===void 0&&(r=new ho);var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n,"-variants-options");return new QP(i,r)},QP=(function(){function e(t,r){this.namespace=t,this.storage=r}return e.prototype.get=function(){return this.value},e.prototype.put=function(t){this.value=t},e.prototype.load=function(){var t=this.storage.get(this.namespace);t&&(this.value=JSON.parse(t))},e.prototype.store=function(){this.value===void 0?this.storage.delete(this.namespace):this.storage.put(this.namespace,JSON.stringify(this.value))},e})(),uh=(function(){function e(t,r,n){this.cache={},this.namespace=t,this.storage=r,this.transformer=n}return e.prototype.get=function(t){return this.cache[t]},e.prototype.getAll=function(){return Ee({},this.cache)},e.prototype.put=function(t,r){this.cache[t]=r},e.prototype.putAll=function(t){var r,n;try{for(var i=ar(Object.keys(t)),o=i.next();!o.done;o=i.next()){var a=o.value;this.cache[a]=t[a]}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.remove=function(t){delete this.cache[t]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var t,r,n=this.storage.get(this.namespace),i;try{i=JSON.parse(n)||{}}catch{return}var o={};try{for(var a=ar(Object.keys(i)),s=a.next();!s.done;s=a.next()){var u=s.value;try{var c=void 0;this.transformer?c=this.transformer(i[u]):c=i[u],c&&(o[u]=c)}catch{}}}
vendor: 8,132 bytes, line 38
38catch(l){t={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}this.clear(),this.putAll(o)},e.prototype.store=function(t){t===void 0&&(t=this.cache),this.storage.put(this.namespace,JSON.stringify(t))},e})(),ch=function(e){if(typeof e=="string")return{key:e,value:e};if(typeof e=="object"){var t=e.key,r=e.value,n=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&(i=i||{},i.experimentKey=o);var a={};return t?a.key=t:r&&(a.key=r),r&&(a.value=r),i&&(a.metadata=i),n&&(a.payload=n),o&&(a.expKey=o),a}},lh=(function(){function e(){this.globalScope=Hr()}return e.prototype.get=function(t){var r;return(r=this.globalScope)===null||r===void 0?void 0:r.sessionStorage.getItem(t)},e.prototype.put=function(t,r){var n;(n=this.globalScope)===null||n===void 0||n.sessionStorage.setItem(t,r)},e.prototype.delete=function(t){var r;(r=this.globalScope)===null||r===void 0||r.sessionStorage.removeItem(t)},e})(),ZP=function(e,t,r,n){var i,o="[Experiment] Exposure",a=r?.value,s="[Experiment] ".concat(t);return{name:o,user:e,key:t,variant:r,userProperty:s,properties:{key:t,variant:a,source:n},userProperties:(i={},i[s]=a,i)}},Ut=function(e){return e==null},Xo=function(e){return Ut(e)?!0:e&&Object.keys(e).length===0},eO=function(e){var t,r;if(!e||typeof e!="object")return{};var n={};try{for(var i=ar(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=dt(o.value,2),s=a[0],u=a[1];Ut(u)||(n[s]=u)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},Ll=function(e){var t;return((t=e?.metadata)===null||t===void 0?void 0:t.evaluationMode)==="local"},tO=(function(){function e(t,r,n,i){this.started=!1,this.done=!1,this.attempts=t,this.min=r,this.max=n,this.scalar=i}return e.prototype.start=function(t){return nt(this,void 0,void 0,function(){return it(this,function(r){switch(r.label){case 0:if(!this.started)this.started=!0;else throw Error("Backoff already started");return[4,this.backoff(t,0,this.min)];case 1:return r.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(t,r,n){return nt(this,void 0,void 0,function(){var i=this;return it(this,function(o){return this.done?[2]:(this.timeoutHandle=rt.setTimeout(function(){return nt(i,void 0,void 0,function(){var a,s;return it(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,t()];case 1:return u.sent(),[3,3];case 2:return u.sent(),a=r+1,a<this.attempts&&(s=Math.min(n*this.scalar,this.max),this.backoff(t,a,s)),[3,3];case 3:return[2]}})})},n),[2])})})},e})(),rO=function(e){var t,r,n,i;if(!e)return{};var o={user:e},a=Hr();a&&(o.page={url:a.location.href});var s={};if(!e.groups)return o;try{for(var u=ar(Object.keys(e.groups)),c=u.next();!c.done;c=u.next()){var l=c.value,p=e.groups[l];if(p.length>0&&p[0]){var d=p[0],f={group_name:d},h=(i=(n=e.group_properties)===null||n===void 0?void 0:n[l])===null||i===void 0?void 0:i[d];h&&Object.keys(h).length>0&&(f.group_properties=h),s[l]=f}}}catch(m){t={error:m}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},gt=function(e){return e==null?{}:typeof e=="string"?{key:e,value:e}:e},Nl=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},nO=(function(){function e(t){this.setProperties={},this.unsetProperties={},this.analyticsProvider=t}return e.prototype.track=function(t){this.setProperties[t.key]!=t.variant.value&&(this.setProperties[t.key]=t.variant.value,delete this.unsetProperties[t.key],this.analyticsProvider.track(t))},e.prototype.setUserProperty=function(t){this.setProperties[t.key]!=t.variant.value&&this.analyticsProvider.setUserProperty(t)},e.prototype.unsetUserProperty=function(t){this.unsetProperties[t.key]||(this.unsetProperties[t.key]="unset",delete this.setProperties[t.key],this.analyticsProvider.unsetUserProperty(t))},e})(),iO=(function(){function e(t){this.tracked={},this.identity={},this.exposureTrackingProvider=t}return e.prototype.track=function(t,r){var n={userId:r?.user_id,deviceId:r?.device_id};this.identityEquals(this.identity,n)||(this.tracked={}),this.identity=n;var i=t.flag_key in this.tracked,o=this.tracked[t.flag_key];i&&o===t.variant||(this.tracked[t.flag_key]=t.variant,this.exposureTrackingProvider.track(t))},e.prototype.identityEquals=function(t,r){return t.userId===r.userId&&t.deviceId===r.deviceId},e})(),oO=1e4,aO=8,sO=500,uO=1e4,cO=1.5,Ml=6e4,lO="https://api.lab.eu.amplitude.com",dO="https://flag.lab.eu.amplitude.com",fO=(function(){function e(t,r){var n=this,i,o,a,s;this.engine=new vP,this.isRunning=!1,this.apiKey=t,r=eO(r),this.config=Ee(Ee(Ee({},Jr),r),{serverUrl:r?.serverUrl||(((i=r?.serverZone)===null||i===void 0?void 0:i.toLowerCase())==="eu"?lO:Jr.serverUrl),flagsServerUrl:r?.flagsServerUrl||(((o=r?.serverZone)===null||o===void 0?void 0:o.toLowerCase())==="eu"?dO:Jr.flagsServerUrl),flagConfigPollingIntervalMillis:r.flagConfigPollingIntervalMillis<Ml?Ml:(a=r.flagConfigPollingIntervalMillis)!==null&&a!==void 0?a:Jr.flagConfigPollingIntervalMillis}),this.logger=new WP(this.config.loggerProvider||new KP,e.getLogLevel(r));var u=(s=this.config)===null||s===void 0?void 0:s.internalInstanceNameSuffix;if(this.isWebExperiment=u==="web",this.poller=new RP(function(){return n.doFlags()},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var c in this.config.initialVariants)this.config.initialVariants[c]=ch(this.config.initialVariants[c]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new nO(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new iO(this.config.exposureTrackingProvider)),this.integrationManager=new $P(this.config,this);var l=new VP(this.config.httpClient||sh);this.flagApi=new OP(this.apiKey,this.config.flagsServerUrl,l),this.evaluationApi=new PP(this.apiKey,this.config.serverUrl,l);var p,d=u?"".concat(this.config.instanceName,"-").concat(u):this.config.instanceName;this.isWebExperiment?p=new lh:p=new ho,this.variants=XP(this.apiKey,d,p),this.flags=JP(this.apiKey,d,p),this.fetchVariantsOptions=YP(this.apiKey,d,p);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch{}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(t){return nt(this,void 0,void 0,function(){var r,n,i,o;return it(this,function(a){switch(a.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(t),a.label=1;case 1:return a.trys.push([1,6,,7]),r=this.doFlags(),n=(o=this.config.fetchOnStart)!==null&&o!==void 0?o:!0,n?[4,Promise.all([this.fetch(t),r])]:[3,3];case 2:return a.sent(),[3,5];case 3:return[4,r];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:if(i=a.sent(),this.config.throwOnError)throw i;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(){return nt(this,arguments,void 0,function(t,r){var n;return t===void 0&&(t=this.user),it(this,function(i){switch(i.label){case 0:this.setUser(t||{}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchInternal(t,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,r)];case 2:return i.sent(),[3,4];case 3:if(n=i.sent(),this.config.throwOnError)throw n;return n instanceof Ka?this.logger.debug(n):this.logger.error(n),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(t,r){var n,i;if(!this.apiKey)return{value:void 0};var o=this.variantAndSource(t,r);return this.config.automaticExposureTracking&&this.exposureInternal(t,o),this.logger.debug("[Experiment] variant for ".concat(t," is ").concat(((n=o.variant)===null||n===void 0?void 0:n.key)||((i=o.variant)===null||i===void 0?void 0:i.value))),o.variant||{}}
vendor: 10,816 bytes, line 38
38,e.prototype.exposure=function(t){var r=this.variantAndSource(t);this.exposureInternal(t,r)},e.prototype.all=function(){if(!this.apiKey)return{};var t=this.evaluate();for(var r in t){var n=this.flags.get(r);Ll(n)||delete t[r]}return Ee(Ee(Ee({},this.secondaryVariants()),this.sourceVariants()),t)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch{}},e.prototype.getUser=function(){var t;if(!this.user)return this.user;if(!((t=this.user)===null||t===void 0)&&t.user_properties){var r=Ee({},this.user.user_properties);return Ee(Ee({},this.user),{user_properties:r})}else return Ee({},this.user)},e.prototype.setUser=function(t){var r;if(!t){this.user=null;return}if(!((r=this.user)===null||r===void 0)&&r.user_properties){var n=Ee({},t.user_properties);this.user=Ee(Ee({},t),{user_properties:n})}else this.user=Ee({},t)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(t){return this.userProvider=t,this},e.prototype.mergeInitialFlagsWithStorage=function(){var t=this;if(this.config.initialFlags){var r=JSON.parse(this.config.initialFlags);r.forEach(function(n){t.flags.get(n.key)||t.flags.put(n.key,n)})}},e.prototype.evaluate=function(t){var r,n,i=this.addContext(this.user),o=mP(this.flags.getAll(),t),a=rO(i),s=this.engine.evaluate(a,o),u={};try{for(var c=ar(Object.keys(s)),l=c.next();!l.done;l=c.next()){var p=l.value;u[p]=Nl(s[p])}}catch(d){r={error:d}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return u},e.prototype.variantAndSource=function(t,r){var n={};this.config.source===rr.LocalStorage?n=this.localStorageVariantAndSource(t,r):this.config.source===rr.InitialVariants&&(n=this.initialVariantsVariantAndSource(t,r));var i=this.flags.get(t);return(Ll(i)||!n.variant&&i)&&(n=this.localEvaluationVariantAndSource(t,i,r)),n},e.prototype.localEvaluationVariantAndSource=function(t,r,n){var i,o={},a=this.evaluate([r.key])[t],s=Ze.LocalEvaluation,u=(i=a?.metadata)===null||i===void 0?void 0:i.default;if(!Ut(a)&&!u)return{variant:gt(a),source:s,hasDefaultVariant:!1};if(u&&(o={variant:gt(a),source:s,hasDefaultVariant:!0}),!Ut(n))return{variant:gt(n),source:Ze.FallbackInline,hasDefaultVariant:o.hasDefaultVariant};var c=this.config.initialVariants[t];if(!Ut(c))return{variant:gt(c),source:Ze.SecondaryInitialVariants,hasDefaultVariant:o.hasDefaultVariant};var l=gt(this.config.fallbackVariant),p={variant:l,source:Ze.FallbackConfig,hasDefaultVariant:o.hasDefaultVariant};return Xo(l)?o:p},e.prototype.localStorageVariantAndSource=function(t,r){var n,i={},o=this.variants.get(t),a=(n=o?.metadata)===null||n===void 0?void 0:n.default;if(!Ut(o)&&!a)return{variant:gt(o),source:Ze.LocalStorage,hasDefaultVariant:!1};if(a&&(i={variant:gt(o),source:Ze.LocalStorage,hasDefaultVariant:!0}),!Ut(r))return{variant:gt(r),source:Ze.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var s=this.config.initialVariants[t];if(!Ut(s))return{variant:gt(s),source:Ze.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=gt(this.config.fallbackVariant),c={variant:u,source:Ze.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return Xo(u)?i:c},e.prototype.initialVariantsVariantAndSource=function(t,r){var n,i={},o=this.config.initialVariants[t];if(!Ut(o))return{variant:gt(o),source:Ze.InitialVariants,hasDefaultVariant:!1};var a=this.variants.get(t),s=(n=a?.metadata)===null||n===void 0?void 0:n.default;if(!Ut(a)&&!s)return{variant:gt(a),source:Ze.LocalStorage,hasDefaultVariant:!1};if(s&&(i={variant:gt(a),source:Ze.LocalStorage,hasDefaultVariant:!0}),!Ut(r))return{variant:gt(r),source:Ze.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var u=gt(this.config.fallbackVariant),c={variant:u,source:Ze.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return Xo(u)?i:c},e.prototype.fetchInternal=function(t,r,n,i){return nt(this,void 0,void 0,function(){var o,a,s;return it(this,function(u){switch(u.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.logger.debug("[Experiment] Fetch all: retry=".concat(n)),n&&this.stopRetries(),u.label=1;case 1:return u.trys.push([1,4,,5]),[4,this.doFetch(t,r,Ee({trackingOption:(s=this.fetchVariantsOptions.get())===null||s===void 0?void 0:s.trackingOption},i))];case 2:return o=u.sent(),[4,this.storeVariants(o,i)];case 3:return u.sent(),[2,o];case 4:throw a=u.sent(),n&&this.shouldRetryFetch(a)&&this.startRetries(t,i),a;case 5:return[2]}})})},e.prototype.setTracksAssignment=function(t){return nt(this,void 0,void 0,function(){return it(this,function(r){return this.fetchVariantsOptions.put(Ee(Ee({},this.fetchVariantsOptions.get()||{}),{trackingOption:t?"track":"no-track"})),this.fetchVariantsOptions.store(),[2]})})},e.prototype.cleanUserPropsForFetch=function(t){var r=Ee({},t);return delete r.cookie,r},e.prototype.doFetch=function(t,r,n){return nt(this,void 0,void 0,function(){var i,o,a,s,u,c,l;return it(this,function(p){switch(p.label){case 0:return[4,this.addContextOrWait(t)];case 1:return t=p.sent(),t=this.cleanUserPropsForFetch(t),this.logger.debug("[Experiment] Fetch variants for user: ",t),[4,this.evaluationApi.getVariants(t,Ee({timeoutMillis:r},n))];case 2:i=p.sent(),o={};try{for(a=ar(Object.keys(i)),s=a.next();!s.done;s=a.next())u=s.value,o[u]=Nl(i[u])}catch(d){c={error:d}}finally{try{s&&!s.done&&(l=a.return)&&l.call(a)}finally{if(c)throw c.error}}return this.logger.debug("[Experiment] Received variants: ",o),[2,o]}})})},e.prototype.doFlags=function(){return nt(this,void 0,void 0,function(){var t,r,n;return it(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),t=void 0,this.isWebExperiment?[4,this.addContextOrWait(this.getUser())]:[3,2];case 1:t=i.sent(),i.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:Dl,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:t?.user_id||t?.device_id?{user_id:t?.user_id,device_id:t?.device_id}:void 0})];case 3:return r=i.sent(),this.flags.clear(),this.flags.putAll(r),[3,5];case 4:if(n=i.sent(),n instanceof Ka){if(this.logger.debug(n),this.config.throwOnError)throw n}else throw n;return[3,5];case 5:try{this.flags.store()}catch{}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(t,r){return nt(this,void 0,void 0,function(){var n,i,o,a,a;return it(this,function(s){n=r&&r.flagKeys?r.flagKeys:[],n.length===0&&this.variants.clear(),i=function(u){n=n.filter(function(c){return c!==u}),o.variants.put(u,t[u])},o=this;for(a in t)i(a);for(a in n)this.variants.remove(a);try{this.variants.store()}catch{}return this.logger.debug("[Experiment] Stored variants: ",t),[2]})})},e.prototype.startRetries=function(t,r){return nt(this,void 0,void 0,function(){var n=this;return it(this,function(i){return this.logger.debug("[Experiment] Retry fetch"),this.retriesBackoff=new tO(aO,sO,uO,cO),this.retriesBackoff.start(function(){return nt(n,void 0,void 0,function(){return it(this,function(o){switch(o.label){case 0:return[4,this.fetchInternal(t,oO,!1,r)];case 1:return o.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(t){var r,n=(r=this.userProvider)===null||r===void 0?void 0:r.getUser(),i=this.integrationManager.getUser(),o=Ee(Ee(Ee({},n?.user_properties),i.user_properties),t?.user_properties);return Ee(Ee(Ee(Ee({library:"experiment-js-client/".concat(Dl)},n),i),t),{user_properties:o})},e.prototype.addContextOrWait=function(t){return nt(this,void 0,void 0,function(){return it(this,function(r){switch(r.label){case 0:return[4,this.integrationManager.ready()];case 1:return r.sent(),[2,this.addContext(t)]}})})},e.prototype.sourceVariants=function(){if(this.config.source==rr.LocalStorage)return this.variants.getAll();if(this.config.source==rr.InitialVariants)return this.config.initialVariants},e.prototype.secondaryVariants=function(){if(this.config.source==rr.LocalStorage)return this.config.initialVariants;if(this.config.source==rr.InitialVariants)return this.variants.getAll()},e.prototype.exposureInternal=function(t,r){var n,i,o,a,s,u,c,l,p,d=(o=(i=(n=r.variant)===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i.trackExposure)!==null&&o!==void 0?o:!0;if(d){this.legacyExposureInternal(t,r.variant,r.source);var f={flag_key:t},h=xl(r.source);if(!(h&&!r.hasDefaultVariant)){!((a=r.variant)===null||a===void 0)&&a.expKey&&(f.experiment_key=(s=r.variant)===null||s===void 0?void 0:s.expKey);var m=(u=r.variant)===null||u===void 0?void 0:u.metadata;if(!h&&!m?.default&&(!((c=r.variant)===null||c===void 0)&&c.key?f.variant=r.variant.key:!((l=r.variant)===null||l===void 0)&&l.value&&(f.variant=r.variant.value)),m&&(f.metadata=m),this.isWebExperiment&&(f.time=Date.now()),this.isWebExperiment){var g=Hr();if(g?.location)try{var E=g.location.href;f.metadata.url=E.split("?")[0]||""}catch{}}var w=this.addContext(this.getUser());(p=this.userSessionExposureTracker)===null||p===void 0||p.track(f,w),this.integrationManager.track(f)}}},e.prototype.legacyExposureInternal=function(t,r,n){var i,o,a,s,u;if(this.analyticsProvider){var c=this.addContext(this.getUser()),l=ZP(c,t,r,n);xl(n)||!r?.value?(o=(i=this.analyticsProvider)===null||i===void 0?void 0:i.unsetUserProperty)===null||o===void 0||o.call(i,l):r?.value&&((s=(a=this.analyticsProvider)===null||a===void 0?void 0:a.setUserProperty)===null||s===void 0||s.call(a,l),(u=this.analyticsProvider)===null||u===void 0||u.track(l))}},e.getLogLevel=function(t){var r;return t.debug===!0?Vt.Debug:(r=t.logLevel)!==null&&r!==void 0?r:Vt.Error},e.prototype.shouldRetryFetch=function(t){return t instanceof ah?t.statusCode<400||t.statusCode>=500||t.statusCode===429:!0},e.prototype.addPlugin=function(t){t.type==="integration"&&this.integrationManager.setIntegration(t)},e})(),pO=(function(){function e(t,r){var n,i,o;this.globalScope=Hr(),this.userAgent=typeof((n=this.globalScope)===null||n===void 0?void 0:n.navigator)<"u"?(i=this.globalScope)===null||i===void 0?void 0:i.navigator.userAgent:void 0,this.ua=new DP.UAParser(this.userAgent).getResult(),this.localStorage=new ho,this.sessionStorage=new lh,this.userProvider=t,this.apiKey=r,this.storageKey="EXP_".concat((o=this.apiKey)===null||o===void 0?void 0:o.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var t,r,n,i,o,a=((t=this.userProvider)===null||t===void 0?void 0:t.getUser())||{};return Ee({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:(n=(r=this.ua.device)===null||r===void 0?void 0:r.type)!==null&&n!==void 0?n:"desktop",referring_url:(o=(i=this.globalScope)===null||i===void 0?void 0:i.document)===null||o===void 0?void 0:o.referrer.replace(/\/$/,""),cookie
38:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},a)},e.prototype.getLanguage=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(t){var r,n;return[(r=t.browser)===null||r===void 0?void 0:r.name,(n=t.browser)===null||n===void 0?void 0:n.major].filter(function(i){return i!=null}).join(" ")},e.prototype.getDeviceModel=function(t){var r;return(r=t.os)===null||r===void 0?void 0:r.name},e.prototype.getBrowser=function(t){var r,n=(r=t.browser)===null||r===void 0?void 0:r.name;return n?.includes("Chrom")&&(n="Chrome"),n?.includes("Firefox")&&(n="Firefox"),n?.includes("Safari")&&(n="Safari"),n?.includes("Edge")&&(n="Edge"),n?.includes("Opera")&&(n="Opera"),n},e.prototype.getCookie=function(){var t,r,n,i,o;if(!((r=(t=this.globalScope)===null||t===void 0?void 0:t.document)===null||r===void 0)&&r.cookie)return Object.fromEntries((o=(i=(n=this.globalScope)===null||n===void 0?void 0:n.document)===null||i===void 0?void 0:i.cookie)===null||o===void 0?void 0:o.split("; ").map(function(a){return a.split("=")}))},e.prototype.getLandingUrl=function(){var t,r;try{var n=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return n.landing_url||(n.landing_url=(r=(t=this.globalScope)===null||t===void 0?void 0:t.location)===null||r===void 0?void 0:r.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(n))),n.landing_url}catch{return}},e.prototype.getFirstSeen=function(){try{var t=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return t.first_seen||(t.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(t))),t.first_seen}catch{return}},e.prototype.getUrlParam=function(){var t,r,n;if(this.globalScope){var i={};try{var o=new URL(this.globalScope.location.href);try{for(var a=ar(o.searchParams),s=a.next();!s.done;s=a.next()){var u=dt(s.value,2),c=u[0],l=u[1];i[c]=Lt(Lt([],dt((n=i[c])!==null&&n!==void 0?n:[]),!1),dt(l.split(",")),!1)}}catch(p){t={error:p}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}catch{return}return Object.entries(i).reduce(function(p,d){var f=dt(d,2),h=f[0],m=f[1];return p[h]=m.length==1?m[0]:m,p},{})}},e})();rt.experimentInstances={};var Hl=rt.experimentInstances,hO=function(e,t){return fh(e,t)},vO=function(e,t){var r=function(){return new MP(e,Lf.getInstance(dh(t)),1e4)};return fh(e,t,r)},dh=function(e){return e?.instanceName||Jr.instanceName},mO=function(e,t){var r=dh(t),n=t?.internalInstanceNameSuffix;return n?"".concat(r,".").concat(e,".").concat(n):"".concat(r,".").concat(e)},gO=function(e,t){return new fO(e,Ee(Ee({},t),{userProvider:new pO(t?.userProvider,e)}))},fh=function(e,t,r){var n=mO(e,t),i=Hl[n];return i||(i=gO(e,t),r&&i.addPlugin(r()),Hl[n]=i,i)},yO={initialize:hO,initializeWithAmplitudeAnalytics:vO};const bO=Be(()=>{const e=er();if(!e.public.amplitudeApiKey)return console.log("no amplitude"),{provide:{experiment:null,experimentReady:Promise.resolve(),amplitude:{identifyUser:()=>{console.warn("Amplitude not initialized")}}}};Bp(e.public.amplitudeApiKey.toString(),void 0,{transport:"beacon",autocapture:{sessions:!0,pageViews:!0,formInteractions:!1,fileDownloads:!1,elementInteractions:!1}});const t=yO.initializeWithAmplitudeAnalytics(e.public.amplitudeExperimentDeploymentKey.toString()),r=Promise.race([t.fetch(),new Promise((n,i)=>setTimeout(()=>i(new Error("Experiment fetch timeout")),2e3))]).then(()=>{console.log("Experiment fetched successfully")}).catch(n=>{console.warn("Experiment fetch failed or timed out:",n)});{const n=()=>{Vp("beacon"),Up()};window.addEventListener("pagehide",n)}return{provide:{experiment:t,experimentReady:r,amplitude:{...eP,identifyUser:(n,i)=>{if(!n||typeof n!="string"){console.error("Invalid userId:",n);return}jp(n);const o=new an;i&&Object.entries(i).forEach(([a,s])=>{s!=null&&(typeof s=="object"?o.set(a,JSON.stringify(s)):o.set(a,s))}),Fp(o)}}}}}),_O=Be(()=>{const t=er().public.appsflyerWebKey;if(!t)return;(function(d,f,h,m,g,E,w){d.AppsFlyerSdkObject=g,d.AF=d.AF||function(){(d.AF.q=d.AF.q||[]).push([Date.now()].concat(Array.prototype.slice.call(arguments)))},d.AF.id=d.AF.id||w,d.AF.plugins={}})(window,document,"script",0,"AF","banners",{banners:{key:t}});const r=()=>{if(document.querySelector('script[src^="https://websdk.appsflyersdk.com"]'))return;const d=document.createElement("script");d.async=!0,d.src="https://websdk.appsflyersdk.com?st=banners&af_id="+t;const f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(d,f)};document.readyState==="complete"?typeof window.requestIdleCallback=="function"?window.requestIdleCallback(r,{timeout:2e3}):setTimeout(r,0):window.addEventListener("load",()=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(r,{timeout:2e3}):setTimeout(r,0)},{once:!0});const n=async()=>{for(let d=0;d<20;d++){const f=$a();if(f)return f;await new Promise(h=>setTimeout(h,50))}return $a()};let i,o=!1,a=null;const s=d=>{document.documentElement.style.setProperty("--smart-banner-height",`${d}px`)},u=async()=>{for(let d=0;d<40;d++){const f=document.getElementById("smart-banner");if(f){s(f.getBoundingClientRect().height),a?.disconnect(),a=new ResizeObserver(h=>{for(const m of h)s(m.contentRect.height)}),a.observe(f);return}await new Promise(h=>setTimeout(h,50))}},c=()=>{document.querySelectorAll("#smart-banner").forEach(d=>{const f=d.previousElementSibling;f instanceof HTMLElement&&f.style.height==="128px"&&f.remove(),d.remove()}),a?.disconnect(),a=null,s(0)},l=d=>/^\/voice-ai-phone(-\d+)?\/?$/.test(d),p=()=>{c(),!l(window.location.pathname)&&(window.AF?.("banners","showBanner",i),u())};n().then(d=>{d&&(i={additionalParams:{amplitude_device_id:d}}),p(),o=!0}),Tt().afterEach(d=>{if(o){if(l(d.path)){c();return}p()}})});var Jo={exports:{}},Ul;function EO(){return Ul||(Ul=1,(function(e,t){(function(r){e.exports=r()})(function(){var r=["navigation","request","process","log","user","state","error","manual"],n=function(v,y,_){for(var b=_,S=0,I=v.length;S<I;S++)b=y(b,v[S],S,v);return b},i=function(v,y){return n(v,function(_,b,S,I){return y(b,S,I)?_.concat(b):_},[])},o=function(v,y){return n(v,function(_,b,S,I){return _===!0||b===y},!1)},a=function(v){return Object.prototype.toString.call(v)==="[object Array]"},s=!{toString:null}
38.propertyIsEnumerable("toString"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(v){var y=[],_;for(_ in v)Object.prototype.hasOwnProperty.call(v,_)&&y.push(_);if(!s)return y;for(var b=0,S=u.length;b<S;b++)Object.prototype.hasOwnProperty.call(v,u[b])&&y.push(u[b]);return y},l=function(v,y){return v===void 0&&(v=1),function(_){return typeof _=="number"&&parseInt(""+_,10)===_&&_>=v&&_<=y}},p=function(v){return typeof v=="function"||a(v)&&i(v,function(y){return typeof y=="function"}).length===v.length},d=function(v){return typeof v=="string"&&!!v.length},f={},h=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};f.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:d},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(v){return v===void 0||d(v)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(v){return v===void 0||d(v)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(v){return v===!0||v===!1}},enabledErrorTypes:{defaultValue:function(){return h()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(v){if(typeof v!="object"||!v)return!1;var y=c(v),_=c(h());return!(i(y,function(b){return o(_,b)}).length<y.length||i(c(v),function(b){return typeof v[b]!="boolean"}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},endpoints:{defaultValue:function(v){return typeof v>"u"?{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}:{notify:null,sessions:null}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(v){return v&&typeof v=="object"&&d(v.notify)&&d(v.sessions)&&i(c(v),function(y){return!o(["notify","sessions"],y)}).length===0}},autoTrackSessions:{defaultValue:function(v){return!0},message:"should be true|false",validate:function(v){return v===!0||v===!1}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(v){return v===null||a(v)&&i(v,function(y){return typeof y=="string"}).length===v.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(v){return typeof v=="string"&&v.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number ≤100",validate:function(v){return l(0,100)(v)}},enabledBreadcrumbTypes:{defaultValue:function(){return r},message:"should be null or a list of available breadcrumb types ("+r.join(",")+")",validate:function(v){return v===null||a(v)&&n(v,function(y,_){return y===!1?y:o(r,_)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(v){return v===void 0||typeof v=="string"}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(v){return v===null||v&&n(c(v),function(y,_){return y&&o(["id","email","name"],_)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(v){return typeof v=="object"&&v!==null}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(v){return!v||v&&n(["debug","info","warn","error"],function(y,_){return y&&typeof v[_]=="function"},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(v){return a(v)&&v.length===i(v,function(y){return typeof y=="string"||y&&typeof y.test=="function"}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(v){return a(v)&&v.length===i(v,function(y){return y&&typeof y=="object"&&typeof y.load=="function"}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(v){return a(v)&&v.length===i(v,function(y){return y&&typeof y=="object"&&typeof y.name=="string"}).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:"should be true|false",validate:function(v){return v===!0||v===!1}},sendPayloadChecksums:{defaultValue:function(){return!1},message:"should be true|false",validate:function(v){return v===!0||v===!1}}};var m=function(v){for(var y=1;y<arguments.length;y++){var _=arguments[y];for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(v[b]=_[b])}return v},g=function(v,y){return n(v,function(_,b,S,I){return _.concat(y(b,S,I))},[])};function E(){return E=Object.assign?Object.assign.bind():function(v){for(var y=1;y<arguments.length;y++){var _=arguments[y];for(var b in _)({}).hasOwnProperty.call(_,b)&&(v[b]=_[b])}return v},E.apply(null,arguments)}var w=f.schema,T={releaseStage:m({},w.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:E({},w.appType,{defaultValue:function(){return"browser"}}),logger:m({},w.logger,{defaultValue:function(){return typeof console<"u"&&typeof console.debug=="function"?k():void 0}})},k=function(){var v={},y=console.log;return g(["debug","info","warn","error"],function(_){var b=console[_];v[_]=typeof b=="function"?b.bind(console,"[bugsnag]"):y.bind(console,"[bugsnag]")}),v},P=(function(){function v(_,b,S,I){I===void 0&&(I=new Date),this.type=S,this.message=_,this.metadata=b,this.timestamp=I}var y=v.prototype;
38return y.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},v})(),C=P,D={};(function(v,y){typeof D=="object"?D=y():v.StackFrame=y()})(this,function(){function v(X){return!isNaN(parseFloat(X))&&isFinite(X)}function y(X){return X.charAt(0).toUpperCase()+X.substring(1)}function _(X){return function(){return this[X]}}var b=["isConstructor","isEval","isNative","isToplevel"],S=["columnNumber","lineNumber"],I=["fileName","functionName","source"],O=["args"],H=["evalOrigin"],R=b.concat(S,I,O,H);function B(X){if(X)for(var ne=0;ne<R.length;ne++)X[R[ne]]!==void 0&&this["set"+y(R[ne])](X[R[ne]])}B.prototype={getArgs:function(){return this.args},setArgs:function(X){if(Object.prototype.toString.call(X)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=X},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(X){if(X instanceof B)this.evalOrigin=X;else if(X instanceof Object)this.evalOrigin=new B(X);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var X=this.getFileName()||"",ne=this.getLineNumber()||"",ye=this.getColumnNumber()||"",te=this.getFunctionName()||"";return this.getIsEval()?X?"[eval] ("+X+":"+ne+":"+ye+")":"[eval]:"+ne+":"+ye:te?te+" ("+X+":"+ne+":"+ye+")":X+":"+ne+":"+ye}},B.fromString=function(ne){var ye=ne.indexOf("("),te=ne.lastIndexOf(")"),ue=ne.substring(0,ye),Fe=ne.substring(ye+1,te).split(","),Ie=ne.substring(te+1);if(Ie.indexOf("@")===0)var Ye=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(Ie,""),Re=Ye[1],qt=Ye[2],mn=Ye[3];return new B({functionName:ue,args:Fe||void 0,fileName:Re,lineNumber:qt||void 0,columnNumber:mn||void 0})};for(var G=0;G<b.length;G++)B.prototype["get"+y(b[G])]=_(b[G]),B.prototype["set"+y(b[G])]=(function(X){return function(ne){this[X]=!!ne}})(b[G]);for(var Z=0;Z<S.length;Z++)B.prototype["get"+y(S[Z])]=_(S[Z]),B.prototype["set"+y(S[Z])]=(function(X){return function(ne){if(!v(ne))throw new TypeError(X+" must be a Number");this[X]=Number(ne)}})(S[Z]);for(var ee=0;ee<I.length;ee++)B.prototype["get"+y(I[ee])]=_(I[ee]),B.prototype["set"+y(I[ee])]=(function(X){return function(ne){this[X]=String(ne)}})(I[ee]);return B});var F={};(function(v,y){typeof F=="object"?F=y(D):v.StackGenerator=y(v.StackFrame)})(this,function(v){return{backtrace:function(_){var b=[],S=10;typeof _=="object"&&typeof _.maxStackSize=="number"&&(S=_.maxStackSize);for(var I=arguments.callee;I&&b.length<S&&I.arguments;){for(var O=new Array(I.arguments.length),H=0;H<O.length;++H)O[H]=I.arguments[H];/function(?:\s+([\w$]+))+\s*\(/.test(I.toString())?b.push(new v({functionName:RegExp.$1||void 0,args:O})):b.push(new v({args:O}));try{I=I.caller}catch{break}}return b}}});var $={};(function(v,y){typeof $=="object"?$=y(D):v.ErrorStackParser=y(v.StackFrame)})(this,function(y){var _=/(^|@)\S+:\d+/,b=/^\s*at .*(\S+:\d+|\(native\))/m,S=/^(eval@)?(\[native code])?$/;return{parse:function(O){if(typeof O.stacktrace<"u"||typeof O["opera#sourceloc"]<"u")return this.parseOpera(O);if(O.stack&&O.stack.match(b))return this.parseV8OrIE(O);if(O.stack)return this.parseFFOrSafari(O);throw new Error("Cannot parse given Error object")},extractLocation:function(O){if(O.indexOf(":")===-1)return[O];var H=/(.+?)(?::(\d+))?(?::(\d+))?$/,R=H.exec(O.replace(/[()]/g,""));return[R[1],R[2]||void 0,R[3]||void 0]},parseV8OrIE:function(O){var H=O.stack.split(` 39`).filter(function(R){return!!R.match(b)},this);return H.map(function(R){R.indexOf("(eval ")>-1&&(R=R.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var B=R.replace(/^\s+/,"").replace(/\(eval code/g,"("),G=B.match(/ (\((.+):(\d+):(\d+)\)$)/);B=G?B.replace(G[0],""):B;var Z=B.split(/\s+/).slice(1),ee=this.extractLocation(G?G[1]:Z.pop()),X=Z.join(" ")||void 0,ne=["eval","<anonymous>"].indexOf(ee[0])>-1?void 0:ee[0];return new y({functionName:X,fileName:ne,lineNumber:ee[1],columnNumber:ee[2],source:R})},this)},parseFFOrSafari:function(O){var H=O.stack.split(` 40`).filter(function(R){return!R.match(S)},this);return H.map(function(R){if(R.indexOf(" > eval")>-1&&(R=R.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),R.indexOf("@")===-1&&R.indexOf(":")===-1)return new y({functionName:R});var B=/((.*".+"[^@]*)?[^@]*)(?:@)/,G=R.match(B),Z=G&&G[1]?G[1]:void 0,ee=this.extractLocation(R.replace(B,""));return new y({functionName:Z,fileName:ee[0],lineNumber:ee[1],columnNumber:ee[2],source:R})},this)},parseOpera:function(O){return!O.stacktrace||O.message.indexOf(` 41`)>-1&&O.message.split(` 42`).length>O.stacktrace.split(` 43`).length?this.parseOpera9(O):O.stack?this.parseOpera11(O):this.parseOpera10(O)},parseOpera9:function(O){for(var H=/Line (\d+).*script (?:in )?(\S+)/i,R=O.message.split(` 44`),B=[],G=2,Z=R.length;G<Z;G+=2){var ee=H.exec(R[G]);ee&&B.push(new y({fileName:ee[2],lineNumber:ee[1],source:R[G]}))}return B},parseOpera10:function(O){for(var H=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,R=O.stacktrace.split(` 45`),B=[],G=0,Z=R.length;G<Z;G+=2){var ee=H.exec(R[G]);ee&&B.push(new y({functionName:ee[3]||void 0,fileName:ee[2],lineNumber:ee[1],source:R[G]}))}return B},parseOpera11:function(O){var H=O.stack.split(` 46`).filter(function(R){return!!R.match(_)&&!R.match(/^Error created at/)},this);return H.map(function(R){var B=R.split("@"),G=this.extractLocation(B.pop()),Z=B.shift()||"",ee=Z.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,X;Z.match(/\(([^)]*)\)/)&&(X=Z.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var ne=X===void 0||X==="[arguments not available]"?void 0:X.split(",");return new y({functionName:ee,args:ne,fileName:G[0],lineNumber:G[1],columnNumber:G[2],source:R})},this)}}});var U=$,N=function(v,y,_,b){var S=b&&b.redactedKeys?b.redactedKeys:[],I=b&&b.redactedPaths?b.redactedPaths:[];return JSON.stringify(ke(v,S,I),y,_)},re=20,ae=25e3,ie=8,Y="...";function ge(v){return v instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(v))}function xe(v){return"[Throws: "+(v?v.message:"?")+"]"}function qe(v,y){for(var _=0,b=v.length;_<b;_++)if(v[_]===y)return!0;return!1}function ze(v,y){for(var _=0,b=v.length;_<b;_++)if(y.indexOf(v[_])===0)return!0;return!1}function We(v,y){for(var _=0,b=v.length;_<b;_++)if(typeof v[_]=="string"&&v[_].toLowerCase()===y.toLowerCase()||v[_]&&typeof v[_].test=="function"&&v[_].test(y))return!0;return!1}function tt(v){return Object.prototype.toString.call(v)==="[object Array]"}function Ke(v,y){try{return v[y]}catch(_){return xe(_)}}function ke(v,y,_){var b=[],S=0;function I(O,H){function R(){return H.length>ie&&S>ae}if(S++,H.length>re||R())return Y;if(O===null||typeof O!="object")return O;
46if(qe(b,O))return"[Circular]";if(b.push(O),typeof O.toJSON=="function")try{S--;var B=I(O.toJSON(),H);return b.pop(),B}catch(ue){return xe(ue)}var G=ge(O);if(G){S--;var Z=I({name:O.name,message:O.message},H);return b.pop(),Z}if(tt(O)){for(var ee=[],X=0,ne=O.length;X<ne;X++){if(R()){ee.push(Y);break}ee.push(I(O[X],H.concat("[]")))}return b.pop(),ee}var ye={};try{for(var te in O)if(Object.prototype.hasOwnProperty.call(O,te)){if(ze(_,H.join("."))&&We(y,te)){ye[te]="[REDACTED]";continue}if(R()){ye[te]=Y;break}ye[te]=I(Ke(O,te),H.concat(te))}}catch{}return b.pop(),ye}return I(v,[])}function Se(v,y,_,b){if(typeof _=="string"){b===void 0?b=null:b!==null&&typeof b!="string"&&(b=N(b));var S=y[_];if(typeof S=="number"){v[S]={name:_,variant:b};return}v.push({name:_,variant:b}),y[_]=v.length-1}}function vt(v,y,_){if(a(y)){for(var b=0;b<y.length;++b){var S=y[b];S===null||typeof S!="object"||Se(v,_,S.name,S.variant)}return v}}function z(v){return g(i(v,Boolean),function(y){var _=y.name,b=y.variant,S={featureFlag:_};return typeof b=="string"&&(S.variant=b),S})}function x(v,y,_){var b=y[_];typeof b=="number"&&(v[b]=null,delete y[_])}var j={add:Se,clear:x,merge:vt,toEventApi:z},V=function(v){return!!v&&(!!v.stack||!!v.stacktrace||!!v["opera#sourceloc"])&&typeof(v.stack||v.stacktrace||v["opera#sourceloc"])=="string"&&v.stack!==v.name+": "+v.message},K=me;function me(v){switch(Object.prototype.toString.call(v)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return v instanceof Error}}var se=K,le=function(v,y,_,b){var S;if(y){var I;if(_===null)return Te(v,y);typeof _=="object"&&(I=_),typeof _=="string"&&(I=(S={},S[_]=b,S)),I&&(y==="__proto__"||y==="constructor"||y==="prototype"||(v[y]||(v[y]={}),v[y]=m({},v[y],I)))}},oe=function(v,y,_){if(typeof y=="string"){if(!_)return v[y];if(v[y])return v[y][_]}},Te=function(v,y,_){if(typeof y=="string"){if(!_){delete v[y];return}y==="__proto__"||y==="constructor"||y==="prototype"||v[y]&&delete v[y][_]}},ct={add:le,get:oe,clear:Te};function Xe(){return Xe=Object.assign?Object.assign.bind():function(v){for(var y=1;y<arguments.length;y++){var _=arguments[y];for(var b in _)({}).hasOwnProperty.call(_,b)&&(v[b]=_[b])}return v},Xe.apply(null,arguments)}var Ht=(function(){function v(_,b,S,I,O){S===void 0&&(S=[]),I===void 0&&(I=sr()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=O,this._handledState=I,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this.errors=[de(_,b,v.__type,S)]}var y=v.prototype;return y.addMetadata=function(b,S,I){return ct.add(this._metadata,b,S,I)},y.setTraceCorrelation=function(b,S){typeof b=="string"&&(this._correlation=Xe({traceId:b},typeof S=="string"?{spanId:S}:{}))},y.getMetadata=function(b,S){return ct.get(this._metadata,b,S)},y.clearMetadata=function(b,S){return ct.clear(this._metadata,b,S)},y.addFeatureFlag=function(b,S){S===void 0&&(S=null),j.add(this._features,this._featuresIndex,b,S)},y.addFeatureFlags=function(b){j.merge(this._features,b,this._featuresIndex)},y.getFeatureFlags=function(){return j.toEventApi(this._features)},y.clearFeatureFlag=function(b){j.clear(this._features,this._featuresIndex,b)},y.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},y.getUser=function(){return this._user},y.setUser=function(b,S,I){this._user={id:b,email:S,name:I}},y.toJSON=function(){return{payloadVersion:"4",exceptions:g(this.errors,function(b){return m({},b,{message:b.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},v})(),ri=function(v){var y={file:v.fileName,method:St(v.functionName),lineNumber:v.lineNumber,columnNumber:v.columnNumber,code:void 0,inProject:void 0};return y.lineNumber>-1&&!y.file&&!y.method&&(y.file="global code"),y},St=function(v){return/^global code$/i.test(v)?"global code":v},sr=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},Er=function(v){return typeof v=="string"?v:""};function de(v,y,_,b){return{errorClass:Er(v),errorMessage:Er(y),type:_,stacktrace:n(b,function(S,I){var O=ri(I);try{return JSON.stringify(O)==="{}"?S:S.concat(O)}catch{return S}},[])}}
46function _e(v){return v.cause?[v].concat(_e(v.cause)):[v]}Ht.getStacktrace=function(v,y,_){if(V(v))return U.parse(v).slice(y);try{return i(F.backtrace(),function(b){return(b.functionName||"").indexOf("StackGenerator$$")===-1}).slice(1+_)}catch{return[]}},Ht.create=function(v,y,_,b,S,I){S===void 0&&(S=0);var O=De(v,y,b,I),H=O[0],R=O[1],B;try{var G=Ht.getStacktrace(H,R>0?1+R+S:0,1+S);B=new Ht(H.name,H.message,G,_,v)}catch{B=new Ht(H.name,H.message,[],_,v)}if(H.name==="InvalidError"&&B.addMetadata(""+b,"non-error parameter",fe(v)),H.cause){var Z,ee=_e(H).slice(1),X=g(ee,function(ne){var ye=se(ne)&&V(ne)?U.parse(ne):[],te=De(ne,!0,"error cause"),ue=te[0];return ue.name==="InvalidError"&&B.addMetadata("error cause",fe(ne)),de(ue.name,ue.message,Ht.__type,ye)});(Z=B.errors).push.apply(Z,X)}return B};var fe=function(v){return v===null?"null":v===void 0?"undefined":v},De=function(v,y,_,b){var S,I=0,O=function(H){var R=_==="error cause"?"was":"received";b&&b.warn(_+" "+R+' a non-error: "'+H+'"');var B=new Error(_+" "+R+' a non-error. See "'+_+'" tab for more detail.');return B.name="InvalidError",B};if(!y)se(v)?S=v:(S=O(typeof v),I+=2);else switch(typeof v){case"string":case"number":case"boolean":S=new Error(String(v)),I+=1;break;case"function":S=O("function"),I+=2;break;case"object":v!==null&&se(v)?S=v:v!==null&&ve(v)?(S=new Error(v.message||v.errorMessage),S.name=v.name||v.errorClass,I+=1):(S=O(v===null?"null":"unsupported object"),I+=2);break;default:S=O("nothing"),I+=2}if(!V(S))try{throw S}catch(H){V(H)&&(S=H,I=1)}return[S,I]};Ht.__type="browserjs";var ve=function(v){return(typeof v.name=="string"||typeof v.errorClass=="string")&&(typeof v.message=="string"||typeof v.errorMessage=="string")},ur=Ht,Ae=function(v,y,_){var b=0,S=function(){if(b>=v.length)return _(null,!0);y(v[b],function(I,O){if(I)return _(I);if(O===!1)return _(null,!1);b++,S()})};S()},wr=function(v,y,_,b){var S=function(I,O){if(typeof I!="function")return O(null);try{if(I.length!==2){var H=I(y);return H&&typeof H.then=="function"?H.then(function(R){return setTimeout(function(){return O(null,R)})},function(R){setTimeout(function(){return _(R),O(null,!0)})}):O(null,H)}I(y,function(R,B){if(R)return _(R),O(null);O(null,B)})}catch(R){_(R),O(null)}};Ae(v,S,b)},At=function(v,y,_,b){for(var S=!1,I=v.slice();!S&&I.length;)try{S=I.pop()(y)===!1}catch(O){b.error("Error occurred in "+_+" callback, continuing anyway…"),b.error(O)}return S},Ur=function(y,_){var b="000000000"+y;return b.substr(b.length-_)},hn=typeof window=="object"?window:self,eu=0;for(var zh in hn)Object.hasOwnProperty.call(hn,zh)&&eu++;var Wh=navigator.mimeTypes?navigator.mimeTypes.length:0,Kh=Ur((Wh+navigator.userAgent.length).toString(36)+eu.toString(36),4),tu=function(){return Kh},Xh=function(y){return typeof y=="string"&&/^c[a-z0-9]{20,32}$/.test(y)},vn=0,vo=4,ni=36,ru=Math.pow(ni,vo);function nu(){return Ur((Math.random()*ru<<0).toString(ni),vo)}function Jh(){return vn=vn<ru?vn:0,vn++,vn-1}function mo(){var v="c",y=new Date().getTime().toString(ni),_=Ur(Jh().toString(ni),vo),b=tu(),S=nu()+nu();return v+y+_+b+S}mo.fingerprint=tu,mo.isCuid=Xh;var iu=mo,Yh=(function(){function v(){this.id=iu(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var y=v.prototype;return y.getUser=function(){return this._user},y.setUser=function(b,S,I){this._user={id:b,email:S,name:I}},y.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},y._track=function(b){this[b._handledState.unhandled?"_unhandled":"_handled"]+=1},v})(),go=Yh,Qh=j.add,Zh=j.clear,yo=j.merge,ev="00000",tv="https://notify.insighthub.smartbear.com",rv="https://sessions.insighthub.smartbear.com",cr=function(){},nv=(function(){function v(_,b,S,I){var O=this;b===void 0&&(b=f.schema),S===void 0&&(S=[]),this._notifier=I,this._config={},this._schema=b,this._delivery={sendSession:cr,sendEvent:cr},this._logger={debug:cr,info:cr,warn:cr,error:cr},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=v,this.Event=ur,this.Breadcrumb=C,this.Session=go,this._config=this._configure(_,S),g(S.concat(this._config.plugins),function(B){B&&O._loadPlugin(B)}),this._depth=1;var H=this,R=this.notify;this.notify=function(){return R.apply(H,arguments)}}var y=v.prototype;return y.addMetadata=function(b,S,I){return ct.add(this._metadata,b,S,I)},y.getMetadata=function(b,S){return ct.get(this._metadata,b,S)},y.clearMetadata=function(b,S){return ct.clear(this._metadata,b,S)},y.addFeatureFlag=function(b,S){S===void 0&&(S=null),Qh(this._features,this._featuresIndex,b,S)},y.addFeatureFlags=function(b){yo(this._features,b,this._featuresIndex)},y.clearFeatureFlag=function(b){Zh(this._features,this._featuresIndex,b)},y.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},y.getContext=function(){return this._context},y.setContext=function(b){this._context=b},y._configure=function(b,S){var I=n(S,function(B,G){return G&&G.configSchema?m({},B,G.configSchema):B},this._schema);b.endpoints||(b.sendPayloadChecksums="sendPayloadChecksums"in b?b.sendPayloadChecksums:!0);var O=n(c(I),function(B,G){var Z=I[G].defaultValue(b[G]);if(b[G]!==void 0){var ee=I[G].validate(b[G]);ee?I[G].allowPartialObject?B.config[G]=m(Z,b[G]):B.config[G]=b[G]:(B.errors[G]=I[G].message,B.config[G]=Z)}else B.config[G]=Z;return B},{errors:{},config:{}}),H=O.errors,R=O.config;if(I.apiKey){if(!R.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(R.apiKey)||(H.apiKey="should be a string of 32 hexadecimal characters"),b.endpoints===void 0&&R.apiKey.startsWith(ev)&&(
46R.endpoints={notify:tv,sessions:rv})}return this._metadata=m({},R.metadata),yo(this._features,R.featureFlags,this._featuresIndex),this._user=m({},R.user),this._context=R.context,R.logger&&(this._logger=R.logger),R.onError&&(this._cbs.e=this._cbs.e.concat(R.onError)),R.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(R.onBreadcrumb)),R.onSession&&(this._cbs.s=this._cbs.s.concat(R.onSession)),c(H).length&&this._logger.warn(iv(H,b)),R},y.getUser=function(){return this._user},y.setUser=function(b,S,I){this._user={id:b,email:S,name:I}},y._loadPlugin=function(b){var S=b.load(this);b.name&&(this._plugins["~"+b.name+"~"]=S)},y.getPlugin=function(b){return this._plugins["~"+b+"~"]},y._setDelivery=function(b){this._delivery=b(this)},y.startSession=function(){var b=new go;b.app.releaseStage=this._config.releaseStage,b.app.version=this._config.appVersion,b.app.type=this._config.appType,b._user=m({},this._user);var S=At(this._cbs.s,b,"onSession",this._logger);return S?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,b)},y.addOnError=function(b,S){S===void 0&&(S=!1),this._cbs.e[S?"unshift":"push"](b)},y.removeOnError=function(b){this._cbs.e=i(this._cbs.e,function(S){return S!==b})},y._addOnSessionPayload=function(b){this._cbs.sp.push(b)},y.addOnSession=function(b){this._cbs.s.push(b)},y.removeOnSession=function(b){this._cbs.s=i(this._cbs.s,function(S){return S!==b})},y.addOnBreadcrumb=function(b,S){S===void 0&&(S=!1),this._cbs.b[S?"unshift":"push"](b)},y.removeOnBreadcrumb=function(b){this._cbs.b=i(this._cbs.b,function(S){return S!==b})},y.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},y.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},y.leaveBreadcrumb=function(b,S,I){if(b=typeof b=="string"?b:"",I=typeof I=="string"&&o(r,I)?I:"manual",S=typeof S=="object"&&S!==null?S:{},!!b){var O=new C(b,S,I),H=At(this._cbs.b,O,"onBreadcrumb",this._logger);if(H){this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");return}this._breadcrumbs.push(O),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},y._isBreadcrumbTypeEnabled=function(b){var S=this._config.enabledBreadcrumbTypes;return S===null||o(S,b)},y.notify=function(b,S,I){I===void 0&&(I=cr);var O=ur.create(b,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(O,S,I)},y._notify=function(b,S,I){var O=this;if(I===void 0&&(I=cr),b.app=m({},b.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),b.context=b.context||this._context,b._metadata=m({},b._metadata,this._metadata),b._user=m({},b._user,this._user),b.breadcrumbs=this._breadcrumbs.slice(),yo(b._features,this._features,b._featuresIndex),this._config.enabledReleaseStages!==null&&!o(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),I(null,b);var H=b.severity,R=function(G){O._logger.error("Error occurred in onError callback, continuing anyway…"),O._logger.error(G)},B=[].concat(this._cbs.e).concat(S);wr(B,b,R,function(G,Z){if(G&&R(G),!Z)return O._logger.debug("Event not sent due to onError callback"),I(null,b);O._isBreadcrumbTypeEnabled("error")&&v.prototype.leaveBreadcrumb.call(O,b.errors[0].errorClass,{errorClass:b.errors[0].errorClass,errorMessage:b.errors[0].errorMessage,severity:b.severity},"error"),H!==b.severity&&(b._handledState.severityReason={type:"userCallbackSetSeverity"}),b.unhandled!==b._handledState.unhandled&&(b._handledState.severityReason.unhandledOverridden=!0,b._handledState.unhandled=b.unhandled),O._session&&(O._session._track(b),b._session=O._session),O._delivery.sendEvent({apiKey:b.apiKey||O._config.apiKey,notifier:O._notifier,events:[b]},function(ee){return I(ee,b)})})},v})(),iv=function(v,y){var _=new Error(`Invalid configuration 47`+g(c(v),function(b){return" - "+b+" "+v[b]+", got "+ov(y[b])}).join(` 48 49`));return _},ov=function(v){switch(typeof v){case"string":case"number":case"object":return JSON.stringify(v);default:return String(v)}},bo=nv,Fr={},ou=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];Fr.event=function(v,y){var _=N(v,null,null,{redactedPaths:ou,redactedKeys:y});return _.length>1e6&&(v.events[0]._metadata={notifier:`WARNING! 50Serialized payload was `+_.length/1e6+`MB (limit = 1MB) 51metadata was removed`},_=N(v,null,null,{redactedPaths:ou,redactedKeys:y})),_}
51,Fr.session=function(v,y){var _=N(v,null,null);return _};var _o={};_o=function(v,y){return y===void 0&&(y=window),{sendEvent:function(_,b){if(b===void 0&&(b=function(){}),v._config.endpoints.notify===null){var S=new Error("Event not sent due to incomplete endpoint configuration");return b(S)}var I=au(v._config,"notify","4",y),O=Fr.event(_,v._config.redactedKeys),H=new y.XDomainRequest;H.onload=function(){b(null)},H.onerror=function(){var R=new Error("Event failed to send");v._logger.error("Event failed to send…",R),O.length>1e6&&v._logger.warn("Event oversized ("+(O.length/1e6).toFixed(2)+" MB)"),b(R)},H.open("POST",I),setTimeout(function(){try{H.send(O)}catch(R){v._logger.error(R),b(R)}},0)},sendSession:function(_,b){if(b===void 0&&(b=function(){}),v._config.endpoints.sessions===null){var S=new Error("Session not sent due to incomplete endpoint configuration");return b(S)}var I=au(v._config,"sessions","1",y),O=new y.XDomainRequest;O.onload=function(){b(null)},O.open("POST",I),setTimeout(function(){try{O.send(Fr.session(_,v._config.redactedKeys))}catch(H){v._logger.error(H),b(H)}},0)}}};var au=function(v,y,_,b){var S=JSON.parse(JSON.stringify(new Date)),I=av(v.endpoints[y],b.location.protocol);return I+"?apiKey="+encodeURIComponent(v.apiKey)+"&payloadVersion="+_+"&sentAt="+encodeURIComponent(S)},av=_o._matchPageProtocol=function(v,y){return y==="http:"?v.replace(/^https:/,"http:"):v};function su(v,y){if(v.isSecureContext&&v.crypto&&v.crypto.subtle&&v.crypto.subtle.digest&&typeof TextEncoder=="function"){var _=new TextEncoder().encode(y);return v.crypto.subtle.digest("SHA-1",_).then(function(b){var S=Array.from(new Uint8Array(b)),I=S.map(function(O){return O.toString(16).padStart(2,"0")}).join("");return"sha1 "+I})}return Promise.resolve()}var sv=function(v,y){return y===void 0&&(y=window),{sendEvent:function(_,b){b===void 0&&(b=function(){});try{var S=v._config.endpoints.notify;if(S===null){var I=new Error("Event not sent due to incomplete endpoint configuration");return b(I)}var O=new y.XMLHttpRequest,H=Fr.event(_,v._config.redactedKeys);O.onreadystatechange=function(){if(O.readyState===y.XMLHttpRequest.DONE){var R=O.status;if(R===0||R>=400){var B=new Error("Request failed with status "+R);v._logger.error("Event failed to send…",B),H.length>1e6&&v._logger.warn("Event oversized ("+(H.length/1e6).toFixed(2)+" MB)"),b(B)}else b(null)}},O.open("POST",S),O.setRequestHeader("Content-Type","application/json"),O.setRequestHeader("Bugsnag-Api-Key",_.apiKey||v._config.apiKey),O.setRequestHeader("Bugsnag-Payload-Version","4"),O.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),v._config.sendPayloadChecksums&&typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?su(y,H).then(function(R){R&&O.setRequestHeader("Bugsnag-Integrity",R),O.send(H)}).catch(function(R){v._logger.error(R),O.send(H)}):O.send(H)}catch(R){v._logger.error(R)}},sendSession:function(_,b){b===void 0&&(b=function(){});try{var S=v._config.endpoints.sessions;if(S===null){var I=new Error("Session not sent due to incomplete endpoint configuration");return b(I)}var O=new y.XMLHttpRequest,H=Fr.session(_,v._config.redactedKeys);O.onreadystatechange=function(){if(O.readyState===y.XMLHttpRequest.DONE){var R=O.status;if(R===0||R>=400){var B=new Error("Request failed with status "+R);v._logger.error("Session failed to send…",B),b(B)}else b(null)}},O.open("POST",S),O.setRequestHeader("Content-Type","application/json"),O.setRequestHeader("Bugsnag-Api-Key",v._config.apiKey),O.setRequestHeader("Bugsnag-Payload-Version","1"),O.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),v._config.sendPayloadChecksums&&typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?su(y,H).then(function(R){R&&O.setRequestHeader("Bugsnag-Integrity",R),O.send(H)}).catch(function(R){v._logger.error(R),O.send(H)}):O.send(H)}catch(R){v._logger.error(R)}}}},uu=new Date,uv=function(){uu=new Date},cv={name:"appDuration",load:function(v){return v.addOnError(function(y){var _=new Date;y.app.duration=_-uu},!0),{reset:uv}}},lv=function(v){return v===void 0&&(v=window),{load:function(y){y.addOnError(function(_){_.context===void 0&&(_.context=v.location.pathname)},!0)}}},cu="bugsnag-anonymous-id",dv=function(v){try{var y=v.localStorage,_=y.getItem(cu);return _&&/^c[a-z0-9]{20,32}$/.test(_)||(_=iu(),y.setItem(cu,_)),_}catch{}},fv=function(v,y){return v===void 0&&(v=navigator),y===void 0&&(y=window),{load:function(_){var b={locale:v.browserLanguage||v.systemLanguage||v.userLanguage||v.language,userAgent:v.userAgent};y&&y.screen&&y.screen.orientation&&y.screen.orientation.type?b.orientation=y.screen.orientation.type:y&&y.document&&(b.orientation=y.document.documentElement.clientWidth>y.document.documentElement.clientHeight?"landscape":"portrait"),_._config.generateAnonymousId&&(b.id=dv(y)),_.addOnSession(function(S){S.device=m({},S.device,b),_._config.collectUserIp||lu(S)}),_.addOnError(function(S){S.device=m({},S.device,b,{time:new Date}),_._config.collectUserIp||lu(S)},!0)},configSchema:{generateAnonymousId:{validate:function(_){return _===!0||_===!1},defaultValue:function(){return!0},message:"should be true|false"}}}},lu=function(v){var y=v.getUser();(!y||!y.id)&&v.setUser(v.device.id)},pv=function(v){return v===void 0&&(v=window),{load:function(y){y.addOnError(function(_){_.request&&_.request.url||(_.request=m({},_.request,{url:v.location.href}))},!0)}}},hv={load:function(v){v._sessionDelegate=vv}},vv={startSession:function(v,y){var _=v;return _._session=y,_._pausedSession=null,_._config.enabledReleaseStages!==null&&!o(_._config.enabledReleaseStages,_._config.releaseStage)?(_._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),_):(_._delivery.sendSession({notifier:_._notifier,device:y.device,app:y.app,sessions:[{id:y.id,startedAt:y.startedAt,user:y._user}]}),_)},resumeSession:function(v){return v._session?v:v._pausedSession?(v._session=v._pausedSession,v._pausedSession=null,v):v.startSession()},pauseSession:function(v){v._pausedSession=v._session,v._session=null}},mv={load:function(v){v._config.collectUserIp||v.addOnError(function(y){y._user&&typeof y._user.id>"u"&&delete y._user.id,y._user=m({id:"[REDACTED]"},y._user),y.request=m({clientIp:"[REDACTED]"},y.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(v){return v===!0||v===!1}}}},du={};
51du.load=function(v){var y=/^(local-)?dev(elopment)?$/.test(v._config.releaseStage);y||!v._isBreadcrumbTypeEnabled("log")||g(gv,function(_){var b=console[_];console[_]=function(){for(var S=arguments.length,I=new Array(S),O=0;O<S;O++)I[O]=arguments[O];v.leaveBreadcrumb("Console output",n(I,function(H,R,B){var G="[Unknown value]";try{G=String(R)}catch{}if(G==="[object Object]")try{G=JSON.stringify(R)}catch{}return H["["+B+"]"]=G,H},{severity:_.indexOf("group")===0?"log":_}),"log"),b.apply(console,I)},console[_]._restore=function(){console[_]=b}})};var gv=i(["log","debug","info","warn","error"],function(v){return typeof console<"u"&&typeof console[v]=="function"}),fu=200,pu=5e5,yv=function(v,y){return v===void 0&&(v=document),y===void 0&&(y=window),{load:function(_){if(!_._config.trackInlineScripts)return;var b=y.location.href,S="",I=!!v.attachEvent,O=I?v.readyState==="complete":v.readyState!=="loading",H=function(){return v.documentElement.outerHTML};S=H();var R=v.onreadystatechange;v.onreadystatechange=function(){v.readyState==="interactive"&&(S=H(),O=!0);try{R.apply(this,arguments)}catch{}};var B=null,G=function(te){B=te},Z=function(){var te=v.currentScript||B;if(!te&&!O){var ue=v.scripts||v.getElementsByTagName("script");te=ue[ue.length-1]}return te},ee=function(te){(!O||!S)&&(S=H());var ue=["<!-- DOC START -->"].concat(S.split(` 52`)),Fe=te-1,Ie=Math.max(Fe-3,0),Ye=Math.min(Fe+3,ue.length);return n(ue.slice(Ie,Ye),function(Re,qt,mn){return Re[Ie+1+mn]=qt.length<=fu?qt:qt.substr(0,fu),Re},{})};_.addOnError(function(te){te.errors[0].stacktrace=i(te.errors[0].stacktrace,function(Re){return!/__trace__$/.test(Re.method)});var ue=te.errors[0].stacktrace[0],Fe=function(Re){return Re.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!(ue&&ue.file&&Fe(ue.file)!==Fe(b))){var Ie=Z();if(Ie){var Ye=Ie.innerHTML;te.addMetadata("script","content",Ye.length<=pu?Ye:Ye.substr(0,pu)),ue&&ue.lineNumber&&(ue.code=ee(ue.lineNumber))}}},!0);var X=g(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],function(te){return Eo(y,te,function(ue){return ye(ue,function(Fe){return{get:function(){return Fe[0]},replace:function(Ie){Fe[0]=Ie}}})})}),ne=X[0];g(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],function(te){!y[te]||!y[te].prototype||!Object.prototype.hasOwnProperty.call(y[te].prototype,"addEventListener")||(Eo(y[te].prototype,"addEventListener",function(ue){return ye(ue,hu)}),Eo(y[te].prototype,"removeEventListener",function(ue){return ye(ue,hu,!0)}))});function ye(te,ue,Fe){return Fe===void 0&&(Fe=!1),function(){var Ie=[].slice.call(arguments);try{var Ye=ue(Ie),Re=Ye.get();if(Fe&&te.apply(this,Ie),typeof Re!="function")return te.apply(this,Ie);if(Re.__trace__)Ye.replace(Re.__trace__);else{var qt=Z();Re.__trace__=function(){G(qt),ne(function(){G(null)},0);var Dv=Re.apply(this,arguments);return G(null),Dv},Re.__trace__.__trace__=Re.__trace__,Ye.replace(Re.__trace__)}}catch{}
52if(te.apply)return te.apply(this,Ie);switch(Ie.length){case 1:return te(Ie[0]);case 2:return te(Ie[0],Ie[1]);default:return te()}}}},configSchema:{trackInlineScripts:{validate:function(_){return _===!0||_===!1},defaultValue:function(){return!0},message:"should be true|false"}}}};function Eo(v,y,_){var b=v[y];if(!b)return b;var S=_(b);return v[y]=S,b}function hu(v){var y=!!v[1]&&typeof v[1].handleEvent=="function";return{get:function(){return y?v[1].handleEvent:v[1]},replace:function(_){y?v[1].handleEvent=_:v[1]=_}}}var bv=function(v){return v===void 0&&(v=window),{load:function(y){"addEventListener"in v&&y._isBreadcrumbTypeEnabled("user")&&v.addEventListener("click",function(_){var b,S;try{b=Ev(_.target),S=vu(_.target,v)}catch{b="[hidden]",S="[hidden]",y._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}y.leaveBreadcrumb("UI click",{targetText:b,targetSelector:S},"user")},!0)}}},_v=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/;function Ev(v){var y=v.textContent||v.innerText||"";return!y&&(v.type==="submit"||v.type==="button")&&(y=v.value),y=y.replace(_v,"$1"),y.length>140?y.slice(0,135)+"(...)":y}function vu(v,y){var _=[v.tagName];if(v.id&&_.push("#"+v.id),v.className&&v.className.length&&_.push("."+v.className.split(" ").join(".")),!y.document.querySelectorAll||!Array.prototype.indexOf)return _.join("");try{if(y.document.querySelectorAll(_.join("")).length===1)return _.join("")}catch{return _.join("")}if(v.parentNode.childNodes.length>1){var b=Array.prototype.indexOf.call(v.parentNode.childNodes,v)+1;_.push(":nth-child("+b+")")}return y.document.querySelectorAll(_.join("")).length===1?_.join(""):v.parentNode?vu(v.parentNode,y)+" > "+_.join(""):_.join("")}var mu={};mu=function(v){v===void 0&&(v=window);var y={load:function(_){if("addEventListener"in v&&_._isBreadcrumbTypeEnabled("navigation")){var b=function(S){return function(){return _.leaveBreadcrumb(S,{},"navigation")}};v.addEventListener("pagehide",b("Page hidden"),!0),v.addEventListener("pageshow",b("Page shown"),!0),v.addEventListener("load",b("Page loaded"),!0),v.document.addEventListener("DOMContentLoaded",b("DOMContentLoaded"),!0),v.addEventListener("load",function(){return v.addEventListener("popstate",b("Navigated back"),!0)}),v.addEventListener("hashchange",function(S){var I=S.oldURL?{from:ii(S.oldURL,v),to:ii(S.newURL,v),state:yu(v)}:{to:ii(v.location.href,v)};_.leaveBreadcrumb("Hash changed",I,"navigation")},!0),v.history.pushState&&gu(_,v.history,"pushState",v,!0),v.history.replaceState&&gu(_,v.history,"replaceState",v)}}};return y};var ii=function(v,y){var _=y.document.createElement("A");return _.href=v,""+_.pathname+_.search+_.hash},wv=function(v,y,_,b){var S=ii(v.location.href,v);return{title:_,state:y,prevState:yu(v),to:b||S,from:S}},gu=function(v,y,_,b,S){S===void 0&&(S=!1);var I=y[_];y[_]=function(O,H,R){v.leaveBreadcrumb("History "+_,wv(b,O,H,R),"navigation"),S&&typeof v.resetEventCount=="function"&&v.resetEventCount(),I.apply(y,[O,H].concat(R!==void 0?R:[]))}},yu=function(v){try{return v.history.state}catch{}},Br="request",Tv=function(v,y){v===void 0&&(v=[]),y===void 0&&(y=window);var _={load:function(b){if(!b._isBreadcrumbTypeEnabled("request"))return;var S=[b._config.endpoints.notify,b._config.endpoints.sessions].concat(v);I(),R();function I(){if(!(!("addEventListener"in y.XMLHttpRequest.prototype)||!("WeakMap"in y))){var Z=new WeakMap,ee=new WeakMap,X=y.XMLHttpRequest.prototype.open;y.XMLHttpRequest.prototype.open=function(te,ue){this&&Z.set(this,{method:te,url:ue}),X.apply(this,arguments)};var ne=y.XMLHttpRequest.prototype.send;y.XMLHttpRequest.prototype.send=function(te){var ue=this,Fe=Z.get(this);if(Fe){var Ie=ee.get(this);Ie&&(this.removeEventListener("load",Ie.load),this.removeEventListener("error",Ie.error));var Ye=new Date,Re=function(){return H(Fe.method,Fe.url,oi(Ye))},qt=function(){return O(Fe.method,Fe.url,ue.status,oi(Ye))};this.addEventListener("load",qt),this.addEventListener("error",Re),this&&ee.set(this,{load:qt,error:Re})}ne.apply(this,arguments)}}}function O(Z,ee,X,ne){if(ee===void 0){b._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");return}if(!(typeof ee=="string"&&o(S,ee.replace(/\?.*$/,"")))){var ye={status:X,method:String(Z),url:String(ee),duration:ne};X>=400?b.leaveBreadcrumb("XMLHttpRequest failed",ye,Br):b.leaveBreadcrumb("XMLHttpRequest succeeded",ye,Br)}}function H(Z,ee,X){if(ee===void 0){b._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");return}typeof ee=="string"&&o(S,ee.replace(/\?.*$/,""))||b.leaveBreadcrumb("XMLHttpRequest error",{method:String(Z),url:String(ee),duration:X},Br)}function R(){if(!(!("fetch"in y)||y.fetch.polyfill)){var Z=y.fetch;y.fetch=function(){var X=arguments,ne=arguments[0],ye=arguments[1],te,ue=null;return ne&&typeof ne=="object"?(ue=ne.url,ye&&"method"in ye?te=ye.method:ne&&"method"in ne&&(te=ne.method)):(ue=ne,ye&&"method"in ye&&(te=ye.method)),te===void 0&&(te="GET"),new Promise(function(Fe,Ie){var Ye=new Date;Z.apply(void 0,X).then(function(Re){B(Re,te,ue,oi(Ye)),Fe(Re)}
52).catch(function(Re){G(te,ue,oi(Ye)),Ie(Re)})})}}}var B=function(Z,ee,X,ne){var ye={method:String(ee),status:Z.status,url:String(X),duration:ne};Z.status>=400?b.leaveBreadcrumb("fetch() failed",ye,Br):b.leaveBreadcrumb("fetch() succeeded",ye,Br)},G=function(Z,ee,X){b.leaveBreadcrumb("fetch() error",{method:String(Z),url:String(ee),duration:X},Br)}}};return _},oi=function(v){return v&&new Date-v},Sv={load:function(v){var y=0;v.addOnError(function(_){if(y>=v._config.maxEvents)return v._logger.warn("Cancelling event send due to maxEvents per session limit of "+v._config.maxEvents+" being reached"),!1;y++}),v.resetEventCount=function(){y=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer ≤100",validate:function(v){return l(1,100)(v)}}}},wo={};wo={load:function(v){v.addOnError(function(y){var _=n(y.errors,function(b,S){return b.concat(S.stacktrace)},[]);g(_,function(b){b.file=Av(b.file)})})}};var Av=wo._strip=function(v){return typeof v=="string"?v.replace(/\?.*$/,"").replace(/#.*$/,""):v},kv=function(v,y){return v===void 0&&(v=window),y===void 0&&(y="window onerror"),{load:function(_){if(!_._config.autoDetectErrors||!_._config.enabledErrorTypes.unhandledExceptions)return;function b(I,O,H,R,B){if(H===0&&/Script error\.?/.test(I))_._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var G={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},Z;
52if(B)Z=_.Event.create(B,!0,G,y,1),bu(Z.errors[0].stacktrace,O,H,R);else if(typeof I=="object"&&I!==null&&(!O||typeof O!="string")&&!H&&!R&&!B){var ee=I.type?"Event: "+I.type:"Error",X=I.message||I.detail||"";Z=_.Event.create({name:ee,message:X},!0,G,y,1),Z.originalError=I,Z.addMetadata(y,{event:I,extraParameters:O})}else Z=_.Event.create(I,!0,G,y,1),bu(Z.errors[0].stacktrace,O,H,R);_._notify(Z)}typeof S=="function"&&S.apply(this,arguments)}var S=v.onerror;v.onerror=b}}},bu=function(v,y,_,b){v[0]||v.push({});var S=v[0];!S.file&&typeof y=="string"&&(S.file=y),!S.lineNumber&&To(_)&&(S.lineNumber=_),S.columnNumber||(To(b)?S.columnNumber=b:window.event&&To(window.event.errorCharacter)&&(S.columnNumber=window.event.errorCharacter))},To=function(v){return typeof v=="number"&&String.call(v)!=="NaN"},Pv=function(v){v===void 0&&(v=window);var y={load:function(_){if(!(!_._config.autoDetectErrors||!_._config.enabledErrorTypes.unhandledRejections)){var b=function(S){var I=S.reason,O=!1;try{S.detail&&S.detail.reason&&(I=S.detail.reason,O=!0)}catch{}var H=!_._config.reportUnhandledPromiseRejectionsAsHandled,R=_.Event.create(I,!1,{severity:"error",unhandled:H,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,_._logger);O&&g(R.errors[0].stacktrace,Ov(I)),_._notify(R,function(B){if(se(B.originalError)&&!B.originalError.stack){var G;B.addMetadata("unhandledRejection handler",(G={},G[Object.prototype.toString.call(B.originalError)]={name:B.originalError.name,message:B.originalError.message,code:B.originalError.code},G))}})};"addEventListener"in v?v.addEventListener("unhandledrejection",b):v.onunhandledrejection=function(S,I){b({detail:{reason:S,promise:I}})}}}};return y},Ov=function(v){return function(y){y.file!==v.toString()&&y.method&&(y.method=y.method.replace(/^\s+/,""))}},Tr={},Iv="Bugsnag JavaScript",Rv="8.4.0",Cv="https://github.com/bugsnag/bugsnag-js",xv=m({},f.schema,T),mt={_client:null,createClient:function(v){typeof v=="string"&&(v={apiKey:v}),v||(v={});var y=[cv,fv(),lv(),pv(),Sv,hv,mv,wo,kv(),Pv(),mu(),bv(),Tv(),du,yv()],_=new bo(v,xv,y,{name:Iv,version:Rv,url:Cv});return _._setDelivery(window.XDomainRequest?_o:sv),_._logger.debug("Loaded!"),_.leaveBreadcrumb("Bugsnag loaded",{},"state"),_._config.autoTrackSessions?_.startSession():_},start:function(v){return mt._client?(mt._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),mt._client):(mt._client=mt.createClient(v),mt._client)},isStarted:function(){return mt._client!=null}};return g(["resetEventCount"].concat(c(bo.prototype)),function(v){/^_/.test(v)||(mt[v]=function(){if(!mt._client)return console.log("Bugsnag."+v+"() was called before Bugsnag.start()");mt._client._depth+=1;var y=mt._client[v].apply(mt._client,arguments);return mt._client._depth-=1,y})}),Tr=mt,Tr.Client=bo,Tr.Event=ur,Tr.Session=go,Tr.Breadcrumb=C,Tr.default=mt,Tr})})(Jo)),Jo.exports}var Yo,Fl;function wO(){return Fl||(Fl=1,Yo=EO()),Yo}var TO=wO();const Bl=os(TO),SO=Be(e=>{const t=er(),r=t.public.bugsnagApiKey;r&&Bl.start({apiKey:r,releaseStage:t.public.appEnv||"production"}),window.bugsnag=Bl}),ph="nuxt:chunk-error-reload-at",AO=1e4;function kO(){if(typeof navigator<"u"&&navigator.onLine===!1)return!1;try{const e=parseInt(sessionStorage.getItem(ph)||"0",10);return Date.now()-e>AO}catch{return!0}}function Vl(e){if(!kO()){console.warn(`[chunk-error-reload] suppressed (${e})`);return}try{sessionStorage.setItem(ph,String(Date.now()))}catch{}console.warn(`[chunk-error-reload] reloading (${e})`),window.location.reload()}const PO=Be(e=>{window.addEventListener("vite:preloadError",()=>{Vl("vite:preloadError")}),e.hook("app:chunkError",()=>{Vl("app:chunkError")})});function OO(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)}
52)}}}const IO=Be(e=>{const t=OO();e.provide("emit",t.emit),e.provide("on",t.on)});function RO(e){window[`ga-disable-${e}`]=!0}function CO(e){const t=`ga-disable-${e}`;t in window&&delete window[t]}function hh(){const e=er().public.gtag,t=Sf(e);let r;r=ki;const n=s=>{const u=[...t];let c=u.find(l=>l.id===s);return c||(s?(c={id:s},u.unshift(c)):c=u[0]),c||console.error("[nuxt-gtag] Missing Google tag ID"),{tag:c,tags:u}},i=s=>{{const{tag:u,tags:c}=n(s);if(!u)return;window.dataLayer||Tf({tags:c}),document.head.querySelector("script[data-gtag]")||ds({script:[{src:Mn(e.url,{id:u.id}),"data-gtag":""}]})}};function o(s){{const{tag:u}=n(s);u&&RO(u.id)}}function a(s){{const{tag:u}=n(s);u&&CO(u.id)}}return{gtag:r,initialize:i,disableAnalytics:o,enableAnalytics:a}}const xO=Be(()=>{const{initialize:e}=hh(),t=()=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(()=>e(),{timeout:2e3}):setTimeout(()=>e(),0)};document.readyState==="complete"?t():window.addEventListener("load",t,{once:!0})});window.dataLayer=window.dataLayer||[];function vh(){dataLayer.push(arguments)}window.gtag=vh;const DO=Be(e=>{e._route.meta.layout!=="iframe"&&vh("js",new Date)});let LO={get:qr};window._=LO;const NO=Be(e=>{}),MO=Be(()=>(Array.prototype.at||(Array.prototype.at=function(e){if(e=Math.trunc(e)||0,e<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}),{}));var Qo={exports:{}},jl;function HO(){return jl||(jl=1,(function(e,t){(function(){var r={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax",partitioned:""},n={install:function(i,o){o&&this.config(o.expires,o.path,o.domain,o.secure,o.sameSite,o.partitioned);const a=i.config&&i.config.globalProperties;a&&(i.config.globalProperties.$cookies=this,i.provide&&i.provide("$cookies",this)),(!a||i.prototype)&&(i.prototype.$cookies=this),i.$cookies=this},config:function(i,o,a,s,u,c){r.expires=i||"1d",r.path=o?"; path="+o:"; path=/",r.domain=a?"; domain="+a:"",r.secure=s?"; Secure":"",r.sameSite=u?"; SameSite="+u:"; SameSite=Lax",r.partitioned=c?"; Partitioned":""},get:function(i){var o=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(o&&(o.substring(0,1)==="{"&&o.substring(o.length-1,o.length)==="}"||o.substring(0,1)==="["&&o.substring(o.length-1,o.length)==="]"))try{o=JSON.parse(o)}catch{return o}return o},set:function(i,o,a,s,u,c,l,p){if(i){if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(i))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+i)}else throw new Error("Cookie name is not found in the first argument.");o&&typeof o=="object"&&(o=JSON.stringify(o));var d="";if(a=a===void 0?r.expires:a,a&&a!==0)switch(a.constructor){case Number:a===1/0||a===-1?d="; expires=Fri, 31 Dec 9999 23:59:59 GMT":d="; max-age="+a;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(a)){var f=a.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(a.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":d="; max-age="+ +f*2592e3;break;case"d":d="; max-age="+ +f*86400;break;case"h":d="; max-age="+ +f*3600;break;case"min":d="; max-age="+ +f*60;break;case"s":d="; max-age="+f;break;case"y":d="; max-age="+ +f*31104e3;break}}else d="; expires="+a;break;case Date:d="; expires="+a.toUTCString();break}return document.cookie=encodeURIComponent(i)+"="+encodeURIComponent(o)+d+(u?"; domain="+u:r.domain)+(s?"; path="+s:r.path)+(c===void 0?r.secure:c?"; Secure":"")+(l===void 0?r.sameSite:l?"; SameSite="+l:"")+(p===void 0?r.partitioned:p?"; Partitioned":""),this},remove:function(i,o,a){return!i||!this.isKey(i)?!1:(document.cookie=encodeURIComponent(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(a?"; domain="+a:r.domain)+(o?"; path="+o:r.path)+"; SameSite=Lax",!0)},isKey:function(i){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var i=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),o=0;o<i.length;o++)i[o]=decodeURIComponent(i[o]);return i}};e.exports=n,typeof window<"u"&&(window.$cookies=n)})()})(Qo)),Qo.exports}var UO=HO();const FO=os(UO),BO=Be(e=>{e.vueApp.use(FO)}),VO={collapse:"fas fa-chevron-up",complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",s
52ortAsc:"fas fa-arrow-up",sortDesc:"fas fa-arrow-down",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus",calendar:"fas fa-calendar",treeviewCollapse:"fas fa-caret-down",treeviewExpand:"fas fa-caret-right",eyeDropper:"fas fa-eye-dropper"},jO={component:Wv},$O={icons:{defaultSet:"fa",aliases:VO,sets:{fa:jO}},display:{thresholds:{xs:0,sm:600,md:960,lg:1320,xl:1920,xxl:2560}},typography:{fontWeightBold:600},theme:{defaultTheme:"light",variations:!1,cspNonce:"dQw4w9WgXcQ",treeshake:!0,themes:{light:{colors:{"footer-bg":"#F7F7F9","text-title":"#0D0F2C","navbar-link":"#6B728C","base-bg-color":"#0B0B0B","btn-grey-active":"#0F0F11","btn-secondary":"#555267","container-bg-color":"#141414","highlight-label":"#7EFBBD","live-mode-active":"#FF1C52","secondary-gray-text":"#B4B4B4","text-placeholder-red":"#B71E43","wrapper-bg":"#F2F3F5","wt-background":"#29282D","wt-black-645":"#0F172A","wt-border-textarea":"#3B3A41","wt-border-white":"#F9F9F9","wt-btn-secondary":"#3D3C41","wt-gray-a1":"#A1A1A6","wt-gray-a2":"#47464A","wt-green":"#38FFB8","wt-grey":"#7F7E81","wt-grey-1":"#5A5A5A","wt-grey-2":"#1E293B","wt-heading":"#1F1F1F","wt-icon-bg":"#201F22","wt-icon-bg-active":"#6923F9","wt-menu-item-separator-gray":"#313036","wt-primary":"#7000FF","wt-primary-accent":"#2A0060","wt-whiteish":"#E2E8F0",accent:"#FF4081",background:"#FFFFFF",error:"#FF5252",green:"#22B07D",info:"#2196F3",lightgrey:"#DDDDDE",navy:"#302D48",primary:"#7000FF",purpledark:"#5B4DB9",pwspecial:"#55FFDE",red:"#FF1C52",secondary:"#424242",success:"#4CAF50",warning:"#FB8C00",yellow:"#FFC107","header-black":"#060607","primary-blue":"#1848D9"}},dark:{dark:!0,"base-bg-color":"#000000","btn-grey-active":"#0F0F11","btn-secondary":"#555267","container-bg-color":"#141414","highlight-label":"#7EFBBD","live-mode-active":"#FF1C52","secondary-gray-text":"#B4B4B4","text-placeholder-red":"#B71E43","wt-background":"#29282D","wt-border-textarea":"#3B3A41","wt-border-white":"#F9F9F9","wt-btn-secondary":"#3D3C41","wt-green":"#38FFB8","wt-grey":"#7F7E81","wt-icon-bg":"#201F22","wt-icon-bg-active":"#6923F9","wt-menu-item-separator-gray":"#313036","wt-primary":"#7000FF","wt-primary-accent":"#2A0060","wt-gray-a1":"#A1A1A6","wt-gray-a2":"#47464A","wt-grey-1":"#5A5A5A","wt-heading":"#1F1F1F","wrapper-bg":"#F2F3F5","primary-blue":"#1848D9",accent:"#FF4081",error:"#FF5252",green:"#22B07D",info:"#2196F3",lightgrey:"#DDDDDE",navy:"#302D48",primary:"#7000FF",purpledark:"#5B4DB9",pwspecial:"#55FFDE",red:"#FF1C52",secondary:"#424242",success:"#4CAF50",warning:"#FB8C00",yellow:"#FFC107",background:"black"}}}},GO=Be(e=>{const t=Kv({ssr:!0,...$O});e.vueApp.use(t)}),Ks={url:"https://voice.ai",port:null,defaults:{},routes:{"robots.txt":{uri:"robots.txt",methods:["GET","HEAD"]},"liap.serverNotifications":{uri:"liap/notifications",methods:["POST"]},"cashier.payment":{uri:"stripe/payment/{id}",methods:["GET","HEAD"],parameters:["id"]},"cashier.webhook":{uri:"stripe/webhook",methods:["POST"]},"request-docs.index":{uri:"request-docs",methods:["GET","HEAD"]},"request-docs.api":{uri:"request-docs/api",methods:["GET","HEAD"]},"request-docs.config":{uri:"request-docs/config",methods:["GET","HEAD"]},"request-docs.assets":{uri:"request-docs/_astro/{slug}",methods:["GET","HEAD"],wheres:{slug:".*js|.*css|.*png|.*jpg|.*jpeg|.*gif|.*svg|.*ico|.*woff|.*woff2|.*ttf|.*eot|.*otf|.*map"},parameters:["slug"]},"api.account.change.password":{uri:"api/account/change-password",methods:["POST"]},"api.account.change.username":{uri:"api/account/change-username",methods:["POST"]},"api.account.update.avatar":{uri:"api/account/update-avatar",methods:["POST"]},"api.account.delete":{uri:"api/account/delete-account",methods:["DELETE"]},"api.account.delete-voice-tuning-audios":{uri:"api/account/delete-voice-tuning-audios",methods:["DELET
52E"]},"api.tag.get":{uri:"api/tag",methods:["GET","HEAD"]},"api.voice-category.get":{uri:"api/voice-category",methods:["GET","HEAD"]},"api.language.get":{uri:"api/language",methods:["GET","HEAD"]},"api.voice.save":{uri:"api/voice/save",methods:["POST"]},"api.voice.update":{uri:"api/voice/update/{voiceUUID}",methods:["POST"],parameters:["voiceUUID"]},"api.voice.get-my-voices":{uri:"api/voice/get-my-voices",methods:["GET","HEAD"]},"api.voice.voice-universe":{uri:"api/voice/get-voice-universe-voices",methods:["GET","HEAD"]},"api.voice.get-favorites":{uri:"api/voice/get-favorite-voices",methods:["GET","HEAD"]},"api.voice.filters":{uri:"api/voice/filters",methods:["GET","HEAD"]},"api.set-meta":{uri:"api/set-meta/{metaType?}",methods:["POST"],parameters:["metaType"]},"api.audio.store-details":{uri:"api/audio/store-details/{voiceUUID?}",methods:["POST"],parameters:["voiceUUID"]},"api.audio.store-audio-details":{uri:"api/audio/save-custom-voice-audio-details/{voiceUUID}",methods:["POST"],parameters:["voiceUUID"]},"api.audio.delete":{uri:"api/audio/delete/{customVoiceAudio}",methods:["DELETE"],parameters:["customVoiceAudio"]},"api.voice-tuning.steps":{uri:"api/voice-tuning/steps",methods:["GET","HEAD"]},"api.voice-tuning.store-audio-details":{uri:"api/voice-tuning/store-details",methods:["POST"]},"api.log.check-payment":{uri:"api/log/check-payment",methods:["POST"]},"api.log.check-token-payment":{uri:"api/log/check-token-payment",methods:["POST"]},"api.favorite.get":{uri:"api/favorite/get",methods:["GET","HEAD"]},"api.favorite.store":{uri:"api/favorite/store/{voiceUUID?}",methods:["POST"],parameters:["voiceUUID"]},"api.favorite.delete":{uri:"api/favorite/delete/{favorite}",methods:["DELETE"],parameters:["favorite"],bindings:{favorite:"id"}},"api.user.delete":{uri:"api/user/delete/{user?}",methods:["DELETE"],parameters:["user"]},"api.user.save-username":{uri:"api/user/save-username",methods:["POST"]},"api.user.voice-setting.store":{uri:"api/user/{voiceUUID}/setting",methods:["POST"],parameters:["voiceUUID"],bindings:{voiceUUID:"id"}},"api.metadata.show":{uri:"api/metadata/show",methods:["GET","HEAD"]},"api.metadata.update":{uri:"api/metadata/update",methods:["POST"]},"api.vote.save":{uri:"api/vote/save/{vote?}",methods:["POST"],parameters:["vote"],bindings:{vote:"id"}},"api.audio.get-shared-audio":{uri:"api/audio/get-shared-audio/{share}",methods:["POST"],parameters:["share"],bindings:{share:"id"}},"api.voice.get-convert-item":{uri:"api/voice/get-convert-item",methods:["GET","HEAD"]},"api.voice.update-convert-item":{uri:"api/voice/update-convert-item/{uuid}",methods:["POST"],parameters:["uuid"]},"api.log.user-event":{uri:"api/log/user-event",methods:["GET","HEAD"]},"api.log.install":{uri:"api/log/install",methods:["POST"]},"api.log.get-country":{uri:"api/log/country",methods:["GET","HEAD"]},"api.subscribe.store":{uri:"api/subscribe/subscribe",methods:["POST"]},"api.social-auth-login":{uri:"api/social-auth/redirect",methods:["GET","HEAD"]},"api.social-auth-login-callback":{uri:"api/social-auth/callback",methods:["POST"]},"api.store-affiliate-registration":{uri:"api/affiliate-registration",methods:["POST"]},"api.store-affiliate-application":{uri:"api/affiliate-application",methods:["POST"]},"api.store-job-application":{uri:"api/job-application",methods:["POST"]},"api.verify-captcha":{uri:"api/verify-captcha",methods:["POST"]},"api.send-voice-agents-contact-message":{uri:"api/voice-agents-contact-message",methods:["POST"]},"api.store-contact-message":{uri:"api/contact-message",methods:["POST"]},"api.store-dmca-request":{uri:"api/store-dmca-request",methods:["POST"]},"api.resend-verification":{uri:"api/resend-verification",methods:["POST"]},"api.verify-email":{uri:"api/verify-email",methods:["POST"]},"api.user":{uri:"api/user",methods:["GET","HEAD"]},"api.":{uri:"api/get-geoip",methods:["GET","HEAD"]},"api.get-time":{uri:"api/get-time",methods:["GET","HEAD"]},"api.logout":{uri:"api/logout",methods:["POST"]},"api.authenticate":{uri:"api/authenticate",methods:["POST"]},"api.app-authentication":{uri:"api/app-authentication",methods:["POST"]},"api.app-login-token":{uri:"api/app-login-token",methods:["GET","HEAD"]},"api.magic-link":{uri:"api/magic-link/{token}",methods:["GET","HEAD"],parameters:["token"]},"api.intent-survey.show":{uri:"api/intent-survey/survey/{intentSurvey}",methods:["GET","HEAD"],parameters:["intentSurvey"],bindings:{intentSurvey:"uuid"}},"api.intent-survey.save-answer":{uri:"api/intent-survey/save/{question}/{answer?}",methods:["POST"],parameters:["question","answer"],bindings:{question:"uuid",answer:"uuid"}},"api.voice.get-app-voices":{uri:"api/voice/get-a-voices",methods:["POST"]},"api.voice.train":{uri:"api/voice/train/{voiceUUID?}",methods:["POST"],parameters:["voiceUUID"]},"api.voice.check-training-is-complete":{uri:"api/voice/poll-training",methods:["GET","HEAD"]},"api.voice.toggle-sample":{uri:"api/voice/toggle-sample/{audio}",methods:["GET","HEAD"],parameters:["audio"],bindings:{audio:"id"}},"api.voice.external-model.store":{uri:"api/voice/external-model/{voiceUUID?}",methods:["POST"],parameters:["voiceUUID"]},"api.voice.external-model.check":{uri:"api/voice/check-external-model",methods:["GET","HEAD"]},"api.voice.external-model.duplicate":{uri:"api/voice/check-duplicate-model",methods:["GET","HEAD"]},"api.audio.index":{uri:"api/audio/get",methods:["GET","HEAD"]},"api.audio.share-audio":{uri:"api/audio/share-audio/{audio}",methods:["POST"],parameters:["audio"],bindings:{audio:"id"}},"api.audio.store-peaks":{uri:"api/audio/store-peaks/{audio}",methods:["POST"],parameters:["audio"],bindings:{audio:"id"}},"api.audio.delete-audio":{uri:"api/audio/delete-audio/{audio}
52",methods:["DELETE"],parameters:["audio"],bindings:{audio:"id"}},"api.token.onboarding":{uri:"api/token/onboarding",methods:["POST"]},"api.token.joined-discord":{uri:"api/token/joined-discord",methods:["POST"]},"api.log.app-heartbeat":{uri:"api/log/log-heartbeat",methods:["POST"]},"api.log.hardware":{uri:"api/log/hw-log",methods:["POST"]},"api.log.live":{uri:"api/log/log-live/{voiceUUID?}",methods:["POST"],parameters:["voiceUUID"]},"api.survey.check":{uri:"api/survey/check/{survey}",methods:["GET","HEAD"],parameters:["survey"]},"api.survey.seen":{uri:"api/survey/seen",methods:["POST"]},"api.soundboard.index":{uri:"soundboard/index",methods:["GET","HEAD"]},"api.soundboard.sound.delete":{uri:"soundboard/sound/delete/{sound}",methods:["DELETE"],parameters:["sound"],bindings:{sound:"id"}},"api.soundboard.sound.store":{uri:"soundboard/sound/store/{soundboard}",methods:["POST"],parameters:["soundboard"],bindings:{soundboard:"id"}},"api.soundboard.sound.update":{uri:"soundboard/sound/update/{sound}",methods:["POST"],parameters:["sound"],bindings:{sound:"id"}},home:{uri:"/",methods:["GET","HEAD"]},pricing:{uri:"pricing",methods:["GET","HEAD"]},about:{uri:"about",methods:["GET","HEAD"]},faq:{uri:"faq",methods:["GET","HEAD"]},credits:{uri:"credits",methods:["GET","HEAD"]},contact:{uri:"contact",methods:["GET","HEAD"]},"contact-sales":{uri:"contact-sales",methods:["GET","HEAD"]},affiliate:{uri:"affiliate",methods:["GET","HEAD"]},reactivate:{uri:"reactivate",methods:["GET","HEAD"]},"tts-lite":{uri:"tts-lite",methods:["GET","HEAD"]},"tts-lite-research":{uri:"tts-lite/research",methods:["GET","HEAD"]},"branding-guidelines":{uri:"branding-guidelines",methods:["GET","HEAD"]},ethics:{uri:"ethics",methods:["GET","HEAD"]},soundboard:{uri:"soundboard",methods:["GET","HEAD"]},"ai-voice":{uri:"ai-voice",methods:["GET","HEAD"]},"phone-ai":{uri:"phone-ai",methods:["GET","HEAD"]},"phone-ai.ai-phone-answering-service":{uri:"phone-ai/ai-phone-answering-service",methods:["GET","HEAD"]},"phone-ai.business-phone-plan":{uri:"phone-ai/business-phone-plan",methods:["GET","HEAD"]},"phone-ai.automated-phone-answering-service":{uri:"phone-ai/automated-phone-answering-service",methods:["GET","HEAD"]},"phone-ai.appointment-setting-answering-service":{uri:"phone-ai/appointment-setting-answering-service",methods:["GET","HEAD"]},"phone-ai.hvac-call-answering-service":{uri:"phone-ai/hvac-call-answering-service",methods:["GET","HEAD"]},"phone-ai.legal-answering-service":{uri:"phone-ai/legal-answering-service",methods:["GET","HEAD"]},"phone-ai.real-estate-call-answering-service":{uri:"phone-ai/real-estate-call-answering-service",methods:["GET","HEAD"]},"phone-ai.contractor-answering-service":{uri:"phone-ai/contractor-answering-service",methods:["GET","HEAD"]},"phone-ai.accounting-answering-service":{uri:"phone-ai/accounting-answering-service",methods:["GET","HEAD"]},"phone-ai.construction-answering-service":{uri:"phone-ai/construction-answering-service",methods:["GET","HEAD"]},"phone-ai.financial-answering-service":{uri:"phone-ai/financial-answering-service",methods:["GET","HEAD"]},"phone-ai.real-estate-answering-service":{uri:"phone-ai/real-estate-answering-service",methods:["GET","HEAD"]},"phone-ai.hotel-answering-service":{uri:"phone-ai/hotel-answering-service",methods:["GET","HEAD"]},"phone-ai.hospitality-answering-service":{uri:"phone-ai/hospitality-answering-service",methods:["GET","HEAD"]},"voice-changer":{uri:"ai-voice-changer",methods:["GET","HEAD"]},"landing-cloning":{uri:"voice-cloning",methods:["GET","HEAD"]},shortcode:{uri:"share/{shortcode}",methods:["GET","HEAD"],parameters:["shortcode"]},"voice-ai-phone":{uri:"voice-ai-phone/{any?}",methods:["GET","HEAD"],wheres:{any:".*"},parameters:["any"]},halloween:{uri:"halloween",methods:["GET","HEAD"]},"black-friday":{uri:"black-friday",methods:["GET","HEAD"]},"christmas-sale":{uri:"christmas-sale",methods:["GET","HEAD"]},"tts-iframe":{uri:"tts-iframe",methods:["GET","HEAD"]},"tts-demo-iframe":{uri:"tts-demo-iframe",methods:["GET","HEAD"]},"social-login-callback":{uri:"social-login",methods:["GET","HEAD"]},"redirect-login":{uri:"redirect",methods:["GET","HEAD"]},"tts-enterprise":{uri:"enterprise",methods:["GET","HEAD"]},"tts-publishing":{uri:"enterprise/publishing",methods:["GET","HEAD"]},"tts-media-and-entertainment":{uri:"enterprise/media-and-entertainment",methods:["GET","HEAD"]},"tts-conversational-ai":{uri:"enterprise/conversational-ai",methods:["GET","HEAD"]},"tts-use-cases":{uri:"enterprise/use-cases",methods:["GET","HEAD"]},api:{uri:"api",methods:["GET","HEAD"]},tools:{uri:"tools",methods:["GET","HEAD"]},"tools-voice-changer":{uri:"tools/voice-changer",methods:["GET","HEAD"]},"tools-voice-recorder":{uri:"tools/voice-recorder",methods:["GET","HEAD"]},"tools-vocal-remover":{uri:"tools/vocal-remover",methods:["GET","HEAD"]},"tools-echo-remover":{uri:"tools/echo-remover",methods:["GET","HEAD"]},"tools-reverb-remover":{uri:"tools/reverb-remover",methods:["GET","HEAD"]},"tools-stem-splitter":{uri:"tools/stem-splitter",methods:["GET","HEAD"]},"tools-bpm-finder":{uri:"tools/bpm-finder",methods:["GET","HEAD"]},"tools-converter":{uri:"tools/converter",methods:["GET","HEAD"]},"tools-audio-enhancer":{uri:"tools/audio-enhancer",methods:["GET","HEAD"]},"tools-account-settings":{uri:"tools/account-settings",methods:["GET","HEAD"]},"tools-converter-mp3":{uri:"tools/converter/mp3-converter",methods:["GET","HEAD"]},"tools-converter-wav":{uri:"tools/converter/wav-converter",methods:["GET","HEAD"]},"tools-converter-mp4":{uri:"tools/converter/mp4-converter",methods:["GET","HEAD"]},"tools-converter-ogg":{uri:"tools/converter/ogg-converter",methods:["GET","HEAD"]},"tools-converter-flac":{uri:"tools/converter/flac-converter",methods:["GET","HEAD"]},"tools-converter-m4a":{uri:"tools/converter/m4a-converter",methods:["GET","HEAD"]},"tools-converter-mp3-to-wav":{uri:"tools/converter/mp3-to-wav",methods:["GET","HEAD"]},"tools-converter-mp3-to-mp4":{uri:"tools/converter/mp3-to-mp4",methods:["GET","HEAD"]},"tools-converter-mp3-to-ogg":{uri:"tools/converter/mp3-to-ogg",methods:["GET","HEAD"]},"tools-converter-mp3-to-flac":{uri:"tools/converter/mp3-to-flac",methods:["GET","HEAD"]},"tools-converter-mp3-to-m4a":{uri:"tools/converter/mp3-to-m4a",methods:["GET","HEAD"]},"tools-converter-wav-to-mp3":{uri:"tools/converter/wav-to-mp3",methods:["GET","HEAD"]},"tools-converter-wav-to-mp4":{uri:"tools/converter/wav-to-mp4",methods:["GET","HEAD"]},"tools-converter-wav-to-ogg":{uri:"tools/converter/wav-to-ogg",methods:["GET","HEAD"]},"tools-converter-wav-to-flac":{uri:"tools/converter/wav-to-flac",methods:["GET","HEAD"]},"tools-converter-wav-to-m4a":{uri:"tools/converter/wav-to-m4a",methods:["GET","HEAD"]},"tools-converter-mp4-to-mp3":{uri:"tools/converter/mp4-to-mp3",methods:["GET","HEAD"]},"tools-converter-mp4-to-wav":{uri:"tools/converter/mp4-to-wav",methods:["GET","HEAD"]},"tools-converter-mp4-to-ogg":{uri:"tools/converter/mp4-to-ogg",methods:["GET","HEAD"]},"tools-converter-mp4-to-flac":{uri:"tools/converter/mp4-to-flac",methods:["GET","HEAD"]},"tools-converter-mp4-to-m4a":{uri:"tools/converter/mp4-to-m4a",methods:["GET","HEAD"]},"tools-converter-ogg-to-mp3":{uri:"tools/converter/ogg-to-mp3",methods:["GET","HEAD"]},"tools-converter-ogg-to-wav":{uri:"tools/converter/ogg-to-wav",methods:["GET","HEAD"]},"tools-converter-ogg-to-mp4":{uri:"tools/converter/ogg-to-mp4",methods:["GET","HEAD"]},"tools-converter-ogg-to-flac":{uri:"tools/converter/ogg-to-flac",methods:["GET","HEAD"]},"tools-converter-ogg-to-m4a":{uri:"tools/converter/ogg-to-m4a",methods:["GET","HEAD"]},"tools-converter-flac-to-mp3":{uri:"tools/converter/flac-to-mp3",methods:["GET","HEAD"]},"tools-converter-flac-to-wav":{uri:"tools/converter/flac-to-wav",methods:["GET","HEAD"]},"tools-converter-flac-to-mp4":{uri:"tools/converter/flac-to-mp4",methods:["GET","HEAD"]},"tools-converter-flac-to-ogg":{uri:"tools/converter/flac-to-ogg",methods:["GET","HEAD"]},"tools-converter-flac-to-m4a":{uri:"tools/converter/flac-to-m4a",methods:["GET","HEAD"]},"tools-converter-m4a-to-mp3":{uri:"tools/converter/m4a-to-mp3",methods:["GET","HEAD"]},"tools-converter-m4a-to-wav":{uri:"tools/converter/m4a-to-wav",methods:["GET","HEAD"]},"tools-converter-m4a-to-mp4":{uri:"tools/converter/m4a-to-mp4",methods:["GET","HEAD"]},"tools-converter-m4a-to-ogg":{uri:"tools/converter/m4a-to-ogg",methods:["GET","HEAD"]},"tools-converter-m4a-to-flac":{uri:"tools/converter/m4a-to-flac",methods:["GET","HEAD"]},"supported-apps":{uri:"apps",methods:["GET","HEAD"]},"landing-amongus":{uri:"apps/among-us",methods:["GET","HEAD"]},"landing-csgo":{uri:"apps/csgo",methods:["GET","HEAD"]},"landing-wow":{uri:"apps/wow",methods:["GET","HEAD"]},"landing-minecraft":{uri:"apps/minecraft",methods:["GET","HEAD"]},"landing-whatsapp":{uri:"apps/whatsapp",methods:["GET","HEAD"]},"landing-discord":{uri:"apps/discord",methods:["GET","HEAD"]},"landing-skype":{uri:"apps/skype",methods:["GET","HEAD"]},"landing-google":{uri:"apps/google-meet",methods:["GET","HEAD"]},"landing-zoom":{uri:"apps/zoom",methods:["GET","HEAD"]},"landing-twitch":{uri:"apps/twitch",methods:["GET","HEAD"]},"landing-fortnite":{uri:"apps/fortnite",methods:["GET","HEAD"]},"landing-lol":{uri:"apps/league-of-legends",methods:["GET","HEAD"]},"landing-pubg":{uri:"apps/pubg",methods:["GET","HEAD"]},"landing-steam":{uri:"apps/steam",methods:["GET","HEAD"]},"landing-viber":{uri:"apps/viber",methods:["GET","HEAD"]},"landing-obs":{uri:"apps/obs",methods:["GET","HEAD"]},"landing-messenger":{uri:"apps/messenger",methods:["GET","HEAD"]},"landing-teamspeak":{uri:"apps/teamspeak",methods:["GET","HEAD"]},"landing-valorant":{uri:"apps/valorant",methods:["GET","HEAD"]},"landing-telegram":{uri:"apps/telegram",methods:["GET","HEAD"]},"supported-platforms":{uri:"platforms",methods:["GET","HEAD"]},"landing-mac":{uri:"platforms/mac",methods:["GET","HEAD"]},"landing-pc":{uri:"platforms/pc",methods:["GET","HEAD"]},"dmca-policy":{uri:"dmca-policy",methods:["GET","HEAD"]},"cookie-policy":{uri:"cookie-policy",methods:["GET","HEAD"]},"affiliate-tos":{uri:"affiliate-tos",methods:["GET","HEAD"]},tos:{uri:"tos",methods:["GET","HEAD"]},"privacy-policy":{uri:"privacy",methods:["GET","HEAD"]},"refund-policy":{uri:"refund-policy",methods:["GET","HEAD"]},"download-installer":{uri:"download-installer",methods:["GET","HEAD"]},"tts-api":{uri:"enterprise/api",methods:["GET","HEAD"]},"tts-lite-landing":{uri:"tts-lite/landing",methods:["GET","HEAD"]},index:{uri:"index/{any?}",methods:["GET","HEAD"],wheres:{any:".*"},parameters:["any"]},"voiceai-affiliate":{uri:"aff/{referral_code?}",methods:["GET","HEAD"],parameters:["referral_code"]}
52,"voiceai-tts":{uri:"a/{referral_code?}",methods:["GET","HEAD"],parameters:["referral_code"]},"voiceai-agents":{uri:"agents/{referral_code?}",methods:["GET","HEAD"],parameters:["referral_code"]},"voice-ai-beta":{uri:"voice-ai-beta/{referral_code?}",methods:["GET","HEAD"],parameters:["referral_code"]},"voice-ai-alpha":{uri:"voice-ai-alpha/{referral_code?}",methods:["GET","HEAD"],parameters:["referral_code"]},"launch-app":{uri:"launch-app",methods:["GET","HEAD"]},"magic-link":{uri:"magic-link/{token}",methods:["GET","HEAD"],parameters:["token"]},"referral-page":{uri:"r/{code}",methods:["GET","HEAD"],parameters:["code"]},"update-download":{uri:"update-download",methods:["GET","HEAD"]},"beta-download":{uri:"beta-download",methods:["GET","HEAD"]},"app-download":{uri:"app-download/{referralCode?}",methods:["GET","HEAD"],parameters:["referralCode"]},"installer-download":{uri:"installer-download/{uuid?}/{referralCode?}",methods:["GET","HEAD"],parameters:["uuid","referralCode"]},"full-installer-download":{uri:"full-installer",methods:["GET","HEAD"]},"get-app-version":{uri:"version",methods:["GET","HEAD"]},"voice-universe":{uri:"voice-universe",methods:["GET","HEAD"]},"account-settings":{uri:"account-settings",methods:["GET","HEAD"]},"affiliate-panel":{uri:"affiliate-panel",methods:["GET","HEAD"]},"affiliate-panel-registration":{uri:"affiliate-panel/reg/{affiliateTier}",methods:["GET","HEAD"],wheres:{affiliateTier:"JPs6Tw|s35Jfe|GhgrNv"},parameters:["affiliateTier"]},"set-username":{uri:"set-username",methods:["GET","HEAD"]},"zendesk-sso":{uri:"zendesk-sso",methods:["GET","HEAD"]},"open-app":{uri:"open-app",methods:["GET","HEAD"]},"v2.beta":{uri:"v2/beta/{any_path?}",methods:["GET","HEAD"],wheres:{any_path:"(.*)"},parameters:["any_path"]},login:{uri:"login/{provider?}",methods:["GET","HEAD"],wheres:{provider:"twitch|discord|google"},parameters:["provider"]},"app-authentication":{uri:"app-authentication",methods:["GET","HEAD"]},logout:{uri:"logout",methods:["GET","HEAD"]},register:{uri:"register",methods:["GET","HEAD"]},"get-voiceai":{uri:"get-voiceai",methods:["GET","HEAD"]},"forgot-password":{uri:"forgot-password",methods:["GET","HEAD"]},"password.reset":{uri:"reset-password",methods:["GET","HEAD"]},"payment-success":{uri:"payment-success-xsolla",methods:["GET","HEAD"]},checkout:{uri:"redirect-checkout",methods:["GET","HEAD"]},"xsolla.checkout":{uri:"checkout",methods:["GET","HEAD"]},"stripe.checkout":{uri:"stripe",methods:["GET","HEAD"]},"make.payment":{uri:"handle-payment",methods:["GET","HEAD"]},"make.subscription":{uri:"handle-subscription",methods:["GET","HEAD"]},"cancel.payment":{uri:"cancel-payment",methods:["GET","HEAD"]},"success.payment":{uri:"payment-success",methods:["GET","HEAD"]},"success.subscription":{uri:"subscription-success",methods:["GET","HEAD"]},"stripe-webhook":{uri:"webhook/stripe",methods:["POST"]},ipn:{uri:"ipn",methods:["POST"]},"xsolla-ipn":{uri:"xsolla-ipn",methods:["POST"]},"pp-ipn":{uri:"ipnv1",methods:["POST"]},"download-cv":{uri:"api/download-cv/{cv}",methods:["GET","HEAD"],parameters:["cv"]},"auth.password-reset":{uri:"api/password-reset",methods:["POST"]},"auth.new-password":{uri:"api/new-password",methods:["POST"]},"opt-out-referral-signup":{uri:"opt-out-referral/{email}",methods:["GET","HEAD"],parameters:["email"]},"test-request":{uri:"test-request",methods:["GET","HEAD"]},"test-ip":{uri:"test-ip",methods:["GET","HEAD"]},"upload-rvc":{uri:"rvc",methods:["GET","HEAD"]},"tts-lite-subscribe":{uri:"tts-lite/subscribe",methods:["POST"]},"tts-lite-api":{uri:"tts-lite/api/{path}",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"],wheres:{path:".*"},parameters:["path"]},proxy:{uri:"proxy",methods:["GET","HEAD"]},"oauth-user-info":{uri:"oauth/userInfo",methods:["POST"]},"social-auth":{uri:"auth/redirect/{action}",methods:["GET","HEAD"],wheres:{provider:"twitch|discord|google",action:"login|register"},parameters:["action"]},"social-auth-callback":{uri:"auth/callback/{provider}",methods:["GET","HEAD"],wheres:{provider:"twitch|discord|google"},parameters:["provider"]},"resend-email-verification":{uri:"resend-email-verification",methods:["GET","HEAD"]},jobs:{uri:"jobs",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"promotions.discord-invite-tb":{uri:"discord-invite-tb",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-video":{uri:"enterprise/use-cases/video",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-youtube-videos":{uri:"enterprise/use-cases/youtube-videos",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-tiktok-videos":{uri:"enterprise/use-cases/tiktok-videos",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-customer-service":{uri:"enterprise/use-cases/customer-service",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-educations":{uri:"enterprise/use-cases/educations",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-hospitality":{uri:"enterprise/use-cases/hospitality",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-restaurants":{uri:"enterprise/use-cases/restaurants",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-accessibility":{uri:"enterprise/use-cases/accessibility",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-healthcare":{uri:"enterprise/use-cases/healthcare",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-content-creators":{uri:"enterprise/use-cases/content-creators",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-productivity":{uri:"enterprise/use-cases/productivity",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-marketing-sales":{uri:"enterprise/use-cases/marketing-sales",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"tts-use-cases-real-estate":{uri:"enterprise/use-cases/real-estate",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"api.tts.authenticate":{uri:"api/tts/authenticate",methods:["POST"]},"api.tts.signup":{uri:"api/tts/signup",methods:["POST"]},"api.tts.resend-verification":{uri:"api/tts/resend-verification",methods:["POST"]},"api.tts.verify-email":{uri:"api/tts/verify-email",methods:["POST"]},"api.tts.auth.password-reset":{uri:"api/tts/password-reset",methods:["POST"]},"oauth.voices.get-app-voices":{uri:"oauth/voices",methods:["GET","HEAD"]},"api.token-packages.index":{uri:"api/token-packages/index",methods:["GET","HEAD"]},"api.upload.get-presigned-url":{uri:"api/upload/get-presigned-url",methods:["POST"]},"api.upload.initialize":{uri:"api/upload/initialize",methods:["POST"]},"api.upload.get-chunk-url":{uri:"api/upload/get-chunk-url",methods:["POST"]},"api.upload.complete":{uri:"api/upload/complete",methods:["POST"]},"api.upload.list-parts":{uri:"api/upload/list-parts",methods:["POST"]},"api.upload.pending-uploads":{uri:"api/upload/pending-uploads",methods:["POST"]},"api.upload.get-google-url":{uri:"api/upload/get-google-url",methods:["POST"]},"api.app-user.show":{uri:"api/app-user/show",methods:["GET","HEAD"]},"api.app-user.check-device":{uri:"api/app-user/check-device",methods:["GET","HEAD"]},"api.app-user.change-device":{uri:"api/app-user/change-device",methods:["GET","HEAD"]},"api.signup":{uri:"api/signup",methods:["POST"]},"api.send-email-verification":{uri:"api/send-email-verification",methods:["POST"]},"api.verify-email-address":{uri:"api/verify-email-address",methods:["POST"]},"api.signup-uuid":{uri:"api/signup-uuid",methods:["POST"]},"api.auth.get-user-info":{uri:"api/auth/info",methods:["POST"]}
52,"api.auth.get-uuid-user-info":{uri:"api/auth/uuid-info",methods:["POST"]},"api.auth.change.username":{uri:"api/auth/change-username",methods:["POST"]},"api.auth.change.password":{uri:"api/auth/change-password",methods:["POST"]},"api.bandwidth.show":{uri:"api/bandwidth/{deviceDeviceId}",methods:["GET","HEAD"],parameters:["deviceDeviceId"]},"api.bandwidth.store":{uri:"api/bandwidth/{device}",methods:["POST"],parameters:["device"],bindings:{device:"id"}},"api.app-settings.update":{uri:"api/app-settings/update",methods:["POST"]},"api.app-settings.show":{uri:"api/app-settings/show",methods:["GET","HEAD"]},"api.metamodel-training.start":{uri:"api/metamodel-training/start",methods:["POST"]},"api.metamodel-training.stop":{uri:"api/metamodel-training/stop/{metamodel}",methods:["POST"],parameters:["metamodel"],bindings:{metamodel:"id"}},"api.contact-sales":{uri:"api/contact-sales",methods:["POST"]},"api.subscriptions.app":{uri:"api/subscriptions/app",methods:["POST"]},"api.subscriptions.web":{uri:"api/subscriptions/web",methods:["POST"]},"api.soft-paywall.plans":{uri:"api/soft-paywall/plans",methods:["GET","HEAD"]},"api.soft-paywall.checkout":{uri:"api/soft-paywall/checkout",methods:["POST"]},"api.lean-onboarding.bootstrap":{uri:"api/lean-onboarding/bootstrap",methods:["POST"]},"api.lean-onboarding.attach-email":{uri:"api/lean-onboarding/attach-email",methods:["POST"]},"api.rewards.get":{uri:"api/rewards",methods:["GET","HEAD"]},"api.rewards.complete":{uri:"api/rewards/{rewardId}/complete",methods:["POST"],parameters:["rewardId"]},"api.tts.generate":{uri:"api/tts/generate",methods:["POST"]},"api.tts.preview-voice":{uri:"api/tts/preview-voice",methods:["POST"]},"api.tts.clone-voice":{uri:"api/tts/clone-voice",methods:["POST"]},"api.tts.generate-cloned-voice":{uri:"api/tts/generate-cloned-voice",methods:["POST"]},"api.tts.get-audio-status":{uri:"api/tts/get-audio-status/{audioId}",methods:["GET","HEAD"],parameters:["audioId"]},"api.tts.get-voice-status":{uri:"api/tts/get-voice-status/{voiceId}",methods:["GET","HEAD"],parameters:["voiceId"]},"api.tts.download-audio":{uri:"api/tts/download-audio/{audioId}",methods:["GET","HEAD"],parameters:["audioId"]},"api.tts.cloning-limit":{uri:"api/tts/cloning-limit",methods:["GET","HEAD"]},"api.tts.check-eligibility":{uri:"api/tts/check-eligibility",methods:["GET","HEAD"]},"api.voice.get-model":{uri:"api/voice/get-voice-model/{voiceID}",methods:["GET","HEAD"],parameters:["voiceID"]},"api.voice.delete":{uri:"api/voice/delete/{voiceUUID}",methods:["DELETE"],parameters:["voiceUUID"]},"api.voice.build":{uri:"api/voice/build/{voice}",methods:["POST"],parameters:["voice"],bindings:{voice:"id"}},"api.voice.cancel-build":{uri:"api/voice/cancel-build/{voice}",methods:["POST"],parameters:["voice"],bindings:{voice:"id"}},"api.voice.check-voice-training-complete":{uri:"api/voice/check-voice-train-complete",methods:["GET","HEAD"]},"api.update-model":{uri:"api/update-model/{voiceID}",methods:["POST"],parameters:["voiceID"]},"api.update-build-status":{uri:"api/voice/update-build-status",methods:["POST"]},"api.web-tools.queue.store":{uri:"api/web-tools/queue/store/{tool}",methods:["POST"],parameters:["tool"]},"api.web-tools.queue.store-external":{uri:"api/web-tools/queue/store-external/{tool}",methods:["POST"],parameters:["tool"]},"api.web-tools.queue.get-result":{uri:"api/web-tools/queue/get-result/{uuid}",methods:["GET","HEAD"],wheres:{uuid:"[\\da-fA-F]{8}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{12}"},parameters:["uuid"]},"api.web-tools.queue.get-result-new":{uri:"api/web-tools/queue/get-result-new/{uuid}",methods:["GET","HEAD"],wheres:{uuid:"[\\da-fA-F]{8}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{12}"},parameters:["uuid"]},"api.web-tools.queue.get-item":{uri:"api/web-tools/queue/get-queue-item/{tool}/{type?}",methods:["GET","HEAD"],wheres:{type:"free|premium"},parameters:["tool","type"]},"api.web-tools.queue.update-item":{uri:"api/web-tools/queue/update-queue-item/{id}",methods:["POST"],parameters:["id"]},"api.web-tools.queue.get-status":{uri:"api/web-tools/queue/{uuid}/status",methods:["GET","HEAD"],parameters:["uuid"]},"api.web-tools.queue.delete":{uri:"api/web-tools/queue/delete/{uuid}
52",methods:["DELETE"],wheres:{uuid:"[\\da-fA-F]{8}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{4}-[\\da-fA-F]{12}"},parameters:["uuid"]},"api.web-tools.queue.get-queue-wait":{uri:"api/web-tools/queue/queue-wait-time/{tool}",methods:["GET","HEAD"],wheres:{tool:"vocal-remover|echo-remover|demucs|audio-converter|denoiser"},parameters:["tool"]},"api.web-tools.usage-count":{uri:"api/web-tools/usage-count",methods:["GET","HEAD"]},"api.web-tools.upload-finished":{uri:"api/web-tools/upload-finished",methods:["GET","HEAD"]},"api.web-tools.save-recorded-voice-shortcode":{uri:"api/web-tools/save-recorded-voice-shortcode",methods:["GET","HEAD"]},"api.web-tools.get-recorded-voice-shortcode":{uri:"api/web-tools/get-recorded-voice-shortcode",methods:["GET","HEAD"]},"api.web-tools.get-items":{uri:"api/web-tools/get-items",methods:["GET","HEAD"]}}};typeof window<"u"&&typeof window.Ziggy<"u"&&Object.assign(Ks.routes,window.Ziggy.routes);const qO=String.prototype.replace,zO=/%20/g,mh={RFC1738:"RFC1738",RFC3986:"RFC3986"},Xa={RFC1738:function(e){return qO.call(e,zO,"+")},RFC3986:function(e){return String(e)}},WO=mh.RFC1738,gh=mh.RFC3986,Zo=Object.prototype.hasOwnProperty,Pr=Array.isArray,zt=(function(){const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),KO=function(t){for(;t.length>1;){const r=t.pop(),n=r.obj[r.prop];if(Pr(n)){const i=[];for(let o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},XO=function(t,r){const n=r&&r.plainObjects?Object.create(null):{};for(let i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},JO=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Pr(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Zo.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);let i=t;return Pr(t)&&!Pr(r)&&(i=XO(t,n)),Pr(t)&&Pr(r)?(r.forEach(function(o,a){if(Zo.call(t,a)){const s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,n):t.push(o)}else t[a]=o}),t):Object.keys(r).reduce(function(o,a){const s=r[a];return Zo.call(o,a)?o[a]=e(o[a],s,n):o[a]=s,o},i)},YO=function(e,t,r){const n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},ea=1024,QO=function(t,r,n,i,o){if(t.length===0)return t;let a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});let s="";for(let u=0;u<a.length;u+=ea){const c=a.length>=ea?a.slice(u,u+ea):a,l=[];for(let p=0;p<c.length;++p){let d=c.charCodeAt(p);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===WO&&(d===40||d===41)){l[l.length]=c.charAt(p);continue}if(d<128){l[l.length]=zt[d];continue}if(d<2048){l[l.length]=zt[192|d>>6]+zt[128|d&63];continue}if(d<55296||d>=57344){l[l.length]=zt[224|d>>12]+zt[128|d>>6&63]+zt[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|c.charCodeAt(p)&1023),l[l.length]=zt[240|d>>18]+zt[128|d>>12&63]+zt[128|d>>6&63]+zt[128|d&63]}s+=l.join("")}return s},ZO=function(t){const r=[{obj:{o:t},prop:"o"}],n=[];for(let i=0;i<r.length;++i){const o=r[i],a=o.obj[o.prop],s=Object.keys(a);for(let u=0;u<s.length;++u){const c=s[u],l=a[c];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:a,prop:c}),n.push(l))}}return KO(r),t},eI=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},tI=function(t,r){return[].concat(t,r)},Ja=function(t,r){if(Pr(t)){const n=[];for(let i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},rI=Object.prototype.hasOwnProperty,yh={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Kt=Array.isArray,nI=Array.prototype.push,bh=function(e,t){nI.apply(e,Kt(t)?t:[t])},iI=Date.prototype.toISOString,$l=gh,Qe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:QO,encodeValuesOnly:!1,format:$l,formatter:Xa[$l],indices:!1,serializeDate:function(t){return iI.call(t)},skipNulls:!1,strictNullHandling:!1},oI=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},ta={},_h=function(t,r,n,i,o,a,s,u,c,l,p,d,f,h,m,g,E,w){let T=t,k=w,P=0,C=!1;for(;(k=k.get(ta))!==void 0&&!C;){const N=k.get(t);if(P+=1,typeof N<"u"){if(N===P)throw new RangeError("Cyclic object value");C=!0}typeof k.get(ta)>"u"&&(P=0)}if(typeof l=="function"?T=l(r,T):T instanceof Date?T=f(T):n==="comma"&&Kt(T)&&(T=Ja(T,function(N){return N instanceof Date?f(N):N})),T===null){if(a)return c&&!g?c(r,Qe.encoder,E,"key",h):r;T=""}if(oI(T)||eI(T)){if(c){const N=g?r:c(r,Qe.encoder,E,"key",h);return[m(N)+"="+m(c(T,Qe.encoder,E,"value",h))]}return[m(r)+"="+m(String(T))]}const D=[];if(typeof T>"u")return D;let F;if(n==="comma"&&Kt(T))g&&c&&(T=Ja(T,c)),F=[{value:T.length>0?T.join(",")||null:void 0}];else if(Kt(l))F=l;else{const N=Object.keys(T);F=p?N.sort(p):N}const $=u?r.replace(/\./g,"%2E"):r,U=i&&Kt(T)&&T.length===1?$+"[]":$;
52if(o&&Kt(T)&&T.length===0)return U+"[]";for(let N=0;N<F.length;++N){const re=F[N],ae=typeof re=="object"&&typeof re.value<"u"?re.value:T[re];if(s&&ae===null)continue;const ie=d&&u?re.replace(/\./g,"%2E"):re,Y=Kt(T)?typeof n=="function"?n(U,ie):U:U+(d?"."+ie:"["+ie+"]");w.set(t,P);const ge=new WeakMap;ge.set(ta,w),bh(D,_h(ae,Y,n,i,o,a,s,u,n==="comma"&&g&&Kt(T)?null:c,l,p,d,f,h,m,g,E,ge))}return D},aI=function(t){if(!t)return Qe;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");const r=t.charset||Qe.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=gh;if(typeof t.format<"u"){if(!rI.call(Xa,t.format))throw new TypeError("Unknown format option provided.");n=t.format}const i=Xa[n];let o=Qe.filter;(typeof t.filter=="function"||Kt(t.filter))&&(o=t.filter);let a;if(t.arrayFormat in yh?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Qe.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Qe.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Qe.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Qe.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Qe.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Qe.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Qe.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Qe.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Qe.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Qe.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Qe.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Qe.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Qe.strictNullHandling}};function sI(e,t){let r=e;const n=aI(t);let i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Kt(n.filter)&&(o=n.filter,i=o);const a=[];if(typeof r!="object"||r===null)return"";const s=yh[n.arrayFormat],u=s==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);const c=new WeakMap;for(let d=0;d<i.length;++d){const f=i[d];n.skipNulls&&r[f]===null||bh(a,_h(r[f],f,s,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}const l=a.join(n.delimiter);let p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),l.length>0?p+l:""}const Ya=Object.prototype.hasOwnProperty,uI=Array.isArray,Ui={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:YO,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cI=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Eh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},lI="utf8=%26%2310003%3B",dI="utf8=%E2%9C%93",fI=function(t,r){const n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,o);let s=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;
52u<a.length;++u)a[u].indexOf("utf8=")===0&&(a[u]===dI?c="utf-8":a[u]===lI&&(c="iso-8859-1"),s=u,u=a.length);for(u=0;u<a.length;++u){if(u===s)continue;const l=a[u],p=l.indexOf("]="),d=p===-1?l.indexOf("="):p+1;let f,h;d===-1?(f=r.decoder(l,Ui.decoder,c,"key"),h=r.strictNullHandling?null:""):(f=r.decoder(l.slice(0,d),Ui.decoder,c,"key"),h=Ja(Eh(l.slice(d+1),r),function(g){return r.decoder(g,Ui.decoder,c,"value")})),h&&r.interpretNumericEntities&&c==="iso-8859-1"&&(h=cI(h)),l.indexOf("[]=")>-1&&(h=uI(h)?[h]:h);const m=Ya.call(n,f);m&&r.duplicates==="combine"?n[f]=tI(n[f],h):(!m||r.duplicates==="last")&&(n[f]=h)}return n},pI=function(e,t,r,n){let i=n?t:Eh(t,r);for(let o=e.length-1;o>=0;--o){let a;const s=e[o];if(s==="[]"&&r.parseArrays)a=r.allowEmptyArrays&&i===""?[]:[].concat(i);else{a=r.plainObjects?Object.create(null):{};const u=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,l=parseInt(c,10);!r.parseArrays&&c===""?a={0:i}:!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=i):c!=="__proto__"&&(a[c]=i)}i=a}return i},hI=function(t,r,n,i){if(!t)return;const o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g;let u=n.depth>0&&a.exec(o);const c=u?o.slice(0,u.index):o,l=[];if(c){if(!n.plainObjects&&Ya.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}let p=0;for(;n.depth>0&&(u=s.exec(o))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Ya.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+o.slice(u.index)+"]"),pI(l,r,n,i)},vI=function(t){return Ui};function mI(e,t){const r=vI();if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};const n=typeof e=="string"?fI(e,r):e;let i=r.plainObjects?Object.create(null):{};const o=Object.keys(n);for(let a=0;a<o.length;++a){const s=o[a],u=hI(s,n[s],r,typeof e=="string");i=JO(i,u,r)}return r.allowSparse===!0?i:ZO(i)}function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pt.apply(null,arguments)}class ra{constructor(t,r,n){var i,o;this.name=t,this.definition=r,this.bindings=(i=r.bindings)!=null?i:{},this.wheres=(o=r.wheres)!=null?o:{},this.config=n}get template(){const t=`${this.origin}/${this.definition.uri}`.replace(/\/+$/,"");return t===""?"/":t}get origin(){return this.config.absolute?this.definition.domain?`${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${this.config.port?`:${this.config.port}`:""}`:this.config.url:""}get parameterSegments(){var t,r;return(t=(r=this.template.match(/{[^}?]+\??}/g))==null?void 0:r.map(n=>({name:n.replace(/{|\??}/g,""),required:!/\?}$/.test(n)})))!=null?t:[]}matchesUrl(t){var r;if(!this.definition.methods.includes("GET"))return!1;const n=this.template.replace(/[.*+$()[\]]/g,"\\$&").replace(/(\/?){([^}?]*)(\??)}/g,(s,u,c,l)=>{var p;const d=`(?<${c}>${((p=this.wheres[c])==null?void 0:p.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return l?`(${u}${d})?`:`${u}${d}`}).replace(/^\w+:\/\//,""),[i,o]=t.replace(/^\w+:\/\//,"").split("?"),a=(r=new RegExp(`^${n}/?$`).exec(i))!=null?r:new RegExp(`^${n}/?$`).exec(decodeURI(i));if(a){for(const s in a.groups)a.groups[s]=typeof a.groups[s]=="string"?decodeURIComponent(a.groups[s]):a.groups[s];return{params:a.groups,query:mI(o)}}return!1}compile(t){return this.parameterSegments.length?this.template.replace(/{([^}?]+)(\??)}/g,(r,n,i)=>{var o,a;if(!i&&[null,void 0].includes(t[n]))throw new Error(`Ziggy error: '${n}' parameter is required for route '${this.name}'.`);if(this.wheres[n]&&!new RegExp(`^${i?`(${this.wheres[n]})?`:this.wheres[n]}$`).test((a=t[n])!=null?a:""))throw new Error(`Ziggy error: '${n}' parameter '${t[n]}' does not match required format '${this.wheres[n]}' for route '${this.name}'.`);return encodeURI((o=t[n])!=null?o:"").replace(/%7C/g,"|").replace(/%25/g,"%").replace(/\$/g,"%24")}).replace(this.config.absolute?/(\.[^/]+?)(\/\/)/:/(^)(\/\/)/,"$1/").replace(/\/+$/,""):this.template}}class gI extends String{constructor(t,r,n=!0,i){if(super(),this.t=i??(typeof Ziggy<"u"?Ziggy:globalThis?.Ziggy),!this.t&&typeof document<"u"&&document.getElementById("ziggy-routes-json")&&(globalThis.Ziggy=JSON.parse(document.getElementById("ziggy-routes-json").textContent),this.t=globalThis.Ziggy),this.t=Pt({},this.t,{absolute:n}),t){if(!this.t.routes[t])throw new Error(`Ziggy error: route '${t}' is not in the route list.`);this.i=new ra(t,this.t.routes[t],this.t),this.o=this.u(r)}}toString(){const t=Object.keys(this.o).filter(r=>!this.i.parameterSegments.some(({name:n})=>n===r)).filter(r=>r!=="_query").reduce((r,n)=>Pt({},r,{[n]:this.o[n]}),{});return this.i.compile(this.o)+sI(Pt({},t,this.o._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(r,n)=>typeof r=="boolean"?Number(r):n(r)})}h(t){t?this.t.absolute&&t.startsWith("/")&&(t=this.l().host+t):t=this.m();let r={};const[n,i]=Object.entries(this.t.routes).find(([o,a])=>r=new ra(o,a,this.t).matchesUrl(t))||[void 0,void 0];return Pt({name:n},r,{route:i})}m(){const{host:t,pathname:r,search:n}=this.l();return(this.t.absolute?t+r:r.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+n}current(t,r){const{name:n,params:i,query:o,route:a}=this.h();if(!t)return n;const s=new RegExp(`^${t.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(n);if([null,void 0].includes(r)||!s)return s;const u=new ra(n,a,this.t);r=this.u(r,u);const c=Pt({},i,o);if(Object.values(r).every(p=>!p)&&!Object.values(c).some(p=>p!==void 0))return!0;const l=(p,d)=>Object.entries(p).every(([f,h])=>Array.isArray(h)&&Array.isArray(d[f])?h.every(m=>d[f].includes(m)||d[f].includes(decodeURIComponent(m))):typeof h=="object"&&typeof d[f]=="object"&&h!==null&&d[f]!==null?l(h,d[f]):d[f]==h||d[f]==decodeURIComponent(h));return l(r,c)}l(){var t,r,n,i,o,a;const{host:s="",pathname:u="",search:c=""}=typeof window<"u"?window.location:{};return{host:(t=(r=this.t.location)==null?void 0:r.host)!=null?t:s,pathname:(n=(i=this.t.location)==null?void 0:i.pathname)!=null?n:u,search:(o=(a=this.t.location)==null?void 0:a.search)!=null?o:c}}get params(){const{params:t,query:r}=this.h();return Pt({},t,r)}
52get routeParams(){return this.h().params}get queryParams(){return this.h().query}has(t){return this.t.routes.hasOwnProperty(t)}u(t={},r=this.i){t!=null||(t={}),t=["string","number"].includes(typeof t)?[t]:t;const n=r.parameterSegments.filter(({name:i})=>!this.t.defaults[i]);return Array.isArray(t)?t=t.reduce((i,o,a)=>Pt({},i,n[a]?{[n[a].name]:o}:typeof o=="object"?o:{[o]:""}),{}):n.length!==1||t[n[0].name]||!t.hasOwnProperty(Object.values(r.bindings)[0])&&!t.hasOwnProperty("id")||(t={[n[0].name]:t}),Pt({},this.p(r),this.$(t,r))}p(t){return t.parameterSegments.filter(({name:r})=>this.t.defaults[r]).reduce((r,{name:n},i)=>Pt({},r,{[n]:this.t.defaults[n]}),{})}$(t,{bindings:r,parameterSegments:n}){return Object.entries(t).reduce((i,[o,a])=>{if(!a||typeof a!="object"||Array.isArray(a)||!n.some(({name:s})=>s===o))return Pt({},i,{[o]:a});if(!a.hasOwnProperty(r[o])){if(!a.hasOwnProperty("id"))throw new Error(`Ziggy error: object passed as '${o}' parameter is missing route model binding key '${r[o]}'.`);r[o]="id"}return Pt({},i,{[o]:a[r[o]]})},{})}valueOf(){return this.toString()}}function wh(e,t,r,n){const i=new gI(e,t,r,n);return e?i.toString():i}const yI={install(e,t){const r=(n,i,o,a=t)=>wh(n,i,o,a);parseInt(e.version)>2?(e.config.globalProperties.route=r,e.provide("route",r)):e.mixin({methods:{route:r}})}};window.route=(e,t,r,n=Ks)=>wh(e,t,r,n);const bI=Be(e=>{e.vueApp.use(yI,Ks)}),_I=[wy,Py,Zb,t_,Y0,Q0,Z0,TE,HE,UE,bO,_O,SO,PO,IO,xO,DO,NO,MO,BO,GO,bI],EI=Zt({name:"NuxtRouteAnnouncer",props:{atomic:{type:Boolean,default:!1},politeness:{type:String,default:"polite"}},setup(e,{slots:t,expose:r}){const{set:n,polite:i,assertive:o,message:a,politeness:s}=T_({politeness:e.politeness});return r({set:n,polite:i,assertive:o,message:a,politeness:s}),()=>Le("span",{class:"nuxt-route-announcer",style:{position:"absolute"}},Le("span",{role:"alert","aria-live":s.value,"aria-atomic":e.atomic,style:{border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",width:"1px",overflow:"hidden",position:"absolute","white-space":"nowrap","word-wrap":"normal",margin:"-1px",padding:"0"}},t.default?t.default({message:a.value}):a.value))}}),Th=(e="RouteProvider")=>Zt({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,n=t.route,i={};for(const o in t.route)Object.defineProperty(i,o,{get:()=>r===t.renderKey?t.route[o]:n[o],enumerable:!0});return Jt(Cr,nr(i)),()=>t.vnode?Le(t.vnode,{ref:t.vnodeRef}):t.vnode}}),wI=Th(),Gl=new WeakMap,TI=Zt({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:n}){const i=Ce(),o=wt(),a=st(Cr,null);let s;n({pageRef:o});const u=st(Dd,null);let c;const l=i.deferHydration();if(i.isHydrating){const d=i.hooks.hookOnce("app:error",l);Tt().beforeEach(d)}e.pageKey&&br(()=>e.pageKey,(d,f)=>{d!==f&&i.callHook("page:loading:start")});let p=!1;{const d=Tt().beforeResolve(()=>{p=!1});un(()=>{d()})}return()=>Le(ef,{name:e.name,route:e.route,...t},{default:d=>{const f=AI(a,d.route,d.Component),h=a&&a.matched.length===d.route.matched.length;if(!d.Component){if(c&&!h)return c;l();return}if(c&&u&&!u.isCurrent(d.route))return c;if(f&&a&&(!u||u?.isCurrent(a)))return h?c:null;const m=wa(d,e.pageKey),g=kI(a,d.route,d.Component);!i.isHydrating&&s===m&&!g&&or(()=>{p=!0,i.callHook("page:loading:end")}),s=m;const E=!!(e.transition??d.route.meta.pageTransition??Ru),w=E&&SI([e.transition,d.route.meta.pageTransition,Ru,{onAfterLeave(){delete i._runningTransition,i.callHook("page:transition:finish",d.Component)}}]),T=e.keepalive??d.route.meta.keepalive??pg;return c=rf(E&&w,Lb(T,Le(ns,{suspensible:!0,onPending:()=>{E&&(i._runningTransition=!0),i.callHook("page:start",d.Component)}
52,onResolve:()=>{or(()=>i.callHook("page:finish",d.Component).then(()=>{if(delete i._runningTransition,!p&&!g)return p=!0,i.callHook("page:loading:end")}).finally(l))}},{default:()=>{const k={key:m||void 0,vnode:r.default?PI(r.default,d):d.Component,route:d.route,renderKey:m||void 0,trackRootNodes:E,vnodeRef:o};if(!T)return Le(wI,k);const P=d.Component.type,C=P;let D=Gl.get(C);return D||(D=Th(P.name||P.__name),Gl.set(C,D)),Le(D,k)}}))).default(),c}})}});function SI(e){const t=e.filter(Boolean).map(r=>({...r,onAfterLeave:r.onAfterLeave?vs(r.onAfterLeave):void 0}));return Tg(...t)}function AI(e,t,r){if(!e)return!1;const n=t.matched.findIndex(i=>i.components?.default===r?.type);return!n||n===-1?!1:t.matched.slice(0,n).some((i,o)=>i.components?.default!==e.matched[o]?.components?.default)||r&&wa({route:t,Component:r})!==wa({route:e,Component:r})}function kI(e,t,r){return e?t.matched.findIndex(i=>i.components?.default===r?.type)<t.matched.length-1:!1}function PI(e,t){const r=e(t);return r.length===1?Le(r[0]):Le(zr,void 0,r)}const OI=Zt({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>Le(mr[e.name],e.layoutProps,t.slots)}}),II={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},Sh=Zt({name:"NuxtLayout",inheritAttrs:!1,props:II,setup(e,t){const r=Ce(),n=st(Cr),o=!n||n===us()?tf():n,a=W(()=>{let l=Ve(e.name)??o?.meta.layout??"default";return l&&!(l in mr)&&e.fallback&&(l=Ve(e.fallback)),l}),s=Mt();t.expose({layoutRef:s});const u=r.deferHydration();if(r.isHydrating){const l=r.hooks.hookOnce("app:error",u);Tt().beforeEach(l)}let c;return()=>{const l=a.value&&a.value in mr,p=o?.meta.layoutTransition??fg,d=c;return c=a.value,rf(l&&p,{default:()=>Le(ns,{suspensible:!0,onResolve:()=>{or(u)}},{default:()=>Le(RI,{layoutProps:is(t.attrs,{ref:s}),key:a.value||void 0,name:a.value,shouldProvide:!e.name,isRenderingNewLayout:f=>f!==d&&f===a.value,hasTransition:!!p},t.slots)})}).default()}}}),RI=Zt({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 r=e.name;e.shouldProvide&&Jt(Dd,{isCurrent:o=>r===(o.meta.layout??"default")});const n=st(Cr);if(n&&n===us()){const o=tf(),a={};for(const s in o){const u=s;Object.defineProperty(a,u,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?o[u]:n[u]})}Jt(Cr,nr(a))}return()=>!r||typeof r=="string"&&!(r in mr)?t.slots.default?.():Le(OI,{key:r,layoutProps:e.layoutProps,name:r},t.slots)}}),CI=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},xI=l_(EI),DI={};function LI(e,t){const r=xI,n=TI,i=Sh;return lt(),kr(i,null,{default:Wr(()=>[ce(r),ce(n)]),_:1})}const NI=CI(DI,[["render",LI]]),ql="US",zl=["CA","DE","AU","GB","FR","CH","NL"],Tn={COOKIE_MAX_AGE:3600*24*365,DEFAULT_COOKIE_NAME:"paywall_702_708"},Wl=[{id:"ver_a",needsPaywall:!0,weight:0},{id:"ver_b",needsPaywall:!0,weight:0},{id:"ver_c",needsPaywall:!0,weight:0},{id:"ver_d",needsPaywall:!0,weight:0},{id:"ver_e",needsPaywall:!0,weight:0},{id:"ver_h",needsPaywall:!0,weight:0},{id:"ver_i",needsPaywall:!0,weight:50},{id:"ver_j",needsPaywall:!0,weight:0},{id:"ver_k",needsPaywall:!0,weight:0},{id:"ver_l",needsPaywall:!0,weight:50},{id:"default",needsPaywall:!0,weight:0}],MI=(e=Tn.DEFAULT_COOKIE_NAME)=>{const t=Kr(e,{maxAge:Tn.COOKIE_MAX_AGE,path:"/"}),r=W(()=>new Map(Wl.map(l=>[l.id,l]))),n=(l=null)=>{const p=l||i();return r.value.get(p)?.needsPaywall??!0},i=(l=e)=>Kr(l).value;return{assignVariant:()=>{const l=Math.random()*100;let p=0;const f=Wl.find(h=>(p+=h.weight,l<p))?.id??"default";return t.value=f,f},needsPaywallBasedOnVariant:n,getExistingCookie:i,clearCookieForTest:()=>t.value=null,getOrSetABTestCookie:({optionOff:l,optionOn:p,optionAPercentage:d=.5})=>{const f=Kr(Tn.DEFAULT_COOKIE_NAME).value;if(f)return f;const h=Kr(Tn.DEFAULT_COOKIE_NAME,{maxAge:Tn.COOKIE_MAX_AGE,path:"/"});return h.value=Math.random()<d?l:p,h.value},isTierOneCountry:l=>l===ql||zl.includes(l),isTierTwoCountry:l=>l!==ql&&!zl.includes(l)}};var HI={};const UI=()=>HI.APP_ENV==="production",FI=()=>{const e=MI(),t=Ce(),r=er(),n=async(c,l={},p=null)=>{const{gtag:d}=hh();typeof d<"u"&&d("event",c,l);const f=e.getExistingCookie();f&&!l.test_group&&(l.test_group=f);const h=e.getExistingCookie("home_test4");h&&!l.home_test_group&&(l.home_test_group=h),t.$amplitude&&t.$amplitude.track(c,l)},i=(c,l=void 0,p=void 0)=>{if(t.$amplitude){const f={email:l,loginTime:new Date().toISOString()};p!==void 0&&(f.signup_method=p),t.$amplitude.identifyUser(c,f)}let d={user_id:c};UI||(d.debug_mode=!0),gtag&&(gtag("config","G-YY7VQ2GT9T",d),gtag("config","G-Z0LLHNX97S",d))},o=()=>{t.$amplitude&&t.$amplitude.reset()};function a(){return t.$amplitude?.getUserId?.()??null}function s(){return t.$amplitude?.getDeviceId?.()??null}return{identifyAmplitude:i,trackClick:n,resetAmplitude:o,getAmplitudeUserId:a,getAmplitudeDeviceId:s,getDownloadUrl:(c=null,{path:l}={})=>{const p=l??(c?`/app-download/${c}`:"/app-download"),d=new URL(p,r.public.appUrl),f=t.$amplitude?.getUserId?.();if(f)d.searchParams.set("amp_device_id",`uid_${f}`);else{const h=t.$amplitude?.getDeviceId?.();h&&d.searchParams.set("amp_device_id",`did_${h}`)}return d.toString()}}},Ah=Ge({border:[Boolean,Number,String]},"border");function kh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dr();return{borderClasses:W(()=>
vendor: 9,775 bytes, line 52
52{const n=It(e)?e.value:e.border,i=[];if(n===!0||n==="")i.push(`${t}--border`);else if(typeof n=="string"||n===0)for(const o of String(n).split(" "))i.push(`border-${o}`);return i})}}const BI=[null,"default","comfortable","compact"],Ph=Ge({density:{type:String,default:"default",validator:e=>BI.includes(e)}},"density");function Oh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dr();return{densityClasses:W(()=>`${t}--density-${e.density}`)}}const Ih=Ge({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Rh(e){return{elevationClasses:W(()=>{const r=It(e)?e.value:e.elevation,n=[];return r==null||n.push(`elevation-${r}`),n})}}const Xs=Ge({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Js(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dr();return{roundedClasses:W(()=>{const n=It(e)?e.value:e.rounded,i=It(e)?e.value:e.tile,o=[];if(n===!0||n==="")o.push(`${t}--rounded`);else if(typeof n=="string"||n===0)for(const a of String(n).split(" "))o.push(`rounded-${a}`);else(i||n===!1)&&o.push("rounded-0");return o})}}const ti=Ge({tag:{type:String,default:"div"}},"tag");function Ys(e){return sd(()=>{const t=[],r={};if(e.value.background)if(Eu(e.value.background)){if(r.backgroundColor=e.value.background,!e.value.text&&Xv(e.value.background)){const n=Jv(e.value.background);if(n.a==null||n.a===1){const i=Yv(n);r.color=i,r.caretColor=i}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(Eu(e.value.text)?(r.color=e.value.text,r.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:r}})}function Ji(e,t){const r=W(()=>({text:It(e)?e.value:t?e[t]:null})),{colorClasses:n,colorStyles:i}=Ys(r);return{textColorClasses:n,textColorStyles:i}}function na(e,t){const r=W(()=>({background:It(e)?e.value:t?e[t]:null})),{colorClasses:n,colorStyles:i}=Ys(r);return{backgroundColorClasses:n,backgroundColorStyles:i}}const VI=["elevated","flat","tonal","outlined","text","plain"];function jI(e,t){return ce(zr,null,[e&&ce("span",{key:"overlay",class:`${t}__overlay`},null),ce("span",{key:"underlay",class:`${t}__underlay`},null)])}const Ch=Ge({color:String,variant:{type:String,default:"elevated",validator:e=>VI.includes(e)}},"variant");function $I(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dr();const r=W(()=>{const{variant:o}=Ve(e);return`${t}--variant-${o}`}),{colorClasses:n,colorStyles:i}=Ys(W(()=>{const{variant:o,color:a}=Ve(e);return{[["elevated","flat"].includes(o)?"background":"text"]:a}}));return{colorClasses:n,colorStyles:i,variantClasses:r}}const xh=Ge({baseColor:String,divided:Boolean,...Ah(),...Wn(),...Ph(),...Ih(),...Xs(),...ti(),...zn(),...Ch()},"VBtnGroup"),Kl=Lr()({name:"VBtnGroup",props:xh(),setup(e,t){let{slots:r}=t;const{themeClasses:n}=Zi(e),{densityClasses:i}=Oh(e),{borderClasses:o}=kh(e),{elevationClasses:a}=Rh(e),{roundedClasses:s}=Js(e);ud({VBtn:{height:"auto",baseColor:Et(e,"baseColor"),color:Et(e,"color"),density:Et(e,"density"),flat:!0,variant:Et(e,"variant")}}),cn(()=>ce(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},n.value,o.value,i.value,a.value,s.value,e.class],style:e.style},r))}}),GI=Ge({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),qI=Ge({value:null,disabled:Boolean,selectedClass:String},"group-item");function zI(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const n=eo("useGroupItem");if(!n)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=Qv();Jt(Symbol.for(`${t.description}:id`),i);const o=st(t,null);if(!o){if(!r)return o;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const a=Et(e,"value"),s=W(()=>!!(o.disabled.value||e.disabled));o.register({id:i,value:a,disabled:s},n),un(()=>{o.unregister(i)});const u=W(()=>o.isSelected(i)),c=W(()=>o.items.value[0].id===i),l=W(()=>o.items.value[o.items.value.length-1].id===i),p=W(()=>u.value&&[o.selectedClass.value,e.selectedClass]);return br(u,d=>{n.emit("group:selected",{value:d})},{flush:"sync"}),{id:i,isSelected:u,isFirst:c,isLast:l,toggle:()=>o.select(i,!u.value),select:d=>o.select(i,d),selectedClass:p,value:a,disabled:s,group:o}}function WI(e,t){let r=!1;const n=jt([]),i=cd(e,"modelValue",[],d=>d==null?[]:Dh(n,Zv(d)),d=>{const f=XI(n,d);return e.multiple?f:f[0]}),o=eo("useGroup");function a(d,f){const h=d,m=Symbol.for(`${t.description}:id`),E=em(m,o?.vnode).indexOf(f);Ve(h.value)==null&&(h.value=E,h.useIndexAsValue=!0),E>-1?n.splice(E,0,h):n.push(h)}function s(d){if(r)return;u();const f=n.findIndex(h=>h.id===d);n.splice(f,1)}function u(){const d=n.find(f=>!f.disabled);d&&e.mandatory==="force"&&!i.value.length&&(i.value=[d.id])}tn(()=>{u()}),un(()=>{r=!0}),Vv(()=>{for(let d=0;d<n.length;d++)n[d].useIndexAsValue&&(n[d].value=d)});function c(d,f){const h=n.find(m=>m.id===d);if(!(f&&h?.disabled))if(e.multiple){const m=i.value.slice(),g=m.findIndex(w=>w===d),E=~g;if(f=f??!E,E&&e.mandatory&&m.length<=1||!E&&e.max!=null&&m.length+1>e.max)return;g<0&&f?m.push(d):g>=0&&!f&&m.splice(g,1),i.value=m}else{const m=i.value.includes(d);if(e.mandatory&&m)return;i.value=f??!m?[d]:[]}}function l(d){if(e.multiple,i.value.length){const f=i.value[0],h=n.findIndex(E=>E.id===f);let m=(h+d)%n.length,g=n[m];for(;g.disabled&&m!==h;)m=(m+d)%n.length,g=n[m];if(g.disabled)return;i.value=[n[m].id]}else{const f=n.find(h=>!h.disabled);f&&(i.value=[f.id])}}const p={register:a,unregister:s,selected:i,select:c,disabled:Et(e,"disabled"),prev:()=>l(n.length-1),next:()=>l(1),isSelected:d=>i.value.includes(d),selectedClass:W(()=>e.selectedClass),items:W(()=>n),getItemIndex:d=>KI(n,d)};return Jt(t,p),p}function KI(e,t){const r=Dh(e,[t]);return r.length?e.findIndex(n=>n.id===r[0]):-1}function Dh(e,t){const r=[];return t.forEach(n=>{const i=e.find(a=>ld(n,a.value)),o=e[n];i?.value!=null?r.push(i.id):o!=null&&r.push(o.id)}),r}function XI(e,t){const r=[];return t.forEach(n=>{const i=e.findIndex(o=>o.id===n);if(~i){const o=e[i];r.push(o.value!=null?o.value:i)}}),r}const Lh=Symbol.for("vuetify:v-btn-toggle"),JI=Ge({...xh(),...GI()},"VBtnToggle"),ZR=Lr()({name:"VBtnToggle",props:JI(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{isSelected:n,next:i,prev:o,select:a,selected:s}=WI(e,Lh);return cn(()=>{const u=Kl.filterProps(e);return ce(Kl,is({class:["v-btn-toggle",e.class]},u,{style:e.style}),{default:()=>[r.default?.({isSelected:n,next:i,prev:o,select:a,selected:s})]})}),{next:i,prev:o,select:a}}}),YI=Ge({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ia=Lr(!1)({name:"VDefaultsProvider",props:YI(),setup(e,t){let{slots:r}=t;const{defaults:n,disabled:i,reset:o,root:a,scoped:s}=od(e);return ud(n,{reset:o,root:a,scoped:s,disabled:i}),()=>r.default?.()}}),QI=["x-small","small","default","large","x-large"],Qs=Ge({size:{type:[String,Number],default:"default"}},"size");function Zs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dr();return sd(()=>{let r,n;return tm(QI,e.size)?r=`${t}--size-${e.size}`:e.size&&(n={width:je(e.size),height:je(e.size)}),{sizeClasses:r,sizeStyles:n}})}const ZI=Ge({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:ua,...Wn(),...Qs(),...ti({tag:"i"}),...zn()},"VIcon"),oa=Lr()({name:"VIcon",props:ZI(),setup(e,t){let{attrs:r,slots:n}=t;const i=wt(),{themeClasses:o}=rm(),{iconData:a}=nm(W(()=>i.value||e.icon)),{sizeClasses:s}=Zs(e),{textColorClasses:u,textColorStyles:c}=Ji(Et(e,"color"));return cn(()=>{const l=n.default?.();l&&(i.value=im(l).filter(d=>d.type===jv&&d.children&&typeof d.children=="string")[0]?.children);const p=!!(r.onClick||r.onClickOnce);return ce(a.value.component,{tag:e.tag,icon:a.value.icon,class:["v-icon","notranslate",o.value,s.value,u.value,{"v-icon--clickable":p,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[s.value?void 0:{fontSize:je(e.size),height:je(e.size),width:je(e.size)},c.value,e.style],role:p?"button":void 0,"aria-hidden":!p,tabindex:p?e.disabled?-1:0:void 0},{default:()=>[l]})}),{}}});function Nh(e,t){const r=wt(),n=Mt(!1);if(om){const i=new IntersectionObserver(o=>{n.value=!!o.find(a=>a.isIntersecting)},t);un(()=>{i.disconnect()}),br(r,(o,a)=>{a&&(i.unobserve(a),n.value=!1),o&&i.observe(o)},{flush:"post"})}return{intersectionRef:r,isIntersecting:n}}const eR=Ge({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Wn(),...Qs(),...ti({tag:"div"}),...zn()},"VProgressCircular"),tR=Lr()({name:"VProgressCircular",props:eR(),setup(e,t){let{slots:r}=t;const n=20,i=2*Math.PI*n,o=wt(),{themeClasses:a}=Zi(e),{sizeClasses:s,sizeStyles:u}=Zs(e),{textColorClasses:c,textColorStyles:l}=Ji(Et(e,"color")),{textColorClasses:p,textColorStyles:d}=Ji(Et(e,"bgColor")),{intersectionRef:f,isIntersecting:h}=Nh(),{resizeRef:m,contentRect:g}=am(),E=W(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),w=W(()=>Number(e.width)),T=W(()=>u.value?Number(e.size):g.value?g.value.width:Math.max(w.value,32)),k=W(()=>n/(1-w.value/T.value)*2),P=W(()=>w.value/T.value*k.value),C=W(()=>je((100-E.value)/100*i));return td(()=>{f.value=o.value,m.value=o.value}),cn(()=>ce(e.tag,{ref:o,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":h.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},a.value,s.value,c.value,e.class],style:[u.value,l.value,e.style],role:"progressbar","aria-valuemin":"
520","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:E.value},{default:()=>[ce("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${k.value} ${k.value}`},[ce("circle",{class:["v-progress-circular__underlay",p.value],style:d.value,fill:"transparent",cx:"50%",cy:"50%",r:n,"stroke-width":P.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),ce("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:n,"stroke-width":P.value,"stroke-dasharray":i,"stroke-dashoffset":C.value},null)]),r.default&&ce("div",{class:"v-progress-circular__content"},[r.default({value:E.value})])]})),{}}}),rR=Ge({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function nR(e){return{dimensionStyles:W(()=>{const r={},n=je(e.height),i=je(e.maxHeight),o=je(e.maxWidth),a=je(e.minHeight),s=je(e.minWidth),u=je(e.width);return n!=null&&(r.height=n),i!=null&&(r.maxHeight=i),o!=null&&(r.maxWidth=o),a!=null&&(r.minHeight=a),s!=null&&(r.minWidth=s),u!=null&&(r.width=u),r})}}const Xl={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Mh=Ge({location:String},"location");function Hh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const{isRtl:n}=dd();return{locationStyles:W(()=>{if(!e.location)return{};const{side:o,align:a}=sm(e.location.split(" ").length>1?e.location:`${e.location} center`,n.value);function s(c){return r?r(c):0}const u={};return o!=="center"&&(t?u[Xl[o]]=`calc(100% - ${s(o)}px)`:u[o]=0),a!=="center"?t?u[Xl[a]]=`calc(100% - ${s(a)}px)`:u[a]=0:(o==="center"?u.top=u.left="50%":u[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",u.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),u})}}const iR=Ge({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Wn(),...Mh({location:"top"}),...Xs(),...ti(),...zn()},"VProgressLinear"),oR=Lr()({name:"VProgressLinear",props:iR(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const n=cd(e,"modelValue"),{isRtl:i,rtlClasses:o}=dd(),{themeClasses:a}=Zi(e),{locationStyles:s}=Hh(e),{textColorClasses:u,textColorStyles:c}=Ji(e,"color"),{backgroundColorClasses:l,backgroundColorStyles:p}=na(W(()=>e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:f}=na(W(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:h,backgroundColorStyles:m}
52=na(e,"color"),{roundedClasses:g}=Js(e),{intersectionRef:E,isIntersecting:w}=Nh(),T=W(()=>parseFloat(e.max)),k=W(()=>parseFloat(e.height)),P=W(()=>wu(parseFloat(e.bufferValue)/T.value*100,0,100)),C=W(()=>wu(parseFloat(n.value)/T.value*100,0,100)),D=W(()=>i.value!==e.reverse),F=W(()=>e.indeterminate?"fade-transition":"slide-x-transition"),$=fd&&window.matchMedia?.("(forced-colors: active)").matches;function U(N){if(!E.value)return;const{left:re,right:ae,width:ie}=E.value.getBoundingClientRect(),Y=D.value?ie-N.clientX+(ae-ie):N.clientX-re;n.value=Math.round(Y/ie*T.value)}return cn(()=>ce(e.tag,{ref:E,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&w.value,"v-progress-linear--reverse":D.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},g.value,a.value,o.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?je(k.value):0,"--v-progress-linear-height":je(k.value),...e.absolute?s.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(n.value),T.value),onClick:e.clickable&&U},{default:()=>[e.stream&&ce("div",{key:"stream",class:["v-progress-linear__stream",u.value],style:{...c.value,[D.value?"left":"right"]:je(-k.value),borderTop:`${je(k.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${je(k.value/4)})`,width:je(100-P.value,"%"),"--v-progress-linear-stream-to":je(k.value*(D.value?1:-1))}},null),ce("div",{class:["v-progress-linear__background",$?void 0:l.value],style:[p.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),ce("div",{class:["v-progress-linear__buffer",$?void 0:d.value],style:[f.value,{opacity:parseFloat(e.bufferOpacity),width:je(P.value,"%")}]},null),ce(id,{name:F.value},{default:()=>[e.indeterminate?ce("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(N=>ce("div",{key:N,class:["v-progress-linear__indeterminate",N,$?void 0:h.value],style:m.value},null))]):ce("div",{class:["v-progress-linear__determinate",$?void 0:h.value],style:[m.value,{width:je(C.value,"%")}]},null)]}),r.default&&ce("div",{class:"v-progress-linear__content"},[r.default({value:C.value,buffer:P.value})])]})),{}}}),aR=Ge({loading:[Boolean,String]},"loader");function sR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dr();return{loaderClasses:W(()=>({[`${t}--loading`]:e.loading}))}}function eC(e,t){let{slots:r}=t;return ce("div",{class:`${e.name}__loader`},[r.default?.({color:e.color,isActive:e.active})||ce(oR,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const uR=["static","relative","fixed","absolute","sticky"],cR=Ge({position:{type:String,validator:e=>uR.includes(e)}},"position");function lR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dr();return{positionClasses:W(()=>e.position?`${t}--${e.position}`:void 0)}}function dR(){const e=eo("useRoute");return W(()=>e?.proxy?.$route)}function tC(){return eo("useRouter")?.proxy?.$router}function fR(e,t){const r=ad("RouterLink"),n=W(()=>!!(e.href||e.to)),i=W(()=>n?.value||Tu(t,"click")||Tu(e,"click"));if(typeof r=="string"||!("useLink"in r)){const p=Et(e,"href");return{isLink:n,isClickable:i,href:p,linkProps:jt({href:p})}}const o=W(()=>({...e,to:Et(()=>e.to||"")})),a=r.useLink(o.value),s=W(()=>e.to?a:void 0),u=dR(),c=W(()=>s.value?e.exact?u.value?s.value.isExactActive?.value&&ld(s.value.route.value.query,u.value.query):s.value.isExactActive?.value??!1:s.value.isActive?.value??!1:!1),l=W(()=>e.to?s.value?.route.value.href:e.href);return{isLink:n,isClickable:i,isActive:c,route:s.value?.route,navigate:s.value?.navigate,href:l,linkProps:jt({href:l,"aria-current":W(()=>c.value?"page":void 0)})}}const pR=Ge({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let aa=!1;function rC(e,t){let r=!1,n,i;fd&&e?.beforeEach&&(or(()=>{window.addEventListener("popstate",o),n=e.beforeEach((a,s,u)=>{aa?r?t(u):u():setTimeout(()=>r?t(u):u()),aa=!0}),i=e?.afterEach(()=>{aa=!1})}),en(()=>{window.removeEventListener("popstate",o),n?.(),i?.()}));function o(a){a.state?.replaced||(r=!0,setTimeout(()=>r=!1))}}function hR(e,t){br(()=>e.isActive?.value,r=>{e.isLink.value&&r&&t&&or(()=>{t(!0)})},{immediate:!0})}const Qa=Symbol("rippleStop"),vR=80;function Jl(e,t){e.style.transform=t,e.style.webkitTransform=t}function Za(e){return e.constructor.name==="TouchEvent"}function Uh(e){return e.constructor.name==="KeyboardEvent"}const mR=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=0,i=0;if(!Uh(e)){const p=t.getBoundingClientRect(),d=Za(e)?e.touches[e.touches.length-1]:e;n=d.clientX-p.left,i=d.clientY-p.top}let o=0,a=.3;t._ripple?.circle?(a=.15,o=t.clientWidth/2,o=r.center?o:o+Math.sqrt((n-o)**2+(i-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-o*2)/2}px`,u=`${(t.clientHeight-o*2)/2}px`,c=r.center?s:`${n-o}px`,l=r.center?u:`${i-o}px`;return{radius:o,scale:a,x:c,y:l,centerX:s,centerY:u}},Yi={show(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const n=document.createElement("span"),i=document.createElement("span");n.appendChild(i),n.className="v-ripple__container",r.class&&(n.className+=` ${r.class}`);const{radius:o,scale:a,x:s,y:u,centerX:c,centerY:l}=mR(e,t,r),p=`${o*2}px`;i.className="v-ripple__animation",i.style.width=p,i.style.height=p,t.appendChild(n);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),Jl(i,`translate(${s}, ${u}) scale3d(${a},${a},${a})`),i.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),Jl(i,`translate(${c}, ${l}) scale3d(1,1,1)`)}
52)})},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const r=t[t.length-1];if(r.dataset.isHiding)return;r.dataset.isHiding="true";const n=performance.now()-Number(r.dataset.activated),i=Math.max(250-n,0);setTimeout(()=>{r.classList.remove("v-ripple__animation--in"),r.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),r.parentNode?.parentNode===e&&e.removeChild(r.parentNode)},300)},i)}};function Fh(e){return typeof e>"u"||!!e}function jn(e){const t={},r=e.currentTarget;if(!(!r?._ripple||r._ripple.touched||e[Qa])){if(e[Qa]=!0,Za(e))r._ripple.touched=!0,r._ripple.isTouch=!0;else if(r._ripple.isTouch)return;if(t.center=r._ripple.centered||Uh(e),r._ripple.class&&(t.class=r._ripple.class),Za(e)){if(r._ripple.showTimerCommit)return;r._ripple.showTimerCommit=()=>{Yi.show(e,r,t)},r._ripple.showTimer=window.setTimeout(()=>{r?._ripple?.showTimerCommit&&(r._ripple.showTimerCommit(),r._ripple.showTimerCommit=null)},vR)}else Yi.show(e,r,t)}}function Yl(e){e[Qa]=!0}function Ot(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Ot(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Yi.hide(t)}}function Bh(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let $n=!1;function Vh(e){!$n&&(e.keyCode===Su.enter||e.keyCode===Su.space)&&($n=!0,jn(e))}function jh(e){$n=!1,Ot(e)}function $h(e){$n&&($n=!1,Ot(e))}function Gh(e,t,r){const{value:n,modifiers:i}=t,o=Fh(n);if(o||Yi.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=i.center,e._ripple.circle=i.circle,um(n)&&n.class&&(e._ripple.class=n.class),o&&!r){if(i.stop){e.addEventListener("touchstart",Yl,{passive:!0}),e.addEventListener("mousedown",Yl);return}e.addEventListener("touchstart",jn,{passive:!0}),e.addEventListener("touchend",Ot,{passive:!0}),e.addEventListener("touchmove",Bh,{passive:!0}),e.addEventListener("touchcancel",Ot),e.addEventListener("mousedown",jn),e.addEventListener("mouseup",Ot),e.addEventListener("mouseleave",Ot),e.addEventListener("keydown",Vh),e.addEventListener("keyup",jh),e.addEventListener("blur",$h),e.addEventListener("dragstart",Ot,{passive:!0})}else!o&&r&&qh(e)}function qh(e){e.removeEventListener("mousedown",jn),e.removeEventListener("touchstart",jn),e.removeEventListener("touchend",Ot),e.removeEventListener("touchmove",Bh),e.removeEventListener("touchcancel",Ot),e.removeEventListener("mouseup",Ot),e.removeEventListener("mouseleave",Ot),e.removeEventListener("keydown",Vh),e.removeEventListener("keyup",jh),e.removeEventListener("dragstart",Ot),e.removeEventListener("blur",$h)}function gR(e,t){Gh(e,t,!1)}function yR(e){delete e._ripple,qh(e)}function bR(e,t){if(t.value===t.oldValue)return;const r=Fh(t.oldValue);Gh(e,t,r)}const _R={mounted:gR,unmounted:yR,updated:bR},ER=Ge({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Lh},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:ua,appendIcon:ua,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...Ah(),...Wn(),...Ph(),...rR(),...Ih(),...qI(),...aR(),...Mh(),...cR(),...Xs(),...pR(),...Qs(),...ti({tag:"button"}),...zn(),...Ch({variant:"elevated"})},"VBtn"),Ql=Lr()({name:"VBtn",props:ER(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:r,slots:n}=t;const{themeClasses:i}=Zi(e),{borderClasses:o}=kh(e),{densityClasses:a}=Oh(e),{dimensionStyles:s}=nR(e),{elevationClasses:u}=Rh(e),{loaderClasses:c}=sR(e),{locationStyles:l}=Hh(e),{positionClasses:p}
52=lR(e),{roundedClasses:d}=Js(e),{sizeClasses:f,sizeStyles:h}=Zs(e),m=zI(e,e.symbol,!1),g=fR(e,r),E=W(()=>e.active!==void 0?e.active:g.isLink.value?g.isActive?.value:m?.isSelected.value),w=W(()=>E.value?e.activeColor??e.color:e.color),T=W(()=>({color:m?.isSelected.value&&(!g.isLink.value||g.isActive?.value)||!m||g.isActive?.value?w.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:k,colorStyles:P,variantClasses:C}=$I(T),D=W(()=>m?.disabled.value||e.disabled),F=W(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),$=W(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function U(N){D.value||g.isLink.value&&(N.metaKey||N.ctrlKey||N.shiftKey||N.button!==0||r.target==="_blank")||(g.navigate?.(N),m?.toggle())}return hR(g,m?.select),cn(()=>{const N=g.isLink.value?"a":e.tag,re=!!(e.prependIcon||n.prepend),ae=!!(e.appendIcon||n.append),ie=!!(e.icon&&e.icon!==!0);return $v(ce(N,is({type:N==="a"?void 0:"button",class:["v-btn",m?.selectedClass.value,{"v-btn--active":E.value,"v-btn--block":e.block,"v-btn--disabled":D.value,"v-btn--elevated":F.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},i.value,o.value,k.value,a.value,u.value,c.value,p.value,d.value,f.value,C.value,e.class],style:[P.value,s.value,l.value,h.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:D.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:U,value:$.value},g.linkProps),{default:()=>[jI(!0,"v-btn"),!e.icon&&re&&ce("span",{key:"prepend",class:"v-btn__prepend"},[n.prepend?ce(ia,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},n.prepend):ce(oa,{key:"prepend-icon",icon:e.prependIcon},null)]),ce("span",{class:"v-btn__content","data-no-activator":""},[!n.default&&ie?ce(oa,{key:"content-icon",icon:e.icon},null):ce(ia,{key:"content-defaults",disabled:!ie,defaults:{VIcon:{icon:e.icon}}},{default:()=>[n.default?.()??sa(e.text)]})]),!e.icon&&ae&&ce("span",{key:"append",class:"v-btn__append"},[n.append?ce(ia,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},n.append):ce(oa,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&ce("span",{key:"loader",class:"v-btn__loader"},[n.loader?.()??ce(tR,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[_R,!D.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}}),wR={class:"error-page-wrapper",style:{"min-height":"100vh"}},TR={class:"demo-bg",style:{position:"relative","margin-bottom":"20px"}},SR={class:"hero-outer-wrapper",style:{position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"32px",background:"#F7F7F9 url('/img/static/home-updated/background/hero-bg.svg') no-repeat center","min-height":"80vh",display:"flex","align-items":"center","justify-content":"center"}},AR={class:"error-content-wrapper",style:{position:"relative","z-index":"1","max-width":"1096px",width:"100%",margin:"0 auto",padding:"104px 16px","text-align":"center"}},kR={class:"error-code",style:{"margin-bottom":"2rem"}},PR={class:"code-gradient",style:{"font-size":"120px","font-weight":"700",background:"linear-gradient(90deg, #547FFF 6.25%, #1F4EDA 59.13%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent","line-height":"1",display:"block"}},OR={class:"error-message",style:{"margin-bottom":"3rem"}},IR={class:"error-title",style:{"font-size":"64px","font-weight":"600","line-height":"70px","letter-spacing":"-0.64px","margin-bottom":"16px","text-align":"center"}},RR={key:0,class:"title-gradient",style:{background:"linear-gradient(90deg, #547FFF 6.25%, #1F4EDA 59.13%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},CR={key:1,class:"title-gradient",style:{background:"linear-gradient(90deg, #547FFF 6.25%, #1F4EDA 59.13%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},xR={key:2,class:"title-gradient",style:{background:"linear-gradient(90deg, #547FFF 6.25%, #1F4EDA 59.13%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},DR={key:3,class:"title-gradient",style:{background:"linear-gradient(90deg, #547FFF 6.25%, #1F4EDA 59.13%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},LR={class:"error-subtitle",style:{"font-weight":"400","font-size":"18px","line-height":"24px","letter-spacing":"0","text-align":"center",color:"#6c757d",margin:"0 auto","max-width":"770px"}},NR={class:"error-actions",style:{display:"flex",gap:"1rem","justify-content":"center","align-items":"center","flex-wrap":"wrap","margin-bottom":"2rem"}},MR={class:"error-footer",style:{"text-align":"center",padding:"2rem","margin-top":"2rem"}},HR={style:{color:"#6c757d","font-size":"16px",margin:"0"}},UR={__name:"error",props:{error:Object},setup(e){const t=e,r=wt(!1),{trackClick:n}=FI(),i=()=>{Nd({redirect:"/"})};tn(()=>{console.log("error",t.error),window.bugsnag.notify(t.error),n("page_load_error",{error:t.error?.message??"Failed to load"});const a=document.querySelector(".v-application");a&&(a.style.background="white",a.style.backgroundColor="white")});const o=async()=>{r.value=!0;try{if("caches"in window){const a=await caches.keys();await Promise.all(a.map(s=>caches.delete(s)))}window.location.reload()}catch(a){console.error("Cache clearing failed:",a),window.location.reload()}finally{r.value=!1}};return ds({title:`Error ${t.error?.statusCode||"500"} - Voice.ai`,meta:[{name:"description",content:"An error occurred on Voice.ai. Return to our AI voice platform."},{name:"robots",content:"noindex, nofollow"}]}),(a,s)=>{const u=k_,c=Sh;return lt(),kr(c,{name:"website"},{default:Wr(()=>
52[Ct("div",wR,[Ct("div",TR,[Ct("div",SR,[Ct("div",AR,[Ct("div",kR,[Ct("span",PR,sa(e.error?.statusCode||"500"),1)]),Ct("div",OR,[Ct("h1",IR,[e.error?.statusCode===404?(lt(),Wt("span",RR," Page Not Found ")):e.error?.statusCode===500?(lt(),Wt("span",CR," Server Error ")):e.error?.statusCode===403?(lt(),Wt("span",xR," Access Denied ")):(lt(),Wt("span",DR," Something Went Wrong "))]),Ct("p",LR,[e.error?.statusCode===404?(lt(),Wt(zr,{key:0},[lr(" The page you're looking for doesn't exist or has been moved. ")],64)):e.error?.statusCode===500?(lt(),Wt(zr,{key:1},[lr(" Our AI voice platform is experiencing technical difficulties. Please try again in a moment. ")],64)):e.error?.statusCode===403?(lt(),Wt(zr,{key:2},[lr(" You don't have permission to access this resource. ")],64)):(lt(),Wt(zr,{key:3},[lr(sa(e.error?.message||"An unexpected error occurred while processing your request."),1)],64))])]),Ct("div",NR,[ce(Ql,{class:"primary-btn",size:"large",onClick:i,"prepend-icon":"fas fa-home",style:{"min-width":"180px",height:"52px","border-radius":"12px","font-weight":"500","text-transform":"none","letter-spacing":"0","font-size":"16px",background:"linear-gradient(90deg, #547FFF 6.25%, #1F4EDA 59.13%) !important",color:"white !important","box-shadow":"0 4px 14px rgba(84, 127, 255, 0.25)"}},{default:Wr(()=>[...s[0]||(s[0]=[lr(" Back to Home ",-1)])]),_:1}),ce(Ql,{variant:"outlined",class:"secondary-btn",size:"large",onClick:o,"prepend-icon":"fas fa-redo",loading:r.value,style:{"min-width":"180px",height:"52px","border-radius":"12px","font-weight":"500","text-transform":"none","letter-spacing":"0","font-size":"16px",border:"2px solid #547FFF !important",color:"#547FFF !important",background:"white !important"}},{default:Wr(()=>[...s[1]||(s[1]=[lr(" Try Again ",-1)])]),_:1},8,["loading"])]),Ct("div",MR,[Ct("p",HR,[s[3]||(s[3]=lr(" Need help? ",-1)),ce(u,{to:"/contact",style:{color:"#547FFF","text-decoration":"none","font-weight":"500"}},{default:Wr(()=>[...s[2]||(s[2]=[lr(" Contact our support team ",-1)])]),_:1})])])])])])])]),_:1})}}},FR={key:0},Zl={__name:"nuxt-root",setup(e){const t=()=>null,r=Ce(),n=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",n);Tt().beforeEach(c)}const i=!1;Jt(Cr,us()),r.hooks.callHookWith(c=>c.map(l=>l()),"vue:setup");const o=ro(),a=!1,s=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;Gv((c,l,p)=>{if(r.hooks.callHook("vue:error",c,l,p).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),s.test(navigator.userAgent))return r.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(Md(c)&&(c.fatal||c.unhandled))return r.runWithContext(()=>Ar(c)),!1});const u=!1;return(c,l)=>(lt(),kr(ns,{onResolve:Ve(n)},{default:Wr(()=>[Ve(a)?(lt(),Wt("div",FR)):Ve(o)?(lt(),kr(Ve(UR),{key:1,error:Ve(o)},null,8,["error"])):Ve(u)?(lt(),kr(Ve(t),{key:2,context:Ve(u)},null,8,["context"])):Ve(i)?(lt(),kr(ad(Ve(i)),{key:3})):(lt(),kr(Ve(NI),{key:4}))]),_:1},8,["onResolve"]))}};let ed;{let e;ed=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?qv(Zl):zv(Zl),i=bg({vueApp:n});async function o(a){await i.callHook("app:error",a),i.payload.error||=Rr(a)}n.config.errorHandler=o,i.hook("app:suspense:resolve",()=>{n.config.errorHandler===o&&(n.config.errorHandler=void 0)});try{await wg(i,_I)}catch(a){o(a)}try{await i.hooks.callHook("app:created",n),await i.hooks.callHook("app:beforeMount",n),n.mount(mg),await i.hooks.callHook("app:mounted",n),await or()}catch(a){o(a)}return n},e=ed().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{pR as $,rC as A,Tg as B,GR as C,Nr as D,bd as E,Td as F,wd as G,$R as H,Em as I,Ce as J,us as K,wf as L,JR as M,li as N,so as O,_s as P,ff as Q,gE as R,oa as S,ti as T,_R as U,Ql as V,fR as W,kh as X,Oh as Y,Rh as Z,CI as _,FI as a,Ih as a0,Ph as a1,Ah as a2,Ji as a3,sR as a4,Hh as a5,aR as a6,eC as a7,Zs as a8,Qs as a9,GI as aa,WI as ab,zI as ac,qI as ad,tR as ae,zR as af,c_ as ag,Rr as ah,ZR as ai,Cr as aj,MI as ak,qr as al,XR as am,KR as an,WR as ao,ER as ap,TI as aq,tf as b,er as c,ds as d,QR as e,Tt as f,A as g,k_ as h,lR as i,$I as j,Js as k,jI as l,oR as m,cs as n,ia as o,Ad as p,Ch as q,Xs as r,cR as s,Mh as t,Kr as u,YR as v,rR as w,na as x,nR as y,tC 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.