@sprig-technologies/sprig-browser 2.19.6 → 2.19.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var jR=Object.create;var ri=Object.defineProperty,FR=Object.defineProperties,BR=Object.getOwnPropertyDescriptor,$R=Object.getOwnPropertyDescriptors,VR=Object.getOwnPropertyNames,zf=Object.getOwnPropertySymbols,HR=Object.getPrototypeOf,Kf=Object.prototype.hasOwnProperty,GR=Object.prototype.propertyIsEnumerable;var Ds=(e,r,t)=>r in e?ri(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,G=(e,r)=>{for(var t in r||(r={}))Kf.call(r,t)&&Ds(e,t,r[t]);if(zf)for(var t of zf(r))GR.call(r,t)&&Ds(e,t,r[t]);return e},ne=(e,r)=>FR(e,$R(r));var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Yf=(e,r)=>{for(var t in r)ri(e,t,{get:r[t],enumerable:!0})},Wf=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of VR(r))!Kf.call(e,i)&&i!==t&&ri(e,i,{get:()=>r[i],enumerable:!(n=BR(r,i))||n.enumerable});return e};var Ms=(e,r,t)=>(t=e!=null?jR(HR(e)):{},Wf(r||!e||!e.__esModule?ri(t,"default",{value:e,enumerable:!0}):t,e)),zR=e=>Wf(ri({},"__esModule",{value:!0}),e);var Xf=(e,r,t)=>(Ds(e,typeof r!="symbol"?r+"":r,t),t);var K=l((sie,tv)=>{var Sa=function(e){return e&&e.Math==Math&&e};tv.exports=Sa(typeof globalThis=="object"&&globalThis)||Sa(typeof window=="object"&&window)||Sa(typeof self=="object"&&self)||Sa(typeof global=="object"&&global)||Function("return this")()});var N=l((uie,nv)=>{nv.exports=function(e){try{return!!e()}catch(r){return!0}}});var te=l((lie,iv)=>{var KR=N();iv.exports=!KR(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})});var ti=l(sv=>{"use strict";var av={}.propertyIsEnumerable,ov=Object.getOwnPropertyDescriptor,YR=ov&&!av.call({1:2},1);sv.f=YR?function(r){var t=ov(this,r);return!!t&&t.enumerable}:av});var qr=l((die,uv)=>{uv.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Xe=l((fie,lv)=>{var WR={}.toString;lv.exports=function(e){return WR.call(e).slice(8,-1)}});var nn=l((vie,cv)=>{var XR=N(),QR=Xe(),ZR="".split;cv.exports=XR(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return QR(e)=="String"?ZR.call(e,""):Object(e)}:Object});var Ce=l((pie,dv)=>{dv.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}});var He=l((gie,fv)=>{var JR=nn(),e3=Ce();fv.exports=function(e){return JR(e3(e))}});var ee=l((hie,vv)=>{vv.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}});var nr=l((mie,pv)=>{var ba=ee();pv.exports=function(e,r){if(!ba(e))return e;var t,n;if(r&&typeof(t=e.toString)=="function"&&!ba(n=t.call(e))||typeof(t=e.valueOf)=="function"&&!ba(n=t.call(e))||!r&&typeof(t=e.toString)=="function"&&!ba(n=t.call(e)))return n;throw TypeError("Can't convert object to primitive value")}});var pe=l((yie,gv)=>{var r3={}.hasOwnProperty;gv.exports=function(e,r){return r3.call(e,r)}});var qa=l((Eie,mv)=>{var t3=K(),hv=ee(),Us=t3.document,n3=hv(Us)&&hv(Us.createElement);mv.exports=function(e){return n3?Us.createElement(e):{}}});var ks=l((Sie,yv)=>{var i3=te(),a3=N(),o3=qa();yv.exports=!i3&&!a3(function(){return Object.defineProperty(o3("div"),"a",{get:function(){return 7}}).a!=7})});var Pe=l(Sv=>{var s3=te(),u3=ti(),l3=qr(),c3=He(),d3=nr(),f3=pe(),v3=ks(),Ev=Object.getOwnPropertyDescriptor;Sv.f=s3?Ev:function(r,t){if(r=c3(r),t=d3(t,!0),v3)try{return Ev(r,t)}catch(n){}if(f3(r,t))return l3(!u3.f.call(r,t),r[t])}});var w=l((qie,bv)=>{var p3=ee();bv.exports=function(e){if(!p3(e))throw TypeError(String(e)+" is not an object");return e}});var le=l(xv=>{var g3=te(),h3=ks(),qv=w(),m3=nr(),Iv=Object.defineProperty;xv.f=g3?Iv:function(r,t,n){if(qv(r),t=m3(t,!0),qv(n),h3)try{return Iv(r,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var me=l((xie,Av)=>{var y3=te(),E3=le(),S3=qr();Av.exports=y3?function(e,r,t){return E3.f(e,r,S3(1,t))}:function(e,r,t){return e[r]=t,e}});var Ia=l((Aie,_v)=>{var wv=K(),b3=me();_v.exports=function(e,r){try{b3(wv,e,r)}catch(t){wv[e]=r}return r}});var xa=l((wie,Tv)=>{var q3=K(),I3=Ia(),Cv="__core-js_shared__",x3=q3[Cv]||I3(Cv,{});Tv.exports=x3});var Aa=l((_ie,Rv)=>{var js=xa(),A3=Function.toString;typeof js.inspectSource!="function"&&(js.inspectSource=function(e){return A3.call(e)});Rv.exports=js.inspectSource});var Fs=l((Cie,Lv)=>{var w3=K(),_3=Aa(),Ov=w3.WeakMap;Lv.exports=typeof Ov=="function"&&/native code/.test(_3(Ov))});var j=l((Tie,Pv)=>{Pv.exports=!1});var ni=l((Rie,Dv)=>{var C3=j(),Nv=xa();(Dv.exports=function(e,r){return Nv[e]||(Nv[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.5.0",mode:C3?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})});var an=l((Oie,Mv)=>{var T3=0,R3=Math.random();Mv.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++T3+R3).toString(36)}});var ii=l((Lie,kv)=>{var O3=ni(),L3=an(),Uv=O3("keys");kv.exports=function(e){return Uv[e]||(Uv[e]=L3(e))}});var on=l((Pie,jv)=>{jv.exports={}});var qe=l((Nie,Hv)=>{var P3=Fs(),N3=K(),D3=ee(),M3=me(),Fv=pe(),U3=ii(),k3=on(),j3=N3.WeakMap,wa,ai,_a,F3=function(e){return _a(e)?ai(e):wa(e,{})},B3=function(e){return function(r){var t;if(!D3(r)||(t=ai(r)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}};P3?(Ot=new j3,Bv=Ot.get,$v=Ot.has,Vv=Ot.set,wa=function(e,r){return Vv.call(Ot,e,r),r},ai=function(e){return Bv.call(Ot,e)||{}},_a=function(e){return $v.call(Ot,e)}):(sn=U3("state"),k3[sn]=!0,wa=function(e,r){return M3(e,sn,r),r},ai=function(e){return Fv(e,sn)?e[sn]:{}},_a=function(e){return Fv(e,sn)});var Ot,Bv,$v,Vv,sn;Hv.exports={set:wa,get:ai,has:_a,enforce:F3,getterFor:B3}});var Ne=l((Die,Kv)=>{var $3=K(),Gv=me(),V3=pe(),H3=Ia(),G3=Aa(),zv=qe(),z3=zv.get,K3=zv.enforce,Y3=String(String).split("String");(Kv.exports=function(e,r,t,n){var i=n?!!n.unsafe:!1,a=n?!!n.enumerable:!1,o=n?!!n.noTargetGet:!1;if(typeof t=="function"&&(typeof r=="string"&&!V3(t,"name")&&Gv(t,"name",r),K3(t).source=Y3.join(typeof r=="string"?r:"")),e===$3){a?e[r]=t:H3(r,t);return}else i?!o&&e[r]&&(a=!0):delete e[r];a?e[r]=t:Gv(e,r,t)})(Function.prototype,"toString",function(){return typeof this=="function"&&z3(this).source||G3(this)})});var lr=l((Mie,Yv)=>{var W3=K();Yv.exports=W3});var ce=l((Uie,Xv)=>{var Bs=lr(),$s=K(),Wv=function(e){return typeof e=="function"?e:void 0};Xv.exports=function(e,r){return arguments.length<2?Wv(Bs[e])||Wv($s[e]):Bs[e]&&Bs[e][r]||$s[e]&&$s[e][r]}});var Ge=l((kie,Qv)=>{var X3=Math.ceil,Q3=Math.floor;Qv.exports=function(e){return isNaN(e=+e)?0:(e>0?Q3:X3)(e)}});var ie=l((jie,Zv)=>{var Z3=Ge(),J3=Math.min;Zv.exports=function(e){return e>0?J3(Z3(e),9007199254740991):0}});var Vr=l((Fie,Jv)=>{var eO=Ge(),rO=Math.max,tO=Math.min;Jv.exports=function(e,r){var t=eO(e);return t<0?rO(t+r,0):tO(t,r)}});var un=l((Bie,rp)=>{var nO=He(),iO=ie(),aO=Vr(),ep=function(e){return function(r,t,n){var i=nO(r),a=iO(i.length),o=aO(n,a),s;if(e&&t!=t){for(;a>o;)if(s=i[o++],s!=s)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===t)return e||o||0;return!e&&-1}};rp.exports={includes:ep(!0),indexOf:ep(!1)}});var Hs=l(($ie,tp)=>{var Vs=pe(),oO=He(),sO=un().indexOf,uO=on();tp.exports=function(e,r){var t=oO(e),n=0,i=[],a;for(a in t)!Vs(uO,a)&&Vs(t,a)&&i.push(a);for(;r.length>n;)Vs(t,a=r[n++])&&(~sO(i,a)||i.push(a));return i}});var Ca=l((Vie,np)=>{np.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var st=l(ip=>{var lO=Hs(),cO=Ca(),dO=cO.concat("length","prototype");ip.f=Object.getOwnPropertyNames||function(r){return lO(r,dO)}});var Ta=l(ap=>{ap.f=Object.getOwnPropertySymbols});var Ra=l((zie,op)=>{var fO=ce(),vO=st(),pO=Ta(),gO=w();op.exports=fO("Reflect","ownKeys")||function(r){var t=vO.f(gO(r)),n=pO.f;return n?t.concat(n(r)):t}});var Gs=l((Kie,sp)=>{var hO=pe(),mO=Ra(),yO=Pe(),EO=le();sp.exports=function(e,r){for(var t=mO(r),n=EO.f,i=yO.f,a=0;a<t.length;a++){var o=t[a];hO(e,o)||n(e,o,i(r,o))}}});var ln=l((Yie,up)=>{var SO=N(),bO=/#|\.prototype\./,oi=function(e,r){var t=IO[qO(e)];return t==AO?!0:t==xO?!1:typeof r=="function"?SO(r):!!r},qO=oi.normalize=function(e){return String(e).replace(bO,".").toLowerCase()},IO=oi.data={},xO=oi.NATIVE="N",AO=oi.POLYFILL="P";up.exports=oi});var p=l((Wie,lp)=>{var zs=K(),wO=Pe().f,_O=me(),CO=Ne(),TO=Ia(),RO=Gs(),OO=ln();lp.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a,o,s,u,c,f;if(n?o=zs:i?o=zs[t]||TO(t,{}):o=(zs[t]||{}).prototype,o)for(s in r){if(c=r[s],e.noTargetGet?(f=wO(o,s),u=f&&f.value):u=o[s],a=OO(n?s:t+(i?".":"#")+s,e.forced),!a&&u!==void 0){if(typeof c==typeof u)continue;RO(c,u)}(e.sham||u&&u.sham)&&_O(c,"sham",!0),CO(o,s,c,e)}}});var Oa=l((Xie,cp)=>{var LO=N();cp.exports=!!Object.getOwnPropertySymbols&&!LO(function(){return!String(Symbol())})});var Ks=l((Qie,dp)=>{var PO=Oa();dp.exports=PO&&!Symbol.sham&&typeof Symbol()=="symbol"});var Hr=l((Zie,fp)=>{var NO=Xe();fp.exports=Array.isArray||function(r){return NO(r)=="Array"}});var de=l((Jie,vp)=>{var DO=Ce();vp.exports=function(e){return Object(DO(e))}});var Lt=l((eae,pp)=>{var MO=Hs(),UO=Ca();pp.exports=Object.keys||function(r){return MO(r,UO)}});var La=l((rae,gp)=>{var kO=te(),jO=le(),FO=w(),BO=Lt();gp.exports=kO?Object.defineProperties:function(r,t){FO(r);for(var n=BO(t),i=n.length,a=0,o;i>a;)jO.f(r,o=n[a++],t[o]);return r}});var Ys=l((tae,hp)=>{var $O=ce();hp.exports=$O("document","documentElement")});var Ve=l((nae,Ep)=>{var VO=w(),HO=La(),mp=Ca(),GO=on(),zO=Ys(),KO=qa(),YO=ii(),yp=YO("IE_PROTO"),Xs="prototype",Ws=function(){},Pa=function(){var e=KO("iframe"),r=mp.length,t="<",n="script",i=">",a="java"+n+":",o;for(e.style.display="none",zO.appendChild(e),e.src=String(a),o=e.contentWindow.document,o.open(),o.write(t+n+i+"document.F=Object"+t+"/"+n+i),o.close(),Pa=o.F;r--;)delete Pa[Xs][mp[r]];return Pa()};Ep.exports=Object.create||function(r,t){var n;return r!==null?(Ws[Xs]=VO(r),n=new Ws,Ws[Xs]=null,n[yp]=r):n=Pa(),t===void 0?n:HO(n,t)};GO[yp]=!0});var Qs=l((iae,qp)=>{var WO=He(),Sp=st().f,XO={}.toString,bp=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],QO=function(e){try{return Sp(e)}catch(r){return bp.slice()}};qp.exports.f=function(r){return bp&&XO.call(r)=="[object Window]"?QO(r):Sp(WO(r))}});var Z=l((aae,xp)=>{var ZO=K(),JO=ni(),Ip=pe(),e5=an(),r5=Oa(),t5=Ks(),Na=JO("wks"),Zs=ZO.Symbol,n5=t5?Zs:e5;xp.exports=function(e){return Ip(Na,e)||(r5&&Ip(Zs,e)?Na[e]=Zs[e]:Na[e]=n5("Symbol."+e)),Na[e]}});var Js=l(Ap=>{var i5=Z();Ap.f=i5});var Ae=l((sae,_p)=>{var wp=lr(),a5=pe(),o5=Js(),s5=le().f;_p.exports=function(e){var r=wp.Symbol||(wp.Symbol={});a5(r,e)||s5(r,e,{value:o5.f(e)})}});var cr=l((uae,Tp)=>{var u5=le().f,l5=pe(),c5=Z(),Cp=c5("toStringTag");Tp.exports=function(e,r,t){e&&!l5(e=t?e:e.prototype,Cp)&&u5(e,Cp,{configurable:!0,value:r})}});var U=l((lae,Rp)=>{Rp.exports=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e}});var be=l((cae,Op)=>{var d5=U();Op.exports=function(e,r,t){if(d5(e),r===void 0)return e;switch(t){case 0:return function(){return e.call(r)};case 1:return function(n){return e.call(r,n)};case 2:return function(n,i){return e.call(r,n,i)};case 3:return function(n,i,a){return e.call(r,n,i,a)}}return function(){return e.apply(r,arguments)}}});var cn=l((dae,Pp)=>{var f5=ee(),Lp=Hr(),v5=Z(),p5=v5("species");Pp.exports=function(e,r){var t;return Lp(e)&&(t=e.constructor,typeof t=="function"&&(t===Array||Lp(t.prototype))?t=void 0:f5(t)&&(t=t[p5],t===null&&(t=void 0))),new(t===void 0?Array:t)(r===0?0:r)}});var Te=l((fae,Np)=>{var g5=be(),h5=nn(),m5=de(),y5=ie(),E5=cn(),S5=[].push,Pt=function(e){var r=e==1,t=e==2,n=e==3,i=e==4,a=e==6,o=e==5||a;return function(s,u,c,f){for(var d=m5(s),v=h5(d),g=g5(u,c,3),h=y5(v.length),m=0,E=f||E5,S=r?E(s,h):t?E(s,0):void 0,x,A;h>m;m++)if((o||m in v)&&(x=v[m],A=g(x,m,d),e)){if(r)S[m]=A;else if(A)switch(e){case 3:return!0;case 5:return x;case 6:return m;case 2:S5.call(S,x)}else if(i)return!1}return a?-1:n||i?i:S}};Np.exports={forEach:Pt(0),map:Pt(1),filter:Pt(2),some:Pt(3),every:Pt(4),find:Pt(5),findIndex:Pt(6)}});var eg=l(()=>{"use strict";var fn=p(),jp=K(),b5=ce(),q5=j(),dn=te(),lt=Oa(),I5=Ks(),cu=N(),we=pe(),x5=Hr(),A5=ee(),nu=w(),w5=de(),Da=He(),du=nr(),iu=qr(),ui=Ve(),Fp=Lt(),_5=st(),Bp=Qs(),au=Ta(),$p=Pe(),Vp=le(),Hp=ti(),C5=me(),Dp=Ne(),li=ni(),T5=ii(),Gp=on(),R5=an(),zp=Z(),O5=Js(),L5=Ae(),P5=cr(),Kp=qe(),Ma=Te().forEach,ze=T5("hidden"),Ua="Symbol",Gr="prototype",Mp=zp("toPrimitive"),N5=Kp.set,Up=Kp.getterFor(Ua),ir=Object[Gr],Ke=jp.Symbol,si=b5("JSON","stringify"),Yp=$p.f,ut=Vp.f,Wp=Bp.f,D5=Hp.f,zr=li("symbols"),ci=li("op-symbols"),eu=li("string-to-symbol-registry"),ru=li("symbol-to-string-registry"),M5=li("wks"),tu=jp.QObject,ou=!tu||!tu[Gr]||!tu[Gr].findChild,su=dn&&cu(function(){return ui(ut({},"a",{get:function(){return ut(this,"a",{value:7}).a}})).a!=7})?function(e,r,t){var n=Yp(ir,r);n&&delete ir[r],ut(e,r,t),n&&e!==ir&&ut(ir,r,n)}:ut,Xp=function(e,r){var t=zr[e]=ui(Ke[Gr]);return N5(t,{type:Ua,tag:e,description:r}),dn||(t.description=r),t},uu=lt&&typeof Ke.iterator=="symbol"?function(e){return typeof e=="symbol"}:function(e){return Object(e)instanceof Ke},ka=function(r,t,n){r===ir&&ka(ci,t,n),nu(r);var i=du(t,!0);return nu(n),we(zr,i)?(n.enumerable?(we(r,ze)&&r[ze][i]&&(r[ze][i]=!1),n=ui(n,{enumerable:iu(0,!1)})):(we(r,ze)||ut(r,ze,iu(1,{})),r[ze][i]=!0),su(r,i,n)):ut(r,i,n)},Qp=function(r,t){nu(r);var n=Da(t),i=Fp(n).concat(fu(n));return Ma(i,function(a){(!dn||lu.call(n,a))&&ka(r,a,n[a])}),r},U5=function(r,t){return t===void 0?ui(r):Qp(ui(r),t)},lu=function(r){var t=du(r,!0),n=D5.call(this,t);return this===ir&&we(zr,t)&&!we(ci,t)?!1:n||!we(this,t)||!we(zr,t)||we(this,ze)&&this[ze][t]?n:!0},Zp=function(r,t){var n=Da(r),i=du(t,!0);if(!(n===ir&&we(zr,i)&&!we(ci,i))){var a=Yp(n,i);return a&&we(zr,i)&&!(we(n,ze)&&n[ze][i])&&(a.enumerable=!0),a}},Jp=function(r){var t=Wp(Da(r)),n=[];return Ma(t,function(i){!we(zr,i)&&!we(Gp,i)&&n.push(i)}),n},fu=function(r){var t=r===ir,n=Wp(t?ci:Da(r)),i=[];return Ma(n,function(a){we(zr,a)&&(!t||we(ir,a))&&i.push(zr[a])}),i};lt||(Ke=function(){if(this instanceof Ke)throw TypeError("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=R5(r),n=function(i){this===ir&&n.call(ci,i),we(this,ze)&&we(this[ze],t)&&(this[ze][t]=!1),su(this,t,iu(1,i))};return dn&&ou&&su(ir,t,{configurable:!0,set:n}),Xp(t,r)},Dp(Ke[Gr],"toString",function(){return Up(this).tag}),Hp.f=lu,Vp.f=ka,$p.f=Zp,_5.f=Bp.f=Jp,au.f=fu,dn&&(ut(Ke[Gr],"description",{configurable:!0,get:function(){return Up(this).description}}),q5||Dp(ir,"propertyIsEnumerable",lu,{unsafe:!0})));I5||(O5.f=function(e){return Xp(zp(e),e)});fn({global:!0,wrap:!0,forced:!lt,sham:!lt},{Symbol:Ke});Ma(Fp(M5),function(e){L5(e)});fn({target:Ua,stat:!0,forced:!lt},{for:function(e){var r=String(e);if(we(eu,r))return eu[r];var t=Ke(r);return eu[r]=t,ru[t]=r,t},keyFor:function(r){if(!uu(r))throw TypeError(r+" is not a symbol");if(we(ru,r))return ru[r]},useSetter:function(){ou=!0},useSimple:function(){ou=!1}});fn({target:"Object",stat:!0,forced:!lt,sham:!dn},{create:U5,defineProperty:ka,defineProperties:Qp,getOwnPropertyDescriptor:Zp});fn({target:"Object",stat:!0,forced:!lt},{getOwnPropertyNames:Jp,getOwnPropertySymbols:fu});fn({target:"Object",stat:!0,forced:cu(function(){au.f(1)})},{getOwnPropertySymbols:function(r){return au.f(w5(r))}});si&&(kp=!lt||cu(function(){var e=Ke();return si([e])!="[null]"||si({a:e})!="{}"||si(Object(e))!="{}"}),fn({target:"JSON",stat:!0,forced:kp},{stringify:function(r,t,n){for(var i=[r],a=1,o;arguments.length>a;)i.push(arguments[a++]);if(o=t,!(!A5(t)&&r===void 0||uu(r)))return x5(t)||(t=function(s,u){if(typeof o=="function"&&(u=o.call(this,s,u)),!uu(u))return u}),i[1]=t,si.apply(null,i)}}));var kp;Ke[Gr][Mp]||C5(Ke[Gr],Mp,Ke[Gr].valueOf);P5(Ke,Ua);Gp[ze]=!0});var rg=l(()=>{var k5=Ae();k5("asyncIterator")});var ag=l(()=>{"use strict";var j5=p(),F5=te(),B5=K(),$5=pe(),V5=ee(),H5=le().f,G5=Gs(),Kr=B5.Symbol;F5&&typeof Kr=="function"&&(!("description"in Kr.prototype)||Kr().description!==void 0)&&(vu={},vn=function(){var r=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),t=this instanceof vn?new Kr(r):r===void 0?Kr():Kr(r);return r===""&&(vu[t]=!0),t},G5(vn,Kr),ja=vn.prototype=Kr.prototype,ja.constructor=vn,tg=ja.toString,ng=String(Kr("test"))=="Symbol(test)",ig=/^Symbol\((.*)\)[^)]+$/,H5(ja,"description",{configurable:!0,get:function(){var r=V5(this)?this.valueOf():this,t=tg.call(r);if($5(vu,r))return"";var n=ng?t.slice(7,-1):t.replace(ig,"$1");return n===""?void 0:n}}),j5({global:!0,forced:!0},{Symbol:vn}));var vu,vn,ja,tg,ng,ig});var og=l(()=>{var z5=Ae();z5("hasInstance")});var sg=l(()=>{var K5=Ae();K5("isConcatSpreadable")});var ug=l(()=>{var Y5=Ae();Y5("iterator")});var lg=l(()=>{var W5=Ae();W5("match")});var cg=l(()=>{var X5=Ae();X5("matchAll")});var dg=l(()=>{var Q5=Ae();Q5("replace")});var fg=l(()=>{var Z5=Ae();Z5("search")});var vg=l(()=>{var J5=Ae();J5("species")});var pg=l(()=>{var e8=Ae();e8("split")});var gg=l(()=>{var r8=Ae();r8("toPrimitive")});var hg=l(()=>{var t8=Ae();t8("toStringTag")});var mg=l(()=>{var n8=Ae();n8("unscopables")});var gu=l((Vae,Sg)=>{"use strict";var yg=te(),i8=N(),pu=Lt(),a8=Ta(),o8=ti(),s8=de(),u8=nn(),pn=Object.assign,Eg=Object.defineProperty;Sg.exports=!pn||i8(function(){if(yg&&pn({b:1},pn(Eg({},"a",{enumerable:!0,get:function(){Eg(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol(),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(i){r[i]=i}),pn({},e)[t]!=7||pu(pn({},r)).join("")!=n})?function(r,t){for(var n=s8(r),i=arguments.length,a=1,o=a8.f,s=o8.f;i>a;)for(var u=u8(arguments[a++]),c=o?pu(u).concat(o(u)):pu(u),f=c.length,d=0,v;f>d;)v=c[d++],(!yg||s.call(u,v))&&(n[v]=u[v]);return n}:pn});var qg=l(()=>{var l8=p(),bg=gu();l8({target:"Object",stat:!0,forced:Object.assign!==bg},{assign:bg})});var Ig=l(()=>{var c8=p(),d8=te(),f8=Ve();c8({target:"Object",stat:!0,sham:!d8},{create:f8})});var Ag=l(()=>{var v8=p(),xg=te(),p8=le();v8({target:"Object",stat:!0,forced:!xg,sham:!xg},{defineProperty:p8.f})});var _g=l(()=>{var g8=p(),wg=te(),h8=La();g8({target:"Object",stat:!0,forced:!wg,sham:!wg},{defineProperties:h8})});var hu=l((Zae,Tg)=>{var m8=te(),y8=Lt(),E8=He(),S8=ti().f,Cg=function(e){return function(r){for(var t=E8(r),n=y8(t),i=n.length,a=0,o=[],s;i>a;)s=n[a++],(!m8||S8.call(t,s))&&o.push(e?[s,t[s]]:t[s]);return o}};Tg.exports={entries:Cg(!0),values:Cg(!1)}});var Rg=l(()=>{var b8=p(),q8=hu().entries;b8({target:"Object",stat:!0},{entries:function(r){return q8(r)}})});var gn=l((roe,Og)=>{var I8=N();Og.exports=!I8(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ct=l((toe,Lg)=>{var x8=on(),A8=ee(),mu=pe(),w8=le().f,_8=an(),C8=gn(),Nt=_8("meta"),T8=0,yu=Object.isExtensible||function(){return!0},Eu=function(e){w8(e,Nt,{value:{objectID:"O"+ ++T8,weakData:{}}})},R8=function(e,r){if(!A8(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!mu(e,Nt)){if(!yu(e))return"F";if(!r)return"E";Eu(e)}return e[Nt].objectID},O8=function(e,r){if(!mu(e,Nt)){if(!yu(e))return!0;if(!r)return!1;Eu(e)}return e[Nt].weakData},L8=function(e){return C8&&P8.REQUIRED&&yu(e)&&!mu(e,Nt)&&Eu(e),e},P8=Lg.exports={REQUIRED:!1,fastKey:R8,getWeakData:O8,onFreeze:L8};x8[Nt]=!0});var Pg=l(()=>{var N8=p(),D8=gn(),M8=N(),U8=ee(),k8=ct().onFreeze,Su=Object.freeze,j8=M8(function(){Su(1)});N8({target:"Object",stat:!0,forced:j8,sham:!D8},{freeze:function(r){return Su&&U8(r)?Su(k8(r)):r}})});var hn=l((aoe,Ng)=>{Ng.exports={}});var Fa=l((ooe,Dg)=>{var F8=Z(),B8=hn(),$8=F8("iterator"),V8=Array.prototype;Dg.exports=function(e){return e!==void 0&&(B8.Array===e||V8[$8]===e)}});var Ba=l((soe,Ug)=>{var H8=Z(),G8=H8("toStringTag"),Mg={};Mg[G8]="z";Ug.exports=String(Mg)==="[object z]"});var mn=l((uoe,kg)=>{var z8=Ba(),$a=Xe(),K8=Z(),Y8=K8("toStringTag"),W8=$a(function(){return arguments}())=="Arguments",X8=function(e,r){try{return e[r]}catch(t){}};kg.exports=z8?$a:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=X8(r=Object(e),Y8))=="string"?t:W8?$a(r):(n=$a(r))=="Object"&&typeof r.callee=="function"?"Arguments":n}});var Yr=l((loe,jg)=>{var Q8=mn(),Z8=hn(),J8=Z(),eL=J8("iterator");jg.exports=function(e){if(e!=null)return e[eL]||e["@@iterator"]||Z8[Q8(e)]}});var yn=l((coe,Bg)=>{var Fg=w();Bg.exports=function(e,r,t,n){try{return n?r(Fg(t)[0],t[1]):r(t)}catch(a){var i=e.return;throw i!==void 0&&Fg(i.call(e)),a}}});var Y=l((doe,$g)=>{var rL=w(),tL=Fa(),nL=ie(),iL=be(),aL=Yr(),oL=yn(),di=function(e,r){this.stopped=e,this.result=r},sL=$g.exports=function(e,r,t,n,i){var a=iL(r,t,n?2:1),o,s,u,c,f,d,v;if(i)o=e;else{if(s=aL(e),typeof s!="function")throw TypeError("Target is not iterable");if(tL(s)){for(u=0,c=nL(e.length);c>u;u++)if(f=n?a(rL(v=e[u])[0],v[1]):a(e[u]),f&&f instanceof di)return f;return new di(!1)}o=s.call(e)}for(d=o.next;!(v=d.call(o)).done;)if(f=oL(o,a,v.value,n),typeof f=="object"&&f&&f instanceof di)return f;return new di(!1)};sL.stop=function(e){return new di(!0,e)}});var dt=l((foe,Vg)=>{"use strict";var uL=nr(),lL=le(),cL=qr();Vg.exports=function(e,r,t){var n=uL(r);n in e?lL.f(e,n,cL(0,t)):e[n]=t}});var Hg=l(()=>{var dL=p(),fL=Y(),vL=dt();dL({target:"Object",stat:!0},{fromEntries:function(r){var t={};return fL(r,function(n,i){vL(t,n,i)},void 0,!0),t}})});var Kg=l(()=>{var pL=p(),gL=N(),hL=He(),Gg=Pe().f,zg=te(),mL=gL(function(){Gg(1)}),yL=!zg||mL;pL({target:"Object",stat:!0,forced:yL,sham:!zg},{getOwnPropertyDescriptor:function(r,t){return Gg(hL(r),t)}})});var Yg=l(()=>{var EL=p(),SL=te(),bL=Ra(),qL=He(),IL=Pe(),xL=dt();EL({target:"Object",stat:!0,sham:!SL},{getOwnPropertyDescriptors:function(r){for(var t=qL(r),n=IL.f,i=bL(t),a={},o=0,s,u;i.length>o;)u=n(t,s=i[o++]),u!==void 0&&xL(a,s,u);return a}})});var Wg=l(()=>{var AL=p(),wL=N(),_L=Qs().f,CL=wL(function(){return!Object.getOwnPropertyNames(1)});AL({target:"Object",stat:!0,forced:CL},{getOwnPropertyNames:_L})});var Va=l((boe,Xg)=>{var TL=N();Xg.exports=!TL(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ke=l((qoe,Zg)=>{var RL=pe(),OL=de(),LL=ii(),PL=Va(),Qg=LL("IE_PROTO"),NL=Object.prototype;Zg.exports=PL?Object.getPrototypeOf:function(e){return e=OL(e),RL(e,Qg)?e[Qg]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?NL:null}});var eh=l(()=>{var DL=p(),ML=N(),UL=de(),Jg=ke(),kL=Va(),jL=ML(function(){Jg(1)});DL({target:"Object",stat:!0,forced:jL,sham:!kL},{getPrototypeOf:function(r){return Jg(UL(r))}})});var bu=l((Aoe,rh)=>{rh.exports=Object.is||function(r,t){return r===t?r!==0||1/r===1/t:r!=r&&t!=t}});var th=l(()=>{var FL=p(),BL=bu();FL({target:"Object",stat:!0},{is:BL})});var nh=l(()=>{var $L=p(),VL=N(),HL=ee(),qu=Object.isExtensible,GL=VL(function(){qu(1)});$L({target:"Object",stat:!0,forced:GL},{isExtensible:function(r){return HL(r)?qu?qu(r):!0:!1}})});var ih=l(()=>{var zL=p(),KL=N(),YL=ee(),Iu=Object.isFrozen,WL=KL(function(){Iu(1)});zL({target:"Object",stat:!0,forced:WL},{isFrozen:function(r){return YL(r)?Iu?Iu(r):!1:!0}})});var ah=l(()=>{var XL=p(),QL=N(),ZL=ee(),xu=Object.isSealed,JL=QL(function(){xu(1)});XL({target:"Object",stat:!0,forced:JL},{isSealed:function(r){return ZL(r)?xu?xu(r):!1:!0}})});var sh=l(()=>{var e9=p(),r9=de(),oh=Lt(),t9=N(),n9=t9(function(){oh(1)});e9({target:"Object",stat:!0,forced:n9},{keys:function(r){return oh(r9(r))}})});var uh=l(()=>{var i9=p(),a9=ee(),o9=ct().onFreeze,s9=gn(),u9=N(),Au=Object.preventExtensions,l9=u9(function(){Au(1)});i9({target:"Object",stat:!0,forced:l9,sham:!s9},{preventExtensions:function(r){return Au&&a9(r)?Au(o9(r)):r}})});var lh=l(()=>{var c9=p(),d9=ee(),f9=ct().onFreeze,v9=gn(),p9=N(),wu=Object.seal,g9=p9(function(){wu(1)});c9({target:"Object",stat:!0,forced:g9,sham:!v9},{seal:function(r){return wu&&d9(r)?wu(f9(r)):r}})});var _u=l((Foe,ch)=>{var h9=ee();ch.exports=function(e){if(!h9(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e}});var ft=l((Boe,dh)=>{var m9=w(),y9=_u();dh.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return m9(i),y9(a),e?t.call(i,a):i.__proto__=a,i}}():void 0)});var fh=l(()=>{var E9=p(),S9=ft();E9({target:"Object",stat:!0},{setPrototypeOf:S9})});var vh=l(()=>{var b9=p(),q9=hu().values;b9({target:"Object",stat:!0},{values:function(r){return q9(r)}})});var gh=l((zoe,ph)=>{"use strict";var I9=Ba(),x9=mn();ph.exports=I9?{}.toString:function(){return"[object "+x9(this)+"]"}});var hh=l(()=>{var A9=Ba(),w9=Ne(),_9=gh();A9||w9(Object.prototype,"toString",_9,{unsafe:!0})});var fi=l((Woe,mh)=>{"use strict";var C9=j(),T9=K(),R9=N();mh.exports=C9||!R9(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete T9[e]})});var yh=l(()=>{"use strict";var O9=p(),L9=te(),P9=fi(),N9=de(),D9=U(),M9=le();L9&&O9({target:"Object",proto:!0,forced:P9},{__defineGetter__:function(r,t){M9.f(N9(this),r,{get:D9(t),enumerable:!0,configurable:!0})}})});var Eh=l(()=>{"use strict";var U9=p(),k9=te(),j9=fi(),F9=de(),B9=U(),$9=le();k9&&U9({target:"Object",proto:!0,forced:j9},{__defineSetter__:function(r,t){$9.f(F9(this),r,{set:B9(t),enumerable:!0,configurable:!0})}})});var Sh=l(()=>{"use strict";var V9=p(),H9=te(),G9=fi(),z9=de(),K9=nr(),Y9=ke(),W9=Pe().f;H9&&V9({target:"Object",proto:!0,forced:G9},{__lookupGetter__:function(r){var t=z9(this),n=K9(r,!0),i;do if(i=W9(t,n))return i.get;while(t=Y9(t))}})});var bh=l(()=>{"use strict";var X9=p(),Q9=te(),Z9=fi(),J9=de(),e6=nr(),r6=ke(),t6=Pe().f;Q9&&X9({target:"Object",proto:!0,forced:Z9},{__lookupSetter__:function(r){var t=J9(this),n=e6(r,!0),i;do if(i=t6(t,n))return i.set;while(t=r6(t))}})});var Tu=l((ise,Ih)=>{"use strict";var n6=U(),i6=ee(),qh=[].slice,Cu={},a6=function(e,r,t){if(!(r in Cu)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";Cu[r]=Function("C,a","return new C("+n.join(",")+")")}return Cu[r](e,t)};Ih.exports=Function.bind||function(r){var t=n6(this),n=qh.call(arguments,1),i=function(){var o=n.concat(qh.call(arguments));return this instanceof i?a6(t,o.length,o):t.apply(r,o)};return i6(t.prototype)&&(i.prototype=t.prototype),i}});var xh=l(()=>{var o6=p(),s6=Tu();o6({target:"Function",proto:!0},{bind:s6})});var wh=l(()=>{var u6=te(),l6=le().f,Ru=Function.prototype,c6=Ru.toString,d6=/^\s*function ([^ (]*)/,Ah="name";u6&&!(Ah in Ru)&&l6(Ru,Ah,{configurable:!0,get:function(){try{return c6.call(this).match(d6)[1]}catch(e){return""}}})});var Rh=l(()=>{"use strict";var _h=ee(),f6=le(),v6=ke(),p6=Z(),Ch=p6("hasInstance"),Th=Function.prototype;Ch in Th||f6.f(Th,Ch,{value:function(e){if(typeof this!="function"||!_h(e))return!1;if(!_h(this.prototype))return e instanceof this;for(;e=v6(e);)if(this.prototype===e)return!0;return!1}})});var Ou=l(()=>{var g6=p(),h6=K();g6({global:!0},{globalThis:h6})});var Lu=l((vse,Lh)=>{"use strict";var m6=be(),y6=de(),E6=yn(),S6=Fa(),b6=ie(),Oh=dt(),q6=Yr();Lh.exports=function(r){var t=y6(r),n=typeof this=="function"?this:Array,i=arguments.length,a=i>1?arguments[1]:void 0,o=a!==void 0,s=0,u=q6(t),c,f,d,v,g;if(o&&(a=m6(a,i>2?arguments[2]:void 0,2)),u!=null&&!(n==Array&&S6(u)))for(v=u.call(t),g=v.next,f=new n;!(d=g.call(v)).done;s++)Oh(f,s,o?E6(v,a,[d.value,s],!0):d.value);else for(c=b6(t.length),f=new n(c);c>s;s++)Oh(f,s,o?a(t[s],s):t[s]);return f.length=s,f}});var vi=l((pse,Mh)=>{var I6=Z(),Nh=I6("iterator"),Dh=!1;try{Ph=0,Pu={next:function(){return{done:!!Ph++}},return:function(){Dh=!0}},Pu[Nh]=function(){return this},Array.from(Pu,function(){throw 2})}catch(e){}var Ph,Pu;Mh.exports=function(e,r){if(!r&&!Dh)return!1;var t=!1;try{var n={};n[Nh]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch(i){}return t}});var Uh=l(()=>{var x6=p(),A6=Lu(),w6=vi(),_6=!w6(function(e){Array.from(e)});x6({target:"Array",stat:!0,forced:_6},{from:A6})});var kh=l(()=>{var C6=p(),T6=Hr();C6({target:"Array",stat:!0},{isArray:T6})});var jh=l(()=>{"use strict";var R6=p(),O6=N(),L6=dt(),P6=O6(function(){function e(){}return!(Array.of.call(e)instanceof e)});R6({target:"Array",stat:!0,forced:P6},{of:function(){for(var r=0,t=arguments.length,n=new(typeof this=="function"?this:Array)(t);t>r;)L6(n,r,arguments[r++]);return n.length=t,n}})});var pi=l((bse,Fh)=>{var N6=ce();Fh.exports=N6("navigator","userAgent")||""});var Ga=l((qse,Hh)=>{var D6=K(),Nu=pi(),Bh=D6.process,$h=Bh&&Bh.versions,Vh=$h&&$h.v8,Wr,Ha;Vh?(Wr=Vh.split("."),Ha=Wr[0]+Wr[1]):Nu&&(Wr=Nu.match(/Edge\/(\d+)/),(!Wr||Wr[1]>=74)&&(Wr=Nu.match(/Chrome\/(\d+)/),Wr&&(Ha=Wr[1])));Hh.exports=Ha&&+Ha});var En=l((Ise,Gh)=>{var M6=N(),U6=Z(),k6=Ga(),j6=U6("species");Gh.exports=function(e){return k6>=51||!M6(function(){var r=[],t=r.constructor={};return t[j6]=function(){return{foo:1}},r[e](Boolean).foo!==1})}});var Xh=l(()=>{"use strict";var F6=p(),B6=N(),$6=Hr(),V6=ee(),H6=de(),G6=ie(),zh=dt(),z6=cn(),K6=En(),Y6=Z(),W6=Ga(),Wh=Y6("isConcatSpreadable"),Kh=9007199254740991,Yh="Maximum allowed index exceeded",X6=W6>=51||!B6(function(){var e=[];return e[Wh]=!1,e.concat()[0]!==e}),Q6=K6("concat"),Z6=function(e){if(!V6(e))return!1;var r=e[Wh];return r!==void 0?!!r:$6(e)},J6=!X6||!Q6;F6({target:"Array",proto:!0,forced:J6},{concat:function(r){var t=H6(this),n=z6(t,0),i=0,a,o,s,u,c;for(a=-1,s=arguments.length;a<s;a++)if(c=a===-1?t:arguments[a],Z6(c)){if(u=G6(c.length),i+u>Kh)throw TypeError(Yh);for(o=0;o<u;o++,i++)o in c&&zh(n,i,c[o])}else{if(i>=Kh)throw TypeError(Yh);zh(n,i++,c)}return n.length=i,n}})});var Mu=l((wse,Qh)=>{"use strict";var eP=de(),Du=Vr(),rP=ie(),tP=Math.min;Qh.exports=[].copyWithin||function(r,t){var n=eP(this),i=rP(n.length),a=Du(r,i),o=Du(t,i),s=arguments.length>2?arguments[2]:void 0,u=tP((s===void 0?i:Du(s,i))-o,i-a),c=1;for(o<a&&a<o+u&&(c=-1,o+=u-1,a+=u-1);u-- >0;)o in n?n[a]=n[o]:delete n[a],a+=c,o+=c;return n}});var dr=l((_se,Zh)=>{var nP=Z(),iP=Ve(),aP=me(),Uu=nP("unscopables"),ku=Array.prototype;ku[Uu]==null&&aP(ku,Uu,iP(null));Zh.exports=function(e){ku[Uu][e]=!0}});var Jh=l(()=>{var oP=p(),sP=Mu(),uP=dr();oP({target:"Array",proto:!0},{copyWithin:sP});uP("copyWithin")});var Ir=l((Rse,em)=>{"use strict";var lP=N();em.exports=function(e,r){var t=[][e];return!t||!lP(function(){t.call(null,r||function(){throw 1},1)})}});var rm=l(()=>{"use strict";var cP=p(),dP=Te().every,fP=Ir();cP({target:"Array",proto:!0,forced:fP("every")},{every:function(r){return dP(this,r,arguments.length>1?arguments[1]:void 0)}})});var za=l((Pse,nm)=>{"use strict";var vP=de(),tm=Vr(),pP=ie();nm.exports=function(r){for(var t=vP(this),n=pP(t.length),i=arguments.length,a=tm(i>1?arguments[1]:void 0,n),o=i>2?arguments[2]:void 0,s=o===void 0?n:tm(o,n);s>a;)t[a++]=r;return t}});var im=l(()=>{var gP=p(),hP=za(),mP=dr();gP({target:"Array",proto:!0},{fill:hP});mP("fill")});var om=l(()=>{"use strict";var yP=p(),EP=Te().filter,SP=N(),bP=En(),am=bP("filter"),qP=am&&!SP(function(){[].filter.call({length:-1,0:1},function(e){throw e})});yP({target:"Array",proto:!0,forced:!am||!qP},{filter:function(r){return EP(this,r,arguments.length>1?arguments[1]:void 0)}})});var um=l(()=>{"use strict";var IP=p(),xP=Te().find,AP=dr(),ju="find",sm=!0;ju in[]&&Array(1)[ju](function(){sm=!1});IP({target:"Array",proto:!0,forced:sm},{find:function(r){return xP(this,r,arguments.length>1?arguments[1]:void 0)}});AP(ju)});var cm=l(()=>{"use strict";var wP=p(),_P=Te().findIndex,CP=dr(),Fu="findIndex",lm=!0;Fu in[]&&Array(1)[Fu](function(){lm=!1});wP({target:"Array",proto:!0,forced:lm},{findIndex:function(r){return _P(this,r,arguments.length>1?arguments[1]:void 0)}});CP(Fu)});var Bu=l(($se,fm)=>{"use strict";var TP=Hr(),RP=ie(),OP=be(),dm=function(e,r,t,n,i,a,o,s){for(var u=i,c=0,f=o?OP(o,s,3):!1,d;c<n;){if(c in t){if(d=f?f(t[c],c,r):t[c],a>0&&TP(d))u=dm(e,r,d,RP(d.length),u,a-1)-1;else{if(u>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[u]=d}u++}c++}return u};fm.exports=dm});var vm=l(()=>{"use strict";var LP=p(),PP=Bu(),NP=de(),DP=ie(),MP=Ge(),UP=cn();LP({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,t=NP(this),n=DP(t.length),i=UP(t,0);return i.length=PP(i,t,t,n,0,r===void 0?1:MP(r)),i}})});var pm=l(()=>{"use strict";var kP=p(),jP=Bu(),FP=de(),BP=ie(),$P=U(),VP=cn();kP({target:"Array",proto:!0},{flatMap:function(r){var t=FP(this),n=BP(t.length),i;return $P(r),i=VP(t,0),i.length=jP(i,t,t,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}})});var $u=l((Kse,gm)=>{"use strict";var HP=Te().forEach,GP=Ir();gm.exports=GP("forEach")?function(r){return HP(this,r,arguments.length>1?arguments[1]:void 0)}:[].forEach});var mm=l(()=>{"use strict";var zP=p(),hm=$u();zP({target:"Array",proto:!0,forced:[].forEach!=hm},{forEach:hm})});var ym=l(()=>{"use strict";var KP=p(),YP=un().includes,WP=dr();KP({target:"Array",proto:!0},{includes:function(r){return YP(this,r,arguments.length>1?arguments[1]:void 0)}});WP("includes")});var bm=l(()=>{"use strict";var XP=p(),QP=un().indexOf,ZP=Ir(),Sm=[].indexOf,Em=!!Sm&&1/[1].indexOf(1,-0)<0,JP=ZP("indexOf");XP({target:"Array",proto:!0,forced:Em||JP},{indexOf:function(r){return Em?Sm.apply(this,arguments)||0:QP(this,r,arguments.length>1?arguments[1]:void 0)}})});var qm=l(()=>{"use strict";var e4=p(),r4=nn(),t4=He(),n4=Ir(),i4=[].join,a4=r4!=Object,o4=n4("join",",");e4({target:"Array",proto:!0,forced:a4||o4},{join:function(r){return i4.call(t4(this),r===void 0?",":r)}})});var Hu=l((tue,xm)=>{"use strict";var s4=He(),u4=Ge(),l4=ie(),c4=Ir(),d4=Math.min,Vu=[].lastIndexOf,Im=!!Vu&&1/[1].lastIndexOf(1,-0)<0,f4=c4("lastIndexOf");xm.exports=Im||f4?function(r){if(Im)return Vu.apply(this,arguments)||0;var t=s4(this),n=l4(t.length),i=n-1;for(arguments.length>1&&(i=d4(i,u4(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===r)return i||0;return-1}:Vu});var wm=l(()=>{var v4=p(),Am=Hu();v4({target:"Array",proto:!0,forced:Am!==[].lastIndexOf},{lastIndexOf:Am})});var Cm=l(()=>{"use strict";var p4=p(),g4=Te().map,h4=N(),m4=En(),_m=m4("map"),y4=_m&&!h4(function(){[].map.call({length:-1,0:1},function(e){throw e})});p4({target:"Array",proto:!0,forced:!_m||!y4},{map:function(r){return g4(this,r,arguments.length>1?arguments[1]:void 0)}})});var gi=l((sue,Rm)=>{var E4=U(),S4=de(),b4=nn(),q4=ie(),Tm=function(e){return function(r,t,n,i){E4(t);var a=S4(r),o=b4(a),s=q4(a.length),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in o){i=o[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in o&&(i=t(i,o[u],u,a));return i}};Rm.exports={left:Tm(!1),right:Tm(!0)}});var Om=l(()=>{"use strict";var I4=p(),x4=gi().left,A4=Ir();I4({target:"Array",proto:!0,forced:A4("reduce")},{reduce:function(r){return x4(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var Lm=l(()=>{"use strict";var w4=p(),_4=gi().right,C4=Ir();w4({target:"Array",proto:!0,forced:C4("reduceRight")},{reduceRight:function(r){return _4(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var Nm=l(()=>{"use strict";var T4=p(),R4=Hr(),O4=[].reverse,Pm=[1,2];T4({target:"Array",proto:!0,forced:String(Pm)===String(Pm.reverse())},{reverse:function(){return R4(this)&&(this.length=this.length),O4.call(this)}})});var Um=l(()=>{"use strict";var L4=p(),P4=ee(),Dm=Hr(),Mm=Vr(),N4=ie(),D4=He(),M4=dt(),U4=En(),k4=Z(),j4=k4("species"),F4=[].slice,B4=Math.max;L4({target:"Array",proto:!0,forced:!U4("slice")},{slice:function(r,t){var n=D4(this),i=N4(n.length),a=Mm(r,i),o=Mm(t===void 0?i:t,i),s,u,c;if(Dm(n)&&(s=n.constructor,typeof s=="function"&&(s===Array||Dm(s.prototype))?s=void 0:P4(s)&&(s=s[j4],s===null&&(s=void 0)),s===Array||s===void 0))return F4.call(n,a,o);for(u=new(s===void 0?Array:s)(B4(o-a,0)),c=0;a<o;a++,c++)a in n&&M4(u,c,n[a]);return u.length=c,u}})});var km=l(()=>{"use strict";var $4=p(),V4=Te().some,H4=Ir();$4({target:"Array",proto:!0,forced:H4("some")},{some:function(r){return V4(this,r,arguments.length>1?arguments[1]:void 0)}})});var $m=l(()=>{"use strict";var G4=p(),z4=U(),jm=de(),Bm=N(),K4=Ir(),Gu=[],Fm=Gu.sort,Y4=Bm(function(){Gu.sort(void 0)}),W4=Bm(function(){Gu.sort(null)}),X4=K4("sort"),Q4=Y4||!W4||X4;G4({target:"Array",proto:!0,forced:Q4},{sort:function(r){return r===void 0?Fm.call(jm(this)):Fm.call(jm(this),z4(r))}})});var Vm=l(()=>{"use strict";var Z4=p(),J4=Vr(),eN=Ge(),rN=ie(),tN=de(),nN=cn(),iN=dt(),aN=En(),oN=Math.max,sN=Math.min,uN=9007199254740991,lN="Maximum allowed length exceeded";Z4({target:"Array",proto:!0,forced:!aN("splice")},{splice:function(r,t){var n=tN(this),i=rN(n.length),a=J4(r,i),o=arguments.length,s,u,c,f,d,v;if(o===0?s=u=0:o===1?(s=0,u=i-a):(s=o-2,u=sN(oN(eN(t),0),i-a)),i+s-u>uN)throw TypeError(lN);for(c=nN(n,u),f=0;f<u;f++)d=a+f,d in n&&iN(c,f,n[d]);if(c.length=u,s<u){for(f=a;f<i-u;f++)d=f+u,v=f+s,d in n?n[v]=n[d]:delete n[v];for(f=i;f>i-u+s;f--)delete n[f-1]}else if(s>u)for(f=i-u;f>a;f--)d=f+u-1,v=f+s-1,d in n?n[v]=n[d]:delete n[v];for(f=0;f<s;f++)n[f+a]=arguments[f+2];return n.length=i-u+s,c}})});var vt=l((que,Gm)=>{"use strict";var cN=ce(),dN=le(),fN=Z(),vN=te(),Hm=fN("species");Gm.exports=function(e){var r=cN(e),t=dN.f;vN&&r&&!r[Hm]&&t(r,Hm,{configurable:!0,get:function(){return this}})}});var zm=l(()=>{var pN=vt();pN("Array")});var Km=l(()=>{var gN=dr();gN("flat")});var Ym=l(()=>{var hN=dr();hN("flatMap")});var Ka=l((Tue,Zm)=>{"use strict";var Wm=ke(),mN=me(),yN=pe(),EN=Z(),SN=j(),Xm=EN("iterator"),Qm=!1,bN=function(){return this},Sn,zu,Ku;[].keys&&(Ku=[].keys(),"next"in Ku?(zu=Wm(Wm(Ku)),zu!==Object.prototype&&(Sn=zu)):Qm=!0);Sn==null&&(Sn={});!SN&&!yN(Sn,Xm)&&mN(Sn,Xm,bN);Zm.exports={IteratorPrototype:Sn,BUGGY_SAFARI_ITERATORS:Qm}});var Dt=l((Rue,Jm)=>{"use strict";var qN=Ka().IteratorPrototype,IN=Ve(),xN=qr(),AN=cr(),wN=hn(),_N=function(){return this};Jm.exports=function(e,r,t){var n=r+" Iterator";return e.prototype=IN(qN,{next:xN(1,t)}),AN(e,n,!1,!0),wN[n]=_N,e}});var Xa=l((Oue,uy)=>{"use strict";var CN=p(),TN=Dt(),ey=ke(),ry=ft(),RN=cr(),ty=me(),ON=Ne(),LN=Z(),Yu=j(),ny=hn(),sy=Ka(),Wu=sy.IteratorPrototype,Ya=sy.BUGGY_SAFARI_ITERATORS,hi=LN("iterator"),iy="keys",Wa="values",ay="entries",oy=function(){return this};uy.exports=function(e,r,t,n,i,a,o){TN(t,r,n);var s=function(S){if(S===i&&v)return v;if(!Ya&&S in f)return f[S];switch(S){case iy:return function(){return new t(this,S)};case Wa:return function(){return new t(this,S)};case ay:return function(){return new t(this,S)}}return function(){return new t(this)}},u=r+" Iterator",c=!1,f=e.prototype,d=f[hi]||f["@@iterator"]||i&&f[i],v=!Ya&&d||s(i),g=r=="Array"&&f.entries||d,h,m,E;if(g&&(h=ey(g.call(new e)),Wu!==Object.prototype&&h.next&&(!Yu&&ey(h)!==Wu&&(ry?ry(h,Wu):typeof h[hi]!="function"&&ty(h,hi,oy)),RN(h,u,!0,!0),Yu&&(ny[u]=oy))),i==Wa&&d&&d.name!==Wa&&(c=!0,v=function(){return d.call(this)}),(!Yu||o)&&f[hi]!==v&&ty(f,hi,v),ny[r]=v,i)if(m={values:s(Wa),keys:a?v:s(iy),entries:s(ay)},o)for(E in m)(Ya||c||!(E in f))&&ON(f,E,m[E]);else CN({target:r,proto:!0,forced:Ya||c},m);return m}});var mi=l((Lue,fy)=>{"use strict";var PN=He(),Xu=dr(),ly=hn(),cy=qe(),NN=Xa(),dy="Array Iterator",DN=cy.set,MN=cy.getterFor(dy);fy.exports=NN(Array,"Array",function(e,r){DN(this,{type:dy,target:PN(e),index:0,kind:r})},function(){var e=MN(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,{value:void 0,done:!0}):t=="keys"?{value:n,done:!1}:t=="values"?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}},"values");ly.Arguments=ly.Array;Xu("keys");Xu("values");Xu("entries")});var gy=l(()=>{var UN=p(),kN=Vr(),vy=String.fromCharCode,py=String.fromCodePoint,jN=!!py&&py.length!=1;UN({target:"String",stat:!0,forced:jN},{fromCodePoint:function(r){for(var t=[],n=arguments.length,i=0,a;n>i;){if(a=+arguments[i++],kN(a,1114111)!==a)throw RangeError(a+" is not a valid code point");t.push(a<65536?vy(a):vy(((a-=65536)>>10)+55296,a%1024+56320))}return t.join("")}})});var hy=l(()=>{var FN=p(),BN=He(),$N=ie();FN({target:"String",stat:!0},{raw:function(r){for(var t=BN(r.raw),n=$N(t.length),i=arguments.length,a=[],o=0;n>o;)a.push(String(t[o++])),o<i&&a.push(String(arguments[o]));return a.join("")}})});var Mt=l((Uue,yy)=>{var VN=Ge(),HN=Ce(),my=function(e){return function(r,t){var n=String(HN(r)),i=VN(t),a=n.length,o,s;return i<0||i>=a?e?"":void 0:(o=n.charCodeAt(i),o<55296||o>56319||i+1===a||(s=n.charCodeAt(i+1))<56320||s>57343?e?n.charAt(i):o:e?n.slice(i,i+2):(o-55296<<10)+(s-56320)+65536)}};yy.exports={codeAt:my(!1),charAt:my(!0)}});var Ey=l(()=>{"use strict";var GN=p(),zN=Mt().codeAt;GN({target:"String",proto:!0},{codePointAt:function(r){return zN(this,r)}})});var bn=l((Fue,Sy)=>{var KN=ee(),YN=Xe(),WN=Z(),XN=WN("match");Sy.exports=function(e){var r;return KN(e)&&((r=e[XN])!==void 0?!!r:YN(e)=="RegExp")}});var Qa=l((Bue,by)=>{var QN=bn();by.exports=function(e){if(QN(e))throw TypeError("The method doesn't accept regular expressions");return e}});var Za=l(($ue,qy)=>{var ZN=Z(),JN=ZN("match");qy.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[JN]=!1,"/./"[e](r)}catch(n){}}return!1}});var wy=l(()=>{"use strict";var eD=p(),rD=Pe().f,Iy=ie(),tD=Qa(),nD=Ce(),iD=Za(),aD=j(),xy="".endsWith,oD=Math.min,Ay=iD("endsWith"),sD=!aD&&!Ay&&!!function(){var e=rD(String.prototype,"endsWith");return e&&!e.writable}();eD({target:"String",proto:!0,forced:!sD&&!Ay},{endsWith:function(r){var t=String(nD(this));tD(r);var n=arguments.length>1?arguments[1]:void 0,i=Iy(t.length),a=n===void 0?i:oD(Iy(n),i),o=String(r);return xy?xy.call(t,o,a):t.slice(a-o.length,a)===o}})});var _y=l(()=>{"use strict";var uD=p(),lD=Qa(),cD=Ce(),dD=Za();uD({target:"String",proto:!0,forced:!dD("includes")},{includes:function(r){return!!~String(cD(this)).indexOf(lD(r),arguments.length>1?arguments[1]:void 0)}})});var Ut=l((Kue,Cy)=>{"use strict";var fD=w();Cy.exports=function(){var e=fD(this),r="";return e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.sticky&&(r+="y"),r}});var yi=l((Yue,Ry)=>{"use strict";var vD=Ut(),Ja=RegExp.prototype.exec,pD=String.prototype.replace,Ty=Ja,Qu=function(){var e=/a/,r=/b*/g;return Ja.call(e,"a"),Ja.call(r,"a"),e.lastIndex!==0||r.lastIndex!==0}(),Zu=/()??/.exec("")[1]!==void 0,gD=Qu||Zu;gD&&(Ty=function(r){var t=this,n,i,a,o;return Zu&&(i=new RegExp("^"+t.source+"$(?!\\s)",vD.call(t))),Qu&&(n=t.lastIndex),a=Ja.call(t,r),Qu&&a&&(t.lastIndex=t.global?a.index+a[0].length:n),Zu&&a&&a.length>1&&pD.call(a[0],i,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a});Ry.exports=Ty});var Ei=l((Wue,Py)=>{"use strict";var hD=me(),Oy=Ne(),eo=N(),Ly=Z(),mD=yi(),yD=Ly("species"),ED=!eo(function(){var e=/./;return e.exec=function(){var r=[];return r.groups={a:"7"},r},"".replace(e,"$<a>")!=="7"}),SD=!eo(function(){var e=/(?:)/,r=e.exec;e.exec=function(){return r.apply(this,arguments)};var t="ab".split(e);return t.length!==2||t[0]!=="a"||t[1]!=="b"});Py.exports=function(e,r,t,n){var i=Ly(e),a=!eo(function(){var d={};return d[i]=function(){return 7},""[e](d)!=7}),o=a&&!eo(function(){var d=!1,v=/a/;return e==="split"&&(v={},v.constructor={},v.constructor[yD]=function(){return v},v.flags="",v[i]=/./[i]),v.exec=function(){return d=!0,null},v[i](""),!d});if(!a||!o||e==="replace"&&!ED||e==="split"&&!SD){var s=/./[i],u=t(i,""[e],function(d,v,g,h,m){return v.exec===mD?a&&!m?{done:!0,value:s.call(v,g,h)}:{done:!0,value:d.call(g,v,h)}:{done:!1}}),c=u[0],f=u[1];Oy(String.prototype,e,c),Oy(RegExp.prototype,i,r==2?function(d,v){return f.call(d,this,v)}:function(d){return f.call(d,this)}),n&&hD(RegExp.prototype[i],"sham",!0)}}});var Si=l((Xue,Ny)=>{"use strict";var bD=Mt().charAt;Ny.exports=function(e,r,t){return r+(t?bD(e,r).length:1)}});var bi=l((Que,Dy)=>{var qD=Xe(),ID=yi();Dy.exports=function(e,r){var t=e.exec;if(typeof t=="function"){var n=t.call(e,r);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(qD(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return ID.call(e,r)}});var Uy=l(()=>{"use strict";var xD=Ei(),AD=w(),wD=ie(),_D=Ce(),CD=Si(),My=bi();xD("match",1,function(e,r,t){return[function(i){var a=_D(this),o=i==null?void 0:i[e];return o!==void 0?o.call(i,a):new RegExp(i)[e](String(a))},function(n){var i=t(r,n,this);if(i.done)return i.value;var a=AD(n),o=String(this);if(!a.global)return My(a,o);var s=a.unicode;a.lastIndex=0;for(var u=[],c=0,f;(f=My(a,o))!==null;){var d=String(f[0]);u[c]=d,d===""&&(a.lastIndex=CD(o,wD(a.lastIndex),s)),c++}return c===0?null:u}]})});var _e=l((ele,jy)=>{var ky=w(),TD=U(),RD=Z(),OD=RD("species");jy.exports=function(e,r){var t=ky(e).constructor,n;return t===void 0||(n=ky(t)[OD])==null?r:TD(n)}});var nl=l(()=>{"use strict";var LD=p(),PD=Dt(),Fy=Ce(),By=ie(),ND=U(),DD=w(),MD=Xe(),UD=bn(),$y=Ut(),kD=me(),jD=N(),FD=Z(),BD=_e(),$D=Si(),Vy=qe(),el=j(),ro=FD("matchAll"),Hy="RegExp String",Gy=Hy+" Iterator",VD=Vy.set,HD=Vy.getterFor(Gy),qi=RegExp.prototype,GD=qi.exec,rl="".matchAll,Ju=!!rl&&!jD(function(){"a".matchAll(/./)}),zD=function(e,r){var t=e.exec,n;if(typeof t=="function"){if(n=t.call(e,r),typeof n!="object")throw TypeError("Incorrect exec result");return n}return GD.call(e,r)},KD=PD(function(r,t,n,i){VD(this,{type:Gy,regexp:r,string:t,global:n,unicode:i,done:!1})},Hy,function(){var r=HD(this);if(r.done)return{value:void 0,done:!0};var t=r.regexp,n=r.string,i=zD(t,n);return i===null?{value:void 0,done:r.done=!0}:r.global?(String(i[0])==""&&(t.lastIndex=$D(n,By(t.lastIndex),r.unicode)),{value:i,done:!1}):(r.done=!0,{value:i,done:!1})}),tl=function(e){var r=DD(this),t=String(e),n,i,a,o,s,u;return n=BD(r,RegExp),i=r.flags,i===void 0&&r instanceof RegExp&&!("flags"in qi)&&(i=$y.call(r)),a=i===void 0?"":String(i),o=new n(n===RegExp?r.source:r,a),s=!!~a.indexOf("g"),u=!!~a.indexOf("u"),o.lastIndex=By(r.lastIndex),new KD(o,t,s,u)};LD({target:"String",proto:!0,forced:Ju},{matchAll:function(r){var t=Fy(this),n,i,a,o;if(r!=null){if(UD(r)&&(n=String(Fy("flags"in qi?r.flags:$y.call(r))),!~n.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(Ju)return rl.apply(t,arguments);if(a=r[ro],a===void 0&&el&&MD(r)=="RegExp"&&(a=tl),a!=null)return ND(a).call(r,t)}else if(Ju)return rl.apply(t,arguments);return i=String(t),o=new RegExp(r,"g"),el?tl.call(o,i):o[ro](i)}});el||ro in qi||kD(qi,ro,tl)});var to=l((nle,zy)=>{"use strict";var YD=Ge(),WD=Ce();zy.exports="".repeat||function(r){var t=String(WD(this)),n="",i=YD(r);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))i&1&&(n+=t);return n}});var no=l((ile,Yy)=>{var XD=ie(),QD=to(),ZD=Ce(),JD=Math.ceil,Ky=function(e){return function(r,t,n){var i=String(ZD(r)),a=i.length,o=n===void 0?" ":String(n),s=XD(t),u,c;return s<=a||o==""?i:(u=s-a,c=QD.call(o,JD(u/o.length)),c.length>u&&(c=c.slice(0,u)),e?i+c:c+i)}};Yy.exports={start:Ky(!1),end:Ky(!0)}});var il=l((ale,Wy)=>{var e7=pi();Wy.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(e7)});var Xy=l(()=>{"use strict";var r7=p(),t7=no().end,n7=il();r7({target:"String",proto:!0,forced:n7},{padEnd:function(r){return t7(this,r,arguments.length>1?arguments[1]:void 0)}})});var Qy=l(()=>{"use strict";var i7=p(),a7=no().start,o7=il();i7({target:"String",proto:!0,forced:o7},{padStart:function(r){return a7(this,r,arguments.length>1?arguments[1]:void 0)}})});var Zy=l(()=>{var s7=p(),u7=to();s7({target:"String",proto:!0},{repeat:u7})});var Jy=l(()=>{"use strict";var l7=Ei(),c7=w(),d7=de(),f7=ie(),v7=Ge(),p7=Ce(),g7=Si(),h7=bi(),m7=Math.max,y7=Math.min,E7=Math.floor,S7=/\$([$&'`]|\d\d?|<[^>]*>)/g,b7=/\$([$&'`]|\d\d?)/g,q7=function(e){return e===void 0?e:String(e)};l7("replace",2,function(e,r,t){return[function(a,o){var s=p7(this),u=a==null?void 0:a[e];return u!==void 0?u.call(a,s,o):r.call(String(s),a,o)},function(i,a){var o=t(r,i,this,a);if(o.done)return o.value;var s=c7(i),u=String(this),c=typeof a=="function";c||(a=String(a));var f=s.global;if(f){var d=s.unicode;s.lastIndex=0}for(var v=[];;){var g=h7(s,u);if(g===null||(v.push(g),!f))break;var h=String(g[0]);h===""&&(s.lastIndex=g7(u,f7(s.lastIndex),d))}for(var m="",E=0,S=0;S<v.length;S++){g=v[S];for(var x=String(g[0]),A=m7(y7(v7(g.index),u.length),0),_=[],C=1;C<g.length;C++)_.push(q7(g[C]));var L=g.groups;if(c){var M=[x].concat(_,A,u);L!==void 0&&M.push(L);var V=String(a.apply(void 0,M))}else V=n(x,u,A,_,L,a);A>=E&&(m+=u.slice(E,A)+V,E=A+x.length)}return m+u.slice(E)}];function n(i,a,o,s,u,c){var f=o+i.length,d=s.length,v=b7;return u!==void 0&&(u=d7(u),v=S7),r.call(c,v,function(g,h){var m;switch(h.charAt(0)){case"$":return"$";case"&":return i;case"`":return a.slice(0,o);case"'":return a.slice(f);case"<":m=u[h.slice(1,-1)];break;default:var E=+h;if(E===0)return g;if(E>d){var S=E7(E/10);return S===0?g:S<=d?s[S-1]===void 0?h.charAt(1):s[S-1]+h.charAt(1):g}m=s[E-1]}return m===void 0?"":m})}})});var r0=l(()=>{"use strict";var I7=Ei(),x7=w(),A7=Ce(),e0=bu(),w7=bi();I7("search",1,function(e,r,t){return[function(i){var a=A7(this),o=i==null?void 0:i[e];return o!==void 0?o.call(i,a):new RegExp(i)[e](String(a))},function(n){var i=t(r,n,this);if(i.done)return i.value;var a=x7(n),o=String(this),s=a.lastIndex;e0(s,0)||(a.lastIndex=0);var u=w7(a,o);return e0(a.lastIndex,s)||(a.lastIndex=s),u===null?-1:u.index}]})});var i0=l(()=>{"use strict";var _7=Ei(),C7=bn(),T7=w(),t0=Ce(),R7=_e(),O7=Si(),L7=ie(),n0=bi(),P7=yi(),N7=N(),D7=[].push,M7=Math.min,al=4294967295,qn=!N7(function(){return!RegExp(al,"y")});_7("split",2,function(e,r,t){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(i,a){var o=String(t0(this)),s=a===void 0?al:a>>>0;if(s===0)return[];if(i===void 0)return[o];if(!C7(i))return r.call(o,i,s);for(var u=[],c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),f=0,d=new RegExp(i.source,c+"g"),v,g,h;(v=P7.call(d,o))&&(g=d.lastIndex,!(g>f&&(u.push(o.slice(f,v.index)),v.length>1&&v.index<o.length&&D7.apply(u,v.slice(1)),h=v[0].length,f=g,u.length>=s)));)d.lastIndex===v.index&&d.lastIndex++;return f===o.length?(h||!d.test(""))&&u.push(""):u.push(o.slice(f)),u.length>s?u.slice(0,s):u}:"0".split(void 0,0).length?n=function(i,a){return i===void 0&&a===0?[]:r.call(this,i,a)}:n=r,[function(a,o){var s=t0(this),u=a==null?void 0:a[e];return u!==void 0?u.call(a,s,o):n.call(String(s),a,o)},function(i,a){var o=t(n,i,this,a,n!==r);if(o.done)return o.value;var s=T7(i),u=String(this),c=R7(s,RegExp),f=s.unicode,d=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(qn?"y":"g"),v=new c(qn?s:"^(?:"+s.source+")",d),g=a===void 0?al:a>>>0;if(g===0)return[];if(u.length===0)return n0(v,u)===null?[u]:[];for(var h=0,m=0,E=[];m<u.length;){v.lastIndex=qn?m:0;var S=n0(v,qn?u:u.slice(m)),x;if(S===null||(x=M7(L7(v.lastIndex+(qn?0:m)),u.length))===h)m=O7(u,m,f);else{if(E.push(u.slice(h,m)),E.length===g)return E;for(var A=1;A<=S.length-1;A++)if(E.push(S[A]),E.length===g)return E;m=h=x}}return E.push(u.slice(h)),E}]},!qn)});var s0=l(()=>{"use strict";var U7=p(),k7=Pe().f,j7=ie(),F7=Qa(),B7=Ce(),$7=Za(),V7=j(),a0="".startsWith,H7=Math.min,o0=$7("startsWith"),G7=!V7&&!o0&&!!function(){var e=k7(String.prototype,"startsWith");return e&&!e.writable}();U7({target:"String",proto:!0,forced:!G7&&!o0},{startsWith:function(r){var t=String(B7(this));F7(r);var n=j7(H7(arguments.length>1?arguments[1]:void 0,t.length)),i=String(r);return a0?a0.call(t,i,n):t.slice(n,n+i.length)===i}})});var Ii=l((Sle,u0)=>{u0.exports=`
|
|
2
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var kt=l((ble,l0)=>{var z7=Ce(),K7=Ii(),io="["+K7+"]",Y7=RegExp("^"+io+io+"*"),W7=RegExp(io+io+"*$"),ol=function(e){return function(r){var t=String(z7(r));return e&1&&(t=t.replace(Y7,"")),e&2&&(t=t.replace(W7,"")),t}};l0.exports={start:ol(1),end:ol(2),trim:ol(3)}});var ao=l((qle,f0)=>{var X7=N(),c0=Ii(),d0="\u200B\x85\u180E";f0.exports=function(e){return X7(function(){return!!c0[e]()||d0[e]()!=d0||c0[e].name!==e})}});var v0=l(()=>{"use strict";var Q7=p(),Z7=kt().trim,J7=ao();Q7({target:"String",proto:!0,forced:J7("trim")},{trim:function(){return Z7(this)}})});var h0=l(()=>{"use strict";var eM=p(),rM=kt().start,tM=ao(),g0=tM("trimStart"),p0=g0?function(){return rM(this)}:"".trimStart;eM({target:"String",proto:!0,forced:g0},{trimStart:p0,trimLeft:p0})});var E0=l(()=>{"use strict";var nM=p(),iM=kt().end,aM=ao(),y0=aM("trimEnd"),m0=y0?function(){return iM(this)}:"".trimEnd;nM({target:"String",proto:!0,forced:y0},{trimEnd:m0,trimRight:m0})});var sl=l(()=>{"use strict";var oM=Mt().charAt,S0=qe(),sM=Xa(),b0="String Iterator",uM=S0.set,lM=S0.getterFor(b0);sM(String,"String",function(e){uM(this,{type:b0,string:String(e),index:0})},function(){var r=lM(this),t=r.string,n=r.index,i;return n>=t.length?{value:void 0,done:!0}:(i=oM(t,n),r.index+=i.length,{value:i,done:!1})})});var Ye=l((Ole,q0)=>{var cM=Ce(),dM=/"/g;q0.exports=function(e,r,t,n){var i=String(cM(e)),a="<"+r;return t!==""&&(a+=" "+t+'="'+String(n).replace(dM,""")+'"'),a+">"+i+"</"+r+">"}});var We=l((Lle,I0)=>{var fM=N();I0.exports=function(e){return fM(function(){var r=""[e]('"');return r!==r.toLowerCase()||r.split('"').length>3})}});var x0=l(()=>{"use strict";var vM=p(),pM=Ye(),gM=We();vM({target:"String",proto:!0,forced:gM("anchor")},{anchor:function(r){return pM(this,"a","name",r)}})});var A0=l(()=>{"use strict";var hM=p(),mM=Ye(),yM=We();hM({target:"String",proto:!0,forced:yM("big")},{big:function(){return mM(this,"big","","")}})});var w0=l(()=>{"use strict";var EM=p(),SM=Ye(),bM=We();EM({target:"String",proto:!0,forced:bM("blink")},{blink:function(){return SM(this,"blink","","")}})});var _0=l(()=>{"use strict";var qM=p(),IM=Ye(),xM=We();qM({target:"String",proto:!0,forced:xM("bold")},{bold:function(){return IM(this,"b","","")}})});var C0=l(()=>{"use strict";var AM=p(),wM=Ye(),_M=We();AM({target:"String",proto:!0,forced:_M("fixed")},{fixed:function(){return wM(this,"tt","","")}})});var T0=l(()=>{"use strict";var CM=p(),TM=Ye(),RM=We();CM({target:"String",proto:!0,forced:RM("fontcolor")},{fontcolor:function(r){return TM(this,"font","color",r)}})});var R0=l(()=>{"use strict";var OM=p(),LM=Ye(),PM=We();OM({target:"String",proto:!0,forced:PM("fontsize")},{fontsize:function(r){return LM(this,"font","size",r)}})});var O0=l(()=>{"use strict";var NM=p(),DM=Ye(),MM=We();NM({target:"String",proto:!0,forced:MM("italics")},{italics:function(){return DM(this,"i","","")}})});var L0=l(()=>{"use strict";var UM=p(),kM=Ye(),jM=We();UM({target:"String",proto:!0,forced:jM("link")},{link:function(r){return kM(this,"a","href",r)}})});var P0=l(()=>{"use strict";var FM=p(),BM=Ye(),$M=We();FM({target:"String",proto:!0,forced:$M("small")},{small:function(){return BM(this,"small","","")}})});var N0=l(()=>{"use strict";var VM=p(),HM=Ye(),GM=We();VM({target:"String",proto:!0,forced:GM("strike")},{strike:function(){return HM(this,"strike","","")}})});var D0=l(()=>{"use strict";var zM=p(),KM=Ye(),YM=We();zM({target:"String",proto:!0,forced:YM("sub")},{sub:function(){return KM(this,"sub","","")}})});var M0=l(()=>{"use strict";var WM=p(),XM=Ye(),QM=We();WM({target:"String",proto:!0,forced:QM("sup")},{sup:function(){return XM(this,"sup","","")}})});var xi=l((ace,k0)=>{var ZM=ee(),U0=ft();k0.exports=function(e,r,t){var n,i;return U0&&typeof(n=r.constructor)=="function"&&n!==t&&ZM(i=n.prototype)&&i!==t.prototype&&U0(e,i),e}});var $0=l(()=>{var JM=te(),F0=K(),eU=ln(),rU=xi(),tU=le().f,nU=st().f,iU=bn(),aU=Ut(),oU=Ne(),sU=N(),uU=vt(),lU=Z(),cU=lU("match"),Ar=F0.RegExp,ul=Ar.prototype,Ai=/a/g,ll=/a/g,B0=new Ar(Ai)!==Ai,dU=JM&&eU("RegExp",!B0||sU(function(){return ll[cU]=!1,Ar(Ai)!=Ai||Ar(ll)==ll||Ar(Ai,"i")!="/a/i"}));if(dU){for(xr=function(r,t){var n=this instanceof xr,i=iU(r),a=t===void 0;return!n&&i&&r.constructor===xr&&a?r:rU(B0?new Ar(i&&!a?r.source:r,t):Ar((i=r instanceof xr)?r.source:r,i&&a?aU.call(r):t),n?this:ul,xr)},j0=function(e){e in xr||tU(xr,e,{configurable:!0,get:function(){return Ar[e]},set:function(r){Ar[e]=r}})},cl=nU(Ar),dl=0;cl.length>dl;)j0(cl[dl++]);ul.constructor=xr,xr.prototype=ul,oU(F0,"RegExp",xr)}var xr,j0,cl,dl;uU("RegExp")});var H0=l(()=>{"use strict";var fU=p(),V0=yi();fU({target:"RegExp",proto:!0,forced:/./.exec!==V0},{exec:V0})});var G0=l(()=>{var vU=te(),pU=le(),gU=Ut();vU&&/./g.flags!="g"&&pU.f(RegExp.prototype,"flags",{configurable:!0,get:gU})});var Y0=l(()=>{"use strict";var hU=Ne(),mU=w(),yU=N(),EU=Ut(),fl="toString",z0=RegExp.prototype,K0=z0[fl],SU=yU(function(){return K0.call({source:"a",flags:"b"})!="/a/b"}),bU=K0.name!=fl;(SU||bU)&&hU(RegExp.prototype,fl,function(){var r=mU(this),t=String(r.source),n=r.flags,i=String(n===void 0&&r instanceof RegExp&&!("flags"in z0)?EU.call(r):n);return"/"+t+"/"+i},{unsafe:!0})});var so=l((pce,X0)=>{var qU=K(),IU=kt().trim,W0=Ii(),oo=qU.parseInt,xU=/^[+-]?0[Xx]/,AU=oo(W0+"08")!==8||oo(W0+"0x16")!==22;X0.exports=AU?function(r,t){var n=IU(String(r));return oo(n,t>>>0||(xU.test(n)?16:10))}:oo});var Z0=l(()=>{var wU=p(),Q0=so();wU({global:!0,forced:parseInt!=Q0},{parseInt:Q0})});var pl=l((mce,J0)=>{var _U=K(),CU=kt().trim,TU=Ii(),vl=_U.parseFloat,RU=1/vl(TU+"-0")!==-1/0;J0.exports=RU?function(r){var t=CU(String(r)),n=vl(t);return n===0&&t.charAt(0)=="-"?-0:n}:vl});var rE=l(()=>{var OU=p(),eE=pl();OU({global:!0,forced:parseFloat!=eE},{parseFloat:eE})});var oE=l(()=>{"use strict";var LU=te(),iE=K(),PU=ln(),NU=Ne(),tE=pe(),aE=Xe(),DU=xi(),MU=nr(),UU=N(),kU=Ve(),jU=st().f,FU=Pe().f,BU=le().f,$U=kt().trim,_i="Number",gt=iE[_i],lo=gt.prototype,VU=aE(kU(lo))==_i,nE=function(e){var r=MU(e,!1),t,n,i,a,o,s,u,c;if(typeof r=="string"&&r.length>2){if(r=$U(r),t=r.charCodeAt(0),t===43||t===45){if(n=r.charCodeAt(2),n===88||n===120)return NaN}else if(t===48){switch(r.charCodeAt(1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+r}for(o=r.slice(2),s=o.length,u=0;u<s;u++)if(c=o.charCodeAt(u),c<48||c>a)return NaN;return parseInt(o,i)}}return+r};if(PU(_i,!gt(" 0o1")||!gt("0b1")||gt("+0x1"))){for(pt=function(r){var t=arguments.length<1?0:r,n=this;return n instanceof pt&&(VU?UU(function(){lo.valueOf.call(n)}):aE(n)!=_i)?DU(new gt(nE(t)),n,pt):nE(t)},gl=LU?jU(gt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),uo=0;gl.length>uo;uo++)tE(gt,wi=gl[uo])&&!tE(pt,wi)&&BU(pt,wi,FU(gt,wi));pt.prototype=lo,lo.constructor=pt,NU(iE,_i,pt)}var pt,gl,uo,wi});var sE=l(()=>{var HU=p();HU({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})});var hl=l((xce,uE)=>{var GU=K(),zU=GU.isFinite;uE.exports=Number.isFinite||function(r){return typeof r=="number"&&zU(r)}});var lE=l(()=>{var KU=p(),YU=hl();KU({target:"Number",stat:!0},{isFinite:YU})});var ml=l((_ce,cE)=>{var WU=ee(),XU=Math.floor;cE.exports=function(r){return!WU(r)&&isFinite(r)&&XU(r)===r}});var dE=l(()=>{var QU=p(),ZU=ml();QU({target:"Number",stat:!0},{isInteger:ZU})});var fE=l(()=>{var JU=p();JU({target:"Number",stat:!0},{isNaN:function(r){return r!=r}})});var vE=l(()=>{var ek=p(),rk=ml(),tk=Math.abs;ek({target:"Number",stat:!0},{isSafeInteger:function(r){return rk(r)&&tk(r)<=9007199254740991}})});var pE=l(()=>{var nk=p();nk({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})});var gE=l(()=>{var ik=p();ik({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})});var mE=l(()=>{var ak=p(),hE=pl();ak({target:"Number",stat:!0,forced:Number.parseFloat!=hE},{parseFloat:hE})});var EE=l(()=>{var ok=p(),yE=so();ok({target:"Number",stat:!0,forced:Number.parseInt!=yE},{parseInt:yE})});var yl=l(($ce,SE)=>{var sk=Xe();SE.exports=function(e){if(typeof e!="number"&&sk(e)!="Number")throw TypeError("Incorrect invocation");return+e}});var IE=l(()=>{"use strict";var uk=p(),lk=Ge(),ck=yl(),El=to(),dk=N(),bE=1 .toFixed,qE=Math.floor,In=function(e,r,t){return r===0?t:r%2===1?In(e,r-1,t*e):In(e*e,r/2,t)},fk=function(e){for(var r=0,t=e;t>=4096;)r+=12,t/=4096;for(;t>=2;)r+=1,t/=2;return r},vk=bE&&(8e-5 .toFixed(3)!=="0.000"||.9 .toFixed(0)!=="1"||1.255 .toFixed(2)!=="1.25"||0xde0b6b3a7640080 .toFixed(0)!=="1000000000000000128")||!dk(function(){bE.call({})});uk({target:"Number",proto:!0,forced:vk},{toFixed:function(r){var t=ck(this),n=lk(r),i=[0,0,0,0,0,0],a="",o="0",s,u,c,f,d=function(h,m){for(var E=-1,S=m;++E<6;)S+=h*i[E],i[E]=S%1e7,S=qE(S/1e7)},v=function(h){for(var m=6,E=0;--m>=0;)E+=i[m],i[m]=qE(E/h),E=E%h*1e7},g=function(){for(var h=6,m="";--h>=0;)if(m!==""||h===0||i[h]!==0){var E=String(i[h]);m=m===""?E:m+El.call("0",7-E.length)+E}return m};if(n<0||n>20)throw RangeError("Incorrect fraction digits");if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return String(t);if(t<0&&(a="-",t=-t),t>1e-21)if(s=fk(t*In(2,69,1))-69,u=s<0?t*In(2,-s,1):t/In(2,s,1),u*=4503599627370496,s=52-s,s>0){for(d(0,u),c=n;c>=7;)d(1e7,0),c-=7;for(d(In(10,c,1),0),c=s-1;c>=23;)v(1<<23),c-=23;v(1<<c),d(1,1),v(2),o=g()}else d(0,u),d(1<<-s,0),o=g()+El.call("0",n);return n>0?(f=o.length,o=a+(f<=n?"0."+El.call("0",n-f)+o:o.slice(0,f-n)+"."+o.slice(f-n))):o=a+o,o}})});var wE=l(()=>{"use strict";var pk=p(),xE=N(),AE=yl(),co=1 .toPrecision,gk=xE(function(){return co.call(1,void 0)!=="1"})||!xE(function(){co.call({})});pk({target:"Number",proto:!0,forced:gk},{toPrecision:function(r){return r===void 0?co.call(AE(this)):co.call(AE(this),r)}})});var Sl=l((Kce,_E)=>{var hk=Math.log;_E.exports=Math.log1p||function(r){return(r=+r)>-1e-8&&r<1e-8?r-r*r/2:hk(1+r)}});var TE=l(()=>{var mk=p(),yk=Sl(),bl=Math.acosh,Ek=Math.log,CE=Math.sqrt,Sk=Math.LN2,bk=!bl||Math.floor(bl(Number.MAX_VALUE))!=710||bl(1/0)!=1/0;mk({target:"Math",stat:!0,forced:bk},{acosh:function(r){return(r=+r)<1?NaN:r>9490626562425156e-8?Ek(r)+Sk:yk(r-1+CE(r-1)*CE(r+1))}})});var LE=l(()=>{var qk=p(),RE=Math.asinh,Ik=Math.log,xk=Math.sqrt;function OE(e){return!isFinite(e=+e)||e==0?e:e<0?-OE(-e):Ik(e+xk(e*e+1))}qk({target:"Math",stat:!0,forced:!(RE&&1/RE(0)>0)},{asinh:OE})});var NE=l(()=>{var Ak=p(),PE=Math.atanh,wk=Math.log;Ak({target:"Math",stat:!0,forced:!(PE&&1/PE(-0)<0)},{atanh:function(r){return(r=+r)==0?r:wk((1+r)/(1-r))/2}})});var fo=l((ede,DE)=>{DE.exports=Math.sign||function(r){return(r=+r)==0||r!=r?r:r<0?-1:1}});var ME=l(()=>{var _k=p(),Ck=fo(),Tk=Math.abs,Rk=Math.pow;_k({target:"Math",stat:!0},{cbrt:function(r){return Ck(r=+r)*Rk(Tk(r),1/3)}})});var UE=l(()=>{var Ok=p(),Lk=Math.floor,Pk=Math.log,Nk=Math.LOG2E;Ok({target:"Math",stat:!0},{clz32:function(r){return(r>>>=0)?31-Lk(Pk(r+.5)*Nk):32}})});var Ti=l((ade,kE)=>{var Ci=Math.expm1,Dk=Math.exp;kE.exports=!Ci||Ci(10)>22025.465794806718||Ci(10)<22025.465794806718||Ci(-2e-17)!=-2e-17?function(r){return(r=+r)==0?r:r>-1e-6&&r<1e-6?r+r*r/2:Dk(r)-1}:Ci});var FE=l(()=>{var Mk=p(),Uk=Ti(),jE=Math.cosh,kk=Math.abs,ql=Math.E;Mk({target:"Math",stat:!0,forced:!jE||jE(710)===1/0},{cosh:function(r){var t=Uk(kk(r)-1)+1;return(t+1/(t*ql*ql))*(ql/2)}})});var $E=l(()=>{var jk=p(),BE=Ti();jk({target:"Math",stat:!0,forced:BE!=Math.expm1},{expm1:BE})});var Al=l((cde,VE)=>{var Fk=fo(),Bk=Math.abs,po=Math.pow,xl=po(2,-52),vo=po(2,-23),$k=po(2,127)*(2-vo),Il=po(2,-126),Vk=function(e){return e+1/xl-1/xl};VE.exports=Math.fround||function(r){var t=Bk(r),n=Fk(r),i,a;return t<Il?n*Vk(t/Il/vo)*Il*vo:(i=(1+vo/xl)*t,a=i-(i-t),a>$k||a!=a?n*(1/0):n*a)}});var HE=l(()=>{var Hk=p(),Gk=Al();Hk({target:"Math",stat:!0},{fround:Gk})});var zE=l(()=>{var zk=p(),GE=Math.hypot,Kk=Math.abs,Yk=Math.sqrt,Wk=!!GE&&GE(1/0,NaN)!==1/0;zk({target:"Math",stat:!0,forced:Wk},{hypot:function(r,t){for(var n=0,i=0,a=arguments.length,o=0,s,u;i<a;)s=Kk(arguments[i++]),o<s?(u=o/s,n=n*u*u+1,o=s):s>0?(u=s/o,n+=u*u):n+=s;return o===1/0?1/0:o*Yk(n)}})});var YE=l(()=>{var Xk=p(),Qk=N(),KE=Math.imul,Zk=Qk(function(){return KE(4294967295,5)!=-5||KE.length!=2});Xk({target:"Math",stat:!0,forced:Zk},{imul:function(r,t){var n=65535,i=+r,a=+t,o=n&i,s=n&a;return 0|o*s+((n&i>>>16)*s+o*(n&a>>>16)<<16>>>0)}})});var WE=l(()=>{var Jk=p(),ej=Math.log,rj=Math.LOG10E;Jk({target:"Math",stat:!0},{log10:function(r){return ej(r)*rj}})});var XE=l(()=>{var tj=p(),nj=Sl();tj({target:"Math",stat:!0},{log1p:nj})});var QE=l(()=>{var ij=p(),aj=Math.log,oj=Math.LN2;ij({target:"Math",stat:!0},{log2:function(r){return aj(r)/oj}})});var ZE=l(()=>{var sj=p(),uj=fo();sj({target:"Math",stat:!0},{sign:uj})});var r1=l(()=>{var lj=p(),cj=N(),JE=Ti(),dj=Math.abs,e1=Math.exp,fj=Math.E,vj=cj(function(){return Math.sinh(-2e-17)!=-2e-17});lj({target:"Math",stat:!0,forced:vj},{sinh:function(r){return dj(r=+r)<1?(JE(r)-JE(-r))/2:(e1(r-1)-e1(-r-1))*(fj/2)}})});var i1=l(()=>{var pj=p(),t1=Ti(),n1=Math.exp;pj({target:"Math",stat:!0},{tanh:function(r){var t=t1(r=+r),n=t1(-r);return t==1/0?1:n==1/0?-1:(t-n)/(n1(r)+n1(-r))}})});var a1=l(()=>{var gj=cr();gj(Math,"Math",!0)});var o1=l(()=>{var hj=p(),mj=Math.ceil,yj=Math.floor;hj({target:"Math",stat:!0},{trunc:function(r){return(r>0?yj:mj)(r)}})});var s1=l(()=>{var Ej=p();Ej({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})});var u1=l(()=>{"use strict";var Sj=p(),bj=N(),qj=de(),Ij=nr(),xj=bj(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});Sj({target:"Date",proto:!0,forced:xj},{toJSON:function(r){var t=qj(this),n=Ij(t);return typeof n=="number"&&!isFinite(n)?null:t.toISOString()}})});var f1=l((Ude,d1)=>{"use strict";var l1=N(),jt=no().start,Aj=Math.abs,c1=Date.prototype,wj=c1.getTime,wl=c1.toISOString;d1.exports=l1(function(){return wl.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!l1(function(){wl.call(new Date(NaN))})?function(){if(!isFinite(wj.call(this)))throw RangeError("Invalid time value");var r=this,t=r.getUTCFullYear(),n=r.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+jt(Aj(t),i?6:4,0)+"-"+jt(r.getUTCMonth()+1,2,0)+"-"+jt(r.getUTCDate(),2,0)+"T"+jt(r.getUTCHours(),2,0)+":"+jt(r.getUTCMinutes(),2,0)+":"+jt(r.getUTCSeconds(),2,0)+"."+jt(n,3,0)+"Z"}:wl});var p1=l(()=>{var _j=p(),v1=f1();_j({target:"Date",proto:!0,forced:Date.prototype.toISOString!==v1},{toISOString:v1})});var m1=l(()=>{var Cj=Ne(),_l=Date.prototype,g1="Invalid Date",h1="toString",Tj=_l[h1],Rj=_l.getTime;new Date(NaN)+""!=g1&&Cj(_l,h1,function(){var r=Rj.call(this);return r===r?Tj.call(this):g1})});var E1=l(($de,y1)=>{"use strict";var Oj=w(),Lj=nr();y1.exports=function(e){if(e!=="string"&&e!=="number"&&e!=="default")throw TypeError("Incorrect hint");return Lj(Oj(this),e!=="number")}});var q1=l(()=>{var Pj=me(),Nj=E1(),Dj=Z(),S1=Dj("toPrimitive"),b1=Date.prototype;S1 in b1||Pj(b1,S1,Nj)});var A1=l(()=>{var Mj=p(),Uj=ce(),kj=N(),go=Uj("JSON","stringify"),jj=/[\uD800-\uDFFF]/g,I1=/^[\uD800-\uDBFF]$/,x1=/^[\uDC00-\uDFFF]$/,Fj=function(e,r,t){var n=t.charAt(r-1),i=t.charAt(r+1);return I1.test(e)&&!x1.test(i)||x1.test(e)&&!I1.test(n)?"\\u"+e.charCodeAt(0).toString(16):e},Bj=kj(function(){return go("\uDF06\uD834")!=='"\\udf06\\ud834"'||go("\uDEAD")!=='"\\udead"'});go&&Mj({target:"JSON",stat:!0,forced:Bj},{stringify:function(r,t,n){var i=go.apply(null,arguments);return typeof i=="string"?i.replace(jj,Fj):i}})});var w1=l(()=>{var $j=K(),Vj=cr();Vj($j.JSON,"JSON",!0)});var Cl=l((Wde,_1)=>{var Hj=K();_1.exports=Hj.Promise});var wr=l((Xde,C1)=>{var Gj=Ne();C1.exports=function(e,r,t){for(var n in r)Gj(e,n,r[n],t);return e}});var ar=l((Qde,T1)=>{T1.exports=function(e,r,t){if(!(e instanceof r))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return e}});var Tl=l((Zde,R1)=>{var zj=pi();R1.exports=/(iphone|ipod|ipad).*applewebkit/i.test(zj)});var ho=l((Jde,j1)=>{var _r=K(),Kj=N(),Yj=Xe(),Wj=be(),O1=Ys(),L1=qa(),Xj=Tl(),P1=_r.location,Dl=_r.setImmediate,Ml=_r.clearImmediate,N1=_r.process,D1=_r.MessageChannel,Rl=_r.Dispatch,Ol=0,Ri={},M1="onreadystatechange",Ft,Ll,Pl,Ul=function(e){if(Ri.hasOwnProperty(e)){var r=Ri[e];delete Ri[e],r()}},Nl=function(e){return function(){Ul(e)}},U1=function(e){Ul(e.data)},k1=function(e){_r.postMessage(e+"",P1.protocol+"//"+P1.host)};(!Dl||!Ml)&&(Dl=function(r){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ri[++Ol]=function(){(typeof r=="function"?r:Function(r)).apply(void 0,t)},Ft(Ol),Ol},Ml=function(r){delete Ri[r]},Yj(N1)=="process"?Ft=function(e){N1.nextTick(Nl(e))}:Rl&&Rl.now?Ft=function(e){Rl.now(Nl(e))}:D1&&!Xj?(Ll=new D1,Pl=Ll.port2,Ll.port1.onmessage=U1,Ft=Wj(Pl.postMessage,Pl,1)):_r.addEventListener&&typeof postMessage=="function"&&!_r.importScripts&&!Kj(k1)?(Ft=k1,_r.addEventListener("message",U1,!1)):M1 in L1("script")?Ft=function(e){O1.appendChild(L1("script"))[M1]=function(){O1.removeChild(this),Ul(e)}}:Ft=function(e){setTimeout(Nl(e),0)});j1.exports={set:Dl,clear:Ml}});var Vl=l((efe,G1)=>{var An=K(),Qj=Pe().f,Zj=Xe(),Jj=ho().set,eF=Tl(),F1=An.MutationObserver||An.WebKitMutationObserver,$l=An.process,kl=An.Promise,B1=Zj($l)=="process",$1=Qj(An,"queueMicrotask"),H1=$1&&$1.value,Oi,Bt,Li,xn,jl,Fl,Bl,V1;H1||(Oi=function(){var e,r;for(B1&&(e=$l.domain)&&e.exit();Bt;){r=Bt.fn,Bt=Bt.next;try{r()}catch(t){throw Bt?xn():Li=void 0,t}}Li=void 0,e&&e.enter()},B1?xn=function(){$l.nextTick(Oi)}:F1&&!eF?(jl=!0,Fl=document.createTextNode(""),new F1(Oi).observe(Fl,{characterData:!0}),xn=function(){Fl.data=jl=!jl}):kl&&kl.resolve?(Bl=kl.resolve(void 0),V1=Bl.then,xn=function(){V1.call(Bl,Oi)}):xn=function(){Jj.call(An,Oi)});G1.exports=H1||function(e){var r={fn:e,next:void 0};Li&&(Li.next=r),Bt||(Bt=r,xn()),Li=r}});var wn=l((rfe,K1)=>{"use strict";var z1=U(),rF=function(e){var r,t;this.promise=new e(function(n,i){if(r!==void 0||t!==void 0)throw TypeError("Bad Promise constructor");r=n,t=i}),this.resolve=z1(r),this.reject=z1(t)};K1.exports.f=function(e){return new rF(e)}});var Hl=l((tfe,Y1)=>{var tF=w(),nF=ee(),iF=wn();Y1.exports=function(e,r){if(tF(e),nF(r)&&r.constructor===e)return r;var t=iF.f(e),n=t.resolve;return n(r),t.promise}});var Gl=l((nfe,W1)=>{var aF=K();W1.exports=function(e,r){var t=aF.console;t&&t.error&&(arguments.length===1?t.error(e):t.error(e,r))}});var Pi=l((ife,X1)=>{X1.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}});var hS=l(()=>{"use strict";var Di=p(),Eo=j(),Xr=K(),aS=ce(),yo=Cl(),oF=Ne(),sF=wr(),uF=cr(),lF=vt(),cF=ee(),zl=U(),dF=ar(),fF=Xe(),vF=Aa(),Q1=Y(),pF=vi(),gF=_e(),oS=ho().set,sS=Vl(),uS=Hl(),hF=Gl(),lS=wn(),Kl=Pi(),Xl=qe(),mF=ln(),yF=Z(),Z1=Ga(),EF=yF("species"),Cr="Promise",J1=Xl.get,SF=Xl.set,bF=Xl.getterFor(Cr),je=yo,cS=Xr.TypeError,Yl=Xr.document,So=Xr.process,eS=aS("fetch"),Tn=lS.f,qF=Tn,Ni=fF(So)=="process",IF=!!(Yl&&Yl.createEvent&&Xr.dispatchEvent),dS="unhandledrejection",xF="rejectionhandled",rS=0,fS=1,AF=2,Ql=1,vS=2,mo,tS,Zl,nS,Mi=mF(Cr,function(){var e=vF(je)!==String(je);if(!e&&(Z1===66||!Ni&&typeof PromiseRejectionEvent!="function")||Eo&&!je.prototype.finally)return!0;if(Z1>=51&&/native code/.test(je))return!1;var r=je.resolve(1),t=function(i){i(function(){},function(){})},n=r.constructor={};return n[EF]=t,!(r.then(function(){})instanceof t)}),wF=Mi||!pF(function(e){je.all(e).catch(function(){})}),pS=function(e){var r;return cF(e)&&typeof(r=e.then)=="function"?r:!1},Jl=function(e,r,t){if(!r.notified){r.notified=!0;var n=r.reactions;sS(function(){for(var i=r.value,a=r.state==fS,o=0;n.length>o;){var s=n[o++],u=a?s.ok:s.fail,c=s.resolve,f=s.reject,d=s.domain,v,g,h;try{u?(a||(r.rejection===vS&&CF(e,r),r.rejection=Ql),u===!0?v=i:(d&&d.enter(),v=u(i),d&&(d.exit(),h=!0)),v===s.promise?f(cS("Promise-chain cycle")):(g=pS(v))?g.call(v,c,f):c(v)):f(i)}catch(m){d&&!h&&d.exit(),f(m)}}r.reactions=[],r.notified=!1,t&&!r.rejection&&_F(e,r)})}},gS=function(e,r,t){var n,i;IF?(n=Yl.createEvent("Event"),n.promise=r,n.reason=t,n.initEvent(e,!1,!0),Xr.dispatchEvent(n)):n={promise:r,reason:t},(i=Xr["on"+e])?i(n):e===dS&&hF("Unhandled promise rejection",t)},_F=function(e,r){oS.call(Xr,function(){var t=r.value,n=iS(r),i;if(n&&(i=Kl(function(){Ni?So.emit("unhandledRejection",t,e):gS(dS,e,t)}),r.rejection=Ni||iS(r)?vS:Ql,i.error))throw i.value})},iS=function(e){return e.rejection!==Ql&&!e.parent},CF=function(e,r){oS.call(Xr,function(){Ni?So.emit("rejectionHandled",e):gS(xF,e,r.value)})},_n=function(e,r,t,n){return function(i){e(r,t,i,n)}},Cn=function(e,r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=AF,Jl(e,r,!0))},Wl=function(e,r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(e===t)throw cS("Promise can't be resolved itself");var i=pS(t);i?sS(function(){var a={done:!1};try{i.call(t,_n(Wl,e,a,r),_n(Cn,e,a,r))}catch(o){Cn(e,a,o,r)}}):(r.value=t,r.state=fS,Jl(e,r,!1))}catch(a){Cn(e,{done:!1},a,r)}}};Mi&&(je=function(r){dF(this,je,Cr),zl(r),mo.call(this);var t=J1(this);try{r(_n(Wl,this,t),_n(Cn,this,t))}catch(n){Cn(this,t,n)}},mo=function(r){SF(this,{type:Cr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:rS,value:void 0})},mo.prototype=sF(je.prototype,{then:function(r,t){var n=bF(this),i=Tn(gF(this,je));return i.ok=typeof r=="function"?r:!0,i.fail=typeof t=="function"&&t,i.domain=Ni?So.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=rS&&Jl(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),tS=function(){var e=new mo,r=J1(e);this.promise=e,this.resolve=_n(Wl,e,r),this.reject=_n(Cn,e,r)},lS.f=Tn=function(e){return e===je||e===Zl?new tS(e):qF(e)},!Eo&&typeof yo=="function"&&(nS=yo.prototype.then,oF(yo.prototype,"then",function(r,t){var n=this;return new je(function(i,a){nS.call(n,i,a)}).then(r,t)},{unsafe:!0}),typeof eS=="function"&&Di({global:!0,enumerable:!0,forced:!0},{fetch:function(r){return uS(je,eS.apply(Xr,arguments))}})));Di({global:!0,wrap:!0,forced:Mi},{Promise:je});uF(je,Cr,!1,!0);lF(Cr);Zl=aS(Cr);Di({target:Cr,stat:!0,forced:Mi},{reject:function(r){var t=Tn(this);return t.reject.call(void 0,r),t.promise}});Di({target:Cr,stat:!0,forced:Eo||Mi},{resolve:function(r){return uS(Eo&&this===Zl?je:this,r)}});Di({target:Cr,stat:!0,forced:wF},{all:function(r){var t=this,n=Tn(t),i=n.resolve,a=n.reject,o=Kl(function(){var s=zl(t.resolve),u=[],c=0,f=1;Q1(r,function(d){var v=c++,g=!1;u.push(void 0),f++,s.call(t,d).then(function(h){g||(g=!0,u[v]=h,--f||i(u))},a)}),--f||i(u)});return o.error&&a(o.value),n.promise},race:function(r){var t=this,n=Tn(t),i=n.reject,a=Kl(function(){var o=zl(t.resolve);Q1(r,function(s){o.call(t,s).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}})});var ec=l(()=>{"use strict";var TF=p(),RF=U(),OF=wn(),LF=Pi(),PF=Y();TF({target:"Promise",stat:!0},{allSettled:function(r){var t=this,n=OF.f(t),i=n.resolve,a=n.reject,o=LF(function(){var s=RF(t.resolve),u=[],c=0,f=1;PF(r,function(d){var v=c++,g=!1;u.push(void 0),f++,s.call(t,d).then(function(h){g||(g=!0,u[v]={status:"fulfilled",value:h},--f||i(u))},function(h){g||(g=!0,u[v]={status:"rejected",reason:h},--f||i(u))})}),--f||i(u)});return o.error&&a(o.value),n.promise}})});var ES=l(()=>{"use strict";var NF=p(),DF=j(),Ui=Cl(),MF=N(),yS=ce(),UF=_e(),mS=Hl(),kF=Ne(),jF=!!Ui&&MF(function(){Ui.prototype.finally.call({then:function(){}},function(){})});NF({target:"Promise",proto:!0,real:!0,forced:jF},{finally:function(e){var r=UF(this,yS("Promise")),t=typeof e=="function";return this.then(t?function(n){return mS(r,e()).then(function(){return n})}:e,t?function(n){return mS(r,e()).then(function(){throw n})}:e)}});!DF&&typeof Ui=="function"&&!Ui.prototype.finally&&kF(Ui.prototype,"finally",yS("Promise").prototype.finally)});var ki=l((dfe,bS)=>{"use strict";var FF=p(),BF=K(),SS=ln(),$F=Ne(),VF=ct(),HF=Y(),GF=ar(),rc=ee(),tc=N(),zF=vi(),KF=cr(),YF=xi();bS.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=n?"set":"add",o=BF[e],s=o&&o.prototype,u=o,c={},f=function(E){var S=s[E];$F(s,E,E=="add"?function(A){return S.call(this,A===0?0:A),this}:E=="delete"?function(x){return i&&!rc(x)?!1:S.call(this,x===0?0:x)}:E=="get"?function(A){return i&&!rc(A)?void 0:S.call(this,A===0?0:A)}:E=="has"?function(A){return i&&!rc(A)?!1:S.call(this,A===0?0:A)}:function(A,_){return S.call(this,A===0?0:A,_),this})};if(SS(e,typeof o!="function"||!(i||s.forEach&&!tc(function(){new o().entries().next()}))))u=t.getConstructor(r,e,n,a),VF.REQUIRED=!0;else if(SS(e,!0)){var d=new u,v=d[a](i?{}:-0,1)!=d,g=tc(function(){d.has(1)}),h=zF(function(E){new o(E)}),m=!i&&tc(function(){for(var E=new o,S=5;S--;)E[a](S,S);return!E.has(-0)});h||(u=r(function(E,S){GF(E,u,e);var x=YF(new o,E,u);return S!=null&&HF(S,x[a],x,n),x}),u.prototype=s,s.constructor=u),(g||m)&&(f("delete"),f("has"),n&&f("get")),(m||v)&&f(a),i&&s.clear&&delete s.clear}return c[e]=u,FF({global:!0,forced:u!=o},c),KF(u,e),i||t.setStrong(u,e,n),u}});var ic=l((ffe,wS)=>{"use strict";var WF=le().f,XF=Ve(),qS=wr(),QF=be(),ZF=ar(),JF=Y(),eB=Xa(),rB=vt(),ji=te(),IS=ct().fastKey,AS=qe(),xS=AS.set,nc=AS.getterFor;wS.exports={getConstructor:function(e,r,t,n){var i=e(function(u,c){ZF(u,i,r),xS(u,{type:r,index:XF(null),first:void 0,last:void 0,size:0}),ji||(u.size=0),c!=null&&JF(c,u[n],u,t)}),a=nc(r),o=function(u,c,f){var d=a(u),v=s(u,c),g,h;return v?v.value=f:(d.last=v={index:h=IS(c,!0),key:c,value:f,previous:g=d.last,next:void 0,removed:!1},d.first||(d.first=v),g&&(g.next=v),ji?d.size++:u.size++,h!=="F"&&(d.index[h]=v)),u},s=function(u,c){var f=a(u),d=IS(c),v;if(d!=="F")return f.index[d];for(v=f.first;v;v=v.next)if(v.key==c)return v};return qS(i.prototype,{clear:function(){for(var c=this,f=a(c),d=f.index,v=f.first;v;)v.removed=!0,v.previous&&(v.previous=v.previous.next=void 0),delete d[v.index],v=v.next;f.first=f.last=void 0,ji?f.size=0:c.size=0},delete:function(u){var c=this,f=a(c),d=s(c,u);if(d){var v=d.next,g=d.previous;delete f.index[d.index],d.removed=!0,g&&(g.next=v),v&&(v.previous=g),f.first==d&&(f.first=v),f.last==d&&(f.last=g),ji?f.size--:c.size--}return!!d},forEach:function(c){for(var f=a(this),d=QF(c,arguments.length>1?arguments[1]:void 0,3),v;v=v?v.next:f.first;)for(d(v.value,v.key,this);v&&v.removed;)v=v.previous},has:function(c){return!!s(this,c)}}),qS(i.prototype,t?{get:function(c){var f=s(this,c);return f&&f.value},set:function(c,f){return o(this,c===0?0:c,f)}}:{add:function(c){return o(this,c=c===0?0:c,c)}}),ji&&WF(i.prototype,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=nc(r),a=nc(n);eB(e,r,function(o,s){xS(this,{type:n,target:o,state:i(o),kind:s,last:void 0})},function(){for(var o=a(this),s=o.kind,u=o.last;u&&u.removed;)u=u.previous;return!o.target||!(o.last=u=u?u.next:o.state.first)?(o.target=void 0,{value:void 0,done:!0}):s=="keys"?{value:u.key,done:!1}:s=="values"?{value:u.value,done:!1}:{value:[u.key,u.value],done:!1}},t?"entries":"values",!t,!0),rB(r)}}});var bo=l((vfe,_S)=>{"use strict";var tB=ki(),nB=ic();_S.exports=tB("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},nB)});var ac=l((pfe,CS)=>{"use strict";var iB=ki(),aB=ic();CS.exports=iB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},aB)});var uc=l((gfe,NS)=>{"use strict";var TS=wr(),qo=ct().getWeakData,oB=w(),oc=ee(),sB=ar(),uB=Y(),OS=Te(),RS=pe(),LS=qe(),lB=LS.set,cB=LS.getterFor,dB=OS.find,fB=OS.findIndex,vB=0,Io=function(e){return e.frozen||(e.frozen=new PS)},PS=function(){this.entries=[]},sc=function(e,r){return dB(e.entries,function(t){return t[0]===r})};PS.prototype={get:function(e){var r=sc(this,e);if(r)return r[1]},has:function(e){return!!sc(this,e)},set:function(e,r){var t=sc(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=fB(this.entries,function(t){return t[0]===e});return~r&&this.entries.splice(r,1),!!~r}};NS.exports={getConstructor:function(e,r,t,n){var i=e(function(s,u){sB(s,i,r),lB(s,{type:r,id:vB++,frozen:void 0}),u!=null&&uB(u,s[n],s,t)}),a=cB(r),o=function(s,u,c){var f=a(s),d=qo(oB(u),!0);return d===!0?Io(f).set(u,c):d[f.id]=c,s};return TS(i.prototype,{delete:function(s){var u=a(this);if(!oc(s))return!1;var c=qo(s);return c===!0?Io(u).delete(s):c&&RS(c,u.id)&&delete c[u.id]},has:function(u){var c=a(this);if(!oc(u))return!1;var f=qo(u);return f===!0?Io(c).has(u):f&&RS(f,c.id)}}),TS(i.prototype,t?{get:function(u){var c=a(this);if(oc(u)){var f=qo(u);return f===!0?Io(c).get(u):f?f[c.id]:void 0}},set:function(u,c){return o(this,u,c)}}:{add:function(u){return o(this,u,!0)}}),i}}});var _o=l((hfe,kS)=>{"use strict";var DS=K(),pB=wr(),gB=ct(),hB=ki(),MS=uc(),xo=ee(),Ao=qe().enforce,mB=Fs(),yB=!DS.ActiveXObject&&"ActiveXObject"in DS,wo=Object.isExtensible,Fi,US=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},EB=kS.exports=hB("WeakMap",US,MS);mB&&yB&&(Fi=MS.getConstructor(US,"WeakMap",!0),gB.REQUIRED=!0,Rn=EB.prototype,lc=Rn.delete,Bi=Rn.has,cc=Rn.get,dc=Rn.set,pB(Rn,{delete:function(e){if(xo(e)&&!wo(e)){var r=Ao(this);return r.frozen||(r.frozen=new Fi),lc.call(this,e)||r.frozen.delete(e)}return lc.call(this,e)},has:function(r){if(xo(r)&&!wo(r)){var t=Ao(this);return t.frozen||(t.frozen=new Fi),Bi.call(this,r)||t.frozen.has(r)}return Bi.call(this,r)},get:function(r){if(xo(r)&&!wo(r)){var t=Ao(this);return t.frozen||(t.frozen=new Fi),Bi.call(this,r)?cc.call(this,r):t.frozen.get(r)}return cc.call(this,r)},set:function(r,t){if(xo(r)&&!wo(r)){var n=Ao(this);n.frozen||(n.frozen=new Fi),Bi.call(this,r)?dc.call(this,r,t):n.frozen.set(r,t)}else dc.call(this,r,t);return this}}));var Rn,lc,Bi,cc,dc});var jS=l(()=>{"use strict";var SB=ki(),bB=uc();SB("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bB)});var ae=l((Efe,YS)=>{"use strict";var hc=te(),Fe=K(),GS=ee(),On=pe(),mc=mn(),qB=me(),fc=Ne(),IB=le().f,To=ke(),ht=ft(),xB=Z(),AB=an(),vc=Fe.DataView,FS=vc&&vc.prototype,$i=Fe.Int8Array,pc=$i&&$i.prototype,BS=Fe.Uint8ClampedArray,$S=BS&&BS.prototype,Qr=$i&&To($i),fr=pc&&To(pc),Co=Object.prototype,VS=Co.isPrototypeOf,HS=xB("toStringTag"),gc=AB("TYPED_ARRAY_TAG"),yc=!!(Fe.ArrayBuffer&&vc),Zr=yc&&!!ht&&mc(Fe.opera)!=="Opera",zS=!1,Qe,vr={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},wB=function(r){var t=mc(r);return t==="DataView"||On(vr,t)},KS=function(e){return GS(e)&&On(vr,mc(e))},_B=function(e){if(KS(e))return e;throw TypeError("Target is not a typed array")},CB=function(e){if(ht){if(VS.call(Qr,e))return e}else for(var r in vr)if(On(vr,Qe)){var t=Fe[r];if(t&&(e===t||VS.call(t,e)))return e}throw TypeError("Target is not a typed array constructor")},TB=function(e,r,t){if(!!hc){if(t)for(var n in vr){var i=Fe[n];i&&On(i.prototype,e)&&delete i.prototype[e]}(!fr[e]||t)&&fc(fr,e,t?r:Zr&&pc[e]||r)}},RB=function(e,r,t){var n,i;if(!!hc){if(ht){if(t)for(n in vr)i=Fe[n],i&&On(i,e)&&delete i[e];if(!Qr[e]||t)try{return fc(Qr,e,t?r:Zr&&$i[e]||r)}catch(a){}else return}for(n in vr)i=Fe[n],i&&(!i[e]||t)&&fc(i,e,r)}};for(Qe in vr)Fe[Qe]||(Zr=!1);if((!Zr||typeof Qr!="function"||Qr===Function.prototype)&&(Qr=function(){throw TypeError("Incorrect invocation")},Zr))for(Qe in vr)Fe[Qe]&&ht(Fe[Qe],Qr);if((!Zr||!fr||fr===Co)&&(fr=Qr.prototype,Zr))for(Qe in vr)Fe[Qe]&&ht(Fe[Qe].prototype,fr);Zr&&To($S)!==fr&&ht($S,fr);if(hc&&!On(fr,HS)){zS=!0,IB(fr,HS,{get:function(){return GS(this)?this[gc]:void 0}});for(Qe in vr)Fe[Qe]&&qB(Fe[Qe],gc,Qe)}yc&&ht&&To(FS)!==Co&&ht(FS,Co);YS.exports={NATIVE_ARRAY_BUFFER:yc,NATIVE_ARRAY_BUFFER_VIEWS:Zr,TYPED_ARRAY_TAG:zS&&gc,aTypedArray:_B,aTypedArrayConstructor:CB,exportTypedArrayMethod:TB,exportTypedArrayStaticMethod:RB,isView:wB,isTypedArray:KS,TypedArray:Qr,TypedArrayPrototype:fr}});var Ec=l((Sfe,WS)=>{var OB=Ge(),LB=ie();WS.exports=function(e){if(e===void 0)return 0;var r=OB(e),t=LB(r);if(r!==t)throw RangeError("Wrong length or index");return t}});var QS=l((bfe,XS)=>{var Sc=1/0,PB=Math.abs,Jr=Math.pow,NB=Math.floor,DB=Math.log,MB=Math.LN2,UB=function(e,r,t){var n=new Array(t),i=t*8-r-1,a=(1<<i)-1,o=a>>1,s=r===23?Jr(2,-24)-Jr(2,-77):0,u=e<0||e===0&&1/e<0?1:0,c=0,f,d,v;for(e=PB(e),e!=e||e===Sc?(d=e!=e?1:0,f=a):(f=NB(DB(e)/MB),e*(v=Jr(2,-f))<1&&(f--,v*=2),f+o>=1?e+=s/v:e+=s*Jr(2,1-o),e*v>=2&&(f++,v/=2),f+o>=a?(d=0,f=a):f+o>=1?(d=(e*v-1)*Jr(2,r),f=f+o):(d=e*Jr(2,o-1)*Jr(2,r),f=0));r>=8;n[c++]=d&255,d/=256,r-=8);for(f=f<<r|d,i+=r;i>0;n[c++]=f&255,f/=256,i-=8);return n[--c]|=u*128,n},kB=function(e,r){var t=e.length,n=t*8-r-1,i=(1<<n)-1,a=i>>1,o=n-7,s=t-1,u=e[s--],c=u&127,f;for(u>>=7;o>0;c=c*256+e[s],s--,o-=8);for(f=c&(1<<-o)-1,c>>=-o,o+=r;o>0;f=f*256+e[s],s--,o-=8);if(c===0)c=1-a;else{if(c===i)return f?NaN:u?-Sc:Sc;f=f+Jr(2,r),c=c-a}return(u?-1:1)*f*Jr(2,c-r)};XS.exports={pack:UB,unpack:kB}});var Hi=l((qfe,db)=>{"use strict";var wc=K(),bc=te(),jB=ae().NATIVE_ARRAY_BUFFER,FB=me(),ZS=wr(),qc=N(),Ro=ar(),BB=Ge(),$B=ie(),Po=Ec(),ob=QS(),VB=st().f,HB=le().f,GB=za(),sb=cr(),ub=qe(),Pn=ub.get,JS=ub.set,No="ArrayBuffer",Do="DataView",Ln="prototype",zB="Wrong length",lb="Wrong index",pr=wc[No],Ze=pr,gr=wc[Do],Mo=wc.RangeError,cb=ob.pack,eb=ob.unpack,rb=function(e){return[e&255]},tb=function(e){return[e&255,e>>8&255]},nb=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},ib=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},KB=function(e){return cb(e,23,4)},YB=function(e){return cb(e,52,8)},Oo=function(e,r){HB(e[Ln],r,{get:function(){return Pn(this)[r]}})},mt=function(e,r,t,n){var i=Po(t),a=Pn(e);if(i+r>a.byteLength)throw Mo(lb);var o=Pn(a.buffer).bytes,s=i+a.byteOffset,u=o.slice(s,s+r);return n?u:u.reverse()},yt=function(e,r,t,n,i,a){var o=Po(t),s=Pn(e);if(o+r>s.byteLength)throw Mo(lb);for(var u=Pn(s.buffer).bytes,c=o+s.byteOffset,f=n(+i),d=0;d<r;d++)u[c+d]=f[a?d:r-d-1]};if(!jB)Ze=function(r){Ro(this,Ze,No);var t=Po(r);JS(this,{bytes:GB.call(new Array(t),0),byteLength:t}),bc||(this.byteLength=t)},gr=function(r,t,n){Ro(this,gr,Do),Ro(r,Ze,Do);var i=Pn(r).byteLength,a=BB(t);if(a<0||a>i)throw Mo("Wrong offset");if(n=n===void 0?i-a:$B(n),a+n>i)throw Mo(zB);JS(this,{buffer:r,byteLength:n,byteOffset:a}),bc||(this.buffer=r,this.byteLength=n,this.byteOffset=a)},bc&&(Oo(Ze,"byteLength"),Oo(gr,"buffer"),Oo(gr,"byteLength"),Oo(gr,"byteOffset")),ZS(gr[Ln],{getInt8:function(r){return mt(this,1,r)[0]<<24>>24},getUint8:function(r){return mt(this,1,r)[0]},getInt16:function(r){var t=mt(this,2,r,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(r){var t=mt(this,2,r,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(r){return ib(mt(this,4,r,arguments.length>1?arguments[1]:void 0))},getUint32:function(r){return ib(mt(this,4,r,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(r){return eb(mt(this,4,r,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(r){return eb(mt(this,8,r,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(r,t){yt(this,1,r,rb,t)},setUint8:function(r,t){yt(this,1,r,rb,t)},setInt16:function(r,t){yt(this,2,r,tb,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(r,t){yt(this,2,r,tb,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(r,t){yt(this,4,r,nb,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(r,t){yt(this,4,r,nb,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(r,t){yt(this,4,r,KB,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(r,t){yt(this,8,r,YB,t,arguments.length>2?arguments[2]:void 0)}});else{if(!qc(function(){pr(1)})||!qc(function(){new pr(-1)})||qc(function(){return new pr,new pr(1.5),new pr(NaN),pr.name!=No})){for(Ze=function(r){return Ro(this,Ze),new pr(Po(r))},ab=Ze[Ln]=pr[Ln],Ic=VB(pr),xc=0;Ic.length>xc;)(Lo=Ic[xc++])in Ze||FB(Ze,Lo,pr[Lo]);ab.constructor=Ze}Vi=new gr(new Ze(2)),Ac=gr[Ln].setInt8,Vi.setInt8(0,2147483648),Vi.setInt8(1,2147483649),(Vi.getInt8(0)||!Vi.getInt8(1))&&ZS(gr[Ln],{setInt8:function(r,t){Ac.call(this,r,t<<24>>24)},setUint8:function(r,t){Ac.call(this,r,t<<24>>24)}},{unsafe:!0})}var ab,Ic,xc,Lo,Vi,Ac;sb(Ze,No);sb(gr,Do);db.exports={ArrayBuffer:Ze,DataView:gr}});var vb=l(()=>{"use strict";var WB=p(),XB=K(),QB=Hi(),ZB=vt(),_c="ArrayBuffer",fb=QB[_c],JB=XB[_c];WB({global:!0,forced:JB!==fb},{ArrayBuffer:fb});ZB(_c)});var gb=l(()=>{var e$=p(),pb=ae(),r$=pb.NATIVE_ARRAY_BUFFER_VIEWS;e$({target:"ArrayBuffer",stat:!0,forced:!r$},{isView:pb.isView})});var bb=l(()=>{"use strict";var t$=p(),n$=N(),Sb=Hi(),hb=w(),mb=Vr(),i$=ie(),a$=_e(),Cc=Sb.ArrayBuffer,yb=Sb.DataView,Eb=Cc.prototype.slice,o$=n$(function(){return!new Cc(2).slice(1,void 0).byteLength});t$({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o$},{slice:function(r,t){if(Eb!==void 0&&t===void 0)return Eb.call(hb(this),r);for(var n=hb(this).byteLength,i=mb(r,n),a=mb(t===void 0?n:t,n),o=new(a$(this,Cc))(i$(a-i)),s=new yb(this),u=new yb(o),c=0;i<a;)u.setUint8(c++,s.getUint8(i++));return o}})});var qb=l(()=>{var s$=p(),u$=Hi(),l$=ae().NATIVE_ARRAY_BUFFER;s$({global:!0,forced:!l$},{DataView:u$.DataView})});var Uo=l((Ofe,xb)=>{var Ib=K(),Tc=N(),c$=vi(),d$=ae().NATIVE_ARRAY_BUFFER_VIEWS,f$=Ib.ArrayBuffer,$t=Ib.Int8Array;xb.exports=!d$||!Tc(function(){$t(1)})||!Tc(function(){new $t(-1)})||!c$(function(e){new $t,new $t(null),new $t(1.5),new $t(e)},!0)||Tc(function(){return new $t(new f$(2),1,void 0).length!==1})});var Nn=l((Lfe,Ab)=>{var v$=Ge();Ab.exports=function(e){var r=v$(e);if(r<0)throw RangeError("The argument can't be less than 0");return r}});var Rc=l((Pfe,wb)=>{var p$=Nn();wb.exports=function(e,r){var t=p$(e);if(t%r)throw RangeError("Wrong offset");return t}});var Oc=l((Nfe,_b)=>{var g$=de(),h$=ie(),m$=Yr(),y$=Fa(),E$=be(),S$=ae().aTypedArrayConstructor;_b.exports=function(r){var t=g$(r),n=arguments.length,i=n>1?arguments[1]:void 0,a=i!==void 0,o=m$(t),s,u,c,f,d,v;if(o!=null&&!y$(o))for(d=o.call(t),v=d.next,t=[];!(f=v.call(d)).done;)t.push(f.value);for(a&&n>2&&(i=E$(i,arguments[2],2)),u=h$(t.length),c=new(S$(this))(u),s=0;u>s;s++)c[s]=a?i(t[s],s):t[s];return c}});var Tr=l((Dfe,kc)=>{"use strict";var Cb=p(),kb=K(),b$=te(),q$=Uo(),Dn=ae(),jb=Hi(),Tb=ar(),I$=qr(),Gi=me(),x$=ie(),Rb=Ec(),Lc=Rc(),Fb=nr(),zi=pe(),A$=mn(),Dc=ee(),w$=Ve(),ko=ft(),_$=st().f,Ob=Oc(),C$=Te().forEach,T$=vt(),Bb=le(),$b=Pe(),Vb=qe(),R$=xi(),Mc=Vb.get,O$=Vb.set,jc=Bb.f,L$=$b.f,P$=Math.round,Pc=kb.RangeError,Hb=jb.ArrayBuffer,N$=jb.DataView,jo=Dn.NATIVE_ARRAY_BUFFER_VIEWS,Lb=Dn.TYPED_ARRAY_TAG,Pb=Dn.TypedArray,Ki=Dn.TypedArrayPrototype,D$=Dn.aTypedArrayConstructor,Uc=Dn.isTypedArray,Fo="BYTES_PER_ELEMENT",Nc="Wrong length",Nb=function(e,r){for(var t=0,n=r.length,i=new(D$(e))(n);n>t;)i[t]=r[t++];return i},Bo=function(e,r){jc(e,r,{get:function(){return Mc(this)[r]}})},Db=function(e){var r;return e instanceof Hb||(r=A$(e))=="ArrayBuffer"||r=="SharedArrayBuffer"},Gb=function(e,r){return Uc(e)&&typeof r!="symbol"&&r in e&&String(+r)==String(r)},Mb=function(r,t){return Gb(r,t=Fb(t,!0))?I$(2,r[t]):L$(r,t)},Ub=function(r,t,n){return Gb(r,t=Fb(t,!0))&&Dc(n)&&zi(n,"value")&&!zi(n,"get")&&!zi(n,"set")&&!n.configurable&&(!zi(n,"writable")||n.writable)&&(!zi(n,"enumerable")||n.enumerable)?(r[t]=n.value,r):jc(r,t,n)};b$?(jo||($b.f=Mb,Bb.f=Ub,Bo(Ki,"buffer"),Bo(Ki,"byteOffset"),Bo(Ki,"byteLength"),Bo(Ki,"length")),Cb({target:"Object",stat:!0,forced:!jo},{getOwnPropertyDescriptor:Mb,defineProperty:Ub}),kc.exports=function(e,r,t){var n=e.match(/\d+$/)[0]/8,i=e+(t?"Clamped":"")+"Array",a="get"+e,o="set"+e,s=kb[i],u=s,c=u&&u.prototype,f={},d=function(h,m){var E=Mc(h);return E.view[a](m*n+E.byteOffset,!0)},v=function(h,m,E){var S=Mc(h);t&&(E=(E=P$(E))<0?0:E>255?255:E&255),S.view[o](m*n+S.byteOffset,E,!0)},g=function(h,m){jc(h,m,{get:function(){return d(this,m)},set:function(E){return v(this,m,E)},enumerable:!0})};jo?q$&&(u=r(function(h,m,E,S){return Tb(h,u,i),R$(function(){return Dc(m)?Db(m)?S!==void 0?new s(m,Lc(E,n),S):E!==void 0?new s(m,Lc(E,n)):new s(m):Uc(m)?Nb(u,m):Ob.call(u,m):new s(Rb(m))}(),h,u)}),ko&&ko(u,Pb),C$(_$(s),function(h){h in u||Gi(u,h,s[h])}),u.prototype=c):(u=r(function(h,m,E,S){Tb(h,u,i);var x=0,A=0,_,C,L;if(!Dc(m))L=Rb(m),C=L*n,_=new Hb(C);else if(Db(m)){_=m,A=Lc(E,n);var M=m.byteLength;if(S===void 0){if(M%n||(C=M-A,C<0))throw Pc(Nc)}else if(C=x$(S)*n,C+A>M)throw Pc(Nc);L=C/n}else return Uc(m)?Nb(u,m):Ob.call(u,m);for(O$(h,{buffer:_,byteOffset:A,byteLength:C,length:L,view:new N$(_)});x<L;)g(h,x++)}),ko&&ko(u,Pb),c=u.prototype=w$(Ki)),c.constructor!==u&&Gi(c,"constructor",u),Lb&&Gi(c,Lb,i),f[i]=u,Cb({global:!0,forced:u!=s,sham:!jo},f),Fo in u||Gi(u,Fo,n),Fo in c||Gi(c,Fo,n),T$(i)}):kc.exports=function(){}});var zb=l(()=>{var M$=Tr();M$("Int8",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Kb=l(()=>{var U$=Tr();U$("Uint8",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Yb=l(()=>{var k$=Tr();k$("Uint8",function(e){return function(t,n,i){return e(this,t,n,i)}},!0)});var Wb=l(()=>{var j$=Tr();j$("Int16",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Xb=l(()=>{var F$=Tr();F$("Uint16",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Qb=l(()=>{var B$=Tr();B$("Int32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Zb=l(()=>{var $$=Tr();$$("Uint32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Jb=l(()=>{var V$=Tr();V$("Float32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var eq=l(()=>{var H$=Tr();H$("Float64",function(e){return function(t,n,i){return e(this,t,n,i)}})});var rq=l(()=>{"use strict";var G$=Uo(),z$=ae().exportTypedArrayStaticMethod,K$=Oc();z$("from",K$,G$)});var nq=l(()=>{"use strict";var tq=ae(),Y$=Uo(),W$=tq.aTypedArrayConstructor,X$=tq.exportTypedArrayStaticMethod;X$("of",function(){for(var r=0,t=arguments.length,n=new(W$(this))(t);t>r;)n[r]=arguments[r++];return n},Y$)});var aq=l(()=>{"use strict";var iq=ae(),Q$=Mu(),Z$=iq.aTypedArray,J$=iq.exportTypedArrayMethod;J$("copyWithin",function(r,t){return Q$.call(Z$(this),r,t,arguments.length>2?arguments[2]:void 0)})});var sq=l(()=>{"use strict";var oq=ae(),eV=Te().every,rV=oq.aTypedArray,tV=oq.exportTypedArrayMethod;tV("every",function(r){return eV(rV(this),r,arguments.length>1?arguments[1]:void 0)})});var lq=l(()=>{"use strict";var uq=ae(),nV=za(),iV=uq.aTypedArray,aV=uq.exportTypedArrayMethod;aV("fill",function(r){return nV.apply(iV(this),arguments)})});var cq=l(()=>{"use strict";var Fc=ae(),oV=Te().filter,sV=_e(),uV=Fc.aTypedArray,lV=Fc.aTypedArrayConstructor,cV=Fc.exportTypedArrayMethod;cV("filter",function(r){for(var t=oV(uV(this),r,arguments.length>1?arguments[1]:void 0),n=sV(this,this.constructor),i=0,a=t.length,o=new(lV(n))(a);a>i;)o[i]=t[i++];return o})});var fq=l(()=>{"use strict";var dq=ae(),dV=Te().find,fV=dq.aTypedArray,vV=dq.exportTypedArrayMethod;vV("find",function(r){return dV(fV(this),r,arguments.length>1?arguments[1]:void 0)})});var pq=l(()=>{"use strict";var vq=ae(),pV=Te().findIndex,gV=vq.aTypedArray,hV=vq.exportTypedArrayMethod;hV("findIndex",function(r){return pV(gV(this),r,arguments.length>1?arguments[1]:void 0)})});var hq=l(()=>{"use strict";var gq=ae(),mV=Te().forEach,yV=gq.aTypedArray,EV=gq.exportTypedArrayMethod;EV("forEach",function(r){mV(yV(this),r,arguments.length>1?arguments[1]:void 0)})});var yq=l(()=>{"use strict";var mq=ae(),SV=un().includes,bV=mq.aTypedArray,qV=mq.exportTypedArrayMethod;qV("includes",function(r){return SV(bV(this),r,arguments.length>1?arguments[1]:void 0)})});var Sq=l(()=>{"use strict";var Eq=ae(),IV=un().indexOf,xV=Eq.aTypedArray,AV=Eq.exportTypedArrayMethod;AV("indexOf",function(r){return IV(xV(this),r,arguments.length>1?arguments[1]:void 0)})});var wq=l(()=>{"use strict";var wV=K(),qq=ae(),$c=mi(),_V=Z(),Iq=_V("iterator"),bq=wV.Uint8Array,CV=$c.values,TV=$c.keys,RV=$c.entries,Vc=qq.aTypedArray,$o=qq.exportTypedArrayMethod,Bc=bq&&bq.prototype[Iq],xq=!!Bc&&(Bc.name=="values"||Bc.name==null),Aq=function(){return CV.call(Vc(this))};$o("entries",function(){return RV.call(Vc(this))});$o("keys",function(){return TV.call(Vc(this))});$o("values",Aq,!xq);$o(Iq,Aq,!xq)});var Cq=l(()=>{"use strict";var _q=ae(),OV=_q.aTypedArray,LV=_q.exportTypedArrayMethod,PV=[].join;LV("join",function(r){return PV.apply(OV(this),arguments)})});var Rq=l(()=>{"use strict";var Tq=ae(),NV=Hu(),DV=Tq.aTypedArray,MV=Tq.exportTypedArrayMethod;MV("lastIndexOf",function(r){return NV.apply(DV(this),arguments)})});var Oq=l(()=>{"use strict";var Hc=ae(),UV=Te().map,kV=_e(),jV=Hc.aTypedArray,FV=Hc.aTypedArrayConstructor,BV=Hc.exportTypedArrayMethod;BV("map",function(r){return UV(jV(this),r,arguments.length>1?arguments[1]:void 0,function(t,n){return new(FV(kV(t,t.constructor)))(n)})})});var Pq=l(()=>{"use strict";var Lq=ae(),$V=gi().left,VV=Lq.aTypedArray,HV=Lq.exportTypedArrayMethod;HV("reduce",function(r){return $V(VV(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)})});var Dq=l(()=>{"use strict";var Nq=ae(),GV=gi().right,zV=Nq.aTypedArray,KV=Nq.exportTypedArrayMethod;KV("reduceRight",function(r){return GV(zV(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)})});var Uq=l(()=>{"use strict";var Mq=ae(),YV=Mq.aTypedArray,WV=Mq.exportTypedArrayMethod,XV=Math.floor;WV("reverse",function(){for(var r=this,t=YV(r).length,n=XV(t/2),i=0,a;i<n;)a=r[i],r[i++]=r[--t],r[t]=a;return r})});var jq=l(()=>{"use strict";var kq=ae(),QV=ie(),ZV=Rc(),JV=de(),eH=N(),rH=kq.aTypedArray,tH=kq.exportTypedArrayMethod,nH=eH(function(){new Int8Array(1).set({})});tH("set",function(r){rH(this);var t=ZV(arguments.length>1?arguments[1]:void 0,1),n=this.length,i=JV(r),a=QV(i.length),o=0;if(a+t>n)throw RangeError("Wrong length");for(;o<a;)this[t+o]=i[o++]},nH)});var Fq=l(()=>{"use strict";var Gc=ae(),iH=_e(),aH=N(),oH=Gc.aTypedArray,sH=Gc.aTypedArrayConstructor,uH=Gc.exportTypedArrayMethod,lH=[].slice,cH=aH(function(){new Int8Array(1).slice()});uH("slice",function(r,t){for(var n=lH.call(oH(this),r,t),i=iH(this,this.constructor),a=0,o=n.length,s=new(sH(i))(o);o>a;)s[a]=n[a++];return s},cH)});var $q=l(()=>{"use strict";var Bq=ae(),dH=Te().some,fH=Bq.aTypedArray,vH=Bq.exportTypedArrayMethod;vH("some",function(r){return dH(fH(this),r,arguments.length>1?arguments[1]:void 0)})});var Hq=l(()=>{"use strict";var Vq=ae(),pH=Vq.aTypedArray,gH=Vq.exportTypedArrayMethod,hH=[].sort;gH("sort",function(r){return hH.call(pH(this),r)})});var Kq=l(()=>{"use strict";var zq=ae(),mH=ie(),Gq=Vr(),yH=_e(),EH=zq.aTypedArray,SH=zq.exportTypedArrayMethod;SH("subarray",function(r,t){var n=EH(this),i=n.length,a=Gq(r,i);return new(yH(n,n.constructor))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,mH((t===void 0?i:Gq(t,i))-a))})});var Qq=l(()=>{"use strict";var bH=K(),Wq=ae(),zc=N(),Vo=bH.Int8Array,Yq=Wq.aTypedArray,qH=Wq.exportTypedArrayMethod,Xq=[].toLocaleString,IH=[].slice,xH=!!Vo&&zc(function(){Xq.call(new Vo(1))}),AH=zc(function(){return[1,2].toLocaleString()!=new Vo([1,2]).toLocaleString()})||!zc(function(){Vo.prototype.toLocaleString.call([1,2])});qH("toLocaleString",function(){return Xq.apply(xH?IH.call(Yq(this)):Yq(this),arguments)},AH)});var Jq=l(()=>{"use strict";var wH=ae().exportTypedArrayMethod,_H=N(),CH=K(),Zq=CH.Uint8Array,TH=Zq&&Zq.prototype||{},Ho=[].toString,RH=[].join;_H(function(){Ho.call({})})&&(Ho=function(){return RH.call(this)});var OH=TH.toString!=Ho;wH("toString",Ho,OH)});var eI=l(()=>{var LH=p(),PH=ce(),NH=U(),DH=w(),MH=N(),Kc=PH("Reflect","apply"),UH=Function.apply,kH=!MH(function(){Kc(function(){})});LH({target:"Reflect",stat:!0,forced:kH},{apply:function(r,t,n){return NH(r),DH(n),Kc?Kc(r,t,n):UH.call(r,t,n)}})});var sI=l(()=>{var jH=p(),FH=ce(),rI=U(),BH=w(),tI=ee(),$H=Ve(),VH=Tu(),iI=N(),Yc=FH("Reflect","construct"),aI=iI(function(){function e(){}return!(Yc(function(){},[],e)instanceof e)}),oI=!iI(function(){Yc(function(){})}),nI=aI||oI;jH({target:"Reflect",stat:!0,forced:nI,sham:nI},{construct:function(r,t){rI(r),BH(t);var n=arguments.length<3?r:rI(arguments[2]);if(oI&&!aI)return Yc(r,t,n);if(r==n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(VH.apply(r,i))}var a=n.prototype,o=$H(tI(a)?a:Object.prototype),s=Function.apply.call(r,o,t);return tI(s)?s:o}})});var cI=l(()=>{var HH=p(),GH=te(),uI=w(),zH=nr(),lI=le(),KH=N(),YH=KH(function(){Reflect.defineProperty(lI.f({},1,{value:1}),1,{value:2})});HH({target:"Reflect",stat:!0,forced:YH,sham:!GH},{defineProperty:function(r,t,n){uI(r);var i=zH(t,!0);uI(n);try{return lI.f(r,i,n),!0}catch(a){return!1}}})});var dI=l(()=>{var WH=p(),XH=w(),QH=Pe().f;WH({target:"Reflect",stat:!0},{deleteProperty:function(r,t){var n=QH(XH(r),t);return n&&!n.configurable?!1:delete r[t]}})});var vI=l(()=>{var ZH=p(),JH=ee(),eG=w(),rG=pe(),tG=Pe(),nG=ke();function fI(e,r){var t=arguments.length<3?e:arguments[2],n,i;if(eG(e)===t)return e[r];if(n=tG.f(e,r))return rG(n,"value")?n.value:n.get===void 0?void 0:n.get.call(t);if(JH(i=nG(e)))return fI(i,r,t)}ZH({target:"Reflect",stat:!0},{get:fI})});var pI=l(()=>{var iG=p(),aG=te(),oG=w(),sG=Pe();iG({target:"Reflect",stat:!0,sham:!aG},{getOwnPropertyDescriptor:function(r,t){return sG.f(oG(r),t)}})});var gI=l(()=>{var uG=p(),lG=w(),cG=ke(),dG=Va();uG({target:"Reflect",stat:!0,sham:!dG},{getPrototypeOf:function(r){return cG(lG(r))}})});var hI=l(()=>{var fG=p();fG({target:"Reflect",stat:!0},{has:function(r,t){return t in r}})});var yI=l(()=>{var vG=p(),pG=w(),mI=Object.isExtensible;vG({target:"Reflect",stat:!0},{isExtensible:function(r){return pG(r),mI?mI(r):!0}})});var EI=l(()=>{var gG=p(),hG=Ra();gG({target:"Reflect",stat:!0},{ownKeys:hG})});var SI=l(()=>{var mG=p(),yG=ce(),EG=w(),SG=gn();mG({target:"Reflect",stat:!0,sham:!SG},{preventExtensions:function(r){EG(r);try{var t=yG("Object","preventExtensions");return t&&t(r),!0}catch(n){return!1}}})});var wI=l(()=>{var bG=p(),qG=w(),bI=ee(),IG=pe(),xG=N(),Wc=le(),qI=Pe(),xI=ke(),II=qr();function AI(e,r,t){var n=arguments.length<4?e:arguments[3],i=qI.f(qG(e),r),a,o;if(!i){if(bI(o=xI(e)))return AI(o,r,t,n);i=II(0)}if(IG(i,"value")){if(i.writable===!1||!bI(n))return!1;if(a=qI.f(n,r)){if(a.get||a.set||a.writable===!1)return!1;a.value=t,Wc.f(n,r,a)}else Wc.f(n,r,II(0,t));return!0}return i.set===void 0?!1:(i.set.call(n,t),!0)}var AG=xG(function(){var e=Wc.f({},"a",{configurable:!0});return Reflect.set(xI(e),"a",1,e)!==!1});bG({target:"Reflect",stat:!0,forced:AG},{set:AI})});var CI=l(()=>{var wG=p(),_G=w(),CG=_u(),_I=ft();_I&&wG({target:"Reflect",stat:!0},{setPrototypeOf:function(r,t){_G(r),CG(t);try{return _I(r,t),!0}catch(n){return!1}}})});var RI=l((qpe,TI)=>{eg();rg();ag();og();sg();ug();lg();cg();dg();fg();vg();pg();gg();hg();mg();qg();Ig();Ag();_g();Rg();Pg();Hg();Kg();Yg();Wg();eh();th();nh();ih();ah();sh();uh();lh();fh();vh();hh();yh();Eh();Sh();bh();xh();wh();Rh();Ou();Uh();kh();jh();Xh();Jh();rm();im();om();um();cm();vm();pm();mm();ym();bm();qm();wm();Cm();Om();Lm();Nm();Um();km();$m();Vm();zm();Km();Ym();mi();gy();hy();Ey();wy();_y();Uy();nl();Xy();Qy();Zy();Jy();r0();i0();s0();v0();h0();E0();sl();x0();A0();w0();_0();C0();T0();R0();O0();L0();P0();N0();D0();M0();$0();H0();G0();Y0();Z0();rE();oE();sE();lE();dE();fE();vE();pE();gE();mE();EE();IE();wE();TE();LE();NE();ME();UE();FE();$E();HE();zE();YE();WE();XE();QE();ZE();r1();i1();a1();o1();s1();u1();p1();m1();q1();A1();w1();hS();ec();ES();bo();ac();_o();jS();vb();gb();bb();qb();zb();Kb();Yb();Wb();Xb();Qb();Zb();Jb();eq();rq();nq();aq();sq();lq();cq();fq();pq();hq();yq();Sq();wq();Cq();Rq();Oq();Pq();Dq();Uq();jq();Fq();$q();Hq();Kq();Qq();Jq();eI();sI();cI();dI();vI();pI();gI();hI();yI();EI();SI();wI();CI();var TG=lr();TI.exports=TG});var Rr=l((Ipe,PI)=>{var OI=bo(),RG=_o(),OG=ni(),LI=OG("metadata"),Xc=LI.store||(LI.store=new RG),Yi=function(e,r,t){var n=Xc.get(e);if(!n){if(!t)return;Xc.set(e,n=new OI)}var i=n.get(r);if(!i){if(!t)return;n.set(r,i=new OI)}return i},LG=function(e,r,t){var n=Yi(r,t,!1);return n===void 0?!1:n.has(e)},PG=function(e,r,t){var n=Yi(r,t,!1);return n===void 0?void 0:n.get(e)},NG=function(e,r,t,n){Yi(t,n,!0).set(e,r)},DG=function(e,r){var t=Yi(e,r,!1),n=[];return t&&t.forEach(function(i,a){n.push(a)}),n},MG=function(e){return e===void 0||typeof e=="symbol"?e:String(e)};PI.exports={store:Xc,getMap:Yi,has:LG,get:PG,set:NG,keys:DG,toKey:MG}});var DI=l(()=>{var UG=p(),NI=Rr(),kG=w(),jG=NI.toKey,FG=NI.set;UG({target:"Reflect",stat:!0},{defineMetadata:function(r,t,n){var i=arguments.length<4?void 0:jG(arguments[3]);FG(r,t,kG(n),i)}})});var UI=l(()=>{var BG=p(),Qc=Rr(),$G=w(),VG=Qc.toKey,HG=Qc.getMap,MI=Qc.store;BG({target:"Reflect",stat:!0},{deleteMetadata:function(r,t){var n=arguments.length<3?void 0:VG(arguments[2]),i=HG($G(t),n,!1);if(i===void 0||!i.delete(r))return!1;if(i.size)return!0;var a=MI.get(t);return a.delete(n),!!a.size||MI.delete(t)}})});var jI=l(()=>{var GG=p(),Zc=Rr(),zG=w(),KG=ke(),YG=Zc.has,WG=Zc.get,XG=Zc.toKey,kI=function(e,r,t){var n=YG(e,r,t);if(n)return WG(e,r,t);var i=KG(r);return i!==null?kI(e,i,t):void 0};GG({target:"Reflect",stat:!0},{getMetadata:function(r,t){var n=arguments.length<3?void 0:XG(arguments[2]);return kI(r,zG(t),n)}})});var $I=l(()=>{var QG=p(),ZG=ac(),FI=Rr(),JG=w(),ez=ke(),rz=Y(),tz=FI.keys,nz=FI.toKey,iz=function(e){var r=[];return rz(e,r.push,r),r},BI=function(e,r){var t=tz(e,r),n=ez(e);if(n===null)return t;var i=BI(n,r);return i.length?t.length?iz(new ZG(t.concat(i))):i:t};QG({target:"Reflect",stat:!0},{getMetadataKeys:function(r){var t=arguments.length<2?void 0:nz(arguments[1]);return BI(JG(r),t)}})});var HI=l(()=>{var az=p(),VI=Rr(),oz=w(),sz=VI.get,uz=VI.toKey;az({target:"Reflect",stat:!0},{getOwnMetadata:function(r,t){var n=arguments.length<3?void 0:uz(arguments[2]);return sz(r,oz(t),n)}})});var zI=l(()=>{var lz=p(),GI=Rr(),cz=w(),dz=GI.keys,fz=GI.toKey;lz({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(r){var t=arguments.length<2?void 0:fz(arguments[1]);return dz(cz(r),t)}})});var WI=l(()=>{var vz=p(),KI=Rr(),pz=w(),gz=ke(),hz=KI.has,mz=KI.toKey,YI=function(e,r,t){var n=hz(e,r,t);if(n)return!0;var i=gz(r);return i!==null?YI(e,i,t):!1};vz({target:"Reflect",stat:!0},{hasMetadata:function(r,t){var n=arguments.length<3?void 0:mz(arguments[2]);return YI(r,pz(t),n)}})});var QI=l(()=>{var yz=p(),XI=Rr(),Ez=w(),Sz=XI.has,bz=XI.toKey;yz({target:"Reflect",stat:!0},{hasOwnMetadata:function(r,t){var n=arguments.length<3?void 0:bz(arguments[2]);return Sz(r,Ez(t),n)}})});var JI=l(()=>{var qz=p(),ZI=Rr(),Iz=w(),xz=ZI.toKey,Az=ZI.set;qz({target:"Reflect",stat:!0},{metadata:function(r,t){return function(i,a){Az(r,t,Iz(i),xz(a))}}})});var ex=l(()=>{DI();UI();jI();$I();HI();zI();WI();QI();JI()});var rx=l(()=>{var wz=p();wz({target:"Math",stat:!0},{iaddh:function(r,t,n,i){var a=r>>>0,o=t>>>0,s=n>>>0;return o+(i>>>0)+((a&s|(a|s)&~(a+s>>>0))>>>31)|0}})});var tx=l(()=>{var _z=p();_z({target:"Math",stat:!0},{isubh:function(r,t,n,i){var a=r>>>0,o=t>>>0,s=n>>>0;return o-(i>>>0)-((~a&s|~(a^s)&a-s>>>0)>>>31)|0}})});var nx=l(()=>{var Cz=p();Cz({target:"Math",stat:!0},{imulh:function(r,t){var n=65535,i=+r,a=+t,o=i&n,s=a&n,u=i>>16,c=a>>16,f=(u*s>>>0)+(o*s>>>16);return u*c+(f>>16)+((o*c>>>0)+(f&n)>>16)}})});var ix=l(()=>{var Tz=p();Tz({target:"Math",stat:!0},{umulh:function(r,t){var n=65535,i=+r,a=+t,o=i&n,s=a&n,u=i>>>16,c=a>>>16,f=(u*s>>>0)+(o*s>>>16);return u*c+(f>>>16)+((o*c>>>0)+(f&n)>>>16)}})});var ax=l(()=>{rx();tx();nx();ix()});var ox=l(()=>{"use strict";var Rz=p(),Oz=Mt().charAt;Rz({target:"String",proto:!0},{at:function(r){return Oz(this,r)}})});var sx=l(()=>{ox()});var Jc=l((ige,ux)=>{var Lz=N(),Pz=Z(),Nz=j(),Dz=Pz("iterator");ux.exports=!Lz(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,t="";return e.pathname="c%20d",r.forEach(function(n,i){r.delete("b"),t+=i+n}),Nz&&!e.toJSON||!r.sort||e.href!=="http://a/c%20d?a=1&c=3"||r.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!r[Dz]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||t!=="a1c3"||new URL("http://x",void 0).host!=="x"})});var vx=l((age,fx)=>{"use strict";var ed=2147483647,Wi=36,dx=1,nd=26,Mz=38,Uz=700,kz=72,jz=128,Fz="-",Bz=/[^\0-\u007E]/,$z=/[.\u3002\uFF0E\uFF61]/g,lx="Overflow: input needs wider integers to process",rd=Wi-dx,Mn=Math.floor,td=String.fromCharCode,Vz=function(e){for(var r=[],t=0,n=e.length;t<n;){var i=e.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){var a=e.charCodeAt(t++);(a&64512)==56320?r.push(((i&1023)<<10)+(a&1023)+65536):(r.push(i),t--)}else r.push(i)}return r},cx=function(e){return e+22+75*(e<26)},Hz=function(e,r,t){var n=0;for(e=t?Mn(e/Uz):e>>1,e+=Mn(e/r);e>rd*nd>>1;n+=Wi)e=Mn(e/rd);return Mn(n+(rd+1)*e/(e+Mz))},Gz=function(e){var r=[];e=Vz(e);var t=e.length,n=jz,i=0,a=kz,o,s;for(o=0;o<e.length;o++)s=e[o],s<128&&r.push(td(s));var u=r.length,c=u;for(u&&r.push(Fz);c<t;){var f=ed;for(o=0;o<e.length;o++)s=e[o],s>=n&&s<f&&(f=s);var d=c+1;if(f-n>Mn((ed-i)/d))throw RangeError(lx);for(i+=(f-n)*d,n=f,o=0;o<e.length;o++){if(s=e[o],s<n&&++i>ed)throw RangeError(lx);if(s==n){for(var v=i,g=Wi;;g+=Wi){var h=g<=a?dx:g>=a+nd?nd:g-a;if(v<h)break;var m=v-h,E=Wi-h;r.push(td(cx(h+m%E))),v=Mn(m/E)}r.push(td(cx(v))),a=Hz(i,d,c==u),i=0,++c}}++i,++n}return r.join("")};fx.exports=function(e){var r=[],t=e.toLowerCase().replace($z,".").split("."),n,i;for(n=0;n<t.length;n++)i=t[n],r.push(Bz.test(i)?"xn--"+Gz(i):i);return r.join(".")}});var Un=l((oge,px)=>{var zz=w(),Kz=Yr();px.exports=function(e){var r=Kz(e);if(typeof r!="function")throw TypeError(String(e)+" is not iterable");return zz(r.call(e))}});var zo=l((sge,Tx)=>{"use strict";mi();var Sx=p(),bx=ce(),qx=Jc(),Ix=Ne(),Yz=wr(),Wz=cr(),Xz=Dt(),od=qe(),Qz=ar(),Zz=pe(),Jz=be(),eK=mn(),rK=w(),xx=ee(),tK=Ve(),gx=qr(),Ax=Un(),nK=Yr(),iK=Z(),hx=bx("fetch"),id=bx("Headers"),aK=iK("iterator"),jn="URLSearchParams",wx=jn+"Iterator",_x=od.set,hr=od.getterFor(jn),oK=od.getterFor(wx),sK=/\+/g,mx=Array(4),uK=function(e){return mx[e-1]||(mx[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},lK=function(e){try{return decodeURIComponent(e)}catch(r){return e}},yx=function(e){var r=e.replace(sK," "),t=4;try{return decodeURIComponent(r)}catch(n){for(;t;)r=r.replace(uK(t--),lK);return r}},cK=/[!'()~]|%20/g,dK={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fK=function(e){return dK[e]},Ex=function(e){return encodeURIComponent(e).replace(cK,fK)},Cx=function(e,r){if(r)for(var t=r.split("&"),n=0,i,a;n<t.length;)i=t[n++],i.length&&(a=i.split("="),e.push({key:yx(a.shift()),value:yx(a.join("="))}))},vK=function(e){this.entries.length=0,Cx(this.entries,e)},kn=function(e,r){if(e<r)throw TypeError("Not enough arguments")},ad=Xz(function(r,t){_x(this,{type:wx,iterator:Ax(hr(r).entries),kind:t})},"Iterator",function(){var r=oK(this),t=r.kind,n=r.iterator.next(),i=n.value;return n.done||(n.value=t==="keys"?i.key:t==="values"?i.value:[i.key,i.value]),n}),Xi=function(){Qz(this,Xi,jn);var r=arguments.length>0?arguments[0]:void 0,t=this,n=[],i,a,o,s,u,c,f,d,v;if(_x(t,{type:jn,entries:n,updateURL:function(){},updateSearchParams:vK}),r!==void 0)if(xx(r))if(i=nK(r),typeof i=="function")for(a=i.call(r),o=a.next;!(s=o.call(a)).done;){if(u=Ax(rK(s.value)),c=u.next,(f=c.call(u)).done||(d=c.call(u)).done||!c.call(u).done)throw TypeError("Expected sequence with length 2");n.push({key:f.value+"",value:d.value+""})}else for(v in r)Zz(r,v)&&n.push({key:v,value:r[v]+""});else Cx(n,typeof r=="string"?r.charAt(0)==="?"?r.slice(1):r:r+"")},Go=Xi.prototype;Yz(Go,{append:function(r,t){kn(arguments.length,2);var n=hr(this);n.entries.push({key:r+"",value:t+""}),n.updateURL()},delete:function(e){kn(arguments.length,1);for(var r=hr(this),t=r.entries,n=e+"",i=0;i<t.length;)t[i].key===n?t.splice(i,1):i++;r.updateURL()},get:function(r){kn(arguments.length,1);for(var t=hr(this).entries,n=r+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(r){kn(arguments.length,1);for(var t=hr(this).entries,n=r+"",i=[],a=0;a<t.length;a++)t[a].key===n&&i.push(t[a].value);return i},has:function(r){kn(arguments.length,1);for(var t=hr(this).entries,n=r+"",i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(r,t){kn(arguments.length,1);for(var n=hr(this),i=n.entries,a=!1,o=r+"",s=t+"",u=0,c;u<i.length;u++)c=i[u],c.key===o&&(a?i.splice(u--,1):(a=!0,c.value=s));a||i.push({key:o,value:s}),n.updateURL()},sort:function(){var r=hr(this),t=r.entries,n=t.slice(),i,a,o;for(t.length=0,o=0;o<n.length;o++){for(i=n[o],a=0;a<o;a++)if(t[a].key>i.key){t.splice(a,0,i);break}a===o&&t.push(i)}r.updateURL()},forEach:function(r){for(var t=hr(this).entries,n=Jz(r,arguments.length>1?arguments[1]:void 0,3),i=0,a;i<t.length;)a=t[i++],n(a.value,a.key,this)},keys:function(){return new ad(this,"keys")},values:function(){return new ad(this,"values")},entries:function(){return new ad(this,"entries")}},{enumerable:!0});Ix(Go,aK,Go.entries);Ix(Go,"toString",function(){for(var r=hr(this).entries,t=[],n=0,i;n<r.length;)i=r[n++],t.push(Ex(i.key)+"="+Ex(i.value));return t.join("&")},{enumerable:!0});Wz(Xi,jn);Sx({global:!0,forced:!qx},{URLSearchParams:Xi});!qx&&typeof hx=="function"&&typeof id=="function"&&Sx({global:!0,enumerable:!0,forced:!0},{fetch:function(r){var t=[r],n,i,a;return arguments.length>1&&(n=arguments[1],xx(n)&&(i=n.body,eK(i)===jn&&(a=n.headers?new id(n.headers):new id,a.has("content-type")||a.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),n=tK(n,{body:gx(0,String(i)),headers:gx(0,a)}))),t.push(n)),hx.apply(this,t)}});Tx.exports={URLSearchParams:Xi,getState:hr}});var Cd=l(()=>{"use strict";sl();var pK=p(),xd=te(),gK=Jc(),hK=K(),mK=La(),Xo=Ne(),yK=ar(),Ad=pe(),wd=gu(),Bn=Lu(),EK=Mt().codeAt,SK=vx(),bK=cr(),Bx=zo(),$x=qe(),Qi=hK.URL,qK=Bx.URLSearchParams,hd=Bx.getState,IK=$x.set,Ee=$x.getterFor("URL"),xK=Math.floor,Rx=Math.pow,AK="Invalid authority",sd="Invalid scheme",Ht="Invalid host",Ox="Invalid port",Vx=/[A-Za-z]/,wK=/[\d+\-.A-Za-z]/,md=/\d/,_K=/^(0x|0X)/,CK=/^[0-7]+$/,TK=/^\d+$/,Hx=/^[\dA-Fa-f]+$/,RK=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,OK=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,LK=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,PK=/[\u0009\u000A\u000D]/g,or,ud=function(e,r){var t,n,i;if(r.charAt(0)=="["){if(r.charAt(r.length-1)!="]"||(t=DK(r.slice(1,-1)),!t))return Ht;e.host=t}else if(Re(e)){if(r=SK(r),RK.test(r)||(t=NK(r),t===null))return Ht;e.host=t}else{if(OK.test(r))return Ht;for(t="",n=Bn(r),i=0;i<n.length;i++)t+=Et(n[i],Qo);e.host=t}},NK=function(e){var r=e.split("."),t,n,i,a,o,s,u;if(r.length&&r[r.length-1]==""&&r.pop(),t=r.length,t>4)return e;for(n=[],i=0;i<t;i++){if(a=r[i],a=="")return e;if(o=10,a.length>1&&a.charAt(0)=="0"&&(o=_K.test(a)?16:8,a=a.slice(o==8?1:2)),a==="")s=0;else{if(!(o==10?TK:o==8?CK:Hx).test(a))return e;s=parseInt(a,o)}n.push(s)}for(i=0;i<t;i++)if(s=n[i],i==t-1){if(s>=Rx(256,5-t))return null}else if(s>255)return null;for(u=n.pop(),i=0;i<n.length;i++)u+=n[i]*Rx(256,3-i);return u},DK=function(e){var r=[0,0,0,0,0,0,0,0],t=0,n=null,i=0,a,o,s,u,c,f,d,v=function(){return e.charAt(i)};if(v()==":"){if(e.charAt(1)!=":")return;i+=2,t++,n=t}for(;v();){if(t==8)return;if(v()==":"){if(n!==null)return;i++,t++,n=t;continue}for(a=o=0;o<4&&Hx.test(v());)a=a*16+parseInt(v(),16),i++,o++;if(v()=="."){if(o==0||(i-=o,t>6))return;for(s=0;v();){if(u=null,s>0)if(v()=="."&&s<4)i++;else return;if(!md.test(v()))return;for(;md.test(v());){if(c=parseInt(v(),10),u===null)u=c;else{if(u==0)return;u=u*10+c}if(u>255)return;i++}r[t]=r[t]*256+u,s++,(s==2||s==4)&&t++}if(s!=4)return;break}else if(v()==":"){if(i++,!v())return}else if(v())return;r[t++]=a}if(n!==null)for(f=t-n,t=7;t!=0&&f>0;)d=r[t],r[t--]=r[n+f-1],r[n+--f]=d;else if(t!=8)return;return r},MK=function(e){for(var r=null,t=1,n=null,i=0,a=0;a<8;a++)e[a]!==0?(i>t&&(r=n,t=i),n=null,i=0):(n===null&&(n=a),++i);return i>t&&(r=n,t=i),r},Ji=function(e){var r,t,n,i;if(typeof e=="number"){for(r=[],t=0;t<4;t++)r.unshift(e%256),e=xK(e/256);return r.join(".")}else if(typeof e=="object"){for(r="",n=MK(e),t=0;t<8;t++)i&&e[t]===0||(i&&(i=!1),n===t?(r+=t?":":"::",i=!0):(r+=e[t].toString(16),t<7&&(r+=":")));return"["+r+"]"}return e},Qo={},Gx=wd({},Qo,{" ":1,'"':1,"<":1,">":1,"`":1}),zx=wd({},Gx,{"#":1,"?":1,"{":1,"}":1}),yd=wd({},zx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Et=function(e,r){var t=EK(e,0);return t>32&&t<127&&!Ad(r,e)?e:encodeURIComponent(e)},Wo={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Re=function(e){return Ad(Wo,e.scheme)},Ed=function(e){return e.username!=""||e.password!=""},ld=function(e){return!e.host||e.cannotBeABaseURL||e.scheme=="file"},Zi=function(e,r){var t;return e.length==2&&Vx.test(e.charAt(0))&&((t=e.charAt(1))==":"||!r&&t=="|")},Lx=function(e){var r;return e.length>1&&Zi(e.slice(0,2))&&(e.length==2||(r=e.charAt(2))==="/"||r==="\\"||r==="?"||r==="#")},Px=function(e){var r=e.path,t=r.length;t&&(e.scheme!="file"||t!=1||!Zi(r[0],!0))&&r.pop()},UK=function(e){return e==="."||e.toLowerCase()==="%2e"},kK=function(e){return e=e.toLowerCase(),e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"},Sd={},Nx={},cd={},Dx={},Mx={},dd={},Ux={},kx={},Ko={},Yo={},bd={},qd={},Id={},fd={},jx={},vd={},Fn={},Or={},Fx={},Vt={},et={},Lr=function(e,r,t,n){var i=t||Sd,a=0,o="",s=!1,u=!1,c=!1,f,d,v,g;for(t||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,r=r.replace(LK,"")),r=r.replace(PK,""),f=Bn(r);a<=f.length;){switch(d=f[a],i){case Sd:if(d&&Vx.test(d))o+=d.toLowerCase(),i=Nx;else{if(t)return sd;i=cd;continue}break;case Nx:if(d&&(wK.test(d)||d=="+"||d=="-"||d=="."))o+=d.toLowerCase();else if(d==":"){if(t&&(Re(e)!=Ad(Wo,o)||o=="file"&&(Ed(e)||e.port!==null)||e.scheme=="file"&&!e.host))return;if(e.scheme=o,t){Re(e)&&Wo[e.scheme]==e.port&&(e.port=null);return}o="",e.scheme=="file"?i=fd:Re(e)&&n&&n.scheme==e.scheme?i=Dx:Re(e)?i=kx:f[a+1]=="/"?(i=Mx,a++):(e.cannotBeABaseURL=!0,e.path.push(""),i=Fx)}else{if(t)return sd;o="",i=cd,a=0;continue}break;case cd:if(!n||n.cannotBeABaseURL&&d!="#")return sd;if(n.cannotBeABaseURL&&d=="#"){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,i=et;break}i=n.scheme=="file"?fd:dd;continue;case Dx:if(d=="/"&&f[a+1]=="/")i=Ko,a++;else{i=dd;continue}break;case Mx:if(d=="/"){i=Yo;break}else{i=Or;continue}case dd:if(e.scheme=n.scheme,d==or)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if(d=="/"||d=="\\"&&Re(e))i=Ux;else if(d=="?")e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",i=Vt;else if(d=="#")e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",i=et;else{e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),i=Or;continue}break;case Ux:if(Re(e)&&(d=="/"||d=="\\"))i=Ko;else if(d=="/")i=Yo;else{e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,i=Or;continue}break;case kx:if(i=Ko,d!="/"||o.charAt(a+1)!="/")continue;a++;break;case Ko:if(d!="/"&&d!="\\"){i=Yo;continue}break;case Yo:if(d=="@"){s&&(o="%40"+o),s=!0,v=Bn(o);for(var h=0;h<v.length;h++){var m=v[h];if(m==":"&&!c){c=!0;continue}var E=Et(m,yd);c?e.password+=E:e.username+=E}o=""}else if(d==or||d=="/"||d=="?"||d=="#"||d=="\\"&&Re(e)){if(s&&o=="")return AK;a-=Bn(o).length+1,o="",i=bd}else o+=d;break;case bd:case qd:if(t&&e.scheme=="file"){i=vd;continue}else if(d==":"&&!u){if(o=="")return Ht;if(g=ud(e,o),g)return g;if(o="",i=Id,t==qd)return}else if(d==or||d=="/"||d=="?"||d=="#"||d=="\\"&&Re(e)){if(Re(e)&&o=="")return Ht;if(t&&o==""&&(Ed(e)||e.port!==null))return;if(g=ud(e,o),g)return g;if(o="",i=Fn,t)return;continue}else d=="["?u=!0:d=="]"&&(u=!1),o+=d;break;case Id:if(md.test(d))o+=d;else if(d==or||d=="/"||d=="?"||d=="#"||d=="\\"&&Re(e)||t){if(o!=""){var S=parseInt(o,10);if(S>65535)return Ox;e.port=Re(e)&&S===Wo[e.scheme]?null:S,o=""}if(t)return;i=Fn;continue}else return Ox;break;case fd:if(e.scheme="file",d=="/"||d=="\\")i=jx;else if(n&&n.scheme=="file")if(d==or)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if(d=="?")e.host=n.host,e.path=n.path.slice(),e.query="",i=Vt;else if(d=="#")e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",i=et;else{Lx(f.slice(a).join(""))||(e.host=n.host,e.path=n.path.slice(),Px(e)),i=Or;continue}else{i=Or;continue}break;case jx:if(d=="/"||d=="\\"){i=vd;break}n&&n.scheme=="file"&&!Lx(f.slice(a).join(""))&&(Zi(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),i=Or;continue;case vd:if(d==or||d=="/"||d=="\\"||d=="?"||d=="#"){if(!t&&Zi(o))i=Or;else if(o==""){if(e.host="",t)return;i=Fn}else{if(g=ud(e,o),g)return g;if(e.host=="localhost"&&(e.host=""),t)return;o="",i=Fn}continue}else o+=d;break;case Fn:if(Re(e)){if(i=Or,d!="/"&&d!="\\")continue}else if(!t&&d=="?")e.query="",i=Vt;else if(!t&&d=="#")e.fragment="",i=et;else if(d!=or&&(i=Or,d!="/"))continue;break;case Or:if(d==or||d=="/"||d=="\\"&&Re(e)||!t&&(d=="?"||d=="#")){if(kK(o)?(Px(e),d!="/"&&!(d=="\\"&&Re(e))&&e.path.push("")):UK(o)?d!="/"&&!(d=="\\"&&Re(e))&&e.path.push(""):(e.scheme=="file"&&!e.path.length&&Zi(o)&&(e.host&&(e.host=""),o=o.charAt(0)+":"),e.path.push(o)),o="",e.scheme=="file"&&(d==or||d=="?"||d=="#"))for(;e.path.length>1&&e.path[0]==="";)e.path.shift();d=="?"?(e.query="",i=Vt):d=="#"&&(e.fragment="",i=et)}else o+=Et(d,zx);break;case Fx:d=="?"?(e.query="",i=Vt):d=="#"?(e.fragment="",i=et):d!=or&&(e.path[0]+=Et(d,Qo));break;case Vt:!t&&d=="#"?(e.fragment="",i=et):d!=or&&(d=="'"&&Re(e)?e.query+="%27":d=="#"?e.query+="%23":e.query+=Et(d,Qo));break;case et:d!=or&&(e.fragment+=Et(d,Gx));break}a++}},Gt=function(r){var t=yK(this,Gt,"URL"),n=arguments.length>1?arguments[1]:void 0,i=String(r),a=IK(t,{type:"URL"}),o,s;if(n!==void 0){if(n instanceof Gt)o=Ee(n);else if(s=Lr(o={},String(n)),s)throw TypeError(s)}if(s=Lr(a,i,null,o),s)throw TypeError(s);var u=a.searchParams=new qK,c=hd(u);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(u)||null},xd||(t.href=Zo.call(t),t.origin=Kx.call(t),t.protocol=Yx.call(t),t.username=Wx.call(t),t.password=Xx.call(t),t.host=Qx.call(t),t.hostname=Zx.call(t),t.port=Jx.call(t),t.pathname=eA.call(t),t.search=rA.call(t),t.searchParams=tA.call(t),t.hash=nA.call(t))},_d=Gt.prototype,Zo=function(){var e=Ee(this),r=e.scheme,t=e.username,n=e.password,i=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,c=r+":";return i!==null?(c+="//",Ed(e)&&(c+=t+(n?":"+n:"")+"@"),c+=Ji(i),a!==null&&(c+=":"+a)):r=="file"&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",s!==null&&(c+="?"+s),u!==null&&(c+="#"+u),c},Kx=function(){var e=Ee(this),r=e.scheme,t=e.port;if(r=="blob")try{return new URL(r.path[0]).origin}catch(n){return"null"}return r=="file"||!Re(e)?"null":r+"://"+Ji(e.host)+(t!==null?":"+t:"")},Yx=function(){return Ee(this).scheme+":"},Wx=function(){return Ee(this).username},Xx=function(){return Ee(this).password},Qx=function(){var e=Ee(this),r=e.host,t=e.port;return r===null?"":t===null?Ji(r):Ji(r)+":"+t},Zx=function(){var e=Ee(this).host;return e===null?"":Ji(e)},Jx=function(){var e=Ee(this).port;return e===null?"":String(e)},eA=function(){var e=Ee(this),r=e.path;return e.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):""},rA=function(){var e=Ee(this).query;return e?"?"+e:""},tA=function(){return Ee(this).searchParams},nA=function(){var e=Ee(this).fragment;return e?"#"+e:""},sr=function(e,r){return{get:e,set:r,configurable:!0,enumerable:!0}};xd&&mK(_d,{href:sr(Zo,function(e){var r=Ee(this),t=String(e),n=Lr(r,t);if(n)throw TypeError(n);hd(r.searchParams).updateSearchParams(r.query)}),origin:sr(Kx),protocol:sr(Yx,function(e){var r=Ee(this);Lr(r,String(e)+":",Sd)}),username:sr(Wx,function(e){var r=Ee(this),t=Bn(String(e));if(!ld(r)){r.username="";for(var n=0;n<t.length;n++)r.username+=Et(t[n],yd)}}),password:sr(Xx,function(e){var r=Ee(this),t=Bn(String(e));if(!ld(r)){r.password="";for(var n=0;n<t.length;n++)r.password+=Et(t[n],yd)}}),host:sr(Qx,function(e){var r=Ee(this);r.cannotBeABaseURL||Lr(r,String(e),bd)}),hostname:sr(Zx,function(e){var r=Ee(this);r.cannotBeABaseURL||Lr(r,String(e),qd)}),port:sr(Jx,function(e){var r=Ee(this);ld(r)||(e=String(e),e==""?r.port=null:Lr(r,e,Id))}),pathname:sr(eA,function(e){var r=Ee(this);r.cannotBeABaseURL||(r.path=[],Lr(r,e+"",Fn))}),search:sr(rA,function(e){var r=Ee(this);e=String(e),e==""?r.query=null:(e.charAt(0)=="?"&&(e=e.slice(1)),r.query="",Lr(r,e,Vt)),hd(r.searchParams).updateSearchParams(r.query)}),searchParams:sr(tA),hash:sr(nA,function(e){var r=Ee(this);if(e=String(e),e==""){r.fragment=null;return}e.charAt(0)=="#"&&(e=e.slice(1)),r.fragment="",Lr(r,e,et)})});Xo(_d,"toJSON",function(){return Zo.call(this)},{enumerable:!0});Xo(_d,"toString",function(){return Zo.call(this)},{enumerable:!0});Qi&&(pd=Qi.createObjectURL,gd=Qi.revokeObjectURL,pd&&Xo(Gt,"createObjectURL",function(r){return pd.apply(Qi,arguments)}),gd&&Xo(Gt,"revokeObjectURL",function(r){return gd.apply(Qi,arguments)}));var pd,gd;bK(Gt,"URL");pK({global:!0,forced:!gK,sham:!xd},{URL:Gt})});var Td=l(()=>{"use strict";var jK=p();jK({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})});var iA=l(()=>{Cd();Td();zo()});var aA=l(()=>{"use strict";var FK=te(),BK=dr(),$K=de(),VK=ie(),HK=le().f;FK&&!("lastIndex"in[])&&(HK(Array.prototype,"lastIndex",{configurable:!0,get:function(){var r=$K(this),t=VK(r.length);return t==0?0:t-1}}),BK("lastIndex"))});var uA=l(()=>{"use strict";var GK=te(),zK=dr(),oA=de(),sA=ie(),KK=le().f;GK&&!("lastItem"in[])&&(KK(Array.prototype,"lastItem",{configurable:!0,get:function(){var r=oA(this),t=sA(r.length);return t==0?void 0:r[t-1]},set:function(r){var t=oA(this),n=sA(t.length);return t[n==0?0:n-1]=r}}),zK("lastItem"))});var lA=l(()=>{aA();uA()});var cA=l(()=>{"use strict";var YK=p(),WK=Y(),Jo=U();YK({target:"Map",stat:!0},{groupBy:function(r,t){var n=new this;Jo(t);var i=Jo(n.has),a=Jo(n.get),o=Jo(n.set);return WK(r,function(s){var u=t(s);i.call(n,u)?a.call(n,u).push(s):o.call(n,u,[s])}),n}})});var fA=l(()=>{"use strict";var XK=p(),QK=Y(),dA=U();XK({target:"Map",stat:!0},{keyBy:function(r,t){var n=new this;dA(t);var i=dA(n.set);return QK(r,function(a){i.call(n,t(a),a)}),n}})});var ea=l((xge,vA)=>{"use strict";var ZK=w(),JK=U();vA.exports=function(){for(var e=ZK(this),r=JK(e.delete),t=!0,n,i=0,a=arguments.length;i<a;i++)n=r.call(e,arguments[i]),t=t&&n;return!!t}});var pA=l(()=>{"use strict";var eY=p(),rY=j(),tY=ea();eY({target:"Map",proto:!0,real:!0,forced:rY},{deleteAll:function(){return tY.apply(this,arguments)}})});var mr=l((_ge,gA)=>{var nY=j(),iY=Un();gA.exports=nY?iY:function(e){return Map.prototype.entries.call(e)}});var mA=l(()=>{"use strict";var aY=p(),oY=j(),sY=w(),uY=be(),lY=mr(),hA=Y();aY({target:"Map",proto:!0,real:!0,forced:oY},{every:function(r){var t=sY(this),n=lY(t),i=uY(r,arguments.length>1?arguments[1]:void 0,3);return!hA(n,function(a,o){if(!i(o,a,t))return hA.stop()},void 0,!0,!0).stopped}})});var yA=l(()=>{"use strict";var cY=p(),dY=j(),fY=ce(),vY=w(),pY=U(),gY=be(),hY=_e(),mY=mr(),yY=Y();cY({target:"Map",proto:!0,real:!0,forced:dY},{filter:function(r){var t=vY(this),n=mY(t),i=gY(r,arguments.length>1?arguments[1]:void 0,3),a=new(hY(t,fY("Map"))),o=pY(a.set);return yY(n,function(s,u){i(u,s,t)&&o.call(a,s,u)},void 0,!0,!0),a}})});var SA=l(()=>{"use strict";var EY=p(),SY=j(),bY=w(),qY=be(),IY=mr(),EA=Y();EY({target:"Map",proto:!0,real:!0,forced:SY},{find:function(r){var t=bY(this),n=IY(t),i=qY(r,arguments.length>1?arguments[1]:void 0,3);return EA(n,function(a,o){if(i(o,a,t))return EA.stop(o)},void 0,!0,!0).result}})});var qA=l(()=>{"use strict";var xY=p(),AY=j(),wY=w(),_Y=be(),CY=mr(),bA=Y();xY({target:"Map",proto:!0,real:!0,forced:AY},{findKey:function(r){var t=wY(this),n=CY(t),i=_Y(r,arguments.length>1?arguments[1]:void 0,3);return bA(n,function(a,o){if(i(o,a,t))return bA.stop(a)},void 0,!0,!0).result}})});var xA=l((Mge,IA)=>{IA.exports=function(e,r){return e===r||e!=e&&r!=r}});var wA=l(()=>{"use strict";var TY=p(),RY=j(),OY=w(),LY=mr(),PY=xA(),AA=Y();TY({target:"Map",proto:!0,real:!0,forced:RY},{includes:function(r){return AA(LY(OY(this)),function(t,n){if(PY(n,r))return AA.stop()},void 0,!0,!0).stopped}})});var CA=l(()=>{"use strict";var NY=p(),DY=j(),MY=w(),UY=mr(),_A=Y();NY({target:"Map",proto:!0,real:!0,forced:DY},{keyOf:function(r){return _A(UY(MY(this)),function(t,n){if(n===r)return _A.stop(t)},void 0,!0,!0).result}})});var TA=l(()=>{"use strict";var kY=p(),jY=j(),FY=ce(),BY=w(),$Y=U(),VY=be(),HY=_e(),GY=mr(),zY=Y();kY({target:"Map",proto:!0,real:!0,forced:jY},{mapKeys:function(r){var t=BY(this),n=GY(t),i=VY(r,arguments.length>1?arguments[1]:void 0,3),a=new(HY(t,FY("Map"))),o=$Y(a.set);return zY(n,function(s,u){o.call(a,i(u,s,t),u)},void 0,!0,!0),a}})});var RA=l(()=>{"use strict";var KY=p(),YY=j(),WY=ce(),XY=w(),QY=U(),ZY=be(),JY=_e(),eW=mr(),rW=Y();KY({target:"Map",proto:!0,real:!0,forced:YY},{mapValues:function(r){var t=XY(this),n=eW(t),i=ZY(r,arguments.length>1?arguments[1]:void 0,3),a=new(JY(t,WY("Map"))),o=QY(a.set);return rW(n,function(s,u){o.call(a,s,i(u,s,t))},void 0,!0,!0),a}})});var OA=l(()=>{"use strict";var tW=p(),nW=j(),iW=w(),aW=U(),oW=Y();tW({target:"Map",proto:!0,real:!0,forced:nW},{merge:function(r){for(var t=iW(this),n=aW(t.set),i=0;i<arguments.length;)oW(arguments[i++],n,t,!0);return t}})});var LA=l(()=>{"use strict";var sW=p(),uW=j(),lW=w(),cW=U(),dW=mr(),fW=Y();sW({target:"Map",proto:!0,real:!0,forced:uW},{reduce:function(r){var t=lW(this),n=dW(t),i=arguments.length<2,a=i?void 0:arguments[1];if(cW(r),fW(n,function(o,s){i?(i=!1,a=s):a=r(a,s,o,t)},void 0,!0,!0),i)throw TypeError("Reduce of empty map with no initial value");return a}})});var NA=l(()=>{"use strict";var vW=p(),pW=j(),gW=w(),hW=be(),mW=mr(),PA=Y();vW({target:"Map",proto:!0,real:!0,forced:pW},{some:function(r){var t=gW(this),n=mW(t),i=hW(r,arguments.length>1?arguments[1]:void 0,3);return PA(n,function(a,o){if(i(o,a,t))return PA.stop()},void 0,!0,!0).stopped}})});var MA=l(()=>{"use strict";var yW=p(),EW=j(),SW=w(),DA=U();yW({target:"Map",proto:!0,real:!0,forced:EW},{update:function(r,t){var n=SW(this),i=arguments.length;DA(t);var a=n.has(r);if(!a&&i<3)throw TypeError("Updating absent value");var o=a?n.get(r):DA(i>2?arguments[2]:void 0)(r,n);return n.set(r,t(o,r,n)),n}})});var Rd=l((Jge,UA)=>{"use strict";var bW=w(),qW=U();UA.exports=function(){for(var e=bW(this),r=qW(e.add),t=0,n=arguments.length;t<n;t++)r.call(e,arguments[t]);return e}});var kA=l(()=>{"use strict";var IW=p(),xW=j(),AW=Rd();IW({target:"Set",proto:!0,real:!0,forced:xW},{addAll:function(){return AW.apply(this,arguments)}})});var jA=l(()=>{"use strict";var wW=p(),_W=j(),CW=ea();wW({target:"Set",proto:!0,real:!0,forced:_W},{deleteAll:function(){return CW.apply(this,arguments)}})});var St=l((ihe,FA)=>{var TW=j(),RW=Un();FA.exports=TW?RW:function(e){return Set.prototype.values.call(e)}});var $A=l(()=>{"use strict";var OW=p(),LW=j(),PW=w(),NW=be(),DW=St(),BA=Y();OW({target:"Set",proto:!0,real:!0,forced:LW},{every:function(r){var t=PW(this),n=DW(t),i=NW(r,arguments.length>1?arguments[1]:void 0,3);return!BA(n,function(a){if(!i(a,a,t))return BA.stop()},void 0,!1,!0).stopped}})});var VA=l(()=>{"use strict";var MW=p(),UW=j(),kW=ce(),jW=w(),FW=U(),BW=be(),$W=_e(),VW=St(),HW=Y();MW({target:"Set",proto:!0,real:!0,forced:UW},{filter:function(r){var t=jW(this),n=VW(t),i=BW(r,arguments.length>1?arguments[1]:void 0,3),a=new($W(t,kW("Set"))),o=FW(a.add);return HW(n,function(s){i(s,s,t)&&o.call(a,s)},void 0,!1,!0),a}})});var GA=l(()=>{"use strict";var GW=p(),zW=j(),KW=w(),YW=be(),WW=St(),HA=Y();GW({target:"Set",proto:!0,real:!0,forced:zW},{find:function(r){var t=KW(this),n=WW(t),i=YW(r,arguments.length>1?arguments[1]:void 0,3);return HA(n,function(a){if(i(a,a,t))return HA.stop(a)},void 0,!1,!0).result}})});var zA=l(()=>{"use strict";var XW=p(),QW=j(),ZW=w(),JW=St(),eX=Y();XW({target:"Set",proto:!0,real:!0,forced:QW},{join:function(r){var t=ZW(this),n=JW(t),i=r===void 0?",":String(r),a=[];return eX(n,a.push,a,!1,!0),a.join(i)}})});var KA=l(()=>{"use strict";var rX=p(),tX=j(),nX=ce(),iX=w(),aX=U(),oX=be(),sX=_e(),uX=St(),lX=Y();rX({target:"Set",proto:!0,real:!0,forced:tX},{map:function(r){var t=iX(this),n=uX(t),i=oX(r,arguments.length>1?arguments[1]:void 0,3),a=new(sX(t,nX("Set"))),o=aX(a.add);return lX(n,function(s){o.call(a,i(s,s,t))},void 0,!1,!0),a}})});var YA=l(()=>{"use strict";var cX=p(),dX=j(),fX=w(),vX=U(),pX=St(),gX=Y();cX({target:"Set",proto:!0,real:!0,forced:dX},{reduce:function(r){var t=fX(this),n=pX(t),i=arguments.length<2,a=i?void 0:arguments[1];if(vX(r),gX(n,function(o){i?(i=!1,a=o):a=r(a,o,o,t)},void 0,!1,!0),i)throw TypeError("Reduce of empty set with no initial value");return a}})});var XA=l(()=>{"use strict";var hX=p(),mX=j(),yX=w(),EX=be(),SX=St(),WA=Y();hX({target:"Set",proto:!0,real:!0,forced:mX},{some:function(r){var t=yX(this),n=SX(t),i=EX(r,arguments.length>1?arguments[1]:void 0,3);return WA(n,function(a){if(i(a,a,t))return WA.stop()},void 0,!1,!0).stopped}})});var QA=l(()=>{"use strict";var bX=p(),qX=j(),IX=ea();bX({target:"WeakMap",proto:!0,real:!0,forced:qX},{deleteAll:function(){return IX.apply(this,arguments)}})});var ZA=l(()=>{"use strict";var xX=p(),AX=j(),wX=Rd();xX({target:"WeakSet",proto:!0,real:!0,forced:AX},{addAll:function(){return wX.apply(this,arguments)}})});var JA=l(()=>{"use strict";var _X=p(),CX=j(),TX=ea();_X({target:"WeakSet",proto:!0,real:!0,forced:CX},{deleteAll:function(){return TX.apply(this,arguments)}})});var ew=l(()=>{cA();fA();pA();mA();yA();SA();qA();wA();CA();TA();RA();OA();LA();NA();MA();kA();jA();$A();VA();GA();zA();KA();YA();XA();QA();ZA();JA()});var ra=l((_he,nw)=>{"use strict";var rw=U(),RX=be(),tw=Y();nw.exports=function(r){var t=arguments.length,n=t>1?arguments[1]:void 0,i,a,o,s;return rw(this),i=n!==void 0,i&&rw(n),r==null?new this:(a=[],i?(o=0,s=RX(n,t>2?arguments[2]:void 0,2),tw(r,function(u){a.push(s(u,o++))})):tw(r,a.push,a),new this(a))}});var iw=l(()=>{var OX=p(),LX=ra();OX({target:"Map",stat:!0},{from:LX})});var ta=l((Rhe,aw)=>{"use strict";aw.exports=function(){for(var r=arguments.length,t=new Array(r);r--;)t[r]=arguments[r];return new this(t)}});var ow=l(()=>{var PX=p(),NX=ta();PX({target:"Map",stat:!0},{of:NX})});var sw=l(()=>{var DX=p(),MX=ra();DX({target:"Set",stat:!0},{from:MX})});var uw=l(()=>{var UX=p(),kX=ta();UX({target:"Set",stat:!0},{of:kX})});var lw=l(()=>{var jX=p(),FX=ra();jX({target:"WeakMap",stat:!0},{from:FX})});var cw=l(()=>{var BX=p(),$X=ta();BX({target:"WeakMap",stat:!0},{of:$X})});var dw=l(()=>{var VX=p(),HX=ra();VX({target:"WeakSet",stat:!0},{from:HX})});var fw=l(()=>{var GX=p(),zX=ta();GX({target:"WeakSet",stat:!0},{of:zX})});var vw=l(()=>{iw();ow();sw();uw();lw();cw();dw();fw()});var Od=l((Khe,hw)=>{var KX=bo(),YX=_o(),WX=Ve(),pw=ee(),es=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=WX(null)};es.prototype.get=function(e,r){return this[e]||(this[e]=r())};es.prototype.next=function(e,r,t){var n=t?this.objectsByIndex[e]||(this.objectsByIndex[e]=new YX):this.primitives||(this.primitives=new KX),i=n.get(r);return i||n.set(r,i=new es),i};var gw=new es;hw.exports=function(){var e=gw,r=arguments.length,t,n;for(t=0;t<r;t++)pw(n=arguments[t])&&(e=e.next(t,n,!0));if(this===Object&&e===gw)throw TypeError("Composite keys must contain a non-primitive component");for(t=0;t<r;t++)pw(n=arguments[t])||(e=e.next(t,n,!1));return e}});var yw=l(()=>{var XX=p(),QX=Od(),ZX=ce(),mw=Ve(),JX=function(){var e=ZX("Object","freeze");return e?e(mw(null)):mw(null)};XX({global:!0},{compositeKey:function(){return QX.apply(Object,arguments).get("object",JX)}})});var Sw=l(()=>{var eQ=p(),rQ=Od(),Ew=ce();eQ({global:!0},{compositeSymbol:function(){return arguments.length===1&&typeof arguments[0]=="string"?Ew("Symbol").for(arguments[0]):rQ.apply(null,arguments).get("symbol",Ew("Symbol"))}})});var bw=l(()=>{yw();Sw()});var qw=l(()=>{var tQ=p(),nQ=Math.min,iQ=Math.max;tQ({target:"Math",stat:!0},{clamp:function(r,t,n){return nQ(n,iQ(t,r))}})});var Iw=l(()=>{var aQ=p();aQ({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})});var xw=l(()=>{var oQ=p(),sQ=180/Math.PI;oQ({target:"Math",stat:!0},{degrees:function(r){return r*sQ}})});var Ld=l((ome,Aw)=>{Aw.exports=Math.scale||function(r,t,n,i,a){return arguments.length===0||r!=r||t!=t||n!=n||i!=i||a!=a?NaN:r===1/0||r===-1/0?r:(r-t)*(a-i)/(n-t)+i}});var ww=l(()=>{var uQ=p(),lQ=Ld(),cQ=Al();uQ({target:"Math",stat:!0},{fscale:function(r,t,n,i,a){return cQ(lQ(r,t,n,i,a))}})});var _w=l(()=>{var dQ=p();dQ({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})});var Cw=l(()=>{var fQ=p(),vQ=Math.PI/180;fQ({target:"Math",stat:!0},{radians:function(r){return r*vQ}})});var Tw=l(()=>{var pQ=p(),gQ=Ld();pQ({target:"Math",stat:!0},{scale:gQ})});var Rw=l(()=>{qw();Iw();xw();ww();_w();Cw();Tw()});var Ow=l(()=>{var hQ=p();hQ({target:"Math",stat:!0},{signbit:function(r){return(r=+r)==r&&r==0?1/r==-1/0:r<0}})});var Lw=l(()=>{Ow()});var Pw=l(()=>{"use strict";var mQ=p(),yQ=Ge(),EQ=so(),rs="Invalid number representation",SQ="Invalid radix",bQ=/^[\da-z]+$/;mQ({target:"Number",stat:!0},{fromString:function(r,t){var n=1,i,a;if(typeof r!="string")throw TypeError(rs);if(!r.length||r.charAt(0)=="-"&&(n=-1,r=r.slice(1),!r.length))throw SyntaxError(rs);if(i=t===void 0?10:yQ(t),i<2||i>36)throw RangeError(SQ);if(!bQ.test(r)||(a=EQ(r,i)).toString(i)!==r)throw SyntaxError(rs);return n*a}})});var Nw=l(()=>{Pw()});var ts=l((Ame,Uw)=>{"use strict";var Dw=qe(),qQ=Dt(),IQ=pe(),xQ=Lt(),AQ=de(),Mw="Object Iterator",wQ=Dw.set,_Q=Dw.getterFor(Mw);Uw.exports=qQ(function(r,t){var n=AQ(r);wQ(this,{type:Mw,mode:t,object:n,keys:xQ(n),index:0})},"Object",function(){for(var r=_Q(this),t=r.keys;;){if(t===null||r.index>=t.length)return r.object=r.keys=null,{value:void 0,done:!0};var n=t[r.index++],i=r.object;if(!!IQ(i,n)){switch(r.mode){case"keys":return{value:n,done:!1};case"values":return{value:i[n],done:!1}}return{value:[n,i[n]],done:!1}}}})});var kw=l(()=>{"use strict";var CQ=p(),TQ=ts();CQ({target:"Object",stat:!0},{iterateEntries:function(r){return new TQ(r,"entries")}})});var jw=l(()=>{"use strict";var RQ=p(),OQ=ts();RQ({target:"Object",stat:!0},{iterateKeys:function(r){return new OQ(r,"keys")}})});var Fw=l(()=>{"use strict";var LQ=p(),PQ=ts();LQ({target:"Object",stat:!0},{iterateValues:function(r){return new PQ(r,"values")}})});var Bw=l(()=>{kw();jw();Fw()});var zw=l(()=>{"use strict";var NQ=p(),ia=te(),DQ=vt(),Dd=U(),Pd=w(),MQ=ee(),UQ=ar(),Vw=le().f,kQ=me(),is=wr(),jQ=Un(),$w=Y(),$n=Gl(),FQ=Z(),Hw=qe(),Gw=FQ("observable"),yr=Hw.get,Md=Hw.set,na=function(e){return e==null?void 0:Dd(e)},ns=function(e){var r=e.cleanup;if(r){e.cleanup=void 0;try{r()}catch(t){$n(t)}}},bt=function(e){return e.observer===void 0},Nd=function(e,r){if(!ia){e.closed=!0;var t=r.subscriptionObserver;t&&(t.closed=!0)}r.observer=void 0},Ud=function(e,r){var t=Md(this,{cleanup:void 0,observer:Pd(e),subscriptionObserver:void 0}),n;ia||(this.closed=!1);try{(n=na(e.start))&&n.call(e,this)}catch(s){$n(s)}if(!bt(t)){var i=t.subscriptionObserver=new kd(this);try{var a=r(i),o=a;a!=null&&(t.cleanup=typeof a.unsubscribe=="function"?function(){o.unsubscribe()}:Dd(a))}catch(s){i.error(s);return}bt(t)&&ns(t)}};Ud.prototype=is({},{unsubscribe:function(){var r=yr(this);bt(r)||(Nd(this,r),ns(r))}});ia&&Vw(Ud.prototype,"closed",{configurable:!0,get:function(){return bt(yr(this))}});var kd=function(e){Md(this,{subscription:e}),ia||(this.closed=!1)};kd.prototype=is({},{next:function(r){var t=yr(yr(this).subscription);if(!bt(t)){var n=t.observer;try{var i=na(n.next);i&&i.call(n,r)}catch(a){$n(a)}}},error:function(r){var t=yr(this).subscription,n=yr(t);if(!bt(n)){var i=n.observer;Nd(t,n);try{var a=na(i.error);a?a.call(i,r):$n(r)}catch(o){$n(o)}ns(n)}},complete:function(){var r=yr(this).subscription,t=yr(r);if(!bt(t)){var n=t.observer;Nd(r,t);try{var i=na(n.complete);i&&i.call(n)}catch(a){$n(a)}ns(t)}}});ia&&Vw(kd.prototype,"closed",{configurable:!0,get:function(){return bt(yr(yr(this).subscription))}});var zt=function(r){UQ(this,zt,"Observable"),Md(this,{subscriber:Dd(r)})};is(zt.prototype,{subscribe:function(r){var t=arguments.length;return new Ud(typeof r=="function"?{next:r,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:MQ(r)?r:{},yr(this).subscriber)}});is(zt,{from:function(r){var t=typeof this=="function"?this:zt,n=na(Pd(r)[Gw]);if(n){var i=Pd(n.call(r));return i.constructor===t?i:new t(function(o){return i.subscribe(o)})}var a=jQ(r);return new t(function(o){$w(a,function(s){if(o.next(s),o.closed)return $w.stop()},void 0,!1,!0),o.complete()})},of:function(){for(var r=typeof this=="function"?this:zt,t=arguments.length,n=new Array(t),i=0;i<t;)n[i]=arguments[i++];return new r(function(a){for(var o=0;o<t;o++)if(a.next(n[o]),a.closed)return;a.complete()})}});kQ(zt.prototype,Gw,function(){return this});NQ({global:!0},{Observable:zt});DQ("Observable")});var Kw=l(()=>{var BQ=Ae();BQ("observable")});var Yw=l(()=>{zw();Kw()});var Ww=l(()=>{var $Q=Ae();$Q("patternMatch")});var Xw=l(()=>{Ww()});var Qw=l(()=>{"use strict";var VQ=p(),HQ=wn(),GQ=Pi();VQ({target:"Promise",stat:!0},{try:function(e){var r=HQ.f(this),t=GQ(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}})});var Zw=l(()=>{Qw()});var t_=l(()=>{var zQ=p(),KQ=w(),YQ=hl(),WQ=Dt(),Jw=qe(),e_="Seeded Random",r_=e_+" Generator",XQ=Jw.set,QQ=Jw.getterFor(r_),ZQ='Math.seededPRNG() argument should have a "seed" field with a finite value.',JQ=WQ(function(r){XQ(this,{type:r_,seed:r%2147483647})},e_,function(){var r=QQ(this),t=r.seed=(r.seed*1103515245+12345)%2147483647;return{value:(t&1073741823)/1073741823,done:!1}});zQ({target:"Math",stat:!0,forced:!0},{seededPRNG:function(r){var t=KQ(r).seed;if(!YQ(t))throw TypeError(ZQ);return new JQ(t)}})});var n_=l(()=>{t_()});var s_=l(()=>{"use strict";var eZ=p(),rZ=Dt(),tZ=Ce(),i_=qe(),a_=Mt(),nZ=a_.codeAt,iZ=a_.charAt,o_="String Iterator",aZ=i_.set,oZ=i_.getterFor(o_),sZ=rZ(function(r){aZ(this,{type:o_,string:r,index:0})},"String",function(){var r=oZ(this),t=r.string,n=r.index,i;return n>=t.length?{value:void 0,done:!0}:(i=iZ(t,n),r.index+=i.length,{value:{codePoint:nZ(i,0),position:n},done:!1})});eZ({target:"String",proto:!0},{codePoints:function(){return new sZ(String(tZ(this)))}})});var u_=l(()=>{s_()});var d_=l(()=>{var uZ=p(),lZ=Hr(),l_=Object.isFrozen,c_=function(e,r){if(!l_||!lZ(e)||!l_(e))return!1;for(var t=0,n=e.length,i;t<n;)if(i=e[t++],!(typeof i=="string"||r&&typeof i>"u"))return!1;return n!==0};uZ({target:"Array",stat:!0},{isTemplateObject:function(r){if(!c_(r,!0))return!1;var t=r.raw;return!(t.length!==r.length||!c_(t,!1))}})});var f_=l(()=>{d_()});var S_=l((oye,E_)=>{var m_=K(),y_=xa(),as=ke(),cZ=pe(),dZ=me(),fZ=Z(),vZ=j(),v_="USE_FUNCTION_CONSTRUCTOR",p_=fZ("asyncIterator"),g_=m_.AsyncIterator,h_=y_.AsyncIteratorPrototype,qt,jd;if(!vZ){if(h_)qt=h_;else if(typeof g_=="function")qt=g_.prototype;else if(y_[v_]||m_[v_])try{jd=as(as(as(Function("return async function*(){}()")()))),as(jd)===Object.prototype&&(qt=jd)}catch(e){}}qt||(qt={});cZ(qt,p_)||dZ(qt,p_,function(){return this});E_.exports=qt});var x_=l(()=>{"use strict";var pZ=p(),gZ=ar(),q_=me(),I_=pe(),hZ=Z(),Vn=S_(),mZ=j(),b_=hZ("toStringTag"),os=function(){gZ(this,os)};os.prototype=Vn;I_(Vn,b_)||q_(Vn,b_,"AsyncIterator");(!I_(Vn,"constructor")||Vn.constructor===Object)&&q_(Vn,"constructor",os);pZ({global:!0,forced:mZ},{AsyncIterator:os})});var It=l((lye,__)=>{"use strict";var yZ=lr(),EZ=U(),A_=w(),SZ=Ve(),bZ=me(),qZ=wr(),IZ=Z(),w_=qe(),xZ=ce(),Hn=xZ("Promise"),AZ=w_.set,Fd=w_.get,wZ=IZ("toStringTag"),_Z=function(e){var r=Fd(this).iterator,t=r.return;return t===void 0?Hn.resolve({done:!0,value:e}):A_(t.call(r,e))},CZ=function(e){var r=Fd(this).iterator,t=r.throw;return t===void 0?Hn.reject(e):t.call(r,e)};__.exports=function(e,r){var t=function(i){i.next=EZ(i.iterator.next),i.done=!1,AZ(this,i)};return t.prototype=qZ(SZ(yZ.AsyncIterator.prototype),{next:function(i){var a=Fd(this);if(a.done)return Hn.resolve({done:!0,value:void 0});try{return Hn.resolve(A_(e.call(a,i,Hn)))}catch(o){return Hn.reject(o)}},return:_Z,throw:CZ}),r||bZ(t.prototype,wZ,"Generator"),t}});var C_=l(()=>{"use strict";var TZ=p(),Bd=w(),RZ=It(),OZ=RZ(function(e,r){var t=this,n=t.iterator;return r.resolve(Bd(t.next.call(n,e))).then(function(i){return Bd(i).done?(t.done=!0,{done:!0,value:void 0}):{done:!1,value:[t.index++,i.value]}})});TZ({target:"AsyncIterator",proto:!0,real:!0},{asIndexedPairs:function(){return new OZ({iterator:Bd(this),index:0})}})});var T_=l(()=>{"use strict";var LZ=p(),$d=w(),PZ=Nn(),NZ=It(),DZ=NZ(function(e,r){var t=this;return new r(function(n,i){var a=function(){try{r.resolve($d(t.next.call(t.iterator,t.remaining?void 0:e))).then(function(o){try{$d(o).done?(t.done=!0,n({done:!0,value:void 0})):t.remaining?(t.remaining--,a()):n({done:!1,value:o.value})}catch(s){i(s)}},i)}catch(o){i(o)}};a()})});LZ({target:"AsyncIterator",proto:!0,real:!0},{drop:function(r){return new DZ({iterator:$d(this),remaining:PZ(r)})}})});var Gn=l((pye,O_)=>{"use strict";var R_=U(),Vd=w(),MZ=ce(),Hd=MZ("Promise"),UZ=[].push,aa=function(e){var r=e==0,t=e==1,n=e==2,i=e==3;return function(a,o){Vd(a);var s=R_(a.next),u=r?[]:void 0;return r||R_(o),new Hd(function(c,f){var d=function(){try{Hd.resolve(Vd(s.call(a))).then(function(v){try{if(Vd(v).done)c(r?u:i?!1:n||void 0);else{var g=v.value;r?(UZ.call(u,g),d()):Hd.resolve(o(g)).then(function(h){t?d():n?h?d():c(!1):h?c(i||g):d()},f)}}catch(h){f(h)}},f)}catch(v){f(v)}};d()})}};O_.exports={toArray:aa(0),forEach:aa(1),every:aa(2),some:aa(3),find:aa(4)}});var L_=l(()=>{"use strict";var kZ=p(),jZ=Gn().every;kZ({target:"AsyncIterator",proto:!0,real:!0},{every:function(r){return jZ(this,r)}})});var P_=l(()=>{"use strict";var FZ=p(),BZ=U(),Gd=w(),$Z=It(),VZ=$Z(function(e,r){var t=this,n=t.filterer;return new r(function(i,a){var o=function(){try{r.resolve(Gd(t.next.call(t.iterator,e))).then(function(s){try{if(Gd(s).done)t.done=!0,i({done:!0,value:void 0});else{var u=s.value;r.resolve(n(u)).then(function(c){c?i({done:!1,value:u}):o()},a)}}catch(c){a(c)}},a)}catch(s){a(s)}};o()})});FZ({target:"AsyncIterator",proto:!0,real:!0},{filter:function(r){return new VZ({iterator:Gd(this),filterer:BZ(r)})}})});var N_=l(()=>{"use strict";var HZ=p(),GZ=Gn().find;HZ({target:"AsyncIterator",proto:!0,real:!0},{find:function(r){return GZ(this,r)}})});var zd=l((bye,D_)=>{var zZ=Yr(),KZ=Z(),YZ=KZ("asyncIterator");D_.exports=function(e){var r=e[YZ];return r===void 0?zZ(e):r}});var U_=l(()=>{"use strict";var WZ=p(),M_=U(),zn=w(),XZ=It(),QZ=zd(),ZZ=XZ(function(e,r){var t=this,n=t.mapper,i,a;return new r(function(o,s){var u=function(){try{r.resolve(zn(t.next.call(t.iterator,e))).then(function(f){try{zn(f).done?(t.done=!0,o({done:!0,value:void 0})):r.resolve(n(f.value)).then(function(d){try{if(a=QZ(d),a!==void 0)return t.innerIterator=i=zn(a.call(d)),t.innerNext=M_(i.next),c();s(TypeError(".flatMap callback should return an iterable object"))}catch(v){s(v)}},s)}catch(d){s(d)}},s)}catch(f){s(f)}},c=function(){if(i=t.innerIterator)try{r.resolve(zn(t.innerNext.call(i))).then(function(f){try{zn(f).done?(t.innerIterator=t.innerNext=null,u()):o({done:!1,value:f.value})}catch(d){s(d)}},s)}catch(f){s(f)}else u()};c()})});WZ({target:"AsyncIterator",proto:!0,real:!0},{flatMap:function(r){return new ZZ({iterator:zn(this),mapper:M_(r),innerIterator:null,innerNext:null})}})});var k_=l(()=>{"use strict";var JZ=p(),eJ=Gn().forEach;JZ({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(r){return eJ(this,r)}})});var j_=l(()=>{var rJ=p(),tJ=lr(),nJ=U(),iJ=w(),aJ=de(),oJ=It(),sJ=zd(),uJ=tJ.AsyncIterator,lJ=oJ(function(e){return iJ(this.next.call(this.iterator,e))},!0);rJ({target:"AsyncIterator",stat:!0},{from:function(r){var t=aJ(r),n=sJ(t),i;if(n!=null){if(i=nJ(n).call(t),i instanceof uJ)return i}else i=t;return new lJ({iterator:i})}})});var F_=l(()=>{"use strict";var cJ=p(),dJ=U(),Kd=w(),fJ=It(),vJ=fJ(function(e,r){var t=this,n=t.mapper;return r.resolve(Kd(t.next.call(t.iterator,e))).then(function(i){return Kd(i).done?(t.done=!0,{done:!0,value:void 0}):r.resolve(n(i.value)).then(function(a){return{done:!1,value:a}})})});cJ({target:"AsyncIterator",proto:!0,real:!0},{map:function(r){return new vJ({iterator:Kd(this),mapper:dJ(r)})}})});var $_=l(()=>{"use strict";var pJ=p(),B_=U(),Yd=w(),gJ=ce(),Wd=gJ("Promise");pJ({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(r){var t=Yd(this),n=B_(t.next),i=arguments.length<2,a=i?void 0:arguments[1];return B_(r),new Wd(function(o,s){var u=function(){try{Wd.resolve(Yd(n.call(t))).then(function(c){try{if(Yd(c).done)i?s(TypeError("Reduce of empty iterator with no initial value")):o(a);else{var f=c.value;i?(i=!1,a=f,u()):Wd.resolve(r(a,f)).then(function(d){a=d,u()},s)}}catch(d){s(d)}},s)}catch(c){s(c)}};u()})}})});var V_=l(()=>{"use strict";var hJ=p(),mJ=Gn().some;hJ({target:"AsyncIterator",proto:!0,real:!0},{some:function(r){return mJ(this,r)}})});var H_=l(()=>{"use strict";var yJ=p(),EJ=w(),SJ=Nn(),bJ=It(),qJ=bJ(function(e){return this.remaining--?this.next.call(this.iterator,e):(this.done=!0,{done:!0,value:void 0})});yJ({target:"AsyncIterator",proto:!0,real:!0},{take:function(r){return new qJ({iterator:EJ(this),remaining:SJ(r)})}})});var G_=l(()=>{"use strict";var IJ=p(),xJ=Gn().toArray;IJ({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return xJ(this)}})});var Q_=l(()=>{"use strict";var AJ=p(),wJ=K(),_J=ar(),Qd=me(),CJ=N(),K_=pe(),Y_=Z(),rt=Ka().IteratorPrototype,W_=j(),TJ=Y_("iterator"),z_=Y_("toStringTag"),Xd=wJ.Iterator,X_=W_||typeof Xd!="function"||Xd.prototype!==rt||!CJ(function(){Xd({})}),ss=function(){_J(this,ss)};W_&&(rt={},Qd(rt,TJ,function(){return this}));K_(rt,z_)||Qd(rt,z_,"Iterator");(X_||!K_(rt,"constructor")||rt.constructor===Object)&&Qd(rt,"constructor",ss);ss.prototype=rt;AJ({global:!0,forced:X_},{Iterator:ss})});var xt=l((Fye,J_)=>{"use strict";var RJ=lr(),OJ=U(),LJ=w(),PJ=Ve(),NJ=me(),DJ=wr(),MJ=Z(),Z_=qe(),UJ=Z_.set,Zd=Z_.get,kJ=MJ("toStringTag"),jJ=function(e){var r=Zd(this).iterator,t=r.return;return t===void 0?{done:!0,value:e}:LJ(t.call(r,e))},FJ=function(e){var r=Zd(this).iterator,t=r.throw;if(t===void 0)throw e;return t.call(r,e)};J_.exports=function(e,r){var t=function(i){i.next=OJ(i.iterator.next),i.done=!1,UJ(this,i)};return t.prototype=DJ(PJ(RJ.Iterator.prototype),{next:function(){var i=Zd(this),a=i.done?void 0:e.apply(i,arguments);return{done:i.done,value:a}},return:jJ,throw:FJ}),r||NJ(t.prototype,kJ,"Generator"),t}});var rC=l(()=>{"use strict";var BJ=p(),eC=w(),$J=xt(),VJ=$J(function(e){var r=eC(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return[this.index++,r.value]});BJ({target:"Iterator",proto:!0,real:!0},{asIndexedPairs:function(){return new VJ({iterator:eC(this),index:0})}})});var tC=l(()=>{"use strict";var HJ=p(),Jd=w(),GJ=Nn(),zJ=xt(),KJ=zJ(function(e){for(var r=this.iterator,t=this.next,n,i;this.remaining;)if(this.remaining--,n=Jd(t.call(r)),i=this.done=!!n.done,i)return;if(n=Jd(t.call(r,e)),i=this.done=!!n.done,!i)return n.value});HJ({target:"Iterator",proto:!0,real:!0},{drop:function(r){return new KJ({iterator:Jd(this),remaining:GJ(r)})}})});var iC=l(()=>{"use strict";var YJ=p(),nC=Y(),WJ=U(),XJ=w();YJ({target:"Iterator",proto:!0,real:!0},{every:function(r){return XJ(this),WJ(r),!nC(this,function(t){if(!r(t))return nC.stop()},void 0,!1,!0).stopped}})});var oC=l(()=>{"use strict";var QJ=p(),ZJ=U(),aC=w(),JJ=xt(),eee=yn(),ree=JJ(function(e){for(var r=this.iterator,t=this.filterer,n=this.next,i,a,o;;){if(i=aC(n.call(r,e)),a=this.done=!!i.done,a)return;if(o=i.value,eee(r,t,o))return o}});QJ({target:"Iterator",proto:!0,real:!0},{filter:function(r){return new ree({iterator:aC(this),filterer:ZJ(r)})}})});var uC=l(()=>{"use strict";var tee=p(),sC=Y(),nee=U(),iee=w();tee({target:"Iterator",proto:!0,real:!0},{find:function(r){return iee(this),nee(r),sC(this,function(t){if(r(t))return sC.stop(t)},void 0,!1,!0).result}})});var cC=l(()=>{"use strict";var aee=p(),lC=U(),us=w(),oee=Yr(),see=xt(),uee=yn(),lee=see(function(e){for(var r=this.iterator,t,n,i,a;;){if(a=this.innerIterator){if(t=us(this.innerNext.call(a)),!t.done)return t.value;this.innerIterator=this.innerNext=null}if(t=us(this.next.call(r,e)),this.done=!!t.done)return;if(n=uee(r,this.mapper,t.value),i=oee(n),i===void 0)throw TypeError(".flatMap callback should return an iterable object");this.innerIterator=a=us(i.call(n)),this.innerNext=lC(a.next)}});aee({target:"Iterator",proto:!0,real:!0},{flatMap:function(r){return new lee({iterator:us(this),mapper:lC(r),innerIterator:null,innerNext:null})}})});var dC=l(()=>{"use strict";var cee=p(),dee=Y(),fee=w();cee({target:"Iterator",proto:!0,real:!0},{forEach:function(r){dee(fee(this),r,void 0,!1,!0)}})});var fC=l(()=>{var vee=p(),pee=lr(),gee=U(),hee=w(),mee=de(),yee=xt(),Eee=Yr(),See=pee.Iterator,bee=yee(function(e){var r=hee(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return r.value},!0);vee({target:"Iterator",stat:!0},{from:function(r){var t=mee(r),n=Eee(t),i;if(n!=null){if(i=gee(n).call(t),i instanceof See)return i}else i=t;return new bee({iterator:i})}})});var pC=l(()=>{"use strict";var qee=p(),Iee=U(),vC=w(),xee=xt(),Aee=yn(),wee=xee(function(e){var r=this.iterator,t=vC(this.next.call(r,e)),n=this.done=!!t.done;if(!n)return Aee(r,this.mapper,t.value)});qee({target:"Iterator",proto:!0,real:!0},{map:function(r){return new wee({iterator:vC(this),mapper:Iee(r)})}})});var gC=l(()=>{"use strict";var _ee=p(),Cee=Y(),Tee=U(),Ree=w();_ee({target:"Iterator",proto:!0,real:!0},{reduce:function(r){Ree(this),Tee(r);var t=arguments.length<2,n=t?void 0:arguments[1];if(Cee(this,function(i){t?(t=!1,n=i):n=r(n,i)},void 0,!1,!0),t)throw TypeError("Reduce of empty iterator with no initial value");return n}})});var mC=l(()=>{"use strict";var Oee=p(),hC=Y(),Lee=U(),Pee=w();Oee({target:"Iterator",proto:!0,real:!0},{some:function(r){return Pee(this),Lee(r),hC(this,function(t){if(r(t))return hC.stop()},void 0,!1,!0).stopped}})});var EC=l(()=>{"use strict";var Nee=p(),yC=w(),Dee=Nn(),Mee=xt(),Uee=Mee(function(e){if(!this.remaining--){this.done=!0;return}var r=yC(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return r.value});Nee({target:"Iterator",proto:!0,real:!0},{take:function(r){return new Uee({iterator:yC(this),remaining:Dee(r)})}})});var SC=l(()=>{"use strict";var kee=p(),jee=Y(),Fee=w(),Bee=[].push;kee({target:"Iterator",proto:!0,real:!0},{toArray:function(){var r=[];return jee(Fee(this),Bee,r,!1,!0),r}})});var bC=l(()=>{x_();C_();T_();L_();P_();N_();U_();k_();j_();F_();$_();V_();H_();G_();Q_();rC();tC();iC();oC();uC();cC();dC();fC();pC();gC();mC();EC();SC()});var ls=l((g0e,qC)=>{"use strict";var $ee=w();qC.exports=function(r,t){var n=$ee(this),i=arguments.length>2?arguments[2]:void 0,a;if(typeof t!="function"&&typeof i!="function")throw TypeError("At least one callback required");return n.has(r)?(a=n.get(r),typeof t=="function"&&(a=t(a),n.set(r,a))):typeof i=="function"&&(a=i(),n.set(r,a)),a}});var IC=l(()=>{"use strict";var Vee=p(),Hee=j(),Gee=ls();Vee({target:"Map",proto:!0,real:!0,forced:Hee},{updateOrInsert:Gee})});var xC=l(()=>{"use strict";var zee=p(),Kee=j(),Yee=ls();zee({target:"Map",proto:!0,real:!0,forced:Kee},{upsert:Yee})});var AC=l(()=>{"use strict";var Wee=p(),Xee=j(),Qee=ls();Wee({target:"WeakMap",proto:!0,real:!0,forced:Xee},{upsert:Qee})});var wC=l(()=>{IC();xC();AC()});var _C=l(()=>{"use strict";var Zee=p(),Jee=j(),ere=ce(),rre=w(),tre=U(),nre=_e(),ire=Y();Zee({target:"Set",proto:!0,real:!0,forced:Jee},{difference:function(r){var t=rre(this),n=new(nre(t,ere("Set")))(t),i=tre(n.delete);return ire(r,function(a){i.call(n,a)}),n}})});var TC=l(()=>{"use strict";var are=p(),ore=j(),sre=ce(),ure=w(),CC=U(),lre=_e(),cre=Y();are({target:"Set",proto:!0,real:!0,forced:ore},{intersection:function(r){var t=ure(this),n=new(lre(t,sre("Set"))),i=CC(t.has),a=CC(n.add);return cre(r,function(o){i.call(t,o)&&a.call(n,o)}),n}})});var OC=l(()=>{"use strict";var dre=p(),fre=j(),vre=w(),pre=U(),RC=Y();dre({target:"Set",proto:!0,real:!0,forced:fre},{isDisjointFrom:function(r){var t=vre(this),n=pre(t.has);return!RC(r,function(i){if(n.call(t,i)===!0)return RC.stop()}).stopped}})});var PC=l(()=>{"use strict";var gre=p(),hre=j(),mre=ce(),yre=w(),Ere=U(),Sre=Un(),LC=Y();gre({target:"Set",proto:!0,real:!0,forced:hre},{isSubsetOf:function(r){var t=Sre(this),n=yre(r),i=n.has;return typeof i!="function"&&(n=new(mre("Set"))(r),i=Ere(n.has)),!LC(t,function(a){if(i.call(n,a)===!1)return LC.stop()},void 0,!1,!0).stopped}})});var DC=l(()=>{"use strict";var bre=p(),qre=j(),Ire=w(),xre=U(),NC=Y();bre({target:"Set",proto:!0,real:!0,forced:qre},{isSupersetOf:function(r){var t=Ire(this),n=xre(t.has);return!NC(r,function(i){if(n.call(t,i)===!1)return NC.stop()}).stopped}})});var MC=l(()=>{"use strict";var Are=p(),wre=j(),_re=ce(),Cre=w(),Tre=U(),Rre=_e(),Ore=Y();Are({target:"Set",proto:!0,real:!0,forced:wre},{union:function(r){var t=Cre(this),n=new(Rre(t,_re("Set")))(t);return Ore(r,Tre(n.add),n),n}})});var kC=l(()=>{"use strict";var Lre=p(),Pre=j(),Nre=ce(),Dre=w(),UC=U(),Mre=_e(),Ure=Y();Lre({target:"Set",proto:!0,real:!0,forced:Pre},{symmetricDifference:function(r){var t=Dre(this),n=new(Mre(t,Nre("Set")))(t),i=UC(n.delete),a=UC(n.add);return Ure(r,function(o){i.call(n,o)||a.call(n,o)}),n}})});var jC=l(()=>{_C();TC();OC();PC();DC();MC();kC()});var FC=l(()=>{var kre=Ae();kre("asyncDispose")});var BC=l(()=>{var jre=Ae();jre("dispose")});var $C=l(()=>{FC();BC()});var zC=l(()=>{"use strict";var Fre=p(),HC=te(),Bre=ke(),VC=ft(),$re=Ve(),Vre=le(),ef=qr(),Hre=Y(),Gre=me(),GC=qe(),zre=GC.set,Kre=GC.getterFor("AggregateError"),Kn=function(r,t){var n=this;if(!(n instanceof Kn))return new Kn(r,t);VC&&(n=VC(new Error(t),Bre(n)));var i=[];return Hre(r,i.push,i),HC?zre(n,{errors:i,type:"AggregateError"}):n.errors=i,t!==void 0&&Gre(n,"message",String(t)),n};Kn.prototype=$re(Error.prototype,{constructor:ef(5,Kn),message:ef(5,""),name:ef(5,"AggregateError")});HC&&Vre.f(Kn.prototype,"errors",{get:function(){return Kre(this).errors},configurable:!0});Fre({global:!0},{AggregateError:Kn})});var WC=l(()=>{"use strict";var Yre=p(),Wre=U(),KC=ce(),Xre=wn(),Qre=Pi(),Zre=Y(),YC="No one promise resolved";Yre({target:"Promise",stat:!0},{any:function(r){var t=this,n=Xre.f(t),i=n.resolve,a=n.reject,o=Qre(function(){var s=Wre(t.resolve),u=[],c=0,f=1,d=!1;Zre(r,function(v){var g=c++,h=!1;u.push(void 0),f++,s.call(t,v).then(function(m){h||d||(d=!0,i(m))},function(m){h||d||(h=!0,u[g]=m,--f||a(new(KC("AggregateError"))(u,YC)))})}),--f||a(new(KC("AggregateError"))(u,YC))});return o.error&&a(o.value),n.promise}})});var XC=l(()=>{zC();WC()});var ZC=l(()=>{"use strict";var Jre=p(),QC=Ce(),ete=bn(),rte=Ut(),tte=Z(),nte=j(),ite=tte("replace"),ate=RegExp.prototype;Jre({target:"String",proto:!0},{replaceAll:function e(r,t){var n=QC(this),i,a,o,s,u,c,f,d,v;if(r!=null){if(i=ete(r),i&&(a=String(QC("flags"in ate?r.flags:rte.call(r))),!~a.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(o=r[ite],o!==void 0)return o.call(r,n,t);if(nte&&i)return String(n).replace(r,t)}if(s=String(n),u=String(r),u==="")return e.call(s,/(?:)/g,t);if(c=s.split(u),typeof t!="function")return c.join(String(t));for(f=c[0],d=f.length,v=1;v<c.length;v++)f+=String(t(u,d,s)),d+=u.length+c[v].length,f+=c[v];return f}})});var JC=l(()=>{var ote=Ae();ote("replaceAll")});var eT=l(()=>{ZC();JC()});var rT=l(()=>{Ou()});var nT=l((oEe,tT)=>{rT();var ste=K();tT.exports=ste});var iT=l(()=>{ec()});var aT=l(()=>{iT()});var oT=l(()=>{nl()});var sT=l(()=>{oT()});var lT=l((gEe,uT)=>{nT();aT();sT();var ute=lr();uT.exports=ute});var dT=l((hEe,cT)=>{XC();eT();var lte=lT();cT.exports=lte});var vT=l((mEe,fT)=>{f_();bC();wC();jC();$C();var cte=dT();fT.exports=cte});var gT=l((yEe,pT)=>{lA();ew();vw();bw();Rw();Lw();Nw();Bw();Yw();Xw();Zw();n_();u_();var dte=vT();pT.exports=dte});var mT=l((EEe,hT)=>{ax();sx();iA();var fte=gT();hT.exports=fte});var ET=l((SEe,yT)=>{ex();var vte=mT();yT.exports=vte});var bT=l((bEe,ST)=>{var pte=ET();ST.exports=pte});var qT=l(()=>{bT()});var rf=l((xEe,IT)=>{IT.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 AT=l(()=>{var gte=K(),hte=rf(),tf=$u(),mte=me();for(xT in hte)if(nf=gte[xT],oa=nf&&nf.prototype,oa&&oa.forEach!==tf)try{mte(oa,"forEach",tf)}catch(e){oa.forEach=tf}var nf,oa,xT});var TT=l(()=>{var yte=K(),wT=rf(),sa=mi(),af=me(),CT=Z(),of=CT("iterator"),_T=CT("toStringTag"),sf=sa.values;for(cs in wT)if(uf=yte[cs],Pr=uf&&uf.prototype,Pr){if(Pr[of]!==sf)try{af(Pr,of,sf)}catch(e){Pr[of]=sf}if(Pr[_T]||af(Pr,_T,cs),wT[cs]){for(Kt in sa)if(Pr[Kt]!==sa[Kt])try{af(Pr,Kt,sa[Kt])}catch(e){Pr[Kt]=sa[Kt]}}}var uf,Pr,Kt,cs});var LT=l(()=>{var Ete=p(),RT=K(),OT=ho(),Ste=!RT.setImmediate||!RT.clearImmediate;Ete({global:!0,bind:!0,enumerable:!0,forced:Ste},{setImmediate:OT.set,clearImmediate:OT.clear})});var NT=l(()=>{var bte=p(),qte=K(),Ite=Vl(),xte=Xe(),PT=qte.process,Ate=xte(PT)=="process";bte({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(r){var t=Ate&&PT.domain;Ite(t?t.bind(r):r)}})});var UT=l(()=>{var wte=p(),DT=K(),_te=pi(),Cte=[].slice,Tte=/MSIE .\./.test(_te),MT=function(e){return function(r,t){var n=arguments.length>2,i=n?Cte.call(arguments,2):void 0;return e(n?function(){(typeof r=="function"?r:Function(r)).apply(this,i)}:r,t)}};wte({global:!0,bind:!0,forced:Tte},{setTimeout:MT(DT.setTimeout),setInterval:MT(DT.setInterval)})});var jT=l((DEe,kT)=>{AT();TT();LT();NT();UT();Cd();Td();zo();var Rte=lr();kT.exports=Rte});var ds=l((MEe,FT)=>{RI();qT();jT();var Ote=lr();FT.exports=Ote});var nie={};Yf(nie,{SprigAPI:()=>ei,sprig:()=>Hf});module.exports=zR(nie);var Qf={test:"test"},ma="pageUrl",rn={ENVIRONMENT_ID:"x-ul-environment-id",PARTNER_ANONYMOUS_ID:"x-ul-anonymous-id",USER_ID:"x-ul-user-id",VISITOR_ID:"x-ul-visitor-id",INSTALLATION_METHOD:"x-ul-installation-method"},br={NPM:"web-npm",GTM:"web-gtm",SEGMENT:"web-segment",SNIPPET:"web-snippet"},rr="ul-app",q={CUSTOM_STYLE_TAG_ID:"ul-custom-style",CARD_CONTAINER_CLASS:"ul-card__container",VIDEO_CARD_CLASS:"ul-card--video",CLOSE_CONTAINER_CLASS:"close-container",CLOSE_BUTTON_CLASS:"close-btn",LIKERT_NUMBER_CLASS:"likert-number",LIKERT_STAR_CLASS:"likert-star",LIKERT_SMILEY_CLASS:"likert-smiley",NPS_NUMBER_CLASS:"nps-number",CHOICE_CLASS:"choice",CHOICE_LABEL_CLASS:"select-label",CHOICE_CHECKBOX_CLASS:"select-checkbox",CHOICE_RADIO_CLASS:"select-radio",CHOICE_GROUP_CLASS:"ul-card__choices",CHOICE_TEXT_INPUT_CLASS:"choice-text-input",CHOICE_LABEL_CONTAINER_CLASS:"choice-label-container",CHOICE_TEXT_ENTRY_CONTAINER_CLASS:"choice-text-entry-container",CONSENT_LEGAL_NAME_INPUT:"ul-consent-legal__name-input",OPEN_TEXT_INPUT:"ul-card-text__input",DESKTOP_SUFFIX:"--desktop",MOBILE_SUFFIX:"--mobile",QUESTION_HEADER_CLASS:"ul-question",CAPTION_CLASS:"ul-caption",FADE_IN_CLASS:"fade-in-transition",CARD_MAIN_CONTENT:"ul-card-main-content",LOADING_SPINNER_CONTAINER:"ul-loading-spinner-container",LOADING_SPINNER:"ul-loading-spinner",LOADING_SPINNER_FIRST:"first",LOADING_SPINNER_SECOND:"second",LOADING_SPINNER_THIRD:"third",LOADING_SPINNER_FOURTH:"fourth",INACTIVE_BUTTON:"ul-button-inactive",CHECKMARK_BUTTON:"ul-button-checkmark",LEFT_ALIGN_BUTTON:"ul-button-left-align",SUBMIT_BUTTON_DISABLED:"submit-button-disabled"},ot="#e6e6e6",ya="#ffffff",Rt="#bd282a";var Zf=500,Jf=1030,ve=(e,r)=>{let t=r?q.MOBILE_SUFFIX:q.DESKTOP_SUFFIX;return[e+t,e]},xe=(e,r)=>[e,`${e}__${r}`],ev=["ios","android"],tn="!email",Ea="View Prototype",rv="View Document",tr={NUMBER:"number",STAR:"star",SMILEY:"smiley"};var YIe=Ms(ds());var lf={};Yf(lf,{disable:()=>Pte,enable:()=>Lte});var BT=()=>{try{return window.parent.Intercom}catch(e){}},Lte=()=>{let e=BT();!e||(e.ul_wasVisible&&e("update",{hide_default_launcher:!1}),delete e.ul_wasVisible)},Pte=()=>{let e=BT();!e||(e.ul_wasVisible=!!document.querySelector("iframe.intercom-launcher-frame"),e.ul_wasVisible&&e("update",{hide_default_launcher:!0}))};var $T=[lf],Nr=class{static disable(){$T.forEach(r=>r.disable())}static enable(){$T.forEach(r=>r.enable())}};var Je={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};function Nte(e){return e&&DataView.prototype.isPrototypeOf(e)}Je.arrayBuffer&&(VT=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],GT=ArrayBuffer.isView||function(e){return e&&VT.indexOf(Object.prototype.toString.call(e))>-1});var VT,GT;function ua(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function zT(e){return typeof e!="string"&&(e=String(e)),e}function df(e){var r={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return Je.iterable&&(r[Symbol.iterator]=function(){return r}),r}function Oe(e){this.map={},e instanceof Oe?e.forEach(function(r,t){this.append(t,r)},this):Array.isArray(e)?e.forEach(function(r){this.append(r[0],r[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(r){this.append(r,e[r])},this)}Oe.prototype.append=function(e,r){e=ua(e),r=zT(r);var t=this.map[e];this.map[e]=t?t+", "+r:r};Oe.prototype.delete=function(e){delete this.map[ua(e)]};Oe.prototype.get=function(e){return e=ua(e),this.has(e)?this.map[e]:null};Oe.prototype.has=function(e){return this.map.hasOwnProperty(ua(e))};Oe.prototype.set=function(e,r){this.map[ua(e)]=zT(r)};Oe.prototype.forEach=function(e,r){for(var t in this.map)this.map.hasOwnProperty(t)&&e.call(r,this.map[t],t,this)};Oe.prototype.keys=function(){var e=[];return this.forEach(function(r,t){e.push(t)}),df(e)};Oe.prototype.values=function(){var e=[];return this.forEach(function(r){e.push(r)}),df(e)};Oe.prototype.entries=function(){var e=[];return this.forEach(function(r,t){e.push([t,r])}),df(e)};Je.iterable&&(Oe.prototype[Symbol.iterator]=Oe.prototype.entries);function cf(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function KT(e){return new Promise(function(r,t){e.onload=function(){r(e.result)},e.onerror=function(){t(e.error)}})}function Dte(e){var r=new FileReader,t=KT(r);return r.readAsArrayBuffer(e),t}function Mte(e){var r=new FileReader,t=KT(r);return r.readAsText(e),t}function Ute(e){for(var r=new Uint8Array(e),t=new Array(r.length),n=0;n<r.length;n++)t[n]=String.fromCharCode(r[n]);return t.join("")}function HT(e){if(e.slice)return e.slice(0);var r=new Uint8Array(e.byteLength);return r.set(new Uint8Array(e)),r.buffer}function YT(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Je.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Je.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Je.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Je.arrayBuffer&&Je.blob&&Nte(e)?(this._bodyArrayBuffer=HT(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Je.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||GT(e))?this._bodyArrayBuffer=HT(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Je.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Je.blob&&(this.blob=function(){var e=cf(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?cf(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Dte)}),this.text=function(){var e=cf(this);if(e)return e;if(this._bodyBlob)return Mte(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Ute(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Je.formData&&(this.formData=function(){return this.text().then(Fte)}),this.json=function(){return this.text().then(JSON.parse)},this}var kte=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function jte(e){var r=e.toUpperCase();return kte.indexOf(r)>-1?r:e}function Yn(e,r){r=r||{};var t=r.body;if(e instanceof Yn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new Oe(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!t&&e._bodyInit!=null&&(t=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new Oe(r.headers)),this.method=jte(r.method||this.method||"GET"),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&t)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(t)}Yn.prototype.clone=function(){return new Yn(this,{body:this._bodyInit})};function Fte(e){var r=new FormData;return e.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");r.append(decodeURIComponent(i),decodeURIComponent(a))}}),r}function Bte(e){var r=new Oe,t=e.replace(/\r?\n[\t ]+/g," ");return t.split(/\r?\n/).forEach(function(n){var i=n.split(":"),a=i.shift().trim();if(a){var o=i.join(":").trim();r.append(a,o)}}),r}YT.call(Yn.prototype);function tt(e,r){r||(r={}),this.type="default",this.status=r.status===void 0?200:r.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in r?r.statusText:"OK",this.headers=new Oe(r.headers),this.url=r.url||"",this._initBody(e)}YT.call(tt.prototype);tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Oe(this.headers),url:this.url})};tt.error=function(){var e=new tt(null,{status:0,statusText:""});return e.type="error",e};var $te=[301,302,303,307,308];tt.redirect=function(e,r){if($te.indexOf(r)===-1)throw new RangeError("Invalid status code");return new tt(null,{status:r,headers:{location:e}})};var Yt=self.DOMException;try{new Yt}catch(e){Yt=function(r,t){this.message=r,this.name=t;var n=Error(r);this.stack=n.stack},Yt.prototype=Object.create(Error.prototype),Yt.prototype.constructor=Yt}function WT(e,r){return new Promise(function(t,n){var i=new Yn(e,r);if(i.signal&&i.signal.aborted)return n(new Yt("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var s={status:a.status,statusText:a.statusText,headers:Bte(a.getAllResponseHeaders()||"")};s.url="responseURL"in a?a.responseURL:s.headers.get("X-Request-URL");var u="response"in a?a.response:a.responseText;t(new tt(u,s))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new Yt("Aborted","AbortError"))},a.open(i.method,i.url,!0),i.credentials==="include"?a.withCredentials=!0:i.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&Je.blob&&(a.responseType="blob"),i.headers.forEach(function(s,u){a.setRequestHeader(u,s)}),i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener("abort",o)}),a.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}WT.polyfill=!0;self.fetch||(self.fetch=WT,self.Headers=Oe,self.Request=Yn,self.Response=tt);var ff=class{constructor(r){this.promise=new Promise((t,n)=>{this.payload=r,this.reject=n,this.resolve=t})}resolveRequest(r){this.resolve(r)}},XT=ff;function Wn(e,r){return new Promise(function(t){setTimeout(t.bind(null,r),e)})}var QT={RATELIMIT_RESET_DEFAULT:10};var JT=!1,e2="",fs=!1,vs=[];function Vte(e){return e._config&&e._config.installationMethod?e._config.installationMethod:e._gtm?br.GTM:e._segment?br.SEGMENT:br.SNIPPET}function ps(e){JT=!0,e2=e}function Xn(e={}){let r={"Content-Type":"application/json","userleap-platform":"web","x-ul-sdk-version":"2.19.6"};if(e.envId&&(r[rn.ENVIRONMENT_ID]=e.envId),e.token&&(r.Authorization="Bearer "+e.token),e.userId&&(r[rn.USER_ID]=e.userId),e.visitorId&&(r[rn.VISITOR_ID]=e.visitorId),e.partnerAnonymousId&&(r[rn.PARTNER_ANONYMOUS_ID]=e.partnerAnonymousId),e.mobileHeadersJSON){let t=JSON.parse(e.mobileHeadersJSON);Object.assign(r,t)}return r[rn.INSTALLATION_METHOD]=Vte(e),e.locale&&(r["accept-language"]=e.locale),window.previewMode&&(r["x-ul-preview-mode"]=1),r}async function ZT(e,r,t){if(e)return{status:429};{let n=new XT(t);return vs.push(n),n.promise}}async function ur(e,r,t=0,n=!1,i=!1){let a={url:e,options:r,attempt:t,shouldDropOnRateLimit:n};if(fs&&!i)return ZT(n,i,a);let o={ok:!1,reportError:!1};if(JT)return console.log(`UserLeap - ${e2}`),o;try{r.headers=Object.assign(Xn(),r.headers);let s=await fetch(e,r);if(s.status===429)if(!fs&&!n||i){fs=!0;let c=s.headers.has("ratelimit-reset")?Number(s.headers.get("ratelimit-reset")):QT.RATELIMIT_RESET_DEFAULT;return Wn(c*1e3).then(async()=>ur(e,r,0,n,!0))}else return ZT(n,!1,a);if(fs=!1,vs.length&&(vs.map(u=>{let{url:c,options:f,attempt:d,shouldDropOnRateLimit:v}=u.payload;ur(c,f,d,v).then(g=>{u.resolveRequest(g)})}),vs=[]),s.ok){if(s.status===249)return ps(),o;let u=await s.text();try{return u&&u!=="OK"&&(s.json=JSON.parse(u)),s}catch(c){return{ok:!1,reportError:!1,error:new Error(`failed parsing response json for ${e} - ${u}`)}}}return s}catch(s){let u=t+1;return u>5?{ok:!1,reportError:!1,error:s}:Wn(Math.pow(2,t)*1e3).then(()=>ur(e,r,u))}}var nt=class{constructor(){return nt.instance||(this._events={},nt.instance=this),nt.instance}subscribe(r,t){!r||!t||(this._events[r]||(this._events[r]=[]),this._events[r].push(t))}removeListener(r,t){if(!r||!t||!this._events[r])return;let n=i=>i!==t;this._events[r]=this._events[r].filter(n)}removeAllListeners(){Object.keys(this._events).map(r=>{this._events[r]=[]})}emit(r,t){if(!this._events[r]||this._events[r].length==0)return;let n=i=>{i(t)};this._events[r].forEach(n)}},r2=new nt;Object.freeze(r2);var fe=r2;var X={SURVEY_LIFE_CYCLE:"survey.lifeCycle",SURVEY_DIMENSIONS:"survey.dimensions",SURVEY_HEIGHT:"survey.height",SURVEY_WILL_PRESENT:"survey.will.present",SURVEY_PRESENTED:"survey.presented",SURVEY_APPEARED:"survey.appeared",SURVEY_FADING_OUT:"survey.fadingOut",SURVEY_WILL_CLOSE:"survey.willClose",SURVEY_CLOSED:"survey.closed",SDK_READY:"sdk.ready",CLOSE_SURVEY_ON_OVERLAY_CLICK:"close.survey.overlayClick",VISITOR_ID_UPDATED:"visitor.id.updated",DATA:{DISMISS_REASONS:Er,SURVEY_ID:"survey.id"}},Se={name:{VERIFY_VIEW_VERSION:"verify.view.version",CURRENT_QUESTION:"survey.question",VIEW_PROTOTYPE_CLICK:"question.prototype.click",VIEW_AGREEMENT_CLICK:"question.agreement.click",RECORDED_TASK_START:"recorded.task.start",RECORDED_TASK_PERMISSION_SCREEN:"recorded.task.permission.screen",SURVEY_COMPLETE:"survey.complete"},data:{VIEW_VERSION:"view.version",QUESTION_ID:"qid",PROPS:"props"}},Er={CLOSED:"close.click",COMPLETE:"survey.completed",PAGE_CHANGE:"page.change",API:"api",OVERRIDE:"override"},Dr={READY:"ready",NO_SURVEY:"no survey"};window.UserLeap&&window.Sprig&&(window.Sprig._gtm?window.Sprig=window.UserLeap:window.UserLeap=window.Sprig);window.UserLeap||(window.UserLeap=window.Sprig);window.Sprig||(window.Sprig=window.UserLeap);var Hte="rgba(255,255,255, 0.95)",Gte="rgba(0,0,0,0.9)";function vf(){UserLeap.container=document.createElement("div"),UserLeap.container.className="ul-container",document.body.appendChild(UserLeap.container)}function pf(e){let r=UserLeap.container;if(!!r)try{document.body.removeChild(r),UserLeap.container=null,fe.emit(X.SURVEY_LIFE_CYCLE,{state:"dismissed"}),fe.emit(X.SURVEY_CLOSED,{name:X.SURVEY_CLOSED,initiator:e})}catch(t){console.warn(`[Sprig] (ERR-412) Error removing UserLeap container by ${e} `+r),UserLeap.reportError("dismissActiveSurvey",t)}}function gf(){fe.subscribe(X.SURVEY_WILL_CLOSE,({initiator:e})=>{pf(e)})}function t2(e,r){let t="360px",n="0px",i="ul-frame";vf();let a=document.createElement("iframe");a.id=i,a.setAttribute("title","Sprig User Feedback Dialog");let o=u(a,e,r);fe.subscribe(X.SURVEY_FADING_OUT,()=>{Object.assign(UserLeap.container.style,{"background-color":"rgba(0,0,0,0)"})}),gf();function s(d,v){let h=G({},{position:"fixed",overflow:"auto",top:"0px",left:"0px",display:"none",height:"100%",width:"100%",transition:"background-color 0.3s ease-out",zIndex:2147483646}),m=v?d.overlayStyleMobile:d.overlayStyle;h["background-color"]=m==="light"?Hte:Gte,v||(h.margin="auto"),Object.assign(UserLeap.container.style,h)}function u(d,v,g){let h={position:"fixed",bottom:"0px",right:n,border:0,backgroundColor:"rgba(0,0,0,0)",zIndex:2147483646},m=Object.assign({},v,UserLeap),E,S=!1;return g?(UserLeap.windowDimensions&&UserLeap.windowDimensions.width?h.width=`${UserLeap.windowDimensions.width}px`:h.width="100%",UserLeap.windowDimensions&&UserLeap.windowDimensions.height?h.maxHeight=`${UserLeap.windowDimensions.height-20}px`:UserLeap.maxHeight?h.maxHeight=UserLeap.maxHeight:h.maxHeight=`${document.body.clientHeight-20}px`,["light","dark"].includes(m.overlayStyleMobile)&&(S=!0)):(h.width=t,h.maxHeight=UserLeap.maxHeight||"66vh",m.framePosition==="bottomLeft"?E={left:n}:m.framePosition==="topLeft"?E={left:n,top:"0px"}:m.framePosition==="topRight"?E={top:"0px"}:m.framePosition==="center"&&(S=!0,E={margin:"auto",position:"static"},h.maxHeight=null)),S&&s(m,g),Object.assign(d.style,h,E),S}a.setHeight=d=>{parseInt(a.style.height)!=d&&(a.style.height=`${d}px`,fe.emit(X.SURVEY_HEIGHT,{name:X.SURVEY_HEIGHT,contentFrameHeight:a.clientHeight}))},UserLeap.container.appendChild(a),e&&(r?e.exitOnOverlayClickMobile:e.exitOnOverlayClick)&&(UserLeap.container.onclick=()=>{fe.emit(X.CLOSE_SURVEY_ON_OVERLAY_CLICK)}),fe.emit(X.SURVEY_LIFE_CYCLE,{state:"presented"}),fe.emit(X.SURVEY_PRESENTED,{name:X.SURVEY_PRESENTED});let c=a.contentWindow.document;c.open("text/html","replace"),c.write("<!doctype html><head></head><body></body></html>"),c.close();let f=c.head;return{frameId:i,contentWinDocHead:f,contentWindow:a.contentWindow,hasOverlay:o,iframe:a}}var ZEe=Ms(ds()),n2=class{constructor(e,r){this.ul=e,this.paused=!1,this.queue=[],this.flush(r)}flush(e){let r=e.length;if(r)for(let t=0;t<r;t++)this.push(e[t])}isPaused(){return this.paused}pause(){this.paused=!0}unpause(){this.paused=!1;let e=this.queue.slice();this.empty(),this.flush(e)}push(e){if(this.paused)this.queue.push(e);else if(e instanceof Function)e();else{let r=Array.prototype.slice.call(e,1),t=e[0],n=this.ul[t];n&&n instanceof Function?this.ul[t].apply(this.ul,r):t&&console.warn("[Sprig] (ERR-100) No valid UserLeap action called",t)}}perform(e){if(this.paused){let r,t=new Promise(function(n){r=function(){n(e())}});return this.queue.push(r),t}else return e()}empty(){this.queue.length=0}};var zte="!optimizely_experiments_";var Wt=class{constructor(){return Wt.instance||(this._optimizelyData={},Wt.instance=this),Wt.instance}setOptimizelyExperiment(r){if(!r||typeof r!="object")return!1;let{experiments:t}=r;try{return Object.keys(this._optimizelyData).map(n=>{delete this._optimizelyData[n]}),t&&t.map(n=>{let{id:i,variation:a}=n,o=this.transformExperimentId(i);a&&typeof a=="string"&&(this._optimizelyData[o]=a)}),!0}catch(n){return UserLeap.reportError("setOptimizelyExperiment",n),!1}}getAllOptimizelyExperiments(){return this._optimizelyData}getOptimizelyVariationName(r){return this._optimizelyData[this.transformExperimentId(r)]}transformExperimentId(r){return zte+r}getAndSetWebOptimizelyExperiments(){var r;try{if(window&&window.optimizely){let t=(r=window.optimizely.get("state"))==null?void 0:r.getExperimentStates({isActive:!0});if(t){let n=Object.keys(t).map(i=>{var a,o;return(a=t[i].variation)!=null&&a.name?{id:i,variation:(o=t[i].variation)==null?void 0:o.name}:{id:i,variation:"Original"}});return this.setOptimizelyExperiment({experiments:n}),!0}return!1}}catch(t){return UserLeap.reportError("getAndSetWebOptimizely",t),!1}}},i2=new Wt;Object.freeze(i2);var gs=i2;var Kte=1,hs=(e,r,t)=>{let n=e.createElement("style");n.type="text/css",t&&(n.nonce=t),n.textContent=r,n.id=q.CUSTOM_STYLE_TAG_ID,e.head.appendChild(n)},ms=e=>{let r=e.querySelector(`.${q.CARD_CONTAINER_CLASS}`),t=r?r.scrollHeight:600,n=r&&r.parentElement?r.parentElement.clientHeight-r.clientHeight:0;return t+n+Kte},a2=e=>{let r=e.querySelector(`.${q.CARD_CONTAINER_CLASS}`);r&&(r.scrollTop=0)};var ys,Yte=new Uint8Array(16);function hf(){if(!ys&&(ys=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ys))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ys(Yte)}var o2=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Wte(e){return typeof e=="string"&&o2.test(e)}var s2=Wte;var De=[];for(Es=0;Es<256;++Es)De.push((Es+256).toString(16).substr(1));var Es;function Xte(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(De[e[r+0]]+De[e[r+1]]+De[e[r+2]]+De[e[r+3]]+"-"+De[e[r+4]]+De[e[r+5]]+"-"+De[e[r+6]]+De[e[r+7]]+"-"+De[e[r+8]]+De[e[r+9]]+"-"+De[e[r+10]]+De[e[r+11]]+De[e[r+12]]+De[e[r+13]]+De[e[r+14]]+De[e[r+15]]).toLowerCase();if(!s2(t))throw TypeError("Stringified UUID is invalid");return t}var u2=Xte;function Qte(e,r,t){e=e||{};var n=e.random||(e.rng||hf)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){t=t||0;for(var i=0;i<16;++i)r[t+i]=n[i];return r}return u2(n)}var At=Qte;function Mr({"userleap-platform":e}){return e!=="web"}var RIe=Ms(ds());function y(e,r){for(var t=[],n=[],i=arguments.length;i-- >2;)t.push(arguments[i]);for(;t.length;){var a=t.pop();if(a&&a.pop)for(i=a.length;i--;)t.push(a[i]);else a!=null&&a!==!0&&a!==!1&&n.push(a)}return typeof e=="function"?e(r||{},n):{nodeName:e,attributes:r||{},children:n,key:r&&r.key}}function l2(e,r,t,n){var i=[].map,a=n&&n.children[0]||null,o=a&&v(a),s=[],u,c=!0,f=E(e),d=A([],f,E(r));return m(),d;function v(I){return{nodeName:I.nodeName.toLowerCase(),attributes:{},children:i.call(I.childNodes,function(b){return b.nodeType===3?b.nodeValue:v(b)})}}function g(I){return typeof I=="function"?g(I(f,d)):I!=null?I:""}function h(){u=!u;var I=g(t);for(n&&!u&&(a=R(n,a,o,o=I)),c=!1;s.length;)s.pop()()}function m(){u||(u=!0,setTimeout(h))}function E(I,b){var T={};for(var O in I)T[O]=I[O];for(var O in b)T[O]=b[O];return T}function S(I,b,T){var O={};return I.length?(O[I[0]]=I.length>1?S(I.slice(1),b,T[I[0]]):b,E(T,O)):b}function x(I,b){for(var T=0;T<I.length;)b=b[I[T++]];return b}function A(I,b,T){for(var O in T)typeof T[O]=="function"?function(k,$){T[k]=function(he){var ye=$(he);return typeof ye=="function"&&(ye=ye(x(I,f),T)),ye&&ye!==(b=x(I,f))&&!ye.then&&m(f=S(I,E(b,ye),f)),ye}}(O,T[O]):A(I.concat(O),b[O]=E(b[O]),T[O]=E(T[O]));return T}function _(I){return I?I.key:null}function C(I){return I.currentTarget.events[I.type](I)}function L(I,b,T,O,k){if(b!=="key")if(b==="style")if(typeof T=="string")I.style.cssText=T;else{typeof O=="string"&&(O=I.style.cssText="");for(var $ in E(O,T)){var he=T==null||T[$]==null?"":T[$];$[0]==="-"?I.style.setProperty($,he):I.style[$]=he}}else b[0]==="o"&&b[1]==="n"?(b=b.slice(2),I.events?O||(O=I.events[b]):I.events={},I.events[b]=T,T?O||I.addEventListener(b,C):I.removeEventListener(b,C)):b in I&&b!=="list"&&b!=="type"&&b!=="draggable"&&b!=="spellcheck"&&b!=="translate"&&!k?I[b]=T==null?"":T:T!=null&&T!==!1&&I.setAttribute(b,T),(T==null||T===!1)&&I.removeAttribute(b)}function M(I,b){var T=typeof I=="string"||typeof I=="number"?document.createTextNode(I):(b=b||I.nodeName==="svg")?document.createElementNS("http://www.w3.org/2000/svg",I.nodeName):document.createElement(I.nodeName),O=I.attributes;if(O){O.oncreate&&s.push(function(){O.oncreate(T)});for(var k=0;k<I.children.length;k++)T.appendChild(M(I.children[k]=g(I.children[k]),b));for(var $ in O)L(T,$,O[$],null,b)}return T}function V(I,b,T,O){for(var k in E(b,T))T[k]!==(k==="value"||k==="checked"?I[k]:b[k])&&L(I,k,T[k],b[k],O);var $=c?T.oncreate:T.onupdate;$&&s.push(function(){$(I,b)})}function F(I,b){var T=b.attributes;if(T){for(var O=0;O<b.children.length;O++)F(I.childNodes[O],b.children[O]);T.ondestroy&&T.ondestroy(I)}return I}function H(I,b,T){function O(){I.removeChild(F(b,T))}var k=T.attributes&&T.attributes.onremove;k?k(b,O):O()}function R(I,b,T,O,k){if(O!==T)if(T==null||T.nodeName!==O.nodeName){var $=M(O,k);I.insertBefore($,b),T!=null&&H(I,b,T),b=$}else if(T.nodeName==null)b.nodeValue=O;else{V(b,T.attributes,O.attributes,k=k||O.nodeName==="svg");for(var he={},ye={},ge=[],Ie=T.children,ue=O.children,Q=0;Q<Ie.length;Q++){ge[Q]=b.childNodes[Q];var Le=_(Ie[Q]);Le!=null&&(he[Le]=[ge[Q],Ie[Q]])}for(var Q=0,z=0;z<ue.length;){var Le=_(Ie[Q]),se=_(ue[z]=g(ue[z]));if(ye[Le]){Q++;continue}if(se!=null&&se===_(Ie[Q+1])){Le==null&&H(b,ge[Q],Ie[Q]),Q++;continue}if(se==null||c)Le==null&&(R(b,ge[Q],Ie[Q],ue[z],k),z++),Q++;else{var re=he[se]||[];Le===se?(R(b,re[0],re[1],ue[z],k),Q++):re[0]?R(b,b.insertBefore(re[0],ge[Q]),re[1],ue[z],k):R(b,ge[Q],null,ue[z],k),ye[se]=ue[z],z++}}for(;Q<Ie.length;)_(Ie[Q])==null&&H(b,ge[Q],Ie[Q]),Q++;for(var Q in he)ye[Q]||H(b,he[Q][0],he[Q][1])}return b}}var Zte=Array.isArray;function P(e){var r,t,n=typeof e,i="";if(n==="string"||n==="number")return e||"";if(Zte(e)&&e.length>0)for(r=0,t=e.length;r<t;r++)(n=P(e[r]))!==""&&(i+=(i&&" ")+n);else for(r in e)e.hasOwnProperty(r)&&e[r]&&(i+=(i&&" ")+r);return i}var W={CONSENT_LEGAL:"consentlegal",LIKERT:"likert",MULTIPLE_CHOICE:"multiplechoice",MULTIPLE_SELECT:"multipleselect",NPS:"nps",OPEN:"open",TEXT_URL_PROMPT:"texturlprompt",THANKS:"thanks",VIDEO_VOICE:"videovoice",RECORDED_TASK:"recordedtask",UPLOADING:"uploading"};var c2=()=>y("svg",{width:"100",height:"13",viewBox:"0 0 100 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",alt:"Powered by Sprig"},y("path",{d:"M3.0369 0.839981H0.0249023V8.99998H1.3209V6.53998H2.8569C4.8969 6.53998 6.2409 5.37598 6.2409 3.62398C6.2409 1.95598 4.9689 0.839981 3.0369 0.839981ZM3.0009 5.35198H1.3209V2.02798H3.0009C4.1769 2.02798 4.9689 2.67598 4.9689 3.62398C4.9689 4.65598 4.1769 5.35198 3.0009 5.35198Z",fill:"#5D696F"}),y("path",{d:"M9.90653 3.21598C8.15453 3.21598 6.90653 4.45198 6.90653 6.17998C6.90653 7.90798 8.15453 9.14398 9.90653 9.14398C11.6585 9.14398 12.9065 7.90798 12.9065 6.17998C12.9065 4.45198 11.6585 3.21598 9.90653 3.21598ZM9.90653 8.01598C8.88653 8.01598 8.15453 7.23598 8.15453 6.17998C8.15453 5.11198 8.88653 4.34398 9.90653 4.34398C10.9265 4.34398 11.6585 5.11198 11.6585 6.17998C11.6585 7.23598 10.9265 8.01598 9.90653 8.01598Z",fill:"#5D696F"}),y("path",{d:"M20.9631 3.35998L19.7391 7.11598L18.3951 3.35998H17.3271L15.9831 7.12798L14.7591 3.35998H13.4151L15.4431 8.99998H16.5351L17.8671 5.08798L19.1871 8.99998H20.2791L22.3071 3.35998H20.9631Z",fill:"#5D696F"}),y("path",{d:"M25.7246 3.21598C24.0086 3.21598 22.8206 4.51198 22.8206 6.17998C22.8206 7.85998 24.0206 9.14398 25.7966 9.14398C27.0206 9.14398 28.0166 8.54398 28.3766 7.52398H27.0086C26.7806 7.88398 26.3606 8.05198 25.8086 8.05198C24.7526 8.05198 24.2126 7.40398 24.0926 6.55198H28.5206C28.7606 4.64398 27.5966 3.21598 25.7246 3.21598ZM25.7366 4.27198C26.6126 4.27198 27.2126 4.76398 27.2846 5.68798H24.1166C24.2606 4.89598 24.8006 4.27198 25.7366 4.27198Z",fill:"#5D696F"}),y("path",{d:"M31.1297 4.12798V3.35998H29.8817V8.99998H31.1297V5.44798C31.6337 4.78798 32.3177 4.45198 33.2177 4.41598V3.23998C32.3537 3.23998 31.6457 3.56398 31.1297 4.12798Z",fill:"#5D696F"}),y("path",{d:"M36.8222 3.21598C35.1062 3.21598 33.9182 4.51198 33.9182 6.17998C33.9182 7.85998 35.1182 9.14398 36.8942 9.14398C38.1182 9.14398 39.1142 8.54398 39.4742 7.52398H38.1062C37.8782 7.88398 37.4582 8.05198 36.9062 8.05198C35.8502 8.05198 35.3102 7.40398 35.1902 6.55198H39.6182C39.8582 4.64398 38.6942 3.21598 36.8222 3.21598ZM36.8342 4.27198C37.7102 4.27198 38.3102 4.76398 38.3822 5.68798H35.2142C35.3582 4.89598 35.8982 4.27198 36.8342 4.27198Z",fill:"#5D696F"}),y("path",{d:"M45.4886 0.47998V3.80398C45.0086 3.43198 44.3966 3.21598 43.6766 3.21598C42.0926 3.21598 40.8206 4.53598 40.8206 6.16798C40.8206 7.82398 42.0926 9.14398 43.6766 9.14398C44.3966 9.14398 45.0086 8.92798 45.4886 8.54398V8.99998H46.7246V0.47998H45.4886ZM43.8566 8.01598C42.8246 8.01598 42.0686 7.17598 42.0686 6.16798C42.0686 5.17198 42.8246 4.34398 43.8566 4.34398C44.4806 4.34398 45.0686 4.55998 45.4886 5.15998V7.18798C45.0686 7.79998 44.4806 8.01598 43.8566 8.01598Z",fill:"#5D696F"}),y("path",{d:"M54.6797 3.21598C53.9597 3.21598 53.3477 3.43198 52.8797 3.79198V0.47998H51.6317V8.99998H52.8797V8.55598C53.3477 8.92798 53.9597 9.14398 54.6797 9.14398C56.2637 9.14398 57.5477 7.82398 57.5477 6.16798C57.5477 4.53598 56.2637 3.21598 54.6797 3.21598ZM54.4997 8.01598C53.8757 8.01598 53.2997 7.79998 52.8797 7.21198V5.13598C53.2997 4.54798 53.8757 4.34398 54.4997 4.34398C55.5437 4.34398 56.2997 5.17198 56.2997 6.16798C56.2997 7.17598 55.5437 8.01598 54.4997 8.01598Z",fill:"#5D696F"}),y("path",{d:"M63.3347 3.34798L61.3907 7.76398L59.2667 3.34798H57.9347L60.8147 9.08398L59.6267 11.784H60.9347L64.6547 3.34798H63.3347Z",fill:"#5D696F"}),y("path",{d:"M71.1466 4.34661C69.8092 4.05038 69.131 3.53001 69.131 2.80065C69.131 2.04705 69.8546 1.47822 70.8142 1.47822C71.8034 1.47822 72.5496 2.10339 72.5496 2.9321V2.99813H73.9165V2.9321C73.9165 1.41764 72.5883 0.272705 70.8271 0.272705C69.9784 0.272705 69.2009 0.533191 68.6379 1.0057C68.3584 1.23619 68.1339 1.52487 67.9805 1.8511C67.8271 2.17733 67.7486 2.53303 67.7506 2.89273C67.7451 3.22255 67.8137 3.54949 67.9515 3.84994C68.0894 4.15038 68.293 4.41686 68.5478 4.63012C69.0218 5.04266 69.6945 5.34798 70.5463 5.5388C71.9806 5.85502 72.7078 6.39296 72.7078 7.13686C72.7078 7.94316 71.9156 8.55076 70.8682 8.55076C69.7804 8.55076 68.9599 7.87531 68.9599 6.97996V6.91393H67.5918V6.97996C67.5918 8.56348 68.9942 9.75688 70.8535 9.75688C71.7426 9.75688 72.5588 9.48731 73.1518 8.99662C73.446 8.75831 73.6827 8.4581 73.8445 8.1179C74.0063 7.7777 74.0891 7.40611 74.087 7.03024C74.087 5.6854 73.0991 4.78217 71.1466 4.34661Z",fill:"#5D696F"}),y("path",{d:"M78.7986 2.50806C78.2874 2.50175 77.7823 2.6176 77.3263 2.84576C76.8703 3.07391 76.4768 3.40759 76.1795 3.81837V2.66738H74.8789V12.0752H76.1795V8.48716C76.4768 8.8979 76.8703 9.23152 77.3263 9.45957C77.7824 9.68763 78.2875 9.80335 78.7986 9.79687C80.8167 9.79687 82.3381 8.23031 82.3381 6.15246C82.3381 4.07462 80.8167 2.50806 78.7986 2.50806ZM80.9835 6.42264C80.9316 6.9629 80.6921 7.46879 80.3056 7.8544C79.919 8.24001 79.4093 8.48156 78.863 8.53804C78.1369 8.61074 77.4605 8.40295 76.9583 7.95407C76.4561 7.50518 76.1795 6.86365 76.1795 6.15246C76.1795 4.7846 77.2122 3.75295 78.5815 3.75295C79.2904 3.75295 79.9306 4.02191 80.3776 4.51018C80.8387 5.01116 81.054 5.69025 80.9835 6.42264Z",fill:"#5D696F"}),y("path",{d:"M98.2908 2.6692V3.80747C97.6776 2.97875 96.7302 2.50806 95.6583 2.50806C93.6482 2.50806 92.1323 4.04615 92.1323 6.08582C92.1323 8.1255 93.6482 9.66299 95.6583 9.66299C96.7345 9.66299 97.6819 9.19714 98.2908 8.37691V8.55198C98.2908 9.96891 97.3906 10.8843 95.9974 10.8843C95.0561 10.8843 94.2718 10.4766 93.8996 9.79384L93.8806 9.7587H92.5389L92.5695 9.84654C92.7961 10.514 93.2392 11.0889 93.8303 11.4822C94.4233 11.8723 95.1726 12.0783 95.9974 12.0783C97.0552 12.0783 97.9554 11.7451 98.6017 11.1157C99.2481 10.4862 99.5915 9.6012 99.5915 8.56773V2.6692H98.2908ZM97.5611 7.842C97.0092 8.36418 96.2225 8.58348 95.4001 8.44294C94.9132 8.35796 94.4664 8.12184 94.1245 7.76889C93.7827 7.41593 93.5636 6.96452 93.4992 6.48019C93.3833 5.66541 93.631 4.89364 94.1786 4.36418C94.6383 3.92741 95.2542 3.68788 95.8919 3.69782C96.0464 3.69795 96.2006 3.71031 96.3531 3.73477C97.3459 3.89349 98.1314 4.70403 98.2632 5.71024C98.3749 6.53835 98.1179 7.31436 97.5611 7.842Z",fill:"#5D696F"}),y("path",{d:"M90.705 0.0995975C90.4602 0.046773 90.2043 0.0911971 89.9925 0.223269C89.7806 0.35534 89.6299 0.564452 89.5729 0.805409C89.5159 1.04637 89.5571 1.29982 89.6877 1.51098C89.8183 1.72215 90.0277 1.87407 90.2708 1.93391C90.3415 1.94954 90.4136 1.95747 90.486 1.95754C90.72 1.9579 90.9458 1.87325 91.1206 1.71973C91.2955 1.5662 91.407 1.35452 91.4341 1.125C91.4611 0.89547 91.4017 0.664135 91.2673 0.475046C91.1329 0.285958 90.9327 0.152325 90.705 0.0995975V0.0995975Z",fill:"#5D696F"}),y("path",{d:"M89.8366 8.39143H88.715C87.9178 8.39143 87.4389 7.85531 87.4389 6.95693C87.4389 6.08096 87.8681 5.03659 88.7432 3.76444L88.7548 3.74748V3.38825L85.0271 2.86727C85.0284 2.71553 84.9886 2.56622 84.9118 2.43478C84.8351 2.30335 84.7241 2.19458 84.5905 2.11973C84.2563 1.938 83.8908 1.938 83.5879 2.11368C83.4361 2.2023 83.3122 2.33077 83.23 2.4848C83.1477 2.63884 83.1103 2.8124 83.1219 2.98618C83.1336 3.15996 83.1938 3.32714 83.2958 3.46914C83.3979 3.61114 83.5379 3.72238 83.7001 3.79049L82.5405 9.63753H83.8283L84.8977 4.08551L86.9115 4.42111C86.3701 5.38007 86.0953 6.27421 86.0953 7.07869C86.0953 8.56347 87.0041 9.53576 88.4734 9.62965V9.63753H91.1341V2.69099H89.8366V8.39143Z",fill:"#5D696F"}));var Ss={CAMERA:"camera",SCREEN:"screen"},Ur={VIDEO:"video",AUDIO:"audio",SCREEN:"screen"},Me={PERMISSION_STATUS:"permission.status",AV_PERMISSION:"av.permission",SCREEN_PERMISSION:"screen.permission",BEGIN_RECORDING:"begin.recording",START_TASK:"start.task",FINISH_TASK:"finish.task"},B={PERMISSION_DESCRIPTORS:"permission.descriptors",PERMISSION_STATUS_CALLBACK:"permission.status.callback",STREAM_READY_CALLBACK:"stream.ready.callback",STREAM_CANCELLED_CALLBACK:"stream.canceled.callback",TASK_COMPLETE_CALLBACK:"task.complete.callback",TASK_RESPONSE:"task.response",TASK_STATUS:"task.status",COMPLETED:"completed",GIVEN_UP:"given.up",ABANDONED:"abandoned",RECORDING_MEDIA_TYPES:"recording.media.types",START_RECORDING_CALLBACK:"start.recording.callback",PASSTHROUGH_DATA:"passthrough.data",CURRENT_INDEX:"current.index",UPLOAD_CALLBACK:"upload.callback",PROGRESS_CALLBACK:"progress.callback",BEGIN_UPLOAD:"begin.callback"};var mf=1,bs={eq(e,r){return e==r},neq(e,r){return!this.eq(e,r)},gt(e,r){return e>r},gte(e,r){return e>=r},lt(e,r){return e<r},lte(e,r){return e<=r},list_exact(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:e.slice().sort().join(",")===r.slice().sort().join(",")},list_all(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:!r.some(t=>e.indexOf(t)===-1)},list_alo(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:r.some(t=>e.indexOf(t)!=-1)}},qs=(e,r,t)=>{switch(r){case W.VIDEO_VOICE:return e&&e.value;case W.OPEN:return!!t;case W.MULTIPLE_SELECT:return t&&!!Object.keys(t).length;case W.RECORDED_TASK:return t.taskStatus===B.COMPLETED;case W.TEXT_URL_PROMPT:return!e.value;case W.CONSENT_LEGAL:return t!==void 0;case W.MULTIPLE_CHOICE:return t!==void 0;case W.NPS:return t!==null;case W.LIKERT:return t!==null;default:return!0}},Is=({cards:e,index:r,selectedValue:t,hasEndCard:n,hasValidAnswer:i=!0,uploadProgress:a={}})=>{if(r>=e.length||r<0)return null;let o=e[r]&&e[r].props&&e[r].props.routingOptions||[],s=null,u=null;for(let v=0;v<o.length;v++){let{comparator:g,target:h,value:m}=o[v];if(g==="answered"&&i){s=h;break}else if(g==="given_up"&&(t==null?void 0:t.taskStatus)===B.GIVEN_UP){s=h;break}else if(g==="skipped"&&!i&&(t==null?void 0:t.taskStatus)!==B.GIVEN_UP){s=h;break}else if(i&&bs[g]&&bs[g](t,m)){s=h;break}}let c=s&&parseInt(s,10);s&&!isNaN(c)&&(c===-1||c>r)&&(u=c);let f=e.findIndex(v=>v.type===W.UPLOADING),d;return f>0&&n?d=e.length-3:f>0||n?d=e.length-2:d=e.length-1,r>=d||u===-1||u>d?f>0&&Object.values(a).some(g=>g.isSubmitted&&!g.isComplete)?f:n?e.length-1:null:u!==null?u:r+1},Jte=13,ene=e=>e.reduce((r,t)=>r.concat(r.map(n=>[...n,t])),[[]]),d2=e=>!!(Array.isArray(e)?e.length:e),rne=e=>{switch(e.type){case W.MULTIPLE_SELECT:return!e||!e.props||!e.props.options?null:e.props.options.length>Jte?e.props.options.map(r=>[r.value]):ene(e.props.options.map(r=>r.value));case W.MULTIPLE_CHOICE:return!e||!e.props||!e.props.options?null:e.props.options.map(r=>r.value);case W.LIKERT:return[1,2,3,4,5];case W.NPS:return[0,1,2,3,4,5,6,7,8,9,10];case W.VIDEO_VOICE:case W.OPEN:return[mf,""];case W.RECORDED_TASK:return[mf,B.GIVEN_UP,""];case W.TEXT_URL_PROMPT:case W.CONSENT_LEGAL:default:return[mf]}},f2=(e,r)=>{if(!e||!e.length||r>=e.length||r<0||!e[r].type||e[r].type===W.UPLOADING)return 0;let t=e.filter(i=>i.type&&i.type!==W.UPLOADING);if(r===t.length-1)return 1;let n={[t.length-1]:1,[-1]:0};for(let i=t.length-2;i>=r;i--){let a=t[i],o=a&&a.props&&a.props.routingOptions||[];if(o.length===0){n[i]=n[i+1]+1;continue}let s=0,u=rne(a);if(u===null)return t.length-1-r;for(let c=0;c<o.length&&u.length!==0;c++){let{comparator:f,target:d,value:v}=o[c],g=u.filter(h=>!(f==="answered"&&d2(h)&&h!==B.GIVEN_UP||f==="skipped"&&!d2(h)||f==="given_up"&&h===B.GIVEN_UP||bs[f]&&bs[f](h,v)));if(g.length<u.length){let h=parseInt(d,10);if(h!==-1&&h<=i||h>=t.length)return t.length-1-r;s=Math.max(n[h]+1,s)}u=g}u.length>0&&(s=Math.max(n[i+1]+1,s)),n[i]=s}return n[r]};var v2=()=>e=>{let t=(e.app.deck.cards||[]).filter(C=>C.type&&C.type!==W.UPLOADING),n=e.app.deck.index,{showSurveyBrand:i,marketingUrl:a,slugName:o,surveyId:s,viewedCardCount:u,headers:c,deck:f,border:d,viewDocument:v,styleNonce:g}=e.app,h=f2(f.cards||[],f.index),m=u+1,E=m/(m+h),S=()=>i?y("a",{style:"display: block; margin: 5px 0",href:`${a}?utm_source=survey_branding&utm_medium=website&utm_campaign=${o}&utm_content=${s}`,target:"_blank"},c2):null;if(!t||t.length===1)return y("footer",{className:"ul-footer",style:!i&&{marginBottom:"10px"}},S);let x=()=>t.length>1?y("div",{id:"ul-progress-bar-container"},y("div",{id:"ul-progress-bar-current",style:A()})):null,A=()=>{let C=v.getElementById("ul-progress-bar-container"),L=C?C.clientWidth:250,M=C?`${v.getElementById("ul-progress-bar-current").style.width.replace("px","")}`:0,V=`${parseFloat((E*L).toFixed(4))}`;return M!==V&&_(M,V),{width:`${V}px`,animation:e.app.uploadingCardViewed?"":"growRight 1s",border:`1px solid ${d||"#000"}`}},_=(C,L)=>{let M=`
|
|
2
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var kt=l((ble,l0)=>{var z7=Ce(),K7=Ii(),io="["+K7+"]",Y7=RegExp("^"+io+io+"*"),W7=RegExp(io+io+"*$"),ol=function(e){return function(r){var t=String(z7(r));return e&1&&(t=t.replace(Y7,"")),e&2&&(t=t.replace(W7,"")),t}};l0.exports={start:ol(1),end:ol(2),trim:ol(3)}});var ao=l((qle,f0)=>{var X7=N(),c0=Ii(),d0="\u200B\x85\u180E";f0.exports=function(e){return X7(function(){return!!c0[e]()||d0[e]()!=d0||c0[e].name!==e})}});var v0=l(()=>{"use strict";var Q7=p(),Z7=kt().trim,J7=ao();Q7({target:"String",proto:!0,forced:J7("trim")},{trim:function(){return Z7(this)}})});var h0=l(()=>{"use strict";var eM=p(),rM=kt().start,tM=ao(),g0=tM("trimStart"),p0=g0?function(){return rM(this)}:"".trimStart;eM({target:"String",proto:!0,forced:g0},{trimStart:p0,trimLeft:p0})});var E0=l(()=>{"use strict";var nM=p(),iM=kt().end,aM=ao(),y0=aM("trimEnd"),m0=y0?function(){return iM(this)}:"".trimEnd;nM({target:"String",proto:!0,forced:y0},{trimEnd:m0,trimRight:m0})});var sl=l(()=>{"use strict";var oM=Mt().charAt,S0=qe(),sM=Xa(),b0="String Iterator",uM=S0.set,lM=S0.getterFor(b0);sM(String,"String",function(e){uM(this,{type:b0,string:String(e),index:0})},function(){var r=lM(this),t=r.string,n=r.index,i;return n>=t.length?{value:void 0,done:!0}:(i=oM(t,n),r.index+=i.length,{value:i,done:!1})})});var Ye=l((Ole,q0)=>{var cM=Ce(),dM=/"/g;q0.exports=function(e,r,t,n){var i=String(cM(e)),a="<"+r;return t!==""&&(a+=" "+t+'="'+String(n).replace(dM,""")+'"'),a+">"+i+"</"+r+">"}});var We=l((Lle,I0)=>{var fM=N();I0.exports=function(e){return fM(function(){var r=""[e]('"');return r!==r.toLowerCase()||r.split('"').length>3})}});var x0=l(()=>{"use strict";var vM=p(),pM=Ye(),gM=We();vM({target:"String",proto:!0,forced:gM("anchor")},{anchor:function(r){return pM(this,"a","name",r)}})});var A0=l(()=>{"use strict";var hM=p(),mM=Ye(),yM=We();hM({target:"String",proto:!0,forced:yM("big")},{big:function(){return mM(this,"big","","")}})});var w0=l(()=>{"use strict";var EM=p(),SM=Ye(),bM=We();EM({target:"String",proto:!0,forced:bM("blink")},{blink:function(){return SM(this,"blink","","")}})});var _0=l(()=>{"use strict";var qM=p(),IM=Ye(),xM=We();qM({target:"String",proto:!0,forced:xM("bold")},{bold:function(){return IM(this,"b","","")}})});var C0=l(()=>{"use strict";var AM=p(),wM=Ye(),_M=We();AM({target:"String",proto:!0,forced:_M("fixed")},{fixed:function(){return wM(this,"tt","","")}})});var T0=l(()=>{"use strict";var CM=p(),TM=Ye(),RM=We();CM({target:"String",proto:!0,forced:RM("fontcolor")},{fontcolor:function(r){return TM(this,"font","color",r)}})});var R0=l(()=>{"use strict";var OM=p(),LM=Ye(),PM=We();OM({target:"String",proto:!0,forced:PM("fontsize")},{fontsize:function(r){return LM(this,"font","size",r)}})});var O0=l(()=>{"use strict";var NM=p(),DM=Ye(),MM=We();NM({target:"String",proto:!0,forced:MM("italics")},{italics:function(){return DM(this,"i","","")}})});var L0=l(()=>{"use strict";var UM=p(),kM=Ye(),jM=We();UM({target:"String",proto:!0,forced:jM("link")},{link:function(r){return kM(this,"a","href",r)}})});var P0=l(()=>{"use strict";var FM=p(),BM=Ye(),$M=We();FM({target:"String",proto:!0,forced:$M("small")},{small:function(){return BM(this,"small","","")}})});var N0=l(()=>{"use strict";var VM=p(),HM=Ye(),GM=We();VM({target:"String",proto:!0,forced:GM("strike")},{strike:function(){return HM(this,"strike","","")}})});var D0=l(()=>{"use strict";var zM=p(),KM=Ye(),YM=We();zM({target:"String",proto:!0,forced:YM("sub")},{sub:function(){return KM(this,"sub","","")}})});var M0=l(()=>{"use strict";var WM=p(),XM=Ye(),QM=We();WM({target:"String",proto:!0,forced:QM("sup")},{sup:function(){return XM(this,"sup","","")}})});var xi=l((ace,k0)=>{var ZM=ee(),U0=ft();k0.exports=function(e,r,t){var n,i;return U0&&typeof(n=r.constructor)=="function"&&n!==t&&ZM(i=n.prototype)&&i!==t.prototype&&U0(e,i),e}});var $0=l(()=>{var JM=te(),F0=K(),eU=ln(),rU=xi(),tU=le().f,nU=st().f,iU=bn(),aU=Ut(),oU=Ne(),sU=N(),uU=vt(),lU=Z(),cU=lU("match"),Ar=F0.RegExp,ul=Ar.prototype,Ai=/a/g,ll=/a/g,B0=new Ar(Ai)!==Ai,dU=JM&&eU("RegExp",!B0||sU(function(){return ll[cU]=!1,Ar(Ai)!=Ai||Ar(ll)==ll||Ar(Ai,"i")!="/a/i"}));if(dU){for(xr=function(r,t){var n=this instanceof xr,i=iU(r),a=t===void 0;return!n&&i&&r.constructor===xr&&a?r:rU(B0?new Ar(i&&!a?r.source:r,t):Ar((i=r instanceof xr)?r.source:r,i&&a?aU.call(r):t),n?this:ul,xr)},j0=function(e){e in xr||tU(xr,e,{configurable:!0,get:function(){return Ar[e]},set:function(r){Ar[e]=r}})},cl=nU(Ar),dl=0;cl.length>dl;)j0(cl[dl++]);ul.constructor=xr,xr.prototype=ul,oU(F0,"RegExp",xr)}var xr,j0,cl,dl;uU("RegExp")});var H0=l(()=>{"use strict";var fU=p(),V0=yi();fU({target:"RegExp",proto:!0,forced:/./.exec!==V0},{exec:V0})});var G0=l(()=>{var vU=te(),pU=le(),gU=Ut();vU&&/./g.flags!="g"&&pU.f(RegExp.prototype,"flags",{configurable:!0,get:gU})});var Y0=l(()=>{"use strict";var hU=Ne(),mU=w(),yU=N(),EU=Ut(),fl="toString",z0=RegExp.prototype,K0=z0[fl],SU=yU(function(){return K0.call({source:"a",flags:"b"})!="/a/b"}),bU=K0.name!=fl;(SU||bU)&&hU(RegExp.prototype,fl,function(){var r=mU(this),t=String(r.source),n=r.flags,i=String(n===void 0&&r instanceof RegExp&&!("flags"in z0)?EU.call(r):n);return"/"+t+"/"+i},{unsafe:!0})});var so=l((pce,X0)=>{var qU=K(),IU=kt().trim,W0=Ii(),oo=qU.parseInt,xU=/^[+-]?0[Xx]/,AU=oo(W0+"08")!==8||oo(W0+"0x16")!==22;X0.exports=AU?function(r,t){var n=IU(String(r));return oo(n,t>>>0||(xU.test(n)?16:10))}:oo});var Z0=l(()=>{var wU=p(),Q0=so();wU({global:!0,forced:parseInt!=Q0},{parseInt:Q0})});var pl=l((mce,J0)=>{var _U=K(),CU=kt().trim,TU=Ii(),vl=_U.parseFloat,RU=1/vl(TU+"-0")!==-1/0;J0.exports=RU?function(r){var t=CU(String(r)),n=vl(t);return n===0&&t.charAt(0)=="-"?-0:n}:vl});var rE=l(()=>{var OU=p(),eE=pl();OU({global:!0,forced:parseFloat!=eE},{parseFloat:eE})});var oE=l(()=>{"use strict";var LU=te(),iE=K(),PU=ln(),NU=Ne(),tE=pe(),aE=Xe(),DU=xi(),MU=nr(),UU=N(),kU=Ve(),jU=st().f,FU=Pe().f,BU=le().f,$U=kt().trim,_i="Number",gt=iE[_i],lo=gt.prototype,VU=aE(kU(lo))==_i,nE=function(e){var r=MU(e,!1),t,n,i,a,o,s,u,c;if(typeof r=="string"&&r.length>2){if(r=$U(r),t=r.charCodeAt(0),t===43||t===45){if(n=r.charCodeAt(2),n===88||n===120)return NaN}else if(t===48){switch(r.charCodeAt(1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+r}for(o=r.slice(2),s=o.length,u=0;u<s;u++)if(c=o.charCodeAt(u),c<48||c>a)return NaN;return parseInt(o,i)}}return+r};if(PU(_i,!gt(" 0o1")||!gt("0b1")||gt("+0x1"))){for(pt=function(r){var t=arguments.length<1?0:r,n=this;return n instanceof pt&&(VU?UU(function(){lo.valueOf.call(n)}):aE(n)!=_i)?DU(new gt(nE(t)),n,pt):nE(t)},gl=LU?jU(gt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),uo=0;gl.length>uo;uo++)tE(gt,wi=gl[uo])&&!tE(pt,wi)&&BU(pt,wi,FU(gt,wi));pt.prototype=lo,lo.constructor=pt,NU(iE,_i,pt)}var pt,gl,uo,wi});var sE=l(()=>{var HU=p();HU({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})});var hl=l((xce,uE)=>{var GU=K(),zU=GU.isFinite;uE.exports=Number.isFinite||function(r){return typeof r=="number"&&zU(r)}});var lE=l(()=>{var KU=p(),YU=hl();KU({target:"Number",stat:!0},{isFinite:YU})});var ml=l((_ce,cE)=>{var WU=ee(),XU=Math.floor;cE.exports=function(r){return!WU(r)&&isFinite(r)&&XU(r)===r}});var dE=l(()=>{var QU=p(),ZU=ml();QU({target:"Number",stat:!0},{isInteger:ZU})});var fE=l(()=>{var JU=p();JU({target:"Number",stat:!0},{isNaN:function(r){return r!=r}})});var vE=l(()=>{var ek=p(),rk=ml(),tk=Math.abs;ek({target:"Number",stat:!0},{isSafeInteger:function(r){return rk(r)&&tk(r)<=9007199254740991}})});var pE=l(()=>{var nk=p();nk({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})});var gE=l(()=>{var ik=p();ik({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})});var mE=l(()=>{var ak=p(),hE=pl();ak({target:"Number",stat:!0,forced:Number.parseFloat!=hE},{parseFloat:hE})});var EE=l(()=>{var ok=p(),yE=so();ok({target:"Number",stat:!0,forced:Number.parseInt!=yE},{parseInt:yE})});var yl=l(($ce,SE)=>{var sk=Xe();SE.exports=function(e){if(typeof e!="number"&&sk(e)!="Number")throw TypeError("Incorrect invocation");return+e}});var IE=l(()=>{"use strict";var uk=p(),lk=Ge(),ck=yl(),El=to(),dk=N(),bE=1 .toFixed,qE=Math.floor,In=function(e,r,t){return r===0?t:r%2===1?In(e,r-1,t*e):In(e*e,r/2,t)},fk=function(e){for(var r=0,t=e;t>=4096;)r+=12,t/=4096;for(;t>=2;)r+=1,t/=2;return r},vk=bE&&(8e-5 .toFixed(3)!=="0.000"||.9 .toFixed(0)!=="1"||1.255 .toFixed(2)!=="1.25"||0xde0b6b3a7640080 .toFixed(0)!=="1000000000000000128")||!dk(function(){bE.call({})});uk({target:"Number",proto:!0,forced:vk},{toFixed:function(r){var t=ck(this),n=lk(r),i=[0,0,0,0,0,0],a="",o="0",s,u,c,f,d=function(h,m){for(var E=-1,S=m;++E<6;)S+=h*i[E],i[E]=S%1e7,S=qE(S/1e7)},v=function(h){for(var m=6,E=0;--m>=0;)E+=i[m],i[m]=qE(E/h),E=E%h*1e7},g=function(){for(var h=6,m="";--h>=0;)if(m!==""||h===0||i[h]!==0){var E=String(i[h]);m=m===""?E:m+El.call("0",7-E.length)+E}return m};if(n<0||n>20)throw RangeError("Incorrect fraction digits");if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return String(t);if(t<0&&(a="-",t=-t),t>1e-21)if(s=fk(t*In(2,69,1))-69,u=s<0?t*In(2,-s,1):t/In(2,s,1),u*=4503599627370496,s=52-s,s>0){for(d(0,u),c=n;c>=7;)d(1e7,0),c-=7;for(d(In(10,c,1),0),c=s-1;c>=23;)v(1<<23),c-=23;v(1<<c),d(1,1),v(2),o=g()}else d(0,u),d(1<<-s,0),o=g()+El.call("0",n);return n>0?(f=o.length,o=a+(f<=n?"0."+El.call("0",n-f)+o:o.slice(0,f-n)+"."+o.slice(f-n))):o=a+o,o}})});var wE=l(()=>{"use strict";var pk=p(),xE=N(),AE=yl(),co=1 .toPrecision,gk=xE(function(){return co.call(1,void 0)!=="1"})||!xE(function(){co.call({})});pk({target:"Number",proto:!0,forced:gk},{toPrecision:function(r){return r===void 0?co.call(AE(this)):co.call(AE(this),r)}})});var Sl=l((Kce,_E)=>{var hk=Math.log;_E.exports=Math.log1p||function(r){return(r=+r)>-1e-8&&r<1e-8?r-r*r/2:hk(1+r)}});var TE=l(()=>{var mk=p(),yk=Sl(),bl=Math.acosh,Ek=Math.log,CE=Math.sqrt,Sk=Math.LN2,bk=!bl||Math.floor(bl(Number.MAX_VALUE))!=710||bl(1/0)!=1/0;mk({target:"Math",stat:!0,forced:bk},{acosh:function(r){return(r=+r)<1?NaN:r>9490626562425156e-8?Ek(r)+Sk:yk(r-1+CE(r-1)*CE(r+1))}})});var LE=l(()=>{var qk=p(),RE=Math.asinh,Ik=Math.log,xk=Math.sqrt;function OE(e){return!isFinite(e=+e)||e==0?e:e<0?-OE(-e):Ik(e+xk(e*e+1))}qk({target:"Math",stat:!0,forced:!(RE&&1/RE(0)>0)},{asinh:OE})});var NE=l(()=>{var Ak=p(),PE=Math.atanh,wk=Math.log;Ak({target:"Math",stat:!0,forced:!(PE&&1/PE(-0)<0)},{atanh:function(r){return(r=+r)==0?r:wk((1+r)/(1-r))/2}})});var fo=l((ede,DE)=>{DE.exports=Math.sign||function(r){return(r=+r)==0||r!=r?r:r<0?-1:1}});var ME=l(()=>{var _k=p(),Ck=fo(),Tk=Math.abs,Rk=Math.pow;_k({target:"Math",stat:!0},{cbrt:function(r){return Ck(r=+r)*Rk(Tk(r),1/3)}})});var UE=l(()=>{var Ok=p(),Lk=Math.floor,Pk=Math.log,Nk=Math.LOG2E;Ok({target:"Math",stat:!0},{clz32:function(r){return(r>>>=0)?31-Lk(Pk(r+.5)*Nk):32}})});var Ti=l((ade,kE)=>{var Ci=Math.expm1,Dk=Math.exp;kE.exports=!Ci||Ci(10)>22025.465794806718||Ci(10)<22025.465794806718||Ci(-2e-17)!=-2e-17?function(r){return(r=+r)==0?r:r>-1e-6&&r<1e-6?r+r*r/2:Dk(r)-1}:Ci});var FE=l(()=>{var Mk=p(),Uk=Ti(),jE=Math.cosh,kk=Math.abs,ql=Math.E;Mk({target:"Math",stat:!0,forced:!jE||jE(710)===1/0},{cosh:function(r){var t=Uk(kk(r)-1)+1;return(t+1/(t*ql*ql))*(ql/2)}})});var $E=l(()=>{var jk=p(),BE=Ti();jk({target:"Math",stat:!0,forced:BE!=Math.expm1},{expm1:BE})});var Al=l((cde,VE)=>{var Fk=fo(),Bk=Math.abs,po=Math.pow,xl=po(2,-52),vo=po(2,-23),$k=po(2,127)*(2-vo),Il=po(2,-126),Vk=function(e){return e+1/xl-1/xl};VE.exports=Math.fround||function(r){var t=Bk(r),n=Fk(r),i,a;return t<Il?n*Vk(t/Il/vo)*Il*vo:(i=(1+vo/xl)*t,a=i-(i-t),a>$k||a!=a?n*(1/0):n*a)}});var HE=l(()=>{var Hk=p(),Gk=Al();Hk({target:"Math",stat:!0},{fround:Gk})});var zE=l(()=>{var zk=p(),GE=Math.hypot,Kk=Math.abs,Yk=Math.sqrt,Wk=!!GE&&GE(1/0,NaN)!==1/0;zk({target:"Math",stat:!0,forced:Wk},{hypot:function(r,t){for(var n=0,i=0,a=arguments.length,o=0,s,u;i<a;)s=Kk(arguments[i++]),o<s?(u=o/s,n=n*u*u+1,o=s):s>0?(u=s/o,n+=u*u):n+=s;return o===1/0?1/0:o*Yk(n)}})});var YE=l(()=>{var Xk=p(),Qk=N(),KE=Math.imul,Zk=Qk(function(){return KE(4294967295,5)!=-5||KE.length!=2});Xk({target:"Math",stat:!0,forced:Zk},{imul:function(r,t){var n=65535,i=+r,a=+t,o=n&i,s=n&a;return 0|o*s+((n&i>>>16)*s+o*(n&a>>>16)<<16>>>0)}})});var WE=l(()=>{var Jk=p(),ej=Math.log,rj=Math.LOG10E;Jk({target:"Math",stat:!0},{log10:function(r){return ej(r)*rj}})});var XE=l(()=>{var tj=p(),nj=Sl();tj({target:"Math",stat:!0},{log1p:nj})});var QE=l(()=>{var ij=p(),aj=Math.log,oj=Math.LN2;ij({target:"Math",stat:!0},{log2:function(r){return aj(r)/oj}})});var ZE=l(()=>{var sj=p(),uj=fo();sj({target:"Math",stat:!0},{sign:uj})});var r1=l(()=>{var lj=p(),cj=N(),JE=Ti(),dj=Math.abs,e1=Math.exp,fj=Math.E,vj=cj(function(){return Math.sinh(-2e-17)!=-2e-17});lj({target:"Math",stat:!0,forced:vj},{sinh:function(r){return dj(r=+r)<1?(JE(r)-JE(-r))/2:(e1(r-1)-e1(-r-1))*(fj/2)}})});var i1=l(()=>{var pj=p(),t1=Ti(),n1=Math.exp;pj({target:"Math",stat:!0},{tanh:function(r){var t=t1(r=+r),n=t1(-r);return t==1/0?1:n==1/0?-1:(t-n)/(n1(r)+n1(-r))}})});var a1=l(()=>{var gj=cr();gj(Math,"Math",!0)});var o1=l(()=>{var hj=p(),mj=Math.ceil,yj=Math.floor;hj({target:"Math",stat:!0},{trunc:function(r){return(r>0?yj:mj)(r)}})});var s1=l(()=>{var Ej=p();Ej({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})});var u1=l(()=>{"use strict";var Sj=p(),bj=N(),qj=de(),Ij=nr(),xj=bj(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});Sj({target:"Date",proto:!0,forced:xj},{toJSON:function(r){var t=qj(this),n=Ij(t);return typeof n=="number"&&!isFinite(n)?null:t.toISOString()}})});var f1=l((Ude,d1)=>{"use strict";var l1=N(),jt=no().start,Aj=Math.abs,c1=Date.prototype,wj=c1.getTime,wl=c1.toISOString;d1.exports=l1(function(){return wl.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!l1(function(){wl.call(new Date(NaN))})?function(){if(!isFinite(wj.call(this)))throw RangeError("Invalid time value");var r=this,t=r.getUTCFullYear(),n=r.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+jt(Aj(t),i?6:4,0)+"-"+jt(r.getUTCMonth()+1,2,0)+"-"+jt(r.getUTCDate(),2,0)+"T"+jt(r.getUTCHours(),2,0)+":"+jt(r.getUTCMinutes(),2,0)+":"+jt(r.getUTCSeconds(),2,0)+"."+jt(n,3,0)+"Z"}:wl});var p1=l(()=>{var _j=p(),v1=f1();_j({target:"Date",proto:!0,forced:Date.prototype.toISOString!==v1},{toISOString:v1})});var m1=l(()=>{var Cj=Ne(),_l=Date.prototype,g1="Invalid Date",h1="toString",Tj=_l[h1],Rj=_l.getTime;new Date(NaN)+""!=g1&&Cj(_l,h1,function(){var r=Rj.call(this);return r===r?Tj.call(this):g1})});var E1=l(($de,y1)=>{"use strict";var Oj=w(),Lj=nr();y1.exports=function(e){if(e!=="string"&&e!=="number"&&e!=="default")throw TypeError("Incorrect hint");return Lj(Oj(this),e!=="number")}});var q1=l(()=>{var Pj=me(),Nj=E1(),Dj=Z(),S1=Dj("toPrimitive"),b1=Date.prototype;S1 in b1||Pj(b1,S1,Nj)});var A1=l(()=>{var Mj=p(),Uj=ce(),kj=N(),go=Uj("JSON","stringify"),jj=/[\uD800-\uDFFF]/g,I1=/^[\uD800-\uDBFF]$/,x1=/^[\uDC00-\uDFFF]$/,Fj=function(e,r,t){var n=t.charAt(r-1),i=t.charAt(r+1);return I1.test(e)&&!x1.test(i)||x1.test(e)&&!I1.test(n)?"\\u"+e.charCodeAt(0).toString(16):e},Bj=kj(function(){return go("\uDF06\uD834")!=='"\\udf06\\ud834"'||go("\uDEAD")!=='"\\udead"'});go&&Mj({target:"JSON",stat:!0,forced:Bj},{stringify:function(r,t,n){var i=go.apply(null,arguments);return typeof i=="string"?i.replace(jj,Fj):i}})});var w1=l(()=>{var $j=K(),Vj=cr();Vj($j.JSON,"JSON",!0)});var Cl=l((Wde,_1)=>{var Hj=K();_1.exports=Hj.Promise});var wr=l((Xde,C1)=>{var Gj=Ne();C1.exports=function(e,r,t){for(var n in r)Gj(e,n,r[n],t);return e}});var ar=l((Qde,T1)=>{T1.exports=function(e,r,t){if(!(e instanceof r))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return e}});var Tl=l((Zde,R1)=>{var zj=pi();R1.exports=/(iphone|ipod|ipad).*applewebkit/i.test(zj)});var ho=l((Jde,j1)=>{var _r=K(),Kj=N(),Yj=Xe(),Wj=be(),O1=Ys(),L1=qa(),Xj=Tl(),P1=_r.location,Dl=_r.setImmediate,Ml=_r.clearImmediate,N1=_r.process,D1=_r.MessageChannel,Rl=_r.Dispatch,Ol=0,Ri={},M1="onreadystatechange",Ft,Ll,Pl,Ul=function(e){if(Ri.hasOwnProperty(e)){var r=Ri[e];delete Ri[e],r()}},Nl=function(e){return function(){Ul(e)}},U1=function(e){Ul(e.data)},k1=function(e){_r.postMessage(e+"",P1.protocol+"//"+P1.host)};(!Dl||!Ml)&&(Dl=function(r){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ri[++Ol]=function(){(typeof r=="function"?r:Function(r)).apply(void 0,t)},Ft(Ol),Ol},Ml=function(r){delete Ri[r]},Yj(N1)=="process"?Ft=function(e){N1.nextTick(Nl(e))}:Rl&&Rl.now?Ft=function(e){Rl.now(Nl(e))}:D1&&!Xj?(Ll=new D1,Pl=Ll.port2,Ll.port1.onmessage=U1,Ft=Wj(Pl.postMessage,Pl,1)):_r.addEventListener&&typeof postMessage=="function"&&!_r.importScripts&&!Kj(k1)?(Ft=k1,_r.addEventListener("message",U1,!1)):M1 in L1("script")?Ft=function(e){O1.appendChild(L1("script"))[M1]=function(){O1.removeChild(this),Ul(e)}}:Ft=function(e){setTimeout(Nl(e),0)});j1.exports={set:Dl,clear:Ml}});var Vl=l((efe,G1)=>{var An=K(),Qj=Pe().f,Zj=Xe(),Jj=ho().set,eF=Tl(),F1=An.MutationObserver||An.WebKitMutationObserver,$l=An.process,kl=An.Promise,B1=Zj($l)=="process",$1=Qj(An,"queueMicrotask"),H1=$1&&$1.value,Oi,Bt,Li,xn,jl,Fl,Bl,V1;H1||(Oi=function(){var e,r;for(B1&&(e=$l.domain)&&e.exit();Bt;){r=Bt.fn,Bt=Bt.next;try{r()}catch(t){throw Bt?xn():Li=void 0,t}}Li=void 0,e&&e.enter()},B1?xn=function(){$l.nextTick(Oi)}:F1&&!eF?(jl=!0,Fl=document.createTextNode(""),new F1(Oi).observe(Fl,{characterData:!0}),xn=function(){Fl.data=jl=!jl}):kl&&kl.resolve?(Bl=kl.resolve(void 0),V1=Bl.then,xn=function(){V1.call(Bl,Oi)}):xn=function(){Jj.call(An,Oi)});G1.exports=H1||function(e){var r={fn:e,next:void 0};Li&&(Li.next=r),Bt||(Bt=r,xn()),Li=r}});var wn=l((rfe,K1)=>{"use strict";var z1=U(),rF=function(e){var r,t;this.promise=new e(function(n,i){if(r!==void 0||t!==void 0)throw TypeError("Bad Promise constructor");r=n,t=i}),this.resolve=z1(r),this.reject=z1(t)};K1.exports.f=function(e){return new rF(e)}});var Hl=l((tfe,Y1)=>{var tF=w(),nF=ee(),iF=wn();Y1.exports=function(e,r){if(tF(e),nF(r)&&r.constructor===e)return r;var t=iF.f(e),n=t.resolve;return n(r),t.promise}});var Gl=l((nfe,W1)=>{var aF=K();W1.exports=function(e,r){var t=aF.console;t&&t.error&&(arguments.length===1?t.error(e):t.error(e,r))}});var Pi=l((ife,X1)=>{X1.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}});var hS=l(()=>{"use strict";var Di=p(),Eo=j(),Xr=K(),aS=ce(),yo=Cl(),oF=Ne(),sF=wr(),uF=cr(),lF=vt(),cF=ee(),zl=U(),dF=ar(),fF=Xe(),vF=Aa(),Q1=Y(),pF=vi(),gF=_e(),oS=ho().set,sS=Vl(),uS=Hl(),hF=Gl(),lS=wn(),Kl=Pi(),Xl=qe(),mF=ln(),yF=Z(),Z1=Ga(),EF=yF("species"),Cr="Promise",J1=Xl.get,SF=Xl.set,bF=Xl.getterFor(Cr),je=yo,cS=Xr.TypeError,Yl=Xr.document,So=Xr.process,eS=aS("fetch"),Tn=lS.f,qF=Tn,Ni=fF(So)=="process",IF=!!(Yl&&Yl.createEvent&&Xr.dispatchEvent),dS="unhandledrejection",xF="rejectionhandled",rS=0,fS=1,AF=2,Ql=1,vS=2,mo,tS,Zl,nS,Mi=mF(Cr,function(){var e=vF(je)!==String(je);if(!e&&(Z1===66||!Ni&&typeof PromiseRejectionEvent!="function")||Eo&&!je.prototype.finally)return!0;if(Z1>=51&&/native code/.test(je))return!1;var r=je.resolve(1),t=function(i){i(function(){},function(){})},n=r.constructor={};return n[EF]=t,!(r.then(function(){})instanceof t)}),wF=Mi||!pF(function(e){je.all(e).catch(function(){})}),pS=function(e){var r;return cF(e)&&typeof(r=e.then)=="function"?r:!1},Jl=function(e,r,t){if(!r.notified){r.notified=!0;var n=r.reactions;sS(function(){for(var i=r.value,a=r.state==fS,o=0;n.length>o;){var s=n[o++],u=a?s.ok:s.fail,c=s.resolve,f=s.reject,d=s.domain,v,g,h;try{u?(a||(r.rejection===vS&&CF(e,r),r.rejection=Ql),u===!0?v=i:(d&&d.enter(),v=u(i),d&&(d.exit(),h=!0)),v===s.promise?f(cS("Promise-chain cycle")):(g=pS(v))?g.call(v,c,f):c(v)):f(i)}catch(m){d&&!h&&d.exit(),f(m)}}r.reactions=[],r.notified=!1,t&&!r.rejection&&_F(e,r)})}},gS=function(e,r,t){var n,i;IF?(n=Yl.createEvent("Event"),n.promise=r,n.reason=t,n.initEvent(e,!1,!0),Xr.dispatchEvent(n)):n={promise:r,reason:t},(i=Xr["on"+e])?i(n):e===dS&&hF("Unhandled promise rejection",t)},_F=function(e,r){oS.call(Xr,function(){var t=r.value,n=iS(r),i;if(n&&(i=Kl(function(){Ni?So.emit("unhandledRejection",t,e):gS(dS,e,t)}),r.rejection=Ni||iS(r)?vS:Ql,i.error))throw i.value})},iS=function(e){return e.rejection!==Ql&&!e.parent},CF=function(e,r){oS.call(Xr,function(){Ni?So.emit("rejectionHandled",e):gS(xF,e,r.value)})},_n=function(e,r,t,n){return function(i){e(r,t,i,n)}},Cn=function(e,r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=AF,Jl(e,r,!0))},Wl=function(e,r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(e===t)throw cS("Promise can't be resolved itself");var i=pS(t);i?sS(function(){var a={done:!1};try{i.call(t,_n(Wl,e,a,r),_n(Cn,e,a,r))}catch(o){Cn(e,a,o,r)}}):(r.value=t,r.state=fS,Jl(e,r,!1))}catch(a){Cn(e,{done:!1},a,r)}}};Mi&&(je=function(r){dF(this,je,Cr),zl(r),mo.call(this);var t=J1(this);try{r(_n(Wl,this,t),_n(Cn,this,t))}catch(n){Cn(this,t,n)}},mo=function(r){SF(this,{type:Cr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:rS,value:void 0})},mo.prototype=sF(je.prototype,{then:function(r,t){var n=bF(this),i=Tn(gF(this,je));return i.ok=typeof r=="function"?r:!0,i.fail=typeof t=="function"&&t,i.domain=Ni?So.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=rS&&Jl(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),tS=function(){var e=new mo,r=J1(e);this.promise=e,this.resolve=_n(Wl,e,r),this.reject=_n(Cn,e,r)},lS.f=Tn=function(e){return e===je||e===Zl?new tS(e):qF(e)},!Eo&&typeof yo=="function"&&(nS=yo.prototype.then,oF(yo.prototype,"then",function(r,t){var n=this;return new je(function(i,a){nS.call(n,i,a)}).then(r,t)},{unsafe:!0}),typeof eS=="function"&&Di({global:!0,enumerable:!0,forced:!0},{fetch:function(r){return uS(je,eS.apply(Xr,arguments))}})));Di({global:!0,wrap:!0,forced:Mi},{Promise:je});uF(je,Cr,!1,!0);lF(Cr);Zl=aS(Cr);Di({target:Cr,stat:!0,forced:Mi},{reject:function(r){var t=Tn(this);return t.reject.call(void 0,r),t.promise}});Di({target:Cr,stat:!0,forced:Eo||Mi},{resolve:function(r){return uS(Eo&&this===Zl?je:this,r)}});Di({target:Cr,stat:!0,forced:wF},{all:function(r){var t=this,n=Tn(t),i=n.resolve,a=n.reject,o=Kl(function(){var s=zl(t.resolve),u=[],c=0,f=1;Q1(r,function(d){var v=c++,g=!1;u.push(void 0),f++,s.call(t,d).then(function(h){g||(g=!0,u[v]=h,--f||i(u))},a)}),--f||i(u)});return o.error&&a(o.value),n.promise},race:function(r){var t=this,n=Tn(t),i=n.reject,a=Kl(function(){var o=zl(t.resolve);Q1(r,function(s){o.call(t,s).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}})});var ec=l(()=>{"use strict";var TF=p(),RF=U(),OF=wn(),LF=Pi(),PF=Y();TF({target:"Promise",stat:!0},{allSettled:function(r){var t=this,n=OF.f(t),i=n.resolve,a=n.reject,o=LF(function(){var s=RF(t.resolve),u=[],c=0,f=1;PF(r,function(d){var v=c++,g=!1;u.push(void 0),f++,s.call(t,d).then(function(h){g||(g=!0,u[v]={status:"fulfilled",value:h},--f||i(u))},function(h){g||(g=!0,u[v]={status:"rejected",reason:h},--f||i(u))})}),--f||i(u)});return o.error&&a(o.value),n.promise}})});var ES=l(()=>{"use strict";var NF=p(),DF=j(),Ui=Cl(),MF=N(),yS=ce(),UF=_e(),mS=Hl(),kF=Ne(),jF=!!Ui&&MF(function(){Ui.prototype.finally.call({then:function(){}},function(){})});NF({target:"Promise",proto:!0,real:!0,forced:jF},{finally:function(e){var r=UF(this,yS("Promise")),t=typeof e=="function";return this.then(t?function(n){return mS(r,e()).then(function(){return n})}:e,t?function(n){return mS(r,e()).then(function(){throw n})}:e)}});!DF&&typeof Ui=="function"&&!Ui.prototype.finally&&kF(Ui.prototype,"finally",yS("Promise").prototype.finally)});var ki=l((dfe,bS)=>{"use strict";var FF=p(),BF=K(),SS=ln(),$F=Ne(),VF=ct(),HF=Y(),GF=ar(),rc=ee(),tc=N(),zF=vi(),KF=cr(),YF=xi();bS.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=n?"set":"add",o=BF[e],s=o&&o.prototype,u=o,c={},f=function(E){var S=s[E];$F(s,E,E=="add"?function(A){return S.call(this,A===0?0:A),this}:E=="delete"?function(x){return i&&!rc(x)?!1:S.call(this,x===0?0:x)}:E=="get"?function(A){return i&&!rc(A)?void 0:S.call(this,A===0?0:A)}:E=="has"?function(A){return i&&!rc(A)?!1:S.call(this,A===0?0:A)}:function(A,_){return S.call(this,A===0?0:A,_),this})};if(SS(e,typeof o!="function"||!(i||s.forEach&&!tc(function(){new o().entries().next()}))))u=t.getConstructor(r,e,n,a),VF.REQUIRED=!0;else if(SS(e,!0)){var d=new u,v=d[a](i?{}:-0,1)!=d,g=tc(function(){d.has(1)}),h=zF(function(E){new o(E)}),m=!i&&tc(function(){for(var E=new o,S=5;S--;)E[a](S,S);return!E.has(-0)});h||(u=r(function(E,S){GF(E,u,e);var x=YF(new o,E,u);return S!=null&&HF(S,x[a],x,n),x}),u.prototype=s,s.constructor=u),(g||m)&&(f("delete"),f("has"),n&&f("get")),(m||v)&&f(a),i&&s.clear&&delete s.clear}return c[e]=u,FF({global:!0,forced:u!=o},c),KF(u,e),i||t.setStrong(u,e,n),u}});var ic=l((ffe,wS)=>{"use strict";var WF=le().f,XF=Ve(),qS=wr(),QF=be(),ZF=ar(),JF=Y(),eB=Xa(),rB=vt(),ji=te(),IS=ct().fastKey,AS=qe(),xS=AS.set,nc=AS.getterFor;wS.exports={getConstructor:function(e,r,t,n){var i=e(function(u,c){ZF(u,i,r),xS(u,{type:r,index:XF(null),first:void 0,last:void 0,size:0}),ji||(u.size=0),c!=null&&JF(c,u[n],u,t)}),a=nc(r),o=function(u,c,f){var d=a(u),v=s(u,c),g,h;return v?v.value=f:(d.last=v={index:h=IS(c,!0),key:c,value:f,previous:g=d.last,next:void 0,removed:!1},d.first||(d.first=v),g&&(g.next=v),ji?d.size++:u.size++,h!=="F"&&(d.index[h]=v)),u},s=function(u,c){var f=a(u),d=IS(c),v;if(d!=="F")return f.index[d];for(v=f.first;v;v=v.next)if(v.key==c)return v};return qS(i.prototype,{clear:function(){for(var c=this,f=a(c),d=f.index,v=f.first;v;)v.removed=!0,v.previous&&(v.previous=v.previous.next=void 0),delete d[v.index],v=v.next;f.first=f.last=void 0,ji?f.size=0:c.size=0},delete:function(u){var c=this,f=a(c),d=s(c,u);if(d){var v=d.next,g=d.previous;delete f.index[d.index],d.removed=!0,g&&(g.next=v),v&&(v.previous=g),f.first==d&&(f.first=v),f.last==d&&(f.last=g),ji?f.size--:c.size--}return!!d},forEach:function(c){for(var f=a(this),d=QF(c,arguments.length>1?arguments[1]:void 0,3),v;v=v?v.next:f.first;)for(d(v.value,v.key,this);v&&v.removed;)v=v.previous},has:function(c){return!!s(this,c)}}),qS(i.prototype,t?{get:function(c){var f=s(this,c);return f&&f.value},set:function(c,f){return o(this,c===0?0:c,f)}}:{add:function(c){return o(this,c=c===0?0:c,c)}}),ji&&WF(i.prototype,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=nc(r),a=nc(n);eB(e,r,function(o,s){xS(this,{type:n,target:o,state:i(o),kind:s,last:void 0})},function(){for(var o=a(this),s=o.kind,u=o.last;u&&u.removed;)u=u.previous;return!o.target||!(o.last=u=u?u.next:o.state.first)?(o.target=void 0,{value:void 0,done:!0}):s=="keys"?{value:u.key,done:!1}:s=="values"?{value:u.value,done:!1}:{value:[u.key,u.value],done:!1}},t?"entries":"values",!t,!0),rB(r)}}});var bo=l((vfe,_S)=>{"use strict";var tB=ki(),nB=ic();_S.exports=tB("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},nB)});var ac=l((pfe,CS)=>{"use strict";var iB=ki(),aB=ic();CS.exports=iB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},aB)});var uc=l((gfe,NS)=>{"use strict";var TS=wr(),qo=ct().getWeakData,oB=w(),oc=ee(),sB=ar(),uB=Y(),OS=Te(),RS=pe(),LS=qe(),lB=LS.set,cB=LS.getterFor,dB=OS.find,fB=OS.findIndex,vB=0,Io=function(e){return e.frozen||(e.frozen=new PS)},PS=function(){this.entries=[]},sc=function(e,r){return dB(e.entries,function(t){return t[0]===r})};PS.prototype={get:function(e){var r=sc(this,e);if(r)return r[1]},has:function(e){return!!sc(this,e)},set:function(e,r){var t=sc(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=fB(this.entries,function(t){return t[0]===e});return~r&&this.entries.splice(r,1),!!~r}};NS.exports={getConstructor:function(e,r,t,n){var i=e(function(s,u){sB(s,i,r),lB(s,{type:r,id:vB++,frozen:void 0}),u!=null&&uB(u,s[n],s,t)}),a=cB(r),o=function(s,u,c){var f=a(s),d=qo(oB(u),!0);return d===!0?Io(f).set(u,c):d[f.id]=c,s};return TS(i.prototype,{delete:function(s){var u=a(this);if(!oc(s))return!1;var c=qo(s);return c===!0?Io(u).delete(s):c&&RS(c,u.id)&&delete c[u.id]},has:function(u){var c=a(this);if(!oc(u))return!1;var f=qo(u);return f===!0?Io(c).has(u):f&&RS(f,c.id)}}),TS(i.prototype,t?{get:function(u){var c=a(this);if(oc(u)){var f=qo(u);return f===!0?Io(c).get(u):f?f[c.id]:void 0}},set:function(u,c){return o(this,u,c)}}:{add:function(u){return o(this,u,!0)}}),i}}});var _o=l((hfe,kS)=>{"use strict";var DS=K(),pB=wr(),gB=ct(),hB=ki(),MS=uc(),xo=ee(),Ao=qe().enforce,mB=Fs(),yB=!DS.ActiveXObject&&"ActiveXObject"in DS,wo=Object.isExtensible,Fi,US=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},EB=kS.exports=hB("WeakMap",US,MS);mB&&yB&&(Fi=MS.getConstructor(US,"WeakMap",!0),gB.REQUIRED=!0,Rn=EB.prototype,lc=Rn.delete,Bi=Rn.has,cc=Rn.get,dc=Rn.set,pB(Rn,{delete:function(e){if(xo(e)&&!wo(e)){var r=Ao(this);return r.frozen||(r.frozen=new Fi),lc.call(this,e)||r.frozen.delete(e)}return lc.call(this,e)},has:function(r){if(xo(r)&&!wo(r)){var t=Ao(this);return t.frozen||(t.frozen=new Fi),Bi.call(this,r)||t.frozen.has(r)}return Bi.call(this,r)},get:function(r){if(xo(r)&&!wo(r)){var t=Ao(this);return t.frozen||(t.frozen=new Fi),Bi.call(this,r)?cc.call(this,r):t.frozen.get(r)}return cc.call(this,r)},set:function(r,t){if(xo(r)&&!wo(r)){var n=Ao(this);n.frozen||(n.frozen=new Fi),Bi.call(this,r)?dc.call(this,r,t):n.frozen.set(r,t)}else dc.call(this,r,t);return this}}));var Rn,lc,Bi,cc,dc});var jS=l(()=>{"use strict";var SB=ki(),bB=uc();SB("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bB)});var ae=l((Efe,YS)=>{"use strict";var hc=te(),Fe=K(),GS=ee(),On=pe(),mc=mn(),qB=me(),fc=Ne(),IB=le().f,To=ke(),ht=ft(),xB=Z(),AB=an(),vc=Fe.DataView,FS=vc&&vc.prototype,$i=Fe.Int8Array,pc=$i&&$i.prototype,BS=Fe.Uint8ClampedArray,$S=BS&&BS.prototype,Qr=$i&&To($i),fr=pc&&To(pc),Co=Object.prototype,VS=Co.isPrototypeOf,HS=xB("toStringTag"),gc=AB("TYPED_ARRAY_TAG"),yc=!!(Fe.ArrayBuffer&&vc),Zr=yc&&!!ht&&mc(Fe.opera)!=="Opera",zS=!1,Qe,vr={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},wB=function(r){var t=mc(r);return t==="DataView"||On(vr,t)},KS=function(e){return GS(e)&&On(vr,mc(e))},_B=function(e){if(KS(e))return e;throw TypeError("Target is not a typed array")},CB=function(e){if(ht){if(VS.call(Qr,e))return e}else for(var r in vr)if(On(vr,Qe)){var t=Fe[r];if(t&&(e===t||VS.call(t,e)))return e}throw TypeError("Target is not a typed array constructor")},TB=function(e,r,t){if(!!hc){if(t)for(var n in vr){var i=Fe[n];i&&On(i.prototype,e)&&delete i.prototype[e]}(!fr[e]||t)&&fc(fr,e,t?r:Zr&&pc[e]||r)}},RB=function(e,r,t){var n,i;if(!!hc){if(ht){if(t)for(n in vr)i=Fe[n],i&&On(i,e)&&delete i[e];if(!Qr[e]||t)try{return fc(Qr,e,t?r:Zr&&$i[e]||r)}catch(a){}else return}for(n in vr)i=Fe[n],i&&(!i[e]||t)&&fc(i,e,r)}};for(Qe in vr)Fe[Qe]||(Zr=!1);if((!Zr||typeof Qr!="function"||Qr===Function.prototype)&&(Qr=function(){throw TypeError("Incorrect invocation")},Zr))for(Qe in vr)Fe[Qe]&&ht(Fe[Qe],Qr);if((!Zr||!fr||fr===Co)&&(fr=Qr.prototype,Zr))for(Qe in vr)Fe[Qe]&&ht(Fe[Qe].prototype,fr);Zr&&To($S)!==fr&&ht($S,fr);if(hc&&!On(fr,HS)){zS=!0,IB(fr,HS,{get:function(){return GS(this)?this[gc]:void 0}});for(Qe in vr)Fe[Qe]&&qB(Fe[Qe],gc,Qe)}yc&&ht&&To(FS)!==Co&&ht(FS,Co);YS.exports={NATIVE_ARRAY_BUFFER:yc,NATIVE_ARRAY_BUFFER_VIEWS:Zr,TYPED_ARRAY_TAG:zS&&gc,aTypedArray:_B,aTypedArrayConstructor:CB,exportTypedArrayMethod:TB,exportTypedArrayStaticMethod:RB,isView:wB,isTypedArray:KS,TypedArray:Qr,TypedArrayPrototype:fr}});var Ec=l((Sfe,WS)=>{var OB=Ge(),LB=ie();WS.exports=function(e){if(e===void 0)return 0;var r=OB(e),t=LB(r);if(r!==t)throw RangeError("Wrong length or index");return t}});var QS=l((bfe,XS)=>{var Sc=1/0,PB=Math.abs,Jr=Math.pow,NB=Math.floor,DB=Math.log,MB=Math.LN2,UB=function(e,r,t){var n=new Array(t),i=t*8-r-1,a=(1<<i)-1,o=a>>1,s=r===23?Jr(2,-24)-Jr(2,-77):0,u=e<0||e===0&&1/e<0?1:0,c=0,f,d,v;for(e=PB(e),e!=e||e===Sc?(d=e!=e?1:0,f=a):(f=NB(DB(e)/MB),e*(v=Jr(2,-f))<1&&(f--,v*=2),f+o>=1?e+=s/v:e+=s*Jr(2,1-o),e*v>=2&&(f++,v/=2),f+o>=a?(d=0,f=a):f+o>=1?(d=(e*v-1)*Jr(2,r),f=f+o):(d=e*Jr(2,o-1)*Jr(2,r),f=0));r>=8;n[c++]=d&255,d/=256,r-=8);for(f=f<<r|d,i+=r;i>0;n[c++]=f&255,f/=256,i-=8);return n[--c]|=u*128,n},kB=function(e,r){var t=e.length,n=t*8-r-1,i=(1<<n)-1,a=i>>1,o=n-7,s=t-1,u=e[s--],c=u&127,f;for(u>>=7;o>0;c=c*256+e[s],s--,o-=8);for(f=c&(1<<-o)-1,c>>=-o,o+=r;o>0;f=f*256+e[s],s--,o-=8);if(c===0)c=1-a;else{if(c===i)return f?NaN:u?-Sc:Sc;f=f+Jr(2,r),c=c-a}return(u?-1:1)*f*Jr(2,c-r)};XS.exports={pack:UB,unpack:kB}});var Hi=l((qfe,db)=>{"use strict";var wc=K(),bc=te(),jB=ae().NATIVE_ARRAY_BUFFER,FB=me(),ZS=wr(),qc=N(),Ro=ar(),BB=Ge(),$B=ie(),Po=Ec(),ob=QS(),VB=st().f,HB=le().f,GB=za(),sb=cr(),ub=qe(),Pn=ub.get,JS=ub.set,No="ArrayBuffer",Do="DataView",Ln="prototype",zB="Wrong length",lb="Wrong index",pr=wc[No],Ze=pr,gr=wc[Do],Mo=wc.RangeError,cb=ob.pack,eb=ob.unpack,rb=function(e){return[e&255]},tb=function(e){return[e&255,e>>8&255]},nb=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},ib=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},KB=function(e){return cb(e,23,4)},YB=function(e){return cb(e,52,8)},Oo=function(e,r){HB(e[Ln],r,{get:function(){return Pn(this)[r]}})},mt=function(e,r,t,n){var i=Po(t),a=Pn(e);if(i+r>a.byteLength)throw Mo(lb);var o=Pn(a.buffer).bytes,s=i+a.byteOffset,u=o.slice(s,s+r);return n?u:u.reverse()},yt=function(e,r,t,n,i,a){var o=Po(t),s=Pn(e);if(o+r>s.byteLength)throw Mo(lb);for(var u=Pn(s.buffer).bytes,c=o+s.byteOffset,f=n(+i),d=0;d<r;d++)u[c+d]=f[a?d:r-d-1]};if(!jB)Ze=function(r){Ro(this,Ze,No);var t=Po(r);JS(this,{bytes:GB.call(new Array(t),0),byteLength:t}),bc||(this.byteLength=t)},gr=function(r,t,n){Ro(this,gr,Do),Ro(r,Ze,Do);var i=Pn(r).byteLength,a=BB(t);if(a<0||a>i)throw Mo("Wrong offset");if(n=n===void 0?i-a:$B(n),a+n>i)throw Mo(zB);JS(this,{buffer:r,byteLength:n,byteOffset:a}),bc||(this.buffer=r,this.byteLength=n,this.byteOffset=a)},bc&&(Oo(Ze,"byteLength"),Oo(gr,"buffer"),Oo(gr,"byteLength"),Oo(gr,"byteOffset")),ZS(gr[Ln],{getInt8:function(r){return mt(this,1,r)[0]<<24>>24},getUint8:function(r){return mt(this,1,r)[0]},getInt16:function(r){var t=mt(this,2,r,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(r){var t=mt(this,2,r,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(r){return ib(mt(this,4,r,arguments.length>1?arguments[1]:void 0))},getUint32:function(r){return ib(mt(this,4,r,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(r){return eb(mt(this,4,r,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(r){return eb(mt(this,8,r,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(r,t){yt(this,1,r,rb,t)},setUint8:function(r,t){yt(this,1,r,rb,t)},setInt16:function(r,t){yt(this,2,r,tb,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(r,t){yt(this,2,r,tb,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(r,t){yt(this,4,r,nb,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(r,t){yt(this,4,r,nb,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(r,t){yt(this,4,r,KB,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(r,t){yt(this,8,r,YB,t,arguments.length>2?arguments[2]:void 0)}});else{if(!qc(function(){pr(1)})||!qc(function(){new pr(-1)})||qc(function(){return new pr,new pr(1.5),new pr(NaN),pr.name!=No})){for(Ze=function(r){return Ro(this,Ze),new pr(Po(r))},ab=Ze[Ln]=pr[Ln],Ic=VB(pr),xc=0;Ic.length>xc;)(Lo=Ic[xc++])in Ze||FB(Ze,Lo,pr[Lo]);ab.constructor=Ze}Vi=new gr(new Ze(2)),Ac=gr[Ln].setInt8,Vi.setInt8(0,2147483648),Vi.setInt8(1,2147483649),(Vi.getInt8(0)||!Vi.getInt8(1))&&ZS(gr[Ln],{setInt8:function(r,t){Ac.call(this,r,t<<24>>24)},setUint8:function(r,t){Ac.call(this,r,t<<24>>24)}},{unsafe:!0})}var ab,Ic,xc,Lo,Vi,Ac;sb(Ze,No);sb(gr,Do);db.exports={ArrayBuffer:Ze,DataView:gr}});var vb=l(()=>{"use strict";var WB=p(),XB=K(),QB=Hi(),ZB=vt(),_c="ArrayBuffer",fb=QB[_c],JB=XB[_c];WB({global:!0,forced:JB!==fb},{ArrayBuffer:fb});ZB(_c)});var gb=l(()=>{var e$=p(),pb=ae(),r$=pb.NATIVE_ARRAY_BUFFER_VIEWS;e$({target:"ArrayBuffer",stat:!0,forced:!r$},{isView:pb.isView})});var bb=l(()=>{"use strict";var t$=p(),n$=N(),Sb=Hi(),hb=w(),mb=Vr(),i$=ie(),a$=_e(),Cc=Sb.ArrayBuffer,yb=Sb.DataView,Eb=Cc.prototype.slice,o$=n$(function(){return!new Cc(2).slice(1,void 0).byteLength});t$({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o$},{slice:function(r,t){if(Eb!==void 0&&t===void 0)return Eb.call(hb(this),r);for(var n=hb(this).byteLength,i=mb(r,n),a=mb(t===void 0?n:t,n),o=new(a$(this,Cc))(i$(a-i)),s=new yb(this),u=new yb(o),c=0;i<a;)u.setUint8(c++,s.getUint8(i++));return o}})});var qb=l(()=>{var s$=p(),u$=Hi(),l$=ae().NATIVE_ARRAY_BUFFER;s$({global:!0,forced:!l$},{DataView:u$.DataView})});var Uo=l((Ofe,xb)=>{var Ib=K(),Tc=N(),c$=vi(),d$=ae().NATIVE_ARRAY_BUFFER_VIEWS,f$=Ib.ArrayBuffer,$t=Ib.Int8Array;xb.exports=!d$||!Tc(function(){$t(1)})||!Tc(function(){new $t(-1)})||!c$(function(e){new $t,new $t(null),new $t(1.5),new $t(e)},!0)||Tc(function(){return new $t(new f$(2),1,void 0).length!==1})});var Nn=l((Lfe,Ab)=>{var v$=Ge();Ab.exports=function(e){var r=v$(e);if(r<0)throw RangeError("The argument can't be less than 0");return r}});var Rc=l((Pfe,wb)=>{var p$=Nn();wb.exports=function(e,r){var t=p$(e);if(t%r)throw RangeError("Wrong offset");return t}});var Oc=l((Nfe,_b)=>{var g$=de(),h$=ie(),m$=Yr(),y$=Fa(),E$=be(),S$=ae().aTypedArrayConstructor;_b.exports=function(r){var t=g$(r),n=arguments.length,i=n>1?arguments[1]:void 0,a=i!==void 0,o=m$(t),s,u,c,f,d,v;if(o!=null&&!y$(o))for(d=o.call(t),v=d.next,t=[];!(f=v.call(d)).done;)t.push(f.value);for(a&&n>2&&(i=E$(i,arguments[2],2)),u=h$(t.length),c=new(S$(this))(u),s=0;u>s;s++)c[s]=a?i(t[s],s):t[s];return c}});var Tr=l((Dfe,kc)=>{"use strict";var Cb=p(),kb=K(),b$=te(),q$=Uo(),Dn=ae(),jb=Hi(),Tb=ar(),I$=qr(),Gi=me(),x$=ie(),Rb=Ec(),Lc=Rc(),Fb=nr(),zi=pe(),A$=mn(),Dc=ee(),w$=Ve(),ko=ft(),_$=st().f,Ob=Oc(),C$=Te().forEach,T$=vt(),Bb=le(),$b=Pe(),Vb=qe(),R$=xi(),Mc=Vb.get,O$=Vb.set,jc=Bb.f,L$=$b.f,P$=Math.round,Pc=kb.RangeError,Hb=jb.ArrayBuffer,N$=jb.DataView,jo=Dn.NATIVE_ARRAY_BUFFER_VIEWS,Lb=Dn.TYPED_ARRAY_TAG,Pb=Dn.TypedArray,Ki=Dn.TypedArrayPrototype,D$=Dn.aTypedArrayConstructor,Uc=Dn.isTypedArray,Fo="BYTES_PER_ELEMENT",Nc="Wrong length",Nb=function(e,r){for(var t=0,n=r.length,i=new(D$(e))(n);n>t;)i[t]=r[t++];return i},Bo=function(e,r){jc(e,r,{get:function(){return Mc(this)[r]}})},Db=function(e){var r;return e instanceof Hb||(r=A$(e))=="ArrayBuffer"||r=="SharedArrayBuffer"},Gb=function(e,r){return Uc(e)&&typeof r!="symbol"&&r in e&&String(+r)==String(r)},Mb=function(r,t){return Gb(r,t=Fb(t,!0))?I$(2,r[t]):L$(r,t)},Ub=function(r,t,n){return Gb(r,t=Fb(t,!0))&&Dc(n)&&zi(n,"value")&&!zi(n,"get")&&!zi(n,"set")&&!n.configurable&&(!zi(n,"writable")||n.writable)&&(!zi(n,"enumerable")||n.enumerable)?(r[t]=n.value,r):jc(r,t,n)};b$?(jo||($b.f=Mb,Bb.f=Ub,Bo(Ki,"buffer"),Bo(Ki,"byteOffset"),Bo(Ki,"byteLength"),Bo(Ki,"length")),Cb({target:"Object",stat:!0,forced:!jo},{getOwnPropertyDescriptor:Mb,defineProperty:Ub}),kc.exports=function(e,r,t){var n=e.match(/\d+$/)[0]/8,i=e+(t?"Clamped":"")+"Array",a="get"+e,o="set"+e,s=kb[i],u=s,c=u&&u.prototype,f={},d=function(h,m){var E=Mc(h);return E.view[a](m*n+E.byteOffset,!0)},v=function(h,m,E){var S=Mc(h);t&&(E=(E=P$(E))<0?0:E>255?255:E&255),S.view[o](m*n+S.byteOffset,E,!0)},g=function(h,m){jc(h,m,{get:function(){return d(this,m)},set:function(E){return v(this,m,E)},enumerable:!0})};jo?q$&&(u=r(function(h,m,E,S){return Tb(h,u,i),R$(function(){return Dc(m)?Db(m)?S!==void 0?new s(m,Lc(E,n),S):E!==void 0?new s(m,Lc(E,n)):new s(m):Uc(m)?Nb(u,m):Ob.call(u,m):new s(Rb(m))}(),h,u)}),ko&&ko(u,Pb),C$(_$(s),function(h){h in u||Gi(u,h,s[h])}),u.prototype=c):(u=r(function(h,m,E,S){Tb(h,u,i);var x=0,A=0,_,C,L;if(!Dc(m))L=Rb(m),C=L*n,_=new Hb(C);else if(Db(m)){_=m,A=Lc(E,n);var M=m.byteLength;if(S===void 0){if(M%n||(C=M-A,C<0))throw Pc(Nc)}else if(C=x$(S)*n,C+A>M)throw Pc(Nc);L=C/n}else return Uc(m)?Nb(u,m):Ob.call(u,m);for(O$(h,{buffer:_,byteOffset:A,byteLength:C,length:L,view:new N$(_)});x<L;)g(h,x++)}),ko&&ko(u,Pb),c=u.prototype=w$(Ki)),c.constructor!==u&&Gi(c,"constructor",u),Lb&&Gi(c,Lb,i),f[i]=u,Cb({global:!0,forced:u!=s,sham:!jo},f),Fo in u||Gi(u,Fo,n),Fo in c||Gi(c,Fo,n),T$(i)}):kc.exports=function(){}});var zb=l(()=>{var M$=Tr();M$("Int8",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Kb=l(()=>{var U$=Tr();U$("Uint8",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Yb=l(()=>{var k$=Tr();k$("Uint8",function(e){return function(t,n,i){return e(this,t,n,i)}},!0)});var Wb=l(()=>{var j$=Tr();j$("Int16",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Xb=l(()=>{var F$=Tr();F$("Uint16",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Qb=l(()=>{var B$=Tr();B$("Int32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Zb=l(()=>{var $$=Tr();$$("Uint32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Jb=l(()=>{var V$=Tr();V$("Float32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var eq=l(()=>{var H$=Tr();H$("Float64",function(e){return function(t,n,i){return e(this,t,n,i)}})});var rq=l(()=>{"use strict";var G$=Uo(),z$=ae().exportTypedArrayStaticMethod,K$=Oc();z$("from",K$,G$)});var nq=l(()=>{"use strict";var tq=ae(),Y$=Uo(),W$=tq.aTypedArrayConstructor,X$=tq.exportTypedArrayStaticMethod;X$("of",function(){for(var r=0,t=arguments.length,n=new(W$(this))(t);t>r;)n[r]=arguments[r++];return n},Y$)});var aq=l(()=>{"use strict";var iq=ae(),Q$=Mu(),Z$=iq.aTypedArray,J$=iq.exportTypedArrayMethod;J$("copyWithin",function(r,t){return Q$.call(Z$(this),r,t,arguments.length>2?arguments[2]:void 0)})});var sq=l(()=>{"use strict";var oq=ae(),eV=Te().every,rV=oq.aTypedArray,tV=oq.exportTypedArrayMethod;tV("every",function(r){return eV(rV(this),r,arguments.length>1?arguments[1]:void 0)})});var lq=l(()=>{"use strict";var uq=ae(),nV=za(),iV=uq.aTypedArray,aV=uq.exportTypedArrayMethod;aV("fill",function(r){return nV.apply(iV(this),arguments)})});var cq=l(()=>{"use strict";var Fc=ae(),oV=Te().filter,sV=_e(),uV=Fc.aTypedArray,lV=Fc.aTypedArrayConstructor,cV=Fc.exportTypedArrayMethod;cV("filter",function(r){for(var t=oV(uV(this),r,arguments.length>1?arguments[1]:void 0),n=sV(this,this.constructor),i=0,a=t.length,o=new(lV(n))(a);a>i;)o[i]=t[i++];return o})});var fq=l(()=>{"use strict";var dq=ae(),dV=Te().find,fV=dq.aTypedArray,vV=dq.exportTypedArrayMethod;vV("find",function(r){return dV(fV(this),r,arguments.length>1?arguments[1]:void 0)})});var pq=l(()=>{"use strict";var vq=ae(),pV=Te().findIndex,gV=vq.aTypedArray,hV=vq.exportTypedArrayMethod;hV("findIndex",function(r){return pV(gV(this),r,arguments.length>1?arguments[1]:void 0)})});var hq=l(()=>{"use strict";var gq=ae(),mV=Te().forEach,yV=gq.aTypedArray,EV=gq.exportTypedArrayMethod;EV("forEach",function(r){mV(yV(this),r,arguments.length>1?arguments[1]:void 0)})});var yq=l(()=>{"use strict";var mq=ae(),SV=un().includes,bV=mq.aTypedArray,qV=mq.exportTypedArrayMethod;qV("includes",function(r){return SV(bV(this),r,arguments.length>1?arguments[1]:void 0)})});var Sq=l(()=>{"use strict";var Eq=ae(),IV=un().indexOf,xV=Eq.aTypedArray,AV=Eq.exportTypedArrayMethod;AV("indexOf",function(r){return IV(xV(this),r,arguments.length>1?arguments[1]:void 0)})});var wq=l(()=>{"use strict";var wV=K(),qq=ae(),$c=mi(),_V=Z(),Iq=_V("iterator"),bq=wV.Uint8Array,CV=$c.values,TV=$c.keys,RV=$c.entries,Vc=qq.aTypedArray,$o=qq.exportTypedArrayMethod,Bc=bq&&bq.prototype[Iq],xq=!!Bc&&(Bc.name=="values"||Bc.name==null),Aq=function(){return CV.call(Vc(this))};$o("entries",function(){return RV.call(Vc(this))});$o("keys",function(){return TV.call(Vc(this))});$o("values",Aq,!xq);$o(Iq,Aq,!xq)});var Cq=l(()=>{"use strict";var _q=ae(),OV=_q.aTypedArray,LV=_q.exportTypedArrayMethod,PV=[].join;LV("join",function(r){return PV.apply(OV(this),arguments)})});var Rq=l(()=>{"use strict";var Tq=ae(),NV=Hu(),DV=Tq.aTypedArray,MV=Tq.exportTypedArrayMethod;MV("lastIndexOf",function(r){return NV.apply(DV(this),arguments)})});var Oq=l(()=>{"use strict";var Hc=ae(),UV=Te().map,kV=_e(),jV=Hc.aTypedArray,FV=Hc.aTypedArrayConstructor,BV=Hc.exportTypedArrayMethod;BV("map",function(r){return UV(jV(this),r,arguments.length>1?arguments[1]:void 0,function(t,n){return new(FV(kV(t,t.constructor)))(n)})})});var Pq=l(()=>{"use strict";var Lq=ae(),$V=gi().left,VV=Lq.aTypedArray,HV=Lq.exportTypedArrayMethod;HV("reduce",function(r){return $V(VV(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)})});var Dq=l(()=>{"use strict";var Nq=ae(),GV=gi().right,zV=Nq.aTypedArray,KV=Nq.exportTypedArrayMethod;KV("reduceRight",function(r){return GV(zV(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)})});var Uq=l(()=>{"use strict";var Mq=ae(),YV=Mq.aTypedArray,WV=Mq.exportTypedArrayMethod,XV=Math.floor;WV("reverse",function(){for(var r=this,t=YV(r).length,n=XV(t/2),i=0,a;i<n;)a=r[i],r[i++]=r[--t],r[t]=a;return r})});var jq=l(()=>{"use strict";var kq=ae(),QV=ie(),ZV=Rc(),JV=de(),eH=N(),rH=kq.aTypedArray,tH=kq.exportTypedArrayMethod,nH=eH(function(){new Int8Array(1).set({})});tH("set",function(r){rH(this);var t=ZV(arguments.length>1?arguments[1]:void 0,1),n=this.length,i=JV(r),a=QV(i.length),o=0;if(a+t>n)throw RangeError("Wrong length");for(;o<a;)this[t+o]=i[o++]},nH)});var Fq=l(()=>{"use strict";var Gc=ae(),iH=_e(),aH=N(),oH=Gc.aTypedArray,sH=Gc.aTypedArrayConstructor,uH=Gc.exportTypedArrayMethod,lH=[].slice,cH=aH(function(){new Int8Array(1).slice()});uH("slice",function(r,t){for(var n=lH.call(oH(this),r,t),i=iH(this,this.constructor),a=0,o=n.length,s=new(sH(i))(o);o>a;)s[a]=n[a++];return s},cH)});var $q=l(()=>{"use strict";var Bq=ae(),dH=Te().some,fH=Bq.aTypedArray,vH=Bq.exportTypedArrayMethod;vH("some",function(r){return dH(fH(this),r,arguments.length>1?arguments[1]:void 0)})});var Hq=l(()=>{"use strict";var Vq=ae(),pH=Vq.aTypedArray,gH=Vq.exportTypedArrayMethod,hH=[].sort;gH("sort",function(r){return hH.call(pH(this),r)})});var Kq=l(()=>{"use strict";var zq=ae(),mH=ie(),Gq=Vr(),yH=_e(),EH=zq.aTypedArray,SH=zq.exportTypedArrayMethod;SH("subarray",function(r,t){var n=EH(this),i=n.length,a=Gq(r,i);return new(yH(n,n.constructor))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,mH((t===void 0?i:Gq(t,i))-a))})});var Qq=l(()=>{"use strict";var bH=K(),Wq=ae(),zc=N(),Vo=bH.Int8Array,Yq=Wq.aTypedArray,qH=Wq.exportTypedArrayMethod,Xq=[].toLocaleString,IH=[].slice,xH=!!Vo&&zc(function(){Xq.call(new Vo(1))}),AH=zc(function(){return[1,2].toLocaleString()!=new Vo([1,2]).toLocaleString()})||!zc(function(){Vo.prototype.toLocaleString.call([1,2])});qH("toLocaleString",function(){return Xq.apply(xH?IH.call(Yq(this)):Yq(this),arguments)},AH)});var Jq=l(()=>{"use strict";var wH=ae().exportTypedArrayMethod,_H=N(),CH=K(),Zq=CH.Uint8Array,TH=Zq&&Zq.prototype||{},Ho=[].toString,RH=[].join;_H(function(){Ho.call({})})&&(Ho=function(){return RH.call(this)});var OH=TH.toString!=Ho;wH("toString",Ho,OH)});var eI=l(()=>{var LH=p(),PH=ce(),NH=U(),DH=w(),MH=N(),Kc=PH("Reflect","apply"),UH=Function.apply,kH=!MH(function(){Kc(function(){})});LH({target:"Reflect",stat:!0,forced:kH},{apply:function(r,t,n){return NH(r),DH(n),Kc?Kc(r,t,n):UH.call(r,t,n)}})});var sI=l(()=>{var jH=p(),FH=ce(),rI=U(),BH=w(),tI=ee(),$H=Ve(),VH=Tu(),iI=N(),Yc=FH("Reflect","construct"),aI=iI(function(){function e(){}return!(Yc(function(){},[],e)instanceof e)}),oI=!iI(function(){Yc(function(){})}),nI=aI||oI;jH({target:"Reflect",stat:!0,forced:nI,sham:nI},{construct:function(r,t){rI(r),BH(t);var n=arguments.length<3?r:rI(arguments[2]);if(oI&&!aI)return Yc(r,t,n);if(r==n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(VH.apply(r,i))}var a=n.prototype,o=$H(tI(a)?a:Object.prototype),s=Function.apply.call(r,o,t);return tI(s)?s:o}})});var cI=l(()=>{var HH=p(),GH=te(),uI=w(),zH=nr(),lI=le(),KH=N(),YH=KH(function(){Reflect.defineProperty(lI.f({},1,{value:1}),1,{value:2})});HH({target:"Reflect",stat:!0,forced:YH,sham:!GH},{defineProperty:function(r,t,n){uI(r);var i=zH(t,!0);uI(n);try{return lI.f(r,i,n),!0}catch(a){return!1}}})});var dI=l(()=>{var WH=p(),XH=w(),QH=Pe().f;WH({target:"Reflect",stat:!0},{deleteProperty:function(r,t){var n=QH(XH(r),t);return n&&!n.configurable?!1:delete r[t]}})});var vI=l(()=>{var ZH=p(),JH=ee(),eG=w(),rG=pe(),tG=Pe(),nG=ke();function fI(e,r){var t=arguments.length<3?e:arguments[2],n,i;if(eG(e)===t)return e[r];if(n=tG.f(e,r))return rG(n,"value")?n.value:n.get===void 0?void 0:n.get.call(t);if(JH(i=nG(e)))return fI(i,r,t)}ZH({target:"Reflect",stat:!0},{get:fI})});var pI=l(()=>{var iG=p(),aG=te(),oG=w(),sG=Pe();iG({target:"Reflect",stat:!0,sham:!aG},{getOwnPropertyDescriptor:function(r,t){return sG.f(oG(r),t)}})});var gI=l(()=>{var uG=p(),lG=w(),cG=ke(),dG=Va();uG({target:"Reflect",stat:!0,sham:!dG},{getPrototypeOf:function(r){return cG(lG(r))}})});var hI=l(()=>{var fG=p();fG({target:"Reflect",stat:!0},{has:function(r,t){return t in r}})});var yI=l(()=>{var vG=p(),pG=w(),mI=Object.isExtensible;vG({target:"Reflect",stat:!0},{isExtensible:function(r){return pG(r),mI?mI(r):!0}})});var EI=l(()=>{var gG=p(),hG=Ra();gG({target:"Reflect",stat:!0},{ownKeys:hG})});var SI=l(()=>{var mG=p(),yG=ce(),EG=w(),SG=gn();mG({target:"Reflect",stat:!0,sham:!SG},{preventExtensions:function(r){EG(r);try{var t=yG("Object","preventExtensions");return t&&t(r),!0}catch(n){return!1}}})});var wI=l(()=>{var bG=p(),qG=w(),bI=ee(),IG=pe(),xG=N(),Wc=le(),qI=Pe(),xI=ke(),II=qr();function AI(e,r,t){var n=arguments.length<4?e:arguments[3],i=qI.f(qG(e),r),a,o;if(!i){if(bI(o=xI(e)))return AI(o,r,t,n);i=II(0)}if(IG(i,"value")){if(i.writable===!1||!bI(n))return!1;if(a=qI.f(n,r)){if(a.get||a.set||a.writable===!1)return!1;a.value=t,Wc.f(n,r,a)}else Wc.f(n,r,II(0,t));return!0}return i.set===void 0?!1:(i.set.call(n,t),!0)}var AG=xG(function(){var e=Wc.f({},"a",{configurable:!0});return Reflect.set(xI(e),"a",1,e)!==!1});bG({target:"Reflect",stat:!0,forced:AG},{set:AI})});var CI=l(()=>{var wG=p(),_G=w(),CG=_u(),_I=ft();_I&&wG({target:"Reflect",stat:!0},{setPrototypeOf:function(r,t){_G(r),CG(t);try{return _I(r,t),!0}catch(n){return!1}}})});var RI=l((qpe,TI)=>{eg();rg();ag();og();sg();ug();lg();cg();dg();fg();vg();pg();gg();hg();mg();qg();Ig();Ag();_g();Rg();Pg();Hg();Kg();Yg();Wg();eh();th();nh();ih();ah();sh();uh();lh();fh();vh();hh();yh();Eh();Sh();bh();xh();wh();Rh();Ou();Uh();kh();jh();Xh();Jh();rm();im();om();um();cm();vm();pm();mm();ym();bm();qm();wm();Cm();Om();Lm();Nm();Um();km();$m();Vm();zm();Km();Ym();mi();gy();hy();Ey();wy();_y();Uy();nl();Xy();Qy();Zy();Jy();r0();i0();s0();v0();h0();E0();sl();x0();A0();w0();_0();C0();T0();R0();O0();L0();P0();N0();D0();M0();$0();H0();G0();Y0();Z0();rE();oE();sE();lE();dE();fE();vE();pE();gE();mE();EE();IE();wE();TE();LE();NE();ME();UE();FE();$E();HE();zE();YE();WE();XE();QE();ZE();r1();i1();a1();o1();s1();u1();p1();m1();q1();A1();w1();hS();ec();ES();bo();ac();_o();jS();vb();gb();bb();qb();zb();Kb();Yb();Wb();Xb();Qb();Zb();Jb();eq();rq();nq();aq();sq();lq();cq();fq();pq();hq();yq();Sq();wq();Cq();Rq();Oq();Pq();Dq();Uq();jq();Fq();$q();Hq();Kq();Qq();Jq();eI();sI();cI();dI();vI();pI();gI();hI();yI();EI();SI();wI();CI();var TG=lr();TI.exports=TG});var Rr=l((Ipe,PI)=>{var OI=bo(),RG=_o(),OG=ni(),LI=OG("metadata"),Xc=LI.store||(LI.store=new RG),Yi=function(e,r,t){var n=Xc.get(e);if(!n){if(!t)return;Xc.set(e,n=new OI)}var i=n.get(r);if(!i){if(!t)return;n.set(r,i=new OI)}return i},LG=function(e,r,t){var n=Yi(r,t,!1);return n===void 0?!1:n.has(e)},PG=function(e,r,t){var n=Yi(r,t,!1);return n===void 0?void 0:n.get(e)},NG=function(e,r,t,n){Yi(t,n,!0).set(e,r)},DG=function(e,r){var t=Yi(e,r,!1),n=[];return t&&t.forEach(function(i,a){n.push(a)}),n},MG=function(e){return e===void 0||typeof e=="symbol"?e:String(e)};PI.exports={store:Xc,getMap:Yi,has:LG,get:PG,set:NG,keys:DG,toKey:MG}});var DI=l(()=>{var UG=p(),NI=Rr(),kG=w(),jG=NI.toKey,FG=NI.set;UG({target:"Reflect",stat:!0},{defineMetadata:function(r,t,n){var i=arguments.length<4?void 0:jG(arguments[3]);FG(r,t,kG(n),i)}})});var UI=l(()=>{var BG=p(),Qc=Rr(),$G=w(),VG=Qc.toKey,HG=Qc.getMap,MI=Qc.store;BG({target:"Reflect",stat:!0},{deleteMetadata:function(r,t){var n=arguments.length<3?void 0:VG(arguments[2]),i=HG($G(t),n,!1);if(i===void 0||!i.delete(r))return!1;if(i.size)return!0;var a=MI.get(t);return a.delete(n),!!a.size||MI.delete(t)}})});var jI=l(()=>{var GG=p(),Zc=Rr(),zG=w(),KG=ke(),YG=Zc.has,WG=Zc.get,XG=Zc.toKey,kI=function(e,r,t){var n=YG(e,r,t);if(n)return WG(e,r,t);var i=KG(r);return i!==null?kI(e,i,t):void 0};GG({target:"Reflect",stat:!0},{getMetadata:function(r,t){var n=arguments.length<3?void 0:XG(arguments[2]);return kI(r,zG(t),n)}})});var $I=l(()=>{var QG=p(),ZG=ac(),FI=Rr(),JG=w(),ez=ke(),rz=Y(),tz=FI.keys,nz=FI.toKey,iz=function(e){var r=[];return rz(e,r.push,r),r},BI=function(e,r){var t=tz(e,r),n=ez(e);if(n===null)return t;var i=BI(n,r);return i.length?t.length?iz(new ZG(t.concat(i))):i:t};QG({target:"Reflect",stat:!0},{getMetadataKeys:function(r){var t=arguments.length<2?void 0:nz(arguments[1]);return BI(JG(r),t)}})});var HI=l(()=>{var az=p(),VI=Rr(),oz=w(),sz=VI.get,uz=VI.toKey;az({target:"Reflect",stat:!0},{getOwnMetadata:function(r,t){var n=arguments.length<3?void 0:uz(arguments[2]);return sz(r,oz(t),n)}})});var zI=l(()=>{var lz=p(),GI=Rr(),cz=w(),dz=GI.keys,fz=GI.toKey;lz({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(r){var t=arguments.length<2?void 0:fz(arguments[1]);return dz(cz(r),t)}})});var WI=l(()=>{var vz=p(),KI=Rr(),pz=w(),gz=ke(),hz=KI.has,mz=KI.toKey,YI=function(e,r,t){var n=hz(e,r,t);if(n)return!0;var i=gz(r);return i!==null?YI(e,i,t):!1};vz({target:"Reflect",stat:!0},{hasMetadata:function(r,t){var n=arguments.length<3?void 0:mz(arguments[2]);return YI(r,pz(t),n)}})});var QI=l(()=>{var yz=p(),XI=Rr(),Ez=w(),Sz=XI.has,bz=XI.toKey;yz({target:"Reflect",stat:!0},{hasOwnMetadata:function(r,t){var n=arguments.length<3?void 0:bz(arguments[2]);return Sz(r,Ez(t),n)}})});var JI=l(()=>{var qz=p(),ZI=Rr(),Iz=w(),xz=ZI.toKey,Az=ZI.set;qz({target:"Reflect",stat:!0},{metadata:function(r,t){return function(i,a){Az(r,t,Iz(i),xz(a))}}})});var ex=l(()=>{DI();UI();jI();$I();HI();zI();WI();QI();JI()});var rx=l(()=>{var wz=p();wz({target:"Math",stat:!0},{iaddh:function(r,t,n,i){var a=r>>>0,o=t>>>0,s=n>>>0;return o+(i>>>0)+((a&s|(a|s)&~(a+s>>>0))>>>31)|0}})});var tx=l(()=>{var _z=p();_z({target:"Math",stat:!0},{isubh:function(r,t,n,i){var a=r>>>0,o=t>>>0,s=n>>>0;return o-(i>>>0)-((~a&s|~(a^s)&a-s>>>0)>>>31)|0}})});var nx=l(()=>{var Cz=p();Cz({target:"Math",stat:!0},{imulh:function(r,t){var n=65535,i=+r,a=+t,o=i&n,s=a&n,u=i>>16,c=a>>16,f=(u*s>>>0)+(o*s>>>16);return u*c+(f>>16)+((o*c>>>0)+(f&n)>>16)}})});var ix=l(()=>{var Tz=p();Tz({target:"Math",stat:!0},{umulh:function(r,t){var n=65535,i=+r,a=+t,o=i&n,s=a&n,u=i>>>16,c=a>>>16,f=(u*s>>>0)+(o*s>>>16);return u*c+(f>>>16)+((o*c>>>0)+(f&n)>>>16)}})});var ax=l(()=>{rx();tx();nx();ix()});var ox=l(()=>{"use strict";var Rz=p(),Oz=Mt().charAt;Rz({target:"String",proto:!0},{at:function(r){return Oz(this,r)}})});var sx=l(()=>{ox()});var Jc=l((ige,ux)=>{var Lz=N(),Pz=Z(),Nz=j(),Dz=Pz("iterator");ux.exports=!Lz(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,t="";return e.pathname="c%20d",r.forEach(function(n,i){r.delete("b"),t+=i+n}),Nz&&!e.toJSON||!r.sort||e.href!=="http://a/c%20d?a=1&c=3"||r.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!r[Dz]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||t!=="a1c3"||new URL("http://x",void 0).host!=="x"})});var vx=l((age,fx)=>{"use strict";var ed=2147483647,Wi=36,dx=1,nd=26,Mz=38,Uz=700,kz=72,jz=128,Fz="-",Bz=/[^\0-\u007E]/,$z=/[.\u3002\uFF0E\uFF61]/g,lx="Overflow: input needs wider integers to process",rd=Wi-dx,Mn=Math.floor,td=String.fromCharCode,Vz=function(e){for(var r=[],t=0,n=e.length;t<n;){var i=e.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){var a=e.charCodeAt(t++);(a&64512)==56320?r.push(((i&1023)<<10)+(a&1023)+65536):(r.push(i),t--)}else r.push(i)}return r},cx=function(e){return e+22+75*(e<26)},Hz=function(e,r,t){var n=0;for(e=t?Mn(e/Uz):e>>1,e+=Mn(e/r);e>rd*nd>>1;n+=Wi)e=Mn(e/rd);return Mn(n+(rd+1)*e/(e+Mz))},Gz=function(e){var r=[];e=Vz(e);var t=e.length,n=jz,i=0,a=kz,o,s;for(o=0;o<e.length;o++)s=e[o],s<128&&r.push(td(s));var u=r.length,c=u;for(u&&r.push(Fz);c<t;){var f=ed;for(o=0;o<e.length;o++)s=e[o],s>=n&&s<f&&(f=s);var d=c+1;if(f-n>Mn((ed-i)/d))throw RangeError(lx);for(i+=(f-n)*d,n=f,o=0;o<e.length;o++){if(s=e[o],s<n&&++i>ed)throw RangeError(lx);if(s==n){for(var v=i,g=Wi;;g+=Wi){var h=g<=a?dx:g>=a+nd?nd:g-a;if(v<h)break;var m=v-h,E=Wi-h;r.push(td(cx(h+m%E))),v=Mn(m/E)}r.push(td(cx(v))),a=Hz(i,d,c==u),i=0,++c}}++i,++n}return r.join("")};fx.exports=function(e){var r=[],t=e.toLowerCase().replace($z,".").split("."),n,i;for(n=0;n<t.length;n++)i=t[n],r.push(Bz.test(i)?"xn--"+Gz(i):i);return r.join(".")}});var Un=l((oge,px)=>{var zz=w(),Kz=Yr();px.exports=function(e){var r=Kz(e);if(typeof r!="function")throw TypeError(String(e)+" is not iterable");return zz(r.call(e))}});var zo=l((sge,Tx)=>{"use strict";mi();var Sx=p(),bx=ce(),qx=Jc(),Ix=Ne(),Yz=wr(),Wz=cr(),Xz=Dt(),od=qe(),Qz=ar(),Zz=pe(),Jz=be(),eK=mn(),rK=w(),xx=ee(),tK=Ve(),gx=qr(),Ax=Un(),nK=Yr(),iK=Z(),hx=bx("fetch"),id=bx("Headers"),aK=iK("iterator"),jn="URLSearchParams",wx=jn+"Iterator",_x=od.set,hr=od.getterFor(jn),oK=od.getterFor(wx),sK=/\+/g,mx=Array(4),uK=function(e){return mx[e-1]||(mx[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},lK=function(e){try{return decodeURIComponent(e)}catch(r){return e}},yx=function(e){var r=e.replace(sK," "),t=4;try{return decodeURIComponent(r)}catch(n){for(;t;)r=r.replace(uK(t--),lK);return r}},cK=/[!'()~]|%20/g,dK={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fK=function(e){return dK[e]},Ex=function(e){return encodeURIComponent(e).replace(cK,fK)},Cx=function(e,r){if(r)for(var t=r.split("&"),n=0,i,a;n<t.length;)i=t[n++],i.length&&(a=i.split("="),e.push({key:yx(a.shift()),value:yx(a.join("="))}))},vK=function(e){this.entries.length=0,Cx(this.entries,e)},kn=function(e,r){if(e<r)throw TypeError("Not enough arguments")},ad=Xz(function(r,t){_x(this,{type:wx,iterator:Ax(hr(r).entries),kind:t})},"Iterator",function(){var r=oK(this),t=r.kind,n=r.iterator.next(),i=n.value;return n.done||(n.value=t==="keys"?i.key:t==="values"?i.value:[i.key,i.value]),n}),Xi=function(){Qz(this,Xi,jn);var r=arguments.length>0?arguments[0]:void 0,t=this,n=[],i,a,o,s,u,c,f,d,v;if(_x(t,{type:jn,entries:n,updateURL:function(){},updateSearchParams:vK}),r!==void 0)if(xx(r))if(i=nK(r),typeof i=="function")for(a=i.call(r),o=a.next;!(s=o.call(a)).done;){if(u=Ax(rK(s.value)),c=u.next,(f=c.call(u)).done||(d=c.call(u)).done||!c.call(u).done)throw TypeError("Expected sequence with length 2");n.push({key:f.value+"",value:d.value+""})}else for(v in r)Zz(r,v)&&n.push({key:v,value:r[v]+""});else Cx(n,typeof r=="string"?r.charAt(0)==="?"?r.slice(1):r:r+"")},Go=Xi.prototype;Yz(Go,{append:function(r,t){kn(arguments.length,2);var n=hr(this);n.entries.push({key:r+"",value:t+""}),n.updateURL()},delete:function(e){kn(arguments.length,1);for(var r=hr(this),t=r.entries,n=e+"",i=0;i<t.length;)t[i].key===n?t.splice(i,1):i++;r.updateURL()},get:function(r){kn(arguments.length,1);for(var t=hr(this).entries,n=r+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(r){kn(arguments.length,1);for(var t=hr(this).entries,n=r+"",i=[],a=0;a<t.length;a++)t[a].key===n&&i.push(t[a].value);return i},has:function(r){kn(arguments.length,1);for(var t=hr(this).entries,n=r+"",i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(r,t){kn(arguments.length,1);for(var n=hr(this),i=n.entries,a=!1,o=r+"",s=t+"",u=0,c;u<i.length;u++)c=i[u],c.key===o&&(a?i.splice(u--,1):(a=!0,c.value=s));a||i.push({key:o,value:s}),n.updateURL()},sort:function(){var r=hr(this),t=r.entries,n=t.slice(),i,a,o;for(t.length=0,o=0;o<n.length;o++){for(i=n[o],a=0;a<o;a++)if(t[a].key>i.key){t.splice(a,0,i);break}a===o&&t.push(i)}r.updateURL()},forEach:function(r){for(var t=hr(this).entries,n=Jz(r,arguments.length>1?arguments[1]:void 0,3),i=0,a;i<t.length;)a=t[i++],n(a.value,a.key,this)},keys:function(){return new ad(this,"keys")},values:function(){return new ad(this,"values")},entries:function(){return new ad(this,"entries")}},{enumerable:!0});Ix(Go,aK,Go.entries);Ix(Go,"toString",function(){for(var r=hr(this).entries,t=[],n=0,i;n<r.length;)i=r[n++],t.push(Ex(i.key)+"="+Ex(i.value));return t.join("&")},{enumerable:!0});Wz(Xi,jn);Sx({global:!0,forced:!qx},{URLSearchParams:Xi});!qx&&typeof hx=="function"&&typeof id=="function"&&Sx({global:!0,enumerable:!0,forced:!0},{fetch:function(r){var t=[r],n,i,a;return arguments.length>1&&(n=arguments[1],xx(n)&&(i=n.body,eK(i)===jn&&(a=n.headers?new id(n.headers):new id,a.has("content-type")||a.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),n=tK(n,{body:gx(0,String(i)),headers:gx(0,a)}))),t.push(n)),hx.apply(this,t)}});Tx.exports={URLSearchParams:Xi,getState:hr}});var Cd=l(()=>{"use strict";sl();var pK=p(),xd=te(),gK=Jc(),hK=K(),mK=La(),Xo=Ne(),yK=ar(),Ad=pe(),wd=gu(),Bn=Lu(),EK=Mt().codeAt,SK=vx(),bK=cr(),Bx=zo(),$x=qe(),Qi=hK.URL,qK=Bx.URLSearchParams,hd=Bx.getState,IK=$x.set,Ee=$x.getterFor("URL"),xK=Math.floor,Rx=Math.pow,AK="Invalid authority",sd="Invalid scheme",Ht="Invalid host",Ox="Invalid port",Vx=/[A-Za-z]/,wK=/[\d+\-.A-Za-z]/,md=/\d/,_K=/^(0x|0X)/,CK=/^[0-7]+$/,TK=/^\d+$/,Hx=/^[\dA-Fa-f]+$/,RK=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,OK=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,LK=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,PK=/[\u0009\u000A\u000D]/g,or,ud=function(e,r){var t,n,i;if(r.charAt(0)=="["){if(r.charAt(r.length-1)!="]"||(t=DK(r.slice(1,-1)),!t))return Ht;e.host=t}else if(Re(e)){if(r=SK(r),RK.test(r)||(t=NK(r),t===null))return Ht;e.host=t}else{if(OK.test(r))return Ht;for(t="",n=Bn(r),i=0;i<n.length;i++)t+=Et(n[i],Qo);e.host=t}},NK=function(e){var r=e.split("."),t,n,i,a,o,s,u;if(r.length&&r[r.length-1]==""&&r.pop(),t=r.length,t>4)return e;for(n=[],i=0;i<t;i++){if(a=r[i],a=="")return e;if(o=10,a.length>1&&a.charAt(0)=="0"&&(o=_K.test(a)?16:8,a=a.slice(o==8?1:2)),a==="")s=0;else{if(!(o==10?TK:o==8?CK:Hx).test(a))return e;s=parseInt(a,o)}n.push(s)}for(i=0;i<t;i++)if(s=n[i],i==t-1){if(s>=Rx(256,5-t))return null}else if(s>255)return null;for(u=n.pop(),i=0;i<n.length;i++)u+=n[i]*Rx(256,3-i);return u},DK=function(e){var r=[0,0,0,0,0,0,0,0],t=0,n=null,i=0,a,o,s,u,c,f,d,v=function(){return e.charAt(i)};if(v()==":"){if(e.charAt(1)!=":")return;i+=2,t++,n=t}for(;v();){if(t==8)return;if(v()==":"){if(n!==null)return;i++,t++,n=t;continue}for(a=o=0;o<4&&Hx.test(v());)a=a*16+parseInt(v(),16),i++,o++;if(v()=="."){if(o==0||(i-=o,t>6))return;for(s=0;v();){if(u=null,s>0)if(v()=="."&&s<4)i++;else return;if(!md.test(v()))return;for(;md.test(v());){if(c=parseInt(v(),10),u===null)u=c;else{if(u==0)return;u=u*10+c}if(u>255)return;i++}r[t]=r[t]*256+u,s++,(s==2||s==4)&&t++}if(s!=4)return;break}else if(v()==":"){if(i++,!v())return}else if(v())return;r[t++]=a}if(n!==null)for(f=t-n,t=7;t!=0&&f>0;)d=r[t],r[t--]=r[n+f-1],r[n+--f]=d;else if(t!=8)return;return r},MK=function(e){for(var r=null,t=1,n=null,i=0,a=0;a<8;a++)e[a]!==0?(i>t&&(r=n,t=i),n=null,i=0):(n===null&&(n=a),++i);return i>t&&(r=n,t=i),r},Ji=function(e){var r,t,n,i;if(typeof e=="number"){for(r=[],t=0;t<4;t++)r.unshift(e%256),e=xK(e/256);return r.join(".")}else if(typeof e=="object"){for(r="",n=MK(e),t=0;t<8;t++)i&&e[t]===0||(i&&(i=!1),n===t?(r+=t?":":"::",i=!0):(r+=e[t].toString(16),t<7&&(r+=":")));return"["+r+"]"}return e},Qo={},Gx=wd({},Qo,{" ":1,'"':1,"<":1,">":1,"`":1}),zx=wd({},Gx,{"#":1,"?":1,"{":1,"}":1}),yd=wd({},zx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Et=function(e,r){var t=EK(e,0);return t>32&&t<127&&!Ad(r,e)?e:encodeURIComponent(e)},Wo={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Re=function(e){return Ad(Wo,e.scheme)},Ed=function(e){return e.username!=""||e.password!=""},ld=function(e){return!e.host||e.cannotBeABaseURL||e.scheme=="file"},Zi=function(e,r){var t;return e.length==2&&Vx.test(e.charAt(0))&&((t=e.charAt(1))==":"||!r&&t=="|")},Lx=function(e){var r;return e.length>1&&Zi(e.slice(0,2))&&(e.length==2||(r=e.charAt(2))==="/"||r==="\\"||r==="?"||r==="#")},Px=function(e){var r=e.path,t=r.length;t&&(e.scheme!="file"||t!=1||!Zi(r[0],!0))&&r.pop()},UK=function(e){return e==="."||e.toLowerCase()==="%2e"},kK=function(e){return e=e.toLowerCase(),e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"},Sd={},Nx={},cd={},Dx={},Mx={},dd={},Ux={},kx={},Ko={},Yo={},bd={},qd={},Id={},fd={},jx={},vd={},Fn={},Or={},Fx={},Vt={},et={},Lr=function(e,r,t,n){var i=t||Sd,a=0,o="",s=!1,u=!1,c=!1,f,d,v,g;for(t||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,r=r.replace(LK,"")),r=r.replace(PK,""),f=Bn(r);a<=f.length;){switch(d=f[a],i){case Sd:if(d&&Vx.test(d))o+=d.toLowerCase(),i=Nx;else{if(t)return sd;i=cd;continue}break;case Nx:if(d&&(wK.test(d)||d=="+"||d=="-"||d=="."))o+=d.toLowerCase();else if(d==":"){if(t&&(Re(e)!=Ad(Wo,o)||o=="file"&&(Ed(e)||e.port!==null)||e.scheme=="file"&&!e.host))return;if(e.scheme=o,t){Re(e)&&Wo[e.scheme]==e.port&&(e.port=null);return}o="",e.scheme=="file"?i=fd:Re(e)&&n&&n.scheme==e.scheme?i=Dx:Re(e)?i=kx:f[a+1]=="/"?(i=Mx,a++):(e.cannotBeABaseURL=!0,e.path.push(""),i=Fx)}else{if(t)return sd;o="",i=cd,a=0;continue}break;case cd:if(!n||n.cannotBeABaseURL&&d!="#")return sd;if(n.cannotBeABaseURL&&d=="#"){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,i=et;break}i=n.scheme=="file"?fd:dd;continue;case Dx:if(d=="/"&&f[a+1]=="/")i=Ko,a++;else{i=dd;continue}break;case Mx:if(d=="/"){i=Yo;break}else{i=Or;continue}case dd:if(e.scheme=n.scheme,d==or)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if(d=="/"||d=="\\"&&Re(e))i=Ux;else if(d=="?")e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",i=Vt;else if(d=="#")e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",i=et;else{e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),i=Or;continue}break;case Ux:if(Re(e)&&(d=="/"||d=="\\"))i=Ko;else if(d=="/")i=Yo;else{e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,i=Or;continue}break;case kx:if(i=Ko,d!="/"||o.charAt(a+1)!="/")continue;a++;break;case Ko:if(d!="/"&&d!="\\"){i=Yo;continue}break;case Yo:if(d=="@"){s&&(o="%40"+o),s=!0,v=Bn(o);for(var h=0;h<v.length;h++){var m=v[h];if(m==":"&&!c){c=!0;continue}var E=Et(m,yd);c?e.password+=E:e.username+=E}o=""}else if(d==or||d=="/"||d=="?"||d=="#"||d=="\\"&&Re(e)){if(s&&o=="")return AK;a-=Bn(o).length+1,o="",i=bd}else o+=d;break;case bd:case qd:if(t&&e.scheme=="file"){i=vd;continue}else if(d==":"&&!u){if(o=="")return Ht;if(g=ud(e,o),g)return g;if(o="",i=Id,t==qd)return}else if(d==or||d=="/"||d=="?"||d=="#"||d=="\\"&&Re(e)){if(Re(e)&&o=="")return Ht;if(t&&o==""&&(Ed(e)||e.port!==null))return;if(g=ud(e,o),g)return g;if(o="",i=Fn,t)return;continue}else d=="["?u=!0:d=="]"&&(u=!1),o+=d;break;case Id:if(md.test(d))o+=d;else if(d==or||d=="/"||d=="?"||d=="#"||d=="\\"&&Re(e)||t){if(o!=""){var S=parseInt(o,10);if(S>65535)return Ox;e.port=Re(e)&&S===Wo[e.scheme]?null:S,o=""}if(t)return;i=Fn;continue}else return Ox;break;case fd:if(e.scheme="file",d=="/"||d=="\\")i=jx;else if(n&&n.scheme=="file")if(d==or)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if(d=="?")e.host=n.host,e.path=n.path.slice(),e.query="",i=Vt;else if(d=="#")e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",i=et;else{Lx(f.slice(a).join(""))||(e.host=n.host,e.path=n.path.slice(),Px(e)),i=Or;continue}else{i=Or;continue}break;case jx:if(d=="/"||d=="\\"){i=vd;break}n&&n.scheme=="file"&&!Lx(f.slice(a).join(""))&&(Zi(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),i=Or;continue;case vd:if(d==or||d=="/"||d=="\\"||d=="?"||d=="#"){if(!t&&Zi(o))i=Or;else if(o==""){if(e.host="",t)return;i=Fn}else{if(g=ud(e,o),g)return g;if(e.host=="localhost"&&(e.host=""),t)return;o="",i=Fn}continue}else o+=d;break;case Fn:if(Re(e)){if(i=Or,d!="/"&&d!="\\")continue}else if(!t&&d=="?")e.query="",i=Vt;else if(!t&&d=="#")e.fragment="",i=et;else if(d!=or&&(i=Or,d!="/"))continue;break;case Or:if(d==or||d=="/"||d=="\\"&&Re(e)||!t&&(d=="?"||d=="#")){if(kK(o)?(Px(e),d!="/"&&!(d=="\\"&&Re(e))&&e.path.push("")):UK(o)?d!="/"&&!(d=="\\"&&Re(e))&&e.path.push(""):(e.scheme=="file"&&!e.path.length&&Zi(o)&&(e.host&&(e.host=""),o=o.charAt(0)+":"),e.path.push(o)),o="",e.scheme=="file"&&(d==or||d=="?"||d=="#"))for(;e.path.length>1&&e.path[0]==="";)e.path.shift();d=="?"?(e.query="",i=Vt):d=="#"&&(e.fragment="",i=et)}else o+=Et(d,zx);break;case Fx:d=="?"?(e.query="",i=Vt):d=="#"?(e.fragment="",i=et):d!=or&&(e.path[0]+=Et(d,Qo));break;case Vt:!t&&d=="#"?(e.fragment="",i=et):d!=or&&(d=="'"&&Re(e)?e.query+="%27":d=="#"?e.query+="%23":e.query+=Et(d,Qo));break;case et:d!=or&&(e.fragment+=Et(d,Gx));break}a++}},Gt=function(r){var t=yK(this,Gt,"URL"),n=arguments.length>1?arguments[1]:void 0,i=String(r),a=IK(t,{type:"URL"}),o,s;if(n!==void 0){if(n instanceof Gt)o=Ee(n);else if(s=Lr(o={},String(n)),s)throw TypeError(s)}if(s=Lr(a,i,null,o),s)throw TypeError(s);var u=a.searchParams=new qK,c=hd(u);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(u)||null},xd||(t.href=Zo.call(t),t.origin=Kx.call(t),t.protocol=Yx.call(t),t.username=Wx.call(t),t.password=Xx.call(t),t.host=Qx.call(t),t.hostname=Zx.call(t),t.port=Jx.call(t),t.pathname=eA.call(t),t.search=rA.call(t),t.searchParams=tA.call(t),t.hash=nA.call(t))},_d=Gt.prototype,Zo=function(){var e=Ee(this),r=e.scheme,t=e.username,n=e.password,i=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,c=r+":";return i!==null?(c+="//",Ed(e)&&(c+=t+(n?":"+n:"")+"@"),c+=Ji(i),a!==null&&(c+=":"+a)):r=="file"&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",s!==null&&(c+="?"+s),u!==null&&(c+="#"+u),c},Kx=function(){var e=Ee(this),r=e.scheme,t=e.port;if(r=="blob")try{return new URL(r.path[0]).origin}catch(n){return"null"}return r=="file"||!Re(e)?"null":r+"://"+Ji(e.host)+(t!==null?":"+t:"")},Yx=function(){return Ee(this).scheme+":"},Wx=function(){return Ee(this).username},Xx=function(){return Ee(this).password},Qx=function(){var e=Ee(this),r=e.host,t=e.port;return r===null?"":t===null?Ji(r):Ji(r)+":"+t},Zx=function(){var e=Ee(this).host;return e===null?"":Ji(e)},Jx=function(){var e=Ee(this).port;return e===null?"":String(e)},eA=function(){var e=Ee(this),r=e.path;return e.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):""},rA=function(){var e=Ee(this).query;return e?"?"+e:""},tA=function(){return Ee(this).searchParams},nA=function(){var e=Ee(this).fragment;return e?"#"+e:""},sr=function(e,r){return{get:e,set:r,configurable:!0,enumerable:!0}};xd&&mK(_d,{href:sr(Zo,function(e){var r=Ee(this),t=String(e),n=Lr(r,t);if(n)throw TypeError(n);hd(r.searchParams).updateSearchParams(r.query)}),origin:sr(Kx),protocol:sr(Yx,function(e){var r=Ee(this);Lr(r,String(e)+":",Sd)}),username:sr(Wx,function(e){var r=Ee(this),t=Bn(String(e));if(!ld(r)){r.username="";for(var n=0;n<t.length;n++)r.username+=Et(t[n],yd)}}),password:sr(Xx,function(e){var r=Ee(this),t=Bn(String(e));if(!ld(r)){r.password="";for(var n=0;n<t.length;n++)r.password+=Et(t[n],yd)}}),host:sr(Qx,function(e){var r=Ee(this);r.cannotBeABaseURL||Lr(r,String(e),bd)}),hostname:sr(Zx,function(e){var r=Ee(this);r.cannotBeABaseURL||Lr(r,String(e),qd)}),port:sr(Jx,function(e){var r=Ee(this);ld(r)||(e=String(e),e==""?r.port=null:Lr(r,e,Id))}),pathname:sr(eA,function(e){var r=Ee(this);r.cannotBeABaseURL||(r.path=[],Lr(r,e+"",Fn))}),search:sr(rA,function(e){var r=Ee(this);e=String(e),e==""?r.query=null:(e.charAt(0)=="?"&&(e=e.slice(1)),r.query="",Lr(r,e,Vt)),hd(r.searchParams).updateSearchParams(r.query)}),searchParams:sr(tA),hash:sr(nA,function(e){var r=Ee(this);if(e=String(e),e==""){r.fragment=null;return}e.charAt(0)=="#"&&(e=e.slice(1)),r.fragment="",Lr(r,e,et)})});Xo(_d,"toJSON",function(){return Zo.call(this)},{enumerable:!0});Xo(_d,"toString",function(){return Zo.call(this)},{enumerable:!0});Qi&&(pd=Qi.createObjectURL,gd=Qi.revokeObjectURL,pd&&Xo(Gt,"createObjectURL",function(r){return pd.apply(Qi,arguments)}),gd&&Xo(Gt,"revokeObjectURL",function(r){return gd.apply(Qi,arguments)}));var pd,gd;bK(Gt,"URL");pK({global:!0,forced:!gK,sham:!xd},{URL:Gt})});var Td=l(()=>{"use strict";var jK=p();jK({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})});var iA=l(()=>{Cd();Td();zo()});var aA=l(()=>{"use strict";var FK=te(),BK=dr(),$K=de(),VK=ie(),HK=le().f;FK&&!("lastIndex"in[])&&(HK(Array.prototype,"lastIndex",{configurable:!0,get:function(){var r=$K(this),t=VK(r.length);return t==0?0:t-1}}),BK("lastIndex"))});var uA=l(()=>{"use strict";var GK=te(),zK=dr(),oA=de(),sA=ie(),KK=le().f;GK&&!("lastItem"in[])&&(KK(Array.prototype,"lastItem",{configurable:!0,get:function(){var r=oA(this),t=sA(r.length);return t==0?void 0:r[t-1]},set:function(r){var t=oA(this),n=sA(t.length);return t[n==0?0:n-1]=r}}),zK("lastItem"))});var lA=l(()=>{aA();uA()});var cA=l(()=>{"use strict";var YK=p(),WK=Y(),Jo=U();YK({target:"Map",stat:!0},{groupBy:function(r,t){var n=new this;Jo(t);var i=Jo(n.has),a=Jo(n.get),o=Jo(n.set);return WK(r,function(s){var u=t(s);i.call(n,u)?a.call(n,u).push(s):o.call(n,u,[s])}),n}})});var fA=l(()=>{"use strict";var XK=p(),QK=Y(),dA=U();XK({target:"Map",stat:!0},{keyBy:function(r,t){var n=new this;dA(t);var i=dA(n.set);return QK(r,function(a){i.call(n,t(a),a)}),n}})});var ea=l((xge,vA)=>{"use strict";var ZK=w(),JK=U();vA.exports=function(){for(var e=ZK(this),r=JK(e.delete),t=!0,n,i=0,a=arguments.length;i<a;i++)n=r.call(e,arguments[i]),t=t&&n;return!!t}});var pA=l(()=>{"use strict";var eY=p(),rY=j(),tY=ea();eY({target:"Map",proto:!0,real:!0,forced:rY},{deleteAll:function(){return tY.apply(this,arguments)}})});var mr=l((_ge,gA)=>{var nY=j(),iY=Un();gA.exports=nY?iY:function(e){return Map.prototype.entries.call(e)}});var mA=l(()=>{"use strict";var aY=p(),oY=j(),sY=w(),uY=be(),lY=mr(),hA=Y();aY({target:"Map",proto:!0,real:!0,forced:oY},{every:function(r){var t=sY(this),n=lY(t),i=uY(r,arguments.length>1?arguments[1]:void 0,3);return!hA(n,function(a,o){if(!i(o,a,t))return hA.stop()},void 0,!0,!0).stopped}})});var yA=l(()=>{"use strict";var cY=p(),dY=j(),fY=ce(),vY=w(),pY=U(),gY=be(),hY=_e(),mY=mr(),yY=Y();cY({target:"Map",proto:!0,real:!0,forced:dY},{filter:function(r){var t=vY(this),n=mY(t),i=gY(r,arguments.length>1?arguments[1]:void 0,3),a=new(hY(t,fY("Map"))),o=pY(a.set);return yY(n,function(s,u){i(u,s,t)&&o.call(a,s,u)},void 0,!0,!0),a}})});var SA=l(()=>{"use strict";var EY=p(),SY=j(),bY=w(),qY=be(),IY=mr(),EA=Y();EY({target:"Map",proto:!0,real:!0,forced:SY},{find:function(r){var t=bY(this),n=IY(t),i=qY(r,arguments.length>1?arguments[1]:void 0,3);return EA(n,function(a,o){if(i(o,a,t))return EA.stop(o)},void 0,!0,!0).result}})});var qA=l(()=>{"use strict";var xY=p(),AY=j(),wY=w(),_Y=be(),CY=mr(),bA=Y();xY({target:"Map",proto:!0,real:!0,forced:AY},{findKey:function(r){var t=wY(this),n=CY(t),i=_Y(r,arguments.length>1?arguments[1]:void 0,3);return bA(n,function(a,o){if(i(o,a,t))return bA.stop(a)},void 0,!0,!0).result}})});var xA=l((Mge,IA)=>{IA.exports=function(e,r){return e===r||e!=e&&r!=r}});var wA=l(()=>{"use strict";var TY=p(),RY=j(),OY=w(),LY=mr(),PY=xA(),AA=Y();TY({target:"Map",proto:!0,real:!0,forced:RY},{includes:function(r){return AA(LY(OY(this)),function(t,n){if(PY(n,r))return AA.stop()},void 0,!0,!0).stopped}})});var CA=l(()=>{"use strict";var NY=p(),DY=j(),MY=w(),UY=mr(),_A=Y();NY({target:"Map",proto:!0,real:!0,forced:DY},{keyOf:function(r){return _A(UY(MY(this)),function(t,n){if(n===r)return _A.stop(t)},void 0,!0,!0).result}})});var TA=l(()=>{"use strict";var kY=p(),jY=j(),FY=ce(),BY=w(),$Y=U(),VY=be(),HY=_e(),GY=mr(),zY=Y();kY({target:"Map",proto:!0,real:!0,forced:jY},{mapKeys:function(r){var t=BY(this),n=GY(t),i=VY(r,arguments.length>1?arguments[1]:void 0,3),a=new(HY(t,FY("Map"))),o=$Y(a.set);return zY(n,function(s,u){o.call(a,i(u,s,t),u)},void 0,!0,!0),a}})});var RA=l(()=>{"use strict";var KY=p(),YY=j(),WY=ce(),XY=w(),QY=U(),ZY=be(),JY=_e(),eW=mr(),rW=Y();KY({target:"Map",proto:!0,real:!0,forced:YY},{mapValues:function(r){var t=XY(this),n=eW(t),i=ZY(r,arguments.length>1?arguments[1]:void 0,3),a=new(JY(t,WY("Map"))),o=QY(a.set);return rW(n,function(s,u){o.call(a,s,i(u,s,t))},void 0,!0,!0),a}})});var OA=l(()=>{"use strict";var tW=p(),nW=j(),iW=w(),aW=U(),oW=Y();tW({target:"Map",proto:!0,real:!0,forced:nW},{merge:function(r){for(var t=iW(this),n=aW(t.set),i=0;i<arguments.length;)oW(arguments[i++],n,t,!0);return t}})});var LA=l(()=>{"use strict";var sW=p(),uW=j(),lW=w(),cW=U(),dW=mr(),fW=Y();sW({target:"Map",proto:!0,real:!0,forced:uW},{reduce:function(r){var t=lW(this),n=dW(t),i=arguments.length<2,a=i?void 0:arguments[1];if(cW(r),fW(n,function(o,s){i?(i=!1,a=s):a=r(a,s,o,t)},void 0,!0,!0),i)throw TypeError("Reduce of empty map with no initial value");return a}})});var NA=l(()=>{"use strict";var vW=p(),pW=j(),gW=w(),hW=be(),mW=mr(),PA=Y();vW({target:"Map",proto:!0,real:!0,forced:pW},{some:function(r){var t=gW(this),n=mW(t),i=hW(r,arguments.length>1?arguments[1]:void 0,3);return PA(n,function(a,o){if(i(o,a,t))return PA.stop()},void 0,!0,!0).stopped}})});var MA=l(()=>{"use strict";var yW=p(),EW=j(),SW=w(),DA=U();yW({target:"Map",proto:!0,real:!0,forced:EW},{update:function(r,t){var n=SW(this),i=arguments.length;DA(t);var a=n.has(r);if(!a&&i<3)throw TypeError("Updating absent value");var o=a?n.get(r):DA(i>2?arguments[2]:void 0)(r,n);return n.set(r,t(o,r,n)),n}})});var Rd=l((Jge,UA)=>{"use strict";var bW=w(),qW=U();UA.exports=function(){for(var e=bW(this),r=qW(e.add),t=0,n=arguments.length;t<n;t++)r.call(e,arguments[t]);return e}});var kA=l(()=>{"use strict";var IW=p(),xW=j(),AW=Rd();IW({target:"Set",proto:!0,real:!0,forced:xW},{addAll:function(){return AW.apply(this,arguments)}})});var jA=l(()=>{"use strict";var wW=p(),_W=j(),CW=ea();wW({target:"Set",proto:!0,real:!0,forced:_W},{deleteAll:function(){return CW.apply(this,arguments)}})});var St=l((ihe,FA)=>{var TW=j(),RW=Un();FA.exports=TW?RW:function(e){return Set.prototype.values.call(e)}});var $A=l(()=>{"use strict";var OW=p(),LW=j(),PW=w(),NW=be(),DW=St(),BA=Y();OW({target:"Set",proto:!0,real:!0,forced:LW},{every:function(r){var t=PW(this),n=DW(t),i=NW(r,arguments.length>1?arguments[1]:void 0,3);return!BA(n,function(a){if(!i(a,a,t))return BA.stop()},void 0,!1,!0).stopped}})});var VA=l(()=>{"use strict";var MW=p(),UW=j(),kW=ce(),jW=w(),FW=U(),BW=be(),$W=_e(),VW=St(),HW=Y();MW({target:"Set",proto:!0,real:!0,forced:UW},{filter:function(r){var t=jW(this),n=VW(t),i=BW(r,arguments.length>1?arguments[1]:void 0,3),a=new($W(t,kW("Set"))),o=FW(a.add);return HW(n,function(s){i(s,s,t)&&o.call(a,s)},void 0,!1,!0),a}})});var GA=l(()=>{"use strict";var GW=p(),zW=j(),KW=w(),YW=be(),WW=St(),HA=Y();GW({target:"Set",proto:!0,real:!0,forced:zW},{find:function(r){var t=KW(this),n=WW(t),i=YW(r,arguments.length>1?arguments[1]:void 0,3);return HA(n,function(a){if(i(a,a,t))return HA.stop(a)},void 0,!1,!0).result}})});var zA=l(()=>{"use strict";var XW=p(),QW=j(),ZW=w(),JW=St(),eX=Y();XW({target:"Set",proto:!0,real:!0,forced:QW},{join:function(r){var t=ZW(this),n=JW(t),i=r===void 0?",":String(r),a=[];return eX(n,a.push,a,!1,!0),a.join(i)}})});var KA=l(()=>{"use strict";var rX=p(),tX=j(),nX=ce(),iX=w(),aX=U(),oX=be(),sX=_e(),uX=St(),lX=Y();rX({target:"Set",proto:!0,real:!0,forced:tX},{map:function(r){var t=iX(this),n=uX(t),i=oX(r,arguments.length>1?arguments[1]:void 0,3),a=new(sX(t,nX("Set"))),o=aX(a.add);return lX(n,function(s){o.call(a,i(s,s,t))},void 0,!1,!0),a}})});var YA=l(()=>{"use strict";var cX=p(),dX=j(),fX=w(),vX=U(),pX=St(),gX=Y();cX({target:"Set",proto:!0,real:!0,forced:dX},{reduce:function(r){var t=fX(this),n=pX(t),i=arguments.length<2,a=i?void 0:arguments[1];if(vX(r),gX(n,function(o){i?(i=!1,a=o):a=r(a,o,o,t)},void 0,!1,!0),i)throw TypeError("Reduce of empty set with no initial value");return a}})});var XA=l(()=>{"use strict";var hX=p(),mX=j(),yX=w(),EX=be(),SX=St(),WA=Y();hX({target:"Set",proto:!0,real:!0,forced:mX},{some:function(r){var t=yX(this),n=SX(t),i=EX(r,arguments.length>1?arguments[1]:void 0,3);return WA(n,function(a){if(i(a,a,t))return WA.stop()},void 0,!1,!0).stopped}})});var QA=l(()=>{"use strict";var bX=p(),qX=j(),IX=ea();bX({target:"WeakMap",proto:!0,real:!0,forced:qX},{deleteAll:function(){return IX.apply(this,arguments)}})});var ZA=l(()=>{"use strict";var xX=p(),AX=j(),wX=Rd();xX({target:"WeakSet",proto:!0,real:!0,forced:AX},{addAll:function(){return wX.apply(this,arguments)}})});var JA=l(()=>{"use strict";var _X=p(),CX=j(),TX=ea();_X({target:"WeakSet",proto:!0,real:!0,forced:CX},{deleteAll:function(){return TX.apply(this,arguments)}})});var ew=l(()=>{cA();fA();pA();mA();yA();SA();qA();wA();CA();TA();RA();OA();LA();NA();MA();kA();jA();$A();VA();GA();zA();KA();YA();XA();QA();ZA();JA()});var ra=l((_he,nw)=>{"use strict";var rw=U(),RX=be(),tw=Y();nw.exports=function(r){var t=arguments.length,n=t>1?arguments[1]:void 0,i,a,o,s;return rw(this),i=n!==void 0,i&&rw(n),r==null?new this:(a=[],i?(o=0,s=RX(n,t>2?arguments[2]:void 0,2),tw(r,function(u){a.push(s(u,o++))})):tw(r,a.push,a),new this(a))}});var iw=l(()=>{var OX=p(),LX=ra();OX({target:"Map",stat:!0},{from:LX})});var ta=l((Rhe,aw)=>{"use strict";aw.exports=function(){for(var r=arguments.length,t=new Array(r);r--;)t[r]=arguments[r];return new this(t)}});var ow=l(()=>{var PX=p(),NX=ta();PX({target:"Map",stat:!0},{of:NX})});var sw=l(()=>{var DX=p(),MX=ra();DX({target:"Set",stat:!0},{from:MX})});var uw=l(()=>{var UX=p(),kX=ta();UX({target:"Set",stat:!0},{of:kX})});var lw=l(()=>{var jX=p(),FX=ra();jX({target:"WeakMap",stat:!0},{from:FX})});var cw=l(()=>{var BX=p(),$X=ta();BX({target:"WeakMap",stat:!0},{of:$X})});var dw=l(()=>{var VX=p(),HX=ra();VX({target:"WeakSet",stat:!0},{from:HX})});var fw=l(()=>{var GX=p(),zX=ta();GX({target:"WeakSet",stat:!0},{of:zX})});var vw=l(()=>{iw();ow();sw();uw();lw();cw();dw();fw()});var Od=l((Khe,hw)=>{var KX=bo(),YX=_o(),WX=Ve(),pw=ee(),es=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=WX(null)};es.prototype.get=function(e,r){return this[e]||(this[e]=r())};es.prototype.next=function(e,r,t){var n=t?this.objectsByIndex[e]||(this.objectsByIndex[e]=new YX):this.primitives||(this.primitives=new KX),i=n.get(r);return i||n.set(r,i=new es),i};var gw=new es;hw.exports=function(){var e=gw,r=arguments.length,t,n;for(t=0;t<r;t++)pw(n=arguments[t])&&(e=e.next(t,n,!0));if(this===Object&&e===gw)throw TypeError("Composite keys must contain a non-primitive component");for(t=0;t<r;t++)pw(n=arguments[t])||(e=e.next(t,n,!1));return e}});var yw=l(()=>{var XX=p(),QX=Od(),ZX=ce(),mw=Ve(),JX=function(){var e=ZX("Object","freeze");return e?e(mw(null)):mw(null)};XX({global:!0},{compositeKey:function(){return QX.apply(Object,arguments).get("object",JX)}})});var Sw=l(()=>{var eQ=p(),rQ=Od(),Ew=ce();eQ({global:!0},{compositeSymbol:function(){return arguments.length===1&&typeof arguments[0]=="string"?Ew("Symbol").for(arguments[0]):rQ.apply(null,arguments).get("symbol",Ew("Symbol"))}})});var bw=l(()=>{yw();Sw()});var qw=l(()=>{var tQ=p(),nQ=Math.min,iQ=Math.max;tQ({target:"Math",stat:!0},{clamp:function(r,t,n){return nQ(n,iQ(t,r))}})});var Iw=l(()=>{var aQ=p();aQ({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})});var xw=l(()=>{var oQ=p(),sQ=180/Math.PI;oQ({target:"Math",stat:!0},{degrees:function(r){return r*sQ}})});var Ld=l((ome,Aw)=>{Aw.exports=Math.scale||function(r,t,n,i,a){return arguments.length===0||r!=r||t!=t||n!=n||i!=i||a!=a?NaN:r===1/0||r===-1/0?r:(r-t)*(a-i)/(n-t)+i}});var ww=l(()=>{var uQ=p(),lQ=Ld(),cQ=Al();uQ({target:"Math",stat:!0},{fscale:function(r,t,n,i,a){return cQ(lQ(r,t,n,i,a))}})});var _w=l(()=>{var dQ=p();dQ({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})});var Cw=l(()=>{var fQ=p(),vQ=Math.PI/180;fQ({target:"Math",stat:!0},{radians:function(r){return r*vQ}})});var Tw=l(()=>{var pQ=p(),gQ=Ld();pQ({target:"Math",stat:!0},{scale:gQ})});var Rw=l(()=>{qw();Iw();xw();ww();_w();Cw();Tw()});var Ow=l(()=>{var hQ=p();hQ({target:"Math",stat:!0},{signbit:function(r){return(r=+r)==r&&r==0?1/r==-1/0:r<0}})});var Lw=l(()=>{Ow()});var Pw=l(()=>{"use strict";var mQ=p(),yQ=Ge(),EQ=so(),rs="Invalid number representation",SQ="Invalid radix",bQ=/^[\da-z]+$/;mQ({target:"Number",stat:!0},{fromString:function(r,t){var n=1,i,a;if(typeof r!="string")throw TypeError(rs);if(!r.length||r.charAt(0)=="-"&&(n=-1,r=r.slice(1),!r.length))throw SyntaxError(rs);if(i=t===void 0?10:yQ(t),i<2||i>36)throw RangeError(SQ);if(!bQ.test(r)||(a=EQ(r,i)).toString(i)!==r)throw SyntaxError(rs);return n*a}})});var Nw=l(()=>{Pw()});var ts=l((Ame,Uw)=>{"use strict";var Dw=qe(),qQ=Dt(),IQ=pe(),xQ=Lt(),AQ=de(),Mw="Object Iterator",wQ=Dw.set,_Q=Dw.getterFor(Mw);Uw.exports=qQ(function(r,t){var n=AQ(r);wQ(this,{type:Mw,mode:t,object:n,keys:xQ(n),index:0})},"Object",function(){for(var r=_Q(this),t=r.keys;;){if(t===null||r.index>=t.length)return r.object=r.keys=null,{value:void 0,done:!0};var n=t[r.index++],i=r.object;if(!!IQ(i,n)){switch(r.mode){case"keys":return{value:n,done:!1};case"values":return{value:i[n],done:!1}}return{value:[n,i[n]],done:!1}}}})});var kw=l(()=>{"use strict";var CQ=p(),TQ=ts();CQ({target:"Object",stat:!0},{iterateEntries:function(r){return new TQ(r,"entries")}})});var jw=l(()=>{"use strict";var RQ=p(),OQ=ts();RQ({target:"Object",stat:!0},{iterateKeys:function(r){return new OQ(r,"keys")}})});var Fw=l(()=>{"use strict";var LQ=p(),PQ=ts();LQ({target:"Object",stat:!0},{iterateValues:function(r){return new PQ(r,"values")}})});var Bw=l(()=>{kw();jw();Fw()});var zw=l(()=>{"use strict";var NQ=p(),ia=te(),DQ=vt(),Dd=U(),Pd=w(),MQ=ee(),UQ=ar(),Vw=le().f,kQ=me(),is=wr(),jQ=Un(),$w=Y(),$n=Gl(),FQ=Z(),Hw=qe(),Gw=FQ("observable"),yr=Hw.get,Md=Hw.set,na=function(e){return e==null?void 0:Dd(e)},ns=function(e){var r=e.cleanup;if(r){e.cleanup=void 0;try{r()}catch(t){$n(t)}}},bt=function(e){return e.observer===void 0},Nd=function(e,r){if(!ia){e.closed=!0;var t=r.subscriptionObserver;t&&(t.closed=!0)}r.observer=void 0},Ud=function(e,r){var t=Md(this,{cleanup:void 0,observer:Pd(e),subscriptionObserver:void 0}),n;ia||(this.closed=!1);try{(n=na(e.start))&&n.call(e,this)}catch(s){$n(s)}if(!bt(t)){var i=t.subscriptionObserver=new kd(this);try{var a=r(i),o=a;a!=null&&(t.cleanup=typeof a.unsubscribe=="function"?function(){o.unsubscribe()}:Dd(a))}catch(s){i.error(s);return}bt(t)&&ns(t)}};Ud.prototype=is({},{unsubscribe:function(){var r=yr(this);bt(r)||(Nd(this,r),ns(r))}});ia&&Vw(Ud.prototype,"closed",{configurable:!0,get:function(){return bt(yr(this))}});var kd=function(e){Md(this,{subscription:e}),ia||(this.closed=!1)};kd.prototype=is({},{next:function(r){var t=yr(yr(this).subscription);if(!bt(t)){var n=t.observer;try{var i=na(n.next);i&&i.call(n,r)}catch(a){$n(a)}}},error:function(r){var t=yr(this).subscription,n=yr(t);if(!bt(n)){var i=n.observer;Nd(t,n);try{var a=na(i.error);a?a.call(i,r):$n(r)}catch(o){$n(o)}ns(n)}},complete:function(){var r=yr(this).subscription,t=yr(r);if(!bt(t)){var n=t.observer;Nd(r,t);try{var i=na(n.complete);i&&i.call(n)}catch(a){$n(a)}ns(t)}}});ia&&Vw(kd.prototype,"closed",{configurable:!0,get:function(){return bt(yr(yr(this).subscription))}});var zt=function(r){UQ(this,zt,"Observable"),Md(this,{subscriber:Dd(r)})};is(zt.prototype,{subscribe:function(r){var t=arguments.length;return new Ud(typeof r=="function"?{next:r,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:MQ(r)?r:{},yr(this).subscriber)}});is(zt,{from:function(r){var t=typeof this=="function"?this:zt,n=na(Pd(r)[Gw]);if(n){var i=Pd(n.call(r));return i.constructor===t?i:new t(function(o){return i.subscribe(o)})}var a=jQ(r);return new t(function(o){$w(a,function(s){if(o.next(s),o.closed)return $w.stop()},void 0,!1,!0),o.complete()})},of:function(){for(var r=typeof this=="function"?this:zt,t=arguments.length,n=new Array(t),i=0;i<t;)n[i]=arguments[i++];return new r(function(a){for(var o=0;o<t;o++)if(a.next(n[o]),a.closed)return;a.complete()})}});kQ(zt.prototype,Gw,function(){return this});NQ({global:!0},{Observable:zt});DQ("Observable")});var Kw=l(()=>{var BQ=Ae();BQ("observable")});var Yw=l(()=>{zw();Kw()});var Ww=l(()=>{var $Q=Ae();$Q("patternMatch")});var Xw=l(()=>{Ww()});var Qw=l(()=>{"use strict";var VQ=p(),HQ=wn(),GQ=Pi();VQ({target:"Promise",stat:!0},{try:function(e){var r=HQ.f(this),t=GQ(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}})});var Zw=l(()=>{Qw()});var t_=l(()=>{var zQ=p(),KQ=w(),YQ=hl(),WQ=Dt(),Jw=qe(),e_="Seeded Random",r_=e_+" Generator",XQ=Jw.set,QQ=Jw.getterFor(r_),ZQ='Math.seededPRNG() argument should have a "seed" field with a finite value.',JQ=WQ(function(r){XQ(this,{type:r_,seed:r%2147483647})},e_,function(){var r=QQ(this),t=r.seed=(r.seed*1103515245+12345)%2147483647;return{value:(t&1073741823)/1073741823,done:!1}});zQ({target:"Math",stat:!0,forced:!0},{seededPRNG:function(r){var t=KQ(r).seed;if(!YQ(t))throw TypeError(ZQ);return new JQ(t)}})});var n_=l(()=>{t_()});var s_=l(()=>{"use strict";var eZ=p(),rZ=Dt(),tZ=Ce(),i_=qe(),a_=Mt(),nZ=a_.codeAt,iZ=a_.charAt,o_="String Iterator",aZ=i_.set,oZ=i_.getterFor(o_),sZ=rZ(function(r){aZ(this,{type:o_,string:r,index:0})},"String",function(){var r=oZ(this),t=r.string,n=r.index,i;return n>=t.length?{value:void 0,done:!0}:(i=iZ(t,n),r.index+=i.length,{value:{codePoint:nZ(i,0),position:n},done:!1})});eZ({target:"String",proto:!0},{codePoints:function(){return new sZ(String(tZ(this)))}})});var u_=l(()=>{s_()});var d_=l(()=>{var uZ=p(),lZ=Hr(),l_=Object.isFrozen,c_=function(e,r){if(!l_||!lZ(e)||!l_(e))return!1;for(var t=0,n=e.length,i;t<n;)if(i=e[t++],!(typeof i=="string"||r&&typeof i>"u"))return!1;return n!==0};uZ({target:"Array",stat:!0},{isTemplateObject:function(r){if(!c_(r,!0))return!1;var t=r.raw;return!(t.length!==r.length||!c_(t,!1))}})});var f_=l(()=>{d_()});var S_=l((oye,E_)=>{var m_=K(),y_=xa(),as=ke(),cZ=pe(),dZ=me(),fZ=Z(),vZ=j(),v_="USE_FUNCTION_CONSTRUCTOR",p_=fZ("asyncIterator"),g_=m_.AsyncIterator,h_=y_.AsyncIteratorPrototype,qt,jd;if(!vZ){if(h_)qt=h_;else if(typeof g_=="function")qt=g_.prototype;else if(y_[v_]||m_[v_])try{jd=as(as(as(Function("return async function*(){}()")()))),as(jd)===Object.prototype&&(qt=jd)}catch(e){}}qt||(qt={});cZ(qt,p_)||dZ(qt,p_,function(){return this});E_.exports=qt});var x_=l(()=>{"use strict";var pZ=p(),gZ=ar(),q_=me(),I_=pe(),hZ=Z(),Vn=S_(),mZ=j(),b_=hZ("toStringTag"),os=function(){gZ(this,os)};os.prototype=Vn;I_(Vn,b_)||q_(Vn,b_,"AsyncIterator");(!I_(Vn,"constructor")||Vn.constructor===Object)&&q_(Vn,"constructor",os);pZ({global:!0,forced:mZ},{AsyncIterator:os})});var It=l((lye,__)=>{"use strict";var yZ=lr(),EZ=U(),A_=w(),SZ=Ve(),bZ=me(),qZ=wr(),IZ=Z(),w_=qe(),xZ=ce(),Hn=xZ("Promise"),AZ=w_.set,Fd=w_.get,wZ=IZ("toStringTag"),_Z=function(e){var r=Fd(this).iterator,t=r.return;return t===void 0?Hn.resolve({done:!0,value:e}):A_(t.call(r,e))},CZ=function(e){var r=Fd(this).iterator,t=r.throw;return t===void 0?Hn.reject(e):t.call(r,e)};__.exports=function(e,r){var t=function(i){i.next=EZ(i.iterator.next),i.done=!1,AZ(this,i)};return t.prototype=qZ(SZ(yZ.AsyncIterator.prototype),{next:function(i){var a=Fd(this);if(a.done)return Hn.resolve({done:!0,value:void 0});try{return Hn.resolve(A_(e.call(a,i,Hn)))}catch(o){return Hn.reject(o)}},return:_Z,throw:CZ}),r||bZ(t.prototype,wZ,"Generator"),t}});var C_=l(()=>{"use strict";var TZ=p(),Bd=w(),RZ=It(),OZ=RZ(function(e,r){var t=this,n=t.iterator;return r.resolve(Bd(t.next.call(n,e))).then(function(i){return Bd(i).done?(t.done=!0,{done:!0,value:void 0}):{done:!1,value:[t.index++,i.value]}})});TZ({target:"AsyncIterator",proto:!0,real:!0},{asIndexedPairs:function(){return new OZ({iterator:Bd(this),index:0})}})});var T_=l(()=>{"use strict";var LZ=p(),$d=w(),PZ=Nn(),NZ=It(),DZ=NZ(function(e,r){var t=this;return new r(function(n,i){var a=function(){try{r.resolve($d(t.next.call(t.iterator,t.remaining?void 0:e))).then(function(o){try{$d(o).done?(t.done=!0,n({done:!0,value:void 0})):t.remaining?(t.remaining--,a()):n({done:!1,value:o.value})}catch(s){i(s)}},i)}catch(o){i(o)}};a()})});LZ({target:"AsyncIterator",proto:!0,real:!0},{drop:function(r){return new DZ({iterator:$d(this),remaining:PZ(r)})}})});var Gn=l((pye,O_)=>{"use strict";var R_=U(),Vd=w(),MZ=ce(),Hd=MZ("Promise"),UZ=[].push,aa=function(e){var r=e==0,t=e==1,n=e==2,i=e==3;return function(a,o){Vd(a);var s=R_(a.next),u=r?[]:void 0;return r||R_(o),new Hd(function(c,f){var d=function(){try{Hd.resolve(Vd(s.call(a))).then(function(v){try{if(Vd(v).done)c(r?u:i?!1:n||void 0);else{var g=v.value;r?(UZ.call(u,g),d()):Hd.resolve(o(g)).then(function(h){t?d():n?h?d():c(!1):h?c(i||g):d()},f)}}catch(h){f(h)}},f)}catch(v){f(v)}};d()})}};O_.exports={toArray:aa(0),forEach:aa(1),every:aa(2),some:aa(3),find:aa(4)}});var L_=l(()=>{"use strict";var kZ=p(),jZ=Gn().every;kZ({target:"AsyncIterator",proto:!0,real:!0},{every:function(r){return jZ(this,r)}})});var P_=l(()=>{"use strict";var FZ=p(),BZ=U(),Gd=w(),$Z=It(),VZ=$Z(function(e,r){var t=this,n=t.filterer;return new r(function(i,a){var o=function(){try{r.resolve(Gd(t.next.call(t.iterator,e))).then(function(s){try{if(Gd(s).done)t.done=!0,i({done:!0,value:void 0});else{var u=s.value;r.resolve(n(u)).then(function(c){c?i({done:!1,value:u}):o()},a)}}catch(c){a(c)}},a)}catch(s){a(s)}};o()})});FZ({target:"AsyncIterator",proto:!0,real:!0},{filter:function(r){return new VZ({iterator:Gd(this),filterer:BZ(r)})}})});var N_=l(()=>{"use strict";var HZ=p(),GZ=Gn().find;HZ({target:"AsyncIterator",proto:!0,real:!0},{find:function(r){return GZ(this,r)}})});var zd=l((bye,D_)=>{var zZ=Yr(),KZ=Z(),YZ=KZ("asyncIterator");D_.exports=function(e){var r=e[YZ];return r===void 0?zZ(e):r}});var U_=l(()=>{"use strict";var WZ=p(),M_=U(),zn=w(),XZ=It(),QZ=zd(),ZZ=XZ(function(e,r){var t=this,n=t.mapper,i,a;return new r(function(o,s){var u=function(){try{r.resolve(zn(t.next.call(t.iterator,e))).then(function(f){try{zn(f).done?(t.done=!0,o({done:!0,value:void 0})):r.resolve(n(f.value)).then(function(d){try{if(a=QZ(d),a!==void 0)return t.innerIterator=i=zn(a.call(d)),t.innerNext=M_(i.next),c();s(TypeError(".flatMap callback should return an iterable object"))}catch(v){s(v)}},s)}catch(d){s(d)}},s)}catch(f){s(f)}},c=function(){if(i=t.innerIterator)try{r.resolve(zn(t.innerNext.call(i))).then(function(f){try{zn(f).done?(t.innerIterator=t.innerNext=null,u()):o({done:!1,value:f.value})}catch(d){s(d)}},s)}catch(f){s(f)}else u()};c()})});WZ({target:"AsyncIterator",proto:!0,real:!0},{flatMap:function(r){return new ZZ({iterator:zn(this),mapper:M_(r),innerIterator:null,innerNext:null})}})});var k_=l(()=>{"use strict";var JZ=p(),eJ=Gn().forEach;JZ({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(r){return eJ(this,r)}})});var j_=l(()=>{var rJ=p(),tJ=lr(),nJ=U(),iJ=w(),aJ=de(),oJ=It(),sJ=zd(),uJ=tJ.AsyncIterator,lJ=oJ(function(e){return iJ(this.next.call(this.iterator,e))},!0);rJ({target:"AsyncIterator",stat:!0},{from:function(r){var t=aJ(r),n=sJ(t),i;if(n!=null){if(i=nJ(n).call(t),i instanceof uJ)return i}else i=t;return new lJ({iterator:i})}})});var F_=l(()=>{"use strict";var cJ=p(),dJ=U(),Kd=w(),fJ=It(),vJ=fJ(function(e,r){var t=this,n=t.mapper;return r.resolve(Kd(t.next.call(t.iterator,e))).then(function(i){return Kd(i).done?(t.done=!0,{done:!0,value:void 0}):r.resolve(n(i.value)).then(function(a){return{done:!1,value:a}})})});cJ({target:"AsyncIterator",proto:!0,real:!0},{map:function(r){return new vJ({iterator:Kd(this),mapper:dJ(r)})}})});var $_=l(()=>{"use strict";var pJ=p(),B_=U(),Yd=w(),gJ=ce(),Wd=gJ("Promise");pJ({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(r){var t=Yd(this),n=B_(t.next),i=arguments.length<2,a=i?void 0:arguments[1];return B_(r),new Wd(function(o,s){var u=function(){try{Wd.resolve(Yd(n.call(t))).then(function(c){try{if(Yd(c).done)i?s(TypeError("Reduce of empty iterator with no initial value")):o(a);else{var f=c.value;i?(i=!1,a=f,u()):Wd.resolve(r(a,f)).then(function(d){a=d,u()},s)}}catch(d){s(d)}},s)}catch(c){s(c)}};u()})}})});var V_=l(()=>{"use strict";var hJ=p(),mJ=Gn().some;hJ({target:"AsyncIterator",proto:!0,real:!0},{some:function(r){return mJ(this,r)}})});var H_=l(()=>{"use strict";var yJ=p(),EJ=w(),SJ=Nn(),bJ=It(),qJ=bJ(function(e){return this.remaining--?this.next.call(this.iterator,e):(this.done=!0,{done:!0,value:void 0})});yJ({target:"AsyncIterator",proto:!0,real:!0},{take:function(r){return new qJ({iterator:EJ(this),remaining:SJ(r)})}})});var G_=l(()=>{"use strict";var IJ=p(),xJ=Gn().toArray;IJ({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return xJ(this)}})});var Q_=l(()=>{"use strict";var AJ=p(),wJ=K(),_J=ar(),Qd=me(),CJ=N(),K_=pe(),Y_=Z(),rt=Ka().IteratorPrototype,W_=j(),TJ=Y_("iterator"),z_=Y_("toStringTag"),Xd=wJ.Iterator,X_=W_||typeof Xd!="function"||Xd.prototype!==rt||!CJ(function(){Xd({})}),ss=function(){_J(this,ss)};W_&&(rt={},Qd(rt,TJ,function(){return this}));K_(rt,z_)||Qd(rt,z_,"Iterator");(X_||!K_(rt,"constructor")||rt.constructor===Object)&&Qd(rt,"constructor",ss);ss.prototype=rt;AJ({global:!0,forced:X_},{Iterator:ss})});var xt=l((Fye,J_)=>{"use strict";var RJ=lr(),OJ=U(),LJ=w(),PJ=Ve(),NJ=me(),DJ=wr(),MJ=Z(),Z_=qe(),UJ=Z_.set,Zd=Z_.get,kJ=MJ("toStringTag"),jJ=function(e){var r=Zd(this).iterator,t=r.return;return t===void 0?{done:!0,value:e}:LJ(t.call(r,e))},FJ=function(e){var r=Zd(this).iterator,t=r.throw;if(t===void 0)throw e;return t.call(r,e)};J_.exports=function(e,r){var t=function(i){i.next=OJ(i.iterator.next),i.done=!1,UJ(this,i)};return t.prototype=DJ(PJ(RJ.Iterator.prototype),{next:function(){var i=Zd(this),a=i.done?void 0:e.apply(i,arguments);return{done:i.done,value:a}},return:jJ,throw:FJ}),r||NJ(t.prototype,kJ,"Generator"),t}});var rC=l(()=>{"use strict";var BJ=p(),eC=w(),$J=xt(),VJ=$J(function(e){var r=eC(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return[this.index++,r.value]});BJ({target:"Iterator",proto:!0,real:!0},{asIndexedPairs:function(){return new VJ({iterator:eC(this),index:0})}})});var tC=l(()=>{"use strict";var HJ=p(),Jd=w(),GJ=Nn(),zJ=xt(),KJ=zJ(function(e){for(var r=this.iterator,t=this.next,n,i;this.remaining;)if(this.remaining--,n=Jd(t.call(r)),i=this.done=!!n.done,i)return;if(n=Jd(t.call(r,e)),i=this.done=!!n.done,!i)return n.value});HJ({target:"Iterator",proto:!0,real:!0},{drop:function(r){return new KJ({iterator:Jd(this),remaining:GJ(r)})}})});var iC=l(()=>{"use strict";var YJ=p(),nC=Y(),WJ=U(),XJ=w();YJ({target:"Iterator",proto:!0,real:!0},{every:function(r){return XJ(this),WJ(r),!nC(this,function(t){if(!r(t))return nC.stop()},void 0,!1,!0).stopped}})});var oC=l(()=>{"use strict";var QJ=p(),ZJ=U(),aC=w(),JJ=xt(),eee=yn(),ree=JJ(function(e){for(var r=this.iterator,t=this.filterer,n=this.next,i,a,o;;){if(i=aC(n.call(r,e)),a=this.done=!!i.done,a)return;if(o=i.value,eee(r,t,o))return o}});QJ({target:"Iterator",proto:!0,real:!0},{filter:function(r){return new ree({iterator:aC(this),filterer:ZJ(r)})}})});var uC=l(()=>{"use strict";var tee=p(),sC=Y(),nee=U(),iee=w();tee({target:"Iterator",proto:!0,real:!0},{find:function(r){return iee(this),nee(r),sC(this,function(t){if(r(t))return sC.stop(t)},void 0,!1,!0).result}})});var cC=l(()=>{"use strict";var aee=p(),lC=U(),us=w(),oee=Yr(),see=xt(),uee=yn(),lee=see(function(e){for(var r=this.iterator,t,n,i,a;;){if(a=this.innerIterator){if(t=us(this.innerNext.call(a)),!t.done)return t.value;this.innerIterator=this.innerNext=null}if(t=us(this.next.call(r,e)),this.done=!!t.done)return;if(n=uee(r,this.mapper,t.value),i=oee(n),i===void 0)throw TypeError(".flatMap callback should return an iterable object");this.innerIterator=a=us(i.call(n)),this.innerNext=lC(a.next)}});aee({target:"Iterator",proto:!0,real:!0},{flatMap:function(r){return new lee({iterator:us(this),mapper:lC(r),innerIterator:null,innerNext:null})}})});var dC=l(()=>{"use strict";var cee=p(),dee=Y(),fee=w();cee({target:"Iterator",proto:!0,real:!0},{forEach:function(r){dee(fee(this),r,void 0,!1,!0)}})});var fC=l(()=>{var vee=p(),pee=lr(),gee=U(),hee=w(),mee=de(),yee=xt(),Eee=Yr(),See=pee.Iterator,bee=yee(function(e){var r=hee(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return r.value},!0);vee({target:"Iterator",stat:!0},{from:function(r){var t=mee(r),n=Eee(t),i;if(n!=null){if(i=gee(n).call(t),i instanceof See)return i}else i=t;return new bee({iterator:i})}})});var pC=l(()=>{"use strict";var qee=p(),Iee=U(),vC=w(),xee=xt(),Aee=yn(),wee=xee(function(e){var r=this.iterator,t=vC(this.next.call(r,e)),n=this.done=!!t.done;if(!n)return Aee(r,this.mapper,t.value)});qee({target:"Iterator",proto:!0,real:!0},{map:function(r){return new wee({iterator:vC(this),mapper:Iee(r)})}})});var gC=l(()=>{"use strict";var _ee=p(),Cee=Y(),Tee=U(),Ree=w();_ee({target:"Iterator",proto:!0,real:!0},{reduce:function(r){Ree(this),Tee(r);var t=arguments.length<2,n=t?void 0:arguments[1];if(Cee(this,function(i){t?(t=!1,n=i):n=r(n,i)},void 0,!1,!0),t)throw TypeError("Reduce of empty iterator with no initial value");return n}})});var mC=l(()=>{"use strict";var Oee=p(),hC=Y(),Lee=U(),Pee=w();Oee({target:"Iterator",proto:!0,real:!0},{some:function(r){return Pee(this),Lee(r),hC(this,function(t){if(r(t))return hC.stop()},void 0,!1,!0).stopped}})});var EC=l(()=>{"use strict";var Nee=p(),yC=w(),Dee=Nn(),Mee=xt(),Uee=Mee(function(e){if(!this.remaining--){this.done=!0;return}var r=yC(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return r.value});Nee({target:"Iterator",proto:!0,real:!0},{take:function(r){return new Uee({iterator:yC(this),remaining:Dee(r)})}})});var SC=l(()=>{"use strict";var kee=p(),jee=Y(),Fee=w(),Bee=[].push;kee({target:"Iterator",proto:!0,real:!0},{toArray:function(){var r=[];return jee(Fee(this),Bee,r,!1,!0),r}})});var bC=l(()=>{x_();C_();T_();L_();P_();N_();U_();k_();j_();F_();$_();V_();H_();G_();Q_();rC();tC();iC();oC();uC();cC();dC();fC();pC();gC();mC();EC();SC()});var ls=l((g0e,qC)=>{"use strict";var $ee=w();qC.exports=function(r,t){var n=$ee(this),i=arguments.length>2?arguments[2]:void 0,a;if(typeof t!="function"&&typeof i!="function")throw TypeError("At least one callback required");return n.has(r)?(a=n.get(r),typeof t=="function"&&(a=t(a),n.set(r,a))):typeof i=="function"&&(a=i(),n.set(r,a)),a}});var IC=l(()=>{"use strict";var Vee=p(),Hee=j(),Gee=ls();Vee({target:"Map",proto:!0,real:!0,forced:Hee},{updateOrInsert:Gee})});var xC=l(()=>{"use strict";var zee=p(),Kee=j(),Yee=ls();zee({target:"Map",proto:!0,real:!0,forced:Kee},{upsert:Yee})});var AC=l(()=>{"use strict";var Wee=p(),Xee=j(),Qee=ls();Wee({target:"WeakMap",proto:!0,real:!0,forced:Xee},{upsert:Qee})});var wC=l(()=>{IC();xC();AC()});var _C=l(()=>{"use strict";var Zee=p(),Jee=j(),ere=ce(),rre=w(),tre=U(),nre=_e(),ire=Y();Zee({target:"Set",proto:!0,real:!0,forced:Jee},{difference:function(r){var t=rre(this),n=new(nre(t,ere("Set")))(t),i=tre(n.delete);return ire(r,function(a){i.call(n,a)}),n}})});var TC=l(()=>{"use strict";var are=p(),ore=j(),sre=ce(),ure=w(),CC=U(),lre=_e(),cre=Y();are({target:"Set",proto:!0,real:!0,forced:ore},{intersection:function(r){var t=ure(this),n=new(lre(t,sre("Set"))),i=CC(t.has),a=CC(n.add);return cre(r,function(o){i.call(t,o)&&a.call(n,o)}),n}})});var OC=l(()=>{"use strict";var dre=p(),fre=j(),vre=w(),pre=U(),RC=Y();dre({target:"Set",proto:!0,real:!0,forced:fre},{isDisjointFrom:function(r){var t=vre(this),n=pre(t.has);return!RC(r,function(i){if(n.call(t,i)===!0)return RC.stop()}).stopped}})});var PC=l(()=>{"use strict";var gre=p(),hre=j(),mre=ce(),yre=w(),Ere=U(),Sre=Un(),LC=Y();gre({target:"Set",proto:!0,real:!0,forced:hre},{isSubsetOf:function(r){var t=Sre(this),n=yre(r),i=n.has;return typeof i!="function"&&(n=new(mre("Set"))(r),i=Ere(n.has)),!LC(t,function(a){if(i.call(n,a)===!1)return LC.stop()},void 0,!1,!0).stopped}})});var DC=l(()=>{"use strict";var bre=p(),qre=j(),Ire=w(),xre=U(),NC=Y();bre({target:"Set",proto:!0,real:!0,forced:qre},{isSupersetOf:function(r){var t=Ire(this),n=xre(t.has);return!NC(r,function(i){if(n.call(t,i)===!1)return NC.stop()}).stopped}})});var MC=l(()=>{"use strict";var Are=p(),wre=j(),_re=ce(),Cre=w(),Tre=U(),Rre=_e(),Ore=Y();Are({target:"Set",proto:!0,real:!0,forced:wre},{union:function(r){var t=Cre(this),n=new(Rre(t,_re("Set")))(t);return Ore(r,Tre(n.add),n),n}})});var kC=l(()=>{"use strict";var Lre=p(),Pre=j(),Nre=ce(),Dre=w(),UC=U(),Mre=_e(),Ure=Y();Lre({target:"Set",proto:!0,real:!0,forced:Pre},{symmetricDifference:function(r){var t=Dre(this),n=new(Mre(t,Nre("Set")))(t),i=UC(n.delete),a=UC(n.add);return Ure(r,function(o){i.call(n,o)||a.call(n,o)}),n}})});var jC=l(()=>{_C();TC();OC();PC();DC();MC();kC()});var FC=l(()=>{var kre=Ae();kre("asyncDispose")});var BC=l(()=>{var jre=Ae();jre("dispose")});var $C=l(()=>{FC();BC()});var zC=l(()=>{"use strict";var Fre=p(),HC=te(),Bre=ke(),VC=ft(),$re=Ve(),Vre=le(),ef=qr(),Hre=Y(),Gre=me(),GC=qe(),zre=GC.set,Kre=GC.getterFor("AggregateError"),Kn=function(r,t){var n=this;if(!(n instanceof Kn))return new Kn(r,t);VC&&(n=VC(new Error(t),Bre(n)));var i=[];return Hre(r,i.push,i),HC?zre(n,{errors:i,type:"AggregateError"}):n.errors=i,t!==void 0&&Gre(n,"message",String(t)),n};Kn.prototype=$re(Error.prototype,{constructor:ef(5,Kn),message:ef(5,""),name:ef(5,"AggregateError")});HC&&Vre.f(Kn.prototype,"errors",{get:function(){return Kre(this).errors},configurable:!0});Fre({global:!0},{AggregateError:Kn})});var WC=l(()=>{"use strict";var Yre=p(),Wre=U(),KC=ce(),Xre=wn(),Qre=Pi(),Zre=Y(),YC="No one promise resolved";Yre({target:"Promise",stat:!0},{any:function(r){var t=this,n=Xre.f(t),i=n.resolve,a=n.reject,o=Qre(function(){var s=Wre(t.resolve),u=[],c=0,f=1,d=!1;Zre(r,function(v){var g=c++,h=!1;u.push(void 0),f++,s.call(t,v).then(function(m){h||d||(d=!0,i(m))},function(m){h||d||(h=!0,u[g]=m,--f||a(new(KC("AggregateError"))(u,YC)))})}),--f||a(new(KC("AggregateError"))(u,YC))});return o.error&&a(o.value),n.promise}})});var XC=l(()=>{zC();WC()});var ZC=l(()=>{"use strict";var Jre=p(),QC=Ce(),ete=bn(),rte=Ut(),tte=Z(),nte=j(),ite=tte("replace"),ate=RegExp.prototype;Jre({target:"String",proto:!0},{replaceAll:function e(r,t){var n=QC(this),i,a,o,s,u,c,f,d,v;if(r!=null){if(i=ete(r),i&&(a=String(QC("flags"in ate?r.flags:rte.call(r))),!~a.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(o=r[ite],o!==void 0)return o.call(r,n,t);if(nte&&i)return String(n).replace(r,t)}if(s=String(n),u=String(r),u==="")return e.call(s,/(?:)/g,t);if(c=s.split(u),typeof t!="function")return c.join(String(t));for(f=c[0],d=f.length,v=1;v<c.length;v++)f+=String(t(u,d,s)),d+=u.length+c[v].length,f+=c[v];return f}})});var JC=l(()=>{var ote=Ae();ote("replaceAll")});var eT=l(()=>{ZC();JC()});var rT=l(()=>{Ou()});var nT=l((oEe,tT)=>{rT();var ste=K();tT.exports=ste});var iT=l(()=>{ec()});var aT=l(()=>{iT()});var oT=l(()=>{nl()});var sT=l(()=>{oT()});var lT=l((gEe,uT)=>{nT();aT();sT();var ute=lr();uT.exports=ute});var dT=l((hEe,cT)=>{XC();eT();var lte=lT();cT.exports=lte});var vT=l((mEe,fT)=>{f_();bC();wC();jC();$C();var cte=dT();fT.exports=cte});var gT=l((yEe,pT)=>{lA();ew();vw();bw();Rw();Lw();Nw();Bw();Yw();Xw();Zw();n_();u_();var dte=vT();pT.exports=dte});var mT=l((EEe,hT)=>{ax();sx();iA();var fte=gT();hT.exports=fte});var ET=l((SEe,yT)=>{ex();var vte=mT();yT.exports=vte});var bT=l((bEe,ST)=>{var pte=ET();ST.exports=pte});var qT=l(()=>{bT()});var rf=l((xEe,IT)=>{IT.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 AT=l(()=>{var gte=K(),hte=rf(),tf=$u(),mte=me();for(xT in hte)if(nf=gte[xT],oa=nf&&nf.prototype,oa&&oa.forEach!==tf)try{mte(oa,"forEach",tf)}catch(e){oa.forEach=tf}var nf,oa,xT});var TT=l(()=>{var yte=K(),wT=rf(),sa=mi(),af=me(),CT=Z(),of=CT("iterator"),_T=CT("toStringTag"),sf=sa.values;for(cs in wT)if(uf=yte[cs],Pr=uf&&uf.prototype,Pr){if(Pr[of]!==sf)try{af(Pr,of,sf)}catch(e){Pr[of]=sf}if(Pr[_T]||af(Pr,_T,cs),wT[cs]){for(Kt in sa)if(Pr[Kt]!==sa[Kt])try{af(Pr,Kt,sa[Kt])}catch(e){Pr[Kt]=sa[Kt]}}}var uf,Pr,Kt,cs});var LT=l(()=>{var Ete=p(),RT=K(),OT=ho(),Ste=!RT.setImmediate||!RT.clearImmediate;Ete({global:!0,bind:!0,enumerable:!0,forced:Ste},{setImmediate:OT.set,clearImmediate:OT.clear})});var NT=l(()=>{var bte=p(),qte=K(),Ite=Vl(),xte=Xe(),PT=qte.process,Ate=xte(PT)=="process";bte({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(r){var t=Ate&&PT.domain;Ite(t?t.bind(r):r)}})});var UT=l(()=>{var wte=p(),DT=K(),_te=pi(),Cte=[].slice,Tte=/MSIE .\./.test(_te),MT=function(e){return function(r,t){var n=arguments.length>2,i=n?Cte.call(arguments,2):void 0;return e(n?function(){(typeof r=="function"?r:Function(r)).apply(this,i)}:r,t)}};wte({global:!0,bind:!0,forced:Tte},{setTimeout:MT(DT.setTimeout),setInterval:MT(DT.setInterval)})});var jT=l((DEe,kT)=>{AT();TT();LT();NT();UT();Cd();Td();zo();var Rte=lr();kT.exports=Rte});var ds=l((MEe,FT)=>{RI();qT();jT();var Ote=lr();FT.exports=Ote});var nie={};Yf(nie,{SprigAPI:()=>ei,sprig:()=>Hf});module.exports=zR(nie);var Qf={test:"test"},ma="pageUrl",rn={ENVIRONMENT_ID:"x-ul-environment-id",PARTNER_ANONYMOUS_ID:"x-ul-anonymous-id",USER_ID:"x-ul-user-id",VISITOR_ID:"x-ul-visitor-id",INSTALLATION_METHOD:"x-ul-installation-method"},br={NPM:"web-npm",GTM:"web-gtm",SEGMENT:"web-segment",SNIPPET:"web-snippet"},rr="ul-app",q={CUSTOM_STYLE_TAG_ID:"ul-custom-style",CARD_CONTAINER_CLASS:"ul-card__container",VIDEO_CARD_CLASS:"ul-card--video",CLOSE_CONTAINER_CLASS:"close-container",CLOSE_BUTTON_CLASS:"close-btn",LIKERT_NUMBER_CLASS:"likert-number",LIKERT_STAR_CLASS:"likert-star",LIKERT_SMILEY_CLASS:"likert-smiley",NPS_NUMBER_CLASS:"nps-number",CHOICE_CLASS:"choice",CHOICE_LABEL_CLASS:"select-label",CHOICE_CHECKBOX_CLASS:"select-checkbox",CHOICE_RADIO_CLASS:"select-radio",CHOICE_GROUP_CLASS:"ul-card__choices",CHOICE_TEXT_INPUT_CLASS:"choice-text-input",CHOICE_LABEL_CONTAINER_CLASS:"choice-label-container",CHOICE_TEXT_ENTRY_CONTAINER_CLASS:"choice-text-entry-container",CONSENT_LEGAL_NAME_INPUT:"ul-consent-legal__name-input",OPEN_TEXT_INPUT:"ul-card-text__input",DESKTOP_SUFFIX:"--desktop",MOBILE_SUFFIX:"--mobile",QUESTION_HEADER_CLASS:"ul-question",CAPTION_CLASS:"ul-caption",FADE_IN_CLASS:"fade-in-transition",CARD_MAIN_CONTENT:"ul-card-main-content",LOADING_SPINNER_CONTAINER:"ul-loading-spinner-container",LOADING_SPINNER:"ul-loading-spinner",LOADING_SPINNER_FIRST:"first",LOADING_SPINNER_SECOND:"second",LOADING_SPINNER_THIRD:"third",LOADING_SPINNER_FOURTH:"fourth",INACTIVE_BUTTON:"ul-button-inactive",CHECKMARK_BUTTON:"ul-button-checkmark",LEFT_ALIGN_BUTTON:"ul-button-left-align",SUBMIT_BUTTON_DISABLED:"submit-button-disabled"},ot="#e6e6e6",ya="#ffffff",Rt="#bd282a";var Zf=500,Jf=1030,ve=(e,r)=>{let t=r?q.MOBILE_SUFFIX:q.DESKTOP_SUFFIX;return[e+t,e]},xe=(e,r)=>[e,`${e}__${r}`],ev=["ios","android"],tn="!email",Ea="View Prototype",rv="View Document",tr={NUMBER:"number",STAR:"star",SMILEY:"smiley"};var YIe=Ms(ds());var lf={};Yf(lf,{disable:()=>Pte,enable:()=>Lte});var BT=()=>{try{return window.parent.Intercom}catch(e){}},Lte=()=>{let e=BT();!e||(e.ul_wasVisible&&e("update",{hide_default_launcher:!1}),delete e.ul_wasVisible)},Pte=()=>{let e=BT();!e||(e.ul_wasVisible=!!document.querySelector("iframe.intercom-launcher-frame"),e.ul_wasVisible&&e("update",{hide_default_launcher:!0}))};var $T=[lf],Nr=class{static disable(){$T.forEach(r=>r.disable())}static enable(){$T.forEach(r=>r.enable())}};var Je={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};function Nte(e){return e&&DataView.prototype.isPrototypeOf(e)}Je.arrayBuffer&&(VT=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],GT=ArrayBuffer.isView||function(e){return e&&VT.indexOf(Object.prototype.toString.call(e))>-1});var VT,GT;function ua(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function zT(e){return typeof e!="string"&&(e=String(e)),e}function df(e){var r={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return Je.iterable&&(r[Symbol.iterator]=function(){return r}),r}function Oe(e){this.map={},e instanceof Oe?e.forEach(function(r,t){this.append(t,r)},this):Array.isArray(e)?e.forEach(function(r){this.append(r[0],r[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(r){this.append(r,e[r])},this)}Oe.prototype.append=function(e,r){e=ua(e),r=zT(r);var t=this.map[e];this.map[e]=t?t+", "+r:r};Oe.prototype.delete=function(e){delete this.map[ua(e)]};Oe.prototype.get=function(e){return e=ua(e),this.has(e)?this.map[e]:null};Oe.prototype.has=function(e){return this.map.hasOwnProperty(ua(e))};Oe.prototype.set=function(e,r){this.map[ua(e)]=zT(r)};Oe.prototype.forEach=function(e,r){for(var t in this.map)this.map.hasOwnProperty(t)&&e.call(r,this.map[t],t,this)};Oe.prototype.keys=function(){var e=[];return this.forEach(function(r,t){e.push(t)}),df(e)};Oe.prototype.values=function(){var e=[];return this.forEach(function(r){e.push(r)}),df(e)};Oe.prototype.entries=function(){var e=[];return this.forEach(function(r,t){e.push([t,r])}),df(e)};Je.iterable&&(Oe.prototype[Symbol.iterator]=Oe.prototype.entries);function cf(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function KT(e){return new Promise(function(r,t){e.onload=function(){r(e.result)},e.onerror=function(){t(e.error)}})}function Dte(e){var r=new FileReader,t=KT(r);return r.readAsArrayBuffer(e),t}function Mte(e){var r=new FileReader,t=KT(r);return r.readAsText(e),t}function Ute(e){for(var r=new Uint8Array(e),t=new Array(r.length),n=0;n<r.length;n++)t[n]=String.fromCharCode(r[n]);return t.join("")}function HT(e){if(e.slice)return e.slice(0);var r=new Uint8Array(e.byteLength);return r.set(new Uint8Array(e)),r.buffer}function YT(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Je.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Je.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Je.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Je.arrayBuffer&&Je.blob&&Nte(e)?(this._bodyArrayBuffer=HT(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Je.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||GT(e))?this._bodyArrayBuffer=HT(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Je.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Je.blob&&(this.blob=function(){var e=cf(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?cf(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Dte)}),this.text=function(){var e=cf(this);if(e)return e;if(this._bodyBlob)return Mte(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Ute(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Je.formData&&(this.formData=function(){return this.text().then(Fte)}),this.json=function(){return this.text().then(JSON.parse)},this}var kte=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function jte(e){var r=e.toUpperCase();return kte.indexOf(r)>-1?r:e}function Yn(e,r){r=r||{};var t=r.body;if(e instanceof Yn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new Oe(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!t&&e._bodyInit!=null&&(t=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new Oe(r.headers)),this.method=jte(r.method||this.method||"GET"),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&t)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(t)}Yn.prototype.clone=function(){return new Yn(this,{body:this._bodyInit})};function Fte(e){var r=new FormData;return e.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");r.append(decodeURIComponent(i),decodeURIComponent(a))}}),r}function Bte(e){var r=new Oe,t=e.replace(/\r?\n[\t ]+/g," ");return t.split(/\r?\n/).forEach(function(n){var i=n.split(":"),a=i.shift().trim();if(a){var o=i.join(":").trim();r.append(a,o)}}),r}YT.call(Yn.prototype);function tt(e,r){r||(r={}),this.type="default",this.status=r.status===void 0?200:r.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in r?r.statusText:"OK",this.headers=new Oe(r.headers),this.url=r.url||"",this._initBody(e)}YT.call(tt.prototype);tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Oe(this.headers),url:this.url})};tt.error=function(){var e=new tt(null,{status:0,statusText:""});return e.type="error",e};var $te=[301,302,303,307,308];tt.redirect=function(e,r){if($te.indexOf(r)===-1)throw new RangeError("Invalid status code");return new tt(null,{status:r,headers:{location:e}})};var Yt=self.DOMException;try{new Yt}catch(e){Yt=function(r,t){this.message=r,this.name=t;var n=Error(r);this.stack=n.stack},Yt.prototype=Object.create(Error.prototype),Yt.prototype.constructor=Yt}function WT(e,r){return new Promise(function(t,n){var i=new Yn(e,r);if(i.signal&&i.signal.aborted)return n(new Yt("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var s={status:a.status,statusText:a.statusText,headers:Bte(a.getAllResponseHeaders()||"")};s.url="responseURL"in a?a.responseURL:s.headers.get("X-Request-URL");var u="response"in a?a.response:a.responseText;t(new tt(u,s))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new Yt("Aborted","AbortError"))},a.open(i.method,i.url,!0),i.credentials==="include"?a.withCredentials=!0:i.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&Je.blob&&(a.responseType="blob"),i.headers.forEach(function(s,u){a.setRequestHeader(u,s)}),i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener("abort",o)}),a.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}WT.polyfill=!0;self.fetch||(self.fetch=WT,self.Headers=Oe,self.Request=Yn,self.Response=tt);var ff=class{constructor(r){this.promise=new Promise((t,n)=>{this.payload=r,this.reject=n,this.resolve=t})}resolveRequest(r){this.resolve(r)}},XT=ff;function Wn(e,r){return new Promise(function(t){setTimeout(t.bind(null,r),e)})}var QT={RATELIMIT_RESET_DEFAULT:10};var JT=!1,e2="",fs=!1,vs=[];function Vte(e){return e._config&&e._config.installationMethod?e._config.installationMethod:e._gtm?br.GTM:e._segment?br.SEGMENT:br.SNIPPET}function ps(e){JT=!0,e2=e}function Xn(e={}){let r={"Content-Type":"application/json","userleap-platform":"web","x-ul-sdk-version":"2.19.7"};if(e.envId&&(r[rn.ENVIRONMENT_ID]=e.envId),e.token&&(r.Authorization="Bearer "+e.token),e.userId&&(r[rn.USER_ID]=e.userId),e.visitorId&&(r[rn.VISITOR_ID]=e.visitorId),e.partnerAnonymousId&&(r[rn.PARTNER_ANONYMOUS_ID]=e.partnerAnonymousId),e.mobileHeadersJSON){let t=JSON.parse(e.mobileHeadersJSON);Object.assign(r,t)}return r[rn.INSTALLATION_METHOD]=Vte(e),e.locale&&(r["accept-language"]=e.locale),window.previewMode&&(r["x-ul-preview-mode"]=1),r}async function ZT(e,r,t){if(e)return{status:429};{let n=new XT(t);return vs.push(n),n.promise}}async function ur(e,r,t=0,n=!1,i=!1){let a={url:e,options:r,attempt:t,shouldDropOnRateLimit:n};if(fs&&!i)return ZT(n,i,a);let o={ok:!1,reportError:!1};if(JT)return console.log(`UserLeap - ${e2}`),o;try{r.headers=Object.assign(Xn(),r.headers);let s=await fetch(e,r);if(s.status===429)if(!fs&&!n||i){fs=!0;let c=s.headers.has("ratelimit-reset")?Number(s.headers.get("ratelimit-reset")):QT.RATELIMIT_RESET_DEFAULT;return Wn(c*1e3).then(async()=>ur(e,r,0,n,!0))}else return ZT(n,!1,a);if(fs=!1,vs.length&&(vs.map(u=>{let{url:c,options:f,attempt:d,shouldDropOnRateLimit:v}=u.payload;ur(c,f,d,v).then(g=>{u.resolveRequest(g)})}),vs=[]),s.ok){if(s.status===249)return ps(),o;let u=await s.text();try{return u&&u!=="OK"&&(s.json=JSON.parse(u)),s}catch(c){return{ok:!1,reportError:!1,error:new Error(`failed parsing response json for ${e} - ${u}`)}}}return s}catch(s){let u=t+1;return u>5?{ok:!1,reportError:!1,error:s}:Wn(Math.pow(2,t)*1e3).then(()=>ur(e,r,u))}}var nt=class{constructor(){return nt.instance||(this._events={},nt.instance=this),nt.instance}subscribe(r,t){!r||!t||(this._events[r]||(this._events[r]=[]),this._events[r].push(t))}removeListener(r,t){if(!r||!t||!this._events[r])return;let n=i=>i!==t;this._events[r]=this._events[r].filter(n)}removeAllListeners(){Object.keys(this._events).map(r=>{this._events[r]=[]})}emit(r,t){if(!this._events[r]||this._events[r].length==0)return;let n=i=>{i(t)};this._events[r].forEach(n)}},r2=new nt;Object.freeze(r2);var fe=r2;var X={SURVEY_LIFE_CYCLE:"survey.lifeCycle",SURVEY_DIMENSIONS:"survey.dimensions",SURVEY_HEIGHT:"survey.height",SURVEY_WILL_PRESENT:"survey.will.present",SURVEY_PRESENTED:"survey.presented",SURVEY_APPEARED:"survey.appeared",SURVEY_FADING_OUT:"survey.fadingOut",SURVEY_WILL_CLOSE:"survey.willClose",SURVEY_CLOSED:"survey.closed",SDK_READY:"sdk.ready",CLOSE_SURVEY_ON_OVERLAY_CLICK:"close.survey.overlayClick",VISITOR_ID_UPDATED:"visitor.id.updated",DATA:{DISMISS_REASONS:Er,SURVEY_ID:"survey.id"}},Se={name:{VERIFY_VIEW_VERSION:"verify.view.version",CURRENT_QUESTION:"survey.question",VIEW_PROTOTYPE_CLICK:"question.prototype.click",VIEW_AGREEMENT_CLICK:"question.agreement.click",RECORDED_TASK_START:"recorded.task.start",RECORDED_TASK_PERMISSION_SCREEN:"recorded.task.permission.screen",SURVEY_COMPLETE:"survey.complete"},data:{VIEW_VERSION:"view.version",QUESTION_ID:"qid",PROPS:"props"}},Er={CLOSED:"close.click",COMPLETE:"survey.completed",PAGE_CHANGE:"page.change",API:"api",OVERRIDE:"override"},Dr={READY:"ready",NO_SURVEY:"no survey"};window.UserLeap&&window.Sprig&&(window.Sprig._gtm?window.Sprig=window.UserLeap:window.UserLeap=window.Sprig);window.UserLeap||(window.UserLeap=window.Sprig);window.Sprig||(window.Sprig=window.UserLeap);var Hte="rgba(255,255,255, 0.95)",Gte="rgba(0,0,0,0.9)";function vf(){UserLeap.container=document.createElement("div"),UserLeap.container.className="ul-container",document.body.appendChild(UserLeap.container)}function pf(e){let r=UserLeap.container;if(!!r)try{document.body.removeChild(r),UserLeap.container=null,fe.emit(X.SURVEY_LIFE_CYCLE,{state:"dismissed"}),fe.emit(X.SURVEY_CLOSED,{name:X.SURVEY_CLOSED,initiator:e})}catch(t){console.warn(`[Sprig] (ERR-412) Error removing UserLeap container by ${e} `+r),UserLeap.reportError("dismissActiveSurvey",t)}}function gf(){fe.subscribe(X.SURVEY_WILL_CLOSE,({initiator:e})=>{pf(e)})}function t2(e,r){let t="360px",n="0px",i="ul-frame";vf();let a=document.createElement("iframe");a.id=i,a.setAttribute("title","Sprig User Feedback Dialog");let o=u(a,e,r);fe.subscribe(X.SURVEY_FADING_OUT,()=>{Object.assign(UserLeap.container.style,{"background-color":"rgba(0,0,0,0)"})}),gf();function s(d,v){let h=G({},{position:"fixed",overflow:"auto",top:"0px",left:"0px",display:"none",height:"100%",width:"100%",transition:"background-color 0.3s ease-out",zIndex:2147483646}),m=v?d.overlayStyleMobile:d.overlayStyle;h["background-color"]=m==="light"?Hte:Gte,v||(h.margin="auto"),Object.assign(UserLeap.container.style,h)}function u(d,v,g){let h={position:"fixed",bottom:"0px",right:n,border:0,backgroundColor:"rgba(0,0,0,0)",zIndex:2147483646},m=Object.assign({},v,UserLeap),E,S=!1;return g?(UserLeap.windowDimensions&&UserLeap.windowDimensions.width?h.width=`${UserLeap.windowDimensions.width}px`:h.width="100%",UserLeap.windowDimensions&&UserLeap.windowDimensions.height?h.maxHeight=`${UserLeap.windowDimensions.height-20}px`:UserLeap.maxHeight?h.maxHeight=UserLeap.maxHeight:h.maxHeight=`${document.body.clientHeight-20}px`,["light","dark"].includes(m.overlayStyleMobile)&&(S=!0)):(h.width=t,h.maxHeight=UserLeap.maxHeight||"66vh",m.framePosition==="bottomLeft"?E={left:n}:m.framePosition==="topLeft"?E={left:n,top:"0px"}:m.framePosition==="topRight"?E={top:"0px"}:m.framePosition==="center"&&(S=!0,E={margin:"auto",position:"static"},h.maxHeight=null)),S&&s(m,g),Object.assign(d.style,h,E),S}a.setHeight=d=>{parseInt(a.style.height)!=d&&(a.style.height=`${d}px`,fe.emit(X.SURVEY_HEIGHT,{name:X.SURVEY_HEIGHT,contentFrameHeight:a.clientHeight}))},UserLeap.container.appendChild(a),e&&(r?e.exitOnOverlayClickMobile:e.exitOnOverlayClick)&&(UserLeap.container.onclick=()=>{fe.emit(X.CLOSE_SURVEY_ON_OVERLAY_CLICK)}),fe.emit(X.SURVEY_LIFE_CYCLE,{state:"presented"}),fe.emit(X.SURVEY_PRESENTED,{name:X.SURVEY_PRESENTED});let c=a.contentWindow.document;c.open("text/html","replace"),c.write("<!doctype html><head></head><body></body></html>"),c.close();let f=c.head;return{frameId:i,contentWinDocHead:f,contentWindow:a.contentWindow,hasOverlay:o,iframe:a}}var ZEe=Ms(ds()),n2=class{constructor(e,r){this.ul=e,this.paused=!1,this.queue=[],this.flush(r)}flush(e){let r=e.length;if(r)for(let t=0;t<r;t++)this.push(e[t])}isPaused(){return this.paused}pause(){this.paused=!0}unpause(){this.paused=!1;let e=this.queue.slice();this.empty(),this.flush(e)}push(e){if(this.paused)this.queue.push(e);else if(e instanceof Function)e();else{let r=Array.prototype.slice.call(e,1),t=e[0],n=this.ul[t];n&&n instanceof Function?this.ul[t].apply(this.ul,r):t&&console.warn("[Sprig] (ERR-100) No valid UserLeap action called",t)}}perform(e){if(this.paused){let r,t=new Promise(function(n){r=function(){n(e())}});return this.queue.push(r),t}else return e()}empty(){this.queue.length=0}};var zte="!optimizely_experiments_";var Wt=class{constructor(){return Wt.instance||(this._optimizelyData={},Wt.instance=this),Wt.instance}setOptimizelyExperiment(r){if(!r||typeof r!="object")return!1;let{experiments:t}=r;try{return Object.keys(this._optimizelyData).map(n=>{delete this._optimizelyData[n]}),t&&t.map(n=>{let{id:i,variation:a}=n,o=this.transformExperimentId(i);a&&typeof a=="string"&&(this._optimizelyData[o]=a)}),!0}catch(n){return UserLeap.reportError("setOptimizelyExperiment",n),!1}}getAllOptimizelyExperiments(){return this._optimizelyData}getOptimizelyVariationName(r){return this._optimizelyData[this.transformExperimentId(r)]}transformExperimentId(r){return zte+r}getAndSetWebOptimizelyExperiments(){var r;try{if(window&&window.optimizely&&typeof window.optimizely.get=="function"){let t=(r=window.optimizely.get("state"))==null?void 0:r.getExperimentStates({isActive:!0});if(t){let n=Object.keys(t).map(i=>{var a,o;return(a=t[i].variation)!=null&&a.name?{id:i,variation:(o=t[i].variation)==null?void 0:o.name}:{id:i,variation:"Original"}});return this.setOptimizelyExperiment({experiments:n}),!0}return!1}return!1}catch(t){return UserLeap.reportError("getAndSetWebOptimizely",t),!1}}},i2=new Wt;Object.freeze(i2);var gs=i2;var Kte=1,hs=(e,r,t)=>{let n=e.createElement("style");n.type="text/css",t&&(n.nonce=t),n.textContent=r,n.id=q.CUSTOM_STYLE_TAG_ID,e.head.appendChild(n)},ms=e=>{let r=e.querySelector(`.${q.CARD_CONTAINER_CLASS}`),t=r?r.scrollHeight:600,n=r&&r.parentElement?r.parentElement.clientHeight-r.clientHeight:0;return t+n+Kte},a2=e=>{let r=e.querySelector(`.${q.CARD_CONTAINER_CLASS}`);r&&(r.scrollTop=0)};var ys,Yte=new Uint8Array(16);function hf(){if(!ys&&(ys=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ys))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ys(Yte)}var o2=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Wte(e){return typeof e=="string"&&o2.test(e)}var s2=Wte;var De=[];for(Es=0;Es<256;++Es)De.push((Es+256).toString(16).substr(1));var Es;function Xte(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(De[e[r+0]]+De[e[r+1]]+De[e[r+2]]+De[e[r+3]]+"-"+De[e[r+4]]+De[e[r+5]]+"-"+De[e[r+6]]+De[e[r+7]]+"-"+De[e[r+8]]+De[e[r+9]]+"-"+De[e[r+10]]+De[e[r+11]]+De[e[r+12]]+De[e[r+13]]+De[e[r+14]]+De[e[r+15]]).toLowerCase();if(!s2(t))throw TypeError("Stringified UUID is invalid");return t}var u2=Xte;function Qte(e,r,t){e=e||{};var n=e.random||(e.rng||hf)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){t=t||0;for(var i=0;i<16;++i)r[t+i]=n[i];return r}return u2(n)}var At=Qte;function Mr({"userleap-platform":e}){return e!=="web"}var RIe=Ms(ds());function y(e,r){for(var t=[],n=[],i=arguments.length;i-- >2;)t.push(arguments[i]);for(;t.length;){var a=t.pop();if(a&&a.pop)for(i=a.length;i--;)t.push(a[i]);else a!=null&&a!==!0&&a!==!1&&n.push(a)}return typeof e=="function"?e(r||{},n):{nodeName:e,attributes:r||{},children:n,key:r&&r.key}}function l2(e,r,t,n){var i=[].map,a=n&&n.children[0]||null,o=a&&v(a),s=[],u,c=!0,f=E(e),d=A([],f,E(r));return m(),d;function v(I){return{nodeName:I.nodeName.toLowerCase(),attributes:{},children:i.call(I.childNodes,function(b){return b.nodeType===3?b.nodeValue:v(b)})}}function g(I){return typeof I=="function"?g(I(f,d)):I!=null?I:""}function h(){u=!u;var I=g(t);for(n&&!u&&(a=R(n,a,o,o=I)),c=!1;s.length;)s.pop()()}function m(){u||(u=!0,setTimeout(h))}function E(I,b){var T={};for(var O in I)T[O]=I[O];for(var O in b)T[O]=b[O];return T}function S(I,b,T){var O={};return I.length?(O[I[0]]=I.length>1?S(I.slice(1),b,T[I[0]]):b,E(T,O)):b}function x(I,b){for(var T=0;T<I.length;)b=b[I[T++]];return b}function A(I,b,T){for(var O in T)typeof T[O]=="function"?function(k,$){T[k]=function(he){var ye=$(he);return typeof ye=="function"&&(ye=ye(x(I,f),T)),ye&&ye!==(b=x(I,f))&&!ye.then&&m(f=S(I,E(b,ye),f)),ye}}(O,T[O]):A(I.concat(O),b[O]=E(b[O]),T[O]=E(T[O]));return T}function _(I){return I?I.key:null}function C(I){return I.currentTarget.events[I.type](I)}function L(I,b,T,O,k){if(b!=="key")if(b==="style")if(typeof T=="string")I.style.cssText=T;else{typeof O=="string"&&(O=I.style.cssText="");for(var $ in E(O,T)){var he=T==null||T[$]==null?"":T[$];$[0]==="-"?I.style.setProperty($,he):I.style[$]=he}}else b[0]==="o"&&b[1]==="n"?(b=b.slice(2),I.events?O||(O=I.events[b]):I.events={},I.events[b]=T,T?O||I.addEventListener(b,C):I.removeEventListener(b,C)):b in I&&b!=="list"&&b!=="type"&&b!=="draggable"&&b!=="spellcheck"&&b!=="translate"&&!k?I[b]=T==null?"":T:T!=null&&T!==!1&&I.setAttribute(b,T),(T==null||T===!1)&&I.removeAttribute(b)}function M(I,b){var T=typeof I=="string"||typeof I=="number"?document.createTextNode(I):(b=b||I.nodeName==="svg")?document.createElementNS("http://www.w3.org/2000/svg",I.nodeName):document.createElement(I.nodeName),O=I.attributes;if(O){O.oncreate&&s.push(function(){O.oncreate(T)});for(var k=0;k<I.children.length;k++)T.appendChild(M(I.children[k]=g(I.children[k]),b));for(var $ in O)L(T,$,O[$],null,b)}return T}function V(I,b,T,O){for(var k in E(b,T))T[k]!==(k==="value"||k==="checked"?I[k]:b[k])&&L(I,k,T[k],b[k],O);var $=c?T.oncreate:T.onupdate;$&&s.push(function(){$(I,b)})}function F(I,b){var T=b.attributes;if(T){for(var O=0;O<b.children.length;O++)F(I.childNodes[O],b.children[O]);T.ondestroy&&T.ondestroy(I)}return I}function H(I,b,T){function O(){I.removeChild(F(b,T))}var k=T.attributes&&T.attributes.onremove;k?k(b,O):O()}function R(I,b,T,O,k){if(O!==T)if(T==null||T.nodeName!==O.nodeName){var $=M(O,k);I.insertBefore($,b),T!=null&&H(I,b,T),b=$}else if(T.nodeName==null)b.nodeValue=O;else{V(b,T.attributes,O.attributes,k=k||O.nodeName==="svg");for(var he={},ye={},ge=[],Ie=T.children,ue=O.children,Q=0;Q<Ie.length;Q++){ge[Q]=b.childNodes[Q];var Le=_(Ie[Q]);Le!=null&&(he[Le]=[ge[Q],Ie[Q]])}for(var Q=0,z=0;z<ue.length;){var Le=_(Ie[Q]),se=_(ue[z]=g(ue[z]));if(ye[Le]){Q++;continue}if(se!=null&&se===_(Ie[Q+1])){Le==null&&H(b,ge[Q],Ie[Q]),Q++;continue}if(se==null||c)Le==null&&(R(b,ge[Q],Ie[Q],ue[z],k),z++),Q++;else{var re=he[se]||[];Le===se?(R(b,re[0],re[1],ue[z],k),Q++):re[0]?R(b,b.insertBefore(re[0],ge[Q]),re[1],ue[z],k):R(b,ge[Q],null,ue[z],k),ye[se]=ue[z],z++}}for(;Q<Ie.length;)_(Ie[Q])==null&&H(b,ge[Q],Ie[Q]),Q++;for(var Q in he)ye[Q]||H(b,he[Q][0],he[Q][1])}return b}}var Zte=Array.isArray;function P(e){var r,t,n=typeof e,i="";if(n==="string"||n==="number")return e||"";if(Zte(e)&&e.length>0)for(r=0,t=e.length;r<t;r++)(n=P(e[r]))!==""&&(i+=(i&&" ")+n);else for(r in e)e.hasOwnProperty(r)&&e[r]&&(i+=(i&&" ")+r);return i}var W={CONSENT_LEGAL:"consentlegal",LIKERT:"likert",MULTIPLE_CHOICE:"multiplechoice",MULTIPLE_SELECT:"multipleselect",NPS:"nps",OPEN:"open",TEXT_URL_PROMPT:"texturlprompt",THANKS:"thanks",VIDEO_VOICE:"videovoice",RECORDED_TASK:"recordedtask",UPLOADING:"uploading"};var c2=()=>y("svg",{width:"100",height:"13",viewBox:"0 0 100 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",alt:"Powered by Sprig"},y("path",{d:"M3.0369 0.839981H0.0249023V8.99998H1.3209V6.53998H2.8569C4.8969 6.53998 6.2409 5.37598 6.2409 3.62398C6.2409 1.95598 4.9689 0.839981 3.0369 0.839981ZM3.0009 5.35198H1.3209V2.02798H3.0009C4.1769 2.02798 4.9689 2.67598 4.9689 3.62398C4.9689 4.65598 4.1769 5.35198 3.0009 5.35198Z",fill:"#5D696F"}),y("path",{d:"M9.90653 3.21598C8.15453 3.21598 6.90653 4.45198 6.90653 6.17998C6.90653 7.90798 8.15453 9.14398 9.90653 9.14398C11.6585 9.14398 12.9065 7.90798 12.9065 6.17998C12.9065 4.45198 11.6585 3.21598 9.90653 3.21598ZM9.90653 8.01598C8.88653 8.01598 8.15453 7.23598 8.15453 6.17998C8.15453 5.11198 8.88653 4.34398 9.90653 4.34398C10.9265 4.34398 11.6585 5.11198 11.6585 6.17998C11.6585 7.23598 10.9265 8.01598 9.90653 8.01598Z",fill:"#5D696F"}),y("path",{d:"M20.9631 3.35998L19.7391 7.11598L18.3951 3.35998H17.3271L15.9831 7.12798L14.7591 3.35998H13.4151L15.4431 8.99998H16.5351L17.8671 5.08798L19.1871 8.99998H20.2791L22.3071 3.35998H20.9631Z",fill:"#5D696F"}),y("path",{d:"M25.7246 3.21598C24.0086 3.21598 22.8206 4.51198 22.8206 6.17998C22.8206 7.85998 24.0206 9.14398 25.7966 9.14398C27.0206 9.14398 28.0166 8.54398 28.3766 7.52398H27.0086C26.7806 7.88398 26.3606 8.05198 25.8086 8.05198C24.7526 8.05198 24.2126 7.40398 24.0926 6.55198H28.5206C28.7606 4.64398 27.5966 3.21598 25.7246 3.21598ZM25.7366 4.27198C26.6126 4.27198 27.2126 4.76398 27.2846 5.68798H24.1166C24.2606 4.89598 24.8006 4.27198 25.7366 4.27198Z",fill:"#5D696F"}),y("path",{d:"M31.1297 4.12798V3.35998H29.8817V8.99998H31.1297V5.44798C31.6337 4.78798 32.3177 4.45198 33.2177 4.41598V3.23998C32.3537 3.23998 31.6457 3.56398 31.1297 4.12798Z",fill:"#5D696F"}),y("path",{d:"M36.8222 3.21598C35.1062 3.21598 33.9182 4.51198 33.9182 6.17998C33.9182 7.85998 35.1182 9.14398 36.8942 9.14398C38.1182 9.14398 39.1142 8.54398 39.4742 7.52398H38.1062C37.8782 7.88398 37.4582 8.05198 36.9062 8.05198C35.8502 8.05198 35.3102 7.40398 35.1902 6.55198H39.6182C39.8582 4.64398 38.6942 3.21598 36.8222 3.21598ZM36.8342 4.27198C37.7102 4.27198 38.3102 4.76398 38.3822 5.68798H35.2142C35.3582 4.89598 35.8982 4.27198 36.8342 4.27198Z",fill:"#5D696F"}),y("path",{d:"M45.4886 0.47998V3.80398C45.0086 3.43198 44.3966 3.21598 43.6766 3.21598C42.0926 3.21598 40.8206 4.53598 40.8206 6.16798C40.8206 7.82398 42.0926 9.14398 43.6766 9.14398C44.3966 9.14398 45.0086 8.92798 45.4886 8.54398V8.99998H46.7246V0.47998H45.4886ZM43.8566 8.01598C42.8246 8.01598 42.0686 7.17598 42.0686 6.16798C42.0686 5.17198 42.8246 4.34398 43.8566 4.34398C44.4806 4.34398 45.0686 4.55998 45.4886 5.15998V7.18798C45.0686 7.79998 44.4806 8.01598 43.8566 8.01598Z",fill:"#5D696F"}),y("path",{d:"M54.6797 3.21598C53.9597 3.21598 53.3477 3.43198 52.8797 3.79198V0.47998H51.6317V8.99998H52.8797V8.55598C53.3477 8.92798 53.9597 9.14398 54.6797 9.14398C56.2637 9.14398 57.5477 7.82398 57.5477 6.16798C57.5477 4.53598 56.2637 3.21598 54.6797 3.21598ZM54.4997 8.01598C53.8757 8.01598 53.2997 7.79998 52.8797 7.21198V5.13598C53.2997 4.54798 53.8757 4.34398 54.4997 4.34398C55.5437 4.34398 56.2997 5.17198 56.2997 6.16798C56.2997 7.17598 55.5437 8.01598 54.4997 8.01598Z",fill:"#5D696F"}),y("path",{d:"M63.3347 3.34798L61.3907 7.76398L59.2667 3.34798H57.9347L60.8147 9.08398L59.6267 11.784H60.9347L64.6547 3.34798H63.3347Z",fill:"#5D696F"}),y("path",{d:"M71.1466 4.34661C69.8092 4.05038 69.131 3.53001 69.131 2.80065C69.131 2.04705 69.8546 1.47822 70.8142 1.47822C71.8034 1.47822 72.5496 2.10339 72.5496 2.9321V2.99813H73.9165V2.9321C73.9165 1.41764 72.5883 0.272705 70.8271 0.272705C69.9784 0.272705 69.2009 0.533191 68.6379 1.0057C68.3584 1.23619 68.1339 1.52487 67.9805 1.8511C67.8271 2.17733 67.7486 2.53303 67.7506 2.89273C67.7451 3.22255 67.8137 3.54949 67.9515 3.84994C68.0894 4.15038 68.293 4.41686 68.5478 4.63012C69.0218 5.04266 69.6945 5.34798 70.5463 5.5388C71.9806 5.85502 72.7078 6.39296 72.7078 7.13686C72.7078 7.94316 71.9156 8.55076 70.8682 8.55076C69.7804 8.55076 68.9599 7.87531 68.9599 6.97996V6.91393H67.5918V6.97996C67.5918 8.56348 68.9942 9.75688 70.8535 9.75688C71.7426 9.75688 72.5588 9.48731 73.1518 8.99662C73.446 8.75831 73.6827 8.4581 73.8445 8.1179C74.0063 7.7777 74.0891 7.40611 74.087 7.03024C74.087 5.6854 73.0991 4.78217 71.1466 4.34661Z",fill:"#5D696F"}),y("path",{d:"M78.7986 2.50806C78.2874 2.50175 77.7823 2.6176 77.3263 2.84576C76.8703 3.07391 76.4768 3.40759 76.1795 3.81837V2.66738H74.8789V12.0752H76.1795V8.48716C76.4768 8.8979 76.8703 9.23152 77.3263 9.45957C77.7824 9.68763 78.2875 9.80335 78.7986 9.79687C80.8167 9.79687 82.3381 8.23031 82.3381 6.15246C82.3381 4.07462 80.8167 2.50806 78.7986 2.50806ZM80.9835 6.42264C80.9316 6.9629 80.6921 7.46879 80.3056 7.8544C79.919 8.24001 79.4093 8.48156 78.863 8.53804C78.1369 8.61074 77.4605 8.40295 76.9583 7.95407C76.4561 7.50518 76.1795 6.86365 76.1795 6.15246C76.1795 4.7846 77.2122 3.75295 78.5815 3.75295C79.2904 3.75295 79.9306 4.02191 80.3776 4.51018C80.8387 5.01116 81.054 5.69025 80.9835 6.42264Z",fill:"#5D696F"}),y("path",{d:"M98.2908 2.6692V3.80747C97.6776 2.97875 96.7302 2.50806 95.6583 2.50806C93.6482 2.50806 92.1323 4.04615 92.1323 6.08582C92.1323 8.1255 93.6482 9.66299 95.6583 9.66299C96.7345 9.66299 97.6819 9.19714 98.2908 8.37691V8.55198C98.2908 9.96891 97.3906 10.8843 95.9974 10.8843C95.0561 10.8843 94.2718 10.4766 93.8996 9.79384L93.8806 9.7587H92.5389L92.5695 9.84654C92.7961 10.514 93.2392 11.0889 93.8303 11.4822C94.4233 11.8723 95.1726 12.0783 95.9974 12.0783C97.0552 12.0783 97.9554 11.7451 98.6017 11.1157C99.2481 10.4862 99.5915 9.6012 99.5915 8.56773V2.6692H98.2908ZM97.5611 7.842C97.0092 8.36418 96.2225 8.58348 95.4001 8.44294C94.9132 8.35796 94.4664 8.12184 94.1245 7.76889C93.7827 7.41593 93.5636 6.96452 93.4992 6.48019C93.3833 5.66541 93.631 4.89364 94.1786 4.36418C94.6383 3.92741 95.2542 3.68788 95.8919 3.69782C96.0464 3.69795 96.2006 3.71031 96.3531 3.73477C97.3459 3.89349 98.1314 4.70403 98.2632 5.71024C98.3749 6.53835 98.1179 7.31436 97.5611 7.842Z",fill:"#5D696F"}),y("path",{d:"M90.705 0.0995975C90.4602 0.046773 90.2043 0.0911971 89.9925 0.223269C89.7806 0.35534 89.6299 0.564452 89.5729 0.805409C89.5159 1.04637 89.5571 1.29982 89.6877 1.51098C89.8183 1.72215 90.0277 1.87407 90.2708 1.93391C90.3415 1.94954 90.4136 1.95747 90.486 1.95754C90.72 1.9579 90.9458 1.87325 91.1206 1.71973C91.2955 1.5662 91.407 1.35452 91.4341 1.125C91.4611 0.89547 91.4017 0.664135 91.2673 0.475046C91.1329 0.285958 90.9327 0.152325 90.705 0.0995975V0.0995975Z",fill:"#5D696F"}),y("path",{d:"M89.8366 8.39143H88.715C87.9178 8.39143 87.4389 7.85531 87.4389 6.95693C87.4389 6.08096 87.8681 5.03659 88.7432 3.76444L88.7548 3.74748V3.38825L85.0271 2.86727C85.0284 2.71553 84.9886 2.56622 84.9118 2.43478C84.8351 2.30335 84.7241 2.19458 84.5905 2.11973C84.2563 1.938 83.8908 1.938 83.5879 2.11368C83.4361 2.2023 83.3122 2.33077 83.23 2.4848C83.1477 2.63884 83.1103 2.8124 83.1219 2.98618C83.1336 3.15996 83.1938 3.32714 83.2958 3.46914C83.3979 3.61114 83.5379 3.72238 83.7001 3.79049L82.5405 9.63753H83.8283L84.8977 4.08551L86.9115 4.42111C86.3701 5.38007 86.0953 6.27421 86.0953 7.07869C86.0953 8.56347 87.0041 9.53576 88.4734 9.62965V9.63753H91.1341V2.69099H89.8366V8.39143Z",fill:"#5D696F"}));var Ss={CAMERA:"camera",SCREEN:"screen"},Ur={VIDEO:"video",AUDIO:"audio",SCREEN:"screen"},Me={PERMISSION_STATUS:"permission.status",AV_PERMISSION:"av.permission",SCREEN_PERMISSION:"screen.permission",BEGIN_RECORDING:"begin.recording",START_TASK:"start.task",FINISH_TASK:"finish.task"},B={PERMISSION_DESCRIPTORS:"permission.descriptors",PERMISSION_STATUS_CALLBACK:"permission.status.callback",STREAM_READY_CALLBACK:"stream.ready.callback",STREAM_CANCELLED_CALLBACK:"stream.canceled.callback",TASK_COMPLETE_CALLBACK:"task.complete.callback",TASK_RESPONSE:"task.response",TASK_STATUS:"task.status",COMPLETED:"completed",GIVEN_UP:"given.up",ABANDONED:"abandoned",RECORDING_MEDIA_TYPES:"recording.media.types",START_RECORDING_CALLBACK:"start.recording.callback",PASSTHROUGH_DATA:"passthrough.data",CURRENT_INDEX:"current.index",UPLOAD_CALLBACK:"upload.callback",PROGRESS_CALLBACK:"progress.callback",BEGIN_UPLOAD:"begin.callback"};var mf=1,bs={eq(e,r){return e==r},neq(e,r){return!this.eq(e,r)},gt(e,r){return e>r},gte(e,r){return e>=r},lt(e,r){return e<r},lte(e,r){return e<=r},list_exact(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:e.slice().sort().join(",")===r.slice().sort().join(",")},list_all(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:!r.some(t=>e.indexOf(t)===-1)},list_alo(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:r.some(t=>e.indexOf(t)!=-1)}},qs=(e,r,t)=>{switch(r){case W.VIDEO_VOICE:return e&&e.value;case W.OPEN:return!!t;case W.MULTIPLE_SELECT:return t&&!!Object.keys(t).length;case W.RECORDED_TASK:return t.taskStatus===B.COMPLETED;case W.TEXT_URL_PROMPT:return!e.value;case W.CONSENT_LEGAL:return t!==void 0;case W.MULTIPLE_CHOICE:return t!==void 0;case W.NPS:return t!==null;case W.LIKERT:return t!==null;default:return!0}},Is=({cards:e,index:r,selectedValue:t,hasEndCard:n,hasValidAnswer:i=!0,uploadProgress:a={}})=>{if(r>=e.length||r<0)return null;let o=e[r]&&e[r].props&&e[r].props.routingOptions||[],s=null,u=null;for(let v=0;v<o.length;v++){let{comparator:g,target:h,value:m}=o[v];if(g==="answered"&&i){s=h;break}else if(g==="given_up"&&(t==null?void 0:t.taskStatus)===B.GIVEN_UP){s=h;break}else if(g==="skipped"&&!i&&(t==null?void 0:t.taskStatus)!==B.GIVEN_UP){s=h;break}else if(i&&bs[g]&&bs[g](t,m)){s=h;break}}let c=s&&parseInt(s,10);s&&!isNaN(c)&&(c===-1||c>r)&&(u=c);let f=e.findIndex(v=>v.type===W.UPLOADING),d;return f>0&&n?d=e.length-3:f>0||n?d=e.length-2:d=e.length-1,r>=d||u===-1||u>d?f>0&&Object.values(a).some(g=>g.isSubmitted&&!g.isComplete)?f:n?e.length-1:null:u!==null?u:r+1},Jte=13,ene=e=>e.reduce((r,t)=>r.concat(r.map(n=>[...n,t])),[[]]),d2=e=>!!(Array.isArray(e)?e.length:e),rne=e=>{switch(e.type){case W.MULTIPLE_SELECT:return!e||!e.props||!e.props.options?null:e.props.options.length>Jte?e.props.options.map(r=>[r.value]):ene(e.props.options.map(r=>r.value));case W.MULTIPLE_CHOICE:return!e||!e.props||!e.props.options?null:e.props.options.map(r=>r.value);case W.LIKERT:return[1,2,3,4,5];case W.NPS:return[0,1,2,3,4,5,6,7,8,9,10];case W.VIDEO_VOICE:case W.OPEN:return[mf,""];case W.RECORDED_TASK:return[mf,B.GIVEN_UP,""];case W.TEXT_URL_PROMPT:case W.CONSENT_LEGAL:default:return[mf]}},f2=(e,r)=>{if(!e||!e.length||r>=e.length||r<0||!e[r].type||e[r].type===W.UPLOADING)return 0;let t=e.filter(i=>i.type&&i.type!==W.UPLOADING);if(r===t.length-1)return 1;let n={[t.length-1]:1,[-1]:0};for(let i=t.length-2;i>=r;i--){let a=t[i],o=a&&a.props&&a.props.routingOptions||[];if(o.length===0){n[i]=n[i+1]+1;continue}let s=0,u=rne(a);if(u===null)return t.length-1-r;for(let c=0;c<o.length&&u.length!==0;c++){let{comparator:f,target:d,value:v}=o[c],g=u.filter(h=>!(f==="answered"&&d2(h)&&h!==B.GIVEN_UP||f==="skipped"&&!d2(h)||f==="given_up"&&h===B.GIVEN_UP||bs[f]&&bs[f](h,v)));if(g.length<u.length){let h=parseInt(d,10);if(h!==-1&&h<=i||h>=t.length)return t.length-1-r;s=Math.max(n[h]+1,s)}u=g}u.length>0&&(s=Math.max(n[i+1]+1,s)),n[i]=s}return n[r]};var v2=()=>e=>{let t=(e.app.deck.cards||[]).filter(C=>C.type&&C.type!==W.UPLOADING),n=e.app.deck.index,{showSurveyBrand:i,marketingUrl:a,slugName:o,surveyId:s,viewedCardCount:u,headers:c,deck:f,border:d,viewDocument:v,styleNonce:g}=e.app,h=f2(f.cards||[],f.index),m=u+1,E=m/(m+h),S=()=>i?y("a",{style:"display: block; margin: 5px 0",href:`${a}?utm_source=survey_branding&utm_medium=website&utm_campaign=${o}&utm_content=${s}`,target:"_blank"},c2):null;if(!t||t.length===1)return y("footer",{className:"ul-footer",style:!i&&{marginBottom:"10px"}},S);let x=()=>t.length>1?y("div",{id:"ul-progress-bar-container"},y("div",{id:"ul-progress-bar-current",style:A()})):null,A=()=>{let C=v.getElementById("ul-progress-bar-container"),L=C?C.clientWidth:250,M=C?`${v.getElementById("ul-progress-bar-current").style.width.replace("px","")}`:0,V=`${parseFloat((E*L).toFixed(4))}`;return M!==V&&_(M,V),{width:`${V}px`,animation:e.app.uploadingCardViewed?"":"growRight 1s",border:`1px solid ${d||"#000"}`}},_=(C,L)=>{let M=`
|
|
3
3
|
@keyframes growRight {
|
|
4
4
|
from {
|
|
5
5
|
width: ${C}px;
|
|
@@ -677,4 +677,4 @@ span.ul-button-text {
|
|
|
677
677
|
.vjs-poster {
|
|
678
678
|
background-size: cover;
|
|
679
679
|
}
|
|
680
|
-
`,wne=e=>{let r=D.document.createElement("div");return r.className="ul-video-player-loading",r.id=Of(e),["first","second","third","fourth"].map(t=>{let n=D.document.createElement("div");n.className=t,r.appendChild(n)}),r},Of=e=>e+"-loading-spiner",oe="hidden",Zn="visible",eR=".m3u8",xf="questionId",Af="ul-video-recorder-camera-off-button",wf="ul-recording-in-session",_ne=[{type:"link",content:`${Zt}/dependencies/videojs-record-4.5.0.min.css`},{type:"script",content:`${Zt}/dependencies/RecordRTC-5.6.2.js`},{type:"script",content:`${Zt}/dependencies/adapter.8.0.0.min.js`},{type:"script",content:`${Zt}/dependencies/videojs-record-4.5.0.min.js`},{type:"script",content:`${Zt}/userleap-web-upchunk-v2.2.2.js`}],rR=[{type:"link",content:`${Zt}/dependencies/video-js-7.18.0.min.css`},{type:"script",content:`${Zt}/dependencies/video-js-7.18.0.min.js`},{type:"style",content:Ane}],Ps="-video-player",Lf="-secondary-video-player",Pf="-video-recorder",Fr,Cf,_t=async({event:e,apiBase:r,headers:t,visitorId:n,envId:i,metadata:a})=>{let o=D.document.documentElement;if(!n||!i)return;let s={event:`SDK - ${e}`,visitorId:n,environmentId:i,metadata:ne(G({},a||{}),{screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:navigator.language})};(await fetch(`${r}/sdk/1/visitors/${n}/analytics`,{method:"POST",cache:"no-cache",headers:t,body:JSON.stringify(s)})).ok||console.warn("[Sprig] (ERR-444) Failed to track analytics",e)},Jt=async(e,r,t,n,i,a)=>{_t({event:`Video Error ${r}`,apiBase:t,headers:n,visitorId:i,envId:a,metadata:{errorMessage:e.message}});let o=D.document.documentElement,s={screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:navigator.language},u={action:r,err:{message:e.message,stack:e.stack},meta:s,vid:i,envId:a};(await fetch(`${t}/sdk/1/errors`,{method:"POST",cache:"no-cache",headers:ne(G({},n),{"userleap-platform":"video_recorder","x-ul-error":window.btoa(`userleap-${Date.now()}-error`)}),body:JSON.stringify(u)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",e)},Cne=(e,{type:r,content:t})=>new Promise(function(n,i){let a;r==="script"?(a=D.document.createElement("script"),a.src=t):r==="link"?(a=D.document.createElement("link"),a.rel="stylesheet",a.href=t,a.type="text/css"):(a=D.document.createElement("style"),a.innerHTML=t),a.onload=function(){n(t)},a.onerror=function(){i(t)},a.async=!1,a.id=btoa(t),e.appendChild(a)}),tR=(e,r)=>{if(e.length===0)return r&&r();Promise.all(e.reduce((t,n)=>(t.push(Cne(D.document.head,n)),t),[])).then(()=>{D.videojs=D.document.defaultView.videojs,r&&r()}).catch(function(t){console.log(t+" failed to load")})},Tf=(e,r,t)=>{if(r==="start"&&(e.style.visibility="visible"),r==="none")e.style.visibility=oe;else if(r==="success")e.style.visibility=oe,e.innerHTML="Upload succeeded!";else{let n=Math.round(parseFloat(t));e.innerHTML=`Uploading <span class="ul-upload-progress-label__time">${n}%</span>`,e.style.background=`linear-gradient(to right, #E0E0EB 0%, #E0E0EB ${n}%, #FCFCFD ${n}%, #FCFCFD 100%)`}},_f=(e,r)=>{let t=D.videojs(e.id());return t==null?void 0:t.payload[r]},Tne=(e,r,t,n,i)=>{let{surveyId:a,responseGroupUid:o,visitorId:s,envId:u}=e.payload;e.on("deviceError",function(){console.warn("device error: ",e.deviceErrorCode),e.deviceErrorCode.message==="Permission denied"?(e.deviceButton.addClass("permission-denied"),t&&t(J.ERROR,{type:J.PERMISSION_DENIED}),_t({event:"Video Permission Denied",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{questionId:_f(e,xf),responseGroupUid:o,surveyId:a}})):(t&&t(J.ERROR,{type:J.OTHER}),Jt(new Error(e.deviceErrorCode.message),"recorderDeviceError",r,i,s,u))}),e.on("error",function(c,f){Jt(f||e.error(),"recorderError",r,i,s,u)}),e.on("startRecord",function(c,f){n(e.uploadProgressLabel,"none"),_t({event:"Video Record Start",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{questionId:_f(e,xf),responseGroupUid:o,surveyId:a}})}),e.on("finishRecord",async function(){n(e.uploadProgressLabel,"start",0);let c=_f(e,xf);if(!a){let m="internal error: missing fields in payload";return t&&t(J.ERROR,{type:J.OTHER}),Jt(new Error(m),"finishRecord",r,i,s,u),null}e.record().stopDevice();let f=e.cameraOff?J.MEDIA_TYPE_AUDIO:J.MEDIA_TYPE_VIDEO,d=At();_t({event:"Video Record Finish",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{mediaRecordingUid:d,questionId:c,responseGroupUid:o,surveyId:a,mediaType:f}});let v={surveyId:a,updatedAt:new Date().toISOString(),mediaType:f,mediaRecordingUid:d};c&&(v.questionId=c),o&&(v.responseGroupUid=o),s&&(v.visitorId=s);let h=await(async()=>{let m=await fetch(`${r}/2/environments/integrations/upload`,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)});if(m.ok){let E=await m.json();return t&&t(J.UPLOAD_STARTED,{[J.UPLOAD_ID]:E.upload.id,[J.MEDIA_TYPE]:f,[J.MEDIA_RECORDING_UID]:d}),E.upload.url}else return t&&t(J.ERROR,{type:J.OTHER,response:m}),Jt(new Error("failed to get upload response with url"),"finishRecord",r,i,s,u),null})();!h||(Fr=D.document.defaultView.UpChunk.createUpload({endpoint:h,file:new D.document.defaultView.File([e.recordedData],`recording ${f} ${Date.now()}`),chunkSize:5120}),Fr.startTime=Date.now(),_t({event:"Video Upload Start",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{mediaRecordingUid:d,questionId:c,responseGroupUid:o,surveyId:a,mediaType:f,url:h}}),Fr.on("error",m=>{n(e.uploadProgressLabel,"none"),t&&t(J.UPLOAD_FINISHED,{[J.MEDIA_RECORDING_UID]:d}),Jt(m,"finishRecord",r,i,s,u)}),Fr.on("progress",m=>{t&&t(J.UPLOAD_PROGRESS,{[J.MEDIA_RECORDING_UID]:d,[J.UPLOAD_PROGRESS_PCT]:m.detail}),n(e.uploadProgressLabel,"progress",m.detail)}),Fr.on("success",()=>{n(e.uploadProgressLabel,"success"),t&&t(J.UPLOAD_FINISHED,{[J.MEDIA_RECORDING_UID]:d}),_t({event:"Video Upload Success",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{mediaRecordingUid:d,questionId:c,responseGroupUid:o,surveyId:a,mediaType:f,url:h,elapsedMs:Fr.startTime&&Date.now()-Fr.startTime}})}))})},nR=(e,r)=>{let t=new(D.videojs.getComponent("Component"))(e);return t.addClass("ul-buttons-panel"),r.map(n=>{t.addChild(n)}),Rne(t),t},Rne=e=>{e.children().forEach(r=>{if(Sr[r.name_]){let t=Os(Sr[r.name_],`ul-${Sr[r.name_]}`);r.el_.appendChild(t)}})},Os=(e,r="")=>{let t=D.document.createElement("span");return t.className="ul-button-text",t.innerHTML=e,t.id=r,t},iR=(e,r,t,n,i=!1,a)=>{e.addClass("ul-video-player");let o=new(D.videojs.getComponent("Component"))(e);o.addClass("ul-control-panel"),e.progressBar=o.addChild("ProgressControl"),t&&e.src(t),e.audioPlayerPlaceholder=new(D.videojs.getComponent("Component"))(e),e.audioPlayerPlaceholder.addClass("ul-audio-recorder-placeholder");let s=t&&t.src?fR(t.src):null;t&&(i||!s)?(e.children()[0].classList.add("vjs-hidden"),D.document.getElementById(`${e.id()}_html5_api`).style.height="0px"):(e.audioPlayerPlaceholder.hide(),D.document.getElementById(`${e.id()}_html5_api`).style.height="100%",s&&e.poster(s)),e.on("play",()=>{!i&&t&&!s&&Ls(e,!1),a==null||a.play()}),e.on("pause",()=>{a==null||a.pause()}),e.on("seeked",()=>{a==null||a.currentTime(e.currentTime())}),e.on("ratechange",()=>{a==null||a.playbackRate(e.playbackRate())}),e.addChild(e.audioPlayerPlaceholder,{},1),o.addChild(r),e.addChild(o),n&&n(e)},One=(e,r,t)=>{e.addClass(`ul${Lf}`);let n=new(D.videojs.getComponent("Component"))(e);r&&e.src(r),e.addChild(n),t&&t(e)},Lne=(e,r,t,n,i,a,o,s=!1)=>{Cf=Date.now();let u={controls:!1,bigPlayButton:!1,fluid:!1,width:1280,height:720,playsinline:!0,plugins:{record:{audio:!0,video:{mandatory:{minWidth:1280,minHeight:720}},frameWidth:1280,frameHeight:720,maxLength:600,autoMuteDevice:!0}}},c=D.videojs(r,u);c.payload=t;let{surveyId:f,questionId:d,responseGroupUid:v,visitorId:g,envId:h}=t,m=H=>{let R=Af,I=Af+"-audio-only";Tf(c.uploadProgressLabel,"none"),Fr&&Fr.startTime>=Cf&&Fr.abort();let b=D.document.getElementById("ul-camera-button");H?(c.children()[0].classList.add("vjs-hidden"),A.removeClass(R),A.addClass(I),b.innerHTML=Sr.TurnOnCamera,c.audioPlayerPlaceholder.removeClass("vjs-hidden"),window.navigator.mediaDevices.getUserMedia({video:!0,audio:!0}).then(T=>{c.record().onDeviceReady(T),T.getVideoTracks().forEach(O=>{O.stop()})}).catch(c.record().onDeviceError.bind(c.record()))):(c.children()[0].classList.remove("vjs-hidden"),c.record().getDevice(),A.removeClass(I),A.addClass(R),b.innerHTML=Sr.TurnOffCamera,c.audioPlayerPlaceholder.addClass("vjs-hidden"))},E=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{E.hasClass(oe)||(_t({event:"Video Delete Button Clicked",apiBase:n,headers:o,visitorId:g,envId:h,metadata:{questionId:d,responseGroupUid:v,surveyId:f}}),m(c.cameraOff),i(J.DELETE,{}),A.removeClass(oe),E.addClass(oe))}});E.addClass("ul-video-recorder-delete-button"),E.el_.appendChild(Os(Sr.DeleteButton,"ul-delete-button"));let S=D.document.getElementById(r),x=()=>{S.classList.contains("vjs-fullscreen")&&c.cameraOff?S.style.display="table":S.style.display="flex"};x();let A=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{c.record().isRecording()||(c.cameraOff=!c.cameraOff,_t({event:"Video Camera Button Clicked",apiBase:n,headers:o,visitorId:t.visitorId,envId:t.envId,metadata:{questionId:d,responseGroupUid:v,surveyId:f,cameraOff:c.cameraOff}}),m(c.cameraOff),!E.hasClass(oe)&&E.addClass(oe),i(J.DELETE,{}),x())}});A.addClass(Af),A.el_.appendChild(Os(Sr.TurnOffCamera,"ul-camera-button"));let _=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{let H=D.document.getElementById("ul-recorder-toggle");if(c.record().isRecording())c.record().stop(),H&&(H.innerHTML=Sr.RecordButton),_.removeClass(wf),E.removeClass(oe);else{let R=D.document.getElementById("ul-recording-countdown-screen");if(R)R.remove(),H&&(H.innerHTML=Sr.RecordButton),m(c.cameraOff),i(J.DELETE,{}),A.removeClass(oe),E.addClass(oe),_.removeClass(wf),M.show();else{_.addClass(wf),M.hide(),A.addClass(oe),E.addClass(oe),H&&(H.innerHTML=Sr.StopButton);let I=D.document.createElement("div");I.id="ul-recording-countdown-screen",S.insertBefore(I,S.children[1]),I.style.height=`${S.offsetHeight}px`,aR(c,3)}}}});_.addClass("ul-video-recorder-toggle-button"),_.el_.appendChild(Os(Sr.RecordButton,"ul-recorder-toggle"));let C=D.document.createElement("p");C.style.visibility="hidden",C.className="ul-upload-progress-label",e.appendChild(C),c.uploadProgressLabel=C;let L=nR(c,[E,A,"PlayToggle",_,"FullscreenToggle"]),M=L.children().find(H=>H.name_==="FullscreenToggle");M.hasClass("vjs-disabled")&&M.hide();let V=L.children().find(H=>H.name_==="PlayToggle");V.hide(),a&&A.addClass(oe),!a&&E.addClass(oe),iR(c,L,a,!1,s),c.on("stopRecord",()=>{_.hide(),V.show(),M.show(),E.removeClass(oe)}),c.on("deviceReady",()=>{_.show(),V.hide(),E.addClass(oe)}),Tne(c,n,i,Tf,o),a&&(c.deviceButton&&c.deviceButton.hide(),c.src(a),V.show(),_.hide(),E.removeClass(oe));let F=[{name:"microphone"}];!c.cameraOff&&F.push({name:"camera"}),Promise.all(F.map(H=>navigator.permissions.query(H))).then(H=>{H.reduce((I,b)=>I&b.state==="granted",!0)&&c&&(c.deviceButton&&c.deviceButton.hide(),!a&&c.record().getDevice())}).catch(H=>{})},aR=(e,r=3)=>{let t=D.document.getElementById("ul-recording-countdown-screen");t&&r===0?(t.remove(),e.record().start()):t&&(t.innerHTML=`<span class='ul-countdown-text'>Recording in... ${r}</span>`,setTimeout(()=>{aR(e,r-1)},1e3))},oR=e=>{let r=D.document.createElement("div");return r.className="ul-video-container",r.appendChild(wne(e)),r},Rf=(e,r)=>{let t=D.document.createElement("video");t.id=e,t.className="video-js vjs-default-skin ul-video-player-video";let n=D.document.createElement("p");n.className="vjs-no-js",n.innerHTML="To view this video please enable JavaScript, and consider upgrading to a web browser that";let i=D.document.createElement("a");return i.href="https://videojs.com/html5-video-support/",i.target="_blank",i.innerHTML="supports HTML5 video",n.appendChild(i),t.appendChild(n),r.appendChild(t),r},Ls=(e,r)=>{r?(e.children()[0].classList.add("vjs-hidden"),e.audioPlayerPlaceholder.show(),D.document.getElementById(`${e.id()}_html5_api`).style.height="0px"):(e.children()[0].classList.remove("vjs-hidden"),e.audioPlayerPlaceholder.hide(),D.document.getElementById(`${e.id()}_html5_api`).style.height="100%")},sR=(e,r,t,n=!1,i="https://api.sprig.com",a=document,o=null,s=null)=>{D.document=a;let u=e+Ps,c=oR(u);return D.document.addEventListener("securitypolicyviolation",f=>{Jt(new Error(`Voice & Video feature violates ${f.violatedDirective} web page CSP policies for the question player.`),"playerDeviceError",i,{})}),tR(rR,()=>{D.document.getElementById(Of(u)).remove(),Rf(u,c);let f={playsinline:!0,playbackRates:[.5,1,1.5,2],fill:!0},d=e+Lf;Rf(d,c);let v=D.videojs(d,f);One(v,o,s),o||v.addClass(oe);let g=D.videojs(u,f),h=nR(g,["PlaybackRateMenuButton","PlayToggle","FullscreenToggle"]),m=h.children().find(E=>E.name_==="FullscreenToggle");m.hasClass("vjs-disabled")&&m.hide(),iR(g,h,r,t,n,v)}),c},uR=(e,r={},t="https://api.userleap.com",n,i,a,o=!1,s=document)=>{D.document=s;let u=e+Pf,c=oR(u);return D.document.addEventListener("securitypolicyviolation",f=>{let d=D.videojs(u);Jt(new Error(`Voice & Video feature violates ${f.violatedDirective} web page CSP policies for the recorder player.`),"recorderDeviceError",t,a,d.payload.visitorId,d.payload.envId)}),tR(rR.concat(_ne),()=>{Rf(u,c),D.document.getElementById(Of(u)).remove(),Lne(c,u,r,t,n,i,a,o)}),c};var lR=e=>{let r=e+Pf;if(!!D.videojs){try{if(!D.videojs(r).record().stream)return}catch(t){return}D.document.getElementById(r)&&D.videojs(r).record().stop(),D.videojs(r).record().stopDevice()}},Pne=(e,r,t,n=null)=>{let i=`${e}${n?Lf:Ps}`,a=D.videojs(i);!a.paused()&&a.pause(),a.src({src:r,type:"application/x-mpegURL"}),a.currentTime(0),!n&&Ls(a,t);let o=fR(r);!t&&r&&(o?a.poster(o):Ls(a,!0)),a.on("play",()=>{!t&&r&&!o&&Ls(a,!1)}),n&&r?a.removeClass(oe):n&&!r&&a.addClass(oe)},cR=e=>{D.videojs(e+Ps).pause()},dR=(e,r,t,n)=>{let i=D.videojs(e+Ps),a=D.videojs(e+Pf);Pne(e,r,n),a.record().resetState(),a.record().getDevice(),D.document.getElementsByClassName("ul-video-recorder-delete-button")[0].classList.add(oe),a.cameraOff?(D.document.getElementsByClassName("ul-video-recorder-camera-off-button-audio-only")[0].classList.remove(oe),window.navigator.mediaDevices.getUserMedia({video:!0,audio:!0}).then(u=>{a.record().onDeviceReady(u),u.getVideoTracks().forEach(c=>{c.stop()})}).catch(a.record().onDeviceError.bind(a.record()))):D.document.getElementsByClassName("ul-video-recorder-camera-off-button")[0].classList.remove(oe),a.payload=t,Tf(a.uploadProgressLabel,"none"),Cf=Date.now()},fR=e=>{if(!e)return null;let r=e.match(/https:\/\/stream.mux.com\/(.*)/),t=r?r[1]:null;return t.includes(eR)&&(t=t.replace(eR,"")),t?`https://image.mux.com/${t}/thumbnail.jpg?time=0`:null},J={UPLOAD_STARTED:"upload.started",UPLOAD_PROGRESS:"upload.progress",UPLOAD_FINISHED:"upload.finished",DELETE:"delete",ERROR:"error",MEDIA_TYPE:"media.type",PERMISSION_DENIED:"permission_denied",OTHER:"other",UPLOAD_ID:"upload.id",UPLOAD_PROGRESS_PCT:"upload.progress.pct",MEDIA_RECORDING_UID:"media.recording.uid",MEDIA_TYPE_VIDEO:"video",MEDIA_TYPE_AUDIO:"audio"},Sr={PlaybackRateMenuButton:"Speed",PlayToggle:"Play",FullscreenToggle:"Expand",TurnOnCamera:"Turn on",TurnOffCamera:"Turn off",DeleteButton:"Delete",RecordButton:"Record",StopButton:"Stop",PauseButton:"Pause"};var{INACTIVE_BUTTON:vR,VIDEO_CARD_CLASS:Nne,FADE_IN_CLASS:Aqe,CARD_MAIN_CONTENT:Dne,SUBMIT_BUTTON_DISABLED:Nf}=q,pR=({className:e,message:r,properties:t,next:n,questionId:i,updateHeight:a,type:o})=>(s,u)=>{let c=P([e,q.VIDEO_CARD_CLASS,q.FADE_IN_CLASS]),f="ul-card-video__player_recorder",d="ul-card-video__submit_button",v="ul-card-video__skip_button",g="ul-video-interview-form",h="ul-question-player-container",m="ul-recorder-player-container",E="ul-video-btn",S=t&&t.videoUrl,{surveyId:x,responseGroupUid:A,apiURL:_,userId:C,border:L,envId:M,headers:V,viewDocument:F,hasViewedEmbed:H,useDesktopPrototype:R}=s.app,{app:I,destroy:b}=u,T=V["userleap-platform"];if(s.cardData||(s.cardData={}),s.cardData.uploadId=void 0,s.cardData.mediaRecordingUid=void 0,s.cardData.buttonText=er(t),s.cardData.skipButtonText=Ef(t),F.getElementById(f)){dR(f,S,{surveyId:x,responseGroupUid:A,questionId:i,visitorId:C},t.mediaType===J.MEDIA_TYPE_AUDIO);let z=F.getElementById(v);z.innerText=s.cardData.skipButtonText,z.classList.add(vR)}let k=(z,se)=>{let re=F.getElementById(d),Ue=F.getElementById(v);z===J.UPLOAD_STARTED?(s.cardData.uploadId=se[J.UPLOAD_ID],s.cardData.mediaRecordingUid=se[J.MEDIA_RECORDING_UID],re.disabled=!1,re.classList.remove(Nf),Object.assign(re.style,{backgroundColor:L,display:"block"}),Object.assign(Ue.style,{display:"none"})):z===J.DELETE?(s.cardData.uploadId=null,s.cardData.mediaRecordingUid=null,t.required?(re.disabled=!0,re.removeAttribute("style"),re.classList.add(Nf)):(Object.assign(Ue.style,{display:"block"}),Object.assign(re.style,{display:"none"}))):z===J.UPLOAD_PROGRESS?isNaN(se[J.UPLOAD_PROGRESS_PCT])?I.handleUploadUpdate({state:s,mediaRecordingUid:se[J.MEDIA_RECORDING_UID],isComplete:!0,destroy:b}):I.handleUploadUpdate({state:s,mediaRecordingUid:se[J.MEDIA_RECORDING_UID],progressPct:se[J.UPLOAD_PROGRESS_PCT],destroy:b}):z===J.UPLOAD_FINISHED&&I.handleUploadUpdate({state:s,mediaRecordingUid:se[J.MEDIA_RECORDING_UID],isComplete:!0,destroy:b})},$=z=>{if(z.preventDefault(),z.stopPropagation(),lR(f),!F.forms[g])return;s.cardData.uploadId?(I.handleUploadUpdate({state:s,mediaRecordingUid:s.cardData.mediaRecordingUid,isSubmitted:!0,destroy:b}),n({value:{mediaRecordingUid:s.cardData.mediaRecordingUid},questionId:i,type:o})):n({value:null,questionId:i,type:o});let re=F.getElementById(h);F.getElementById(m).classList.add(oe),re.classList.remove(oe)},he=(z=!0)=>{let se=F.getElementById(h),re=F.getElementById(m);z?(se.classList.remove(oe),se.classList.add(Zn),re.classList.add(oe),re.classList.remove(Zn)):(cR(f),se.classList.add(oe),se.classList.remove(Zn),re.classList.remove(oe),re.classList.add(Zn))},ye=()=>{let z=new ResizeObserver(re=>a()),se=F.querySelector(`.${Nne}`);z.observe(se)},ge=()=>{let z=F.getElementById(f);return z.appendChild(ue()),z.appendChild(Le()),z},Ie=(z,se)=>{let re=F.createElement("button");return re.className=`${E} ${z}`,re.addEventListener("click",Ue=>{Ue.preventDefault(),Ue.stopPropagation(),he(se)}),re},ue=()=>{let z=F.createElement("div");z.id="ul-question-player-container",z.className=`ul-video-container ${Zn}`,z.appendChild(sR(f,{src:S,type:"application/x-mpegURL"},void 0,t.mediaType===J.MEDIA_TYPE_AUDIO,_,F));let se=Ie("ul-record-response-btn",!1),re=Be({hasViewedEmbed:H,properties:t,app:I,defaultBody:()=>se,platform:T,useDesktopPrototype:R});if(re.key==="prototype-btn"){let Ue=F.createElement(re.nodeName);Ue.className=re.attributes.className,Ue.innerText=Ea,Ue.onclick=re.attributes.onclick,re=Ue}return z.appendChild(re),z},Le=()=>{let z=F.createElement("div");z.id="ul-recorder-player-container",z.className=`ul-video-container ${oe}`;let se=Ie("ul-back-question-btn",!0);return z.appendChild(se),z.appendChild(uR(f,{surveyId:x,responseGroupUid:A,questionId:i,visitorId:C,envId:M},_,k,!1,ne(G({},V),{"x-ul-video-recorder-origin":"sdk"}),t.mediaType===J.MEDIA_TYPE_AUDIO,F)),z},Q=kr(t);return y("div",{className:P(xe(Dne,V["userleap-platform"])),style:{marginTop:"unset"}},y("form",{id:g,className:c,oncreate:ye},jr(Q,r),Q,y("div",{id:"ul-card-voice__video"},y("div",{id:f,oncreate:ge,key:H}),y("button",{id:d,disabled:!0,style:{display:t.required===!0?"block":"none"},className:`ul-card-text__button ${Nf}`,onclick:$,role:"button"},er(t)),y("button",{id:v,style:{display:t.required?"none":"block"},className:`ul-card-text__button ${vR}`,onclick:$,role:"button"},Ef(t)))))};var Qn={consentlegal:x2,likert:O2,multiplechoice:L2,multipleselect:P2,nps:N2,open:U2,recordedtask:W2,texturlprompt:Q2,thanks:Z2,uploading:J2,videovoice:pR};async function Df(e,r,t){let{mode:n,userId:i,envId:a,apiURL:o,headers:s,viewDocument:u}=e,c=u.documentElement,f={mode:n,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:c.clientWidth,clientHeight:c.clientHeight,location:window.location.href,language:window.navigator.language},d={action:r,err:{message:t.message,stack:t.stack},meta:f,vid:i,envId:a};(await ur(`${o}/sdk/1/errors`,{method:"POST",headers:Object.assign({"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},s),body:JSON.stringify(d)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",t)}var pa=e=>e.userId===0||e.meta&&e.meta.mode==="test"||e.isPreview,gR={answers:[],apiURL:"https://api.sprig.com",border:null,cards:Qn,context:{},customMetadata:{},deck:{index:0,cards:[]},envId:null,fontFamily:null,fontFamilyURL:null,frame:null,headers:{},interval:null,isPreview:!1,marketingUrl:"https://sprig.com",meta:{},mode:null,responseGroupUid:null,running:!1,sending:!1,showStripes:!1,showSurveyBrand:!0,slugName:null,surveyId:null,timeout:null,uploadProgress:{},userId:null,viewedCardCount:0,visitorAttributes:{}},hR={init:({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:s,envId:u,eventEmitFn:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:g,headers:h,isPreview:m,marketingUrl:E,meta:S,mode:x,startingQuestionIdx:A=0,recorderEventEmitter:_,responseGroupUid:C,showStripes:L,showSurveyBrand:M,slugName:V,styleNonce:F,surveyId:H,useDesktopPrototype:R,useMobileStyling:I,userId:b,viewDocument:T,tabTitle:O,visitorAttributes:k})=>($,he)=>ne(G({},he.initializeDeck({cards:n,startingQuestionIdx:A})),{answers:e,apiURL:r,border:t,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:s,envId:u,eventEmitFn:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:g,hasViewedEmbed:!1,headers:h,isPreview:m,marketingUrl:E,meta:S,mode:x,recorderEventEmitter:_,responseGroupUid:C,running:!0,showStripes:L,showSurveyBrand:M,slugName:V,styleNonce:F,surveyId:H,timeout:1,uploadProgress:{},useDesktopPrototype:R,useMobileStyling:I,userId:b,viewDocument:T,tabTitle:O,viewedCardCount:A||0,visitorAttributes:k}),initializeDeck:({cards:e,startingQuestionIdx:r})=>()=>({deck:{index:r!=null?r:0,cards:e}}),complete:()=>(e,r)=>({interval:setInterval(r.deduct,1e3)}),seen:()=>(e,r)=>{pa(e)||r.trackHistory({event:"seen",isNew:!0})},close:()=>(e,r)=>{if(!pa(e))return r.trackHistory({event:"closed"})},submit:({response:e,responseGroupUid:r,completedAt:t})=>async n=>{if(!r||pa(n))return;let i={responseGroupUid:r,meta:n.meta,customMetadata:n.customMetadata,responses:[e],completedAt:t},a=await ur(`${n.apiURL}/sdk/1/environments/${n.envId}/visitors/${n.userId}/responses/submit`,{body:JSON.stringify(i),headers:n.headers,method:"POST"});if(!a.ok){a.reportError&&(console.warn("[Sprig] (ERR-427) Failed to submit response",a.error),await Df(n,"submitResponse",a.error));return}},deduct:()=>e=>{let r=e.timeout-1;return r<=0?(clearInterval(e.interval),Nr.enable(),{running:!1,interval:null,timeout:r}):{timeout:r}},handleUploadUpdate:({state:e,mediaRecordingUid:r,isComplete:t,progressPct:n,isSubmitted:i,destroy:a})=>o=>{var v,g,h,m,E,S;let{uploadProgress:s,deck:{cards:u,index:c},eventEmitter:f}=o;if(!r)return;if(u[c].type!==W.UPLOADING){e.app.uploadProgress[r]={progressPct:n||n===0?n:(v=e.app.uploadProgress[r])==null?void 0:v.progressPct,isComplete:t||((g=e.app.uploadProgress[r])==null?void 0:g.isComplete),isSubmitted:i||((h=e.app.uploadProgress[r])==null?void 0:h.isSubmitted)};return}let d=Object.entries(s).every(([x,A])=>!A.isSubmitted||A.isComplete||r==x&&t);if(d&&c>=u.length-1){a(rr);return}return{deck:{cards:u,index:d?c+1:c},uploadingCardViewed:!0,uploadProgress:ne(G({},s),{[r]:{progressPct:n||n===0?n:(m=s[r])==null?void 0:m.progressPct,isComplete:t||((E=s[r])==null?void 0:E.isComplete),isSubmitted:i||((S=s[r])==null?void 0:S.isSubmitted)}})}},next:e=>(r,t)=>{let n=Date.now(),{cards:i,index:a}=r.deck,{responseGroupUid:o,eventEmitFn:s,uploadProgress:u}=r,c=Object.assign({},e.data),f=c.value;i[a].value=f,c.answeredAt=n;let{type:d}=c;delete c.type;let v={response:c,responseGroupUid:o},g=d===W.MULTIPLE_CHOICE?Object.values(f).find(S=>S!==!1):f;d===W.MULTIPLE_SELECT&&(g=i[a].props.options.reduce((S,x)=>(f[x.id]&&S.push(x.value),S),[]));let h=qs(c,d,g),m=Is({cards:i,index:a,selectedValue:g,hasEndCard:!!e.endCard,hasValidAnswer:h,uploadProgress:u});if(m===null){v.completedAt=n,t.submit(v),e.completeSurvey();return}else[r.cards.thanks,r.cards.uploading].includes(i[m].Card)&&(v.completedAt=n);let E=t.submit(v);return[r.cards.thanks,r.cards.uploading].includes(i[m].Card)||E.finally(()=>{t.trackHistory({event:"seen",index:m})}),i[m]&&s&&s(Se.name.CURRENT_QUESTION,{[Se.data.QUESTION_ID]:i[m].name,[Se.data.PROPS]:i[m].props}),{viewedCardCount:r.viewedCardCount+1,deck:{cards:i,index:m},hasViewedEmbed:!1}},trackHistory:({event:e,index:r,isNew:t=!1})=>async n=>{if(pa(n))return;let{cards:i,index:a}=n.deck,o=r!==void 0?i[r]:i[a],s={sid:n.surveyId,qid:o.name,action:e,vid:n.userId,eid:n.envId,isNew:t,responseGroupUid:n.responseGroupUid},u=await ur(`${n.apiURL}/sdk/1/visitors/${n.userId}/surveys/${n.surveyId}/history`,{body:JSON.stringify(s),headers:n.headers,method:"POST"});!u.ok&&u.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey event",u.error),await Df(n,"trackHistory",u.error))},trackAnalytics:({event:e,questionId:r,metadata:t})=>async n=>{if(pa(n))return;let{mode:i,userId:a,envId:o,apiURL:s,headers:u,viewDocument:c,visitorAttributes:f}=n,d=c.documentElement,v=f&&f.externalUserId,g={event:`SDK - ${e}`,visitorId:a,environmentId:o,metadata:ne(G({},t||{}),{mode:i,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:d.clientWidth,clientHeight:d.clientHeight,location:window.location.href,language:window.navigator.language,questionId:r,responseGroupUid:n.responseGroupUid,surveyId:n.surveyId,userId:v})},h=await ur(`${s}/sdk/1/visitors/${a}/analytics`,{body:JSON.stringify(g),headers:u,method:"POST"});!h.ok&&h.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey analytics event",h.error),await Df(n,"trackAnalytics",h.error))},handleClickEmbedButton:e=>r=>{let{eventEmitFn:t}=r,{cards:n,index:i}=r.deck;return t(e,{[Se.data.QUESTION_ID]:n[i].name,[Se.data.PROPS]:n[i].props}),ne(G({},r),{hasViewedEmbed:!0})}};var mR={isConsentSelected:!1,isNamePresent:!1,isSubmitEnabled:!1,hasValidationError:!1,isActive:!1,name:""},yR={reset:()=>e=>ne(G({},e),{isConsentSelected:!1,isNamePresent:!1,isSubmitEnabled:!1,hasValidationError:!1,isActive:!1,name:""}),updateIsConsentSelected:e=>r=>{let t=!r.isConsentSelected,n=t&&(!e||r.isNamePresent);return ne(G({},r),{isConsentSelected:t,isSubmitEnabled:n})},updateIsActive:e=>r=>ne(G({},r),{isActive:e}),onNameTextChange:e=>r=>{let t=!!e.trim(),n=r.isConsentSelected&&t;return ne(G({},r),{name:e,isNamePresent:t,isSubmitEnabled:n})},setValidationError:()=>e=>ne(G({},e),{hasValidationError:!0})};var ER={optionsState:{}},SR={init:e=>r=>ne(G({},r),{optionsState:e}),reset:()=>e=>ne(G({},e),{optionsState:{}}),updateSelected:({id:e,value:r,userText:t,selected:n,isActive:i,isRadio:a})=>o=>{if(e==null)return;let s=Object.assign(o.optionsState);if(a&&n)for(let u of Object.values(s))u.selected=!1;return s[e]={value:r,userText:t,selected:n,isActive:i},ne(G({},o),{optionsState:s})}};var bR={value:""},qR={onTextChange:e=>r=>ne(G({},r),{value:e})};var Mne={init:({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:s,envId:u,eventEmitFn:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:g,headers:h,isPreview:m,marketingUrl:E,meta:S,mobilePlatform:x,startingQuestionIdx:A,styleNonce:_,recorderEventEmitter:C,responseGroupUid:L,showStripes:M,showSurveyBrand:V,slugName:F,surveyId:H,uploadProgress:R,useDesktopPrototype:I,useMobileStyling:b,userId:T,viewDocument:O,tabTitle:k,viewedCardCount:$,visitorAttributes:he})=>(ye,ge)=>{ge.app.init({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:s,envId:u,eventEmitFn:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:g,headers:h,isPreview:m,marketingUrl:E,meta:S,mobilePlatform:x,startingQuestionIdx:A,styleNonce:_,recorderEventEmitter:C,responseGroupUid:L,showStripes:M,showSurveyBrand:V,slugName:F,surveyId:H,uploadProgress:R,useDesktopPrototype:I,useMobileStyling:b,userId:T,tabTitle:k,viewDocument:O,viewedCardCount:$,visitorAttributes:he}),ge.app.seen()},update:e=>({app:r})=>{let{viewDocument:t,eventEmitFn:n}=r,i=t.getElementById(e),{classList:a}=i;r.running&&!a.contains("ul-app--visible")&&(Mr(r.headers)?a.add("ul-app--visible"):(a.add("ul-app--overlay"),setTimeout(()=>{a.add("ul-app--visible")},100)),n&&n(X.SURVEY_APPEARED)),setTimeout(()=>{let o=ms(t);Mr(r.headers)?n(X.SURVEY_HEIGHT,{name:X.SURVEY_HEIGHT,contentFrameHeight:o}):r.frame.setHeight(o)},100)},fadeout:e=>async({app:r})=>{let{eventEmitFn:t}=r;if(!Mr(r.headers))return t(X.SURVEY_FADING_OUT),new Promise(n=>{let i=r.viewDocument.getElementById(e);i.addEventListener("transitionend",({propertyName:a})=>{a==="opacity"&&n()}),i.classList.remove("ul-app--visible")})},remove:({initiator:e})=>({app:r})=>{let{frame:t,eventEmitFn:n}=r;["ios","android"].includes(r.headers["userleap-platform"])&&n(X.SURVEY_WILL_CLOSE,{initiator:e}),!Mr(r.headers)&&(n(X.SURVEY_WILL_CLOSE,{initiator:e}),t.remove())},close:e=>async(r,t)=>{await t.fadeout(e),await t.app.close(),Nr.enable(),t.remove({initiator:Er.CLOSED})},destroy:e=>async({app:r},t)=>{let{eventEmitFn:n}=r;n(Se.name.SURVEY_COMPLETE),await t.fadeout(e),Nr.enable(),t.remove({initiator:Er.COMPLETE})}},IR=G({app:hR,consentLegal:yR,multipleChoice:SR,openText:qR,recordTask:F2},Mne);var xR={app:gR,consentLegal:mR,multipleChoice:ER,openText:bR,recordTask:j2};function Mf({mode:e=null,viewWindow:r,viewDocument:t}){let n=t.documentElement;return{mode:e,sw:r.screen.width,sh:r.screen.height,cw:n.clientWidth,ch:n.clientHeight,p:r.location.href,l:r.navigator.language}}var Une={INACTIVE:"inactive",RECORDING:"recording"},Uf={WEBM:"video/webm",MP4:"video/mp4"};async function kne(e,r){let t=await fetch(r,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok){let n=await t.json();return n&&n.upload&&n.upload.url}else return null}function CR(){return MediaRecorder.isTypeSupported(Uf.WEBM)?Uf.WEBM:Uf.MP4}function AR(e){let r={audioBitsPerSecond:128e3,videoBitsPerSecond:25e5,mimeType:CR()};return new MediaRecorder(e,r)}function wR(e,r,t){t[r]=[],e.ondataavailable=function(n){t[r].push(n.data)},e.currentMediaRecordingUid=r,e.start()}function _R(e,r,t,n,i,a){if(e&&e.state!==Une.INACTIVE){let{[B.BEGIN_UPLOAD]:o}=n,s=e.currentMediaRecordingUid;o&&o(s),e.onstop=()=>jne(r,e,t,n,s,i,a),e.stop()}}async function jne(e,r,t,n,i,a,o){let{[B.UPLOAD_CALLBACK]:s,[B.PROGRESS_CALLBACK]:u}=n,c=G({mediaType:t,updatedAt:new Date().toISOString(),mediaRecordingUid:i},n[B.PASSTHROUGH_DATA]),f=await kne(c,e);if(!f){s&&s(!1,{message:"failed to get upload url"});return}let d=new Blob(o,{type:CR()});if(d.size===0)return;let v=a.createUpload({endpoint:f,file:new File([d],`recording video ${Date.now()}`),chunkSize:5120});v.startTime=Date.now(),v.on("error",g=>{s&&s(!1,g)}),v.on("progress",g=>{u&&u(i,g)}),v.on("success",()=>{s&&s(i,!0)})}var Fne={state:{},stopRecording(e){let{uploadApiEndpoint:r,avRecorder:t,screenRecorder:n,UpChunk:i}=this.state,a=this.state.avStream&&this.state.avStream.getVideoTracks().length>0?Ur.VIDEO:Ur.AUDIO;_R(t,r,a,e,i,this.state.chunks[t==null?void 0:t.currentMediaRecordingUid]),_R(n,r,Ur.SCREEN,e,i,this.state.chunks[n==null?void 0:n.currentMediaRecordingUid])},handleCancelledStream(e,r){let t=e.getVideoTracks(),n=e.getAudioTracks(),i=t.length&&t[0];i=i||n.length&&n[0],i&&i.addEventListener("ended",a=>{let o=!1;[this.state.avRecorder,this.state.screenRecorder].map(s=>{s&&(s.state==="recording"&&s.stop(),s.stream.getTracks().map(u=>{u.readyState==="live"&&u.stop()}),o=!0)}),Object.assign(this.state,{avStream:null,captureStream:null,avRecorder:null,screenRecorder:null}),o&&r&&r()})},taskDurationMillisecond(){return this.state.startTime?new Date().getTime()-this.state.startTime.getTime():0},setUpChunk(e){this.state.UpChunk=e},configure(e,r){Object.assign(this.state,r),this.state.uploadApiEndpoint=`${r.apiURL}/2/environments/integrations/upload`,this.state.chunks={},this.state.eventListeners={[Me.PERMISSION_STATUS]:this.permissionStatusCallback.bind(this),[Me.AV_PERMISSION]:async t=>{this.avPermissionCallback(t)},[Me.BEGIN_RECORDING]:this.beginRecordingCallback.bind(this),[Me.START_TASK]:this.startTaskCallback.bind(this),[Me.SCREEN_PERMISSION]:async t=>{this.screenPermissionCallback(t)},[Me.FINISH_TASK]:async t=>{this.finishTaskCallback(t)}},Object.keys(this.state.eventListeners).map(t=>{e.subscribe(t,this.state.eventListeners[t])})},async avPermissionCallback(e){var i;let{[B.STREAM_READY_CALLBACK]:r,[B.STREAM_CANCELLED_CALLBACK]:t,[B.PERMISSION_DESCRIPTORS]:n}=e;try{(i=this.state.avStream)!=null&&i.active&&this.state.avStream.getTracks().map(a=>a.readyState==="live"&&a.stop()),this.state.avStream=await navigator.mediaDevices.getUserMedia({video:n.includes(Ss.CAMERA),audio:!0}),this.handleCancelledStream(this.state.avStream,t)}catch(a){console.warn("Error: failed to get permissions: "+a),r&&r(!1);return}r&&r(this.state.avStream,this.state.captureStream)},async screenPermissionCallback(e){let{[B.STREAM_READY_CALLBACK]:r,[B.STREAM_CANCELLED_CALLBACK]:t}=e;try{this.state.captureStream=await navigator.mediaDevices.getDisplayMedia({video:!0,cursor:"always",displaySurface:"browser",preferCurrentTab:!0})}catch(n){console.warn("Error: failed to get permissions: "+n),r&&r(!1);return}this.state.avStream&&this.state.avStream.getAudioTracks().length>0&&this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]),this.handleCancelledStream(this.state.captureStream,t),r&&r(this.state.avStream,this.state.captureStream)},beginRecordingCallback(e){let{[B.RECORDING_MEDIA_TYPES]:r,[B.START_RECORDING_CALLBACK]:t}=e;if(!r)return;let n=[];if(r.includes(Ur.VIDEO)){this.state.avRecorder=AR(this.state.avStream);let i=At();wR(this.state.avRecorder,i,this.state.chunks),n.push(i)}if(r.includes(Ur.SCREEN)){this.state.screenRecorder=AR(this.state.captureStream);let i=At();wR(this.state.screenRecorder,i,this.state.chunks),n.push(i)}n&&t&&t(n)},async finishTaskCallback(e){let{[B.CURRENT_INDEX]:r,[B.TASK_RESPONSE]:t,[B.TASK_COMPLETE_CALLBACK]:n}=e;await this.stopRecording(e),n&&n(this.taskDurationMillisecond()),this.lookAheadAndStopStream(r,t)},startTaskCallback(){this.state.startTime=new Date},permissionStatusCallback(e){var n;let{[B.PERMISSION_STATUS_CALLBACK]:r}=e,t=this.state.avStream;r&&r(t,(t==null?void 0:t.getAudioTracks().length)>0,(t==null?void 0:t.getVideoTracks().length)>0,!!((n=this.state.captureStream)!=null&&n.active))},lookAheadAndStopStream(e,r){let{cards:t,hasEndCard:n,avRecorder:i,screenRecorder:a,eventEmitter:o}=this.state,s=Is({cards:t,index:e,selectedValue:r.value,hasEndCard:n,hasValidAnswer:qs(r,r.type,r.value)});s!==null&&t[s].type===W.RECORDED_TASK||[i,a].map(u=>{u&&(u.state==="recording"&&u.stop(),u.stream.getTracks().map(c=>{c.readyState==="live"&&c.stop()}))})}},TR=Object.create(Fne);Object.freeze(TR);var Ns=TR;var RR={configure:e=>{var Gf;let{answers:r,apiURL:t,border:n="#6664f7",cards:i,configureExitOnOverlayClick:a,context:o,customMetadata:s,customStyles:u,endCard:c,envId:f,eventEmitFn:d,experimentFlags:v,fontFamily:g,fontFamilyURL:h,frame:m,headers:E,isDevelopment:S,isPreview:x,marketingUrl:A,mobilePlatform:_,mode:C,startingQuestionIdx:L,responseGroupUid:M,showStripes:V,showSurveyBrand:F,slugName:H,styleNonce:R,surveyId:I,uploadProgress:b,useMobileStyling:T,useDesktopPrototype:O,userId:k,viewDocument:$,viewWindow:he,tabTitle:ye,UpChunk:ge,installationMethod:Ie,visitorAttributes:ue}=e,{head:Le}=$,Q=I2({initialCards:i,hasEndCard:!!c}),z=new nt;if(Ns.configure(z,{cards:Q,hasEndCard:!!c,apiURL:t,UpChunk:ge}),!ge)if(Ie!==br.NPM){let at=$.createElement("script");at.src="https://cdn.sprig.com/userleap-web-upchunk-v2.2.2.js",at.onload=()=>{Ns.setUpChunk(he.UpChunk)},at.onerror=()=>{console.warn("[Sprig] - recording functionality not configured due to UpChunk library load failure")},Le.appendChild(at)}else console.warn("[Sprig] - recording functionality not configured due to missing UpChunk dependency");let se="2.19.6",re=d||((Gf=m.eventEmitter)==null?void 0:Gf.emit);re&&re(Se.name.VERIFY_VIEW_VERSION,{[Se.data.VIEW_VERSION]:se});let Ue=$.createElement("style");if(Ue.type="text/css",R&&(Ue.nonce=R),Ue.appendChild($.createTextNode(g2.styles)),Le.appendChild(Ue),u&&hs($,u,R),g&&h&&parent){let at=$.createElement("link");at.rel="stylesheet",at.href=h,Le.appendChild(at)}let kR=Mr(E)?m:$.body;l2(xR,IR,p2,kR).init({answers:r,apiURL:t,border:n,cards:Q,configureExitOnOverlayClick:a,context:o,customMetadata:s,endCard:c,envId:f,eventEmitFn:d,experimentFlags:v,fontFamily:g,frame:m,headers:E,isDevelopment:S,isPreview:x,marketingUrl:A,meta:Mf({mode:C,viewWindow:he,viewDocument:$}),mobilePlatform:_,mode:C,startingQuestionIdx:L,recorderEventEmitter:z,responseGroupUid:M,showStripes:V,showSurveyBrand:F,slugName:H,styleNonce:R,surveyId:I,uploadProgress:b,useMobileStyling:T,useDesktopPrototype:O,userId:k,viewDocument:$,recorder:Ns,tabTitle:ye,visitorAttributes:ue})}};var OR=RR;var ga="userleap.ids",jf="userleap.pageviews",Bne=["popState","pushState","replaceState"],Tt="environments",en="visitors",LR="ul-view-sdk-script",PR=Object.freeze({contains:(e,r)=>r.includes(e),notContains:(e,r)=>!r.includes(e),exactly:(e,r)=>r===e,notExactly:(e,r)=>r!==e,startsWith:(e,r)=>r.startsWith(e),endsWith:(e,r)=>r.endsWith(e),regex:(e,r)=>new RegExp(e).test(r),legacy:(e,r)=>new RegExp(e,"i").test(r)});function Ff(e,r){let{matchType:t,pattern:n}=e;return(t?PR[t]:PR.legacy)(n,r)}function $ne(e,r){let{pageUrlEvents:t,interactiveEvents:n,dismissOnPageChange:i}=UserLeap._config;if(!i)return!0;let a=[];t&&t.length&&a.push(...t),n&&n.length&&a.push(...n);let o=e&&a.find(s=>s.id===e);return o?Ff(o,window.location.href):r===window.location.href}function ha(e){let{pageUrlEvents:r,interactiveEvents:t,dismissOnPageChange:n,platform:i}=UserLeap._config;i&&i!=="web"||(r&&Yne(window.location.href),t&&(DR(),Vne()),n&&e&&Bne.includes(e.type)&&UserLeap("dismissActiveSurvey",Er.PAGE_CHANGE))}var NR={capture:!0},Vne=()=>{let r=UserLeap._config.interactiveEvents.filter(n=>Ff(n,window.location.href)).map(n=>{let{name:i,properties:a}=n,{selector:o,innerText:s}=a;return o?u=>!!u.target.closest(o)&&UserLeap("track",i):u=>u.target.innerText===s&&UserLeap("track",i)}),t=n=>r.forEach(i=>i(n));UserLeap._config.interactiveEventsHandler=t,window.addEventListener("click",t,NR)},DR=()=>{window.removeEventListener("click",UserLeap._config.interactiveEventsHandler,NR),delete UserLeap._config.interactiveEventsHandler};function Hne(){["hashchange","popstate"].forEach(e=>window.addEventListener(e,ha,!0))}function Gne(){["hashchange","popstate"].forEach(e=>window.removeEventListener(e,ha,!0)),UserLeap._config.interactiveEvents&&DR()}function Br(e,r,t){let n=[UserLeap._API_URL,"sdk",e];return r&&r.forEach(i=>{n.push(i),i===Tt?n.push(UserLeap.envId):i===en&&n.push(Bf())}),t&&n.push(t),n.join("/")}function zne(e,r){let t=Br(1,[Tt],"questions?");return e!=null&&(t+=`&vid=${e}`),r&&(r.surveyId&&(t+=`&surveyid=${r.surveyId}`),r.surveyTemplateId&&(t+=`&surveytemplateid=${r.surveyTemplateId}`)),t}function Kne(){try{if(typeof localStorage<"u"&&(localStorage.setItem("is_available","yes"),localStorage.getItem("is_available")==="yes"))return localStorage.removeItem("is_available"),!0}catch(e){return!1}return!1}function Jn(e){if(!UserLeap.localStorageAvailable)return null;let r=localStorage.getItem(ga);if(r)try{let n=JSON.parse(r)[UserLeap.envId];return n&&n[e]||null}catch(t){t.stack=r,UserLeap.reportError("Failed to parse local storage credentials",t),console.warn("[Sprig] (ERR-427) Failed to lookup saved ids",t)}return null}function $r(e,r){if(!UserLeap.localStorageAvailable)return;let t=localStorage.getItem(ga),n={};if(t)try{n=JSON.parse(t)}catch(a){a.stack=t,UserLeap.reportError("Failed to parse local storage credentials",a),console.warn("[Sprig] (ERR-427) Failed to lookup saved ids",a)}let i=n[UserLeap.envId];i?i[e]=r:i={[e]:r},n[UserLeap.envId]=i;try{localStorage.setItem(ga,JSON.stringify(n))}catch(a){console.warn(`[Sprig] (ERR-426) Unable to write to Local Storage:: ${a.message}`)}}function MR(){window.previewMode||(UserLeap.visitorId=At(),$r("vid",UserLeap.visitorId),fe.emit(X.VISITOR_ID_UPDATED,{visitorId:UserLeap.visitorId}))}function Bf(){return window.previewMode?0:UserLeap.visitorId}function Yne(e){if(!UserLeap.localStorageAvailable||e.endsWith("mock_snippet.html"))return;let r=UserLeap._config.pageUrlEvents;if(r&&r.length){let s=!1;for(let u=0;u<r.length&&(s=Ff(r[u],e),!s);u++);if(!s)return}UserLeap.debugMode&&console.log("[DEBUG] Sprig trackPageView",arguments);let t=10,n=1,i=[],a={viewedAt:Date.now(),location:e},o=localStorage.getItem(jf);try{if(o){if(i=JSON.parse(o),i.length>0){let s=i[i.length-1],u=(Date.now()-s.viewedAt)/1e3;(s.location!=e&&u>n||u>t)&&(UserLeap._queue.push(["track",ma,null,{url:e}]),i.push(a))}}else UserLeap._queue.push(["track",ma,null,{url:e}]),i.push(a);i.length>5&&i.splice(0,i.length-5);try{localStorage.setItem(jf,JSON.stringify(i))}catch(s){console.warn(`[Sprig] Unable to write to Local Storage: ${s.message}`)}}catch(s){s.stack=o,console.warn("[Sprig] (ERR-425) Failed to update page views in local storage"),UserLeap.reportError("trackPageView",s)}}function Wne(){let e="Backbone"in window&&window.Backbone&&Backbone.history?Backbone.history:window.history;e.pushState=(r=>function(){let n=r.apply(this,arguments),i=new Event("pushState");return window.dispatchEvent(i),ha(i),n})(e.pushState),e.replaceState=(r=>function(){let n=r.apply(this,arguments),i=new Event("replaceState");return window.dispatchEvent(i),ha(i),n})(e.replaceState),Hne()}async function kf(e,r){let t=Bf();e&&!r&&(UserLeap._config.mode=Qf.test);let n=await Ct(zne(t,e),{},0,!0);return n.ok?(n.json.delay&&await Wn(n.json.delay),UR(n.json)):(n.reportError&&(console.warn("[Sprig] (ERR-414) Failed to request questions from the server",n.error),UserLeap.reportError("getQuestions",n.error)),{success:!1,surveyState:Dr.NO_SURVEY})}function UR(e){var R,I;let{vid:r,uuid:t,questions:n,surveyId:i,context:a,locale:o,responseGroupUid:s,endCard:u,productConfig:c}=e,f=e.experimentFlags||{},d=Xn(UserLeap),v=$f(d),g=Xne(d);if(r==null||!n||!n.length)return{success:!1,message:"[Sprig] no survey found",surveyState:Dr.NO_SURVEY};if(UserLeap.container){let b="[Sprig] (ERR-409) Found an existing Survey container, aborting rendering of this survey";return console.warn(b),{success:!1,message:b,surveyState:Dr.NO_SURVEY}}if(r!==UserLeap.visitorId&&t!==UserLeap.visitorId&&!window.previewMode){let b="Attempted to display survey to a different visitor";return UserLeap.reportError("DisplaySurvey",new Error(b)),{success:!1,message:b,surveyState:Dr.NO_SURVEY}}Nr.disable(),fe.emit(X.SURVEY_WILL_PRESENT,{name:X.SURVEY_WILL_PRESENT,[X.DATA.SURVEY_ID]:i});let h,m,E,S,x,A=b=>{let{[Se.data.VIEW_VERSION]:T}=b;T!==d["x-ul-sdk-version"]&&pf(),fe.removeListener(Se.name.VERIFY_VIEW_VERSION,A)};fe.subscribe(Se.name.VERIFY_VIEW_VERSION,A),Mr(d)?(h="ul-direct-embeded-frame",E=document.head,S=window,x=!1,v&&(vf(),m=document.createElement("div"),m.id=h,UserLeap.container.appendChild(m),gf(),fe.emit(X.SURVEY_LIFE_CYCLE,{state:"presented"}),fe.emit(X.SURVEY_PRESENTED,{name:X.SURVEY_PRESENTED}))):{frameId:h,contentWinDocHead:E,contentWindow:S,hasOverlay:x,iframe:m}=t2(c,g),UserLeap.frameId=h,UserLeap.useMobileStyling=g;let _=b=>{fe.subscribe(X.CLOSE_SURVEY_ON_OVERLAY_CLICK,b)},C=Object.assign({frame:m,envId:UserLeap.envId,surveyId:i,userId:t,visitorAttributes:{externalUserId:UserLeap.userId,email:UserLeap.email},cards:n,context:a,locale:o,fontFamily:UserLeap.fontFamily,fontFamilyURL:UserLeap.fontFamilyURL,apiURL:UserLeap._API_URL,responseGroupUid:s,headers:d,endCard:u,useMobileStyling:g,mobilePlatform:UserLeap.mobilePlatform,mobileSDKVersion:UserLeap.mobileSDKVersion,experimentFlags:f,configureExitOnOverlayClick:_,eventEmitFn:fe.emit.bind(fe),ulEvents:X,viewDocument:S.document,viewWindow:S,tabTitle:document.title,startingQuestionIdx:(R=UserLeap.config)==null?void 0:R.startingQuestionIdx,styleNonce:UserLeap.styleNonce},UserLeap._config);(I=UserLeap.config)!=null&&I.startingQuestionIdx&&(UserLeap.config=ne(G({},UserLeap.config),{startingQuestionIdx:null})),UserLeap.customStyles&&(C.customStyles=UserLeap.customStyles),S.__cfg=C;function L(){let b=document.createElement("script");return UserLeap.nonce&&b.setAttribute("nonce",UserLeap.nonce),b.id=LR,b}let M=UserLeap.viewSDKURL?UserLeap.viewSDKURL:C.path,V=document.getElementById(LR);V&&V.remove();let F=L(),H=()=>{Object.assign(UserLeap.container.style,{display:"flex"})};return C.installationMethod===br.NPM?(OR.configure(C),x&&UserLeap.container&&H()):(F.src=M,x&&F.addEventListener("load",()=>{UserLeap.container&&H()}),S.addEventListener("error",b=>{b.target.nodeName==="SCRIPT"&&b.target.src===M&&UserLeap.reportError("loadFrameScript",new Error("Frame script failed to load"))},{capture:!0,once:!0})),E.appendChild(F),{success:!0,surveyState:Dr.READY}}function Xne(e){if(UserLeap.useMobileStyling!==void 0)return UserLeap.useMobileStyling;let r=UserLeap.windowDimensions&&UserLeap.windowDimensions.width||document.body.clientWidth;return $f(e)||r>10&&r<Zf}function $f(e){return ev.includes(e["userleap-platform"])}function Qne(e){let r=e.length;for(;r;){let t=Math.floor(Math.random()*r);r-=1;let n=e[r];e[r]=e[t],e[t]=n}}function Zne(e){if(!e)return;UserLeap._config=e,e.mute&&UserLeap._queue.pause();let{interactiveEvents:r,pageUrlEvents:t,dismissOnPageChange:n}=e;r&&Qne(r),(r||t||n)&&(Wne(),ha())}async function Ct(e,r,t=0,n=!1){r.headers=Object.assign(Xn(UserLeap),r.headers);let i=await ur(e,r,t,n);if(i.ok){let a=i.headers.get("Authorization"),o=a?a.split(" "):void 0,s=o&&o.length===2?o[1]:void 0,u=i.headers.get("x-ul-visitor-id");s&&u&&(u!==UserLeap.visitorId||UserLeap.token!==s)&&($r("token",s),$r("vid",u),fe.emit(X.VISITOR_ID_UPDATED,{visitorId:u}),UserLeap.token=s,UserLeap.visitorId=u)}return i.json&&i.json.logMessage&&console.warn(`[Sprig] ${i.json.logMessage}`),i}async function Jne(e){var r;!((r=e==null?void 0:e.json)!=null&&r.delay)||(UserLeap.delayingSurvey=!0,await Wn(e.json.delay),UserLeap.delayingSurvey=!1)}var eie=function(e){if(!window.UserLeap)return;let r=async(n={})=>{var v;let{userId:i,anonymousId:a,metadata:o={},properties:s}=n,{eventName:u}=n;if(UserLeap.debugMode&&u!==ma&&console.log("[DEBUG] Sprig track",arguments),e.mode==="test")return;if(e.requireUserIdForTracking&&!UserLeap.userId&&!i){let g="[Sprig] - Skipping tracking without userId";return console.warn(g),{success:!1,message:g,surveyState:Dr.NO_SURVEY}}if(!u||u.trim().length===0){u=u?String(u):"";let g="[Sprig] - Invalid event name "+u;return console.warn(g),{success:!1,message:g,surveyState:Dr.NO_SURVEY}}let c=window.location.href;if(o.url||(o.url=c),(v=UserLeap==null?void 0:UserLeap._config)!=null&&v.optimizelyEnabled){let g=Xn(UserLeap);$f(g)||gs.getAndSetWebOptimizelyExperiments(),o.optimizelyExperiments=Object.assign({},gs.getAllOptimizelyExperiments())}i&&(UserLeap.userId=i),a&&(UserLeap.partnerAnonymousId=a),s&&(o.eventProperties=s);let f=UserLeap.delayingSurvey?await Ct(Br(1,[en],"events/batch"),{body:JSON.stringify({events:[{event:u,metadata:o}]}),method:"POST"},0,!0):await Ct(Br(1,[en],"events"),{body:JSON.stringify({event:u,metadata:o}),method:"POST"},0,!0);if(!f.ok){let g="[Sprig] (ERR-421) Failed to track event";return f.reportError&&(console.warn(g,f.error),UserLeap.reportError("track",f.error)),{success:!1,message:g,error:f.error,surveyState:Dr.NO_SURVEY}}i&&$r("uid",i),a&&$r("aid",a);let d=f.json;return await Jne(f),$ne(d.eventId,c)?UR(d):{success:!1,message:"Study should not be displayed after page navigation",surveyState:Dr.NO_SURVEY}},t={async displaySurvey(n){return console.warn("[Sprig] displaySurvey should only be used to debug your studies; not intended for production usage."),UserLeap("dismissActiveSurvey",Er.OVERRIDE),kf({surveyId:n},!0)},previewSurvey(n){UserLeap("dismissActiveSurvey",Er.OVERRIDE),kf({surveyTemplateId:n},!1)},reviewSurvey(n){UserLeap("dismissActiveSurvey",Er.OVERRIDE),kf({surveyId:n},!1)},mute(){UserLeap._queue.pause()},unmute(){UserLeap._queue.unpause()},setVisitorToken(){console.warn("[Sprig] setVisitorToken is deprecated.")},dismissActiveSurvey(n=Er.API){fe.emit(X.SURVEY_WILL_CLOSE,{initiator:n})},async setAttribute(n,i){if(!n||!i&&i!==0){let a="[Sprig] - Disregarding empty attribute / value provided";return console.warn(a),{success:!1,message:a}}return this.setAttributes({[n]:i})},async setAttributes(n){if(n==null||Object.keys(n).length===0){let i="[Sprig] - Disregarding empty attributes provided";return console.warn(i),{success:!1,message:i}}return this.identifyAndSetAttributes({attributes:n})},async identifyAndSetAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig identifyAndSetAttributes",arguments),e.mode==="test")return;if(n===null||typeof n!="object"||!(n.userId||n.anonymousId||n.attributes)){let c="[Sprig] - Disregarding empty payload provided";return console.warn(c),{success:!1,message:c}}let{userId:i,anonymousId:a,attributes:o}=n;if(e.requireUserIdForTracking&&!UserLeap.userId&&!i){let c="[Sprig] - Skipping tracking without userId";return console.warn(c),{success:!1,message:c}}if(!o&&(!i||UserLeap.userId===i)&&(!a||UserLeap.partnerAnonymousId===a))return{success:!0};let s={};i&&(s.userId=UserLeap.userId=i),a&&(s.partnerAnonymousId=UserLeap.partnerAnonymousId=a);let u;return o?(o.email&&!Object.prototype.hasOwnProperty.call(o,tn)&&(o[tn]=o.email,delete o.email),u=await Ct(Br(1,[Tt,en],"attributes"),{body:JSON.stringify(o),method:"PUT"}),!u.ok&&u.reportError&&(console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed",u.error),UserLeap.reportError("identifyAndSetAttributes",u.error))):u=await Ct(Br(1,[Tt,en]),{body:JSON.stringify(s),method:"PUT"}),o&&o[tn]&&(UserLeap.email=o[tn]),u.ok&&(i&&$r("uid",i),a&&$r("aid",a)),{success:!!u.ok}},async removeAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig removeAttributes",arguments),e.mode==="test")return;if(n==null||n.length===0){let a="[Sprig] - Disregarding empty attributes provided";return console.warn(a),{success:!1,message:a}}if(e.requireUserIdForTracking&&!UserLeap.userId){let a="[Sprig] - Skipping tracking without userId";return console.warn(a),{success:!1,message:a}}let i=await Ct(Br(1,[Tt,en],"attributes"),{body:JSON.stringify({delete:n}),method:"DELETE"});return!i.ok&&i.reportError&&(console.warn("[Sprig] (ERR-433) Remove attributes failed",i.error),UserLeap.reportError("removeAttributes",i.error)),{success:!!i.ok}},async addSurveyListener(n){fe.subscribe(X.SURVEY_LIFE_CYCLE,n)},async removeSurveyListener(n){fe.removeListener(X.SURVEY_LIFE_CYCLE,n)},async addListener(n,i){fe.subscribe(n,i)},async removeListener(n,i){fe.removeListener(n,i)},async removeAllListeners(){fe.removeAllListeners()},setVisitorAttribute(n,i){return console.warn("[Sprig] setVisitorAttribute is deprecated. Please use setAttribute"),t.setAttribute(n,i)},async setEmail(n){return t.setAttribute(tn,n)},async setVisitorEmail(n){return console.warn("[Sprig] setVisitorEmail is deprecated. Please use setEmail"),t.setEmail(n)},async setUserId(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setUserId",arguments),n==null){let a=`[Sprig] - Invalid userId ${n}`;return console.warn(a),{success:!1,message:a}}if(e.mode==="test"||n===UserLeap.userId)return;UserLeap.userId=n;let i=await Ct(Br(1,[Tt,en]),{body:JSON.stringify({userId:n}),method:"PUT"});if(!i.ok){i.reportError&&(console.warn("[Sprig] (ERR-420) Failed to set user id",i.error),UserLeap.reportError("setUserId",i.error));return}$r("uid",n)},async setPartnerAnonymousId(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setPartnerAnonymousId",arguments),n==null){let i=`[Sprig] - Invalid partnerAnonymousId ${n}`;return console.warn(i),{success:!1,message:i}}return UserLeap.partnerAnonymousId=n,{success:!0}},async track(n,i,a={}){return r({eventName:n,properties:i,metadata:a})},async identifyAndTrack(n){return await r(n)},applyStyles(n){if(UserLeap.customStyles=n,UserLeap.container){let i=UserLeap.container.children[0].contentDocument,a=i.getElementById(q.CUSTOM_STYLE_TAG_ID);a?a.textContent=n:hs(i,n,UserLeap.styleNonce)}},setWindowDimensions(n,i){let a=parseInt(n,10),o=parseInt(i,10);if(UserLeap.windowDimensions={width:!Number.isNaN(a)&&a,height:!Number.isNaN(o)&&o},!UserLeap.frameId)return;let s=document.getElementById(UserLeap.frameId);!s||(UserLeap.useMobileStyling&&(UserLeap.windowDimensions.width&&(s.style.width=`${UserLeap.windowDimensions.width}px`),UserLeap.windowDimensions.height&&(s.style.maxHeight=`${UserLeap.windowDimensions.height-20}px`),s.style.height=ms(s.contentDocument)),fe.emit(X.SURVEY_DIMENSIONS,{name:X.SURVEY_DIMENSIONS,contentFrameWidth:s.clientWidth,contentFrameHeight:s.clientHeight}))},logoutUser(){UserLeap.debugMode&&console.log("[DEBUG] Sprig logout"),UserLeap.visitorId=null,UserLeap.userId=null,UserLeap.partnerAnonymousId=null,UserLeap.token=null,UserLeap.email=null,UserLeap.localStorageAvailable&&(localStorage.removeItem(ga),localStorage.removeItem(jf)),UserLeap._queue.isPaused()&&UserLeap._queue.empty(),MR(),UserLeap._queue.unpause()},teardown(){Gne(),window.UserLeap("dismissActiveSurvey",Er.API),delete window.UserLeap,delete window.Sprig,delete window._Sprig},integrateOptimizely(n){let i=JSON.parse(n);gs.setOptimizelyExperiment(i)}};Object.assign(window.UserLeap,t)};async function rie(e){let r=Xn(UserLeap),t=await ur(Br(1,[Tt],"config"),{headers:r}),n="TypeError";if(UserLeap.error=t.error,!t.ok&&t.error&&t.error.name===n&&(UserLeap._API_URL="https://api.sprig.com",UserLeap.reportError("sprigDomainRequest",t.error),t=await ur(Br(1,[Tt],"config"),{headers:r})),!t.ok)return t.reportError&&(console.warn("[Sprig] (ERR-422) Failed to load configuration",t.error),UserLeap.reportError("applyRemoteConfig",t.error)),ps("Disabled: failed to fetch configuration"),e;let i=t.json;return i!=null&&i.disabled?(ps(`Disabled: ${i.disabled}`),{disabled:i.disabled}):Object.assign({},e,i)}async function tie(e,r){let t=window.__cfg&&window.__cfg.mode,i=Bf(!1),a=UserLeap.envId,o=window.document.documentElement,s={mode:t,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:window.navigator.language},u={action:e,err:{message:r.message,stack:r.stack},meta:s,vid:i,envId:a};(await Ct(Br(1,null,"errors"),{method:"POST",headers:{"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},body:JSON.stringify(u)},0,!0)).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",r)}function Vf(e={}){async function r(){if(UserLeap.loaded)return;if(UserLeap.UPDATES=X,UserLeap.reportError=tie,UserLeap.loaded=!0,UserLeap._config=Object.assign({},e,UserLeap.config),UserLeap.delayingSurvey=!1,UserLeap._config&&typeof UserLeap._config=="object")for(let s in UserLeap._config)UserLeap[s]=UserLeap._config[s];if(!UserLeap.envId)if(UserLeap.appId)UserLeap.envId=UserLeap.appId;else throw new Error("Missing Environment id");UserLeap.debugMode&&console.log("[DEBUG] Sprig debug mode enabled");let t=Kne();UserLeap.localStorageAvailable=t;let n=UserLeap.sampleRate;if(n)if(!t)UserLeap.debugMode&&console.log("[DEBUG] Sprig cannot sample users without localStorage permissions");else{let s=Jn("sampled");if(s===null&&(s=Math.random()<n,$r("sampled",s)),!s)return}else t&&Jn("sampled")!==null&&$r("sampled",null);UserLeap._API_URL||(UserLeap._API_URL="https://api.sprig.com");let i=[...UserLeap._queue];UserLeap._queue=new n2(UserLeap,[]),UserLeap._queue.pause();for(let s=0;s<i.length;s++)UserLeap._queue.push(i[s]);let a=Jn("token");a?(UserLeap.token=a,UserLeap.visitorId=Jn("vid"),UserLeap.userId=Jn("uid"),UserLeap.partnerAnonymousId=Jn("aid")):(UserLeap.localStorageAvailable&&localStorage.removeItem(ga),MR());let o=await rie(e);eie(o),await Zne(o),UserLeap._queue.unpause(),fe.emit(X.SDK_READY),fe.emit(X.VISITOR_ID_UPDATED,{visitorId:UserLeap.visitorId})}document.readyState==="complete"?r():window.attachEvent?window.attachEvent("onload",r):window.addEventListener("load",r,!1)}var ei=class{constructor(){Xf(this,"UPDATES",X)}displaySurvey(r){window.Sprig("displaySurvey",r)}previewSurvey(r){window.Sprig("previewSurvey",r)}reviewSurvey(r){window.Sprig("reviewSurvey",r)}mute(){window.Sprig("mute")}unmute(){window.Sprig("unmute")}dismissActiveSurvey(){window.Sprig("dismissActiveSurvey")}setAttribute(r,t){window.Sprig("setAttribute",r,t)}setAttributes(r){window.Sprig("setAttributes",r)}identifyAndSetAttributes(r){window.Sprig("identifyAndSetAttributes",r)}removeAttributes(r){window.Sprig("removeAttributes",r)}addListener(r,t){window.Sprig("addListener",r,t)}removeListener(r,t){window.Sprig("removeListener",r,t)}removeAllListeners(){window.Sprig("removeAllListeners")}setEmail(r){window.Sprig("setAttribute","!email",r)}setUserId(r){window.Sprig("setUserId",r)}setPartnerAnonymousId(r){window.Sprig("setPartnerAnonymousId",r)}track(r,t={},n={}){window.Sprig("track",r,t,n)}identifyAndTrack(r){window.Sprig("identifyAndTrack",r)}applyStyles(r){window.Sprig("applyStyles",r)}setWindowDimensions(r,t){window.Sprig("setWindowDimensions",r,t)}logoutUser(){window.Sprig("logoutUser")}teardown(){window.Sprig("teardown")}},Hf={configure:e=>{if(!e.envId&&!e.environmentId)throw new Error("Initialization Error: Sprig configure requires an environmentId");if(e.envId||(e.envId=e.environmentId),e.installationMethod=br.NPM,window.Sprig)return window.Sprig;window.Sprig=function(){window.Sprig._queue.push(arguments)},Object.getOwnPropertyNames(ei.prototype).map(t=>{t!=="constructor"&&(window.Sprig[t]=ei.prototype[t])});let r=window.Sprig;return r.appId=e.envId,r._queue=[],window.UserLeap=r,Vf(e),window.Sprig}};module.exports={sprig:Hf,SprigAPI:ei,configure:Hf.configure};
|
|
680
|
+
`,wne=e=>{let r=D.document.createElement("div");return r.className="ul-video-player-loading",r.id=Of(e),["first","second","third","fourth"].map(t=>{let n=D.document.createElement("div");n.className=t,r.appendChild(n)}),r},Of=e=>e+"-loading-spiner",oe="hidden",Zn="visible",eR=".m3u8",xf="questionId",Af="ul-video-recorder-camera-off-button",wf="ul-recording-in-session",_ne=[{type:"link",content:`${Zt}/dependencies/videojs-record-4.5.0.min.css`},{type:"script",content:`${Zt}/dependencies/RecordRTC-5.6.2.js`},{type:"script",content:`${Zt}/dependencies/adapter.8.0.0.min.js`},{type:"script",content:`${Zt}/dependencies/videojs-record-4.5.0.min.js`},{type:"script",content:`${Zt}/userleap-web-upchunk-v2.2.2.js`}],rR=[{type:"link",content:`${Zt}/dependencies/video-js-7.18.0.min.css`},{type:"script",content:`${Zt}/dependencies/video-js-7.18.0.min.js`},{type:"style",content:Ane}],Ps="-video-player",Lf="-secondary-video-player",Pf="-video-recorder",Fr,Cf,_t=async({event:e,apiBase:r,headers:t,visitorId:n,envId:i,metadata:a})=>{let o=D.document.documentElement;if(!n||!i)return;let s={event:`SDK - ${e}`,visitorId:n,environmentId:i,metadata:ne(G({},a||{}),{screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:navigator.language})};(await fetch(`${r}/sdk/1/visitors/${n}/analytics`,{method:"POST",cache:"no-cache",headers:t,body:JSON.stringify(s)})).ok||console.warn("[Sprig] (ERR-444) Failed to track analytics",e)},Jt=async(e,r,t,n,i,a)=>{_t({event:`Video Error ${r}`,apiBase:t,headers:n,visitorId:i,envId:a,metadata:{errorMessage:e.message}});let o=D.document.documentElement,s={screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:navigator.language},u={action:r,err:{message:e.message,stack:e.stack},meta:s,vid:i,envId:a};(await fetch(`${t}/sdk/1/errors`,{method:"POST",cache:"no-cache",headers:ne(G({},n),{"userleap-platform":"video_recorder","x-ul-error":window.btoa(`userleap-${Date.now()}-error`)}),body:JSON.stringify(u)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",e)},Cne=(e,{type:r,content:t})=>new Promise(function(n,i){let a;r==="script"?(a=D.document.createElement("script"),a.src=t):r==="link"?(a=D.document.createElement("link"),a.rel="stylesheet",a.href=t,a.type="text/css"):(a=D.document.createElement("style"),a.innerHTML=t),a.onload=function(){n(t)},a.onerror=function(){i(t)},a.async=!1,a.id=btoa(t),e.appendChild(a)}),tR=(e,r)=>{if(e.length===0)return r&&r();Promise.all(e.reduce((t,n)=>(t.push(Cne(D.document.head,n)),t),[])).then(()=>{D.videojs=D.document.defaultView.videojs,r&&r()}).catch(function(t){console.log(t+" failed to load")})},Tf=(e,r,t)=>{if(r==="start"&&(e.style.visibility="visible"),r==="none")e.style.visibility=oe;else if(r==="success")e.style.visibility=oe,e.innerHTML="Upload succeeded!";else{let n=Math.round(parseFloat(t));e.innerHTML=`Uploading <span class="ul-upload-progress-label__time">${n}%</span>`,e.style.background=`linear-gradient(to right, #E0E0EB 0%, #E0E0EB ${n}%, #FCFCFD ${n}%, #FCFCFD 100%)`}},_f=(e,r)=>{let t=D.videojs(e.id());return t==null?void 0:t.payload[r]},Tne=(e,r,t,n,i)=>{let{surveyId:a,responseGroupUid:o,visitorId:s,envId:u}=e.payload;e.on("deviceError",function(){console.warn("device error: ",e.deviceErrorCode),e.deviceErrorCode.message==="Permission denied"?(e.deviceButton.addClass("permission-denied"),t&&t(J.ERROR,{type:J.PERMISSION_DENIED}),_t({event:"Video Permission Denied",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{questionId:_f(e,xf),responseGroupUid:o,surveyId:a}})):(t&&t(J.ERROR,{type:J.OTHER}),Jt(new Error(e.deviceErrorCode.message),"recorderDeviceError",r,i,s,u))}),e.on("error",function(c,f){Jt(f||e.error(),"recorderError",r,i,s,u)}),e.on("startRecord",function(c,f){n(e.uploadProgressLabel,"none"),_t({event:"Video Record Start",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{questionId:_f(e,xf),responseGroupUid:o,surveyId:a}})}),e.on("finishRecord",async function(){n(e.uploadProgressLabel,"start",0);let c=_f(e,xf);if(!a){let m="internal error: missing fields in payload";return t&&t(J.ERROR,{type:J.OTHER}),Jt(new Error(m),"finishRecord",r,i,s,u),null}e.record().stopDevice();let f=e.cameraOff?J.MEDIA_TYPE_AUDIO:J.MEDIA_TYPE_VIDEO,d=At();_t({event:"Video Record Finish",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{mediaRecordingUid:d,questionId:c,responseGroupUid:o,surveyId:a,mediaType:f}});let v={surveyId:a,updatedAt:new Date().toISOString(),mediaType:f,mediaRecordingUid:d};c&&(v.questionId=c),o&&(v.responseGroupUid=o),s&&(v.visitorId=s);let h=await(async()=>{let m=await fetch(`${r}/2/environments/integrations/upload`,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)});if(m.ok){let E=await m.json();return t&&t(J.UPLOAD_STARTED,{[J.UPLOAD_ID]:E.upload.id,[J.MEDIA_TYPE]:f,[J.MEDIA_RECORDING_UID]:d}),E.upload.url}else return t&&t(J.ERROR,{type:J.OTHER,response:m}),Jt(new Error("failed to get upload response with url"),"finishRecord",r,i,s,u),null})();!h||(Fr=D.document.defaultView.UpChunk.createUpload({endpoint:h,file:new D.document.defaultView.File([e.recordedData],`recording ${f} ${Date.now()}`),chunkSize:5120}),Fr.startTime=Date.now(),_t({event:"Video Upload Start",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{mediaRecordingUid:d,questionId:c,responseGroupUid:o,surveyId:a,mediaType:f,url:h}}),Fr.on("error",m=>{n(e.uploadProgressLabel,"none"),t&&t(J.UPLOAD_FINISHED,{[J.MEDIA_RECORDING_UID]:d}),Jt(m,"finishRecord",r,i,s,u)}),Fr.on("progress",m=>{t&&t(J.UPLOAD_PROGRESS,{[J.MEDIA_RECORDING_UID]:d,[J.UPLOAD_PROGRESS_PCT]:m.detail}),n(e.uploadProgressLabel,"progress",m.detail)}),Fr.on("success",()=>{n(e.uploadProgressLabel,"success"),t&&t(J.UPLOAD_FINISHED,{[J.MEDIA_RECORDING_UID]:d}),_t({event:"Video Upload Success",apiBase:r,headers:i,visitorId:s,envId:u,metadata:{mediaRecordingUid:d,questionId:c,responseGroupUid:o,surveyId:a,mediaType:f,url:h,elapsedMs:Fr.startTime&&Date.now()-Fr.startTime}})}))})},nR=(e,r)=>{let t=new(D.videojs.getComponent("Component"))(e);return t.addClass("ul-buttons-panel"),r.map(n=>{t.addChild(n)}),Rne(t),t},Rne=e=>{e.children().forEach(r=>{if(Sr[r.name_]){let t=Os(Sr[r.name_],`ul-${Sr[r.name_]}`);r.el_.appendChild(t)}})},Os=(e,r="")=>{let t=D.document.createElement("span");return t.className="ul-button-text",t.innerHTML=e,t.id=r,t},iR=(e,r,t,n,i=!1,a)=>{e.addClass("ul-video-player");let o=new(D.videojs.getComponent("Component"))(e);o.addClass("ul-control-panel"),e.progressBar=o.addChild("ProgressControl"),t&&e.src(t),e.audioPlayerPlaceholder=new(D.videojs.getComponent("Component"))(e),e.audioPlayerPlaceholder.addClass("ul-audio-recorder-placeholder");let s=t&&t.src?fR(t.src):null;t&&(i||!s)?(e.children()[0].classList.add("vjs-hidden"),D.document.getElementById(`${e.id()}_html5_api`).style.height="0px"):(e.audioPlayerPlaceholder.hide(),D.document.getElementById(`${e.id()}_html5_api`).style.height="100%",s&&e.poster(s)),e.on("play",()=>{!i&&t&&!s&&Ls(e,!1),a==null||a.play()}),e.on("pause",()=>{a==null||a.pause()}),e.on("seeked",()=>{a==null||a.currentTime(e.currentTime())}),e.on("ratechange",()=>{a==null||a.playbackRate(e.playbackRate())}),e.addChild(e.audioPlayerPlaceholder,{},1),o.addChild(r),e.addChild(o),n&&n(e)},One=(e,r,t)=>{e.addClass(`ul${Lf}`);let n=new(D.videojs.getComponent("Component"))(e);r&&e.src(r),e.addChild(n),t&&t(e)},Lne=(e,r,t,n,i,a,o,s=!1)=>{Cf=Date.now();let u={controls:!1,bigPlayButton:!1,fluid:!1,width:1280,height:720,playsinline:!0,plugins:{record:{audio:!0,video:{mandatory:{minWidth:1280,minHeight:720}},frameWidth:1280,frameHeight:720,maxLength:600,autoMuteDevice:!0}}},c=D.videojs(r,u);c.payload=t;let{surveyId:f,questionId:d,responseGroupUid:v,visitorId:g,envId:h}=t,m=H=>{let R=Af,I=Af+"-audio-only";Tf(c.uploadProgressLabel,"none"),Fr&&Fr.startTime>=Cf&&Fr.abort();let b=D.document.getElementById("ul-camera-button");H?(c.children()[0].classList.add("vjs-hidden"),A.removeClass(R),A.addClass(I),b.innerHTML=Sr.TurnOnCamera,c.audioPlayerPlaceholder.removeClass("vjs-hidden"),window.navigator.mediaDevices.getUserMedia({video:!0,audio:!0}).then(T=>{c.record().onDeviceReady(T),T.getVideoTracks().forEach(O=>{O.stop()})}).catch(c.record().onDeviceError.bind(c.record()))):(c.children()[0].classList.remove("vjs-hidden"),c.record().getDevice(),A.removeClass(I),A.addClass(R),b.innerHTML=Sr.TurnOffCamera,c.audioPlayerPlaceholder.addClass("vjs-hidden"))},E=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{E.hasClass(oe)||(_t({event:"Video Delete Button Clicked",apiBase:n,headers:o,visitorId:g,envId:h,metadata:{questionId:d,responseGroupUid:v,surveyId:f}}),m(c.cameraOff),i(J.DELETE,{}),A.removeClass(oe),E.addClass(oe))}});E.addClass("ul-video-recorder-delete-button"),E.el_.appendChild(Os(Sr.DeleteButton,"ul-delete-button"));let S=D.document.getElementById(r),x=()=>{S.classList.contains("vjs-fullscreen")&&c.cameraOff?S.style.display="table":S.style.display="flex"};x();let A=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{c.record().isRecording()||(c.cameraOff=!c.cameraOff,_t({event:"Video Camera Button Clicked",apiBase:n,headers:o,visitorId:t.visitorId,envId:t.envId,metadata:{questionId:d,responseGroupUid:v,surveyId:f,cameraOff:c.cameraOff}}),m(c.cameraOff),!E.hasClass(oe)&&E.addClass(oe),i(J.DELETE,{}),x())}});A.addClass(Af),A.el_.appendChild(Os(Sr.TurnOffCamera,"ul-camera-button"));let _=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{let H=D.document.getElementById("ul-recorder-toggle");if(c.record().isRecording())c.record().stop(),H&&(H.innerHTML=Sr.RecordButton),_.removeClass(wf),E.removeClass(oe);else{let R=D.document.getElementById("ul-recording-countdown-screen");if(R)R.remove(),H&&(H.innerHTML=Sr.RecordButton),m(c.cameraOff),i(J.DELETE,{}),A.removeClass(oe),E.addClass(oe),_.removeClass(wf),M.show();else{_.addClass(wf),M.hide(),A.addClass(oe),E.addClass(oe),H&&(H.innerHTML=Sr.StopButton);let I=D.document.createElement("div");I.id="ul-recording-countdown-screen",S.insertBefore(I,S.children[1]),I.style.height=`${S.offsetHeight}px`,aR(c,3)}}}});_.addClass("ul-video-recorder-toggle-button"),_.el_.appendChild(Os(Sr.RecordButton,"ul-recorder-toggle"));let C=D.document.createElement("p");C.style.visibility="hidden",C.className="ul-upload-progress-label",e.appendChild(C),c.uploadProgressLabel=C;let L=nR(c,[E,A,"PlayToggle",_,"FullscreenToggle"]),M=L.children().find(H=>H.name_==="FullscreenToggle");M.hasClass("vjs-disabled")&&M.hide();let V=L.children().find(H=>H.name_==="PlayToggle");V.hide(),a&&A.addClass(oe),!a&&E.addClass(oe),iR(c,L,a,!1,s),c.on("stopRecord",()=>{_.hide(),V.show(),M.show(),E.removeClass(oe)}),c.on("deviceReady",()=>{_.show(),V.hide(),E.addClass(oe)}),Tne(c,n,i,Tf,o),a&&(c.deviceButton&&c.deviceButton.hide(),c.src(a),V.show(),_.hide(),E.removeClass(oe));let F=[{name:"microphone"}];!c.cameraOff&&F.push({name:"camera"}),Promise.all(F.map(H=>navigator.permissions.query(H))).then(H=>{H.reduce((I,b)=>I&b.state==="granted",!0)&&c&&(c.deviceButton&&c.deviceButton.hide(),!a&&c.record().getDevice())}).catch(H=>{})},aR=(e,r=3)=>{let t=D.document.getElementById("ul-recording-countdown-screen");t&&r===0?(t.remove(),e.record().start()):t&&(t.innerHTML=`<span class='ul-countdown-text'>Recording in... ${r}</span>`,setTimeout(()=>{aR(e,r-1)},1e3))},oR=e=>{let r=D.document.createElement("div");return r.className="ul-video-container",r.appendChild(wne(e)),r},Rf=(e,r)=>{let t=D.document.createElement("video");t.id=e,t.className="video-js vjs-default-skin ul-video-player-video";let n=D.document.createElement("p");n.className="vjs-no-js",n.innerHTML="To view this video please enable JavaScript, and consider upgrading to a web browser that";let i=D.document.createElement("a");return i.href="https://videojs.com/html5-video-support/",i.target="_blank",i.innerHTML="supports HTML5 video",n.appendChild(i),t.appendChild(n),r.appendChild(t),r},Ls=(e,r)=>{r?(e.children()[0].classList.add("vjs-hidden"),e.audioPlayerPlaceholder.show(),D.document.getElementById(`${e.id()}_html5_api`).style.height="0px"):(e.children()[0].classList.remove("vjs-hidden"),e.audioPlayerPlaceholder.hide(),D.document.getElementById(`${e.id()}_html5_api`).style.height="100%")},sR=(e,r,t,n=!1,i="https://api.sprig.com",a=document,o=null,s=null)=>{D.document=a;let u=e+Ps,c=oR(u);return D.document.addEventListener("securitypolicyviolation",f=>{Jt(new Error(`Voice & Video feature violates ${f.violatedDirective} web page CSP policies for the question player.`),"playerDeviceError",i,{})}),tR(rR,()=>{D.document.getElementById(Of(u)).remove(),Rf(u,c);let f={playsinline:!0,playbackRates:[.5,1,1.5,2],fill:!0},d=e+Lf;Rf(d,c);let v=D.videojs(d,f);One(v,o,s),o||v.addClass(oe);let g=D.videojs(u,f),h=nR(g,["PlaybackRateMenuButton","PlayToggle","FullscreenToggle"]),m=h.children().find(E=>E.name_==="FullscreenToggle");m.hasClass("vjs-disabled")&&m.hide(),iR(g,h,r,t,n,v)}),c},uR=(e,r={},t="https://api.userleap.com",n,i,a,o=!1,s=document)=>{D.document=s;let u=e+Pf,c=oR(u);return D.document.addEventListener("securitypolicyviolation",f=>{let d=D.videojs(u);Jt(new Error(`Voice & Video feature violates ${f.violatedDirective} web page CSP policies for the recorder player.`),"recorderDeviceError",t,a,d.payload.visitorId,d.payload.envId)}),tR(rR.concat(_ne),()=>{Rf(u,c),D.document.getElementById(Of(u)).remove(),Lne(c,u,r,t,n,i,a,o)}),c};var lR=e=>{let r=e+Pf;if(!!D.videojs){try{if(!D.videojs(r).record().stream)return}catch(t){return}D.document.getElementById(r)&&D.videojs(r).record().stop(),D.videojs(r).record().stopDevice()}},Pne=(e,r,t,n=null)=>{let i=`${e}${n?Lf:Ps}`,a=D.videojs(i);!a.paused()&&a.pause(),a.src({src:r,type:"application/x-mpegURL"}),a.currentTime(0),!n&&Ls(a,t);let o=fR(r);!t&&r&&(o?a.poster(o):Ls(a,!0)),a.on("play",()=>{!t&&r&&!o&&Ls(a,!1)}),n&&r?a.removeClass(oe):n&&!r&&a.addClass(oe)},cR=e=>{D.videojs(e+Ps).pause()},dR=(e,r,t,n)=>{let i=D.videojs(e+Ps),a=D.videojs(e+Pf);Pne(e,r,n),a.record().resetState(),a.record().getDevice(),D.document.getElementsByClassName("ul-video-recorder-delete-button")[0].classList.add(oe),a.cameraOff?(D.document.getElementsByClassName("ul-video-recorder-camera-off-button-audio-only")[0].classList.remove(oe),window.navigator.mediaDevices.getUserMedia({video:!0,audio:!0}).then(u=>{a.record().onDeviceReady(u),u.getVideoTracks().forEach(c=>{c.stop()})}).catch(a.record().onDeviceError.bind(a.record()))):D.document.getElementsByClassName("ul-video-recorder-camera-off-button")[0].classList.remove(oe),a.payload=t,Tf(a.uploadProgressLabel,"none"),Cf=Date.now()},fR=e=>{if(!e)return null;let r=e.match(/https:\/\/stream.mux.com\/(.*)/),t=r?r[1]:null;return t.includes(eR)&&(t=t.replace(eR,"")),t?`https://image.mux.com/${t}/thumbnail.jpg?time=0`:null},J={UPLOAD_STARTED:"upload.started",UPLOAD_PROGRESS:"upload.progress",UPLOAD_FINISHED:"upload.finished",DELETE:"delete",ERROR:"error",MEDIA_TYPE:"media.type",PERMISSION_DENIED:"permission_denied",OTHER:"other",UPLOAD_ID:"upload.id",UPLOAD_PROGRESS_PCT:"upload.progress.pct",MEDIA_RECORDING_UID:"media.recording.uid",MEDIA_TYPE_VIDEO:"video",MEDIA_TYPE_AUDIO:"audio"},Sr={PlaybackRateMenuButton:"Speed",PlayToggle:"Play",FullscreenToggle:"Expand",TurnOnCamera:"Turn on",TurnOffCamera:"Turn off",DeleteButton:"Delete",RecordButton:"Record",StopButton:"Stop",PauseButton:"Pause"};var{INACTIVE_BUTTON:vR,VIDEO_CARD_CLASS:Nne,FADE_IN_CLASS:Aqe,CARD_MAIN_CONTENT:Dne,SUBMIT_BUTTON_DISABLED:Nf}=q,pR=({className:e,message:r,properties:t,next:n,questionId:i,updateHeight:a,type:o})=>(s,u)=>{let c=P([e,q.VIDEO_CARD_CLASS,q.FADE_IN_CLASS]),f="ul-card-video__player_recorder",d="ul-card-video__submit_button",v="ul-card-video__skip_button",g="ul-video-interview-form",h="ul-question-player-container",m="ul-recorder-player-container",E="ul-video-btn",S=t&&t.videoUrl,{surveyId:x,responseGroupUid:A,apiURL:_,userId:C,border:L,envId:M,headers:V,viewDocument:F,hasViewedEmbed:H,useDesktopPrototype:R}=s.app,{app:I,destroy:b}=u,T=V["userleap-platform"];if(s.cardData||(s.cardData={}),s.cardData.uploadId=void 0,s.cardData.mediaRecordingUid=void 0,s.cardData.buttonText=er(t),s.cardData.skipButtonText=Ef(t),F.getElementById(f)){dR(f,S,{surveyId:x,responseGroupUid:A,questionId:i,visitorId:C},t.mediaType===J.MEDIA_TYPE_AUDIO);let z=F.getElementById(v);z.innerText=s.cardData.skipButtonText,z.classList.add(vR)}let k=(z,se)=>{let re=F.getElementById(d),Ue=F.getElementById(v);z===J.UPLOAD_STARTED?(s.cardData.uploadId=se[J.UPLOAD_ID],s.cardData.mediaRecordingUid=se[J.MEDIA_RECORDING_UID],re.disabled=!1,re.classList.remove(Nf),Object.assign(re.style,{backgroundColor:L,display:"block"}),Object.assign(Ue.style,{display:"none"})):z===J.DELETE?(s.cardData.uploadId=null,s.cardData.mediaRecordingUid=null,t.required?(re.disabled=!0,re.removeAttribute("style"),re.classList.add(Nf)):(Object.assign(Ue.style,{display:"block"}),Object.assign(re.style,{display:"none"}))):z===J.UPLOAD_PROGRESS?isNaN(se[J.UPLOAD_PROGRESS_PCT])?I.handleUploadUpdate({state:s,mediaRecordingUid:se[J.MEDIA_RECORDING_UID],isComplete:!0,destroy:b}):I.handleUploadUpdate({state:s,mediaRecordingUid:se[J.MEDIA_RECORDING_UID],progressPct:se[J.UPLOAD_PROGRESS_PCT],destroy:b}):z===J.UPLOAD_FINISHED&&I.handleUploadUpdate({state:s,mediaRecordingUid:se[J.MEDIA_RECORDING_UID],isComplete:!0,destroy:b})},$=z=>{if(z.preventDefault(),z.stopPropagation(),lR(f),!F.forms[g])return;s.cardData.uploadId?(I.handleUploadUpdate({state:s,mediaRecordingUid:s.cardData.mediaRecordingUid,isSubmitted:!0,destroy:b}),n({value:{mediaRecordingUid:s.cardData.mediaRecordingUid},questionId:i,type:o})):n({value:null,questionId:i,type:o});let re=F.getElementById(h);F.getElementById(m).classList.add(oe),re.classList.remove(oe)},he=(z=!0)=>{let se=F.getElementById(h),re=F.getElementById(m);z?(se.classList.remove(oe),se.classList.add(Zn),re.classList.add(oe),re.classList.remove(Zn)):(cR(f),se.classList.add(oe),se.classList.remove(Zn),re.classList.remove(oe),re.classList.add(Zn))},ye=()=>{let z=new ResizeObserver(re=>a()),se=F.querySelector(`.${Nne}`);z.observe(se)},ge=()=>{let z=F.getElementById(f);return z.appendChild(ue()),z.appendChild(Le()),z},Ie=(z,se)=>{let re=F.createElement("button");return re.className=`${E} ${z}`,re.addEventListener("click",Ue=>{Ue.preventDefault(),Ue.stopPropagation(),he(se)}),re},ue=()=>{let z=F.createElement("div");z.id="ul-question-player-container",z.className=`ul-video-container ${Zn}`,z.appendChild(sR(f,{src:S,type:"application/x-mpegURL"},void 0,t.mediaType===J.MEDIA_TYPE_AUDIO,_,F));let se=Ie("ul-record-response-btn",!1),re=Be({hasViewedEmbed:H,properties:t,app:I,defaultBody:()=>se,platform:T,useDesktopPrototype:R});if(re.key==="prototype-btn"){let Ue=F.createElement(re.nodeName);Ue.className=re.attributes.className,Ue.innerText=Ea,Ue.onclick=re.attributes.onclick,re=Ue}return z.appendChild(re),z},Le=()=>{let z=F.createElement("div");z.id="ul-recorder-player-container",z.className=`ul-video-container ${oe}`;let se=Ie("ul-back-question-btn",!0);return z.appendChild(se),z.appendChild(uR(f,{surveyId:x,responseGroupUid:A,questionId:i,visitorId:C,envId:M},_,k,!1,ne(G({},V),{"x-ul-video-recorder-origin":"sdk"}),t.mediaType===J.MEDIA_TYPE_AUDIO,F)),z},Q=kr(t);return y("div",{className:P(xe(Dne,V["userleap-platform"])),style:{marginTop:"unset"}},y("form",{id:g,className:c,oncreate:ye},jr(Q,r),Q,y("div",{id:"ul-card-voice__video"},y("div",{id:f,oncreate:ge,key:H}),y("button",{id:d,disabled:!0,style:{display:t.required===!0?"block":"none"},className:`ul-card-text__button ${Nf}`,onclick:$,role:"button"},er(t)),y("button",{id:v,style:{display:t.required?"none":"block"},className:`ul-card-text__button ${vR}`,onclick:$,role:"button"},Ef(t)))))};var Qn={consentlegal:x2,likert:O2,multiplechoice:L2,multipleselect:P2,nps:N2,open:U2,recordedtask:W2,texturlprompt:Q2,thanks:Z2,uploading:J2,videovoice:pR};async function Df(e,r,t){let{mode:n,userId:i,envId:a,apiURL:o,headers:s,viewDocument:u}=e,c=u.documentElement,f={mode:n,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:c.clientWidth,clientHeight:c.clientHeight,location:window.location.href,language:window.navigator.language},d={action:r,err:{message:t.message,stack:t.stack},meta:f,vid:i,envId:a};(await ur(`${o}/sdk/1/errors`,{method:"POST",headers:Object.assign({"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},s),body:JSON.stringify(d)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",t)}var pa=e=>e.userId===0||e.meta&&e.meta.mode==="test"||e.isPreview,gR={answers:[],apiURL:"https://api.sprig.com",border:null,cards:Qn,context:{},customMetadata:{},deck:{index:0,cards:[]},envId:null,fontFamily:null,fontFamilyURL:null,frame:null,headers:{},interval:null,isPreview:!1,marketingUrl:"https://sprig.com",meta:{},mode:null,responseGroupUid:null,running:!1,sending:!1,showStripes:!1,showSurveyBrand:!0,slugName:null,surveyId:null,timeout:null,uploadProgress:{},userId:null,viewedCardCount:0,visitorAttributes:{}},hR={init:({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:s,envId:u,eventEmitFn:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:g,headers:h,isPreview:m,marketingUrl:E,meta:S,mode:x,startingQuestionIdx:A=0,recorderEventEmitter:_,responseGroupUid:C,showStripes:L,showSurveyBrand:M,slugName:V,styleNonce:F,surveyId:H,useDesktopPrototype:R,useMobileStyling:I,userId:b,viewDocument:T,tabTitle:O,visitorAttributes:k})=>($,he)=>ne(G({},he.initializeDeck({cards:n,startingQuestionIdx:A})),{answers:e,apiURL:r,border:t,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:s,envId:u,eventEmitFn:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:g,hasViewedEmbed:!1,headers:h,isPreview:m,marketingUrl:E,meta:S,mode:x,recorderEventEmitter:_,responseGroupUid:C,running:!0,showStripes:L,showSurveyBrand:M,slugName:V,styleNonce:F,surveyId:H,timeout:1,uploadProgress:{},useDesktopPrototype:R,useMobileStyling:I,userId:b,viewDocument:T,tabTitle:O,viewedCardCount:A||0,visitorAttributes:k}),initializeDeck:({cards:e,startingQuestionIdx:r})=>()=>({deck:{index:r!=null?r:0,cards:e}}),complete:()=>(e,r)=>({interval:setInterval(r.deduct,1e3)}),seen:()=>(e,r)=>{pa(e)||r.trackHistory({event:"seen",isNew:!0})},close:()=>(e,r)=>{if(!pa(e))return r.trackHistory({event:"closed"})},submit:({response:e,responseGroupUid:r,completedAt:t})=>async n=>{if(!r||pa(n))return;let i={responseGroupUid:r,meta:n.meta,customMetadata:n.customMetadata,responses:[e],completedAt:t},a=await ur(`${n.apiURL}/sdk/1/environments/${n.envId}/visitors/${n.userId}/responses/submit`,{body:JSON.stringify(i),headers:n.headers,method:"POST"});if(!a.ok){a.reportError&&(console.warn("[Sprig] (ERR-427) Failed to submit response",a.error),await Df(n,"submitResponse",a.error));return}},deduct:()=>e=>{let r=e.timeout-1;return r<=0?(clearInterval(e.interval),Nr.enable(),{running:!1,interval:null,timeout:r}):{timeout:r}},handleUploadUpdate:({state:e,mediaRecordingUid:r,isComplete:t,progressPct:n,isSubmitted:i,destroy:a})=>o=>{var v,g,h,m,E,S;let{uploadProgress:s,deck:{cards:u,index:c},eventEmitter:f}=o;if(!r)return;if(u[c].type!==W.UPLOADING){e.app.uploadProgress[r]={progressPct:n||n===0?n:(v=e.app.uploadProgress[r])==null?void 0:v.progressPct,isComplete:t||((g=e.app.uploadProgress[r])==null?void 0:g.isComplete),isSubmitted:i||((h=e.app.uploadProgress[r])==null?void 0:h.isSubmitted)};return}let d=Object.entries(s).every(([x,A])=>!A.isSubmitted||A.isComplete||r==x&&t);if(d&&c>=u.length-1){a(rr);return}return{deck:{cards:u,index:d?c+1:c},uploadingCardViewed:!0,uploadProgress:ne(G({},s),{[r]:{progressPct:n||n===0?n:(m=s[r])==null?void 0:m.progressPct,isComplete:t||((E=s[r])==null?void 0:E.isComplete),isSubmitted:i||((S=s[r])==null?void 0:S.isSubmitted)}})}},next:e=>(r,t)=>{let n=Date.now(),{cards:i,index:a}=r.deck,{responseGroupUid:o,eventEmitFn:s,uploadProgress:u}=r,c=Object.assign({},e.data),f=c.value;i[a].value=f,c.answeredAt=n;let{type:d}=c;delete c.type;let v={response:c,responseGroupUid:o},g=d===W.MULTIPLE_CHOICE?Object.values(f).find(S=>S!==!1):f;d===W.MULTIPLE_SELECT&&(g=i[a].props.options.reduce((S,x)=>(f[x.id]&&S.push(x.value),S),[]));let h=qs(c,d,g),m=Is({cards:i,index:a,selectedValue:g,hasEndCard:!!e.endCard,hasValidAnswer:h,uploadProgress:u});if(m===null){v.completedAt=n,t.submit(v),e.completeSurvey();return}else[r.cards.thanks,r.cards.uploading].includes(i[m].Card)&&(v.completedAt=n);let E=t.submit(v);return[r.cards.thanks,r.cards.uploading].includes(i[m].Card)||E.finally(()=>{t.trackHistory({event:"seen",index:m})}),i[m]&&s&&s(Se.name.CURRENT_QUESTION,{[Se.data.QUESTION_ID]:i[m].name,[Se.data.PROPS]:i[m].props}),{viewedCardCount:r.viewedCardCount+1,deck:{cards:i,index:m},hasViewedEmbed:!1}},trackHistory:({event:e,index:r,isNew:t=!1})=>async n=>{if(pa(n))return;let{cards:i,index:a}=n.deck,o=r!==void 0?i[r]:i[a],s={sid:n.surveyId,qid:o.name,action:e,vid:n.userId,eid:n.envId,isNew:t,responseGroupUid:n.responseGroupUid},u=await ur(`${n.apiURL}/sdk/1/visitors/${n.userId}/surveys/${n.surveyId}/history`,{body:JSON.stringify(s),headers:n.headers,method:"POST"});!u.ok&&u.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey event",u.error),await Df(n,"trackHistory",u.error))},trackAnalytics:({event:e,questionId:r,metadata:t})=>async n=>{if(pa(n))return;let{mode:i,userId:a,envId:o,apiURL:s,headers:u,viewDocument:c,visitorAttributes:f}=n,d=c.documentElement,v=f&&f.externalUserId,g={event:`SDK - ${e}`,visitorId:a,environmentId:o,metadata:ne(G({},t||{}),{mode:i,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:d.clientWidth,clientHeight:d.clientHeight,location:window.location.href,language:window.navigator.language,questionId:r,responseGroupUid:n.responseGroupUid,surveyId:n.surveyId,userId:v})},h=await ur(`${s}/sdk/1/visitors/${a}/analytics`,{body:JSON.stringify(g),headers:u,method:"POST"});!h.ok&&h.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey analytics event",h.error),await Df(n,"trackAnalytics",h.error))},handleClickEmbedButton:e=>r=>{let{eventEmitFn:t}=r,{cards:n,index:i}=r.deck;return t(e,{[Se.data.QUESTION_ID]:n[i].name,[Se.data.PROPS]:n[i].props}),ne(G({},r),{hasViewedEmbed:!0})}};var mR={isConsentSelected:!1,isNamePresent:!1,isSubmitEnabled:!1,hasValidationError:!1,isActive:!1,name:""},yR={reset:()=>e=>ne(G({},e),{isConsentSelected:!1,isNamePresent:!1,isSubmitEnabled:!1,hasValidationError:!1,isActive:!1,name:""}),updateIsConsentSelected:e=>r=>{let t=!r.isConsentSelected,n=t&&(!e||r.isNamePresent);return ne(G({},r),{isConsentSelected:t,isSubmitEnabled:n})},updateIsActive:e=>r=>ne(G({},r),{isActive:e}),onNameTextChange:e=>r=>{let t=!!e.trim(),n=r.isConsentSelected&&t;return ne(G({},r),{name:e,isNamePresent:t,isSubmitEnabled:n})},setValidationError:()=>e=>ne(G({},e),{hasValidationError:!0})};var ER={optionsState:{}},SR={init:e=>r=>ne(G({},r),{optionsState:e}),reset:()=>e=>ne(G({},e),{optionsState:{}}),updateSelected:({id:e,value:r,userText:t,selected:n,isActive:i,isRadio:a})=>o=>{if(e==null)return;let s=Object.assign(o.optionsState);if(a&&n)for(let u of Object.values(s))u.selected=!1;return s[e]={value:r,userText:t,selected:n,isActive:i},ne(G({},o),{optionsState:s})}};var bR={value:""},qR={onTextChange:e=>r=>ne(G({},r),{value:e})};var Mne={init:({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:s,envId:u,eventEmitFn:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:g,headers:h,isPreview:m,marketingUrl:E,meta:S,mobilePlatform:x,startingQuestionIdx:A,styleNonce:_,recorderEventEmitter:C,responseGroupUid:L,showStripes:M,showSurveyBrand:V,slugName:F,surveyId:H,uploadProgress:R,useDesktopPrototype:I,useMobileStyling:b,userId:T,viewDocument:O,tabTitle:k,viewedCardCount:$,visitorAttributes:he})=>(ye,ge)=>{ge.app.init({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:s,envId:u,eventEmitFn:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:g,headers:h,isPreview:m,marketingUrl:E,meta:S,mobilePlatform:x,startingQuestionIdx:A,styleNonce:_,recorderEventEmitter:C,responseGroupUid:L,showStripes:M,showSurveyBrand:V,slugName:F,surveyId:H,uploadProgress:R,useDesktopPrototype:I,useMobileStyling:b,userId:T,tabTitle:k,viewDocument:O,viewedCardCount:$,visitorAttributes:he}),ge.app.seen()},update:e=>({app:r})=>{let{viewDocument:t,eventEmitFn:n}=r,i=t.getElementById(e),{classList:a}=i;r.running&&!a.contains("ul-app--visible")&&(Mr(r.headers)?a.add("ul-app--visible"):(a.add("ul-app--overlay"),setTimeout(()=>{a.add("ul-app--visible")},100)),n&&n(X.SURVEY_APPEARED)),setTimeout(()=>{let o=ms(t);Mr(r.headers)?n(X.SURVEY_HEIGHT,{name:X.SURVEY_HEIGHT,contentFrameHeight:o}):r.frame.setHeight(o)},100)},fadeout:e=>async({app:r})=>{let{eventEmitFn:t}=r;if(!Mr(r.headers))return t(X.SURVEY_FADING_OUT),new Promise(n=>{let i=r.viewDocument.getElementById(e);i.addEventListener("transitionend",({propertyName:a})=>{a==="opacity"&&n()}),i.classList.remove("ul-app--visible")})},remove:({initiator:e})=>({app:r})=>{let{frame:t,eventEmitFn:n}=r;["ios","android"].includes(r.headers["userleap-platform"])&&n(X.SURVEY_WILL_CLOSE,{initiator:e}),!Mr(r.headers)&&(n(X.SURVEY_WILL_CLOSE,{initiator:e}),t.remove())},close:e=>async(r,t)=>{await t.fadeout(e),await t.app.close(),Nr.enable(),t.remove({initiator:Er.CLOSED})},destroy:e=>async({app:r},t)=>{let{eventEmitFn:n}=r;n(Se.name.SURVEY_COMPLETE),await t.fadeout(e),Nr.enable(),t.remove({initiator:Er.COMPLETE})}},IR=G({app:hR,consentLegal:yR,multipleChoice:SR,openText:qR,recordTask:F2},Mne);var xR={app:gR,consentLegal:mR,multipleChoice:ER,openText:bR,recordTask:j2};function Mf({mode:e=null,viewWindow:r,viewDocument:t}){let n=t.documentElement;return{mode:e,sw:r.screen.width,sh:r.screen.height,cw:n.clientWidth,ch:n.clientHeight,p:r.location.href,l:r.navigator.language}}var Une={INACTIVE:"inactive",RECORDING:"recording"},Uf={WEBM:"video/webm",MP4:"video/mp4"};async function kne(e,r){let t=await fetch(r,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok){let n=await t.json();return n&&n.upload&&n.upload.url}else return null}function CR(){return MediaRecorder.isTypeSupported(Uf.WEBM)?Uf.WEBM:Uf.MP4}function AR(e){let r={audioBitsPerSecond:128e3,videoBitsPerSecond:25e5,mimeType:CR()};return new MediaRecorder(e,r)}function wR(e,r,t){t[r]=[],e.ondataavailable=function(n){t[r].push(n.data)},e.currentMediaRecordingUid=r,e.start()}function _R(e,r,t,n,i,a){if(e&&e.state!==Une.INACTIVE){let{[B.BEGIN_UPLOAD]:o}=n,s=e.currentMediaRecordingUid;o&&o(s),e.onstop=()=>jne(r,e,t,n,s,i,a),e.stop()}}async function jne(e,r,t,n,i,a,o){let{[B.UPLOAD_CALLBACK]:s,[B.PROGRESS_CALLBACK]:u}=n,c=G({mediaType:t,updatedAt:new Date().toISOString(),mediaRecordingUid:i},n[B.PASSTHROUGH_DATA]),f=await kne(c,e);if(!f){s&&s(!1,{message:"failed to get upload url"});return}let d=new Blob(o,{type:CR()});if(d.size===0)return;let v=a.createUpload({endpoint:f,file:new File([d],`recording video ${Date.now()}`),chunkSize:5120});v.startTime=Date.now(),v.on("error",g=>{s&&s(!1,g)}),v.on("progress",g=>{u&&u(i,g)}),v.on("success",()=>{s&&s(i,!0)})}var Fne={state:{},stopRecording(e){let{uploadApiEndpoint:r,avRecorder:t,screenRecorder:n,UpChunk:i}=this.state,a=this.state.avStream&&this.state.avStream.getVideoTracks().length>0?Ur.VIDEO:Ur.AUDIO;_R(t,r,a,e,i,this.state.chunks[t==null?void 0:t.currentMediaRecordingUid]),_R(n,r,Ur.SCREEN,e,i,this.state.chunks[n==null?void 0:n.currentMediaRecordingUid])},handleCancelledStream(e,r){let t=e.getVideoTracks(),n=e.getAudioTracks(),i=t.length&&t[0];i=i||n.length&&n[0],i&&i.addEventListener("ended",a=>{let o=!1;[this.state.avRecorder,this.state.screenRecorder].map(s=>{s&&(s.state==="recording"&&s.stop(),s.stream.getTracks().map(u=>{u.readyState==="live"&&u.stop()}),o=!0)}),Object.assign(this.state,{avStream:null,captureStream:null,avRecorder:null,screenRecorder:null}),o&&r&&r()})},taskDurationMillisecond(){return this.state.startTime?new Date().getTime()-this.state.startTime.getTime():0},setUpChunk(e){this.state.UpChunk=e},configure(e,r){Object.assign(this.state,r),this.state.uploadApiEndpoint=`${r.apiURL}/2/environments/integrations/upload`,this.state.chunks={},this.state.eventListeners={[Me.PERMISSION_STATUS]:this.permissionStatusCallback.bind(this),[Me.AV_PERMISSION]:async t=>{this.avPermissionCallback(t)},[Me.BEGIN_RECORDING]:this.beginRecordingCallback.bind(this),[Me.START_TASK]:this.startTaskCallback.bind(this),[Me.SCREEN_PERMISSION]:async t=>{this.screenPermissionCallback(t)},[Me.FINISH_TASK]:async t=>{this.finishTaskCallback(t)}},Object.keys(this.state.eventListeners).map(t=>{e.subscribe(t,this.state.eventListeners[t])})},async avPermissionCallback(e){var i;let{[B.STREAM_READY_CALLBACK]:r,[B.STREAM_CANCELLED_CALLBACK]:t,[B.PERMISSION_DESCRIPTORS]:n}=e;try{(i=this.state.avStream)!=null&&i.active&&this.state.avStream.getTracks().map(a=>a.readyState==="live"&&a.stop()),this.state.avStream=await navigator.mediaDevices.getUserMedia({video:n.includes(Ss.CAMERA),audio:!0}),this.handleCancelledStream(this.state.avStream,t)}catch(a){console.warn("Error: failed to get permissions: "+a),r&&r(!1);return}r&&r(this.state.avStream,this.state.captureStream)},async screenPermissionCallback(e){let{[B.STREAM_READY_CALLBACK]:r,[B.STREAM_CANCELLED_CALLBACK]:t}=e;try{this.state.captureStream=await navigator.mediaDevices.getDisplayMedia({video:!0,cursor:"always",displaySurface:"browser",preferCurrentTab:!0})}catch(n){console.warn("Error: failed to get permissions: "+n),r&&r(!1);return}this.state.avStream&&this.state.avStream.getAudioTracks().length>0&&this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]),this.handleCancelledStream(this.state.captureStream,t),r&&r(this.state.avStream,this.state.captureStream)},beginRecordingCallback(e){let{[B.RECORDING_MEDIA_TYPES]:r,[B.START_RECORDING_CALLBACK]:t}=e;if(!r)return;let n=[];if(r.includes(Ur.VIDEO)){this.state.avRecorder=AR(this.state.avStream);let i=At();wR(this.state.avRecorder,i,this.state.chunks),n.push(i)}if(r.includes(Ur.SCREEN)){this.state.screenRecorder=AR(this.state.captureStream);let i=At();wR(this.state.screenRecorder,i,this.state.chunks),n.push(i)}n&&t&&t(n)},async finishTaskCallback(e){let{[B.CURRENT_INDEX]:r,[B.TASK_RESPONSE]:t,[B.TASK_COMPLETE_CALLBACK]:n}=e;await this.stopRecording(e),n&&n(this.taskDurationMillisecond()),this.lookAheadAndStopStream(r,t)},startTaskCallback(){this.state.startTime=new Date},permissionStatusCallback(e){var n;let{[B.PERMISSION_STATUS_CALLBACK]:r}=e,t=this.state.avStream;r&&r(t,(t==null?void 0:t.getAudioTracks().length)>0,(t==null?void 0:t.getVideoTracks().length)>0,!!((n=this.state.captureStream)!=null&&n.active))},lookAheadAndStopStream(e,r){let{cards:t,hasEndCard:n,avRecorder:i,screenRecorder:a,eventEmitter:o}=this.state,s=Is({cards:t,index:e,selectedValue:r.value,hasEndCard:n,hasValidAnswer:qs(r,r.type,r.value)});s!==null&&t[s].type===W.RECORDED_TASK||[i,a].map(u=>{u&&(u.state==="recording"&&u.stop(),u.stream.getTracks().map(c=>{c.readyState==="live"&&c.stop()}))})}},TR=Object.create(Fne);Object.freeze(TR);var Ns=TR;var RR={configure:e=>{var Gf;let{answers:r,apiURL:t,border:n="#6664f7",cards:i,configureExitOnOverlayClick:a,context:o,customMetadata:s,customStyles:u,endCard:c,envId:f,eventEmitFn:d,experimentFlags:v,fontFamily:g,fontFamilyURL:h,frame:m,headers:E,isDevelopment:S,isPreview:x,marketingUrl:A,mobilePlatform:_,mode:C,startingQuestionIdx:L,responseGroupUid:M,showStripes:V,showSurveyBrand:F,slugName:H,styleNonce:R,surveyId:I,uploadProgress:b,useMobileStyling:T,useDesktopPrototype:O,userId:k,viewDocument:$,viewWindow:he,tabTitle:ye,UpChunk:ge,installationMethod:Ie,visitorAttributes:ue}=e,{head:Le}=$,Q=I2({initialCards:i,hasEndCard:!!c}),z=new nt;if(Ns.configure(z,{cards:Q,hasEndCard:!!c,apiURL:t,UpChunk:ge}),!ge)if(Ie!==br.NPM){let at=$.createElement("script");at.src="https://cdn.sprig.com/userleap-web-upchunk-v2.2.2.js",at.onload=()=>{Ns.setUpChunk(he.UpChunk)},at.onerror=()=>{console.warn("[Sprig] - recording functionality not configured due to UpChunk library load failure")},Le.appendChild(at)}else console.warn("[Sprig] - recording functionality not configured due to missing UpChunk dependency");let se="2.19.7",re=d||((Gf=m.eventEmitter)==null?void 0:Gf.emit);re&&re(Se.name.VERIFY_VIEW_VERSION,{[Se.data.VIEW_VERSION]:se});let Ue=$.createElement("style");if(Ue.type="text/css",R&&(Ue.nonce=R),Ue.appendChild($.createTextNode(g2.styles)),Le.appendChild(Ue),u&&hs($,u,R),g&&h&&parent){let at=$.createElement("link");at.rel="stylesheet",at.href=h,Le.appendChild(at)}let kR=Mr(E)?m:$.body;l2(xR,IR,p2,kR).init({answers:r,apiURL:t,border:n,cards:Q,configureExitOnOverlayClick:a,context:o,customMetadata:s,endCard:c,envId:f,eventEmitFn:d,experimentFlags:v,fontFamily:g,frame:m,headers:E,isDevelopment:S,isPreview:x,marketingUrl:A,meta:Mf({mode:C,viewWindow:he,viewDocument:$}),mobilePlatform:_,mode:C,startingQuestionIdx:L,recorderEventEmitter:z,responseGroupUid:M,showStripes:V,showSurveyBrand:F,slugName:H,styleNonce:R,surveyId:I,uploadProgress:b,useMobileStyling:T,useDesktopPrototype:O,userId:k,viewDocument:$,recorder:Ns,tabTitle:ye,visitorAttributes:ue})}};var OR=RR;var ga="userleap.ids",jf="userleap.pageviews",Bne=["popState","pushState","replaceState"],Tt="environments",en="visitors",LR="ul-view-sdk-script",PR=Object.freeze({contains:(e,r)=>r.includes(e),notContains:(e,r)=>!r.includes(e),exactly:(e,r)=>r===e,notExactly:(e,r)=>r!==e,startsWith:(e,r)=>r.startsWith(e),endsWith:(e,r)=>r.endsWith(e),regex:(e,r)=>new RegExp(e).test(r),legacy:(e,r)=>new RegExp(e,"i").test(r)});function Ff(e,r){let{matchType:t,pattern:n}=e;return(t?PR[t]:PR.legacy)(n,r)}function $ne(e,r){let{pageUrlEvents:t,interactiveEvents:n,dismissOnPageChange:i}=UserLeap._config;if(!i)return!0;let a=[];t&&t.length&&a.push(...t),n&&n.length&&a.push(...n);let o=e&&a.find(s=>s.id===e);return o?Ff(o,window.location.href):r===window.location.href}function ha(e){let{pageUrlEvents:r,interactiveEvents:t,dismissOnPageChange:n,platform:i}=UserLeap._config;i&&i!=="web"||(r&&Yne(window.location.href),t&&(DR(),Vne()),n&&e&&Bne.includes(e.type)&&UserLeap("dismissActiveSurvey",Er.PAGE_CHANGE))}var NR={capture:!0},Vne=()=>{let r=UserLeap._config.interactiveEvents.filter(n=>Ff(n,window.location.href)).map(n=>{let{name:i,properties:a}=n,{selector:o,innerText:s}=a;return o?u=>!!u.target.closest(o)&&UserLeap("track",i):u=>u.target.innerText===s&&UserLeap("track",i)}),t=n=>r.forEach(i=>i(n));UserLeap._config.interactiveEventsHandler=t,window.addEventListener("click",t,NR)},DR=()=>{window.removeEventListener("click",UserLeap._config.interactiveEventsHandler,NR),delete UserLeap._config.interactiveEventsHandler};function Hne(){["hashchange","popstate"].forEach(e=>window.addEventListener(e,ha,!0))}function Gne(){["hashchange","popstate"].forEach(e=>window.removeEventListener(e,ha,!0)),UserLeap._config.interactiveEvents&&DR()}function Br(e,r,t){let n=[UserLeap._API_URL,"sdk",e];return r&&r.forEach(i=>{n.push(i),i===Tt?n.push(UserLeap.envId):i===en&&n.push(Bf())}),t&&n.push(t),n.join("/")}function zne(e,r){let t=Br(1,[Tt],"questions?");return e!=null&&(t+=`&vid=${e}`),r&&(r.surveyId&&(t+=`&surveyid=${r.surveyId}`),r.surveyTemplateId&&(t+=`&surveytemplateid=${r.surveyTemplateId}`)),t}function Kne(){try{if(typeof localStorage<"u"&&(localStorage.setItem("is_available","yes"),localStorage.getItem("is_available")==="yes"))return localStorage.removeItem("is_available"),!0}catch(e){return!1}return!1}function Jn(e){if(!UserLeap.localStorageAvailable)return null;let r=localStorage.getItem(ga);if(r)try{let n=JSON.parse(r)[UserLeap.envId];return n&&n[e]||null}catch(t){t.stack=r,UserLeap.reportError("Failed to parse local storage credentials",t),console.warn("[Sprig] (ERR-427) Failed to lookup saved ids",t)}return null}function $r(e,r){if(!UserLeap.localStorageAvailable)return;let t=localStorage.getItem(ga),n={};if(t)try{n=JSON.parse(t)}catch(a){a.stack=t,UserLeap.reportError("Failed to parse local storage credentials",a),console.warn("[Sprig] (ERR-427) Failed to lookup saved ids",a)}let i=n[UserLeap.envId];i?i[e]=r:i={[e]:r},n[UserLeap.envId]=i;try{localStorage.setItem(ga,JSON.stringify(n))}catch(a){console.warn(`[Sprig] (ERR-426) Unable to write to Local Storage:: ${a.message}`)}}function MR(){window.previewMode||(UserLeap.visitorId=At(),$r("vid",UserLeap.visitorId),fe.emit(X.VISITOR_ID_UPDATED,{visitorId:UserLeap.visitorId}))}function Bf(){return window.previewMode?0:UserLeap.visitorId}function Yne(e){if(!UserLeap.localStorageAvailable||e.endsWith("mock_snippet.html"))return;let r=UserLeap._config.pageUrlEvents;if(r&&r.length){let s=!1;for(let u=0;u<r.length&&(s=Ff(r[u],e),!s);u++);if(!s)return}UserLeap.debugMode&&console.log("[DEBUG] Sprig trackPageView",arguments);let t=10,n=1,i=[],a={viewedAt:Date.now(),location:e},o=localStorage.getItem(jf);try{if(o){if(i=JSON.parse(o),i.length>0){let s=i[i.length-1],u=(Date.now()-s.viewedAt)/1e3;(s.location!=e&&u>n||u>t)&&(UserLeap._queue.push(["track",ma,null,{url:e}]),i.push(a))}}else UserLeap._queue.push(["track",ma,null,{url:e}]),i.push(a);i.length>5&&i.splice(0,i.length-5);try{localStorage.setItem(jf,JSON.stringify(i))}catch(s){console.warn(`[Sprig] Unable to write to Local Storage: ${s.message}`)}}catch(s){s.stack=o,console.warn("[Sprig] (ERR-425) Failed to update page views in local storage"),UserLeap.reportError("trackPageView",s)}}function Wne(){let e="Backbone"in window&&window.Backbone&&Backbone.history?Backbone.history:window.history;e.pushState=(r=>function(){let n=r.apply(this,arguments),i=new Event("pushState");return window.dispatchEvent(i),ha(i),n})(e.pushState),e.replaceState=(r=>function(){let n=r.apply(this,arguments),i=new Event("replaceState");return window.dispatchEvent(i),ha(i),n})(e.replaceState),Hne()}async function kf(e,r){let t=Bf();e&&!r&&(UserLeap._config.mode=Qf.test);let n=await Ct(zne(t,e),{},0,!0);return n.ok?(n.json.delay&&await Wn(n.json.delay),UR(n.json)):(n.reportError&&(console.warn("[Sprig] (ERR-414) Failed to request questions from the server",n.error),UserLeap.reportError("getQuestions",n.error)),{success:!1,surveyState:Dr.NO_SURVEY})}function UR(e){var R,I;let{vid:r,uuid:t,questions:n,surveyId:i,context:a,locale:o,responseGroupUid:s,endCard:u,productConfig:c}=e,f=e.experimentFlags||{},d=Xn(UserLeap),v=$f(d),g=Xne(d);if(r==null||!n||!n.length)return{success:!1,message:"[Sprig] no survey found",surveyState:Dr.NO_SURVEY};if(UserLeap.container){let b="[Sprig] (ERR-409) Found an existing Survey container, aborting rendering of this survey";return console.warn(b),{success:!1,message:b,surveyState:Dr.NO_SURVEY}}if(r!==UserLeap.visitorId&&t!==UserLeap.visitorId&&!window.previewMode){let b="Attempted to display survey to a different visitor";return UserLeap.reportError("DisplaySurvey",new Error(b)),{success:!1,message:b,surveyState:Dr.NO_SURVEY}}Nr.disable(),fe.emit(X.SURVEY_WILL_PRESENT,{name:X.SURVEY_WILL_PRESENT,[X.DATA.SURVEY_ID]:i});let h,m,E,S,x,A=b=>{let{[Se.data.VIEW_VERSION]:T}=b;T!==d["x-ul-sdk-version"]&&pf(),fe.removeListener(Se.name.VERIFY_VIEW_VERSION,A)};fe.subscribe(Se.name.VERIFY_VIEW_VERSION,A),Mr(d)?(h="ul-direct-embeded-frame",E=document.head,S=window,x=!1,v&&(vf(),m=document.createElement("div"),m.id=h,UserLeap.container.appendChild(m),gf(),fe.emit(X.SURVEY_LIFE_CYCLE,{state:"presented"}),fe.emit(X.SURVEY_PRESENTED,{name:X.SURVEY_PRESENTED}))):{frameId:h,contentWinDocHead:E,contentWindow:S,hasOverlay:x,iframe:m}=t2(c,g),UserLeap.frameId=h,UserLeap.useMobileStyling=g;let _=b=>{fe.subscribe(X.CLOSE_SURVEY_ON_OVERLAY_CLICK,b)},C=Object.assign({frame:m,envId:UserLeap.envId,surveyId:i,userId:t,visitorAttributes:{externalUserId:UserLeap.userId,email:UserLeap.email},cards:n,context:a,locale:o,fontFamily:UserLeap.fontFamily,fontFamilyURL:UserLeap.fontFamilyURL,apiURL:UserLeap._API_URL,responseGroupUid:s,headers:d,endCard:u,useMobileStyling:g,mobilePlatform:UserLeap.mobilePlatform,mobileSDKVersion:UserLeap.mobileSDKVersion,experimentFlags:f,configureExitOnOverlayClick:_,eventEmitFn:fe.emit.bind(fe),ulEvents:X,viewDocument:S.document,viewWindow:S,tabTitle:document.title,startingQuestionIdx:(R=UserLeap.config)==null?void 0:R.startingQuestionIdx,styleNonce:UserLeap.styleNonce},UserLeap._config);(I=UserLeap.config)!=null&&I.startingQuestionIdx&&(UserLeap.config=ne(G({},UserLeap.config),{startingQuestionIdx:null})),UserLeap.customStyles&&(C.customStyles=UserLeap.customStyles),S.__cfg=C;function L(){let b=document.createElement("script");return UserLeap.nonce&&b.setAttribute("nonce",UserLeap.nonce),b.id=LR,b}let M=UserLeap.viewSDKURL?UserLeap.viewSDKURL:C.path,V=document.getElementById(LR);V&&V.remove();let F=L(),H=()=>{Object.assign(UserLeap.container.style,{display:"flex"})};return C.installationMethod===br.NPM?(OR.configure(C),x&&UserLeap.container&&H()):(F.src=M,x&&F.addEventListener("load",()=>{UserLeap.container&&H()}),S.addEventListener("error",b=>{b.target.nodeName==="SCRIPT"&&b.target.src===M&&UserLeap.reportError("loadFrameScript",new Error("Frame script failed to load"))},{capture:!0,once:!0})),E.appendChild(F),{success:!0,surveyState:Dr.READY}}function Xne(e){if(UserLeap.useMobileStyling!==void 0)return UserLeap.useMobileStyling;let r=UserLeap.windowDimensions&&UserLeap.windowDimensions.width||document.body.clientWidth;return $f(e)||r>10&&r<Zf}function $f(e){return ev.includes(e["userleap-platform"])}function Qne(e){let r=e.length;for(;r;){let t=Math.floor(Math.random()*r);r-=1;let n=e[r];e[r]=e[t],e[t]=n}}function Zne(e){if(!e)return;UserLeap._config=e,e.mute&&UserLeap._queue.pause();let{interactiveEvents:r,pageUrlEvents:t,dismissOnPageChange:n}=e;r&&Qne(r),(r||t||n)&&(Wne(),ha())}async function Ct(e,r,t=0,n=!1){r.headers=Object.assign(Xn(UserLeap),r.headers);let i=await ur(e,r,t,n);if(i.ok){let a=i.headers.get("Authorization"),o=a?a.split(" "):void 0,s=o&&o.length===2?o[1]:void 0,u=i.headers.get("x-ul-visitor-id");s&&u&&(u!==UserLeap.visitorId||UserLeap.token!==s)&&($r("token",s),$r("vid",u),fe.emit(X.VISITOR_ID_UPDATED,{visitorId:u}),UserLeap.token=s,UserLeap.visitorId=u)}return i.json&&i.json.logMessage&&console.warn(`[Sprig] ${i.json.logMessage}`),i}async function Jne(e){var r;!((r=e==null?void 0:e.json)!=null&&r.delay)||(UserLeap.delayingSurvey=!0,await Wn(e.json.delay),UserLeap.delayingSurvey=!1)}var eie=function(e){if(!window.UserLeap)return;let r=async(n={})=>{var v;let{userId:i,anonymousId:a,metadata:o={},properties:s}=n,{eventName:u}=n;if(UserLeap.debugMode&&u!==ma&&console.log("[DEBUG] Sprig track",arguments),e.mode==="test")return;if(e.requireUserIdForTracking&&!UserLeap.userId&&!i){let g="[Sprig] - Skipping tracking without userId";return console.warn(g),{success:!1,message:g,surveyState:Dr.NO_SURVEY}}if(!u||u.trim().length===0){u=u?String(u):"";let g="[Sprig] - Invalid event name "+u;return console.warn(g),{success:!1,message:g,surveyState:Dr.NO_SURVEY}}let c=window.location.href;if(o.url||(o.url=c),(v=UserLeap==null?void 0:UserLeap._config)!=null&&v.optimizelyEnabled){let g=Xn(UserLeap);$f(g)||gs.getAndSetWebOptimizelyExperiments(),o.optimizelyExperiments=Object.assign({},gs.getAllOptimizelyExperiments())}i&&(UserLeap.userId=i),a&&(UserLeap.partnerAnonymousId=a),s&&(o.eventProperties=s);let f=UserLeap.delayingSurvey?await Ct(Br(1,[en],"events/batch"),{body:JSON.stringify({events:[{event:u,metadata:o}]}),method:"POST"},0,!0):await Ct(Br(1,[en],"events"),{body:JSON.stringify({event:u,metadata:o}),method:"POST"},0,!0);if(!f.ok){let g="[Sprig] (ERR-421) Failed to track event";return f.reportError&&(console.warn(g,f.error),UserLeap.reportError("track",f.error)),{success:!1,message:g,error:f.error,surveyState:Dr.NO_SURVEY}}i&&$r("uid",i),a&&$r("aid",a);let d=f.json;return await Jne(f),$ne(d.eventId,c)?UR(d):{success:!1,message:"Study should not be displayed after page navigation",surveyState:Dr.NO_SURVEY}},t={async displaySurvey(n){return console.warn("[Sprig] displaySurvey should only be used to debug your studies; not intended for production usage."),UserLeap("dismissActiveSurvey",Er.OVERRIDE),kf({surveyId:n},!0)},previewSurvey(n){UserLeap("dismissActiveSurvey",Er.OVERRIDE),kf({surveyTemplateId:n},!1)},reviewSurvey(n){UserLeap("dismissActiveSurvey",Er.OVERRIDE),kf({surveyId:n},!1)},mute(){UserLeap._queue.pause()},unmute(){UserLeap._queue.unpause()},setVisitorToken(){console.warn("[Sprig] setVisitorToken is deprecated.")},dismissActiveSurvey(n=Er.API){fe.emit(X.SURVEY_WILL_CLOSE,{initiator:n})},async setAttribute(n,i){if(!n||!i&&i!==0){let a="[Sprig] - Disregarding empty attribute / value provided";return console.warn(a),{success:!1,message:a}}return this.setAttributes({[n]:i})},async setAttributes(n){if(n==null||Object.keys(n).length===0){let i="[Sprig] - Disregarding empty attributes provided";return console.warn(i),{success:!1,message:i}}return this.identifyAndSetAttributes({attributes:n})},async identifyAndSetAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig identifyAndSetAttributes",arguments),e.mode==="test")return;if(n===null||typeof n!="object"||!(n.userId||n.anonymousId||n.attributes)){let c="[Sprig] - Disregarding empty payload provided";return console.warn(c),{success:!1,message:c}}let{userId:i,anonymousId:a,attributes:o}=n;if(e.requireUserIdForTracking&&!UserLeap.userId&&!i){let c="[Sprig] - Skipping tracking without userId";return console.warn(c),{success:!1,message:c}}if(!o&&(!i||UserLeap.userId===i)&&(!a||UserLeap.partnerAnonymousId===a))return{success:!0};let s={};i&&(s.userId=UserLeap.userId=i),a&&(s.partnerAnonymousId=UserLeap.partnerAnonymousId=a);let u;return o?(o.email&&!Object.prototype.hasOwnProperty.call(o,tn)&&(o[tn]=o.email,delete o.email),u=await Ct(Br(1,[Tt,en],"attributes"),{body:JSON.stringify(o),method:"PUT"}),!u.ok&&u.reportError&&(console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed",u.error),UserLeap.reportError("identifyAndSetAttributes",u.error))):u=await Ct(Br(1,[Tt,en]),{body:JSON.stringify(s),method:"PUT"}),o&&o[tn]&&(UserLeap.email=o[tn]),u.ok&&(i&&$r("uid",i),a&&$r("aid",a)),{success:!!u.ok}},async removeAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig removeAttributes",arguments),e.mode==="test")return;if(n==null||n.length===0){let a="[Sprig] - Disregarding empty attributes provided";return console.warn(a),{success:!1,message:a}}if(e.requireUserIdForTracking&&!UserLeap.userId){let a="[Sprig] - Skipping tracking without userId";return console.warn(a),{success:!1,message:a}}let i=await Ct(Br(1,[Tt,en],"attributes"),{body:JSON.stringify({delete:n}),method:"DELETE"});return!i.ok&&i.reportError&&(console.warn("[Sprig] (ERR-433) Remove attributes failed",i.error),UserLeap.reportError("removeAttributes",i.error)),{success:!!i.ok}},async addSurveyListener(n){fe.subscribe(X.SURVEY_LIFE_CYCLE,n)},async removeSurveyListener(n){fe.removeListener(X.SURVEY_LIFE_CYCLE,n)},async addListener(n,i){fe.subscribe(n,i)},async removeListener(n,i){fe.removeListener(n,i)},async removeAllListeners(){fe.removeAllListeners()},setVisitorAttribute(n,i){return console.warn("[Sprig] setVisitorAttribute is deprecated. Please use setAttribute"),t.setAttribute(n,i)},async setEmail(n){return t.setAttribute(tn,n)},async setVisitorEmail(n){return console.warn("[Sprig] setVisitorEmail is deprecated. Please use setEmail"),t.setEmail(n)},async setUserId(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setUserId",arguments),n==null){let a=`[Sprig] - Invalid userId ${n}`;return console.warn(a),{success:!1,message:a}}if(e.mode==="test"||n===UserLeap.userId)return;UserLeap.userId=n;let i=await Ct(Br(1,[Tt,en]),{body:JSON.stringify({userId:n}),method:"PUT"});if(!i.ok){i.reportError&&(console.warn("[Sprig] (ERR-420) Failed to set user id",i.error),UserLeap.reportError("setUserId",i.error));return}$r("uid",n)},async setPartnerAnonymousId(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setPartnerAnonymousId",arguments),n==null){let i=`[Sprig] - Invalid partnerAnonymousId ${n}`;return console.warn(i),{success:!1,message:i}}return UserLeap.partnerAnonymousId=n,{success:!0}},async track(n,i,a={}){return r({eventName:n,properties:i,metadata:a})},async identifyAndTrack(n){return await r(n)},applyStyles(n){if(UserLeap.customStyles=n,UserLeap.container){let i=UserLeap.container.children[0].contentDocument,a=i.getElementById(q.CUSTOM_STYLE_TAG_ID);a?a.textContent=n:hs(i,n,UserLeap.styleNonce)}},setWindowDimensions(n,i){let a=parseInt(n,10),o=parseInt(i,10);if(UserLeap.windowDimensions={width:!Number.isNaN(a)&&a,height:!Number.isNaN(o)&&o},!UserLeap.frameId)return;let s=document.getElementById(UserLeap.frameId);!s||(UserLeap.useMobileStyling&&(UserLeap.windowDimensions.width&&(s.style.width=`${UserLeap.windowDimensions.width}px`),UserLeap.windowDimensions.height&&(s.style.maxHeight=`${UserLeap.windowDimensions.height-20}px`),s.style.height=ms(s.contentDocument)),fe.emit(X.SURVEY_DIMENSIONS,{name:X.SURVEY_DIMENSIONS,contentFrameWidth:s.clientWidth,contentFrameHeight:s.clientHeight}))},logoutUser(){UserLeap.debugMode&&console.log("[DEBUG] Sprig logout"),UserLeap.visitorId=null,UserLeap.userId=null,UserLeap.partnerAnonymousId=null,UserLeap.token=null,UserLeap.email=null,UserLeap.localStorageAvailable&&(localStorage.removeItem(ga),localStorage.removeItem(jf)),UserLeap._queue.isPaused()&&UserLeap._queue.empty(),MR(),UserLeap._queue.unpause()},teardown(){Gne(),window.UserLeap("dismissActiveSurvey",Er.API),delete window.UserLeap,delete window.Sprig,delete window._Sprig},integrateOptimizely(n){let i=JSON.parse(n);gs.setOptimizelyExperiment(i)}};Object.assign(window.UserLeap,t)};async function rie(e){let r=Xn(UserLeap),t=await ur(Br(1,[Tt],"config"),{headers:r}),n="TypeError";if(UserLeap.error=t.error,!t.ok&&t.error&&t.error.name===n&&(UserLeap._API_URL="https://api.sprig.com",UserLeap.reportError("sprigDomainRequest",t.error),t=await ur(Br(1,[Tt],"config"),{headers:r})),!t.ok)return t.reportError&&(console.warn("[Sprig] (ERR-422) Failed to load configuration",t.error),UserLeap.reportError("applyRemoteConfig",t.error)),ps("Disabled: failed to fetch configuration"),e;let i=t.json;return i!=null&&i.disabled?(ps(`Disabled: ${i.disabled}`),{disabled:i.disabled}):Object.assign({},e,i)}async function tie(e,r){let t=window.__cfg&&window.__cfg.mode,i=Bf(!1),a=UserLeap.envId,o=window.document.documentElement,s={mode:t,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:window.navigator.language},u={action:e,err:{message:r.message,stack:r.stack},meta:s,vid:i,envId:a};(await Ct(Br(1,null,"errors"),{method:"POST",headers:{"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},body:JSON.stringify(u)},0,!0)).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",r)}function Vf(e={}){async function r(){if(UserLeap.loaded)return;if(UserLeap.UPDATES=X,UserLeap.reportError=tie,UserLeap.loaded=!0,UserLeap._config=Object.assign({},e,UserLeap.config),UserLeap.delayingSurvey=!1,UserLeap._config&&typeof UserLeap._config=="object")for(let s in UserLeap._config)UserLeap[s]=UserLeap._config[s];if(!UserLeap.envId)if(UserLeap.appId)UserLeap.envId=UserLeap.appId;else throw new Error("Missing Environment id");UserLeap.debugMode&&console.log("[DEBUG] Sprig debug mode enabled");let t=Kne();UserLeap.localStorageAvailable=t;let n=UserLeap.sampleRate;if(n)if(!t)UserLeap.debugMode&&console.log("[DEBUG] Sprig cannot sample users without localStorage permissions");else{let s=Jn("sampled");if(s===null&&(s=Math.random()<n,$r("sampled",s)),!s)return}else t&&Jn("sampled")!==null&&$r("sampled",null);UserLeap._API_URL||(UserLeap._API_URL="https://api.sprig.com");let i=[...UserLeap._queue];UserLeap._queue=new n2(UserLeap,[]),UserLeap._queue.pause();for(let s=0;s<i.length;s++)UserLeap._queue.push(i[s]);let a=Jn("token");a?(UserLeap.token=a,UserLeap.visitorId=Jn("vid"),UserLeap.userId=Jn("uid"),UserLeap.partnerAnonymousId=Jn("aid")):(UserLeap.localStorageAvailable&&localStorage.removeItem(ga),MR());let o=await rie(e);eie(o),await Zne(o),UserLeap._queue.unpause(),fe.emit(X.SDK_READY),fe.emit(X.VISITOR_ID_UPDATED,{visitorId:UserLeap.visitorId})}document.readyState==="complete"?r():window.attachEvent?window.attachEvent("onload",r):window.addEventListener("load",r,!1)}var ei=class{constructor(){Xf(this,"UPDATES",X)}displaySurvey(r){window.Sprig("displaySurvey",r)}previewSurvey(r){window.Sprig("previewSurvey",r)}reviewSurvey(r){window.Sprig("reviewSurvey",r)}mute(){window.Sprig("mute")}unmute(){window.Sprig("unmute")}dismissActiveSurvey(){window.Sprig("dismissActiveSurvey")}setAttribute(r,t){window.Sprig("setAttribute",r,t)}setAttributes(r){window.Sprig("setAttributes",r)}identifyAndSetAttributes(r){window.Sprig("identifyAndSetAttributes",r)}removeAttributes(r){window.Sprig("removeAttributes",r)}addListener(r,t){window.Sprig("addListener",r,t)}removeListener(r,t){window.Sprig("removeListener",r,t)}removeAllListeners(){window.Sprig("removeAllListeners")}setEmail(r){window.Sprig("setAttribute","!email",r)}setUserId(r){window.Sprig("setUserId",r)}setPartnerAnonymousId(r){window.Sprig("setPartnerAnonymousId",r)}track(r,t={},n={}){window.Sprig("track",r,t,n)}identifyAndTrack(r){window.Sprig("identifyAndTrack",r)}applyStyles(r){window.Sprig("applyStyles",r)}setWindowDimensions(r,t){window.Sprig("setWindowDimensions",r,t)}logoutUser(){window.Sprig("logoutUser")}teardown(){window.Sprig("teardown")}},Hf={configure:e=>{if(!e.envId&&!e.environmentId)throw new Error("Initialization Error: Sprig configure requires an environmentId");if(e.envId||(e.envId=e.environmentId),e.installationMethod=br.NPM,window.Sprig)return window.Sprig;window.Sprig=function(){window.Sprig._queue.push(arguments)},Object.getOwnPropertyNames(ei.prototype).map(t=>{t!=="constructor"&&(window.Sprig[t]=ei.prototype[t])});let r=window.Sprig;return r.appId=e.envId,r._queue=[],window.UserLeap=r,Vf(e),window.Sprig}};module.exports={sprig:Hf,SprigAPI:ei,configure:Hf.configure};
|