PageSourceSearch

https://www.bill.com/static/js/common.js

js bill.com collected 2026-09-24 08:29:41 UTC 397,103 bytes, 25 lines download raw bytes

1"use strict";(()=>{var IO=Object.create;var Ra=Object.defineProperty,OO=Object.defineProperties,CO=Object.getOwnPropertyDescriptor,AO=Object.getOwnPropertyDescriptors,kO=Object.getOwnPropertyNames,Hv=Object.getOwnPropertySymbols,RO=Object.getPrototypeOf,Kv=Object.prototype.hasOwnProperty,PO=Object.prototype.propertyIsEnumerable;var Gv=(e,t,r)=>t in e?Ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Se=(e,t)=>{for(var r in t||(t={}))Kv.call(t,r)&&Gv(e,r,t[r]);if(Hv)for(var r of Hv(t))PO.call(t,r)&&Gv(e,r,t[r]);return e},jn=(e,t)=>OO(e,AO(t));var R=(e,t)=>()=>(e&&(t=e(e=0)),t);var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xr=(e,t)=>{for(var r in t)Ra(e,r,{get:t[r],enumerable:!0})},NO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of kO(t))!Kv.call(e,i)&&i!==r&&Ra(e,i,{get:()=>t[i],enumerable:!(n=CO(t,i))||n.enumerable});return e};var wr=(e,t,r)=>(r=e!=null?IO(RO(e)):{},NO(t||!e||!e.__esModule?Ra(r,"default",{value:e,enumerable:!0}):r,e));var Z=(e,t,r)=>new Promise((n,i)=>{var o=u=>{try{s(r.next(u))}catch(c){i(c)}},a=u=>{try{s(r.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((r=r.apply(e,t)).next())});var ge=g((A5,Wv)=>{Wv.exports=function(e){try{return!!e()}catch(t){return!0}}});var eo=g((k5,Yv)=>{var MO=ge();Yv.exports=!MO(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var fe=g((R5,Jv)=>{var $v=eo(),Xv=Function.prototype,vc=Xv.call,LO=$v&&Xv.bind.bind(vc,vc);Jv.exports=$v?LO:function(e){return function(){return vc.apply(e,arguments)}}});var Wr=g((P5,Qv)=>{var Zv=fe(),DO=Zv({}.toString),qO=Zv("".slice);Qv.exports=function(e){return qO(DO(e),8,-1)}});var tm=g((N5,em)=>{var FO=fe(),UO=ge(),jO=Wr(),mc=Object,BO=FO("".split);em.exports=UO(function(){return!mc("z").propertyIsEnumerable(0)})?function(e){return jO(e)=="String"?BO(e,""):mc(e)}:mc});var Yr=g((M5,rm)=>{rm.exports=function(e){return e==null}});var Bn=g((L5,nm)=>{var VO=Yr(),zO=TypeError;nm.exports=function(e){if(VO(e))throw zO("Can't call method on "+e);return e}});var Vn=g((D5,im)=>{var HO=tm(),GO=Bn();im.exports=function(e){return HO(GO(e))}});var le=g((om,am)=>{var Pa=function(e){return e&&e.Math==Math&&e};am.exports=Pa(typeof globalThis=="object"&&globalThis)||Pa(typeof window=="object"&&window)||Pa(typeof self=="object"&&self)||Pa(typeof global=="object"&&global)||function(){return this}()||om||Function("return this")()});var wt=g((q5,sm)=>{sm.exports=!1});var Na=g((F5,cm)=>{var um=le(),KO=Object.defineProperty;cm.exports=function(e,t){try{KO(um,e,{value:t,configurable:!0,writable:!0})}catch(r){um[e]=t}return t}});var Ma=g((U5,fm)=>{var WO=le(),YO=Na(),lm="__core-js_shared__",$O=WO[lm]||YO(lm,{});fm.exports=$O});var La=g((j5,pm)=>{var XO=wt(),dm=Ma();(pm.exports=function(e,t){return dm[e]||(dm[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.31.0",mode:XO?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Da=g((B5,vm)=>{var JO=Bn(),ZO=Object;vm.exports=function(e){return ZO(JO(e))}});var ft=g((V5,mm)=>{var QO=fe(),eC=Da(),tC=QO({}.hasOwnProperty);mm.exports=Object.hasOwn||function(t,r){return tC(eC(t),r)}});var hc=g((z5,hm)=>{var rC=fe(),nC=0,iC=Math.random(),oC=rC(1 .toString);hm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+oC(++nC+iC,36)}});var to=g((H5,gm)=>{gm.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var yc=g((G5,xm)=>{var Em=le(),gc=to(),ym=Em.process,_m=Em.Deno,bm=ym&&ym.versions||_m&&_m.version,Sm=bm&&bm.v8,Tt,qa;Sm&&(Tt=Sm.split("."),qa=Tt[0]>0&&Tt[0]<4?1:+(Tt[0]+Tt[1]));!qa&&gc&&(Tt=gc.match(/Edge\/(\d+)/),(!Tt||Tt[1]>=74)&&(Tt=gc.match(/Chrome\/(\d+)/),Tt&&(qa=+Tt[1])));xm.exports=qa});var _c=g((K5,Tm)=>{var wm=yc(),aC=ge(),sC=le(),uC=sC.String;Tm.exports=!!Object.getOwnPropertySymbols&&!aC(function(){var e=Symbol();return!uC(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wm&&wm<41})});var bc=g((W5,Im)=>{var cC=_c();Im.exports=cC&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ye=g((Y5,Cm)=>{var lC=le(),fC=La(),Om=ft(),dC=hc(),pC=_c(),vC=bc(),zn=lC.Symbol,Sc=fC("wks"),mC=vC?zn.for||zn:zn&&zn.withoutSetter||dC;Cm.exports=function(e){return Om(Sc,e)||(Sc[e]=pC&&Om(zn,e)?zn[e]:mC("Symbol."+e)),Sc[e]}});var xc=g(($5,Am)=>{var Ec=typeof document=="object"&&document.all,hC=typeof Ec=="undefined"&&Ec!==void 0;Am.exports={all:Ec,IS_HTMLDDA:hC}});var ae=g((X5,Rm)=>
vendor: 16,833 bytes, line 1
1{var km=xc(),gC=km.all;Rm.exports=km.IS_HTMLDDA?function(e){return typeof e=="function"||e===gC}:function(e){return typeof e=="function"}});var It=g((J5,Mm)=>{var Pm=ae(),Nm=xc(),yC=Nm.all;Mm.exports=Nm.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Pm(e)||e===yC}:function(e){return typeof e=="object"?e!==null:Pm(e)}});var We=g((Z5,Lm)=>{var _C=It(),bC=String,SC=TypeError;Lm.exports=function(e){if(_C(e))return e;throw SC(bC(e)+" is not an object")}});var Ot=g((Q5,Dm)=>{var EC=ge();Dm.exports=!EC(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var wc=g((eB,qm)=>{var xC=Ot(),wC=ge();qm.exports=xC&&wC(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var ro=g((tB,Um)=>{var TC=le(),Fm=It(),Tc=TC.document,IC=Fm(Tc)&&Fm(Tc.createElement);Um.exports=function(e){return IC?Tc.createElement(e):{}}});var Ic=g((rB,jm)=>{var OC=Ot(),CC=ge(),AC=ro();jm.exports=!OC&&!CC(function(){return Object.defineProperty(AC("div"),"a",{get:function(){return 7}}).a!=7})});var Ee=g((nB,Bm)=>{var kC=eo(),Fa=Function.prototype.call;Bm.exports=kC?Fa.bind(Fa):function(){return Fa.apply(Fa,arguments)}});var Ut=g((iB,Vm)=>{var Oc=le(),RC=ae(),PC=function(e){return RC(e)?e:void 0};Vm.exports=function(e,t){return arguments.length<2?PC(Oc[e]):Oc[e]&&Oc[e][t]}});var Hn=g((oB,zm)=>{var NC=fe();zm.exports=NC({}.isPrototypeOf)});var Cc=g((aB,Hm)=>{var MC=Ut(),LC=ae(),DC=Hn(),qC=bc(),FC=Object;Hm.exports=qC?function(e){return typeof e=="symbol"}:function(e){var t=MC("Symbol");return LC(t)&&DC(t.prototype,FC(e))}});var no=g((sB,Gm)=>{var UC=String;Gm.exports=function(e){try{return UC(e)}catch(t){return"Object"}}});var Ct=g((uB,Km)=>{var jC=ae(),BC=no(),VC=TypeError;Km.exports=function(e){if(jC(e))return e;throw VC(BC(e)+" is not a function")}});var Gn=g((cB,Wm)=>{var zC=Ct(),HC=Yr();Wm.exports=function(e,t){var r=e[t];return HC(r)?void 0:zC(r)}});var $m=g((lB,Ym)=>{var Ac=Ee(),kc=ae(),Rc=It(),GC=TypeError;Ym.exports=function(e,t){var r,n;if(t==="string"&&kc(r=e.toString)&&!Rc(n=Ac(r,e))||kc(r=e.valueOf)&&!Rc(n=Ac(r,e))||t!=="string"&&kc(r=e.toString)&&!Rc(n=Ac(r,e)))return n;throw GC("Can't convert object to primitive value")}});var Qm=g((fB,Zm)=>{var KC=Ee(),Xm=It(),Jm=Cc(),WC=Gn(),YC=$m(),$C=ye(),XC=TypeError,JC=$C("toPrimitive");Zm.exports=function(e,t){if(!Xm(e)||Jm(e))return e;var r=WC(e,JC),n;if(r){if(t===void 0&&(t="default"),n=KC(r,e,t),!Xm(n)||Jm(n))return n;throw XC("Can't convert object to primitive value")}return t===void 0&&(t="number"),YC(e,t)}});var Ua=g((dB,eh)=>{var ZC=Qm(),QC=Cc();eh.exports=function(e){var t=ZC(e,"string");return QC(t)?t:t+""}});var jt=g(rh=>{var eA=Ot(),tA=Ic(),rA=wc(),ja=We(),th=Ua(),nA=TypeError,Pc=Object.defineProperty,iA=Object.getOwnPropertyDescriptor,Nc="enumerable",Mc="configurable",Lc="writable";rh.f=eA?rA?function(t,r,n){if(ja(t),r=th(r),ja(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Lc in n&&!n[Lc]){var i=iA(t,r);i&&i[Lc]&&(t[r]=n.value,n={configurable:Mc in n?n[Mc]:i[Mc],enumerable:Nc in n?n[Nc]:i[Nc],writable:!1})}return Pc(t,r,n)}:Pc:function(t,r,n){if(ja(t),r=th(r),ja(n),tA)try{return Pc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw nA("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var ih=g((vB,nh)=>{var oA=Math.ceil,aA=Math.floor;nh.exports=Math.trunc||function(t){var r=+t;return(r>0?aA:oA)(r)}});var io=g((mB,oh)=>{var sA=ih();oh.exports=function(e){var t=+e;return t!==t||t===0?0:sA(t)}});var sh=g((hB,ah)=>{var uA=io(),cA=Math.max,lA=Math.min;ah.exports=function(e,t){var r=uA(e);return r<0?cA(r+t,0):lA(r,t)}});var Dc=g((gB,uh)=>{var fA=io(),dA=Math.min;uh.exports=function(e){return e>0?dA(fA(e),9007199254740991):0}});var qc=g((yB,ch)=>{var pA=Dc();ch.exports=function(e){return pA(e.length)}});var dh=g((_B,fh)=>{var vA=Vn(),mA=sh(),hA=qc(),lh=function(e){return function(t,r,n){var i=vA(t),o=hA(i),a=mA(n,o),s;if(e&&r!=r){for(;o>a;)if(s=i[a++],s!=s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};fh.exports={includes:lh(!0),indexOf:lh(!1)}});var Ba=g((bB,ph)=>{ph.exports={}});var Uc=g((SB,mh)=>{var gA=fe(),Fc=ft(),yA=Vn(),_A=dh().indexOf,bA=Ba(),vh=gA([].push);mh.exports=function(e,t){var r=yA(e),n=0,i=[],o;for(o in r)!Fc(bA,o)&&Fc(r,o)&&vh(i,o);for(;t.length>n;)Fc(r,o=t[n++])&&(~_A(i,o)||vh(i,o));return i}});var Va=g((EB,hh)=>{hh.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var yh=g((xB,gh)=>{var SA=Uc(),EA=Va();gh.exports=Object.keys||function(t){return SA(t,EA)}});var bh=g(_h=>{var xA=Ot(),wA=wc(),TA=jt(),IA=We(),OA=Vn(),CA=yh();_h.f=xA&&!wA?Object.defineProperties:function(t,r){IA(t);for(var n=OA(r),i=CA(r),o=i.length,a=0,s;o>a;)TA.f(t,s=i[a++],n[s]);return t}});var jc=g((TB,Sh)=>{var AA=Ut();Sh.exports=AA("document","documentElement")});var za=g((IB,xh)=>{var kA=La(),RA=hc(),Eh=kA("keys");xh.exports=function(e){return Eh[e]||(Eh[e]=RA(e))}});var Kn=g((OB,kh)=>{var PA=We(),NA=bh(),wh=Va(),MA=Ba(),LA=jc(),DA=ro(),qA=za(),Th=">",Ih="<",Vc="prototype",zc="script",Ch=qA("IE_PROTO"),Bc=function(){},Ah=function(e){return Ih+zc+Th+e+Ih+"/"+zc+Th},Oh=function(e){e.write(Ah("")),e.close();var t=e.parentWindow.Object;return e=null,t},FA=function(){var e=DA("iframe"),t="java"+zc+":",r;return e.style.display="none",LA.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Ah("document.F=Object")),r.close(),r.F},Ha,Ga=function(){try{Ha=new ActiveXObject("htmlfile")}catch(t){}Ga=typeof document!="undefined"?document.domain&&Ha?Oh(Ha):FA():Oh(Ha);for(var e=wh.length;e--;)delete Ga[Vc][wh[e]];return Ga()};MA[Ch]=!0;kh.exports=Object.create||function(t,r){var n;return t!==null?(Bc[Vc]=PA(t),n=new Bc,Bc[Vc]=null,n[Ch]=t):n=Ga(),r===void 0?n:NA.f(n,r)}});var Ph=g((CB,Rh)=>{var UA=ye(),jA=Kn(),BA=jt().f,Hc=UA("unscopables"),Gc=Array.prototype;Gc[Hc]==null&&BA(Gc,Hc,{configurable:!0,value:jA(null)});Rh.exports=function(e){Gc[Hc][e]=!0}});var Wn=g((AB,Nh)=>{Nh.exports={}});var Dh=g((kB,Lh)=>{var VA=le(),zA=ae(),Mh=VA.WeakMap;Lh.exports=zA(Mh)&&/native code/.test(String(Mh))});var $r=g((RB,qh)=>{qh.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var sr=g((PB,Fh)=>{var HA=Ot(),GA=jt(),KA=$r();Fh.exports=HA?function(e,t,r){return GA.f(e,t,KA(1,r))}:function(e,t,r){return e[t]=r,e}});var Yn=g((NB,Bh)=>{var WA=Dh(),jh=le(),YA=It(),$A=sr(),Kc=ft(),Wc=Ma(),XA=za(),JA=Ba(),Uh="Object already initialized",Yc=jh.TypeError,ZA=jh.WeakMap,Ka,oo,Wa,QA=function(e){return Wa(e)?oo(e):Ka(e,{})},e1=function(e){return function(t){var r;if(!YA(t)||(r=oo(t)).type!==e)throw Yc("Incompatible receiver, "+e+" required");return r}};WA||Wc.state?(At=Wc.state||(Wc.state=new ZA),At.get=At.get,At.has=At.has,At.set=At.set,Ka=function(e,t){if(At.has(e))throw Yc(Uh);return t.facade=e,At.set(e,t),t},oo=function(e){return At.get(e)||{}},Wa=function(e){return At.has(e)}):(Xr=XA("state"),JA[Xr]=!0,Ka=function(e,t){if(Kc(e,Xr))throw Yc(Uh);return t.facade=e,$A(e,Xr,t),t},oo=function(e){return Kc(e,Xr)?e[Xr]:{}},Wa=function(e){return Kc(e,Xr)});var At,Xr;Bh.exports={set:Ka,get:oo,has:Wa,enforce:QA,getterFor:e1}});var Gh=g(Hh=>{"use strict";var Vh={}.propertyIsEnumerable,zh=Object.getOwnPropertyDescriptor,t1=zh&&!Vh.call({1:2},1);Hh.f=t1?function(t){var r=zh(this,t);return!!r&&r.enumerable}:Vh});var Ya=g(Wh=>{var r1=Ot(),n1=Ee(),i1=Gh(),o1=$r(),a1=Vn(),s1=Ua(),u1=ft(),c1=Ic(),Kh=Object.getOwnPropertyDescriptor;Wh.f=r1?Kh:function(t,r){if(t=a1(t),r=s1(r),c1)try{return Kh(t,r)}catch(n){}if(u1(t,r))return o1(!n1(i1.f,t,r),t[r])}});var Jc=g((DB,$h)=>{var $c=Ot(),l1=ft(),Yh=Function.prototype,f1=$c&&Object.getOwnPropertyDescriptor,Xc=l1(Yh,"name"),d1=Xc&&function(){}.name==="something",p1=Xc&&(!$c||$c&&f1(Yh,"name").configurable);$h.exports={EXISTS:Xc,PROPER:d1,CONFIGURABLE:p1}});var $a=g((qB,Xh)=>{var v1=fe(),m1=ae(),Zc=Ma(),h1=v1(Function.toString);m1(Zc.inspectSource)||(Zc.inspectSource=function(e){return h1(e)});Xh.exports=Zc.inspectSource});var tl=g((FB,Qh)=>{var el=fe(),g1=ge(),y1=ae(),Xa=ft(),Qc=Ot(),_1=Jc().CONFIGURABLE,b1=$a(),Zh=Yn(),S1=Zh.enforce,E1=Zh.get,Jh=String,Ja=Object.defineProperty,x1=el("".slice),w1=el("".replace),T1=el([].join),I1=Qc&&!g1(function(){return Ja(function(){},"length",{value:8}).length!==8}),O1=String(String).split("String"),C1=Qh.exports=function(e,t,r){x1(Jh(t),0,7)==="Symbol("&&(t="["+w1(Jh(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Xa(e,"name")||_1&&e.name!==t)&&(Qc?Ja(e,"name",{value:t,configurable:!0}):e.name=t),I1&&r&&Xa(r,"arity")&&e.length!==r.arity&&Ja(e,"length",{value:r.arity});try{r&&Xa(r,"constructor")&&r.constructor?Qc&&Ja(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=S1(e);return Xa(n,"source")||(n.source=T1(O1,typeof t=="string"?t:"")),e};Function.prototype.toString=C1(function(){return y1(this)&&E1(this).source||b1(this)},"toString")});var ur=g((UB,eg)=>{var A1=ae(),k1=jt(),R1=tl(),P1=Na();eg.exports=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:t;if(A1(r)&&R1(r,o,n),n.global)i?e[t]=r:P1(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(a){}i?e[t]=r:k1.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var rg=g(tg=>{var N1=Uc(),M1=Va(),L1=M1.concat("length","prototype");tg.f=Object.getOwnPropertyNames||function(t){return N1(t,L1)}});var ig=g(ng=>{ng.f=Object.getOwnPropertySymbols});var ag=g((VB,og)=>{var D1=Ut(),q1=fe(),F1=rg(),U1=ig(),j1=We(),B1=q1([].concat);og.exports=D1("Reflect","ownKeys")||function(t){var r=F1.f(j1(t)),n=U1.f;return n?B1(r,n(t)):r}});var rl=g((zB,ug)=>{var sg=ft(),V1=ag(),z1=Ya(),H1=jt();ug.exports=function(e,t,r){for(var n=V1(t),i=H1.f,o=z1.f,a=0;a<n.length;a++){var s=n[a];!sg(e,s)&&!(r&&sg(r,s))&&i(e,s,o(t,s))}}});var nl=g((HB,cg)=>{var G1=ge(),K1=ae(),W1=/#|\.prototype\./,ao=function(e,t){var r=$1[Y1(e)];return r==J1?!0:r==X1?!1:K1(t)?G1(t):!!t},Y1=ao.normalize=function(e){return String(e).replace(W1,".").toLowerCase()},$1=ao.data={},X1=ao.NATIVE="N",J1=ao.POLYFILL="P";cg.exports=ao});var je=g((GB,lg)=>{var il=le(),Z1=Ya().f,Q1=sr(),ek=ur(),tk=Na(),rk=rl(),nk=nl();lg.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o,a,s,u,c,l;if(n?a=il:i?a=il[r]||tk(r,{}):a=(il[r]||{}).prototype,a)for(s in t){if(c=t[s],e.dontCallGetSet?(l=Z1(a,s),u=l&&l.value):u=a[s],o=nk(n?s:r+(i?".":"#")+s,e.forced),!o&&u!==void 0){if(typeof c==typeof u)continue;rk(c,u)}(e.sham||u&&u.sham)&&Q1(c,"sham",!0),ek(a,s,c,e)}}});var dg=g((KB,fg)=>{var ik=ge();fg.exports=!ik(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Za=g((WB,vg)=>{var ok=ft(),ak=ae(),sk=Da(),uk=za(),ck=dg(),pg=uk("IE_PROTO"),ol=Object,lk=ol.prototype;vg.exports=ck?ol.getPrototypeOf:function(e){var t=sk(e);if(ok(t,pg))return t[pg];var r=t.constructor;return ak(r)&&t instanceof r?r.prototype:t instanceof ol?lk:null}});var cl=g((YB,gg)=>{"use strict";var fk=ge(),dk=ae(),pk=It(),vk=Kn(),mg=Za(),mk=ur(),hk=ye(),gk=wt(),ul=hk("iterator"),hg=!1,cr,al,sl;[].keys&&(sl=[].keys(),"next"in sl?(al=mg(mg(sl)),al!==Object.prototype&&(cr=al)):hg=!0);var yk=!pk(cr)||fk(function(){var e={};return cr[ul].call(e)!==e});yk?cr={}:gk&&(cr=vk(cr));dk(cr[ul])||mk(cr,ul,function(){return this});gg.exports={IteratorPrototype:cr,BUGGY_SAFARI_ITERATORS:hg}});var Qa=g(($B,_g)=>{var _k=jt().f,bk=ft(),Sk=ye(),yg=Sk("toStringTag");_g.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!bk(e,yg)&&_k(e,yg,{configurable:!0,value:t})}});var Sg=g((XB,bg)=>{"use strict";var Ek=cl().IteratorPrototype,xk=Kn(),wk=$r(),Tk=Qa(),Ik=Wn(),Ok=function(){return this};bg.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=xk(Ek,{next:wk(+!n,r)}),Tk(e,i,!1,!0),Ik[i]=Ok,e}});var xg=g((JB,Eg)=>{var Ck=fe(),Ak=Ct();Eg.exports=function(e,t,r){try{return Ck(Ak(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Tg=g((ZB,wg)=>{var kk=ae(),Rk=String,Pk=TypeError;wg.exports=function(e){if(typeof e=="object"||kk(e))return e;throw Pk("Can't set "+Rk(e)+" as a prototype")}});var es=g((QB,Ig)=>{var Nk=xg(),Mk=We(),Lk=Tg();Ig.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=Nk(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return Mk(i),Lk(o),e?r(i,o):i.__proto__=o,i}}():void 0)});var fl=g((eV,Dg)=>{"use strict";var Dk=je(),qk=Ee(),ts=wt(),Mg=Jc(),Fk=ae(),Uk=Sg(),Og=Za(),Cg=es(),jk=Qa(),Bk=sr(),ll=ur(),Vk=ye(),Ag=Wn(),Lg=cl(),zk=Mg.PROPER,Hk=Mg.CONFIGURABLE,kg=Lg.IteratorPrototype,rs=Lg.BUGGY_SAFARI_ITERATORS,so=Vk("iterator"),Rg="keys",uo="values",Pg="entries",Ng=function(){return this};Dg.exports=function(e,t,r,n,i,o,a){Uk(r,t,n);var s=function(y){if(y===i&&d)return d;if(!rs&&y in l)return l[y];switch(y){case Rg:return function(){return new r(this,y)};case uo:return function(){return new r(this,y)};case Pg:return function(){return new r(this,y)}}return function(){return new r(this)}},u=t+" Iterator",c=!1,l=e.prototype,f=l[so]||l["@@iterator"]||i&&l[i],d=!rs&&f||s(i),p=t=="Array"&&l.entries||f,v,m,h;if(p&&(v=Og(p.call(new e)),v!==Object.prototype&&v.next&&(!ts&&Og(v)!==kg&&(Cg?Cg(v,kg):Fk(v[so])||ll(v,so,Ng)),jk(v,u,!0,!0),ts&&(Ag[u]=Ng))),zk&&i==uo&&f&&f.name!==uo&&(!ts&&Hk?Bk(l,"name",uo):(c=!0,d=function(){return qk(f,this)})),i)if(m={values:s(uo),keys:o?d:s(Rg),entries:s(Pg)},a)for(h in m)(rs||c||!(h in l))&&ll(l,h,m[h]);else Dk({target:t,proto:!0,forced:rs||c},m);return(!ts||a)&&l[so]!==d&&ll(l,so,d,{name:i}),Ag[t]=d,m}});var dl=g((tV,qg)=>{qg.exports=function(e,t){return{value:e,done:t}}});var is=g((rV,Vg)=>{"use strict";var Gk=Vn(),pl=Ph(),Fg=Wn(),jg=Yn(),Kk=jt().f,Wk=fl(),ns=dl(),Yk=wt(),$k=Ot(),Bg="Array Iterator",Xk=jg.set,Jk=jg.getterFor(Bg);Vg.exports=Wk(Array,"Array",function(e,t){Xk(this,{type:Bg,target:Gk(e),index:0,kind:t})},function(){var e=Jk(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,ns(void 0,!0)):r=="keys"?ns(n,!1):r=="values"?ns(t[n],!1):ns([n,t[n]],!1)},"values");var Ug=Fg.Arguments=Fg.Array;pl("keys");pl("values");pl("entries");if(!Yk&&$k&&Ug.name!=="values")try{Kk(Ug,"name",{value:"values"})}catch(e){}});var vl=g((nV,zg)=>{var Zk=Wr(),Qk=fe();zg.exports=function(e){if(Zk(e)==="Function")return Qk(e)}});var os=g((iV,Gg)=>{var Hg=vl(),eR=Ct(),tR=eo(),rR=Hg(Hg.bind);Gg.exports=function(e,t){return eR(e),t===void 0?e:tR?rR(e,t):function(){return e.apply(t,arguments)}}});var Wg=g((oV,Kg)=>{var nR=ye(),iR=Wn(),oR=nR("iterator"),aR=Array.prototype;Kg.exports=function(e){return e!==void 0&&(iR.Array===e||aR[oR]===e)}});var as=g((aV,$g)=>{var sR=ye(),uR=sR("toStringTag"),Yg={};Yg[uR]="z";$g.exports=String(Yg)==="[object z]"});var co=g((sV,Xg)=>{var cR=as(),lR=ae(),ss=Wr(),fR=ye(),dR=fR("toStringTag"),pR=Object,vR=ss(function(){return arguments}())=="Arguments",mR=function(e,t){try{return e[t]}catch(r){}};Xg.exports=cR?ss:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=mR(t=pR(e),dR))=="string"?r:vR?ss(t):(n=ss(t))=="Object"&&lR(t.callee)?"Arguments":n}});var ml=g((uV,Zg)=>{var hR=co(),Jg=Gn(),gR=Yr(),yR=Wn(),_R=ye(),bR=_R("iterator");Zg.exports=function(e){if(!gR(e))return Jg(e,bR)||Jg(e,"@@iterator")||yR[hR(e)]}});var ey=g((cV,Qg)=>{var SR=Ee(),ER=Ct(),xR=We(),wR=no(),TR=ml(),IR=TypeError;Qg.exports=function(e,t){var r=arguments.length<2?TR(e):t;if(ER(r))return xR(SR(r,e));throw IR(wR(e)+" is not iterable")}});var ny=g((lV,ry)=>{var OR=Ee(),ty=We(),CR=Gn();ry.exports=function(e,t,r){var n,i;ty(e);try{if(n=CR(e,"return"),!n){if(t==="throw")throw r;return r}n=OR(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ty(n),r}});var Jr=g((fV,sy)=>{var AR=os(),kR=Ee(),RR=We(),PR=no(),NR=Wg(),MR=qc(),iy=Hn(),LR=ey(),DR=ml(),oy=ny(),qR=TypeError,us=function(e,t){this.stopped=e,this.result=t},ay=us.prototype;sy.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),u=AR(t,n),c,l,f,d,p,v,m,h=function(_){return c&&oy(c,"normal",_),new us(!0,_)},y=function(_){return i?(RR(_),s?u(_[0],_[1],h):u(_[0],_[1])):s?u(_,h):u(_)};if(o)c=e.iterator;else if(a)c=e;else{if(l=DR(e),!l)throw qR(PR(e)+" is not iterable");if(NR(l)){for(f=0,d=MR(e);d>f;f++)if(p=y(e[f]),p&&iy(ay,p))return p;return new us(!1)}c=LR(e,l)}for(v=o?e.next:c.next;!(m=kR(v,c)).done;){try{p=y(m.value)}catch(_){oy(c,"throw",_)}if(typeof p=="object"&&p&&iy(ay,p))return p}return new us(!1)}});var cy=g((dV,uy)=>{"use strict";var FR=Ua(),UR=jt(),jR=$r();uy.exports=function(e,t,r){var n=FR(t);n in e?UR.f(e,n,jR(0,r)):e[n]=r}});var ly=g(()=>{var BR=je(),VR=Jr(),zR=cy();BR({target:"Object",stat:!0},{fromEntries:function(t){var r={};return VR(t,function(n,i){zR(r,n,i)},{AS_ENTRIES:!0}),r}})});
1var hl=g((mV,fy)=>{var HR=le();fy.exports=HR});var py=g((hV,dy)=>{is();ly();var GR=hl();dy.exports=GR.Object.fromEntries});var my=g((gV,vy)=>{vy.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var yy=g((yV,gy)=>{var KR=ro(),gl=KR("span").classList,hy=gl&&gl.constructor&&gl.constructor.prototype;gy.exports=hy===Object.prototype?void 0:hy});var ls=g(()=>{var _y=le(),Sy=my(),WR=yy(),lo=is(),yl=sr(),Ey=ye(),_l=Ey("iterator"),by=Ey("toStringTag"),bl=lo.values,xy=function(e,t){if(e){if(e[_l]!==bl)try{yl(e,_l,bl)}catch(n){e[_l]=bl}if(e[by]||yl(e,by,t),Sy[t]){for(var r in lo)if(e[r]!==lo[r])try{yl(e,r,lo[r])}catch(n){e[r]=lo[r]}}}};for(cs in Sy)xy(_y[cs]&&_y[cs].prototype,cs);var cs;xy(WR,"DOMTokenList")});var Ty=g((SV,wy)=>{var YR=py();ls();wy.exports=YR});var Oy=g((EV,Iy)=>{var $R=Ty();Iy.exports=$R});var Ay=g((xV,Cy)=>{var XR=It(),JR=sr();Cy.exports=function(e,t){XR(t)&&"cause"in t&&JR(e,"cause",t.cause)}});var Ny=g((wV,Py)=>{var ZR=fe(),ky=Error,QR=ZR("".replace),eP=function(e){return String(ky(e).stack)}("zxcasd"),Ry=/\n\s*at [^:]*:[^\n]*/,tP=Ry.test(eP);Py.exports=function(e,t){if(tP&&typeof e=="string"&&!ky.prepareStackTrace)for(;t--;)e=QR(e,Ry,"");return e}});var Ly=g((TV,My)=>{var rP=ge(),nP=$r();My.exports=!rP(function(){var e=Error("a");return"stack"in e?(Object.defineProperty(e,"stack",nP(1,7)),e.stack!==7):!0})});var Fy=g((IV,qy)=>{var iP=sr(),oP=Ny(),aP=Ly(),Dy=Error.captureStackTrace;qy.exports=function(e,t,r,n){aP&&(Dy?Dy(e,t):iP(e,"stack",oP(r,n)))}});var Zr=g((OV,Uy)=>{var sP=co(),uP=String;Uy.exports=function(e){if(sP(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return uP(e)}});var By=g((CV,jy)=>{var cP=Zr();jy.exports=function(e,t){return e===void 0?arguments.length<2?"":t:cP(e)}});var zy=g(()=>{"use strict";var lP=je(),fP=Hn(),dP=Za(),fs=es(),pP=rl(),Vy=Kn(),Sl=sr(),El=$r(),vP=Ay(),mP=Fy(),hP=Jr(),gP=By(),yP=ye(),_P=yP("toStringTag"),ds=Error,bP=[].push,$n=function(t,r){var n=fP(xl,this),i;fs?i=fs(ds(),n?dP(this):xl):(i=n?this:Vy(xl),Sl(i,_P,"Error")),r!==void 0&&Sl(i,"message",gP(r)),mP(i,$n,i.stack,1),arguments.length>2&&vP(i,arguments[2]);var o=[];return hP(t,bP,{that:o}),Sl(i,"errors",o),i};fs?fs($n,ds):pP($n,ds,{name:!0});var xl=$n.prototype=Vy(ds.prototype,{constructor:El(1,$n),message:El(1,""),name:El(1,"AggregateError")});lP({global:!0,constructor:!0,arity:2},{AggregateError:$n})});var Hy=g(()=>{zy()});var Ky=g((NV,Gy)=>{"use strict";var SP=as(),EP=co();Gy.exports=SP?{}.toString:function(){return"[object "+EP(this)+"]"}});var wl=g(()=>{var xP=as(),wP=ur(),TP=Ky();xP||wP(Object.prototype,"toString",TP,{unsafe:!0})});var fo=g((DV,Wy)=>{var IP=Wr();Wy.exports=typeof process!="undefined"&&IP(process)=="process"});var Xy=g((qV,$y)=>{var Yy=tl(),OP=jt();$y.exports=function(e,t,r){return r.get&&Yy(r.get,t,{getter:!0}),r.set&&Yy(r.set,t,{setter:!0}),OP.f(e,t,r)}});var Qy=g((FV,Zy)=>{"use strict";var CP=Ut(),AP=Xy(),kP=ye(),RP=Ot(),Jy=kP("species");Zy.exports=function(e){var t=CP(e);RP&&t&&!t[Jy]&&AP(t,Jy,{configurable:!0,get:function(){return this}})}});var t_=g((UV,e_)=>{var PP=Hn(),NP=TypeError;e_.exports=function(e,t){if(PP(t,e))return e;throw NP("Incorrect invocation")}});var s_=g((jV,a_)=>{var MP=fe(),LP=ge(),r_=ae(),DP=co(),qP=Ut(),FP=$a(),n_=function(){},UP=[],i_=qP("Reflect","construct"),Tl=/^\s*(?:class|function)\b/,jP=MP(Tl.exec),BP=!Tl.exec(n_),po=function(t){if(!r_(t))return!1;try{return i_(n_,UP,t),!0}catch(r){return!1}},o_=function(t){if(!r_(t))return!1;switch(DP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return BP||!!jP(Tl,FP(t))}catch(r){return!0}};o_.sham=!0;a_.exports=!i_||LP(function(){var e;return po(po.call)||!po(Object)||!po(function(){e=!0})||e})?o_:po});var c_=g((BV,u_)=>{var VP=s_(),zP=no(),HP=TypeError;u_.exports=function(e){if(VP(e))return e;throw HP(zP(e)+" is not a constructor")}});var Il=g((VV,f_)=>
vendor: 16,710 bytes, lines 1-3
1{var l_=We(),GP=c_(),KP=Yr(),WP=ye(),YP=WP("species");f_.exports=function(e,t){var r=l_(e).constructor,n;return r===void 0||KP(n=l_(r)[YP])?t:GP(n)}});var Ol=g((zV,m_)=>{var $P=eo(),v_=Function.prototype,d_=v_.apply,p_=v_.call;m_.exports=typeof Reflect=="object"&&Reflect.apply||($P?p_.bind(d_):function(){return p_.apply(d_,arguments)})});var g_=g((HV,h_)=>{var XP=fe();h_.exports=XP([].slice)});var __=g((GV,y_)=>{var JP=TypeError;y_.exports=function(e,t){if(e<t)throw JP("Not enough arguments");return e}});var Cl=g((KV,b_)=>{var ZP=to();b_.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ZP)});var ql=g((WV,A_)=>{var nt=le(),QP=Ol(),eN=os(),S_=ae(),tN=ft(),C_=ge(),E_=jc(),rN=g_(),x_=ro(),nN=__(),iN=Cl(),oN=fo(),Ml=nt.setImmediate,Ll=nt.clearImmediate,aN=nt.process,Al=nt.Dispatch,sN=nt.Function,w_=nt.MessageChannel,uN=nt.String,kl=0,vo={},T_="onreadystatechange",mo,Qr,Rl,Pl;C_(function(){mo=nt.location});var Dl=function(e){if(tN(vo,e)){var t=vo[e];delete vo[e],t()}},Nl=function(e){return function(){Dl(e)}},I_=function(e){Dl(e.data)},O_=function(e){nt.postMessage(uN(e),mo.protocol+"//"+mo.host)};(!Ml||!Ll)&&(Ml=function(t){nN(arguments.length,1);var r=S_(t)?t:sN(t),n=rN(arguments,1);return vo[++kl]=function(){QP(r,void 0,n)},Qr(kl),kl},Ll=function(t){delete vo[t]},oN?Qr=function(e){aN.nextTick(Nl(e))}:Al&&Al.now?Qr=function(e){Al.now(Nl(e))}:w_&&!iN?(Rl=new w_,Pl=Rl.port2,Rl.port1.onmessage=I_,Qr=eN(Pl.postMessage,Pl)):nt.addEventListener&&S_(nt.postMessage)&&!nt.importScripts&&mo&&mo.protocol!=="file:"&&!C_(O_)?(Qr=O_,nt.addEventListener("message",I_,!1)):T_ in x_("script")?Qr=function(e){E_.appendChild(x_("script"))[T_]=function(){E_.removeChild(this),Dl(e)}}:Qr=function(e){setTimeout(Nl(e),0)});A_.exports={set:Ml,clear:Ll}});var Fl=g((YV,R_)=>{var k_=function(){this.head=null,this.tail=null};k_.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};R_.exports=k_});var N_=g(($V,P_)=>{var cN=to();P_.exports=/ipad|iphone|ipod/i.test(cN)&&typeof Pebble!="undefined"});var L_=g((XV,M_)=>{var lN=to();M_.exports=/web0s(?!.*chrome)/i.test(lN)});var z_=g((JV,V_)=>{var en=le(),D_=os(),fN=Ya().f,Ul=ql().set,dN=Fl(),pN=Cl(),vN=N_(),mN=L_(),jl=fo(),q_=en.MutationObserver||en.WebKitMutationObserver,F_=en.document,U_=en.process,ps=en.Promise,j_=fN(en,"queueMicrotask"),zl=j_&&j_.value,Xn,Bl,Vl,vs,B_;zl||(ho=new dN,go=function(){var e,t;for(jl&&(e=U_.domain)&&e.exit();t=ho.get();)try{t()}catch(r){throw ho.head&&Xn(),r}e&&e.enter()},!pN&&!jl&&!mN&&q_&&F_?(Bl=!0,Vl=F_.createTextNode(""),new q_(go).observe(Vl,{characterData:!0}),Xn=function(){Vl.data=Bl=!Bl}):!vN&&ps&&ps.resolve?(vs=ps.resolve(void 0),vs.constructor=ps,B_=D_(vs.then,vs),Xn=function(){B_(go)}):jl?Xn=function(){U_.nextTick(go)}:(Ul=D_(Ul,en),Xn=function(){Ul(go)}),zl=function(e){ho.head||Xn(),ho.add(e)});var ho,go;V_.exports=zl});var G_=g((ZV,H_)=>{H_.exports=function(e,t){try{arguments.length==1?console.error(e):console.error(e,t)}catch(r){}}});var Jn=g((QV,K_)=>{K_.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}});var tn=g((e6,W_)=>{var hN=le();W_.exports=hN.Promise});var Hl=g((t6,Y_)=>{Y_.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"});var X_=g((r6,$_)=>{var gN=Hl(),yN=fo();$_.exports=!gN&&!yN&&typeof window=="object"&&typeof document=="object"});var Zn=g((n6,Q_)=>{var _N=le(),yo=tn(),bN=ae(),SN=nl(),EN=$a(),xN=ye(),wN=X_(),TN=Hl(),IN=wt(),Gl=yc(),J_=yo&&yo.prototype,ON=xN("species"),Kl=!1,Z_=bN(_N.PromiseRejectionEvent),CN=SN("Promise",function(){var e=EN(yo),t=e!==String(yo);if(!t&&Gl===66||IN&&!(J_.catch&&J_.finally))return!0;if(!Gl||Gl<51||!/native code/.test(e)){var r=new yo(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=r.constructor={};if(i[ON]=n,Kl=r.then(function(){})instanceof n,!Kl)return!0}return!t&&(wN||TN)&&!Z_});Q_.exports={CONSTRUCTOR:CN,REJECTION_EVENT:Z_,SUBCLASSING:Kl}});var Tr=g((i6,tb)=>{"use strict";var eb=Ct(),AN=TypeError,kN=function(e){var t,r;this.promise=new e(function(n,i){if(t!==void 0||r!==void 0)throw AN("Bad Promise constructor");t=n,r=i}),this.resolve=eb(t),this.reject=eb(r)};tb.exports.f=function(e){return new kN(e)}});var bb=g(()=>{"use strict";var RN=je(),PN=wt(),ys=fo(),Ir=le(),ri=Ee(),rb=ur(),nb=es(),NN=Qa(),MN=Qy(),LN=Ct(),gs=ae(),DN=It(),qN=t_(),FN=Il(),ub=ql().set,Jl=z_(),UN=G_(),jN=Jn(),BN=Fl(),cb=Yn(),_s=tn(),Zl=Zn(),lb=Tr(),bs="Promise",fb=Zl.CONSTRUCTOR,VN=Zl.REJECTION_EVENT,zN=Zl.SUBCLASSING,Wl=cb.getterFor(bs),HN=cb.set,Qn=_s&&_s.prototype,rn=_s,ms=Qn,db=Ir.TypeError,Yl=Ir.document,Ql=Ir.process,$l=lb.f,GN=$l,KN=!!(Yl&&Yl.createEvent&&Ir.dispatchEvent),pb="unhandledrejection",WN="rejectionhandled",ib=0,vb=1,YN=2,ef=1,mb=2,hs,ob,$N,ab,hb=function(e){var t;return DN(e)&&gs(t=e.then)?t:!1},gb=function(e,t){var r=t.value,n=t.state==vb,i=n?e.ok:e.fail,o=e.resolve,a=e.reject,s=e.domain,u,c,l;try{i?(n||(t.rejection===mb&&JN(t),t.rejection=ef),i===!0?u=r:(s&&s.enter(),u=i(r),s&&(s.exit(),l=!0)),u===e.promise?a(db("Promise-chain cycle")):(c=hb(u))?ri(c,u,o,a):o(u)):a(r)}catch(f){s&&!l&&s.exit(),a(f)}},yb=function(e,t){e.notified||(e.notified=!0,Jl(function(){for(var r=e.reactions,n;n=r.get();)gb(n,e);e.notified=!1,t&&!e.rejection&&XN(e)}))},_b=function(e,t,r){var n,i;KN?(n=Yl.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),Ir.dispatchEvent(n)):n={promise:t,reason:r},!VN&&(i=Ir["on"+e])?i(n):e===pb&&UN("Unhandled promise rejection",r)},XN=function(e){ri(ub,Ir,function(){var t=e.facade,r=e.value,n=sb(e),i;if(n&&(i=jN(function(){ys?Ql.emit("unhandledRejection",r,t):_b(pb,t,r)}),e.rejection=ys||sb(e)?mb:ef,i.error))throw i.value})},sb=function(e){return e.rejection!==ef&&!e.parent},JN=function(e){ri(ub,Ir,function(){var t=e.facade;ys?Ql.emit("rejectionHandled",t):_b(WN,t,e.value)})},ei=function(e,t,r){return function(n){e(t,n,r)}},ti=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=YN,yb(e,!0))},Xl=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw db("Promise can't be resolved itself");var n=hb(t);n?Jl(function(){var i={done:!1};try{ri(n,t,ei(Xl,i,e),ei(ti,i,e))}catch(o){ti(i,o,e)}}):(e.value=t,e.state=vb,yb(e,!1))}catch(i){ti({done:!1},i,e)}}};if(fb&&(rn=function(t){qN(this,ms),LN(t),ri(hs,this);var r=Wl(this);try{t(ei(Xl,r),ei(ti,r))}catch(n){ti(r,n)}},ms=rn.prototype,hs=function(t){HN(this,{type:bs,done:!1,notified:!1,parent:!1,reactions:new BN,rejection:!1,state:ib,value:void 0})},hs.prototype=rb(ms,"then",function(t,r){var n=Wl(this),i=$l(FN(this,rn));return n.parent=!0,i.ok=gs(t)?t:!0,i.fail=gs(r)&&r,i.domain=ys?Ql.domain:void 0,n.state==ib?n.reactions.add(i):Jl(function(){gb(i,n)}),i.promise}),ob=function(){var e=new hs,t=Wl(e);this.promise=e,this.resolve=ei(Xl,t),this.reject=ei(ti,t)},lb.f=$l=function(e){return e===rn||e===$N?new ob(e):GN(e)},!PN&&gs(_s)&&Qn!==Object.prototype)){ab=Qn.then,zN||rb(Qn,"then",function(t,r){var n=this;return new rn(function(i,o){ri(ab,n,i,o)}).then(t,r)},{unsafe:!0});try{delete Qn.constructor}catch(e){}nb&&nb(Qn,ms)}RN({global:!0,constructor:!0,wrap:!0,forced:fb},{Promise:rn});NN(rn,bs,!1,!0);MN(bs)});var Tb=g((s6,wb)=>{var ZN=ye(),Eb=ZN("iterator"),xb=!1;try{Sb=0,tf={next:function(){return{done:!!Sb++}},return:function(){xb=!0}},tf[Eb]=function(){return this},Array.from(tf,function(){throw 2})}catch(e){}var Sb,tf;wb.exports=function(e,t){if(!t&&!xb)return!1;var r=!1;try{var n={};n[Eb]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(i){}return r}});var _o=g((u6,Ib)=>{var QN=tn(),eM=Tb(),tM=Zn().CONSTRUCTOR;Ib.exports=tM||!eM(function(e){QN.all(e).then(void 0,function(){})})});var Ob=g(()=>{"use strict";var rM=je(),nM=Ee(),iM=Ct(),oM=Tr(),aM=Jn(),sM=Jr(),uM=_o();rM({target:"Promise",stat:!0,forced:uM},{all:function(t){var r=this,n=oM.f(r),i=n.resolve,o=n.reject,a=aM(function(){var s=iM(r.resolve),u=[],c=0,l=1;sM(t,function(f){var d=c++,p=!1;l++,nM(s,r,f).then(function(v){p||(p=!0,u[d]=v,--l||i(u))},o)}),--l||i(u)});return a.error&&o(a.value),n.promise}})});var Ab=g(()=>{"use strict";var cM=je(),lM=wt(),fM=Zn().CONSTRUCTOR,nf=tn(),dM=Ut(),pM=ae(),vM=ur(),Cb=nf&&nf.prototype;cM({target:"Promise",proto:!0,forced:fM,real:!0},{catch:function(e){return this.then(void 0,e)}});!lM&&pM(nf)&&(rf=dM("Promise").prototype.catch,Cb.catch!==rf&&vM(Cb,"catch",rf,{unsafe:!0}));var rf});var kb=g(()=>{"use strict";var mM=je(),hM=Ee(),gM=Ct(),yM=Tr(),_M=Jn(),bM=Jr(),SM=_o();mM({target:"Promise",stat:!0,forced:SM},{race:function(t){var r=this,n=yM.f(r),i=n.reject,o=_M(function(){var a=gM(r.resolve);bM(t,function(s){hM(a,r,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}})});var Rb=g(()=>{"use strict";var EM=je(),xM=Ee(),wM=Tr(),TM=Zn().CONSTRUCTOR;EM({target:"Promise",stat:!0,forced:TM},{reject:function(t){var r=wM.f(this);return xM(r.reject,void 0,t),r.promise}})});var of=g((g6,Pb)=>{var IM=We(),OM=It(),CM=Tr();Pb.exports=function(e,t){if(IM(e),OM(t)&&t.constructor===e)return t;var r=CM.f(e),n=r.resolve;return n(t),r.promise}});var Lb=g(()=>{"use strict";var AM=je(),kM=Ut(),Nb=wt(),RM=tn(),Mb=Zn().CONSTRUCTOR,PM=of(),NM=kM("Promise"),MM=Nb&&!Mb;AM({target:"Promise",stat:!0,forced:Nb||Mb},{resolve:function(t){return PM(MM&&this===NM?RM:this,t)}})});var Db=g(()=>{bb();Ob();Ab();kb();Rb();Lb()});var qb=g(()=>{"use strict";var LM=je(),DM=Ee(),qM=Ct(),FM=Tr(),UM=Jn(),jM=Jr(),BM=_o();LM({target:"Promise",stat:!0,forced:BM},{allSettled:function(t){var r=this,n=FM.f(r),i=n.resolve,o=n.reject,a=UM(function(){var s=qM(r.resolve),u=[],c=0,l=1;jM(t,function(f){var d=c++,p=!1;l++,DM(s,r,f).then(function(v){p||(p=!0,u[d]={status:"fulfilled",value:v},--l||i(u))},function(v){p||(p=!0,u[d]={status:"rejected",reason:v},--l||i(u))})}),--l||i(u)});return a.error&&o(a.value),n.promise}})});var Ub=g(()=>{"use strict";var VM=je(),zM=Ee(),HM=Ct(),GM=Ut(),KM=Tr(),WM=Jn(),YM=Jr(),$M=_o(),Fb="No one promise resolved";VM({target:"Promise",stat:!0,forced:$M},{any:function(t){var r=this,n=GM("AggregateError"),i=KM.f(r),o=i.resolve,a=i.reject,s=WM(function(){var u=HM(r.resolve),c=[],l=0,f=1,d=!1;YM(t,function(p){var v=l++,m=!1;f++,zM(u,r,p).then(function(h){m||d||(d=!0,o(h))},function(h){m||d||(m=!0,c[v]=h,--f||a(new n(c,Fb)))})}),--f||a(new n(c,Fb))});return s.error&&a(s.value),i.promise}})});var zb=g(()=>{"use strict";var XM=je(),JM=wt(),Ss=tn(),ZM=ge(),Bb=Ut(),Vb=ae(),QM=Il(),jb=of(),eL=ur(),sf=Ss&&Ss.prototype,tL=!!Ss&&ZM(function(){sf.finally.call({then:function(){}},function(){})});XM({target:"Promise",proto:!0,real:!0,forced:tL},{finally:function(e){var t=QM(this,Bb("Promise")),r=Vb(e);return this.then(r?function(n){return jb(t,e()).then(function(){return n})}:e,r?function(n){return jb(t,e()).then(function(){throw n})}:e)}});!JM&&Vb(Ss)&&(af=Bb("Promise").prototype.finally,sf.finally!==af&&eL(sf,"finally",af,{unsafe:!0}));var af});var cf=g((C6,Kb)=>{var uf=fe(),rL=io(),nL=Zr(),iL=Bn(),oL=uf("".charAt),Hb=uf("".charCodeAt),aL=uf("".slice),Gb=function(e){return function(t,r){var n=nL(iL(t)),i=rL(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=Hb(n,i),a<55296||a>56319||i+1===o||(s=Hb(n,i+1))<56320||s>57343?e?oL(n,i):a:e?aL(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};Kb.exports={codeAt:Gb(!1),charAt:Gb(!0)}});var Xb=g(()=>{"use strict";var sL=cf().charAt,uL=Zr(),Yb=Yn(),cL=fl(),Wb=dl(),$b="String Iterator",lL=Yb.set,fL=Yb.getterFor($b);cL(String,"String",function(e){lL(this,{type:$b,string:uL(e),index:0})},function(){var t=fL(this),r=t.string,n=t.index,i;return n>=r.length?Wb(void 0,!0):(i=sL(r,n),t.index+=i.length,Wb(i,!1))})});var Zb=g((R6,Jb)=>{Hy();is();wl();Db();qb();Ub();zb();Xb();var dL=hl();Jb.exports=dL.Promise});var e0=g((P6,Qb)=>{var pL=Zb();ls();Qb.exports=pL});var r0=g((N6,t0)=>{var vL=e0();t0.exports=vL});var lf=g((M6,n0)=>{var mL=le(),hL=fe();n0.exports=function(e,t){return hL(mL[e].prototype[t])}});var o0=g((L6,i0)=>{wl();ls();var gL=lf();i0.exports=gL("Array","values")});var s0=g((D6,a0)=>{var yL=o0();a0.exports=yL});var ff=g((q6,u0)=>{"use strict";var _L=We();u0.exports=function(){var e=_L(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}});var l0=g((F6,c0)=>{var df=ge(),bL=le(),pf=bL.RegExp,vf=df(function(){var e=pf("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),SL=vf||df(function(){return!pf("a","y").sticky}),EL=vf||df(function(){var e=pf("^r","gy");return e.lastIndex=2,e.exec("str")!=null});c0.exports={BROKEN_CARET:EL,MISSED_STICKY:SL,UNSUPPORTED_Y:vf}});var d0=g((U6,f0)=>{var xL=ge(),wL=le(),TL=wL.RegExp;f0.exports=xL(function(){var e=TL(".","s");return!(e.dotAll&&e.exec(`
2`)&&e.flags==="s")})});var v0=g((j6,p0)=>{var IL=ge(),OL=le(),CL=OL.RegExp;p0.exports=IL(function(){var e=CL("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})});var ws=g((B6,h0)=>{"use strict";var ni=Ee(),xs=fe(),AL=Zr(),kL=ff(),RL=l0(),PL=La(),NL=Kn(),ML=Yn().get,LL=d0(),DL=v0(),qL=PL("native-string-replace",String.prototype.replace),Es=RegExp.prototype.exec,hf=Es,FL=xs("".charAt),UL=xs("".indexOf),jL=xs("".replace),mf=xs("".slice),gf=function(){var e=/a/,t=/b*/g;return ni(Es,e,"a"),ni(Es,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),m0=RL.BROKEN_CARET,yf=/()??/.exec("")[1]!==void 0,BL=gf||yf||m0||LL||DL;BL&&(hf=function(t){var r=this,n=ML(r),i=AL(t),o=n.raw,a,s,u,c,l,f,d;if(o)return o.lastIndex=r.lastIndex,a=ni(hf,o,i),r.lastIndex=o.lastIndex,a;var p=n.groups,v=m0&&r.sticky,m=ni(kL,r),h=r.source,y=0,_=i;if(v&&(m=jL(m,"y",""),UL(m,"g")===-1&&(m+="g"),_=mf(i,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&FL(i,r.lastIndex-1)!==`
3`)&&(h="(?: "+h+")",_=" "+_,y++),s=new RegExp("^(?:"+h+")",m)),yf&&(s=new RegExp("^"+h+"$(?!\\s)",m)),gf&&(u=r.lastIndex),c=ni(Es,v?s:r,_),v?c?(c.input=mf(c.input,y),c[0]=mf(c[0],y),c.index=r.lastIndex,r.lastIndex+=c[0].length):r.lastIndex=0:gf&&c&&(r.lastIndex=r.global?c.index+c[0].length:u),yf&&c&&c.length>1&&ni(qL,c[0],s,function(){for(l=1;l<arguments.length-2;l++)arguments[l]===void 0&&(c[l]=void 0)}),c&&p)for(c.groups=f=NL(null),l=0;l<p.length;l++)d=p[l],f[d[0]]=c[d[1]];return c});h0.exports=hf});var _f=g(()=>{"use strict";var VL=je(),g0=ws();VL({target:"RegExp",proto:!0,forced:/./.exec!==g0},{exec:g0})});var x0=g((H6,E0)=>{"use strict";_f();var y0=vl(),_0=ur(),zL=ws(),b0=ge(),S0=ye(),HL=sr(),GL=S0("species"),bf=RegExp.prototype;E0.exports=function(e,t,r,n){var i=S0(e),o=!b0(function(){var c={};return c[i]=function(){return 7},""[e](c)!=7}),a=o&&!b0(function(){var c=!1,l=/a/;return e==="split"&&(l={},l.constructor={},l.constructor[GL]=function(){return l},l.flags="",l[i]=/./[i]),l.exec=function(){return c=!0,null},l[i](""),!c});if(!o||!a||r){var s=y0(/./[i]),u=t(i,""[e],function(c,l,f,d,p){var v=y0(c),m=l.exec;return m===zL||m===bf.exec?o&&!p?{done:!0,value:s(l,f,d)}:{done:!0,value:v(f,l,d)}:{done:!1}});_0(String.prototype,e,u[0]),_0(bf,i,u[1])}n&&HL(bf[i],"sham",!0)}});var T0=g((G6,w0)=>{"use strict";var KL=cf().charAt;w0.exports=function(e,t,r){return t+(r?KL(e,t).length:1)}});var wf=g((K6,I0)=>{var xf=fe(),WL=Da(),YL=Math.floor,Sf=xf("".charAt),$L=xf("".replace),Ef=xf("".slice),XL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JL=/\$([$&'`]|\d{1,2})/g;I0.exports=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,u=JL;return i!==void 0&&(i=WL(i),u=XL),$L(o,u,function(c,l){var f;switch(Sf(l,0)){case"$":return"$";case"&":return e;case"`":return Ef(t,0,r);case"'":return Ef(t,a);case"<":f=i[Ef(l,1,-1)];break;default:var d=+l;if(d===0)return c;if(d>s){var p=YL(d/10);return p===0?c:p<=s?n[p-1]===void 0?Sf(l,1):n[p-1]+Sf(l,1):c}f=n[d-1]}return f===void 0?"":f})}});var A0=g((W6,C0)=>{var O0=Ee(),ZL=We(),QL=ae(),eD=Wr(),tD=ws(),rD=TypeError;C0.exports=function(e,t){var r=e.exec;if(QL(r)){var n=O0(r,e,t);return n!==null&&ZL(n),n}if(eD(e)==="RegExp")return O0(tD,e,t);throw rD("RegExp#exec called on incompatible receiver")}});var M0=g(()=>{"use strict";var nD=Ol(),k0=Ee(),Ts=fe(),iD=x0(),oD=ge(),aD=We(),sD=ae(),uD=Yr(),cD=io(),lD=Dc(),ii=Zr(),fD=Bn(),dD=T0(),pD=Gn(),vD=wf(),mD=A0(),hD=ye(),If=hD("replace"),gD=Math.max,yD=Math.min,_D=Ts([].concat),Tf=Ts([].push),R0=Ts("".indexOf),P0=Ts("".slice),bD=function(e){return e===void 0?e:String(e)},SD=function(){return"a".replace(/./,"$0")==="$0"}(),N0=function(){return/./[If]?/./[If]("a","$0")==="":!1}(),ED=!oD(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});iD("replace",function(e,t,r){var n=N0?"$":"$0";return[function(o,a){var s=fD(this),u=uD(o)?void 0:pD(o,If);return u?k0(u,o,s,a):k0(t,ii(s),o,a)},function(i,o){var a=aD(this),s=ii(i);
3if(typeof o=="string"&&R0(o,n)===-1&&R0(o,"$<")===-1){var u=r(t,a,s,o);if(u.done)return u.value}var c=sD(o);c||(o=ii(o));var l=a.global;if(l){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=mD(a,s);if(p===null||(Tf(d,p),!l))break;var v=ii(p[0]);v===""&&(a.lastIndex=dD(s,lD(a.lastIndex),f))}for(var m="",h=0,y=0;y<d.length;y++){p=d[y];for(var _=ii(p[0]),S=gD(yD(cD(p.index),s.length),0),w=[],x=1;x<p.length;x++)Tf(w,bD(p[x]));var T=p.groups;if(c){var b=_D([_],w,S,s);T!==void 0&&Tf(b,T);var C=ii(nD(o,void 0,b))}else C=vD(_,s,S,w,T,o);S>=h&&(m+=P0(s,h,S)+C,h=S+_.length)}return m+P0(s,h)}]},!ED||!SD||N0)});var D0=g((X6,L0)=>{var xD=It(),wD=Wr(),TD=ye(),ID=TD("match");L0.exports=function(e){var t;return xD(e)&&((t=e[ID])!==void 0?!!t:wD(e)=="RegExp")}});var U0=g((J6,F0)=>{var OD=Ee(),CD=ft(),AD=Hn(),kD=ff(),q0=RegExp.prototype;F0.exports=function(e){var t=e.flags;return t===void 0&&!("flags"in q0)&&!CD(e,"flags")&&AD(q0,e)?OD(kD,e):t}});var H0=g(()=>{"use strict";var RD=je(),PD=Ee(),Of=fe(),j0=Bn(),ND=ae(),MD=Yr(),LD=D0(),oi=Zr(),DD=Gn(),qD=U0(),FD=wf(),UD=ye(),jD=wt(),BD=UD("replace"),VD=TypeError,z0=Of("".indexOf),zD=Of("".replace),B0=Of("".slice),HD=Math.max,V0=function(e,t,r){return r>e.length?-1:t===""?r:z0(e,t,r)};RD({target:"String",proto:!0},{replaceAll:function(t,r){var n=j0(this),i,o,a,s,u,c,l,f,d,p=0,v=0,m="";if(!MD(t)){if(i=LD(t),i&&(o=oi(j0(qD(t))),!~z0(o,"g")))throw VD("`.replaceAll` does not allow non-global regexes");if(a=DD(t,BD),a)return PD(a,t,n,r);if(jD&&i)return zD(oi(n),t,r)}for(s=oi(n),u=oi(t),c=ND(r),c||(r=oi(r)),l=u.length,f=HD(1,l),p=V0(s,u,0);p!==-1;)d=c?oi(r(u,p,s)):FD(u,s,p,[],void 0,r),m+=B0(s,v,p)+d,v=p+l,p=V0(s,u,p+f);return v<s.length&&(m+=B0(s,v)),m}})});var K0=g((e8,G0)=>{_f();M0();H0();var GD=lf();G0.exports=GD("String","replaceAll")});var Y0=g((t8,W0)=>{var KD=K0();W0.exports=KD});var X0=g((r8,$0)=>{var WD=Y0();$0.exports=WD});function re(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ep(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Au(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function I(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(l){try{c(n.next(l))}catch(f){a(f)}}function u(l){try{c(n.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((n=n.apply(e,t||[])).next())})}function O(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function W(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Ep,E,V=R(()=>
vendor: 63,524 bytes, line 3
3{Ep=function(e,t){return Ep=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ep(e,t)};E=function(){return E=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},E.apply(this,arguments)}});var Bw=R(()=>{});var Vw=R(()=>{});var xp=R(()=>{});function aa(e,t,r){t.split&&(t=t.split("."));for(var n=0,i=t.length,o=e,a,s;n<i&&(s=""+t[n++],!(s==="__proto__"||s==="constructor"||s==="prototype"));)o=o[s]=n===i?r:typeof(a=o[s])==typeof t?a:t[n]*0!==0||~(""+t[n]).indexOf(".")?{}:[]}var wp=R(()=>{});var zw,Hw=R(()=>{zw=function(e,t){return Object.keys(e).filter(function(r){return t(r,e[r])}).reduce(function(r,n){return r[n]=e[n],r},{})}});var Ur,Tp=R(()=>{V();Ur=function(e){re(t,e);function t(r,n){var i=e.call(this,"".concat(r," ").concat(n))||this;return i.field=r,i}return t}(Error)});function yr(e){return typeof e=="string"}function ku(e){return typeof e=="number"}function An(e){return typeof e=="function"}function Gw(e){return e!=null}function Ie(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()==="object"}var Ip=R(()=>{});function a4(e){if(!Gw(e))throw new Ur("Event",o4);if(typeof e!="object")throw new Ur("Event",Cp)}function s4(e){if(!yr(e.type))throw new Ur(".type",Op)}function u4(e){if(!yr(e.event))throw new Ur(".event",Op)}function c4(e){if(!Ie(e.properties))throw new Ur(".properties",Cp)}function l4(e){if(!Ie(e.traits))throw new Ur(".traits",Cp)}function f4(e){if(!yr(e.messageId))throw new Ur(".messageId",Op)}function Kw(e){a4(e),s4(e),f4(e),e.type==="track"&&(u4(e),c4(e)),["group","identify"].includes(e.type)&&l4(e)}var Op,Cp,o4,Ap=R(()=>{Tp();Ip();Op="is not a string",Cp="is not an object",o4="is nil"});var d4,Ww,Yw=R(()=>{V();xp();wp();Hw();Ap();d4=function(){function e(t){var r,n;this.settings=t,this.createMessageId=t.createMessageId,this.onEventMethodCall=(r=t.onEventMethodCall)!==null&&r!==void 0?r:function(){},this.onFinishedEvent=(n=t.onFinishedEvent)!==null&&n!==void 0?n:function(){}}return e}(),Ww=function(){function e(t){this.settings=new d4(t)}return e.prototype.track=function(t,r,n,i){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize(E(E({},this.baseEvent()),{event:t,type:"track",properties:r!=null?r:{},options:E({},n),integrations:E({},i)}))},e.prototype.page=function(t,r,n,i,o){var a;this.settings.onEventMethodCall({type:"page",options:i});var s={type:"page",properties:E({},n),options:E({},i),integrations:E({},o)};return t!==null&&(s.category=t,s.properties=(a=s.properties)!==null&&a!==void 0?a:{},s.properties.category=t),r!==null&&(s.name=r),this.normalize(E(E({},this.baseEvent()),s))},e.prototype.screen=function(t,r,n,i,o){this.settings.onEventMethodCall({type:"screen",options:i});var a={type:"screen",properties:E({},n),options:E({},i),integrations:E({},o)};return t!==null&&(a.category=t),r!==null&&(a.name=r),this.normalize(E(E({},this.baseEvent()),a))},e.prototype.identify=function(t,r,n,i){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize(E(E({},this.baseEvent()),{type:"identify",userId:t,traits:r!=null?r:{},options:E({},n),integrations:i}))},e.prototype.group=function(t,r,n,i){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize(E(E({},this.baseEvent()),{type:"group",traits:r!=null?r:{},options:E({},n),integrations:E({},i),groupId:t}))},e.prototype.alias=function(t,r,n,i){this.settings.onEventMethodCall({type:"alias",options:n});var o={userId:t,type:"alias",options:E({},n),integrations:E({},i)};return r!==null&&(o.previousId=r),t===void 0?this.normalize(E(E({},o),this.baseEvent())):this.normalize(E(E({},this.baseEvent()),o))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(t){var r,n=["userId","anonymousId","timestamp","messageId"];delete t.integrations;var i=Object.keys(t),o=(r=t.context)!==null&&r!==void 0?r:{},a={};return i.forEach(function(s){s!=="context"&&(n.includes(s)?aa(a,s,t[s]):aa(o,s,t[s]))}),[o,a]},e.prototype.normalize=function(t){var r,n,i=Object.keys((r=t.integrations)!==null&&r!==void 0?r:{}).reduce(function(d,p){var v,m;return E(E({},d),(v={},v[p]=!!(!((m=t.integrations)===null||m===void 0)&&m[p]),v))},{});t.options=zw(t.options||{},function(d,p){return p!==void 0});var o=E(E({},i),(n=t.options)===null||n===void 0?void 0:n.integrations),a=t.options?this.context(t.options):[],s=a[0],u=a[1],c=t.options,l=Au(t,["options"]),f=E(E(E(E({timestamp:new Date},l),{context:s,integrations:o}),u),{messageId:c.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(f),Kw(f),f},e}()});function sa(e,t){return new Promise(function(r,n){var i=setTimeout(function(){n(Error("Promise timed out"))},t);e.then(function(o){return clearTimeout(i),r(o)}).catch(n)})}function p4(e){return new Promise(function(t){return setTimeout(t,e)})}function kp(e,t,r){var n=function(){try{return Promise.resolve(t(e))}catch(i){return Promise.reject(i)}};return p4(r).then(function(){return sa(n(),1e3)}).catch(function(i){e==null||e.log("warn","Callback Error",{error:i}),e==null||e.stats.increment("callback_error")}).then(function(){return e})}var Rp=R(()=>{});var Ri,$w=R(()=>{Ri=function(){var e,t,r=!1,n=new Promise(function(i,o){e=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];r=!0,i.apply(void 0,a)},t=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];r=!0,o.apply(void 0,a)}});return{resolve:e,reject:t,promise:n,isSettled:function(){return r}}}});var Xw=R(()=>{$w()});var Pi,Jw=R(()=>{Pi=function(){function e(t){var r;this.callbacks={},this.warned=!1,this.maxListeners=(r=t==null?void 0:t.maxListeners)!==null&&r!==void 0?r:10}return e.prototype.warnIfPossibleMemoryLeak=function(t){this.warned||this.maxListeners&&this.callbacks[t].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(t)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(t,r){return this.callbacks[t]?(this.callbacks[t].push(r),this.warnIfPossibleMemoryLeak(t)):this.callbacks[t]=[r],this},e.prototype.once=function(t,r){var n=this,i=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];n.off(t,i),r.apply(n,o)};return this.on(t,i),this},e.prototype.off=function(t,r){var n,i=(n=this.callbacks[t])!==null&&n!==void 0?n:[],o=i.filter(function(a){return a!==r});return this.callbacks[t]=o,this},e.prototype.emit=function(t){for(var r=this,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=(n=this.callbacks[t])!==null&&n!==void 0?n:[];return a.forEach(function(s){s.apply(r,i)}),this},e}()});var Zw=R(()=>{Jw()});var kn=R(()=>{Xw();Zw()});function Qw(e){var t=Math.random()+1,r=e.minTimeout,n=r===void 0?500:r,i=e.factor,o=i===void 0?2:i,a=e.attempt,s=e.maxTimeout,u=s===void 0?1/0:s;return Math.min(t*n*Math.pow(o,a),u)}var eT=R(()=>{});var Ru,_r,Pp=R(()=>{V();kn();eT();Ru="onRemoveFromFuture",_r=function(e){re(t,e);function t(r,n,i){var o=e.call(this)||this;return o.future=[],o.maxAttempts=r,o.queue=n,o.seen=i!=null?i:{},o}return t.prototype.push=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n.map(function(a){var s=r.updateAttempts(a);return s>r.maxAttempts||r.includes(a)?!1:(r.queue.push(a),!0)});return this.queue=this.queue.sort(function(a,s){return r.getAttempts(a)-r.getAttempts(s)}),o},t.prototype.pushWithBackoff=function(r,n){var i=this;if(n===void 0&&(n=0),n==0&&this.getAttempts(r)===0)return this.push(r)[0];var o=this.updateAttempts(r);if(o>this.maxAttempts||this.includes(r))return!1;var a=Qw({attempt:o-1});return n>0&&a<n&&(a=n),setTimeout(function(){i.queue.push(r),i.future=i.future.filter(function(s){return s.id!==r.id}),i.emit(Ru)},a),this.future.push(r),!0},t.prototype.getAttempts=function(r){var n;return(n=this.seen[r.id])!==null&&n!==void 0?n:0},t.prototype.updateAttempts=function(r){return this.seen[r.id]=this.getAttempts(r)+1,this.getAttempts(r)},t.prototype.includes=function(r){return this.queue.includes(r)||this.future.includes(r)||!!this.queue.find(function(n){return n.id===r.id})||!!this.future.find(function(n){return n.id===r.id})},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(Pi)});function Ni(){var e=0,t,r="";if(!Pu||Rn+16>256){for(Pu=Array(e=256);e--;)Pu[e]=256*Math.random()|0;e=Rn=0}for(;e<16;e++)t=Pu[Rn+e],e==6?r+=Nu[t&15|64]:e==8?r+=Nu[t&63|128]:r+=Nu[t],e&1&&e>1&&e<11&&(r+="-");return Rn++,r}var Rn,Nu,Pu,Mu=R(()=>{Rn=256,Nu=[];for(;Rn--;)Nu[Rn]=(Rn+256).toString(16).substring(1)});var tT,rT=R(()=>{V();tT=function(){function e(){this._logs=[]}return e.prototype.log=function(t,r,n){var i=new Date;this._logs.push({level:t,message:r,time:i,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce(function(r,n){var i,o,a,s=E(E({},n),{json:JSON.stringify(n.extras,null," "),extras:n.extras});delete s.time;var u=(a=(o=n.time)===null||o===void 0?void 0:o.toISOString())!==null&&a!==void 0?a:"";return r[u]&&(u="".concat(u,"-").concat(Math.random())),E(E({},r),(i={},i[u]=s,i))},{});console.table?console.table(t):console.log(t)}else this.logs.forEach(function(r){var n=r.level,i=r.message,o=r.extras;n==="info"||n==="debug"?console.log(i,o!=null?o:""):console[n](i,o!=null?o:"")});this._logs=[]},e}()});var v4,Np,nT,Mp=R(()=>{V();v4=function(e){var t={gauge:"g",counter:"c"};return t[e]},Np=function(){function e(){this.metrics=[]}return e.prototype.increment=function(t,r,n){r===void 0&&(r=1),this.metrics.push({metric:t,value:r,tags:n!=null?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(t,r,n){this.metrics.push({metric:t,value:r,tags:n!=null?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var t=this.metrics.map(function(r){return E(E({},r),{tags:r.tags.join(",")})});console.table?console.table(t):console.log(t),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(t){return{m:t.metric,v:t.value,t:t.tags,k:v4(t.type),e:t.timestamp}})},e}(),nT=function(e){re(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.gauge=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n]},t.prototype.increment=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n]},t.prototype.flush=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n]},t.prototype.serialize=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return[]},t}(Np)});var Qe,Pn,Lu=R(()=>{Mu();wp();rT();Mp();Qe=function(){function e(t){var r,n,i;this.retry=(r=t.retry)!==null&&r!==void 0?r:!0,this.type=(n=t.type)!==null&&n!==void 0?n:"plugin Error",this.reason=(i=t.reason)!==null&&i!==void 0?i:""}return e}(),Pn=function(){function e(t,r,n,i){r===void 0&&(r=Ni()),n===void 0&&(n=new nT),i===void 0&&(i=new tT),this.attempts=0,this.event=t,this._id=r,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(t){return t.id===this.id},e.prototype.cancel=function(t){throw t||new Qe({reason:"Context Cancel"})},e.prototype.log=function(t,r,n){this.logger.log(t,r,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(t,r){var n;if(t.split(".")[0]==="integrations"){var i=t.split(".")[1];if(((n=this.event.integrations)===null||n===void 0?void 0:n[i])===!1)return this.event}return aa(this.event,t,r),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(t){this._failedDelivery=t},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()});function iT(e,t){var r={};return e.forEach(function(n){var i,o=void 0;if(typeof t=="string"){var a=n[t];o=typeof a!="string"?JSON.stringify(a):a}else t instanceof Function&&(o=t(n));o!==void 0&&(r[o]=W(W([],(i=r[o])!==null&&i!==void 0?i:[],!0),[n],!1))}),r}var oT=R(()=>{V()});var aT,sT=R(()=>{aT=function(e){return typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"}});var uT,cT=R(()=>{sT();uT=function(){var e,t,r=0;return{done:function(){return e},run:function(n){var i=n();return aT(i)&&(++r===1&&(e=new Promise(function(o){return t=o})),i.finally(function(){return--r===0&&t()})),i}}}});function m4(e){return I(this,void 0,void 0,function(){var t;return O(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return t=r.sent(),[2,Promise.reject(t)];case 3:return[2]}})})}function br(e,t){e.log("debug","plugin",{plugin:t.name});var r=new Date().getTime(),n=t[e.event.type];if(n===void 0)return Promise.resolve(e);var i=m4(function(){return n.apply(t,[e])}).then(function(o){var a=new Date().getTime()-r;return o.stats.gauge("plugin_time",a,["plugin:".concat(t.name)]),o}).catch(function(o){if(o instanceof Qe&&o.type==="middleware_cancellation")throw o;return o instanceof Qe?(e.log("warn",o.type,{plugin:t.name,error:o}),o):(e.log("error","plugin Error",{plugin:t.name,error:o}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),o)});return i}function lT(e,t){return br(e,t).then(function(r){if(r instanceof Pn)return r;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(r)})}var Lp=R(()=>{V();Lu()});var fT,dT=R(()=>{V();oT();Pp();Lu();kn();cT();Lp();fT=function(e){re(t,e);function t(r){var n=e.call(this)||this;return n.criticalTasks=uT(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=r,n.queue.on(Ru,function(){n.scheduleFlush(0)}),n}return t.prototype.register=function(r,n,i){return I(this,void 0,void 0,function(){var o,a,s=this;return O(this,function(u){switch(u.label){case 0:return this.plugins.push(n),o=function(c){s.failedInitializations.push(n.name),s.emit("initialization_failure",n),console.warn(n.name,c),r.log("warn","Failed to load destination",{plugin:n.name,error:c}),s.plugins=s.plugins.filter(function(l){return l!==n})},n.type==="destination"&&n.name!=="Segment.io"?(n.load(r,i).catch(o),[3,4]):[3,1];case 1:return u.trys.push([1,3,,4]),[4,n.load(r,i)];case 2:return u.sent(),[3,4];case 3:return a=u.sent(),o(a),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(r,n,i){return I(this,void 0,void 0,function(){var o;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),n.unload?[4,Promise.resolve(n.unload(r,i))]:[3,2];case 1:a.sent(),a.label=2;case 2:return this.plugins=this.plugins.filter(function(s){return s.name!==n.name}),[3,4];case 3:return o=a.sent(),r.log("warn","Failed to unload destination",{plugin:n.name,error:o}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(r){return I(this,void 0,void 0,function(){var n;return O(this,function(i){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.push(r),n=this.subscribeToDelivery(r),this.scheduleFlush(0),[2,n]})})},t.prototype.subscribeToDelivery=function(r){return I(this,void 0,void 0,function(){var n=this;return O(this,function(i){return[2,new Promise(function(o){var a=function(s,u){s.isSame(r)&&(n.off("flush",a),o(s))};n.on("flush",a)})]})})},t.prototype.dispatchSingle=function(r){return I(this,void 0,void 0,function(){var n=this;return O(this,function(i){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.updateAttempts(r),r.attempts=1,[2,this.deliver(r).catch(function(o){var a=n.enqueuRetry(o,r);return a?n.subscribeToDelivery(r):(r.setFailedDelivery({reason:o}),r)})]})})},t.prototype.isEmpty=function(){return this.queue.length===0},t.prototype.scheduleFlush=function(r){var n=this;r===void 0&&(r=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){n.flush().then(function(){setTimeout(function(){n.flushing=!1,n.queue.length&&n.scheduleFlush(0)},0)})},r))},t.prototype.deliver=function(r){return I(this,void 0,void 0,function(){var n,i,o,a;return O(this,function(s){switch(s.label){case 0:return[4,this.criticalTasks.done()];case 1:s.sent(),n=Date.now(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.flushOne(r)];case 3:return r=s.sent(),i=Date.now()-n,this.emit("delivery_success",r),r.stats.gauge("delivered",i),r.log("debug","Delivered",r.event),[2,r];case 4:throw o=s.sent(),a=o,r.log("error","Failed to deliver",a),this.emit("delivery_failure",r,a),r.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(r,n){var i=!(r instanceof Qe)||r.retry;return i?this.queue.pushWithBackoff(n):!1},t.prototype.flush=function(){return I(this,void 0,void 0,function(){var r,n,i;return O(this,function(o){switch(o.label){case 0:if(this.queue.length===0)return[2,[]];if(r=this.queue.pop(),!r)return[2,[]];r.attempts=this.queue.getAttempts(r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.deliver(r)];case 2:return r=o.sent(),this.emit("flush",r,!0),[3,4];case 3:return n=o.sent(),i=this.enqueuRetry(n,r),i||(r.setFailedDelivery({reason:n}),this.emit("flush",r,!1)),[2,[]];case 4:return[2,[r]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(r){var n=this.plugins.filter(function(p){var v,m,h;if(p.type!=="destination"&&p.name!=="Segment.io")return!0;var y=void 0;return(v=p.alternativeNames)===null||v===void 0||v.forEach(function(_){r[_]!==void 0&&(y=r[_])}),(h=(m=r[p.name])!==null&&m!==void 0?m:y)!==null&&h!==void 0?h:(p.name==="Segment.io"?!0:r.All)!==!1}),i=iT(n,"type"),o=i.before,a=o===void 0?[]:o,s=i.enrichment,u=s===void 0?[]:s,c=i.destination,l=c===void 0?[]:c,f=i.after,d=f===void 0?[]:f;return{before:a,enrichment:u,destinations:l,after:d}},t.prototype.flushOne=function(r){var n,i;return I(this,void 0,void 0,function(){var o,a,s,u,c,l,v,f,d,p,v,m,h,y,_;return O(this,function(S){switch(S.label){case 0:if(!this.isReady())throw new Error("Not ready");r.attempts>1&&this.emit("delivery_retry",r),o=this.availableExtensions((n=r.event.integrations)!==null&&n!==void 0?n:{}),a=o.before,s=o.enrichment,u=0,c=a,S.label=1;case 1:return u<c.length?(l=c[u],[4,lT(r,l)]):[3,4];case 2:v=S.sent(),v instanceof Pn&&(r=v),this.emit("message_enriched",r,l),S.label=3;case 3:return u++,[3,1];case 4:f=0,d=s,S.label=5;case 5:return f<d.length?(p=d[f],[4,br(r,p)]):[3,8];case 6:v=S.sent(),v instanceof Pn&&(r=v),this.emit("message_enriched",r,p),S.label=7;case 7:return f++,[3,5];case 8:return m=this.availableExtensions((i=r.event.integrations)!==null&&i!==void 0?i:{}),h=m.destinations,y=m.after,[4,new Promise(function(w,x){setTimeout(function(){var T=h.map(function(b){return br(r,b)});Promise.all(T).then(w).catch(x)},0)})];case 9:return S.sent(),r.stats.increment("message_delivered"),this.emit("message_delivered",r),_=y.map(function(w){return br(r,w)}),[4,Promise.all(_)];case 10:return S.sent(),[2,r]}})})},t}(Pi)});var pT=R(()=>{});function vT(e,t,r,n){return I(this,void 0,void 0,function(){var i,o;return O(this,function(a){switch(a.label){case 0:return r.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return n!=null&&n.callback?[4,kp(o,n.callback,h4(i,n.timeout))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return n!=null&&n.debug&&o.flush(),[2,o]}})})}var h4,mT=R(()=>{V();Rp();h4=function(e,t){var r=Date.now()-e;return Math.max((t!=null?t:300)-r,0)}});var hT=R(()=>{});var et=R(()=>{Bw();Vw();xp();Yw();Rp();Pp();Lu();dT();pT();mT();Ip();Tp();Ap();hT();Mp();Lp()});function ua(){return typeof window!="undefined"}function Du(){return!ua()}var ca=R(()=>{});function Fp(){return ua()?window.navigator.onLine:!0}function st(){return!Fp()}var Mi=R(()=>{ca()});function _T(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return a},get:function(l){return s[l.toLowerCase()]},has:function(l){return l.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(l,f,d){o.push(f=f.toLowerCase()),a.push([f,d]),s[f]=s[f]?s[f]+","+d:d}),r(u())},i.onerror=n,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}var bT=R(()=>{});var Li,qu=R(()=>{Li=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:null}});var jr,la=R(()=>{bT();qu();jr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Li();return(r&&r.fetch||_T).apply(void 0,e)}});var Sr,fa=R(()=>{Sr="1.76.0"});function Di(){return g4}var g4,Fu=R(()=>{g4="npm"});var Uu,Up=R(()=>{Uu="api.segment.io/v1"});function jp(e){console.error("Error sending segment performance metrics",e)}var y4,ST,ET=R(()=>{V();la();fa();Fu();Up();y4=function(e,t,r){var n=t.reduce(function(i,o){var a=o.split(":"),s=a[0],u=a[1];return i[s]=u,i},{});return{type:"Counter",metric:e,value:1,tags:E(E({},n),{library:"analytics.js",library_version:r==="web"?"next-".concat(Sr):"npm:next-".concat(Sr)})}};ST=function(){function e(t){var r=this,n,i,o,a,s;if(this.host=(n=t==null?void 0:t.host)!==null&&n!==void 0?n:Uu,this.sampleRate=(i=t==null?void 0:t.sampleRate)!==null&&i!==void 0?i:1,this.flushTimer=(o=t==null?void 0:t.flushTimer)!==null&&o!==void 0?o:30*1e3,this.maxQueueSize=(a=t==null?void 0:t.maxQueueSize)!==null&&a!==void 0?a:20,this.protocol=(s=t==null?void 0:t.protocol)!==null&&s!==void 0?s:"https",this.queue=[],this.sampleRate>0){var u=!1,c=function(){u||(u=!0,r.flush().catch(jp),u=!1,setTimeout(c,r.flushTimer))};c()}}return e.prototype.increment=function(t,r){if(t.includes("analytics_js.")&&r.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=y4(t,r,Di());this.queue.push(n),t.includes("error")&&this.flush().catch(jp)}},e.prototype.flush=function(){return I(this,void 0,void 0,function(){var t=this;return O(this,function(r){switch(r.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(n){jp(n),t.sampleRate=0})];case 1:return r.sent(),[2]}})})},e.prototype.send=function(){return I(this,void 0,void 0,function(){var t,r,n;return O(this,function(i){return t={series:this.queue},this.queue=[],r={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,jr(n,{headers:r,body:JSON.stringify(t),method:"POST"})]})})},e}()});var ju,Bu,Bp=R(()=>{V();et();ET();Bu=function(e){re(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.initRemoteMetrics=function(r){ju=new ST(r)},t.prototype.increment=function(r,n,i){e.prototype.increment.call(this,r,n,i),ju==null||ju.increment(r,i!=null?i:[])},t}(Np)});var De,Qt=R(()=>{V();et();Bp();De=function(e){re(t,e);function t(r,n){return e.call(this,r,n,new Bu)||this}return t.system=function(){return new this({type:"track",event:"system"})},t}(Pn)});var da=R(()=>{et()});function RT(e){var t=er.getItem(e);return(t?JSON.parse(t):[]).map(function(r){return new De(r.event,r.id)})}function x4(e,t){var r=RT(e),n=W(W([],t,!0),r,!0),i=n.reduce(function(o,a){var s;return E(E({},o),(s={},s[a.id]=a,s))},{});er.setItem(e,JSON.stringify(Object.values(i)))}function PT(e){var t=er.getItem(e);return t?JSON.parse(t):{}}function w4(e,t){var r=PT(e);er.setItem(e,JSON.stringify(E(E({},r),t)))}function kT(e){er.removeItem(e)}function Hp(e,t,r){r===void 0&&(r=0);var n=50,i="persisted-queue:v1:".concat(e,":lock"),o=function(c){return new Date().getTime()>c},a=er.getItem(i),s=a?JSON.parse(a):null,u=s===null||o(s);if(u){er.setItem(i,JSON.stringify(T4()+n)),t(),er.removeItem(i);return}!u&&r<3?setTimeout(function(){Hp(e,t,r+1)},n):console.error("Unable to retrieve lock")}var er,T4,Br,pa=R(()=>{V();da();Qt();ca();er={getItem:function(){},setItem:function(){},removeItem:function(){}};try{er=ua()&&window.localStorage?window.localStorage:er}catch(e){console.warn("Unable to access localStorage",e)}T4=function(){return new Date().getTime()};Br=function(e){re(t,e);function t(r,n){var i=e.call(this,r,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),s=[],u={};return Hp(n,function(){try{s=RT(o),u=PT(a),kT(o),kT(a),i.queue=W(W([],s,!0),i.queue,!0),i.seen=E(E({},u),i.seen)}catch(c){console.error(c)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var c=W(W([],i.queue,!0),i.future,!0);try{Hp(n,function(){x4(o,c),w4(a,i.seen)})}catch(l){console.error(l)}}}),i}return t}(_r)});function ma(){return window[Yp]}function FT(e){Yp=e}function UT(e){window[Yp]=e}var Yp,ha=R(()=>{Yp="analytics"});var ya=g((Cie,Ui)=>{Ui.exports=$p(P4);Ui.exports.find=Ui.exports;Ui.exports.replace=function(e,t,r,n){return $p(M4).call(this,e,t,r,n),e};Ui.exports.del=function(e,t,r){return $p(N4).call(this,e,t,null,r),e};function $p(e){return function(t,r,n,i){var o=i&&D4(i.normalizer)?i.normalizer:L4;r=o(r);for(var a,s=!1;!s;)u();function u(){for(a in t){var c=o(a);if(r.indexOf(c)===0){var l=r.substr(c.length);if(l.charAt(0)==="."||l.length===0){r=l.substr(1);var f=t[a];if(f==null){s=!0;return}if(!r.length){s=!0;return}t=f;return}}}a=void 0,s=!0}if(a)return t==null?t:e(t,a,n)}}function P4(e,t){if(e.hasOwnProperty(t))return e[t]}function N4(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function M4(e,t,r){return e.hasOwnProperty(t)&&(e[t]=r),e}function L4(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function D4(e){return typeof e=="function"}});var XT=g(_a=>{"use strict";var q4=_a&&_a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_a,"__esModule",{value:!0});var Vr=q4(ya());function ji(e,t){return function(){var r=this.traits(),n=this.properties?this.properties():{};return Vr.default(r,"address."+e)||Vr.default(r,e)||(t?Vr.default(r,"address."+t):null)||(t?Vr.default(r,t):null)||Vr.default(n,"address."+e)||Vr.default(n,e)||(t?Vr.default(n,"address."+t):null)||(t?Vr.default(n,t):null)}}function F4(e){e.zip=ji("postalCode","zip"),e.country=ji("country"),e.street=ji("street"),e.state=ji("state"),e.city=ji("city"),e.region=ji("region")}_a.default=F4});var JT=g(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.clone=void 0;function Xp(e){if(typeof e!="object")return e;if(Object.prototype.toString.call(e)==="[object Object]"){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Xp(e[r]));return t}else return Array.isArray(e)?e.map(Xp):e}Yu.clone=Xp});var ZT=g(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var U4={Salesforce:!0};function j4(e){return!U4[e]}Jp.default=j4});var Qp=g(Zp=>{"use strict";var QT=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;Zp.parse=function(e){var t=[1,5,6,7,11,12],r=QT.exec(e),n=0;if(!r)return new Date(e);for(var i=0,o;o=t[i];i++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0,r[4]===" "?n=new Date().getTimezoneOffset():r[9]!=="Z"&&r[10]&&(n=r[11]*60+r[12],r[10]==="+"&&(n=0-n));var a=Date.UTC(r[1],r[2],r[3],r[5],r[6]+n,r[7],r[8]);return new Date(a)};Zp.is=function(e,t){return typeof e!="string"||t&&/^\d{4}-\d{2}-\d{2}/.test(e)===!1?!1:QT.test(e)}});var eI=g(ev=>{"use strict";var B4=/\d{13}/;ev.is=function(e){return B4.test(e)};ev.parse=function(e){return e=parseInt(e,10),new Date(e)}});var tI=g(tv=>{"use strict";var V4=/\d{10}/;tv.is=function(e){return V4.test(e)};tv.parse=function(e){var t=parseInt(e,10)*1e3;return new Date(t)}});var $u=g((Lie,aI)=>{"use strict";var rI=Qp(),nI=eI(),iI=tI(),z4=Object.prototype,oI=z4.toString;function H4(e){return oI.call(e)==="[object Date]"}function G4(e){return oI.call(e)==="[object Number]"}aI.exports=function(t){return H4(t)?t:G4(t)?new Date(K4(t)):rI.is(t)?rI.parse(t):nI.is(t)?nI.parse(t):iI.is(t)?iI.parse(t):new Date(t)};function K4(e){return e<315576e5?e*1e3:e}});var cI=g((Die,uI)=>{"use strict";var sI=Qp();uI.exports=rv;function rv(e,t){return t===void 0&&(t=!0),e&&typeof e=="object"?W4(e,t):Array.isArray(e)?Y4(e,t):sI.is(e,t)?sI.parse(e):e}function W4(e,t){return Object.keys(e).forEach(function(r){e[r]=rv(e[r],t)}),e}function Y4(e,t){return e.forEach(function(r,n){e[n]=rv(r,t)}),e}});var zr=g(Vi=>{"use strict";var ba=Vi&&Vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.Facade=void 0;var $4=ba(XT()),Bi=JT(),X4=ba(ZT()),J4=ba($u()),nv=ba(ya()),Z4=ba(cI());function ut(e,t){t=t||{},this.raw=Bi.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=Bi.clone(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=J4.default(e.timestamp):e.timestamp=new Date,t.traverse&&Z4.default(e),this.opts=t,this.obj=e}Vi.Facade=ut;var se=ut.prototype;se.proxy=function(e){var t=e.split(".");e=t.shift();var r=this[e]||this.obj[e];return r&&(typeof r=="function"&&(r=r.call(this)||{}),t.length===0?this.opts.clone?iv(r):r:(r=nv.default(r,t.join(".")),this.opts.clone?iv(r):r))};se.field=function(e){var t=this.obj[e];return this.opts.clone?iv(t):t};ut.proxy=function(e){return function(){return this.proxy(e)}};ut.field=function(e){return function(){return this.field(e)}};ut.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var r=this.proxy(e);return r&&(r=[this.opts.clone?Bi.clone(r):r]),r||[]}};ut.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var r=this.proxy(e+"s");if(Array.isArray(r))return r[0]}};se.json=function(){var e=this.opts.clone?Bi.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e};se.rawEvent=function(){return this.raw};se.options=function(e){var t=this.obj.options||this.obj.context||{},r=this.opts.clone?Bi.clone(t):t;if(!e)return r;if(this.enabled(e)){var n=this.integrations(),i=n[e]||nv.default(n,e);return typeof i!="object"&&(i=nv.default(this.options(),e)),typeof i=="object"?i:{}}};se.context=se.options;se.enabled=function(e){var t=this.proxy("options.providers.all");typeof t!="boolean"&&(t=this.proxy("options.all")),typeof t!="boolean"&&(t=this.proxy("integrations.all")),typeof t!="boolean"&&(t=!0);var r=t&&X4.default(e),n=this.integrations();if(n.providers&&n.providers.hasOwnProperty(e)&&(r=n.providers[e]),n.hasOwnProperty(e)){var i=n[e];typeof i=="boolean"?r=i:r=!0}return!!r};se.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()};se.active=function(){var e=this.proxy("options.active");return e==null&&(e=!0),e};se.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")};se.sessionId=se.anonymousId;se.groupId=ut.proxy("options.groupId");se.traits=function(e){var t=this.proxy("options.traits")||{},r=this.userId();e=e||{},r&&(t.id=r);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=this[n]==null?this.proxy("options.traits."+n):this[n]();if(i==null)continue;t[e[n]]=i,delete t[n]}return t};se.library=function(){var e=this.proxy("options.library");return e?typeof e=="string"?{name:e,version:null}:e:{name:"unknown",version:null}};se.device=function(){var e=this.proxy("context.device");(typeof e!="object"||e===null)&&(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e};se.userAgent=ut.proxy("context.userAgent");se.timezone=ut.proxy("context.timezone");se.timestamp=ut.field("timestamp");se.channel=ut.field("channel");se.ip=ut.proxy("context.ip");se.userId=ut.field("userId");$4.default(se);function iv(e){return Bi.clone(e)}});var Hr=g((Fie,ov)=>{typeof Object.create=="function"?ov.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ov.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var fI=g(zi=>{"use strict";var Q4=zi&&zi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zi,"__esModule",{value:!0});zi.Alias=void 0;var ej=Q4(Hr()),lI=zr();function Mt(e,t){lI.Facade.call(this,e,t)}zi.Alias=Mt;ej.default(Mt,lI.Facade);Mt.prototype.action=function(){return"alias"};Mt.prototype.type=Mt.prototype.action;Mt.prototype.previousId=function(){return this.field("previousId")||this.field("from")};Mt.prototype.from=Mt.prototype.previousId;Mt.prototype.userId=function(){return this.field("userId")||this.field("to")};Mt.prototype.to=Mt.prototype.userId});var Sa=g(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});var tj=/.+\@.+\..+/;function rj(e){return tj.test(e)}av.default=rj});var dI=g(Hi=>{"use strict";var sv=Hi&&Hi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Group=void 0;var nj=sv(Hr()),ij=sv(Sa()),oj=sv($u()),Gi=zr();function uv(e,t){Gi.Facade.call(this,e,t)}Hi.Group=uv;nj.default(uv,Gi.Facade);var Lt=uv.prototype;Lt.action=function(){return"group"};Lt.type=Lt.action;Lt.groupId=Gi.Facade.field("groupId");Lt.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return oj.default(e)};Lt.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(ij.default(t))return t};Lt.traits=function(e){var t=this.properties(),r=this.groupId();e=e||{},r&&(t.id=r);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=this[n]==null?this.proxy("traits."+n):this[n]();if(i==null)continue;t[e[n]]=i,delete t[n]}return t};Lt.name=Gi.Facade.proxy("traits.name");Lt.industry=Gi.Facade.proxy("traits.industry");Lt.employees=Gi.Facade.proxy("traits.employees");Lt.properties=function(){return this.field("traits")||this.field("properties")||{}}});var lv=g(Wi=>{"use strict";var Xu=Wi&&Wi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.Identify=void 0;var rr=zr(),Ki=Xu(ya()),aj=Xu(Hr()),sj=Xu(Sa()),pI=Xu($u()),Dn=function(e){return e.trim()};function cv(e,t){rr.Facade.call(this,e,t)}Wi.Identify=cv;aj.default(cv,rr.Facade);var ue=cv.prototype;ue.action=function(){return"identify"};ue.type=ue.action;ue.traits=function(e){var t=this.field("traits")||{},r=this.userId();e=e||{},r&&(t.id=r);for(var n in e){var i=this[n]==null?this.proxy("traits."+n):this[n]();i!=null&&(t[e[n]]=i,n!==e[n]&&delete t[n])}return t};ue.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(sj.default(t))return t};ue.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return pI.default(e)};ue.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return pI.default(e)};ue.companyName=function(){return this.proxy("traits.company.name")};ue.name=function(){var e=this.proxy("traits.name");if(typeof e=="string")return Dn(e);var t=this.firstName(),r=this.lastName();if(t&&r)return Dn(t+" "+r)};ue.firstName=function(){var e=this.proxy("traits.firstName");if(typeof e=="string")return Dn(e);var t=this.proxy("traits.name");if(typeof t=="string")return Dn(t).split(" ")[0]};ue.lastName=function(){var e=this.proxy("traits.lastName");if(typeof e=="string")return Dn(e);var t=this.proxy("traits.name");if(typeof t=="string"){var r=Dn(t).indexOf(" ");if(r!==-1)return Dn(t.substr(r+1))}};ue.uid=function(){return this.userId()||this.username()||this.email()};ue.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};ue.age=function(){var e=this.birthday(),t=Ki.default(this.traits(),"age");if(t!=null)return t;if(e instanceof Date){var r=new Date;return r.getFullYear()-e.getFullYear()}};ue.avatar=function(){var e=this.traits();return Ki.default(e,"avatar")||Ki.default(e,"photoUrl")||Ki.default(e,"avatarUrl")};ue.position=function(){var e=this.traits();return Ki.default(e,"position")||Ki.default(e,"jobTitle")};ue.username=rr.Facade.proxy("traits.username");ue.website=rr.Facade.one("traits.website");ue.websites=rr.Facade.multi("traits.website");ue.phone=rr.Facade.one("traits.phone");ue.phones=rr.Facade.multi("traits.phone");ue.address=rr.Facade.proxy("traits.address");ue.gender=rr.Facade.proxy("traits.gender");ue.birthday=rr.Facade.proxy("traits.birthday")});var Ju=g(Yi=>{"use strict";var fv=Yi&&Yi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.Track=void 0;var uj=fv(Hr()),Pe=zr(),cj=lv(),lj=fv(Sa()),vI=fv(ya());function dv(e,t){Pe.Facade.call(this,e,t)}Yi.Track=dv;uj.default(dv,Pe.Facade);var j=dv.prototype;j.action=function(){return"track"};j.type=j.action;j.event=Pe.Facade.field("event");j.value=Pe.Facade.proxy("properties.value");j.category=Pe.Facade.proxy("properties.category");j.id=Pe.Facade.proxy("properties.id");j.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};j.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};j.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};j.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};j.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};j.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};j.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};j.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};j.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};j.sku=Pe.Facade.proxy("properties.sku");j.tax=Pe.Facade.proxy("properties.tax");j.name=Pe.Facade.proxy("properties.name");j.price=Pe.Facade.proxy("properties.price");j.total=Pe.Facade.proxy("properties.total");j.repeat=Pe.Facade.proxy("properties.repeat");j.coupon=Pe.Facade.proxy("properties.coupon");j.shipping=Pe.Facade.proxy("properties.shipping");j.discount=Pe.Facade.proxy("properties.discount");j.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};j.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};j.description=Pe.Facade.proxy("properties.description");j.plan=Pe.Facade.proxy("properties.plan");j.subtotal=function(){var e=vI.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var r=this.tax();r&&(t-=r),r=this.shipping(),r&&(t-=r),r=this.discount(),r&&(t+=r)}return t};j.products=function(){var e=this.properties(),t=vI.default(e,"products");return Array.isArray(t)?t.filter(function(r){return r!==null}):[]};j.quantity=function(){var e=this.obj.properties||{};return e.quantity||1};j.currency=function(){var e=this.obj.properties||{};return e.currency||"USD"};j.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};j.query=Pe.Facade.proxy("options.query");j.properties=function(e){var t=this.field("properties")||{};e=e||{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=this[r]==null?this.proxy("properties."+r):this[r]();if(n==null)continue;t[e[r]]=n,delete t[r]}return t};j.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};j.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(lj.default(t))return t};j.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event(),r=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!e&&t&&t.match(r)&&(e=this.proxy("properties.total")),fj(e)};j.cents=function(){var e=this.revenue();return typeof e!="number"?this.value()||0:e*100};j.identify=function(){var e=this.json();return e.traits=this.traits(),new cj.Identify(e,this.opts)};function fj(e){if(e){if(typeof e=="number")return e;if(typeof e=="string"&&(e=e.replace(/\$/g,""),e=parseFloat(e),!isNaN(e)))return e}}});var vv=g($i=>{"use strict";var mI=$i&&$i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($i,"__esModule",{value:!0});$i.Page=void 0;var dj=mI(Hr()),qn=zr(),pj=Ju(),vj=mI(Sa());function pv(e,t){qn.Facade.call(this,e,t)}$i.Page=pv;dj.default(pv,qn.Facade);var tt=pv.prototype;tt.action=function(){return"page"};tt.type=tt.action;tt.category=qn.Facade.field("category");tt.name=qn.Facade.field("name");tt.title=qn.Facade.proxy("properties.title");tt.path=qn.Facade.proxy("properties.path");tt.url=qn.Facade.proxy("properties.url");tt.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};tt.properties=function(e){var t=this.field("properties")||{},r=this.category(),n=this.name();e=e||{},r&&(t.category=r),n&&(t.name=n);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=this[i]==null?this.proxy("properties."+i):this[i]();if(o==null)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t};tt.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(vj.default(t))return t};tt.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t};tt.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"};tt.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new pj.Track(t,this.opts)}});var gI=g(Xi=>{"use strict";var mj=Xi&&Xi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.Screen=void 0;var hj=mj(Hr()),hI=vv(),gj=Ju();function Fn(e,t){hI.Page.call(this,e,t)}Xi.Screen=Fn;hj.default(Fn,hI.Page);Fn.prototype.action=function(){return"screen"};Fn.prototype.type=Fn.prototype.action;Fn.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"};Fn.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new gj.Track(t,this.opts)}});var _I=g(Ji=>{"use strict";var yj=Ji&&Ji.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Delete=void 0;var _j=yj(Hr()),yI=zr();function mv(e,t){yI.Facade.call(this,e,t)}Ji.Delete=mv;_j.default(mv,yI.Facade);mv.prototype.type=function(){return"delete"}});var hv=g(me=>{"use strict";var Zu=me&&me.__assign||function(){return Zu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Zu.apply(this,arguments)};Object.defineProperty(me,"__esModule",{value:!0});me.Delete=me.Screen=me.Page=me.Track=me.Identify=me.Group=me.Alias=me.Facade=void 0;var bI=zr();Object.defineProperty(me,"Facade",{enumerable:!0,get:function(){return bI.Facade}});var SI=fI();Object.defineProperty(me,"Alias",{enumerable:!0,get:function(){return SI.Alias}});var EI=dI();Object.defineProperty(me,"Group",{enumerable:!0,get:function(){return EI.Group}});var xI=lv();Object.defineProperty(me,"Identify",{enumerable:!0,get:function(){return xI.Identify}});var wI=Ju();Object.defineProperty(me,"Track",{enumerable:!0,get:function(){return wI.Track}});var TI=vv();Object.defineProperty(me,"Page",{enumerable:!0,get:function(){return TI.Page}});var II=gI();Object.defineProperty(me,"Screen",{enumerable:!0,get:function(){return II.Screen}});var OI=_I();Object.defineProperty(me,"Delete",{enumerable:!0,get:function(){return OI.Delete}});me.default=Zu(Zu({},bI.Facade),{Alias:SI.Alias,Group:EI.Group,Identify:xI.Identify,Track:wI.Track,Page:TI.Page,Screen:II.Screen,Delete:OI.Delete})});function Zi(e,t){var r=new rt.Facade(e,t);return e.type==="track"&&(r=new rt.Track(e,t)),e.type==="identify"&&(r=new rt.Identify(e,t)),e.type==="page"&&(r=new rt.Page(e,t)),e.type==="alias"&&(r=new rt.Alias(e,t)),e.type==="group"&&(r=new rt.Group(e,t)),e.type==="screen"&&(r=new rt.Screen(e,t)),Object.defineProperty(r,"obj",{value:e,writable:!0}),r}var rt,gv=R(()=>{rt=wr(hv())});var ec,bv=R(()=>{V();ec=function(e,t){return I(void 0,void 0,void 0,function(){var r;return O(this,function(n){return r=function(i){return I(void 0,void 0,void 0,function(){var o;return O(this,function(a){switch(a.label){case 0:return e(i)?(o=r,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[a.sent()])];case 2:return[2]}})})},[2,r(void 0)]})})}});var NI=R(()=>{et()});var Ea={};xr(Ea,{form:()=>kj,link:()=>Aj});function Oj(e){var t=e;return!!(t.ctrlKey||t.shiftKey||t.metaKey||t.button&&t.button==1)}function Cj(e,t){return!!(e.target==="_blank"&&t)}function Aj(e,t,r,n){var i=this,o=[];return e?(e instanceof Element?o=[e]:"toArray"in e?o=e.toArray():o=e,o.forEach(function(a){a.addEventListener("click",function(s){var u,c,l=t instanceof Function?t(a):t,f=r instanceof Function?r(a):r,d=a.getAttribute("href")||a.getAttributeNS("http://www.w3.org/1999/xlink","href")||a.getAttribute("xlink:href")||((u=a.getElementsByTagName("a")[0])===null||u===void 0?void 0:u.getAttribute("href")),p=sa(i.track(l,f,n!=null?n:{}),(c=i.settings.timeout)!==null&&c!==void 0?c:500);!Cj(a,d)&&!Oj(s)&&d&&(s.preventDefault?s.preventDefault():s.returnValue=!1,p.catch(console.error).then(function(){window.location.href=d}).catch(console.error))},!1)}),this):this}function kj(e,t,r,n){var i=this;if(!e)return this;e instanceof HTMLFormElement&&(e=[e]);var o=e;return o.forEach(function(a){if(!(a instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var s=function(c){var l;c.preventDefault?c.preventDefault():c.returnValue=!1;var f=t instanceof Function?t(a):t,d=r instanceof Function?r(a):r,p=sa(i.track(f,d,n!=null?n:{}),(l=i.settings.timeout)!==null&&l!==void 0?l:500);p.catch(console.error).then(function(){a.submit()}).catch(console.error)},u=window.jQuery||window.Zepto;u?u(a).submit(s):a.addEventListener("submit",s,!1)}),this}var xa=R(()=>{NI()});var MI={};xr(MI,{applyDestinationMiddleware:()=>wa,sourceMiddlewarePlugin:()=>Rj});function wa(e,t,r){return I(this,void 0,void 0,function(){function n(c,l){return I(this,void 0,void 0,function(){var f,d,p;return O(this,function(v){switch(v.label){case 0:return f=!1,d=null,[4,l({payload:Zi(c,{clone:!0,traverse:!1}),integration:e,next:function(m){f=!0,m===null&&(d=null),m&&(d=m.obj)}})];case 1:return v.sent(),!f&&d!==null&&(d=d,d.integrations=E(E({},c.integrations),(p={},p[e]=!1,p))),[2,d]}})})}var i,o,a,s,u;return O(this,function(c){switch(c.label){case 0:i=Zi(t,{clone:!0,traverse:!1}).rawEvent(),o=0,a=r,c.label=1;case 1:return o<a.length?(s=a[o],[4,n(i,s)]):[3,4];case 2:if(u=c.sent(),u===null)return[2,null];i=u,c.label=3;case 3:return o++,[3,1];case 4:return[2,i]}})})}function Rj(e,t){function r(n){return I(this,void 0,void 0,function(){var i;return O(this,function(o){switch(o.label){case 0:return i=!1,[4,e({payload:Zi(n.event,{clone:!0,traverse:!1}),integrations:t!=null?t:{},next:function(a){i=!0,a&&(n.event=a.obj)}})];case 1:if(o.sent(),!i)throw new Qe({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(n){return Promise.resolve(n)},track:r,page:r,identify:r,alias:r,group:r}}var tc=R(()=>{V();Qt();gv()});function Sv(e,t){return Object.keys(t).reduce(function(r,n){if(n.startsWith(e)){var i=n.substr(e.length);r[i]=t[n]}return r},{})}var LI=R(()=>{});function rc(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}var Ev=R(()=>{});var DI={};xr(DI,{queryString:()=>Pj});function Pj(e,t){var r=document.createElement("a");r.href=t;var n=r.search.slice(1),i=n.split("&").reduce(function(S,w){var x=w.split("="),T=x[0],b=x[1];return S[T]=rc(b),S},{}),o=[],a=i.ajs_uid,s=i.ajs_event,u=i.ajs_aid,c=Ie(e.options.useQueryString)?e.options.useQueryString:{},l=c.aid,f=l===void 0?/.+/:l,d=c.uid,p=d===void 0?/.+/:d;if(u){var v=Array.isArray(i.ajs_aid)?i.ajs_aid[0]:i.ajs_aid;f.test(v)&&e.setAnonymousId(v)}if(a){var m=Array.isArray(i.ajs_uid)?i.ajs_uid[0]:i.ajs_uid;if(p.test(m)){var h=Sv("ajs_trait_",i);o.push(e.identify(m,h))}}if(s){var y=Array.isArray(i.ajs_event)?i.ajs_event[0]:i.ajs_event,_=Sv("ajs_prop_",i);o.push(e.track(y,_))}return Promise.all(o)}var qI=R(()=>{LI();Ev();et()});var Lj,Dj,nc,qj,FI,Ta,Ia,Oa=R(()=>{ha();Lj=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,Dj=function(){var e,t=Array.prototype.slice.call(document.querySelectorAll("script"));return t.forEach(function(r){var n,i=(n=r.getAttribute("src"))!==null&&n!==void 0?n:"",o=Lj.exec(i);o&&o[1]&&(e=o[1])}),e},qj=function(){var e,t=nc!=null?nc:(e=ma())===null||e===void 0?void 0:e._cdn;return t},FI=function(e){var t=ma();t&&(t._cdn=e),nc=e},Ta=function(){var e=qj();if(e)return e;var t=Dj();return t||"https://cdn.segment.com"},Ia=function(){var e=Ta();return"".concat(e,"/next-integrations")}});function ic(e,t){var r,n=Object.entries((r=t.integrations)!==null&&r!==void 0?r:{}).reduce(function(i,o){var a,s,u=o[0],c=o[1];return typeof c=="object"?E(E({},i),(a={},a[u]=c,a)):E(E({},i),(s={},s[u]={},s))},{});return Object.entries(e.integrations).reduce(function(i,o){var a,s=o[0],u=o[1];return E(E({},i),(a={},a[s]=E(E({},u),n[s]),a))},{})}var Cv=R(()=>{V()});function BI(e){var t=Array.prototype.slice.call(window.document.querySelectorAll("script"));return t.find(function(r){return r.src===e})}function Er(e,t){var r=BI(e);if(r!==void 0){var n=r==null?void 0:r.getAttribute("status");if(n==="loaded")return Promise.resolve(r);if(n==="loading")return new Promise(function(i,o){r.addEventListener("load",function(){return i(r)}),r.addEventListener("error",function(a){return o(a)})})}return new Promise(function(i,o){var a,s=window.document.createElement("script");s.type="text/javascript",s.src=e,s.async=!0,s.setAttribute("status","loading");for(var u=0,c=Object.entries(t!=null?t:{});u<c.length;u++){var l=c[u],f=l[0],d=l[1];s.setAttribute(f,d)}s.onload=function(){s.onerror=s.onload=null,s.setAttribute("status","loaded"),i(s)},s.onerror=function(){s.onerror=s.onload=null,s.setAttribute("status","error"),o(new Error("Failed to load ".concat(e)))};var p=window.document.querySelector("script");p?(a=p.parentElement)===null||a===void 0||a.insertBefore(s,p):window.document.head.appendChild(s)})}function VI(e){var t=BI(e);return t!==void 0&&t.remove(),Promise.resolve()}var oc=R(()=>{});function ir(e,t){var r=t.methodName,n=t.integrationName,i=t.type,o=t.didError,a=o===void 0?!1:o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(r),"integration_name:".concat(n),"type:".concat(i)])}var Av=R(()=>{});var WI=g((ac,Rv)=>{"use strict";(function(e,t){if(typeof ac=="object"&&typeof Rv=="object")Rv.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var r=t();for(var n in r)(typeof ac=="object"?ac:e)[n]=r[n]}})(self,function(){return function(){var e={2870:function(n,i,o){"use strict";var a=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(i,"__esModule",{value:!0}),i.Store=i.matches=i.transform=void 0;var s=o(4303);Object.defineProperty(i,"transform",{enumerable:!0,get:function(){return a(s).default}});var u=o(2370);Object.defineProperty(i,"matches",{enumerable:!0,get:function(){return a(u).default}});var c=o(1444);Object.defineProperty(i,"Store",{enumerable:!0,get:function(){return a(c).default}})},2370:function(n,i,o){"use strict";var a=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(i,"__esModule",{value:!0});var s=a(o(7843));function u(v,m){if(!Array.isArray(v))return c(v,m)===!0;var h,y,_,S,w=v[0];switch(w){case"!":return!u(v[1],m);case"or":for(var x=1;x<v.length;x++)if(u(v[x],m))return!0;return!1;case"and":for(x=1;x<v.length;x++)if(!u(v[x],m))return!1;return!0;case"=":case"!=":return function(b,C,H,k){switch(l(b)&&(b=u(b,k)),l(C)&&(C=u(C,k)),typeof b=="object"&&typeof C=="object"&&(b=JSON.stringify(b),C=JSON.stringify(C)),H){case"=":return b===C;case"!=":return b!==C;default:throw new Error("Invalid operator in compareItems: ".concat(H))}}(c(v[1],m),c(v[2],m),w,m);case"<=":case"<":case">":case">=":return function(b,C,H,k){if(l(b)&&(b=u(b,k)),l(C)&&(C=u(C,k)),typeof b!="number"||typeof C!="number")return!1;switch(H){case"<=":return b<=C;case">=":return b>=C;case"<":return b<C;case">":return b>C;default:throw new Error("Invalid operator in compareNumbers: ".concat(H))}}(c(v[1],m),c(v[2],m),w,m);case"in":return function(b,C,H){return C.find(function(k){return c(k,H)===b})!==void 0}(c(v[1],m),c(v[2],m),m);case"contains":return _=c(v[1],m),S=c(v[2],m),typeof _=="string"&&typeof S=="string"&&_.indexOf(S)!==-1;case"match":return h=c(v[1],m),y=c(v[2],m),typeof h=="string"&&typeof y=="string"&&function(b,C){var H,k;e:for(;b.length>0;){var D,he;if(D=(H=f(b)).star,he=H.chunk,b=H.pattern,D&&he==="")return!0;var Ue=d(he,C),ct=Ue.t,Dt=Ue.ok,qt=Ue.err;if(qt)return!1;if(!Dt||!(ct.length===0||b.length>0)){if(D)for(var Kr=0;Kr<C.length;Kr++){if(ct=(k=d(he,C.slice(Kr+1))).t,Dt=k.ok,qt=k.err,Dt){if(b.length===0&&ct.length>0)continue;C=ct;continue e}if(qt)return!1}return!1}C=ct}return C.length===0}(y,h);case"lowercase":var T=c(v[1],m);return typeof T!="string"?null:T.toLowerCase();case"typeof":return typeof c(v[1],m);case"length":return function(b){return b===null?0:Array.isArray(b)||typeof b=="string"?b.length:NaN}(c(v[1],m));default:throw new Error("FQL IR could not evaluate for token: ".concat(w))}}function c(v,m){return Array.isArray(v)?v:typeof v=="object"?v.value:(0,s.default)(m,v)}function l(v){return!!Array.isArray(v)&&((v[0]==="lowercase"||v[0]==="length"||v[0]==="typeof")&&v.length===2||(v[0]==="contains"||v[0]==="match")&&v.length===3)}function f(v){for(var m={star:!1,chunk:"",pattern:""};v.length>0&&v[0]==="*";)v=v.slice(1),m.star=!0;var h,y=!1;e:for(h=0;h<v.length;h++)switch(v[h]){case"\\":h+1<v.length&&h++;break;case"[":y=!0;break;case"]":y=!1;break;case"*":if(!y)break e}return m.chunk=v.slice(0,h),m.pattern=v.slice(h),m}function d(v,m){for(var h,y,_={t:"",ok:!1,err:!1};v.length>0;){if(m.length===0)return _;switch(v[0]){case"[":var S=m[0];m=m.slice(1);var w=!0;(v=v.slice(1)).length>0&&v[0]==="^"&&(w=!1,v=v.slice(1));for(var x=!1,T=0;;){if(v.length>0&&v[0]==="]"&&T>0){v=v.slice(1);break}var b,C="";if(b=(h=p(v)).char,v=h.newChunk,h.err||(C=b,v[0]==="-"&&(C=(y=p(v.slice(1))).char,v=y.newChunk,y.err)))return _;b<=S&&S<=C&&(x=!0),T++}if(x!==w)return _;break;case"?":m=m.slice(1),v=v.slice(1);break;case"\\":if((v=v.slice(1)).length===0)return _.err=!0,_;default:if(v[0]!==m[0])return _;m=m.slice(1),v=v.slice(1)}}return _.t=m,_.ok=!0,_.err=!1,_}function p(v){var m={char:"",newChunk:"",err:!1};return v.length===0||v[0]==="-"||v[0]==="]"||v[0]==="\\"&&(v=v.slice(1)).length===0?(m.err=!0,m):(m.char=v[0],m.newChunk=v.slice(1),m.newChunk.length===0&&(m.err=!0),m)}i.default=function(v,m){if(!m)throw new Error("No matcher supplied!");switch(m.type){case"all":return!0;case"fql":return function(h,y){if(!h)return!1;try{h=JSON.parse(h)}catch(S){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(h,'": ').concat(S))}var _=u(h,y);return typeof _=="boolean"&&_}(m.ir,v);default:throw new Error("Matcher of type ".concat(m.type," unsupported."))}}},1444:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=function(){function a(s){this.rules=[],this.rules=s||[]}return a.prototype.getRulesByDestinationName=function(s){for(var u=[],c=0,l=this.rules;c<l.length;c++){var f=l[c];f.destinationName!==s&&f.destinationName!==void 0||u.push(f)}return u},a}();i.default=o},4303:function(n,i,o){"use strict";var a=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(i,"__esModule",{value:!0});var s=a(o(374)),u=a(o(7843)),c=a(o(5500)),l=o(9014),f=o(4966);function d(_,S){v(_,S.drop,function(w,x){x.forEach(function(T){return delete w[T]})})}function p(_,S){v(_,S.allow,function(w,x){Object.keys(w).forEach(function(T){x.includes(T)||delete w[T]})})}function v(_,S,w){Object.entries(S).forEach(function(x){var T=x[0],b=x[1],C=function(k){typeof k=="object"&&k!==null&&w(k,b)},H=T===""?_:(0,u.default)(_,T);Array.isArray(H)?H.forEach(C):C(H)})}function m(_,S){var w=JSON.parse(JSON.stringify(_));for(var x in S.map)if(S.map.hasOwnProperty(x)){var T=S.map[x],b=x.split("."),C=void 0;if(b.length>1?(b.pop(),C=(0,u.default)(w,b.join("."))):C=_,typeof C=="object"){if(T.copy){var H=(0,u.default)(w,T.copy);H!==void 0&&(0,l.dset)(_,x,H)}else if(T.move){var k=(0,u.default)(w,T.move);k!==void 0&&(0,l.dset)(_,x,k),(0,f.unset)(_,T.move)}else T.hasOwnProperty("set")&&(0,l.dset)(_,x,T.set);if(T.to_string){var D=(0,u.default)(_,x);if(typeof D=="string"||typeof D=="object"&&D!==null)continue;D!==void 0?(0,l.dset)(_,x,JSON.stringify(D)):(0,l.dset)(_,x,"undefined")}}}}function h(_,S){return!(S.sample.percent<=0)&&(S.sample.percent>=1||(S.sample.path?function(x,T){var b=(0,u.default)(x,T.sample.path),C=(0,s.default)(JSON.stringify(b)),H=-64,k=[];y(C.slice(0,8),k);for(var D=0,he=0;he<64&&k[he]!==1;he++)D++;if(D!==0){var Ue=[];y(C.slice(9,16),Ue),H-=D,k.splice(0,D),Ue.splice(64-D),k=k.concat(Ue)}return k[63]=k[63]===0?1:0,(0,c.default)(parseInt(k.join(""),2),H)<T.sample.percent}(_,S):(w=S.sample.percent,Math.random()<=w)));var w}function y(_,S){for(var w=0;w<8;w++)for(var x=_[w],T=128;T>=1;T/=2)x-T>=0?(x-=T,S.push(1)):S.push(0)}i.default=function(_,S){for(var w=_,x=0,T=S;x<T.length;x++){var b=T[x];switch(b.type){case"drop":return null;case"drop_properties":d(w,b.config);break;case"allow_properties":p(w,b.config);break;case"sample_event":if(h(w,b.config))break;return null;case"map_properties":m(w,b.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(b.type,'" is unsupported.'))}}return w}},4966:function(n,i,o){"use strict";var a=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(i,"__esModule",{value:!0}),i.unset=void 0;var s=a(o(7843));i.unset=function(u,c){if((0,s.default)(u,c)){for(var l=c.split("."),f=l.pop();l.length&&l[l.length-1].slice(-1)==="\\";)f=l.pop().slice(0,-1)+"."+f;for(;l.length;)u=u[c=l.shift()];return delete u[f]}return!0}},9014:function(n,i){i.dset=function(o,a,s){a.split&&(a=a.split("."));for(var u,c,l=0,f=a.length,d=o;l<f&&(c=a[l++])!=="__proto__"&&c!=="constructor"&&c!=="prototype";)d=d[c]=l===f?s:typeof(u=d[c])==typeof a?u:0*a[l]!=0||~(""+a[l]).indexOf(".")?{}:[]}},3304:function(n){"use strict";var i=typeof Float64Array=="function"?Float64Array:void 0;n.exports=i},7382:function(n,i,o){"use strict";var a,s=o(5569),u=o(3304),c=o(8482);a=s()?u:c,n.exports=a},8482:function(n){"use strict";n.exports=function(){throw new Error("not implemented")}},6322:function(n,i,o){"use strict";var a,s=o(2508),u=o(5679),c=o(882);a=s()?u:c,n.exports=a},882:function(n){"use strict";n.exports=function(){throw new Error("not implemented")}},5679:function(n){"use strict";var i=typeof Uint16Array=="function"?Uint16Array:void 0;n.exports=i},4773:function(n,i,o){"use strict";var a,s=o(9773),u=o(3004),c=o(3078);a=s()?u:c,n.exports=a},3078:function(n){"use strict";n.exports=function(){throw new Error("not implemented")}},3004:function(n){"use strict";var i=typeof Uint32Array=="function"?Uint32Array:void 0;n.exports=i},7980:function(n,i,o){"use strict";var a,s=o(8114),u=o(6737),c=o(3357);a=s()?u:c,n.exports=a},3357:function(n){"use strict";n.exports=function(){throw new Error("not implemented")}},6737:function(n){"use strict";var i=typeof Uint8Array=="function"?Uint8Array:void 0;n.exports=i},2684:function(n){"use strict";var i=typeof Float64Array=="function"?Float64Array:null;n.exports=i},5569:function(n,i,o){"use strict";var a=o(3876);n.exports=a},3876:function(n,i,o){"use strict";var a=o(1448),s=o(2684);n.exports=function(){var u,c;if(typeof s!="function")return!1;try{c=new s([1,3.14,-3.14,NaN]),u=a(c)&&c[0]===1&&c[1]===3.14&&c[2]===-3.14&&c[3]!=c[3]}catch(l){u=!1}return u}},9048:function(n,i,o){"use strict";var a=o(3763);n.exports=a},3763:function(n){"use strict";var i=Object.prototype.hasOwnProperty;n.exports=function(o,a){return o!=null&&i.call(o,a)}},7009:function(n,i,o){"use strict";var a=o(6784);n.exports=a},6784:function(n){"use strict";n.exports=function(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}},3123:function(n,i,o){"use strict";var a=o(8481);n.exports=a},8481:function(n,i,o){"use strict";var a=o(7009)();n.exports=function(){return a&&typeof Symbol.toStringTag=="symbol"}},2508:function(n,i,o){"use strict";var a=o(3403);n.exports=a},3403:function(n,i,o){"use strict";var a=o(768),s=o(9668),u=o(187);n.exports=function(){var c,l;if(typeof u!="function")return!1;try{l=new u(l=[1,3.14,-3.14,s+1,s+2]),c=a(l)&&l[0]===1&&l[1]===3&&l[2]===s-2&&l[3]===0&&l[4]===1}catch(f){c=!1}return c}},187:function(n){"use strict";var i=typeof Uint16Array=="function"?Uint16Array:null;n.exports=i},9773:function(n,i,o){"use strict";var a=o(2822);n.exports=a},2822:function(n,i,o){"use strict";var a=o(2744),s=o(3899),u=o(746);n.exports=function(){var c,l;if(typeof u!="function")return!1;try{l=new u(l=[1,3.14,-3.14,s+1,s+2]),c=a(l)&&l[0]===1&&l[1]===3&&l[2]===s-2&&l[3]===0&&l[4]===1}catch(f){c=!1}return c}},746:function(n){"use strict";var i=typeof Uint32Array=="function"?Uint32Array:null;n.exports=i},8114:function(n,i,o){"use strict";var a=o(8066);n.exports=a},8066:function(n,i,o){"use strict";var a=o(8279),s=o(3443),u=o(2731);n.exports=function(){var c,l;if(typeof u!="function")return!1;try{l=new u(l=[1,3.14,-3.14,s+1,s+2]),c=a(l)&&l[0]===1&&l[1]===3&&l[2]===s-2&&l[3]===0&&l[4]===1}catch(f){c=!1}return c}},2731:function(n){"use strict";var i=typeof Uint8Array=="function"?Uint8Array:null;n.exports=i},1448:function(n,i,o){"use strict";var a=o(1453);n.exports=a},1453:function(n,i,o){"use strict";var a=o(6208),s=typeof Float64Array=="function";n.exports=function(u){return s&&u instanceof Float64Array||a(u)==="[object Float64Array
3]"}},9331:function(n,i,o){"use strict";var a=o(7980),s={uint16:o(6322),uint8:a};n.exports=s},5902:function(n,i,o){"use strict";var a=o(4106);n.exports=a},4106:function(n,i,o){"use strict";var a,s,u=o(9331);(s=new u.uint16(1))[0]=4660,a=new u.uint8(s.buffer)[0]===52,n.exports=a},768:function(n,i,o){"use strict";var a=o(3823);n.exports=a},3823:function(n,i,o){"use strict";var a=o(6208),s=typeof Uint16Array=="function";n.exports=function(u){return s&&u instanceof Uint16Array||a(u)==="[object Uint16Array]"}},2744:function(n,i,o){"use strict";var a=o(2326);n.exports=a},2326:function(n,i,o){"use strict";var a=o(6208),s=typeof Uint32Array=="function";n.exports=function(u){return s&&u instanceof Uint32Array||a(u)==="[object Uint32Array]"}},8279:function(n,i,o){"use strict";var a=o(208);n.exports=a},208:function(n,i,o){"use strict";var a=o(6208),s=typeof Uint8Array=="function";n.exports=function(u){return s&&u instanceof Uint8Array||a(u)==="[object Uint8Array]"}},6315:function(n){"use strict";n.exports=1023},1686:function(n){"use strict";n.exports=2147483647},3105:function(n){"use strict";n.exports=2146435072},3449:function(n){"use strict";n.exports=2147483648},6988:function(n){"use strict";n.exports=-1023},9777:function(n){"use strict";n.exports=1023},3690:function(n){"use strict";n.exports=-1074},2918:function(n,i,o){"use strict";var a=o(4772).NEGATIVE_INFINITY;n.exports=a},4165:function(n){"use strict";var i=Number.POSITIVE_INFINITY;n.exports=i},6488:function(n){"use strict";n.exports=22250738585072014e-324},9668:function(n){"use strict";n.exports=65535},3899:function(n){"use strict";n.exports=4294967295},3443:function(n){"use strict";n.exports=255},7011:function(n,i,o){"use strict";var a=o(812);n.exports=a},812:function(n,i,o){"use strict";var a=o(4165),s=o(2918);n.exports=function(u){return u===a||u===s}},1883:function(n,i,o){"use strict";var a=o(1797);n.exports=a},1797:function(n){"use strict";n.exports=function(i){return i!=i}},513:function(n,i,o){"use strict";var a=o(5760);n.exports=a},5760:function(n){"use strict";n.exports=function(i){return Math.abs(i)}},5848:function(n,i,o){"use strict";var a=o(677);n.exports=a},677:function(n,i,o){"use strict";var a=o(3449),s=o(1686),u=o(7838),c=o(1921),l=o(2490),f=[0,0];n.exports=function(d,p){var v,m;return u.assign(d,f,1,0),v=f[0],v&=s,m=c(p),l(v|=m&=a,f[1])}},5500:function(n,i,o){"use strict";var a=o(8397);n.exports=a},8397:function(n,i,o){"use strict";var a=o(4165),s=o(2918),u=o(6315),c=o(9777),l=o(6988),f=o(3690),d=o(1883),p=o(7011),v=o(5848),m=o(4948),h=o(8478),y=o(7838),_=o(2490),S=[0,0],w=[0,0];n.exports=function(x,T){var b,C;return x===0||d(x)||p(x)?x:(m(S,x),T+=S[1],(T+=h(x=S[0]))<f?v(0,x):T>c?x<0?s:a:(T<=l?(T+=52,C=2220446049250313e-31):C=1,y(w,x),b=w[0],b&=2148532223,C*_(b|=T+u<<20,w[1])))}},4772:function(n,i,o){"use strict";var a=o(7548);n.exports=a},7548:function(n){"use strict";n.exports=Number},8478:function(n,i,o){"use strict";var a=o(4500);n.exports=a},4500:function(n,i,o){"use strict";var a=o(1921),s=o(3105),u=o(6315);n.exports=function(c){var l=a(c);return(l=(l&s)>>>20)-u|0}},2490:function(n,i,o){"use strict";var a=o(9639);n.exports=a},4445:function(n,i,o){"use strict";var a,s,u;o(5902)===!0?(s=1,u=0):(s=0,u=1),a={HIGH:s,LOW:u},n.exports=a},9639:function(n,i,o){"use strict";var a=o(4773),s=o(7382),u=o(4445),c=new s(1),l=new a(c.buffer),f=u.HIGH,d=u.LOW;n.exports=function(p,v){return l[f]=p,l[d]=v,c[0]}},5646:function(n,i,o){"use strict";var a;a=o(5902)===!0?1:0,n.exports=a},1921:function(n,i,o){"use strict";var a=o(6285);n.exports=a},6285:function(n,i,o){"use strict";var a=o(4773),s=o(7382),u=o(5646),c=new s(1),l=new a(c.buffer);n.exports=function(f){return c[0]=f,l[u]}},9024:function(n,i,o){"use strict";var a=o(6488),s=o(7011),u=o(1883),c=o(513);n.exports=function(l,f,d,p){return u(l)||s(l)?(f[p]=l,f[p+d]=0,f):l!==0&&c(l)<a?(f[p]=4503599627370496*l,f[p+d]=-52,f):(f[p]=l,f[p+d]=0,f)}},4948:function(n,i,o){"use strict";var a=o(7576),s=o(9422);a(s,"assign",o(9024)),n.exports=s},9422:function(n,i,o){"use strict";var a=o(9024);n.exports=function(s){return a(s,[0,0],1,0)}},5239:function(n,i,o){"use strict";var a=o(4773),s=o(7382),u=o(5782),c=new s(1),l=new a(c.buffer),f=u.HIGH,d=u.LOW;n.exports=function(p,v,m,h){return c[0]=p,v[h]=l[f],v[h+m]=l[d],v}},7838:function(n,i,o){"use strict";var a=o(7576),s=o(4010);a(s,"assign",o(5239)),n.exports=s},5782:function(n,i,o){"use strict";var a,s,u;o(5902)===!0?(s=1,u=0):(s=0,u=1),a={HIGH:s,LOW:u},n.exports=a},4010:function(n,i,o){"use strict";var a=o(5239);n.exports=function(s){return a(s,[0,0],1,0)}},7576:function(n,i,o){"use strict";var a=o(7063);n.exports=a},7063:function(n,i,o){"use strict";var a=o(6691);n.exports=function(s,u,c){a(s,u,{configurable:!1,enumerable:!1,writable:!1,value:c})}},2073:function(n){"use strict";var i=Object.defineProperty;n.exports=i},1680:function(n){"use strict";var i=typeof Object.defineProperty=="function"?Object.defineProperty:null;n.exports=i},1471:function(n,i,o){"use strict";var a=o(1680);n.exports=function(){try{return a({},"x",{}),!0}catch(s){return!1}}},6691:function(n,i,o){"use strict";var a,s=o(1471),u=o(2073),c=o(1309);a=s()?u:c,n.exports=a},1309:function(n){"use strict";var i=Object.prototype,o=i.toString,a=i.__defineGetter__,s=i.__defineSetter__,u=i.__lookupGetter__,c=i.__lookupSetter__;n.exports=function(l,f,d){var p,v,m,h;if(typeof l!="object"||l===null||o.call(l)==="[object Array]")throw new TypeError("invalid argument. First argument must be an object. Value: `"+l+"`.");
vendor: 24,204 bytes, line 3
3if(typeof d!="object"||d===null||o.call(d)==="[object Array]")throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+d+"`.");if((v="value"in d)&&(u.call(l,f)||c.call(l,f)?(p=l.__proto__,l.__proto__=i,delete l[f],l[f]=d.value,l.__proto__=p):l[f]=d.value),m="get"in d,h="set"in d,v&&(m||h))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return m&&a&&a.call(l,f,d.get),h&&s&&s.call(l,f,d.set),l}},6208:function(n,i,o){"use strict";var a,s=o(3123),u=o(7407),c=o(4210);a=s()?c:u,n.exports=a},7407:function(n,i,o){"use strict";var a=o(173);n.exports=function(s){return a.call(s)}},4210:function(n,i,o){"use strict";var a=o(9048),s=o(1403),u=o(173);n.exports=function(c){var l,f,d;if(c==null)return u.call(c);f=c[s],l=a(c,s);try{c[s]=void 0}catch(p){return u.call(c)}return d=u.call(c),l?c[s]=f:delete c[s],d}},173:function(n){"use strict";var i=Object.prototype.toString;n.exports=i},1403:function(n){"use strict";var i=typeof Symbol=="function"?Symbol.toStringTag:"";n.exports=i},7843:function(n){n.exports=function(i,o,a,s,u){for(o=o.split?o.split("."):o,s=0;s<o.length;s++)i=i?i[o[s]]:u;return i===u?a:i}},374:function(n,i,o){"use strict";o.r(i),o.d(i,{default:function(){return u}});for(var a=[],s=0;s<64;)a[s]=0|4294967296*Math.sin(++s%Math.PI);function u(c){var l,f,d,p=[l=1732584193,f=4023233417,~l,~f],v=[],m=unescape(encodeURI(c))+"\x80",h=m.length;for(c=--h/4+2|15,v[--c]=8*h;~h;)v[h>>2]|=m.charCodeAt(h)<<8*h--;for(s=m=0;s<c;s+=16){for(h=p;m<64;h=[d=h[3],l+((d=h[0]+[l&f|~l&d,d&l|~d&f,l^f^d,f^(l|~d)][h=m>>4]+a[m]+~~v[s|15&[m,5*m+1,3*m+5,7*m][h]])<<(h=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*h+m++%4])|d>>>-h),l,f])l=0|h[1],f=h[2];for(m=4;m;)p[--m]+=h[m]}for(c="";m<32;)c+=(p[m>>3]>>4*(1^m++)&15).toString(16);return c}}},t={};function r(n){var i=t[n];if(i!==void 0)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}return r.d=function(n,i){for(var o in i)r.o(i,o)&&!r.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:i[o]})},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r(2870)}()})});var YI={};xr(YI,{tsubMiddleware:()=>Xj});var Qi,Xj,$I=R(()=>{Qi=wr(WI()),Xj=function(e){return function(t){var r=t.payload,n=t.integration,i=t.next,o=new Qi.Store(e),a=o.getRulesByDestinationName(n);a.forEach(function(s){for(var u=s.matchers,c=s.transformers,l=0;l<u.length;l++)if(Qi.matches(r.obj,u[l])&&(r.obj=Qi.transform(r.obj,c[l]),r.obj===null))return i(null)}),i(r)}}});function sc(e,t){var r,n;return typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:(n=(r=e==null?void 0:e.__default)===null||r===void 0?void 0:r.enabled)!==null&&n!==void 0?n:!0}var Pv=R(()=>{});function XI(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function JI(e,t){return t===void 0&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function ZI(e){return("Integration"in e?e.Integration:e).prototype.name}function Jj(e,t,r){var n,i;try{var o=((i=(n=window==null?void 0:window.performance)===null||n===void 0?void 0:n.getEntriesByName(e,"resource"))!==null&&i!==void 0?i:[])[0];o&&t.stats.gauge("legacy_destination_time",Math.round(o.duration),W([r],o.duration<100?["cached"]:[],!0))}catch(a){}}function QI(e,t,r){var n;if("Integration"in e){var i={user:function(){return r.user()},addIntegration:function(){}};e(i),n=e.Integration}else n=e;var o=new n(t);return o.analytics=r,o}function eO(e,t,r,n){return I(this,void 0,void 0,function(){var i,o,a,s,u,c;return O(this,function(l){switch(l.label){case 0:i=XI(t),o=JI(i,n),a=Ia(),s="".concat(a,"/integrations/").concat(o!=null?o:i,"/").concat(r,"/").concat(o!=null?o:i,".dynamic.js.gz"),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Er(s)];case 2:return l.sent(),Jj(s,e,t),[3,4];case 3:throw u=l.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),u;case 4:return c=window["".concat(i,"Deps")],[4,Promise.all(c.map(function(f){return Er(a+f+".gz")}))];case 5:return l.sent(),window["".concat(i,"Loader")](),[2,window["".concat(i,"Integration")]]}})})}function tO(e,t,r){return I(this,void 0,void 0,function(){var n,i,o,a;return O(this,function(s){return n=Ia(),i=XI(e),o=JI(e,r),a="".concat(n,"/integrations/").concat(o!=null?o:i,"/").concat(t,"/").concat(o!=null?o:i,".dynamic.js.gz"),[2,VI(a)]})})}function rO(e){var t,r,n,i;return(i=(r=(t=e==null?void 0:e.versionSettings)===null||t===void 0?void 0:t.override)!==null&&r!==void 0?r:(n=e==null?void 0:e.versionSettings)===null||n===void 0?void 0:n.version)!==null&&i!==void 0?i:"latest"}var nO=R(()=>{V();Oa();oc()});var iO,oO,aO=R(()=>{iO=function(e,t){var r,n=t.type,i=t.bundlingStatus,o=t.versionSettings,a=i!=="unbundled"&&(n==="browser"||((r=o==null?void 0:o.componentTypes)===null||r===void 0?void 0:r.includes("browser")));return!e.startsWith("Segment")&&e!=="Iterable"&&a},oO=function(e,t){var r=t.All===!1&&t[e]===void 0;return t[e]===!1||r}});var uO={};xr(uO,{LegacyDestination:()=>sO,ajsDestinations:()=>Qj});function Zj(e,t){return I(this,void 0,void 0,function(){var r,n=this;return O(this,function(i){switch(i.label){case 0:return r=[],st()?[2,t]:[4,ec(function(){return t.length>0&&Fp()},function(){return I(n,void 0,void 0,function(){var o,a,s;return O(this,function(u){switch(u.label){case 0:return o=t.pop(),o?[4,br(o,e)]:[2];case 1:return a=u.sent(),s=a instanceof De,s||r.push(o),[2]}})})})];case 1:return i.sent(),r.map(function(o){return t.pushWithBackoff(o)}),[2,t]}})})}function Qj(e,t,r,n,i,o){var a,s;if(r===void 0&&(r={}),n===void 0&&(n={}),Du())return[];t.plan&&(n=n!=null?n:{},n.plan=t.plan);var u=(s=(a=t.middlewareSettings)===null||a===void 0?void 0:a.routingRules)!==null&&s!==void 0?s:[],c=t.integrations,l=n.integrations,f=ic(t,n!=null?n:{}),d=o==null?void 0:o.reduce(function(v,m){var h;return E(E({},v),(h={},h[ZI(m)]=m,h))},{}),p=new Set(W(W([],Object.keys(c).filter(function(v){return iO(v,c[v])}),!0),Object.keys(d||{}).filter(function(v){return Ie(c[v])||Ie(l==null?void 0:l[v])}),!0));return Array.from(p).filter(function(v){return!oO(v,r)}).map(function(v){var m=c[v],h=rO(m),y=new sO(v,h,e,f[v],n,d==null?void 0:d[v]),_=u.filter(function(S){return S.destinationName===v});return _.length>0&&i&&y.addMiddleware(i),y})}var or,sO,cO=R(()=>{V();or=wr(hv());Mi();Qt();ca();et();Pv();Cv();bv();da();pa();tc();nO();et();aO();Av();kn();sO=function(){function e(t,r,n,i,o,a){i===void 0&&(i={});var s=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=Ri(),this.flushing=!1,this.name=t,this.version=r,this.settings=E({},i),this.disableAutoISOConversion=o.disableAutoISOConversion||!1,this.integrationSource=a,this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.initializePromise.promise.then(function(u){return s._initialized=u},function(){}),this.options=o,this.buffer=o.disableClientPersistence?new _r(4,[]):new Br(4,"".concat(n,":dest-").concat(t)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return!!this._ready},e.prototype.ready=function(){var t=this;return this.initializePromise.promise.then(function(){var r;return(r=t.onReady)!==null&&r!==void 0?r:Promise.resolve()})},e.prototype.load=function(t,r){var n;return I(this,void 0,void 0,function(){var i,o,a=this;return O(this,function(s){switch(s.label){case 0:return this._ready||this.onReady!==void 0?[2]:(n=this.integrationSource)!==null&&n!==void 0?(o=n,[3,3]):[3,1];case 1:return[4,eO(t,this.name,this.version,this.options.obfuscate)];case 2:o=s.sent(),s.label=3;case 3:i=o,this.integration=QI(i,this.settings,r),this.onReady=new Promise(function(u){var c=function(){a._ready=!0,u(!0)};a.integration.once("ready",c)}),this.integration.on("initialize",function(){a.initializePromise.resolve(!0)});try{ir(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(u){throw ir(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),u}return[2]}})})},e.prototype.unload=function(t,r){return tO(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.middleware=(t=this.middleware).concat.apply(t,r)},e.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(st()||this._ready!==!0||this._initialized!==!0)},e.prototype.send=function(t,r,n){var i,o;return I(this,void 0,void 0,function(){var a,s,u,c,l,f;return O(this,function(d){switch(d.label){case 0:return this.shouldBuffer(t)?(this.buffer.push(t),this.scheduleFlush(),[2,t]):(a=(o=(i=this.options)===null||i===void 0?void 0:i.plan)===null||o===void 0?void 0:o.track,s=t.event.event,a&&s&&this.name!=="Segment.io"&&(u=a[s],sc(a,u)?t.updateEvent("integrations",E(E({},t.event.integrations),u==null?void 0:u.integrations)):(t.updateEvent("integrations",E(E({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new Qe({retry:!1,reason:"Event ".concat(s," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),u!=null&&u.enabled&&(u==null?void 0:u.integrations[this.name])===!1&&t.cancel(new Qe({retry:!1,reason:"Event ".concat(s," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),[4,wa(this.name,t.event,this.middleware)]);case 1:if(c=d.sent(),c===null)return[2,t];l=new r(c,{traverse:!this.disableAutoISOConversion}),ir(t,{integrationName:this.name,methodName:n,type:"classic"}),d.label=2;case 2:return d.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,n,l)]:[3,4];case 3:d.sent(),d.label=4;case 4:return[3,6];case 5:throw f=d.sent(),ir(t,{integrationName:this.name,methodName:n,type:"classic",didError:!0}),f;case 6:return[2,t]}})})},e.prototype.track=function(t){return I(this,void 0,void 0,function(){return O(this,function(r){return[2,this.send(t,or.Track,"track")]})})},e.prototype.page=function(t){var r;return I(this,void 0,void 0,function(){return O(this,function(n){switch(n.label){case 0:return!((r=this.integration)===null||r===void 0)&&r._assumesPageview&&!this._initialized&&this.integration.initialize(),[4,this.initializePromise.promise];case 1:return n.sent(),[2,this.send(t,or.Page,"page")]}})})},e.prototype.identify=function(t){return I(this,void 0,void 0,function(){return O(this,function(r){return[2,this.send(t,or.Identify,"identify")]})})},e.prototype.alias=function(t){return I(this,void 0,void 0,function(){return O(this,function(r){return[2,this.send(t,or.Alias,"alias")]})})},e.prototype.group=function(t){return I(this,void 0,void 0,function(){return O(this,function(r){return[2,this.send(t,or.Group,"group")]})})},e.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return I(t,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return st()||this._ready!==!0||this._initialized!==!0?(this.scheduleFlush(),[2]):(this.flushing=!0,r=this,[4,Zj(this,this.buffer)]);case 1:return r.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},e}()});var lO=g((uc,Nv)=>{(function(e,t){typeof uc=="object"&&typeof Nv=="object"?Nv.exports=t():typeof define=="function"&&define.amd?define([],t):typeof uc=="object"?uc.analyticsVideoPlugins=t():e.analyticsVideoPlugins=t()})(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(n,i,o){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:o})},r.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,i){if(1&i&&(n=r(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var a in n)r.d(o,a,function(s){return n[s]}.bind(null,a));return o},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=2)}([function(e,t,r){"use strict";r.r(t);var n=typeof fetch=="function"?fetch.bind():function(i,o){return o=o||{},new Promise(function(a,s){var u=new XMLHttpRequest;for(var c in u.open(o.method||"get",i,!0),o.headers)u.setRequestHeader(c,o.headers[c]);function l(){var f,d=[],p=[],v={};return u.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(m,h,y){d.push(h=h.toLowerCase()),p.push([h,y]),f=v[h],v[h]=f?f+","+y:y}),{ok:(u.status/100|0)==2,status:u.status,statusText:u.statusText,url:u.responseURL,clone:l,text:function(){return Promise.resolve(u.responseText)},json:function(){return Promise.resolve(u.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([u.response]))},headers:{keys:function(){return d},entries:function(){return p},get:function(m){return v[m.toLowerCase()]},has:function(m){return m.toLowerCase()in v}}}}u.withCredentials=o.credentials=="include",u.onload=function(){a(l())},u.onerror=s,u.send(o.body)})};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function o(a,s){for(var u=0;u<s.length;u++){var c=s[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}}return function(a,s,u){return s&&o(a.prototype,s),u&&o(a,u),a}}(),i=function(){function o(a,s){(function(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")})(this,o),this.pluginName=a}return n(o,[{key:"track",value:function(a,s){window.analytics.track(a,s,{integration:{name:this.pluginName}})}}]),o}();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeAnalytics=t.VimeoAnalytics=void 0;var n=o(r(3)),i=o(r(4));function o(a){return a&&a.__esModule?a:{default:a}}t.VimeoAnalytics=n.default,t.YouTubeAnalytics=i.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(u,c){for(var l=0;l<c.length;l++){var f=c[l];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,c,l){return c&&s(u.prototype,c),l&&s(u,l),u}}(),i=o(r(0));function o(s){return s&&s.__esModule?s:{default:s}}var a=function(s){function u(c,l){(function(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")})(this,u);var f=function(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||typeof p!="object"&&typeof p!="function"?d:p}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,"VimeoAnalytics"));return f.authToken=l,f.player=c,f.metadata={content:{},playback:{videoPlayer:"Vimeo"}},f.mostRecentHeartbeat=0,f.isPaused=!1,f}return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}(u,s),n(u,[{key:"initialize",value:function(){var c=this,l={loaded:this.retrieveMetadata,play:this.trackPlay,pause:this.trackPause,ended:this.trackEnded,timeupdate:this.trackHeartbeat};for(var f in l)this.registerHandler(f,l[f]);this.player.getVideoId().then(function(d){c.retrieveMetadata({id:d})}).catch(console.error)}},{key:"registerHandler",value:function(c,l){var f=this;this.player.on(c,function(d){f.updateMetadata(d),l.call(f,d)})}},{key:"trackPlay",value:function(){this.isPaused?(this.track("Video Playback Resumed",this.metadata.playback),this.isPaused=!1):(this.track("Video Playback Started",this.metadata.playback),this.track("Video Content Started",this.metadata.content))}},{key:"trackEnded",value:function(){this.track("Video Playback Completed",this.metadata.playback),this.track("Video Content Completed",this.metadata.content)}},{key:"trackHeartbeat",value:function(){var c=this.mostRecentHeartbeat,l=this.metadata.playback.position;l!==c&&l-c>=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(l))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(c){var l=this;return new Promise(function(f,d){var p=c.id;(0,i.default)("https://api.vimeo.com/videos/"+p,{headers:{Authorization:"Bearer "+l.authToken}}).then(function(v){return v.ok?v.json():d(v)}).then(function(v){l.metadata.content.title=v.name,l.metadata.content.description=v.description,l.metadata.content.publisher=v.user.name,l.metadata.playback.position=0,l.metadata.playback.totalLength=v.duration}).catch(function(v){return console.error("Request to Vimeo API Failed with: ",v),d(v)})})}},{key:"updateMetadata",value:function(c){var l=this;return new Promise(function(f,d){l.player.getVolume().then(function(p){p&&(l.metadata.playback.sound=100*p),l.metadata.playback.position=c.seconds,f()}).catch(d)})}}]),u}(o(r(1)).default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function c(l,f){for(var d=0;d<f.length;d++){var p=f[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(l,p.key,p)}}return function(l,f,d){return f&&c(l.prototype,f),d&&c(l,d),l}}(),i=a(r(0)),o=a(r(1));function a(c){return c&&c.__esModule?c:{default:c}}var s=function(c){function l(f,d){(function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")})(this,l);var p=function(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||typeof m!="object"&&typeof m!="function"?v:m}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,"YoutubeAnalytics"));return p.player=f,p.apiKey=d,p.playerLoaded=!1,p.playbackStarted=!1,p.contentStarted=!1,p.isPaused=!1,p.isBuffering=!1,p.isSeeking=!1,p.lastRecordedTime={timeReported:Date.now(),timeElapsed:0},p.metadata=[{playback:{video_player:"youtube"},content:{}}],p.playlistIndex=0,p}return function(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}(l,c),n(l,[{key:"initialize",value:function(){window.segmentYoutubeOnStateChange=this.onPlayerStateChange.bind(this),window.segmentYoutubeOnReady=this.onPlayerReady.bind(this),this.player.addEventListener("onReady","segmentYoutubeOnReady"),this.player.addEventListener("onStateChange","segmentYoutubeOnStateChange")}},{key:"onPlayerReady",value:function(f){this.retrieveMetadata()}},{key:"onPlayerStateChange",value:function(f){var d=this.player.getCurrentTime();switch(this.metadata[this.playlistIndex]&&(this.metadata[this.playlistIndex].playback.position=this.metadata[this.playlistIndex].content.position=d,this.metadata[this.playlistIndex].playback.quality=this.player.getPlaybackQuality(),this.metadata[this.playlistIndex].playback.sound=this.player.isMuted()?0:this.player.getVolume()),f.data){case-1:if(this.playerLoaded)break;this.retrieveMetadata(),this.playerLoaded=!0;break;case YT.PlayerState.BUFFERING:this.handleBuffer();break;case YT.PlayerState.PLAYING:this.handlePlay();break;case YT.PlayerState.PAUSED:this.handlePause();break;case YT.PlayerState.ENDED:this.handleEnd()}this.lastRecordedTime={timeReported:Date.now(),timeElapsed:1e3*this.player.getCurrentTime()}}},{key:"retrieveMetadata",value:function(){var f=this;return new Promise(function(d,p){var v=f.player.getVideoData(),m=f.player.getPlaylist()||[v.video_id],h=m.join();(0,i.default)("https://www.googleapis.com/youtube/v3/videos?id="+h+"&part=snippet,contentDetails&key="+f.apiKey).then(function(y){if(!y.ok){var _=new Error("Segment request to Youtube API failed (likely due to a bad API Key. Events will still be sent but will not contain video metadata)");throw _.response=y,_}return y.json()}).then(function(y){f.metadata=[];for(var _=0,S=0;S<m.length;S++){var w=y.items[S];f.metadata.push({content:{title:w.snippet.title,description:w.snippet.description,keywords:w.snippet.tags,channel:w.snippet.channelTitle,airdate:w.snippet.publishedAt}}),_+=u(w.contentDetails.duration)}for(S=0;S<m.length;S++)f.metadata[S].playback={total_length:_,video_player:"youtube"};d()}).catch(function(y){f.metadata=m.map(function(_){return{playback:{video_player:"youtube"},content:{}}}),p(y)})})}},{key:"handleBuffer",value:function(){var f=this.determineSeek();this.playbackStarted||(this.playbackStarted=!0,this.track("Video Playback Started",this.metadata[this.playlistIndex].playback)),f&&!this.isSeeking&&(this.isSeeking=!0,this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback)),this.isSeeking&&(this.track("Video Playback Seek Completed",this.metadata[this.playlistIndex].playback),this.isSeeking=!1);var d=this.player.getPlaylist();d&&this.player.getCurrentTime()===0&&this.player.getPlaylistIndex()!==this.playlistIndex&&(this.contentStarted=!1,this.playlistIndex===d.length-1&&this.player.getPlaylistIndex()===0&&(this.track("Video Playback Completed",this.metadata[this.player.getPlaylistIndex()].playback),this.track("Video Playback Started",this.metadata[this.player.getPlaylistIndex()].playback))),this.track("Video Playback Buffer Started",this.metadata[this.playlistIndex].playback),this.isBuffering=!0}},{key:"handlePlay",value:function(){this.contentStarted||(this.playlistIndex=this.player.getPlaylistIndex(),this.playlistIndex===-1&&(this.playlistIndex=0),this.track("Video Content Started",this.metadata[this.playlistIndex].content),this.contentStarted=!0),this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused&&(this.track("Video Playback Resumed",this.metadata[this.playlistIndex].playback),this.isPaused=!1)}},{key:"handlePause",value:function(){var f=this.determineSeek();this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused||(f?(this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback),this.isSeeking=!0):(this.track("Video Playback Paused",this.metadata[this.playlistIndex].playback),this.isPaused=!0))}},{key:"handleEnd",value:function(){this.track("Video Content Completed",this.metadata[this.playlistIndex].content),this.contentStarted=!1;var f=this.player.getPlaylistIndex(),d=this.player.getPlaylist();(d&&f===d.length-1||f===-1)&&(this.track("Video Playback Completed",this.metadata[this.playlistIndex].playback),this.playbackStarted=!1)}},{key:"determineSeek",value:function(){var f=this.isPaused||this.isBuffering?0:Date.now()-this.lastRecordedTime.timeReported,d=1e3*this.player.getCurrentTime()-this.lastRecordedTime.timeElapsed;return Math.abs(f-d)>2e3}}]),l}(o.default);function u(c){var l=c.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return l=l.slice(1).map(function(f){if(f!=null)return f.replace(/\D/,"")}),3600*(parseInt(l[0])||0)+60*(parseInt(l[1])||0)+(parseInt(l[2])||0)}t.default=s}])})});var fO={};xr(fO,{loadLegacyVideoPlugins:()=>e5});function e5(e){return I(this,void 0,void 0,function(){var t;return O(this,function(r){switch(r.label){case 0:return[4,Promise.resolve().then(()=>wr(lO()))];case 1:return t=r.sent(),e._plugins=t,[2]}})})}var dO=R(()=>{V()});var pO={};xr(pO,{schemaFilter:()=>r5});function t5(e,t){var r,n;if(!e||!Object.keys(e))return{};var i=e.integrations?Object.keys(e.integrations).filter(function(a){return e.integrations[a]===!1}):[],o=[];
3return((r=t.remotePlugins)!==null&&r!==void 0?r:[]).forEach(function(a){i.forEach(function(s){a.creationName==s&&o.push(a.name)})}),((n=t.remotePlugins)!==null&&n!==void 0?n:[]).reduce(function(a,s){return s.settings.subscriptions&&o.includes(s.name)&&s.settings.subscriptions.forEach(function(u){return a["".concat(s.name," ").concat(u.partnerAction)]=!1}),a},{})}function r5(e,t){function r(n){var i=e,o=n.event.event;if(i&&o){var a=i[o];if(sc(i,a)){var s=t5(a,t);n.updateEvent("integrations",E(E(E({},n.event.integrations),a==null?void 0:a.integrations),s))}else return n.updateEvent("integrations",E(E({},n.event.integrations),{All:!1,"Segment.io":!0})),n}return n}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:r,alias:r,track:r,identify:r,group:r}}var vO=R(()=>{V();Pv()});var mO={};xr(mO,{remoteMiddlewares:()=>n5});function n5(e,t,r){var n;return I(this,void 0,void 0,function(){var i,o,a,s,u,c=this;return O(this,function(l){switch(l.label){case 0:return Du()?[2,[]]:(i=Ia(),o=(n=t.enabledMiddleware)!==null&&n!==void 0?n:{},a=Object.entries(o).filter(function(f){var d=f[0],p=f[1];return p}).map(function(f){var d=f[0];return d}),s=a.map(function(f){return I(c,void 0,void 0,function(){var d,p,v,m;return O(this,function(h){switch(h.label){case 0:d=f.replace("@segment/",""),p=d,r&&(p=btoa(d).replace(/=/g,"")),v="".concat(i,"/middleware/").concat(p,"/latest/").concat(p,".js.gz"),h.label=1;case 1:return h.trys.push([1,3,,4]),[4,Er(v)];case 2:return h.sent(),[2,window["".concat(d,"Middleware")]];case 3:return m=h.sent(),e.log("error",m),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}})})}),[4,Promise.all(s)]);case 1:return u=l.sent(),u=u.filter(Boolean),[2,u]}})})}var hO=R(()=>{V();ca();oc();Oa()});var n8=wr(Oy()),i8=wr(r0()),o8=wr(s0()),a8=wr(X0());var nn={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Bt=console,ai={};Object.keys(nn).forEach(function(e){ai[e]=Bt[e]});var bo="Datadog Browser SDK:",L={debug:ai.debug.bind(Bt,bo),log:ai.log.bind(Bt,bo),info:ai.info.bind(Bt,bo),warn:ai.warn.bind(Bt,bo),error:ai.error.bind(Bt,bo)},on="https://docs.datadoghq.com",Is="".concat(on,"/real_user_monitoring/browser/troubleshooting"),Or="More details:";function Os(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return e.apply(void 0,r)}catch(i){L.error(t,i)}}}function kt(e){return e!==0&&Math.random()*100<=e}function an(e,t){return+e.toFixed(t)}function J0(e){return Rt(e)&&e>=0&&e<=100}function Rt(e){return typeof e=="number"}var Q=1e3,ne=60*Q,Af=60*ne,YD=24*Af,$D=365*YD;function sn(e){return{relative:e,timeStamp:XD(e)}}function Z0(e){return{relative:So(e),timeStamp:e}}function XD(e){var t=Ye()-performance.now();return t>Eo()?Math.round(Cr(t,e)):JD(e)}function Q0(){return Math.round(Ye()-Cr(Eo(),performance.now()))}function F(e){return Rt(e)?an(e*1e6,0):e}function Ye(){return new Date().getTime()}function G(){return Ye()}function Ce(){return performance.now()}function te(){return{relative:Ce(),timeStamp:G()}}function Cs(){return{relative:0,timeStamp:Eo()}}function ee(e,t){return t-e}function Cr(e,t){return e+t}function So(e){return e-Eo()}function JD(e){return Math.round(Cr(Eo(),e))}function eS(e){return e<$D}var Cf;function Eo(){return Cf===void 0&&(Cf=performance.timing.navigationStart),Cf}var dt=1024,kf=1024*dt,ZD=/[^\u0000-\u007F]/;function si(e){return ZD.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function tS(e){for(var t=e.reduce(function(s,u){return s+u.length},0),r=new Uint8Array(t),n=0,i=0,o=e;i<o.length;i++){var a=o[i];r.set(a,n),n+=a.length}return r}function _e(e,t){return e.indexOf(t)!==-1}function ui(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach(function(n){return t.push(n)});else for(var r=0;r<e.length;r++)t.push(e[r]);return t}function Be(e,t){for(var r=0;r<e.length;r+=1){var n=e[r];if(t(n,r))return n}}function rS(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(t(n,r,e))return n}}function nS(e,t){Array.prototype.forEach.call(e,t)}function un(e){return Object.keys(e).map(function(t){return e[t]})}function ci(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function Vt(e,t){return e.slice(0,t.length)===t}function iS(e,t){return e.slice(-t.length)===t}function A(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}),e}function lr(e){return A({},e)}function cn(e,t){return Object.keys(e).some(function(r){return e[r]===t})}function pt(e){return Object.keys(e).length===0}function oS(e,t){for(var r={},n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r[o]=t(e[o])}return r}
3function vt(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}function mt(e,t){var r=vt(),n;return r.Zone&&typeof r.Zone.__symbol__=="function"&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}var QD=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Rf,aS=!1;function sS(e){Rf=e}function Pf(e){aS=e}function P(e){return function(){return ht(e,this,arguments)}}function ht(e,t,r){try{return e.apply(t,r)}catch(n){if(As(n),Rf)try{Rf(n)}catch(i){As(i)}}}function As(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];aS&&L.error.apply(L,QD(["[MONITOR]"],e,!1))}function X(e,t){return mt(vt(),"setTimeout")(P(e),t)}function xe(e){mt(vt(),"clearTimeout")(e)}function gt(e,t){return mt(vt(),"setInterval")(P(e),t)}function zt(e){mt(vt(),"clearInterval")(e)}var M=function(){function e(t){this.onFirstSubscribe=t,this.observers=[]}return e.prototype.subscribe=function(t){var r=this;return this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){r.observers=r.observers.filter(function(n){return t!==n}),!r.observers.length&&r.onLastUnsubscribe&&r.onLastUnsubscribe()}}},e.prototype.notify=function(t){this.observers.forEach(function(r){return r(t)})},e}();function ks(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new M(function(r){var n=e.map(function(i){return i.subscribe(function(o){return r.notify(o)})});return function(){return n.forEach(function(i){return i.unsubscribe()})}})}function Ae(e,t,r){var n=r&&r.leading!==void 0?r.leading:!0,i=r&&r.trailing!==void 0?r.trailing:!0,o=!1,a,s;return{throttled:function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];if(o){a=u;return}n?e.apply(void 0,u):a=u,o=!0,s=X(function(){i&&a&&e.apply(void 0,a),o=!1,a=void 0},t)},cancel:function(){xe(s),o=!1,a=void 0}}}function q(){}function J(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,J)}var Rs=/([\w-]+)\s*=\s*([^;]+)/g;function Ar(e,t){for(Rs.lastIndex=0;;){var r=Rs.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function uS(e){var t=new Map;for(Rs.lastIndex=0;;){var r=Rs.exec(e);if(r)t.set(r[1],r[2]);else break}return t}function Ps(e,t,r){r===void 0&&(r="");var n=e.charCodeAt(t-1),i=n>=55296&&n<=56319,o=i?t+1:t;return e.length<=o?e:"".concat(e.slice(0,o)).concat(r)}function cS(){return Nf()===0}function lS(){return Nf()===1}function fS(){return Nf()===2}var Ns;function Nf(){return Ns!=null?Ns:Ns=e2()}function e2(e){var t;e===void 0&&(e=window);var r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?1:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:e.document.documentMode?0:3}function ln(e,t,r,n){var i=new Date;i.setTime(i.getTime()+r);var o="expires=".concat(i.toUTCString()),a=n&&n.crossSite?"none":"strict",s=n&&n.domain?";domain=".concat(n.domain):"",u=n&&n.secure?";secure":"",c=n&&n.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u).concat(c)}function xo(e){return Ar(document.cookie,e)}var Mf;function yt(e){return Mf||(Mf=uS(document.cookie)),Mf.get(e)}function Df(e,t){ln(e,"",0,t)}function qf(e){if(document.cookie===void 0||document.cookie===null)return!1;try{var t="dd_cookie_test_".concat(J()),r="test";ln(t,r,ne,e);var n=xo(t)===r;return Df(t,e),n}catch(i){return L.error(i),!1}}var Lf;function dS(){if(Lf===void 0){for(var e="dd_site_test_".concat(J()),t="test",r=window.location.hostname.split("."),n=r.pop();r.length&&!xo(e);)n="".concat(r.pop(),".").concat(n),ln(e,t,Q,{domain:n});Df(e,{domain:n}),Lf=n}return Lf}var fr="_dd_s";var Ve=4*Af,Ms=15*ne;var pS=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Ff="&",t2="1";function Ht(){return{isExpired:t2}}function wo(e){return pt(e)}function Ls(e){return!wo(e)}function li(e){return e.isExpired!==void 0||!r2(e)}
3function r2(e){return(e.created===void 0||Ye()-Number(e.created)<Ve)&&(e.expire===void 0||Ye()<Number(e.expire))}function Ds(e){e.expire=String(Ye()+Ms)}function To(e){return ci(e).map(function(t){var r=t[0],n=t[1];return"".concat(r,"=").concat(n)}).join(Ff)}function qs(e){var t={};return n2(e)&&e.split(Ff).forEach(function(r){var n=pS.exec(r);if(n!==null){var i=n[1],o=n[2];t[i]=o}}),t}function n2(e){return!!e&&(e.indexOf(Ff)!==-1||pS.test(e))}var i2="_dd",o2="_dd_r",a2="_dd_l",s2="rum",u2="logs";function vS(e){var t=yt(fr);if(!t){var r=yt(i2),n=yt(o2),i=yt(a2),o={};r&&(o.id=r),i&&/^[01]$/.test(i)&&(o[u2]=i),n&&/^[012]$/.test(n)&&(o[s2]=n),Ls(o)&&(Ds(o),e.persistSession(o))}}function mS(e){var t=d2(e);return qf(t)?{type:"Cookie",cookieOptions:t}:void 0}function hS(e){var t={isLockEnabled:lS(),persistSession:c2(e),retrieveSession:f2,expireSession:function(){return l2(e)}};return vS(t),t}function c2(e){return function(t){ln(fr,To(t),Ms,e)}}function l2(e){ln(fr,To(Ht()),Ve,e)}function f2(){var e=xo(fr);return qs(e)}function d2(e){var t={};return t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=dS()),t}var p2="_dd_test_";function gS(){try{var e=J(),t="".concat(p2).concat(e);localStorage.setItem(t,e);var r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:"LocalStorage"}:void 0}catch(n){return}}function yS(){return{isLockEnabled:!1,persistSession:_S,retrieveSession:v2,expireSession:m2}}function _S(e){localStorage.setItem(fr,To(e))}function v2(){var e=localStorage.getItem(fr);return qs(e)}function m2(){_S(Ht())}var h2=10,g2=100,SS=[],Us;function kr(e,t,r){var n;r===void 0&&(r=0);var i=t.isLockEnabled,o=t.persistSession,a=t.expireSession,s=function(d){return o(A({},d,{lock:c}))},u=function(){var d=t.retrieveSession(),p=d.lock;return d.lock&&delete d.lock,{session:d,lock:p}};if(Us||(Us=e),e!==Us){SS.push(e);return}if(i&&r>=g2){bS(t);return}var c,l=u();if(i){if(l.lock){Fs(e,t,r);return}if(c=J(),s(l.session),l=u(),l.lock!==c){Fs(e,t,r);return}}var f=e.process(l.session);if(i&&(l=u(),l.lock!==c)){Fs(e,t,r);return}if(f&&(li(f)?a():(Ds(f),i?s(f):o(f))),i&&!(f&&li(f))){if(l=u(),l.lock!==c){Fs(e,t,r);return}o(l.session),f=l.session}(n=e.after)===null||n===void 0||n.call(e,f||l.session),bS(t)}function Fs(e,t,r){X(function(){kr(e,t,r+1)},h2)}function bS(e){Us=void 0;var t=SS.shift();t&&kr(t,e)}var ES=Q;function xS(e){var t=mS(e);return!t&&e.allowFallbackToLocalStorage&&(t=gS()),t}function wS(e,t,r){var n=new M,i=new M,o=new M,a=e.type==="Cookie"?hS(e.cookieOptions):yS(),s=a.expireSession,u=gt(v,ES),c;h();var l=Ae(function(){kr({process:function(b){if(!wo(b)){var C=m(b);return y(C),C}},after:function(b){Ls(b)&&!_()&&x(b),c=b}},a)},ES),f=l.throttled,d=l.cancel;function p(){kr({process:function(b){return _()?m(b):void 0}},a)}function v(){kr({process:function(b){return li(b)?Ht():void 0},after:m},a)}function m(b){return li(b)&&(b=Ht()),_()&&(S(b)?w():(o.notify({previousState:c,newState:b}),c=b)),b}function h(){kr({process:function(b){if(wo(b))return Ht()},after:function(b){c=b}},a)}function y(b){if(wo(b))return!1;var C=r(b[t]),H=C.trackingType,k=C.isTracked;b[t]=H,delete b.isExpired,k&&!b.id&&(b.id=J(),b.created=String(Ye()))}function _(){return c[t]!==void 0}function S(b){return c.id!==b.id||c[t]!==b[t]}function w(){c=Ht(),i.notify()}function x(b){c=b,n.notify()}function T(b){kr({process:function(C){return A({},C,b)},after:m},a)}return{expandOrRenewSession:f,expandSession:p,getSession:function(){return c},renewObservable:n,expireObservable:i,sessionStateUpdateObservable:o,restartSession:h,expire:function(){d(),s(),m(Ht())},stop:function(){zt(u)},updateSessionState:T}}var Io={GRANTED:"granted",NOT_GRANTED:"not-granted"};function Uf(e){var t=new M;return{tryToInit:function(r){e||(e=r)},update:function(r){e=r,t.notify()},isGranted:function(){return e===Io.GRANTED},observable:t}}function it(e,t,r){if(typeof e!="object"||e===null)return JSON.stringify(e);var n=fn(Object.prototype),i=fn(Array.prototype),o=fn(Object.getPrototypeOf(e)),a=fn(e);try{return JSON.stringify(e,t,r)}catch(s){return"<error: unable to serialize object>"}finally{n(),i(),o(),a()}}function fn(e){var t=e,r=t.toJSON;return r?(delete t.toJSON,function(){t.toJSON=r}):q}function fi(e){return Oo(e,location.href).href}function IS(e){try{return!!Oo(e)}catch(t){return!1}}function OS(e){var t=Oo(e).pathname;return t[0]==="/"?t:"/".concat(t)}function Oo(e,t){var r=y2();if(r)try{return t!==void 0?new r(e,t):new r(e)}catch(a){throw new Error("Failed to construct URL: ".concat(String(a)," ").concat(it({url:e,base:t})))}if(t===void 0&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var n=document,i=n.createElement("a");if(t!==void 0){n=document.implementation.createHTMLDocument("");var o=n.createElement("base");o.href=t,n.head.appendChild(o),n.body.appendChild(i)}return i.href=e,i}var TS=URL,js;function y2(){if(js===void 0)try{var e=new TS("http://test/path");js=e.href==="http://test/path"}catch(t){js=!1}return js?TS:void 0}var Co="datad0g.com",CS="dd0g-gov.com",_t="datadoghq.com",jf="datadoghq.eu",Bf="ddog-gov.com",Bs="pci.browser-intake-datadoghq.com";function di(e,t,r){var n=_2(e,t);return{build:function(i,o){var a=S2(e,t,r,i,o);return n(a)},urlPrefix:n(""),trackType:t}}function _2(e,t){var r="/api/v2/".concat(t),n=e.proxy;if(typeof n=="string"){var i=fi(n);return function(a){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(r,"?").concat(a)))}}if(typeof n=="function")return function(a){return n({path:r,parameters:a})};var o=b2(t,e);return function(a){return"https://".concat(o).concat(r,"?").concat(a)}}function b2(e,t){var r=t.site,n=r===void 0?_t:r,i=t.internalAnalyticsSubdomain;if(e==="logs"&&t.usePciIntake&&n===_t)return Bs;if(i&&n===_t)return"".concat(i,".").concat(_t);if(n===CS)return"http-intake.logs.".concat(n);var o=n.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}function S2(e,t,r,n,i){var o=e.clientToken,a=e.internalAnalyticsSubdomain,s=i.retry,u=i.encoding,c=["sdk_version:".concat("5.28.0"),"api:".concat(n)].concat(r);s&&c.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var l=["ddsource=browser","ddtags=".concat(encodeURIComponent(c.join(","))),"dd-api-key=".concat(o),"dd-evp-origin-version=".concat(encodeURIComponent("5.28.0")),"dd-evp-origin=browser","dd-request-id=".concat(J())];return u&&l.push("dd-evp-encoding=".concat(u)),t==="rum"&&l.push("batch_time=".concat(G())),a&&l.reverse(),l.join("&")}var E2=200;function AS(e){var t=e.env,r=e.service,n=e.version,i=e.datacenter,o=[];return t&&o.push(Vs("env",t)),r&&o.push(Vs("service",r)),n&&o.push(Vs("version",n)),i&&o.push(Vs("datacenter",i)),o}function Vs(e,t){var r=E2-e.length-1;(t.length>r||x2(t))&&L.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(Or," ").concat(on,"/getting_started/tagging/#defining-tags"));var n=t.replace(/,/g,"_");return"".concat(e,":").concat(n)}function x2(e){return w2()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function w2(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}function kS(e){var t=e.site||_t,r=AS(e),n=T2(e,r),i=O2(n,t),o=I2(e,i,r);return A({isIntakeUrl:function(a){return i.some(function(s){return a.indexOf(s)===0})},replica:o,site:t},n)}function T2(e,t){return{logsEndpointBuilder:di(e,"logs",t),rumEndpointBuilder:di(e,"rum",t),sessionReplayEndpointBuilder:di(e,"replay",t)}}function I2(e,t,r){if(e.replica){var n=A({},e,{site:_t,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:di(n,"logs",r),rumEndpointBuilder:di(n,"rum",r)};return t.push.apply(t,un(i).map(function(o){return o.urlPrefix})),A({applicationId:e.replica.applicationId},i)}}function O2(e,t){var r=un(e).map(function(n){return n.urlPrefix});return t===_t&&r.push("https://".concat(Bs,"/")),r}var pr={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},dn={ALL:"all",SAMPLED:"sampled"};function Vf(e,t){return e!=null&&typeof e!="string"?(L.error("".concat(t," must be defined as a string")),!1):!0}function C2(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(L.error("Site should be a valid Datadog site. ".concat(Or," ").concat(on,"/getting_started/site/.")),!1):!0}function dr(e,t){return e!==void 0&&!J0(e)?(L.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1):!0}function zs(e){var t,r,n,i,o;
3if(!e||!e.clientToken){L.error("Client Token is not configured, we will not send any data.");return}if(!(!C2(e.site)||!dr(e.sessionSampleRate,"Session")||!dr(e.telemetrySampleRate,"Telemetry")||!dr(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!dr(e.telemetryUsageSampleRate,"Telemetry Usage")||!Vf(e.version,"Version")||!Vf(e.env,"Env")||!Vf(e.service,"Service"))){if(e.trackingConsent!==void 0&&!cn(Io,e.trackingConsent)){L.error('Tracking Consent should be either "granted" or "not-granted"');return}return A({beforeSend:e.beforeSend&&Os(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:xS(e),sessionSampleRate:(t=e.sessionSampleRate)!==null&&t!==void 0?t:100,telemetrySampleRate:(r=e.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(n=e.telemetryConfigurationSampleRate)!==null&&n!==void 0?n:5,telemetryUsageSampleRate:(i=e.telemetryUsageSampleRate)!==null&&i!==void 0?i:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(o=e.trackingConsent)!==null&&o!==void 0?o:Io.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*dt,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Q,batchMessagesLimit:50,messageBytesLimit:256*dt},kS(e))}}function Hs(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent}}var $e;(function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.REMOTE_CONFIGURATION="remote_configuration",e.UPDATE_VIEW_NAME="update_view_name",e.LONG_ANIMATION_FRAME="long_animation_frame"})($e||($e={}));var zf=new Set;function Hf(e){Array.isArray(e)&&RS(e.filter(function(t){return cn($e,t)}))}function RS(e){e.forEach(function(t){zf.add(t)})}function Pt(e){return zf.has(e)}function Gf(){return zf}var Ao="?";function ze(e){var t=[],r=Kf(e,"stack"),n=String(e);return r&&Vt(r,n)&&(r=r.slice(n.length)),r&&r.split(`
4`).forEach(function(i){var o=R2(i)||N2(i)||L2(i)||F2(i);o&&(!o.func&&o.line&&(o.func=Ao),t.push(o))}),{message:Kf(e,"message"),name:Kf(e,"name"),stack:t}}var PS="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",pi="(?::(\\d+))",A2=new RegExp("^\\s*at (.*?) ?\\(".concat(PS).concat(pi,"?").concat(pi,"?\\)?\\s*$"),"i"),k2=new RegExp("\\((\\S*)".concat(pi).concat(pi,"\\)"));function R2(e){var t=A2.exec(e);if(t){var r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,i=k2.exec(t[2]);return n&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||Ao,line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}}var P2=new RegExp("^\\s*at ?".concat(PS).concat(pi,"?").concat(pi,"??\\s*$"),"i");function N2(e){var t=P2.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:Ao,line:t[2]?+t[2]:void 0,url:t[1]}}var M2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function L2(e){var t=M2.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Ao,line:+t[3],url:t[2]}}var D2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,q2=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function F2(e){var t=D2.exec(e);if(t){var r=t[3]&&t[3].indexOf(" > eval")>-1,n=q2.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||Ao,line:t[4]?+t[4]:void 0,url:t[3]}}}function Kf(e,t){if(!(typeof e!="object"||!e||!(t in e))){var r=e[t];return typeof r=="string"?r:void 0}}function NS(e,t,r,n){var i=[{url:t,column:n,line:r}],o=j2(e),a=o.name,s=o.message;return{name:a,message:s,stack:i}}var U2=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function j2(e){var t,r,n;return{}.toString.call(e)==="[object String]"&&(t=U2.exec(e),r=t[1],n=t[2]),{name:r,message:n}}function pn(){var e=2,t=new Error,r;if(!t.stack)try{throw t}catch(n){}return ht(function(){var n=ze(t);n.stack=n.stack.slice(e),r=Gt(n)}),r}function Gt(e){var t=Wf(e);return e.stack.forEach(function(r){var n=r.func==="?"?"<anonymous>":r.func,i=r.args&&r.args.length>0?"(".concat(r.args.join(", "),")"):"",o=r.line?":".concat(r.line):"",a=r.line&&r.column?":".concat(r.column):"";t+=`
5  at `.concat(n).concat(i," @ ").concat(r.url).concat(o).concat(a)}),t}function Wf(e){return"".concat(e.name||"Error",": ").concat(e.message)}function de(e,t,r,n){var i=n===void 0?{}:n,o=i.computeHandlingStack,a=e[t];if(typeof a!="function")if(t in e&&Vt(t,"on"))a=q;else return{stop:q};var s=!1,u=function(){if(s)return a.apply(this,arguments);var c=ui(arguments),l;ht(r,null,[{target:this,parameters:c,onPostCall:function(d){l=d},handlingStack:o?pn():void 0}]);var f=a.apply(this,c);return l&&ht(l,null,[f]),f};return e[t]=u,{stop:function(){s=!0,e[t]===u&&(e[t]=a)}}}function vn(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n||!n.set||!n.configurable)return{stop:q};var i=q,o=function(s,u){X(function(){o!==i&&r(s,u)},0)},a=function(s){n.set.call(this,s),o(this,s)};
5return Object.defineProperty(e,t,{set:a}),{stop:function(){var s;((s=Object.getOwnPropertyDescriptor(e,t))===null||s===void 0?void 0:s.set)===a&&Object.defineProperty(e,t,n),o=i}}}var B2=220*dt,V2="$",z2=3;function ie(e,t){t===void 0&&(t=B2);var r=fn(Object.prototype),n=fn(Array.prototype),i=[],o=new WeakMap,a=Yf(e,V2,void 0,i,o),s=JSON.stringify(a),u=s?s.length:0;if(u>t){$f(t,"discarded",e);return}for(;i.length>0&&u<t;){var c=i.shift(),l=0;if(Array.isArray(c.source))for(var f=0;f<c.source.length;f++){var d=Yf(c.source[f],c.path,f,i,o);if(d!==void 0?u+=JSON.stringify(d).length:u+=4,u+=l,l=1,u>t){$f(t,"truncated",e);break}c.target[f]=d}else for(var f in c.source)if(Object.prototype.hasOwnProperty.call(c.source,f)){var d=Yf(c.source[f],c.path,f,i,o);if(d!==void 0&&(u+=JSON.stringify(d).length+l+f.length+z2,l=1),u>t){$f(t,"truncated",e);break}c.target[f]=d}}return r(),n(),a}function Yf(e,t,r,n,i){var o=K2(e);if(!o||typeof o!="object")return H2(o);var a=G2(o);if(a!=="[Object]"&&a!=="[Array]"&&a!=="[Error]")return a;var s=e;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var u=r!==void 0?"".concat(t,".").concat(r):t,c=Array.isArray(o)?[]:{};return i.set(s,u),n.push({source:o,target:c,path:u}),c}function H2(e){return typeof e=="bigint"?"[BigInt] ".concat(e.toString()):typeof e=="function"?"[Function] ".concat(e.name||"unknown"):typeof e=="symbol"?"[Symbol] ".concat(e.description||e.toString()):e}function G2(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e),r=t.match(/\[object (.*)\]/);if(r&&r[1])return"[".concat(r[1],"]")}catch(n){}return"[Unserializable]"}function K2(e){var t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch(r){}return e}function $f(e,t,r){L.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),r)}var Gs="No stack, consider using an instance of Error";function ko(e){var t=e.stackTrace,r=e.originalError,n=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,s=e.handling,u=r instanceof Error,c=W2(t,u,o,r),l=Y2(u,t)?Gt(t):Gs,f=u?Jf(r,a):void 0,d=t?t.name:void 0,p=Xf(r);return{startClocks:i,source:a,handling:s,handlingStack:n,originalError:r,type:d,message:c,stack:l,causes:f,fingerprint:p}}function W2(e,t,r,n){return e!=null&&e.message&&(e!=null&&e.name)?e.message:t?"Empty message":"".concat(r," ").concat(it(ie(n)))}function Y2(e,t){return t===void 0?!1:e?!0:t.stack.length>0&&(t.stack.length>1||t.stack[0].url!==void 0)}function Xf(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Jf(e,t){for(var r=e,n=[];(r==null?void 0:r.cause)instanceof Error&&n.length<10;){var i=ze(r.cause);n.push({message:r.cause.message,source:t,type:i==null?void 0:i.name,stack:i&&Gt(i)}),r=r.cause}return n.length?n:void 0}var ot={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function Zf(e){var t=function(i,o){var a=ko({stackTrace:i,originalError:o,startClocks:te(),nonErrorPrefix:"Uncaught",source:ot.SOURCE,handling:"unhandled"});e.notify(a)},r=$2(t).stop,n=X2(t).stop;return{stop:function(){r(),n()}}}function $2(e){return de(window,"onerror",function(t){var r=t.parameters,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u;s instanceof Error?u=ze(s):u=NS(n,i,o,a),e(u,s!=null?s:n)})}function X2(e){return de(window,"onunhandledrejection",function(t){var r=t.parameters[0],n=r.reason||"Empty reason",i=ze(n);e(i,n)})}function Qf(e){var t=A({version:"5.28.0",onReady:function(r){r()}},e);return Object.defineProperty(t,"_setDebug",{get:function(){return Pf},enumerable:!1}),t}function ed(e,t,r){var n=e[t];n&&!n.q&&n.version&&L.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,n&&n.q&&n.q.forEach(function(i){return Os(i,"onReady callback threw an error:")()})}function Ro(e,t){t.silentMultipleInit||L.error("".concat(e," is already initialized."))}function U(e,t,r,n,i){return oe(e,t,[r],n,i)}function oe(e,t,r,n,i){var o=i===void 0?{}:i,a=o.once,s=o.capture,u=o.passive,c=P(function(p){!p.isTrusted&&!p.__ddIsTrusted&&!e.allowUntrustedEvents||(a&&d(),n(p))}),l=u?{capture:s,passive:u}:s,f=mt(t,"addEventListener");r.forEach(function(p){return f.call(t,p,c,l)});function d(){var p=mt(t,"removeEventListener");r.forEach(function(v){return p.call(t,v,c,l)})}return{stop:d}}var mn={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function td(e,t){var r=[];_e(t,mn.cspViolation)&&r.push(Z2(e));var n=t.filter(function(i){return i!==mn.cspViolation});return n.length&&r.push(J2(n)),ks.apply(void 0,r)}function J2(e){return new M(function(t){if(window.ReportingObserver){var r=P(function(i,o){return i.forEac
5h(function(a){return t.notify(Q2(a))})}),n=new window.ReportingObserver(r,{types:e,buffered:!0});return n.observe(),function(){n.disconnect()}}})}function Z2(e){return new M(function(t){var r=U(e,document,"securitypolicyviolation",function(n){t.notify(eq(n))}).stop;return r})}function Q2(e){var t=e.type,r=e.body;return MS({type:r.id,message:"".concat(t,": ").concat(r.message),originalError:e,stack:LS(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}function eq(e){var t="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return MS({type:e.effectiveDirective,message:"".concat(mn.cspViolation,": ").concat(t),originalError:e,csp:{disposition:e.disposition},stack:LS(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(Ps(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function MS(e){return A({startClocks:te(),source:ot.REPORT,handling:"unhandled"},e)}function LS(e,t,r,n,i){return r?Gt({name:e,message:t,stack:[{func:"?",url:r,line:n!=null?n:void 0,column:i!=null?i:void 0}]}):void 0}function hn(e,t){var r=window.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function He(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Ks(e,t,r){if(r===void 0&&(r=tq()),t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var n=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,n)}if(!r.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;o<t.length;++o)i[o]=Ks(i[o],t[o],r);return i}var a=He(e)==="object"?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=Ks(a[s],t[s],r));return a}}function vi(e){return Ks(void 0,e)}function Ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n=0,i=e;n<i.length;n++){var o=i[n];o!=null&&(r=Ks(r,o))}return r}function tq(){if(typeof WeakSet!="undefined"){var e=new WeakSet;return{hasAlreadyBeenSeen:function(r){var n=e.has(r);return n||e.add(r),n}}}var t=[];return{hasAlreadyBeenSeen:function(r){var n=t.indexOf(r)>=0;return n||t.push(r),n}}}function Ws(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function Ys(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}var rq=500;function Po(){var e=[],t=function(i){var o=e.push(i);o>rq&&e.splice(0,1)},r=function(i){Ys(e,i)},n=function(i){e.forEach(function(o){return o(i)}),e.length=0};return{add:t,remove:r,drain:n}}var Rr={log:"log",configuration:"configuration",usage:"usage"};var nq=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],iq=[Bf],DS=Po(),mi=function(e){DS.add(function(){return mi(e)})};function $s(e,t){var r,n,i=new M,o=new Set,a=!_e(iq,t.site)&&kt(t.telemetrySampleRate),s=(r={},r[Rr.log]=a,r[Rr.configuration]=a&&kt(t.telemetryConfigurationSampleRate),r[Rr.usage]=a&&kt(t.telemetryUsageSampleRate),r),u=oq();mi=function(l){var f=it(l);if(s[l.type]&&o.size<t.maxTelemetryEventsPerPage&&!o.has(f)){var d=c(e,l,u);i.notify(d),hn("telemetry",d),o.add(f)}},sS(Pr);function c(l,f,d){return Ne({type:"telemetry",date:G(),service:l,version:"5.28.0",source:"browser",_dd:{format_version:2},telemetry:Ne(f,{runtime_env:d,connectivity:Ws()}),experimental_features:ui(Gf())},n!==void 0?n():{})}return{setContextProvider:function(l){n=l},observable:i,enabled:a}}function oq(){return{is_local_file:window.location.protocol==="file:",is_worker:"WorkerGlobalScope"in self}}function Xs(){DS.drain()}function Js(e){return e.site===Co}function Xe(e,t){As(nn.debug,e,t),mi(A({type:Rr.log,message:e,status:"debug"},t))}function Pr(e,t){mi(A({type:Rr.log,status:"error"},aq(e),t))}function Zs(e){mi({type:Rr.configuration,configuration:e})}function Me(e){mi({type:Rr.usage,usage:e})}function aq(e){if(e instanceof Error){var t=ze(e);return{error:{kind:t.name,stack:Gt(sq(t))},message:t.message}}return{error:{stack:Gs},message:"".concat("Uncaught"," ").concat(it(e))}}function sq(e){return e.stack=e.stack.filter(function(t){return!t.url||nq.some(function(r){return Vt(t.url,r)})}),e}var Qs=1/0,qS=ne;function at(e){var t=e.expireDelay,r=e.maxEntries,n=[],i=gt(function(){return o()},qS);function o(){for(var d=Ce()-t;n.length>0&&n[n.length-1].endTime<d;)n.pop()}function a(d,p){var v={value:d,startTime:p,endTime:Qs,remove:function(){Ys(n,v)},close:function(m){v.endTime=m}};return r&&n.length>=r&&n.pop(),n.unshift(v),v}function s(d,p){d===void 0&&(d=Qs),p===void 0&&(p={returnInactive:!1});for(var v=0,m=n;v<m.length;v++){var h=m[v];
5if(h.startTime<=d){if(p.returnInactive||d<=h.endTime)return h.value;break}}}function u(d){var p=n[0];p&&p.endTime===Qs&&p.close(d)}function c(d,p){d===void 0&&(d=Qs),p===void 0&&(p=0);var v=Cr(d,p);return n.filter(function(m){return m.startTime<=v&&d<=m.endTime}).map(function(m){return m.value})}function l(){n=[]}function f(){zt(i)}return{add:a,find:s,closeActive:u,findAll:c,reset:l,stop:f}}var lq=ne,fq=Ve,hi=[];function rd(e,t,r,n){var i=new M,o=new M,a=wS(e.sessionStoreStrategyType,t,r);hi.push(function(){return a.stop()});var s=at({expireDelay:fq});hi.push(function(){return s.stop()}),a.renewObservable.subscribe(function(){s.add(u(),Ce()),i.notify()}),a.expireObservable.subscribe(function(){o.notify(),s.closeActive(Ce())}),a.expandOrRenewSession(),s.add(u(),Cs().relative),n.observable.subscribe(function(){n.isGranted()?a.expandOrRenewSession():a.expire()}),dq(e,function(){n.isGranted()&&a.expandOrRenewSession()}),pq(e,function(){return a.expandSession()}),vq(e,function(){return a.restartSession()});function u(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay}}return{findSession:function(c,l){return s.find(c,l)},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}function dq(e,t){var r=oe(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0}).stop;hi.push(r)}function pq(e,t){var r=function(){document.visibilityState==="visible"&&t()},n=U(e,document,"visibilitychange",r).stop;hi.push(n);var i=gt(r,lq);hi.push(function(){zt(i)})}function vq(e,t){var r=U(e,window,"resume",t,{capture:!0}).stop;hi.push(r)}function FS(e){return e>=500}function US(e){try{return e.clone()}catch(t){return}}var mq=80*dt,hq=32,jS=3*kf,gq=ne,BS=Q;function nd(e,t,r,n,i){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?zS(e,t,r,{onSuccess:function(){return HS(0,t,r,n,i)},onFailure:function(){t.queuedPayloads.enqueue(e),VS(t,r,n,i)}}):t.queuedPayloads.enqueue(e)}function VS(e,t,r,n){e.transportStatus===2&&X(function(){var i=e.queuedPayloads.first();zS(i,e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=BS,HS(1,e,t,r,n)},onFailure:function(){e.currentBackoffTime=Math.min(gq,e.currentBackoffTime*2),VS(e,t,r,n)}})},e.currentBackoffTime)}function zS(e,t,r,n){var i=n.onSuccess,o=n.onFailure;t.bandwidthMonitor.add(e),r(e,function(a){t.bandwidthMonitor.remove(e),yq(a)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:a.status},o()):(t.transportStatus=0,i())})}function HS(e,t,r,n,i){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(n," events size queued for upload: ").concat(jS/kf,"MiB"),source:ot.AGENT,startClocks:te()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=KS();o.size()>0;)nd(o.dequeue(),t,r,n,i)}function yq(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||FS(e.status))}function GS(){return{transportStatus:0,currentBackoffTime:BS,bandwidthMonitor:_q(),queuedPayloads:KS(),queueFullReported:!1}}function KS(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=jS}}}function _q(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=mq&&this.ongoingRequestCount<hq},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}}}function gi(e,t,r,n){var i=GS(),o=function(a,s){return Eq(e,t,r,a,s)};return{send:function(a){nd(a,i,o,t.trackType,n)},sendOnExit:function(a){bq(e,t,r,a)}}}function bq(e,t,r,n){var i=!!navigator.sendBeacon&&n.bytesCount<r;if(i)try{var o=t.build("beacon",n),a=navigator.sendBeacon(o,n.data);if(a)return}catch(u){Sq(u)}var s=t.build("xhr",n);id(e,s,n.data)}var WS=!1;function Sq(e){WS||(WS=!0,Pr(e))}function Eq(e,t,r,n,i){var o=xq()&&n.bytesCount<r;if(o){var a=t.build("fetch",n);fetch(a,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(P(function(u){return i==null?void 0:i({status:u.status,type:u.type})}),P(function(){var u=t.build("xhr",n);id(e,u,n.data,i)}))}else{var s=t.build("xhr",n);id(e,s,n.data,i)}}function xq(){try{return window.Request&&"keepalive"in new Request
5("http://a")}catch(e){return!1}}function id(e,t,r,n){var i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob&&i.setRequestHeader("Content-Type",r.type),U(e,i,"loadend",function(){n==null||n({status:i.status})},{once:!0}),i.send(r)}function bt(){var e=wq();if(e)return{getCapabilities:function(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,r,n){var i=n?{id:n}:void 0;e.send(JSON.stringify({eventType:t,event:r,view:i}))}}}function yi(e){var t=bt();return!!t&&_e(t.getCapabilities(),e)}function Je(e){var t;e===void 0&&(e=(t=vt().location)===null||t===void 0?void 0:t.hostname);var r=bt();return!!r&&r.getAllowedWebViewHosts().some(function(n){return e===n||iS(e,".".concat(n))})}function wq(){return vt().DatadogEventBridge}var vr={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function od(e){return new M(function(t){var r=oe(e,window,["visibilitychange","freeze"],function(i){i.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:vr.HIDDEN}):i.type==="freeze"&&t.notify({reason:vr.FROZEN})},{capture:!0}).stop,n=U(e,window,"beforeunload",function(){t.notify({reason:vr.UNLOADING})}).stop;return function(){r(),n()}})}function No(e){return _e(un(vr),e)}function $S(e){var t=e.encoder,r=e.request,n=e.flushController,i=e.messageBytesLimit,o={},a=n.flushObservable.subscribe(function(d){return f(d)});function s(d,p,v){n.notifyBeforeAddMessage(p),v!==void 0?(o[v]=d,n.notifyAfterAddMessage()):t.write(t.isEmpty?d:`
6`.concat(d),function(m){n.notifyAfterAddMessage(m-p)})}function u(d){return d!==void 0&&o[d]!==void 0}function c(d){var p=o[d];delete o[d];var v=t.estimateEncodedBytesCount(p);n.notifyAfterRemoveMessage(v)}function l(d,p){var v=it(d),m=t.estimateEncodedBytesCount(v);if(m>=i){L.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(Or," ").concat(Is,"/#technical-limitations"));return}u(p)&&c(p),s(v,m,p)}function f(d){var p=un(o).join(`
7`);o={};var v=No(d.reason),m=v?r.sendOnExit:r.send;if(v&&t.isAsync){var h=t.finishSync();h.outputBytesCount&&m(YS(h));var y=[h.pendingData,p].filter(Boolean).join(`
8`);y&&m({data:y,bytesCount:si(y)})}else p&&t.write(t.isEmpty?p:`
9`.concat(p)),t.finish(function(_){m(YS(_))})}return{flushController:n,add:l,upsert:l,stop:a.unsubscribe}}function YS(e){var t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function ad(e){var t=e.messagesLimit,r=e.bytesLimit,n=e.durationLimit,i=e.pageExitObservable,o=e.sessionExpireObservable,a=i.subscribe(function(m){return f(m.reason)}),s=o.subscribe(function(){return f("session_expire")}),u=new M(function(){return function(){a.unsubscribe(),s.unsubscribe()}}),c=0,l=0;function f(m){if(l!==0){var h=l,y=c;l=0,c=0,v(),u.notify({reason:m,messagesCount:h,bytesCount:y})}}var d;function p(){d===void 0&&(d=X(function(){f("duration_limit")},n))}function v(){xe(d),d=void 0}return{flushObservable:u,get messagesCount(){return l},notifyBeforeAddMessage:function(m){c+m>=r&&f("bytes_limit"),l+=1,c+=m,p()},notifyAfterAddMessage:function(m){m===void 0&&(m=0),c+=m,l>=t?f("messages_limit"):c>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(m){c-=m,l-=1,l===0&&v()}}}function eu(e,t,r,n,i,o,a){a===void 0&&(a=$S);var s=c(e,t),u=r&&c(e,r);function c(l,f){var d=f.endpoint,p=f.encoder;return a({encoder:p,request:gi(l,d,l.batchBytesLimit,n),flushController:ad({messagesLimit:l.batchMessagesLimit,bytesLimit:l.batchBytesLimit,durationLimit:l.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),messageBytesLimit:l.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(l,f){f===void 0&&(f=!0),s.add(l),u&&f&&u.add(r.transformMessage?r.transformMessage(l):l)},upsert:function(l,f){s.upsert(l,f),u&&u.upsert(r.transformMessage?r.transformMessage(l):l,f)},stop:function(){s.stop(),u&&u.stop()}}}function sd(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(r,n){var i=si(r);t+=i,e+=r,n&&n(i)},finish:function(r){r(this.finishSync())},finishSync:function(){var r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:function(r){return r.length}}}var ud=function(){function e(){this.callbacks={}}return e.prototype.notify=function(t,r){var n=this.callbacks[t];
9n&&n.forEach(function(i){return i(r)})},e.prototype.subscribe=function(t,r){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(r),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter(function(i){return r!==i})}}},e}();function tu(e,t,r){var n=0,i=!1;return{isLimitReached:function(){if(n===0&&X(function(){n=0},ne),n+=1,n<=t||i)return i=!1,!1;if(n===t+1){i=!0;try{r({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:ot.AGENT,startClocks:te()})}finally{i=!1}}return!0}}}function gn(e,t,r){if(document.readyState===t||document.readyState==="complete")return r(),{stop:q};var n=t==="complete"?"load":"DOMContentLoaded";return U(e,window,n,r,{once:!0})}var cd,ld=new WeakMap;function fd(e){return cd||(cd=Tq(e)),cd}function Tq(e){return new M(function(t){var r=de(XMLHttpRequest.prototype,"open",Iq).stop,n=de(XMLHttpRequest.prototype,"send",function(o){Oq(o,e,t)},{computeHandlingStack:!0}).stop,i=de(XMLHttpRequest.prototype,"abort",Cq).stop;return function(){r(),n(),i()}})}function Iq(e){var t=e.target,r=e.parameters,n=r[0],i=r[1];ld.set(t,{state:"open",method:String(n).toUpperCase(),url:fi(String(i))})}function Oq(e,t,r){var n=e.target,i=e.handlingStack,o=ld.get(n);if(o){var a=o;a.state="start",a.startClocks=te(),a.isAborted=!1,a.xhr=n,a.handlingStack=i;var s=!1,u=de(n,"onreadystatechange",function(){n.readyState===XMLHttpRequest.DONE&&c()}).stop,c=function(){if(l(),u(),!s){s=!0;var f=o;f.state="complete",f.duration=ee(a.startClocks.timeStamp,G()),f.status=n.status,r.notify(lr(f))}},l=U(t,n,"loadend",c).stop;r.notify(a)}}function Cq(e){var t=e.target,r=ld.get(t);r&&(r.isAborted=!0)}var dd;function Mo(){return dd||(dd=Aq()),dd}function Aq(){return new M(function(e){if(window.fetch){var t=de(window,"fetch",function(r){return kq(r,e)},{computeHandlingStack:!0}).stop;return t}})}function kq(e,t){var r=e.parameters,n=e.onPostCall,i=e.handlingStack,o=r[0],a=r[1],s=a&&a.method;s===void 0&&o instanceof Request&&(s=o.method);var u=s!==void 0?String(s).toUpperCase():"GET",c=o instanceof Request?o.url:fi(String(o)),l=te(),f={state:"start",init:a,input:o,method:u,startClocks:l,url:c,handlingStack:i};t.notify(f),r[0]=f.input,r[1]=f.init,n(function(d){return Rq(t,d,f)})}function Rq(e,t,r){var n=r;function i(o){n.state="resolve",A(n,o),e.notify(n)}t.then(P(function(o){i({response:o,responseType:o.type,status:o.status,isAborted:!1})}),P(function(o){var a,s;i({status:0,isAborted:((s=(a=n.init)===null||a===void 0?void 0:a.signal)===null||s===void 0?void 0:s.aborted)||o instanceof DOMException&&o.code===DOMException.ABORT_ERR,error:o})}))}var pd={};function vd(e){var t=e.map(function(r){return pd[r]||(pd[r]=Pq(r)),pd[r]});return ks.apply(void 0,t)}function Pq(e){return new M(function(t){var r=Bt[e];return Bt[e]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r.apply(console,n);var o=pn();ht(function(){t.notify(Nq(n,e,o))})},function(){Bt[e]=r}})}function Nq(e,t,r){var n=e.map(function(a){return Mq(a)}).join(" "),i;if(t===nn.error){var o=Be(e,function(a){return a instanceof Error});i={stack:o?Gt(ze(o)):void 0,fingerprint:Xf(o),causes:o?Jf(o,"console"):void 0,startClocks:te(),message:n,source:ot.CONSOLE,handling:"handled",handlingStack:r}}return{api:t,message:n,error:i,handlingStack:r}}function Mq(e){return typeof e=="string"?ie(e):e instanceof Error?Wf(ze(e)):it(ie(e),void 0,2)}function _i(e){var t={},r=new M,n={getContext:function(){return vi(t)},setContext:function(i){He(i)==="object"?(t=ie(i),e&&e.updateCustomerData(t)):n.clearContext(),r.notify()},setContextProperty:function(i,o){t[i]=ie(o),e&&e.updateCustomerData(t),r.notify()},removeContextProperty:function(i){delete t[i],e&&e.updateCustomerData(t),r.notify()},clearContext:function(){t={},e&&e.resetCustomerData(),r.notify()},changeObservable:r};return n}var Lq="_dd_c",Dq=[];function ru(e,t,r,n){var i=qq(r,n);Dq.push(U(e,window,"storage",function(u){var c=u.key;i===c&&o()})),t.changeObservable.subscribe(a),t.setContext(Ne(s(),t.getContext()));function o(){t.setContext(s())}function a(){localStorage.setItem(i,JSON.stringify(t.getContext()))}function s(){var u=localStorage.getItem(i);return u!==null?JSON.parse(u):{}}}function qq(e,t){return"".concat(Lq,"_").concat(e,"_").concat(t)}var XS=3*dt,Fq=16*dt,Uq=200;function hd(e){e===void 0&&(e=2);var t=new Map,r=!1;function n(i){if(i===void 0&&(i=0),!(r||e===0)){var o=e===2?XS:Fq,a=i;t.forEach(function(s){a+=s.getBytesCount()}),a>o&&(jq(o),r=!0)}}return{createDetachedTracker:function(){var i=md(function(){return n(i.getBytesCount())});return i},getOrCreateTracker:function(i){return t.has(i)||t.set(i,md(n)),t.get(i)},setCompressionStatus:function(i){e===0&&(e=i,n())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(i){return i.stop()}),t.clear()}}}function md(e){var t=0,r=Ae(function(a){t=si(it(a)),e()},Uq),n=r.throttled,i=r.cancel,o=function(){i(),t=0};return{updateCustomerData:function(a){pt(a)?o():n(a)},resetCustomerData:o,getBytesCount:function(){return t},stop:function(){i()}}}function jq(e){L.warn("Customer data exceeds the recommended ".concat(e/dt,"KiB threshold. ").
9concat(Or," ").concat(Is,"/#customer-data-exceeds-the-recommended-threshold-warning"))}function gd(e,t,r){var n=e.getReader(),i=[],o=0;a();function a(){n.read().then(P(function(u){if(u.done){s();return}r.collectStreamBody&&i.push(u.value),o+=u.value.length,o>r.bytesLimit?s():a()}),P(function(u){return t(u)}))}function s(){n.cancel().catch(q);var u,c;if(r.collectStreamBody){var l;if(i.length===1)l=i[0];else{l=new Uint8Array(o);var f=0;i.forEach(function(d){l.set(d,f),f+=d.length})}u=l.slice(0,r.bytesLimit),c=l.length>r.bytesLimit}t(void 0,u,c)}}var Bq="datadog-synthetics-public-id",Vq="datadog-synthetics-result-id",zq="datadog-synthetics-injects-rum";function Lo(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||yt(zq))}function yd(){var e=window._DATADOG_SYNTHETICS_PUBLIC_ID||yt(Bq);return typeof e=="string"?e:void 0}function _d(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||yt(Vq);return typeof e=="string"?e:void 0}function nu(e){var t=A({},e),r=["id","name","email"];return r.forEach(function(n){n in t&&(t[n]=String(t[n]))}),t}function bd(e){var t=He(e)==="object";return t||L.error("Unsupported user:",e),t}function Do(e){var t=He(e);return t==="string"||t==="function"||e instanceof RegExp}function iu(e,t,r){return r===void 0&&(r=!1),e.some(function(n){try{if(typeof n=="function")return n(t);if(n instanceof RegExp)return n.test(t);if(typeof n=="string")return r?Vt(t,n):n===t}catch(i){L.error(i)}return!1})}function JS(e,t,r){return{context:e.getContext(),user:t.getContext(),hasReplay:r.isRecording()?!0:void 0}}function ZS(){var e=new Map,t=new WeakMap;return{vitalsByName:e,vitalsByReference:t}}function QS(e,t,r){function n(o){return!t.wasInPageStateDuringPeriod("frozen",o.startClocks.relative,o.duration)}function i(o){n(o)&&e.notify(11,Gq(o,!0))}return{addDurationVital:i,startDurationVital:function(o,a){return a===void 0&&(a={}),Sd(r,o,a)},stopDurationVital:function(o,a){a===void 0&&(a={}),Ed(i,r,o,a)}}}function Sd(e,t,r){var n=e.vitalsByName,i=e.vitalsByReference;r===void 0&&(r={});var o={name:t,startClocks:te(),context:r.context,description:r.description},a={__dd_vital_reference:!0};return n.set(t,o),i.set(a,o),a}function Ed(e,t,r,n){var i=t.vitalsByName,o=t.vitalsByReference;n===void 0&&(n={});var a=typeof r=="string"?i.get(r):o.get(r);a&&(e(Hq(a,a.startClocks,n,te())),typeof r=="string"?i.delete(r):o.delete(r))}function Hq(e,t,r,n){var i;return{name:e.name,type:"duration",startClocks:t,duration:ee(t.timeStamp,n.timeStamp),context:Ne(e.context,r.context),description:(i=r.description)!==null&&i!==void 0?i:e.description}}function Gq(e,t){var r={date:e.startClocks.timeStamp,vital:{id:J(),type:e.type,name:e.name,duration:F(e.duration),description:e.description},type:"vital"};return t&&(r._dd={vital:{computed_value:!0}}),{rawRumEvent:r,startTime:e.startClocks.relative,customerContext:e.context,domainContext:{}}}function tE(e){var t=e;return He(t)==="object"&&Do(t.match)&&Array.isArray(t.propagatorTypes)}function Kq(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function rE(e,t){return{clearTracingIfNeeded:Kq,traceFetch:function(r){return eE(e,r,t,function(n){var i;if(r.input instanceof Request&&!(!((i=r.init)===null||i===void 0)&&i.headers))r.input=new Request(r.input),Object.keys(n).forEach(function(a){r.input.headers.append(a,n[a])});else{r.init=lr(r.init);var o=[];r.init.headers instanceof Headers?r.init.headers.forEach(function(a,s){o.push([s,a])}):Array.isArray(r.init.headers)?r.init.headers.forEach(function(a){o.push(a)}):r.init.headers&&Object.keys(r.init.headers).forEach(function(a){o.push([a,r.init.headers[a]])}),r.init.headers=o.concat(ci(n))}})},traceXhr:function(r,n){return eE(e,r,t,function(i){Object.keys(i).forEac
9h(function(o){n.setRequestHeader(o,i[o])})})}}}function eE(e,t,r,n){if(!(!Wq()||!r.findTrackedSession())){var i=Be(e.allowedTracingUrls,function(o){return iu([o.match],t.url,!0)});i&&(t.traceSampled=!Rt(e.traceSampleRate)||kt(e.traceSampleRate),!(!t.traceSampled&&e.traceContextInjection!==dn.ALL)&&(t.traceId=ou(),t.spanId=ou(),n(Yq(t.traceId,t.spanId,t.traceSampled,i.propagatorTypes))))}}function Wq(){return nE()!==void 0}function nE(){return window.crypto||window.msCrypto}function Yq(e,t,r,n){var i={};return n.forEach(function(o){switch(o){case"datadog":{A(i,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toDecimalString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toDecimalString()});break}case"tracecontext":{A(i,{traceparent:"00-0000000000000000".concat(e.toPaddedHexadecimalString(),"-").concat(t.toPaddedHexadecimalString(),"-0").concat(r?"1":"0")});break}case"b3":{A(i,{b3:"".concat(e.toPaddedHexadecimalString(),"-").concat(t.toPaddedHexadecimalString(),"-").concat(r?"1":"0")});break}case"b3multi":{A(i,{"X-B3-TraceId":e.toPaddedHexadecimalString(),"X-B3-SpanId":t.toPaddedHexadecimalString(),"X-B3-Sampled":r?"1":"0"});break}}}),i}function ou(){var e=new Uint8Array(8);nE().getRandomValues(e),e[0]=e[0]&127;function t(o){return e[o]*16777216+(e[o+1]<<16)+(e[o+2]<<8)+e[o+3]}function r(o){var a=t(0),s=t(4),u="";do{var c=a%o*4294967296+s;a=Math.floor(a/o),s=Math.floor(c/o),u=(c%o).toString(o)+u}while(a||s);return u}function n(){return r(10)}function i(){var o=r(16);return Array(17-o.length).join("0")+o}return{toDecimalString:n,toPaddedHexadecimalString:i}}var iE=["tracecontext","datadog"];function oE(e){var t,r;if(!e.applicationId){L.error("Application ID is not configured, no RUM data will be collected.");return}if(!(!dr(e.sessionReplaySampleRate,"Session Replay")||!dr(e.traceSampleRate,"Trace"))){if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){L.error("Excluded Activity Urls should be an array");return}var n=$q(e);if(n){var i=zs(e);if(i)return A({applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:(t=e.sessionReplaySampleRate)!==null&&t!==void 0?t:0,startSessionReplayRecordingManually:!!e.startSessionReplayRecordingManually,traceSampleRate:e.traceSampleRate,allowedTracingUrls:n,excludedActivityUrls:(r=e.excludedActivityUrls)!==null&&r!==void 0?r:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!e.trackUserInteractions,trackViewsManually:!!e.trackViewsManually,trackResources:!!e.trackResources,trackLongTasks:!!e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:cn(pr,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:pr.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:cn(dn,e.traceContextInjection)?e.traceContextInjection:dn.ALL,plugins:e.betaPlugins||[]},i)}}}function $q(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){L.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){L.error("Service needs to be configured when tracing is enabled");return}var t=[];return e.allowedTracingUrls.forEach(function(r){Do(r)?t.push({match:r,propagatorTypes:iE}):tE(r)?t.push(r):L.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)}),t}function Xq(e){var t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach(function(r){Do(r)?iE.forEach(function(n){return t.add(n)}):He(r)==="object"&&Array.isArray(r.propagatorTypes)&&r.propagatorTypes.forEach(function(n){return t.add(n)})}),ui(t)}function aE(e){var t,r=Hs(e);return A({session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:Xq(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyF
9orActionName,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:(t=e.betaPlugins)===null||t===void 0?void 0:t.map(function(n){var i;return A({name:n.name},(i=n.getConfigurationTelemetry)===null||i===void 0?void 0:i.call(n))})},r)}var Jq="https://d3uc069fcn7uxw.cloudfront.net/configuration";function uE(e,t){Qq(e,function(r){t(Zq(e,r))})}function Zq(e,t){return A({},e,t)}function Qq(e,t){var r=new XMLHttpRequest;U(e,r,"load",function(){r.status===200?t(JSON.parse(r.responseText)):sE()}),U(e,r,"error",function(){sE()}),r.open("GET","".concat(Jq,"/").concat(encodeURIComponent(e.remoteConfigurationId),".json")),r.send()}function sE(){L.error("Error fetching the remote configuration.")}function cE(e,t,r){if(e)for(var n=0,i=e;n<i.length;n++){var o=i[n],a=o[t];a&&a(r)}}function lE(e,t,r,n,i){var o=e.ignoreInitIfSyntheticsWillInjectRum,a=e.startDeflateWorker,s=Po(),u,c,l,f,d=r.observable.subscribe(p);function p(){if(!(!l||!f||!r.isGranted())){d.unsubscribe();var h;if(f.trackViewsManually){if(!u)return;s.remove(u.callback),h=u.options}var y=i(f,c,h);s.drain(y)}}function v(h){var y=Je();if(y&&(h=eF(h)),l=h,Zs(aE(h)),f){Ro("DD_RUM",h);return}var _=oE(h);if(_){if(!y&&!_.sessionStoreStrategyType){L.warn("No storage available for session. We will not send any data.");return}_.compressIntakeRequests&&!y&&a&&(c=a(_,"Datadog RUM",q),!c)||(f=_,Mo().subscribe(q),r.tryToInit(_.trackingConsent),p())}}var m=function(h){s.add(function(y){return y.addDurationVital(h)})};return{init:function(h,y){if(!h){L.error("Missing configuration");return}Hf(h.enableExperimentalFeatures),l=h,!(o&&Lo())&&(cE(h.betaPlugins,"onInit",{initConfiguration:h,publicApi:y}),h.remoteConfigurationId&&Pt($e.REMOTE_CONFIGURATION)?uE(h,v):v(h))},get initConfiguration(){return l},getInternalContext:q,stopSession:q,addTiming:function(h,y){y===void 0&&(y=G()),s.add(function(_){return _.addTiming(h,y)})},startView:function(h,y){y===void 0&&(y=te());var _=function(S){S.startView(h,y)};s.add(_),u||(u={options:h,callback:_},p())},updateViewName:function(h){s.add(function(y){return y.updateViewName(h)})}
9,setViewContext:function(h){s.add(function(y){return y.setViewContext(h)})},setViewContextProperty:function(h,y){s.add(function(_){return _.setViewContextProperty(h,y)})},addAction:function(h,y){y===void 0&&(y=t()),s.add(function(_){return _.addAction(h,y)})},addError:function(h,y){y===void 0&&(y=t()),s.add(function(_){return _.addError(h,y)})},addFeatureFlagEvaluation:function(h,y){s.add(function(_){return _.addFeatureFlagEvaluation(h,y)})},startDurationVital:function(h,y){return Sd(n,h,y)},stopDurationVital:function(h,y){Ed(m,n,h,y)},addDurationVital:m}}function eF(e){var t,r;return A({},e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(r=bt())===null||r===void 0?void 0:r.getPrivacyLevel()})}var fE="rum";function xd(e,t,r){r===void 0&&(r={});var n=hd(0),i=_i(n.getOrCreateTracker(2)),o=_i(n.getOrCreateTracker(1)),a=Uf(),s=ZS();function u(){return JS(i,o,t)}var c=lE(r,u,a,s,function(d,p,v){d.storeContextsAcrossPages&&(ru(d,i,fE,2),ru(d,o,fE,1)),n.setCompressionStatus(p?1:2);var m=e(d,t,n,u,v,p&&r.createDeflateEncoder?function(h){return r.createDeflateEncoder(d,p,h)}:sd,a,s);return t.onRumStart(m.lifeCycle,d,m.session,m.viewHistory,p),c=tF(c,m),m}),l=P(function(d){var p=typeof d=="object"?d:{name:d};p.context&&n.getOrCreateTracker(3).updateCustomerData(p.context),c.startView(p),Me({feature:"start-view"})}),f=Qf({init:P(function(d){c.init(d,f),Pt($e.UPDATE_VIEW_NAME)&&(f.updateViewName=P(function(p){c.updateViewName(p)}))}),setTrackingConsent:P(function(d){a.update(d),Me({feature:"set-tracking-consent",tracking_consent:d})}),setViewContext:P(function(d){c.setViewContext(d)}),setViewContextProperty:P(function(d,p){c.setViewContextProperty(d,p)}),setGlobalContext:P(function(d){i.setContext(d),Me({feature:"set-global-context"})}),getGlobalContext:P(function(){return i.getContext()}),setGlobalContextProperty:P(function(d,p){i.setContextProperty(d,p),Me({feature:"set-global-context"})}),removeGlobalContextProperty:P(function(d){return i.removeContextProperty(d)}),clearGlobalContext:P(function(){return i.clearContext()}),getInternalContext:P(function(d){return c.getInternalContext(d)}),getInitConfiguration:P(function(){return vi(c.initConfiguration)}),addAction:function(d,p){var v=pn();ht(function(){c.addAction({name:ie(d),context:ie(p),startClocks:te(),type:"custom",handlingStack:v}),Me({feature:"add-action"})})},addError:function(d,p){var v=pn();ht(function(){c.addError({error:d,handlingStack:v,context:ie(p),startClocks:te()}),Me({feature:"add-error"})})},addTiming:P(function(d,p){c.addTiming(ie(d),p)}),setUser:P(function(d){bd(d)&&o.setContext(nu(d)),Me({feature:"set-user"})}),getUser:P(function(){return o.getContext()}),setUserProperty:P(function(d,p){var v,m=nu((v={},v[d]=p,v))[d];o.setContextProperty(d,m),Me({feature:"set-user"})}),removeUserProperty:P(function(d){return o.removeContextProperty(d)}),clearUser:P(function(){return o.clearContext()}),startView:l,stopSession:P(function(){c.stopSession(),Me({feature:"stop-session"})}),addFeatureFlagEvaluation:P(function(d,p){c.addFeatureFlagEvaluation(ie(d),ie(p)),Me({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:P(function(){return t.getSessionReplayLink()}),startSessionReplayRecording:P(function(d){t.start(d),Me({feature:"start-session-replay-recording",force:d&&d.force})}),stopSessionReplayRecording:P(function(){return t.stop()}),addDurationVital:P(function(d,p){Me({feature:"add-duration-vital"}),c.addDurationVital({name:ie(d),type:"duration",startClocks:Z0(p.startTime),duration:p.duration,context:ie(p&&p.context),description:ie(p&&p.description)})}),startDurationVital:P(function(d,p){return Me({feature:"start-duration-vital"}),c.startDurationVital(ie(d),{context:ie(p&&p.context),description:ie(p&&p.description)})}),stopDurationVital:P(function(d,p){Me({feature:"stop-duration-vital"}),c.stopDurationVital(typeof d=="string"?ie(d):d,{context:ie(p&&p.context),description:ie(p&&p.description)})})});return f}function tF(e,t){return A({init:function(r){Ro("DD_RUM",r)},initConfiguration:e.initConfiguration},t)}function dE(){var e=au();return new M(function(t){if(e){var r=new e(P(function(){return t.notify()}));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return r.disconnect()}}})}function au(){var e,t=window;if(t.Zone&&(e=mt(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){var r=new t.MutationObserver(q),n=mt(r,"originalInstance");e=n&&n.constructor}return e||(e=t.MutationObserver),e}function pE(){var e=yd(),t=_d();if(e&&t)return{test_id:e,result_id:t,injected:Lo()}}function mE(e,t,r){var n=vi(e),i=r(n);return ci(t).forEach(function(o){var a=o[0],s=o[1],u=rF(n,a),c=He(u);c===s?vE(e,a,ie(u)):s==="object"&&(c==="undefined"||c==="null")&&vE(e,a,{})}),i}function rF(e,t){for(var r=e,n=0,i=t.split(".");n<i.length;n++){var o=i[n];if(!nF(r,o))return;r=r[o]}return r}function vE(e,t,r){for(var n=e,i=t.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!hE(n))return;o!==i.length-1?n=n[a]:n[a]=r}}function hE(e){return He(e)==="object"}function nF(e,t){return hE(e)&&Object.prototype.hasOwnProperty.call(e,t)}var bi={"view.name":"string","view.url":"string","view.referrer":"string"},Si={context:"object"},wd={service:"string",version:"string"},gE;function yE(e,t,r,n,i,o,a,s,u,c){var l,f;gE=(l={},l.view=A({},Si,bi),l.error=A({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},Si,bi,wd),l.resource=A({"resource.url":"string"},Pt($e.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},Si,bi,wd),l.action=A({"action.target.name":"string"},Si,bi,wd),l.long_task=A({},Si,bi),l.vital=A({},Si,bi),l);var d=(f={},f.error=tu("error",e.eventRateLimiterThreshold,c),f.action=tu("action",e.eventRateLimiterThreshold,c),f.vital=tu("vital",e.eventRateLimiterThreshold,c),f),p=pE();t.subscribe(11,function(v){var m=v.startTime,h=v.rawRumEvent,y=v.domainContext,_=v.savedCommonContext,S=v.customerContext,w=n.findView(m),x=i.findUrl(m),T=r.findTrackedSession(m);if(T&&w&&x){var b=_||u(),C=o.findActionId(m),H={_dd:{format_version:2,drift:Q0(),configuration:{session_sample_rate:an(e.sessionSampleRate,3),session_replay_sample_rate:an(e.sessionReplaySampleRate,3)},browser_sdk_version:Je()?"5.28.0":void 0},application:{id:e.applicationId},date:G(),service:w.service||e.service,version:w.version||e.version,source:"browser",session:{id:T.id,type:p?"synthetics":s.get()?"ci_test":"user"},view:{id:w.id,name:w.name,url:x.url,referrer:x.referrer},action:oF(h)&&C?{id:C}:void 0,synthetics:p,ci_test:s.get(),display:a.get(),connectivity:Ws()},k=Ne(H,h);k.context=Ne(b.context,w.context,S),"has_replay"in k.session||(k.session.has_replay=b.hasReplay),k.type==="view"&&(k.session.sampled_for_replay=T.sessionReplay===1),pt(b.user)||(k.usr=b.user),iF(k,e.beforeSend,y,d)&&(pt(k.context)&&delete k.context,t.notify(12,k))}})}function iF(e,t,r,n){var i;if(t){var o=mE(e,gE[e.type],function(s){return t(s,r)});if(o===!1&&e.type!=="view")return!1;o===!1&&L.warn("Can't dismiss view events using beforeSend!")}var a=(i=n[e.type])===null||i===void 0?void 0:i.isLimitReached();return!a}function oF(e){return["error","resource","long_task"].indexOf(e.type)!==-1}function _E(e,t,r,n,i){return{get:function(o){var a=r.findView(o),s=i.findUrl(o),u=t.findTrackedSession(o);if(u&&a&&s){var c=n.findActionId(o);return{application_id:e,session_id:u.id,user_action:c?{id:c}:void 0,view:{id:a.id,name:a.name,referrer:s.referrer,url:s.url}}}}}}var Td=ud;var aF=Ve;function Id(e){var t=at({expireDelay:aF});e.subscribe(1,function(n){t.add(r(n),n.startClocks.relative)}),e.subscribe(5,function(n){var i=n.endClocks;t.closeActive(i.relative)}),e.subscribe(3,function(n){var i=t.find(n.startClocks.relative);i&&n.name&&(i.name=n.name),i&&n.context&&(i.context=n.context)}),e.subscribe(9,function(){t.reset()});function r(n){return{service:n.service,version:n.version,context:n.context,id:n.id,name:n.name,startClocks:n.startClocks}}return{findView:function(n){return t.find(n)},stop:function(){t.stop()}}}var Cd="initial_document",sF=[["document",function(e){return Cd===e}],["xhr",function(e){return e==="xmlhttprequest"}],["fetch",function(e){return e==="fetch"}],["beacon",function(e){return e==="beacon"}],["css",function(e,t){return/\.css$/i.test(t)}],["js",function(e,t){return/\.js$/i.test(t)}],["image",function(e,t){return _e(["image","img","icon"],e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null}],["font",function(e,t){return/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null}],["media",function(e,t){return _e(["audio","video"],e)||/\.(mp3|mp4)$/i.exec(t)!==null}]];function SE(e){var t=e.name;if(!IS(t))return Xe('Failed to construct URL for "'.concat(e.name,'"')),"other";for(var r=OS(t),n=0,i=sF;n<i.length;n++){var o=i[n],a=o[0],s=o[1];if(s(e.initiatorType,r))return a}return"other"}function bE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=1;r<e.length;r+=1)if(e[r-1]>e[r])return!1;return!0}function EE(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function xE(e){var t=e.duration,r=e.startTime,n=e.responseEnd;return t===0&&r<n?F(ee(r,n)):F(t)}function wE(e){if(Ad(e)){var t=e.startTime,r=e.fetchStart,n=e.redirectStart,i=e.redirectEnd,o=e.domainLookupStart,a=e.domainLookupEnd,s=e.connectStart,u=e.secureConnectionStart,c=e.connectEnd,l=e.requestStart,f=e.responseStart,d=e.responseEnd,p={download:Ei(t,f,d),first_byte:Ei(t,l,f)};return r<c&&(p.connect=Ei(t,s,c),s<=u&&u<=c&&(p.ssl=Ei(t,u,c))),r<a&&(p.dns=Ei(t,o,a)),t<i&&(p.redirect=Ei(t,n,i)),p}}function su(e){return e.duration>=0}function Ad(e){var t=bE(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),r=uF(e)?bE(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&r}function uF(e){return e.redirectEnd>e.startTime}function Ei(e,t,r){if(e<=t&&t<=r)return{duration:F(ee(t,r)),start:F(ee(e,t))}}function TE(e){if(e.startTime<e.responseStart){var t=e.encodedBodySize,r=e.decodedBodySize,n=e.transferSize;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function qo(e,t){return t&&!e.isIntakeUrl(t)}var cF=/data:(.+)?(;base64)?,/g,Od=24e3;function Fo(e){return e.length<=Od?!1:e.substring(0,5)==="data:"?(e=e.substring(0,Od),!0):!1}
9function Uo(e){return"".concat(e.match(cF)[0],"[...]")}var IE=1;function OE(e,t,r){var n=rE(t,r);lF(e,t,n),fF(e,t,n)}function lF(e,t,r){var n=fd(t).subscribe(function(i){var o=i;if(qo(t,o.url))switch(o.state){case"start":r.traceXhr(o,o.xhr),o.requestIndex=CE(),e.notify(6,{requestIndex:o.requestIndex,url:o.url});break;case"complete":r.clearTracingIfNeeded(o),e.notify(7,{duration:o.duration,method:o.method,requestIndex:o.requestIndex,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:"xhr",url:o.url,xhr:o.xhr,isAborted:o.isAborted,handlingStack:o.handlingStack});break}});return{stop:function(){return n.unsubscribe()}}}function fF(e,t,r){var n=Mo().subscribe(function(i){var o=i;if(qo(t,o.url))switch(o.state){case"start":r.traceFetch(o),o.requestIndex=CE(),e.notify(6,{requestIndex:o.requestIndex,url:o.url});break;case"resolve":dF(o,function(a){r.clearTracingIfNeeded(o),e.notify(7,{duration:a,method:o.method,requestIndex:o.requestIndex,responseType:o.responseType,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:"fetch",url:o.url,response:o.response,init:o.init,input:o.input,isAborted:o.isAborted,handlingStack:o.handlingStack})});break}});return{stop:function(){return n.unsubscribe()}}}function CE(){var e=IE;return IE+=1,e}function dF(e,t){var r=e.response&&US(e.response);!r||!r.body?t(ee(e.startClocks.timeStamp,G())):gd(r.body,function(){t(ee(e.startClocks.timeStamp,G()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1})}function uu(e){return Rt(e)&&e<0?void 0:e}function cu(e){var t=e.lifeCycle,r=e.isChildEvent,n=e.onChange,i=n===void 0?q:n,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=t.subscribe(12,function(s){var u;if(!(s.type==="view"||s.type==="vital"||!r(s)))switch(s.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,s.action.frustration&&(o.frustrationCount+=s.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":!((u=s._dd)===null||u===void 0)&&u.discarded||(o.resourceCount+=1,i());break}});return{stop:function(){a.unsubscribe()},eventCounts:o}}function AE(e,t){var r=Ye(),n=!1,i=oe(e,window,["click","mousedown","keydown","touchstart","pointerdown"],function(s){if(s.cancelable){var u={entryType:"first-input",processingStart:Ce(),processingEnd:Ce(),startTime:s.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};s.type==="pointerdown"?o(e,u):a(u)}},{passive:!0,capture:!0}).stop;return{stop:i};function o(s,u){oe(s,window,["pointerup","pointercancel"],function(c){c.type==="pointerup"&&a(u)},{once:!0})}function a(s){if(!n){n=!0,i();var u=s.processingStart-s.startTime;u>=0&&u<Ye()-r&&t(s)}}}var z;(function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource"})(z||(z={}));function we(e,t){return new M(function(r){if(window.PerformanceObserver){var n=function(c){var l=mF(e,c);l.length>0&&r.notify(l)},i,o=!0,a=new PerformanceObserver(P(function(c){o?i=X(function(){return n(c.getEntries())}):n(c.getEntries())}));try{a.observe(t)}catch(c){var s=[z.RESOURCE,z.NAVIGATION,z.LONG_TASK,z.PAINT];if(_e(s,t.type)){t.buffered&&(i=X(function(){return n(performance.getEntriesByType(t.type))}));try{a.observe({entryTypes:[t.type]})}catch(l){return}}}o=!1,pF(e);var u;return!yn(z.FIRST_INPUT)&&t.type===z.FIRST_INPUT&&(u=AE(e,function(c){n([c])}).stop),function(){a.disconnect(),u&&u(),xe(i)}}})}var jo;function pF(e){return!jo&&vF()&&"addEventListener"in performance&&(jo=U(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){jo==null||jo.stop()}}function vF(){return window.performance!==void 0&&"getEntries"in performance}function yn(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function mF(e,t){return t.filter(function(r){return!hF(e,r)})}function hF(e,t){return t.entryType===z.RESOURCE&&(!qo(e,t.name)||!su(t))}var Rd=100,gF=100;function Bo(e,t,r,n,i){var o=_F(e,t,r);return yF(o,n,i)}function yF(e,t,r){var n,i=!1,o=X(P(function(){return c({hadActivity:!1})}),Rd),a=r!==void 0?X(P(function(){return c({hadActivity:!0,end:G()})}),r):void 0,s=e.subscribe(function(l){var f=l.isBusy;xe(o),xe(n);var d=G();f||(n=X(P(function(){return c({hadActivity:!0,end:d})}),gF))}),u=function(){i=!0,xe(o),xe(n),xe(a),s.unsubscribe()};function c(l){i||(u(),t(l))}return{stop:u}}function _F(e,t,r){return new M(function(n){var i=[],o,a=0;i.push(t.subscribe(u),we(r,{type:z.RESOURCE}).subscribe(function(c){c.some(function(l){return!kd(r,l.name)})&&u()}),e.subscribe(6,function(c){kd(r,c.url)||(o===void 0&&(o=c.requestIndex),a+=1,u())}),e.subscribe(7,function(c){kd(r,c.url)||o===void 0||c.requestIndex<o||(a-=1,u())}));var s=bF(u).stop;
9return function(){s(),i.forEach(function(c){return c.unsubscribe()})};function u(){n.notify({isBusy:a>0})}})}function kd(e,t){return iu(e.excludedActivityUrls,t)}function bF(e){return de(window,"open",e)}function Kt(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,r){return r?t==="\0"?"\uFFFD":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function mr(e,t){return e.matches?e.matches(t):e.msMatchesSelector?e.msMatchesSelector(t):!1}function _n(e){if(e.parentElement)return e.parentElement;for(;e.parentNode;){if(e.parentNode.nodeType===Node.ELEMENT_NODE)return e.parentNode;e=e.parentNode}return null}function RE(e){if(e.classList)return e.classList;var t=(e.getAttribute("class")||"").trim();return t?t.split(/\s+/):[]}var kE=1,PE=function(){function e(t){var r=this;this.map=new WeakMap,t&&t.forEach(function(n){return r.map.set(n,kE)})}return e.prototype.add=function(t){return this.map.set(t,kE),this},e.prototype.delete=function(t){return this.map.delete(t)},e.prototype.has=function(t){return this.map.has(t)},e}();function lu(e){return e.nodeType===Node.TEXT_NODE}function NE(e){return e.nodeType===Node.COMMENT_NODE}function Wt(e){return e.nodeType===Node.ELEMENT_NODE}function xi(e){return Wt(e)&&!!e.shadowRoot}function Vo(e){var t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Wt(t.host)}function ME(e){return e.childNodes.length>0||xi(e)}function fu(e,t){for(var r=e.firstChild;r;)t(r),r=r.nextSibling;xi(e)&&t(e.shadowRoot)}function bn(e){return Vo(e)?e.host:e.parentNode}var N={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:pr.ALLOW,MASK:pr.MASK,MASK_USER_INPUT:pr.MASK_USER_INPUT},zo="data-dd-privacy";var DE="hidden",SF="dd-privacy-",Yt="***",Pd="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",EF={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},xF="x";function qe(e,t,r){if(r&&r.has(e))return r.get(e);var n=bn(e),i=n?qe(n,t,r):t,o=Md(e),a=Nd(o,i);return r&&r.set(e,a),a}function Nd(e,t){switch(t){case N.HIDDEN:case N.IGNORE:return t}switch(e){case N.ALLOW:case N.MASK:case N.MASK_USER_INPUT:case N.HIDDEN:case N.IGNORE:return e;default:return t}}function Md(e){if(Wt(e)){if(e.tagName==="BASE")return N.ALLOW;if(e.tagName==="INPUT"){var t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return N.MASK;var r=t.getAttribute("autocomplete");if(r&&r.indexOf("cc-")===0)return N.MASK}if(mr(e,Sn(N.HIDDEN)))return N.HIDDEN;if(mr(e,Sn(N.MASK)))return N.MASK;if(mr(e,Sn(N.MASK_USER_INPUT)))return N.MASK_USER_INPUT;if(mr(e,Sn(N.ALLOW)))return N.ALLOW;if(TF(e))return N.IGNORE}}function En(e,t){switch(t){case N.MASK:case N.HIDDEN:case N.IGNORE:return!0;case N.MASK_USER_INPUT:return lu(e)?LE(e.parentNode):LE(e);default:return!1}}function LE(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;var t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!EF[t.tagName]}var wF=function(e){return e.replace(/\S/g,xF)};function du(e,t,r){var n,i=(n=e.parentElement)===null||n===void 0?void 0:n.tagName,o=e.textContent||"";if(!(t&&!o.trim())){var a=r,s=i==="SCRIPT";if(s)o=Yt;else if(a===N.HIDDEN)o=Yt;else if(En(e,a))if(i==="DATALIST"||i==="SELECT"||i==="OPTGROUP"){if(!o.trim())return}else i==="OPTION"?o=Yt:o=wF(o);return o}}function TF(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){var t=i("rel");return/preload|prefetch/i.test(t)&&i("as")==="script"||t==="shortcut icon"||t==="icon"}if(e.nodeName==="META"){var r=i("name"),t=i("rel"),n=i("property");return/^msapplication-tile(image|color)$/.test(r)||r==="application-name"||t==="icon"||t==="apple-touch-icon"||t==="shortcut icon"||r==="keywords"||r==="description"||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||r==="pinterest"||r==="robots"||r==="googlebot"||r==="bingbot"||e.hasAttribute("http-equiv")||r==="author"||r==="generator"||r==="framework"||r==="publisher"||r==="progid"||/^article:/.test(n)||/^product:/.test(n)||r==="google-site-verification"||r==="yandex-verification"||r==="csrf-token"||r==="p:domain_verify"||r==="verify-v1"||r==="verification"||r==="shopify-checkout-api-token"}function i(o){return(e.getAttribute(o)||"").toLowerCase()}return!1}function Sn(e){return"[".concat(zo,'="').concat(e,'"], .').concat(SF).concat(e)}var Ho="data-dd-action-name",IF="Masked Element";
9function UE(e,t,r){var n=t.enablePrivacyForActionName,i=t.actionNameAttribute,o=qE(e,Ho)||i&&qE(e,i);return r===N.MASK?o||IF:o||FE(e,i,OF,n)||FE(e,i,CF,n)||""}function qE(e,t){var r;if(NF())r=e.closest("[".concat(t,"]"));else for(var n=e;n;){if(n.hasAttribute(t)){r=n;break}n=_n(n)}if(r){var i=r.getAttribute(t);return BE(jE(i.trim()))}}var OF=[function(e,t,r){if(PF()){if("labels"in e&&e.labels&&e.labels.length>0)return wi(e.labels[0],t)}else if(e.id){var n=e.ownerDocument&&Be(e.ownerDocument.querySelectorAll("label"),function(i){return i.htmlFor===e.id});return n&&wi(n,t,r)}},function(e){if(e.nodeName==="INPUT"){var t=e,r=t.getAttribute("type");if(r==="button"||r==="submit"||r==="reset")return t.value}},function(e,t,r){if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return wi(e,t,r)},function(e){return e.getAttribute("aria-label")},function(e,t,r){var n=e.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(i){return kF(e,i)}).filter(function(i){return!!i}).map(function(i){return wi(i,t,r)}).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e,t){if("options"in e&&e.options.length>0)return wi(e.options[0],t)}],CF=[function(e,t,r){return wi(e,t,r)}],AF=10;function FE(e,t,r,n){for(var i=e,o=0;o<=AF&&i&&i.nodeName!=="BODY"&&i.nodeName!=="HTML"&&i.nodeName!=="HEAD";){for(var a=0,s=r;a<s.length;a++){var u=s[a],c=u(i,t,n);if(typeof c=="string"){var l=c.trim();if(l)return BE(jE(l))}}if(i.nodeName==="FORM")break;i=_n(i),o+=1}}function jE(e){return e.replace(/\s+/g," ")}function BE(e){return e.length>100?"".concat(Ps(e,100)," [...]"):e}function kF(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function wi(e,t,r){if(!e.isContentEditable){if("innerText"in e){var n=e.innerText,i=function(o){for(var a=e.querySelectorAll(o),s=0;s<a.length;s+=1){var u=a[s];if("innerText"in u){var c=u.innerText;c&&c.trim().length>0&&(n=n.replace(c,""))}}};return RF()||i("script, style"),i("[".concat(Ho,"]")),t&&i("[".concat(t,"]")),r&&i("".concat(Sn(N.HIDDEN),", ").concat(Sn(N.MASK))),n}return e.textContent}}function RF(){return!cS()}var Ld;function PF(){return Ld===void 0&&(Ld="labels"in HTMLInputElement.prototype),Ld}var Dd;function NF(){return Dd===void 0&&(Dd="closest"in HTMLElement.prototype),Dd}var vu=[Ho,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],MF=[HE,DF],LF=[HE,qF,FF];function $t(e,t){if(zF(e)){for(var r,n=e;n&&n.nodeName!=="HTML";){var i=VE(n,MF,jF,t,r);if(i)return i;var o=VE(n,LF,BF,t,r);r=o||Go(UF(n),r),n=_n(n)}return r}}function zE(e){return/[0-9]/.test(e)}function DF(e){if(e.id&&!zE(e.id))return"#".concat(Kt(e.id))}function qF(e){if(e.tagName!=="BODY")for(var t=RE(e),r=0;r<t.length;r+=1){var n=t[r];if(!zE(n))return"".concat(Kt(e.tagName),".").concat(Kt(n))}}function FF(e){return Kt(e.tagName)}function HE(e,t){if(t){var r=a(t);if(r)return r}for(var n=0,i=vu;n<i.length;n++){var o=i[n],r=a(o);if(r)return r}function a(s){if(e.hasAttribute(s))return"".concat(Kt(e.tagName),"[").concat(s,'="').concat(Kt(e.getAttribute(s)),'"]')}}function UF(e){for(var t=_n(e).firstElementChild,r=1;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return"".concat(Kt(e.tagName),":nth-of-type(").concat(r,")")}function VE(e,t,r,n,i){for(var o=0,a=t;o<a.length;o++){var s=a[o],u=s(e,n);if(u&&r(e,u,i))return Go(u,i)}}function jF(e,t,r){return e.ownerDocument.querySelectorAll(Go(t,r)).length===1}function BF(e,t,r){var n;if(r===void 0)n=function(s){return mr(s,t)};else{var i=VF()?Go("".concat(t,":scope"),r):Go(t,r);n=function(s){return s.querySelector(i)!==null}}for(var o=_n(e),a=o.firstElementChild;a;){if(a!==e&&n(a))return!1;a=a.nextElementSibling}return!0}function Go(e,t){return t?"".concat(e,">").concat(t):e}var pu;function VF(){if(pu===void 0)try{document.querySelector(":scope"),pu=!0}catch(e){pu=!1}return pu}function zF(e){return"isConnected"in e?e.isConnected:e.ownerDocument.documentElement.contains(e)}var GE=Q,HF=100;function KE(e,t){var r=[],n=0,i;o(e);function o(u){u.stopObservable.subscribe(a),r.push(u),xe(i),i=X(s,GE)}function a(){n===1&&r.every(function(u){return u.isStopped()})&&(n=2,t(r))}function s(){xe(i),n===0&&(n=1,a())}return{tryAppend:function(u){return n!==0?!1:r.length>0&&!GF(r[r.length-1].event,u.event)?(s(),!1):(o(u),!0)},stop:function(){s()}}}function GF(e,t){return e.target===t.target&&KF(e,t)<=HF&&e.timeStamp-t.timeStamp<=GE}function KF(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function $E(e,t){var r=t.onPointerDown,n=t.onPointerUp,i,o={selection:!1,input:!1,scroll:!1},a,s=[U(e,window,"pointerdown",function(u){YE(u)&&(i=WE(),o={selection:!1,input:!1,scroll:!1},a=r(u))},{capture:!0}),U(e,window,"selectionchange",function(){(!i||!WE())&&(o.selection=!0)},{capture:!0}),U(e,window,"scroll",function(){o.scroll=!0},{capture:!0,passive:!0}),U(e,window,"pointerup",function(u){if(YE(u)&&a){var c=o;n(a,u,function(){return c}),a=void 0}},{capture:!0}),U(e,window,"input",function(){o.input=!0},{capture:!0})];
9return{stop:function(){s.forEach(function(u){return u.stop()})}}}function WE(){var e=window.getSelection();return!e||e.isCollapsed}function YE(e){return e.target instanceof Element&&e.isPrimary!==!1}var XE=3;function ZE(e,t){if(WF(e))return t.addFrustration("rage_click"),e.some(JE)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};var r=e.some(function(n){return n.getUserActivity().selection});return e.forEach(function(n){n.hasError&&n.addFrustration("error_click"),JE(n)&&!r&&n.addFrustration("dead_click")}),{isRage:!1}}function WF(e){if(e.some(function(r){return r.getUserActivity().selection||r.getUserActivity().scroll}))return!1;for(var t=0;t<e.length-(XE-1);t+=1)if(e[t+XE-1].event.timeStamp-e[t].event.timeStamp<=Q)return!0;return!1}var YF='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function JE(e){return e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll?!1:!mr(e.event.target,YF)}var $F=10*Q,XF=5*ne;function QE(e,t,r){var n=at({expireDelay:XF}),i=new M,o;e.subscribe(9,function(){n.reset()}),e.subscribe(4,c);var a=$E(r,{onPointerDown:function(l){return JF(r,e,t,l)},onPointerUp:function(l,f,d){var p=l.clickActionBase,v=l.hadActivityOnPointerDown;ZF(r,e,t,n,i,u,p,f,d,v)}}).stop,s={findActionId:function(l){return n.findAll(l)}};return{stop:function(){c(),i.notify(),a()},actionContexts:s};function u(l){if(!o||!o.tryAppend(l)){var f=l.clone();o=KE(l,function(d){eU(d,f)})}}function c(){o&&o.stop()}}function JF(e,t,r,n){var i=e.enablePrivacyForActionName?qe(n.target,e.defaultPrivacyLevel):N.ALLOW;if(i!==N.HIDDEN){var o=QF(n,i,e),a=!1;return Bo(t,r,e,function(s){a=s.hadActivity},Rd),{clickActionBase:o,hadActivityOnPointerDown:function(){return a}}}}function ZF(e,t,r,n,i,o,a,s,u,c){var l=ex(t,n,u,a,s);o(l);var f=Bo(t,r,e,function(v){v.hadActivity&&v.end<l.startClocks.timeStamp?l.discard():v.hadActivity?l.stop(v.end):c()?l.stop(l.startClocks.timeStamp):l.stop()},$F).stop,d=t.subscribe(4,function(v){var m=v.endClocks;l.stop(m.timeStamp)}),p=i.subscribe(function(){l.stop()});l.stopObservable.subscribe(function(){d.unsubscribe(),f(),p.unsubscribe()})}function QF(e,t,r){var n=e.target.getBoundingClientRect();return{type:"click",target:{width:Math.round(n.width),height:Math.round(n.height),selector:$t(e.target,r.actionNameAttribute)},position:{x:Math.round(e.clientX-n.left),y:Math.round(e.clientY-n.top)},name:UE(e.target,r,t)}}function ex(e,t,r,n,i){var o=J(),a=te(),s=t.add(o,a.relative),u=cu({lifeCycle:e,isChildEvent:function(v){return v.action!==void 0&&(Array.isArray(v.action.id)?_e(v.action.id,o):v.action.id===o)}}),c=0,l,f=[],d=new M;function p(v){c===0&&(l=v,c=1,l?s.close(So(l)):s.remove(),u.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,get hasError(){return u.eventCounts.errorCount>0},get hasPageActivity(){return l!==void 0},getUserActivity:r,addFrustration:function(v){f.push(v)},startClocks:a,isStopped:function(){return c===1||c===2},clone:function(){return ex(e,t,r,n,i)},validate:function(v){if(p(),c===1){var m=u.eventCounts,h=m.resourceCount,y=m.errorCount,_=m.longTaskCount,S=A({type:"click",duration:l&&ee(a.timeStamp,l),startClocks:a,id:o,frustrationTypes:f,counts:{resourceCount:h,errorCount:y,longTaskCount:_},events:v!=null?v:[i],event:i},n);e.notify(0,S),c=2}},discard:function(){p(),c=2}}}function eU(e,t){var r=ZE(e,t).isRage;r?(e.forEach(function(n){return n.discard()}),t.stop(G()),t.validate(e.map(function(n){return n.event}))):(t.discard(),e.forEach(function(n){return n.validate()}))}function rx(e,t,r,n){e.subscribe(0,function(o){return e.notify(11,tx(o,n))});var i={findActionId:q};return r.trackUserInteractions&&(i=QE(e,t,r).actionContexts),{addAction:function(o,a){e.notify(11,A({savedCommonContext:a},tx(o,n)))},actionContexts:i}}function tx(e,t){var r=mu(e)?{action:{id:e.id,loading_time:uu(F(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position}}}:void 0,n=mu(e)?void 0:e.context,i=Ne({action:{id:J(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},r),o=mu(e)?{events:e.events}:{};return!mu(e)&&e.handlingStack&&(o.handlingStack=e.handlingStack),{customerContext:n,rawRumEvent:i,startTime:e.startClocks.relative,domainContext:o}}function mu(e){return e.type!=="custom"}function nx(e){var t=vd([nn.error]).subscribe(function(r){return e.notify(r.error)});return{stop:function(){t.unsubscribe()}}}function ix(e,t){var r=td(e,[mn.cspViolation,mn.intervention]).subscribe(function(n){return t.notify(n)});return{stop:function(){r.unsubscribe()}}}function ox(e,t,r,n){var i=new M;return nx(i),Zf(i),ix(t,i),i.subscribe(function(o){return e.notify(13,{error:o})}),tU(e,r,n)}function tU(e,t,r){return e.subscribe(13,function(n){var i=n.error,o=n.customerContext,a=n.savedCommonContext;e.notify(11,A({customerContext:o,savedCommonContext:a},rU(i,t,r)))}),{addError:function(n,i){var o=n.error,a=n.handlingStack,s=n.startClocks,u=n.context,c=o instanceof Error?ze(o):void 0,l=ko({stackTrace:c,originalError:o,handlingStack:a,startClocks:s,nonErrorPrefix:"Provided",source:ot.CUSTOM,handling:"handled"});e.notify(13,{customerContext:u,savedCommonContext:i,error:l})}}}function rU(e,t,r){var n={date:e.startClocks.timeStamp,error:{id:J(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:"error",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},i=r.findFeatureFlagEvaluations(e.startClocks.relative);i&&!pt(i)&&(n.feature_flags=i);var o={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:n,startTime:e.startClocks.relative,domainContext:o}}function ax(e,t){var r=we(t,{type:z.LONG_TASK,buffered:!0}).subscribe(function(n){for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a.entryType!==z.LONG_TASK||!t.trackLongTasks)break;var s=sn(a.startTime),u={date:s.timeStamp,long_task:{id:J(),entry_type:"long-task",duration:F(a.duration)},type:"long_task",_dd:{discarded:!1}};e.notify(11,{rawRumEvent:u,startTime:s.relative,domainContext:{performanceEntry:a}})}});return{stop:function(){r.unsubscribe()}}}var sx=new PE;function ux(e){if(!(!performance||!("getEntriesByName"in performance))){var t=performance.getEntriesByName(e.url,"resource");if(!(!t.length||!("toJSON"in t[0]))){var r=t.filter(function(n){return!sx.has(n)}).filter(function(n){return su(n)&&Ad(n)}).filter(function(n){return nU(n,e.startClocks.relative,cx({startTime:e.startClocks.relative,duration:e.duration}))});if(r.length===1)return sx.add(r[0]),r[0].toJSON()}}}function cx(e){return Cr(e.startTime,e.duration)}function nU(e,t,r){var n=1;return e.startTime>
9=t-n&&cx(e)<=Cr(r,n)}var iU=2*ne;function fx(e){var t=oU(e)||aU(e);if(!(!t||t.traceTime<=Ye()-iU))return t.traceId}function oU(e){var t=e.querySelector("meta[name=dd-trace-id]"),r=e.querySelector("meta[name=dd-trace-time]");return dx(t&&t.content,r&&r.content)}function aU(e){var t=sU(e);if(t)return dx(Ar(t,"trace-id"),Ar(t,"trace-time"))}function dx(e,t){var r=t&&Number(t);if(!(!e||!r))return{traceId:e,traceTime:r}}function sU(e){for(var t=0;t<e.childNodes.length;t+=1){var r=lx(e.childNodes[t]);if(r)return r}if(e.body)for(var t=e.body.childNodes.length-1;t>=0;t-=1){var n=e.body.childNodes[t],r=lx(n);if(r)return r;if(!lu(n))break}}function lx(e){if(e&&NE(e)){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function hu(){if(yn(z.NAVIGATION)){var e=performance.getEntriesByType(z.NAVIGATION)[0];if(e)return e}var t=uU(),r=A({entryType:z.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return A({},r,{toJSON:void 0})}},t);return r}function uU(){var e={},t=performance.timing;for(var r in t)if(Rt(t[r])){var n=r,i=t[n];e[n]=i===0?0:So(i)}return e}function px(e,t){gn(e,"interactive",function(){var r=A(hu().toJSON(),{entryType:z.RESOURCE,initiatorType:Cd,traceId:fx(document),toJSON:function(){return A({},r,{toJSON:void 0})}});t(r)})}function mx(e,t,r,n){n===void 0&&(n=px),e.subscribe(7,function(o){var a=cU(o,t,r);a&&e.notify(11,a)});var i=we(t,{type:z.RESOURCE,buffered:!0}).subscribe(function(o){for(var a=0,s=o;a<s.length;a++){var u=s[a];if(!EE(u)){var c=vx(u,t);c&&e.notify(11,c)}}});return n(t,function(o){var a=vx(o,t);a&&e.notify(11,a)}),{stop:function(){i.unsubscribe()}}}function cU(e,t,r){var n=ux(e),i=n?sn(n.startTime):e.startClocks,o=lU(e,t);if(!(!t.trackResources&&!o)){var a=e.type==="xhr"?"xhr":"fetch",s=n?hx(n):void 0,u=dU(r,i,e.duration),c=Ne({date:i.timeStamp,resource:{id:J(),type:a,duration:u,method:e.method,status_code:e.status,url:Fo(e.url)?Uo(e.url):e.url},type:"resource",_dd:{discarded:!t.trackResources}},o,s);return{startTime:i.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}}}function vx(e,t){var r=sn(e.startTime),n=fU(e,t);if(!(!t.trackResources&&!n)){var i=SE(e),o=hx(e),a=Ne({date:r.timeStamp,resource:{id:J(),type:i,url:e.name,status_code:pU(e.responseStatus)},type:"resource",_dd:{discarded:!t.trackResources}},n,o);return{startTime:r.relative,rawRumEvent:a,domainContext:{performanceEntry:e}}}}function hx(e){var t=e.renderBlockingStatus;return{resource:A({duration:xE(e),render_blocking_status:t},TE(e),wE(e))}}function lU(e,t){var r=e.traceSampled&&e.traceId&&e.spanId;if(r)return{_dd:{span_id:e.spanId.toDecimalString(),trace_id:e.traceId.toDecimalString(),rule_psr:gx(t)}}}function fU(e,t){var r=e.traceId;if(r)return{_dd:{trace_id:e.traceId,span_id:ou().toDecimalString(),rule_psr:gx(t)}}}function gx(e){return Rt(e.traceSampleRate)?e.traceSampleRate/100:void 0}function dU(e,t,r){return e.wasInPageStateDuringPeriod("frozen",t.relative,r)?void 0:F(r)}function pU(e){return e===0?void 0:e}function yx(e,t,r){var n=cu({lifeCycle:e,isChildEvent:function(a){return a.view.id===t},onChange:r}),i=n.stop,o=n.eventCounts;return{stop:i,eventCounts:o}}var vU=10*ne;function _x(e,t,r){var n=we(e,{type:z.PAINT,buffered:!0}).subscribe(function(i){var o=Be(i,function(a){return a.name==="first-contentful-paint"&&a.startTime<t.timeStamp&&a.startTime<vU});o&&r(o.startTime)});return{stop:n.unsubscribe}}function bx(e,t,r){var n=we(e,{type:z.FIRST_INPUT,buffered:!0}).subscribe(function(i){var o=Be(i,function(u){return u.startTime<t.timeStamp});if(o){var a=ee(o.startTime,o.processingStart),s=void 0;o.target&&Wt(o.target)&&(s=$t(o.target,e.actionNameAttribute)),r({delay:a>=0?a:0,time:o.startTime,targetSelector:s})}});return{stop:function(){n.unsubscribe()}}}function Sx(e,t,r){return r===void 0&&(r=hu),gU(e,function(){var n=r();hU(n)||t(mU(n))})}function mU(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=Ce()?e.responseStart:void 0}}function hU(e){return e.loadEventEnd<=0}function gU(e,t){var r,n=gn(e,"complete",function(){r=X(function(){return t()})}).stop;return{stop:function(){n(),xe(r)}}}var yU=10*ne;function Ex(e,t,r,n){var i=1/0,o=oe(e,r,["pointerdown","keydown"],function(u){i=u.timeStamp},{capture:!0,once:!0}).stop,a=0,s=we(e,{type:z.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(u){var c=rS(u,function(f){return f.entryType===z.LARGEST_CONTENTFUL_PAINT&&f.startTime<i&&f.startTime<t.timeStamp&&f.startTime<yU&&f.size>a});if(c){var l=void 0;c.element&&(l=$t(c.element,e.actionNameAttribute)),n({value:c.startTime,targetSelector:l}),a=c.size}});return{stop:function(){o(),s.unsubscribe()}}}function gu(e,t){t===void 0&&(t=window);var r,n;return document.visibilityState==="hidden"?r=0:(r=1/0,n=oe(e,t,["pagehide","visibilitychange"],function(i){(i.type==="pagehide"||document.visibilityState==="hidden")&&(r=i.timeStamp,n())},{capture:!0}).stop),{get timeStamp(){return r},stop:function(){n==null||n()}}}function xx(e,t,r){var n={},i=Sx(e,function(l){t(l.loadEvent),n.navigationTimings=l,r()}).stop,o=gu(e),a=_x(e,o,function(l){n.firstContentfulPaint=l,r()}).stop,s=Ex(e,o,window,function(l){n.largestContentfulPaint=l,r()}).stop,u=bx(e,o,function(l){n.firstInput=l,r()}).stop;function c(){i(),a(),s(),u(),o.stop()}return{stop:c,initialViewMetrics:n}}function wx(e,t,r){if(!xU())return{stop:q};var n=0,i,o;r({value:0});var a=EU(),s=we(e,{type:z.LAYOUT_SHIFT,buffered:!0}).subscribe(function(u){for(var c=0,l=u;c<l.length;c++){var f=l[c];if(!f.hadRecentInput){var d=a.update(f),p=d.cumulatedValue,v=d.isMaxValue;if(v){var m=_U(f.sources);i=m?new WeakRef(m):void 0,o=ee(t,f.startTime)}if(p>n){n=p;var m=i==null?void 0:i.deref();r({value:an(n,4),targetSelector:m&&$t(m,e.actionNameAttribute),time:o})}}}});return{stop:function(){s.unsubscribe()}}}function _U(e){var t;if(e)return(t=Be(e,function(r){return!!r.node&&Wt(r.node)}))===null||t===void 0?void 0:t.node}var bU=5*Q,SU=Q;function EU(){var e=0,t,r,n=0;return{update:function(i){var o=t===void 0||i.startTime-r>=SU||i.startTime-t>=bU,a;return o?(t=r=i.startTime,n=e=i.value,a=!0):(e+=i.value,r=i.startTime,a=i.value>n,a&&(n=i.value)),{cumulatedValue:e,isMaxValue:a}}}}function xU(){return yn(z.LAYOUT_SHIFT)&&"WeakRef"in window}var yu,Tx=0,qd=1/0,Fd=0;function Ix(){"interactionCount"in performance||yu||(yu=new window.PerformanceObserver(P(function(e){e.getEntries().forEac
9h(function(t){var r=t;r.interactionId&&(qd=Math.min(qd,r.interactionId),Fd=Math.max(Fd,r.interactionId),Tx=(Fd-qd)/7+1)})})),yu.observe({type:"event",buffered:!0,durationThreshold:0}))}var Ud=function(){return yu?Tx:window.performance.interactionCount||0};var Ox=10,wU=1*ne;function Cx(e,t,r){if(!OU())return{getInteractionToNextPaint:function(){},setViewEnd:q,stop:q};var n=IU(r),i=n.getViewInteractionCount,o=n.stopViewInteractionCount,a=1/0,s=TU(i),u=-1,c,l;function f(v){for(var m=0,h=v;m<h.length;m++){var y=h[m];y.interactionId&&y.startTime>=t&&y.startTime<=a&&s.process(y)}var _=s.estimateP98Interaction();_&&_.duration!==u&&(u=_.duration,l=ee(t,_.startTime),_.target&&Wt(_.target)?c=$t(_.target,e.actionNameAttribute):c=void 0)}var d=we(e,{type:z.FIRST_INPUT,buffered:!0}).subscribe(f),p=we(e,{type:z.EVENT,durationThreshold:40,buffered:!0}).subscribe(f);return{getInteractionToNextPaint:function(){if(u>=0)return{value:Math.min(u,wU),targetSelector:c,time:l};if(i())return{value:0}},setViewEnd:function(v){a=v,o()},stop:function(){p.unsubscribe(),d.unsubscribe()}}}function TU(e){var t=[];function r(){t.sort(function(n,i){return i.duration-n.duration}).splice(Ox)}return{process:function(n){var i=t.findIndex(function(a){return n.interactionId===a.interactionId}),o=t[t.length-1];i!==-1?n.duration>t[i].duration&&(t[i]=n,r()):(t.length<Ox||n.duration>o.duration)&&(t.push(n),r())},estimateP98Interaction:function(){var n=Math.min(t.length-1,Math.floor(e()/50));return t[n]}}}function IU(e){Ix();var t=e==="initial_load"?0:Ud(),r={stopped:!1};function n(){return Ud()-t}return{getViewInteractionCount:function(){return r.stopped?r.interactionCount:n()},stopViewInteractionCount:function(){r={stopped:!0,interactionCount:n()}}}}function OU(){return yn(z.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function Ax(e,t,r,n,i,o){var a=n==="initial_load",s=!0,u=[],c=gu(r);function l(){if(!s&&!a&&u.length>0){var d=Math.max.apply(Math,u);d<c.timeStamp&&o(d)}}var f=Bo(e,t,r,function(d){s&&(s=!1,d.hadActivity&&u.push(ee(i.timeStamp,d.end)),l())}).stop;return{stop:function(){f(),c.stop()},setLoadEvent:function(d){a&&(a=!1,u.push(d),l())}}}function Ko(){var e,t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function xn(){var e,t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}var jd;function Wo(e){return jd||(jd=CU(e)),jd}function CU(e){return new M(function(t){var r=Ae(function(){t.notify(Nr())},200).throttled;return U(e,window,"resize",r,{capture:!0,passive:!0}).stop})}function Nr(){var e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var AU=Q;function kx(e,t,r,n){n===void 0&&(n=RU(e));var i=0,o=0,a=0,s=n.subscribe(function(u){var c=u.scrollDepth,l=u.scrollTop,f=u.scrollHeight,d=!1;if(c>i&&(i=c,d=!0),f>o){o=f;var p=Ce();a=ee(t.relative,p),d=!0}d&&r({maxDepth:Math.min(i,o),maxDepthScrollTop:l,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:function(){return s.unsubscribe()}}}function kU(){var e=xn(),t=Nr().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),n=Math.round(t+e);return{scrollHeight:r,scrollDepth:n,scrollTop:e}}function RU(e,t){return t===void 0&&(t=AU),new M(function(r){function n(){r.notify(kU())}if(window.ResizeObserver){var i=Ae(n,t,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,a=new ResizeObserver(P(i.throttled));a.observe(o);var s=U(e,window,"scroll",i.throttled,{passive:!0});return function(){i.cancel(),a.unobserve(o),s.stop()}}})}function Rx(e,t,r,n,i,o){var a={},s=Ax(e,t,r,i,o,function(h){a.loadingTime=h,n()}),u=s.stop,c=s.setLoadEvent,l=kx(r,o,function(h){a.scroll=h}).stop,f=wx(r,o.relative,function(h){a.cumulativeLayoutShift=h,n()}).stop,d=Cx(r,o.relative,i),p=d.stop,v=d.getInteractionToNextPaint,m=d.setViewEnd;return{stop:function(){u(),f(),l()}
9,stopINPTracking:p,setLoadEvent:c,setViewEnd:m,getCommonViewMetrics:function(){return a.interactionToNextPaint=v(),a}}}var PU=3e3,NU=5*ne,MU=5*ne;function Nx(e,t,r,n,i,o,a){var s=new Set,u=l("initial_load",Cs(),a);f();var c;o&&(c=d(i));function l(p,v,m){var h=LU(t,r,n,e,p,v,m);return s.add(h),h.stopObservable.subscribe(function(){s.delete(h)}),h}function f(){t.subscribe(9,function(){u=l("route_change",void 0,{name:u.name,service:u.service,version:u.version,context:u.contextManager.getContext()})}),t.subscribe(8,function(){u.end({sessionIsActive:!1})}),t.subscribe(10,function(p){p.reason===vr.UNLOADING&&u.end()})}function d(p){return p.subscribe(function(v){var m=v.oldLocation,h=v.newLocation;qU(m,h)&&(u.end(),u=l("route_change"))})}return{addTiming:function(p,v){v===void 0&&(v=G()),u.addTiming(p,v)},startView:function(p,v){u.end({endClocks:v}),u=l("route_change",v,p)},setViewContext:function(p){u.contextManager.setContext(p)},setViewContextProperty:function(p,v){u.contextManager.setContextProperty(p,v)},updateViewName:function(p){u.updateViewName(p)}
9,stop:function(){c&&c.unsubscribe(),u.end(),s.forEach(function(p){return p.stop()})}}}function LU(e,t,r,n,i,o,a){o===void 0&&(o=te());var s=J(),u=new M,c={},l=0,f,d=lr(n),p=_i(),v=!0,m,h,y,_;a&&(m=a.name,h=a.service||void 0,y=a.version||void 0,a.context&&(_=a.context,p.setContext(_)));var S={id:s,name:m,startClocks:o,service:h,version:y,context:_};e.notify(1,S),e.notify(2,S);var w=Ae(Ft,PU,{leading:!1}),x=w.throttled,T=w.cancel,b=Rx(e,t,r,x,i,o),C=b.setLoadEvent,H=b.setViewEnd,k=b.stop,D=b.stopINPTracking,he=b.getCommonViewMetrics,Ue=i==="initial_load"?xx(r,C,x):{stop:q,initialViewMetrics:{}},ct=Ue.stop,Dt=Ue.initialViewMetrics,qt=yx(e,s,x),Kr=qt.stop,fc=qt.eventCounts,dc=gt(Ft,NU);Ft(),p.changeObservable.subscribe(Ft);function Ft(){T(),l+=1;var lt=f===void 0?G():f.timeStamp;e.notify(3,{customTimings:c,documentVersion:l,id:s,name:m,service:h,version:y,context:p.getContext(),loadingType:i,location:d,startClocks:o,commonViewMetrics:he(),initialViewMetrics:Dt,duration:ee(o.timeStamp,lt),isActive:f===void 0,sessionIsActive:v,eventCounts:fc})}return{get name(){return m},service:h,version:y,contextManager:p,stopObservable:u,end:function(lt){var Oe=this,ar,pc;lt===void 0&&(lt={}),!f&&(f=(ar=lt.endClocks)!==null&&ar!==void 0?ar:te(),v=(pc=lt.sessionIsActive)!==null&&pc!==void 0?pc:!0,e.notify(4,{endClocks:f}),e.notify(5,{endClocks:f}),zt(dc),H(f.relative),k(),Ft(),X(function(){Oe.stop()},MU))},stop:function(){ct(),Kr(),D(),u.notify()},addTiming:function(lt,Oe){if(!f){var ar=eS(Oe)?Oe:ee(o.timeStamp,Oe);c[DU(lt)]=ar,x()}},updateViewName:function(lt){Pt($e.UPDATE_VIEW_NAME)&&(m=lt,Ft())}}}function DU(e){var t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&L.warn("Invalid timing name: ".concat(e,", sanitized to: ").concat(t)),t}function qU(e,t){return e.pathname!==t.pathname||!FU(t.hash)&&Px(t.hash)!==Px(e.hash)}function FU(e){var t=e.substring(1);return t!==""&&!!document.getElementById(t)}function Px(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}function Mx(e,t,r,n,i,o,a,s,u){return e.subscribe(3,function(c){return e.notify(11,UU(c,t,o,s,a))}),Nx(r,e,n,t,i,!t.trackViewsManually,u)}function UU(e,t,r,n,i){var o,a,s,u,c,l,f,d,p,v,m,h,y,_,S,w,x=n.getReplayStats(e.id),T=r.findFeatureFlagEvaluations(e.startClocks.relative),b=i.findAll(e.startClocks.relative,e.duration),C={_dd:{document_version:e.documentVersion,replay_stats:x,page_states:b,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:"view",view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(o=e.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.value,cumulative_layout_shift_time:F((a=e.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.time),cumulative_layout_shift_target_selector:(s=e.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.targetSelector,first_byte:F((u=e.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.firstByte),dom_complete:F((c=e.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.domComplete),dom_content_loaded:F((l=e.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.domContentLoaded),dom_interactive:F((f=e.initialViewMetrics.navigationTimings)===null||f===void 0?void 0:f.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:F(e.initialViewMetrics.firstContentfulPaint),first_input_delay:F((d=e.initialViewMetrics.firstInput)===null||d===void 0?void 0:d.delay),first_input_time:F((p=e.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.time),first_input_target_selector:(v=e.initialViewMetrics.firstInput)===null||v===void 0?void 0:v.targetSelector,interaction_to_next_paint:F((m=e.commonViewMetrics.interactionToNextPaint)===null||m===void 0?void 0:m.value),interaction_to_next_paint_time:F((h=e.commonViewMetrics.interactionToNextPaint)===null||h===void 0?void 0:h.time),interaction_to_next_paint_target_selector:(y=e.commonViewMetrics.interactionToNextPaint)===null||y===void 0?void 0:y.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:F((_=e.initialViewMetrics.largestContentfulPaint)===null||_===void 0?void 0:_.value),largest_contentful_paint_target_selector:(S=e.initialViewMetrics.largestContentfulPaint)===null||S===void 0?void 0:S.targetSelector,load_event:F((w=e.initialViewMetrics.navigationTimings)===null||w===void 0?void 0:w.loadEvent),loading_time:uu(F(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},resource:{count:e.eventCounts.resourceCount},time_spent:F(e.duration)},feature_flags:T&&!pt(T)?T:void 0,display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:F(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:x?!0:void 0,is_active:e.sessionIsActive?void 0:!1},privacy:{replay_level:t.defaultPrivacyLevel}};return pt(e.customTimings)||(C.view.custom_timings=oS(e.customTimings,F)),{rawRumEvent:C,startTime:e.startClocks.relative,domainContext:{location:e.location}}}var jU="rum";function Lx(e,t,r){var n=rd(e,jU,function(i){return BU(e,i)},r);return n.expireObservable.subscribe(function(){t.notify(8)}),n.renewObservable.subscribe(function(){t.notify(9)}
9),n.sessionStateUpdateObservable.subscribe(function(i){var o=i.previousState,a=i.newState;if(!o.forcedReplay&&a.forcedReplay){var s=n.findSession();s&&(s.isReplayForced=!0)}}),{findTrackedSession:function(i){var o=n.findSession(i);if(!(!o||!qx(o.trackingType)))return{id:o.id,sessionReplay:o.trackingType==="1"?1:o.isReplayForced?2:0}},expire:n.expire,expireObservable:n.expireObservable,setForcedReplay:function(){return n.updateSessionState({forcedReplay:"1"})}}}function Dx(){var e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:yi("records")?1:0};return{findTrackedSession:function(){return e},expire:q,expireObservable:new M,setForcedReplay:q}}function BU(e,t){var r;return VU(t)?r=t:kt(e.sessionSampleRate)?kt(e.sessionReplaySampleRate)?r="1":r="2":r="0",{trackingType:r,isTracked:qx(r)}}function VU(e){return e==="0"||e==="1"||e==="2"}function qx(e){return e==="2"||e==="1"}function Fx(e,t,r,n,i,o,a){var s=e.replica,u=eu(e,{endpoint:e.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(c){return Ne(c,{application:{id:s.applicationId}})},encoder:a(3)},n,i,o);return t.subscribe(12,function(c){c.type==="view"?u.upsert(c,c.view.id):u.add(c)}),r.subscribe(function(c){return u.add(c,Js(e))}),u}function Ux(e){var t=bt();e.subscribe(12,function(r){t.send("rum",r)})}var zU=Ve;function jx(e,t,r){var n=at({expireDelay:zU}),i;e.subscribe(1,function(s){var u=s.startClocks,c=r.href;n.add(a({url:c,referrer:i||document.referrer}),u.relative),i=c}),e.subscribe(5,function(s){var u=s.endClocks;n.closeActive(u.relative)});var o=t.subscribe(function(s){var u=s.newLocation,c=n.find();if(c){var l=Ce();n.closeActive(l),n.add(a({url:u.href,referrer:c.referrer}),l)}});function a(s){var u=s.url,c=s.referrer;return{url:u,referrer:c}}return{findUrl:function(s){return n.find(s)},stop:function(){o.unsubscribe(),n.stop()}}}function Vx(e,t){var r=lr(t);return new M(function(n){var i=HU(e,a).stop,o=GU(e,a).stop;function a(){if(r.href!==t.href){var s=lr(t);n.notify({newLocation:s,oldLocation:r}),r=s}}return function(){i(),o()}})}function HU(e,t){var r=de(Bx("pushState"),"pushState",function(o){var a=o.onPostCall;a(t)}).stop,n=de(Bx("replaceState"),"replaceState",function(o){var a=o.onPostCall;a(t)}).stop,i=U(e,window,"popstate",t).stop;return{stop:function(){r(),n(),i()}}}function GU(e,t){return U(e,window,"hashchange",t)}function Bx(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}var KU=Ve;function zx(e,t){var r=at({expireDelay:KU});return e.subscribe(1,function(n){var i=n.startClocks;r.add({},i.relative),t.resetCustomerData()}),e.subscribe(5,function(n){var i=n.endClocks;r.closeActive(i.relative)}),{findFeatureFlagEvaluations:function(n){return r.find(n)},addFeatureFlagEvaluation:function(n,i){var o=r.find();o&&(o[n]=i,t.updateCustomerData(o))},stop:function(){return t.stop()}}}var WU=10*Q,hr,wn,Vd;function Gx(e,t,r,n,i){var o=t.enabled&&kt(e.customerDataTelemetrySampleRate);o&&(Kx(),Hx(),r.subscribe(12,function(a){Vd=!0,Yo(wn.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),Yo(wn.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),Yo(wn.featureFlagBytes,_e(["view","error"],a.type)?n.getOrCreateTracker(0).getBytesCount():0)}),i.subscribe(function(a){var s=a.bytesCount,u=a.messagesCount;Vd&&(hr.batchCount+=1,Yo(hr.batchBytesCount,s),Yo(hr.batchMessagesCount,u),Bd(hr.globalContextBytes,wn.globalContextBytes),Bd(hr.userContextBytes,wn.userContextBytes),Bd(hr.featureFlagBytes,wn.featureFlagBytes),Hx())}),gt(YU,WU))}function YU(){hr.batchCount!==0&&(Xe("Customer data measures",hr),Kx())}function Mr(){return{min:1/0,max:0,sum:0}}function Yo(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function Bd(e,t){e.sum+=t.sum,e.min=Math.min(e.min,t.min),e.max=Math.max(e.max,t.max)}function Kx(){hr={batchCount:0,batchBytesCount:Mr(),batchMessagesCount:Mr(),globalContextBytes:Mr(),userContextBytes:Mr(),featureFlagBytes:Mr()}}function Hx(){Vd=!1,wn={globalContextBytes:Mr(),userContextBytes:Mr(),featureFlagBytes:Mr()}}var $U=4e3,XU=500,JU=Ve;function Wx(e,t){t===void 0&&(t=XU);var r=at({expireDelay:JU,maxEntries:$U}),n;o(Yx(),Ce());var i=oe(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(s){o(ZU(s),s.timeStamp)},{capture:!0}).stop;function o(s,u){u===void 0&&(u=Ce()),s!==n&&(n=s,r.closeActive(u),r.add({state:n,startTime:u},u))}var a={findAll:function(s,u){var c=r.findAll(s,u);if(c.length!==0){for(var l=[],f=Math.max(0,c.length-t),d=c.length-1;d>=f;d--){var p=c[d],v=ee(s,p.startTime);l.push({state:p.state,start:F(v)})}return l}},wasInPageStateAt:function(s,u){return a.wasInPageStateDuringPeriod(s,u,0)},wasInPageStateDuringPeriod:function(s,u,c){return r.findAll(u,c).some(function(l){return l.state===s})},addPageState:o,stop:function(){i(),r.stop()}};return a}function ZU(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":Yx()}function Yx(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function $x(e){var t=Nr(),r=Wo(e).subscribe(function(n){t=n}).unsubscribe;return{get:function(){return{viewport:t}},stop:r}}function Xx(e,t){var r=window.cookieStore?QU(e):t3;return new M(function(n){return r(t,function(i){return n.notify(i)})})}function QU(e){return function(t,r){var n=U(e,window.cookieStore,"change",function(i){var o=Be(i.changed,function(a){return a.name===t})||Be(i.deleted,function(a){return a.name===t});o&&r(o.value)});return n.stop}}var e3=Q;function t3(e,t){var r=Ar(document.cookie,e),n=gt(function(){var i=Ar(document.cookie,e);i!==r&&t(i)},e3);return function(){zt(n)}}var Jx="datadog-ci-visibility-test-execution-id";function Zx(e,t){var r;t===void 0&&(t=Xx(e,Jx));var n=yt(Jx)||((r=window.Cypress)===null||r===void 0?void 0:r.env("traceId")),i=t.subscribe(function(o){n=o});return{get:function(){if(typeof n=="string")return{test_execution_id:n}},stop:function(){return i.unsubscribe()}}}function Qx(e,t){var r=we(t,{type:z.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(n){for(var i=0,o=n;i<o.length;i++){var a=o[i],s=sn(a.startTime),u={date:s.timeStamp,long_task:{id:J(),entry_type:"long-animation-frame",duration:F(a.duration),blocking_duration:F(a.blockingDuration),first_ui_event_timestamp:F(a.firstUIEventTimestamp),render_start:F(a.renderStart),style_and_layout_start:F(a.styleAndLayoutStart),scripts:a.scripts.map(function(c){return{duration:F(c.duration),pause_duration:F(c.pauseDuration),forced_style_and_layout_duration:F(c.forcedStyleAndLayoutDuration),start_time:F(c.startTime),execution_start:F(c.executionStart),source_url:c.sourceURL,source_function_name:c.sourceFunctionName,source_char_position:c.sourceCharPosition,invoker:c.invoker,invoker_type:c.invokerType,window_attribution:c.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};e.notify(11,{rawRumEvent:u,startTime:s.relative,domainContext:{performanceEntry:a}})}});return{stop:function(){return r.unsubscribe()}}}function zd(e,t,r,n,i,o,a,s){var u=[],c=new Td;c.subscribe(12,function(Oe){return hn("rum",Oe)}
9);var l=r3(e);l.setContextProvider(function(){var Oe,ar;return{application:{id:e.applicationId},session:{id:(Oe=m.findTrackedSession())===null||Oe===void 0?void 0:Oe.id},view:{id:(ar=x.findView())===null||ar===void 0?void 0:ar.id},action:{id:b.findActionId()}}});var f=function(Oe){c.notify(13,{error:Oe}),Xe("Error reported to customer",{"error.message":Oe.message})},d=zx(c,r.getOrCreateTracker(0)),p=od(e),v=p.subscribe(function(Oe){c.notify(10,Oe)});u.push(function(){return v.unsubscribe()});var m=Je()?Dx():Lx(e,c,a);if(Je())Ux(c);else{var h=Fx(e,c,l.observable,f,p,m.expireObservable,o);u.push(function(){return h.stop()}),Gx(e,l,c,r,h.flushObservable)}var y=dE(),_=Vx(e,location),S=Wx(e),w=n3(c,e,location,m,S,_,y,n,f),x=w.viewHistory,T=w.urlContexts,b=w.actionContexts,C=w.addAction,H=w.stop;u.push(H),Xs();var k=Mx(c,e,location,y,_,d,S,t,i),D=k.addTiming,he=k.startView,Ue=k.updateViewName,ct=k.setViewContext,Dt=k.setViewContextProperty,qt=k.stop;u.push(qt);var Kr=mx(c,e,S).stop;if(u.push(Kr),Pt($e.LONG_ANIMATION_FRAME)){if(e.trackLongTasks){var fc=Qx(c,e).stop;u.push(fc)}}else ax(c,e);var dc=ox(c,e,S,d).addError;OE(c,e,m);var Ft=QS(c,S,s),lt=_E(e.applicationId,m,x,b,T);return{addAction:C,addError:dc,addTiming:D,addFeatureFlagEvaluation:d.addFeatureFlagEvaluation,startView:he,setViewContext:ct,setViewContextProperty:Dt,updateViewName:Ue,lifeCycle:c,viewHistory:x,session:m,stopSession:function(){return m.expire()},getInternalContext:lt.get,startDurationVital:Ft.startDurationVital,stopDurationVital:Ft.stopDurationVital,addDurationVital:Ft.addDurationVital,stop:function(){u.forEach(function(Oe){return Oe()})}}}function r3(e){var t=$s("browser-rum-sdk",e);if(Je()){var r=bt();t.observable.subscribe(function(n){return r.send("internal_telemetry",n)})}return t}function n3(e,t,r,n,i,o,a,s,u){var c=Id(e),l=jx(e,o,r),f=rx(e,a,t,i),d=f.addAction,p=f.actionContexts,v=$x(t),m=Zx(t);return yE(t,e,n,c,l,p,v,m,s,u),{viewHistory:c,pageStateHistory:i,urlContexts:l,addAction:d,actionContexts:p,stop:function(){m.stop(),v.stop(),l.stop(),c.stop(),i.stop()}}}function Hd(e,t){var r=t.session,n=t.viewContext,i=t.errorType,o=r?r.id:"no-session-id",a=[];i!==void 0&&a.push("error-type=".concat(i)),n&&(a.push("seed=".concat(n.id)),a.push("from=".concat(n.startClocks.timeStamp)));var s=i3(e),u="/rum/replay/sessions/".concat(o);return"".concat(s).concat(u,"?").concat(a.join("&"))}function i3(e){var t=e.site,r=e.subdomain||o3(e);return"https://".concat(r?"".concat(r,"."):"").concat(t)}function o3(e){switch(e.site){case _t:case jf:return"app";case Co:return"dd";default:return}}var a3=10,Ge;function ew(e){return _u(e).segments_count}function tw(e){_u(e).segments_count+=1}function rw(e){_u(e).records_count+=1}function nw(e,t){_u(e).segments_total_raw_size+=t}function iw(e){return Ge==null?void 0:Ge.get(e)}function _u(e){Ge||(Ge=new Map);var t;return Ge.has(e)?t=Ge.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},Ge.set(e,t),Ge.size>a3&&s3()),t}function s3(){if(Ge)if(Ge.keys){var e=Ge.keys().next().value;e&&Ge.delete(e)}else{var t=!0;Ge.forEach(function(r,n){t&&(Ge.delete(n),t=!1)})}}var Gd=new WeakMap;function ke(e){return Gd.has(e)}function Kd(e){for(var t=e;t;){if(!ke(t)&&!Vo(t))return!1;t=bn(t)}return!0}function ce(e){return Gd.get(e)}function aw(e,t){Gd.set(e,t)}function Tn(e,t){var r=e.tagName,n=e.value;if(En(e,t)){var i=e.type;return r==="INPUT"&&(i==="button"||i==="submit"||i==="reset")?n:!n||r==="OPTION"?void 0:Yt}if(r==="OPTION"||r==="SELECT")return e.value;if(!(r!=="INPUT"&&r!=="TEXTAREA"))return n}var u3=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,c3=/^[A-Za-z]+:|^\/\//,l3=/^data:.*,/i;function sw(e,t){return e.replace(u3,function(r,n,i,o,a,s){var u=i||a||s;if(!t||!u||c3.test(u)||l3.test(u))return r;var c=n||o||"";return"url(".concat(c).concat(f3(u,t)).concat(c,")")})}function f3(e,t){try{return Oo(e,t).href}catch(r){return e}}var d3=/[^a-z1-6-_]/;function bu(e){var t=e.toLowerCase().trim();return d3.test(t)?"div":t}function Wd(e,t){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(e,"' height='").concat(t,"' style='background-color:silver'%3E%3C/svg%3E")}var Le={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Lr={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},be={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},St={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},Yd={Play:0,Pause:1};function $d(e){if(!(e===void 0||e.length===0))return e.map(function(t){var r=t.cssRules||t.rules,n=Array.from(r,function(o){return o.cssText}),i={cssRules:n,disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0};return i})}function $o(e,t,r,n){if(t===N.HIDDEN)return null;var i=e.getAttribute(r);if(t===N.MASK&&r!==zo&&!vu.includes(r)&&r!==n.actionNameAttribute){var o=e.tagName;switch(r){case"title":case"alt":case"placeholder":return Yt}
9if(o==="IMG"&&(r==="src"||r==="srcset")){var a=e;if(a.naturalWidth>0)return Wd(a.naturalWidth,a.naturalHeight);var s=e.getBoundingClientRect(),u=s.width,c=s.height;return u>0||c>0?Wd(u,c):Pd}if(o==="SOURCE"&&(r==="src"||r==="srcset"))return Pd;if(o==="A"&&r==="href")return Yt;if(i&&Vt(r,"data-"))return Yt;if(o==="IFRAME"&&r==="srcdoc")return Yt}return!i||typeof i!="string"?i:Fo(i)?Uo(i):i}function uw(e,t,r){var n;if(t===N.HIDDEN)return{};for(var i={},o=bu(e.tagName),a=e.ownerDocument,s=0;s<e.attributes.length;s+=1){var u=e.attributes.item(s),c=u.name,l=$o(e,t,c,r.configuration);l!==null&&(i[c]=l)}if(e.value&&(o==="textarea"||o==="select"||o==="option"||o==="input")){var f=Tn(e,t);f!==void 0&&(i.value=f)}if(o==="option"&&t===N.ALLOW){var d=e;d.selected&&(i.selected=d.selected)}if(o==="link"){var p=Array.from(a.styleSheets).find(function(w){return w.href===e.href}),v=Xd(p);v&&p&&(i._cssText=v)}if(o==="style"&&e.sheet){var v=Xd(e.sheet);v&&(i._cssText=v)}var m=e;if(o==="input"&&(m.type==="radio"||m.type==="checkbox")&&(t===N.ALLOW?i.checked=!!m.checked:En(m,t)&&delete i.checked),o==="audio"||o==="video"){var h=e;i.rr_mediaState=h.paused?"paused":"played"}var y,_,S=r.serializationContext;switch(S.status){case 0:y=Math.round(e.scrollTop),_=Math.round(e.scrollLeft),(y||_)&&S.elementsScrollPositions.set(e,{scrollTop:y,scrollLeft:_});break;case 1:S.elementsScrollPositions.has(e)&&(n=S.elementsScrollPositions.get(e),y=n.scrollTop,_=n.scrollLeft);break}return _&&(i.rr_scrollLeft=_),y&&(i.rr_scrollTop=y),i}function Xd(e){if(!e)return null;var t;try{t=e.rules||e.cssRules}catch(n){}if(!t)return null;var r=Array.from(t,fS()?p3:cw).join("");return sw(r,e.href)}function p3(e){if(m3(e)&&e.selectorText.includes(":")){var t=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return e.cssText.replace(t,"$1\\$2")}return cw(e)}function cw(e){return v3(e)&&Xd(e.styleSheet)||e.cssText}function v3(e){return"styleSheet"in e}function m3(e){return"selectorText"in e}function In(e,t){var r=y3(e,t);if(!r)return null;var n=ce(e)||g3(),i=r;return i.id=n,aw(e,n),t.serializedNodeIds&&t.serializedNodeIds.add(n),i}var h3=1;function g3(){return h3++}function Jd(e,t){var r=[];return fu(e,function(n){var i=In(n,t);i&&r.push(i)}),r}function y3(e,t){switch(e.nodeType){case e.DOCUMENT_NODE:return _3(e,t);case e.DOCUMENT_FRAGMENT_NODE:return b3(e,t);case e.DOCUMENT_TYPE_NODE:return S3(e);case e.ELEMENT_NODE:return E3(e,t);case e.TEXT_NODE:return w3(e,t);case e.CDATA_SECTION_NODE:return T3()}}function _3(e,t){return{type:Lr.Document,childNodes:Jd(e,t),adoptedStyleSheets:$d(e.adoptedStyleSheets)}}function b3(e,t){var r=Vo(e);return r&&t.serializationContext.shadowRootsController.addShadowRoot(e),{type:Lr.DocumentFragment,childNodes:Jd(e,t),isShadowRoot:r,adoptedStyleSheets:r?$d(e.adoptedStyleSheets):void 0}}function S3(e){return{type:Lr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId}}function E3(e,t){var r,n=bu(e.tagName),i=x3(e)||void 0,o=Nd(Md(e),t.parentNodePrivacyLevel);if(o===N.HIDDEN){var a=e.getBoundingClientRect(),s=a.width,u=a.height;return{type:Lr.Element,tagName:n,attributes:(r={rr_width:"".concat(s,"px"),rr_height:"".concat(u,"px")},r[zo]=DE,r),childNodes:[],isSVG:i}}if(o!==N.IGNORE){var c=uw(e,o,t),l=[];if(ME(e)&&n!=="style"){var f=void 0;t.parentNodePrivacyLevel===o&&t.ignoreWhiteSpace===(n==="head")?f=t:f=A({},t,{parentNodePrivacyLevel:o,ignoreWhiteSpace:n==="head"}),l=Jd(e,f)}return{type:Lr.Element,tagName:n,attributes:c,childNodes:l,isSVG:i}}}function x3(e){return e.tagName==="svg"||e instanceof SVGElement}function w3(e,t){var r=du(e,t.ignoreWhiteSpace||!1,t.parentNodePrivacyLevel);if(r!==void 0)return{type:Lr.Text,textContent:r}}function T3(){return{type:Lr.CDATA,textContent:""}}function Su(e,t,r){return In(e,{serializationContext:r,parentNodePrivacyLevel:t.defaultPrivacyLevel,configuration:t})}function Zd(e){return!!e.changedTouches}function Xt(e){return e.composed===!0&&xi(e.target)?e.composedPath()[0]:e.target}var lw=25;function I3(e){return Math.abs(e.pageTop-e.offsetTop-window.scrollY)>lw||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>lw}
9var fw=function(e,t){var r=window.visualViewport,n={layoutViewportX:e,layoutViewportY:t,visualViewportX:e,visualViewportY:t};if(r)I3(r)?(n.layoutViewportX=Math.round(e+r.offsetLeft),n.layoutViewportY=Math.round(t+r.offsetTop)):(n.visualViewportX=Math.round(e-r.offsetLeft),n.visualViewportY=Math.round(t-r.offsetTop));else return n;return n},Eu=function(e){return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function Te(e,t){return{data:A({source:e},t),type:Le.IncrementalSnapshot,timestamp:G()}}var O3=50;function Qd(e,t){var r=Ae(function(a){var s=Xt(a);if(ke(s)){var u=ep(a);if(!u)return;var c={id:ce(s),timeOffset:0,x:u.x,y:u.y};t(Te(Zd(a)?be.TouchMove:be.MouseMove,{positions:[c]}))}},O3,{trailing:!1}),n=r.throttled,i=r.cancel,o=oe(e,document,["mousemove","touchmove"],n,{capture:!0,passive:!0}).stop;return{stop:function(){o(),i()}}}function ep(e){var t=Zd(e)?e.changedTouches[0]:e,r=t.clientX,n=t.clientY;if(window.visualViewport){var i=fw(r,n),o=i.visualViewportX,a=i.visualViewportY;r=o,n=a}if(!Number.isFinite(r)||!Number.isFinite(n)){e.isTrusted&&Xe("mouse/touch event without x/y");return}return{x:r,y:n}}var Nt,dw=(Nt={},Nt.pointerup=St.MouseUp,Nt.mousedown=St.MouseDown,Nt.click=St.Click,Nt.contextmenu=St.ContextMenu,Nt.dblclick=St.DblClick,Nt.focus=St.Focus,Nt.blur=St.Blur,Nt.touchstart=St.TouchStart,Nt.touchend=St.TouchEnd,Nt);function tp(e,t,r){var n=function(i){var o=Xt(i);if(!(qe(o,e.defaultPrivacyLevel)===N.HIDDEN||!ke(o))){var a=ce(o),s=dw[i.type],u;if(s!==St.Blur&&s!==St.Focus){var c=ep(i);if(!c)return;u={id:a,type:s,x:c.x,y:c.y}}else u={id:a,type:s};var l=A({id:r.getIdForEvent(i)},Te(be.MouseInteraction,u));t(l)}};return oe(e,document,Object.keys(dw),n,{capture:!0,passive:!0})}var C3=100;function Xo(e,t,r,n){n===void 0&&(n=document);var i=Ae(function(u){var c=Xt(u);if(!(!c||qe(c,e.defaultPrivacyLevel)===N.HIDDEN||!ke(c))){var l=ce(c),f=c===document?{scrollTop:xn(),scrollLeft:Ko()}:{scrollTop:Math.round(c.scrollTop),scrollLeft:Math.round(c.scrollLeft)};r.set(c,f),t(Te(be.Scroll,{id:l,x:f.scrollLeft,y:f.scrollTop}))}},C3),o=i.throttled,a=i.cancel,s=U(e,n,"scroll",o,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}var A3=200;function rp(e,t){var r=Wo(e).subscribe(function(n){t(Te(be.ViewportResize,n))});return{stop:function(){r.unsubscribe()}}}function np(e,t){var r=window.visualViewport;if(!r)return{stop:q};var n=Ae(function(){t({data:Eu(r),type:Le.VisualViewport,timestamp:G()})},A3,{trailing:!1}),i=n.throttled,o=n.cancel,a=oe(e,r,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){a(),o()}}}function ip(e,t){return oe(e,document,["play","pause"],function(r){var n=Xt(r);!n||qe(n,e.defaultPrivacyLevel)===N.HIDDEN||!ke(n)||t(Te(be.MediaInteraction,{id:ce(n),type:r.type==="play"?Yd.Play:Yd.Pause}))},{capture:!0,passive:!0})}function op(e){function t(i,o){i&&ke(i.ownerNode)&&o(ce(i.ownerNode))}var r=[de(CSSStyleSheet.prototype,"insertRule",function(i){var o=i.target,a=i.parameters,s=a[0],u=a[1];t(o,function(c){return e(Te(be.StyleSheetRule,{id:c,adds:[{rule:s,index:u}]}))})}),de(CSSStyleSheet.prototype,"deleteRule",function(i){var o=i.target,a=i.parameters[0];t(o,function(s){return e(Te(be.StyleSheetRule,{id:s,removes:[{index:a}]}))})})];typeof CSSGroupingRule!="undefined"?n(CSSGroupingRule):(n(CSSMediaRule),n(CSSSupportsRule));function n(i){r.push(de(i.prototype,"insertRule",function(o){var a=o.target,s=o.parameters,u=s[0],c=s[1];t(a.parentStyleSheet,function(l){var f=pw(a);f&&(f.push(c||0),e(Te(be.StyleSheetRule,{id:l,adds:[{rule:u,index:f}]})))})}),de(i.prototype,"deleteRule",function(o){var a=o.target,s=o.parameters[0];t(a.parentStyleSheet,function(u){var c=pw(a);c&&(c.push(s),e(Te(be.StyleSheetRule,{id:u,removes:[{index:c}]})))})}))}return{stop:function(){r.forEach(function(i){return i.stop()})}}}function pw(e){for(var t=[],r=e;r.parentRule;){var n=Array.from(r.parentRule.cssRules),i=n.indexOf(r);t.unshift(i),r=r.parentRule}if(r.parentStyleSheet){var o=Array.from(r.parentStyleSheet.cssRules),a=o.indexOf(r);return t.unshift(a),t}}function ap(e,t){return oe(e,window,["focus","blur"],function(){t({data:{has_focus:document.hasFocus()},type:Le.Focus,timestamp:G()})})}function sp(e,t,r){var n=e.subscribe(11,function(i){var o,a;i.rawRumEvent.type==="action"&&i.rawRumEvent.action.type==="click"&&(!((a=(o=i.rawRumEvent.action.frustration)===null||o===void 0?void 0:o.type)===null||a===void 0)&&a.length)&&"events"in 
9i.domainContext&&i.domainContext.events&&i.domainContext.events.length&&t({timestamp:i.rawRumEvent.date,type:Le.FrustrationRecord,data:{frustrationTypes:i.rawRumEvent.action.frustration.type,recordIds:i.domainContext.events.map(function(s){return r.getIdForEvent(s)})}})});return{stop:function(){n.unsubscribe()}}}function up(e,t){var r=e.subscribe(4,function(){t({timestamp:G(),type:Le.ViewEnd})});return{stop:function(){r.unsubscribe()}}}function Jo(e,t,r){r===void 0&&(r=document);var n=e.defaultPrivacyLevel,i=new WeakMap,o=r!==document,a=oe(e,r,o?["change"]:["input","change"],function(f){var d=Xt(f);(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement||d instanceof HTMLSelectElement)&&c(d)},{capture:!0,passive:!0}).stop,s;if(o)s=q;else{var u=[vn(HTMLInputElement.prototype,"value",c),vn(HTMLInputElement.prototype,"checked",c),vn(HTMLSelectElement.prototype,"value",c),vn(HTMLTextAreaElement.prototype,"value",c),vn(HTMLSelectElement.prototype,"selectedIndex",c)];s=function(){u.forEach(function(f){return f.stop()})}}return{stop:function(){s(),a()}};function c(f){var d=qe(f,n);if(d!==N.HIDDEN){var p=f.type,v;if(p==="radio"||p==="checkbox"){if(En(f,d))return;v={isChecked:f.checked}}else{var m=Tn(f,d);if(m===void 0)return;v={text:m}}l(f,v);var h=f.name;p==="radio"&&h&&f.checked&&nS(document.querySelectorAll('input[type="radio"][name="'.concat(Kt(h),'"]')),function(y){y!==f&&l(y,{isChecked:!1})})}}function l(f,d){if(ke(f)){var p=i.get(f);(!p||p.text!==d.text||p.isChecked!==d.isChecked)&&(i.set(f,d),t(Te(be.Input,A({id:ce(f)},d))))}}}var k3=100,R3=16;function vw(e){var t=q,r=[];function n(){t(),e(r),r=[]}var i=Ae(n,R3,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(s){r.length===0&&(t=P3(o,{timeout:k3})),r.push.apply(r,s)},flush:n,stop:function(){t(),a()}}}function P3(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){var r=window.requestIdleCallback(P(e),t);return function(){return window.cancelIdleCallback(r)}}var n=window.requestAnimationFrame(P(e));return function(){return window.cancelAnimationFrame(n)}}function Zo(e,t,r,n){var i=au();if(!i)return{stop:q,flush:q};var o=vw(function(s){N3(s.concat(a.takeRecords()),e,t,r)}),a=new i(P(o.addMutations));return a.observe(n,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function N3(e,t,r,n){var i=new Map;e.filter(function(d){return d.type==="childList"}).forEach(function(d){d.removedNodes.forEach(function(p){mw(p,n.removeShadowRoot)})});var o=e.filter(function(d){return d.target.isConnected&&Kd(d.target)&&qe(d.target,r.defaultPrivacyLevel,i)!==N.HIDDEN}),a=M3(o.filter(function(d){return d.type==="childList"}),r,n,i),s=a.adds,u=a.removes,c=a.hasBeenSerialized,l=L3(o.filter(function(d){return d.type==="characterData"&&!c(d.target)}),r,i),f=D3(o.filter(function(d){return d.type==="attributes"&&!c(d.target)}),r,i);!l.length&&!f.length&&!u.length&&!s.length||t(Te(be.Mutation,{adds:s,removes:u,texts:l,attributes:f}))}function M3(e,t,r,n){for(var i=new Set,o=new Map,a=function(T){T.addedNodes.forEach(function(b){i.add(b)}),T.removedNodes.forEach(function(b){i.has(b)||o.set(b,T.target),i.delete(b)})},s=0,u=e;s<u.length;s++){var c=u[s];a(c)}var l=Array.from(i);q3(l);for(var f=new Set,d=[],p=0,v=l;p<v.length;p++){var m=v[p];if(!w(m)){var h=qe(m.parentNode,t.defaultPrivacyLevel,n);if(!(h===N.HIDDEN||h===N.IGNORE)){var y=In(m,{serializedNodeIds:f,parentNodePrivacyLevel:h,serializationContext:{status:2,shadowRootsController:r},configuration:t});if(y){var _=bn(m);d.push({nextId:x(m),parentId:ce(_),node:y})}}}}var S=[];return o.forEach(function(T,b){ke(b)&&S.push({parentId:ce(T),id:ce(b)})}),{adds:d,removes:S,hasBeenSerialized:w};function w(T){return ke(T)&&f.has(ce(T))}function x(T){for(var b=T.nextSibling;b;){if(ke(b))return ce(b);b=b.nextSibling}return null}}function L3(e,t,r){for(var n,i=[],o=new Set,a=e.filter(function(d){return o.has(d.target)?!1:(o.add(d.target),!0)}),s=0,u=a;s<u.length;s++){var c=u[s],l=c.target.textContent;if(l!==c.oldValue){var f=qe(bn(c.target),t.defaultPrivacyLevel,r);f===N.HIDDEN||f===N.IGNORE||i.push({id:ce(c.target),value:(n=du(c.target,!1,f))!==null&&n!==void 0?n:null})}}return i}function D3(e,t,r){for(var n=[],i=new Map,o=e.filter(function(h){var y=i.get(h.target);return y&&y.has(h.attributeName)?!1:(y?y.add(h.attributeName):i.set(h.target,new Set([h.attributeName])),!0)}),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s],l=c.target.getAttribute(c.attributeName);if(l!==c.oldValue){var f=qe(c.target,t.defaultPrivacyLevel,r),d=$o(c.target,f,c.attributeName,t),p=void 0;if(c.attributeName==="value"){var v=Tn(c.target,f);if(v===void 0)continue;p=v}
9else typeof d=="string"?p=d:p=null;var m=a.get(c.target);m||(m={id:ce(c.target),attributes:{}},n.push(m),a.set(c.target,m)),m.attributes[c.attributeName]=p}}return n}function q3(e){e.sort(function(t,r){var n=t.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function mw(e,t){xi(e)&&t(e.shadowRoot),fu(e,function(r){return mw(r,t)})}function cp(){var e=new WeakMap;return{set:function(t,r){t===document&&!document.scrollingElement||e.set(t===document?document.scrollingElement:t,r)},get:function(t){return e.get(t)},has:function(t){return e.has(t)}}}var hw=function(e,t,r){var n=new Map,i={addShadowRoot:function(o){if(!n.has(o)){var a=Zo(t,e,i,o),s=Jo(e,t,o),u=Xo(e,t,r,o);n.set(o,{flush:function(){return a.flush()},stop:function(){a.stop(),s.stop(),u.stop()}})}},removeShadowRoot:function(o){var a=n.get(o);a&&(a.stop(),n.delete(o))},stop:function(){n.forEach(function(o){var a=o.stop;return a()})},flush:function(){n.forEach(function(o){var a=o.flush;return a()})}};return i};function gw(e,t,r,n,i,o){var a=function(u,c){u===void 0&&(u=G()),c===void 0&&(c={status:0,elementsScrollPositions:e,shadowRootsController:t});var l=Nr(),f=l.width,d=l.height,p=[{data:{height:d,href:window.location.href,width:f},type:Le.Meta,timestamp:u},{data:{has_focus:document.hasFocus()},type:Le.Focus,timestamp:u},{data:{node:Su(document,n,c),initialOffset:{left:Ko(),top:xn()}},type:Le.FullSnapshot,timestamp:u}];return window.visualViewport&&p.push({data:Eu(window.visualViewport),type:Le.VisualViewport,timestamp:u}),p};o(a());var s=r.subscribe(2,function(u){i(),o(a(u.startClocks.timeStamp,{shadowRootsController:t,status:1,elementsScrollPositions:e}))}).unsubscribe;return{stop:s}}function yw(){var e=new WeakMap,t=1;return{getIdForEvent:function(r){return e.has(r)||e.set(r,t++),e.get(r)}}}function lp(e){var t=e.emit,r=e.configuration,n=e.lifeCycle;if(!t)throw new Error("emit function is required");var i=function(d){t(d),hn("record",{record:d});var p=e.viewHistory.findView();rw(p.id)},o=cp(),a=hw(r,i,o),s=gw(o,a,n,r,u,function(d){return d.forEach(function(p){return i(p)})}).stop;function u(){a.flush(),l.flush()}var c=yw(),l=Zo(i,r,a,document),f=[l,Qd(r,i),tp(r,i,c),Xo(r,i,o,document),rp(r,i),Jo(r,i),ip(r,i),op(i),ap(r,i),np(r,i),sp(n,i,c),up(n,function(d){u(),i(d)})];return{stop:function(){a.stop(),f.forEach(function(d){return d.stop()}),s()},flushMutations:u,shadowRootsController:a}}function _w(e,t,r){var n=new FormData;n.append("segment",new Blob([e],{type:"application/octet-stream"}),"".concat(t.session.id,"-").concat(t.start));var i=A({raw_segment_size:r,compressed_segment_size:e.byteLength},t),o=JSON.stringify(i);return n.append("event",new Blob([o],{type:"application/json"})),{data:n,bytesCount:e.byteLength}}function bw(e){var t=e.context,r=e.creationReason,n=e.encoder,i=0,o=t.view.id,a=A({start:1/0,end:-1/0,creation_reason:r,records_count:0,has_full_snapshot:!1,index_in_view:ew(o),source:"browser"},t);tw(o);function s(c,l){a.start=Math.min(a.start,c.timestamp),a.end=Math.max(a.end,c.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=c.type===Le.FullSnapshot);var f=n.isEmpty?'{"records":[':",";n.write(f+JSON.stringify(c),function(d){i+=d,l(i)})}function u(c){if(n.isEmpty)throw new Error("Empty segment flushed");n.write("],".concat(JSON.stringify(a).slice(1),`
10`)),n.finish(function(l){nw(a.view.id,l.rawBytesCount),c(a,l)})}return{addRecord:s,flush:u}}var F3=30*Q,xu=6e4;function fp(e,t,r,n,i,o){return U3(e,function(){return j3(t.applicationId,r,n)},i,o)}function U3(e,t,r,n){var i={status:0,nextSegmentCreationReason:"init"},o=e.subscribe(2,function(){s("view_change")}).unsubscribe,a=e.subscribe(10,function(u){s(u.reason)}).unsubscribe;function s(u){i.status===1&&(i.segment.flush(function(c,l){var f=_w(l.output,c,l.rawBytesCount);No(u)?r.sendOnExit(f):r.send(f)}),xe(i.expirationTimeoutId)),u!=="stop"?i={status:0,nextSegmentCreationReason:u}:i={status:2}}return{addRecord:function(u){if(i.status!==2){if(i.status===0){var c=t();if(!c)return;i={status:1,segment:bw({encoder:n,context:c,creationReason:i.nextSegmentCreationReason}),expirationTimeoutId:X(function(){s("segment_duration_limit")},F3)}}i.segment.addRecord(u,function(l){l>xu&&s("segment_bytes_limit")})}},stop:function(){s("stop"),o(),a()}}}function j3(e,t,r){var n=t.findTrackedSession(),i=r.findView();if(!(!n||!i))return{application:{id:e},session:{id:n.id},view:{id:i.id}}}function Sw(e){var t=bt();return{addRecord:function(r){var n=e.findView();t.send("record",r,n.id)}}}function Ew(e,t,r,n,i,o){var a=[],s=function(d){e.notify(13,{error:d}),Xe("Error reported to customer",{"error.message":d.message})},u=o||gi(t,t.sessionReplayEndpointBuilder,xu,s),c;if(Je())c=Sw(n).addRecord;else{var l=fp(e,t,r,n,u,i);c=l.addRecord,a.push(l.stop)}var f=lp({emit:c,configuration:t,lifeCycle:e,viewHistory:n}).stop;return a.push(f),{stop:function(){a.forEach(function(d){return d()})}}}function wu(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function xw(e,t,r,n){var i=t.findTrackedSession(),o=B3(i,n),a=r.findView();return Hd(e,{viewContext:a,errorType:o,session:i})}function B3(e,t){if(!wu())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function Qo(e,t,r){var n=0,i=[],o,a=0,s=[],u=U(e,t,"message",function(f){var d=f.data;if(!(d.type!=="wrote"||d.streamId!==r)){n+=d.additionalBytesCount,i.push(d.result),o=d.trailer;var p=s.shift();p&&p.id===d.id?p.writeCallback?p.writeCallback(d.result.byteLength):p.finishCallback&&p.finishCallback():(u(),Xe("Worker responses received out of order."))}}).stop;function c(){var f=i.length===0?new Uint8Array(0):tS(i.concat(o)),d={rawBytesCount:n,output:f,outputBytesCount:f.byteLength,encoding:"deflate"};return n=0,i=[],d}function l(){a>0&&(t.postMessage({action:"reset",streamId:r}),a=0)}return{isAsync:!0,get isEmpty(){return a===0},write:function(f,d){t.postMessage({action:"write",id:a,data:f,streamId:r}),s.push({id:a,writeCallback:d,data:f}),a+=1},finish:function(f){l(),s.length?(s.forEach(function(d){delete d.writeCallback}),s[s.length-1].finishCallback=function(){return f(c())}):f(c())},finishSync:function(){l();var f=s.map(function(d){return delete d.writeCallback,delete d.finishCallback,d.data}).join("");return A(c(),{pendingData:f})},estimateEncodedBytesCount:function(f){return f.length/8},stop:function(){u()}}}
10var V3=30*Q;function ww(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093
vendor: 4,398 bytes, line 10
10624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);
10do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)}
10,Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
10i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.28.0"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var pe={status:0};function ea(e,t,r,n){switch(n===void 0&&(n=ww),pe.status===0&&z3(e,t,n),pe.status){case 1:return pe.initializationFailureCallbacks.push(r),pe.worker;case 3:return pe.worker}}function Tu(){return pe.status}function z3(e,t,r){r===void 0&&(r=ww);try{var n=r(e),i=U(e,n,"error",function(s){dp(e,t,s)}).stop,o=U(e,n,"message",function(s){var u=s.data;u.type==="errored"?dp(e,t,u.error,u.streamId):u.type==="initialized"&&G3(u.version)}).stop;n.postMessage({action:"init"}),X(function(){return H3(t)},V3);var a=function(){i(),o()};pe={status:1,worker:n,stop:a,initializationFailureCallbacks:[]}}catch(s){dp(e,t,s)}}function H3(e){pe.status===1&&(L.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),pe.initializationFailureCallbacks.forEach(function(t){return t()}),pe={status:2})}function G3(e){pe.status===1&&(pe={status:3,worker:pe.worker,stop:pe.stop,version:e})}function dp(e,t,r,n){if(pe.status===1||pe.status===0){if(L.error("".concat(t," failed to start: an error occurred while creating the Worker:"),r),r instanceof Event||r instanceof Error&&K3(r.message)){var i=void 0;e.workerUrl?i="Please make sure the Worker URL ".concat(e.workerUrl," is correct and CSP is correctly configured."):i="Please make sure CSP is correctly configured.",L.error("".concat(i," See documentation at ").concat(on,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else Pr(r);pe.status===1&&pe.initializationFailureCallbacks.forEach(function(o){return o()}),pe={status:2}}else Pr(r,{worker_version:pe.status===3&&pe.version,stream_id:n})}function K3(e){return _e(e,"Content Security Policy")||_e(e,"requires 'TrustedScriptURL'")}function Tw(e,t){if(Je()&&!yi("records")||!wu())return{start:q,stop:q,getReplayStats:function(){},onRumStart:q,isRecording:function(){return!1},getSessionReplayLink:function(){}};var r={status:1},n=function(){r={status:1}},i=function(){r={status:0}},o=q;return{start:function(a){return n(a)},stop:function(){return i()},getSessionReplayLink:function(){return o()},onRumStart:function(a,s,u,c,l){s.startSessionReplayRecordingManually&&(r={status:0}),a.subscribe(8,function(){(r.status===2||r.status===3)&&(i(),r={status:1})}),a.subscribe(10,function(p){p.reason===vr.UNLOADING&&i()}),a.subscribe(9,function(){r.status===1&&n()});var f;function d(){return f||(l||(l=ea(s,"Datadog Session Replay",function(){i()},t)),l&&(f=Qo(s,l,1))),f}n=function(p){var v=u.findTrackedSession();if(!v||v.sessionReplay===0&&(!p||!p.force)){r={status:1};return}r.status===2||r.status===3||(r={status:2},gn(s,"interactive",function(){if(r.status===2){var m=d();if(!m){r={status:0};return}var h=e(a,s,u,c,m).stop;r={status:3,stopRecording:h}}}),p&&p.force&&v.sessionReplay===0&&u.setForcedReplay())},i=function(){r.status!==0&&(r.status===3&&r.stopRecording(),r={status:0})},o=function(){return xw(s,u,c,r.status!==0)},r.status===1&&n()},isRecording:function(){return Tu()===3&&r.status===3},getReplayStats:function(a){return Tu()===3?iw(a):void 0}}}var W3=Tw(Ew),Ze=xd(zd,W3,{startDeflateWorker:ea,createDeflateEncoder:Qo});ed(vt(),"DD_RUM",Ze);var ta=class{constructor(){this.signupDirect="https://gateway.prod.bill.com/signupservice/v1/signup/marketing";this.emailExistsUrl="https://gateway.prod.bill.com/signupservice/v1/signup/email-exists";this.signupConsole="https://app-signup.us.bill.com/ConsoleSignup1";this.brInviteUrl="https://api.bill.com/api/v2/GetVendorInvitesExternal";this.brSignupPageUrl="https://app-signup.us.bill.com/onboarding/flow/signup";this.signInUrl="https://app.bill.com/neo/login";this.spendExpenseApplyUrl="https://apply.divvy.co";
10this.ffaas="https://app01.us.bill.com/neo3/ffaaslink/graphql";this.beepHostUrl="https://app01.us.bill.com";this.segmentKey="b7SQxIgzchmkwydmWraoO2NRdwi0dRyq";this.directPricePlan="ppl01JIRLSJPULKK2h5n";this.consolePricePlan="ppl01PERIFSIJAID2gb8";this.leanDataBookitOrgId="00D4x0000017X4DEAU"}},pp=class extends ta{constructor(){super(...arguments);this.signupDirect="https://gateway-test.us.cashview.com/signupservice/v1/signup/marketing";this.emailExistsUrl="https://gateway-test.us.cashview.com/signupservice/v1/signup/email-exists";this.signupConsole="https://app-signup-test.qa.cashview.com/ConsoleSignup1";this.brInviteUrl="https://app-test.cashview.com/api/v2/GetVendorInvitesExternal";this.brSignupPageUrl="https://app-signup-test.qa.cashview.com/onboarding/flow/signup";this.signInUrl="https://login-test.us.cashview.com/neo/login";this.spendExpenseApplyUrl="https://apply-dev-bdc.divvy.co";this.ffaas="https://app-test01.qa.cashview.com/neo3/ffaaslink/graphql";this.beepHostUrl="https://app-test01.qa.cashview.com";this.segmentKey="s5AojTRfV9Kts1U5SOpTrIgnOjFucioX";this.directPricePlan="ppl01FZCVEEKYLSONmgs";this.consolePricePlan="ppl01YMKIKFUEQHBLmgq";this.leanDataBookitOrgId="00DWC000006Tyzp2AC"}},vp=class extends ta{constructor(){super(...arguments);this.signupDirect="https://gateway.stage.bill.com/signupservice/v1/signup/marketing";this.emailExistsUrl="https://gateway.stage.bill.com/signupservice/v1/signup/email-exists";this.signupConsole="https://app-signup-stage.us.bill.com/ConsoleSignup1";this.brInviteUrl="https://api-stage.bill.com/api/v2/GetVendorInvitesExternal";this.brSignupPageUrl="https://app-signup-stage.us.bill.com/onboarding/flow/signup";this.signInUrl="https://login.stage.us.bill.com/neo/login";this.spendExpenseApplyUrl="https://apply-dev-bdc-stg.divvy.co";this.ffaas="https://app-stage01.us.bill.com/neo3/ffaaslink/graphql";this.beepHostUrl="https://app-stage01.us.bill.com";this.segmentKey="s5AojTRfV9Kts1U5SOpTrIgnOjFucioX";this.directPricePlan="ppl01FHHBMCLTUKVG76o";this.consolePricePlan="ppl01SRIFYOKPCHNJ714";this.leanDataBookitOrgId="00DWC000006Tyzp2AC"}},Jt=window.location.host.includes("test"),ra=Jt&&window.location.href.includes("env=stage"),ve=ra?new vp:Jt?new pp:new ta;var mp=class{constructor(){this.getOneLogin=()=>this.valueOf("ol");this.getTier=()=>this.valueOf("signupTier");this.segmentGroupId=()=>this.valueOf("ajs_group_id");this.segmentUserId=()=>this.valueOf("ajs_user_id");this.anonymousId=()=>this.valueOf("ajs_anonymous_id")}getGaClientId(){let t=this.valueOf("_ga");return t&&t.substring(6)}setSubmitDate(t){let r=(t||new Date).toISOString();document.cookie=`mktSubmit=${r}; Domain=.bill.com; Path=/`}valueOf(t){let r=" "+document.cookie+";",n=" "+t+"=",i=r.indexOf(n);if(i===-1)return null;let o=i+n.length;return r.slice(o,r.indexOf(";",o))}},Ke=new mp;Ze.init({applicationId:"79e68f9f-98ed-416c-9893-014e4e5bf9bb",clientToken:"pub44ba4f0880bc7722e3f2653d3d00ee1c",site:"datadoghq.com",service:"bill-marketing-site",env:Jt?"stg":"prod",version:"e668fea7",sessionSampleRate:100,sessionReplaySampleRate:0,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",trackingConsent:"not-granted"});var Y3="C0002";function $3(){var r,n;let e=window;return((n=(r=e.OnetrustActiveGroups)!=null?r:e.OptanonActiveGroups)!=null?n:"").includes(Y3)}function Cw(){Ze.setTrackingConsent($3()?"granted":"not-granted")}Cw();var Aw=window,Iw=Aw.OptanonWrapper;Aw.OptanonWrapper=function(){typeof Iw=="function"&&Iw(),Cw()};var Ow=Ke.anonymousId();Ow&&Ze.setUser({id:Ow});Jt&&Ze.setGlobalContextProperty("signupVariant",ra?"stage":"dev");var hp=class{configureAll(){this.configureToggle()}configureToggle(){document.querySelectorAll("a[data-toggle][data-target]").forEach(t=>{t.addEventListener("click",r=>{var i,o,a;let n=(o=(i=r.target)==null?void 0:i.dataset)==null?void 0:o.toggleValidate;if(n){let[s,...u]=n.split("|");if(!((a=X3[s])==null?void 0:a.apply(null,u)))return!1}document.querySelectorAll(t.dataset.target).forEach(s=>{s.classList.toggle(t.dataset.toggle)})})})}},X3={showInvalid:function(e){let t=document.querySelector(e);return t&&"reportValidity"in t&&t.reportValidity(),!t},ifNone:function(e,t){var n;let r=!!document.querySelector(e);return(n=document.querySelector(t))==null||n.classList.toggle("hide",r),r}},kw=new hp;var gp=class{getPreviousPage(){return sessionStorage.getItem("previousPage")}setPreviousPage(t){sessionStorage.setItem("previousPage",t)}getClickedLogin(){return!!localStorage.getItem("clickedLogin")}setClickedLogin(t){localStorage.setItem("clickedLogin",t.toString())}getPartnerStackClickId(){return this.getLocalWithExpiry("partner
10StackClickId")}setPartnerStackClickId(t){this.setLocalWithExpiry("partnerStackClickId",t,7776e6)}getBdcAccountingSoftwareForDivvy(){return sessionStorage.getItem("bdcAccountingSoftwareForDivvy")}setBdcAccountingSoftwareForDivvy(t){sessionStorage.setItem("bdcAccountingSoftwareForDivvy",t)}getOfferId(){return localStorage.getItem("bdcOfferId")}setOfferId(t){localStorage.setItem("bdcOfferId",t)}getFirstTouchValues(){return JSON.parse(localStorage.getItem("utm_values"))}hasFirstTouchValues(){return"utm_values"in localStorage}setFirstTouchValues(t){localStorage.setItem("utm_values",JSON.stringify(t))}getLastTouchValues(){try{return this.getLocalWithExpiry("utm_values_lt")}catch(t){return localStorage.removeItem("utm_values_lt"),null}}hasLastTouchValues(){return!!this.getLastTouchValues()}setLastTouchValues(t){this.setLocalWithExpiry("utm_values_lt",t,2592e6)}setLastTouchPactId(t){let r=this.getLastTouchValues()||{};r.pactId=t,this.setLastTouchValues(r)}getClickIds(){return JSON.parse(localStorage.getItem("clickIds"))}setClickIds(t){localStorage.setItem("clickIds",JSON.stringify(t))}getIsFirstTouchSession(){return"isFirstTouch"in sessionStorage}setIsFirstTouchSession(t){let r=sessionStorage;t?r.setItem("isFirstTouch",""):r.removeItem("isFirstTouch")}setReferralRockReferralUrl(t){window.sessionStorage.setItem("referralRockReferralUrl",t)}getUserData(){let t=window.localStorage.getItem("bdcUserData");return t&&JSON.parse(t)}setUserData(t){window.localStorage.setItem("bdcUserData",JSON.stringify(t))}getConsolePricePlan(){return window.localStorage.getItem("bdc-consolepriceplan")}setLocalWithExpiry(t,r,n){let i={value:r,expiresOn:Date.now()+n};localStorage.setItem(t,JSON.stringify(i))}getLocalWithExpiry(t){let r=JSON.parse(localStorage.getItem(t));if(!r)return null;if(!r.expiresOn)throw"Stored object does not support expiration: "+localStorage.getItem(t);return Date.now()>r.expiresOn?(localStorage.removeItem(t),null):r.value}},B=new gp;function Ti(e){return fetch("/api/user/verify",{method:"POST",body:JSON.stringify(e)}).then(t=>t.json().then(r=>(r.success=t.ok,r)))}function Rw(e){return fetch("/api/user/company",{method:"POST",body:JSON.stringify({email:e})}).then(t=>t.json())}var Ii="op_lt_offerid",J3="LT_Type__c",Z3="productInterest",Mw="AB_Test_2_Lead__c";function Iu(e){return Z(this,null,function*(){if(e.dataset.emailAllow!=="business-email")return;let t=e==null?void 0:e.email,r=t==null?void 0:t.value;if(!r)return;let n=yield Ti({email:r});if(!(n!=null&&n.isBusinessEmail))throw t.setCustomValidity("Please enter a valid business email"),t.reportValidity(),new Error("Invalid non-business email")})}function Oi(e){e.querySelectorAll("input[type=radio][data-radio-checked]").forEach(n=>{setTimeout(()=>{var i;n.checked=!0,(i=n.previousElementSibling)==null||i.classList.add("w--redirected-checked")},1)}),e.querySelectorAll("input[type=checkbox][data-checkbox-value]").forEach(n=>{n.value=n.dataset.checkboxValue}),Q3(e),Pw(e),e.querySelectorAll("input[name=formoptions],select[name=formoptions],input[name=productInterestCheckbox]").forEach(n=>{n.addEventListener("change",()=>{Pw(e),n.name==="productInterestCheckbox"&&na(e,Dr(e)==="")})});let t=e.querySelector("select#accountingSoftware"),r=e.querySelector("select#msDynamicsOption");t==null||t.addEventListener("change",()=>{if(!r)return;let n=t.disabled||t.value!=="msdynamics";r.classList.toggle("hide",n),r.disabled=n,r.required=!n})}function Q3(e){e.querySelectorAll("input[type=tel]").forEach(r=>{r.addEventListener("change",()=>{if(!r.value)return;let n=r.value.replace(/\D+/g,""),i=/[0-9]{3}[2-9][0-9]{6}/g.test(n)&&t.includes(n.substring(0,3));r.setCustomValidity(i?"":"Invalid phone number"),r.reportValidity()})});let t=["201","202","203","204","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","226","227","228","229","231","234","236","239","240","242","246","248","249","250","251","252","253","254","256","260","262","263","264","267","268","269","270","272","274","276","278","279","281","283","284","289","301","302","303","304","305","306","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","326","327","330","331","332","334","336","337","339","340","341","343","345","346","347","351","352","354","360","361","364","365","367","368","369","380","382","385","386","387","401","402","403","404","405","406","407","408","409","410","412","413","414","415","416","417","418","419","423","424","425","428","430","431","432","434","435","437","438","440","441","442","443","445","447","448","450","456","458","463","464","468","469","470","472","473","474","475","478","479","480","484","500","501","502","503","504","505","506","507","508","509","510","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","538","539","540","541","542","543","544","545","546","547","548","549","550","551","552","553","554","555","556","557","558","559","561","562","563","564","566","567","569","570","571","572","573","574","575","577","578","579","580","581","582","584","585","586","587","588","589","600","601","602","603","604","605","606","607","608","609","610","612","613","614","615","616","617","618","619","620","622","623","626","627","628","629","630","631","633","636","639","640","641","644","646","647","649","650","651","655","656","657","658","659","660","661","662","664","667","669","670","671","672","677","678","679","680","681","682","683","684","688","689","700","701","702","703","704","705","706","707","708","709","710","712","713","714","715","716","717","718","719","720","721","724","725","726","727","730","731","732","734","737","740","742","743","747","753","754","757","758","760","762","763","764","765","767","769","770","771","772","773","774","775","778","779","780","781","782","784","785","786","787","800","801","802","803","804","805","806","807","808","809","810","812","813","814","815","816","817","818","819","820","825","826","828","829","830","831","832","833","835","838","839","840","843","844","845","847","848","849","850","854","855","856","857","858","859","860","862","863","864","865","866","867","868","869","870","872","873","876","877","878","879","888","900","901","902","903","904","905","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","927","928","929","930","931","932","934","935","936","937","938","939","940","941","943","945","947","948","949","951","952","954","956","959","970","971","972","973","975","978","979","980","983","984","985","986","989"]}function na(e,t){var o;let r="productInterest-reqError",n=(o=e.querySelector("div#productInterestSection"))==null?void 0:o.parentElement;if(!n)return;let i=e.querySelector("#"+r);i||(i=document.createElement("div"),i.id=r,i.style.color="red",i.style.fontSize="0.9rem",i.textContent="Required",n.appendChild(i)),t?(n.style.border="1px solid red",i.hidden=!1):(n.style.border="none",i.hidden=!0)}function Ci(){for(var e=1,t,r="";e<=15;e++)r+=(t=localStorage.getItem("bdcAbTest"+e))?t+" ":"";return r}function Lw(e){let t=e.parentElement.querySelector(".w-form-done");t&&(t.style.display="initial"),e.style.display="none"}function On(e,t=!0){!e||!(e instanceof HTMLInputElement)||e.disabled!==t&&([e.value,e.dataset.wait]=[e.dataset.wait||"Processing...",e.value],e.disabled=t)}function Ai(e){On(e,!1)}function Pw(e){let t=e.querySelector("#accountingSoftwareContainer");if(!t)return;let r=t.querySelector("select#accountingSoftware");if(!r)return;let n=Dr(e),i=n!==null,o=ia(e)||i&&!n.includes("A");t.classList.toggle("hide",o),r.disabled=o,r.dispatchEvent(new Event("change"))}function Dr(e){let t=e.querySelectorAll("input[name=productInterestCheckbox]");if(!t.length)return null;let r="";return t.forEach(n=>
10{n.checked&&(r+=n.value)}),r}function Dw(e){let t=Dr(e);if(t===null)return null;let r=2;return Array.from({length:t.length/r}).map((n,i)=>t.slice(i*r,i*r+r))}function ia(e){var r,n;let t=((r=e.querySelector("select[name=formoptions]"))==null?void 0:r.value)||((n=e.querySelector("input[name=formoptions]:checked"))==null?void 0:n.value)||e.dataset.signupForm||"direct";return["console","wmanagement"].includes(t)}function qw(e){var t;return((t=e==null?void 0:e.signupType)==null?void 0:t.value)==="invite"}var Fw=["hidden","radio","submit","button"];function Uw(e){let t=B.getUserData()||{};for(let r=0;r<e.elements.length;r++){let n=e.elements[r];n.nodeName!=="INPUT"||Fw.includes(n.type)||(n.type==="checkbox"?t[n.id]=n.checked:t[n.name]=n.value)}B.setUserData(t)}function ki(e){let t=B.getUserData();if(!(!t||!e))for(let r=0;r<e.elements.length;r++){let n=e.elements[r];if(!(n.nodeName!=="INPUT"||Fw.includes(n.type)))if(n.type==="checkbox"){let i=t[n.id];i!==void 0&&(n.checked=i,Nw(n))}else{let i=t[n.name];i&&(n.value=i,Nw(n))}}}function Ou(e){let t=e.querySelector("[name=numberOfEmployees]");return t?Number(t.value):null}function qr(e){let t=new FormData(e),r={};e.querySelectorAll("[data-mkto-field]").forEach(a=>{let s=a.dataset.mktoField,u=t.get(a.name);s&&u&&(r[s]=u)}),e.querySelectorAll("[data-mkto-field-merge]").forEach(a=>{let s=a.dataset.mktoFieldMerge,u=t.get(a.name);!s||!u||(r[s]||(r[s]=""),r[s]+=`${a.name}=${u};`)}),t.get("formoptions")==="console"&&(r.Type__c="Accounting"),t.get("firmtype")==="wmanagement"&&(r.Firm_Type__c="Wealth Management");let[,n]=yp(t)||[];n&&(r.Accounting_Package__c=n);let i=e.dataset.offerId||B.getOfferId();i&&(r[Ii]=i);let o=Ci();return o.length&&(r[Mw]=o.trim()),r}function yp(e){let r=e.get("accountingSoftware");return r?(r==="msdynamics"&&(r=e.get("msDynamicsOption")),[r,{qboe2:"QuickBooks Online",qbd:"QuickBooks Pro/Premier",qbe:"QuickBooks Enterprise",xero2:"Xero",netsuite2:"NetSuite",intacct2:"Intacct",acumatica:"Acumatica",blackbaud:"Blackbaud",sap:"SAP",sageplus:"Sage (200/300/ERP)",freshbooks:"Freshbooks",qbmac:"QuickBooks for Mac",quicken:"Quicken",sage100:"Sage 100",sage50:"Sage 50",reuters:"Thomson Reuters",yardi:"Yardi",other:"Other",none:"None",unknown:"I don't know",msdynamicsgp:"MS Dynamics GP",rillet:"Rillet",msdynamicsbizcentral:"MS Dynamics 365 Business Central",msdynamics:"MS Dynamics (AX, NAV, SL, 365 F&O)"}[r]]):null}function Nw(e){if("dispatchEvent"in e){let t=new Event("change",{bubbles:!0});e.dispatchEvent(t)}}function Zt(e,t,r){if(!r)return;let n=e.elements.namedItem(t),i=n instanceof HTMLInputElement,o=i?n:document.createElement("input");o.setAttribute("type","hidden"),o.setAttribute("name",t),o.setAttribute("value",r),i||e.appendChild(o)}function e4(e){let t=e.dataset.offerId||B.getOfferId();Zt(e,Ii,t||null)}function t4(e){var r;return((r=e.dataset.formType)==null?void 0:r.trim())||null}function r4(e){let t=t4(e);Zt(e,J3,t)}function n4(e){let t=Dr(e),r=t&&t.length>0?t:null;Zt(e,Z3,r)}function i4(e){let t=Ci();Zt(e,Mw,t.length?t.trim():null)}function gr(e){e4(e),r4(e),n4(e),i4(e)}var _p=class{logError(t,r){let n=new Error(t);Ze.addError(n,r)}logInfo(t,r){Ze.addAction("Info: "+t,r)}logWarning(t,r){Ze.addAction("Warning: "+t,r)}log(t,r){Ze.addAction(t,r)}setGlobalContext(t,r){Ze.setGlobalContextProperty(t,r)}},K=new _p;var bp=class{constructor(){this.loadedScripts=new Map}loadScript(t,r={async:!0}){let n=this.loadedScripts.get(t);if(!n){let i=performance.now();n=new Promise((o,a)=>{let s=document.createElement("script");s.onerror=()=>u("error event","Failed to load script"),s.onabort=()=>u("abort event","Script loading aborted"),s.onload=o,s.type="text/javascript",s.async=!!r.async,s.defer=!!r.defer,r.oneTrustIgnore&&s.setAttributeNode(document.createAttribute("data-ot-ignore")),r.class&&s.setAttribute("class",r.class),s.src=t,document.getElementsByTagName("head")[0].appendChild(s);let u=(c,l)=>{let f=Math.round(performance.now()-i);K.logError(l,{errorType:c,loadTimeMs:f}),this.loadedScripts.delete(t),a(`${l}: ${t}`)}}),this.loadedScripts.set(t,n)}return n}},Cu=new bp;var Cn="LD_BookIt_Log_ID__c",Fr=class e{constructor(t){this.bookit=t}static tryInit(){let t=document.querySelector("form[data-ldbookit]"),r=t==null?void 0:t.dataset.ldbookit;if(!r)return null;let n=Cu.loadScript("https://cdn.leandata.com/js-snippet/ld-book-v2.js").then(()=>window.LDBookItV2).then(i=>(i.initialize(ve.leanDataBookitOrgId,r,Cn,{skipSubmissionConfirmation:!0}),i));return new e(n)}getLeanDataId(){return this.bookit.then(t=>t.getUniqueId())}submit(t){return Z(this,null,function*(){let r=t.Email?Rw(t.Email):Promise.resolve({}),[n,i]=yield Promise.all([this.bookit,r]),o=new Promise((f,d)=>{window.addEventListener("message",p=>{p.data.message==="LD_POPUP_CLOSED"?d():p.data.message==="LD_POST_BOOKING_IMMEDIATE"&&f()})}),{name:a,tags:s,category:u,metric:c,geo:l}=i;return n.submit({formData:jn(Se({},t),{title:a,employeeCount:c==null?void 0:c.employees,annualRevenue:c==null?void 0:c.annualRevenue,tags:s,industry:u==null?void 0:u.industry,sector:u==null?void 0:u.sector,country:l==null?void 0:l.country})}),o})}};function oa(n){return Z(this,arguments,function*(e,t=Ke.anonymousId()||crypto.randomUUID(),r={}){var u,c,l;let i=`${ve.ffaas}?op=GetMarketingFlag&flagName=${e}`,o={"content-type":"application/json"},a=JSON.stringify({operationName:"MarketingFlag",variables:{flag:e,orgId:t,orgProps:r},query:`query MarketingFlag($flag: String!, $orgId: String!, $orgProps: FfaasOrgProperties!) {
11  getFlag(flag: $flag, orgId: $orgId, orgProps: $orgProps) {
12 feature_flag {
13 data
14 }
15}
16}`}),s=yield fetch(i,{headers:o,body:a,method:"POST"}).then(f=>{if(!f.ok)throw new Error(`HTTP error! Status: ${f.status}`);return f.json()}).catch(f=>{K.logError("FFAAS fetch failed",{flag:e,error:f.message})});return((l=(c=(u=s==null?void 0:s.data)==null?void 0:u.getFlag)==null?void 0:c.feature_flag)==null?void 0:l.data[e])||!1})}var Sp=class{submitConverstion(t,r,n){return fetch("/api/partnerstack/conversion",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({xid:r,email:t,utmCampaign:n})}).then(i=>i.ok?i.json().then(o=>o.customerKey):i.text().then(o=>Promise.reject(o)))}},jw=new Sp;V();et();function gT(e,t,r,n){var i,o=[e,t,r,n],a=Ie(e)?e.event:e;if(!a||!yr(a))throw new Error("Event missing");var s=Ie(e)?(i=e.properties)!==null&&i!==void 0?i:{}:Ie(t)?t:{},u={};An(r)||(u=r!=null?r:{}),Ie(e)&&!An(t)&&(u=t!=null?t:{});var c=o.find(An);return[a,s,u,c]}function Dp(e,t,r,n,i){var o,a,s=null,u=null,c=[e,t,r,n,i],l=c.filter(yr);l[0]!==void 0&&l[1]!==void 0&&(s=l[0],u=l[1]),l.length===1&&(s=null,u=l[0]);var f=c.find(An),d=c.filter(function(m){return u===null?Ie(m):Ie(m)||m===null}),p=(o=d[0])!==null&&o!==void 0?o:{},v=(a=d[1])!==null&&a!==void 0?a:{};return[s,u,p,v,f]}var qp=function(e){return function(){for(var t,r,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],u=0,c=i;u<c.length;u++){var l=c[u],f=s.pop();if(f==="id"){if(yr(l)||ku(l)){a.id=l.toString();continue}if(l==null)continue;f=s.pop()}if((f==="traits"||f==="options")&&(l==null||Ie(l))&&(a[f]=l),An(l)){a.callback=l;break}}return[(t=a.id)!==null&&t!==void 0?t:e.id(),(r=a.traits)!==null&&r!==void 0?r:{},(n=a.options)!==null&&n!==void 0?n:{},a.callback]}};function yT(e,t,r,n){ku(e)&&(e=e.toString()),ku(t)&&(t=t.toString());var i=[e,t,r,n],o=i.filter(yr),a=o[0],s=a===void 0?e:a,u=o[1],c=u===void 0?null:u,l=i.filter(Ie)[0],f=l===void 0?{}:l,d=i.find(An);return[s,c,f,d]}Mi();Qt();et();kn();V();Mu();et();var xT="bpc",wT=function(e,t,r,n,i,o){return{__t:xT,c:t,p:n,u:e,s:r,t:i,r:o}},_4=Object.keys(wT("","","","","",""));function TT(e){if(!Ie(e)||e.__t!==xT)return!1;for(var t in e)if(!_4.includes(t))return!1;return!0}var b4=function(e,t){return e.indexOf("?")>-1?e:e+t},S4=function(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)},E4=function(e){try{return new URL(e).pathname}catch(t){return e[0]==="/"?e:"/"+e}},Vp=function(e){var t=e.c,r=e.p,n=e.s,i=e.u,o=e.r,a=e.t,s=t?E4(t):r,u=t?b4(t,n):S4(i);return{path:s,referrer:o,search:n,title:a,url:u}},zp=function(){var e=document.querySelector("link[rel='canonical']");return wT(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},IT=function(){return Vp(zp())};V();V();function OT(e,t){return Object.assign.apply(Object,W([{}],t.map(function(r){var n;if(e&&Object.prototype.hasOwnProperty.call(e,r))return n={},n[r]=e[r],n}),!1))}var Nn=function(e,t){t===void 0&&(t=IT());var r=e.context,n;e.type==="page"&&(n=e.properties&&OT(e.properties,Object.keys(t)),e.properties=E(E(E({},t),e.properties),e.name?{name:e.name}:{})),r.page=E(E(E({},t),n),r.page)};et();var CT=function(e){re(t,e);function t(r){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat(Ni())},onEventMethodCall:function(i){var o=i.options;n.maybeUpdateAnonId(o)},onFinishedEvent:function(i){return n.addIdentity(i),i}})||this;return n.user=r,n}return t.prototype.maybeUpdateAnonId=function(r){r!=null&&r.anonymousId&&this.user.anonymousId(r.anonymousId)},t.prototype.addIdentity=function(r){this.user.id()&&(r.userId=this.user.id()),this.user.anonymousId()&&(r.anonymousId=this.user.anonymousId())},t.prototype.track=function(r,n,i,o,a){var s=e.prototype.track.call(this,r,n,i,o);return Nn(s,a),s},t.prototype.page=function(r,n,i,o,a,s){var u=e.prototype.page.call(this,r,n,i,o,a);return Nn(u,s),u},t.prototype.screen=function(r,n,i,o,a,s){var u=e.prototype.screen.call(this,r,n,i,o,a);return Nn(u,s),u},t.prototype.identify=function(r,n,i,o,a){var s=e.prototype.identify.call(this,r,n,i,o);return Nn(s,a),s},t.prototype.group=function(r,n,i,o,a){var s=e.prototype.group.call(this,r,n,i,o);return Nn(s,a),s},t.prototype.alias=function(r,n,i,o,a){var s=e.prototype.alias.call(this,r,n,i,o);return Nn(s,a),s},t}(Ww);var AT=function(e){return"addMiddleware"in e&&e.type==="destination"};V();pa();et();Mi();var NT=function(e){re(t,e);function t(r){return e.call(this,typeof r=="string"?new Br(4,r):r)||this}return t.prototype.flush=function(){return I(this,void 0,void 0,function(){return O(this,function(r){return st()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(fT);V();Mu();function qi(e){for(var t=e.constructor.prototype,r=0,n=Object.getOwnPropertyNames(t);r<n.length;r++){var i=n[r];if(i!=="constructor"){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i
vendor: 16,605 bytes, line 16
16);o&&typeof o.value=="function"&&(e[i]=e[i].bind(e))}}return e}V();function Vu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var I4={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Gp(e,t){function r(i,o,a){if(typeof document!="undefined"){a=Vu({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var u in a)a[u]&&(s+="; "+u,a[u]!==!0&&(s+="="+a[u].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+s}}function n(i){if(!(typeof document=="undefined"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var u=o[s].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(a[l]=e.read(c,l),i===l)break}catch(f){}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",Vu({},o,{expires:-1}))},withAttributes:function(i){return Gp(this.converter,Vu({},this.attributes,i))},withConverter:function(i){return Gp(Vu({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var O4=Gp(I4,{path:"/"}),Et=O4;function C4(e){var t=e.hostname,r=t.split("."),n=r[r.length-1],i=[];if(r.length===4&&parseInt(n,10)>0||r.length<=1)return i;for(var o=r.length-2;o>=0;--o)i.push(r.slice(o).join("."));return i}function A4(e){try{return new URL(e)}catch(t){return}}function zu(e){var t=A4(e);if(t)for(var r=C4(t),n=0;n<r.length;++n){var i="__tld__",o=r[n],a={domain:"."+o};try{if(Et.set(i,"1",a),Et.get(i))return Et.remove(i,a),o}catch(s){return}}}var k4=365,Hu=function(){function e(t){t===void 0&&(t=e.defaults),this.options=E(E({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:k4,domain:zu(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(t){var r;try{var n=Et.get(t);if(n==null)return null;try{return(r=JSON.parse(n))!==null&&r!==void 0?r:null}catch(i){return n!=null?n:null}}catch(i){return null}},e.prototype.set=function(t,r){typeof r=="string"?Et.set(t,r,this.opts()):r===null?Et.remove(t,this.opts()):Et.set(t,JSON.stringify(r),this.opts())},e.prototype.remove=function(t){return Et.remove(t,this.opts())},e}();var MT=function(){function e(){}return e.prototype.localStorageWarning=function(t,r){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(r))},e.prototype.get=function(t){var r;try{var n=localStorage.getItem(t);if(n===null)return null;try{return(r=JSON.parse(n))!==null&&r!==void 0?r:null}catch(i){return n!=null?n:null}}catch(i){return this.localStorageWarning(t,"unavailable"),null}},e.prototype.set=function(t,r){try{localStorage.setItem(t,JSON.stringify(r))}catch(n){this.localStorageWarning(t,"full")}},e.prototype.remove=function(t){try{return localStorage.removeItem(t)}catch(r){this.localStorageWarning(t,"unavailable")}},e}();var Fi=function(){function e(){this.cache={}}return e.prototype.get=function(t){var r;return(r=this.cache[t])!==null&&r!==void 0?r:null},e.prototype.set=function(t,r){this.cache[t]=r},e.prototype.remove=function(t){delete this.cache[t]},e}();var Re={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"};function Gu(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(t){return Object.values(Re).includes(t)})}function LT(e){return typeof e=="object"&&e.name!==void 0}var Kp=function(e,t,r,n){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(r,'" | Err: ').concat(n))},tr=function(){function e(t){this.stores=t}return e.prototype.get=function(t){for(var r=null,n=0,i=this.stores;n<i.length;n++){var o=i[n];try{if(r=o.get(t),r!=null)return r}catch(a){Kp(o,"get",t,a)}}return null},e.prototype.set=function(t,r){this.stores.forEach(function(n){try{n.set(t,r)}catch(i){Kp(n,"set",t,i)}})},e.prototype.clear=function(t){this.stores.forEach(function(r){try{r.remove(t)}catch(n){Kp(r,"remove",t,n)}})},e.prototype.getAndSync=function(t){var r=this.get(t),n=typeof r=="number"?r.toString():r;return this.set(t,n),n},e}();function va(e){var t=e.map(function(r){var n,i;switch(LT(r)?(n=r.name,i=r.settings):n=r,n){case Re.Cookie:return new Hu(i);case Re.LocalStorage:return new MT;case Re.Memory:return new Fi;default:throw new Error("Unknown Store Type: ".concat(r))}});return t}function Ku(e,t){return e.map(function(r){return t&&r===Re.Cookie?{name:r,settings:t}:r})}var Mn={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},Wp=function(){function e(t,r){t===void 0&&(t=Mn);var n=this,i,o,a,s;this.options={},this.id=function(c){if(n.options.disable)return null;var l=n.identityStore.getAndSync(n.idKey);if(c!==void 0){n.identityStore.set(n.idKey,c);var f=c!==l&&l!==null&&c!==null;f&&n.anonymousId(null)}var d=n.identityStore.getAndSync(n.idKey);if(d)return d;var p=n.legacyUserStore.get(Mn.cookie.oldKey);return p?typeof p=="object"?p.id:p:null},this.anonymousId=function(c){var l,f;if(n.options.disable)return null;if(c===void 0){var d=(l=n.identityStore.getAndSync(n.anonKey))!==null&&l!==void 0?l:(f=n.legacySIO())===null||f===void 0?void 0:f[0];if(d)return d}return c===null?(n.identityStore.set(n.anonKey,null),n.identityStore.getAndSync(n.anonKey)):(n.identityStore.set(n.anonKey,c!=null?c:Ni()),n.identityStore.getAndSync(n.anonKey))},this.traits=function(c){var l;if(!n.options.disable)return c===null&&(c={}),c&&n.traitsStore.set(n.traitsKey,c!=null?c:{}),(l=n.traitsStore.get(n.traitsKey))!==null&&l!==void 0?l:{}},this.options=E(E({},Mn),t),this.cookieOptions=r,this.idKey=(o=(i=t.cookie)===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:Mn.cookie.key,this.traitsKey=(s=(a=t.localStorage)===null||a===void 0?void 0:a.key)!==null&&s!==void 0?s:Mn.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,r),this.legacyUserStore=this.createStorage(this.options,r,function(c){return c===Re.Cookie}),this.traitsStore=this.createStorage(this.options,r,function(c){return c!==Re.Cookie});var u=this.legacyUserStore.get(Mn.cookie.oldKey);u&&typeof u=="object"&&(u.id&&this.id(u.id),u.traits&&this.traits(u.traits)),qi(this)}return e.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var r=t.split("----"),n=r[0],i=r[1];return[n,i]},e.prototype.identify=function(t,r){if(!this.options.disable){r=r!=null?r:{};var n=this.id();(n===null||n===t)&&(r=E(E({},this.traits()),r)),t&&this.id(t),this.traits(r)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(t,r,n){var i=[Re.LocalStorage,Re.Cookie,Re.Memory];return t.disable?new tr([]):t.persist?(t.storage!==void 0&&t.storage!==null&&Gu(t.storage)&&(i=t.storage.stores),t.localStorageFallbackDisabled&&(i=i.filter(function(o){return o!==Re.LocalStorage})),n&&(i=i.filter(n)),new tr(va(Ku(i,r)))):new tr([new Fi])},e.defaults=Mn,e}();var DT={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},qT=function(e){re(t,e);function t(r,n){r===void 0&&(r=DT);var i=e.call(this,E(E({},DT),r),n)||this;return i.anonymousId=function(o){},qi(i),i}return t}(Wp);pa();fa();da();qu();ha();V();var jT=function(e){return typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"};fa();ha();Fu();var BT=function(e,t,r){r.getAndRemove(e).forEach(function(n){Wu(t,n).catch(console.error)})},VT=function(e,t){return I(void 0,void 0,void 0,function(){var r,n,i;return O(this,function(o){switch(o.label){case 0:r=0,n=t.getAndRemove("addSourceMiddleware"),o.label=1;case 1:return r<n.length?(i=n[r],[4,Wu(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},zT=function(e,t){return I(void 0,void 0,void 0,function(){var r,n,i;return O(this,function(o){switch(o.label){case 0:r=0,n=t.getAndRemove("register"),o.label=1;case 1:return r<n.length?(i=n[r],[4,Wu(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},HT=BT.bind(void 0,"on"),GT=BT.bind(void 0,"setAnonymousId"),KT=function(e,t){Object.keys(t.calls).forEach(function(r){t.getAndRemove(r).forEach(function(n){setTimeout(function(){Wu(e,n).catch(console.error)},0)})})},Ln=function(e){if(WT(e)){var t=e.pop();return Vp(t)}},WT=function(e){var t=e[e.length-1];return TT(t)},ga=function(){function e(t,r,n,i){n===void 0&&(n=function(){}),i===void 0&&(i=console.error),this.method=t,this.resolve=n,this.reject=i,this.called=!1,this.args=r}return e}();var R4=function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._callMap={},this.add.apply(this,t)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(t){this._callMap=t},enumerable:!1,configurable:!0}),e.prototype.get=function(t){var r;return(r=this.calls[t])!==null&&r!==void 0?r:[]},e.prototype.getAndRemove=function(t){var r=this.get(t);return this.calls[t]=[],r},e.prototype.add=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];r.forEach(function(i){var o=["track","screen","alias","group","page","identify"];o.includes(i.method)&&!WT(i.args)&&(i.args=W(W([],i.args,!0),[zp()],!1)),t.calls[i.method]?t.calls[i.method].push(i):t.calls[i.method]=[i]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if(Di()!=="npm"){var t=ma();if(Array.isArray(t)){var r=t.splice(0,t.length),n=r.map(function(i){var o=i[0],a=i.slice(1);return new ga(o,a)});this.add.apply(this,n)}}},e}();function Wu(e,t){return I(this,void 0,void 0,function(){var r,n;return O(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,r=e[t.method].apply(e,t.args),jT(r)?[4,r]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(r),[3,4];case 3:return n=i.sent(),t.reject(n),[3,4];case 4:return[2]}})})}var $T=function(){function e(t){var r=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=Sr,this._preInitBuffer=new R4,this._promise=t(this._preInitBuffer),this._promise.then(function(n){var i=n[0],o=n[1];r.instance=i,r.ctx=o}).catch(function(){})}return e.prototype.then=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).then.apply(t,r)},e.prototype.catch=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).catch.apply(t,r)},e.prototype.finally=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).finally.apply(t,r)},e.prototype._createMethod=function(t){var r=this;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(r.instance){var a=(n=r.instance)[t].apply(n,i);return Promise.resolve(a)}return new Promise(function(s,u){r._preInitBuffer.add(new ga(t,i,s,u))})}},e.prototype._createChainableMethod=function(t){var r=this;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return r.instance?((n=r.instance)[t].apply(n,i),r):(r._preInitBuffer.add(new ga(t,i)),r)}},e}();V();Mi();da();pa();gv();V();la();var CI=function(e){var t=!1;window.addEventListener("pagehide",function(){t||(t=!0,e(t))}),document.addEventListener("visibilitychange",function(){if(document.visibilityState=="hidden"){if(t)return;t=!0}else t=!1;e(t)})};V();var Qu=function(e){re(t,e);function t(r,n){var i=e.call(this,r)||this;return i.retryTimeout=n,i.name="RateLimitError",i}return t}(Error);Qt();var bj=500,Sj=64;function yv(e){var t=encodeURI(JSON.stringify(e)).split(/%..|./).length-1;return t/1024}function Ej(e){return yv(e)>=bj-50}function xj(e){return yv(e)>=Sj-10}function wj(e){var t=[],r=0;return e.forEach(function(n){var i=yv(t[r]);i>=64&&r++,t[r]?t[r].push(n):t[r]=[n]}),t}function _v(e,t){var r,n,i=[],o=!1,a=(r=t==null?void 0:t.size)!==null&&r!==void 0?r:10,s=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:5e3,u=0;function c(v){var m;if(v.length!==0){var h=(m=v[0])===null||m===void 0?void 0:m.writeKey,y=v.map(function(_){var S=_,w=S.sentAt,x=Au(S,["sentAt"]);return x});return jr("https://".concat(e,"/b"),{keepalive:(t==null?void 0:t.keepalive)||o,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:h,batch:y,sentAt:new Date().toISOString()})}).then(function(_){var S;if(_.status>=500)throw new Error("Bad response from server: ".concat(_.status));if(_.status===429){var w=(S=_.headers)===null||S===void 0?void 0:S.get("x-ratelimit-reset"),x=typeof w=="string"?parseInt(w)*1e3:s;throw new Qu("Rate limit exceeded: ".concat(_.status),x)}})}}function l(v){var m;return v===void 0&&(v=1),I(this,void 0,void 0,function(){var h;return O(this,function(y){return i.length?(h=i,i=[],[2,(m=c(h))===null||m===void 0?void 0:m.catch(function(_){var S,w=De.system();w.log("error","Error sending batch",_),v<=((S=t==null?void 0:t.maxRetries)!==null&&S!==void 0?S:10)&&(_.name==="RateLimitError"&&(u=_.retryTimeout),i.push.apply(i,h),i.map(function(x){if("_metadata"in x){var T=x;T._metadata=E(E({},T._metadata),{retryCount:v})}}),d(v+1))})]):[2]})})}var f;function d(v){v===void 0&&(v=1),!f&&(f=setTimeout(function(){f=void 0,l(v).catch(console.error)},u||s),u=0)}CI(function(v){if(o=v,o&&i.length){var m=wj(i).map(c);Promise.all(m).catch(console.error)}});function p(v,m){return I(this,void 0,void 0,function(){var h;return O(this,function(y){return i.push(m),h=i.length>=a||Ej(i)||(t==null?void 0:t.keepalive)&&xj(i),[2,h||o?l():d()]})})}return{dispatch:p}}la();function AI(e){function t(r,n){return jr(r,{keepalive:e==null?void 0:e.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(n)}).then(function(i){var o;if(i.status>=500)throw new Error("Bad response from server: ".concat(i.status));if(i.status===429){var a=(o=i.headers)===null||o===void 0?void 0:o.get("x-ratelimit-reset"),s=a?parseInt(a)*1e3:5e3;throw new Qu("Rate limit exceeded: ".concat(i.status),s)}})}return{dispatch:t}}V();function kI(e,t,r,n,i){var o,a=e.user();delete t.options,t.writeKey=r==null?void 0:r.apiKey,t.userId=t.userId||a.id(),t.anonymousId=t.anonymousId||a.anonymousId(),t.sentAt=new Date;var s=e.queue.failedInitializations||[];s.length>0&&(t._metadata={failedInitializations:s}),i!=null&&(i.attempts>1&&(t._metadata=E(E({},t._metadata),{retryCount:i.attempts})),i.attempts++);var u=[],c=[];for(var l in n){var f=n[l];l==="Segment.io"&&u.push(l),f.bundlingStatus==="bundled"&&u.push(l),f.bundlingStatus==="unbundled"&&c.push(l)}for(var d=0,p=(r==null?void 0:r.unbundledIntegrations)||[];d<p.length;d++){var v=p[d];c.includes(v)||c.push(v)}var m=(o=r==null?void 0:r.maybeBundledConfigIds)!==null&&o!==void 0?o:{},h=[];return u.sort().forEach(function(y){var _;
vendor: 4,793 bytes, line 16
16((_=m[y])!==null&&_!==void 0?_:[]).forEach(function(S){h.push(S)})}),(r==null?void 0:r.addBundledMetadata)!==!1&&(t._metadata=E(E({},t._metadata),{bundled:u.sort(),unbundled:c.sort(),bundledIds:h})),t}V();Mi();Qt();et();bv();function Tj(e,t){return I(this,void 0,void 0,function(){var r,n=this;return O(this,function(i){switch(i.label){case 0:return r=[],st()?[2,t]:[4,ec(function(){return t.length>0&&!st()},function(){return I(n,void 0,void 0,function(){var o,a,s;return O(this,function(u){switch(u.label){case 0:return o=t.pop(),o?[4,br(o,e)]:[2];case 1:return a=u.sent(),s=a instanceof De,s||r.push(o),[2]}})})})];case 1:return i.sent(),r.map(function(o){return t.pushWithBackoff(o)}),[2,t]}})})}function Un(e,t,r,n){var i=this;e||setTimeout(function(){return I(i,void 0,void 0,function(){var o,a;return O(this,function(s){switch(s.label){case 0:return o=!0,[4,Tj(r,t)];case 1:return a=s.sent(),o=!1,t.todo>0&&n(o,a,r,n),[2]}})})},Math.random()*5e3)}Up();function Ij(e,t){var r,n,i,o,a=e.user();return t.previousId=(i=(n=(r=t.previousId)!==null&&r!==void 0?r:t.from)!==null&&n!==void 0?n:a.id())!==null&&i!==void 0?i:a.anonymousId(),t.userId=(o=t.userId)!==null&&o!==void 0?o:t.to,delete t.from,delete t.to,t}var RI=function(e){return e.name==="Segment.io"};function PI(e,t,r){var n,i,o;window.addEventListener("pagehide",function(){s.push.apply(s,Array.from(u)),u.clear()});var a=(n=t==null?void 0:t.apiKey)!==null&&n!==void 0?n:"",s=e.options.disableClientPersistence?new _r(e.queue.queue.maxAttempts,[]):new Br(e.queue.queue.maxAttempts,"".concat(a,":dest-Segment.io")),u=new Set,c=!1,l=(i=t==null?void 0:t.apiHost)!==null&&i!==void 0?i:Uu,f=(o=t==null?void 0:t.protocol)!==null&&o!==void 0?o:"https",d="".concat(f,"://").concat(l),p=t==null?void 0:t.deliveryStrategy,v=(p==null?void 0:p.strategy)==="batching"?_v(l,p.config):AI(p==null?void 0:p.config);function m(y){return I(this,void 0,void 0,function(){var _,S;return O(this,function(w){return st()?(s.push(y),Un(c,s,h,Un),[2,y]):(u.add(y),_=y.event.type.charAt(0),S=Zi(y.event).json(),y.event.type==="track"&&delete S.traits,y.event.type==="alias"&&(S=Ij(e,S)),[2,v.dispatch("".concat(d,"/").concat(_),kI(e,S,t,r,y)).then(function(){return y}).catch(function(x){if(y.log("error","Error sending event",x),x.name==="RateLimitError"){var T=x.retryTimeout;s.pushWithBackoff(y,T)}else s.pushWithBackoff(y);return Un(c,s,h,Un),y}).finally(function(){u.delete(y)})])})})}var h={metadata:{writeKey:a,apiHost:l,protocol:f},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:m,identify:m,page:m,alias:m,group:m,screen:m};return s.todo&&Un(c,s,h,Un),h}var Gr="This is being deprecated and will be not be available in future releases of Analytics JS",xv=Li(),wv=xv==null?void 0:xv.analytics;function Nj(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=t?10:1,i=r?new _r(n,[]):new Br(n,e);return new NT(i)}var Mj=function(){function e(t,r){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var i;return(i=r.plugins.find(RI))===null||i===void 0?void 0:i.metadata},this.writeKey=t.writeKey,this.cdnSettings=(n=t.cdnSettings)!==null&&n!==void 0?n:{integrations:{},edgeFunction:{}},this.cdnURL=t.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var t,r;return(r=(t=this._getSegmentPluginMetadata)===null||t===void 0?void 0:t.call(this))===null||r===void 0?void 0:r.apiHost},enumerable:!1,configurable:!0}),e}();function nr(){console.warn(Gr)}var Tv=function(e){re(t,e);function t(r,n,i,o,a){var s=this,u,c;s=e.call(this)||this,s._debug=!1,s.initialized=!1,s.user=function(){return s._user},s.init=s.initialize.bind(s),s.log=nr,s.addIntegrationMiddleware=nr,s.listeners=nr,s.addEventListener=nr,s.removeAllListeners=nr,s.removeListener=nr,s.removeEventListener=nr,s.hasListeners=nr,s.add=nr,s.addIntegration=nr;var l=n==null?void 0:n.cookie,f=(u=n==null?void 0:n.disableClientPersistence)!==null&&u!==void 0?u:!1;s.queue=i!=null?i:Nj("".concat(r.writeKey,":event-queue"),n==null?void 0:n.retryQueue,f),s.settings=new Mj(r,s.queue);var d=n==null?void 0:n.storage;return s._universalStorage=s.createStore(f,d,l),s._user=o!=null?o:new Wp(E({persist:!f,storage:n==null?void 0:n.storage},n==null?void 0:n.user),l).load(),s._group=a!=null?a:new qT(E({persist:!f,storage:n==null?void 0:n.storage},n==null?void 0:n.group),l).load(),s.eventFactory=new CT(s._user),s.integrations=(c=n==null?void 0:n.integrations)!==null&&c!==void 0?c:{},s.options=n!=null?n:{},qi(s),s}return t.prototype.createStore=function(r,n,i){return r?new tr([new Fi]):n&&Gu(n)?new tr(va(Ku(n.stores,i))):new tr(va([Re.LocalStorage,{name:Re.Cookie,settings:i},Re.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage}
vendor: 15,934 bytes, line 16
16,enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f=this;return O(this,function(d){return i=Ln(r),o=gT.apply(void 0,r),a=o[0],s=o[1],u=o[2],c=o[3],l=this.eventFactory.track(a,s,u,this.integrations,i),[2,this._dispatch(l,c).then(function(p){return f.emit("track",a,p.event.properties,p.event.options),p})]})})},t.prototype.page=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f,d=this;return O(this,function(p){return i=Ln(r),o=Dp.apply(void 0,r),a=o[0],s=o[1],u=o[2],c=o[3],l=o[4],f=this.eventFactory.page(a,s,u,c,this.integrations,i),[2,this._dispatch(f,l).then(function(v){return d.emit("page",a,s,v.event.properties,v.event.options),v})]})})},t.prototype.identify=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f=this;return O(this,function(d){return i=Ln(r),o=qp(this._user).apply(void 0,r),a=o[0],s=o[1],u=o[2],c=o[3],this._user.identify(a,s),l=this.eventFactory.identify(this._user.id(),this._user.traits(),u,this.integrations,i),[2,this._dispatch(l,c).then(function(p){return f.emit("identify",p.event.userId,p.event.traits,p.event.options),p})]})})},t.prototype.group=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=Ln(n);if(n.length===0)return this._group;var a=qp(this._group).apply(void 0,n),s=a[0],u=a[1],c=a[2],l=a[3];this._group.identify(s,u);var f=this._group.id(),d=this._group.traits(),p=this.eventFactory.group(f,d,c,this.integrations,o);return this._dispatch(p,l).then(function(v){return r.emit("group",v.event.groupId,v.event.traits,v.event.options),v})},t.prototype.alias=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f=this;return O(this,function(d){return i=Ln(r),o=yT.apply(void 0,r),a=o[0],s=o[1],u=o[2],c=o[3],l=this.eventFactory.alias(a,s,u,this.integrations,i),[2,this._dispatch(l,c).then(function(p){return f.emit("alias",a,s,p.event.options),p})]})})},t.prototype.screen=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f,d=this;return O(this,function(p){return i=Ln(r),o=Dp.apply(void 0,r),a=o[0],s=o[1],u=o[2],c=o[3],l=o[4],f=this.eventFactory.screen(a,s,u,c,this.integrations,i),[2,this._dispatch(f,l).then(function(v){return d.emit("screen",a,s,v.event.properties,v.event.options),v})]})})},t.prototype.trackClick=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o;return O(this,function(a){switch(a.label){case 0:return[4,Promise.resolve().then(()=>(xa(),Ea))];case 1:return i=a.sent(),[2,(o=i.link).call.apply(o,W([this],r,!1))]}})})},t.prototype.trackLink=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o;return O(this,function(a){switch(a.label){case 0:return[4,Promise.resolve().then(()=>(xa(),Ea))];case 1:return i=a.sent(),[2,(o=i.link).call.apply(o,W([this],r,!1))]}})})},t.prototype.trackSubmit=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o;return O(this,function(a){switch(a.label){case 0:return[4,Promise.resolve().then(()=>(xa(),Ea))];case 1:return i=a.sent(),[2,(o=i.form).call.apply(o,W([this],r,!1))]}})})},t.prototype.trackForm=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o;return O(this,function(a){switch(a.label){case 0:return[4,Promise.resolve().then(()=>(xa(),Ea))];case 1:return i=a.sent(),[2,(o=i.form).call.apply(o,W([this],r,!1))]}})})},t.prototype.register=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o,a=this;return O(this,function(s){switch(s.label){case 0:return i=De.system(),o=r.map(function(u){return a.queue.register(i,u,a)}),[4,Promise.all(o)];case 1:return s.sent(),[2,i]}})})},t.prototype.deregister=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return I(this,void 0,void 0,function(){var i,o,a=this;return O(this,function(s){switch(s.label){case 0:return i=De.system(),o=r.map(function(u){var c=a.queue.plugins.find(function(l){return l.name===u});if(c)return a.queue.deregister(i,c,a);i.log("warn","plugin ".concat(u," not found"))}),[4,Promise.all(o)];case 1:return s.sent(),[2,i]}})})},t.prototype.debug=function(r){return r===!1&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=r,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(r){this.settings.timeout=r},t.prototype._dispatch=function(r,n){return I(this,void 0,void 0,function(){var i;return O(this,function(o){return i=new De(r),st()&&!this.options.retryQueue?[2,i]:[2,vT(i,this.queue,this,{callback:n,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(r){return I(this,void 0,void 0,function(){var n=this;return O(this,function(i){switch(i.label){case 0:return[4,this.queue.criticalTasks.run(function(){return I(n,void 0,void 0,function(){var o,a,s;return O(this,function(u){switch(u.label){case 0:return[4,Promise.resolve().then(()=>(tc(),MI))];case 1:return o=u.sent().sourceMiddlewarePlugin,a={},this.queue.plugins.forEach(function(c){if(c.type==="destination")return a[c.name]=!0}),s=o(r,a),[4,this.register(s)];case 2:return u.sent(),[2]}})})})];case 1:return i.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return this.queue.plugins.filter(AT).forEach(function(o){(r==="*"||o.name.toLowerCase()===r.toLowerCase())&&o.addMiddleware.apply(o,n)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(r){return this._user.anonymousId(r)},t.prototype.queryString=function(r){return I(this,void 0,void 0,function(){var n;return O(this,function(i){switch(i.label){case 0:return this.options.useQueryString===!1?[2,[]]:[4,Promise.resolve().then(()=>(qI(),DI))];case 1:return n=i.sent().queryString,[2,n(this,r)]}})})},t.prototype.use=function(r){return r(this),this},t.prototype.ready=function(r){return r===void 0&&(r=function(n){return n}),I(this,void 0,void 0,function(){return O(this,function(n){return[2,Promise.all(this.queue.plugins.map(function(i){return i.ready?i.ready():Promise.resolve()})).then(function(i){return r(i),i})]})})},t.prototype.noConflict=function(){return console.warn(Gr),UT(wv!=null?wv:this),this},t.prototype.normalize=function(r){return console.warn(Gr),this.eventFactory.normalize(r)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(Gr),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return Sr},enumerable:!1,configurable:!0}),t.prototype.initialize=function(r,n){return I(this,void 0,void 0,function(){return O(this,function(i){return console.warn(Gr),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(r){return I(this,void 0,void 0,function(){return O(this,function(n){switch(n.label){case 0:return console.warn(Gr),[4,this.page({path:r})];case 1:return n.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var r;return console.warn(Gr),(r=this._plugins)!==null&&r!==void 0?r:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){console.warn(Gr);var r=this.queue.plugins.filter(function(n){return n.type==="destination"}).reduce(function(n,i){var o="".concat(i.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),a=window[o];if(!a)return n;var s=a.Integration;return s?(n[i.name]=s,n):(n[i.name]=a,n)},{});return r},enumerable:!1,configurable:!0}),t.prototype.push=function(r){var n=this,i=r.shift();i&&!n[i]||n[i].apply(this,r)},t}(Pi);var Iv=function(e){re(t,e);function t(){var r=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return r.initialized=!0,r}return t}(Tv);V();function Ov(){return typeof process=="undefined"||!process.env?{}:process.env}Oa();la();Qt();Cv();kn();V();fa();Fu();Ev();V();function UI(e){return I(this,void 0,void 0,function(){var t;return O(this,function(r){return t=navigator.userAgentData,t?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}var Ca;function Fj(){if(Ca)return Ca;var e=zu(window.location.href);return Ca={expires:31536e6,secure:!1,path:"/"},e&&(Ca.domain=e),Ca}function Uj(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1)),e=e.replace(/\?/g,"&");for(var r=e.split("&"),n=0,i=r;n<i.length;n++){var o=i[n],a=o.split("="),s=a[0],u=a[1];if(t[s])return{id:u,type:t[s]}}}function jj(e){return e.startsWith("?")&&(e=e.substring(1)),e=e.replace(/\?/g,"&"),e.split("&").reduce(function(t,r){var n=r.split("="),i=n[0],o=n[1],a=o===void 0?"":o;if(i.includes("utm_")&&i.length>4){var s=i.slice(4);s==="campaign"&&(s="name"),t[s]=rc(a)}return t},{})}function Bj(){var e=Et.get("_ga");if(e&&e.startsWith("amp"))return e}function Vj(e,t,r){var n,i=new tr(r?[]:[new Hu(Fj())]),o=i.get("s:context.referrer"),a=(n=Uj(e))!==null&&n!==void 0?n:o;a&&(t&&(t.referrer=E(E({},t.referrer),a)),i.set("s:context.referrer",a))}var zj=function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(r){var n=r[0],i=r[1];Array.isArray(i)?i.forEach(function(o){return t.append(n,o)}):t.append(n,i)}),t.toString()}catch(r){return""}},Hj=function(){function e(){var t=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(r,n){return I(t,void 0,void 0,function(){var i,o;return O(this,function(a){switch(a.label){case 0:this.instance=n,a.label=1;case 1:return a.trys.push([1,3,,4]),i=this,[4,UI(this.instance.options.highEntropyValuesClientHints)];case 2:return i.userAgentData=a.sent(),[3,4];case 3:return o=a.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(r){var n,i,o=r.event.context,a=o.page.search||"",s=typeof a=="object"?zj(a):a;o.userAgent=navigator.userAgent,o.userAgentData=t.userAgentData;var u=navigator.userLanguage||navigator.language;typeof o.locale=="undefined"&&typeof u!="undefined"&&(o.locale=u),(n=o.library)!==null&&n!==void 0||(o.library={name:"analytics.js",version:"".concat(Di()==="web"?"next":"npm:next","-").concat(Sr)}),s&&!o.campaign&&(o.campaign=jj(s));var c=Bj();c&&(o.amp={id:c}),Vj(s,o,(i=t.instance.options.disableClientPersistence)!==null&&i!==void 0?i:!1);try{o.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(l){}return r},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich}return e}(),jI=new Hj;V();oc();Oa();tc();Qt();Av();kn();var Gj=function(){function e(t,r){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=Ri(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=r,this.name=t,this.type=r.type,this.alternativeNames.push(r.name)}return e.prototype.addMiddleware=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.type==="destination"&&(t=this.middleware).push.apply(t,r)},e.prototype.transform=function(t){return I(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return[4,wa(this.name,t.event,this.middleware)];case 1:return r=n.sent(),r===null&&t.cancel(new Qe({retry:!1,reason:"dropped by destination middleware"})),[2,new De(r)]}})})},e.prototype._createMethod=function(t){var r=this;return function(n){return I(r,void 0,void 0,function(){var i,o;return O(this,function(a){switch(a.label){case 0:return this.action[t]?(i=n,this.type!=="destination"?[3,2]:[4,this.transform(n)]):[2,n];case 1:i=a.sent(),a.label=2;case 2:return a.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!a.sent())throw new Error("Something prevented the destination from getting ready");return ir(n,{integrationName:this.action.name,methodName:t,type:"action"}),[4,this.action[t](i)];case 4:return a.sent(),[3,6];case 5:throw o=a.sent(),ir(n,{integrationName:this.action.name,methodName:t,type:"action",didError:!0}),o;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return I(this,void 0,void 0,function(){var t;return O(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return r.sent(),[2,!0];case 2:return t=r.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(t,r){return I(this,void 0,void 0,function(){var n,i,o,a;return O(this,function(s){switch(s.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];s.label=1;case 1:return s.trys.push([1,3,,4]),ir(t,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(t,r),o=(i=this.loadPromise).resolve,[4,n];case 2:return o.apply(i,[s.sent()]),[2,n];case 3:throw a=s.sent(),ir(t,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(a),a;case 4:return[2]}})})},e.prototype.unload=function(t,r){var n,i;return(i=(n=this.action).unload)===null||i===void 0?void 0:i.call(n,t,r)},e}();function Kj(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];return e.forEach(function(r){t.forEach(function(n){var i;if(r[n]===void 0)throw new Error("Plugin: ".concat((i=r.name)!==null&&i!==void 0?i:"unknown"," missing required function ").concat(n))})}),!0}function Wj(e,t){var r=e[t.creationName],n=e[t.name];return e.All===!1&&!r&&!n||r===!1||n===!1}function Yj(e,t){return I(this,void 0,void 0,function(){var r,n,i,o,a,s,u;return O(this,function(c){switch(c.label){case 0:if(c.trys.push([0,9,,10]),r=new RegExp("https://cdn.segment.(com|build)"),n=Ta(),!t)return[3,6];i=e.url.split("/"),o=i[i.length-2],a=e.url.replace(o,btoa(o).replace(/=/g,"")),c.label=1;case 1:return c.trys.push([1,3,,5]),[4,Er(a.replace(r,n))];case 2:return c.sent(),[3,5];case 3:return s=c.sent(),[4,Er(e.url.replace(r,n))];case 4:return c.sent(),[3,5];case 5:return[3,8];case 6:return[4,Er(e.url.replace(r,n))];case 7:c.sent(),c.label=8;case 8:return typeof window[e.libraryName]=="function"?[2,window[e.libraryName]]:[3,10];case 9:throw u=c.sent(),console.error("Failed to create PluginFactory",e),u;case 10:return[2]}})})}function zI(e,t,r,n,i,o){var a,s,u;return I(this,void 0,void 0,function(){var c,l,f,d=this;return O(this,function(p){switch(p.label){case 0:return c=[],l=(s=(a=e.middlewareSettings)===null||a===void 0?void 0:a.routingRules)!==null&&s!==void 0?s:[],f=((u=e.remotePlugins)!==null&&u!==void 0?u:[]).map(function(v){return I(d,void 0,void 0,function(){var m,h,y,_,S,w;return O(this,function(x){switch(x.label){case 0:if(Wj(t,v))return[2];x.label=1;case 1:return x.trys.push([1,6,,7]),h=o==null?void 0:o.find(function(T){var b=T.pluginName;return b===v.name}),h?[3,3]:[4,Yj(v,n==null?void 0:n.obfuscate)];case 2:h=x.sent(),x.label=3;case 3:return m=h,m?[4,m(E(E({},v.settings),r[v.name]))]:[3,5];case 4:y=x.sent(),_=Array.isArray(y)?y:[y],Kj(_),S=l.filter(function(T){return T.destinationName===v.creationName}),_.forEach(function(T){var b=new Gj(v.creationName,T);S.length&&i&&b.addMiddleware(i),c.push(b)}),x.label=5;case 5:return[3,7];case 6:return w=x.sent(),console.warn("Failed to load Remote Plugin",w),[3,7];case 7:return[2]}})})}),[4,Promise.all(f)];
vendor: 4,393 bytes, line 16
16case 1:return p.sent(),[2,c.filter(Boolean)]}})})}qu();var kv,HI,$j=Li(),GI=(kv=(HI=$j).__SEGMENT_INSPECTOR__)!==null&&kv!==void 0?kv:HI.__SEGMENT_INSPECTOR__={},KI=function(e){var t;return(t=GI.attach)===null||t===void 0?void 0:t.call(GI,e)};Bp();ha();function i5(e,t){return jr("".concat(t,"/v1/projects/").concat(e,"/settings")).then(function(r){return r.ok?r.json():r.text().then(function(n){throw new Error(n)})}).catch(function(r){throw console.error(r.message),r})}function o5(e){return Ov().NODE_ENV!=="test"&&Object.keys(e.integrations).length>1}function a5(e){var t,r,n;return Ov().NODE_ENV!=="test"&&((n=(r=(t=e.middlewareSettings)===null||t===void 0?void 0:t.routingRules)===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0)>0}function s5(e,t){GT(e,t),HT(e,t)}function u5(e,t){return I(this,void 0,void 0,function(){return O(this,function(r){switch(r.label){case 0:return[4,VT(e,t)];case 1:return r.sent(),KT(e,t),[2]}})})}function c5(e,t,r,n,i,o,a){var s,u,c;return i===void 0&&(i=[]),I(this,void 0,void 0,function(){var l,f,d,p,v,m,h,y,_,S,w,x,T,b,C,H=this;return O(this,function(k){switch(k.label){case 0:return s5(r,a),l=i==null?void 0:i.filter(function(D){return typeof D=="object"}),f=i==null?void 0:i.filter(function(D){return typeof D=="function"&&typeof D.pluginName=="string"}),a5(t)?[4,Promise.resolve().then(()=>($I(),YI)).then(function(D){return D.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return p=k.sent(),[3,3];case 2:p=void 0,k.label=3;case 3:return d=p,o5(t)||o.length>0?[4,Promise.resolve().then(()=>(cO(),uO)).then(function(D){return D.ajsDestinations(e,t,r.integrations,n,d,o)})]:[3,5];case 4:return m=k.sent(),[3,6];case 5:m=[],k.label=6;case 6:return v=m,t.legacyVideoPluginsEnabled?[4,Promise.resolve().then(()=>(dO(),fO)).then(function(D){return D.loadLegacyVideoPlugins(r)})]:[3,8];case 7:k.sent(),k.label=8;case 8:return!((s=n.plan)===null||s===void 0)&&s.track?[4,Promise.resolve().then(()=>(vO(),pO)).then(function(D){var he;return D.schemaFilter((he=n.plan)===null||he===void 0?void 0:he.track,t)})]:[3,10];case 9:return y=k.sent(),[3,11];case 10:y=void 0,k.label=11;case 11:return h=y,_=ic(t,n),[4,zI(t,r.integrations,_,n,d,f).catch(function(){return[]})];case 12:return S=k.sent(),w=W(W([jI],v,!0),S,!0),h&&w.push(h),x=((u=n.integrations)===null||u===void 0?void 0:u.All)===!1&&!n.integrations["Segment.io"]||n.integrations&&n.integrations["Segment.io"]===!1,x?[3,14]:(b=(T=w).push,[4,PI(r,_["Segment.io"],t.integrations)]);case 13:b.apply(T,[k.sent()]),k.label=14;case 14:return[4,r.register.apply(r,W(W([],w,!1),l,!1))];case 15:return C=k.sent(),[4,zT(r,a)];case 16:return k.sent(),Object.entries((c=t.enabledMiddleware)!==null&&c!==void 0?c:{}).some(function(D){var he=D[1];return he})?[4,Promise.resolve().then(()=>(hO(),mO)).then(function(D){var he=D.remoteMiddlewares;return I(H,void 0,void 0,function(){var Ue,ct;return O(this,function(Dt){switch(Dt.label){case 0:return[4,he(C,t,n.obfuscate)];case 1:return Ue=Dt.sent(),ct=Ue.map(function(qt){return r.addSourceMiddleware(qt)}),[2,Promise.all(ct)]}})})})]:[3,18];case 17:k.sent(),k.label=18;case 18:return[2,C]}})})}function l5(e,t,r){var n,i,o,a,s,u,c,l,f,d,p;return t===void 0&&(t={}),I(this,void 0,void 0,function(){var v,m,h,y,_,S,w,x,T,b,C,H,k;return O(this,function(D){switch(D.label){case 0:return t.disable===!0?[2,[new Iv,De.system()]]:(t.globalAnalyticsKey&&FT(t.globalAnalyticsKey),e.cdnURL&&FI(e.cdnURL),t.initialPageview&&r.add(new ga("page",[])),v=(n=e.cdnURL)!==null&&n!==void 0?n:Ta(),(i=e.cdnSettings)!==null&&i!==void 0?(h=i,[3,3]):[3,1]);case 1:return[4,i5(e.writeKey,v)];case 2:h=D.sent(),D.label=3;case 3:return m=h,t.updateCDNSettings&&(m=t.updateCDNSettings(m)),typeof t.disable!="function"?[3,5]:[4,t.disable(m)];case 4:if(y=D.sent(),y)return[2,[new Iv,De.system()]];D.label=5;case 5:return _=(a=(o=m.integrations["Segment.io"])===null||o===void 0?void 0:o.retryQueue)!==null&&a!==void 0?a:!0,t=E({retryQueue:_},t),S=new Tv(E(E({},e),{cdnSettings:m,cdnURL:v}),t),KI(S),w=(s=e.plugins)!==null&&s!==void 0?s:[],x=(u=e.classicIntegrations)!==null&&u!==void 0?u:[],T=(c=t.integrations)===null||c===void 0?void 0:c["Segment.io"],Bu.initRemoteMetrics(E(E({},m.metrics),{host:(l=T==null?void 0:T.apiHost)!==null&&l!==void 0?l:(f=m.metrics)===null||f===void 0?void 0:f.host,protocol:T==null?void 0:T.protocol})),[4,c5(e.writeKey,m,S,t,w,x,r)];
16case 6:return b=D.sent(),C=(d=window.location.search)!==null&&d!==void 0?d:"",H=(p=window.location.hash)!==null&&p!==void 0?p:"",k=C.length?C:H.replace(/(?=#).*(?=\?)/,""),k.includes("ajs_")?[4,S.queryString(k).catch(console.error)]:[3,8];case 7:D.sent(),D.label=8;case 8:return S.initialized=!0,S.emit("initialize",e,t),[4,u5(S,r)];case 9:return D.sent(),[2,[S,b]]}})})}var Mv=function(e){re(t,e);function t(){var r=this,n=Ri(),i=n.promise,o=n.resolve;return r=e.call(this,function(a){return i.then(function(s){var u=s[0],c=s[1];return l5(u,c,a)})})||this,r._resolveLoadStart=function(a,s){return o([a,s])},r}return t.prototype.load=function(r,n){return n===void 0&&(n={}),this._resolveLoadStart(r,n),this},t.load=function(r,n){return n===void 0&&(n={}),new t().load(r,n)},t.standalone=function(r,n){return t.load({writeKey:r},n).then(function(i){return i[0]})},t}($T);Qt();var Aa={_app_host_name:"marketing site",_app_host_version:"1.0.0",_project_id:"2746",_bdc_org_id:Ke.segmentGroupId(),_bdc_user_id:Ke.segmentUserId()},Lv=class{get analytics(){return this._analytics?this._analytics:(this._analytics=Mv.load({writeKey:ve.segmentKey}),this._analytics)}getTouchTrackingProperties(){let t=r=>{if(!r)return null;let n={};for(let i in r){let o=r[i];if(o){let a=i.replace(/([A-Z])/g,"_$1").toLowerCase(),s=a.startsWith("utm_")?a:`utm_${a}`;n[s]=o}}return n};return{ft:t(B.getFirstTouchValues()),lt:t(B.getLastTouchValues())}}init(){this.analytics.page(null,null,Aa),this.initRumUser(),this.trackClick("nav a[href='/signup'], nav a[href='/demo-request']","nav__lead_cta__fired"),this.trackClick("[data-segment-click]"),document.querySelectorAll("a[href^='https://apply.divvy.co']").forEach(t=>{t.addEventListener("click",()=>{this.analytics.track("se__apply_now__triggered",Se({},this.getTouchTrackingProperties()))})})}initRumUser(){return Z(this,null,function*(){try{yield this.analytics;let t=Ke.anonymousId();t&&Ze.setUser({id:t})}catch(t){}})}track(t,r){this.analytics.track(t,Se(Se(Se({},Aa),this.getTouchTrackingProperties()),r))}trackClick(t,r){document.querySelectorAll(t).forEach(n=>{n.addEventListener("click",()=>{let i=r||n.dataset.segmentClick||"marketing__click";this.analytics.track(i,Se(jn(Se({},Aa),{link_text:n.innerText,button_identifier:n.id}),this.getTouchTrackingProperties()))})})}submitEvent(t,r){let n=t.dataset.segment||"lead__is__submitted",i=Dw(t)||("sneForm"in t.dataset?["SE"]:"mktoForm"in t.dataset?["AP","AR"]:null),o=r.Firm_Type__c||r.Type__c,a=r.Accounting_Package__c,s=r.Number_of_Employees__c,u=r.Email,c=r.optIn;this.analytics.identify(null,jn(Se({},Aa),{email:u,first_name:r.FirstName,last_name:r.LastName})),this.analytics.track(n,Se(Se(Se(Se(Se(Se(Se(Se(jn(Se({email:u,tier:Ke.getTier()},this.getTouchTrackingProperties()),{AB_test_value:Ci()}),Aa),t.id&&{form_identifier:t.id}),c&&{optIn:c}),o&&{org_type:o}),i&&{product_interest:i}),a&&{accounting_software_choice:a}),s&&{num_of_employees:s}),"emailCaptureForm"in t.dataset&&{form_type:"email-capture"}))}},Fe=new Lv;var Dv=class{constructor(){this.DENIED_FIELDS=new Set(["tmxSessionId"]);this.FIELD_RENAMES=new Map([["name","company"]]);this.lowerEnvFlag$=null}prefetchFlag(){var t;Jt&&((t=this.lowerEnvFlag$)!=null||(this.lowerEnvFlag$=oa("enable-marketing-inflection-integration")))}setupForms(){document.querySelectorAll("form[data-mkto-form]").forEach(t=>{let r=Fr.tryInit();gr(t),this.prefetchFlag(),t.onsubmit=n=>Z(this,null,function*(){var i;n.preventDefault(),n.stopPropagation(),gr(t),On(n.submitter);try{if(yield Iu(t),this.hasEmptyProductInterest(t)){na(t,!0),Ai(n.submitter);return}try{Uw(t)}catch(u){console.error(u)}r&&Zt(t,Cn,yield r.getLeanDataId());let o=qr(t),a=o.Email,s=yield this.submit(t);s.success||K.logError(`Inflection submission failed: ${s.error}`),Fe.submitEvent(t,o),a&&this.reportPartnerStackConversion(a),r?r.submit(o).finally(()=>window.location.assign(t.dataset.redirect||"/thank-you")):(i=t.dataset.redirect)!=null&&i.length&&(window.location.href=t.dataset.redirect),Lw(t)}catch(o){Ai(n.submitter)}return!1}),Oi(t),ki(t)})}hasEmptyProductInterest(t){return Dr(t)===""}submit(t){return Z(this,null,function*(){var i;let r;if(Jt&&(r=yield(i=this.lowerEnvFlag$)!=null?i:this.lowerEnvFlag$=oa("enable-marketing-inflection-integration"),!r))return K.log("InflectionWriteSkipped",{formId:t.id,flagEnabled:r}),{success:!0};let n={formId:t.id};r!==void 0&&(n.flagEnabled=r),K.log("InflectionWriteStarted",n);
16try{let o=this.buildPayload(t),a=yield fetch("/api/inflection-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),keepalive:!0});if(!a.ok){let u=yield a.text().catch(()=>"Unknown error");return K.logError(`Inflection proxy failed: ${a.status} ${u}`,{formId:t.id}),K.log("InflectionWriteFailed",{formId:t.id,status:a.status}),{success:!1,error:`HTTP ${a.status}`}}let s=yield a.json();return K.log("InflectionWriteSucceeded",{formId:t.id}),{success:!0,data:s}}catch(o){let a=o instanceof Error?o.message:"Unknown error";return K.logError(`Inflection submission error: ${a}`,{formId:t.id}),K.log("InflectionWriteFailed",{formId:t.id}),{success:!1,error:a}}})}reportPartnerStackConversion(t){var i;let r=B.getPartnerStackClickId();if(!r)return;let n=((i=B.getLastTouchValues())==null?void 0:i.utmCampaign)||"";jw.submitConverstion(t,r,n).catch(o=>K.logError("PartnerStack Error: "+o.toString()))}buildPayload(t){let r=new FormData(t),n={};r.forEach((o,a)=>{var s;if(!this.DENIED_FIELDS.has(a)){let u=(s=this.FIELD_RENAMES.get(a))!=null?s:a;n[u]=o.toString()}});let i=t.dataset.offerId||B.getOfferId();return i&&(n[Ii]=i),n}},xt=new Dv;var qv=class{configureAll(){this.setupSpendAndExpenseForms(),this.addUtmsToLinks()}getRedirectUrl(t,r){return Z(this,null,function*(){var s,u;let n=Ou(t)||1,i=!1,o=(s=r.get("email"))==null?void 0:s.toString();if(!o)console.warn("No email provided in form submission");else try{i=(yield Ti({email:o})).isBusinessEmail===!0}catch(c){console.error("Failed to verify user email:",c)}return i?n>=21?"/thankyou":((u=t.dataset.thankYouSmb)==null?void 0:u.trim())||"/thankyou/demo-video":"/thankyou/demo-video"})}submitSpendAndExpenseForm(t){return Z(this,null,function*(){let r=Fr.tryInit();Zt(t,"op_lt_product_interest","SE"),r&&Zt(t,Cn,yield r.getLeanDataId());let n=qr(t);yield xt.submit(t).then(s=>{s.success||K.logError(`Inflection submission failed: ${s.error}`)});let i=new FormData(t),[o]=yp(i)||[];o&&B.setBdcAccountingSoftwareForDivvy(o);let a=yield this.getRedirectUrl(t,i);r?r.submit(n).then(()=>(Zt(t,"LD_BookIt_Date__c",new Date().toISOString()),Fe.submitEvent(t,n),xt.submit(t))).finally(()=>window.location.assign(a)):window.location.href=a})}setupSpendAndExpenseForms(){document.querySelectorAll("form[data-sne-form]").forEach(t=>{gr(t),Oi(t),ki(t),xt.prefetchFlag(),t.onsubmit=r=>Z(this,null,function*(){r.preventDefault(),r.stopPropagation(),gr(t),On(r.submitter);try{yield Iu(t)}catch(n){throw console.error("Email validation error:",n),n}return this.submitSpendAndExpenseForm(t),!1})})}addUtmsToLinks(){let t;document.querySelectorAll("a[href^='https://apply.divvy.co']").forEach(r=>{t=t||this.encodeUtmValues(),r.href=`${ve.spendExpenseApplyUrl}/?${t}`})}encodeUtmValues(){let t={lt:B.getLastTouchValues(),ft:B.getFirstTouchValues(),clickIds:B.getClickIds(),previousPage:B.getPreviousPage(),isFirstTouch:B.getIsFirstTouchSession()},r=B.getUserData();r!=null&&r.email&&(t.email=r.email,t.applicantData={aid:Ke.anonymousId(),email:r.email,firstName:r.firstName,lastName:r.lastName,phone:r.phone,companyName:r.name,numberOfEmployees:r.numberOfEmployees,accountingSoftware:B.getBdcAccountingSoftwareForDivvy()});let n=Object.keys(t).filter(i=>!!t[i]).map(i=>({[i]:t[i]}));return window.btoa(JSON.stringify(n))}},cc=new qv;function gO(){if(!Jt)return;let e={"https://app-signup.us.bill.com":{dev:"https://app-signup-test.qa.cashview.com",stg:"https://app-signup-stage.us.bill.com"},"https://login.us.bill.com":{dev:"https://login-test.us.cashview.com",stg:"https://login.stage.us.bill.com"}};Object.keys(e).forEach(t=>{let r=ra?e[t].stg:e[t].dev;document.querySelectorAll(`a[href^='${t}']`).forEach(n=>{n.href=n.href.replace(t,r)})})}function lc(){return function(e){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|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.test(e)||/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 )|
16sy(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.test(e.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera)}var f5=8,Fv=class{checkAndShowDialog(t){return Z(this,null,function*(){var n;if(!t||t.length<f5)return!1;let r=encodeURIComponent(JSON.stringify({vendorEmail:t}));try{let i=yield fetch(ve.brInviteUrl+"?data="+r).then(s=>s.json());if(!((n=i.response_data)!=null&&n.length))return!1;let o=document.getElementById("br-invite-dialog");if(!o)return!1;o.classList.remove("hide"),Fe.track("nav__br_modal__presented");let a=i.response_data[0];return o.querySelectorAll(".dynamic-orgname").forEach(s=>s.textContent=a.invitorOrgName),o.querySelectorAll("#br-invite-accept").forEach(s=>s.href=a.signupUrl),!0}catch(i){return console.error("br-invite check failed:",i),!1}})}},yO=new Fv;var d5="enable-marketing-duplicate-org-intercept",p5="existing-email",v5=8,m5="existing-email-sign-in",h5="existing-email-use-different",Uv="signup",jv=class{constructor(){this.fetchFlag=null}checkAndIntercept(t){return Z(this,null,function*(){var o;let r=t.elements.namedItem("email");if(!r)return!1;let n=r.value.trim();if(!n||n.length<v5||((o=this.fetchFlag)!=null||(this.fetchFlag=oa(d5)),!(yield this.fetchFlag)))return!1;try{let a=yield fetch(ve.emailExistsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n})});if(!a.ok){let u=yield a.text();return console.error(`email-exists returned ${a.status}: ${u}`),!1}return(yield a.json())?(this.showModal(n,r),!0):!1}catch(a){return console.error("email-exists check failed:",a),!1}})}showModal(t,r){let n=document.getElementById(p5);if(!n)return;n.classList.remove("hide"),Fe.track("signup__dupe_org_intercept__presented",{email:t,window_name:Uv});let i=n.querySelector(`#${m5}`),o=n.querySelector(`#${h5}`),a=u=>{u.preventDefault(),o==null||o.removeEventListener("click",s),Fe.track("signup__dupe_org_intercept__accepted",{email:t,window_name:Uv});let c=new URL(ve.signInUrl);c.searchParams.set("email",t),window.location.href=c.toString()},s=u=>{u.preventDefault(),i==null||i.removeEventListener("click",a),n.classList.add("hide"),r.value="",r.focus(),Fe.track("signup__dupe_org_intercept__skipped",{email:t,window_name:Uv})};i==null||i.addEventListener("click",a,{once:!0}),o==null||o.addEventListener("click",s,{once:!0})}},_O=new jv;var g5=["cpa","accounting","bookkeep","family office","partners","advisor","consult","financial","wealth","finance","tax","invest","trust","estate","venture","capital"],Bv=class{confirmIsDirect(t){return Z(this,null,function*(){if(ia(t))return!1;let r=t.elements.namedItem("name"),n=r==null?void 0:r.value.toLowerCase();if(n&&!g5.some(s=>n.includes(s)))return!0;let i=document.querySelector("#ac-flag-dialog.hide");if(!i)return!0;i.classList.remove("hide");let o=new Promise(s=>{i.querySelectorAll("[data-dialog-close]").forEach(u=>{u.addEventListener("click",()=>s(!0))})}),a=new Promise(s=>{i.querySelectorAll("#proceed-console-signup").forEach(u=>{u.addEventListener("click",()=>{t.dataset.offerId="701Vw00000Aij0XIAR",s(!1)})})});return Promise.any([o,a])})}},bO=new Bv;var Vv=class{constructor(){this.generatedSessionId=null;this.registeredSessionId=null;this.profilingComplete=!1;this.isInitialized=()=>!!this.generatedSessionId;window.addEventListener("message",t=>{typeof t.data=="string"&&t.data.startsWith("tmx_profiling_complete")&&(this.profilingComplete=!0)})}waitForProfilingCompletion(t){return this.profilingComplete?Promise.resolve():new Promise(r=>{let n=Date.now(),i=setInterval(()=>{(this.profilingComplete||Date.now()-n>=t)&&(clearInterval(i),r())},50)})}generateSessionId(){if(!this.generatedSessionId){let t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r=t.length;this.generatedSessionId=" ".repeat(32).replaceAll(" ",()=>t.charAt(Math.random()*r|0))}return this.generatedSessionId}registerDevice(){if(this.registeredSessionId)return Promise.resolve();let t=this.generateSessionId();return Cu.loadScript("https://tm.bdc-cdn.com/fp/tags.js?org_id=ceurt9zj&session_id="+t).then(()=>{this.registeredSessionId=t}).catch(r=>(K.logError("TMX: Device registration failed",{error:r==null?void 0:r.toString(),sessionIdPrefix:this.getMaskedSessionId()}),Promise.resolve()))}getSessionId(t="generic"){if(!this.generatedSessionId)throw new Error(`TMX: getSessionId called before initialization (${t})`);let r=this.registeredSessionId||this.generatedSessionId;return this.registeredSessionId||K.logWarning(`TMX: Using session ID with device not registered (${t})`,{sessionIdPrefix:this.getMaskedSessionId(),context:t}),r}getMaskedSessionId(){let t=this.registeredSessionId||this.generatedSessionId;return t?`${t.substring(0,2)}****${t.substring(t.length-2)}`:null}},ka=new Vv;function SO(o){return Z(this,arguments,function*(e,t="control",r=Ke.anonymousId()||crypto.randomUUID(),n={},i={}){var l;let a=`${ve.beepHostUrl}/neo3/ffaaslink/beep/getexperimentinfo`,s={"Content-Type":"application/json",Accept:"application/json"},u=JSON.stringify({experimentName:e,defaultBehaviorName:t,orgId:r,orgProps:n,segmentNonEntCamelSuperProps:i}),c=yield fetch(a,{headers:s,body:u,method:"POST"}).then(f=>{if(!f.ok)throw new Error(`HTTP error! Status: ${f.status}`);return f.json()}).catch(f=>{K.logError("BEEP fetch failed",{experimentName:e,error:f.message})});return((l=c==null?void 0:c.experimentInfo)==null?void 0:l.behaviorName)||t})}var y5=/^.*[._-].*[._-].*@.*$/,zv=class{constructor(){}setupForms(){document.querySelectorAll("form[data-signup-form]").forEach(t=>{ka.isInitialized()||ka.registerDevice(),gr(t),xt.prefetchFlag(),t.onsubmit=n=>Z(this,null,function*(){return n.preventDefault(),n.stopPropagation(),_5(t,n.submitter),!1}),Oi(t),ki(t);let r=t.elements.namedItem("email");r==null||r.addEventListener("blur",()=>{yO.checkAndShowDialog(r.value.trim())})})}};function _5(e,t){return Z(this,null,function*(){var y,_,S,w;gr(e),b5("SignupSubmitStarted",e);let r=Dr(e);if(r!==null)if(r.length)Y(e,"productInterest",r);else{na(e,!0);return}On(t),Ke.setSubmitDate();let n=e.elements.namedItem("email").value,i=yield Ti({email:n});if(!i.success||y5.test(n)&&!i.isBusinessEmail){S5(((y=i.errrors)==null?void 0:y.join("; "))||"Unexpected error",e,t);return}let o=new URLSearchParams(window.location.search),a=window.location.origin,s=a+window.location.pathname,u=ia(e)||!(yield bO.confirmIsDirect(e)),c=qw(e);if(!u){if(yield _O.checkAndIntercept(e)){Ai(t);return}if(i!=null&&i.isBusinessEmail&&Ou(e)>=100&&(!e.action||!e.action.includes("Signup1"))){yield I5(e,t);return}}w5(e),Y(e,"__SFDC_Org_Signup_URL__c",s),Y(e,"__SFDC_Org_Device_Type__c",lc()?"m":"c");let l=o.get("referral")||e.dataset.referral;l&&Y(e,"referral",l);let f=e.querySelector("#acReferClients");f!=null&&f.checked&&Y(e,"__SFDC_Org_AB_Test_Slot_1__c","AC Referral Program").setAttribute("data-mkto-field","AB_Test_Slot_1__c"),Y(e,"tmxSessionId",ka.getSessionId());let d=Ci();d.length&&Y(e,"__SFDC_Org_AB_Test_2__c",d);let p=(_=B.getLastTouchValues())==null?void 0:_.affiliateId;if(p&&Y(e,"bdc_affiliate",p),yield ka.waitForProfilingCompletion(3e3),u){e.action=e.hasAttribute("action")?e.action:ve.signupDirect;let x=ve.consolePricePlan;((S=e.querySelector("input#firmTypeWealthManagement"))==null?void 0:S.checked)&&(Y(e,"WealthManagement","TRUE"),x="ppl01JUPYSLWQPBV2gbh"),Y(e,"formoptions","console"),Y(e,"confirmUrl",a+(e.dataset.redirect||"/console-confirmation")),Y(e,"consolepriceplan",o.get("consolepriceplan")||B.getConsolePricePlan()||e.dataset.consolepriceplan||x),Fe.submitEvent(e,qr(e))}else c?(yield xt.submit(e).then(x=>{x.success||K.logError(`Inflection submission failed: ${x.error}`)}).finally(()=>window.location.replace(`${ve.brSignupPageUrl}?email=${encodeURIComponent(e.elements.email.value)}&firstName=${encodeURIComponent(e.elements.firstName.value)}&lastName=${encodeURIComponent(e.elements.lastName.value)}`)),yield new Promise(()=>{})):(e.action=e.hasAttribute("action")?e.action:ve.signupDirect,Y(e,"confirmUrl",a+(e.dataset.redirect||"/confirmation")),Y(e,"priceplan",o.get("priceplan")||e.dataset.priceplan||ve.directPricePlan));let v=((w=e.elements.productInterest)==null?void 0:w.value)==="SE",m=e.dataset.sneSubmit;if(!u&&v&&m!=="signup"){cc.submitSpendAndExpenseForm(e);return}let h=crypto.randomUUID();Y(e,"enrichmentId",h),K.setGlobalContext("enrichmentId",h),Fe.submitEvent(e,qr(e)),xt.submit(e).then(x=>{x.success||K.logError(`Inflection submission failed: ${x.error}`)}),K.log("SignupSubmitted",{formId:e.id,isConsole:u}),yield E5(e,e.action)})}function b5(e,t){var i;
16let r=(i=t.elements.namedItem("email"))==null?void 0:i.value,n=r?r.replace(/(.{2}).+(@.+)/,"$1****$2"):"unknown";K.log(e,{formId:t.id,email:n})}function S5(e,t,r){e&&(Ai(r),$(t).nextAll(".w-form-fail").show().children().text(e))}function E5(e,t){return Z(this,null,function*(){var a;let r=window.document.createElement("form");document.body.appendChild(r),r.setAttribute("method","post"),r.setAttribute("action",t),r.setAttribute("target","_self"),new FormData(e).forEach((s,u)=>Y(r,u,s.toString())),x5(r),T5(r);let n=(a=e.elements.namedItem("email"))==null?void 0:a.value,i=yield SO("beep-ai-agentic-onboarding","disableAgenticOnboardingFlow",void 0,{email:n}),o=i==="enableAgenticOnboardingFlow";K.log("AgenticOnboardingBeepFlagEvaluated",{behaviorName:i,assigned:o}),o&&Y(r,"referral","AgenticOnboarding"),r.submit()})}function x5(e){let t=e.elements.namedItem("accountingSoftware"),r=e.elements.namedItem("msDynamicsOption");(t==null?void 0:t.value)==="msdynamics"&&r&&(t.value=r.value)}function w5(e){let t=B.getFirstTouchValues(),r=B.getClickIds();r!=null&&r.gclid&&Y(e,"__SFDC_Org_GCLID__c",r.gclid),t.ppcKeyword&&Y(e,"__SFDC_Org_PPC_content__c",t.ppcKeyword),t.device&&Y(e,"__SFDC_Org_PPC_network__c",t.device),t.ppcPlacement&&Y(e,"__SFDC_Org_Trial_Program_Description__c",t.ppcPlacement),t.trafficType&&Y(e,"__SFDC_Org_Traffic_Type__c",t.trafficType),t.utmCampaign&&Y(e,"__SFDC_Org_PPC_campaign__c",t.utmCampaign),t.utmContent&&Y(e,"__SFDC_Org_PPC_content__c",t.utmContent),t.utmMedium&&Y(e,"__SFDC_Org_Trial_Campaign__c",t.utmMedium),t.utmSource&&Y(e,"__SFDC_Org_Trial_Program__c",t.utmSource),t.utmTerm&&Y(e,"__SFDC_Org_PPC_term__c",t.utmTerm)}function Y(e,t,r){let n=e.elements.namedItem(t),i=n instanceof HTMLInputElement?n:document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",t),i.setAttribute("value",r),e.appendChild(i),i}function T5(e){let t=e.querySelector("input[name=formoptions][value=wmanagement]");t&&(t.name="firmtype")}function I5(e,t){return Z(this,null,function*(){let r=Fr.tryInit();try{let n;r&&(n=yield r.getLeanDataId()),Y(e,Ii,"7014x000001DvTjAAK"),n&&Y(e,Cn,n);let i=qr(e);Fe.submitEvent(e,i),yield xt.submit(e).then(o=>{o.success||K.logError(`Inflection submission failed: ${o.error}`)}),r&&n&&(yield r.submit(i).then(()=>(Y(e,"LD_BookIt_Date__c",new Date().toISOString()),xt.submit(e))).catch(o=>K.logError(`LeanData submission error: ${o}`)))}catch(n){K.logError(`Inflection submission error: ${n}`)}finally{window.location.assign(e.dataset.redirect||"/thank-you")}})}var EO=new zv;function xO(e){let t={referrer:document.referrer,device:e.get("network")||(lc()?"m":"d"),landingPage:window.location.href,timestamp:new Date().toISOString(),utmMedium:e.get("utm_medium")||void 0,utmSource:e.get("utm_source")||void 0,utmCampaign:e.get("utm_campaign")||void 0,utmContent:e.get("utm_content")||void 0,utmTerm:e.get("utm_term")||void 0,ppcKeyword:e.get("keyword")||void 0,ppcPlacement:e.get("placement")||void 0,trafficType:e.get("traffictype")||void 0,affiliateId:e.get("irclickid")||e.get("affiliateid")||void 0,channelId:e.get("channelid")||void 0};return["gclid","fbclid","liclid","msclkid"].forEach(r=>{e.has(r)&&(t.platformId=e.get(r)||void 0)}),t}function O5(e){let t=/^pact$/i;for(let[r,n]of e)if(t.test(r))return n}function wO(){let e=document.referrer.length>0,t=new URLSearchParams(window.location.search);(!B.hasLastTouchValues()||e&&!document.referrer.includes("bill.com")||t.has("utm_medium"))&&B.setLastTouchValues(xO(t)),B.hasFirstTouchValues()||(B.setIsFirstTouchSession(!0),B.setFirstTouchValues(xO(t)));let r=O5(t);r&&B.setLastTouchPactId(r),["gclid","fbclid","liclid","msclkid"].forEach(n=>{if(!t.has(n))return;let i=B.getClickIds()||{};n in i||(i[n]=t.get(n),B.setClickIds(i))}),t.has("ps_xid")&&B.setPartnerStackClickId(t.get("ps_xid")),t.has("offerid")&&B.setOfferId(t.get("offerid"))}function TO(e){document.readyState!=="loading"?e():window.addEventListener("DOMContentLoaded",()=>e())}wO();TO(()=>{xt.setupForms(),EO.setupForms(),gO(),kw.configureAll(),cc.configureAll(),Fe.init(),console.log("loaded")});window.addEventListener("unload",()=>B.setPreviousPage(window.location.href));})();
17/*! Bundled license information:
18
19@segment/analytics-next/dist/pkg/vendor/tsub/tsub.js:
20  (*! For license information please see tsub.js.LICENSE.txt *)
21
22js-cookie/dist/js.cookie.mjs:
23  (*! js-cookie v3.0.1 | MIT *)
24*/
25//# sourceMappingURL=common.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.