1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./_Ro7l-fj.js","./DUcVQHuF.js","./Tg6eheFi.js","./Ib1jYPSS.js","./CaUmzn20.js","./DuQ2LTf6.js","./DC1376r_.js","./D75bQTbd.js","./Dg-88IZo.js","./ClewNHwF.js","./DbfkCQN2.js","./BWvQhbqt.js","./BGWqtCi3.js","./BUba7gzX.js","./HclGiUj8.js","./DPZEm7k3.js","./DgF6NgaG.js","./D6-vYzcO.js","./B0Z9INg1.js","./CZ4bUvnS.js","./CDmmTT0F.js","./CEbUto7H2.js","./BU5wl48I.js","./vv-wU3_Y.js","./Cz_a1tgg.js","./DLqxzgY32.js","./KLtl_-8s2.js","./QyStSQlT2.js","./CknEvwdQ.js","./BgReSmoG2.js","./E7sq-RNF2.js","./CxPA99An.js","./DB2fQV4V.js","./CnGWZlrW.js","./reQYPJsq.js","./CNYTWqCv.js","./F33CICOe.js","./CX5zRWfG2.js","./YaUMbSMg.js","./BH6VTWm0.js","./Y7tc2rvV.js","./Cr5PyoVC.js","./BOLi7ScJ.js","./HUrfv96Y.js","./DLSiUSnF2.js","./1yHKw-Vn.js","./BFVtezt7.js","./cOc_jJ6M.js","./DyOLrrsJ.js","./DWb8rqp-.js","./DdSCj0lX.js","./Duf8D5Sh.js","./Cf-EsSlO2.js","./B9SIgje3.js","./BV8K3dnb.js","./oy1FkC66.js","./DENMkgYq.js","./BDNMzG2s2.js","./CkwFlJRL2.js","./CiUQ8cU82.js","./BaseContainer.LVkHMuHo.css","./BzdVlNhP.js","./qi6HvukQ.js","./BaseSectionCard.BEhEndS8.css","./bedankt.Bel_YoaQ.css","./N86Jpzos.js","./RlQJxfJi.js","./Boc237cU.js","./Ti20tHWX.js","./CYBedqEy2.js","./C6J5DZAz2.js","./DUfpWM5n2.js","./TappIcon.TE6Vygy8.css","./TappButton.CVZkCFy5.css","./DCTOcLDB2.js","./CiqrGD5D.js","./BQlkxKLL2.js","./DNKBpPpo2.js","./2f4ARqvK2.js","./DhHodqou2.js","./CVwbImKs.js","./BPvKtXU_.js","./TappSelectbox.CB45cyES.css","./B-iL6EJv.js","./TappModal.CIO7dCXv.css","./BXzIMLUj.js","./TappTooltip.BemyKlH6.css","./Bkafqbfr2.js","./TappAlert.Da3JKgX7.css","./BdaRKrOD2.js","./D2kitVE9.js","./TappCheckbox.Bu8ml8QK.css","./terms.CzpwP9NC.css","./Dv88WpaE2.js","./TappAccordion.DGFMcCf5.css","./contact.BX7spBn-.css","./D4WOXzxx2.js","./CvUfl5fB2.js","./Kd4aYpxY2.js","./Dv8zYsJv.js","./BI1qIhTe.js","./AppSection.Be622ppw.css","./6aiATvwA2.js","./DOwu4PN82.js","./CaVFm9_s2.js","./DP1dn-eo2.js","./BaseRichText.DkMVyN85.css","./BaseFaqs.CrRyp9nD.css","./actie.Y7GyuGht.css","./D_F0gckQ2.js","./BjdjGUU62.js","./XxCY8fVr2.js","./2czXkIW2.js","./CqDOJiUQ.js","./CO5eCi__.js","./CVrloqBX2.js","./CqHGt7o7.js","./QVjI-MRN.js","./DnoyuS_b2.js","./Dm2MCLSZ2.js","./Cym5MUSb2.js","./GZ0wGXp-2.js","./BvqkM2Gf2.js","./CLBqUhJp2.js","./CnWUbGL1.js","./Cqbod6LZ2.js","./BaseUspList.Dy-AZukA.css","./BaseUspStackProposition.CYubGwg1.css","./SbbPwqwh2.js","./BasePvExplanation.yocs3IJB.css","./BYy0Y0ss2.js","./BxmYYftI.js","./B9eHJGwd.js","./zakelijk.DZ_W96sX.css","./CptjRO6z2.js","./D5CKcgMp.js","./CNs_Ozdc2.js","./BqgPYqUy2.js","./B--qjJWx.js","./Ci5E8d3D.js","./Cp8QHZtO.js","./BlokAccessibilityPolicyDocument.DECcIYZN.css","./DUWeXo7y.js","./BE45nH_m.js","./GWXpQWS8.js","./9G306eGi.js","./CJ-w0jbw.js","./aoxqSVfQ.js","./TappLink.D8BPAoy7.css","./BOm_HimZ.js","./TappRadio.5vwcsWtu.css","./Bw2zVT9w.js","./C-o_2atA.js","./aqcshjdq.js","./Ck5ekuay.js","./TappSectionCard.CExfdfB2.css","./CxD8eY2d.js","./TappBadge.BVFEKq4O.css","./D4r1Gn5m.js","./BasePicture.0Gl3tQrb.css","./-liFxczZ.js","./BjQivfj6.js","./Pv.BexpL3fA.css","./CsiZIu0H.js","./BaseProductImage.COZ6sqxd.css","./BaseCompactCheckoutSummary.GfLFOdJ7.css","./BR3m5Fpu.js","./CxM6fEft.js","./TappLabel.Db5qBltT.css","./TappPrice.Bj3HpjP-.css","./BaseCheckoutWrapper.CllSepiT.css","./CZgGXRJI.js","./SharedCampaignPage.BB-CYXCs.css","./znkepZY3.js","./SharedCollapsibleTextBlok.DPP24ZSF.css","./Cnpc7yVb.js","./SharedColumnBlok.DLfn3Tws.css","./BuKYGuhH.js","./SharedColumnsBlok.TFpDl1lz.css","./rA2w3e_Y.js","./DqBbM8Du.js","./yTADJS5V.js","./SharedHeadingBlok.CN8NJGpf.css","./CKQMfcMY.js","./SharedImageBlok.CP7v0IVC.css","./50zmBTpf.js","./SharedMediaGridBlok.BACB
1dqOv.css","./BKQ6-xkU.js","./DZRkcK6z.js","./BaseMediaGridCell.C8Qxeuer.css","./SharedMediaImageBlok.DzlVNZHt.css","./BBl5V3Ff.js","./D49AZ3W5.js","./ShopsSectionBlok.D0G-Q3GO.css","./SharedMediaQuoteBlok.BqSPpW8B.css","./CWoNGmkT.js","./nz01lGOa2.js","./DPwNt1FV2.js","./SharedPlusMoreBlok.YdE--V54.css","./DDuSK1p32.js","./DMgqQS3O2.js","./B_7SvlKH2.js","./TappLogo.nLpfTo8x.css","./CZ8bdamx2.js","./TappPriceHero.RhX4oZKW.css","./BYhKPt5x2.js","./SharedPropositionCards.Icx76vL_.css","./xH3E30982.js","./SharedTextBlock.C1IF9Rbg.css","./CmTiDw442.js","./DnaajBE62.js","./AppSectionLabel.QIMjmj3u.css","./ShopsAboutQuoteBlok.DjbY7V1X.css","./By2kdbC02.js","./7-EaBve92.js","./ShopsAppStoreBadges.D5d0vmU0.css","./BQYPUaQ22.js","./unwdA1ps2.js","./AppNavigationListItem.DndVgFKm.css","./ShopsBusinessColumns.fyy1KiaF.css","./CFS7g2V02.js","./DbWLcc0V2.js","./AppCarousel.CzDAOq3u.css","./ShopsBusinessKidsweekContentSection.Bkmqn9g3.css","./KIToWzNa2.js","./ShopsBusinessPartners.rVWVNXhn.css","./DZrESG9A2.js","./ShopsCardBlok.DH8Zres-.css","./CHoa2CED2.js","./ShopsCardsBlok.Bp2Ma2-7.css","./BXiEKcg92.js","./DgfulCxG2.js","./DiCi36tx2.js","./BaseProcessIndicator.D1Kkl58y.css","./CtmLULXF2.js","./ShopsCheckoutPage.t83HJk44.css","./BCGJ_HNV2.js","./Oy5WRIb6.js","./ShopsConfirmationCardBlok.B5EY36dn.css","./DtxlxC502.js","./ShopsConfirmationCrossSellBlok.DYA9rlRk.css","./CD9fb3rL2.js","./ShopsConfirmationPage.DE2TyRkq.css","./Cz6F1Hmb2.js","./ShopsCustomerServiceBlok.BK1j8gwQ.css","./immhoK9f.js","./CdGnPNks.js","./Bgao2Exw.js","./ShopsHeroHeaderBlok.DqKBDDr0.css","./BdMEANBU.js","./BtbOZvLu.js","./DcFUR6Yg.js","./TappProductGrid.Cv53VIrP.css","./usePriceDisclaimer.CNtwj1rc.css","./ShopsHighlightWindowBlok.DwQ3pgoI.css","./BcYRC3Z3.js","./ShopsKidsweekExternalLinkBlok.rz7HFVQM.css","./B3blc0Fw.js","./ShopsKidsweekNewsBlok.CbwHWTT_.css","./DEpwlyNt.js","./DSmld_lW.js","./ShopsPricingTable.B6e4tfzT.css","./BX3pMHua.js","./CXHpsTuV2.js","./Cw4XSQRh.js","./ShopsProductWindowBlok.BekM9cO_.css","./qt2fc-g6.js","./ShopsProductWindowBusiness.DnLBEgBF.css","./UTsmPc9v.js","./ShopsSeoBlok.Dpmf3hll.css","./BwDxqhGV.js","./ShopsSeoContentBlok.Cyx2YmtJ.css","./R1CyvHR2.js","./ShopsSliderBlok.vDJLvQLg.css","./sPVFqaZy.js","./9rm_jjBw.js","./branded.DZZGff1K.css","./9zuGj8Tx.js","./DRlfKWMy2.js","./customerService.Dkmu4onW.css","./error-layout.B6b2FCm5.css","./DbwPdPEd.js","./CsS8vyGW.js","./CJF7XvcM2.js","./InspectorOverrideBadge.C6FSi4ZU.css","./DHXDURDf.js","./CUWJ4c3O2.js","./BNSM49sg2.js","./DuTSqBad.js","./MYOTtcAh.js","./InspectorContainer.BBNfNtjF.css"])))=>i.map(i=>d[i]); 2import{a as e,t}from"./B0Z9INg1.js";import{a as n,c as r,n as i,o as a,p as o,r as s,s as c,t as l,u}from"./Tg6eheFi.js";import{B as d,D as f,E as p,En as m,H as h,Ht as g,J as _,Kt as v,L as y,O as b,On as x,Qn as S,St as C,Un as w,Z as ee,_ as T,an as te,b as E,bt as ne,ct as D,er as re,et as O,ft as ie,g as k,gn as ae,gt as A,h as oe,in as se,it as ce,k as j,l as le,ln as M,mt as N,nr as P,o as ue,pn as de,qt as F,rt as fe,s as pe,st as me,tt as he,un as ge,v as I,vn as _e,vt as ve,w as ye,wn as be,wt as xe,xn as Se,xt as Ce,y as we,yn as Te,z as Ee}from"./Ib1jYPSS.js";import{a as De,i as Oe}from"./BUba7gzX.js";import{a as ke,c as Ae,d as je,o as Me,r as Ne,t as Pe,u as Fe}from"./CaUmzn20.js";import{_ as Ie,a as Le,c as Re,f as ze,g as Be,h as Ve,i as He,m as Ue,n as We,o as Ge,p as Ke,r as qe,s as Je,t as Ye,u as Xe,v as Ze}from"./DUcVQHuF.js";import{_ as Qe,a as $e,c as et,g as tt,h as nt,i as rt,l as it,p as at,r as ot,s as st}from"./DuQ2LTf6.js";import{t as ct}from"./DC1376r_.js";import{i as lt,n as ut,o as dt,s as ft,t as pt}from"./ClewNHwF.js";import{n as mt}from"./DbfkCQN2.js";import{a as ht,c as gt,d as _t,f as vt,g as yt,h as bt,i as xt,l as St,m as Ct,n as wt,o as Tt,p as Et,s as Dt,u as Ot}from"./DENMkgYq.js";import{n as kt,t as At}from"./BWvQhbqt.js";import{c as jt,d as Mt,f as Nt,h as Pt,l as Ft,m as It,o as Lt,p as Rt,r as zt,s as Bt,t as Vt,u as Ht}from"./Dg-88IZo.js";import{A as Ut,B as Wt,C as Gt,D as Kt,E as qt,F as Jt,G as Yt,H as Xt,I as Zt,J as Qt,K as $t,L as en,M as tn,N as nn,O as rn,P as an,R as on,S as sn,T as cn,U as ln,V as un,W as dn,X as f
2n,Y as pn,_ as mn,b as hn,c as gn,f as _n,g as vn,h as yn,i as bn,j as xn,k as Sn,l as Cn,m as L,o as wn,p as Tn,q as En,s as Dn,t as On,v as kn,w as An,x as jn,y as Mn,z as R}from"./BGWqtCi3.js";import{t as z}from"./HclGiUj8.js";import{a as Nn,i as Pn,n as Fn,o as In,r as Ln,s as Rn,t as zn}from"./vv-wU3_Y.js";import{t as Bn}from"./DPZEm7k3.js";import{a as Vn,i as Hn,t as Un}from"./DgF6NgaG.js";import{t as Wn}from"./reQYPJsq.js";import{i as Gn,r as Kn}from"./CnGWZlrW.js";import{t as qn}from"./CZ4bUvnS.js";import{n as Jn}from"./CxPA99An.js";import{t as Yn}from"./9G306eGi.js";import{t as Xn}from"./Cz_a1tgg.js";import{i as Zn}from"./CNYTWqCv.js";import{t as Qn}from"./CqDOJiUQ.js";import{r as $n,t as er}from"./cOc_jJ6M.js";import{D as tr,E as nr,O as rr,P as ir,V as ar,j as or,z as sr}from"./Ti20tHWX.js";import{n as cr,t as lr}from"./RlQJxfJi.js";import{n as ur,t as dr}from"./DB2fQV4V.js";import{n as fr,t as pr}from"./CiqrGD5D.js";import{i as mr,n as hr,t as gr}from"./CJF7XvcM2.js";import{t as _r}from"./DLqxzgY32.js";import{n as vr,p as yr,r as br}from"./CYBedqEy2.js";import{c as xr,t as Sr}from"./KLtl_-8s2.js";import{i as Cr}from"./QyStSQlT2.js";import{t as wr}from"./BQlkxKLL2.js";import{a as Tr,i as Er,n as Dr,r as Or,t as kr}from"./DRlfKWMy2.js";import{t as Ar}from"./BDNMzG2s2.js";import{t as jr}from"./DUfpWM5n2.js";import{t as Mr}from"./C6J5DZAz2.js";import{t as Nr}from"./CkwFlJRL2.js";import{t as Pr}from"./CUWJ4c3O2.js";import{t as Fr}from"./BNSM49sg2.js";import{t as Ir}from"./B-iL6EJv.js";import{n as Lr,t as Rr}from"./D75bQTbd.js";import{t as zr}from"./D5CKcgMp.js";import{t as Br}from"./BH6VTWm0.js";import{t as Vr}from"./Cr5PyoVC.js";import{t as Hr}from"./Dv8zYsJv.js";import{t as Ur}from"./Bgao2Exw.js";import{t as Wr}from"./BzdVlNhP.js";import{t as Gr}from"./DyOLrrsJ.js";import{n as Kr}from"./CO5eCi__.js";import{t as qr}from"./2czXkIW2.js";import{t as Jr}from"./CJ-w0jbw.js";import{t as Yr}from"./Ci5E8d3D.js";import{t as Xr}from"./Oy5WRIb6.js";import{n as Zr,t as Qr}from"./Cw4XSQRh.js";import{n as $r,t as ei}from"./CnWUbGL1.js";import{t as ti}from"./BI1qIhTe.js";import{t as ni}from"./1yHKw-Vn.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),`global`in globalThis||(globalThis.global=globalThis);var ri=/\\/g,ii=/</g,ai=/"/g,oi=/%\w+(?:\.\w+)?/g,si=`%separator`;function ci(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0)return n?(r||``).replace(ri,`\\\\`).replace(ii,`\\u003C`).replace(ai,`\\"`):r||``}function li(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(oi);if(!a)return e;let o=e.includes(si);return e=e.replace(oi,e=>{if(e===si||!a.includes(e))return e;let n=ci(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(si).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var ui=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,di=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),fi=yt({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=di(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=di(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(ui))}}}),pi=yt({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let 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),`body`
2in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function mi(e){return typeof e?.then==`function`}var hi=256;function gi(e,t){if(t===e.length)return;if(t===hi){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=vi(e[t]);n[t]=i,r||=mi(i)}return r?n:void 0}let n=vi(e[t]);if(mi(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=vi(e[n]);return r}let r=gi(e,t+1);return r&&(r[t]=n),r}function _i(e,t,n){if(n===t.length)return;if(n===hi){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=vi(e[t[n]]);r[n]=a,i||=mi(a)}return i?r:void 0}let r=vi(e[t[n]]);if(mi(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=vi(e[t[r]]);return i}let i=_i(e,t,n+1);return i&&(i[n]=r),i}function vi(e){if(typeof e==`function`)return e;if(mi(e))return Promise.resolve(e).then(vi);if(Array.isArray(e)){let t=gi(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=_i(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var yi=yt(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=vi(a);if(!mi(o)){t.delete(i);continue}t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})}}}}},`promises`),bi={meta:`content`,link:`href`,htmlAttrs:`lang`},xi=[`innerHTML`,`textContent`];function Si(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?li(e,t,n,r):e}var Ci=yt(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=Si(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=bi[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=Si(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of xi)typeof e[t]==`string`&&(e[t]=Si(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Si(n.textContent,e._templateParams,e._separator))}}}),`template-params`);function wi(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function Ti(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>wi(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}function Ei(){}function Di(e,t){t.forEach(t=>{let n=e,r=e;t.forEach(({type:e,key:t,args:i})=>{e===`get`?(r=n,n=n[t]):e===`apply`&&(n=n.call(r,...i))})})}function Oi(e,t){let n,r=e;for(let e of t){if(r==null)return{owner:void 0,value:void 0};n=r,r=r[e]}return{owner:n,value:r}}function ki(e={}){let t=[],n,r=-1;function i(a){let o=new Map;return new Proxy(Ei,{get(s,c){if(n){let{value:e}=Oi(n,a),t=e==null?void 0:Reflect.get(e,c,e);if(typeof t!=`function`)return t}else if(a.length)t[r].push({type:`get`,key:c});else{let n=Reflect.get(e,c);if(n!==void 0)return n;r++,t[r]=[],t[r].push({type:`get`,key:c})}let l=o.get(c);return l||(l=i([...a,c]),o.set(c,l)),l},apply(e,i,o){if(n){let{owner:e,value:t}=Oi(n,a);typeof t==`function`&&Reflect.apply(t,e,o)}else t[r].push({type:`apply`,key:``,args:o})}})}return{proxy:i([]),stack:t,resolve(e){n=e,Di(e,t),t.length=0}}}function Ai(e){let t=new AbortController,n=new Set,r=!1,i=e=>{let t=()=>{n.delete(t)&&e()};return r?e():n.add(t),t},a=()=>
2{if(r)return;r=!0,t.abort();let e;for(let t of[...n].reverse())try{t()}catch(t){e||=t}e&&queueMicrotask(()=>{throw e})},o=()=>{t.abort(e.signal.reason),queueMicrotask(()=>queueMicrotask(a))};return e.signal.aborted?o():(e.signal.addEventListener(`abort`,o,{once:!0}),i(()=>e.signal.removeEventListener(`abort`,o))),Object.assign(Object.create(e),{script:e,signal:t.signal,dispose:a,setupTriggerHandler(t){if(r)return()=>{};try{return i(e._setupTriggerHandler(t,!1))}catch(e){throw a(),e}},onLoaded(t,n){return r?()=>{}:i(e.onLoaded(t,n))},onError(t,n){return r?()=>{}:i(e.onError(t,n))}})}function ji(e){return(t=>new Promise((n,r)=>{let i=!1,a=!1,o,s,c,l=(t,n)=>{if(i)return;i=!0,e.removeEventListener(`abort`,c);let a=s;s=void 0;try{a?.()}catch(e){r(e);return}t(n)},u=e=>queueMicrotask(()=>l(r,e)),d=e=>(o=e,!i&&!a&&(a=!0,Promise.resolve(e).then(e=>l(n,e),u)),e);if(c=()=>{let t=Error(`Script lifecycle aborted`);t.name=`AbortError`,u(e.reason===void 0?t:e.reason)},e.aborted){c();return}e.addEventListener(`abort`,c,{once:!0});try{let e=t(d,u);s=e!==o&&typeof e==`function`?e:void 0}catch(e){u(e)}}))}function Mi(){}function Ni(e,t,n){return Pi(e,t,n,!!n?.scope)}function Pi(e,t,n,r){let i=typeof t==`object`&&`loader`in t?t:void 0,a=i?.loader,o=typeof t==`string`?{src:t}:i?{key:i.key}:{...t},{beforeInit:s,eventContext:c,resolve:l,scope:u,trigger:d,use:f,warmupStrategy:p,...m}=n||{},h=a||l,g=o.key||o.src||(typeof o.innerHTML==`string`?o.innerHTML:``),_=e._scripts||=Object.create(null),v=Tt(_,g)?_[g]:void 0;if(v){let e=r?Ai(v):v;return r?e.setupTriggerHandler(d):v._setupTriggerHandler(d,!1),e}let y=new AbortController,b={signal:y.signal,waitFor:ji(y.signal)},x=()=>h?h(b):f?.();s?.();let S,C,w=!1;try{S=!e.ssr&&!a&&(h||f)?x():void 0}catch(e){w=!0,C=e}let ee=!!S&&typeof S.then==`function`,T=ee?null:S||null,te=w?Promise.resolve([!1,C]):ee?Promise.resolve(S).then(e=>[!0,e],e=>[!1,e]):void 0,E=[],ne,D=Mi,re=new Promise(t=>{e.ssr||(D=t)}),O=t=>{P.status=t,E.push({type:t,timestamp:Date.now()}),vt(e,`script:updated`,ue)},ie=e=>{ne=e instanceof Error?e:Error(String(e)),y.abort(ne),O(`error`),D(!1)},k=e=>queueMicrotask(()=>{D(y.signal.aborted||P.status===`removed`?!1:e)}),ae=!1,A=()=>{if(!ae){if(ae=!0,!h&&!f){k({});return}(te||(()=>{try{return Promise.resolve(x()).then(e=>[!0,e],e=>[!1,e])}catch(e){return Promise.resolve([!1,e])}})()).then(e=>{y.signal.aborted||P.status===`removed`||(e[0]?e[1]?(a&&O(`loaded`),k(e[1])):ie(Error(`${a?`loader`:`use`}() resolved without a script API`)):ie(e[1]))})}},oe=typeof o.onload==`function`?o.onload.bind(c):null,se=typeof o.onerror==`function`?o.onerror.bind(c):null,ce=()=>{oe=null,se=null};o.onload=e=>{if(!y.signal.aborted)try{O(`loaded`),A(),oe?.(e)}finally{ce()}},o.onerror=e=>{if(!y.signal.aborted)try{y.abort(),O(`error`),D(!1),se?.(e)}finally{ce()}};let j={loaded:[],error:[]},le=new Set,M=(e,t)=>e?.forEach(e=>{try{Promise.resolve(e(t)).catch(e=>console.error(e))}catch(e){console.error(e)}}),N=(t,n,r)=>{if(e.ssr)return Mi;let i;if(r?.key){if(i=`${t}:${r.key}`,le.has(i))return Mi;le.add(i)}return j[t]?(j[t].push(n),()=>{let e=j[t]?.indexOf(n)??-1;e!==-1&&j[t]?.splice(e,1),i&&le.delete(i)}):(t===`loaded`&&P.status===`loaded`?n(P.instance):t===`error`&&P.status===`error`&&n(ne),()=>{i&&le.delete(i)})},P={_loadPromise:re,_events:E,_warmupStrategy:void 0,instance:T,proxy:null,id:g,signal:y.signal,src:o.src,input:o,status:`awaitingLoad`,remove(){let e=!!P.entry;return y.abort(),ce(),P._triggerAbortControllers?.forEach(e=>e.abort()),P._triggerAbortControllers?.clear(),P._triggerPromises=[],P._warmupEl?.dispose(),P._warmupEl=void 0,P.entry&&=(P.entry.dispose(),void 0),_[g]===P&&delete _[g],P.status!==`removed`&&O(`removed`),D(!1),e},warmup(t){let{src:n}=o;if(!n)return;let r=!n.startsWith(`/`)||n.startsWith(`//`),i=t===`preconnect`||t===`dns-prefetch`,a=n;if(!t||i&&!r)return;if(i){let e=new URL(n);a=`${e.protocol}//${e.host}`}let s={href:a,rel:t,crossorigin:o.crossorigin===void 0?r?`anonymous`:void 0:o.crossorigin,referrerpolicy:o.referrerpolicy===void 0?r?`no-referrer`:void 0:o.referrerpolicy,fetchpriority:o.fetchpriority===void 0?`low`:o.fetchpriority,integrity:o.integrity,as:t===`preload`?`script`:void 0};return P._warmupEl=e.push({link:[s]},{head:e,tagPriority:`high`}),P._warmupEl},load(t){if(P.status===`removed`)return re;
2if(P._triggerAbortControllers?.forEach(e=>e.abort()),P._triggerAbortControllers?.clear(),P._triggerPromises=[],a&&!e.ssr&&P.status===`awaitingLoad`)O(`loading`),A();else if(!a&&!P.entry){O(`loading`);let t={defer:!0,fetchpriority:`low`};o.src&&(o.src.startsWith(`http`)||o.src.startsWith(`//`))&&(t.crossorigin=`anonymous`,t.referrerpolicy=`no-referrer`),P.entry=e.push({script:[{...t,...o}]},m)}return t&&N(`loaded`,t),re},onLoaded(e,t){return N(`loaded`,e,t)},onError(e,t){return N(`error`,e,t)},setupTriggerHandler(e){return P._setupTriggerHandler(e)},_setupTriggerHandler(t,n=!0){if(P.status!==`awaitingLoad`)return Mi;if((t===void 0||t===`client`)&&!e.ssr||t===`server`)return P.load(),Mi;if(t instanceof Promise){if(e.ssr)return Mi;let n=new AbortController;P._triggerAbortControllers=P._triggerAbortControllers||new Set,P._triggerAbortControllers.add(n);let r=new Promise(e=>{n.signal.addEventListener(`abort`,()=>{P._triggerAbortControllers?.delete(n),e()})});P._triggerAbortController=n,P._triggerPromises=P._triggerPromises||[];let i=Promise.race([t.then(e=>e===void 0||e?P.load:void 0),r]).catch(e=>{}).then(e=>{e?.()}).finally(()=>{P._triggerAbortControllers?.delete(n);let e=P._triggerPromises?.indexOf(i)??-1;e!==-1&&P._triggerPromises?.splice(e,1)});return P._triggerPromises.push(i),()=>n.abort()}if(typeof t==`function`){if(e.ssr)return Mi;let r=new AbortController;P._triggerAbortControllers=P._triggerAbortControllers||new Set,P._triggerAbortControllers.add(r),P._triggerAbortController=r;let i;r.signal.addEventListener(`abort`,()=>{P._triggerAbortControllers?.delete(r),typeof i==`function`&&i(),i=void 0},{once:!0});try{i=t(P.load),r.signal.aborted&&(typeof i==`function`&&i(),i=void 0)}catch(e){throw r.abort(),n&&P.remove(),e}return()=>r.abort()}return Mi},_cbs:j};re.then(e=>{if(e!==!1){P.instance=e;let t=j.loaded;j.loaded=null,j.error=null,M(t,e)}else{let e=P.status===`error`?j.error:null;j.loaded=null,j.error=null,M(e,ne)}});let ue={script:P},de=r?Ai(P):P;try{de.setupTriggerHandler(d)}catch(e){throw P.remove(),e}if(h||f){let{proxy:t,resolve:n}=ki(e.ssr?{}:T||{});P.proxy=t,P.onLoaded(n)}let F=!a&&(p||(d===void 0||d===`client`?`preload`:!1));return F&&(P._warmupStrategy=F,P.warmup(F)),_[g]=P,de}function Fi(e,t){let n=typeof e==`string`?{src:e}:e,r={...t},i=r?.head||xt();r.head=i;let a=y();if(r.eventContext=a,a&&r.trigger===void 0)r.trigger=D;else if(ge(r.trigger)||typeof r.trigger==`function`&&r.trigger.length===0){let e=r.trigger,t;r.trigger=new Promise(n=>{t=g(e,e=>{e&&n(!0)},{immediate:!0}),de(()=>n(!1),!0)}).then(e=>(t?.(),e))}i._scriptStatusWatcher=i._scriptStatusWatcher||i.hooks.hook(`script:updated`,({script:e})=>{e._statusRef&&(e._statusRef.value=e.status)});let o=Ni(i,n,r),s=r.scope===!0,c=s?o.script:o;c._statusRef=c._statusRef||_e(c.status);let l=o.onLoaded,u=o.onError;if(a){if(s)de(o.dispose);else{let e=e=>(...t)=>{let n=e(...t);return de(n),n};l=e(o.onLoaded),u=e(o.onError);let t=o._triggerAbortController;de(()=>t?.abort())}}return new Proxy(o,{get(e,t,n){return t===`status`?c._statusRef:t===`onLoaded`?l:t===`onError`?u:Reflect.get(e,t,n)}})}var Ii=()=>location.protocol+`//`+location.host;function Li(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Zt(n,``)}return Zt(n,e)+r+i}function Ri(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Li(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(R({},e.state,{scroll:Tn()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function zi(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Tn():null}}function Bi(e){let{history:t,location:n}=window,r={value:Li(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ii()+e+r;
vendor: 4,555 bytes, line 2
2try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,R({},t.state,zi(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=R({},i.value,t.state,{forward:e,scroll:Tn()});a(o.current,o,!0),a(e,R({},zi(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Vi(e){e=rn(e);let t=Bi(e),n=Ri(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=R({location:``,base:e,go:r,createHref:L.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Hi={type:0,value:``},Ui=/[a-zA-Z0-9_]/;function Wi(e){if(!e)return[[]];if(e===`/`)return[[Hi]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Ui.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Gi=`[^/]+?`,Ki={sensitive:!1,strict:!1,start:!0,end:!0},qi=/[.+*?^${}()[\]/\\]/g;function Ji(e,t){let n=R({},Ki,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(qi,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Gi;if(u!==Gi){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(un(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=un(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Yi(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Xi(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Yi(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Zi(r))return 1;if(Zi(i))return-1}return i.length-r.length}function Zi(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Qi={strict:!1,end:!0,sensitive:!1};function $i(e,t,n){let r=Ji(Wi(e.path),n),i=R(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function ea(e,t){let n=[],r=new Map;t=dn(Qi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=na(e);s.aliasOf=r&&r.record;let l=dn(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(na(R({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}
vendor: 8,395 bytes, line 2
2if(d=$i(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!ia(d)&&o(e.name)),ca(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Yt}function o(e){if(An(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=oa(e,n);n.splice(t,0,e),e.record.name&&!ia(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Wt(1,{location:e});s=i.record.name,a=R(ta(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&ta(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Wt(1,{location:e,currentLocation:t});s=i.record.name,a=R({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:aa(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function ta(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function na(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ra(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 ra(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function ia(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function aa(e){return e.reduce((e,t)=>R(e,t.meta),{})}function oa(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Xi(e,t[i])<0?r=i:n=i+1}let i=sa(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function sa(e){let t=e;for(;t=t.parent;)if(ca(t)&&Xi(e,t)===0)return t}function ca({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function la(e){let t=_(En),n=_($t),r=k(()=>{let n=x(e.to);return t.resolve(n)}),i=k(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Kt.bind(null,i));if(o>-1)return o;let s=ma(e[t-2]);return t>1&&ma(i)===s&&a[a.length-1].path!==s?a.findIndex(Kt.bind(null,e[t-2])):o}),a=k(()=>i.value>-1&&pa(n.params,r.value.params)),o=k(()=>i.value>-1&&i.value===n.matched.length-1&&qt(n.params,r.value.params));function s(n={}){if(fa(n)){let n=t[x(e.replace)?`replace`:`push`](x(e.to)).catch(Yt);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:k(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function ua(e){return e.length===1?e[0]:e}var da=j({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:la,setup(e,{slots:t}){let n=ae(la(e)),{options:r}=_(En),i=k(()=>({[ha(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[ha(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&ua(t.default(n));return e.custom?r:d(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function fa(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function pa(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!un(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ma(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var ha=(e,t,n)=>e??t??n,ga=j({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=_(Qt),i=k(()=>e.route||r.value),a=_(fn,0),o=k(()=>{let e=x(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=k(()=>i.value.matched[o.value]);A(fn,k(()=>o.value+1)),A(ln,s),A(Qt,i);let c=_e();return g(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Kt(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return _a(n.default,{Component:l,route:r});let u=o.props[a],f=u?u===!0?r.params:typeof u==`function`?u(r):u:null,p=d(l,R({},f,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return _a(n.default,{Component:p,route:r})||p}}});function _a(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var va=ga;function ya(e){let t=ea(e.routes,e),n=e.parseQuery||Ut,r=e.stringifyQuery||an,i=e.history,a=en(),o=en(),s=en(),c=Se(_n),l=_n;Gt&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=on.bind(null,e=>``+e),d=on.bind(null,mn),f=on.bind(null,yn);function p(e,n){let r,i;return An(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=R({},a||c.value),typeof e==`string`){let r=xn(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return R(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=R({},e,{path:xn(n,e.path,a.path).path});else{let t=R({},e.params);for(let e in t)t[e]??delete t[e];o=R({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Jt(r,R({},e,{hash:vn(l),path:s.path})),m=i.createHref(p);return R({fullPath:p,hash:l,query:r===an?Sn(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?xn(n,e,c.value.path):R({},e)}function y(e,t){if(l!==e)return Wt(8,{from:t,to:e})}function b(e){return w(e)}function S(e){return b(R(v(e),{replace:!0}))}function C(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),R({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function w(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=C(n,i);if(u)return w(R(v(u),{state:typeof u==`object`?R({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&cn(r,i,n)&&(f=Wt(16,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>Xt(e)?Xt(e,2)?e:oe(e):ae(e,d,i)).then(e=>{if(e){if(Xt(e,2))return w(R({replace:s},v(e.to),{state:typeof e.to==`object`?R({},a,e.to.state):a,force:o}),t||d)}else e=ne(d,i,!0,s,a);return E(d,i,e),e})}function ee(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=le.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,s]=kn(e,t);n=Mn(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(sn(r,e,t))});let c=ee.bind(null,e,t);return n.push(c),N(n).then(()=>{n=[];for(let r of a.list())n.push(sn(r,e,t));return n.push(c),N(n)}).then(()=>{n=Mn(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(sn(r,e,t))});return n.push(c),N(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(un(r.beforeEnter))for(let i of r.beforeEnter)n.push(sn(i,e,t));else n.push(sn(r.beforeEnter,e,t))}return n.push(c),N(n)}).then(()=>
2(e.matched.forEach(e=>e.enterCallbacks={}),n=Mn(s,`beforeRouteEnter`,e,t,T),n.push(c),N(n))).then(()=>{n=[];for(let r of o.list())n.push(sn(r,e,t));return n.push(c),N(n)}).catch(e=>Xt(e,8)?e:Promise.reject(e))}function E(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function ne(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===_n,l=Gt?history.state:{};n&&(r||s?i.replace(e.fullPath,R({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let D;function re(){D||=i.listen((e,t,n)=>{if(!M.listening)return;let r=_(e),a=C(r,M.currentRoute.value);if(a){w(R(a,{replace:!0,force:!0}),r).catch(Yt);return}l=r;let o=c.value;Gt&&tn(jn(o.fullPath,n.delta),Tn()),te(r,o).catch(e=>Xt(e,12)?e:Xt(e,2)?(w(R(v(e.to),{force:!0}),r).then(e=>{Xt(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(Yt),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=ne(r,o,!1),e&&(n.delta&&!Xt(e,8)?i.go(-n.delta,!1):n.type===`pop`&&Xt(e,20)&&i.go(-1,!1)),E(r,o,e)}).catch(Yt)})}let O=en(),ie=en(),k;function ae(e,t,n){oe(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function A(){return k&&c.value!==_n?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function oe(e){return k||(k=!e,re(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!Gt||!a)return Promise.resolve();let o=!r&&hn(jn(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return he().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&nn(e)).catch(e=>t===c.value&&ae(e,t,n))}let ce=e=>i.go(e),j,le=new Set,M={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:S,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ie.add,isReady:A,install(e){e.component(`RouterLink`,da),e.component(`RouterView`,va),e.config.globalProperties.$router=M,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>x(c)}),Gt&&!j&&c.value===_n&&(j=!0,b(i.location).catch(e=>{}));let t={};for(let e in _n)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(En,M),e.provide($t,Te(t)),e.provide(Qt,c);let n=e.unmount;le.add(e),e.unmount=function(){le.delete(e),le.size<1&&(l=_n,D&&D(),D=null,c.value=_n,j=!1,k=!1),n()}}};function N(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return M}function ba(e){try{return JSON.parse(e)}catch{return e}}var xa=[[`NuxtError`,e=>He(e)],[`EmptyShallowRef`,e=>Se(e===`_`?void 0:e===`0n`?BigInt(0):ba(e))],[`EmptyRef`,e=>_e(e===`_`?void 0:e===`0n`?BigInt(0):ba(e))],[`ShallowRef`,e=>Se(e)],[`ShallowReactive`,e=>Te(e)],[`Ref`,e=>_e(e)],[`Reactive`,e=>ae(e)]],Sa=s({name:`nuxt:revive-payload:client`,order:-30,async setup(e){let t,n;for(let[e,t]of xa)Ht(e,t);Object.assign(e.payload,([t,n]=c(()=>e.runWithContext(Mt)),t=await t,n(),t)),delete window.__NUXT__}},1);function Ca(e,t){t.push(Ne),e.vueApp.use(t);let n=!0,r=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||r()}),e.hooks.hook(`app:error`,r),e.hooks.hook(`app:suspense:resolve`,r);let i=t.push.bind(t);t.push=((t,n)=>{let r=i(t,n),a=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(a):a()},r})}function wa(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>wi(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var Ta=/\s+/;function Ea(e={}){return t=>ka(t,e)}function Da(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Oa(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Ta))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function ka(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!Da(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(vt(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Oa(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=_t(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};if(e.tag===`meta`&&e._d&&St(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`){n.title=e.textContent,o(`title:`,()=>n.title=d._t);continue}i.$el=d._e.get(r),i.$el?c(i):Ct.has(e.tag)&&p.push(i)}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!Ct.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=Ot({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=Dt(i)||gt(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}
2`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,vt(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||Da(e))&&ka(e,t),a}var Aa=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(bt[e.tagPriority]||0);function ja(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Ea({document:e.document}),n=wa(Ti(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Aa,init:[]}),Et(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function Ma(e={}){let t=Ea(),n,r=0;return n=ja({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=ht(n),n}var Na={disableDefaults:!0,plugins:[pi,yi,Ci,fi]},Pa=s({name:`nuxt:head`,enforce:`pre`,setup(e){Ca(e,Ma(Na))}}),Fa=/(:\w+)\([^)]+\)/g,Ia=/(:\w+)[?+*]/g,La=/:\w+/g,Ra=(e,t)=>t.path.replace(Fa,`$1`).replace(Ia,`$1`).replace(La,t=>e.params[t.slice(1)]?.toString()||``),za=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Ra(e.route,n));return typeof r==`function`?r(e.route):r},Ba=(e,t)=>({default:()=>e?d(pe,e===!0?{}:e,t):t});function Va(e){return Array.isArray(e)?e:[e]}var Ha=Re(async e=>{let t,n;if(!e.meta?.validate)return;let r=([t,n]=c(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(r!==!0)return He({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})},1),Ua=Pn(async(e,t)=>{let{setIsAuth:n,setUserinfo:r}=zn();try{return}catch(e){console.log({error:e}),In().$logger.log({title:`Token validation failed`,error:e,metadata:{headers:Fn()}})}},1),Wa=Re(e=>{});function Ga(e={}){let t=e.path||window.location.pathname,r=new URL(t,window.location.href);if(r.host!==window.location.host)throw Ve.NUXT_E2010({path:t});if(r.protocol&&$e(r.protocol))throw Ve.NUXT_E2002({toPath:t,protocol:r.protocol});let i={};try{i=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||i?.path!==t||i?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:n().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var Ka=[Ha,Ua,Wa,Re(async e=>{let t,n,{isStudentVerificationRoute:r,resolveStudentVerificationFeatureFlag:i}=Yn({route:e});r.value&&([t,n]=c(()=>i()),await t,n())},1),Re(async e=>{let t,n,{isStudentVerificationRequired:r,resolveUserStudentVerification:i}=Yn({route:e});r.value&&([t,n]=c(()=>i()),await t,n())},1),Re(e=>{let t=Pt({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return ot(n,{acceptRelative:!0})?(window.location.href=n,!1):n}})],qa={"checkout-only":()=>z(()=>import(`./_Ro7l-fj.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url),externalbuy:()=>z(()=>import(`./CDmmTT0F.js`),__vite__mapDeps([20,1,2,3,4,5,6,9,10]),import.meta.url)},Ja=[{name:`65-plus-bestellen`,path:`/65-plus/bestellen`,component:()=>z(()=>import(`./CEbUto7H2.js`),__vite__mapDeps([21,3,22,2,4,1,5,6,11,23,9,10,8,12,13,14,15,24,25,26,27,18,28,29,30,31,19,32,33,34,35,7,16,17,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52]),import.meta.url)},{name:`studenten-bestellen`,path:`/studenten/bestellen`,component:()=>z(()=>import(`./B9SIgje3.js`),__vite__mapDeps([53,3,22,2,4,1,5,6,11,23,9,10,8,12,13,14,15,24,25,26,27,18,28,29,30,31,19,32,33,34,35,7,16,17,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,54]),import.meta.url)},{name:`zakelijk-bedankt`,path:`/zakelijk/bedankt`,component:()=>z(()=>import(`./oy1FkC66.js`),__vite__mapDeps([55,3,1,2,4,5,6,56,8,9,10,11,12,13,14,15,57,58,59,60,61,7,16,17,18,19,22,23,24,25,26,27,28,29,62,63,64]),import.meta.url)},{name:`zakelijk-contact`,path:`/zakelijk/contact`,component:()=>z(()=>import(`./N86Jpzos.js`),__vite__mapDeps([65,2,3,4,13,1,5,6,9,10,56,8,11,12,14,15,17,18,31,19,35,28,66,67,68,69,26,24,27,29,57,70,71,72,73,58,59,60,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,61,7,16,22,23,25,93,94,62,63,95]),import.meta.url)},{name:`65-plus`,path:`/65-plus`,component:()=>z(()=>import(`./D4WOXzxx2.js`),__vite__mapDeps([96,3,1,2,4,5,6,31,9,10,19,11,8,12,13,14,15,32,33,34,35,18,28,27,29,26,24,7,16,17,22,23,25,44,45,46,47,48,49,50,51,52]),import.meta.url)},{name:`aanbieding`,path:`/aanbieding`,component:()=>z(()=>import(`./CvUfl5fB2.js`),__vite__mapDeps([97,2,3,4,1,5,6,8,9,10,11,12,13,14,15,31,19,24,32,33,34,35,18,28,27,29,26,7,16,17,44,45,46,47,48,49,50,51]),import.meta.url)},{name:`actie`,path:`/actie`,component:()=>z(()=>import(`./Kd4aYpxY2.js`),__vite__mapDeps([98,3,13,1,2,4,5,6,56,11,15,9,10,17,18,31,19,8,12,14,26,24,27,28,29,57,70,71,72,73,58,59,60,41,99,100,101,22,23,25,44,45,46,47,48,33,34,35,49,50,51,87,88,89,102,103,104,105,106,93,94,107,108]),import.meta.url)},{name:`bedankt`,path:`/bedankt`,component:()=>z(()=>import(`./D_F0gckQ2.js`),__vite__mapDeps([109,3,1,2,4,5,6,56,31,9,10,19,11,8,12,13,14,15,32,33,34,35,18,28,27,29,7,16,17,22,23,24,25,26]),import.meta.url)},{name:`bestellen`,path:`/bestellen`,component:()=>z(()=>import(`./BjdjGUU62.js`),__vite__mapDeps([110,3,57,30,1,2,4,5,6,8,9,10,11,12,13,14,15,31,19,32,33,34,35,18,28,27,29,26,24,7,16,17,36,23,25,37,38,39,40,41,42,43,22,44,45,46,47,48,49,50,51]),import.meta.url)},{name:`bundels`,path:`/bundels`,component:()=>z(()=>import(`./XxCY8fVr2.js`),__vite__mapDeps([111,3,1,2,4,5,6,31,9,10,19,11,8,12,13,14,15,32,33,34,35,18,28,27,29,26,24,7,16,17,112,113,66,67,68,114,22,23,25,44,45,46,47,48,49,50,51]),import.meta.url)},{name:`digitaal`,path:`/digitaal`,component:()=>z(()=>import(`./CVrloqBX2.js`),__vite__mapDeps([115,3,1,2,4,5,6,32,33,34,15,9,10,35,18,8,11,12,13,14,28,27,29,26,24,7,16,17,19,22,23,25]),import.meta.url)},{name:`specials`,path:`/specials`,component:()=>z(()=>import(`./CqHGt7o7.js`),__vite__mapDeps([116,3,1,2,4,5,6,31,9,10,19,11,8,12,13,14,15,32,33,34,35,18,28,27,29,26,24,7,16,17,112,113,66,67,68,114,22,23,25,44,45,46,47,48,49,50,51]),import.meta.url)},{name:`studenten`,path:`/studenten`,component:()=>z(()=>import(`./QVjI-MRN.js`),__vite__mapDeps([117,3,1,2,4,5,6,31,9,10,19,11,8,12,13,14,15,32,33,34,35,18,28,27,29,26,24,7,16,17,22,23,25,44,45,46,47,48,49,50,51,118,56,66,67,68,112,113,114,119,75,77,120,12
21,122,123,57,83,71,72,78,81,84,124,40,103,125,69,105,106,126,127,128,129,130,54,131,76]),import.meta.url)},{name:`zakelijk`,path:`/zakelijk`,component:()=>z(()=>import(`./B9eHJGwd.js`),__vite__mapDeps([132,3,1,2,4,5,6,56,31,9,10,19,11,8,12,13,14,15,32,33,34,35,18,28,27,29,26,24,57,7,16,17,61,22,23,25,44,45,46,47,48,49,50,51,118,66,67,68,112,113,114,119,75,77,120,121,122,123,83,71,72,78,81,84,124,40,103,125,69,105,106,126,127,128,129,130,133]),import.meta.url)},{name:`specialProduct-bestellen`,path:`/:specialProduct()/bestellen`,meta:{validate(e){return Vn((Qn(e.params.specialProduct)??``).toLowerCase())}},component:()=>z(()=>import(`./CptjRO6z2.js`),__vite__mapDeps([134,3,1,2,4,5,6,16,9,10,11,17,18,19,8,12,13,14,15,113,135,7,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,136]),import.meta.url)},{name:`specialProduct`,path:`/:specialProduct()`,meta:{validate(e){return Vn((Qn(e.params.specialProduct)??``).toLowerCase())}},component:()=>z(()=>import(`./BqgPYqUy2.js`),__vite__mapDeps([137,3,1,2,4,5,6,16,9,10,11,17,18,19,8,12,13,14,15,31,113,32,33,34,35,28,27,29,26,24,7,135,112,66,67,68,114,22,23,25,44,45,46,47,48,49,50,51,136]),import.meta.url)},{name:`index`,path:`/`,meta:{middleware:[`externalbuy`,`checkout-only`]},component:()=>z(()=>import(`./B--qjJWx.js`),__vite__mapDeps([138,2,3,4,1,5,6,31,9,10,19,11,8,12,13,14,15,32,33,34,35,18,28,27,29,26,24,7,16,17,112,113,66,67,68,114,139,75,76,77,22,23,25,44,45,46,47,48,49,50,51,136,118,56,119,120,121,122,123,57,83,71,72,78,81,84,124,40,103,125,69,105,106,126,127,128,129,130]),import.meta.url)}];function Ya(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),nt(n,``)}let s=nt(r,e),c=!n||rt(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var Xa=s({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=a().app.baseURL,i=Dn.history?.(r)??Vi(r),o=Dn.routes?([t,n]=c(()=>Dn.routes(Ja)),t=await t,n(),t??Ja):Ja,s,l=ya({...Dn,scrollBehavior:(e,t,n)=>{if(t===_n){s=n;return}if(Dn.scrollBehavior){if(l.options.scrollBehavior=Dn.scrollBehavior,`scrollRestoration`in window.history){let e=l.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return Dn.scrollBehavior(e,_n,s||n)}},history:i,routes:o});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(l);let u=Se(l.currentRoute.value);l.afterEach((e,t)=>{u.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});let d=Ya(r,window.location,e.payload.path),f=Se(l.currentRoute.value),p=()=>{f.value=l.currentRoute.value};l.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;if(n===r){za({route:e,Component:{type:n}})===za({route:t,Component:{type:r}})&&p();return}e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&p()});let m={sync:p};for(let e in f.value)Object.defineProperty(m,e,{get:()=>f.value[e],enumerable:!0});e._route=Te(m),e._middleware||={global:[],named:{}};let h=Je();l.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(qe),r&&await e.callHook(`page:loading:end`)});try{[t,n]=c(()=>l.isReady()),await t,n()}catch(r){[t,n]=c(()=>We(e,r)),await t,n()}let g=d===l.currentRoute.value.fullPath?l.currentRoute.value:l.resolve(d),_=l.currentRoute.value.fullPath,v=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&d!==e.payload.path&&rt(l.currentRoute.value.path,e.payload.path);p();function y(t){!e.isHydrating&&t.fullPath!==Ya(r,window.location)&&i.push(t.fullPath)}let b=e.payload.state._layout;return l.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=ae(t.meta),e.isHydrating&&b&&!M(t.meta.layout)&&(t.meta.layout=b),e._processingMiddleware=!0;{let r=new Set([...Ka,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Va(t))r.add(e)}let i=Pt({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await qa[i]?.().then(e=>e.default||e):i;
2if(!r)throw Ve.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||He({status:404,statusText:`Page Not Found: ${d}`});return await e.runWithContext(()=>Ge(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Le(i)&&i.fatal&&(await e.runWithContext(()=>Ge(i)),y(t)),i}catch(n){let r=He(n);return r.fatal&&(await e.runWithContext(()=>Ge(r)),y(t)),r}}}}),l.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),l.afterEach(t=>{if(t.matched.length===0&&!h.value)return e.runWithContext(()=>Ge(He({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in g&&(g.name=void 0),l.currentRoute.value.fullPath===_){if(v){let t=l.resolve(e.payload.path);`name`in t&&(t.name=void 0),await l.replace({...t,force:!0});let n=()=>{e[`~restoreDeferredRoute`]&&(e[`~restoreDeferredRoute`]=void 0,l.currentRoute.value=l.resolve(d),p(),l.replace({...g,force:!0}).catch(()=>{}))};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await l.replace({...g,force:!0})}l.options.scrollBehavior=Dn.scrollBehavior}catch(t){await We(e,t)}}),{provide:{router:l}}}},1),Za=s({name:`timing`,enforce:`pre`,async setup(){let e=ze().query.timing===`true`;return{provide:{timing:{start(t){e&&console.time(t)},end(t){e&&console.timeEnd(t)}}}}}}),Qa=s({name:`nuxt:payload`,setup(e){let t=new Set;Ke().beforeResolve(async(n,r)=>{let i=Nt(n.path),a=i?tt(n.fullPath):n.path;if(a===(i?tt(r.fullPath):r.path))return;let o=await Rt(a);if(o){for(let n of t)delete e.static.data[n];for(let n in o.data)n in e.static.data||t.add(n),e.static.data[n]=o.data[n]}}),wn(()=>{e.hooks.hook(`link:prefetch`,async e=>{let{hostname:t,pathname:n}=new URL(e,window.location.href);t===window.location.hostname&&await Rt(e).catch(()=>{kt.NUXT_E7003({url:e})})}),navigator.connection?.effectiveType!==`slow-2g`&&setTimeout(It,1e3)})}}),$a=s(()=>{let e=Ke();wn(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),eo=s(e=>{let t;async function n(){let r;try{r=await It()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,Fe);try{let n=await dt(mt(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}wn(()=>{t=setTimeout(n,Fe)})}),to=s({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&Pe(navigator.userAgent)&&Ga()})}}),no=s({name:`nuxt:chunk-reload`,setup(e){let t=Ke(),n=a(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){Ga({path:st(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),ro=s({name:`nuxt:island-link-navigation`,setup(e){}}),io=b(()=>z(()=>import(`./Cp8QHZtO.js`).then(e=>e.default||e.default||e),__vite__mapDeps([140,3,47,14,32,1,2,4,5,6,33,34,15,9,10,35,18,8,11,12,13,28,27,29,57,141]),import.meta.url)),ao=b(()=>z(()=>import(`./DUWeXo7y.js`).then(e=>e.default||e.default||e),__vite__mapDeps([142,3,71,18,57,72,70,12,2,4,13,1,5,6,73]),import.meta.url)),oo=b(()=>z(()=>import(`./DOwu4PN82.js`).then(e=>e.n).then(e=>e.default||e.default||e),__vite__mapDeps([103,18,3,34,15,9,4,5,10,57]),import.meta.url)),so=b(()=>z(()=>import(`./BE45nH_m.js`).then(e=>e.default||e.default||e),__vite__mapDeps([143,3,26,2,4,11,24,1,5,6,27,18,9,10,8,12,13,14,15,28,29,57,144,23,17,145,16,19,31,35,113,66,67,68,75,69,37,38,39,40,76,77,71,72,70,73,58,59,60,74,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,41,146,36,25,42,43,119,47,120,121,122,123,124,48,33,34,49,103,125,105,106,126,127,130,62,63,147,148,149,150,151,152,153,93,94,128,129,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,56,172]),import.meta.url)),co=b(()=>z(()=>import(`./znkepZY3.js`).then(e=>e.default||e.default||e),__vite__mapDeps([173,3,13,47,14,57,71,18,72,70,12,2,4,1,5,6,73,105,106,174]),import.meta.url)),lo=b(()=>z(()=>import(`./Cnpc7yVb.js`).then(e=>e.default||e.default||e),__vite__mapDeps([175,3,57,176]),import.meta.url)),uo=b(()=>z(()=>import(`./BuKYGuhH.js`).then(e=>e.default||e.default||e),__vite__mapDeps([177,3,57,58,59,60,178]),import.meta.url)),fo=b(()=>z(()=>import(`./rA2w3e_Y.js`).then(e=>e.default||e.default||e),__vite__mapDeps([179,3,58,57,59,60]),import.meta.url)),po=b(()=>z(()=>import(`./DqBbM8Du.js`).then(e=>e.default||e.default||e),__vite__mapDeps([180,3,26,2,4,11,24,1,5,6,27,
218,9,10,8,12,13,14,15,28,29,49,46,47,48,33,34,35,50,51,104,56,57,71,72,70,73,105,106,93,94,107]),import.meta.url)),mo=b(()=>z(()=>import(`./yTADJS5V.js`).then(e=>e.default||e.default||e),__vite__mapDeps([181,3,57,182]),import.meta.url)),ho=b(()=>z(()=>import(`./CKQMfcMY.js`).then(e=>e.default||e.default||e),__vite__mapDeps([183,3,120,121,122,2,4,9,5,10,123,6,57,184]),import.meta.url)),go=b(()=>z(()=>import(`./50zmBTpf.js`).then(e=>e.default||e.default||e),__vite__mapDeps([185,3,57,58,59,60,186]),import.meta.url)),_o=b(()=>z(()=>import(`./BKQ6-xkU.js`).then(e=>e.default||e.default||e),__vite__mapDeps([187,3,120,121,122,2,4,9,5,10,123,6,57,188,189,190]),import.meta.url)),vo=b(()=>z(()=>import(`./BBl5V3Ff.js`).then(e=>e.default||e.default||e),__vite__mapDeps([191,3,13,57,188,189,192,18,59,100,101,193,194]),import.meta.url)),yo=b(()=>z(()=>import(`./CWoNGmkT.js`).then(e=>e.default||e.default||e),__vite__mapDeps([195,3,151,75,2,4,1,5,6,9,10,11,8,12,13,14,15]),import.meta.url)),bo=b(()=>z(()=>import(`./nz01lGOa2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([196,3,1,2,4,5,6,47,14,69,120,121,122,9,10,123,57,71,18,72,70,12,13,73,58,59,60,158,159,197,198]),import.meta.url)),xo=b(()=>z(()=>import(`./DDuSK1p32.js`).then(e=>e.default||e.default||e),__vite__mapDeps([199,3]),import.meta.url)),So=b(()=>z(()=>import(`./DMgqQS3O2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([200,3,13,1,2,4,5,6,14,19,11,8,9,10,12,15,35,18,28,38,47,66,67,68,75,26,24,27,29,76,77,57,71,72,70,73,201,202,114,40,105,106,130,62,63,90,91,147,148,151,167,168,154,155,156,157,160,161,158,123,120,159,162,203,204,205,206]),import.meta.url)),Co=b(()=>z(()=>import(`./xH3E30982.js`).then(e=>e.default||e.default||e),__vite__mapDeps([207,3,47,14,57,105,106,208]),import.meta.url)),wo=b(()=>z(()=>import(`./CmTiDw442.js`).then(e=>e.default||e.default||e),__vite__mapDeps([209,3,47,14,120,122,2,4,9,5,10,123,6,57,58,59,60,210,211,212]),import.meta.url)),To=b(()=>z(()=>import(`./By2kdbC02.js`).then(e=>e.default||e.default||e),__vite__mapDeps([213,3,12,2,4,13,1,5,6,69,120,158,123,159]),import.meta.url)),Eo=b(()=>z(()=>import(`./7-EaBve92.js`).then(e=>e.default||e.default||e),__vite__mapDeps([214,3,57,215]),import.meta.url)),Do=b(()=>z(()=>import(`./BQYPUaQ22.js`).then(e=>e.default||e.default||e),__vite__mapDeps([216,3,47,14,122,2,4,9,5,10,123,6,120,57,70,12,13,1,71,18,72,73,58,59,60,100,101,217,218,219]),import.meta.url)),Oo=b(()=>z(()=>import(`./CFS7g2V02.js`).then(e=>e.default||e.default||e),__vite__mapDeps([220,3,57,58,59,60,210,211,221,222,223]),import.meta.url)),ko=b(()=>z(()=>import(`./KIToWzNa2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([224,3,47,14,122,2,4,9,5,10,123,6,120,58,57,59,60,100,101,225]),import.meta.url)),Ao=b(()=>z(()=>import(`./DZrESG9A2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([226,3,47,14,120,122,2,4,9,5,10,123,6,57,227]),import.meta.url)),jo=b(()=>z(()=>import(`./CHoa2CED2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([228,3,57,58,59,60,210,211,221,222,229]),import.meta.url)),Mo=b(()=>z(()=>import(`./BXiEKcg92.js`).then(e=>e.default||e.default||e),__vite__mapDeps([230,3,47,14,26,2,4,11,24,1,5,6,27,18,9,10,8,12,13,15,28,29,62,57,63]),import.meta.url)),No=b(()=>z(()=>import(`./DgfulCxG2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([231,3,8,2,4,1,5,6,9,10,11,12,13,14,15,23,19,31,145,17,18,16,24,35,28,26,27,29,57,58,59,60,83,71,72,78,67,81,84,114,43,44,45,46,47,48,33,34,49,50,51,102,103,104,56,70,73,105,106,93,94,107,131,75,76,77,144,113,66,68,69,37,38,39,40,74,79,80,82,85,86,87,88,89,90,91,92,41,146,36,25,42,119,120,121,122,123,124,125,126,127,130,62,63,147,148,149,150,151,152,153,128,129,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,205,232,233,234,235]),import.meta.url)),Po=b(()=>z(()=>import(`./BCGJ_HNV2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([236,3,11,2,4,12,13,1,5,6,23,9,10,8,14,15,47,66,67,18,68,26,24,27,28,29,76,77,57,71,72,70,73,237,40,62,63,151,75,238]),import.meta.url)),Fo=b(()=>z(()=>import(`./DtxlxC502.js`).then(e=>e.default||e.default||e),__vite__mapDeps([239,3,47,14,120,121,122,2,4,9,5,10,123,6,57,71,18,72,70,12,13,1,73,62,63,240]),import.meta.url)),Io=b(()=>z(()=>import(`./CD9fb3rL2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([241,3,26,2,4,11,24,1,5,6,27,
218,9,10,8,12,13,14,15,28,29,57,58,59,60,100,101,119,47,75,77,120,121,122,123,83,71,72,78,67,81,84,124,48,33,34,35,40,49,103,125,69,105,106,126,127,152,66,68,76,70,73,85,79,86,153,93,94,128,129,154,155,156,157,158,159,160,161,162,163,164,165,205,234,242]),import.meta.url)),Lo=b(()=>z(()=>import(`./Cz6F1Hmb2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([243,3,69,57,70,12,2,4,13,1,5,6,71,18,72,73,58,59,60,217,218,244]),import.meta.url)),Ro=b(()=>z(()=>import(`./immhoK9f.js`).then(e=>e.default||e.default||e),__vite__mapDeps([245,3,102,18,46,47,14,48,33,2,4,1,5,6,34,15,9,10,35,8,11,12,13,28,29,49,103,57,104,56,71,72,70,73,105,106,93,94,107]),import.meta.url)),zo=b(()=>z(()=>import(`./6aiATvwA2.js`).then(e=>e.n).then(e=>e.default||e.default||e),__vite__mapDeps([102,18,3,46,47,14,48,33,2,4,1,5,6,34,15,9,10,35,8,11,12,13,28,29,49,103,57,104,56,71,72,70,73,105,106,93,94,107]),import.meta.url)),Bo=b(()=>z(()=>import(`./CdGnPNks.js`).then(e=>e.default||e.default||e),__vite__mapDeps([246,3,8,2,4,1,5,6,9,10,11,12,13,14,15,19,26,24,27,18,28,29,122,123,120,57,58,59,60,247,40,248]),import.meta.url)),Vo=b(()=>z(()=>import(`./BdMEANBU.js`).then(e=>e.default||e.default||e),__vite__mapDeps([249,3,1,2,4,5,6,12,13,14,47,26,11,24,27,18,9,10,8,15,28,29,57,112,113,66,67,68,7,16,17,19,114,124,48,33,34,35,119,75,77,120,121,122,123,83,71,72,78,81,84,40,49,103,125,69,105,106,126,127,156,157,250,76,70,73,247,153,130,149,150,158,159,160,161,162,163,164,203,204,205,251,166,167,168,169,252,253,254]),import.meta.url)),Ho=b(()=>z(()=>import(`./BcYRC3Z3.js`).then(e=>e.default||e.default||e),__vite__mapDeps([255,3,120,122,2,4,9,5,10,123,6,57,256]),import.meta.url)),Uo=b(()=>z(()=>import(`./B3blc0Fw.js`).then(e=>e.default||e.default||e),__vite__mapDeps([257,3,120,122,2,4,9,5,10,123,6,57,258]),import.meta.url)),Wo=b(()=>z(()=>import(`./DEpwlyNt.js`).then(e=>e.default||e.default||e),__vite__mapDeps([259,3,171,1,2,4,5,6,56,11,8,9,10,12,13,14,15,26,24,27,18,28,29,120]),import.meta.url)),Go=b(()=>z(()=>import(`./DSmld_lW.js`).then(e=>e.default||e.default||e),__vite__mapDeps([260,3,26,2,4,11,24,1,5,6,27,18,9,10,8,12,13,14,15,28,29,71,57,72,70,73,58,59,60,112,113,66,67,68,7,16,17,19,114,130,197,261]),import.meta.url)),Ko=b(()=>z(()=>import(`./BX3pMHua.js`).then(e=>e.default||e.default||e),__vite__mapDeps([262,2,3,4,13,1,5,6,56,11,12,14,113,47,66,67,18,68,75,9,10,8,15,69,26,24,27,28,29,76,77,120,122,123,57,71,72,70,73,58,59,60,263,16,17,19,83,78,81,84,135,7,247,114,112,264,161,153,124,48,33,34,35,100,101,40,43,49,105,106,125,121,126,119,103,127,151,171,203,204,232,233,250,130,149,150,158,159,160,162,163,164,205,251,166,167,168,169,252,253,265]),import.meta.url)),qo=b(()=>z(()=>import(`./qt2fc-g6.js`).then(e=>e.default||e.default||e),__vite__mapDeps([266,3,47,14,26,2,4,11,24,1,5,6,27,18,9,10,8,12,13,15,28,29,122,123,120,57,71,72,70,73,58,59,60,7,16,17,19,100,101,49,51,125,69,121,83,78,67,81,84,40,105,106,126,203,204,251,166,167,168,169,252,267]),import.meta.url)),Jo=b(()=>z(()=>import(`./D49AZ3W5.js`).then(e=>e.t).then(e=>e.default||e.default||e),__vite__mapDeps([192,18,3,13,57,59,100,101,193]),import.meta.url)),Yo=b(()=>z(()=>import(`./UTsmPc9v.js`).then(e=>e.default||e.default||e),__vite__mapDeps([268,3,47,14,120,122,2,4,9,5,10,123,6,57,58,59,60,100,101,105,106,269]),import.meta.url)),Xo=b(()=>z(()=>import(`./BwDxqhGV.js`).then(e=>e.default||e.default||e),__vite__mapDeps([270,3,47,14,120,121,122,2,4,9,5,10,123,6,57,58,59,60,105,106,271]),import.meta.url)),Zo=b(()=>z(()=>import(`./R1CyvHR2.js`).then(e=>e.default||e.default||e),__vite__mapDeps([272,3,120,122,2,4,9,5,10,123,6,57,100,101,221,222,273]),import.meta.url)),Qo=[[`BlokAccessibilityPolicyDocument`,io],[`BlokTappButton`,ao],[`StoryblokInspectorOnly`,oo],[`SharedCampaignPage`,so],[`SharedCollapsibleTextBlok`,co],[`SharedColumnBlok`,lo],[`SharedColumnsBlok`,uo],[`SharedContainerBlok`,fo],[`SharedFaqPickerBlok`,po],[`SharedHeadingBlok`,mo],[`SharedImageBlok`,ho],[`SharedMediaGridBlok`,go],[`SharedMediaImageBlok`,_o],[`SharedMediaQuoteBlok`,vo],[`SharedOptimizelyBlok`,yo],[`SharedPlusMoreBlok`,bo],[`SharedPlus
2MoreListItemBlok`,xo],[`SharedPropositionCards`,So],[`SharedTextBlock`,Co],[`ShopsAboutQuoteBlok`,wo],[`ShopsAppStoreBadge`,To],[`ShopsAppStoreBadges`,Eo],[`ShopsBusinessColumns`,Do],[`ShopsBusinessKidsweekContentSection`,Oo],[`ShopsBusinessPartners`,ko],[`ShopsCardBlok`,Ao],[`ShopsCardsBlok`,jo],[`ShopsCheckoutGiftBannerBlok`,Mo],[`ShopsCheckoutPage`,No],[`ShopsConfirmationCardBlok`,Po],[`ShopsConfirmationCrossSellBlok`,Fo],[`ShopsConfirmationPage`,Io],[`ShopsCustomerServiceBlok`,Lo],[`ShopsFaqs`,Ro],[`ShopsFaqsStories`,zo],[`ShopsHeroHeaderBlok`,Bo],[`ShopsHighlightWindowBlok`,Vo],[`ShopsKidsweekExternalLinkBlok`,Ho],[`ShopsKidsweekNewsBlok`,Uo],[`ShopsPage`,Wo],[`ShopsPricingTable`,Go],[`ShopsProductWindowBlok`,Ko],[`ShopsProductWindowBusiness`,qo],[`ShopsSectionBlok`,Jo],[`ShopsSeoBlok`,Yo],[`ShopsSeoContentBlok`,Xo],[`ShopsSliderBlok`,Zo]],$o=s({name:`nuxt:global-components`,setup(e){for(let[t,n]of Qo)e.vueApp.component(t,n),e.vueApp.component(`Lazy`+t,n)}}),es={branded:b(()=>z(()=>import(`./sPVFqaZy.js`).then(e=>e.default||e),__vite__mapDeps([274,3,57,263,1,2,4,5,6,16,9,10,11,17,18,19,8,12,13,14,15,113,275,56,276]),import.meta.url)),"error-layout":b(()=>z(()=>import(`./9zuGj8Tx.js`).then(e=>e.default||e),__vite__mapDeps([277,3,8,2,4,1,5,6,9,10,11,12,13,14,15,66,67,18,68,278,16,17,19,24,27,28,121,122,123,120,57,201,202,58,59,60,263,113,279,237,275,56,280]),import.meta.url))},ts=s({name:`nuxt:prefetch`,setup(e){let t=Ke();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof es[t]==`function`&&await es[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(ot(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=Va(n.meta.middleware).filter(e=>typeof e==`string`);for(let e of i){let t=qa[e];typeof t==`function`&&t()}typeof r==`string`&&r in es&&bn(es[r])})}});function ns(){let e=At(`speedcurveLux`,()=>{Bt().origin;let{public:{STAGE:e,speedcurveLux:t}}=a(),n=ze().query.forceLux===`true`,r=e===`production`;return{isEnabled:t.enabled&&r&&!0||n}}),t=()=>e.value.isEnabled&&window.LUX;return{isEnabled:e.value.isEnabled,addLuxLabel:e=>{if(t()){let t=window.LUX||{};t.label=e}},addLuxData:(e,n)=>{t()&&(window.LUX||{})?.addData?.(e,n)}}}var rs=s(e=>{let t=Ke(),{isEnabled:n}=ns();t.beforeEach((e,t,r)=>{window.LUX&&n&&window.LUX?.startSoftNavigation?.(),r()}),e.hook(`page:finish`,()=>{window.LUX&&n&&window.LUX?.markLoadTime?.()})}),is=1024,as=1e4,os=1e3,ss=1e4,cs=1e3,ls={attributeStringValueLimit:is,attributeArrayLengthLimit:os,attributeCountLimit:128},us={attributeStringValueLimit:1/0,attributeArrayLengthLimit:1/0,attributeCountLimit:1/0},ds=e=>e===!0||e===!1,fs=e=>!!e&&typeof e==`object`&&!Array.isArray(e),ps=e=>typeof e==`number`&&Number.isFinite(e)&&!Number.isNaN(e),ms=e=>typeof e==`string`,hs=e=>ms(e)&&e.length>0,gs=e=>fs(e)&&typeof e.debug==`function`&&typeof e.info==`function`&&typeof e.warn==`function`&&typeof e.error==`function`,_s=e=>Array.isArray(e)&&e.every(hs),vs=e=>Array.isArray(e)&&e.every(e=>hs(e)||e instanceof RegExp);function ys(e){return fs(e)&&ps(e.value)&&ps(e.time)}var bs=e=>fs(e)&&typeof e.id==`string`&&typeof e.traceId==`string`&&typeof e.isValid==`function`&&typeof e.samplingRate==`number`&&typeof e.samplingProbability==`number`,xs=e=>fs(e)&&typeof e.id==`string`&&typeof e.traceId==`string`;function Ss(e){return ps(e)||e instanceof Date}function Cs(e){return fs(e)&&typeof e.install==`function`&&typeof e.start==`function`}function ws(e){return Array.isArray(e)&&e.every(e=>Cs(e))}function Ts(e){return Array.isArray(e)&&e.every(e=>typeof e==`function`)}function Es(e,t){let n=e.length,r=e.slice(0,t);return`${r} *** ${n-r.length} CHARS TRUNCATED`}var Ds=class{get droppedAttributesCount(){return this._droppedAttributesCount}constructor(e,t,n,r){this._droppedAttributesCount=0,this.attributes=e,this.spanAttributeLimits=t,this.spanName=n,this.logger=r}truncateAttribute(e,t){if(typeof t==`string`&&t.length>this.spanAttributeLimits.attributeStringValueLimit&&(this.attributes.set(e,Es(t,this.spanAttributeLimits.attributeStringValueLimit)),this.logger.warn(`Span attribute ${e} in span ${this.spanName} was truncated as the string exceeds the ${this.spanAttributeLimits.attributeStringValueLimit} character limit set by attributeStringValueLimit.`)),Array.isArray(t)&&t.length>
2this.spanAttributeLimits.attributeArrayLengthLimit){let n=t.slice(0,this.spanAttributeLimits.attributeArrayLengthLimit);this.attributes.set(e,n),this.logger.warn(`Span attribute ${e} in span ${this.spanName} was truncated as the array exceeds the ${this.spanAttributeLimits.attributeArrayLengthLimit} element limit set by attributeArrayLengthLimit.`)}}isValidAttributeValue(e){return typeof e==`string`||typeof e==`boolean`||ps(e)||Array.isArray(e)}isValidAttributeName(e){return typeof e==`string`&&e.length>0}set(e,t){if(this.isValidAttributeName(e)){if(t==null){this.remove(e);return}this.isValidAttributeValue(t)&&this.attributes.set(e,t)}}setCustom(e,t){if(this.isValidAttributeName(e)){if(t==null){this.remove(e);return}if(this.isValidAttributeValue(t)){if(!this.attributes.has(e)&&this.attributes.size>=this.spanAttributeLimits.attributeCountLimit){this._droppedAttributesCount++,this.logger.warn(`Span attribute ${e} in span ${this.spanName} was dropped as the number of attributes exceeds the ${this.spanAttributeLimits.attributeCountLimit} attribute limit set by attributeCountLimit.`);return}if(e.length>128){this._droppedAttributesCount++,this.logger.warn(`Span attribute ${e} in span ${this.spanName} was dropped as the key length exceeds the 128 character fixed limit.`);return}this.attributes.set(e,t)}}}remove(e){this.attributes.delete(e)}toJson(){return Array.from(this.attributes).forEach(([e,t])=>{this.truncateAttribute(e,t)}),Array.from(this.attributes).map(([e,t])=>js(e,t)).filter(e=>e!==void 0)}toObject(){return Object.fromEntries(this.attributes)}},Os=class extends Ds{constructor(e,t,n,r,i,a){let o=new Map([[`deployment.environment`,e],[`telemetry.sdk.name`,r],[`telemetry.sdk.version`,i],[`service.name`,n]]);t.length>0&&o.set(`service.version`,t),super(o,us,`resource-attributes`,a)}};function ks(e){switch(typeof e){case`number`:return Number.isNaN(e)||!Number.isFinite(e)?void 0:Number.isInteger(e)?{intValue:`${e}`}:{doubleValue:e};case`boolean`:return{boolValue:e};case`string`:return{stringValue:e}}}function As(e){return e.map(e=>ks(e)).filter(e=>e!==void 0)}function js(e,t){switch(typeof t){case`number`:return Number.isNaN(t)||!Number.isFinite(t)?void 0:e!==`bugsnag.sampling.p`&&Number.isInteger(t)?{key:e,value:{intValue:`${t}`}}:{key:e,value:{doubleValue:t}};case`boolean`:return{key:e,value:{boolValue:t}};case`string`:return{key:e,value:{stringValue:t}};case`object`:if(Array.isArray(t)){let n=As(t);return{key:e,value:{arrayValue:n.length>0?{values:n}:{}}}}return;default:return}}var Ms=1e6;function Ns(e){return Math.round(e*Ms)}var Ps={appVersion:{defaultValue:``,message:`should be a string`,validate:hs},endpoint:{defaultValue:`https://otlp.bugsnag.com/v1/traces`,message:`should be a string`,validate:hs},apiKey:{defaultValue:``,message:`should be a 32 character hexadecimal string`,validate:e=>ms(e)&&/^[a-f0-9]{32}$/.test(e)},logger:{defaultValue:{debug(e){console.debug(e)},info(e){console.info(e)},warn(e){console.warn(e)},error(e){console.error(e)}},message:`should be a Logger object`,validate:gs},releaseStage:{defaultValue:`production`,message:`should be a string`,validate:hs},enabledReleaseStages:{defaultValue:null,message:`should be an array of strings`,validate:e=>e===null||_s(e)},plugins:{defaultValue:[],message:`should be an array of plugin objects`,validate:ws},bugsnag:{defaultValue:void 0,message:`should be an instance of Bugsnag`,validate:e=>fs(e)&&typeof e.addOnError==`function`},samplingProbability:{defaultValue:void 0,message:`should be a number between 0 and 1`,validate:e=>e===void 0||ps(e)&&e>=0&&e<=1},onSpanStart:{defaultValue:void 0,message:`should be an array of functions`,validate:Ts},onSpanEnd:{defaultValue:void 0,message:`should be an array of functions`,validate:Ts},attributeStringValueLimit:{defaultValue:is,message:`should be a number between 1 and ${as}`,validate:e=>ps(e)&&e>0&&e<=1e4},attributeArrayLengthLimit:{defaultValue:os,message:`should be a number between 1 and ${ss}`,validate:e=>ps(e)&&e>0&&e<=1e4},attributeCountLimit:{defaultValue:128,message:`should be a number between 1 and ${cs}`,validate:e=>ps(e)&&e>0&&e<=1e3}};function Fs(e,t,n=!1){if(typeof e==`string`&&(e={apiKey:e}),!fs(e)||!ms(e.apiKey)||e.apiKey.length===0)throw Error(`No Bugsnag API Key set`);let r=``,i={};for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?t[n].validate(e[n])?i[n]=e[n]:(r+=`\n - ${n} ${t[n].message}, got ${typeof e[n]}`,i[n]=t[n].defaultValue):i[n]=t[n].defaultValue;let a=n?5e3:3e4;return i.apiKey=e.apiKey,i.maximumBatchSize=e.maximumBatchSize||100,i.batchInactivityTimeoutMs=e.batchInactivityTimeoutMs||a,r.length>0&&i.logger.warn(`Invalid configuration${r}`),i}var Is=class{constructor(){this.events=[]}add(e,t){this.events.push({name:e,time:t})}
2toJson(e){return this.events.map(({name:t,time:n})=>({name:t,timeUnixNano:e.toUnixTimestampNanoseconds(n)}))}};function Ls(e){let t=0;for(let n=0;n<e.length/8;n++){let r=n*8,i=Number.parseInt(e.slice(r,r+8),16);t=(t^i)>>>0}return t}var Rs=36e5;function zs(e,t){return{name:e.name,kind:e.kind,spanId:e.id,traceId:e.traceId,parentSpanId:e.parentSpanId,...e.attributes.droppedAttributesCount>0?{droppedAttributesCount:e.attributes.droppedAttributesCount}:{},startTimeUnixNano:t.toUnixTimestampNanoseconds(e.startTime),endTimeUnixNano:t.toUnixTimestampNanoseconds(e.endTime),attributes:e.attributes.toJson(),events:e.events.toJson(t)}}function Bs(e){return{get id(){return e.id},get traceId(){return e.traceId},get samplingRate(){return e.samplingRate},get samplingProbability(){return e.samplingProbability.raw},get name(){return e.name},isValid:()=>!1,end:()=>{},setAttribute:(t,n)=>{e.attributes.setCustom(t,n)}}}async function Vs(e,t,n){if(!n||n.length===0)return!0;let r=Bs(e),i=performance.now(),a=!0;for(let e of n)try{let t=e(r);if(typeof t.then==`function`&&(t=await t),t===!1){a=!1;break}}catch(e){t.error(`Error in onSpanEnd callback: `+e)}if(a){let e=Ns(performance.now()-i);r.setAttribute(`bugsnag.span.callbacks_duration`,e)}return a}var Hs=class{constructor(e,t,n,r,i,a,o,s){this.kind=3,this.events=new Is,this.id=e,this.traceId=t,this.parentSpanId=s,this.name=n,this.startTime=r,this.attributes=i,this.samplingRate=Ls(this.traceId),this.samplingProbability=o,this.clock=a}addEvent(e,t){this.events.add(e,t)}setAttribute(e,t){this.attributes.set(e,t)}setCustomAttribute(e,t){this.attributes.setCustom(e,t)}end(e,t){this.endTime=e;let n=t;return this.attributes.set(`bugsnag.sampling.p`,n.raw),{id:this.id,name:this.name,kind:this.kind,traceId:this.traceId,startTime:this.startTime,attributes:this.attributes,events:this.events,samplingRate:this.samplingRate,endTime:e,get samplingProbability(){return n},set samplingProbability(e){n=e,this.attributes.set(`bugsnag.sampling.p`,n.raw)},parentSpanId:this.parentSpanId}}isValid(){return this.endTime===void 0&&this.startTime>this.clock.now()-Rs}},Us={startTime:{message:`should be a number or Date`,getDefaultValue:()=>void 0,validate:Ss},parentContext:{message:`should be a ParentContext`,getDefaultValue:()=>void 0,validate:e=>e===null||xs(e)},makeCurrentContext:{message:`should be true|false`,getDefaultValue:()=>void 0,validate:ds},isFirstClass:{message:`should be true|false`,getDefaultValue:()=>void 0,validate:ds}},Ws=class{constructor(e,t,n,r,i,a){this.spans=[],this.timeout=null,this.flushQueue=Promise.resolve(),this.delivery=e,this.configuration=t,this.retryQueue=n,this.sampler=r,this.probabilityManager=i,this.encoder=a,this.flush=this.flush.bind(this)}stop(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)}start(){this.stop(),this.timeout=setTimeout(this.flush,this.configuration.batchInactivityTimeoutMs)}add(e){this.configuration.enabledReleaseStages&&!this.configuration.enabledReleaseStages.includes(this.configuration.releaseStage)||(this.spans.push(e),this.spans.length>=this.configuration.maximumBatchSize?this.flush():this.start())}async flush(){this.stop(),this.flushQueue=this.flushQueue.then(async()=>{let e=await this.prepareBatch();if(!e)return;let t=await this.encoder.encode(e),n=Date.now();try{let e=await this.delivery.send(t);switch(e.samplingProbability!==void 0&&this.probabilityManager.setProbability(e.samplingProbability),e.state){case`success`:this.retryQueue.flush();break;case`failure-discard`:this.configuration.logger.warn(`delivery failed`);break;case`failure-retryable`:this.configuration.logger.info(`delivery failed, adding to retry queue`),this.retryQueue.add(t,n);break;default:e.state}}catch{this.configuration.logger.warn(`delivery failed`)}}),await this.flushQueue}async prepareBatch(){if(this.spans.length===0)return;await this.probabilityManager.ensureFreshProbability();let e=[],t=this.sampler.spanProbability;for(let n of this.spans)n.samplingProbability.raw>t.raw&&(n.samplingProbability=t),this.sampler.sample(n)&&await Vs(n,this.configuration.logger,this.configuration.onSpanEnd)&&e.push(n);if(this.spans=[],e.length!==0)return e}},Gs=class{constructor(e,t,n){this.clock=e,this.configuration=t,this.resourceAttributeSource=n}async encode(e){let t=await this.resourceAttributeSource(this.configuration),n=Array(e.length);for(let t=0;t<e.length;++t)n[t]=zs(e[t],this.clock);return{body:{resourceSpans:[{resource:{attributes:t.toJson()},scopeSpans:[{spans:n}]}]},headers:{"Bugsnag-Api-Key":this.configuration.apiKey,"Content-Type":`application/json`,...this.configuration.samplingProbability===void 0?{"Bugsnag-Span-Sampling":this.generateSamplingHeader(e)}:{}}}}generateSamplingHeader(e){if(e.length===0)return`1:0`;let t=Object.create(null);for(let n of e){let e=t[n.samplingProbability.raw]||0;t[n.samplingProbability.raw]=e+1}let n=Object.keys(t),r=Array(n.length);for(let e=0;e<n.length;++e){let i=n[e];r[e]=`${i}:${t[i]}`}return r.join(`;`)}},Ks=new Set([402,407,408,429]);function qs(e){return e>=200&&e<300?`success`:e>
2=400&&e<500&&!Ks.has(e)?`failure-discard`:`failure-retryable`}var Js=class e{static async create(t,n){return t.probability=n,new e(t,n)}constructor(e,t){this.sampler=e,this.samplingProbability=t}setProbability(e){return Promise.resolve()}ensureFreshProbability(){return Promise.resolve()}},Ys={LOW:0,NORMAL:5e4,HIGH:1e5},Xs=class{constructor(e){this.items=[],e&&(this.items=e,this.sort())}add(e,t){return!this.items.some(t=>t.item===e)&&(this.items.push({item:e,priority:t}),this.sort(),!0)}addAll(e){let t=!1;for(let n of e)this.items.some(e=>e.item===n.item)||(this.items.push(n),t=!0);return t&&this.sort(),t}*[Symbol.iterator](){for(let e of this.items)yield e.item}sort(){this.items.sort((e,t)=>t.priority-e.priority)}},Zs=class{constructor(e,t){this.configuration=e,this.clock=t,this.onSpanStartCallbacks=[],this.onSpanEndCallbacks=[],this.spanControlProviders=[]}addOnSpanStartCallback(e,t=Ys.NORMAL){this.onSpanStartCallbacks.push({item:e,priority:t})}addOnSpanEndCallback(e,t=Ys.NORMAL){this.onSpanEndCallbacks.push({item:e,priority:t})}addSpanControlProvider(e,t=Ys.NORMAL){this.spanControlProviders.push({item:e,priority:t})}mergeFrom(e){this.onSpanStartCallbacks.push(...e.onSpanStartCallbacks),this.onSpanEndCallbacks.push(...e.onSpanEndCallbacks),this.spanControlProviders.push(...e.spanControlProviders)}},Qs=class{constructor(){this.plugins=[],this.installedPlugins=new Set}addPlugins(e){this.plugins.push(...e)}installPlugins(e,t){this.logger=e.logger;let n=new Zs(e,t);for(let r of this.plugins)if(!this.installedPlugins.has(r))try{let i=new Zs(e,t);r.install(i),n.mergeFrom(i),this.installedPlugins.add(r)}catch(e){this.logger&&this.logger.error(`Plugin ${r.constructor.name} failed to install: ${e}`)}return n}startPlugins(){for(let e of this.installedPlugins)try{e.start()}catch(t){this.logger&&this.logger.error(`Plugin ${e.constructor.name} failed to start: ${t}`)}}getPlugin(e){for(let t of this.installedPlugins)if(t instanceof e)return t}},$s=3e4,ec=class{constructor(e,t){this.delivery=e,this.payload={body:{resourceSpans:[]},headers:{"Bugsnag-Api-Key":t,"Content-Type":`application/json`,"Bugsnag-Span-Sampling":`1.0:0`}}}async getNewProbability(){for(;;){let e=await this.delivery.send(this.payload);if(e.samplingProbability!==void 0)return e.samplingProbability;await this.timeBetweenRetries()}}timeBetweenRetries(){return new Promise(e=>{setTimeout(e,$s)})}},tc=864e5,nc=class e{static async create(t,n,r){let i=await t.load(`bugsnag-sampling-probability`),a;return i===void 0?(n.probability=1,a=0):(i.time,Date.now()-tc,n.probability=i.value,a=i.time),new e(t,n,r,a)}constructor(e,t,n,r){this.outstandingFreshnessCheck=void 0,this.persistence=e,this.sampler=t,this.probabilityFetcher=n,this.lastProbabilityTime=r,this.ensureFreshProbability()}setProbability(e){return this.lastProbabilityTime=Date.now(),this.sampler.probability=e,this.persistence.save(`bugsnag-sampling-probability`,{value:e,time:this.lastProbabilityTime})}ensureFreshProbability(){return this.outstandingFreshnessCheck?this.outstandingFreshnessCheck:Date.now()-this.lastProbabilityTime>=tc?(this.outstandingFreshnessCheck=this.probabilityFetcher.getNewProbability().then(e=>{this.setProbability(e),this.outstandingFreshnessCheck=void 0}),this.outstandingFreshnessCheck):Promise.resolve()}},rc=class{constructor(){this.spans=[]}add(e){this.spans.push(e)}};function ic(e){return Math.floor(e*4294967295)}var ac=class{constructor(e){this._probability=e,this.scaledProbability=ic(e)}get probability(){return this._probability}set probability(e){this._probability=e,this.scaledProbability=ic(e)}get spanProbability(){return{raw:this._probability,scaled:this.scaledProbability}}sample(e){return e.samplingRate<=e.samplingProbability.scaled}shouldSample(e){return e<=this.spanProbability.scaled}};function oc(e,t){return e===t||e!==void 0&&t!==void 0&&e.id===t.id&&e.traceId===t.traceId}var sc=class{constructor(e,t=[]){this.isInForeground=!0,this.onBackgroundStateChange=e=>{this.isInForeground=e===`in-foreground`,this.contextStack.length=0},this.contextStack=t,e.onStateChange(this.onBackgroundStateChange)}*[Symbol.iterator](){for(let e=this.contextStack.length-1;e>=0;--e)yield this.contextStack[e]}push(e){e.isValid()&&this.isInForeground&&this.contextStack.push(e)}pop(e){oc(e,this.current)&&this.contextStack.pop(),this.removeClosedContexts()}get first(){return this.removeClosedContexts(),this.contextStack.length>0?this.contextStack[0]:void 0}get current(){return this.removeClosedContexts(),this.contextStack.length>0?this.contextStack[this.contextStack.length-1]:void 0}removeClosedContexts(){for(;this.contextStack.length>0&&this.contextStack[this.contextStack.length-1].isValid()===!1;)this.contextStack.pop()}},cc=class{constructor(){this.providers=new Xs}addProvider(e,t){this.providers.add(e,t)}addProviders(e){this.providers.addAll(e)}getSpanControls(e){for(let t of this.providers){let n=t.getSpanControls(e);if(n)return n}return null}};function lc(e,t){return ps(t)?t:t instanceof Date?e.convert(t):e.now()}var uc=class{constructor(e,t,n,r,i,a,o,s){this.spanAttributeLimits=ls,this.openSpans=new WeakSet,this.isInForeground=!0,this.onBackgroun
2dStateChange=e=>{this.isInForeground=e===`in-foreground`,this.openSpans=new WeakSet},this.processor=e,this.sampler=t,this.idGenerator=n,this.spanAttributesSource=r,this.clock=i,this.logger=o,this.spanContextStorage=s,a.onStateChange(this.onBackgroundStateChange)}startSpan(e,t){t.parentContext=xs(t.parentContext)||t.parentContext===null?t.parentContext:this.spanContextStorage.current;let n=new Ds(new Map,this.spanAttributeLimits,e,this.logger);typeof t.isFirstClass==`boolean`&&n.set(`bugsnag.span.first_class`,t.isFirstClass);let r=this.createSpanInternal(e,t,n);return this.isInForeground&&(this.openSpans.add(r),t.makeCurrentContext!==!1&&this.spanContextStorage.push(r)),this.onSpanStart(r),r}onSpanStart(e){if(this.onSpanStartCallbacks){let t=this.toPublicApi(e);for(let e of this.onSpanStartCallbacks)try{e(t)}catch(e){this.logger.error(`Error in onSpanStart callback: `+e)}}}createSpanInternal(e,t,n){let r=lc(this.clock,t.startTime),i=this.idGenerator.generate(64),a=t.parentContext?t.parentContext.id:void 0;return new Hs(i,t.parentContext?t.parentContext.traceId:this.idGenerator.generate(128),e,r,n,this.clock,this.sampler.probability,a)}startNetworkSpan(e){let t=`[HTTP/${e.method.toUpperCase()}]`,n=this.validateSpanOptions(t,e),r=this.startSpan(n.name,{...n.options,makeCurrentContext:!1});return r.setAttribute(`bugsnag.span.category`,`network`),r.setAttribute(`http.method`,e.method),r.setAttribute(`http.url`,e.url),r}configure(e){this.logger=e.logger,this.spanAttributesSource.configure(e),this.spanAttributeLimits={attributeArrayLengthLimit:e.attributeArrayLengthLimit,attributeCountLimit:e.attributeCountLimit,attributeStringValueLimit:e.attributeStringValueLimit},this.onSpanStartCallbacks=e.onSpanStart,this.onSpanEndCallbacks=e.onSpanEnd}reprocessEarlySpans(e){for(let t of this.processor.spans)e.add(t);this.processor=e}endSpan(e,t,n){this.spanContextStorage.pop(e);let r=!this.openSpans.delete(e),i=e.isValid();if(r&&!i&&this.logger.warn(`Attempted to end a Span which is no longer valid.`),r||!i||t===-1){this.discardSpan(e);return}for(let[t,r]of Object.entries(n||{}))e.setAttribute(t,r);this.spanAttributesSource.requestAttributes(e),this.sendForProcessing(e,t)}discardSpan(e){e.end(-1,this.sampler.spanProbability)}sendForProcessing(e,t){let n=e.end(t,this.sampler.spanProbability);this.sampler.sample(n)&&this.processor.add(n)}toPublicApi(e){return{get id(){return e.id},get traceId(){return e.traceId},get samplingRate(){return e.samplingRate},get samplingProbability(){return e.samplingProbability},get name(){return e.name},isValid:()=>e.isValid(),setAttribute:(t,n)=>{e.setCustomAttribute(t,n)},end:t=>{let n=lc(this.clock,t);this.endSpan(e,n)}}}validateSpanOptions(e,t,n=Us){let r=``,i={};if(typeof e!=`string`&&(r+=`\n - name should be a string, got ${typeof e}`,e=String(e)),t!==void 0&&!fs(t))r+=` 3 - options is not an object`;else{let e=t||{};for(let t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0?n[t].validate(e[t])?i[t]=e[t]:(r+=`\n - ${t} ${n[t].message}, got ${typeof e[t]}`,i[t]=n[t].getDefaultValue(e[t])):i[t]=n[t].getDefaultValue(e[t])}return r.length>0&&this.logger.warn(`Invalid span options${r}`),{name:e,options:i}}},dc=`starting`;function fc(){return dc}function pc(e){dc=e}function mc(e){let t=new rc,n=e.spanContextStorage||new sc(e.backgroundingListener),r=e.schema.logger.defaultValue;pc(`starting`);let i=new ac(1),a=new(e.spanFactory||uc)(t,i,e.idGenerator,e.spanAttributesSource,e.clock,e.backgroundingListener,r,n),o=new cc,s=new Qs;return s.addPlugins(e.plugins(a,n)),{start:t=>{let c=Fs(t,e.schema,e.isDevelopment);if(c.endpoint===Ps.endpoint.defaultValue&&(c.endpoint=c.apiKey.startsWith(`00000`)?`https://otlp.insighthub.smartbear.com/v1/traces`:c.endpoint.replace(`https://`,`https://${c.apiKey}.`)),c.bugsnag&&typeof c.bugsnag.Event.prototype.setTraceCorrelation==`function`&&c.bugsnag.Client){let e=c.bugsnag.Client.prototype._notify;c.bugsnag.Client.prototype._notify=function(...t){let r=n.current;r&&typeof t[0].setTraceCorrelation==`function`&&t[0].setTraceCorrelation(r.traceId,r.id),e.apply(this,t)}}s.addPlugins(c.plugins);let l=s.installPlugins(c,e.clock);o.addProviders(l.spanControlProviders);let u=new Xs(l.onSpanStartCallbacks),d=new Xs(l.onSpanEndCallbacks);c.onSpanStart&&u.addAll(c.onSpanStart.map(e=>({item:e,priority:Ys.NORMAL}))),c.onSpanEnd&&d.addAll(c.onSpanEnd.map(e=>({item:e,priority:Ys.NORMAL}))),c.onSpanStart=Array.from(u),c.onSpanEnd=Array.from(d),a.configure(c);let f=e.deliveryFactory(c.endpoint);(c.samplingProbability===void 0?nc.create(e.persistence,i,new ec(f,c.apiKey)):Js.create(i,c.samplingProbability)).then(t=>{let n=new Ws(f,c,e.retryQueueFactory(f,c.retryQueueMaxSize),i,t,new Gs(e.clock,c,e.resourceAttributesSource));a.reprocessEarlySpans(n),e.backgroundingListener.onStateChange(e=>{n.flush(),e===`in-foreground`&&t.ensureFreshProbability()}),r=c.logger}),s.startPlugins()},startSpan:(e,t)=>{let n=a.validateSpanOptions(e,t),r=a.startSpan(n.name,n.options);return r.setAttribute(`bugsnag.span.category`,`custom`),a.toPublicApi(r)},startNetworkSpan:t=>{let n=a.startNetworkSpan(t);return{...a.toPublicApi(n),end:t=>{a.endSpan(n,lc(e.clock,t.endTime),{"http.status_code":t.status})}}},getPlugin:e=>s.getPlugin(e),getSpanControls:e=>o.getSpanControls(e),get currentSpanContext(){return n.current},get appState(){return fc()},...e.platformExtensions&&e.platformExtensions(a,n)}}function hc(){let e=()=>{};return{start:e,startSpan:()=>({id:``,traceId:``,end:e,isValid:()=>!1}),currentSpanContext:void 0}}function gc(e,t){var n=`000000000`+e;return n.substr(n.length-t)}var _c=typeof window==`object`?window:self,vc=0;for(var yc in _c)Object.hasOwnProperty.call(_c,yc)&&vc++;var bc=gc(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+vc.toString(36),4);function xc(){return bc}function Sc(e){return typeof e==`string`&&/^c[a-z0-9]{20,32}$/.test(e)}function Cc(e){let t=36**4,n=0;function r(){return gc((Math.random()*t<<0).toString(36),4)}function i(){return n=n<t?n:0,n++,n-1}function a(){var t=`c`,n=new Date().getTime().toString(36),a=gc(i().toString(36),4),o=e(),s=r()+r();return t+n+a+o+s}return a.fingerprint=e,a.isCuid=Sc,a}var wc=Cc(xc),{isCuid:Tc}=wc,Ec=class{constructor(){this.persistedItems=new Map}async load(e){return this.persistedItems.get(e)}async save(e,t){this.persistedItems.set(e,t)}};function Dc(e,t){switch(e){case`bugsnag-sampling-probability`:{let e=JSON.parse(t);return ys(e)?e:void 0}case`bugsnag-anonymous-id`:return Tc(t)?t:void 0}}var Oc=864e5,kc=class{constructor(e,t){this.delivery=e,this.retryQueueMaxSize=t,this.requestQueue=Promise.resolve(),this.payloads=[]}add(e,t){this.payloads.push({payload:e,time:t});let n=this.payloads.reduce((e,{payload:t})=>e+Ac(t),0);for(;n>this.retryQueueMaxSize;){let e=this.payloads.shift();if(!e)break;n-=Ac(e.payload)}}async flush(){if(this.payloads.length===0)return;let e=this.payloads;this.payloads=[],this.requestQueue=this.requestQueue.then(async()=>{for(let{payload:t,time:n}of e)if(!(Date.now()>=n+Oc))try{let{state:e}=await this.delivery.send(t);switch(e){case`success`:case`failure-discard`:break;case`failure-retryable`:this.add(t,n)}}catch{}}),await this.requestQueue}};function Ac(e){let t=0;for(let n=0;n<e.body.resourceSpans.length;++n){let r=e.body.resourceSpans[n].scopeSpans;for(let e=0;e<r.length;++e)t+=r[e].spans.length}return t}var jc=/^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9]{2}$/,Mc=class e{constructor(e){this.id=e.id,this.traceId=e.traceId}encodeAsTraceParent(){return e.toTraceParentString(this)}static parseTraceParent(t){let n=jc.exec(t);if(!n)return;let[,r,i]=n;return new e({id:i,traceId:r})}static toTraceParentString(e){let t=!0;if(bs(e)){let n=ic(e.samplingProbability);t=e.samplingRate<=n}return`00-${e.traceId}-${e.id}-${t?`01`:`00`}`}};function Nc(e){let t=e.get(`Bugsnag-Sampling-Probability`);if(typeof t!=`string`)return;let n=Number.parseFloat(t);if(!(Number.isNaN(n)||n<0||n>1))return n}
3function Pc(e,t,n){let r=!1;return n&&n.onStateChange(e=>{r=e===`in-background`}),function(n){return{async send(i){let a=JSON.stringify(i.body);i.headers[`Bugsnag-Sent-At`]=t.date().toISOString();try{let t=await e(n,{method:`POST`,keepalive:r,body:a,headers:i.headers});return{state:qs(t.status),samplingProbability:Nc(t.headers)}}catch{return a.length>1e6?{state:`failure-discard`}:{state:`failure-retryable`}}}}}}function Fc(e){return e}function Ic(e){return typeof e==`function`}var Lc=class{constructor(){this.callbacks=[]}onStart(e){this.callbacks.push(e)}start(e){let t=[];for(let n of this.callbacks){let r=n(e);r&&t.push(r)}return{onRequestEnd:e=>{for(let n of t)n&&n.onRequestEnd&&n.onRequestEnd(e)},extraRequestHeaders:t.map(e=>{if(e&&e.extraRequestHeaders)return e.extraRequestHeaders}).filter(Rc)}}};function Rc(e){return e!==void 0}function zc(e,t){if(e.indexOf(`https://`)===0||e.indexOf(`http://`)===0)return e;try{let n=new URL(e,t).href;return!e.endsWith(`/`)&&n.endsWith(`/`)?n.slice(0,-1):n}catch{return e}}function Bc(e,t,n,r){let i=Vc(t),a=i?t.url:String(t),o=!!n&&n.method||i&&t.method||`GET`;return{url:zc(a,r),method:o,startTime:e,type:`fetch`}}function Vc(e){return!!e&&typeof e==`object`&&!(e instanceof URL)}function Hc(e){return!!e&&typeof e==`object`&&e instanceof Headers}function Uc(e,t){let n=new Lc,r=e.fetch;return e.fetch=function(i,a){let o=Bc(t.now(),i,a,e.document&&e.document.baseURI),{onRequestEnd:s,extraRequestHeaders:c}=n.start(o),l=Wc(i,a,c);return r.call(this,l[0],l[1]).then(e=>(s({status:e.status,endTime:t.now(),state:`success`}),e)).catch(e=>{throw s({error:e,endTime:t.now(),state:`error`}),e})},n}function Wc(e,t,n){if(!n)return[e,t];let r=n.reduce((e,t)=>({...e,...t}),{});return Vc(e)&&(!t||!t.headers)?Gc(r,e):t=Kc(r,t),[e,t]}function Gc(e,t){for(let[n,r]of Object.entries(e))t.headers.has(n)||t.headers.set(n,r)}function Kc(e,t){if(t||={},Hc(t.headers)){for(let[n,r]of Object.entries(e))t.headers.has(n)||t.headers.set(n,r);return t}return{...t,headers:{...e,...t.headers}}}function qc(e,t,n){let r=new Lc,i=new WeakMap,a=new WeakMap,o=e.prototype.open;e.prototype.open=function(e,t,...r){i.set(this,{method:e,url:zc(String(t),n&&n.baseURI)}),o.call(this,e,t,...r)};let s=e.prototype.send;return e.prototype.send=function(n){let o=i.get(this);if(o){let n=a.get(this);n&&this.removeEventListener(`readystatechange`,n);let{onRequestEnd:i,extraRequestHeaders:s}=r.start({type:`xmlhttprequest`,method:o.method,url:o.url,startTime:t.now()});if(s)for(let e of s)for(let[t,n]of Object.entries(e))this.setRequestHeader(t,n);let c=n=>{if(this.readyState===e.DONE&&i){let e=this.status>0?{endTime:t.now(),status:this.status,state:`success`}:{endTime:t.now(),state:`error`};i(e)}};this.addEventListener(`readystatechange`,c),a.set(this,c)}s.call(this,n)},r}var Jc={referrer:!0,title:!0,url:!0};function Yc(e){return{...Jc,...e}}function Xc(e){let t=[`undefined`,`boolean`],n=Object.keys(Jc);return fs(e)&&n.every(n=>t.includes(typeof e[n]))}function Zc(e,t){return e===void 0||t===void 0||e===0&&t===0}var Qc=(e,t,n,r)=>{function i(t,i,a){if(Zc(i,a))return;let o=e.startSpan(`[PageLoadPhase/${t}]${n}`,{startTime:i,parentContext:r,makeCurrentContext:!1});o.setAttribute(`bugsnag.span.category`,`page_load_phase`),o.setAttribute(`bugsnag.phase`,t),e.endSpan(o,a)}let a=t.getEntriesByType(`navigation`),o=Array.isArray(a)&&a[0];if(o){i(`Unload`,o.unloadEventStart,o.unloadEventEnd),i(`Redirect`,o.redirectStart,o.redirectEnd),i(`LoadFromCache`,o.fetchStart,o.domainLookupStart),i(`DNSLookup`,o.domainLookupStart,o.domainLookupEnd);let e=o.secureConnectionStart||o.connectEnd;i(`TCPHandshake`,o.connectStart,e),i(`TLS`,o.secureConnectionStart,o.connectEnd),i(`HTTPRequest`,o.requestStart,o.responseStart),i(`HTTPResponse`,o.responseStart,o.responseEnd),i(`DomContentLoadedEvent`,o.domContentLoadedEventStart,o.domContentLoadedEventEnd),i(`LoadEvent`,o.loadEventStart,o.loadEventEnd)}},$c=e=>e.pathname||`/`,el=()=>class{constructor(e=$c){this.resolveRoute=e}listenForRouteChanges(e){}},tl=(e,t)=>class{constructor(e=$c){this.resolveRoute=e}listenForRouteChanges(n){addEventListener(`popstate`,r=>{let i=n(new URL(t.href),`popstate`);e(e=>{i.end(e)})});let r=history.pushState;history.pushState=function(...t){let i=t[2];if(i){let t=n(new URL(zc(i.toString(),document.baseURI)),`pushState`);e(e=>{t.end(e)})}r.apply(this,t)}}}
3,nl=class{constructor(e,t,n,r,i,a,o){this.wasBackgrounded=!1,this.enabled=!1,this.routeResolver=$c,this.sendPageAttributes=Jc,this.document=e,this.location=t,this.spanFactory=n,this.webVitals=r,this.onSettle=i,this.performance=o,a.onStateChange(e=>{!this.wasBackgrounded&&e===`in-background`&&(this.wasBackgrounded=!0)})}install(e){if(!e.configuration.autoInstrumentFullPageLoads||this.wasBackgrounded)return;let{routingProvider:t,sendPageAttributes:n}=e.configuration;t&&(this.routeResolver=t.resolveRoute),n&&(this.sendPageAttributes=n),this.enabled=!0}start(){if(!this.enabled)return;let e=null,t=document.querySelector(`meta[name="traceparent"]`);if(t!==null&&t.getAttribute(`content`)){let[,n,r]=t.getAttribute(`content`).split(`-`);e={traceId:n,id:r}}let n=this.spanFactory.startSpan(`[FullPageLoad]`,{startTime:0,parentContext:e}),r=Yc(this.sendPageAttributes||Jc),i=new URL(this.location.href);this.onSettle(e=>{if(this.wasBackgrounded)return;let t=this.routeResolver(i)||$c(i);n.name+=t,Qc(this.spanFactory,this.performance,t,n),n.setAttribute(`bugsnag.span.category`,`full_page_load`),n.setAttribute(`bugsnag.browser.page.route`,t),r.referrer&&n.setAttribute(`bugsnag.browser.page.referrer`,this.document.referrer),r.title&&n.setAttribute(`bugsnag.browser.page.title`,this.document.title),r.url&&n.setAttribute(`bugsnag.browser.page.url`,i.toString()),this.webVitals.attachTo(n),this.spanFactory.endSpan(n,e),fc()===`starting`&&pc(`ready`)})}},rl=[`http://`,`https://`,`/`,`./`,`../`],il=class{constructor(e,t,n,r){this.spanFactory=e,this.spanContextStorage=t,this.fetchTracker=n,this.xhrTracker=r,this.configEndpoint=``,this.networkRequestCallback=Fc,this.logger={debug:console.debug,warn:console.warn,info:console.info,error:console.error},this.enabled=!1,this.trackRequest=e=>{if(!this.shouldTrackRequest(e))return;let t={url:e.url,type:e.type,propagateTraceContext:!1},n=this.networkRequestCallback(t);if(!n)return{onRequestEnd:void 0,extraRequestHeaders:void 0};if(n.propagateTraceContext===void 0&&(n.propagateTraceContext=!1),!n.url)return{onRequestEnd:void 0,extraRequestHeaders:n.propagateTraceContext?this.getExtraRequestHeaders():void 0};if(typeof n.url!=`string`){this.logger.warn(`expected url to be a string following network request callback, got ${typeof n.url}`);return}let r=this.spanFactory.startNetworkSpan({method:e.method,startTime:e.startTime,url:n.url});return{onRequestEnd:e=>{e.state===`success`&&this.spanFactory.endSpan(r,e.endTime,{"http.status_code":e.status})},extraRequestHeaders:n.propagateTraceContext?this.getExtraRequestHeaders(r):void 0}}}install(e){if(!e.configuration.autoInstrumentNetworkRequests)return;let{endpoint:t,logger:n,networkRequestCallback:r}=e.configuration;n&&(this.logger=n),t&&(this.configEndpoint=t),r&&(this.networkRequestCallback=r),this.enabled=!0}start(){this.enabled&&(this.xhrTracker.onStart(this.trackRequest),this.fetchTracker.onStart(this.trackRequest))}shouldTrackRequest(e){return e.url!==this.configEndpoint&&rl.some(t=>e.url.startsWith(t))}getExtraRequestHeaders(e=this.spanContextStorage.current){let t={};return e&&(t.traceparent=Mc.toTraceParentString(e),t.tracestate=al(e.traceId)),t}};function al(e){return`sb=v:1;r32:${Ls(e)}`}function ol(e){switch(e){case``:return;case`http/1.0`:return`1.0`;case`http/1.1`:return`1.1`;case`h2`:case`h2c`:return`2.0`;case`h3`:return`3.0`;case`spdy/1`:case`spdy/2`:case`spdy/3`:return`SPDY`;default:return e}}function sl(e){return e&&Array.isArray(e.supportedEntryTypes)&&e.supportedEntryTypes.includes(`resource`)}var cl=class{constructor(e,t,n){this.spanFactory=e,this.spanContextStorage=t,this.PerformanceObserverClass=n,this.enabled=!1,this.logger={debug:console.debug,warn:console.warn,info:console.info,error:console.error},this.networkRequestCallback=Fc}install(e){if(!sl(this.PerformanceObserverClass))return;let{logger:t,networkRequestCallback:n}=e.configuration;t&&(this.logger=t),n&&(this.networkRequestCallback=n),this.enabled=!0}start(){if(!this.enabled)return;let e=new this.PerformanceObserverClass(e=>{let t=e.getEntries();for(let e of t){if(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)continue;let t=this.spanContextStorage.first;if(t){let n=this.networkRequestCallback({url:e.name,type:e.initiatorType});if(!n)return;if(typeof n.url!=`string`){this.logger.warn(`expected url to be a string following network request callback, got ${typeof n.url}`);return}let r=``;try{let e=new URL(n.url);e.search=``,r=e.href}catch{this.logger.warn(`Unable to parse URL returned from networkRequestCallback: ${n.url}`);return}let i=this.spanFactory.startSpan(`[ResourceLoad]${r}`,{parentContext:t,startTime:e.startTime,makeCurrentContext:!1});i.setAttribute(`bugsnag.span.category`,`resource_load`),i.setAttribute(`http.url`,n.url);let a=ol(e.nextHopProtocol);a&&i.setAttribute(`http.flavor`,a),e.encodedBodySize&&e.decodedBodySize&&(i.setAttribute(`http.response_content_length`,e.encodedBodySize),i.setAttribute(`http.response_content_length_uncompressed`,e.decodedBodySize)),e.responseStatus&&i.setAttribute(`http.status_code`,e.responseStatus),this.spanFactory.endSpan(i,e.responseEnd)}}});try{e.observe({type:`resource`,buffered:!0})}catch{this.logger.warn(`Unable to get previous resource loads as buffered observer not supported, only showing resource loads from this point on`),e.observe({entryTypes:[`resource`]})}}},{startTime:ll,parentContext:ul,makeCurrentContext:dl}=Us,fl={startTime:ll,parentContext:ul,makeCurrentContext:dl,trigger:{getDefaultValue:e=>String(e),message:`should be a string`,validate:ms}},pl=class{constructor(e,t,n){this.spanFactory=e,this.location=t,this.document=n,this.enabled=!1,this.sendPageAttributes=Jc,this.logger={debug:console.debug,warn:console.warn,info:console.info,error:console.error}}install(e){if(!e.configuration.autoInstrumentRouteChanges)return;let{logger:t,routingProvider:n,sendPageAttributes:r}=e.configuration;t&&(this.logger=t),n&&(this.routingProvider=n),r&&(this.sendPageAttributes=r),this.enabled=!0}start(){var e;if(!this.enabled)return;let t=new URL(this.location.href),n=this.routingProvider?.resolveRoute(t)||$c(t),r=Yc(this.sendPageAttributes);(e=this.routingProvider)==null||e.listenForRouteChanges((e,t,i)=>{let a;if(e instanceof URL)a=e;else try{a=new URL(String(e))}catch{return this.logger.warn(`Invalid span options 4 - url should be a URL`),{id:``,name:``,traceId:``,samplingRate:0,samplingProbability:0,isValid:()=>!1,setAttribute:()=>{},end:()=>{}}}pc(`navigating`);let o={...i,trigger:t},s=this.spanFactory.validateSpanOptions(`[RouteChange]`,o,fl),c=this.routingProvider?.resolveRoute(a)||$c(a);s.name+=c;let l=this.spanFactory.startSpan(s.name,s.options);return l.setAttribute(`bugsnag.span.category`,`route_change`),l.setAttribute(`bugsnag.browser.page.route`,c),l.setAttribute(`bugsnag.browser.page.previous_route`,n),l.setAttribute(`bugsnag.browser.page.route_change.trigger`,s.options.trigger),r.url&&l.setAttribute(`bugsnag.browser.page.url`,e.toString()),n=c,{get id(){return l.id},get traceId(){return l.traceId},get samplingRate(){return l.samplingRate},get samplingProbability(){return l.samplingProbability},get name(){return l.name},isValid:l.isValid,setAttribute:l.setAttribute,end:e=>{let t=fs(e)?e:{endTime:e};if(r.title&&l.setAttribute(`bugsnag.browser.page.title`,this.document.title),t.url){let e=ml(t.url),i=this.routingProvider?.resolveRoute(e)||$c(e);l.name=`[RouteChange]${i}`,l.setAttribute(`bugsnag.browser.page.route`,i),n=i,r.url&&l.setAttribute(`bugsnag.browser.page.url`,e.toString())}this.spanFactory.toPublicApi(l).end(t.endTime),pc(`ready`)}}})}};function ml(e){return typeof e==`string`?new URL(e):e}function hl(e){let t=[],n=e.document.visibilityState===`hidden`?`in-background`:`in-foreground`,r={onStateChange(e){t.push(e),n===`in-background`&&e(n)}},i=e=>{if(n!==e){n=e;for(let e of t)e(n)}};return e.document.addEventListener(`visibilitychange`,function(){let t=e.document.visibilityState===`hidden`?`in-background`:`in-foreground`;i(t)}),e.addEventListener(`pagehide`,function(){i(`in-background`)}),e.addEventListener(`pageshow`,function(){i(`in-foreground`)}),r}var gl=3e5;function _l(e,t){return Math.abs(Date.now()-(e+t.now()))>gl?Date.now()-t.now():e}function vl(e,t){let n=_l(e.timeOrigin===void 0?e.timing.navigationStart:e.timeOrigin,e);t.onStateChange(t=>
4{t===`in-foreground`&&(n=_l(n,e))});let r=e=>Ns(n+e);return{now:()=>e.now(),date:()=>new Date(n+e.now()),convert:e=>e.getTime()-n,toUnixNanoseconds:r,toUnixTimestampNanoseconds:e=>r(e).toString()}}var yl=e=>fs(e)&&typeof e.resolveRoute==`function`&&typeof e.listenForRouteChanges==`function`;function bl(e,t=!1){return{...Ps,releaseStage:{...Ps.releaseStage,defaultValue:t?`development`:`production`},autoInstrumentFullPageLoads:{defaultValue:!0,message:`should be true|false`,validate:ds},autoInstrumentNetworkRequests:{defaultValue:!0,message:`should be true|false`,validate:ds},autoInstrumentRouteChanges:{defaultValue:!0,message:`should be true|false`,validate:ds},generateAnonymousId:{defaultValue:!0,message:`should be true|false`,validate:ds},routingProvider:{defaultValue:e,message:`should be a routing provider`,validate:yl},settleIgnoreUrls:{defaultValue:[],message:`should be an array of string|RegExp`,validate:vs},networkRequestCallback:{defaultValue:Fc,message:`should be a function`,validate:Ic},sendPageAttributes:{defaultValue:Jc,message:`should be an object`,validate:Xc},serviceName:{defaultValue:`unknown_service`,message:`should be a string`,validate:hs}}}function xl(e){let t=e.toString(16);return t.length===1?`0`+t:t}var Sl={generate(e){let t=new Uint8Array(e/8),n=window.crypto.getRandomValues(t);return Array.from(n).map(xl).join(``)}},Cl=class{constructor(e){this.settled=!1,this.callbacks=new Set,this.clock=e}subscribe(e){this.callbacks.add(e),this.isSettled()&&e(this.clock.now())}unsubscribe(e){this.callbacks.delete(e)}isSettled(){return this.settled}settle(e){this.settled=!0;for(let t of this.callbacks)t(e)}},wl=class extends Cl{constructor(e,t){super(e),this.timeout=void 0,new MutationObserver(()=>{this.restart()}).observe(t,{subtree:!0,childList:!0,characterData:!0}),this.restart()}restart(){clearTimeout(this.timeout),this.settled=!1;let e=this.clock.now();this.timeout=setTimeout(()=>{this.settle(e)},100)}};function Tl(e){return!!e&&e.entryType===`navigation`}var El=class extends Cl{constructor(e,t,n,r){super(e),r.readyState===`complete`?setTimeout(()=>{this.settleUsingPerformance(n)},0):t(`load`,()=>{setTimeout(()=>{this.settleUsingPerformance(n)},0)})}settleUsingPerformance(e){let t=this.clock.now(),n=typeof e.getEntriesByType==`function`?e.getEntriesByType(`navigation`)[0]:void 0,r=0;Tl(n)?r=n.loadEventEnd:e.timing&&(r=e.timing.loadEventEnd-e.timing.navigationStart),(r<=0||r>t)&&(r=t),this.settle(r)}},Dl=class extends Cl{constructor(e,t){super(e),this.timeout=void 0,this.urlsToIgnore=[],this.outstandingRequests=0,this.settled=!0,t.onStart(this.onRequestStart.bind(this))}setUrlsToIgnore(e){this.urlsToIgnore=e}onRequestStart(e){if(!this.shouldIgnoreUrl(e.url))return clearTimeout(this.timeout),this.settled=!1,++this.outstandingRequests,{onRequestEnd:e=>{if(--this.outstandingRequests===0){let e=this.clock.now();this.timeout=setTimeout(()=>{this.settle(e)},100)}}}}shouldIgnoreUrl(e){return this.urlsToIgnore.some(t=>t.test(e))}},Ol=class extends Cl{constructor(e,t){super(e),this.settlers=t;for(let e of t)e.subscribe(e=>{this.settlersAreSettled()?this.settle(e):this.settled=!1})}isSettled(){return super.isSettled()&&this.settlersAreSettled()}settlersAreSettled(){for(let e of this.settlers)if(!e.isSettled())return!1;return!0}},kl=6e4;function Al(){let e=()=>{};return e.install=()=>{},e.start=()=>{},e}function jl(e,t,n,r,i){let a=new wl(e,t.document),o=new Dl(e,n),s=new Dl(e,r),c=new Ol(e,[a,new El(e,t.addEventListener,i,t.document),o,s]);function l(t){let n=e=>{clearTimeout(r),c.unsubscribe(n),t(e)},r=setTimeout(()=>{let r=e.now();c.unsubscribe(n),t(r)},kl),i=c.isSettled()?100:0,a=e.now();setTimeout(()=>{c.isSettled()?n(a):c.subscribe(n)},i)}return l.install=function(e){let t=[];e.configuration.endpoint&&t.push(RegExp(e.configuration.endpoint)),e.configuration.settleIgnoreUrls&&t.push(...e.configuration.settleIgnoreUrls.map(e=>typeof e==`string`?RegExp(e):e)),o.setUrlsToIgnore(t),s.setUrlsToIgnore(t)},l.start=function(){},l}function Ml(e){try{if(e.localStorage)return new Pl(e.localStorage)}catch{}return new Ec}function Nl(e,t){switch(e){case`bugsnag-sampling-probability`:return JSON.stringify(t);case`bugsnag-anonymous-id`:return t;default:return e}}var Pl=class{constructor(e){this.storage=e}async load(e){try{let t=this.storage.getItem(e);if(t)return Dc(e,t)}catch{}}async save(e,t){try{this.storage.setItem(e,Nl(e,t))}catch{}}};function Fl(e,t){let n,r;return function(i){let a=new Os(i.releaseStage,i.appVersion,i.serviceName,`bugsnag.performance.browser`,`2.15.0`,i.logger);if(a.set(`browser.user_agent`,e.userAgent),e.userAgentData&&(a.set(`browser.platform`,e.userAgentData.platform),a.set(`browser.mobile`,e.userAgentData.mobile)),i.generateAnonymousId){if(n||=t.load(`bugsnag-anonymous-id`).then(e=>{let n=e||wc();return e||t.save(`bugsnag-anonymous-id`,n),r=n,r}),r)a.set(`device.id`,r);else return n.then(e=>(a.set(`device.id`,e),a))}return Promise.resolve(a)}}var Il=e=>{let t={url:{name:`bugsnag.browser.page.url`,getValue:()=>e.location.href,permitted:!1},title:{name:`bugsnag.browser.page.title`,getValue:()=>e.title,permitted:!1}};return{configure(e){t.title.permitted=e.sendPageAttributes.title||!1,t.url.permitted=e.sendPageAttributes.url||!1},requestAttributes(e){for(let n of Object.values(t))n.permitted&&e.setAttribute(n.name,n.getValue())}}},Ll=class{constructor(e,t,n){if(this.performance=e,this.clock=t,this.observers=[],n&&Array.isArray(n.supportedEntryTypes)){let e=n.supportedEntryTypes;e.includes(`largest-contentful-paint`)&&this.observeLargestContentfulPaint(n),e.includes(`layout-shift`)&&this.observeLayoutShift(n)}}attachTo(e){let t=this.firstContentfulPaint();t&&e.addEvent(`fcp`,t);let n=this.timeToFirstByte();n&&e.addEvent(`ttfb`,n);let r=this.firstInputDelay();r&&(e.addEvent(`fid_start`,r.start),e.addEvent(`fid_end`,r.end)),this.cumulativeLayoutShift&&e.setAttribute(`bugsnag.metrics.cls`,this.cumulativeLayoutShift),this.largestContentfulPaint&&e.addEvent(`lcp`,this.largestContentfulPaint);for(let e of this.observers)e.disconnect()}firstContentfulPaint(){let e=this.performance.getEntriesByName(`first-contentful-paint`,`paint`),t=Array.isArray(e)&&e[0];if(t)return t.startTime}timeToFirstByte(){let e=this.performance.getEntriesByType(`navigation`),t=Array.isArray(e)&&e[0],n;if(n=t?t.responseStart:this.performance.timing.responseStart-this.performance.timing.navigationStart,n>0&&n<=this.clock.now())return n}firstInputDelay(){let e=this.performance.getEntriesByType(`first-input`),t=Array.isArray(e)&&e[0];if(t)return{start:t.startTime,end:t.processingStart}}observeLargestContentfulPaint(e){let t=new e(e=>{let t=e.getEntries();t.length>0&&(this.largestContentfulPaint=t[t.length-1].startTime)});t.observe({type:`largest-contentful-paint`,buffered:!0}),this.observers.push(t)}observeLayoutShift(e){let t,n=new e(e=>{for(let n of e.getEntries())n.hadRecentInput||(t&&n.startTime-t.previousStartTime<1e3&&n.startTime-t.firstStartTime<5e3?(t.value+=n.value,t.previousStartTime=n.startTime):t={value:n.value,firstStartTime:n.startTime,previousStartTime:n.startTime});t&&(this.cumulativeLayoutShift===void 0||t.value>this.cumulativeLayoutShift)&&(this.cumulativeLayoutShift=t.value)});n.observe({type:`layout-shift`,buffered:!0}),this.observers.push(n)}},Rl,zl,Bl;if(typeof window>`u`||typeof document>`u`)Rl=Al(),zl=el(),Bl=hc();else{let e=window.location.hostname===`localhost`,t=hl(window),n=Il(document),r=vl(performance,t),i=Ml(window),a=Fl(navigator,i),o=Uc(window,r),s=qc(XMLHttpRequest,r,document),c=new Ll(performance,r,window.PerformanceObserver);Rl=jl(r,window,o,s,performance),zl=tl(Rl,window.location),Bl=mc({isDevelopment:e,backgroundingListener:t,clock:r,resourceAttributesSource:a,spanAttributesSource:n,deliveryFactory:Pc(window.fetch,r,t),idGenerator:Sl,schema:bl(new zl,e),plugins:(e,n)=>[Rl,new nl(document,window.location,e,c,Rl,t,performance),new cl(e,n,window.PerformanceObserver),new il(e,n,o,s),new pl(e,window.location,document)],persistence:i,retryQueueFactory:(e,t)=>new kc(e,t)})}var Vl=Bl,Hl=class{constructor(e,t){this.router=e;let n=!t||t===`/`?``:t;function r(t){return e.resolve({path:t.pathname.replace(n??``,``)}).matched.pop()?.path||`no-route-found`}this.resolveRoute=r}listenForRouteChanges(e){this.router.beforeResolve((t,n)=>{if(!n.name)return;let r=e(new URL(t.path,document.baseURI),`beforeResolve`);Rl(e=>{r.end(e)})})}},Ul=s(e=>{let t=a().public.bugsnag,n=Ke();t.performanceConfig.routingProvider=new Hl(n);let r=Vl.start(t);return e.vueApp.provide(`bugsnag-performance`,r),{provide:{bugsnagPerformance:r}}}),Wl=t(((e,t)=>{(function(n){if(typeof e==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.Bugsnag=n()}})(function(){var e,t=[`navigation`,`request`,`process`,`log`,`user`,`state`,`error`,`manual`],n=function(e,t,n){for(var r=n,i=0,a=e.length;i<a;i++)r=t(r,e[i],i,e);return r},r=function(e,t){return n(e,function(e,n,r,i){return t(n,r,i)?e.concat(n):e},[])},i=function(e,t){return n(e,function(e,n,r,i){return e===!0||n===t},!1)},a=function(e){return Object.prototype.toString.call(e)===`[object Array]`},o=!{toString:null}
4.propertyIsEnumerable(`toString`),s=[`toString`,`toLocaleString`,`valueOf`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`constructor`],c=function(e){var t=[],n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);if(!o)return t;for(var r=0,i=s.length;r<i;r++)Object.prototype.hasOwnProperty.call(e,s[r])&&t.push(s[r]);return t},l=function(e,t){return e===void 0&&(e=1),t===void 0&&(t=1/0),function(n){return typeof n==`number`&&parseInt(``+n,10)===n&&n>=e&&n<=t}},u=function(e){return typeof e==`function`||a(e)&&r(e,function(e){return typeof e==`function`}).length===e.length},d=function(e){return typeof e==`string`&&!!e.length},f={},p=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(e){return e===void 0||d(e)}},appType:{defaultValue:function(){},message:`should be a string`,validate:function(e){return e===void 0||d(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:`should be true|false`,validate:function(e){return e===!0||e===!1}},enabledErrorTypes:{defaultValue:function(){return p()},message:`should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }`,allowPartialObject:!0,validate:function(e){if(typeof e!=`object`||!e)return!1;var t=c(e),n=c(p());return!(r(t,function(e){return i(n,e)}).length<t.length||r(c(e),function(t){return typeof e[t]!=`boolean`}).length>0)}},onError:{defaultValue:function(){return[]},message:`should be a function or array of functions`,validate:u},onSession:{defaultValue:function(){return[]},message:`should be a function or array of functions`,validate:u},onBreadcrumb:{defaultValue:function(){return[]},message:`should be a function or array of functions`,validate:u},endpoints:{defaultValue:function(e){return e===void 0?{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(e){return e&&typeof e==`object`&&d(e.notify)&&d(e.sessions)&&r(c(e),function(e){return!i([`notify`,`sessions`],e)}).length===0}},autoTrackSessions:{defaultValue:function(e){return!0},message:`should be true|false`,validate:function(e){return e===!0||e===!1}},enabledReleaseStages:{defaultValue:function(){return null},message:`should be an array of strings`,validate:function(e){return e===null||a(e)&&r(e,function(e){return typeof e==`string`}).length===e.length}},releaseStage:{defaultValue:function(){return`production`},message:`should be a string`,validate:function(e){return typeof e==`string`&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:`should be a number â¤100`,validate:function(e){return l(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return t},message:`should be null or a list of available breadcrumb types (`+t.join(`,`)+`)`,validate:function(e){return e===null||a(e)&&n(e,function(e,n){return e===!1?e:i(t,n)},!0)}},context:{defaultValue:function(){},message:`should be a string`,validate:function(e){return e===void 0||typeof e==`string`}},user:{defaultValue:function(){return{}},message:`should be an object with { id, email, name } properties`,validate:function(e){return e===null||e&&n(c(e),function(e,t){return e&&i([`id`,`email`,`name`],t)},!0)}},metadata:{defaultValue:function(){return{}},message:`should be an object`,validate:function(e){return typeof e==`object`&&!!e}},logger:{defaultValue:function(){},message:`should be null or an object with methods { debug, info, warn, error }`,validate:function(e){return!e||e&&n([`debug`,`info`,`warn`,`error`],function(t,n){return t&&typeof e[n]==`function`},!0)}},redactedKeys:{defaultValue:function(){return[`password`]},message:`should be an array of strings|regexes`,validate:function(e){return a(e)&&e.length===r(e,function(e){return typeof e==`string`||e&&typeof e.test==`function`}).length}},plugins:{defaultValue:function(){return[]},message:`should be an array of plugin objects`,validate:function(e){return a(e)&&e.length===r(e,function(e){return e&&typeof e==`object`&&typeof e.load==`function`}).length}},featureFlags:{defaultValue:function(){return[]},message:`should be an array of objects that have a "name" property`,validate:function(e){return a(e)&&e.length===r(e,function(e){return e&&typeof e==`object`&&typeof e.name==`string`}).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:`should be true|false`,validate:function(e){return e===!0||e===!1}},sendPayloadChecksums:{defaultValue:function(){return!1},message:`should be true|false`,validate:function(e){return e===!0||e===!1}}};var m=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e,t){return n(e,function(e,n,r,i){return e.concat(t(n,r,i))},[])};function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}var _=f.schema,v={releaseStage:m({},_.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?`development`:`production`}}),appType:g({},_.appType,{defaultValue:function(){return`browser`}}),logger:m({},_.logger,{defaultValue:function(){return typeof console<`u`&&typeof console.debug==`function`?y():void 0}})},y=function(){var e={},t=console.log;return h([`debug`,`info`,`warn`,`error`],function(n){var r=console[n];
vendor: 7,177 bytes, lines 4-12
4e[n]=typeof r==`function`?r.bind(console,`[bugsnag]`):t.bind(console,`[bugsnag]`)}),e},b=function(){function e(e,t,n,r){r===void 0&&(r=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=r}var t=e.prototype;return t.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e}(),x={};(function(t,n){typeof e==`function`&&e.amd?e(`stackframe`,[],n):typeof x==`object`?x=n():t.StackFrame=n()})(this,function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],i=[`columnNumber`,`lineNumber`],a=[`fileName`,`functionName`,`source`],o=r.concat(i,a,[`args`],[`evalOrigin`]);function s(e){if(e)for(var n=0;n<o.length;n++)e[o[n]]!==void 0&&this[`set`+t(o[n])](e[o[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},toString:function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n}},s.fromString=function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),c=o[1],l=o[2],u=o[3];return new s({functionName:r,args:i||void 0,fileName:c,lineNumber:l||void 0,columnNumber:u||void 0})};for(var c=0;c<r.length;c++)s.prototype[`get`+t(r[c])]=n(r[c]),s.prototype[`set`+t(r[c])]=function(e){return function(t){this[e]=!!t}}(r[c]);for(var l=0;l<i.length;l++)s.prototype[`get`+t(i[l])]=n(i[l]),s.prototype[`set`+t(i[l])]=function(t){return function(n){if(!e(n))throw TypeError(t+` must be a Number`);this[t]=Number(n)}}(i[l]);for(var u=0;u<a.length;u++)s.prototype[`get`+t(a[u])]=n(a[u]),s.prototype[`set`+t(a[u])]=function(e){return function(t){this[e]=String(t)}}(a[u]);return s});var S={};(function(t,n){typeof e==`function`&&e.amd?e(`stack-generator`,[`stackframe`],n):typeof S==`object`?S=n(x):t.StackGenerator=n(t.StackFrame)})(this,function(e){return{backtrace:function(t){var n=[],r=10;typeof t==`object`&&typeof t.maxStackSize==`number`&&(r=t.maxStackSize);for(var i=arguments.callee;i&&n.length<r&&i.arguments;){for(var a=Array(i.arguments.length),o=0;o<a.length;++o)a[o]=i.arguments[o];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:a})):n.push(new e({args:a}));try{i=i.caller}catch{break}}return n}}});var C={};(function(t,n){typeof e==`function`&&e.amd?e(`error-stack-parser`,[`stackframe`],n):typeof C==`object`?C=n(x):t.ErrorStackParser=n(t.StackFrame)})(this,function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error(`Cannot parse given Error object`)},extractLocation:function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(` 5`).filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf(`(eval `)>-1&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(\),.*$)/g,``));var n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/);n=r?n.replace(r[0],``):n;var i=n.split(/\s+/).slice(1),a=this.extractLocation(r?r[1]:i.pop());return new e({functionName:i.join(` `)||void 0,fileName:[`eval`,`<anonymous>`].indexOf(a[0])>-1?void 0:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split(` 6`).filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(` > eval`)>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),t.indexOf(`@`)===-1&&t.indexOf(`:`)===-1)return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,``));return new e({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(` 7`)>-1&&e.message.split(` 8`).length>e.stacktrace.split(` 9`).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(` 10`),i=[],a=2,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(` 11`),i=[],a=0,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera11:function(n){return n.stack.split(` 12`).filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n=t.split(`@`),r=this.extractLocation(n.pop()),i=n.shift()||``,a=i.replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,o;return i.match(/\(([^)]*)\)/)&&(o=i.replace(/^[^(]+\(([^)]*)\)$/,`$1`)),new e({functionName:a,args:o===void 0||o===`[arguments not available]`?void 0:o.split(`,`),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)}}});var w=C,ee=function(e,t,n,r){var i=r&&r.redactedKeys?r.redactedKeys:[],a=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(oe(e,i,a),t,n)},T=20,te=25e3,E=8,ne=`...`;function D(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}function re(e){return`[Throws: `+(e?e.message:`?`)+`]`}function O(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}function ie(e,t){for(var n=0,r=e.length;n<r;n++)if(t.indexOf(e[n])===0)return!0;return!1}function k(e,t){for(var n=0,r=e.length;n<r;n++)if(typeof e[n]==`string`&&e[n].toLowerCase()===t.toLowerCase()||e[n]&&typeof e[n].test==`function`&&e[n].test(t))return!0;return!1}function ae(e){return Object.prototype.toString.call(e)===`[object Array]`}function A(e,t){try{return e[t]}catch(e){return re(e)}}function oe(e,t,n){var r=[],i=0;function a(e,o){function s(){return o.length>E&&i>te}if(i++,o.length>T||s())return ne;if(typeof e!=`object`||!e)return e;if(O(r,e))return`[Circular]`;if(r.push(e),typeof e.toJSON==`function`)try{i--;var c=a(e.toJSON(),o);return r.pop(),c}catch(e){return re(e)}if(D(e)){i--;var l=a({name:e.name,message:e.message},o);return r.pop(),l}if(ae(e)){for(var u=[],d=0,f=e.length;d<f;d++){if(s()){u.push(ne);break}
12u.push(a(e[d],o.concat(`[]`)))}return r.pop(),u}var p={};try{for(var m in e)if(Object.prototype.hasOwnProperty.call(e,m)){if(ie(n,o.join(`.`))&&k(t,m)){p[m]=`[REDACTED]`;continue}if(s()){p[m]=ne;break}p[m]=a(A(e,m),o.concat(m))}}catch{}return r.pop(),p}return a(e,[])}function se(e,t,n,r){if(typeof n==`string`){r===void 0?r=null:r!==null&&typeof r!=`string`&&(r=ee(r));var i=t[n];if(typeof i==`number`){e[i]={name:n,variant:r};return}e.push({name:n,variant:r}),t[n]=e.length-1}}function ce(e,t,n){if(a(t)){for(var r=0;r<t.length;++r){var i=t[r];typeof i!=`object`||!i||se(e,n,i.name,i.variant)}return e}}function j(e){return h(r(e,Boolean),function(e){var t=e.name,n=e.variant,r={featureFlag:t};return typeof n==`string`&&(r.variant=n),r})}function le(e,t,n){var r=t[n];typeof r==`number`&&(e[r]=null,delete t[n])}var M={add:se,clear:le,merge:ce,toEventApi:j},N=function(e){return!!e&&(!!e.stack||!!e.stacktrace||!!e[`opera#sourceloc`])&&typeof(e.stack||e.stacktrace||e[`opera#sourceloc`])==`string`&&e.stack!==e.name+`: `+e.message},P=ue;function ue(e){switch(Object.prototype.toString.call(e)){case`[object Error]`:return!0;case`[object Exception]`:return!0;case`[object DOMException]`:return!0;default:return e instanceof Error}}var de=P,F=function(e,t,n,r){var i;if(t){var a;if(n===null)return pe(e,t);typeof n==`object`&&(a=n),typeof n==`string`&&(a=(i={},i[n]=r,i)),a&&t!==`__proto__`&&t!==`constructor`&&t!==`prototype`&&(e[t]||(e[t]={}),e[t]=m({},e[t],a))}},fe=function(e,t,n){if(typeof t==`string`){if(!n)return e[t];if(e[t])return e[t][n]}},pe=function(e,t,n){if(typeof t==`string`){if(!n){delete e[t];return}t!==`__proto__`&&t!==`constructor`&&t!==`prototype`&&e[t]&&delete e[t][n]}},me={add:F,get:fe,clear:pe};function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(null,arguments)}var ge=function(){function e(t,n,r,i,a){r===void 0&&(r=[]),i===void 0&&(i=ve()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=a,this._handledState=i,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.response={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this._groupingDiscriminator=void 0,this.errors=[be(t,n,e.__type,r)]}var t=e.prototype;return t.addMetadata=function(e,t,n){return me.add(this._metadata,e,t,n)},t.setTraceCorrelation=function(e,t){typeof e==`string`&&(this._correlation=he({traceId:e},typeof t==`string`?{spanId:t}:{}))},t.getGroupingDiscriminator=function(){return this._groupingDiscriminator},t.setGroupingDiscriminator=function(e){var t=this._groupingDiscriminator;return(typeof e==`string`||e==null)&&(this._groupingDiscriminator=e),t},t.getMetadata=function(e,t){return me.get(this._metadata,e,t)},t.clearMetadata=function(e,t){return me.clear(this._metadata,e,t)},t.addFeatureFlag=function(e,t){t===void 0&&(t=null),M.add(this._features,this._featuresIndex,e,t)},t.addFeatureFlags=function(e){M.merge(this._features,e,this._featuresIndex)},t.getFeatureFlags=function(){return M.toEventApi(this._features)},t.clearFeatureFlag=function(e){M.clear(this._features,this._featuresIndex,e)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{payloadVersion:`4`,exceptions:h(this.errors,function(e){return m({},e,{message:e.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,response:this.response,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,groupingDiscriminator:this._groupingDiscriminator,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},e}(),I=function(e){var t={file:e.fileName,method:_e(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber>-1&&!t.file&&!t.method&&(t.file=`global code`),t},_e=function(e){return/^global code$/i.test(e)?`global code`:e},ve=function(){return{unhandled:!1,severity:`warning`,severityReason:{type:`handledException`}}},ye=function(e){return typeof e==`string`?e:``};
vendor: 17,786 bytes, lines 12-17
12function be(e,t,r,i){return{errorClass:ye(e),errorMessage:ye(t),type:r,stacktrace:n(i,function(e,t){var n=I(t);try{return JSON.stringify(n)===`{}`?e:e.concat(n)}catch{return e}},[])}}function xe(e){return e.cause?[e].concat(xe(e.cause)):[e]}ge.getStacktrace=function(e,t,n){if(N(e))return w.parse(e).slice(t);try{return r(S.backtrace(),function(e){return(e.functionName||``).indexOf(`StackGenerator$$`)===-1}).slice(1+n)}catch{return[]}},ge.create=function(e,t,n,r,i,a){i===void 0&&(i=0);var o=Ce(e,t,r,a),s=o[0],c=o[1],l;try{var u=ge.getStacktrace(s,c>0?1+c+i:0,1+i);l=new ge(s.name,s.message,u,n,e)}catch{l=new ge(s.name,s.message,[],n,e)}if(s.name===`InvalidError`&&l.addMetadata(``+r,`non-error parameter`,Se(e)),s.cause){var d,f=h(xe(s).slice(1),function(e){var t=de(e)&&N(e)?w.parse(e):[],n=Ce(e,!0,`error cause`)[0];return n.name===`InvalidError`&&l.addMetadata(`error cause`,Se(e)),be(n.name,n.message,ge.__type,t)});(d=l.errors).push.apply(d,f)}return l};var Se=function(e){return e===null?`null`:e===void 0?`undefined`:e},Ce=function(e,t,n,r){var i,a=0,o=function(e){var t=n===`error cause`?`was`:`received`;r&&r.warn(n+` `+t+` a non-error: "`+e+`"`);var i=Error(n+` `+t+` a non-error. See "`+n+`" tab for more detail.`);return i.name=`InvalidError`,i};if(!t)de(e)?i=e:(i=o(typeof e),a+=2);else switch(typeof e){case`string`:case`number`:case`boolean`:i=Error(String(e)),a+=1;break;case`function`:i=o(`function`),a+=2;break;case`object`:e!==null&&de(e)?i=e:e!==null&&we(e)?(i=Error(e.message||e.errorMessage),i.name=e.name||e.errorClass,a+=1):(i=o(e===null?`null`:`unsupported object`),a+=2);break;default:i=o(`nothing`),a+=2}if(!N(i))try{throw i}catch(e){N(e)&&(i=e,a=1)}return[i,a]};ge.__type=`browserjs`;var we=function(e){return(typeof e.name==`string`||typeof e.errorClass==`string`)&&(typeof e.message==`string`||typeof e.errorMessage==`string`)},Te=ge,Ee=function(e,t,n){var r=0,i=function(){if(r>=e.length)return n(null,!0);t(e[r],function(e,t){if(e)return n(e);if(t===!1)return n(null,!1);r++,i()})};i()},De=function(e,t,n,r){Ee(e,function(e,r){if(typeof e!=`function`)return r(null);try{if(e.length!==2){var i=e(t);return i&&typeof i.then==`function`?i.then(function(e){return setTimeout(function(){return r(null,e)})},function(e){setTimeout(function(){return n(e),r(null,!0)})}):r(null,i)}e(t,function(e,t){if(e)return n(e),r(null);r(null,t)})}catch(e){n(e),r(null)}},r)},Oe=function(e,t,n,r){for(var i=!1,a=e.slice();!i&&a.length;)try{i=a.pop()(t)===!1}catch(e){r.error(`Error occurred in `+n+` callback, continuing anywayâ¦`),r.error(e)}return i};function ke(e){return typeof e==`string`&&/^c[a-z0-9]{20,32}$/.test(e)}var Ae=ke;function je(e,t){var n=`000000000`+e;return n.substr(n.length-t)}var Me=je;function Ne(e){var t=4,n=36,r=n**+t,i=0;function a(){return Me((Math.random()*r<<0).toString(n),t)}function o(){return i=i<r?i:0,i++,i-1}function s(){var r=`c`,i=new Date().getTime().toString(n),s=Me(o().toString(n),t),c=e(),l=a()+a();return r+i+s+c+l}return s.fingerprint=e,s.isCuid=Ae,s}var Pe=Ne,Fe=typeof window==`object`?window:self,Ie=0;for(var Le in Fe)Object.hasOwnProperty.call(Fe,Le)&&Ie++;var Re=Me(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+Ie.toString(36),4);function ze(){return Re}var Be=Pe(ze),Ve=function(){function e(){this.id=Be(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var t=e.prototype;return t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(e){this[e._handledState.unhandled?`_unhandled`:`_handled`]+=1},e}(),He=M.add,Ue=M.clear,We=M.merge,Ge=`00000`,Ke=`https://notify.bugsnag.smartbear.com`,qe=`https://sessions.bugsnag.smartbear.com`,Je=function(){},Ye=function(){function e(t,n,r,i){var a=this;n===void 0&&(n=f.schema),r===void 0&&(r=[]),this._notifier=i,this._config={},this._schema=n,this._delivery={sendSession:Je,sendEvent:Je},this._logger={debug:Je,info:Je,warn:Je,error:Je},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._groupingDiscriminator=void 0,this._cbs={e:[],s:[],sp:[],b:[]},this.Client=e,this.Event=Te,this.Breadcrumb=b,this.Session=Ve,this._config=this._configure(t,r),h(r.concat(this._config.plugins),function(e){e&&a._loadPlugin(e)}),this._depth=1;var o=this,s=this.notify;this.notify=function(){return s.apply(o,arguments)}}var a=e.prototype;return a.addMetadata=function(e,t,n){return me.add(this._metadata,e,t,n)},a.getMetadata=function(e,t){return me.get(this._metadata,e,t)},a.clearMetadata=function(e,t){return me.clear(this._metadata,e,t)},a.addFeatureFlag=function(e,t){t===void 0&&(t=null),He(this._features,this._featuresIndex,e,t)},a.addFeatureFlags=function(e){We(this._features,e,this._featuresIndex)},a.clearFeatureFlag=function(e){Ue(this._features,this._featuresIndex,e)},a.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},a.getContext=function(){return this._context},a.setContext=function(e){this._context=e},a.getGroupingDiscriminator=function(){return this._groupingDiscriminator},a.setGroupingDiscriminator=function(e){var t=this._groupingDiscriminator;return(typeof e==`string`||e==null)&&(this._groupingDiscriminator=e),t},a._configure=function(e,t){var r=n(t,function(e,t){return t&&t.configSchema?m({},e,t.configSchema):e},this._schema);e.endpoints||(e.sendPayloadChecksums=`sendPayloadChecksums`in e?e.sendPayloadChecksums:!0);var i=n(c(r),function(t,n){var i=r[n].defaultValue(e[n]);return e[n]===void 0?t.config[n]=i:r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=m(i,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=i),t},{errors:{},config:{}}),a=i.errors,o=i.config;if(r.apiKey){if(!o.apiKey)throw Error(`No Bugsnag API Key set`);/^[0-9a-f]{32}$/i.test(o.apiKey)||(a.apiKey=`should be a string of 32 hexadecimal characters`),e.endpoints===void 0&&o.apiKey.indexOf(Ge)===0&&(o.endpoints={notify:Ke,sessions:qe})}return this._metadata=m({},o.metadata),We(this._features,o.featureFlags,this._featuresIndex),this._user=m({},o.user),this._context=o.context,o.logger&&(this._logger=o.logger),o.onError&&(this._cbs.e=this._cbs.e.concat(o.onError)),o.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(o.onBreadcrumb)),o.onSession&&(this._cbs.s=this._cbs.s.concat(o.onSession)),c(a).length&&this._logger.warn(Xe(a,e)),o},a.getUser=function(){return this._user},a.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},a._loadPlugin=function(e){var t=e.load(this);e.name&&(this._plugins[`~`+e.name+`~`]=t)},a.getPlugin=function(e){return this._plugins[`~`+e+`~`]},a._setDelivery=function(e){this._delivery=e(this)},a.startSession=function(){var e=new Ve;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=m({},this._user),Oe(this._cbs.s,e,`onSession`,this._logger)?(this._logger.debug(`Session not started due to onSession callback`),this):this._sessionDelegate.startSession(this,e)},a.addOnError=function(e,t){t===void 0&&(t=!1),this._cbs.e[t?`unshift`:`push`](e)},a.removeOnError=function(e){this._cbs.e=r(this._cbs.e,function(t){return t!==e})},a._addOnSessionPayload=function(e){this._cbs.sp.push(e)},a.addOnSession=function(e){this._cbs.s.push(e)},a.removeOnSession=function(e){this._cbs.s=r(this._cbs.s,function(t){return t!==e})},a.addOnBreadcrumb=function(e,t){t===void 0&&(t=!1),this._cbs.b[t?`unshift`:`push`](e)},a.removeOnBreadcrumb=function(e){this._cbs.b=r(this._cbs.b,function(t){return t!==e})},a.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},a.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},a.leaveBreadcrumb=function(e,n,r){if(e=typeof e==`string`?e:``,r=typeof r==`string`&&i(t,r)?r:`manual`,n=typeof n==`object`&&n?n:{},e){var a=new b(e,n,r);if(Oe(this._cbs.b,a,`onBreadcrumb`,this._logger)){this._logger.debug(`Breadcrumb not attached due to onBreadcrumb callback`);return}this._breadcrumbs.push(a),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},a._isBreadcrumbTypeEnabled=function(e){var t=this._config.enabledBreadcrumbTypes;return t===null||i(t,e)},a.notify=function(e,t,n){n===void 0&&(n=Je);var r=Te.create(e,!0,void 0,`notify()`,this._depth+1,this._logger);this._notify(r,t,n)},a._notify=function(t,n,r){var a=this;if(r===void 0&&(r=Je),t.app=m({},t.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),t.context=t.context||this._context,t._metadata=m({},t._metadata,this._metadata),t._user=m({},t._user,this._user),t.breadcrumbs=this._breadcrumbs.slice(),t.setGroupingDiscriminator(this._groupingDiscriminator),We(t._features,this._features,t._featuresIndex),this._config.enabledReleaseStages!==null&&!i(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn(`Event not sent due to releaseStage/enabledReleaseStages configuration`),r(null,t);var o=t.severity,s=function(e){a._logger.error(`Error occurred in onError callback, continuing anywayâ¦`),a._logger.error(e)};De([].concat(this._cbs.e,n),t,s,function(n,i){if(n&&s(n),!i)return a._logger.debug(`Event not sent due to onError callback`),r(null,t);a._isBreadcrumbTypeEnabled(`error`)&&e.prototype.leaveBreadcrumb.call(a,t.errors[0].errorClass,{errorClass:t.errors[0].errorClass,errorMessage:t.errors[0].errorMessage,severity:t.severity},`error`),o!==t.severity&&(t._handledState.severityReason={type:`userCallbackSetSeverity`}),t.unhandled!==t._handledState.unhandled&&(t._handledState.severityReason.unhandledOverridden=!0,t._handledState.unhandled=t.unhandled),a._session&&(a._session._track(t),t._session=a._session),a._delivery.sendEvent({apiKey:t.apiKey||a._config.apiKey,notifier:a._notifier,events:[t]},function(e){return r(e,t)})})},e}(),Xe=function(e,t){return Error(`Invalid configuration 13`+h(c(e),function(n){return` - `+n+` `+e[n]+`, got `+Ze(t[n])}).join(` 14 15`))},Ze=function(e){switch(typeof e){case`string`:case`number`:case`object`:return JSON.stringify(e);default:return String(e)}},Qe=Ye,$e={},et=[`events.[].metaData`,`events.[].breadcrumbs.[].metaData`,`events.[].request`,`events.[].response`];$e.event=function(e,t){var n=ee(e,null,null,{redactedPaths:et,redactedKeys:t});return n.length>1e6&&(e.events[0]._metadata={notifier:`WARNING! 16Serialized payload was `+n.length/1e6+`MB (limit = 1MB) 17metadata was removed`},n=ee(e,null,null,{redactedPaths:et,redactedKeys:t})),n},$e.session=function(e,t){return ee(e,null,null)};var tt={};tt=function(e,t){return t===void 0&&(t=window),{sendEvent:function(n,r){if(r===void 0&&(r=function(){}),e._config.endpoints.notify===null)return r(Error(`Event not sent due to incomplete endpoint configuration`));var i=nt(e._config,`notify`,`4`,t),a=$e.event(n,e._config.redactedKeys),o=new t.XDomainRequest;o.onload=function(){r(null)},o.onerror=function(){var t=Error(`Event failed to send`);e._logger.error(`Event failed to sendâ¦`,t),a.length>1e6&&e._logger.warn(`Event oversized (`+(a.length/1e6).toFixed(2)+` MB)`),r(t)},o.open(`POST`,i),setTimeout(function(){try{o.send(a)}catch(t){e._logger.error(t),r(t)}},0)},sendSession:function(n,r){if(r===void 0&&(r=function(){}),e._config.endpoints.sessions===null)return r(Error(`Session not sent due to incomplete endpoint configuration`));var i=nt(e._config,`sessions`,`1`,t),a=new t.XDomainRequest;a.onload=function(){r(null)},a.open(`POST`,i),setTimeout(function(){try{a.send($e.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}},0)}}};var nt=function(e,t,n,r){var i=JSON.parse(JSON.stringify(new Date));return rt(e.endpoints[t],r.location.protocol)+`?apiKey=`+encodeURIComponent(e.apiKey)+`&payloadVersion=`+n+`&sentAt=`+encodeURIComponent(i)},rt=tt._matchPageProtocol=function(e,t){return t===`http:`?e.replace(/^https:/,`http:`):e};function it(e,t){if(e.isSecureContext&&e.crypto&&e.crypto.subtle&&e.crypto.subtle.digest&&typeof TextEncoder==`function`){var n=new TextEncoder().encode(t);return e.crypto.subtle.digest(`SHA-1`,n).then(function(e){return`sha1 `+Array.from(new Uint8Array(e)).map(function(e){return e.toString(16).padStart(2,`0`)}).join(``)})}return Promise.resolve()}var at=function(e,t){return t===void 0&&(t=window),{sendEvent:function(n,r){r===void 0&&(r=function(){});try{var i=e._config.endpoints.notify;if(i===null)return r(Error(`Event not sent due to incomplete endpoint configuration`));var a=new t.XMLHttpRequest,o=$e.event(n,e._config.redactedKeys);a.onreadystatechange=function(){if(a.readyState===t.XMLHttpRequest.DONE){var n=a.status;if(n===0||n>=400){var i=Error(`Request failed with status `+n);e._logger.error(`Event failed to sendâ¦`,i),o.length>1e6&&e._logger.warn(`Event oversized (`+(o.length/1e6).toFixed(2)+` MB)`),r(i)}else r(null)}},a.open(`POST`,i),a.setRequestHeader(`Content-Type`,`application/json`),a.setRequestHeader(`Bugsnag-Api-Key`,n.apiKey||e._config.apiKey),a.setRequestHeader(`Bugsnag-Payload-Version`,`4`),a.setRequestHeader(`Bugsnag-Sent-At`,new Date().toISOString()),e._config.sendPayloadChecksums&&typeof Promise<`u`&&Promise.toString().indexOf(`[native code]`)!==-1?it(t,o).then(function(e){e&&a.setRequestHeader(`Bugsnag-Integrity`,e),a.send(o)}).catch(function(t){e._logger.error(t),a.send(o)}):a.send(o)}catch(t){e._logger.error(t)}},sendSession:function(n,r){r===void 0&&(r=function(){});try{var i=e._config.endpoints.sessions;if(i===null)return r(Error(`Session not sent due to incomplete endpoint configuration`));var a=new t.XMLHttpRequest,o=$e.session(n,e._config.redactedKeys);a.onreadystatechange=function(){if(a.readyState===t.XMLHttpRequest.DONE){var n=a.status;if(n===0||n>=400){var i=Error(`Request failed with status `+n);e._logger.error(`Session failed to sendâ¦`,i),r(i)}else r(null)}},a.open(`POST`,i),a.setRequestHeader(`Content-Type`,`application/json`),a.setRequestHeader(`Bugsnag-Api-Key`,e._config.apiKey),a.setRequestHeader(`Bugsnag-Payload-Version`,`1`),a.setRequestHeader(`Bugsnag-Sent-At`,new Date().toISOString()),e._config.sendPayloadChecksums&&typeof Promise<`u`&&Promise.toString().indexOf(`[native code]`)!==-1?it(t,o).then(function(e){e&&a.setRequestHeader(`Bugsnag-Integrity`,e),a.send(o)}).catch(function(t){e._logger.error(t),a.send(o)}):a.send(o)}catch(t){e._logger.error(t)}}}},ot=new Date,st=function(){ot=new Date},ct={name:`appDuration`,load:function(e){return e.addOnError(function(e){var t=new Date;e.app.duration=t-ot},!0),{reset:st}}},lt=function(e){return e===void 0&&(e=window),{load:function(t){t.addOnError(function(t){t.context===void 0&&(t.context=e.location.pathname)},!0)}}};function ut(e){return typeof e==`string`&&/^c[a-z0-9]{20,32}$/.test(e)}var dt=ut;function ft(e,t){var n=`000000000`+e;return n.substr(n.length-t)}var pt=ft;function mt(e){var t=4,n=36,r=n**+t,i=0;function a(){return pt((Math.random()*r<<0).toString(n),t)}function o(){return i=i<r?i:0,i++,i-1}function s(){var r=`c`,i=new Date().getTime().toString(n),s=pt(o().toString(n),t),c=e(),l=a()+a();return r+i+s+c+l}return s.fingerprint=e,s.isCuid=dt,s}var ht=mt,gt=typeof window==`object`?window:self,_t=0;for(var vt in gt)Object.hasOwnProperty.call(gt,vt)&&_t++;var yt=pt(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+_t.toString(36),4);function bt(){return yt}var xt=ht(bt),St=`bugsnag-anonymous-id`,Ct=function(e){try{var t=e.localStorage,n=t.getItem(St);return n&&xt.isCuid(n)?n:(n=xt(),t.setItem(St,n),n)}catch{}},wt=function(e,t){return e===void 0&&(e=navigator),t===void 0&&(t=window),{load:function(n){var r={locale:e.browserLanguage||e.systemLanguage||e.userLanguage||e.language,userAgent:e.userAgent};t&&t.screen&&t.screen.orientation&&t.screen.orientation.type?r.orientation=t.screen.orientation.type:t&&t.document&&(r.orientation=t.document.documentElement.clientWidth>t.document.documentElement.clientHeight?`landscape`:`portrait`),n._config.generateAnonymousId&&(r.id=Ct(t)),n.addOnSession(function(e){e.device=m({},e.device,r),n._config.collectUserIp||Tt(e)}),n.addOnError(function(e){e.device=m({},e.device,r,{time:new Date}),n._config.collectUserIp||Tt(e)},!0)},configSchema:{generateAnonymousId:{validate:function(e){return e===!0||e===!1},defaultValue:function(){return!0},message:`should be true|false`}}}},Tt=function(e){var t=e.getUser();(!t||!t.id)&&e.setUser(e.device.id)},Et=function(e){return e===void 0&&(e=window),{load:function(t){t.addOnError(function(t){t.request&&t.request.url||(t.request=m({},t.request,{url:e.location.href}))},!0)}}},Dt={load:function(e){e._sessionDelegate=Ot}},Ot={startSession:function(e,t){var n=e;return n._session=t,n._pausedSession=null,n._config.enabledReleaseStages!==null&&!i(n._config.enabledReleaseStages,n._config.releaseStage)?(n._logger.warn(`Session not sent due to releaseStage/enabledReleaseStages configuration`),n):(n._delivery.sendSession({notifier:n._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}),n)},resumeSession:function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},kt={load:function(e){e._config.collectUserIp||e.addOnError(function(e){e._user&&e._user.id===void 0&&delete e._user.id,e._user=m({id:`[REDACTED]`},e._user),e.request=m({clientIp:`[REDACTED]`},e.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:`should be true|false`,validate:function(e){return e===!0||e===!1}}}},At={};
17At.load=function(e){/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)||!e._isBreadcrumbTypeEnabled(`log`)||h(jt,function(t){var r=console[t];console[t]=function(){var i=[...arguments];e.leaveBreadcrumb(`Console output`,n(i,function(e,t,n){var r=`[Unknown value]`;try{r=String(t)}catch{}if(r===`[object Object]`)try{r=JSON.stringify(t)}catch{}return e[`[`+n+`]`]=r,e},{severity:t.indexOf(`group`)===0?`log`:t}),`log`),r.apply(console,i)},console[t]._restore=function(){console[t]=r}})};var jt=r([`log`,`debug`,`info`,`warn`,`error`],function(e){return typeof console<`u`&&typeof console[e]==`function`}),Mt=200,Nt=5e5,Pt=function(e,t){return e===void 0&&(e=document),t===void 0&&(t=window),{load:function(i){if(!i._config.trackInlineScripts)return;var a=t.location.href,o=``,s=e.attachEvent?e.readyState===`complete`:e.readyState!==`loading`,c=function(){return e.documentElement.outerHTML};o=c();var l=e.onreadystatechange;e.onreadystatechange=function(){e.readyState===`interactive`&&(o=c(),s=!0);try{l.apply(this,arguments)}catch{}};var u=null,d=function(e){u=e},f=function(){var t=e.currentScript||u;if(!t&&!s){var n=e.scripts||e.getElementsByTagName(`script`);t=n[n.length-1]}return t},p=function(e){(!s||!o)&&(o=c());var t=[`<!-- DOC START -->`].concat(o.split(` 18`)),r=e-1,i=Math.max(r-3,0),a=Math.min(r+3,t.length);return n(t.slice(i,a),function(e,t,n){return e[i+1+n]=t.length<=Mt?t:t.substr(0,Mt),e},{})};i.addOnError(function(e){e.errors[0].stacktrace=r(e.errors[0].stacktrace,function(e){return!/__trace__$/.test(e.method)});var t=e.errors[0].stacktrace[0],n=function(e){return e.replace(/#.*$/,``).replace(/\?.*$/,``)};if(!(t&&t.file&&n(t.file)!==n(a))){var i=f();if(i){var o=i.innerHTML;e.addMetadata(`script`,`content`,o.length<=Nt?o:o.substr(0,Nt)),t&&t.lineNumber&&(t.code=p(t.lineNumber))}}},!0);var m=h([`setTimeout`,`setInterval`,`setImmediate`,`requestAnimationFrame`],function(e){return Ft(t,e,function(e){return g(e,function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}})})})[0];h(`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.MediaSource.MediaRecorder.MediaStream.ServiceWorker.ServiceWorkerContainer.ServiceWorkerRegistration.BroadcastChannel.RTCPeerConnection.RTCDataChannel.AbortSignal.MediaQueryList.ShadowRoot.FontFaceSet.Animation.PermissionStatus.PaymentRequest.VideoTrackList`.split(`.`),function(e){!t[e]||!t[e].prototype||!Object.prototype.hasOwnProperty.call(t[e].prototype,`addEventListener`)||(Ft(t[e].prototype,`addEventListener`,function(e){return g(e,It)}),Ft(t[e].prototype,`removeEventListener`,function(e){return g(e,It,!0)}))});function g(e,t,n){return n===void 0&&(n=!1),function(){var r=[].slice.call(arguments);try{var i=t(r),a=i.get();if(n&&e.apply(this,r),typeof a!=`function`)return e.apply(this,r);if(a.__trace__)i.replace(a.__trace__);else{var o=f();a.__trace__=function(){d(o),m(function(){d(null)},0);var e=a.apply(this,arguments);return d(null),e},a.__trace__.__trace__=a.__trace__,i.replace(a.__trace__)}}catch{}if(e.apply)return e.apply(this,r);switch(r.length){case 1:return e(r[0]);case 2:return e(r[0],r[1]);default:return e()}}}},configSchema:{trackInlineScripts:{validate:function(e){return e===!0||e===!1},defaultValue:function(){return!0},message:`should be true|false`}}}};function Ft(e,t,n){var r=e[t];return r&&(e[t]=n(r),r)}function It(e){var t=!!e[1]&&typeof e[1].handleEvent==`function`;return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(n){t?e[1].handleEvent=n:e[1]=n}}}var Lt=function(e){return e===void 0&&(e=window),{load:function(t){`addEventListener`in e&&t._isBreadcrumbTypeEnabled(`user`)&&e.addEventListener(`click`,function(n){var r,i;try{r=zt(n.target),i=Bt(n.target,e)}catch{r=`[hidden]`,i=`[hidden]`,t._logger.error(`Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z`)}t.leaveBreadcrumb(`UI click`,{targetText:r,targetSelector:i},`user`)},!0)}}},Rt=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/;function zt(e){var t=e.textContent||e.innerText||``;return!t&&(e.type===`submit`||e.type===`button`)&&(t=e.value),t=t.replace(Rt,`$1`),t.length>140?t.slice(0,135)+`(...)`:t}function Bt(e,t){var n=[e.tagName];if(e.id&&n.push(`#`+e.id),e.className&&e.className.length&&n.push(`.`+e.className.split(` `).join(`.`)),!t.document.querySelectorAll||!Array.prototype.indexOf)return n.join(``);try{if(t.document.querySelectorAll(n.join(``)).length===1)return n.join(``)}catch{return n.join(``)}if(e.parentNode.childNodes.length>1){var r=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;
18n.push(`:nth-child(`+r+`)`)}return t.document.querySelectorAll(n.join(``)).length===1?n.join(``):e.parentNode?Bt(e.parentNode,t)+` > `+n.join(``):n.join(``)}var Vt={};Vt=function(e){return e===void 0&&(e=window),{load:function(t){if(`addEventListener`in e&&t._isBreadcrumbTypeEnabled(`navigation`)){var n=function(e){return function(){return t.leaveBreadcrumb(e,{},`navigation`)}};e.addEventListener(`pagehide`,n(`Page hidden`),!0),e.addEventListener(`pageshow`,n(`Page shown`),!0),e.addEventListener(`load`,n(`Page loaded`),!0),e.document.addEventListener(`DOMContentLoaded`,n(`DOMContentLoaded`),!0),e.addEventListener(`load`,function(){return e.addEventListener(`popstate`,n(`Navigated back`),!0)}),e.addEventListener(`hashchange`,function(n){var r=n.oldURL?{from:Ht(n.oldURL,e),to:Ht(n.newURL,e),state:Gt(e)}:{to:Ht(e.location.href,e)};t.leaveBreadcrumb(`Hash changed`,r,`navigation`)},!0),e.history.pushState&&Wt(t,e.history,`pushState`,e,!0),e.history.replaceState&&Wt(t,e.history,`replaceState`,e)}}}};var Ht=function(e,t){var n=t.document.createElement(`A`);return n.href=e,``+n.pathname+n.search+n.hash},Ut=function(e,t,n,r){var i=Ht(e.location.href,e);return{title:n,state:t,prevState:Gt(e),to:r||i,from:i}},Wt=function(e,t,n,r,i){i===void 0&&(i=!1);var a=t[n];t[n]=function(o,s,c){e.leaveBreadcrumb(`History `+n,Ut(r,o,s,c),`navigation`),i&&typeof e.resetEventCount==`function`&&e.resetEventCount(),a.apply(t,[o,s].concat(c===void 0?[]:c))}},Gt=function(e){try{return e.history.state}catch{}},Kt=function(e){if(!e)return{};var t={};if(typeof e.entries==`function`)for(var n=e.entries(),r=n.next();!r.done;){var i=r.value,a=i[0];t[a]=i[1],r=n.next()}else e.forEach&&e.forEach(function(e,n){t[n]=e});return t},qt=function(){function e(){this.callbacks=[]}var t=e.prototype;return t.onStart=function(e){if(typeof e!=`function`)throw Error(`RequestTracker onStart callback must be a function`);this.callbacks.push(e)},t.start=function(e){var t=this.callbacks.map(function(t){try{return t(e)}catch(e){return console.error(`RequestTracker callback error:`,e),null}}).filter(function(e){return e&&typeof e==`object`});return{onRequestEnd:function(e){t.forEach(function(t){if(typeof t.onRequestEnd==`function`)try{t.onRequestEnd(e)}catch(e){console.error(`RequestTracker onRequestEnd callback error:`,e)}})},extraRequestHeaders:t.map(function(e){return e.extraRequestHeaders}).filter(function(e){return e&&typeof e==`object`}).reduce(function(e,t){return Object.assign(e,t)},{})}},t._reset=function(){this.callbacks=[]},e}();function Jt(e,t){if(t===void 0&&(t={}),!(!(`fetch`in e)||e.fetch.polyfill)){if(!e.__bugsnag_fetch_tracker__){var n=new qt,r=e.fetch;e.fetch=function(e,t){t===void 0&&(t={});var i=null,a=`GET`;e&&typeof e==`object`?(i=e.url,t&&`method`in t?a=t.method:e&&`method`in e&&(a=e.method)):(i=e,t&&`method`in t&&(a=t.method)),a===void 0&&(a=`GET`);var o={};t&&t.headers&&(t.headers instanceof Headers?o=Kt(t.headers):typeof t.headers==`object`&&(o=t.headers));var s={url:String(i),method:String(a),startTime:Date.now(),type:`fetch`,input:e,headers:o,body:t?t.body:void 0},c=n.start(s).onRequestEnd;return r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments))).then(function(e){return c({endTime:Date.now(),status:e.status,state:`success`,headers:Kt(e.headers)}),e},function(e){throw c({endTime:Date.now(),state:`error`,error:e}),e})},e.__bugsnag_fetch_tracker__=n}return e.__bugsnag_fetch_tracker__}}var Yt=Jt;function Xt(e,t){if(t===void 0&&(t=[]),!e||typeof e!=`string`)return!0;var n=e.replace(/\?.*$/,``);return i(t,n)}function Zt(e,t){t===void 0&&(t=[]);var n=[e._config.endpoints.notify,e._config.endpoints.sessions].concat(t).filter(Boolean);return function(e){return Xt(e,n)}}function Qt(e){return e&&Date.now()-e}var $t={shouldIgnoreUrl:Xt,createUrlFilter:Zt,getDuration:Qt},en=function(e){if(!e)return{};var t=e.trim().split(/[\r\n]+/),n={};return t.forEach(function(e){var t=e.split(`: `),r=t.shift();n[r]=t.join(`: `)}),n},tn=function(e){var t=e.response,n=e.responseType;if(t!=null)switch(n){case`arraybuffer`:case`blob`:return`[Binary Data]`;case`document`:return`[Document]`;case`json`:try{return JSON.stringify(t)}catch{return`[Unserializable JSON]`}default:return String(t)}};function nn(e,t){if(t===void 0&&(t={}),!(!(`addEventListener`in e.XMLHttpRequest.prototype)||!(`WeakMap`in e))){if
18(!e.__bugsnag_xhr_tracker__){var n=new qt,r=new WeakMap,i=new WeakMap,a=e.XMLHttpRequest.prototype.open,o=e.XMLHttpRequest.prototype.send,s=e.XMLHttpRequest.prototype.setRequestHeader;e.XMLHttpRequest.prototype.open=function(e,t){this&&r.set(this,{method:String(e),url:String(t)}),a.apply(this,arguments)},e.XMLHttpRequest.prototype.setRequestHeader=function(e,t){if(this){var n=r.get(this);n&&(n.headers=n.headers||{},n.headers[String(e)]=(n.headers[String(e)]||``)+String(t))}s.apply(this,arguments)},e.XMLHttpRequest.prototype.send=function(e){var t=this,a=r.get(this);if(a){var s=i.get(this);s&&(this.removeEventListener(`load`,s.load),this.removeEventListener(`error`,s.error));var c=Date.now(),l={url:a.url,method:a.method,startTime:c,type:`xmlhttprequest`,body:e,headers:a.headers},u=n.start(l).onRequestEnd,d=function(){return en(t.getAllResponseHeaders())},f=function(){u({endTime:Date.now(),status:t.status,state:`success`,headers:d(),body:tn(t)})},p=function(){u({endTime:Date.now(),state:`error`,headers:d(),body:tn(t)})};this.addEventListener(`load`,f),this.addEventListener(`error`,p),this&&i.set(this,{load:f,error:p})}o.apply(this,arguments)},e.__bugsnag_xhr_tracker__=n}return e.__bugsnag_xhr_tracker__}}var rn=nn,an=$t.createUrlFilter,on=$t.getDuration;function sn(e,t){return e===void 0&&(e=[]),t===void 0&&(t=window),{name:`requestTracker`,load:function(n){try{return{fetchTracker:Yt(t),xhrTracker:rn(t),urlFilter:an(n,e),getDuration:on}}catch(e){throw n._logger.error(`Failed to load request tracker:`,e),Error(`Request tracking is not available: `+e.message)}}}}var cn={RequestTracker:qt,createFetchTracker:Yt,createXhrTracker:rn,createUrlFilter:an,getDuration:on,createRequestTrackerPlugin:sn},ln=`request`,un=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=window);var n=[];return{load:function(r){if(!r._isBreadcrumbTypeEnabled(`request`))return;var i=r.getPlugin(`requestTracker`);if(!i)try{var a=cn.createRequestTrackerPlugin,o=a(e,t);r._loadPlugin(o),i=r.getPlugin(`requestTracker`)}catch(e){r._logger.warn(`Failed to auto-load request tracker, falling back to direct monkey-patching:`,e.message)}if(i)return s(i);function s(e){var t=e.fetchTracker,i=e.xhrTracker,a=e.urlFilter,o=e.getDuration,s=function(e){if(!a(e.url))return{onRequestEnd:function(t){var n=o(e.startTime),i={method:e.method,status:t.status,url:e.url,duration:n},a=e.type===`fetch`?`fetch()`:`XMLHttpRequest`;t.state===`error`?r.leaveBreadcrumb(a+` error`,{method:e.method,url:e.url,duration:n},ln):t.status>=400?r.leaveBreadcrumb(a+` failed`,i,ln):r.leaveBreadcrumb(a+` succeeded`,i,ln)}}};t&&(t.onStart(s),n.push(t._restore)),i&&(i.onStart(s),n.push(i._restore))}}}},dn={load:function(e){var t=0;e.addOnError(function(n){if(t>=e._config.maxEvents)return e._logger.warn(`Cancelling event send due to maxEvents per session limit of `+e._config.maxEvents+` being reached`),!1;t++}),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:`should be a positive integer â¤100`,validate:function(e){return l(1,100)(e)}}}},fn={};fn={load:function(e){e.addOnError(function(e){h(n(e.errors,function(e,t){return e.concat(t.stacktrace)},[]),function(e){e.file=pn(e.file)})})}};var pn=fn._strip=function(e){return typeof e==`string`?e.replace(/\?.*$/,``).replace(/#.*$/,``):e},mn=function(e,t){return e===void 0&&(e=window),t===void 0&&(t=`window onerror`),{load:function(n){if(!n._config.autoDetectErrors||!n._config.enabledErrorTypes.unhandledExceptions)return;function r(e,r,a,o,s){if(a===0&&/Script error\.?/.test(e))n._logger.warn(`Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z`);else{var c={severity:`error`,unhandled:!0,severityReason:{type:`unhandledException`}},l;if(s)l=n.Event.create(s,!0,c,t,1),hn(l.errors[0].stacktrace,r,a,o);else if(typeof e==`object`&&e&&(!r||typeof r!=`string`)&&!a&&!o&&!s){var u=e.type?`Event: `+e.type:`Error`,d=e.message||e.detail||``;l=n.Event.create({name:u,message:d},!0,c,t,1),l.originalError=e,l.addMetadata(t,{event:e,extraParameters:r})}else l=n.Event.create(e,!0,c,t,1),hn(l.errors[0].stacktrace,r,a,o);n._notify(l)}try{i.apply(this,arguments)}catch{}}var i=e.onerror;e.onerror=r}}},hn=function(e,t,n,r){e[0]||e.push({});var i=e[0];!i.file&&typeof t==`string`&&(i.file=t),!i.lineNumber&&gn(n)&&(i.lineNumber=n),i.columnNumber||(gn(r)?i.columnNumber=r:window.event&&gn(window.event.errorCharacter)&&(i.columnNumber=window.event.errorCharacter))},gn=function(e){return typeof e==`number`&&String.call(e)!==`NaN`},_n=function(e){return e===void 0&&(e=window),{load:function(t){if(!(!t._config.autoDetectErrors||!t._config.enabledErrorTypes.unhandledRejections)){var n=function(e){var n=e.reason,r=!1;try{e.detail&&e.detail.reason&&(n=e.detail.reason,r=!0)}catch{}
18var i=!t._config.reportUnhandledPromiseRejectionsAsHandled,a=t.Event.create(n,!1,{severity:`error`,unhandled:i,severityReason:{type:`unhandledPromiseRejection`}},`unhandledrejection handler`,1,t._logger);r&&h(a.errors[0].stacktrace,vn(n)),t._notify(a,function(e){if(de(e.originalError)&&!e.originalError.stack){var t;e.addMetadata(`unhandledRejection handler`,(t={},t[Object.prototype.toString.call(e.originalError)]={name:e.originalError.name,message:e.originalError.message,code:e.originalError.code},t))}})};`addEventListener`in e?e.addEventListener(`unhandledrejection`,n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})}}}}},vn=function(e){return function(t){t.file!==e.toString()&&(t.method&&=t.method.replace(/^\s+/,``))}},yn={},bn=`Bugsnag JavaScript`,xn=`8.9.0`,Sn=`https://github.com/bugsnag/bugsnag-js`,Cn=m({},f.schema,v),L={_client:null,createClient:function(e){typeof e==`string`&&(e={apiKey:e}),e||={};var t=[ct,wt(),lt(),Et(),dn,Dt,kt,fn,mn(),_n(),Vt(),Lt(),un(),At,Pt()],n=new Qe(e,Cn,t,{name:bn,version:xn,url:Sn});return n._setDelivery(window.XDomainRequest?tt:at),n._logger.debug(`Loaded!`),n.leaveBreadcrumb(`Bugsnag loaded`,{},`state`),n._config.autoTrackSessions?n.startSession():n},start:function(e){return L._client?(L._client._logger.warn(`Bugsnag.start() was called more than once. Ignoring.`),L._client):(L._client=L.createClient(e),L._client)},isStarted:function(){return L._client!=null}};return h([`resetEventCount`].concat(c(Qe.prototype)),function(e){/^_/.test(e)||(L[e]=function(){if(!L._client)return console.log(`Bugsnag.`+e+`() was called before Bugsnag.start()`);L._client._depth+=1;var t=L._client[e].apply(L._client,arguments);return--L._client._depth,t})}),yn=L,yn.Client=Qe,yn.Event=Te,yn.Session=Ve,yn.Breadcrumb=b,yn.default=L,yn})})),Gl=t(((e,t)=>{t.exports=Wl()})),Kl=t(((e,t)=>{(function(n){if(typeof e==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.BugsnagPluginVue=n()}})(function(){var e=this,t,n=function(t,n){var i=t.config.errorHandler,a=function(t,a,s){var c=n.Event.create(t,!0,{severity:`error`,unhandled:!0,severityReason:{type:`unhandledException`}},`vue error handler`,1),l=o[typeof s==`string`&&s.indexOf(`runtime-`)>0?s.split(`runtime-`)[1]:s]||s;c.addMetadata(`vue`,{errorInfo:l,component:a?r(a,!0):void 0,props:a&&a.$options?a.$options.propsData:void 0}),n._notify(c),typeof console<`u`&&typeof console.error==`function`&&console.error(t),typeof i==`function`&&i.call(e,t,a,s)};t.config.errorHandler=a};function r(e){return e.$parent===null?`App`:e.$options&&e.$options.name?e.$options.name:`Anonymous`}var i={BEFORE_CREATE:`bc`,CREATED:`c`,BEFORE_MOUNT:`bm`,MOUNTED:`m`,BEFORE_UPDATE:`bu`,UPDATED:`u`,BEFORE_UNMOUNT:`bum`,UNMOUNTED:`um`,DEACTIVATED:`da`,ACTIVATED:`a`,RENDER_TRIGGERED:`rtg`,RENDER_TRACKED:`rtc`,ERROR_CAPTURED:`ec`,SERVER_PREFETCH:`sp`},a={SETUP_FUNCTION:0,RENDER_FUNCTION:1,WATCH_GETTER:2,WATCH_CALLBACK:3,WATCH_CLEANUP:4,NATIVE_EVENT_HANDLER:5,COMPONENT_EVENT_HANDLER:6,VNODE_HOOK:7,DIRECTIVE_HOOK:8,TRANSITION_HOOK:9,APP_ERROR_HANDLER:10,APP_WARN_HANDLER:11,FUNCTION_REF:12,ASYNC_COMPONENT_LOADER:13,SCHEDULER:14},o=(t={},t[i.SERVER_PREFETCH]=`serverPrefetch hook`,t[i.BEFORE_CREATE]=`beforeCreate hook`,t[i.CREATED]=`created hook`,t[i.BEFORE_MOUNT]=`beforeMount hook`,t[i.MOUNTED]=`mounted hook`,t[i.BEFORE_UPDATE]=`beforeUpdate hook`,t[i.UPDATED]=`updated`,t[i.BEFORE_UNMOUNT]=`beforeUnmount hook`,t[i.UNMOUNTED]=`unmounted hook`,t[i.ACTIVATED]=`activated hook`,t[i.DEACTIVATED]=`deactivated hook`,t[i.ERROR_CAPTURED]=`errorCaptured hook`,t[i.RENDER_TRACKED]=`renderTracked hook`,t[i.RENDER_TRIGGERED]=`renderTriggered hook`,t[a.SETUP_FUNCTION]=`setup function`,t[a.RENDER_FUNCTION]=`render function`,t[a.WATCH_GETTER]=`watcher getter`,t[a.WATCH_CALLBACK]=`watcher callback`,t[a.WATCH_CLEANUP]=`watcher cleanup function`,t[a.NATIVE_EVENT_HANDLER]=`native event handler`,t[a.COMPONENT_EVENT_HANDLER]=`component event handler`,t[a.VNODE_HOOK]=`vnode hook`,t[a.DIRECTIVE_HOOK]=`directive hook`,t[a.TRANSITION_HOOK]=`transition hook`,t[a.APP_ERROR_HANDLER]=`app errorHandler`,t[a.APP_WARN_HANDLER]=`app warnHandler`,t[a.FUNCTION_REF]=`ref function`,t[a.ASYNC_COMPONENT_LOADER]=`async component loader`,t[a.SCHEDULER]=`scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core .`,t),s={},c=this;s=function(e,t){var n=e.config.errorHandler,r=function(e,r,i){var a=t.Event.create(e,!0,{severity:`error`,unhandled:!0,severityReason:{type:`unhandledException`}},`vue error handler`,1);a.addMetadata(`vue`,{errorInfo:i,component:r?l(r,!0):void 0,props:r?r.$options.propsData:void 0}),t._notify(a),typeof console<`u`&&typeof console.error==`function`&&console.error(e),typeof n==`function`&&n.call(c,e,r,i)};e.config.errorHandler=r};var l=function(e,t){if(e.$root===e)return`<Root>`;var n=typeof e==`function`&&e.cid!=null?e.options:e._isVue?e.$options||e.constructor.options:e||{},r=n.name||n._componentTag,i=n.__file;if(!r&&i){var a=i.match(/([^/\\]+)\.vue$/);r=a&&a[1]}return(r?`<`+u(r)+`>`:`<Anonymous>`)+(i&&t!==!1?` at `+i:``)},u=s.classify=function(e){return e.replace(/(?:^|[-_])(\w)/g,function(e){return e.toUpperCase()}).replace(/[-_]/g,``)},d={};return d=function(){function e(){var e=typeof window<`u`&&window.Vue;if(this.name=`vue`,this.lazy=arguments.length===0&&!e,!this.lazy&&(this.Vue=(arguments.length<=0?void 0:arguments[0])||e,!this.Vue))throw Error("@bugsnag/plugin-vue reference to `Vue` was undefined")}var t=e.prototype;return t.load=function(e){return this.Vue&&this.Vue.config?(s(this.Vue,e),{installVueErrorHandler:function(){return e._logger.warn(`installVueErrorHandler() was called unnecessarily`)}}):{install:function(t){t||e._logger.error(Error("@bugsnag/plugin-vue reference to Vue `app` was undefined")),n(t,e)},installVueErrorHandler:function(t){t||e._logger.error(Error("@bugsnag/plugin-vue reference to `Vue` was undefined")),s(t,e)}}},e}(),d.default=d,d})})),ql=e(Gl(),1),Jl=e(Kl(),1);function Yl(e){let t={...e};return t.plugins=[...t.plugins||[],new Jl.default],t.onError=e=>{e.errors[0].stacktrace=e.errors[0].stacktrace.map(e=>(e.file=e.file.replace(`file://`,``),e))},t}function Xl(...e){throw Error(e)}var Zl={notify:Xl}
18,Ql=s(e=>{let t=Yl(a().public.bugsnag),n=ql.default._client;if(n===null)try{n=ql.default.start(t)}catch{return console.log(`[Bugsnag] started in mock mode`),{provide:{bugsnag:Zl}}}e.vueApp.provide(`bugsnag-client`,n);let r=ql.default.getPlugin(`vue`);return r!==void 0&&e.vueApp.use(r),{provide:{bugsnag:n}}}),$l=new RegExp(/Googlebot\/|Googlebot-Mobile|Googlebot-Image|Googlebot-News|Googlebot-Video|AdsBot-Google([^-]|$)|AdsBot-Google-Mobile|Feedfetcher-Google|Mediapartners-Google|Mediapartners \(Googlebot\)|APIs-Google|Google-InspectionTool|Storebot-Google|GoogleOther|bingbot|Slurp|[wW]get|LinkedInBot|Python-urllib|python-requests|aiohttp|httpx|libwww-perl|httpunit|Nutch|Go-http-client|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|BIGLOTRON|Teoma|convera|seekbot|Gigabot|Gigablast|exabot|ia_archiver|GingerCrawler|webmon |HTTrack|grub\.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|findlink|msrbot|panscient|yacybot|AISearchBot|ips-agent|tagoobot|MJ12bot|woriobot|yanga|buzzbot|mlbot|yandex\.com\/bots|purebot|Linguee Bot|CyberPatrol|voilabot|Baiduspider|citeseerxbot|spbot|twengabot|postrank|Turnitin|scribdbot|page2rss|sitebot|linkdex|Adidxbot|ezooms|dotbot|Mail\.RU_Bot|discobot|heritrix|findthatfile|europarchive\.org|NerdByNature\.Bot|(sistrix|SISTRIX) [cC]rawler|Ahrefs(Bot|SiteAudit)|fuelbot|CrunchBot|IndeedBot|mappydata|woobot|ZoominfoBot|PrivacyAwareBot|Multiviewbot|SWIMGBot|Grobbot|eright|Apercite|semanticbot|Aboundex|domaincrawler|wbsearchbot|summify|CCBot|edisterbot|SeznamBot|ec2linkfinder|gslfbot|aiHitBot|intelium_bot|facebookexternalhit|Yeti|RetrevoPageAnalyzer|lb-spider|Sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net\.com\.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|it2media-domain-crawler|ip-web-crawler\.com|siteexplorer\.info|elisabot|proximic|changedetection|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|CC Metadata Scaper|g00g1e\.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Twitterbot|cXensebot|smtbot|bnf\.fr_bot|A6-Indexer|ADmantX|Facebot|OrangeBot\/|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive\.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|S[eE][mM]rushBot|yoozBot|lipperhey|Y!J|Domain Re-Animator Bot|AddThis|Screaming Frog SEO Spider|MetaURI|Scrapy|Livelap[bB]ot|OpenHoseBot|CapsuleChecker|collection@infegy\.com|IstellaBot|DeuSu\/|betaBot|Cliqzbot\/|MojeekBot\/|netEstate NE Crawler|SafeSearch microdata crawler|Gluten Free Crawler\/|Sonic|Sysomos|Trove|deadlinkchecker|Slack-ImgProxy|Embedly|RankActiveLinkBot|iskanie|SafeDNSBot|SkypeUriPreview|Veoozbot|Slackbot|redditbot|datagnionbot|Google-Adwords-Instant|adbeat_bot|WhatsApp|contxbot|pinterest\.com\/bot|electricmonk|GarlikCrawler|BingPreview\/|vebidoobot|FemtosearchBot|Yahoo Link Preview|MetaJobBot|DomainStatsBot|mindUpBot|Daum\/|Jugendschutzprogramm-Crawler|Xenu Link Sleuth|Pcore-HTTP|moatbot|KosmioBot|[pP]ingdom|AppInsights|PhantomJS|Gowikibot|PiplBot|Discordbot|TelegramBot|Jetslide|newsharecounts|James BOT|Bark[rR]owler|TinEye|SocialRankIOBot|trendictionbot|Ocarinabot|epicbot|Primalbot|DuckDuckGo-Favicons-Bot|GnowitNewsbot|Leikibot|LinkArchiver|YaK\/|PaperLiBot|Digg Deeper|dcrawl|Snacktory|AndersPinkBot|Fyrebot|EveryoneSocialBot|Mediatoolkitbot|Luminator-robots|ExtLinksBot|SurveyBot|NING\/|okhttp|Nuzzel|omgili|PocketParser|YisouSpider|um-LN|ToutiaoSpider|MuckRack|Jamie's Spider|AHC\/|NetcraftSurveyAgent|Laserlikebot|^Apache-HttpClient|AppEngine-Google|Jetty|Upflow|Thinklab|Traackr\.com|Twurly|Mastodon|http_get|DnyzBot|botify|007ac9 Crawler|BehloolBot|BrandVerity|check_http|BDCbot|ZumBot|EZID|ICC-Crawler|ArchiveBot|^LCC |filterdb\.iss\.net\/crawler|BLP_bbot|BomboraBot|Buck\/|Companybook-Crawler|Genieo|magpie-crawler|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
18storebot|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/),eu=/(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,tu=/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,nu=/(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,ru=/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 )|
18sy(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 iu(e){return eu.test(e)||tu.test(e.slice(0,4))}function au(e){return nu.test(e)||ru.test(e.slice(0,4))}function ou(e){return/iPad|iPhone|iPod/.test(e)}function su(e){return/android/i.test(e)}function cu(e){return/Windows/.test(e)}function lu(e){return/Mac OS X/.test(e)}var uu=[{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 du(e){for(let t of uu)if(t.regex.test(e))return t.name;return``}function fu(e,t={}){let n=!1,r=!1,i=!1,a=!1;if(e===`Amazon CloudFront`)t[`cloudfront-is-mobile-viewer`]===`true`&&(n=!0,r=!0),t[`cloudfront-is-tablet-viewer`]===`true`&&(n=!1,r=!0),t[`cloudfront-is-desktop-viewer`]===`true`&&(n=!1,r=!1),t[`cloudfront-is-ios-viewer`]===`true`&&(i=!0),t[`cloudfront-is-android-viewer`]===`true`&&(a=!0);else if(t&&t[`cf-device-type`])switch(t[`cf-device-type`]){case`mobile`:n=!0,r=!0;break;case`tablet`:n=!1,r=!0;break;case`desktop`:n=!1,r=!1}else n=iu(e),r=au(e),i=ou(e),a=su(e);let o=cu(e),s=lu(e),c=du(e),l=c===`Safari`,u=c===`Firefox`,d=c===`Edge`,f=c===`Chrome`,p=c===`Samsung`,m=$l.test(e);return{userAgent:e,isMobile:n,isMobileOrTablet:r,isTablet:!n&&r,isDesktop:!r,isIos:i,isAndroid:a,isWindows:o,isMacOS:s,isApple:s||i,isDesktopOrTablet:!n,isSafari:l,isFirefox:u,isEdge:d,isChrome:f,isSamsung:p,isCrawler:m}}var pu=s(()=>{let e=a(),t=e.public.device.defaultUserAgent,n;{let r=navigator.userAgent||t;n=ae(fu(r)),e.public.device.refreshOnResize&&window.addEventListener(`resize`,()=>{setTimeout(()=>{let e=fu(navigator.userAgent||r);Object.entries(e).forEach(([e,t])=>{n[e]=t})},50)})}return{provide:{device:n}}}),mu=s(({vueApp:e})=>{let{storyblok:t}=a().public;t=JSON.parse(JSON.stringify(t)),t.enableServerClient?e.use($n,{...t}):e.use($n,{...t,use:[er]})}),hu=[`nl`,`be`,`nl-formal`,`be-formal`],gu={nl:[],be:[],"nl-formal":[],"be-formal":[]},_u=[()=>z(()=>import(`./DbwPdPEd.js`),__vite__mapDeps([281,2,3,4,68,45,27,18,9,5,10,8,1,6,11,12,13,14,15,28]),import.meta.url),()=>z(()=>import(`./BPAndgMZ.js`),[],import.meta.url)],vu=[{code:`nl`,language:`nl`},{code:`be`,language:`be`},{code:`nl-formal`,language:`nl-formal`},{code:`be-formal`,language:`be-formal`}],yu=new Map,bu=ct((e,t,n)=>{if(t===`messages`||t===`datetimeFormats`||t===`numberFormats`)return e[t]??=tr(null),rr(n,e[t]),!0});async function xu(e){let t=n(),r={messages:tr(null)};for(let n of e){let e=await n().then(e=>e.default),i=ir(e)?await t.runWithContext(()=>e()):e;r=bu(tr(null),i,r)}return r.fallbackLocale??=!1,r}var Su=e=>ar(e)===`[object Module]`,Cu=e=>Su(e)||!1;async function wu(e,t){let r=n();try{let n=await r.runWithContext(t.load).then(e=>Cu(e)?e.default:e);return ir(n)?await r.runWithContext(()=>n(e)):n}catch(t){throw Error(`Failed loading locale (${e}): `+t.message)}}async function Tu(e,t=[]){let r=n(),i=await Promise.all(t.map(async t=>{let n=Eu(t),i=n||await r.runWithContext(()=>wu(e,t));return!n&&t.cache!==!1&&yu.set(t.key,{ttl:Date.now()+864e5,value:i}),i})),a={};for(let e of i)rr(e,a);return a}function Eu(e){if(e.cache===!1)return;let t=yu.get(e.key);if(t!=null)return t.ttl>Date.now()?t.value:void 0}function Du(e=0){return t=>{let n=(typeof t==`string`?t:t.pathname).split(`?`)[0].split(`/`);return n[0]===``&&n.shift(),n.length>e&&n[e]||``}}var Ou=`___`;function ku(e){return typeof e==`string`?e:e==null?``:e.toString()}function Au(e){return ku(typeof e==`object`?e?.name:e).split(Ou)[0]}var ju=Du(0),Mu=e=>ju(e),Nu=e=>e.split(Ou).at(1)??``;function Pu(e){return String(typeof e==`object`?e?.name||e?.path||``:e)}function Fu(e){let t=Pu(e);return t[0]===`/`?Mu(t):Nu(t)}function Iu(e){return e=>ku(e)}function Lu(e){return e=>e}function Ru(e,t,n=e.getLocale()){if(sr(t)&&ot(t,{acceptRelative:!0}))return t;try{return Vu(e,t,n).fullPath}catch{return``}}function zu(e,t,n=e.getLocale()){try{return Vu(e,t,n)}catch{return}}function Bu(e){if(!sr(e))return nr({},e);if(e[0]===`/`){let{pathname:t,search:n,hash:r}=et(e);return{path:t,query:it(n),hash:r}}return{name:e}}function Vu(e,t,n){let r=Bu(t),i=e.router.resolve(e.resolveLocalizedRouteObject(r,n));return i.name?i:e.router.resolve(t)}function Hu(e,t,n=e.router.currentRoute.value){let r=e.getRouteBaseName(n);if(!r)return``;let i=Ru(e,{name:r,params:nr({},n.params,e.getLocalizedDynamicParams(t)),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},t);return e.afterSwitchLocalePath(i,t)}function Uu(e){let t={};for(let n of hu){let r=Wu(e,[n]);t[n]={fallbacks:r,cacheable:Ku(n,r)}}return t}function Wu(e,t){if(e===!1)return[];if(or(e))return e;let n=[];if(sr(e))return t.every(t=>t!==e)&&n.push(e),n;let r=[...t,`default`];
18for(let t of r)t in e!=0&&(n=[...n,...e[t].filter(Boolean)]);return n}function Gu(e){return gu[e]!=null&&gu[e].every(e=>e.cache!==!1)}function Ku(e,t){return Gu(e)&&t.every(e=>Gu(e))}function qu(e){return vu.find(t=>!!t.defaultForDomains?.includes(e))?.code}var Ju=e=>hu.includes(e||``),Yu=e=>Ju(e)?e:void 0;function Xu(e,t){let n=[];for(let[r,i]of t.entries()){let a=e.find(e=>e.language?.toLowerCase()===i.toLowerCase());if(a){n.push({code:a.code,score:1-r/t.length});break}}for(let[r,i]of t.entries()){let a=i.split(`-`)[0].toLowerCase(),o=e.find(e=>e.language?.split(`-`)[0].toLowerCase()===a);if(o){n.push({code:o.code,score:.999-r/t.length});break}}return n}function Zu(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function Qu(e,t){return Xu(e.map(e=>({code:e.code,language:e.language||e.code})),t).sort(Zu).at(0)?.code??``}function $u(e,t){return e?e.$config.public.i18n:a(t).public.i18n}function ed(e){let t=$u(e).detectBrowserLanguage,n=t||{};return{...n,enabled:!!t,cookieKey:n.cookieKey||`i18n_redirected`}}function td(e){if(e)return{path:`/`+(sr(e)?e:e.path).replace(/^\//,``),code:!sr(e)&&e.statusCode||302}}function nd(e){return Array.isArray(e)?e:[e]}function rd(e,t,n){let r=(e=``)=>e.replace(/https?:\/\//,``),i=e.filter(e=>r(e.domain)===t||nd(e.domains).includes(t));return i.length<=1?i[0]?.code:i.find(e=>e.code===n)?.code||i.find(e=>e.defaultForDomains?.includes(t)??e.domainDefault)?.code}function id(e,t,n){let r=vu.find(e=>e.code===n),i=e?.[n]?.domain||r?.domain||r?.domains?.find(e=>e===t.host);if(i)return ot(i,{strict:!0})?i:t.protocol+`//`+i}var ad=(e,t)=>Bn(t).value||void 0,od=(e,t)=>Fu(t),sd=e=>Qu(vu,navigator.languages),cd=(e,t,n)=>{let r=new URL(window.location.href).host;return rd(vu.map(e=>({...e,domain:n[e.code]?.domain??e.domain})),r,Mu(t))},ld=(e,t,n)=>{let r=$u(n);return{cookie:()=>ad(e,t.cookieKey),header:()=>void 0,navigator:()=>sd(e),host:t=>cd(e,t,r.domainLocales),route:t=>od(e,t)}},ud=e=>!!e.path&&!e.name;function dd(e){let t=e?._nuxtI18n?.composableCtx;if(!t)throw Error(`i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.`);return t}var fd=Qe;function pd(e,t=n()){let r=Ke();ld(ut(),ed(t),t);let i=e.getDefaultLocale(),a=Iu(i);function o(e,t){e.name=Au(e.name||r.currentRoute.value);let n=a(e.name,t);return r.hasRoute(n)&&(e.name=n),e}let s=Lu(r);function c(e,t){let n=s(e,t),r=Au(n);return r?(n.name=a(r,t),n):(vd(t,i)&&(n.path=`/`+t+n.path),n.path=fd(n.path,!0),n)}let l={router:r,_head:void 0,get head(){return this._head??=wt({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:!1},localePathPayload:md(),routingOptions:{defaultLocale:i,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!1},getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:Au,getRouteLocalizedParams:()=>r.currentRoute.value.meta.nuxtI18nInternal??{},getLocalizedDynamicParams:e=>l.getRouteLocalizedParams()?.[e],afterSwitchLocalePath:(e,t)=>(l.getRouteLocalizedParams(),e),resolveLocalizedRouteObject:(e,t)=>ud(e)?c(e,t):o(e,t)};return l}function md(e=n()){let t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||`{}`)}async function hd(e,t){let n=Ed(e),r=n.getLocale();if(t===r&&!n.initial)return t;let i={oldLocale:r,newLocale:t,initialSetup:n.initial,context:e},a=await e.callHook(`i18n:beforeLocaleSwitch`,i);return a??=i.newLocale,Ju(a)&&(t=a),await n.loadMessages(t),await n.setLocaleSuspend(t),t}function gd(e,t,n){return!1}function _d(e,t){let n=ed(e),r=ld(ut(e),n,e),i=Ed(e),a=sr(t)?t:t.path;function*o(){i.initial&&n.enabled&&!gd(n,a,r.route(a))&&(yield r.cookie(),yield r.header(),yield r.navigator(),yield n.fallbackLocale)}for(let e of o())if(e&&Ju(e))return e;return i.getLocale()||i.getDefaultLocale()||``}function vd(e,t){return!1}function yd(e,t,n,r){return ir(t)?()=>t(e):()=>t??``}function bd(e){return e!=null&&`global`in e&&`mode`in e?e.global:e}function xd(e){let t=bd(e);return`__composer`in t?t.__composer:t}var Sd=()=>At(`i18n:cached-locale-configs`,()=>void 0),Cd=()=>At(`i18n:resolved-locale`,()=>``);function wd({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:n,cookieKey:r}){let i=new Date;return Bn(r||`i18n_redirected`,{path:`/`,readonly:!1,expires:new Date(i.setDate(i.getDate()+365)),sameSite:e?`none`:`lax`,domain:t||void 0,secure:e||n})}function Td(e,t,n){let r=bd(t),i=$u(e),a=ed(e),o=Sd(),s=wd(a),c=new Set,l=e=>o.value[e],u=e=>id(i.domainLocales,Bt({xForwardedHost:!0}),e),d=yd(e,i.baseUrl,n,u),f=Cd(),p=async t=>{let n=l(t)?.fallbacks??[];n.includes(t)||n.push(t);for(let t of n){let n=await e.runWithContext(()=>Tu(t,gu[t]));r.mergeLocaleMessage(t,n)}},m=async e=>{if(!(e in gu))return;let t=l(e)?.cacheable?{}:{"Cache-Control":`no-cache`},n=await $fetch(`/_i18n/k_HwynsA/${e}/messages.json`,{headers:t});for(let e of Object.keys(n))r.mergeLocaleMessage(e,n[e])},h={vueI18n:t,initial:!0,preloaded:!1,config:i,rootRedirect:td(i.rootRedirect),redirectStatusCode:i.redirectStatusCode??302,dynamicResourcesSSG:!1,getDefaultLocale:()=>n,getLocale:()=>x(r.locale),setLocale:async t=>{let n=h.getLocale();t===n||!Ju(t)||(ge(r.locale)?r.locale.value=t:r.locale=t,await e.callHook(`i18n:localeSwitched`,{newLocale:t,oldLocale:n}),f.value=t)},setLocaleSuspend:async t=>
18{Ju(t)&&(h.vueI18n.__pendingLocale=t,h.vueI18n.__pendingLocalePromise=new Promise(e=>{h.vueI18n.__resolvePendingLocalePromise=async()=>{h.setCookieLocale(t),await h.setLocale(t),h.vueI18n.__pendingLocale=void 0,e()}}),(e.isHydrating||!h.config.skipSettingLocaleOnNavigate)&&await h.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>x(r.locales).map(e=>sr(e)?{code:e}:e),setCookieLocale:e=>{a.useCookie&&Ju(e)&&(s.value=e)},getBaseUrl:t=>st(t&&u(t)||d(),e.$config.app.baseURL),loadMessages:async t=>{if(!(e.isHydrating&&c.has(t)))try{return h.dynamicResourcesSSG?await p(t):await m(t)}catch(e){console.warn(`Failed to load messages for locale "${t}"`,e)}finally{c.add(t)}},composableCtx:void 0};return h.composableCtx=pd(h,e),h}function Ed(e){if(e._nuxtI18n==null)throw Error(`Nuxt I18n context has not been set up yet.`);return e._nuxtI18n}var Dd=s({name:`i18n:plugin:route-locale-detect`,dependsOn:[`i18n:plugin`],async setup(e){let t,r,i=n(e._id),a=Ed(i),o=Cd();[t,r]=c(()=>i.runWithContext(()=>hd(i,a.initial&&o.value||_d(i,i.$router.currentRoute.value)))),await t,r()}},1);function Od(e,{extendComposer:t,extendComposerInstance:n}){let r=se(),i=e.install.bind(e);e.install=(a,...o)=>{let s=nr({},o[0]);s.__composerExtend=t=>(n(t,xd(e)),()=>{}),e.mode===`legacy`&&(s.__vueI18nExtend=e=>(n(e,xd(e)),()=>{})),Reflect.apply(i,e,[a,s]);let c=xd(e);if(r.run(()=>{t(c),e.mode===`legacy`&&`__composer`in e.global&&n(e.global,xd(e.global))}),e.mode===`composition`&&a.config.globalProperties.$i18n!=null&&n(a.config.globalProperties.$i18n,c),a.unmount){let e=a.unmount.bind(a);a.unmount=()=>{r.stop(),e()}}}}function kd(e,t=e.getCurrentLanguage(),n=e.getCurrentDirection()){let r={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(r.htmlAttrs.dir=n),e.lang&&t&&(r.htmlAttrs.lang=t),e.seo){let t=jd(e);r.link=r.link.concat(t,Pd(e)),r.meta=r.meta.concat(Id(e),Ld(e),Rd(e,e.locales.map(e=>e.language||e.code)))}return r}function Ad(e){let t=new Map;for(let n of e){if(!n.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}let[e,r]=n.language.split(`-`);e&&r&&(n.isCatchallLocale||!t.has(e))&&t.set(e,n),t.set(n.language,n)}return t}function jd(e){if(!e.hreflangLinks)return[];let t=[],n=Ad(e.locales);for(let[r,i]of n.entries()){let n=Md(r,i,e);n&&(t.push(n),e.defaultLocale&&e.defaultLocale===i.code&&t[0].hreflang!==`x-default`&&t.unshift({[e.key]:`i18n-xd`,rel:`alternate`,href:n.href,hreflang:`x-default`}))}return t}function Md(e,t,n,r=n.strictCanonicals?n.getRouteWithoutQuery():void 0){let i=n.getLocalizedRoute(t.code,r);if(!i)return;let a=at(ot(i)?i:st(n.baseUrl,i),n.strictCanonicals?Fd(n):{});return{[n.key]:`i18n-alt-${e}`,rel:`alternate`,href:a,hreflang:e}}function Nd(e,t=e.getCurrentRoute()){let n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}));return n?at(st(e.baseUrl,n.path),Fd(e)):``}function Pd(e,t=Nd(e)){return t?[{[e.key]:`i18n-can`,rel:`canonical`,href:t}]:[]}function Fd(e,t=e.getCurrentRoute()){let n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},r={};for(let t of e.canonicalQueries.filter(e=>e in n)){r[t]??=[];for(let e of Bd(n[t]))r[t].push(e||``)}return r}function Id(e,t=Nd(e)){return t?[{[e.key]:`i18n-og-url`,property:`og:url`,content:t}]:[]}function Ld(e,t=e.getCurrentLanguage()){return t?[{[e.key]:`i18n-og`,property:`og:locale`,content:zd(t)}]:[]}function Rd(e,t,n=e.getCurrentLanguage()){return t.filter(e=>e&&e!==n).map(t=>({[e.key]:`i18n-og-alt-${t}`,property:`og:locale:alternate`,content:zd(t)}))}function zd(e=``){return e.replace(/-/g,`_`)}function Bd(e){return Array.isArray(e)?e:[e]}function Vd(e,t,n=e.getLocale(),r=e.getLocales(),i=e.getBaseUrl()){let a=r.find(e=>e.code===n)||{code:n},o=typeof t.seo==`object`&&t.seo?.canonicalQueries||[];return i||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{...t,key:`id`,locales:r,baseUrl:i,canonicalQueries:o,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>a.language,getCurrentDirection:()=>a.dir||`ltr`,getLocaleRoute:t=>zu(e,t),getLocalizedRoute:(t,n)=>Hu(e,t,n),getRouteWithoutQuery:()=>{try{return nr({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function Hd(e,{dir:t=!0,lang:n=!0,seo:r=!0}){return kd(Vd(e,{dir:t,lang:n,seo:r}))}
18function Ud(e=n()){let t=dd(e);return e=>{if(e!=null)return t.getRouteBaseName(e)||void 0}}function Wd(e=n()){let t=dd(e);return(e,n)=>Ru(t,e,n)}function Gd(e=n()){let t=dd(e);return(e,n)=>zu(t,e,n)}function Kd(e=n()){let t=dd(e);return e=>Hu(t,e)}var qd=async e=>{let t=await xu(_u);t.locale=e||t.locale||`en-US`,t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(let e of hu)t.messages[e]??={};return t},Jd=s({name:`i18n:plugin`,parallel:!1,async setup(e){let t,r;Object.defineProperty(e.versions,"nuxtI18n",{get:()=>`10.2.1`});let i=n(e._id),a=$u(i),o=i.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,s=qu(Bt({xForwardedHost:!0}).host)||a.defaultLocale||``,l=o||([t,r]=c(()=>qd(s)),t=await t,r(),t),u=Sd();u.value??=Uu(l.fallbackLocale),pt(hu.map(e=>`/_i18n/k_HwynsA/${e}/messages.json`));let d=lr(l),f=ld(ut(i),ed(i),i),p=Td(i,d,l.defaultLocale);i._nuxtI18n=p,Od(d,{extendComposer(e){e.locales=k(()=>a.locales),e.localeCodes=k(()=>hu);let t=_e(p.getBaseUrl());e.baseUrl=k(()=>t.value),g(e.locale,()=>t.value=p.getBaseUrl()),e.strategy=`no_prefix`,e.localeProperties=k(()=>vu.find(t=>t.code===e.locale.value)||{code:e.locale.value}),e.setLocale=async e=>{await hd(i,e),await i.runWithContext(()=>(i.$router.currentRoute.value,void 0))},e.loadLocaleMessages=p.loadMessages,e.differentDomains=!1,e.defaultLocale=l.defaultLocale,e.getBrowserLocale=()=>Yu(f.navigator()),e.getLocaleCookie=()=>Yu(f.cookie()),e.setLocaleCookie=p.setCookieLocale,e.finalizePendingLocaleChange=async()=>{d.__pendingLocale&&await d.__resolvePendingLocalePromise?.()},e.waitForPendingLocaleChange=async()=>{await d?.__pendingLocalePromise}},extendComposerInstance(e,t){let n=[[`locales`,()=>t.locales],[`localeCodes`,()=>t.localeCodes],[`baseUrl`,()=>t.baseUrl],[`strategy`,()=>`no_prefix`],[`localeProperties`,()=>t.localeProperties],[`setLocale`,()=>e=>Reflect.apply(t.setLocale,t,[e])],[`loadLocaleMessages`,()=>e=>Reflect.apply(t.loadLocaleMessages,t,[e])],[`differentDomains`,()=>!1],[`defaultLocale`,()=>t.defaultLocale],[`getBrowserLocale`,()=>()=>Reflect.apply(t.getBrowserLocale,t,[])],[`getLocaleCookie`,()=>()=>Reflect.apply(t.getLocaleCookie,t,[])],[`setLocaleCookie`,()=>e=>Reflect.apply(t.setLocaleCookie,t,[e])],[`finalizePendingLocaleChange`,()=>()=>Reflect.apply(t.finalizePendingLocaleChange,t,[])],[`waitForPendingLocaleChange`,()=>()=>Reflect.apply(t.waitForPendingLocaleChange,t,[])]];for(let[t,r]of n)Object.defineProperty(e,t,{get:r})}}),i.vueApp.use(d),Object.defineProperty(i,"$i18n",{get:()=>bd(d)}),i.provide(`localeHead`,e=>Hd(i._nuxtI18n.composableCtx,e)),i.provide(`localePath`,Wd(i)),i.provide(`localeRoute`,Gd(i)),i.provide(`routeBaseName`,Ud(i)),i.provide(`getRouteBaseName`,Ud(i)),i.provide(`switchLocalePath`,Kd(i))}},1),Yd=`nuxt-i18n-slp`,Xd=new RegExp([`<!--${Yd}-\\[(\\w+)\\]-->`,`.+?`,`<!--/${Yd}-->`].join(``),`g`),Zd=s({name:`i18n:plugin:switch-locale-path-ssr`,dependsOn:[`i18n:plugin`],setup(e){let t=n(e._id),r=Kd(t);t.hook(`app:rendered`,e=>{e.renderResult?.html!=null&&(e.renderResult.html=e.renderResult.html.replaceAll(Xd,(e,t)=>{let n=encodeURI(r(t??``));return e.replace(/href="([^"]+)"/,`href="${n||`#`}" `)}))})}}),Qd=s({name:`i18n:plugin:preload`,dependsOn:[`i18n:plugin`],async setup(e){}},1),$d=`301263`,ef=`sbEditLink`,tf=s(e=>{if(!(Kn()||Wn()))return;let t=e=>{try{return JSON.parse(ur(e)?.[`data-blok-c`])}catch{return{}}};wt({style:[{innerHTML:` 19 [data-sb-id] { 20 outline: 1px dashed #aaa; 21 } 22 23 .sb-edit-link { 24 position: absolute; 25 color: #fff; 26 border: none; 27 font-size: 12px; 28 border-radius: 4px; 29 cursor: pointer; 30 z-index: 50; 31 padding: 4px 8px; 32 background-color: #00b3b0; 33 top: anchor(top); 34 right: anchor(right); 35 } 36 `}]}),e.vueApp.directive(`editable`,{mounted(e,r){let{id:i,uid:a,name:o}=t(r?.value),s=new URLSearchParams(window.location.search).get(`_storyblok`),c=n().$i18n.locale.value?.replace(`formal`,`fm`);if(i&&a){let t=`${i}-${a}-${crypto.randomUUID()}`;e.setAttribute(`data-sb-id`,t);let n=`--storyblok-${t}`;e.style.anchorName=n;let r=document.createElement(`a`);r.classList.add(`sb-edit-link`),r.id=`${ef}-${t}`,r.textContent=Kn()&&s!==i?`Edit ${o} ⤴ï¸`:`Edit ${o}`,r.target=Kn()&&s===i?`_parent`:`_blank`,r.href=`https://app.storyblok.com/#/me/spaces/${$d}/stories/0/0/${i}/blok/${a}?lang=${c}`,r.style.setProperty(`position-anchor`,n),document.body.appendChild(r)}},unmounted(e){let t=e.getAttribute(`data-sb-id`);document.getElementById(`${ef}-${t}`)?.remove()}})}),B=[];for(let e=0;e<256;++e)B.push((e+256).toString(16).slice(1));
36function nf(e,t=0){return(B[e[t+0]]+B[e[t+1]]+B[e[t+2]]+B[e[t+3]]+`-`+B[e[t+4]]+B[e[t+5]]+`-`+B[e[t+6]]+B[e[t+7]]+`-`+B[e[t+8]]+B[e[t+9]]+`-`+B[e[t+10]]+B[e[t+11]]+B[e[t+12]]+B[e[t+13]]+B[e[t+14]]+B[e[t+15]]).toLowerCase()}var rf=new Uint8Array(16);function af(){return crypto.getRandomValues(rf)}function of(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():sf(e,t,n)}function sf(e,t,n){e||={};let r=e.random??e.rng?.()??af();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return nf(r)}var cf=t(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([],function(){return n()}):typeof t==`object`&&t.exports?t.exports=n():e.jsonSchema=n()})(e,function(){var e=n;e.Integer={type:`integer`};var t={String,Boolean,Number,Object,Array,Date};e.validate=n;function n(e,t){return n(e,t,{changing:!1})}e.checkPropertyChange=function(e,t,r){return n(e,t,{changing:r||`property`})};var n=e._validate=function(e,n,r){r||={};var i=r.changing;function a(e){return e.type||t[e.name]==e&&e.name.toLowerCase()}var o=[];function s(e,t,n,l){var u;n+=n?typeof l==`number`?`[`+l+`]`:l===void 0?``:`.`+l:l;function d(e){o.push({property:n,message:e})}if((typeof t!=`object`||t instanceof Array)&&(n||typeof t!=`function`)&&!(t&&a(t)))return typeof t==`function`?e instanceof t||d(`is not an instance of the class/constructor `+t.name):t&&d(`Invalid schema/property definition `+t),null;i&&t.readonly&&d(`is a readonly field, it can not be changed`),t.extends&&s(e,t.extends,n,l);function f(e,t){if(e){if(typeof e==`string`&&e!=`any`&&(e==`null`?t!==null:typeof t!=e)&&!(t instanceof Array&&e==`array`)&&!(t instanceof Date&&e==`date`)&&(e!=`integer`||t%1!=0))return[{property:n,message:t+` - `+typeof t+` value found, but a `+e+` is required`}];if(e instanceof Array){for(var r=[],i=0;i<e.length&&(r=f(e[i],t)).length;i++);if(r.length)return r}else if(typeof e==`object`){var a=o;o=[],s(t,e,n);var c=o;return o=a,c}}return[]}if(e===void 0)t.required&&d(`is missing and it is required`);else if(o=o.concat(f(a(t),e)),t.disallow&&!f(t.disallow,e).length&&d(` disallowed value was matched`),e!==null){if(e instanceof Array){if(t.items){var p=t.items instanceof Array,m=t.items;for(l=0,u=e.length;l<u;l+=1)p&&(m=t.items[l]),r.coerce&&(e[l]=r.coerce(e[l],m)),o.concat(s(e[l],m,n,l))}t.minItems&&e.length<t.minItems&&d(`There must be a minimum of `+t.minItems+` in the array`),t.maxItems&&e.length>t.maxItems&&d(`There must be a maximum of `+t.maxItems+` in the array`)}else(t.properties||t.additionalProperties)&&o.concat(c(e,t.properties,n,t.additionalProperties));if(t.pattern&&typeof e==`string`&&!e.match(t.pattern)&&d(`does not match the regex pattern `+t.pattern),t.maxLength&&typeof e==`string`&&e.length>t.maxLength&&d(`may only be `+t.maxLength+` characters long`),t.minLength&&typeof e==`string`&&e.length<t.minLength&&d(`must be at least `+t.minLength+` characters long`),t.minimum!==void 0&&typeof e==typeof t.minimum&&t.minimum>e&&d(`must have a minimum value of `+t.minimum),t.maximum!==void 0&&typeof e==typeof t.maximum&&t.maximum<e&&d(`must have a maximum value of `+t.maximum),t.enum){var h=t.enum;u=h.length;for(var g,_=0;_<u;_++)if(h[_]===e){g=1;break}g||d(`does not have a value in the enumeration `+h.join(`, `))}typeof t.maxDecimal==`number`&&e.toString().match(RegExp(`\\.[0-9]{`+(t.maxDecimal+1)+`,}`))&&d(`may only have `+t.maxDecimal+` digits of decimal places`)}return null}function c(e,t,n,a){if(typeof t==`object`){for(var c in(typeof e!=`object`||e instanceof Array)&&o.push({property:n,message:`an object is required`}),t)if(t.hasOwnProperty(c)&&c!=`__proto__`&&c!=`constructor`){var l=e.hasOwnProperty(c)?e[c]:void 0;if(l===void 0&&r.existingOnly)continue;var u=t[c];l===void 0&&u.default&&(l=e[c]=u.default),r.coerce&&c in e&&(l=e[c]=r.coerce(l,u)),s(l,u,n,c)}}for(c in e){if(e.hasOwnProperty(c)&&(c.charAt(0)!=`_`||c.charAt(1)!=`_`)&&t&&!t[c]&&a===!1){if(r.filter){delete e[c];continue}o.push({property:n,message:`The property `+c+` is not defined in the schema and the schema does not allow additional properties`})}var d=t&&t[c]&&t[c].requires;d&&!(d in e)&&o.push({property:n,message:`the presence of the property `+c+` requires that `+d+` also be present`}),l=e[c],a&&(!(t&&typeof t==`object`)||!(c in t))&&(r.coerce&&(l=e[c]=r.coerce(l,a)),s(l,a,n,c)),!i&&l&&l.$schema&&(o=o.c
36oncat(s(l,l.$schema,n,c)))}return o}return n&&s(e,n,``,i||``),!i&&e&&e.$schema&&s(e,e.$schema,``,``),{valid:!o.length,errors:o}};return e.mustBeValid=function(e){if(!e.valid)throw TypeError(e.errors.map(function(e){return`for property `+e.property+`: `+e.message}).join(`, 37`))},e})})),lf=t(((e,t)=>{(function(){let e=this,n=e=>new TextEncoder().encode(e);function r(e,t){typeof e==`string`&&(e=n(e));let r=e.length,i=t^r,a=0,o;for(;r>=4;)o=e[a]&255|(e[++a]&255)<<8|(e[++a]&255)<<16|(e[++a]&255)<<24,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>24,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),i=(i&65535)*1540483477+(((i>>>16)*1540483477&65535)<<16)^o,r-=4,++a;switch(r){case 3:i^=(e[a+2]&255)<<16;case 2:i^=(e[a+1]&255)<<8;case 1:i^=e[a]&255,i=(i&65535)*1540483477+(((i>>>16)*1540483477&65535)<<16)}return i^=i>>>13,i=(i&65535)*1540483477+(((i>>>16)*1540483477&65535)<<16),i^=i>>>15,i>>>0}function i(e,t){typeof e==`string`&&(e=n(e));let r,i,a,o,s,c,l,u;for(r=e.length&3,i=e.length-r,a=t,s=3432918353,c=461845907,u=0;u<i;)l=e[u]&255|(e[++u]&255)<<8|(e[++u]&255)<<16|(e[++u]&255)<<24,++u,l=(l&65535)*s+(((l>>>16)*s&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(l&65535)*c+(((l>>>16)*c&65535)<<16)&4294967295,a^=l,a=a<<13|a>>>19,o=(a&65535)*5+(((a>>>16)*5&65535)<<16)&4294967295,a=(o&65535)+27492+(((o>>>16)+58964&65535)<<16);switch(l=0,r){case 3:l^=(e[u+2]&255)<<16;case 2:l^=(e[u+1]&255)<<8;case 1:l^=e[u]&255,l=(l&65535)*s+(((l>>>16)*s&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(l&65535)*c+(((l>>>16)*c&65535)<<16)&4294967295,a^=l}return a^=e.length,a^=a>>>16,a=(a&65535)*2246822507+(((a>>>16)*2246822507&65535)<<16)&4294967295,a^=a>>>13,a=(a&65535)*3266489909+(((a>>>16)*3266489909&65535)<<16)&4294967295,a^=a>>>16,a>>>0}let a=i;if(a.v2=r,a.v3=i,t!==void 0)t.exports=a;else{let t=e.murmur;a.noConflict=function(){return e.murmur=t,a},e.murmur=a}})()}));cf();var uf=e(lf()),df=2**53;function ff(e){return typeof e==`number`&&Math.abs(e)<=df}function pf(e,t){if(!e)return{};let n={};return mf(e,t,n),n}function mf(e,t,n){e&&e.forEach(e=>{n[e[t]]=e})}function hf(e){return Object.keys(e).map(t=>e[t])}function gf(e,t){let n;for(let r of e)if(t(r)){n=r;break}return n}function _f(e,...t){let n=0;return e.replace(/%s/g,function(){let e=t[n++],r=typeof e;return r===`function`?e():r===`string`?e:String(e)})}function vf(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}var yf={checkArrayEquality:vf,currentTimestamp:function(){return Math.round(new Date().getTime())},isSafeInteger:ff,keyBy:pf,uuid:function(){return of()},isNumber:function(e){return typeof e==`number`},getTimestamp:function(){return new Date().getTime()},groupBy:function(e,t){let n={};return e.forEach(e=>{let r=t(e);n[r]=n[r]||[],n[r].push(e)}),hf(n)},objectValues:hf,objectEntries:function(e){return Object.keys(e).map(t=>[t,e[t]])},find:gf,sprintf:_f},V=class e extends Error{constructor(t,...n){super(),this.resolved=!1,this.name=`OptimizelyError`,this.baseMessage=t,this.params=n,Object.setPrototypeOf(this,e.prototype)}setMessage(e){this.resolved||=(this.message=_f(e.resolve(this.baseMessage),...this.params),!0)}},bf=`12`,xf=`28`,H=`37`,Sf=`55`,Cf=`59`,wf=`61`,Tf=`63`,Ef=[`BucketingID attribute is not a string. Defaulted to userId`,`CMAB decision fetch failed with status: %s`,`Error evaluating audience condition of type %s: %s`,`Datafile fetch request failed with status: %s`,`Error fetching datafile: %s`,`Event action invali
37d.`,`Event data invalid.`,`Event key %s is not in datafile.`,`Event store is full. Not saving event with id %d.`,`Experiment key %s is not in datafile.`,`Failed to dispatch events, status: %s`,`failed to send odp events`,`Feature key %s is not in datafile.`,`Provided attributes are in an invalid format.`,`Unable to generate hash for bucketing ID %s: %s`,`Invalid CMAB fetch response`,`Provided Optimizely config is in an invalid format.`,`Datafile is invalid - property %s: %s`,`Datafile is invalid because it is malformed.`,`This version of the JavaScript SDK does not support the given datafile version: %s`,`Provided event tags are in an invalid format.`,`Experiment ID %s is not in datafile.`,`Experiment key %s is not in datafile. It is either invalid, paused, or archived.`,`Group ID %s is not in datafile.`,`Provided %s is in an invalid format.`,`JSON object is not valid.`,`Invalid request URL: %s`,`Provided user ID is in an invalid format.`,`Provided user profile service instance is in an invalid format: %s.`,`Provided variation key is in an invalid format.`,`Local holdout "%s" is missing or has empty "includedRules"; skipping.`,`Integration key missing from datafile. All integrations should include a key.`,`Notification listener for (%s) threw exception: %s`,`Not tracking user %s.`,`No datafile specified. Cannot start optimizely.`,`No event processor is provided`,`No JSON object to validate against schema.`,`No project config available. Failing %s.`,`No status code in response`,`No variation key %s defined in datafile for experiment %s.`,`ODP config is not available.`,`ODP events should have at least one key-value pair in identifiers.`,`ODP event send failed.`,`ODP event manager stopped before it could start`,`ODP Manager is missing. %s failed.`,`ODP is not integrated`,`Only POST requests are supported`,`Audience condition %s evaluated to UNKNOWN because the number value for user attribute "%s" is not in the range [-2^53, +2^53].`,`Promise value is not allowed in sync operation`,`Request error`,`Request timeout`,`Retry cancelled`,`sendBeacon failed`,`%s not running`,`unable to bind optimizely.close() to page unload event: "%s"`,`Unable to cast value %s to type %s, returning null.`,`Unable to get VUID - VuidManager is not available`,`Unable to parse & skipped header item`,`Provided attribute: %s has an undefined value.`,`Audience condition %s evaluated to UNKNOWN because the condition value is not supported.`,`Attribute %s unexpectedly has reserved prefix %s; using attribute ID instead of reserved attribute name.`,`Audience condition %s evaluated to UNKNOWN because a value of type "%s" was passed for user attribute "%s".`,`Audience condition %s has an unknown condition type. You may need to upgrade to a newer release of the Optimizely SDK.`,`Audience condition %s uses an unknown match type. You may need to upgrade to a newer release of the Optimizely SDK.`,`Unrecognized attribute %s provided. Pruning before sending event to Optimizely.`,`Unrecognized decide option %s provided.`,`Unsupported protocol: %s`,`User %s is not in the forced variation map. Cannot remove their forced variation.`,`Error while looking up user profile for user ID "%s": %s.`,`Error while saving user profile for user ID "%s": %s.`,`Variable with key "%s" associated with feature with key "%s" is not in datafile.`,`Requested variable type "%s", but variable is of type "%s". Use correct API to retrieve value. Returning None.`,`Variation ID %s is not in the datafile.`],Df={dispatchEvent:function(e){let{params:t,url:n}=e,r=new Blob([JSON.stringify(t)],{type:`application/json`});return navigator.sendBeacon(n,r)?Promise.resolve({}):Promise.reject(new V(`52`))}},U;(function(e){e[e.Debug=0]=`Debug`,e[e.Info=1]=`Info`,e[e.Warn=2]=`Warn`,e[e.Error=3]=`Error`})(U||={});var Of={[U.Debug]:`DEBUG`,[U.Info]:`INFO`,[U.Warn]:`WARN`,[U.Error]:`ERROR`},kf={[U.Debug]:`debug`,[U.Info]:`info`,[U.Warn]:`warn`,[U.Error]:`error`},Af=class{constructor(e){this.prefix=e||`[OPTIMIZELY]`}log(e,t){let n=`${this.prefix} - ${Of[e]} ${this.getTime()} ${t}`;this.consoleLog(e,n)}getTime(){return new Date().toISOString()}consoleLog(e,t){(console[kf[e]]||console.log).call(console,t)}},jf=class e{constructor(e){this.prefix=``,this.logHandler=e.logHandler,this.infoResolver=e.infoMsgResolver,this.errorResolver=e.errorMsgResolver,this.level=e.level,e.name&&this.setName(e.name)}
37child(t){return new e({logHandler:this.logHandler,infoMsgResolver:this.infoResolver,errorMsgResolver:this.errorResolver,level:this.level,name:t})}setName(e){this.name=e,this.prefix=`${e}: `}info(e,...t){this.log(U.Info,e,t)}debug(e,...t){this.log(U.Debug,e,t)}warn(e,...t){this.log(U.Warn,e,t)}error(e,...t){this.log(U.Error,e,t)}handleLog(e,t,n){let r=n.length>0?`${this.prefix}${_f(t,...n)}`:`${this.prefix}${t}`;this.logHandler.log(e,r)}log(e,t,n){if(e<this.level)return;if(t instanceof Error)return t instanceof V&&t.setMessage(this.errorResolver),void this.handleLog(e,t.message,[]);let r=this.errorResolver;if(e<U.Warn){if(!this.infoResolver)return;r=this.infoResolver}let i=r.resolve(t);this.handleLog(e,i,n)}},Mf=`31`,Nf=[`Adding Authorization header with Bearer Token`,`Audience "%s" evaluated to %s.`,`CMAB cache attributes mismatch for user %s and rule %s, fetching new decision.`,`Cache hit for user %s and rule %s.`,`Cache miss for user %s and rule %s.`,`Starting to evaluate audience "%s" with conditions: %s.`,`Failed to parse revenue value "%s" from event tags.`,`Failed to parse event value "%s" from event tags.`,`Feature %s is enabled for user %s.`,`Feature %s is not enabled for user %s.`,`Feature "%s" is not enabled for user %s. Returning the default variable value "%s".`,`Ignoring CMAB cache for user %s and rule %s.`,`Invalidating CMAB cache for user %s and rule %s.`,`Invalid client engine passed: %s. Defaulting to node-sdk.`,`Provided decide options is not an array. Using default decide options.`,`Provided default decide options is not an array.`,`Experiment key %s is not in datafile. It is either invalid, paused, or archived.`,`Making datafile request to url %s with headers: %s`,`Audience condition %s evaluated to UNKNOWN because no value was passed for user attribute "%s".`,`Not activating user %s for experiment %s.`,`ODP identify event is not dispatched (fewer than 2 valid identifiers).`,`Parsed event value "%s" from event tags.`,`Parsed revenue value "%s" from event tags.`,`Resetting CMAB cache for user %s and rule %s.`,`Response status code: %s`,`Saved last modified header value from response: %s`,`Saved user profile for user "%s".`,`User %s was previously bucketed into variation with ID %s for experiment %s, but no matching variation was found.`,`Experiment %s is not in "Running" state. Not activating user.`,`Skipping JSON schema validation.`,`Tracking event %s for user %s.`,`Audience condition %s evaluated to UNKNOWN because a null value was passed for user attribute "%s".`,`Updated Optimizely config to revision %s (project id %s)`,`User %s is not in the forced variation map.`,`No experiment %s mapped to user %s in the forced variation map.`,`Set variation %s for experiment %s and user %s in the forced variation map.`,`User "%s" is not in any variation or rollout rule. Returning default value for variable "%s" of feature flag "%s".`,`Got variable value "%s" for variable "%s" of feature flag "%s"`,`BucketingId is valid: "%s"`,`Datafile is valid.`,`Valid user profile service provided.`,`Variable "%s" is not used in variation "%s". Returning default value.`,`Variation mapped to experiment %s has been removed for user %s.`],Pf={resolve(e){return Nf[parseInt(e)]||e}},Ff={resolve(e){return Ef[parseInt(e)]||e}},If={level:U.Debug,infoResolver:Pf,errorResolver:Ff};U.Info,U.Warn;var Lf={level:U.Error,errorResolver:Ff},Rf=Symbol(),zf={[Rf]:If},Bf={[Rf]:Lf},Vf=Symbol(),Hf=e=>{let{level:t,infoResolver:n,errorResolver:r}=(e=>{if(!e||typeof e!=`object`||!e[Rf])throw Error(`Invalid level preset`);return e[Rf]})(e.level);return e.logHandler&&(e=>{if(typeof e!=`object`||typeof e.log!=`function`)throw Error(`Invalid log handler`)})(e.logHandler),{[Vf]:new jf({name:`Optimizely`,level:t,infoMsgResolver:n,errorMsgResolver:r,logHandler:e.logHandler||new Af})}},Uf=Symbol(),Wf=[`and`,`or`,`not`];function Gf(e,t){if(Array.isArray(e)){let n=e[0],r=e.slice(1);switch(typeof n==`string`&&Wf.indexOf(n)===-1&&(n=`or`,r=e),n){case`and`:return function(e,t){let n=!1;if(Array.isArray(e)){for(let r=0;r<e.length;r++){let i=Gf(e[r],t);if(!1===i)return!1;i===null&&(n=!0)}return!n||null}return null}(r,t);case`not`:return function(e,t){if(Array.isArray(e)&&e.length>0){let n=Gf(e[0],t);return n===null?null:!n}return null}(r,t);default:return function(e,t){let n=!1;if(Array.isArray(e)){for(let r=0;r<e.length;r++){let i=Gf(e[r],t);if(!0===i)return!0;
37i===null&&(n=!0)}return!!n&&null}return null}(r,t)}}return t(e)}var Kf=class e{constructor(t,n,r){this.sdkKey=t.sdkKey??``,this.environmentKey=t.environmentKey??``,this.attributes=t.attributes,this.audiences=e.getAudiences(t),this.events=t.events,this.revision=t.revision;let i=(t.featureFlags||[]).reduce((e,t)=>(e[t.id]=t.variables,e),{}),a=e.getVariableIdMap(t),{experimentsMapById:o,experimentsMapByKey:s}=e.getExperimentsMap(t,i,a,r);this.experimentsMap=s,this.featuresMap=e.getFeaturesMap(t,i,o,a),this.datafile=n}getDatafile(){return this.datafile}static getAudiences(e){let t=[],n=[];return(e.typedAudiences||[]).forEach(e=>{t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name}),n.push(e.id)}),(e.audiences||[]).forEach(e=>{n.indexOf(e.id)===-1&&e.id!=`$opt_dummy_audience`&&t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name})}),t}static getSerializedAudiences(t,n){let r=``;if(t){let i=``;t.forEach(t=>{let a=``;if(t instanceof Array)a=e.getSerializedAudiences(t,n),a=`(${a})`;else if(Wf.indexOf(t)>-1)i=t.toUpperCase();else{let e=n[t]?n[t].name:t;r||i===`NOT`?(i=i===``?`OR`:i,r=r===``?`${i} "${n[t].name}"`:r.concat(` ${i} "${e}"`)):r=`"${e}"`}a!==``&&(r!==``||i===`NOT`?(i=i===``?`OR`:i,r=r===``?`${i} ${a}`:r.concat(` ${i} ${a}`)):r=r.concat(a))})}return r}static getExperimentAudiences(t,n){return t.audienceConditions?e.getSerializedAudiences(t.audienceConditions,n.audiencesById):``}static mergeFeatureVariables(e,t,n,r,i){let a=(e[n]||[]).reduce((e,t)=>(e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e),{});return(r||[]).forEach(e=>{let n=t[e.id],r={id:e.id,key:n.key,type:n.type,value:i?e.value:n.defaultValue};a[n.key]=r}),a}static getVariationsMap(t,n,r,i){let a={};return a=t.reduce((t,a)=>{let o=e.mergeFeatureVariables(n,r,i,a.variables,a.featureEnabled);return t[a.key]={id:a.id,key:a.key,featureEnabled:a.featureEnabled,variablesMap:o},t},{}),a}static getVariableIdMap(e){let t={};return t=(e.featureFlags||[]).reduce((e,t)=>
37(t.variables.forEach(t=>{e[t.id]=t}),e),{}),t}static getDeliveryRules(t,n,r,i,a){return i.map(i=>({id:i.id,key:i.key,audiences:e.getExperimentAudiences(i,t),variationsMap:e.getVariationsMap(i.variations,n,a,r)}))}static getRolloutExperimentIds(e){let t=[];return(e||[]).forEach(e=>{e.experiments.forEach(e=>{t.push(e.id)})}),t}static getExperimentsMap(t,n,r,i){let a=this.getRolloutExperimentIds(t.rollouts),o={},s={};return(t.experiments||[]).forEach(c=>{if(a.indexOf(c.id)!==-1)return;let l=t.experimentFeatureMap[c.id],u=``;l&&l.length>0&&(u=l[0]);let d=e.getVariationsMap(c.variations,n,r,u.toString()),f={id:c.id,key:c.key,audiences:e.getExperimentAudiences(c,t),variationsMap:d};o[c.id]=f,s[c.key]&&i&&i.warn(`Duplicate experiment keys found in datafile: ${c.key}`),s[c.key]=f}),{experimentsMapById:o,experimentsMapByKey:s}}static getExperimentsKeyMap(e){let t={};for(let n in e){let r=e[n];t[r.key]=r}return t}static getFeaturesMap(t,n,r,i){let a={};return t.featureFlags.forEach(o=>{let s={},c=[];o.experimentIds.forEach(e=>{let t=r[e];t&&(s[t.key]=t),c.push(r[e])});let l=(o.variables||[]).reduce((e,t)=>(e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e),{}),u=[],d=t.rolloutIdMap[o.rolloutId];d&&(u=e.getDeliveryRules(t,n,o.id,d.experiments,i)),a[o.key]={id:o.id,key:o.key,experimentRules:c,deliveryRules:u,experimentsMap:s,variablesMap:l}}),a}},qf=`$opt_bot_filtering`,Jf=`$opt_bucketing_id`,Yf=`$opt_experiment_bucket_map`,Xf=`javascript-sdk`,Zf=`6.5.0`,W={FEATURE_TEST:`feature-test`,ROLLOUT:`rollout`,EXPERIMENT:`experiment`,HOLDOUT:`holdout`},Qf=`fr`,$f=`rule`,ep=`experiment`,tp=`boolean`,np=`double`,rp=`integer`,ip=`string`,ap=`json`,op=`Optimizely SDK not configured properly yet.`,sp=`No flag was found for key "%s".`,cp=class{constructor(e,t,n,r){this.apiKey=e,this.apiHost=t,this.pixelUrl=n,this.segmentsToCheck=r}equals(e){return this.apiHost===e.apiHost&&this.apiKey===e.apiKey&&this.pixelUrl===e.pixelUrl&&vf(this.segmentsToCheck,e.segmentsToCheck)}},lp=`Running`,up=`$opt_`,dp=Object.values({V2:`2`,V3:`3`,V4:`4`}),fp=function(e,t){var n,r;let i;try{i=JSON.parse(e)}catch{throw new V(`18`)}let a=i.version;if(dp.indexOf(a)===-1)throw new V(`19`,a);return t?.jsonSchemaValidator?(t.jsonSchemaValidator(i),(n=t.logger)==null||n.info(`39`)):(r=t?.logger)==null||r.info(`29`),i.region||(i.region=`US`),i.__datafileStr=e,(e=>{(e.audiences||[]).forEach(e=>{e.conditions=JSON.parse(e.conditions)}),e.audiencesById={},mf(e.audiences,`id`,e.audiencesById),mf(e.typedAudiences,`id`,e.audiencesById)})(i),(e=>{e.attributes=e.attributes||[],e.attributeKeyMap={},e.attributeIdMap={},e.attributes.forEach(t=>{e.attributeKeyMap[t.key]=t,e.attributeIdMap[t.id]=t})})(i),i.eventKeyMap=pf(i.events,`key`),(e=>{e.groupIdMap={},(e.groups||[]).forEach(t=>{e.groupIdMap[t.id]=t,(t.experiments||[]).forEach(n=>{n.groupId=t.id,e.experiments.push(n)})})})(i),(e=>
37{e.rolloutIdMap={},(e.rollouts||[]).forEach(t=>{e.rolloutIdMap[t.id]=t,(t.experiments||[]).forEach(t=>{t.isRollout=!0,e.experiments.push(t)})})})(i),(e=>{let t=new Set;Object.keys(e.audiencesById).forEach(n=>{gp(e.audiencesById[n]).forEach(e=>{t.add(e)})});let n=Array.from(t),r=!1,i=``,a=``,o=``;e.integrationKeyMap={},(e.integrations||[]).forEach(t=>{if(!(`key`in t))throw new V(`31`);e.integrationKeyMap[t.key]=t,t.key===`odp`&&(r=!0,a=a||t.publicKey||``,i=i||t.host||``,o=o||t.pixelUrl||``)}),e.odpIntegrationConfig=r?{integrated:!0,odpConfig:new cp(a,i,o,n)}:{integrated:!1}})(i),(e=>{e.experimentKeyMap={},e.experimentIdMap={},e.variationIdMap={},e.variationVariableUsageMap={},(e.experiments||[]).forEach(t=>{e.experimentKeyMap[t.key]=t,e.experimentIdMap[t.id]=t,t.variationKeyMap={},(t.variations||[]).forEach(n=>{t.variationKeyMap[n.key]=n,e.variationIdMap[n.id]=n,n.variables&&(e.variationVariableUsageMap[n.id]=pf(n.variables,`id`))})})})(i),(e=>{e.experimentFeatureMap={},e.featureKeyMap={},e.flagRulesMap={},e.flagVariationsMap={},(e.featureFlags||[]).forEach(t=>{e.featureKeyMap[t.key]=t,t.variableKeyMap={}
37,t.variables.forEach(e=>{e.type===ip&&e.subType===ap&&(e.type=ap,delete e.subType),t.variableKeyMap[e.key]=e});let n=[],r={},i=pp(e,t);(t.experimentIds||[]).forEach(a=>{e.experimentFeatureMap[a]=e.experimentFeatureMap[a]||[],e.experimentFeatureMap[a].push(t.id);let o=e.experimentIdMap[a];n.push(o),o&&o.type===Qf&&i&&(o.variations.push(i),o.trafficAllocation.push({entityId:i.id,endOfRange:1e4}),o.variationKeyMap[i.key]=i),(o.variations||[]).forEach(e=>{r[e.id]=e})});let a=e.rolloutIdMap[t.rolloutId];a&&(a.experiments||[]).forEach(e=>{n.push(e),(e.variations||[]).forEach(e=>{r[e.id]=e})}),e.flagRulesMap[t.key]=n,e.flagVariationsMap[t.key]=Object.values(r)})})(i),mp(i,t?.logger),i},pp=function(e,t){if(!t.rolloutId)return null;let n=e.rolloutIdMap[t.rolloutId];if(!n||!n.experiments||n.experiments.length===0)return null;let r=n.experiments[n.experiments.length-1];return r.variations&&r.variations.length!==0?r.variations[0]:null},mp=(e,t)=>{e.holdouts=e.holdouts||[],e.localHoldouts=e.localHoldouts||[];let n={},r={},i=t=>{t.includedFlags=[],t.excludedFlags=[],t.variationKeyMap=pf(t.variations,`key`),mf(t.variations,`id`,e.variationIdMap)};e.holdouts.forEach(e=>{i(e),delete e.includedRules,e.isGlobal=!0,r[e.id]=e}),e.localHoldouts.forEach(e=>{let a=e.includedRules;if(Array.isArray(a)&&a.length!==0){i(e),e.isGlobal=!1,r[e.id]=e;for(let t of a)n[t]||(n[t]=[]),n[t].push(e)}else t?.error(`30`,e.key)}),e.holdoutIdMap=r,e.ruleHoldoutsMap=n},hp=(e,t)=>e.ruleHoldoutsMap[t]??[],gp=function(e){return e.conditions?_p(e.conditions):[]},_p=e=>{let t=[];return function(e){return[`and`,`or`,`not`].includes(e)}(e)?[]:(Array.isArray(e)?e.forEach(e=>t.push(..._p(e))):e.match===`qualified`&&t.push(e.value),t)},vp=function(e,t){let n=e.experimentKeyMap[t];if(!n)throw new V(`22`,t);return n.status},yp=function(e,t){if(e.experimentKeyMap.hasOwnProperty(t)){let n=e.experimentKeyMap[t];if(n)return n}throw new V(`9`,t)},bp=function(e,t,n){return e&&gf(e.flagVariationsMap[t],e=>e.key===n)||null},xp=function(e,t,n){if(e.featureKeyMap.hasOwnProperty(t)){let n=e.featureKeyMap[t];if(n)return n}return n?.error(bf,t),null},Sp=function(e){return!!e.sendFlagDecisions},Cp=()=>{};function wp(){let e=Cp,t=Cp,n=new Promise((n,r)=>{e=n,t=r});return{promise:n,resolve:e,reject:t,then:n.then.bind(n)}}var Tp=`%s failed to start, reason: %s`,Ep=`%s stopped before running`,G;(function(e){e[e.New=0]=`New`,e[e.Starting=1]=`Starting`,e[e.Running=2]=`Running`,e[e.Stopping=3]=`Stopping`,e[e.Terminated=4]=`Terminated`,e[e.Failed=5]=`Failed`})(G||={});var Dp=class{constructor(e=[]){this.disposable=!1,this.state=G.New,this.startPromise=wp(),this.stopPromise=wp(),this.startupLogs=e,this.startPromise.promise.catch(()=>{}),this.stopPromise.promise.catch(()=>{})}makeDisposable(){this.disposable=!0}setLogger(e){this.logger=e}printStartupLogs(){if(this.logger)for(let{level:e,message:t,params:n}of this.startupLogs){let r=kf[e];this.logger[r].call(this.logger,t,...n)}}onRunning(){return this.startPromise.promise}onTerminated(){return this.stopPromise.promise}getState(){return this.state}isStarting(){return this.state===G.Starting}isRunning(){return this.state===G.Running}isNew(){return this.state===G.New}isDone(){return[G.Stopping,G.Terminated,G.Failed].includes(this.state)}start(){this.printStartupLogs()}},Op=class{constructor(){this.id=0,this.listeners={}}on(e,t){var n;this.listeners[e]||(this.listeners[e]=new Map);let r=this.id++;return(n=this.listeners[e])==null||n.set(r,t),()=>{var t;(t=this.listeners[e])==null||t.delete(r)}}emit(e,t){let n=this.listeners[e];n&&n.forEach(e=>{e(t)})}removeListeners(e){var t;(t=this.listeners[e])==null||t.clear()}removeAllListeners(){this.listeners={}}},kp=class extends Dp{constructor(e){super(),this.eventEmitter=new Op,this.jsonSchemaValidator=e.jsonSchemaValidator,this.datafile=e.datafile,this.datafileManager=e.datafileManager,e.logger&&this.setLogger(e.logger)}setLogger(e){var t;this.logger=e,this.logger.setName(`ProjectConfigManager`),(t=this.datafileManager)==null||t.setLogger(e.child())}start(){var e,t,n;this.isNew()&&(this.state=G.Starting,this.datafile||this.datafileManager?(this.datafile&&this.handleNewDatafile(this.datafile,!0),(e=this.datafileManager)==null||e.start(),(t=this.datafileManager)==null||t.onUpdate(this.handleNewDatafile.bind(this)),(n=this.datafileManager)==null||n.onRunning().catch(e=>{this.handleDatafileManagerError(e)})):this.handleInitError(Error(`sdkKey or datafile must be provided`)))}makeDisposable(){var e;super.makeDisposable(),(e=this.datafileManager)==null||e.makeDisposable()}handleInitError(e){var t,n;(t=this.logger)==null||t.error(e),this.state=G.Failed,(n=this.datafileManager)==null||n.stop(),this.startPromise.reject(e),this.stopPromise.reject(e)}handleDatafileManagerError(e){var t;(t=this.logger)==null||t.error(Tp,`DatafileManager`,e.message),this.isStarting()&&this.handleInitError(Error(_f(Tp,`DatafileManager`,e.message)))}handleNewDatafile(e,t=!1){var n;if(!this.isDone())try{let t=fp(e,{jsonSchemaValidator:this.jsonSchemaValidator,logger:this.logger});this.isStarting()&&(this.state=G.Running,this.startPromise.resolve()),this.projectConfig?.revision!==t.revision&&(this.projectConfig=t,this.optimizelyConfig=void 0,this.eventEmitter.emit(`update`,t))}catch(e){(n=this.logger)==null||n.error(e),(this.isStarting()&&!this.datafileManager||this.isStarting()&&!t)&&this.handleInitError(Error(`got invalid datafile`))}}getConfig(){return this.projectConfig}getOptimizelyConfig(){var e,t,n,r;return!this.optimizelyConfig&&this.projectConfig&&(this.optimizelyConfig=(e=this.projectConfig,r=this.projectConfig,t=r.__datafileStr,n=this.logger,new Kf(e,t,n))),this.optimizelyConfig}onUpdate(e){return this.eventEmitter.on(`update`,e)}stop(){if(!this.isDone()){if((this.isNew()||this.isStarting())&&this.startPromise.reject(Error(_f(Ep,`ProjectConfigManager`))),this.state=G.Stopping,this.eventEmitter.removeAllListeners(),!this.datafileManager)return this.state=G.Terminated,void this.stopPromise.resolve();this.datafileManager.stop(),this.datafileManager.onTerminated().then(()=>{this.state=G.Terminated,this.stopPromise.resolve()}).catch(e=>{this.state=G.Failed,this.stopPromise.reject(e)})}}};function K(e,t,n,r){return new(n||=Promise)(function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}c((r=r.apply(e,t||[])).next())})}var Ap=e=>e>=200&&e<400,jp=class{constructor(e,t,n){this.base=e,this.max=t,this.maxJitter=n,this.maxJitter>this.base/2&&(this.maxJitter=this.base/2),this.maxJitter=n,this.current=e}backoff(){let e=this.current+this.maxJitter*Math.random();return this.current=Math.min(2*this.current,this.max),e}reset(){this.current=this.base}},Mp=class{constructor(e){this.value=e}backoff(){return this.value}reset(){}},Np=class{constructor(e,t){this.failureCount=0,this.running=!1,this.interval=e,this.backoffController=t}isRunning(){return this.running}handleSuccess(){var e;this.failureCount=0,(e=this.backoffController)==null||e.reset(),this.setTimer(this.interval)}handleFailure(){this.failureCount++;let e=this.backoffController?.backoff()??this.interval;this.setTimer(e)}setTimer(e){this.running&&(this.timeoutId=setTimeout(this.executeTask.bind(this),e))}executeTask(){this.task&&this.task(this.failureCount).then(this.handleSuccess.bind(this),this.handleFailure.bind(this))}start(e){var t;this.running=!0,e?(t=this.executeTask.bind(this),typeof queueMicrotask==`function`?queueMicrotask(t):Promise.resolve().then(t)):this.setTimer(this.interval)}
37stop(){this.running=!1,clearInterval(this.timeoutId)}reset(){var e;this.failureCount=0,(e=this.backoffController)==null||e.reset(),this.stop()}setTask(e){this.task=e}},Pp=e=>{let t=[];if(!e||typeof e!=`object`)throw Error(`Invalid store`);for(let n of[`set`,`get`,`remove`,`getKeys`])typeof e[n]!=`function`&&t.push(`Invalid store method %s`.replace(`%s`,n));if(t.length>0)throw Error(t.join(`, `))},Fp=`Invalid config manager`,Ip=Symbol(),Lp=e=>({[Ip]:new kp(e)}),Rp=class{constructor(){this.operation=`sync`}},zp=class{constructor(){this.operation=`async`}},Bp=(e,t)=>e instanceof Rp?e.getBatched(t):t.map(t=>e.get(t)),Vp=(e,t)=>e instanceof zp?e.getBatched(t):Promise.all(t.map(t=>e.get(t))),Hp=class extends Rp{constructor(e,t,n,r){super(),this.operation=`sync`,this.store=e,this.prefix=t,this.transformGet=n,this.transformSet=r}addPrefix(e){return`${this.prefix}${e}`}removePrefix(e){return e.substring(this.prefix.length)}set(e,t){return this.store.set(this.addPrefix(e),this.transformSet(t))}get(e){let t=this.store.get(this.addPrefix(e));return t?this.transformGet(t):void 0}remove(e){return this.store.remove(this.addPrefix(e))}getInternalKeys(){return this.store.getKeys().filter(e=>e.startsWith(this.prefix))}getKeys(){return this.getInternalKeys().map(e=>this.removePrefix(e))}getBatched(e){return Bp(this.store,e.map(e=>this.addPrefix(e))).map(e=>e?this.transformGet(e):void 0)}},Up=class{constructor(e,t,n,r){this.operation=`async`,this.cache=e,this.prefix=t,this.transformGet=n,this.transformSet=r}addPrefix(e){return`${this.prefix}${e}`}removePrefix(e){return e.substring(this.prefix.length)}set(e,t){return this.cache.set(this.addPrefix(e),this.transformSet(t))}get(e){return K(this,void 0,void 0,function*(){let t=yield this.cache.get(this.addPrefix(e));return t?this.transformGet(t):void 0})}remove(e){return this.cache.remove(this.addPrefix(e))}getInternalKeys(){return K(this,void 0,void 0,function*(){return this.cache.getKeys().then(e=>e.filter(e=>e.startsWith(this.prefix)))})}getKeys(){return K(this,void 0,void 0,function*(){return this.getInternalKeys().then(e=>e.map(e=>this.removePrefix(e)))})}getBatched(e){return K(this,void 0,void 0,function*(){return(yield Vp(this.cache,e.map(e=>this.addPrefix(e)))).map(e=>e?this.transformGet(e):void 0)})}},Wp=`campaign_activated`,Gp=`custom`,Kp={US:`https://logx.optimizely.com/v1/events`,EU:`https://eu.logx.optimizely.com/v1/events`};function qp(e){let t=[],n=e[0];return e.forEach(e=>{if(e.type===`conversion`||e.type===`impression`){let n=function(e){let t={snapshots:[],visitor_id:e.user.id,attributes:[]};return e.user.attributes.forEach(e=>{t.attributes.push({entity_id:e.entityId,key:e.key,type:`custom`,value:e.value})}),typeof e.context.botFiltering==`boolean`&&t.attributes.push({entity_id:qf,key:qf,type:Gp,value:e.context.botFiltering}),t}(e);e.type===`impression`?n.snapshots.push(function(e){let{layer:t,experiment:n,variation:r,ruleKey:i,flagKey:a,ruleType:o,enabled:s,cmabUuid:c}=e,l=t?.id,u=n?.id??``,d=(m=r?.id,m&&/^[0-9]+$/.test(m)?m:null),f=r?r.key:``,p=l||u||null;var m;return{decisions:[{campaign_id:p,experiment_id:u,variation_id:d,metadata:{flag_key:a,rule_key:i,rule_type:o,variation_key:f,enabled:s,cmab_uuid:c}}],events:[{entity_id:p,timestamp:e.timestamp,key:Wp,uuid:e.uuid}]}}(e)):e.type===`conversion`&&n.snapshots.push(function(e){let t=Object.assign({},e.tags);delete t.revenue,delete t.value;let n={entity_id:e.event.id,key:e.event.key,timestamp:e.timestamp,uuid:e.uuid};return e.tags&&(n.tags=e.tags),e.value!=null&&(n.value=e.value),e.revenue!=null&&(n.revenue=e.revenue),{events:[n]}}(e)),t.push(n)}}),{client_name:n.context.clientName,client_version:n.context.clientVersion,account_id:n.context.accountId,project_id:n.context.projectId,revision:n.context.revision,anonymize_ip:n.context.anonymizeIP,enrich_decisions:!0,visitors:t}}function Jp(e){return{url:Kp[e[0]?.context.region||`US`]||Kp.US,httpVerb:`POST`,params:qp(e)}}var Yp=(e,t,n,r,i)=>{e().then(e=>{t.resolve(e)}).catch(a=>{if(i===0)return void t.reject(a);if(n.cancelled)return void t.reject(new V(`51`));let o=r?.backoff()??0;setTimeout(()=>{Yp(e,t,n,r,i=i===void 0?void 0:i-1)},o)})},Xp=(e,t,n)=>{let r=wp(),i={cancelled:!1};return Yp(e,r,i,t,n),{cancelRetry:()=>{i.cancelled=!0},result:r.promise}},Zp=class{constructor(){this.idSuffixOffset=0}getId(){let e=1e4+this.idSuffixOffset;return this.idSuffixOffset=(this.idSuffixOffset+1)%1e4,`${Date.now()}${e}`}};function Qp(e){return e.experiment?.key??``}function $p(e){return e.variation?.key??``}function em(e){var t;return(t=e.variation?.featureEnabled)!=null&&t}var tm={AB_TEST:`ab-test`,FEATURE:`feature`,FEATURE_TEST:`feature-test`,FEATURE_VARIABLE:`feature-variable`,ALL_FEATURE_VARIABLES:`all-feature-variables`,FLAG:`flag`},nm={ACTIVATE:`ACTIVATE`,DECISION:`DECISION`,LOG_EVENT:`LOG_EVENT`,OPTIMIZELY_CONFIG_UPDATE:`OPTIMIZELY_CONFIG_UPDATE`,TRACK:`TRACK`},rm,im;(function(e){e.BOOLEAN=`boolean`,e.DOUBLE=`double`,e.INTEGER=`integer`,e.STRING=`string`,e.JSON=`json`})(rm||={}),function(e){e.DISABLE_DECISION_EVENT=`DISABLE_DECISION_EVENT`,e.ENABLED_FLAGS_ONLY=`ENABLED_FLAGS_ONLY`,e.IGNORE_USER_PROFILE_SERVICE=`IGNORE_USER_PROFILE_SERVICE`,e.INCLUDE_REASONS=`INCLUDE_REASONS`,e.EXCLUDE_VARIABLES=`EXCLUDE_VARIABLES`,e.IGNORE_CMAB_CACHE=`IGNORE_CMAB_CACHE`,e.RESET_CMAB_CACHE=`RESET_CMAB_CACHE`,e.INVALIDATE_USER_CMAB_CACHE=`INVALIDATE_USER_CMAB_CACHE`}(im||={});var am=(e,t)=>{let n=e.context,r=t.context;return(n.region||`US`)===(r.region||`US`)&&n.accountId===r.accountId&&n.projectId===r.projectId&&n.clientName===r.clientName&&n.clientVersion===r.clientVersion&&n.revision===r.revision&&n.anonymizeIP===r.anonymizeIP&&n.botFiltering===r.botFiltering},om=({configObj:e,userId:t,userAttributes:n,clientEngine:r,clientVersion:i,type:a})=>({type:a,timestamp:yf.currentTimestamp(),uuid:yf.uuid(),context:{regi
37on:e.region,accountId:e.accountId,projectId:e.projectId,revision:e.revision,clientName:r,clientVersion:i,anonymizeIP:e.anonymizeIP||!1,botFiltering:e.botFiltering},user:{id:t,attributes:lm(e,n)}}),sm=function({configObj:e,decisionObj:t,userId:n,flagKey:r,enabled:i,userAttributes:a,clientEngine:o,clientVersion:s}){let c=t.decisionSource,l=Qp(t),u=function(e){return e.experiment?.id??null}(t),d=$p(t),f=function(e){return e.variation?.id??null}(t),p=t.cmabUuid,m=u===null?null:c===W.HOLDOUT?``:function(e,t){let n=e.experimentIdMap[t];if(!n)throw new V(`21`,t);return n.layerId}(e,u);return Object.assign(Object.assign({},om({configObj:e,userId:n,userAttributes:a,clientEngine:o,clientVersion:s,type:`impression`})),{layer:{id:m},experiment:{id:u,key:l},variation:{id:f,key:d},ruleKey:l,flagKey:r,ruleType:c,enabled:i,cmabUuid:p})},cm=function({configObj:e,userId:t,userAttributes:n,clientEngine:r,clientVersion:i,eventKey:a,eventTags:o},s){let c=function(e,t){let n=e.eventKeyMap[t];return n?n.id:null}(e,a),l=o?function(e,t){let n=e.revenue;if(n==null)return null;let r=typeof n==`string`?parseInt(n):Math.trunc(n);return isFinite(r)?(t?.info(`22`,r),r):(t?.info(`6`,n),null)}(o,s):null,u=o?function(e,t){let n=e.value;if(n==null)return null;let r=typeof n==`string`?parseFloat(n):n;return isFinite(r)?(t?.info(`21`,r),r):(t?.info(`7`,n),null)}(o,s):null;return Object.assign(Object.assign({},om({configObj:e,userId:t,userAttributes:n,clientEngine:r,clientVersion:i,type:`conversion`})),{event:{id:c,key:a},revenue:l,value:u,tags:o})},lm=(e,t,n)=>{if(!t)return[];let r=[];return Object.keys(t).forEach(function(i){let a=t[i];if(typeof a!=`object`&&a!==void 0&&function(e,t){return typeof e==`string`&&(typeof t==`string`||typeof t==`boolean`||yf.isNumber(t)&&yf.isSafeInteger(t))}(i,a)){let t=function(e,t,n){let r=e.attributeKeyMap[t],i=t.indexOf(up)===0;return r?(i&&n?.warn(`60`,t,up),r.id):i?t:(n?.warn(`64`,t),null)}(e,i,n);t&&r.push({entityId:t,key:i,value:a})}}),r},um=class extends Dp{constructor(e){var t;super(e.startupLogs),this.eventQueue=[],this.idGenerator=new Zp,this.runningTask=new Map,this.dispatchingEvents=new Map,this.eventEmitter=new Op,this.eventDispatcher=e.eventDispatcher,this.closingEventDispatcher=e.closingEventDispatcher,this.batchSize=e.batchSize,this.eventStore=e.eventStore,this.retryConfig=e.retryConfig,this.dispatchRepeater=e.dispatchRepeater,this.dispatchRepeater.setTask(()=>this.flush()),this.failedEventRepeater=e.failedEventRepeater,(t=this.failedEventRepeater)==null||t.setTask(()=>this.retryFailedEvents()),e.logger&&this.setLogger(e.logger)}setLogger(e){this.logger=e,this.logger.setName(`BatchEventProcessor`)}onDispatch(e){return this.eventEmitter.on(`dispatch`,e)}retryFailedEvents(){return K(this,void 0,void 0,function*(){if(!this.eventStore)return;let e=(yield this.eventStore.getKeys()).filter(e=>!this.dispatchingEvents.has(e)&&!this.eventQueue.find(t=>t.id===e)),t=yield this.eventStore.operation===`sync`?Bp(this.eventStore,e):Vp(this.eventStore,e),n=[];if(t.forEach(e=>{e&&n.push(e)}),n.length==0)return;n.sort((e,t)=>e.id<t.id?-1:1);let r=[],i=[];n.forEach(e=>{(i.length===this.batchSize||i.length>0&&!am(i[0].event,e.event))&&(r.push({request:Jp(i.map(e=>e.event)),events:i}),i=[]),i.push(e)}),i.length>0&&r.push({request:Jp(i.map(e=>e.event)),events:i}),r.forEach(e=>{this.dispatchBatch(e,!1)})})}createNewBatch(){if(this.eventQueue.length==0)return;let e=[],t=[];return this.eventQueue.forEach(n=>{e.push(n.event),t.push(n)}),this.eventQueue=[],{request:Jp(e),events:t}}executeDispatch(e,t=!1){return K(this,void 0,void 0,function*(){return(t&&this.closingEventDispatcher?this.closingEventDispatcher:this.eventDispatcher).dispatchEvent(e).then(e=>e.statusCode&&!Ap(e.statusCode)?Promise.reject(new V(`10`,e.statusCode)):Promise.resolve(e))})}dispatchBatch(e,t){let{request:n,events:r}=e;r.forEach(e=>{this.dispatchingEvents.set(e.id,e)});let i=this.retryConfig?Xp(()=>this.executeDispatch(n,t),this.retryConfig.backoffProvider(),this.retryConfig.maxRetries):{result:this.executeDispatch(n,t),cancelRetry:()=>{}};this.eventEmitter.emit(`dispatch`,n);let a=this.idGenerator.getId();this.runningTask.set(a,i),i.result.then(e=>
37(r.forEach(e=>{var t;(t=this.eventStore)==null||t.remove(e.id)}),Promise.resolve())).catch(e=>{var t;(t=this.logger)==null||t.error(e)}).finally(()=>{this.runningTask.delete(a),r.forEach(e=>this.dispatchingEvents.delete(e.id))})}flush(e=!1){return K(this,void 0,void 0,function*(){let t=this.createNewBatch();t&&(this.dispatchRepeater.reset(),this.dispatchBatch(t,e))})}process(e){return K(this,void 0,void 0,function*(){if(!this.isRunning())return Promise.reject(new V(`53`,`BatchEventProcessor`));let t={id:this.idGenerator.getId(),event:e};yield Promise.resolve(this.eventStore?.set(t.id,t)).catch(e=>{var t;(t=this.logger)==null||t.error(e)}),this.eventQueue.length>0&&!am(this.eventQueue[0].event,e)&&this.flush(),this.eventQueue.push(t),this.eventQueue.length==this.batchSize?this.flush():this.dispatchRepeater.isRunning()||this.dispatchRepeater.start()})}start(){var e;this.isNew()&&(super.start(),this.state=G.Running,this.disposable||(e=this.failedEventRepeater)==null||e.start(),this.retryFailedEvents(),this.startPromise.resolve())}makeDisposable(){super.makeDisposable(),this.batchSize=1,this.retryConfig={maxRetries:Math.min(this.retryConfig?.maxRetries??5,5),backoffProvider:this.retryConfig?.backoffProvider||(()=>new jp(200,1e3,500))}}flushImmediately(){return this.isRunning()?this.flush(!0):Promise.resolve()}stop(){var e;this.isDone()||(this.isNew()&&this.startPromise.reject(Error(_f(Ep,`BatchEventProcessor`))),this.state=G.Stopping,this.dispatchRepeater.stop(),(e=this.failedEventRepeater)==null||e.stop(),this.flush(!0),this.runningTask.forEach(e=>e.cancelRetry()),Promise.allSettled(Array.from(this.runningTask.values()).map(e=>e.result)).then(()=>{this.state=G.Terminated,this.stopPromise.resolve()}))}},dm=class{constructor(){this.waitPromise=Promise.resolve()}run(e){let t=this.waitPromise.then(e);return this.waitPromise=t.catch(()=>{}),t}},fm=e=>e,pm=`optly_event:`,mm=class extends zp{constructor(e){super(),this.operation=`async`,this.serializer=new dm;let{maxSize:t,ttl:n,store:r,logger:i}=e;this.store=r.operation===`sync`?new Hp(r,pm,fm,fm):new Up(r,pm,fm,fm),i&&(i.setName(`EventStore`),this.logger=i),this.maxSize=t||500,this.ttl=n||864e6}readKeys(){return K(this,void 0,void 0,function*(){return this.serializer.run(()=>K(this,void 0,void 0,function*(){var e;if(this.keys===void 0)try{this.keys=new Set(yield this.getKeys())}catch(t){(e=this.logger)==null||e.error(t)}}))})}set(e,t){var n;return K(this,void 0,void 0,function*(){return yield this.readKeys(),this.keys!==void 0&&this.keys.size>=this.maxSize?Promise.reject(new V(`8`,t.event.uuid)):((n=this.keys)==null||n.add(e),this.store.set(e,Object.assign(Object.assign({},t),{_time:{storedAt:Date.now(),ttl:this.ttl}})))})}processStoredEvent(e,t){if(t){if(t._time===void 0)return t._time={storedAt:Date.now(),ttl:this.ttl},this.set(e,t).catch(()=>{}),t;if(!(t._time.storedAt+this.ttl<=Date.now()))return t;this.remove(e).catch(()=>{})}}get(e){return K(this,void 0,void 0,function*(){let t=yield this.store.get(e);return this.processStoredEvent(e,t)})}remove(e){var t;return K(this,void 0,void 0,function*(){yield this.store.remove(e),(t=this.keys)==null||t.delete(e)})}getKeys(){return K(this,void 0,void 0,function*(){let e=yield this.store.getKeys();return this.keys=new Set(e),e})}getBatched(e){return K(this,void 0,void 0,function*(){return(yield this.store.getBatched(e)).map((t,n)=>this.processStoredEvent(e[n],t))})}},hm=class extends Dp{constructor(e){super(),this.dispatcher=e,this.eventEmitter=new Op}process(e){let t=Jp([e]),n=this.dispatcher.dispatchEvent(t);return this.eventEmitter.emit(`dispatch`,t),n}start(){this.isNew()&&(this.state=G.Running,this.startPromise.resolve())}stop(){this.isDone()||(this.isNew()&&this.startPromise.reject(Error(_f(Ep,`ForwardingEventProcessor`))),this.state=G.Terminated,this.stopPromise.resolve())}onDispatch(e){return this.eventEmitter.on(`dispatch`,e)}flushImmediately(){return Promise.resolve()}},gm=Symbol(),_m=e=>{if(!e||typeof e!=`object`||typeof e.dispatchEvent!=`function`)throw Error(`Invalid event dispatcher`)},vm=e=>({[gm]:e}),ym=(e,t=um)=>vm(((e,t=um)=>{let{eventDispatcher:n,closingEventDispatcher:r,retryOptions:i,eventStore:a}=e;_m(n),r&&_m(r),a&&Pp(a);let o=i?{maxRetries:i.maxRetries,backoffProvider:()=>
37new jp(i?.minBackoff??200,i?.maxBackoff??1e3,50)}:void 0,s=[],{defaultFlushInterval:c,defaultBatchSize:l}=e,u=c;e.flushInterval===void 0||e.flushInterval<=0?s.push({level:U.Warn,message:`Invalid flushInterval %s, defaulting to %s`,params:[e.flushInterval,c]}):u=e.flushInterval;let d=l;return e.batchSize===void 0||e.batchSize<=0?s.push({level:U.Warn,message:`Invalid batchSize %s, defaulting to %s`,params:[e.batchSize,l]}):d=e.batchSize,new t({eventDispatcher:n,closingEventDispatcher:r,dispatchRepeater:new Np(u),failedEventRepeater:e.failedEventRetryInterval?new Np(e.failedEventRetryInterval):void 0,retryConfig:o,batchSize:d,eventStore:a,startupLogs:s})})(e,t)),bm=class{constructor(e,t){this.operation=`sync`,this.data=new Map,this.maxSize=e,this.ttl=t}lookup(e){let t=this.data.get(e);if(t&&(this.data.delete(e),!(t.expiresAt&&t.expiresAt<=Date.now())))return this.data.set(e,t),t.value}save(e,t){if(this.data.delete(e),this.data.size===this.maxSize){let e=this.data.keys().next().value;this.data.delete(e)}this.data.set(e,{value:t,expiresAt:this.ttl?Date.now()+this.ttl:void 0})}remove(e){this.data.delete(e)}reset(){this.data.clear()}getKeys(){return Array.from(this.data.keys())}},xm,Sm;(function(e){e.VUID=`vuid`,e.FS_USER_ID=`fs_user_id`,e.FS_USER_ID_ALIAS=`fs-user-id`})(xm||={}),function(e){e.IDENTIFIED=`identified`,e.INITIALIZED=`client_initialized`}(Sm||={});var Cm=class{constructor(e,t,n,r){this.type=e,this.action=t,this.identifiers=n??new Map,this.data=r??new Map}},wm=`vuid_`,Tm=e=>e.startsWith(wm)&&e.length>5,Em;(function(e){e.IGNORE_CACHE=`IGNORE_CACHE`,e.RESET_CACHE=`RESET_CACHE`})(Em||={});var Dm=Symbol(),Om=Symbol(),km=class{constructor(e,t){this.logger=e,this.errorNotifier=t}report(e,...t){if(typeof e==`string`)return e=new V(e,...t),void this.report(e);this.errorNotifier&&this.errorNotifier.notify(e),this.logger&&this.logger.error(e)}setLogger(e){this.logger=e}setErrorNotifier(e){this.errorNotifier=e}},Am=class{constructor(e){this.removerId=1,this.eventEmitter=new Op,this.removers=new Map,this.errorReporter=new km(e.logger,e.errorNotifier)}addNotificationListener(e,t){if(!(hf(nm).indexOf(e)>-1))return-1;let n=this.removerId++,r=this.eventEmitter.on(e,this.wrapWithErrorReporting(e,t));return this.removers.set(n,r),n}wrapWithErrorReporting(e,t){return n=>{try{t(n)}catch(t){let n=t instanceof Error?t.message:String(t);this.errorReporter.report(`32`,e,n)}}}removeNotificationListener(e){let t=this.removers.get(e);return!!t&&(t(),!0)}clearAllNotificationListeners(){this.eventEmitter.removeAllListeners()}clearNotificationListeners(e){this.eventEmitter.removeListeners(e)}sendNotifications(e,t){this.eventEmitter.emit(e,t)}};function jm(e,t,n){return{variationKey:null,enabled:!1,variables:{},ruleKey:null,flagKey:e,userContext:t,reasons:n}}var Mm=`$opt_null_rule_key`,Nm=class e{constructor({optimizely:e,userId:t,attributes:n}){this._qualifiedSegments=null,this.optimizely=e,this.userId=t,this.attributes=Object.assign({},n),this.forcedDecisionsMap={}}setAttribute(e,t){this.attributes[e]=t}getUserId(){return this.userId}getAttributes(){return Object.assign({},this.attributes)}getOptimizely(){return this.optimizely}get qualifiedSegments(){return this._qualifiedSegments}set qualifiedSegments(e){this._qualifiedSegments=e}decide(e,t=[]){return this.optimizely.decide(this.cloneUserContext(),e,t)}decideAsync(e,t){return this.optimizely.decideAsync(this.cloneUserContext(),e,t)}decideForKeys(e,t=[]){return this.optimizely.decideForKeys(this.cloneUserContext(),e,t)}decideForKeysAsync(e,t){return this.optimizely.decideForKeysAsync(this.cloneUserContext(),e,t)}decideAll(e=[]){return this.optimizely.decideAll(this.cloneUserContext(),e)}decideAllAsync(e=[]){return this.optimizely.decideAllAsync(this.cloneUserContext(),e)}trackEvent(e,t){this.optimizely.track(e,this.userId,this.attributes,t)}setForcedDecision(e,t){let n=e.flagKey,r=e.ruleKey??Mm,i={variationKey:t.variationKey};return this.forcedDecisionsMap[n]||(this.forcedDecisionsMap[n]={}),this.forcedDecisionsMap[n][r]=i,!0}getForcedDecision(e){return this.findForcedDecision(e)}removeForcedDecision(e){let t=e.ruleKey??Mm,n=e.flagKey,r=!1;return this.forcedDecisionsMap.hasOwnProperty(n)&&(this.forcedDecisionsMap[n].hasOwnProperty(t)&&(delete this.forcedDecisionsMap[n][t],r=!0),Object.keys(this.forcedDecisionsMap[n]).length===0&&delete this.forcedDecisionsMap[n]),r}removeAllForcedDecisions(){return this.forcedDecisionsMap={},!0}findForcedDecision(e){let t,n=e.ruleKey??Mm,r=e.flagKey;if(this.forcedDecisionsMap.hasOwnProperty(e.flagKey)){let e=this.forcedDecisionsMap[r];if(e.hasOwnProperty(n))return t=e[n].variationKey,{variationKey:t}}return null}cloneUserContext(){let t=new e({optimizely:this.getOptimizely(),userId:this.getUserId(),attributes:this.getAttributes()});return Object.keys(this.forcedDecisionsMap).length>0&&(t.forcedDecisionsMap=Object.assign({},this.forcedDecisionsMap)),t._qualifiedSegments=this._qualifiedSegments,t}fetchQualifiedSegments(e){return K(this,void 0,void 0,function*(){let t=yield this.optimizely.fetchQualifiedSegments(this.userId,e);
37return this.qualifiedSegments=t,t!==null})}isQualifiedFor(e){return!!this._qualifiedSegments&&this._qualifiedSegments.indexOf(e)>-1}},Pm=2**32,Fm=function(e){try{let t=uf.default.v3(e,1)/Pm;return Math.floor(1e4*t)}catch(t){throw new V(`14`,e,t.message)}},Im=`User %s is not in any experiment of group %s.`,Lm=`User %s is not in experiment %s of group %s.`,Rm=`User %s is in experiment %s of group %s.`,zm=`Assigned bucket %s to user with bucketing ID %s.`,Bm=`Bucketed into an invalid variation ID. Returning null.`,Vm=function(e){var t,n,r,i,a;let o=[],s=e.experimentIdMap[e.experimentId]?.groupId;if(s){let i=e.groupIdMap[s];if(!i)throw new V(`23`,s);if(i.policy===`random`){let a=Hm(i,e.bucketingId,e.userId,e.logger);if(a===null)return(t=e.logger)==null||t.info(Im,e.userId,s),o.push([Im,e.userId,s]),{result:null,reasons:o};if(a!==e.experimentId)return(n=e.logger)==null||n.info(Lm,e.userId,e.experimentKey,s),o.push([Lm,e.userId,e.experimentKey,s]),{result:null,reasons:o};(r=e.logger)==null||r.info(Rm,e.userId,e.experimentKey,s),o.push([Rm,e.userId,e.experimentKey,s])}}let c=Fm(`${e.bucketingId}${e.experimentId}`);(i=e.logger)==null||i.debug(zm,c,e.userId),o.push([zm,c,e.userId]);let l=Um(c,e.trafficAllocationConfig);return e.validateEntity&&l!==null&&!e.variationIdMap[l]?(l&&((a=e.logger)==null||a.warn(Bm),o.push([Bm])),{result:null,reasons:o}):{result:l,reasons:o}},Hm=function(e,t,n,r){let i=Fm(`${t}${e.id}`);r?.debug(zm,i,n);let a=e.trafficAllocation;return Um(i,a)},Um=function(e,t){for(let n=0;n<t.length;n++)if(e<t[n].endOfRange)return t[n].entityId;return null};function Wm(e){return/^\d+$/.test(e)}function Gm(e){let t=e.indexOf(`-`),n=e.indexOf(`+`);return!(t<0)&&(n<0||t<n)}function Km(e){let t=e.indexOf(`-`),n=e.indexOf(`+`);return!(n<0)&&(t<0||n<t)}function qm(e,t){let n=e,r=``;if(function(e){return/\s/.test(e)}(e))return t?.warn(Tf,e),null;if(Gm(e)?(n=e.substring(0,e.indexOf(`-`)),r=e.substring(e.indexOf(`-`)+1)):Km(e)&&(n=e.substring(0,e.indexOf(`+`)),r=e.substring(e.indexOf(`+`)+1)),typeof n!=`string`||typeof r!=`string`)return null;let i=n.split(`.`).length-1;if(i>2)return t?.warn(Tf,e),null;let a=n.split(`.`);if(a.length!=i+1)return t?.warn(Tf,e),null;for(let n of a)if(!Wm(n))return t?.warn(Tf,e),null;return r&&a.push(r),a}var Jm=`exact`,Ym=`exists`,Xm=`semver_eq`,Zm=`semver_ge`,Qm=`semver_gt`,$m=`semver_le`,eh=`semver_lt`,th=`substring`,nh=[Jm,Ym,`gt`,`ge`,`lt`,`le`,th,Xm,eh,$m,Qm,Zm],rh={};rh[Jm]=oh,rh[Ym]=function(e,t,n){return t.getAttributes()[e.name]!=null},rh.gt=function(e,t,n){let r=t.getAttributes()[e.name],i=e.value;return!sh(e,t,n)||i===null?null:r>i},rh.ge=function(e,t,n){let r=t.getAttributes()[e.name],i=e.value;return!sh(e,t,n)||i===null?null:r>=i},rh.lt=function(e,t,n){let r=t.getAttributes()[e.name],i=e.value;return!sh(e,t,n)||i===null?null:r<i},rh.le=function(e,t,n){let r=t.getAttributes()[e.name],i=e.value;return!sh(e,t,n)||i===null?null:r<=i},rh[th]=function(e,t,n){let r=t.getAttributes(),i=e.name,a=r[e.name],o=typeof a,s=e.value;return typeof s==`string`?a===null?(n?.debug(Mf,JSON.stringify(e),i),null):typeof a==`string`?a.indexOf(s)!==-1:(n?.warn(wf,JSON.stringify(e),o,i),null):(n?.warn(Cf,JSON.stringify(e)),null)},rh[Xm]=function(e,t,n){let r=ch(e,t,n);return r===null?null:r===0},rh[Qm]=function(e,t,n){let r=ch(e,t,n);return r===null?null:r>0},rh[Zm]=function(e,t,n){let r=ch(e,t,n);return r===null?null:r>=0},rh[eh]=function(e,t,n){let r=ch(e,t,n);return r===null?null:r<0},rh[$m]=function(e,t,n){let r=ch(e,t,n);return r===null?null:r<=0};var ih=e=>({evaluate:(t,n)=>function(e,t,n){let r=t.getAttributes(),i=e.match;if(i!==void 0&&nh.indexOf(i)===-1)return n?.warn(Tf,JSON.stringify(e)),null;let a=e.name;if(!r.hasOwnProperty(a)&&i!=Ym)return n?.debug(`18`,JSON.stringify(e),a),null;let o;return o=i&&rh[i]||oh,o(e,t,n)}(t,n,e)});function ah(e){return typeof e==`string`||typeof e==`boolean`||yf.isNumber(e)}function oh(e,t,n){let r=t.getAttributes(),i=e.value,a=typeof i,o=e.name,s=r[o],c=typeof s;return!ah(i)||yf.isNumber(i)&&!yf.isSafeInteger(i)?(n?.warn(Cf,JSON.stringify(e)),null):s===null?(n?.debug(Mf,JSON.stringify(e),o),null):ah(s)&&a===c?yf.isNumber(s)&&!yf.isSafeInteger(s)?(n?.warn(`47`,JSON.stringify(e),o),null):i===s:(n?.warn(wf,JSON.stringify(e),c,o),null)}
37function sh(e,t,n){let r=t.getAttributes(),i=e.name,a=r[i],o=typeof a,s=e.value;return s!==null&&yf.isSafeInteger(s)?a===null?(n?.debug(Mf,JSON.stringify(e),i),!1):yf.isNumber(a)?!!yf.isSafeInteger(a)||(n?.warn(`47`,JSON.stringify(e),i),!1):(n?.warn(wf,JSON.stringify(e),o,i),!1):(n?.warn(Cf,JSON.stringify(e)),!1)}function ch(e,t,n){let r=t.getAttributes(),i=e.name,a=r[i],o=typeof a,s=e.value;return typeof s==`string`?a===null?(n?.debug(Mf,JSON.stringify(e),i),null):typeof a==`string`?function(e,t,n){let r=qm(t,n),i=qm(e,n);if(!r||!i)return null;let a=r.length;for(let n=0;n<i.length;n++){if(a<=n)return Gm(e)||Km(e)?1:-1;if(Wm(r[n])){let e=parseInt(r[n]),t=parseInt(i[n]);if(e>t)return 1;if(e<t)return-1}else{if(r[n]<i[n])return Gm(e)&&!Gm(t)?1:-1;if(r[n]>i[n])return!Gm(e)&&Gm(t)?-1:1}}return Gm(t)&&!Gm(e)?-1:0}(s,a,n):(n?.warn(wf,JSON.stringify(e),o,i),null):(n?.warn(Cf,JSON.stringify(e)),null)}var lh=`qualified`,uh=[lh],dh={};dh[lh]=ph;var fh=e=>({evaluate:(t,n)=>function(e,t,n){let r=e.match;if(r!==void 0&&uh.indexOf(r)===-1)return n?.warn(Tf,JSON.stringify(e)),null;let i;return i=r&&dh[r]||ph,i(e,t)}(t,n,e)});function ph(e,t){return t.isQualifiedFor(e.value)}var mh=class{constructor(e,t){this.logger=t,this.typeToEvaluatorMap=Object.assign(Object.assign({},e),{custom_attribute:ih(this.logger),third_party_dimension:fh(this.logger)})}evaluate(e,t,n){return!e||e.length===0||!!Gf(e,e=>{var r,i;let a=t[e];if(a){(r=this.logger)==null||r.debug(`5`,e,JSON.stringify(a.conditions));let t=Gf(a.conditions,this.evaluateConditionWithUserAttributes.bind(this,n)),o=t===null?`UNKNOWN`:t.toString().toUpperCase();return(i=this.logger)==null||i.debug(`1`,e,o),t}return null})}evaluateConditionWithUserAttributes(e,t){var n,r;let i=this.typeToEvaluatorMap[t.type];if(!i)return(n=this.logger)==null||n.warn(`62`,JSON.stringify(t)),null;try{return i.evaluate(t,e)}catch(e){(r=this.logger)==null||r.error(`2`,t.type,e.message)}return null}};function hh(e){return typeof e==`string`&&e!==``}var q=class e{constructor(e,t){this.op=e,this.val=t}get(){return this.val}then(t){if(this.op===`sync`){let n=t(this.val);return e.of(this.op,n.get())}return e.of(this.op,this.val.then(t))}static of(t,n){if(t===`sync`){if((e=>e&&typeof e.then==`function`)(n))throw new V(`Promise value is not allowed in sync operation`);return new e(t,n)}return new e(t,Promise.resolve(n))}};q.all=(e,t)=>{if(e===`sync`){let n=t.map(e=>e.get());return q.of(e,n)}let n=t.map(e=>e.get());return q.of(e,Promise.all(n))};var gh=`Experiment %s is not running.`,_h=`Returning previously activated variation "%s" of experiment "%s" for user "%s" from user profile.`,vh=`User %s does not meet conditions to be in experiment %s.`,yh=`User %s is in no variation of experiment %s.`,bh=`User %s is in variation %s of experiment %s.`,xh=`User %s is forced in variation %s.`,Sh=`Variation key %s is not in datafile. Not activating user %s.`,Ch=`Evaluating audiences for %s "%s": %s.`,wh=`Audiences for %s %s collectively evaluated to %s.`,Th=`User %s is in rollout of feature %s.`,Eh=`User %s is not in rollout of feature %s.`,Dh=`Feature %s is not attached to any experiments.`,Oh=`User %s does not meet conditions for targeting rule %s.`,kh=`User %s not bucketed into targeting rule %s due to traffic allocation. Trying everyone rule.`,Ah=`User %s bucketed into targeting rule %s.`,jh=`There is no rollout of feature %s.`,Mh=`Invalid rollout ID %s attached to feature %s`,Nh=`Rollout of feature %s has no experiments`,Ph=`Experiment key %s is improperly formatted.`,Fh=`Variation %s is mapped to experiment %s and user %s in the forced variation map.`,Ih=`User %s meets conditions for targeting rule %s.`,Lh=`Variation (%s) is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.`,Rh=`Variation (%s) is mapped to flag (%s) and user (%s) in the forced decision map.`,zh=`Invalid variation is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.`,Bh=`Invalid variation is mapped to flag (%s) and user (%s) in the forced decision map.`,Vh=`Failed to fetch CMAB data for experiment %s.`,Hh=`Holdout %s is not running.`,Uh=`User %s meets conditions for holdout %s.`,Wh=`User %s does not meet conditions for holdout %s.`,Gh=`User %s is in variation %s of holdout %s.`,Kh=`User %s is in no holdout variation.`,qh=class{constructor(e){var t,n,r;this.logger=e.logger,(t=this.logger)==null||t.setName(`DecisionService`),this.audienceEvaluator=(n=e.UNSTABLE_conditionEvaluators,r=this.logger,new mh(n,r)),this.forcedVariationMap={},this.userProfileService=e.userProfileService,this.userProfileServiceAsync=e.userProfileServiceAsync,this.cmabService=e.cmabService}isCmab(e){return!!e.cmab}resolveVariation(e,t,n,r,i,a){var o,s,c;let l=r.getUserId(),u=n.key;if(!function(e,t){return vp(e,t)===lp}(t,u))return(o=this.logger)==null||o.info(gh,u),q.of(e,{result:{},reasons:[[gh,u]]});let d=[],f=this.getForcedVariation(t,u,l);d.push(...f.reasons);let p=f.result;if(p)return q.of(e,{result:{variationKey:p},reasons:d});let m=this.getWhitelistedVariation(n,l);d.push(...m.reasons);let h=m.result;if(h)return q.of(e,{result:{variationKey:h.key},reasons:d});if(a&&(h=this.getStoredVariation(t,n,l,a.userProfile),h))return(s=this.logger)==null||s.info(_h,h.key,u,l),d.push([_h,h.key,u,l]),q.of(e,{result:{variationKey:h.key},reasons:d});let g=this.checkIfUserIsInAudience(t,n,ep,r,``);return d.push(...g.reasons),g.result?(this.isCmab(n)?this.getDecisionFor
37CmabExperiment(e,t,n,r,i):this.getDecisionFromBucketer(e,t,n,r)).then(r=>{var i,o;if(d.push(...r.reasons),r.error)return q.of(e,{error:!0,result:{},reasons:d});let s=r.result.variationId;return h=s?t.variationIdMap[s]:null,h?((o=this.logger)==null||o.info(bh,l,h.key,u),d.push([bh,l,h.key,u]),a&&!this.isCmab(n)&&this.updateUserProfile(n,h,a),q.of(e,{result:{variationKey:h.key,cmabUuid:r.result.cmabUuid},reasons:d})):((i=this.logger)==null||i.debug(yh,l,u),d.push([yh,l,u]),q.of(e,{result:{},reasons:d}))}):((c=this.logger)==null||c.info(vh,l,u),d.push([vh,l,u]),q.of(e,{result:{},reasons:d}))}getDecisionForCmabExperiment(e,t,n,r,i){if(e===`sync`)return q.of(e,{error:!1,result:{},reasons:[[`CMAB is not supported in sync mode.`]]});let a=r.getUserId(),o=r.getAttributes(),s=this.getBucketingId(a,o),c=Vm(this.buildBucketerParams(t,n,s,a));if(c.result!==`$`)return q.of(e,{error:!1,result:{},reasons:c.reasons});let l=this.cmabService.getDecision(t,r,n.id,i).then(e=>({error:!1,result:e,reasons:[]})).catch(e=>{var t;return(t=this.logger)==null||t.error(Vh,n.key),{error:!0,result:{},reasons:[[Vh,n.key]]}});return q.of(e,l)}getDecisionFromBucketer(e,t,n,r){let i=r.getUserId(),a=r.getAttributes(),o=this.getBucketingId(i,a),s=Vm(this.buildBucketerParams(t,n,o,i));return q.of(e,{result:{variationId:s.result||void 0},reasons:s.reasons})}getVariation(e,t,n,r={}){let i=r[im.IGNORE_USER_PROFILE_SERVICE]?void 0:{isProfileUpdated:!1,userProfile:this.resolveExperimentBucketMap(`sync`,n.getUserId(),n.getAttributes()).get()},a=this.resolveVariation(`sync`,e,t,n,r,i).get();return i&&this.saveUserProfile(`sync`,n.getUserId(),i),{result:a.result.variationKey||null,reasons:a.reasons}}resolveExperimentBucketMap(e,t,n={}){let r=n[Yf]||{};return this.getUserProfile(e,t).then(t=>{let n=t?.experiment_bucket_map||{};return q.of(e,Object.assign(Object.assign({},n),r))})}getWhitelistedVariation(e,t){var n,r;let i=[];if(e.forcedVariations&&e.forcedVariations.hasOwnProperty(t)){let a=e.forcedVariations[t];return e.variationKeyMap.hasOwnProperty(a)?((n=this.logger)==null||n.info(xh,t,a),i.push([xh,t,a]),{result:e.variationKeyMap[a],reasons:i}):((r=this.logger)==null||r.error(Sh,a,t),i.push([Sh,a,t]),{result:null,reasons:i})}return{result:null,reasons:i}}checkIfUserIsInAudience(e,t,n,r,i){var a,o;let s=[],c=t.audienceConditions||t.audienceIds,l=e.audiencesById;(a=this.logger)==null||a.debug(Ch,n,i||t.key,JSON.stringify(c)),s.push([Ch,n,i||t.key,JSON.stringify(c)]);let u=this.audienceEvaluator.evaluate(c,l,r);return(o=this.logger)==null||o.info(wh,n,i||t.key,u.toString().toUpperCase()),s.push([wh,n,i||t.key,u.toString().toUpperCase()]),{result:u,reasons:s}}buildBucketerParams(e,t,n,r){let i=!0,a=t.trafficAllocation;return`cmab`in t&&t.cmab&&(a=[{entityId:`$`,endOfRange:t.cmab.trafficAllocation}],i=!1),{bucketingId:n,experimentId:t.id,experimentKey:t.key,experimentIdMap:e.experimentIdMap,experimentKeyMap:e.experimentKeyMap,groupIdMap:e.groupIdMap,logger:this.logger,trafficAllocationConfig:a,userId:r,variationIdMap:e.variationIdMap,validateEntity:i}}getVariationForHoldout(e,t,n){var r,i,a,o,s;let c=n.getUserId(),l=[];if(t.status!==`Running`){let e=[Hh,t.key];return l.push(e),(r=this.logger)==null||r.info(Hh,t.key),{result:{experiment:null,variation:null,decisionSource:W.HOLDOUT},reasons:l}}let u=this.checkIfUserIsInAudience(e,t,ep,n);if(l.push(...u.reasons),!u.result){let e=[Wh,c,t.key];return l.push(e),(i=this.logger)==null||i.info(Wh,c,t.key),{result:{experiment:null,variation:null,decisionSource:W.HOLDOUT},reasons:l}}let d=[Uh,c,t.key];l.push(d),(a=this.logger)==null||a.info(Uh,c,t.key);let f=n.getAttributes(),p=this.getBucketingId(c,f),m=Vm(this.buildBucketerParams(e,t,p,c));if(l.push(...m.reasons),m.result){let n=e.variationIdMap[m.result];if(n){let e=[Gh,c,t.key,n.key];return l.push(e),(o=this.logger)==null||o.info(Gh,c,t.key,n.key),{result:{experiment:t,variation:n,decisionSource:W.HOLDOUT},reasons:l}}}let h=[Kh,c];return l.push(h),(s=this.logger)==null||s.info(Kh,c),{result:{experiment:null,variation:null,decisionSource:W.HOLDOUT},reasons:l}}getStoredVariation(e,t,n,r){var i;if(r?.hasOwnProperty(t.id)){let a=r[t.id],o=a.variation_id;if(e.variationIdMap.hasOwnProperty(o))return e.variationIdMap[a.variation_id];(i=this.logger)==null||i.info(`27`,n,o,t.key)}return null}getUserProfile(e,t){var n;let r={user_id:t,experiment_bucket_map:{}};if(this.userProfileService){try{return q.of(e,this.userProfileService.lookup(t))}catch(e){(n=this.logger)==null||n.error(`68`,t,e.message)}return q.of(e,r)}return this.userProfileServiceAsync&&e===`async`?q.of(e,this.userProfileServiceAsync.lookup(t).catch(e=>{var n;return(n=this.logger)==null||n.error(`68`,t,e.message),r})):q.of(e,r)}updateUserProfile(e,t,n){n.userProfile&&(n.userProfile[e.id]={variation_id:t.
37id},n.isProfileUpdated=!0)}saveUserProfile(e,t,n){var r,i;let{userProfile:a,isProfileUpdated:o}=n;if(!a||!o||e===`sync`&&!this.userProfileService)return q.of(e,void 0);if(this.userProfileService){try{this.userProfileService.save({user_id:t,experiment_bucket_map:a}),(r=this.logger)==null||r.info(`26`,t)}catch(e){(i=this.logger)==null||i.error(`69`,t,e.message)}return q.of(e,void 0)}return this.userProfileServiceAsync?q.of(e,this.userProfileServiceAsync.save({user_id:t,experiment_bucket_map:a}).catch(e=>{var n;(n=this.logger)==null||n.error(`69`,t,e.message)})):q.of(e,void 0)}getVariationsForFeatureList(e,t,n,r={}){return this.resolveVariationsForFeatureList(`sync`,e,t,n,r).get()}resolveVariationsForFeatureList(e,t,n,r,i){let a=r.getUserId(),o=r.getAttributes();return(i[im.IGNORE_USER_PROFILE_SERVICE]?q.of(e,void 0):this.resolveExperimentBucketMap(e,a,o).then(t=>q.of(e,{isProfileUpdated:!1,userProfile:t}))).then(o=>{let s=n.map(n=>this.resolveVariationForFlag(e,t,n,r,i,o)),c=q.all(e,s);return c.then(()=>(o&&this.saveUserProfile(e,a,o),c))})}resolveVariationForFlag(e,t,n,r,i,a){let o=[],s=this.findValidatedForcedDecision(t,r,n.key);if(o.push(...s.reasons),s.result)return q.of(e,{result:{variation:s.result,experiment:null,decisionSource:W.FEATURE_TEST},reasons:o});let c=t.holdouts;for(let n of c){let i=this.getVariationForHoldout(t,n,r);if(o.push(...i.reasons),i.result.variation)return q.of(e,{result:i.result,reasons:o})}return this.getVariationForFeatureExperiment(e,t,n,r,i,a).then(i=>{var a,s;if(i.error||i.result.variation!==null)return q.of(e,Object.assign(Object.assign({},i),{reasons:[...o,...i.reasons]}));o.push(...i.reasons);let c=this.getVariationForRollout(t,n,r);o.push(...c.reasons);let l=c.result,u=r.getUserId();return l.variation?((a=this.logger)==null||a.debug(Th,u,n.key),o.push([Th,u,n.key])):((s=this.logger)==null||s.debug(Eh,u,n.key),o.push([Eh,u,n.key])),q.of(e,{result:l,reasons:o})})}getVariationForFeature(e,t,n,r={}){return this.resolveVariationsForFeatureList(`sync`,e,[t],n,r).get()[0]}getVariationForFeatureExperiment(e,t,n,r,i,a){var o;return n.experimentIds.length===0?((o=this.logger)==null||o.debug(Dh,n.key),q.of(e,{result:{experiment:null,variation:null,decisionSource:W.FEATURE_TEST},reasons:[[Dh,n.key]]})):this.traverseFeatureExperimentList(e,t,n,0,r,[],i,a)}traverseFeatureExperimentList(e,t,n,r,i,a,o,s){let c=n.experimentIds;if(r>=c.length)return q.of(e,{result:{experiment:null,variation:null,decisionSource:W.FEATURE_TEST},reasons:a});let l=function(e,t,n){if(e.experimentIdMap.hasOwnProperty(t)){let n=e.experimentIdMap[t];if(n)return n}return n?.error(`21`,t),null}(t,c[r],this.logger);return l?this.getVariationFromExperimentRule(e,t,n.key,l,i,o,s).then(c=>{if(a.push(...c.reasons),c.holdoutDecision)return q.of(e,{result:c.result,reasons:a});if(c.error)return q.of(e,{error:!0,result:{experiment:l,variation:null,decisionSource:W.FEATURE_TEST},reasons:a});if(!c.result.variationKey)return this.traverseFeatureExperimentList(e,t,n,r+1,i,a,o,s);let u=c.result.variationKey,d=l.variationKeyMap[u];return d||=bp(t,n.key,u),q.of(e,{result:{cmabUuid:c.result.cmabUuid,experiment:l,variation:d,decisionSource:W.FEATURE_TEST},reasons:a})}):this.traverseFeatureExperimentList(e,t,n,r+1,i,a,o,s)}getVariationForRollout(e,t,n){var r,i,a;let o=[];if(!t.rolloutId)return(r=this.logger)==null||r.debug(jh,t.key),o.push([jh,t.key]),{result:{experiment:null,variation:null,decisionSource:W.ROLLOUT},reasons:o};let s=e.rolloutIdMap[t.rolloutId];if(!s)return(i=this.logger)==null||i.error(Mh,t.rolloutId,t.key),o.push([Mh,t.rolloutId,t.key]),{result:{experiment:null,variation:null,decisionSource:W.ROLLOUT},reasons:o};let c=s.experiments;if(c.length===0)return(a=this.logger)==null||a.error(Nh,t.rolloutId),o.push([Nh,t.rolloutId]),{result:{experiment:null,variation:null,decisionSource:W.ROLLOUT},reasons:o};let l=0;for(;l<c.length;){let r=this.getVariationFromDeliveryRule(e,t.key,c,l,n);if(o.push(...r.reasons),r.holdoutDecision)return{reasons:o,result:r.result};let i=r.result,a=r.skipToEveryoneElse;if(i)return{result:{experiment:e.experimentIdMap[c[l].id],variation:i,decisionSource:W.ROLLOUT},reasons:o};l=a?c.length-1:l+1}return{result:{experiment:null,variation:null,decisionSource:W.ROLLOUT},reasons:o}}getBucketingId(e,t){var n,r;let i=e;return typeof t==`object`&&t&&t.hasOwnProperty(Jf)&&(typeof t[Jf]==`string`?(i=String(t[Jf]),(n=this.logger)==null||n.debug(`38`,i)):(r=this.logger)==null||r.warn(`0`)),i}findValidatedForcedDecision(e,t,n,r){var i,a,o,s;let c=[],l=t.getForcedDecision({flagKey:n,ruleKey:r}),u,d=null,f=t.getUserId();return e&&l&&(u=l.variationKey,d=bp(e,n,u),d?r?((i=this.logger)==null||i.info(Lh,u,n,r,f),c.push([Lh,u,n,r,f])):((a=this.logger)==null||a.info(Rh,u,n,f),c.push([Rh,u,n,f])):r?((o=this.logger)==null||o.info(zh,n,r,f),c.push([zh,n,r,f])):((s=this.logger)==null||s.info(Bh,n,f),c.push([Bh,n,f]))),{result:d,reasons:c}}removeForcedVariation(e,t,n){var r;if(!e)throw new V(`27`);if(!this.forcedVariationMap.hasOwnProperty(e))throw new V(`67`,e);delete this.forcedVariationMap[e][t],(r=this.logger)==null||r.debug(`42`,n,e)}
37setInForcedVariationMap(e,t,n){var r;this.forcedVariationMap.hasOwnProperty(e)||(this.forcedVariationMap[e]={}),this.forcedVariationMap[e][t]=n,(r=this.logger)==null||r.debug(`35`,n,t,e)}getForcedVariation(e,t,n){var r,i,a,o,s,c;let l=[],u=this.forcedVariationMap[n];if(!u)return(r=this.logger)==null||r.debug(`33`,n),{result:null,reasons:l};let d;try{let n=yp(e,t);if(!n.hasOwnProperty(`id`))return(i=this.logger)==null||i.error(Ph,t),l.push([Ph,t]),{result:null,reasons:l};d=n.id}catch(e){return(a=this.logger)==null||a.error(e),l.push(e.message),{result:null,reasons:l}}let f=u[d];if(!f)return(o=this.logger)==null||o.debug(`34`,t,n),{result:null,reasons:l};let p=function(e,t){return e.variationIdMap.hasOwnProperty(t)?e.variationIdMap[t].key:null}(e,f);return p?((s=this.logger)==null||s.debug(Fh,p,t,n),l.push([Fh,p,t,n])):(c=this.logger)==null||c.debug(`34`,t,n),{result:p,reasons:l}}setForcedVariation(e,t,n,r){var i,a,o,s,c,l;if(r!=null&&!hh(r))return(i=this.logger)==null||i.error(`29`),!1;let u;try{let n=yp(e,t);if(!n.hasOwnProperty(`id`))return(a=this.logger)==null||a.error(Ph,t),!1;u=n.id}catch(e){return(o=this.logger)==null||o.error(e),!1}if(r==null)try{return this.removeForcedVariation(n,u,t),!0}catch(e){return(s=this.logger)==null||s.error(e),!1}let d=function(e,t,n){let r=e.experimentKeyMap[t];return r.variationKeyMap.hasOwnProperty(n)?r.variationKeyMap[n].id:null}(e,t,r);if(!d)return(c=this.logger)==null||c.error(`39`,r,t),!1;try{return this.setInForcedVariationMap(n,u,d),!0}catch(e){return(l=this.logger)==null||l.error(e),!1}}getVariationFromExperimentRule(e,t,n,r,i,a,o){let s=[],c=this.findValidatedForcedDecision(t,i,n,r.key);s.push(...c.reasons);let l=c.result;if(l)return q.of(e,{result:{variationKey:l.key},reasons:s});let u=hp(t,r.id);for(let n of u){let r=this.getVariationForHoldout(t,n,i);if(s.push(...r.reasons),r.result.variation)return q.of(e,{result:r.result,reasons:s,holdoutDecision:!0})}return this.resolveVariation(e,t,r,i,a,o).then(t=>(s.push(...t.reasons),q.of(e,{error:t.error,result:t.result,reasons:s})))}getVariationFromDeliveryRule(e,t,n,r,i){var a,o,s,c;let l=[],u=!1,d=n[r],f=this.findValidatedForcedDecision(e,i,t,d.key);l.push(...f.reasons);let p=f.result;if(p)return{result:p,reasons:l,skipToEveryoneElse:u};let m=hp(e,d.id);for(let t of m){let n=this.getVariationForHoldout(e,t,i);if(l.push(...n.reasons),n.result.variation)return{result:n.result,reasons:l,holdoutDecision:!0}}let h=i.getUserId(),g=i.getAttributes(),_=this.getBucketingId(h,g),v=r===n.length-1,y=v?`Everyone Else`:r+1,b,x,S,C=null,w=this.checkIfUserIsInAudience(e,d,$f,i,y);var ee,T;return l.push(...w.reasons),w.result?((a=this.logger)==null||a.debug(Ih,h,y),l.push([Ih,h,y]),x=this.buildBucketerParams(e,d,_,h),S=Vm(x),l.push(...S.reasons),b=S.result,b&&(T=b,C=(ee=e).variationIdMap.hasOwnProperty(T)?ee.variationIdMap[T]:null),C?((o=this.logger)==null||o.debug(Ah,h,y),l.push([Ah,h,y])):v||((s=this.logger)==null||s.debug(kh,h,y),l.push([kh,h,y]),u=!0)):((c=this.logger)==null||c.debug(Oh,h,y),l.push([Oh,h,y])),{result:C,reasons:l,skipToEveryoneElse:u}}},Jh=class extends Dp{constructor(e){var t,n,r,i,a,o,s,c,l;super(),this.cleanupTasks=new Map,this.nextCleanupTaskId=0;let u=e.clientEngine;u||=((t=e.logger)==null||t.info(`13`,u),`node-sdk`),this.clientEngine=u,this.clientVersion=e.clientVersion||Zf,this.errorNotifier=e.errorNotifier,this.logger=e.logger,this.projectConfigManager=e.projectConfigManager,this.errorReporter=new km(this.logger,this.errorNotifier),this.odpManager=e.odpManager,this.vuidManager=e.vuidManager,this.eventProcessor=e.eventProcessor,e.disposable&&(this.projectConfigManager.makeDisposable(),(n=this.eventProcessor)==null||n.makeDisposable(),(r=this.odpManager)==null||r.makeDisposable()),this.logger&&(this.projectConfigManager.setLogger(this.logger.child()),(i=this.eventProcessor)==null||i.setLogger(this.logger.child()),(a=this.odpManager)==null||a.setLogger(this.logger.child()));let d=e.defaultDecideOptions??[];Array.isArray(d)||((o=this.logger)==null||o.debug(`15`),d=[]);let f={},p;if(d.forEach(e=>{var t;im[e]?f[e]=!0:(t=this.logger)==null||t.warn(`65`,e)}),this.defaultDecideOptions=f,this.projectConfigManager=e.projectConfigManager,this.projectConfigManager.onUpdate(e=>{var t;(t=this.logger)==null||t.info(`32`,e.revision,e.projectId),this.notificationCenter.sendNotifications(nm.OPTIMIZELY_CONFIG_UPDATE,void 0),this.updateOd
37pSettings()}),this.eventProcessor=e.eventProcessor,(s=this.eventProcessor)==null||s.onDispatch(e=>{this.notificationCenter.sendNotifications(nm.LOG_EVENT,e)}),this.odpManager=e.odpManager,e.userProfileService)try{(function(e){if(typeof e==`object`&&e){if(typeof e.lookup!=`function`)throw new V(xf,`Missing function 'lookup'`);if(typeof e.save!=`function`)throw new V(xf,`Missing function 'save'`);return!0}throw new V(xf,`Not an object`)})(e.userProfileService)&&(p=e.userProfileService,(c=this.logger)==null||c.info(`40`))}catch(e){(l=this.logger)==null||l.warn(e)}var m;this.decisionService=(m={userProfileService:p,userProfileServiceAsync:e.userProfileServiceAsync||void 0,cmabService:e.cmabService,logger:this.logger?.child(),UNSTABLE_conditionEvaluators:e.UNSTABLE_conditionEvaluators},new qh(m)),this.notificationCenter=function(e){return new Am(e)}({logger:this.logger,errorNotifier:this.errorNotifier}),this.start()}start(){var e,t;this.isNew()&&(super.start(),this.state=G.Starting,this.projectConfigManager.start(),(e=this.eventProcessor)==null||e.start(),(t=this.odpManager)==null||t.start(),Promise.all([this.projectConfigManager.onRunning(),this.eventProcessor?this.eventProcessor.onRunning():Promise.resolve(),this.odpManager?this.odpManager.onRunning():Promise.resolve(),this.vuidManager?this.vuidManager.initialize():Promise.resolve()]).then(()=>{var e;this.state=G.Running,this.startPromise.resolve();let t=this.vuidManager?.getVuid();t&&((e=this.odpManager)==null||e.setVuid(t))}).catch(e=>{this.state=G.Failed,this.errorReporter.report(e),this.startPromise.reject(e)}))}getProjectConfig(){return this.projectConfigManager.getConfig()||null}activate(e,t,n){var r,i;try{let a=this.getProjectConfig();if(!a)return this.errorReporter.report(H,`activate`),null;if(!this.validateInputs({experiment_key:e,user_id:t},n))return this.notActivatingExperiment(e,t);try{let i=this.getVariation(e,t,n);if(i===null)return this.notActivatingExperiment(e,t);if(!function(e,t){return vp(e,t)===lp}(a,e))return(r=this.logger)==null||r.debug(`28`,e),i;let o=yp(a,e),s={experiment:o,variation:o.variationKeyMap[i],decisionSource:W.EXPERIMENT};return this.sendImpressionEvent(s,``,t,!0,n),i}catch(n){return(i=this.logger)==null||i.info(`19`,t,e),this.errorReporter.report(n),null}}catch(e){return this.errorReporter.report(e),null}}sendImpressionEvent(e,t,n,r,i){var a;if(!this.eventProcessor)return void((a=this.logger)==null||a.error(`35`));let o=this.getProjectConfig();if(!o)return;let s=sm({decisionObj:e,flagKey:t,enabled:r,userId:n,userAttributes:i,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:o});this.eventProcessor.process(s);let c=Jp([s]),l={experiment:null,holdout:null,userId:n,attributes:i,variation:e.variation,logEvent:c};e.experiment&&(e.experiment.layerId===void 0?l.holdout=e.experiment:l.experiment=e.experiment),this.notificationCenter.sendNotifications(nm.ACTIVATE,l)}track(e,t,n,r){var i,a,o,s,c;try{if(!this.eventProcessor)return void((i=this.logger)==null||i.error(`35`));let c=this.getProjectConfig();if(!c)return void this.errorReporter.report(H,`track`);if(!this.validateInputs({user_id:t,event_key:e},n,r))return;if(!function(e,t){return e.eventKeyMap.hasOwnProperty(t)}(c,e))return(a=this.logger)==null||a.warn(`7`,e),void((o=this.logger)==null||o.warn(`33`,t));r=this.filterEmptyValues(r);let l=cm({eventKey:e,eventTags:r,userId:t,userAttributes:n,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:c},this.logger);(s=this.logger)==null||s.info(`30`,e,t),this.eventProcessor.process(l);let u=Jp([l]);this.notificationCenter.sendNotifications(nm.TRACK,{eventKey:e,userId:t,attributes:n,eventTags:r,logEvent:u})}catch(e){this.errorReporter.report(e),(c=this.logger)==null||c.error(`33`,t)}}getVariation(e,t,n){var r,i,a;try{let o=this.getProjectConfig();if(!o)return this.errorReporter.report(H,`getVariation`),null;try{if(!this.validateInputs({experiment_key:e,user_id:t},n))return null;let s=o.experimentKeyMap[e];if(!s||s.isRollout)return(r=this.logger)==null||r.debug(`16`,e),null;let c=this.decisionService.getVariation(o,s,this.createInternalUserContext(t,n)).result,l=(i=o,a=s.id,i.experimentFeatureMap.hasOwnProperty(a)?tm.FEATURE_TEST:tm.AB_TEST);
37return this.notificationCenter.sendNotifications(nm.DECISION,{type:l,userId:t,attributes:n||{},decisionInfo:{experimentKey:e,variationKey:c}}),c}catch(e){return this.errorReporter.report(e),null}}catch(e){return this.errorReporter.report(e),null}}setForcedVariation(e,t,n){if(!this.validateInputs({experiment_key:e,user_id:t}))return!1;let r=this.getProjectConfig();if(!r)return!1;try{return this.decisionService.setForcedVariation(r,e,t,n)}catch(e){return this.errorReporter.report(e),!1}}getForcedVariation(e,t){if(!this.validateInputs({experiment_key:e,user_id:t}))return null;let n=this.getProjectConfig();if(!n)return null;try{return this.decisionService.getForcedVariation(n,e,t).result}catch(e){return this.errorReporter.report(e),null}}validateInputs(e,t,n){try{if(e.hasOwnProperty(`user_id`)){let t=e.user_id;if(typeof t!=`string`||t===null||t===`undefined`)throw new V(`24`,`user_id`);delete e.user_id}return Object.keys(e).forEach(t=>{if(!hh(e[t]))throw new V(`24`,t)}),t&&function(e){if(typeof e!=`object`||Array.isArray(e)||e===null)throw new V(`13`);Object.keys(e).forEach(function(t){if(e[t]===void 0)throw new V(`58`,t)})}(t),n&&function(e){if(typeof e!=`object`||Array.isArray(e)||e===null)throw new V(`20`)}(n),!0}catch(e){return this.errorReporter.report(e),!1}}notActivatingExperiment(e,t){var n;return(n=this.logger)==null||n.info(`19`,t,e),null}filterEmptyValues(e){for(let t in e){let n=t;!e.hasOwnProperty(n)||e[n]!==null&&e[n]!==void 0||delete e[n]}return e}isFeatureEnabled(e,t,n){var r,i;try{let a=this.getProjectConfig();if(!a)return this.errorReporter.report(H,`isFeatureEnabled`),!1;if(!this.validateInputs({feature_key:e,user_id:t},n))return!1;let o=xp(a,e,this.logger);if(!o)return!1;let s={},c=this.createInternalUserContext(t,n),l=this.decisionService.getVariationForFeature(a,o,c).result,u=l.decisionSource,d=Qp(l),f=$p(l),p=em(l);u!==W.FEATURE_TEST&&u!==W.HOLDOUT||(s={experimentKey:d,variationKey:f}),(u===W.FEATURE_TEST||u===W.HOLDOUT||u===W.ROLLOUT&&Sp(a))&&this.sendImpressionEvent(l,o.key,t,p,n),!0===p?(r=this.logger)==null||r.info(`8`,e,t):((i=this.logger)==null||i.info(`9`,e,t),p=!1);let m={featureKey:e,featureEnabled:p,source:l.decisionSource,sourceInfo:s};return this.notificationCenter.sendNotifications(nm.DECISION,{type:tm.FEATURE,userId:t,attributes:n||{},decisionInfo:m}),p}catch(e){return this.errorReporter.report(e),!1}}getEnabledFeatures(e,t){try{let n=[],r=this.getProjectConfig();return r?(this.validateInputs({user_id:e})&&hf(r.featureKeyMap).forEach(r=>{this.isFeatureEnabled(r.key,e,t)&&n.push(r.key)}),n):(this.errorReporter.report(H,`getEnabledFeatures`),n)}catch(e){return this.errorReporter.report(e),[]}}getFeatureVariable(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,null,n,r):(this.errorReporter.report(H,`getFeatureVariable`),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableForType(e,t,n,r,i){var a;if(!this.validateInputs({feature_key:e,variable_key:t,user_id:r},i))return null;let o=this.getProjectConfig();if(!o)return null;let s=xp(o,e,this.logger);if(!s)return null;let c=function(e,t,n,r){let i=e.featureKeyMap[t];return i?i.variableKeyMap[n]||(r?.error(`70`,n,t),null):(r?.error(bf,t),null)}(o,e,t,this.logger);if(!c)return null;if(n&&c.type!==n)return(a=this.logger)==null||a.warn(`71`,n,c.type),null;let l=this.createInternalUserContext(r,i),u=this.decisionService.getVariationForFeature(o,s,l).result,d=em(u),f=this.getFeatureVariableValueFromVariation(e,d,u.variation,c,r),p={};return u.decisionSource===W.FEATURE_TEST&&u.experiment!==null&&u.variation!==null&&(p={experimentKey:u.experiment.key,variationKey:u.variation.key}),this.notificationCenter.sendNotifications(nm.DECISION,{type:tm.FEATURE_VARIABLE,userId:r,attributes:i||{},decisionInfo:{featureKey:e,featureEnabled:d,source:u.decisionSource,variableKey:t,variableValue:f,variableType:c.type,sourceInfo:p}}),f}getFeatureVariableValueFromVariation(e,t,n,r,i){var a,o,s,c;let l=this.getProjectConfig();if(!l)return null;let u=r.defaultValue;if(n!==null){let c=function(e,t,n,r){if(!t||!n)return null;if(!e.variationVariableUsageMap.hasOwnProperty(n.id))return r?.error(`72`,n.id),null;let i=e.variationVariableUsageMap[n.id][t.id];return i?i.value:null}(l,r,n,this.logger);c===null?(s=this.logger)==null||s.info(`41`,r.key,n.key):t?(u=c,(a=this.logger)==null||a.info(`37`,u,r.key,e)):(o=this.logger)==null||o.info(`10`,e,i,u)}
37else(c=this.logger)==null||c.info(`36`,i,r.key,e);return function(e,t,n){let r;switch(t){case tp:e!==`true`&&e!==`false`?(n?.error(Sf,e,t),r=null):r=e===`true`;break;case rp:r=parseInt(e,10),isNaN(r)&&(n?.error(Sf,e,t),r=null);break;case np:r=parseFloat(e),isNaN(r)&&(n?.error(Sf,e,t),r=null);break;case ap:try{r=JSON.parse(e)}catch{n?.error(Sf,e,t),r=null}break;default:r=e}return r}(u,r.type,this.logger)}getFeatureVariableBoolean(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,tp,n,r):(this.errorReporter.report(H,`getFeatureVariableBoolean`),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableDouble(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,np,n,r):(this.errorReporter.report(H,`getFeatureVariableDouble`),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableInteger(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,rp,n,r):(this.errorReporter.report(H,`getFeatureVariableInteger`),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableString(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,ip,n,r):(this.errorReporter.report(H,`getFeatureVariableString`),null)}catch(e){return this.errorReporter.report(e),null}}getFeatureVariableJSON(e,t,n,r){try{return this.getProjectConfig()?this.getFeatureVariableForType(e,t,ap,n,r):(this.errorReporter.report(H,`getFeatureVariableJSON`),null)}catch(e){return this.errorReporter.report(e),null}}getAllFeatureVariables(e,t,n){try{let r=this.getProjectConfig();if(!r)return this.errorReporter.report(H,`getAllFeatureVariables`),null;if(!this.validateInputs({feature_key:e,user_id:t},n))return null;let i=xp(r,e,this.logger);if(!i)return null;let a=this.createInternalUserContext(t,n),o=this.decisionService.getVariationForFeature(r,i,a).result,s=em(o),c={};
37i.variables.forEach(n=>{c[n.key]=this.getFeatureVariableValueFromVariation(e,s,o.variation,n,t)});let l={};return o.decisionSource===W.FEATURE_TEST&&o.experiment!==null&&o.variation!==null&&(l={experimentKey:o.experiment.key,variationKey:o.variation.key}),this.notificationCenter.sendNotifications(nm.DECISION,{type:tm.ALL_FEATURE_VARIABLES,userId:t,attributes:n||{},decisionInfo:{featureKey:e,featureEnabled:s,source:o.decisionSource,variableValues:c,sourceInfo:l}}),c}catch(e){return this.errorReporter.report(e),null}}getOptimizelyConfig(){try{return this.getProjectConfig()&&this.projectConfigManager.getOptimizelyConfig()||null}catch(e){return this.errorReporter.report(e),null}}flushImmediately(){let e=[];return this.isRunning()?(this.eventProcessor&&e.push(this.eventProcessor.flushImmediately()),this.odpManager&&e.push(this.odpManager.flushImmediately()),Promise.all(e)):Promise.resolve()}close(){return this.stop(),this.onTerminated()}stop(){var e,t;this.isDone()||(this.isRunning()||this.startPromise.reject(Error(_f(Ep,`Client`))),this.state=G.Stopping,this.projectConfigManager.stop(),(e=this.eventProcessor)==null||e.stop(),(t=this.odpManager)==null||t.stop(),this.notificationCenter.clearAllNotificationListeners(),this.cleanupTasks.forEach(e=>e()),Promise.all([this.projectConfigManager.onTerminated(),this.eventProcessor?this.eventProcessor.onTerminated():Promise.resolve(),this.odpManager?this.odpManager.onTerminated():Promise.resolve()]).then(()=>{this.state=G.Terminated,this.stopPromise.resolve()}).catch(e=>{this.errorReporter.report(e),this.state=G.Failed,this.stopPromise.reject(e)}))}onReady(e){let t;typeof e==`object`&&e&&e.timeout!==void 0&&(t=e.timeout),ff(t)||(t=3e4);let n=wp(),r=this.nextCleanupTaskId++,i=setTimeout(()=>{this.cleanupTasks.delete(r),n.reject(Error(_f(`onReady timeout expired after %s ms`,t)))},t);return this.cleanupTasks.set(r,()=>{clearTimeout(i),n.reject(Error(`Instance closed`))}),Promise.race([this.onRunning().then(()=>{clearTimeout(i),this.cleanupTasks.delete(r)}),n])}createUserContext(e,t){let n=e??this.vuidManager?.getVuid();if(n===void 0||!this.validateInputs({user_id:n}))throw Error(`Invalid identifier`);if(!this.validateInputs({},t))throw Error(`Invalid attributes`);let r=new Nm({optimizely:this,userId:n,attributes:t});return this.onRunning().then(()=>{this.odpManager&&this.isOdpIntegrated()&&this.odpManager.identifyUser(n)}).catch(()=>{}),r}createInternalUserContext(e,t){return new Nm({optimizely:this,userId:e,attributes:t})}decide(e,t,n=[]){return this.getProjectConfig()?this.decideForKeys(e,[t],n,!0)[t]:(this.errorReporter.report(H,`decide`),jm(t,e,[op]))}decideAsync(e,t,n=[]){return K(this,void 0,void 0,function*(){return this.getProjectConfig()?(yield this.decideForKeysAsync(e,[t],n,!0))[t]:(this.errorReporter.report(H,`decide`),jm(t,e,[op]))})}getAllDecideOptions(e){var t;let n=Object.assign({},this.defaultDecideOptions);return Array.isArray(e)?e.forEach(e=>{var t;im[e]?n[e]=!0:(t=this.logger)==null||t.warn(`65`,e)}):(t=this.logger)==null||t.debug(`14`),n}generateDecision(e,t,n,r,i,a){var o,s;let c=e.getUserId(),l=e.getAttributes(),u=a.featureKeyMap[t],d=n.decisionSource,f=n.experiment?.key??null,p=n.experiment?.id??null,m=n.variation?.key??null,h=n.variation?.id??null,g=em(n),_={},v=!1;g?(o=this.logger)==null||o.info(`8`,t,c):(s=this.logger)==null||s.info(`9`,t,c),i[im.EXCLUDE_VARIABLES]||u.variables.forEac
37h(e=>{_[e.key]=this.getFeatureVariableValueFromVariation(t,g,n.variation,e,c)}),!i[im.DISABLE_DECISION_EVENT]&&(d===W.FEATURE_TEST||d===W.HOLDOUT||d===W.ROLLOUT&&Sp(a))&&(this.sendImpressionEvent(n,t,c,g,l),v=!0);let y=[];i[im.INCLUDE_REASONS]&&(y=r.map(e=>_f(e[0],...e.slice(1))));let b={flagKey:t,enabled:g,variationKey:m,ruleKey:f,variables:_,reasons:y,decisionEventDispatched:v,experimentId:p,variationId:h};return this.notificationCenter.sendNotifications(nm.DECISION,{type:tm.FLAG,userId:c,attributes:l,decisionInfo:b}),{variationKey:m,enabled:g,variables:_,ruleKey:f,flagKey:t,userContext:e,reasons:y}}decideForKeys(e,t,n=[],r){return this.getDecisionForKeys(`sync`,e,t,n,r).get()}decideForKeysAsync(e,t,n=[],r){return this.getDecisionForKeys(`async`,e,t,n,r).get()}getDecisionForKeys(e,t,n,r=[],i){var a;let o={},s={},c={},l=this.getProjectConfig();if(!l)return this.errorReporter.report(H,`decideForKeys`),q.of(e,o);if(n.length===0)return q.of(e,o);let u=this.getAllDecideOptions(r);i&&delete u[im.ENABLED_FLAGS_ONLY];let d=[];for(let e of n){let n=l.featureKeyMap[e];n?d.push(n):((a=this.logger)==null||a.error(bf,e),o[e]=jm(e,t,[_f(sp,e)]))}return this.decisionService.resolveVariationsForFeatureList(e,l,d,t,u).then(n=>{for(let e=0;e<d.length;e++){let r=d[e].key,i=n[e];i.error?o[r]=jm(r,t,i.reasons.map(e=>_f(e[0],...e.slice(1)))):(s[r]=i.result,c[r]=i.reasons)}for(let e of d){let n=e.key;if(o[n])continue;let r=this.generateDecision(t,n,s[n],c[n],u,l);u[im.ENABLED_FLAGS_ONLY]&&!r.enabled||(o[n]=r)}return q.of(e,o)})}decideAll(e,t=[]){let n={},r=this.getProjectConfig();if(!r)return this.errorReporter.report(H,`decideAll`),n;let i=Object.keys(r.featureKeyMap);return this.decideForKeys(e,i,t)}decideAllAsync(e,t=[]){return K(this,void 0,void 0,function*(){let n={},r=this.getProjectConfig();if(!r)return this.errorReporter.report(H,`decideAll`),n;let i=Object.keys(r.featureKeyMap);return this.decideForKeysAsync(e,i,t)})}updateOdpSettings(){let e=this.getProjectConfig();e&&this.odpManager&&this.odpManager.updateConfig(e.odpIntegrationConfig)}sendOdpEvent(e,t,n,r){var i,a;if(this.odpManager)try{let i=new Cm(t||``,e,n,r);this.odpManager.sendEvent(i)}catch(e){(a=this.logger)==null||a.error(`42`,e)}else(i=this.logger)==null||i.error(`44`,`sendOdpEvent`)}isOdpIntegrated(){var e;return(e=this.getProjectConfig()?.odpIntegrationConfig?.integrated)!=null&&e}fetchQualifiedSegments(e,t){var n;
37return K(this,void 0,void 0,function*(){return this.odpManager?yield this.odpManager.fetchQualifiedSegments(e,t):((n=this.logger)==null||n.error(`44`,`fetchQualifiedSegments`),null)})}getVuid(){var e;if(this.vuidManager)return this.vuidManager.getVuid();(e=this.logger)==null||e.error(`56`)}},Yh=class{constructor(e){this.predictionEndpointTemplate=`https://prediction.cmab.optimizely.com/predict/%s`,this.requestHandler=e.requestHandler,this.retryConfig=e.retryConfig,e.predictionEndpointTemplate&&(this.predictionEndpointTemplate=e.predictionEndpointTemplate)}fetchDecision(e,t,n,r){var i;return K(this,void 0,void 0,function*(){let a=_f(this.predictionEndpointTemplate,e),o={instances:[{visitorId:t,experimentId:e,attributes:Object.keys(n).map(e=>({id:e,value:n[e],type:`custom_attribute`})),cmabUUID:r}]};return yield this.retryConfig?Xp(()=>this.doFetch(a,JSON.stringify(o)),(i=this.retryConfig).backoffProvider?.call(i),this.retryConfig.maxRetries).result:this.doFetch(a,JSON.stringify(o))})}doFetch(e,t){return K(this,void 0,void 0,function*(){let n=yield this.requestHandler.makeRequest(e,{"Content-Type":`application/json`},`POST`,t).responsePromise;if(!Ap(n.statusCode))return Promise.reject(new V(`CMAB decision fetch failed with status: %s`,n.statusCode));let r=JSON.parse(n.body);return this.validateResponse(r)?String(r.predictions[0].variation_id):Promise.reject(new V(`Invalid CMAB fetch response`))})}validateResponse(e){return e.predictions&&e.predictions.length>0&&e.predictions[0].variation_id}},Xh=class{constructor(e){var t;this.serializers=Array.from({length:1e3},()=>new dm),this.cmabCache=e.cmabCache,this.cmabClient=e.cmabClient,this.logger=e.logger,(t=this.logger)==null||t.setName(`CmabService`)}getSerializerIndex(e,t){let n=this.getCacheKey(e,t),r=uf.default.v3(n);return Math.abs(r)%1e3}getDecision(e,t,n,r){return K(this,void 0,void 0,function*(){let i=this.getSerializerIndex(t.getUserId(),n);return this.serializers[i].run(()=>this.getDecisionInternal(e,t,n,r))})}getDecisionInternal(e,t,n,r){var i,a,o,s,c,l;return K(this,void 0,void 0,function*(){let u=t.getUserId(),d=this.filterAttributes(e,t,n);if(r[im.IGNORE_CMAB_CACHE])return(i=this.logger)==null||i.debug(`11`,u,n),this.fetchDecision(n,u,d);r[im.RESET_CMAB_CACHE]&&((a=this.logger)==null||a.debug(`23`,u,n),this.cmabCache.reset());let f=this.getCacheKey(u,n);r[im.INVALIDATE_USER_CMAB_CACHE]&&((o=this.logger)==null||o.debug(`12`,u,n),this.cmabCache.remove(f));let p=yield this.cmabCache.lookup(f),m=JSON.stringify(d,Object.keys(d).sort()),h=String(uf.default.v3(m));if(p){if(p.attributesHash===h)return(s=this.logger)==null||s.debug(`3`,u,n),{variationId:p.variationId,cmabUuid:p.cmabUuid};(c=this.logger)==null||c.debug(`2`,u,n),this.cmabCache.remove(f)}else(l=this.logger)==null||l.debug(`4`,u,n);let g=yield this.fetchDecision(n,u,d);return this.cmabCache.save(f,{attributesHash:h,variationId:g.variationId,cmabUuid:g.cmabUuid}),g})}fetchDecision(e,t,n){return K(this,void 0,void 0,function*(){let r=of();return{variationId:yield this.cmabClient.fetchDecision(e,t,n,r),cmabUuid:r}})}filterAttributes(e,t,n){let r={},i=t.getAttributes(),a=e.experimentIdMap[n];return!a||!a.cmab||a.cmab.attributeIds.forEach(t=>{let n=e.attributeIdMap[t];i.hasOwnProperty(n.key)&&(r[t]=i[n.key])}),r}getCacheKey(e,t){return`${e.length}-${e}-${t}`}},Zh=e=>{let{clientEngine:t,clientVersion:n,jsonSchemaValidator:r,userProfileService:i,userProfileServiceAsync:a,defaultDecideOptions:o,disposable:s,requestHandler:c}=e,l=(e=>{if(!e||typeof e!=`object`||!e[Ip])throw Error(Fp);return e[Ip]})(e.projectConfigManager),u=(e=>{if(e&&typeof e==`object`)return e[gm]})(e.eventProcessor),d=(e=>{if(e&&typeof e==`object`)return e[Dm]})(e.odpManager),f=(e=>{if(e&&typeof e==`object`)return e[Om]})(e.vuidManager),p=(e=>{if(e&&typeof e==`object`)return e[Uf]})(e.errorNotifier),m=(e=>{if(e&&typeof e==`object`)return e[Vf]})(e.logger);return new Jh({cmabService:new Xh({cmabClient:new Yh({requestHandler:c,retryConfig:{maxRetries:1,backoffProvider:()=>new Mp(100)},predictionEndpointTemplate:e.cmab?.predictionEndpointTemplate}),cmabCache:e.cmab?.cache?((e,t,n)=>{let r=(e,t)=>{if(e!==void 0)return t(e)},i={lookup:n=>
37e.operation===`sync`?r(e.lookup(n),t):e.lookup(n).then(e=>r(e,t)),save:(t,r)=>e.save(t,n(r))};return Object.setPrototypeOf(i,e),i})(e.cmab.cache,e=>JSON.parse(e),e=>JSON.stringify(e)):new bm(e.cmab?.cacheSize||1e4,e.cmab?.cacheTtl||18e5),logger:m?.child()}),clientEngine:t||Xf,clientVersion:n||Zf,jsonSchemaValidator:r,userProfileService:i,userProfileServiceAsync:a,defaultDecideOptions:o,disposable:s,logger:m,errorNotifier:p,projectConfigManager:l,eventProcessor:u,odpManager:d,vuidManager:f,UNSTABLE_conditionEvaluators:e.UNSTABLE_conditionEvaluators})},Qh=class{constructor(e={}){this.logger=e.logger,this.timeout=e.timeout??6e4}makeRequest(e,t,n,r){let i=new XMLHttpRequest;return{responsePromise:new Promise((a,o)=>{i.open(n,e,!0),this.setHeadersInXhr(t,i),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===0)return void o(new V(`49`));let e=this.parseHeadersFromXhr(i);a({statusCode:i.status,body:i.responseText,headers:e})}},i.timeout=this.timeout,i.ontimeout=()=>{var e;(e=this.logger)==null||e.warn(`50`)},i.send(r)}),abort(){i.abort()}}}setHeadersInXhr(e,t){Object.keys(e).forEach(n=>{let r=e[n];typeof r==`string`&&t.setRequestHeader(n,r)})}parseHeadersFromXhr(e){let t=e.getAllResponseHeaders();if(t===null)return{};let n=t.split(`\r 38`),r={};return n.forEach(e=>{var t;try{let t=e.indexOf(`: `);if(t>-1){let n=e.slice(0,t),i=e.slice(t+2);n&&i&&(r[n]=i)}}catch{(t=this.logger)==null||t.warn(`57`,e)}}),r}},$h=new class{constructor(e){this.requestHandler=e}dispatchEvent(e){return K(this,void 0,void 0,function*(){if(e.httpVerb!==`POST`)return Promise.reject(new V(`46`));let t=JSON.stringify(e.params);return this.requestHandler.makeRequest(e.url,{"content-type":`application/json`},`POST`,t).responsePromise})}}(new Qh),eg=class{constructor(){this.operation=`sync`}set(e,t){localStorage.setItem(e,JSON.stringify(t))}get(e){let t=localStorage.getItem(e);return t?JSON.parse(t):void 0}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}getKeys(){let e=[];for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);n&&e.push(n)}return e}getBatched(e){return e.map(e=>this.get(e))}},tg=(e=$h)=>{return vm((_m(t=e),new hm(t)));var t},ng=(e={})=>{let t=e.eventStore?(n=e.eventStore).operation===`async`?new Up(n,pm,JSON.parse,JSON.stringify):new Hp(n,pm,JSON.parse,JSON.stringify):new mm({store:new eg,maxSize:e.batchSize?Math.max(2*e.batchSize,500):500,ttl:e.storeTtl});var n;return ym({eventDispatcher:e.eventDispatcher||$h,closingEventDispatcher:e.closingEventDispatcher||(e.eventDispatcher?void 0:Df),flushInterval:e.flushInterval,batchSize:e.batchSize,defaultFlushInterval:1e3,defaultBatchSize:10,retryOptions:{maxRetries:e.maxRetries??2},failedEventRetryInterval:2e4,eventStore:t,storeTtl:e.storeTtl})};new class{constructor(e,t){this.vuidCacheKey=`optimizely-vuid`,this.waitPromise=Promise.resolve(),this.cache=e,this.logger=t}setCache(e){this.cache=e,this.vuid=void 0}setLogger(e){this.logger=e}serialize(e){return K(this,void 0,void 0,function*(){let t=this.waitPromise.then(e,e);return this.waitPromise=t.catch(()=>{}),t})}remove(){return K(this,void 0,void 0,function*(){return this.serialize(()=>K(this,void 0,void 0,function*(){this.cache&&(this.vuid=void 0,yield this.cache.remove(this.vuidCacheKey))}))})}load(){return K(this,void 0,void 0,function*(){return this.vuid?this.vuid:this.serialize(()=>K(this,void 0,void 0,function*(){if(!this.cache)return;let e=yield this.cache.get(this.vuidCacheKey);if(e&&Tm(e))return this.vuid=e,this.vuid;let t=(()=>{let e=`${wm}${of().replace(/-/g,``)}`;return e.length<=32?e:e.substring(0,32)})();return yield this.cache.set(this.vuidCacheKey,t),this.vuid=t,t}))})}};var rg=function(e){let t=Zh(Object.assign(Object.assign({},e),{requestHandler:new Qh}));if(t){let e=`onpagehide`in window?`pagehide`:`unload`;window.addEventListener(e,()=>{t.flushImmediately()})}return t},ig=e=>({shops:[`CAM-wxvanx|TCH-5g6nol|TCO-gm2vex|CTY-5g6nol|CCO-5g6nol|PRG-gkq9zg`,`CAM-wxvanx|TCH-5g6nol|TCO-x2mwkg|CTY-5g6nol|CCO-5g6nol|PRG-gkq9zg`]}[a().public.APPLICATION]||[]).includes(e);function ag(){let e=a(),t=ze(),n=ig(At(`activeMid`,()=>``).value),r=(lt(`user-agent`)??``).toLowerCase();return{optimizelyDisabled:!!(n||t.query.disable_optimizely===`true`||e.public.DISABLE_OPTIMIZELY===`true`||r.includes(`tapp/ci`)||r.includes(`googlebot`))}}var og=()=>{try{return!!window.localStorage}catch{return!1}},sg=s(async()=>{let e=ze(),{optimizelyDisabled:t}=ag();return t?{provide:{optimizely:null}}:{provide:{optimizely:rg({projectConfigManager:Lp({datafile:At(`optimizely-datafile`).value??``}),eventProcessor:og()?ng():tg(),logger:Hf({level:e.query.optimizely_log===`true`?zf:Bf})})}}}),cg=s(()=>{let{$optimizely:e}=n();if(!e){console.warn(`Optimizely is not initialized`);return}e.notificationCenter.addNotificationListener(nm.DECISION,t=>{wn(()=>{ug(t,e)})})});function lg(e){let t=a().public.STAGE!==`production`,n=`"${e}" is missing Optimizely dimension number.`;if(t)throw Error(n)}function ug({type:e,decisionInfo:t},n){let r=n.getOptimizelyConfig();if(e!==tm.ALL_FEATURE_VARIABLES||!r)return;let{variableValues:i,sourceInfo:a}=t,o=a.experimentKey,s=a.variationKey;if(!r.experimentsMap[o])return;let c=r.experimentsMap[o].id,l=r.experimentsMap[o]?.variationsMap?.[s]?.id,u=i?i[`optimizely-dimension-number`]:void 0;if(!u){lg(o);return}if(u&&s&&c)return window?.dataLayer?.find(e=>e.event===`campaign-decided`&&e[`optimizely-dimension-value`]===`${o} (${c}):${s} (${l})`&&e[`optimizely-dimension-number`]===u)?void 0:(!Array.isArray(window.dataLayer)&&window.dataLayer===void 0&&(window.dataLayer=[]),window.dataLayer.push({event:`campaign-decided`,"optimizely-dimension-value":`${o} (${c}):${s} (${l}
38)`,"optimizely-dimension-number":u}))}function dg(){window.optimizely=window.optimizely||[],window.optimizely.push({type:`activate`})}function fg(e){window.optimizely=window.optimizely||[],window.optimizely.push({type:`user`,attributes:e})}function pg(){let e=window.__optimizelyWebQueue||[];e.length!==0&&(e.forEach(({payload:e})=>{window?.dataLayer?.find(t=>t.event===`campaign-decided`&&t[`optimizely-dimension-value`]===e[`optimizely-dimension-value`]&&t[`optimizely-dimension-number`]===e[`optimizely-dimension-number`])||(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e))}),window.__optimizelyWebQueue=[])}var mg=s(e=>{let{optimizelyDisabled:t}=ag();t||(wn(()=>{window.__tappNuxtReady=!0,pg()}),e.hook(`page:finish`,()=>{e.isHydrating||(fg(fr()),dg())}))}),hg=s(()=>{a(),At(gr,()=>null)}),gg=s(()=>{if(a().public.STAGE===`production`)return;let e=ze().query[`override-env`],t=Array.isArray(e)?e[0]:e,n=t==="default"?null:mr(t);if(n===void 0)return;let r=Bn(hr,{default:()=>null});if(r.value===n)return;r.value=n;let i=new URL(window.location.href);i.searchParams.delete(`override-env`),window.location.replace(i.toString())}),_g=globalThis.setInterval,vg=s(()=>{let{y:e}=yr(),t=a(),n=Un();wn(()=>{_r({event:`environment`,application_version:t.public.VERSION,brand:n.value,dev_team:`TAPP`,gtm_container:t.public.GTM||`GTM-W9WWJW`});let r=_e(0),i=_g(()=>{r.value++},1e3);document.addEventListener(`click`,e=>{let t=e.target.closest(`a`);t&&t.host&&t.host!==window.location.host&&_r({event:`outbound_click`,link_text:t.textContent,element_id:t.id,element_class:t.className,url:t.href})}),window.addEventListener(`beforeunload`,()=>{clearInterval(i),_r({event:`webpage_summary`,max_y_offset:e.value,active_seconds:r.value})})})});async function yg(e){if(!e)return!1;try{let{data:t}=await Zn(),n=t.value,r=e=>n?.find(t=>t.key===e)?.value===!0;return r(`ai_chat_backend`)&&r(`ai_chat_direct_${e}_enabled`)}catch{return!1}}var bg=e=>{throw TypeError(e)},xg=(e,t,n)=>t.has(e)||bg(`Cannot `+n),J=(e,t,n)=>(xg(e,t,`read from private field`),n?n.call(e):t.get(e)),Y=(e,t,n
38)=>t.has(e)?bg(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(xg(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Z=(e,t,n)=>(xg(e,t,`access private method`),n),Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Q,Ug,Wg,Gg,Kg,qg,Jg,$,Yg,Xg,Zg,Qg,$g,e_,t_,n_;function r_(e){let t=document.createElement(`span`);if(t.style.color=``,t.style.color=e,!t.style.color)throw Error(`Invalid CSS color: ${e}`);document.body.appendChild(t);let n=getComputedStyle(t).color;t.remove();let r=n.match(/rgba?\(([^)]+)\)/i);if(!r)throw Error(`Unexpected computed color format: ${n}`);let[i,a,o]=r[1].split(`,`).map(e=>parseFloat(e.trim()));return[i,a,o]}function i_([e,t,n]){let r=[e,t,n].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*r[0]+.7152*r[1]+.0722*r[2]}function a_(e,t=.53){return i_(e)<t}function o_(e,t,n){return[Math.round(e[0]*(1-n)+t[0]*n),Math.round(e[1]*(1-n)+t[1]*n),Math.round(e[2]*(1-n)+t[2]*n)]}function s_(e,t){return o_(e,[255,255,255],t)}function c_(e,t){return o_(e,[0,0,0],t)}function l_([e,t,n]){return`rgb(${e}, ${t}, ${n})`}function u_(e,t,n){let r=e instanceof ShadowRoot?e:e.head||document.head;{let e=r.querySelector(`style[data-tapp-id="${n}"]`);if(e)return e}let i=document.createElement(`style`);return i.setAttribute(`data-tapp-id`,n),i.textContent=t,r.appendChild(i),i}function d_(e,t=`root`){let{brand:n}=e.theme.palette,r=r_(n),i=a_(r)?s_(r,.2):c_(r,.2),a=a_(r)?`#ffffff`:`#000000`,o=a_(i)?`#ffffff`:`#000000`;return` 39 :${t} { 40 --chat-brand: ${l_(r)}; 41 --chat-brand-hover: ${l_(i)}; 42 --chat-brand-text: ${a}; 43 --chat-brand-text-hover: ${o}; 44 } 45 46 ${e.customCss} 47 `}var f_=class{constructor(){this.events={}}on(e,t){return this.events[e]||(this.events[e]=[]),this.events[e]?.push(t),()=>{this.off(e,t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};this.on(e,n)}off(e,t){let n=this.events[e];n&&(this.events[e]=n.filter(e=>e!==t))}emit(e,...t){let n=this.events[e];n&&n.forEach(e=>e(...t))}clearAll(e){e?delete this.events[e]:this.events={}}},p_=`#191d4c`;function m_(e){if(!e.chatHandlerUrl)throw Error(`chatHandlerUrl is required`);return{key:e.key,logLevel:e.logLevel||`warn`,chatHandlerUrl:e.chatHandlerUrl,initialMessage:e.initialMessage||`Goede dag! Hoe kan ik je helpen vandaag?`,chatAppUrl:e.chatAppUrl||`https://dev.ai-chat.tapp.dpgmedia.cloud/`,preload:{strategy:e.preload?.strategy||`intent`},zIndex:e.zIndex||2147483646,panel:{width:e.panel?.width||360,height:e.panel?.height||560},title:e.title||`Chat`,theme:{palette:{brand:e.theme?.palette?.brand||p_}},customCss:e.customCss||``,initialChoices:e.initialChoices||[],loadingPhrases:e.loadingPhrases||[],disclaimer:e.disclaimer||``,metadata:e.metadata||{}}}var h_={debug:0,info:1,warn:2,error:3,silent:4},g_=class{constructor(e){this.config=e}shouldLog(e){return this.config.logLevel!==`silent`&&h_[e]>=h_[this.config.logLevel]}getPrefix(e){return`[AiChatSdk] [${this.config.sdkKey}] [${e.toUpperCase()}]`}debug(e,...t){this.shouldLog(`debug`)&&console.debug(this.getPrefix(`debug`),e,...t)}info(e,...t){this.shouldLog(`info`)&&console.info(this.getPrefix(`info`),e,...t)}warn(e,...t){this.shouldLog(`warn`)&&console.warn(this.getPrefix(`warn`),e,...t)}error(e,...t){this.shouldLog(`error`)&&console.error(this.getPrefix(`error`),e,...t)}},__=class{constructor({config:e,logger:t}){Y(this,Sg,new f_),Y(this,Cg),Y(this,wg),Y(this,Tg),Y(this,Eg,null),Y(this,Dg,!1),Y(this,Og,[]),Y(this,kg,e=>{if(e.source!==J(this,Eg)?.contentWindow||e.origin!==J(this,wg))return;J(this,Tg).debug(`Received message from chat app:`,e.data);let t=e.data;t.type&&J(this,Sg).emit(t.type,t)}),X(this,Cg,e),X(this,Tg,t),X(this,wg,new URL(J(this,Cg).chatAppUrl).origin)}connect(e){X(this,Eg,e),X(this,Dg,!1),window.addEventListener(`message`,J(this,kg)),J(this,Tg).info(`CommunicationManager connected and listening for messages.`)}disconnect(){window.removeEventListener(`message`,J(this,kg)),X(this,Eg,null),X(this,Dg,!1),X(this,Og,[]),J(this,Sg).clearAll(),J(this,Tg).info(`CommunicationManager disconnected.`)}send(e){if(!J(this,Dg)){if(e.type===`ai-chat-sdk:ui-state-change`){J(this,Tg).debug(`Chat app not ready, skipping intermediate ui-state-change event:`,e);return}J(this,Tg).debug(`Chat app not ready, queuing event:`,e),J(this,Og).push(e);return}if(!J(this,Eg)?.contentWindow){J(this,Tg).warn(`Cannot send event, iframe is not available.`,e);return}J(this,Tg).debug(`Sending event to chat app:`,e),J(this,Eg).contentWindow.postMessage(e,J(this,wg))}markReady(){X(this,Dg,!0)}flushQueue(){J(this,Tg).debug(`Flushing ${J(this,Og).length} queued event(s).`);let e=J(this,Og);X(this,Og,[]);for(let t of e)this.send(t)}on(e,t){J(this,Sg).on(e,t)}};Sg=new WeakMap,Cg=new WeakMap,wg=new WeakMap,Tg=new WeakMap,Eg=new WeakMap,Dg=new WeakMap,Og=new WeakMap,kg=new WeakMap;function v_(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}function y_(e){let t=e.querySelectorAll(`[data-ref]`);return Array.from(t).reduce((e,t)=>
47(e[t.getAttribute(`data-ref`)]=t,e),{})}var b_=`:host { 48 --ai-chat-sdk-shadow-1: 0 4px 12px rgba(0, 0, 0, 0.2); 49 --ai-chat-sdk-shadow-2: 0 12px 28px rgba(0, 0, 0, 0.24); 50 51 --ai-chat-sdk-radius: 16px; 52 --ai-chat-sdk-gap: 16px; 53 --ai-chat-sdk-fab-size: 56px; 54 --ai-chat-sdk-panel-w: 360px; 55 --ai-chat-sdk-panel-h: 560px; 56 --ai-chat-sdk-z: 2147483646; 57 --ai-chat-sdk-transition-duration: 0.15s; 58 --ai-chat-sdk-transition-ease: ease-out; 59 60 z-index: var(--ai-chat-sdk-z); 61 position: relative; 62} 63 64@media (prefers-reduced-motion: reduce) { 65 :root { 66 --ai-chat-sdk-transition-duration: 0s; 67 } 68 69 .fab { 70 animation: none; 71 transition: none; 72 } 73} 74 75.wrap { 76 position: fixed; 77 bottom: var(--ai-chat-sdk-gap); 78 right: var(--ai-chat-sdk-gap); 79 pointer-events: auto; 80} 81 82.fab { 83 position: relative; 84 display: grid; 85 place-items: center; 86 width: var(--ai-chat-sdk-fab-size); 87 height: var(--ai-chat-sdk-fab-size); 88 border-radius: 100%; 89 background: var(--chat-brand); 90 color: var(--chat-brand-text); 91 box-shadow: var(--ai-chat-sdk-shadow-1); 92 cursor: pointer; 93 border: none; 94 outline: none; 95 appearance: none; 96 animation: fab-scale-in var(--ai-chat-sdk-transition-duration) ease-out both; 97} 98 99@keyframes fab-scale-in { 100 from { 101 scale: 0; 102 opacity: 0; 103 } 104 to { 105 scale: 1; 106 opacity: 1; 107 } 108} 109 110.fab-icon { 111 position: absolute; 112 display: grid; 113 place-items: center; 114 will-change: opacity, filter, transform; 115 transition: 116 opacity var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease), 117 filter var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease), 118 transform var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease); 119} 120 121.fab-icon svg { 122 width: 24px; 123 height: 24px; 124 stroke: currentColor; 125 fill: none; 126} 127 128.fab-icon--chat { 129 opacity: 1; 130 filter: blur(0); 131 transform: scale(1); 132} 133 134.fab-icon--close { 135 opacity: 0; 136 filter: blur(2px); 137 transform: rotate(-90deg); 138} 139 140:host([data-ui-state='open']) .fab-icon--chat, 141:host([data-ui-state='maximized']) .fab-icon--chat { 142 opacity: 0; 143 filter: blur(2px); 144 transform: scale(0); 145} 146 147:host([data-ui-state='open']) .fab-icon--close, 148:host([data-ui-state='maximized']) .fab-icon--close { 149 opacity: 1; 150 filter: blur(0); 151 transform: rotate(0deg); 152} 153 154.frame-wrapper { 155 position: fixed; 156 bottom: calc(var(--ai-chat-sdk-gap) + var(--ai-chat-sdk-fab-size) + var(--ai-chat-sdk-gap)); 157 right: var(--ai-chat-sdk-gap); 158 width: var(--ai-chat-sdk-panel-w); 159 height: var(--ai-chat-sdk-panel-h); 160 max-width: 90vw; 161 max-height: 80vh; 162 border-radius: var(--ai-chat-sdk-radius); 163 box-shadow: var(--ai-chat-sdk-shadow-2); 164 overflow: hidden; 165 pointer-events: none; 166 flex-direction: column; 167 background-color: white; 168 transform: scale(0); 169 transform-origin: bottom right; 170 will-change: transform, width, height; 171 transition: 172 transform var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease), 173 width var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease), 174 height var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease); 175} 176 177@media (min-width: 1024px) { 178 .frame-wrapper { 179 max-width: 80vw; 180 } 181} 182 183.frame { 184 width: 100%; 185 height: 100%; 186 border: none; 187 opacity: 0; 188 will-change: opacity; 189 transition: opacity 0s; 190} 191 192:host([data-ui-state='open']) .frame-wrapper, 193:host([data-ui-state='maximized']) .frame-wrapper { 194 display: flex; 195 pointer-events: auto; 196 transform: scale(1); 197 transition: 198 transform var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease), 199 width var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease), 200 height var(--ai-chat-sdk-transition-duration) var(--ai-chat-sdk-transition-ease); 201} 202 203:host([data-ui-state='open']) .frame, 204:host([data-ui-state='maximized']) .frame { 205 opacity: 1; 206 transition: opacity var(--ai-chat-sdk-transition-duration) 0.1s var(--ai-chat-sdk-transition-ease); 207} 208 209:host([data-ui-state='open']) .frame-wrapper { 210 width: var(--ai-chat-sdk-panel-w); 211 height: var(--ai-chat-sdk-panel-h); 212} 213 214:host([data-ui-state='maximized']) .frame-wrapper { 215 width: 90vw; 216 height: 80vh; 217} 218 219@media (min-width: 1024px) { 220 :host([data-ui-state='maximized']) .frame-wrapper { 221 width: 80vw; 222 } 223} 224`,x_=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 225 <path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" /> 226</svg> 227`,S_=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 228 <polyline points="6 9 12 15 18 9" /> 229</svg> 230`,C_=`tapp-ai-chat-sdk-host`,w_=class{constructor({config:e,logger:t}){Y(this,Rg),Y(this,Ag),Y(this,jg),Y(this,Mg),Y(this,Ng),Y(this,Pg),Y(this,Fg),Y(this,Ig),Y(this,Lg),X(this,Mg,new f_),X(this,Ng,null),X(this,Pg,null),this.refs=null,X(this,Fg,!1),X(this,Ig,()=>J(this,Mg).emit(`fabClick`)),X(this,Lg,()=>this.preload()),X(this,Ag,e),X(this,jg,t)}mount(e){J(this,jg).info(`UIManager mounting...`),X(this,Fg,!1),X(this,Ng,Z(this,Rg,Bg).call(this,e)),X(this,Pg,J(this,Ng).attachShadow({mode:`open`})),u_(J(this,Pg),`${d_(J(this,Ag),`host`)} 231${b_}`,`ai-chat-sdk`);let t=v_(` 232 <div class="wrap" data-ref="wrap"> 233 <button class="fab" data-ref="fab">
234 <span class="fab-icon fab-icon--chat">${x_}</span> 235 <span class="fab-icon fab-icon--close">${S_}</span> 236 </button> 237 </div> 238 239 <div class="frame-wrapper"> 240 <iframe class="frame" data-ref="iframe" sandbox="allow-scripts allow-same-origin allow-microphone" allow="microphone"> 241 </iframe> 242 </div> 243 `);return this.refs=y_(t),this.refs.fab.addEventListener(`click`,J(this,Ig)),this.refs.fab.addEventListener(`pointerenter`,J(this,Lg)),this.refs.fab.addEventListener(`focus`,J(this,Lg)),J(this,Pg).appendChild(t),J(this,Ng).style.setProperty(`--ai-chat-sdk-panel-w`,`${J(this,Ag).panel.width}px`),J(this,Ng).style.setProperty(`--ai-chat-sdk-panel-h`,`${J(this,Ag).panel.height}px`),J(this,Ng).style.setProperty(`--ai-chat-sdk-z`,`${J(this,Ag).zIndex}`),J(this,jg).info(`UIManager mounted.`),this.refs}preload(){Z(this,Rg,zg).call(this)}destroy(){!J(this,Ng)||!this.refs||(this.refs.fab.removeEventListener(`click`,J(this,Ig)),this.refs.fab.removeEventListener(`pointerenter`,J(this,Lg)),this.refs.fab.removeEventListener(`focus`,J(this,Lg)),J(this,Ng).parentNode?.removeChild(J(this,Ng)),X(this,Ng,null),X(this,Pg,null),this.refs=null,X(this,Fg,!1),J(this,Mg).clearAll(),J(this,jg).info(`UIManager destroyed.`))}on(e,t){J(this,Mg).on(e,t)}hide(){J(this,Ng)?.setAttribute(`hidden`,``)}show(){J(this,Ng)?.removeAttribute(`hidden`)}setUiState(e){J(this,Ng)?.setAttribute(`data-ui-state`,e)}};Ag=new WeakMap,jg=new WeakMap,Mg=new WeakMap,Ng=new WeakMap,Pg=new WeakMap,Fg=new WeakMap,Ig=new WeakMap,Lg=new WeakMap,Rg=new WeakSet,zg=function(){this.refs?.iframe&&!J(this,Fg)&&(this.refs.iframe.src=J(this,Ag).chatAppUrl,X(this,Fg,!0))},Bg=function(e){let t=document.createElement(`div`);t.id=C_;let n=document.body;if(typeof e==`string`){let t=document.querySelector(e);t instanceof HTMLElement?n=t:J(this,jg).warn(`AiChatSdk: Container selector "${e}" not found. Defaulting to document.body.`)}else e instanceof HTMLElement&&(n=e);return n.appendChild(t),t};var T_=class{constructor(e){Y(this,$),Y(this,Vg),Y(this,Hg),Y(this,Q),Y(this,Ug),Y(this,Wg),Y(this,Gg),Y(this,Kg),Y(this,qg),Y(this,Jg),Y(this,t_),Y(this,n_),X(this,Vg,new f_),X(this,Hg,!1),X(this,Ug,[]),X(this,Wg,`open`),X(this,Gg,new Map),X(this,Kg,new Map),this.uiState=`closed`,this.toggleChat=()=>{if(this.uiState===`closed`){this.openChat();return}this.closeChat()},X(this,t_,async e=>{let{id:t,payload:n}=e,{name:r,payload:i}=n,a=J(this,Kg).get(r);if(!a){let e=`No handler found for UI request name: ${r}`;J(this,Q).error(e),Z(this,$,Yg).call(this,{type:`ai-chat-sdk:ui-response`,id:t,payload:{success:!1,error:e}});return}try{let e=i,{handler:n}=a,r=await n(e);Z(this,$,Yg).call(this,{type:`ai-chat-sdk:ui-response`,id:t,payload:{success:!0,data:r}})}catch(e){J(this,Q).error(`Error handling UI request for name "${r}":`,e),Z(this,$,Yg).call(this,{type:`ai-chat-sdk:ui-response`,id:t,payload:{success:!1,error:e instanceof Error?e.message:String(e)}})}}),X(this,n_,async e=>{let{id:t,payload:n}=e,{type:r,payload:i}=n,a=J(this,Gg).get(r);if(!a){let e=`No handler found for action request type: ${r}`;J(this,Q).error(e),Z(this,$,Yg).call(this,{type:`ai-chat-sdk:action-response`,id:t,payload:{success:!1,error:e}});return}try{let e=i,{handler:n}=a,r=await n(e);Z(this,$,Yg).call(this,{type:`ai-chat-sdk:action-response`,id:t,payload:{success:!0,data:r}})}catch(e){J(this,Q).error(`Error handling action request for type "${r}":`,e),Z(this,$,Yg).call(this,{type:`ai-chat-sdk:action-response`,id:t,payload:{success:!1,error:e instanceof Error?e.message:String(e)}})}}),this.config=m_(e),X(this,Q,new g_({logLevel:this.config.logLevel,sdkKey:this.config.key})),X(this,qg,new w_({config:this.config,logger:J(this,Q)})),X(this,Jg,new __({config:this.config,logger:J(this,Q)})),J(this,Q).info(`AiChatSdk instance created`),Z(this,$,$g).call(this),Z(this,$,e_).call(this)}get uiRefs(){return J(this,qg).refs}mount(e){if(J(this,Q).info(`Mounting AiChatSdk...`),J(this,Hg)){J(this,Q).warn(`AiChatSdk is already mounted`);return}let{iframe:t}=J(this,qg).mount(e);J(this,Jg).connect(t),J(this,qg).on(`fabClick`,this.toggleChat),X(this,Hg,!0),J(this,Q).info(`AiChatSdk mounted successfully`),J(this,Vg).emit(`mounted`)}destroy(){if(J(this,Q).info(`Destroying AiChatSdk...`),!J(this,Hg)){J(this,Q).warn(`Cannot destroy, AiChatSdk is not mounted`);return}J(this,Jg).disconnect(),J(this,qg).destroy(),X(this,Hg,!1),J(this,Vg).clearAll(),J(this,Gg).clear();for(let e of J(this,Ug))e.destroy&&e.destroy();X(this,Ug,[]),J(this,Q).info(`All plugins destroyed`),J(this,Q).info(`AiChatSdk de
243stroyed`)}use(e){e.install(this),J(this,Ug).push(e),J(this,Q).info(`Plugin "${e.name}" installed.`)}on(e,t){return J(this,Vg).on(e,t)}off(e,t){J(this,Vg).off(e,t)}once(e,t){J(this,Vg).once(e,t)}onActionRequest(e,t){J(this,Gg).set(e,{handler:t}),J(this,Q).info(`Action request handler registered for "${e}"`)}onUIRequest(e,t){J(this,Kg).set(e,{handler:t}),J(this,Q).info(`UI request handler registered for "${e}"`)}renderUI(e,t){if(!J(this,Hg)){J(this,Q).error(`Cannot render UI, AiChatSdk is not mounted.`);return}Z(this,$,Xg).call(this),Z(this,$,Yg).call(this,{type:`ai-chat-sdk:render-ui`,payload:{component:e,props:t}})}sendMessage(e,{openChat:t}){if(!J(this,Hg)){J(this,Q).error(`Cannot send message, AiChatSdk is not mounted.`);return}Z(this,$,Xg).call(this),t&&this.openChat(),Z(this,$,Yg).call(this,{type:`ai-chat-sdk:message`,message:e})}show(){J(this,qg).show()}hide(){J(this,qg).hide()}openChat(){Z(this,$,Xg).call(this),Z(this,$,Zg).call(this,J(this,Wg))}closeChat(){Z(this,$,Zg).call(this,`closed`)}maximize(){Z(this,$,Xg).call(this),Z(this,$,Zg).call(this,`maximized`)}preload(){if(!J(this,Hg)){J(this,Q).warn(`Cannot preload, AiChatSdk is not mounted.`);return}Z(this,$,Xg).call(this)}minimize(){this.uiState===`maximized`&&Z(this,$,Zg).call(this,`open`)}};Vg=new WeakMap,Hg=new WeakMap,Q=new WeakMap,Ug=new WeakMap,Wg=new WeakMap,Gg=new WeakMap,Kg=new WeakMap,qg=new WeakMap,Jg=new WeakMap,$=new WeakSet,Yg=function(e){J(this,Jg).send(e)},Xg=function(){J(this,Hg)&&J(this,qg).preload()},Zg=function(e){this.uiState!==e&&((this.uiState===`open`||this.uiState===`maximized`)&&X(this,Wg,this.uiState),this.uiState=e,J(this,qg).setUiState(this.uiState),Z(this,$,Yg).call(this,{type:`ai-chat-sdk:ui-state-change`,state:this.uiState}),J(this,Vg).emit(`ui-state-change`,{state:this.uiState}))},Qg=function(){Z(this,$,Yg).call(this,{...this.config,type:`ai-chat-sdk:config:init`,styles:d_(this.config),parentOrigin:window.location.origin}),Z(this,$,Yg).call(this,{type:`ai-chat-sdk:ui-state-change`,state:this.uiState})},$g=function(){for(let e of[`ai-chat:user-message-sent`,`ai-chat:bot-message-received`])J(this,Jg).on(e,t=>{J(this,Vg).emit(e,t)})},e_=function(){J(this,Jg).on(`ai-chat:ready`,()=>{J(this,Jg).markReady(),Z(this,$,Qg).call(this),J(this,Jg).flushQueue()}),J(this,Jg).on(`ai-chat:request-ui-state-change`,e=>Z(this,$,Zg).call(this,e.payload.state)),J(this,Jg).on(`ai-chat:request-action`,e=>J(this,n_).call(this,e)),J(this,Jg).on(`ai-chat:request-ui`,e=>J(this,t_).call(this,e))},t_=new WeakMap,n_=new WeakMap;var E_=s(()=>{let e=ze(),{$logger:t}=n(),r=a(),i=Un(),o=Se(null),s=_e(!1),c=_e(!1),{brandName:l}=Sr();return wn(async()=>{try{let n=e.query.forceChat===`true`,a=await yg(i.value),{userinfo:u}=zn(),d=Bn(`authId`).value||``,f=u.value?.sub||``;if(s.value=a||n,!s.value){c.value=!0;return}if(!n){let{mid:e}=Xn();if(e.value!==r.public.DEFAULT_MID){s.value=!1,c.value=!0;return}let{variation:t}=pr(wr.chatbot_op_ad);if(t!==`variation_1`){s.value=!1,c.value=!0;return}}let p=new T_({key:`shops-chatbot-${i.value}`,title:`Chat met ${l.value?.withArticle}`,initialMessage:`Hallo, hoe kan ik u helpen?`,chatHandlerUrl:`${window.location.origin}/api/chat`,chatAppUrl:r.public.CHAT_APP_URL,metadata:{brandCode:i.value,pwId:d,accountId:f},panel:{width:560,height:560},loadingPhrases:[[`Even kijken...`,`Momentje...`,`Eens even kijken...`],[`Ik zoek het voor u op...`,`Ik doorzoek ons aanbod...`],[`Bijna klaar...`,`Nog even...`],`Ik stel een antwoord samen...`],theme:{palette:{brand:`var(--colors-primary-500)`}},disclaimer:`Deze AI-chatbot kan fouten bevatten. Bel bij twijfel onze <a href="tel:+31851106539">klantenservice</a>.`});p.mount(),p.on(`ui-state-change`,({state:e})=>{_r({event:`customEvent`,"data-analytics-category":`ai_chat`,"data-analytics-action":`chat_${e}`})}),p.on(`ai-chat:user-message-sent`,()=>{_r({event:`customEvent`,"data-analytics-category":`ai_chat`,"data-analytics-action":`message_sent`,"data-analytics-label":`user_message`})}),p.onActionRequest(`navigate`,e=>{try{let t=new URL(e.url),n=Bt(),r=t.origin!==n.origin;r?Xe(e.url,{external:r,open:{target:`_blank`}}):(p.closeChat(),Xe(t.pathname+t.search))}catch(n){t.log({title:`Failed to handle navigate action from chat app`,error:n,metadata:e})}});let m=k(()=>e.name?.toString()?.includes(`bestellen`)??!1);g(m,e=>e?p.hide():p.show(),{immediate:!0}),o.value=p}catch(e){s.value=!1,o.value=null,t.log({title:`Failed to initialize AI chat`,error:e,metadata:{brandCode:i.value,chatAppUrl:r.public.CHAT_APP_URL}})}finally{c.value=!0}}),{provide:{aiChat:{sdk:o,chatEnabled:s,chatReady:c}}}});function D_(e){return`https://nuxt.com/docs/4.x/errors/${e.replace(`NUXT_`,``).toLowerCase()}`}var O_=[e=>{console.error(`[${e.name}]`)}],k_=o({docsBase:D_,reporters:O_});function A_(e=`nuxt-app`){return r(e,{asyncContext:!1})}var j_=`__nuxt_plugin`;function M_(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[j_]:!0,_name:t})}function N_(e){let t;return h()&&(t=y()?.appContext.app.$nuxt),t||=A_(e).tryUse(),t||null}function P_(e){let t=N_(e);if(!t)throw k_.NUXT_E1001();return t}function F_(e){return P_().$config}import.meta.url.replace(/\/app\/.*$/,`/`);var I_=`__nuxt_error`,L_=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=Ue(e);return Object.defineProperty(t,I_,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};function R_(e){return Ft(jt(e))}globalThis.requestIdleCallback,globalThis.cancelIdleCallback;
243function z_(e,t={}){let n,r=!1,i=[],a,o,s=(t,n)=>{let i=B_(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,s(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let c=t.leading&&!r;r||(r=!0,ve(()=>{r=!1;let a=o??e;o=void 0;let c=t.leading?n:s(this,a);for(let e of i)e(c);i=[]})),c?(n=s(this,e),a(n)):i.push(a)})}}async function B_(e,t,n){return await e.apply(t,n)}j({name:`ServerPlaceholder`,render(){return E(`div`)}});var V_=/^[a-z][a-z0-9-]*$/i;function H_(e,t){return e&&V_.test(e)?e:t}var U_=Symbol.for(`nuxt:client-only`);j({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=Se(!1);D(()=>{r.value=!0});let i=y();return i&&(i._nuxtClientOnly=!0),A(U_,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[oe(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return d(i);let a=e.fallback||e.placeholder||``,o=H_(e.fallbackTag||e.placeholderTag,`span`);return E(o,n,a)}}});function W_(e){return Object.defineProperty(function(){throw k_.NUXT_E1007({name:e.name})},"__nuxt_factory",{enumerable:!1,get:()=>e.factory})}var G_=o({docsBase:D_,reporters:O_}),K_=W_({name:`createUseAsyncData`,factory(e={}){function t(...t){let n=typeof t[t.length-1]==`string`?t.pop():void 0;Y_(t[0],t[1])&&t.unshift(n);let[r,i,a={}]=t,o=!1,s=ge(r)||typeof r==`function`,c=s?k(()=>m(r)):{value:r};if(!c.value||typeof c.value!=`string`)throw G_.NUXT_E3008();if(typeof i!=`function`)throw G_.NUXT_E3009();let l=typeof e==`function`,u=P_(),d=l?e(a):e;if(!l)for(let e in d)d[e]!==void 0&&a[e]===void 0&&(a[e]=d[e]);if(a.server??=!0,a.default??=$_,a.getCachedData??=ev,a.lazy??=!1,a.immediate??=!0,a.deep??=Me.deep,a.dedupe??=`cancel`,a.enabled??=!0,l)for(let e in d)d[e]!==void 0&&(a[e]=d[e]);u._asyncData[c.value];function f(){let e={cause:`initial`,dedupe:a.dedupe},t=u._asyncData[c.value];return t?._init?u._asyncDataPromises[c.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=a.getCachedData(c.value,u,{cause:`initial`}),u._asyncData[c.value]=Q_(u,c.value,i,a,e.cachedData),u._asyncData[c.value]._initialCachedData=e.cachedData),()=>u._asyncData[c.value].execute(e)}let p=f(),h=u._asyncData[c.value];h._deps++;let v=a.server!==!1&&u.payload.serverRendered;{let e=y();if(e&&v&&a.immediate&&!e.sp&&(e.sp=[]),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;fe(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),ie(()=>t.splice(0,t.length))}let t=e&&(e._nuxtClientOnly||_(U_,!1));v&&u.isHydrating&&(h.error.value||h.data.value!==void 0)?h.status.value=h.error.value?`error`:`success`:e&&(!t&&u.payload.serverRendered&&u.isHydrating||a.lazy)&&a.immediate?e._nuxtOnBeforeMountCbs.push(p):a.immediate&&h.status.value!==`success`&&p();function n(e){let t=u._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let r=te(),l=()=>{},d=s?g(c,(e,t)=>{if((e||t)&&e!==t){o=!0;let r=u._asyncData[t]?.data.value!==void 0,s=u._asyncDataPromises[t]!==void 0,c={cause:`initial`,dedupe:a.dedupe};if(!u._asyncData[e]?._init){let n=a.getCachedData(e,u,{cause:`initial`});c.cachedData=n;let o=t&&r&&n===void 0?u._asyncData[t].data.value:n;u._asyncData[e]=Q_(u,e,i,a,o),u._asyncData[e]._initialCachedData=n}u._asyncData[e]._deps++,t&&n(t),a._keyTriggersExecute!==!1&&(a.immediate||r||s)&&u._asyncData[e].execute(c),ve(()=>{o=!1})}},{flush:`sync`}):l,f=a.watch?g(a.watch,()=>{o||u._asyncData[c.value]?._execute({cause:`watch`,dedupe:a.dedupe})}):l,b=ge(a.enabled)||typeof a.enabled==`function`?g(()=>m(a.enabled),e=>{let t=u._asyncData[c.value];e||!t||!u._asyncDataPromises[c.value]||(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete u._asyncDataPromises[c.value],t.status.value=`idle`)}):l;r&&de(()=>{d(),f(),b(),n(c.value)})}let b={data:J_(()=>u._asyncData[c.value]?.data),pending:J_(()=>u._asyncData[c.value]?.pending),status:J_(()=>u._asyncData[c.value]?.status),error:J_(()=>u._asyncData[c.value]?.error),refresh:(...e)=>u._asyncData[c.value]?._init?u._asyncData[c.value].execute(...e):f()(),execute:(...e)=>b.refresh(...e),clear:()=>{let e=u._asyncData[c.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}X_(u,c.value)}}
243,x=Promise.resolve(u._asyncDataPromises[c.value]).then(()=>b);return Object.assign(x,b),Object.defineProperties(x,{then:{enumerable:!0,value:x.then.bind(x)},catch:{enumerable:!0,value:x.catch.bind(x)},finally:{enumerable:!0,value:x.finally.bind(x)}}),x}return t}}),q_=K_.__nuxt_factory();K_.__nuxt_factory({lazy:!0,_functionName:`useLazyAsyncData`});function J_(e){return k({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}})}function Y_(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function X_(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=x(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function Z_(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Q_(e,t,n,r,i){e.payload._errors[t]??=void 0;let a=r.getCachedData!==ev,o=n,s=r.deep?_e:Se,c=i!==void 0,l=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(t))&&await u.execute({cause:`refresh:hook`})}),u={data:s(c?i:r.default()),pending:k(()=>u.status.value===`pending`),error:be(e.payload._errors,t),status:Se(`idle`),execute:(...n)=>{let[i,a=void 0]=n,s=i&&a===void 0&&typeof i==`object`?i:{};if(e._asyncDataPromises[t]&&(s.dedupe??r.dedupe)===`defer`)return e._asyncDataPromises[t];{let n=`cachedData`in s?s.cachedData:r.getCachedData(t,e,{cause:s.cause??`refresh:manual`});if(n!==void 0)return e.payload.data[t]=u.data.value=n,u.error.value=void 0,u.status.value=`success`,Promise.resolve(n)}if(m(r.enabled)===!1)return Promise.resolve(u.data.value);u._abortController&&u._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),u._abortController=new AbortController,u.status.value=`pending`;let c=new AbortController,l=new Promise((t,n)=>{try{let i=s.timeout??r.timeout,a=tv([u._abortController?.signal,s?.signal],c.signal,i);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}return a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:c.signal}),Promise.resolve(o(e,{signal:a})).then(t,n)}catch(e){n(e)}}).then(async n=>{if(e._asyncDataPromises[t]!==l)return;let i=n;r.transform&&(i=await r.transform(n)),r.pick&&(i=Z_(i,r.pick)),e.payload.data[t]=i,u.data.value=i,u.error.value=void 0,u.status.value=`success`}).catch(n=>{if(e._asyncDataPromises[t]!==l||u._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<`u`&&n instanceof DOMException&&n.name===`AbortError`)return u.status.value=`idle`,e._asyncDataPromises[t];u.error.value=L_(n),u.data.value=x(r.default()),u.status.value=`error`}).finally(()=>{c.abort(),e._asyncDataPromises[t]===l&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=l,e._asyncDataPromises[t]},_execute:z_((...e)=>u.execute(...e)),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),e._asyncDataPromises[t]&&(u._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[t],u.status.value===`pending`&&(u.status.value=`idle`)),a||he(()=>{e._asyncData[t]?._init||(X_(e,t),u.execute=()=>Promise.resolve())})}};return u}var $_=()=>void 0,ev=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function tv(e,t,n){let r=e.filter(e=>!!e);if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var nv=dt,rv=[`method`,`baseURL`,`query`,`params`,`body`,`headers`];function iv(e){let t=[m(e.method)?.toUpperCase()||`GET`,m(e.baseURL)];for(let n of[e.query||e.params]){let e=m(n);if(!e)continue;let r={};
243for(let[t,n]of Object.entries(e))r[m(t)]=m(n);t.push(r)}if(e.body){let n=m(e.body);if(!n)t.push(R_(n));else if(n instanceof ArrayBuffer)t.push(R_(Object.fromEntries([...new Uint8Array(n).entries()].map(([e,t])=>[e,t.toString()]))));else if(n instanceof FormData){let e=[];for(let t of n.entries()){let[n,r]=t;e.push([n,r instanceof File?`${r.name}:${r.size}:${r.lastModified}`:r])}t.push(R_(e))}else if(w(n))t.push(R_(ae(n)));else try{t.push(R_(n))}catch{G_.NUXT_E3002({cause:n})}}return t}var av=W_({name:`createUseFetch`,factory(e={}){function t(t,n,r){let[i={},a]=typeof n==`string`?[{},n]:[n,r],o=typeof e==`function`?e(i):e,{server:s,lazy:c,default:l,transform:u,pick:d,watch:f,immediate:p,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,...b}={...typeof e==`function`?{}:o,...i,...typeof e==`function`?o:{}},x=k(()=>m(t)),S=k(()=>m(b.key)||`$f`+R_([a,typeof x.value==`string`?x.value:``,...iv(b)]));if(!b.baseURL&&typeof x.value==`string`&&x.value[0]===`/`&&x.value[1]===`/`)throw G_.NUXT_E3001({url:x.value});let C=ae({...Ae,...b,cache:typeof b.cache==`boolean`?void 0:b.cache}),w={server:s,lazy:c,default:l,transform:u,pick:d,immediate:p,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,watch:f===!1?[]:[...f||[],C]};return f===!1&&(w._keyTriggersExecute=!1),q_(S,(e,{signal:t})=>{let n=b.$fetch||nv,r={signal:t,...C};for(let e of rv)typeof r[e]==`function`&&(r[e]=m(r[e]));return n(x.value,r)},w)}return t}});av.__nuxt_factory(),av.__nuxt_factory({lazy:!0,_functionName:`useLazyFetch`}),globalThis.cookieStore;var ov=/^Object Not Found Matching Id:\d+, MethodName:[^,\s]+, ParamCount:\d+$/,sv=`unhandledrejection handler received a non-error. See "unhandledrejection handler" tab for more detail.`;function cv(e){let t=e.errors?.[0];if(t?.errorClass!==`InvalidError`||t.errorMessage!==sv)return!1;let n=e.getMetadata(`unhandledrejection handler`,`non-error parameter`);return typeof n==`string`&&ov.test(n)}var lv=`data.password.rekeningnummer.iban.wachtwoord.password.geslacht.voorletters.initial.initials.voornaam.tussenvoegsel.middle_name.last_name.achternaam.birth_date.geboortedatum.gender.house_number.phone.phone_number.zip_code.addition.country.email.street.city.leadq_proposition_id.leadq_propositie_id.snowplow_id.snowplow_cookie.parent_id.promotion_code.cookie.postcode.huisnummer.toevoeging.straat.plaats.telefoon.emailadres.Authorization.authorization.akamai-origin-shielding`.split(`.`),uv={"ð¾ ð¥":`ð¾ ð¥`,"ð¾ ã":`ð¾ ã`,"ð¾ â ï¸":`ð¾ â ï¸`,"ð¨ð»âð» ð¥":`ð¨ð»âð» ð¥`,"ð¨ð»âð» ã":`ð¨ð»âð» ã`,"ð¨ð»âð» â ï¸":`ð¨ð»âð» â ï¸`},dv=e=>{switch(e){case`error`:return uv[`ð¨ð»âð» ð¥`];case`info`:return uv[`ð¨ð»âð» ã`];case`warning`:return uv[`ð¨ð»âð» â ï¸`];default:return uv[`ð¨ð»âð» ð¥`]}},fv=(e,{title:t,logLevel:n=`error`,report:r,name:i,message:a,metadata:o})=>{let s=`Client`,c=`${dv(n)} ${s} - ${i||``}`,l=a||r?.message||``,u=`${n} - ${s} - ${i} - ${t}`;r&&e.addMetadata(`report`,r),o&&Object.keys(o).length&&Object.keys(o).forEach(t=>{e.addMetadata(t,o[t])}),e.severity=n,e.context=t,e.groupingHash=u,e.errors&&e.errors[0]&&(e.errors[0].errorClass=c,e.errors[0].errorMessage=l)};function pv(e,t){let{whitelistedRedactedKeys:n}=e;if(n){let e=[...t._config.redactedKeys];n.forEach(t=>{e=e.filter(e=>e===t)}),t._config.redactedKeys=e}return t}function mv(e,t){if(!t)return;t=pv(e,t);let n=e.error instanceof Error?e.error:e.title||`Unknown Error from logParams`;t.notify(n,t=>fv(t,e)),t._config.redactedKeys=lv}var hv=({name:e,message:t,title:n,logLevel:r})=>{r===`error`&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`error`,error_id:e,error_description:t,error_title:n}))};function gv(e){return e.logLevel||=e.error?`error`:`warning`,e}function _v(e){return e.error?.name&&!e.name&&(e.name=e.error.name),e}function vv(e){return e.error?.message&&!e.message&&(e.message=e.error.message),e}function yv(e,t){return e}function bv(e,t){return e}function xv(e,t){return e.ignore=t,e}function Sv(e){let t=e.ignore?.headers||[];return t.length?Object.keys(e.metadata?.request?.headers||{}).some(e=>t.includes(e)):!1}function Cv(e){e=_v(e),e=vv(e),e=gv(e),e=bv(e,this.log.prototype.requestUrl),e=yv(e,this.log.prototype.requestHeaders),e=xv(e,this.log.prototype.ignoreOptions),!Sv(e)&&(this.log.prototype.stage!==`production`&&console.log(e),mv(e,this.log.prototype.bugsnagClient),hv(e))}
243var wv=[Sa,Pa,Xa,Za,Qa,$a,eo,to,no,ro,$o,ts,rs,Ul,Ql,pu,mu,Dd,Jd,Zd,Qd,tf,sg,cg,mg,hg,gg,vg,E_,M_({enforce:`post`,setup(e){let t=F_();Cv.prototype.bugsnagClient=e.$bugsnag,Cv.prototype.stage=t.public.STAGE;let n=e.$bugsnag;return typeof n?.addOnError==`function`&&n.addOnError(e=>{let t=e.errors?.[0]?.errorMessage??``;return!(/^ResizeObserver loop (?:completed with undelivered notifications|limit exceeded)/i.test(t)||/<no response>\s*(?:Load failed|Failed to fetch|NetworkError)/i.test(t))}),typeof n?.addOnError==`function`&&n.addOnError(e=>{let t=e.errors?.[0]?.errorMessage??``;return!/^Unable to preload CSS for \S+$/i.test(t)&&!/^(?:Failed to fetch dynamically imported module(?::.*)?|Importing a module script failed\.?|error loading dynamically imported module(?::.*)?)$/i.test(t)}),typeof n?.addOnError==`function`&&n.addOnError(e=>!cv(e)),typeof n?.addOnError==`function`&&n.addOnError(e=>{let t=e.errors?.[0]?.errorMessage??``,n=e.errors?.[0]?.stacktrace?.[0]?.file??``;return!(/^(?:SyntaxError:\s*)?Unexpected end of input$/i.test(t)&&/\/misc\/ptm(?:$|[/?:])/.test(n))}),{provide:{logger:{log:Cv}}}}}),s({name:`i18n:plugin:ssg-detect`,dependsOn:[`i18n:plugin`,`i18n:plugin:route-locale-detect`],enforce:`post`,setup(e){}})],Tv={props:{isAuth:{type:Boolean,required:!1}}},Ev={class:`base-auth-icon`,width:`32`,height:`24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Dv={key:0,d:`M28.166 4.125 24.73 7.563 23.166 6`,stroke:`#ffffff`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},Ov={key:1,d:`m27.541 4.125-3.75 3.75M23.791 4.125l3.75 3.75`,stroke:`#ffffff`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function kv(e,t,n,r,i,a){return N(),E(`svg`,Ev,[t[0]||=T(`path`,{class:`base-auth-icon__icon`,d:`M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),T(`g`,null,[T(`circle`,{class:S([`base-auth-icon__circle`,{"base-auth-icon__circle--is-auth":n.isAuth}]),cx:`25.666`,cy:`6`,r:`6`},null,2),n.isAuth?(N(),E(`path`,Dv)):(N(),E(`path`,Ov))])])}var Av=Object.assign(Ar(Tv,[[`render`,kv],[`__scopeId`,`data-v-bacae087`]]),{__name:`BaseAuthIcon`}),jv={"aria-label":`Account`,class:`base-account-btn`,"data-testid":`base-account-btn`,"data-analytics-action":`top_bar_click`,"data-analytics-category":`navigation`,"data-analytics-label":`Account`,"data-analytics-property":``},Mv={key:0,class:`base-account-btn__label`},Nv=Object.assign(Ar(j({__name:`BaseAccountBtn`,props:{isAuth:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},isOpen:{type:Boolean,default:!1},user:{default:null}},setup(e){let t=e;return(n,r)=>{let i=Av,a=jr;return N(),E(`button`,jv,[f(i,{"is-auth":t.isAuth},null,8,[`is-auth`]),t.showLabel?(N(),E(`span`,Mv,P(e.user||`Account`),1)):we(``,!0),f(a,{icon:`chevron-${e.isOpen?`up`:`down`}`,size:16,class:`base-account-btn__icon`},null,8,[`icon`])])}}}),[[`__scopeId`,`data-v-ff23f227`]]),{__name:`BaseAccountBtn`}),Pv=Object.assign(Ar(j({__name:`AccountDropdownItem`,props:{label:{default:`Item`},icon:{default:`alert-triangle`},tag:{default:`NuxtLink`},to:{},onClick:{type:Function}},setup(e){let t=k(()=>e.to?On:[`a`,`button`].includes(e.tag)?e.tag:C(e.tag));function n(t){e.onClick&&(t.preventDefault(),e.onClick())}return(r,i)=>{let a=jr;return N(),E(`div`,null,[r.$slots.default?Ce(r.$slots,`default`,{},void 0,!0,0):(N(),I(xe(x(t)),{key:1,to:e.to,class:`tapp-dropdown-item`,"data-analytics-category":`navigation`,"data-analytics-action":`dropdown_button_click`,"data-analytics-label":e.label,onClick:n},{default:F(()=>[e.icon?(N(),I(a,{key:0,icon:e.icon,size:20},null,8,[`icon`])):we(``,!0),p(` `+P(e.label),1)]),_:1},8,[`to`,`data-analytics-label`]))])}}}),[[`__scopeId`,`data-v-c3548bbf`]]),{__name:`BaseAccountDropdownItem`}),Fv={class:`base-dropdown`},Iv={key:0,class:`base-dropdown__inner`},Lv={class:`base-dropdown__footer`},Rv=Object.assign(Ar(j({__name:`AccountDropdown`,props:{items:{}},setup(e){let t=_e(!1),n=_e(null);function r(){t.value=!t.value}return vr(n,()=>{t.value=!1}),(i,a)=>{let o=Pv;return N(),E(`div`,Fv,[T(`div`,{ref_key:`dropdownRef`,ref:n,class:`base-dropdown__trigger`,"data-testid":`base-dropdown-trigger`,onClick:r},[Ce(i.$slots,`trigger`,{isOpen:x(t)},void 0,!0)],512),x(t)?(N(),E(`div`,Iv,[i.$slots.default?Ce(i.$slots,`default`,{},void 0,!0,0):(N(!0),E(ue,{key:1},ne(e.items,e=>(N(),I(o,O({ref_for:!0},e,{key:e.label}),null,16))),128)),T(`div`,Lv,[Ce(i.$slots,`footer`,{},void 0,!0)])])):we(``,!0)])}}}),[[`__scopeId`,`data-v-4724669e`]]),{__name:`BaseAccountDropdown`}),zv=Object.assign(Ar(j({__name:`BaseAccountMenu`,props:{isAuth:{type:Boolean},user:{},items:{}},emits:[`logout`,`login`],setup(e,{emit:t}){let n=t,r=k(()=>e.isAuth&&e.items?[...e.items,{label:`Uitloggen`,icon:`log-out`,tag:`button`,onClick:()=>n(`logout`)}]:e.items);return(t,i)=>{let a=Nv,o=Mr,s=Rv;return N(),I(s,{items:x(r)},ye({trigger:F(({isOpen:t})=>[f(a,{"is-auth":e.isAuth,"is-open":t,"show-label":!0,user:e.user},null,8,[`is-auth`,`is-open`,`user`])]),_:2},[e.isAuth?void 0:{name:`footer`,fn:F(()=>[f(o,{"data-testid":`dropdown-login-button`,"full-width":``,label:`Login`,size:`large`,onClick:i[0]||=e=>n(`login`)},{default:F(()=>[p(P(t.$t(`components.baseAccountMenu.login`)),1)]),_:1})]),key:`0`}]),1032,[`items`])}}}),[[`__scopeId`,`data-v-6ad05f2e`]]),{__name:`BaseAccountMenu`}),Bv={class:`pay-off`},Vv=[`id`],Hv=Ar(j({__name:`TappTopBar`,props:{usps:{},payoff:{},isNested:{type:Boolean},isSticky:{type:Boolean},hideMobile:{type:Boolean}},setup(e){return(t,n)=>{let r=jr;return N(),E(`div`,{class:S([`tapp-top-bar`,{"tapp-top-bar--nested":e.isNested,"tapp-top-bar--sticky":e.isSticky,"tapp-top-bar--hide-mobile":e.hideMobile}]),"data-testid":`tapp-top-bar`},[T(`strong`,Bv,[Ce(t.$slots,`payoff`,{},()=>[p(P(e.payoff),1)],!0)]),(N(!0),E(ue,null,ne(e.usps,(e,t)=>(N(),E(`span`,{id:`usp-${t}`,key:t,class:`usp-item`},[f(r,{icon:`check`,size:16}),p(` `+P(e),1)],8,Vv))),128))],2)}}}),[[`__scopeId`,`data-v-5587ed13`]]),Uv=(e=`RouteProvider`)=>j({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return A(Ze,Te(r)),()=>e.vnode?d(e.vnode,{ref:e.vnodeRef}):e.vnode}}),Wv=Uv(),Gv=new WeakMap,Kv=j({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:i}){let a=n(),o=_e(),s=_(Ze,null),c=new Set,l;i({pageRef:o});let u=_(Be,null),f,p=a.deferHydration(),m=!1,h=!1,v,y=0;if(a.isHydrating){let e=a.hooks.hookOnce(`app:error`,p),t=Ke().beforeEach(()=>{e(),t()})}e.pageKey&&g(()=>e.pageKey,(e,t)=>{e!==t&&a.callHook(`page:loading:start`)});let b=!1;{let e=Ke().beforeResolve(()=>{b=!1});ce(()=>{e(),p()})}return()=>d(va,{name:e.name,route:e.route,...t},{default:Yv(t=>{let n=qv(s,t.route,t.Component),i=s&&s.matched.length===t.route.matched.length;if(!t.Component){if(f&&!i&&!Zv(f))return f;p();return}if(f&&u&&!Zv(f)&&!u.isCurrent(t.route))return f;
243if(n&&s&&(!u||u?.isCurrent(s)))return(i||f)&&!Zv(f)?f:null;let g=za(t,e.pageKey),_=Jv(s,t.route,t.Component);!a.isHydrating&&l===g&&!_&&he(()=>{b||(b=!0,a.callHook(`page:loading:end`))}),m&&l!==g&&h&&y++,l=g;let x=!!(e.transition??t.route.meta.pageTransition??!1),S=x&&gn([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){a[`~transitionFinish`]?.(),delete a[`~transitionFinish`],delete a[`~transitionPromise`],a.callHook(`page:transition:finish`,t.Component)}}]),C=e.keepalive??t.route.meta.keepalive??!1,w=t.Component.type,ee=w.name||w.__name;t.route.meta.keepalive&&ee&&c.add(ee);let T;if(c.size>0&&e.keepalive==null&&(!C||typeof C==`object`&&C&&C.include)){let e=typeof C==`object`&&C?{...C}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];T={...e,include:Array.from(new Set([...t,...c]))}}else T=C;return f=Cn(x&&S,Ba(T,d(le,{key:y,suspensible:!0,onPending:()=>{m=!0,x&&!a[`~transitionPromise`]&&(a[`~transitionPromise`]=new Promise(e=>{a[`~transitionFinish`]=e})),v=a.callHook(`page:start`,t.Component)}
243,onResolve:async()=>{m=!1,h=!0,a.isHydrating&&a[`~restoreDeferredRoute`]?.();try{await he(),a._route.sync?.(),await v,await a.callHook(`page:finish`,t.Component),!b&&!_&&(b=!0,await a.callHook(`page:loading:end`))}finally{p()}}},{default:()=>{let e={key:g||void 0,vnode:r.default?Xv(r.default,t):t.Component,route:t.route,renderKey:g||void 0,trackRootNodes:x,vnodeRef:o,routeRecord:void 0};if(!T)return d(Wv,e);let n=w,i=Gv.get(n);return i||(i=Uv(ee),Gv.set(n,i)),d(i,e)}}))).default(),f})})}});function qv(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&za({route:t,Component:n})!==za({route:e,Component:n})}function Jv(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function Yv(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!ee(n)?[we()]:[n]});return t._n=!0,t}function Xv(e,t){let n=e(t);return n.length===1?d(n[0]):d(ue,void 0,n)}function Zv(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var Qv=b(()=>z(()=>import(`./CsS8vyGW.js`).then(e=>e.default||e),__vite__mapDeps([282,2,3,4,15,9,5,10,283,57,71,18,72,284]),import.meta.url).then(e=>Lt(e))),$v=b(()=>z(()=>import(`./DHXDURDf.js`).then(e=>e.default||e),__vite__mapDeps([285,2,3,4,13,1,5,6,9,10,11,8,12,14,15,23,16,17,18,19,35,28,283,69,26,24,27,29,37,38,39,40,57,71,72,70,73,286,287,78,67,79,80,81,82,42,50,51,87,88,288,289,290]),import.meta.url)),ey=Object.assign(j({__name:`InspectorBase.client`,setup(e){let{enable:t,kill:r,inspectorEnabled:i}=Fr(),o=ze(),s=n();D(async()=>{if(a().public.STAGE!==`production`&&typeof o.query.usernameEncrypted==`string`&&typeof o.query.passwordEncrypted==`string`){let{default:e}=await z(async()=>{let{default:e}=await import(`./MYOTtcAh.js`).then(e=>e.n);return{default:e}},__vite__mapDeps([289,18,1,2,3,4,5,6,11,8,9,10,12,13,14,15,27,28,287,39,42,16,17,19]),import.meta.url);await s.runWithContext(()=>e().autologin())}});let{isStoryblokInspectorEnabled:c}=Pr();return g(c,()=>window.location.reload()),br(async({ctrlKey:e,key:n,shiftKey:a})=>{if(e&&a&&n===`I`&&(i.value?r():t()),e&&a&&n===`E`&&(c.value=!c.value),e&&a&&n===`F`){let{fillInTappOrderForm:e}=await z(async()=>{let{fillInTappOrderForm:e}=await import(`./DuTSqBad.js`).then(e=>e.t);return{fillInTappOrderForm:e}},__vite__mapDeps([288,18]),import.meta.url);await e()}}),(e,t)=>{let n=Qv,r=$v;return N(),E(ue,null,[f(n),x(i)?(N(),I(r,{key:0})):we(``,!0)],64)}}}),{__name:`InspectorBase`}),ty=b(()=>z(()=>import(`./Cp8QHZtO.js`).then(e=>e.default||e),__vite__mapDeps([140,3,47,14,32,1,2,4,5,6,33,34,15,9,10,35,18,8,11,12,13,28,27,29,57,141]),import.meta.url)),ny={class:`app-accessibility-policy-modal`},ry=Object.assign(Ar(j({__name:`AppAccessibilityPolicyModal`,setup(e){let t=At(`isAccessibilityPolicyModalOpen`,()=>!1),{brandLocale:n,brandCode:r}=Sr();return(e,i)=>{let a=ty,o=Ir;return N(),I(o,{open:x(t),"onUpdate:open":i[0]||=e=>ge(t)?t.value=e:null,"accessible-title":`Accessibility Policy`,"accessible-description":`Read our accessibility policy for the kiosk app`},{default:F(()=>[T(`div`,ny,[x(t)?(N(),I(a,{key:0,"app-slug":`shops`,locale:x(n),title:x(r)},null,8,[`locale`,`title`])):we(``,!0)])]),_:1},8,[`open`])}}}),[[`__scopeId`,`data-v-59ba9bf5`]]),{__name:`AppAccessibilityPolicyModal`}),iy=j({name:`LayoutLoader`,inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>d(es[e.name],e.layoutProps,t.slots)}}),ay=j({name:`NuxtLayout`,inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){let r=n(),i=_(Ze),a=!i||i===ze()?pn():i,o=k(()=>{let t=Vt(a,e.name);return t&&!(t in es)&&e.fallback&&(t=x(e.fallback)),t});A(Ie,o);let s=Se();t.expose({layoutRef:s});let c=r.deferHydration();if(r.isHydrating){let e=r.hooks.hookOnce(`app:error`,c),t=Ke().beforeEach(()=>{e(),t()})}let l;return()=>{let n=!!o.value&&o.value in es&&!!(a?.meta.layoutTransition??!1),i=n&&gn([a?.meta.layoutTransition,!1,{onBeforeLeave(){r[`~transitionPromise`]=new Promise(e=>{r[`~transitionFinish`]=e})},onAfterLeave(){r[`~transitionFinish`]?.(),delete r[`~transitionFinish`],delete r[`~transitionPromise`]}}]),u=l;return l=o.value,Cn(i,{default:()=>d(le,{suspensible:!0,onResolve:async()=>{await he(c)}},{default:()=>d(oy,{layoutProps:O(t.attrs,a.meta.layoutProps??{},{ref:s}),key:o.value||void 0,name:o.value,shouldProvide:!e.name,isRenderingNewLayout:e=>e!==u&&e===o.value,hasTransition:n},t.slots)})}).default()}}}),oy=j({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){let n=e.name;e.shouldProvide&&A(Be,{isCurrent:e=>n===!1||n===Vt(e)});let r=_(Ze),i=r&&r===ze(),a=_(Be,null);if(i){let t=pn(),n={};for(let i in t){let o=i;Object.defineProperty(n,o,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)&&(!a||a.isCurrent(t))?t[o]:r[o]})}A(Ze,Te(n))}return()=>!n||typeof n==`string`&&!(n in es)?t.slots.default?.():d(iy,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}});function sy({gtmCode:e}={}){let t=a(),n=e||t.public.GTM||`GTM-W9WWJW`,r=t.public.STAGE===`production`,i=ze(),o=`${t.app.baseURL===`/`?``:t.app.baseURL}
243`,s=i.query.forceGtm===`true`||i.query.gtm===`true`,c=i.query.gtm===`false`||Gn();if(!r&&!s||c||Br(lt(`user-agent`)??``)&&!s)return;D(()=>{l()});function l(){if(document.getElementById(`gtm-init`))return;let e=document.createElement(`script`);e.id=`gtm-init`,e.async=!0,e.defer=!0,e.innerHTML=` 244 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 245 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 246 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 247 '${o}/misc/ptm?id='+i+dl;f.parentNode.insertBefore(j,f); 248 })(window,document,'script','dataLayer','${n}'); 249 `,document.head.appendChild(e);let t=document.createElement(`noscript`);t.innerHTML=`<iframe src="https://www.googletagmanager.com/ns.html?id=${n}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`,document.body.appendChild(t)}}function cy(){let e=Rr(),t=ze(),{isZakelijkEnabled:n}=Wr(),r=At(`isAccessibilityPolicyModalOpen`);function i(){r.value=!0}let a=At(`hasDigitaalPage`,()=>!1),o=At(`hasSeniorsPage`,()=>!1),s=At(`hasStudentenPage`,()=>!1);async function c(){let{data:t}=await Gr({params:{by_slugs:[`shops/pages/65-plus/${e?.brandCode}`,`shops/pages/digitaal/${e?.brandCode}`,`shops/pages/studenten/${e?.brandCode}`].join(`,`)},locale:e?.locale});a.value=t.value?.data.stories.some(e=>e.full_slug.includes(`digitaal`))??!1,o.value=t.value?.data.stories.some(e=>e.full_slug.includes(`65-plus`))??!1,s.value=t.value?.data.stories.some(e=>e.full_slug.includes(`studenten`))??!1}let l=k(()=>t.path===`/zakelijk`||t.path.startsWith(`/zakelijk/`)),u=k(()=>l.value&&e?.locale.includes(`be`)?`https://www.dpgmediagroup.com/nl-BE/privacybeleid`:l.value&&e?.locale.includes(`nl`)?`https://www.dpgmediagroup.com/nl-NL/privacybeleid`:`https://privacy.dpgmedia.nl/nl/document/privacy-policy`),d=k(()=>l.value&&e?.locale.includes(`be`)?`https://privacy.dpgmedia.be/nl/document/abonnementsvoorwaarden-zakelijk`:l.value&&e?.locale.includes(`nl`)?`https://privacy.dpgmedia.nl/nl/document/abonnementsvoorwaarden-zakelijk`:e?.locale.includes(`be`)?`https://privacy.dpgmedia.be/nl/document/ABONNEMENTSVOORWAARDEN-ALGEMEEN-DPGMEDIA-BE`:`https://privacy.dpgmedia.nl/nl/document/ABONNEMENTSVOORWAARDEN-ALGEMEEN-DPGMEDIA-NL`);return{fetchFooter:c,bindableFooter:k(()=>{let r=[];return e?.specials?.forEach(e=>{r.push({tag:`NuxtLink`,to:{path:`/${e.slug}`,query:t.query},label:e.name,target:`_blank`})}),t.path.includes(`/bestellen`)||(a.value&&r.push({tag:`NuxtLink`,to:{path:`/digitaal`,query:t.query},label:`Digitaal`}),s.value&&r.push({tag:`NuxtLink`,to:{path:`/studenten`,query:t.query},label:`Studenten`}),o.value&&r.push({tag:`NuxtLink`,to:{path:`/65-plus`,query:t.query},label:`65-Plus`}),n&&r.push({tag:`NuxtLink`,to:{path:`/zakelijk`,query:t.query},label:`Zakelijk`})),r.push({tag:`button`,label:`Toegankelijkheid`,onClick:i}),r.push({tag:`NuxtLink`,label:`Privacy Statement`,to:u.value,target:`_blank`},{tag:`NuxtLink`,label:`Abonnementsvoorwaarden`,to:d.value,target:`_blank`},{tag:`button`,label:`Privacy instellingen`,onClick:()=>window._privacy?.openModal()}),{items:r}})}}function ly(){let{t:e}=cr(),{windowProducts:t}=qr(),{hasDigitalAccess:n}=Jr(),{variation:r}=pr(wr.usp_balk_test);return k(()=>{if(t.value?.some(e=>e.priceGroup===`GSTD`&&!e.payment?.amount))return[e(`usps.header.forStudents`),e(`usps.header.startDirectlyReading`),e(`usps.header.alwaysCancelable`)];let i=n.value?e(`usps.header.startDirectlyReading`):e(`usps.header.trial`);return t.value?.length&&t.value?.every(e=>xr(e))?[e(`usps.header.alwaysCancelable`),i,e(`usps.header.introductoryDiscountForNewSubscribers`)]:r===`variation_1`?[e(`usps.header.introductoryDiscountForNewSubscribers`),i,e(`usps.header.easyToCancel`)]:r===`variation_2`?[e(`usps.header.introductoryDiscountForNewSubscribers`),i,e(`usps.header.onlineCancelable`)]:r===`variation_3`?[e(`usps.header.introductoryDiscountForNewSubscribers`),i,e(`usps.header.customerService`)]:[e(`usps.header.easyToCancel`),i,e(`usps.header.introductoryDiscountForNewSubscribers`)]})}var uy=Cr;function dy(){let{$logger:e}=n(),t=At(`isBusinessHour`,()=>!1);async function r(...t){try{let{isBusinessHour:e}=await uy(...t);return e}catch(t){if(t instanceof ft&&t.name===`AbortError`)return;e.log({error:t,title:`Error with fetching business hours`,name:t instanceof Error?t.name:`UnknownError`,metadata:{...t instanceof ft?{fetchError:{...t}}:{}}})}}async function i(...e){t.value=await r(...e)||!1}return{isBusinessHour:t,setBusinessHour:i}}function fy(){let{isSsoEnabled:e}
249=Rn().public.pip;if(!e)return;let t=Fi({id:`ssoscript`,src:`https://login-static.dpgmedia.net/ssosession/main.js`},{trigger:`client`,use:()=>window.ssoDetection});return t.onError(e=>In().$logger.log({title:`SSO script did not become usable`,error:e})),t}function py({blockedRouteSegments:e=[],params:t}){let n=Nn(),{initSso:r,isPipDisabled:i}=zn();if(i.value)return;let a=k(()=>e.includes(n.path.split(`/`).filter(Boolean).at(-1)??``));if(a.value)return;let o=Ln(`ssoDetectionStarted`,()=>!1);fy()?.onLoaded(()=>{if(o.value||a.value)return;let e=t();e&&(o.value=!0,r(e))})}var my=[`bedankt`,`actie`,`zakelijk-contact`],hy={digitaal:`digitaal`,bundels:`bundels`,specials:`specials`,aanbieding:`aanbieding`,studenten:`studenten`,zakelijk:`zakelijk`,"65-plus":`65-plus`};function gy(e){return my.some(t=>e.includes(t))}function _y(e,t,n,r){if(hy[e])return{label:hy[e],slug:e};if(t.startsWith(`specialProduct`)){let e=n.toLowerCase(),t=Hn(r);return{label:Lr.get(t)?.specials?.find(t=>t.slug===e)?.name??e,slug:e}}return null}function vy(){let e=ze(),{brand:t}=Sr(),n=Bt();return{breadcrumbSchema:k(()=>{let r=t.value;if(!r?.domain)return null;let i=e.name?.toString()??``;if(gy(i))return null;let a=`https://abonnement.${r.domain}`,o=`${r.name?.default??r.code} abonnement`,s=[],c=(e,t)=>{let n=s.length?s[s.length-1].name:o;s.push({name:e?`${n} ${e}`:n,url:t?`${a}/${t}`:a})};if(c(``,``),e.path!==`/`){let t=e.path.split(`/`).filter(Boolean),r=Qn(e.params.specialProduct)??``,a=_y(t[0]??``,i,r,n.host);a&&c(a.label,a.slug),t.includes(`bestellen`)&&c(`bestellen`,t.join(`/`))}return Qr({items:s})})}}var yy=Lt(ey),by=j({__name:`app`,async setup(e){let t,r,{mid:i,setMid:a}=Xn(),o=ze(),{$timing:s}=n(),{t:c}=cr();Un();let l=Rr();if(!l)throw Ge({statusCode:404,statusMessage:`Page Not Found`});let{validSpecialProductSlug:u,showSpecialsToggle:d}=zr();if(typeof o.name==`string`&&o.name.startsWith(`specialProduct`)&&!u)throw Ge({statusCode:404,statusMessage:`Page Not Found`});!o.query.mid&&pr(wr.magazines_rat_vs_xpv).variation===`variation_1`&&a(Kr.magazines_rat_vs_xpv),sy();let{initDM:p}=Hr(),{fetchLead:m}=Vr(),{fetchMidData:h}=Ur(),{fetchPhoneNumber:_}=Dr(),{bindableFooter:y,fetchFooter:b}=cy(),{setLocale:S}=cr(),{login:C,logout:w,isAuth:ee,userinfo:T}=zn(),te=ly(),E=Un().value,{fetchCatalog:ne,setPropositionGroup:D,brand:O,brandType:ie}=Sr(),{setBusinessHour:ae,isBusinessHour:A}=dy(),oe=Jn();py({blockedRouteSegments:[`bestellen`,`bedankt`,`contact`],params:()=>({country:oe,type:ie.value===`magazine`?`magazine`:`paper`,loggedInEmail:T.value?.email||``,brandCode:E})}),s.start(`shops-lead`),[t,r]=v(()=>m()),await t,r(),s.end(`shops-lead`),p(),D(`default`);let se=qn(o.query.leadqId)||void 0,ce=[E].join(`,`),{phoneNumber:j}=Dr(),{homepageStorySlug:le}=Yr(),M=async()=>{let e=[b(),h(i.value),_(),ne({brandCodes:ce,group:`default`,leadqId:se,mid:i.value}),ae(`shops`,E),$r(),ei({brandCode:E,locale:l.locale}),dr({path:`/shops/pages/homepage/${le(l.brandCode)}`,metaData:{title:l.brandCode,title_product:l.brandCode},locale:l.locale,params:{resolve_relations:[`ShopsProductWindowCard.usps`,`ShopsProductWindowCard.deactive_usps`,`ShopsProductWindowCard.extras`]}})];await Promise.all(e)};s.start(`shops-app-data`),[t,r]=v(()=>zt(M,`$tdpRc_SEVK`)),await t,r(),s.end(`shops-app-data`),n().hook(`app:data:refresh`,M);let{brandLocale:P}=Sr();async function ue(){let e=P.value||`nl`,t=o.path.includes(`/studenten`)?e.replace(`-formal`,``):e;await S(t)}g(()=>o.path,()=>{ue()}),[t,r]=v(()=>ue()),await t,r();let de=k(()=>{if(o.path.includes(`zakelijk`))return o.path===`/zakelijk`?void 0:{to:{path:`/zakelijk`}};if(o.name?.toString().includes(`specialProduct`))return o.name?.toString()===`specialProduct`&&d.value?{to:{path:`/`,query:o.query}}:o.name?.toString()===`specialProduct`?void 0:{to:{name:`specialProduct`,params:o.params,query:{...o.query,gift:void 0,productCode:void 0}}};if(o.path!==`/`)return{to:{path:`/`,query:{...o.query,gift:void 0,productCode:void 0,propositionUuid:void 0}}}}),fe=k(()=>!o.name?.toString().includes(`zakelijk`)),pe=k(()=>{let e=kr({isBusinessHour:A.value,phoneNumber:j.value,t:c,brand:O.value});return E.toUpperCase()===`LINDA`?{...e,avatar:``,businessHourContent:``,closedContent:``,customerServiceLink:`https://klantenservice.linda.nl/nl/support/tickets/new`,customerServiceLinkText:`Klantenservice`,customerServiceIntroText:`Heb je een vraag?`,customerServiceLinkAttrs:{target:`_blank`}}:o.name?.toString().includes(`zakelijk`)?{...e,customerServiceLink:void 0,isBusinessHour:A.value,phoneNumber:P.value.startsWith(`be`)?`024901105`:`0885500110`}:o.name?.toString().startsWith?.(`studenten`)?{...e,businessHourContent:``,closedContent:``}:e}),me=O.value?Xr({brand:O.value,app:`shops`}):[],he=k(()=>{let e=O.value;return e?.domain?Zr({brand:e,url:`https://${e.domain}`}):null});wt({script:he.value?[{type:`application/ld+json`,innerHTML:JSON.stringify(he.value)}]:[]});let{breadcrumbSchema:ge}=vy();return wt(()=>({script:ge.value?[{type:`application/ld+json`,innerHTML:JSON.stringify(ge.value)}]:[]})),(e,t)=>{let n=Tr,r=zv,i=Er,a=Hv,o=Kv,s=yy,c=Or,u=ry,d=ay;return N(),I(d,{name:`branded`},{top:F(()=>[f(i,{"logo-link":x(de),variant:`long`},ye({service:F(()=>
249[f(n,re(Ee(x(pe))),null,16)]),_:2},[x(l).disableAccount?void 0:{name:`actions`,fn:F(()=>[f(r,{"is-auth":x(ee),user:x(T)?.given_name,items:x(me),onLogin:x(C),onLogout:x(w)},null,8,[`is-auth`,`user`,`items`,`onLogin`,`onLogout`])]),key:`0`}]),1032,[`logo-link`])]),footer:F(()=>[f(c,re(Ee(x(y))),null,16),f(u)]),default:F(()=>[x(fe)&&x(te).length?(N(),I(a,{key:0,usps:x(te),"hide-mobile":``},null,8,[`usps`])):we(``,!0),f(o),f(s)]),_:1})}}}),xy={key:0},Sy={class:`error__pre`},Cy=Ar(j({__name:`error`,async setup(e){let t,n,r=Je(),i=Un(),{fetchCatalog:a,brandDomain:o,brand:s}=Sr(),{bindableFooter:c,fetchFooter:l}=cy(),{login:u,logout:d,isPipDisabled:p,isAuth:m}=zn();r.value?.status===404&&ni({message:`404 page not found`,metadata:{url:Bt().pathname}});let h=async()=>{let e=[l(),a({brandCodes:i.value})];await Promise.all(e)};[t,n]=v(()=>zt(h,`$6C4OqvGaA6`)),await t,n();let g=k(()=>new URL(`https://${o.value??`dpgmediagroup.com`}`).href);return(e,t)=>{let n=Mr,i=ti,a=Nr,o=Or,l=ay;return N(),I(l,{brand:x(s),name:`error-layout`,"show-customer-service":``,"show-login":!x(p),"show-usps":!1,"logo-link":{to:`/`},"is-auth":x(m),onLogout:x(d),onLogin:x(u)},{footer:F(()=>[f(o,re(Ee(x(c))),null,16)]),default:F(()=>[f(a,{size:`small`,"data-testid":`error-layout`},{default:F(()=>[f(i,{"data-testid":`error-layout`},{default:F(()=>[T(`h1`,null,P(e.$t(`error.header`)),1),T(`p`,null,P(e.$t(`error.main`)),1),T(`ul`,null,[T(`li`,null,[f(n,{variant:`primary`,text:`Naar abonneren`,to:{path:`/`,query:(e._.provides[Ze]||e.$route).query}},null,8,[`to`])]),T(`li`,null,[f(n,{variant:`ghost`,text:`Naar home`,href:x(g),tag:`a`},null,8,[`href`])])]),x(!1)?(N(),E(`footer`,xy,[T(`h2`,null,P(e.$t(`error.technical.header`)),1),T(`pre`,Sy,P(x(r)),1),T(`h6`,null,P(e.$t(`error.technical.subtitle`)),1)])):we(``,!0)]),_:1})]),_:1})]),_:1},8,[`brand`,`show-login`,`is-auth`,`onLogout`,`onLogin`])}}}),[[`__scopeId`,`data-v-03a8f904`]]),wy=()=>null,Ty={key:0},Ey={__name:`nuxt-root`,setup(e){let t=n(),r=t.deferHydration();if(t.isHydrating){let e=t.hooks.hookOnce(`app:error`,r),n=Ke().beforeEach(()=>{e(),n()})}window.location.pathname,A(Ze,ze()),t.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let i=Je();function a(e,n,r){let i=t.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,n,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return me((e,n,r)=>{if(t.hooks.callHook(`vue:error`,e,n,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),Pe(navigator.userAgent))return Ye(t,e),!1;if(Le(e)&&(e.fatal||e.unhandled))return t.runWithContext(()=>Ge(e)),a(e,n,r),!1}),(e,t)=>(N(),I(le,{onResolve:x(r)},{default:F(()=>[x(!1)?(N(),E(`div`,Ty)):x(i)?(N(),I(x(Cy),{key:1,error:x(i)},null,8,[`error`])):x(!1)?(N(),I(x(wy),{key:2,context:x(!1)},null,8,[`context`])):x(!1)?(N(),I(xe(x(!1)),{key:3})):(N(),I(x(by),{key:4}))]),_:1},8,[`onResolve`]))}},Dy;{let e;Dy=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?De(Ey):Oe(Ey),r=i({vueApp:n});async function a(e){await r.callHook(`app:error`,e),r.payload.error||=He(e)}a.__nuxt_default=!0,n.config.errorHandler=a,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===a&&(n.config.errorHandler=void 0)}),!t&&ke.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(ke.id)?.remove()});try{await l(r,wv)}catch(e){a(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(je),await r.hooks.callHook(`app:mounted`,n),await he()}catch(e){a(e)}return n},e=Dy().catch(e=>{throw u.NUXT_E1009({cause:e}),e})} 250//# sourceMappingURL=zpcr96Uy.js.map
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.