@bdelab/roar-sre 1.13.3 → 1.13.4
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
1
|
+
;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1ee5daea-32a3-4688-85df-5c0dd027cc08",e._sentryDebugIdIdentifier="sentry-dbid-1ee5daea-32a3-4688-85df-5c0dd027cc08")}catch(e){}}();import e from"path";import t from"stream";("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"b8f4be4801b018a651fda10e00473b2068578d47"};var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,a={exports:{}};
|
|
2
2
|
/*! store2 - v2.14.2 - 2022-07-18
|
|
3
3
|
* Copyright (c) 2022 Nathan Bubna; Licensed (MIT OR GPL-3.0) */s=a,function(e,t){var n={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var n in e)t.hasOwnProperty(n)||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||n.replace)},parse:function(e,t){try{return JSON.parse(e,t||n.revive)}catch(t){return e}},fn:function(e,t){for(var i in n.storeAPI[e]=t,n.apis)n.apis[i][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,n){e.setItem(t,n)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,i){var s=n.inherit(n.storeAPI,(function(e,t,n){return 0===arguments.length?s.getAll():"function"==typeof t?s.transact(e,t,n):void 0!==t?s.set(e,t,n):"string"==typeof e||"number"==typeof e?s.get(e):"function"==typeof e?s.each(e):e?s.setAll(e,t):s.clear()}));s._id=e;try{var a="__store2_test";t.setItem(a,"ok"),s._area=t,t.removeItem(a)}catch(e){s._area=n.storage("fake")}return s._ns=i||"",n.areas[e]||(n.areas[e]=s._area),n.apis[s._ns+s._id]||(n.apis[s._ns+s._id]=s),s},storeAPI:{area:function(e,t){var i=this[e];return i&&i.area||(i=n.Store(e,t,this._ns),this[e]||(this[e]=i)),i},namespace:function(e,t,i){if(i=i||this._delim||n.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-i.length):"";var s=e,a=this[s];if(!(a&&a.namespace||((a=n.Store(this._id,this._area,this._ns+s+i))._delim=i,this[s]||(this[s]=a),t)))for(var r in n.areas)a.area(r,n.areas[r]);return a},isFake:function(e){return e?(this._real=this._area,this._area=n.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):!!(this._in(e)in this._area)},size:function(){return this.keys().length},each:function(e,t){for(var i=0,s=n.length(this._area);i<s;i++){var a=this._out(n.key(this._area,i));if(void 0!==a&&!1===e.call(this,a,this.get(a),t))break;s>n.length(this._area)&&(s--,i--)}return t||this},keys:function(e){return this.each((function(e,t,n){n.push(e)}),e||[])},get:function(e,t){var i,s=n.get(this._area,this._in(e));return"function"==typeof t&&(i=t,t=null),null!==s?n.parse(s,i):null!=t?t:s},getAll:function(e){return this.each((function(e,t,n){n[e]=t}),e||{})},transact:function(e,t,n){var i=this.get(e,n),s=t(i);return this.set(e,void 0===s?i:s),this},set:function(e,t,i){var s,a=this.get(e);return null!=a&&!1===i?t:("function"==typeof i&&(s=i,i=void 0),n.set(this._area,this._in(e),n.stringify(t,s),i)||a)},setAll:function(e,t){var n,i;for(var s in e)i=e[s],this.set(s,i,t)!==i&&(n=!0);return n},add:function(e,t,i){var s=this.get(e);if(s instanceof Array)t=s.concat(t);else if(null!==s){var a=typeof s;if(a===typeof t&&"object"===a){for(var r in t)s[r]=t[r];t=s}else t=s+t}return n.set(this._area,this._in(e),n.stringify(t,i)),t},remove:function(e,t){var i=this.get(e,t);return n.remove(this._area,this._in(e)),i},clear:function(){return this._ns?this.each((function(e){n.remove(this._area,this._in(e))}),1):n.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in n.areas)n.areas.hasOwnProperty(t)&&(this._area=n.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=n.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return n.inherit(n.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var n in this.items)if(this.has(n)&&e===t++)return n},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},i=n.Store("local",function(){try{return localStorage}catch(e){}}());i.local=i,i._=n,i.area("session",function(){try{return sessionStorage}catch(e){}}()),i.area("page",n.storage("page")),"function"==typeof t&&void 0!==t.amd?t("store2",[],(function(){return i})):s.exports?s.exports=i:(e.store&&(n.conflict=e.store),e.store=i)}(n,n&&n.define);var r=i(a.exports);var o=function(){this.__data__=[],this.size=0};var c=function(e,t){return e===t||e!=e&&t!=t},l=c;var d=function(e,t){for(var n=e.length;n--;)if(l(e[n][0],t))return n;return-1},u=d,p=Array.prototype.splice;var h=d;var f=d;var m=d;var g=o,y=function(e){var t=this.__data__,n=u(t,e);return!(n<0)&&(n==t.length-1?t.pop():p.call(t,n,1),--this.size,!0)},v=function(e){var t=this.__data__,n=h(t,e);return n<0?void 0:t[n][1]},_=function(e){return f(this.__data__,e)>-1},b=function(e,t){var n=this.__data__,i=m(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function w(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}w.prototype.clear=g,w.prototype.delete=y,w.prototype.get=v,w.prototype.has=_,w.prototype.set=b;var I=w,x=I;var E=function(){this.__data__=new x,this.size=0};var S=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var A=function(e){return this.__data__.get(e)};var T=function(e){return this.__data__.has(e)},k="object"==typeof n&&n&&n.Object===Object&&n,R=k,L="object"==typeof self&&self&&self.Object===Object&&self,C=R||L||Function("return this")(),O=C.Symbol,F=O,N=Object.prototype,U=N.hasOwnProperty,j=N.toString,P=F?F.toStringTag:void 0;var M=function(e){var t=U.call(e,P),n=e[P];try{e[P]=void 0;var i=!0}catch(e){}var s=j.call(e);return i&&(t?e[P]=n:delete e[P]),s},D=Object.prototype.toString;var $=M,z=function(e){return D.call(e)},B=O?O.toStringTag:void 0;var q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?$(e):z(e)};var V=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},H=q,W=V;var Y,K=function(e){if(!W(e))return!1;var t=H(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},G=C["__core-js_shared__"],J=(Y=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"";var X=function(e){return!!J&&J in e},Q=Function.prototype.toString;var Z=function(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ee=K,te=X,ne=V,ie=Z,se=/^\[object .+?Constructor\]$/,ae=Function.prototype,re=Object.prototype,oe=ae.toString,ce=re.hasOwnProperty,le=RegExp("^"+oe.call(ce).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var de=function(e){return!(!ne(e)||te(e))&&(ee(e)?le:se).test(ie(e))},ue=function(e,t){return null==e?void 0:e[t]};var pe=function(e,t){var n=ue(e,t);return de(n)?n:void 0},he=pe(C,"Map"),fe=pe(Object,"create"),me=fe;var ge=function(){this.__data__=me?me(null):{},this.size=0};var ye=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve=fe,_e=Object.prototype.hasOwnProperty;var be=function(e){var t=this.__data__;if(ve){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _e.call(t,e)?t[e]:void 0},we=fe,Ie=Object.prototype.hasOwnProperty;var xe=fe;var Ee=ge,Se=ye,Ae=be,Te=function(e){var t=this.__data__;return we?void 0!==t[e]:Ie.call(t,e)},ke=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xe&&void 0===t?"__lodash_hash_undefined__":t,this};function Re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Re.prototype.clear=Ee,Re.prototype.delete=Se,Re.prototype.get=Ae,Re.prototype.has=Te,Re.prototype.set=ke;var Le=Re,Ce=I,Oe=he;var Fe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ne=function(e,t){var n=e.__data__;return Fe(t)?n["string"==typeof t?"string":"hash"]:n.map},Ue=Ne;var je=Ne;var Pe=Ne;var Me=Ne;var De=function(){this.size=0,this.__data__={hash:new Le,map:new(Oe||Ce),string:new Le}},$e=function(e){var t=Ue(this,e).delete(e);return this.size-=t?1:0,t},ze=function(e){return je(this,e).get(e)},Be=function(e){return Pe(this,e).has(e)},qe=function(e,t){var n=Me(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ve.prototype.clear=De,Ve.prototype.delete=$e,Ve.prototype.get=ze,Ve.prototype.has=Be,Ve.prototype.set=qe;var He=Ve,We=I,Ye=he,Ke=He;var Ge=I,Je=E,Xe=S,Qe=A,Ze=T,et=function(e,t){var n=this.__data__;if(n instanceof We){var i=n.__data__;if(!Ye||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ke(i)}return n.set(e,t),this.size=n.size,this};function tt(e){var t=this.__data__=new Ge(e);this.size=t.size}tt.prototype.clear=Je,tt.prototype.delete=Xe,tt.prototype.get=Qe,tt.prototype.has=Ze,tt.prototype.set=et;var nt=tt;var it=He,st=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},at=function(e){return this.__data__.has(e)};function rt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new it;++t<n;)this.add(e[t])}rt.prototype.add=rt.prototype.push=st,rt.prototype.has=at;var ot=rt,ct=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},lt=function(e,t){return e.has(t)};var dt=function(e,t,n,i,s,a){var r=1&n,o=e.length,c=t.length;if(o!=c&&!(r&&c>o))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var u=-1,p=!0,h=2&n?new ot:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var f=e[u],m=t[u];if(i)var g=r?i(m,f,u,t,e,a):i(f,m,u,e,t,a);if(void 0!==g){if(g)continue;p=!1;break}if(h){if(!ct(t,(function(e,t){if(!lt(h,t)&&(f===e||s(f,e,n,i,a)))return h.push(t)}))){p=!1;break}}else if(f!==m&&!s(f,m,n,i,a)){p=!1;break}}return a.delete(e),a.delete(t),p},ut=C.Uint8Array;var pt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n};var ht=ut,ft=c,mt=dt,gt=pt,yt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},vt=O?O.prototype:void 0,_t=vt?vt.valueOf:void 0;var bt=function(e,t,n,i,s,a,r){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new ht(e),new ht(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ft(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=gt;case"[object Set]":var c=1&i;if(o||(o=yt),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var d=mt(o(e),o(t),i,s,a,r);return r.delete(e),d;case"[object Symbol]":if(_t)return _t.call(e)==_t.call(t)}return!1};var wt=function(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e},It=Array.isArray,xt=wt,Et=It;var St=function(e,t,n){var i=t(e);return Et(e)?i:xt(i,n(e))};var At=function(){return[]},Tt=function(e,t){for(var n=-1,i=null==e?0:e.length,s=0,a=[];++n<i;){var r=e[n];t(r,n,e)&&(a[s++]=r)}return a},kt=At,Rt=Object.prototype.propertyIsEnumerable,Lt=Object.getOwnPropertySymbols,Ct=Lt?function(e){return null==e?[]:(e=Object(e),Tt(Lt(e),(function(t){return Rt.call(e,t)})))}:kt;var Ot=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i};var Ft=function(e){return null!=e&&"object"==typeof e},Nt=q,Ut=Ft;var jt=function(e){return Ut(e)&&"[object Arguments]"==Nt(e)},Pt=Ft,Mt=Object.prototype,Dt=Mt.hasOwnProperty,$t=Mt.propertyIsEnumerable,zt=jt(function(){return arguments}())?jt:function(e){return Pt(e)&&Dt.call(e,"callee")&&!$t.call(e,"callee")},Bt={exports:{}};var qt=function(){return!1};!function(e,t){var n=C,i=qt,s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,r=a&&a.exports===s?n.Buffer:void 0,o=(r?r.isBuffer:void 0)||i;e.exports=o}(Bt,Bt.exports);var Vt=Bt.exports,Ht=/^(?:0|[1-9]\d*)$/;var Wt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ht.test(e))&&e>-1&&e%1==0&&e<t};var Yt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Kt=q,Gt=Yt,Jt=Ft,Xt={};Xt["[object Float32Array]"]=Xt["[object Float64Array]"]=Xt["[object Int8Array]"]=Xt["[object Int16Array]"]=Xt["[object Int32Array]"]=Xt["[object Uint8Array]"]=Xt["[object Uint8ClampedArray]"]=Xt["[object Uint16Array]"]=Xt["[object Uint32Array]"]=!0,Xt["[object Arguments]"]=Xt["[object Array]"]=Xt["[object ArrayBuffer]"]=Xt["[object Boolean]"]=Xt["[object DataView]"]=Xt["[object Date]"]=Xt["[object Error]"]=Xt["[object Function]"]=Xt["[object Map]"]=Xt["[object Number]"]=Xt["[object Object]"]=Xt["[object RegExp]"]=Xt["[object Set]"]=Xt["[object String]"]=Xt["[object WeakMap]"]=!1;var Qt=function(e){return Jt(e)&&Gt(e.length)&&!!Xt[Kt(e)]};var Zt=function(e){return function(t){return e(t)}},en={exports:{}};!function(e,t){var n=k,i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i&&n.process,r=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=r}(en,en.exports);var tn=en.exports,nn=Qt,sn=Zt,an=tn&&tn.isTypedArray,rn=an?sn(an):nn,on=Ot,cn=zt,ln=It,dn=Vt,un=Wt,pn=rn,hn=Object.prototype.hasOwnProperty;var fn=function(e,t){var n=ln(e),i=!n&&cn(e),s=!n&&!i&&dn(e),a=!n&&!i&&!s&&pn(e),r=n||i||s||a,o=r?on(e.length,String):[],c=o.length;for(var l in e)!t&&!hn.call(e,l)||r&&("length"==l||s&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||un(l,c))||o.push(l);return o},mn=Object.prototype;var gn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||mn)};var yn=function(e,t){return function(n){return e(t(n))}},vn=yn(Object.keys,Object),_n=gn,bn=vn,wn=Object.prototype.hasOwnProperty;var In=K,xn=Yt;var En=function(e){return null!=e&&xn(e.length)&&!In(e)},Sn=fn,An=function(e){if(!_n(e))return bn(e);var t=[];for(var n in Object(e))wn.call(e,n)&&"constructor"!=n&&t.push(n);return t},Tn=En;var kn=function(e){return Tn(e)?Sn(e):An(e)},Rn=St,Ln=Ct,Cn=kn;var On=function(e){return Rn(e,Cn,Ln)},Fn=On,Nn=Object.prototype.hasOwnProperty;var Un=function(e,t,n,i,s,a){var r=1&n,o=Fn(e),c=o.length;if(c!=Fn(t).length&&!r)return!1;for(var l=c;l--;){var d=o[l];if(!(r?d in t:Nn.call(t,d)))return!1}var u=a.get(e),p=a.get(t);if(u&&p)return u==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var f=r;++l<c;){var m=e[d=o[l]],g=t[d];if(i)var y=r?i(g,m,d,t,e,a):i(m,g,d,e,t,a);if(!(void 0===y?m===g||s(m,g,n,i,a):y)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var v=e.constructor,_=t.constructor;v==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h},jn=pe(C,"DataView"),Pn=he,Mn=pe(C,"Promise"),Dn=pe(C,"Set"),$n=pe(C,"WeakMap"),zn=q,Bn=Z,qn="[object Map]",Vn="[object Promise]",Hn="[object Set]",Wn="[object WeakMap]",Yn="[object DataView]",Kn=Bn(jn),Gn=Bn(Pn),Jn=Bn(Mn),Xn=Bn(Dn),Qn=Bn($n),Zn=zn;(jn&&Zn(new jn(new ArrayBuffer(1)))!=Yn||Pn&&Zn(new Pn)!=qn||Mn&&Zn(Mn.resolve())!=Vn||Dn&&Zn(new Dn)!=Hn||$n&&Zn(new $n)!=Wn)&&(Zn=function(e){var t=zn(e),n="[object Object]"==t?e.constructor:void 0,i=n?Bn(n):"";if(i)switch(i){case Kn:return Yn;case Gn:return qn;case Jn:return Vn;case Xn:return Hn;case Qn:return Wn}return t});var ei=Zn,ti=nt,ni=dt,ii=bt,si=Un,ai=ei,ri=It,oi=Vt,ci=rn,li="[object Arguments]",di="[object Array]",ui="[object Object]",pi=Object.prototype.hasOwnProperty;var hi=function(e,t,n,i,s,a){var r=ri(e),o=ri(t),c=r?di:ai(e),l=o?di:ai(t),d=(c=c==li?ui:c)==ui,u=(l=l==li?ui:l)==ui,p=c==l;if(p&&oi(e)){if(!oi(t))return!1;r=!0,d=!1}if(p&&!d)return a||(a=new ti),r||ci(e)?ni(e,t,n,i,s,a):ii(e,t,c,n,i,s,a);if(!(1&n)){var h=d&&pi.call(e,"__wrapped__"),f=u&&pi.call(t,"__wrapped__");if(h||f){var m=h?e.value():e,g=f?t.value():t;return a||(a=new ti),s(m,g,n,i,a)}}return!!p&&(a||(a=new ti),si(e,t,n,i,s,a))},fi=Ft;var mi=function e(t,n,i,s,a){return t===n||(null==t||null==n||!fi(t)&&!fi(n)?t!=t&&n!=n:hi(t,n,i,s,e,a))},gi=nt,yi=mi;var vi=V;var _i=function(e){return e==e&&!vi(e)},bi=_i,wi=kn;var Ii=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},xi=function(e,t,n,i){var s=n.length,a=s,r=!i;if(null==e)return!a;for(e=Object(e);s--;){var o=n[s];if(r&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++s<a;){var c=(o=n[s])[0],l=e[c],d=o[1];if(r&&o[2]){if(void 0===l&&!(c in e))return!1}else{var u=new gi;if(i)var p=i(l,d,c,e,t,u);if(!(void 0===p?yi(d,l,3,i,u):p))return!1}}return!0},Ei=function(e){for(var t=wi(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,bi(s)]}return t},Si=Ii;var Ai=function(e){var t=Ei(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||xi(n,e,t)}},Ti=q,ki=Ft;var Ri=function(e){return"symbol"==typeof e||ki(e)&&"[object Symbol]"==Ti(e)},Li=It,Ci=Ri,Oi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fi=/^\w*$/;var Ni=function(e,t){if(Li(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ci(e))||(Fi.test(e)||!Oi.test(e)||null!=t&&e in Object(t))},Ui=He;function ji(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var r=e.apply(this,i);return n.cache=a.set(s,r)||a,r};return n.cache=new(ji.Cache||Ui),n}ji.Cache=Ui;var Pi=ji;var Mi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Di=/\\(\\)?/g,$i=function(e){var t=Pi(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Mi,(function(e,n,i,s){t.push(i?s.replace(Di,"$1"):n||e)})),t}));var zi=function(e,t){for(var n=-1,i=null==e?0:e.length,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s},Bi=zi,qi=It,Vi=Ri,Hi=O?O.prototype:void 0,Wi=Hi?Hi.toString:void 0;var Yi=function e(t){if("string"==typeof t)return t;if(qi(t))return Bi(t,e)+"";if(Vi(t))return Wi?Wi.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Ki=Yi;var Gi=It,Ji=Ni,Xi=$i,Qi=function(e){return null==e?"":Ki(e)};var Zi=function(e,t){return Gi(e)?e:Ji(e,t)?[e]:Xi(Qi(e))},es=Ri;var ts=function(e){if("string"==typeof e||es(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},ns=Zi,is=ts;var ss=function(e,t){for(var n=0,i=(t=ns(t,e)).length;null!=e&&n<i;)e=e[is(t[n++])];return n&&n==i?e:void 0},as=ss;var rs=function(e,t,n){var i=null==e?void 0:as(e,t);return void 0===i?n:i};var os=Zi,cs=zt,ls=It,ds=Wt,us=Yt,ps=ts;var hs=function(e,t,n){for(var i=-1,s=(t=os(t,e)).length,a=!1;++i<s;){var r=ps(t[i]);if(!(a=null!=e&&n(e,r)))break;e=e[r]}return a||++i!=s?a:!!(s=null==e?0:e.length)&&us(s)&&ds(r,s)&&(ls(e)||cs(e))},fs=function(e,t){return null!=e&&t in Object(e)},ms=hs;var gs=function(e,t){return null!=e&&ms(e,t,fs)},ys=mi,vs=rs,_s=gs,bs=Ni,ws=_i,Is=Ii,xs=ts;var Es=function(e,t){return bs(e)&&ws(t)?Is(xs(e),t):function(n){var i=vs(n,e);return void 0===i&&i===t?_s(n,e):ys(t,i,3)}};var Ss=function(e){return e};var As=ss;var Ts=function(e){return function(t){return As(t,e)}},ks=function(e){return function(t){return null==t?void 0:t[e]}},Rs=Ts,Ls=Ni,Cs=ts;var Os=function(e){return Ls(e)?ks(Cs(e)):Rs(e)},Fs=Ai,Ns=Es,Us=Ss,js=It,Ps=Os;var Ms=function(e){return"function"==typeof e?e:null==e?Us:"object"==typeof e?js(e)?Ns(e[0],e[1]):Fs(e):Ps(e)};var Ds=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},$s=pe,zs=function(){try{var e=$s(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Bs=zs;var qs=function(e,t,n){"__proto__"==t&&Bs?Bs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Vs=qs,Hs=c,Ws=Object.prototype.hasOwnProperty;var Ys=function(e,t,n){var i=e[t];Ws.call(e,t)&&Hs(i,n)&&(void 0!==n||t in e)||Vs(e,t,n)},Ks=Ys,Gs=Zi,Js=Wt,Xs=V,Qs=ts;var Zs=function(e,t,n,i){if(!Xs(e))return e;for(var s=-1,a=(t=Gs(t,e)).length,r=a-1,o=e;null!=o&&++s<a;){var c=Qs(t[s]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(s!=r){var d=o[c];void 0===(l=i?i(d,c,o):void 0)&&(l=Xs(d)?d:Js(t[s+1])?[]:{})}Ks(o,c,l),o=o[c]}return e},ea=ss,ta=Zs,na=Zi;var ia=function(e,t,n){for(var i=-1,s=t.length,a={};++i<s;){var r=t[i],o=ea(e,r);n(o,r)&&ta(a,na(r,e),o)}return a},sa=yn(Object.getPrototypeOf,Object),aa=wt,ra=sa,oa=Ct,ca=At,la=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)aa(t,oa(e)),e=ra(e);return t}:ca;var da=V,ua=gn,pa=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ha=Object.prototype.hasOwnProperty;var fa=fn,ma=function(e){if(!da(e))return pa(e);var t=ua(e),n=[];for(var i in e)("constructor"!=i||!t&&ha.call(e,i))&&n.push(i);return n},ga=En;var ya=function(e){return ga(e)?fa(e,!0):ma(e)},va=St,_a=la,ba=ya;var wa=function(e){return va(e,ba,_a)},Ia=zi,xa=Ms,Ea=ia,Sa=wa;var Aa=function(e,t){if(null==e)return{};var n=Ia(Sa(e),(function(e){return[e]}));return t=xa(t),Ea(e,n,(function(e,n){return t(e,n[0])}))},Ta=Ms,ka=Ds,Ra=Aa;var La=i((function(e,t){return Ra(e,ka(Ta(t)))}));var Ca=i((function(e){return null===e}));var Oa=i((function(e){return void 0===e}));function Fa(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Na(e,t){for(var n,i="",s=0,a=-1,r=0,o=0;o<=e.length;++o){if(o<e.length)n=e.charCodeAt(o);else{if(47===n)break;n=47}if(47===n){if(a===o-1||1===r);else if(a!==o-1&&2===r){if(i.length<2||2!==s||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",s=0):s=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),a=o,r=0;continue}}else if(2===i.length||1===i.length){i="",s=0,a=o,r=0;continue}t&&(i.length>0?i+="/..":i="..",s=2)}else i.length>0?i+="/"+e.slice(a+1,o):i=e.slice(a+1,o),s=o-a-1;a=o,r=0}else 46===n&&-1!==r?++r:r=-1}return i}var Ua={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),Fa(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=Na(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Fa(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=Na(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Fa(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];Fa(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":Ua.normalize(e)},relative:function(e,t){if(Fa(e),Fa(t),e===t)return"";if((e=Ua.resolve(e))===(t=Ua.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var i=e.length,s=i-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var r=t.length-a,o=s<r?s:r,c=-1,l=0;l<=o;++l){if(l===o){if(r>o){if(47===t.charCodeAt(a+l))return t.slice(a+l+1);if(0===l)return t.slice(a+l)}else s>o&&(47===e.charCodeAt(n+l)?c=l:0===l&&(c=0));break}var d=e.charCodeAt(n+l);if(d!==t.charCodeAt(a+l))break;47===d&&(c=l)}var u="";for(l=n+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===u.length?u+="..":u+="/..");return u.length>0?u+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(Fa(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){i=a;break}}else s=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Fa(e);var n,i=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,o=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1),r>=0&&(c===t.charCodeAt(r)?-1==--r&&(s=n):(r=-1,s=o))}return i===s?s=o:-1===s&&(s=e.length),e.slice(i,s)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else-1===s&&(a=!1,s=n+1);return-1===s?"":e.slice(i,s)},extname:function(e){Fa(e);for(var t=-1,n=0,i=-1,s=!0,a=0,r=e.length-1;r>=0;--r){var o=e.charCodeAt(r);if(47!==o)-1===i&&(s=!1,i=r+1),46===o?-1===t?t=r:1!==a&&(a=1):-1!==t&&(a=-1);else if(!s){n=r+1;break}}return-1===t||-1===i||0===a||1===a&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){Fa(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),s=47===i;s?(t.root="/",n=1):n=0;for(var a=-1,r=0,o=-1,c=!0,l=e.length-1,d=0;l>=n;--l)if(47!==(i=e.charCodeAt(l)))-1===o&&(c=!1,o=l+1),46===i?-1===a?a=l:1!==d&&(d=1):-1!==a&&(d=-1);else if(!c){r=l+1;break}return-1===a||-1===o||0===d||1===d&&a===o-1&&a===r+1?-1!==o&&(t.base=t.name=0===r&&s?e.slice(1,o):e.slice(r,o)):(0===r&&s?(t.name=e.slice(1,a),t.base=e.slice(1,o)):(t.name=e.slice(r,a),t.base=e.slice(r,o)),t.ext=e.slice(a,o)),r>0?t.dir=e.slice(0,r-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ua.posix=Ua;var ja=i(Ua),Pa={},Ma={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
|
|
4
4
|
/*!
|
|
@@ -22,5 +22,5 @@ function(e){for(var t=[],n=0;n<e.elements.length;n++){var i=e.elements[n];if(i.n
|
|
|
22
22
|
* Released under MIT license <https://lodash.com/license>
|
|
23
23
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
24
24
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
25
|
-
*/!function(e,t){(function(){var i,s="Expected a function",a="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,l=64,d=128,u=256,p=1/0,h=9007199254740991,f=NaN,m=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",l],["rearg",u]],y="[object Arguments]",v="[object Array]",_="[object Boolean]",b="[object Date]",w="[object Error]",I="[object Function]",x="[object GeneratorFunction]",E="[object Map]",S="[object Number]",A="[object Object]",T="[object Promise]",k="[object RegExp]",R="[object Set]",L="[object String]",C="[object Symbol]",O="[object WeakMap]",F="[object ArrayBuffer]",N="[object DataView]",U="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",M="[object Int16Array]",D="[object Int32Array]",$="[object Uint8Array]",z="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,G=RegExp(Y.source),J=RegExp(K.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ie.source),ae=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",Ce="["+xe+"]",Oe="["+Re+"]",Fe="["+Ee+"]",Ne="\\d+",Ue="["+Se+"]",je="["+Ae+"]",Pe="[^"+xe+Re+Ne+Se+Ae+Te+"]",Me="\\ud83c[\\udffb-\\udfff]",De="[^"+xe+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Te+"]",qe="\\u200d",Ve="(?:"+je+"|"+Pe+")",He="(?:"+Be+"|"+Pe+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Fe+"|"+Me+")"+"?",Ge="["+ke+"]?",Je=Ge+Ke+("(?:"+qe+"(?:"+[De,$e,ze].join("|")+")"+Ge+Ke+")*"),Xe="(?:"+[Ue,$e,ze].join("|")+")"+Je,Qe="(?:"+[De+Fe+"?",Fe,$e,ze,Ce].join("|")+")",Ze=RegExp(Le,"g"),et=RegExp(Fe,"g"),tt=RegExp(Me+"(?="+Me+")|"+Qe+Je,"g"),nt=RegExp([Be+"?"+je+"+"+We+"(?="+[Oe,Be,"$"].join("|")+")",He+"+"+Ye+"(?="+[Oe,Be+Ve,"$"].join("|")+")",Be+"?"+Ve+"+"+We,Be+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Xe].join("|"),"g"),it=RegExp("["+qe+xe+Ee+ke+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[U]=ot[j]=ot[P]=ot[M]=ot[D]=ot[$]=ot[z]=ot[B]=ot[q]=!0,ot[y]=ot[v]=ot[F]=ot[_]=ot[N]=ot[b]=ot[w]=ot[I]=ot[E]=ot[S]=ot[A]=ot[k]=ot[R]=ot[L]=ot[O]=!1;var ct={};ct[y]=ct[v]=ct[F]=ct[N]=ct[_]=ct[b]=ct[U]=ct[j]=ct[P]=ct[M]=ct[D]=ct[E]=ct[S]=ct[A]=ct[k]=ct[R]=ct[L]=ct[C]=ct[$]=ct[z]=ct[B]=ct[q]=!0,ct[w]=ct[I]=ct[O]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ut=parseInt,pt="object"==typeof n&&n&&n.Object===Object&&n,ht="object"==typeof self&&self&&self.Object===Object&&self,ft=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&>.exports===mt,vt=yt&&pt.process,_t=function(){try{var e=gt&>.require&>.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),bt=_t&&_t.isArrayBuffer,wt=_t&&_t.isDate,It=_t&&_t.isMap,xt=_t&&_t.isRegExp,Et=_t&&_t.isSet,St=_t&&_t.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,i){for(var s=-1,a=null==e?0:e.length;++s<a;){var r=e[s];t(i,r,n(r),e)}return i}function kt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,i=null==e?0:e.length,s=0,a=[];++n<i;){var r=e[n];t(r,n,e)&&(a[s++]=r)}return a}function Ot(e,t){return!!(null==e?0:e.length)&&Bt(e,t,0)>-1}function Ft(e,t,n){for(var i=-1,s=null==e?0:e.length;++i<s;)if(n(t,e[i]))return!0;return!1}function Nt(e,t){for(var n=-1,i=null==e?0:e.length,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s}function Ut(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e}function jt(e,t,n,i){var s=-1,a=null==e?0:e.length;for(i&&a&&(n=e[++s]);++s<a;)n=t(n,e[s],s,e);return n}function Pt(e,t,n,i){var s=null==e?0:e.length;for(i&&s&&(n=e[--s]);s--;)n=t(n,e[s],s,e);return n}function Mt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Dt=Wt("length");function $t(e,t,n){var i;return n(e,(function(e,n,s){if(t(e,n,s))return i=n,!1})),i}function zt(e,t,n,i){for(var s=e.length,a=n+(i?1:-1);i?a--:++a<s;)if(t(e[a],a,e))return a;return-1}function Bt(e,t,n){return t==t?function(e,t,n){var i=n-1,s=e.length;for(;++i<s;)if(e[i]===t)return i;return-1}(e,t,n):zt(e,Vt,n)}function qt(e,t,n,i){for(var s=n-1,a=e.length;++s<a;)if(i(e[s],t))return s;return-1}function Vt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Wt(e){return function(t){return null==t?i:t[e]}}function Yt(e){return function(t){return null==e?i:e[t]}}function Kt(e,t,n,i,s){return s(e,(function(e,s,a){n=i?(i=!1,e):t(n,e,s,a)})),n}function Gt(e,t){for(var n,s=-1,a=e.length;++s<a;){var r=t(e[s]);r!==i&&(n=n===i?r:n+r)}return n}function Jt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Xt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Qt(e){return function(t){return e(t)}}function Zt(e,t){return Nt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&Bt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var sn=Yt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+lt[e]}function on(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,i=e.length,s=0,a=[];++n<i;){var o=e[n];o!==t&&o!==r||(e[n]=r,a[s++]=n)}return a}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return on(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Dt(e)}function fn(e){return on(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var gn=Yt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?ft:yn.defaults(ft.Object(),t,yn.pick(ft,at))).Array,re=t.Date,xe=t.Error,Ee=t.Function,Se=t.Math,Ae=t.Object,Te=t.RegExp,ke=t.String,Re=t.TypeError,Le=n.prototype,Ce=Ee.prototype,Oe=Ae.prototype,Fe=t["__core-js_shared__"],Ne=Ce.toString,Ue=Oe.hasOwnProperty,je=0,Pe=function(){var e=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Me=Oe.toString,De=Ne.call(Ae),$e=ft._,ze=Te("^"+Ne.call(Ue).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=yt?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,He=Be?Be.allocUnsafe:i,We=ln(Ae.getPrototypeOf,Ae),Ye=Ae.create,Ke=Oe.propertyIsEnumerable,Ge=Le.splice,Je=qe?qe.isConcatSpreadable:i,Xe=qe?qe.iterator:i,Qe=qe?qe.toStringTag:i,tt=function(){try{var e=ua(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=re&&re.now!==ft.Date.now&&re.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,ht=Se.ceil,mt=Se.floor,gt=Ae.getOwnPropertySymbols,vt=Be?Be.isBuffer:i,_t=t.isFinite,Dt=Le.join,Yt=ln(Ae.keys,Ae),vn=Se.max,_n=Se.min,bn=re.now,wn=t.parseInt,In=Se.random,xn=Le.reverse,En=ua(t,"DataView"),Sn=ua(t,"Map"),An=ua(t,"Promise"),Tn=ua(t,"Set"),kn=ua(t,"WeakMap"),Rn=ua(Ae,"create"),Ln=kn&&new kn,Cn={},On=Pa(En),Fn=Pa(Sn),Nn=Pa(An),Un=Pa(Tn),jn=Pa(kn),Pn=qe?qe.prototype:i,Mn=Pn?Pn.valueOf:i,Dn=Pn?Pn.toString:i;function $n(e){if(eo(e)&&!qr(e)&&!(e instanceof Vn)){if(e instanceof qn)return e;if(Ue.call(e,"__wrapped__"))return Ma(e)}return new qn(e)}var zn=function(){function e(){}return function(t){if(!Zr(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Jn(e,t){var n=qr(e),i=!n&&Br(e),s=!n&&!i&&Yr(e),a=!n&&!i&&!s&&co(e),r=n||i||s||a,o=r?Jt(e.length,ke):[],c=o.length;for(var l in e)!t&&!Ue.call(e,l)||r&&("length"==l||s&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||va(l,c))||o.push(l);return o}function Xn(e){var t=e.length;return t?e[Ki(0,t-1)]:i}function Qn(e,t){return Na(Rs(e),oi(t,0,e.length))}function Zn(e){return Na(Rs(e))}function ei(e,t,n){(n!==i&&!Dr(e[t],n)||n===i&&!(t in e))&&ai(e,t,n)}function ti(e,t,n){var s=e[t];Ue.call(e,t)&&Dr(s,n)&&(n!==i||t in e)||ai(e,t,n)}function ni(e,t){for(var n=e.length;n--;)if(Dr(e[n][0],t))return n;return-1}function ii(e,t,n,i){return pi(e,(function(e,s,a){t(i,e,n(e),a)})),i}function si(e,t){return e&&Ls(t,Co(t),e)}function ai(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var s=-1,a=t.length,r=n(a),o=null==e;++s<a;)r[s]=o?i:Ao(e,t[s]);return r}function oi(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ci(e,t,n,s,a,r){var o,c=1&t,l=2&t,d=4&t;if(n&&(o=a?n(e,s,a,r):n(e)),o!==i)return o;if(!Zr(e))return e;var u=qr(e);if(u){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Rs(e,o)}else{var p=fa(e),h=p==I||p==x;if(Yr(e))return xs(e,c);if(p==A||p==y||h&&!a){if(o=l||h?{}:ga(e),!c)return l?function(e,t){return Ls(e,ha(e),t)}(e,function(e,t){return e&&Ls(t,Oo(t),e)}(o,e)):function(e,t){return Ls(e,pa(e),t)}(e,si(o,e))}else{if(!ct[p])return a?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case F:return Es(e);case _:case b:return new i(+e);case N:return function(e,t){var n=t?Es(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case U:case j:case P:case M:case D:case $:case z:case B:case q:return Ss(e,n);case E:return new i;case S:case L:return new i(e);case k:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new i;case C:return s=e,Mn?Ae(Mn.call(s)):{}}var s}(e,p,c)}}r||(r=new Gn);var f=r.get(e);if(f)return f;r.set(e,o),ao(e)?e.forEach((function(i){o.add(ci(i,t,n,i,e,r))})):to(e)&&e.forEach((function(i,s){o.set(s,ci(i,t,n,s,e,r))}));var m=u?i:(d?l?sa:ia:l?Oo:Co)(e);return kt(m||e,(function(i,s){m&&(i=e[s=i]),ti(o,s,ci(i,t,n,s,e,r))})),o}function li(e,t,n){var s=n.length;if(null==e)return!s;for(e=Ae(e);s--;){var a=n[s],r=t[a],o=e[a];if(o===i&&!(a in e)||!r(o))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new Re(s);return La((function(){e.apply(i,n)}),t)}function ui(e,t,n,i){var s=-1,a=Ot,r=!0,o=e.length,c=[],l=t.length;if(!o)return c;n&&(t=Nt(t,Qt(n))),i?(a=Ft,r=!1):t.length>=200&&(a=en,r=!1,t=new Kn(t));e:for(;++s<o;){var d=e[s],u=null==n?d:n(d);if(d=i||0!==d?d:0,r&&u==u){for(var p=l;p--;)if(t[p]===u)continue e;c.push(d)}else a(t,u,i)||c.push(d)}return c}$n.templateSettings={escape:X,evaluate:Q,interpolate:Z,variable:"",imports:{_:$n}},$n.prototype=Bn.prototype,$n.prototype.constructor=$n,qn.prototype=zn(Bn.prototype),qn.prototype.constructor=qn,Vn.prototype=zn(Bn.prototype),Vn.prototype.constructor=Vn,Hn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===a?i:n}return Ue.call(t,e)?t[e]:i},Hn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==i:Ue.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===i?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=ni(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Wn.prototype.get=function(e){var t=this.__data__,n=ni(t,e);return n<0?i:t[n][1]},Wn.prototype.has=function(e){return ni(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,i=ni(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Sn||Wn),string:new Hn}},Yn.prototype.delete=function(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return la(this,e).get(e)},Yn.prototype.has=function(e){return la(this,e).has(e)},Yn.prototype.set=function(e,t){var n=la(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var i=n.__data__;if(!Sn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(i)}return n.set(e,t),this.size=n.size,this};var pi=Fs(bi),hi=Fs(wi,!0);function fi(e,t){var n=!0;return pi(e,(function(e,i,s){return n=!!t(e,i,s)})),n}function mi(e,t,n){for(var s=-1,a=e.length;++s<a;){var r=e[s],o=t(r);if(null!=o&&(c===i?o==o&&!oo(o):n(o,c)))var c=o,l=r}return l}function gi(e,t){var n=[];return pi(e,(function(e,i,s){t(e,i,s)&&n.push(e)})),n}function yi(e,t,n,i,s){var a=-1,r=e.length;for(n||(n=ya),s||(s=[]);++a<r;){var o=e[a];t>0&&n(o)?t>1?yi(o,t-1,n,i,s):Ut(s,o):i||(s[s.length]=o)}return s}var vi=Ns(),_i=Ns(!0);function bi(e,t){return e&&vi(e,t,Co)}function wi(e,t){return e&&_i(e,t,Co)}function Ii(e,t){return Ct(t,(function(t){return Jr(e[t])}))}function xi(e,t){for(var n=0,s=(t=_s(t,e)).length;null!=e&&n<s;)e=e[ja(t[n++])];return n&&n==s?e:i}function Ei(e,t,n){var i=t(e);return qr(e)?i:Ut(i,n(e))}function Si(e){return null==e?e===i?"[object Undefined]":"[object Null]":Qe&&Qe in Ae(e)?function(e){var t=Ue.call(e,Qe),n=e[Qe];try{e[Qe]=i;var s=!0}catch(e){}var a=Me.call(e);s&&(t?e[Qe]=n:delete e[Qe]);return a}(e):function(e){return Me.call(e)}(e)}function Ai(e,t){return e>t}function Ti(e,t){return null!=e&&Ue.call(e,t)}function ki(e,t){return null!=e&&t in Ae(e)}function Ri(e,t,s){for(var a=s?Ft:Ot,r=e[0].length,o=e.length,c=o,l=n(o),d=1/0,u=[];c--;){var p=e[c];c&&t&&(p=Nt(p,Qt(t))),d=_n(p.length,d),l[c]=!s&&(t||r>=120&&p.length>=120)?new Kn(c&&p):i}p=e[0];var h=-1,f=l[0];e:for(;++h<r&&u.length<d;){var m=p[h],g=t?t(m):m;if(m=s||0!==m?m:0,!(f?en(f,g):a(u,g,s))){for(c=o;--c;){var y=l[c];if(!(y?en(y,g):a(e[c],g,s)))continue e}f&&f.push(g),u.push(m)}}return u}function Li(e,t,n){var s=null==(e=Ta(e,t=_s(t,e)))?e:e[ja(Ga(t))];return null==s?i:At(s,e,n)}function Ci(e){return eo(e)&&Si(e)==y}function Oi(e,t,n,s,a){return e===t||(null==e||null==t||!eo(e)&&!eo(t)?e!=e&&t!=t:function(e,t,n,s,a,r){var o=qr(e),c=qr(t),l=o?v:fa(e),d=c?v:fa(t),u=(l=l==y?A:l)==A,p=(d=d==y?A:d)==A,h=l==d;if(h&&Yr(e)){if(!Yr(t))return!1;o=!0,u=!1}if(h&&!u)return r||(r=new Gn),o||co(e)?ta(e,t,n,s,a,r):function(e,t,n,i,s,a,r){switch(n){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case F:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case _:case b:case S:return Dr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case k:case L:return e==t+"";case E:var o=cn;case R:var c=1&i;if(o||(o=un),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var d=ta(o(e),o(t),i,s,a,r);return r.delete(e),d;case C:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,l,n,s,a,r);if(!(1&n)){var f=u&&Ue.call(e,"__wrapped__"),m=p&&Ue.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,I=m?t.value():t;return r||(r=new Gn),a(g,I,n,s,r)}}if(!h)return!1;return r||(r=new Gn),function(e,t,n,s,a,r){var o=1&n,c=ia(e),l=c.length,d=ia(t),u=d.length;if(l!=u&&!o)return!1;var p=l;for(;p--;){var h=c[p];if(!(o?h in t:Ue.call(t,h)))return!1}var f=r.get(e),m=r.get(t);if(f&&m)return f==t&&m==e;var g=!0;r.set(e,t),r.set(t,e);var y=o;for(;++p<l;){var v=e[h=c[p]],_=t[h];if(s)var b=o?s(_,v,h,t,e,r):s(v,_,h,e,t,r);if(!(b===i?v===_||a(v,_,n,s,r):b)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var w=e.constructor,I=t.constructor;w==I||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof I&&I instanceof I||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,n,s,a,r)}(e,t,n,s,Oi,a))}function Fi(e,t,n,s){var a=n.length,r=a,o=!s;if(null==e)return!r;for(e=Ae(e);a--;){var c=n[a];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<r;){var l=(c=n[a])[0],d=e[l],u=c[1];if(o&&c[2]){if(d===i&&!(l in e))return!1}else{var p=new Gn;if(s)var h=s(d,u,l,e,t,p);if(!(h===i?Oi(u,d,3,s,p):h))return!1}}return!0}function Ni(e){return!(!Zr(e)||(t=e,Pe&&Pe in t))&&(Jr(e)?ze:ye).test(Pa(e));var t}function Ui(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?qr(e)?zi(e[0],e[1]):$i(e):pc(e)}function ji(e){if(!xa(e))return Yt(e);var t=[];for(var n in Ae(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pi(e){if(!Zr(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=xa(e),n=[];for(var i in e)("constructor"!=i||!t&&Ue.call(e,i))&&n.push(i);return n}function Mi(e,t){return e<t}function Di(e,t){var i=-1,s=Hr(e)?n(e.length):[];return pi(e,(function(e,n,a){s[++i]=t(e,n,a)})),s}function $i(e){var t=da(e);return 1==t.length&&t[0][2]?Sa(t[0][0],t[0][1]):function(n){return n===e||Fi(n,e,t)}}function zi(e,t){return ba(e)&&Ea(t)?Sa(ja(e),t):function(n){var s=Ao(n,e);return s===i&&s===t?To(n,e):Oi(t,s,3)}}function Bi(e,t,n,s,a){e!==t&&vi(t,(function(r,o){if(a||(a=new Gn),Zr(r))!function(e,t,n,s,a,r,o){var c=ka(e,n),l=ka(t,n),d=o.get(l);if(d)return void ei(e,n,d);var u=r?r(c,l,n+"",e,t,o):i,p=u===i;if(p){var h=qr(l),f=!h&&Yr(l),m=!h&&!f&&co(l);u=l,h||f||m?qr(c)?u=c:Wr(c)?u=Rs(c):f?(p=!1,u=xs(l,!0)):m?(p=!1,u=Ss(l,!0)):u=[]:io(l)||Br(l)?(u=c,Br(c)?u=yo(c):Zr(c)&&!Jr(c)||(u=ga(l))):p=!1}p&&(o.set(l,u),a(u,l,s,r,o),o.delete(l));ei(e,n,u)}(e,t,o,n,Bi,s,a);else{var c=s?s(ka(e,o),r,o+"",e,t,a):i;c===i&&(c=r),ei(e,o,c)}}),Oo)}function qi(e,t){var n=e.length;if(n)return va(t+=t<0?n:0,n)?e[t]:i}function Vi(e,t,n){t=t.length?Nt(t,(function(e){return qr(e)?function(t){return xi(t,1===e.length?e[0]:e)}:e})):[ic];var i=-1;t=Nt(t,Qt(ca()));var s=Di(e,(function(e,n,s){var a=Nt(t,(function(t){return t(e)}));return{criteria:a,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(s,(function(e,t){return function(e,t,n){var i=-1,s=e.criteria,a=t.criteria,r=s.length,o=n.length;for(;++i<r;){var c=As(s[i],a[i]);if(c)return i>=o?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hi(e,t,n){for(var i=-1,s=t.length,a={};++i<s;){var r=t[i],o=xi(e,r);n(o,r)&&Zi(a,_s(r,e),o)}return a}function Wi(e,t,n,i){var s=i?qt:Bt,a=-1,r=t.length,o=e;for(e===t&&(t=Rs(t)),n&&(o=Nt(e,Qt(n)));++a<r;)for(var c=0,l=t[a],d=n?n(l):l;(c=s(o,d,c,i))>-1;)o!==e&&Ge.call(o,c,1),Ge.call(e,c,1);return e}function Yi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var s=t[n];if(n==i||s!==a){var a=s;va(s)?Ge.call(e,s,1):us(e,s)}}return e}function Ki(e,t){return e+mt(In()*(t-e+1))}function Gi(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Ji(e,t){return Ca(Aa(e,t,ic),e+"")}function Xi(e){return Xn($o(e))}function Qi(e,t){var n=$o(e);return Na(n,oi(t,0,n.length))}function Zi(e,t,n,s){if(!Zr(e))return e;for(var a=-1,r=(t=_s(t,e)).length,o=r-1,c=e;null!=c&&++a<r;){var l=ja(t[a]),d=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=o){var u=c[l];(d=s?s(u,l,c):i)===i&&(d=Zr(u)?u:va(t[a+1])?[]:{})}ti(c,l,d),c=c[l]}return e}var es=Ln?function(e,t){return Ln.set(e,t),e}:ic,ts=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:ic;function ns(e){return Na($o(e))}function is(e,t,i){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(i=i>a?a:i)<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var r=n(a);++s<a;)r[s]=e[s+t];return r}function ss(e,t){var n;return pi(e,(function(e,i,s){return!(n=t(e,i,s))})),!!n}function as(e,t,n){var i=0,s=null==e?i:e.length;if("number"==typeof t&&t==t&&s<=2147483647){for(;i<s;){var a=i+s>>>1,r=e[a];null!==r&&!oo(r)&&(n?r<=t:r<t)?i=a+1:s=a}return s}return rs(e,t,ic,n)}function rs(e,t,n,s){var a=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=n(t))!=t,c=null===t,l=oo(t),d=t===i;a<r;){var u=mt((a+r)/2),p=n(e[u]),h=p!==i,f=null===p,m=p==p,g=oo(p);if(o)var y=s||m;else y=d?m&&(s||h):c?m&&h&&(s||!f):l?m&&h&&!f&&(s||!g):!f&&!g&&(s?p<=t:p<t);y?a=u+1:r=u}return _n(r,4294967294)}function os(e,t){for(var n=-1,i=e.length,s=0,a=[];++n<i;){var r=e[n],o=t?t(r):r;if(!n||!Dr(o,c)){var c=o;a[s++]=0===r?0:r}}return a}function cs(e){return"number"==typeof e?e:oo(e)?f:+e}function ls(e){if("string"==typeof e)return e;if(qr(e))return Nt(e,ls)+"";if(oo(e))return Dn?Dn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ds(e,t,n){var i=-1,s=Ot,a=e.length,r=!0,o=[],c=o;if(n)r=!1,s=Ft;else if(a>=200){var l=t?null:Gs(e);if(l)return un(l);r=!1,s=en,c=new Kn}else c=t?[]:o;e:for(;++i<a;){var d=e[i],u=t?t(d):d;if(d=n||0!==d?d:0,r&&u==u){for(var p=c.length;p--;)if(c[p]===u)continue e;t&&c.push(u),o.push(d)}else s(c,u,n)||(c!==o&&c.push(u),o.push(d))}return o}function us(e,t){return null==(e=Ta(e,t=_s(t,e)))||delete e[ja(Ga(t))]}function ps(e,t,n,i){return Zi(e,t,n(xi(e,t)),i)}function hs(e,t,n,i){for(var s=e.length,a=i?s:-1;(i?a--:++a<s)&&t(e[a],a,e););return n?is(e,i?0:a,i?a+1:s):is(e,i?a+1:0,i?s:a)}function fs(e,t){var n=e;return n instanceof Vn&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Ut([e],t.args))}),n)}function ms(e,t,i){var s=e.length;if(s<2)return s?ds(e[0]):[];for(var a=-1,r=n(s);++a<s;)for(var o=e[a],c=-1;++c<s;)c!=a&&(r[a]=ui(r[a]||o,e[c],t,i));return ds(yi(r,1),t,i)}function gs(e,t,n){for(var s=-1,a=e.length,r=t.length,o={};++s<a;){var c=s<r?t[s]:i;n(o,e[s],c)}return o}function ys(e){return Wr(e)?e:[]}function vs(e){return"function"==typeof e?e:ic}function _s(e,t){return qr(e)?e:ba(e,t)?[e]:Ua(vo(e))}var bs=Ji;function ws(e,t,n){var s=e.length;return n=n===i?s:n,!t&&n>=s?e:is(e,t,n)}var Is=it||function(e){return ft.clearTimeout(e)};function xs(e,t){if(t)return e.slice();var n=e.length,i=He?He(n):new e.constructor(n);return e.copy(i),i}function Es(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ss(e,t){var n=t?Es(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function As(e,t){if(e!==t){var n=e!==i,s=null===e,a=e==e,r=oo(e),o=t!==i,c=null===t,l=t==t,d=oo(t);if(!c&&!d&&!r&&e>t||r&&o&&l&&!c&&!d||s&&o&&l||!n&&l||!a)return 1;if(!s&&!r&&!d&&e<t||d&&n&&a&&!s&&!r||c&&n&&a||!o&&a||!l)return-1}return 0}function Ts(e,t,i,s){for(var a=-1,r=e.length,o=i.length,c=-1,l=t.length,d=vn(r-o,0),u=n(l+d),p=!s;++c<l;)u[c]=t[c];for(;++a<o;)(p||a<r)&&(u[i[a]]=e[a]);for(;d--;)u[c++]=e[a++];return u}function ks(e,t,i,s){for(var a=-1,r=e.length,o=-1,c=i.length,l=-1,d=t.length,u=vn(r-c,0),p=n(u+d),h=!s;++a<u;)p[a]=e[a];for(var f=a;++l<d;)p[f+l]=t[l];for(;++o<c;)(h||a<r)&&(p[f+i[o]]=e[a++]);return p}function Rs(e,t){var i=-1,s=e.length;for(t||(t=n(s));++i<s;)t[i]=e[i];return t}function Ls(e,t,n,s){var a=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var c=t[r],l=s?s(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),a?ai(n,c,l):ti(n,c,l)}return n}function Cs(e,t){return function(n,i){var s=qr(n)?Tt:ii,a=t?t():{};return s(n,e,ca(i,2),a)}}function Os(e){return Ji((function(t,n){var s=-1,a=n.length,r=a>1?n[a-1]:i,o=a>2?n[2]:i;for(r=e.length>3&&"function"==typeof r?(a--,r):i,o&&_a(n[0],n[1],o)&&(r=a<3?i:r,a=1),t=Ae(t);++s<a;){var c=n[s];c&&e(t,c,s,r)}return t}))}function Fs(e,t){return function(n,i){if(null==n)return n;if(!Hr(n))return e(n,i);for(var s=n.length,a=t?s:-1,r=Ae(n);(t?a--:++a<s)&&!1!==i(r[a],a,r););return n}}function Ns(e){return function(t,n,i){for(var s=-1,a=Ae(t),r=i(t),o=r.length;o--;){var c=r[e?o:++s];if(!1===n(a[c],c,a))break}return t}}function Us(e){return function(t){var n=on(t=vo(t))?fn(t):i,s=n?n[0]:t.charAt(0),a=n?ws(n,1).join(""):t.slice(1);return s[e]()+a}}function js(e){return function(t){return jt(Xo(qo(t).replace(Ze,"")),e,"")}}function Ps(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),i=e.apply(n,t);return Zr(i)?i:n}}function Ms(e){return function(t,n,s){var a=Ae(t);if(!Hr(t)){var r=ca(n,3);t=Co(t),n=function(e){return r(a[e],e,a)}}var o=e(t,n,s);return o>-1?a[r?t[o]:o]:i}}function Ds(e){return na((function(t){var n=t.length,a=n,r=qn.prototype.thru;for(e&&t.reverse();a--;){var o=t[a];if("function"!=typeof o)throw new Re(s);if(r&&!c&&"wrapper"==ra(o))var c=new qn([],!0)}for(a=c?a:n;++a<n;){var l=ra(o=t[a]),d="wrapper"==l?aa(o):i;c=d&&wa(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?c[ra(d[0])].apply(c,d[3]):1==o.length&&wa(o)?c[l]():c.thru(o)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&qr(i))return c.plant(i).value();for(var s=0,a=n?t[s].apply(this,e):i;++s<n;)a=t[s].call(this,a);return a}}))}function $s(e,t,s,a,r,o,c,l,u,p){var h=t&d,f=1&t,m=2&t,g=24&t,y=512&t,v=m?i:Ps(e);return function d(){for(var _=arguments.length,b=n(_),w=_;w--;)b[w]=arguments[w];if(g)var I=oa(d),x=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,I);if(a&&(b=Ts(b,a,r,g)),o&&(b=ks(b,o,c,g)),_-=x,g&&_<p){var E=dn(b,I);return Ys(e,t,$s,d.placeholder,s,b,E,l,u,p-_)}var S=f?s:this,A=m?S[e]:e;return _=b.length,l?b=function(e,t){var n=e.length,s=_n(t.length,n),a=Rs(e);for(;s--;){var r=t[s];e[s]=va(r,n)?a[r]:i}return e}(b,l):y&&_>1&&b.reverse(),h&&u<_&&(b.length=u),this&&this!==ft&&this instanceof d&&(A=v||Ps(A)),A.apply(S,b)}}function zs(e,t){return function(n,i){return function(e,t,n,i){return bi(e,(function(e,s,a){t(i,n(e),s,a)})),i}(n,e,t(i),{})}}function Bs(e,t){return function(n,s){var a;if(n===i&&s===i)return t;if(n!==i&&(a=n),s!==i){if(a===i)return s;"string"==typeof n||"string"==typeof s?(n=ls(n),s=ls(s)):(n=cs(n),s=cs(s)),a=e(n,s)}return a}}function qs(e){return na((function(t){return t=Nt(t,Qt(ca())),Ji((function(n){var i=this;return e(t,(function(e){return At(e,i,n)}))}))}))}function Vs(e,t){var n=(t=t===i?" ":ls(t)).length;if(n<2)return n?Gi(t,e):t;var s=Gi(t,ht(e/hn(t)));return on(t)?ws(fn(s),0,e).join(""):s.slice(0,e)}function Hs(e){return function(t,s,a){return a&&"number"!=typeof a&&_a(t,s,a)&&(s=a=i),t=ho(t),s===i?(s=t,t=0):s=ho(s),function(e,t,i,s){for(var a=-1,r=vn(ht((t-e)/(i||1)),0),o=n(r);r--;)o[s?r:++a]=e,e+=i;return o}(t,s,a=a===i?t<s?1:-1:ho(a),e)}}function Ws(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=go(t),n=go(n)),e(t,n)}}function Ys(e,t,n,s,a,r,o,d,u,p){var h=8&t;t|=h?c:l,4&(t&=~(h?l:c))||(t&=-4);var f=[e,t,a,h?r:i,h?o:i,h?i:r,h?i:o,d,u,p],m=n.apply(i,f);return wa(e)&&Ra(m,f),m.placeholder=s,Oa(m,e,t)}function Ks(e){var t=Se[e];return function(e,n){if(e=go(e),(n=null==n?0:_n(fo(n),292))&&_t(e)){var i=(vo(e)+"e").split("e");return+((i=(vo(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Gs=Tn&&1/un(new Tn([,-0]))[1]==p?function(e){return new Tn(e)}:cc;function Js(e){return function(t){var n=fa(t);return n==E?cn(t):n==R?pn(t):function(e,t){return Nt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xs(e,t,a,p,h,f,m,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Re(s);var v=p?p.length:0;if(v||(t&=-97,p=h=i),m=m===i?m:vn(fo(m),0),g=g===i?g:fo(g),v-=h?h.length:0,t&l){var _=p,b=h;p=h=i}var w=y?i:aa(e),I=[e,t,a,p,h,_,b,f,m,g];if(w&&function(e,t){var n=e[1],i=t[1],s=n|i,a=s<131,o=i==d&&8==n||i==d&&n==u&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&i&&(e[2]=t[2],s|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Ts(l,c,t[4]):c,e[4]=l?dn(e[3],r):t[4]}(c=t[5])&&(l=e[5],e[5]=l?ks(l,c,t[6]):c,e[6]=l?dn(e[5],r):t[6]);(c=t[7])&&(e[7]=c);i&d&&(e[8]=null==e[8]?t[8]:_n(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=s}(I,w),e=I[0],t=I[1],a=I[2],p=I[3],h=I[4],!(g=I[9]=I[9]===i?y?0:e.length:vn(I[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==o?function(e,t,s){var a=Ps(e);return function r(){for(var o=arguments.length,c=n(o),l=o,d=oa(r);l--;)c[l]=arguments[l];var u=o<3&&c[0]!==d&&c[o-1]!==d?[]:dn(c,d);return(o-=u.length)<s?Ys(e,t,$s,r.placeholder,i,c,u,i,i,s-o):At(this&&this!==ft&&this instanceof r?a:e,this,c)}}(e,t,g):t!=c&&33!=t||h.length?$s.apply(i,I):function(e,t,i,s){var a=1&t,r=Ps(e);return function t(){for(var o=-1,c=arguments.length,l=-1,d=s.length,u=n(d+c),p=this&&this!==ft&&this instanceof t?r:e;++l<d;)u[l]=s[l];for(;c--;)u[l++]=arguments[++o];return At(p,a?i:this,u)}}(e,t,a,p);else var x=function(e,t,n){var i=1&t,s=Ps(e);return function t(){return(this&&this!==ft&&this instanceof t?s:e).apply(i?n:this,arguments)}}(e,t,a);return Oa((w?es:Ra)(x,I),e,t)}function Qs(e,t,n,s){return e===i||Dr(e,Oe[n])&&!Ue.call(s,n)?t:e}function Zs(e,t,n,s,a,r){return Zr(e)&&Zr(t)&&(r.set(t,e),Bi(e,t,i,Zs,r),r.delete(t)),e}function ea(e){return io(e)?i:e}function ta(e,t,n,s,a,r){var o=1&n,c=e.length,l=t.length;if(c!=l&&!(o&&l>c))return!1;var d=r.get(e),u=r.get(t);if(d&&u)return d==t&&u==e;var p=-1,h=!0,f=2&n?new Kn:i;for(r.set(e,t),r.set(t,e);++p<c;){var m=e[p],g=t[p];if(s)var y=o?s(g,m,p,t,e,r):s(m,g,p,e,t,r);if(y!==i){if(y)continue;h=!1;break}if(f){if(!Mt(t,(function(e,t){if(!en(f,t)&&(m===e||a(m,e,n,s,r)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!a(m,g,n,s,r)){h=!1;break}}return r.delete(e),r.delete(t),h}function na(e){return Ca(Aa(e,i,Va),e+"")}function ia(e){return Ei(e,Co,pa)}function sa(e){return Ei(e,Oo,ha)}var aa=Ln?function(e){return Ln.get(e)}:cc;function ra(e){for(var t=e.name+"",n=Cn[t],i=Ue.call(Cn,t)?n.length:0;i--;){var s=n[i],a=s.func;if(null==a||a==e)return s.name}return t}function oa(e){return(Ue.call($n,"placeholder")?$n:e).placeholder}function ca(){var e=$n.iteratee||sc;return e=e===sc?Ui:e,arguments.length?e(arguments[0],arguments[1]):e}function la(e,t){var n,i,s=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof t?"string":"hash"]:s.map}function da(e){for(var t=Co(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,Ea(s)]}return t}function ua(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ni(n)?n:i}var pa=gt?function(e){return null==e?[]:(e=Ae(e),Ct(gt(e),(function(t){return Ke.call(e,t)})))}:mc,ha=gt?function(e){for(var t=[];e;)Ut(t,pa(e)),e=We(e);return t}:mc,fa=Si;function ma(e,t,n){for(var i=-1,s=(t=_s(t,e)).length,a=!1;++i<s;){var r=ja(t[i]);if(!(a=null!=e&&n(e,r)))break;e=e[r]}return a||++i!=s?a:!!(s=null==e?0:e.length)&&Qr(s)&&va(r,s)&&(qr(e)||Br(e))}function ga(e){return"function"!=typeof e.constructor||xa(e)?{}:zn(We(e))}function ya(e){return qr(e)||Br(e)||!!(Je&&e&&e[Je])}function va(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&_e.test(e))&&e>-1&&e%1==0&&e<t}function _a(e,t,n){if(!Zr(n))return!1;var i=typeof t;return!!("number"==i?Hr(n)&&va(t,n.length):"string"==i&&t in n)&&Dr(n[t],e)}function ba(e,t){if(qr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!oo(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ae(t))}function wa(e){var t=ra(e),n=$n[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var i=aa(n);return!!i&&e===i[0]}(En&&fa(new En(new ArrayBuffer(1)))!=N||Sn&&fa(new Sn)!=E||An&&fa(An.resolve())!=T||Tn&&fa(new Tn)!=R||kn&&fa(new kn)!=O)&&(fa=function(e){var t=Si(e),n=t==A?e.constructor:i,s=n?Pa(n):"";if(s)switch(s){case On:return N;case Fn:return E;case Nn:return T;case Un:return R;case jn:return O}return t});var Ia=Fe?Jr:gc;function xa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Ea(e){return e==e&&!Zr(e)}function Sa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ae(n)))}}function Aa(e,t,s){return t=vn(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=vn(i.length-t,0),o=n(r);++a<r;)o[a]=i[t+a];a=-1;for(var c=n(t+1);++a<t;)c[a]=i[a];return c[t]=s(o),At(e,this,c)}}function Ta(e,t){return t.length<2?e:xi(e,is(t,0,-1))}function ka(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ra=Fa(es),La=pt||function(e,t){return ft.setTimeout(e,t)},Ca=Fa(ts);function Oa(e,t,n){var i=t+"";return Ca(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return kt(g,(function(n){var i="_."+n[0];t&n[1]&&!Ot(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function Fa(e){var t=0,n=0;return function(){var s=bn(),a=16-(s-n);if(n=s,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Na(e,t){var n=-1,s=e.length,a=s-1;for(t=t===i?s:t;++n<t;){var r=Ki(n,a),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var Ua=function(e){var t=Fr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,i,s){t.push(i?s.replace(pe,"$1"):n||e)})),t}));function ja(e){if("string"==typeof e||oo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pa(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ma(e){if(e instanceof Vn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=Rs(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Da=Ji((function(e,t){return Wr(e)?ui(e,yi(t,1,Wr,!0)):[]})),$a=Ji((function(e,t){var n=Ga(t);return Wr(n)&&(n=i),Wr(e)?ui(e,yi(t,1,Wr,!0),ca(n,2)):[]})),za=Ji((function(e,t){var n=Ga(t);return Wr(n)&&(n=i),Wr(e)?ui(e,yi(t,1,Wr,!0),i,n):[]}));function Ba(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:fo(n);return s<0&&(s=vn(i+s,0)),zt(e,ca(t,3),s)}function qa(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var a=s-1;return n!==i&&(a=fo(n),a=n<0?vn(s+a,0):_n(a,s-1)),zt(e,ca(t,3),a,!0)}function Va(e){return(null==e?0:e.length)?yi(e,1):[]}function Ha(e){return e&&e.length?e[0]:i}var Wa=Ji((function(e){var t=Nt(e,ys);return t.length&&t[0]===e[0]?Ri(t):[]})),Ya=Ji((function(e){var t=Ga(e),n=Nt(e,ys);return t===Ga(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ri(n,ca(t,2)):[]})),Ka=Ji((function(e){var t=Ga(e),n=Nt(e,ys);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ri(n,i,t):[]}));function Ga(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Ja=Ji(Xa);function Xa(e,t){return e&&e.length&&t&&t.length?Wi(e,t):e}var Qa=na((function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Yi(e,Nt(t,(function(e){return va(e,n)?+e:e})).sort(As)),i}));function Za(e){return null==e?e:xn.call(e)}var er=Ji((function(e){return ds(yi(e,1,Wr,!0))})),tr=Ji((function(e){var t=Ga(e);return Wr(t)&&(t=i),ds(yi(e,1,Wr,!0),ca(t,2))})),nr=Ji((function(e){var t=Ga(e);return t="function"==typeof t?t:i,ds(yi(e,1,Wr,!0),i,t)}));function ir(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Wr(e))return t=vn(e.length,t),!0})),Jt(t,(function(t){return Nt(e,Wt(t))}))}function sr(e,t){if(!e||!e.length)return[];var n=ir(e);return null==t?n:Nt(n,(function(e){return At(t,i,e)}))}var ar=Ji((function(e,t){return Wr(e)?ui(e,t):[]})),rr=Ji((function(e){return ms(Ct(e,Wr))})),or=Ji((function(e){var t=Ga(e);return Wr(t)&&(t=i),ms(Ct(e,Wr),ca(t,2))})),cr=Ji((function(e){var t=Ga(e);return t="function"==typeof t?t:i,ms(Ct(e,Wr),i,t)})),lr=Ji(ir);var dr=Ji((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sr(e,n)}));function ur(e){var t=$n(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var hr=na((function(e){var t=e.length,n=t?e[0]:0,s=this.__wrapped__,a=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&s instanceof Vn&&va(n)?((s=s.slice(n,+n+(t?1:0))).__actions__.push({func:pr,args:[a],thisArg:i}),new qn(s,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)}));var fr=Cs((function(e,t,n){Ue.call(e,n)?++e[n]:ai(e,n,1)}));var mr=Ms(Ba),gr=Ms(qa);function yr(e,t){return(qr(e)?kt:pi)(e,ca(t,3))}function vr(e,t){return(qr(e)?Rt:hi)(e,ca(t,3))}var _r=Cs((function(e,t,n){Ue.call(e,n)?e[n].push(t):ai(e,n,[t])}));var br=Ji((function(e,t,i){var s=-1,a="function"==typeof t,r=Hr(e)?n(e.length):[];return pi(e,(function(e){r[++s]=a?At(t,e,i):Li(e,t,i)})),r})),wr=Cs((function(e,t,n){ai(e,n,t)}));function Ir(e,t){return(qr(e)?Nt:Di)(e,ca(t,3))}var xr=Cs((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Er=Ji((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_a(e,t[0],t[1])?t=[]:n>2&&_a(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,yi(t,1),[])})),Sr=lt||function(){return ft.Date.now()};function Ar(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xs(e,d,i,i,i,i,t)}function Tr(e,t){var n;if("function"!=typeof t)throw new Re(s);return e=fo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var kr=Ji((function(e,t,n){var i=1;if(n.length){var s=dn(n,oa(kr));i|=c}return Xs(e,i,t,n,s)})),Rr=Ji((function(e,t,n){var i=3;if(n.length){var s=dn(n,oa(Rr));i|=c}return Xs(t,i,e,n,s)}));function Lr(e,t,n){var a,r,o,c,l,d,u=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new Re(s);function m(t){var n=a,s=r;return a=r=i,u=t,c=e.apply(s,n)}function g(e){var n=e-d;return d===i||n>=t||n<0||h&&e-u>=o}function y(){var e=Sr();if(g(e))return v(e);l=La(y,function(e){var n=t-(e-d);return h?_n(n,o-(e-u)):n}(e))}function v(e){return l=i,f&&a?m(e):(a=r=i,c)}function _(){var e=Sr(),n=g(e);if(a=arguments,r=this,d=e,n){if(l===i)return function(e){return u=e,l=La(y,t),p?m(e):c}(d);if(h)return Is(l),l=La(y,t),m(d)}return l===i&&(l=La(y,t)),c}return t=go(t)||0,Zr(n)&&(p=!!n.leading,o=(h="maxWait"in n)?vn(go(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),_.cancel=function(){l!==i&&Is(l),u=0,a=d=r=l=i},_.flush=function(){return l===i?c:v(Sr())},_}var Cr=Ji((function(e,t){return di(e,1,t)})),Or=Ji((function(e,t,n){return di(e,go(t)||0,n)}));function Fr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(s);var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var r=e.apply(this,i);return n.cache=a.set(s,r)||a,r};return n.cache=new(Fr.Cache||Yn),n}function Nr(e){if("function"!=typeof e)throw new Re(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fr.Cache=Yn;var Ur=bs((function(e,t){var n=(t=1==t.length&&qr(t[0])?Nt(t[0],Qt(ca())):Nt(yi(t,1),Qt(ca()))).length;return Ji((function(i){for(var s=-1,a=_n(i.length,n);++s<a;)i[s]=t[s].call(this,i[s]);return At(e,this,i)}))})),jr=Ji((function(e,t){var n=dn(t,oa(jr));return Xs(e,c,i,t,n)})),Pr=Ji((function(e,t){var n=dn(t,oa(Pr));return Xs(e,l,i,t,n)})),Mr=na((function(e,t){return Xs(e,u,i,i,i,t)}));function Dr(e,t){return e===t||e!=e&&t!=t}var $r=Ws(Ai),zr=Ws((function(e,t){return e>=t})),Br=Ci(function(){return arguments}())?Ci:function(e){return eo(e)&&Ue.call(e,"callee")&&!Ke.call(e,"callee")},qr=n.isArray,Vr=bt?Qt(bt):function(e){return eo(e)&&Si(e)==F};function Hr(e){return null!=e&&Qr(e.length)&&!Jr(e)}function Wr(e){return eo(e)&&Hr(e)}var Yr=vt||gc,Kr=wt?Qt(wt):function(e){return eo(e)&&Si(e)==b};function Gr(e){if(!eo(e))return!1;var t=Si(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!io(e)}function Jr(e){if(!Zr(e))return!1;var t=Si(e);return t==I||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xr(e){return"number"==typeof e&&e==fo(e)}function Qr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Zr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eo(e){return null!=e&&"object"==typeof e}var to=It?Qt(It):function(e){return eo(e)&&fa(e)==E};function no(e){return"number"==typeof e||eo(e)&&Si(e)==S}function io(e){if(!eo(e)||Si(e)!=A)return!1;var t=We(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==De}var so=xt?Qt(xt):function(e){return eo(e)&&Si(e)==k};var ao=Et?Qt(Et):function(e){return eo(e)&&fa(e)==R};function ro(e){return"string"==typeof e||!qr(e)&&eo(e)&&Si(e)==L}function oo(e){return"symbol"==typeof e||eo(e)&&Si(e)==C}var co=St?Qt(St):function(e){return eo(e)&&Qr(e.length)&&!!ot[Si(e)]};var lo=Ws(Mi),uo=Ws((function(e,t){return e<=t}));function po(e){if(!e)return[];if(Hr(e))return ro(e)?fn(e):Rs(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=fa(e);return(t==E?cn:t==R?un:$o)(e)}function ho(e){return e?(e=go(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fo(e){var t=ho(e),n=t%1;return t==t?n?t-n:t:0}function mo(e){return e?oi(fo(e),0,m):0}function go(e){if("number"==typeof e)return e;if(oo(e))return f;if(Zr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ge.test(e);return n||ve.test(e)?ut(e.slice(2),n?2:8):me.test(e)?f:+e}function yo(e){return Ls(e,Oo(e))}function vo(e){return null==e?"":ls(e)}var _o=Os((function(e,t){if(xa(t)||Hr(t))Ls(t,Co(t),e);else for(var n in t)Ue.call(t,n)&&ti(e,n,t[n])})),bo=Os((function(e,t){Ls(t,Oo(t),e)})),wo=Os((function(e,t,n,i){Ls(t,Oo(t),e,i)})),Io=Os((function(e,t,n,i){Ls(t,Co(t),e,i)})),xo=na(ri);var Eo=Ji((function(e,t){e=Ae(e);var n=-1,s=t.length,a=s>2?t[2]:i;for(a&&_a(t[0],t[1],a)&&(s=1);++n<s;)for(var r=t[n],o=Oo(r),c=-1,l=o.length;++c<l;){var d=o[c],u=e[d];(u===i||Dr(u,Oe[d])&&!Ue.call(e,d))&&(e[d]=r[d])}return e})),So=Ji((function(e){return e.push(i,Zs),At(No,i,e)}));function Ao(e,t,n){var s=null==e?i:xi(e,t);return s===i?n:s}function To(e,t){return null!=e&&ma(e,t,ki)}var ko=zs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),ec(ic)),Ro=zs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]}),ca),Lo=Ji(Li);function Co(e){return Hr(e)?Jn(e):ji(e)}function Oo(e){return Hr(e)?Jn(e,!0):Pi(e)}var Fo=Os((function(e,t,n){Bi(e,t,n)})),No=Os((function(e,t,n,i){Bi(e,t,n,i)})),Uo=na((function(e,t){var n={};if(null==e)return n;var i=!1;t=Nt(t,(function(t){return t=_s(t,e),i||(i=t.length>1),t})),Ls(e,sa(e),n),i&&(n=ci(n,7,ea));for(var s=t.length;s--;)us(n,t[s]);return n}));var jo=na((function(e,t){return null==e?{}:function(e,t){return Hi(e,t,(function(t,n){return To(e,n)}))}(e,t)}));function Po(e,t){if(null==e)return{};var n=Nt(sa(e),(function(e){return[e]}));return t=ca(t),Hi(e,n,(function(e,n){return t(e,n[0])}))}var Mo=Js(Co),Do=Js(Oo);function $o(e){return null==e?[]:Zt(e,Co(e))}var zo=js((function(e,t,n){return t=t.toLowerCase(),e+(n?Bo(t):t)}));function Bo(e){return Jo(vo(e).toLowerCase())}function qo(e){return(e=vo(e))&&e.replace(be,sn).replace(et,"")}var Vo=js((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ho=js((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Wo=Us("toLowerCase");var Yo=js((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ko=js((function(e,t,n){return e+(n?" ":"")+Jo(t)}));var Go=js((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Jo=Us("toUpperCase");function Xo(e,t,n){return e=vo(e),(t=n?i:t)===i?function(e){return st.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qo=Ji((function(e,t){try{return At(e,i,t)}catch(e){return Gr(e)?e:new xe(e)}})),Zo=na((function(e,t){return kt(t,(function(t){t=ja(t),ai(e,t,kr(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Ds(),nc=Ds(!0);function ic(e){return e}function sc(e){return Ui("function"==typeof e?e:ci(e,1))}var ac=Ji((function(e,t){return function(n){return Li(n,e,t)}})),rc=Ji((function(e,t){return function(n){return Li(e,n,t)}}));function oc(e,t,n){var i=Co(t),s=Ii(t,i);null!=n||Zr(t)&&(s.length||!i.length)||(n=t,t=e,e=this,s=Ii(t,Co(t)));var a=!(Zr(n)&&"chain"in n&&!n.chain),r=Jr(e);return kt(s,(function(n){var i=t[n];e[n]=i,r&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Rs(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ut([this.value()],arguments))})})),e}function cc(){}var lc=qs(Nt),dc=qs(Lt),uc=qs(Mt);function pc(e){return ba(e)?Wt(ja(e)):function(e){return function(t){return xi(t,e)}}(e)}var hc=Hs(),fc=Hs(!0);function mc(){return[]}function gc(){return!1}var yc=Bs((function(e,t){return e+t}),0),vc=Ks("ceil"),_c=Bs((function(e,t){return e/t}),1),bc=Ks("floor");var wc,Ic=Bs((function(e,t){return e*t}),1),xc=Ks("round"),Ec=Bs((function(e,t){return e-t}),0);return $n.after=function(e,t){if("function"!=typeof t)throw new Re(s);return e=fo(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Ar,$n.assign=_o,$n.assignIn=bo,$n.assignInWith=wo,$n.assignWith=Io,$n.at=xo,$n.before=Tr,$n.bind=kr,$n.bindAll=Zo,$n.bindKey=Rr,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qr(e)?e:[e]},$n.chain=ur,$n.chunk=function(e,t,s){t=(s?_a(e,t,s):t===i)?1:vn(fo(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var r=0,o=0,c=n(ht(a/t));r<a;)c[o++]=is(e,r,r+=t);return c},$n.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,s=[];++t<n;){var a=e[t];a&&(s[i++]=a)}return s},$n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Ut(qr(i)?Rs(i):[i],yi(t,1))},$n.cond=function(e){var t=null==e?0:e.length,n=ca();return e=t?Nt(e,(function(e){if("function"!=typeof e[1])throw new Re(s);return[n(e[0]),e[1]]})):[],Ji((function(n){for(var i=-1;++i<t;){var s=e[i];if(At(s[0],this,n))return At(s[1],this,n)}}))},$n.conforms=function(e){return function(e){var t=Co(e);return function(n){return li(n,e,t)}}(ci(e,1))},$n.constant=ec,$n.countBy=fr,$n.create=function(e,t){var n=zn(e);return null==t?n:si(n,t)},$n.curry=function e(t,n,s){var a=Xs(t,8,i,i,i,i,i,n=s?i:n);return a.placeholder=e.placeholder,a},$n.curryRight=function e(t,n,s){var a=Xs(t,o,i,i,i,i,i,n=s?i:n);return a.placeholder=e.placeholder,a},$n.debounce=Lr,$n.defaults=Eo,$n.defaultsDeep=So,$n.defer=Cr,$n.delay=Or,$n.difference=Da,$n.differenceBy=$a,$n.differenceWith=za,$n.drop=function(e,t,n){var s=null==e?0:e.length;return s?is(e,(t=n||t===i?1:fo(t))<0?0:t,s):[]},$n.dropRight=function(e,t,n){var s=null==e?0:e.length;return s?is(e,0,(t=s-(t=n||t===i?1:fo(t)))<0?0:t):[]},$n.dropRightWhile=function(e,t){return e&&e.length?hs(e,ca(t,3),!0,!0):[]},$n.dropWhile=function(e,t){return e&&e.length?hs(e,ca(t,3),!0):[]},$n.fill=function(e,t,n,s){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&_a(e,t,n)&&(n=0,s=a),function(e,t,n,s){var a=e.length;for((n=fo(n))<0&&(n=-n>a?0:a+n),(s=s===i||s>a?a:fo(s))<0&&(s+=a),s=n>s?0:mo(s);n<s;)e[n++]=t;return e}(e,t,n,s)):[]},$n.filter=function(e,t){return(qr(e)?Ct:gi)(e,ca(t,3))},$n.flatMap=function(e,t){return yi(Ir(e,t),1)},$n.flatMapDeep=function(e,t){return yi(Ir(e,t),p)},$n.flatMapDepth=function(e,t,n){return n=n===i?1:fo(n),yi(Ir(e,t),n)},$n.flatten=Va,$n.flattenDeep=function(e){return(null==e?0:e.length)?yi(e,p):[]},$n.flattenDepth=function(e,t){return(null==e?0:e.length)?yi(e,t=t===i?1:fo(t)):[]},$n.flip=function(e){return Xs(e,512)},$n.flow=tc,$n.flowRight=nc,$n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var s=e[t];i[s[0]]=s[1]}return i},$n.functions=function(e){return null==e?[]:Ii(e,Co(e))},$n.functionsIn=function(e){return null==e?[]:Ii(e,Oo(e))},$n.groupBy=_r,$n.initial=function(e){return(null==e?0:e.length)?is(e,0,-1):[]},$n.intersection=Wa,$n.intersectionBy=Ya,$n.intersectionWith=Ka,$n.invert=ko,$n.invertBy=Ro,$n.invokeMap=br,$n.iteratee=sc,$n.keyBy=wr,$n.keys=Co,$n.keysIn=Oo,$n.map=Ir,$n.mapKeys=function(e,t){var n={};return t=ca(t,3),bi(e,(function(e,i,s){ai(n,t(e,i,s),e)})),n},$n.mapValues=function(e,t){var n={};return t=ca(t,3),bi(e,(function(e,i,s){ai(n,i,t(e,i,s))})),n},$n.matches=function(e){return $i(ci(e,1))},$n.matchesProperty=function(e,t){return zi(e,ci(t,1))},$n.memoize=Fr,$n.merge=Fo,$n.mergeWith=No,$n.method=ac,$n.methodOf=rc,$n.mixin=oc,$n.negate=Nr,$n.nthArg=function(e){return e=fo(e),Ji((function(t){return qi(t,e)}))},$n.omit=Uo,$n.omitBy=function(e,t){return Po(e,Nr(ca(t)))},$n.once=function(e){return Tr(2,e)},$n.orderBy=function(e,t,n,s){return null==e?[]:(qr(t)||(t=null==t?[]:[t]),qr(n=s?i:n)||(n=null==n?[]:[n]),Vi(e,t,n))},$n.over=lc,$n.overArgs=Ur,$n.overEvery=dc,$n.overSome=uc,$n.partial=jr,$n.partialRight=Pr,$n.partition=xr,$n.pick=jo,$n.pickBy=Po,$n.property=pc,$n.propertyOf=function(e){return function(t){return null==e?i:xi(e,t)}},$n.pull=Ja,$n.pullAll=Xa,$n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wi(e,t,ca(n,2)):e},$n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wi(e,t,i,n):e},$n.pullAt=Qa,$n.range=hc,$n.rangeRight=fc,$n.rearg=Mr,$n.reject=function(e,t){return(qr(e)?Ct:gi)(e,Nr(ca(t,3)))},$n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,s=[],a=e.length;for(t=ca(t,3);++i<a;){var r=e[i];t(r,i,e)&&(n.push(r),s.push(i))}return Yi(e,s),n},$n.rest=function(e,t){if("function"!=typeof e)throw new Re(s);return Ji(e,t=t===i?t:fo(t))},$n.reverse=Za,$n.sampleSize=function(e,t,n){return t=(n?_a(e,t,n):t===i)?1:fo(t),(qr(e)?Qn:Qi)(e,t)},$n.set=function(e,t,n){return null==e?e:Zi(e,t,n)},$n.setWith=function(e,t,n,s){return s="function"==typeof s?s:i,null==e?e:Zi(e,t,n,s)},$n.shuffle=function(e){return(qr(e)?Zn:ns)(e)},$n.slice=function(e,t,n){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&_a(e,t,n)?(t=0,n=s):(t=null==t?0:fo(t),n=n===i?s:fo(n)),is(e,t,n)):[]},$n.sortBy=Er,$n.sortedUniq=function(e){return e&&e.length?os(e):[]},$n.sortedUniqBy=function(e,t){return e&&e.length?os(e,ca(t,2)):[]},$n.split=function(e,t,n){return n&&"number"!=typeof n&&_a(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=vo(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=ls(t))&&on(e)?ws(fn(e),0,n):e.split(t,n):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new Re(s);return t=null==t?0:vn(fo(t),0),Ji((function(n){var i=n[t],s=ws(n,0,t);return i&&Ut(s,i),At(e,this,s)}))},$n.tail=function(e){var t=null==e?0:e.length;return t?is(e,1,t):[]},$n.take=function(e,t,n){return e&&e.length?is(e,0,(t=n||t===i?1:fo(t))<0?0:t):[]},$n.takeRight=function(e,t,n){var s=null==e?0:e.length;return s?is(e,(t=s-(t=n||t===i?1:fo(t)))<0?0:t,s):[]},$n.takeRightWhile=function(e,t){return e&&e.length?hs(e,ca(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?hs(e,ca(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new Re(s);return Zr(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Lr(e,t,{leading:i,maxWait:t,trailing:a})},$n.thru=pr,$n.toArray=po,$n.toPairs=Mo,$n.toPairsIn=Do,$n.toPath=function(e){return qr(e)?Nt(e,ja):oo(e)?[e]:Rs(Ua(vo(e)))},$n.toPlainObject=yo,$n.transform=function(e,t,n){var i=qr(e),s=i||Yr(e)||co(e);if(t=ca(t,4),null==n){var a=e&&e.constructor;n=s?i?new a:[]:Zr(e)&&Jr(a)?zn(We(e)):{}}return(s?kt:bi)(e,(function(e,i,s){return t(n,e,i,s)})),n},$n.unary=function(e){return Ar(e,1)},$n.union=er,$n.unionBy=tr,$n.unionWith=nr,$n.uniq=function(e){return e&&e.length?ds(e):[]},$n.uniqBy=function(e,t){return e&&e.length?ds(e,ca(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ds(e,i,t):[]},$n.unset=function(e,t){return null==e||us(e,t)},$n.unzip=ir,$n.unzipWith=sr,$n.update=function(e,t,n){return null==e?e:ps(e,t,vs(n))},$n.updateWith=function(e,t,n,s){return s="function"==typeof s?s:i,null==e?e:ps(e,t,vs(n),s)},$n.values=$o,$n.valuesIn=function(e){return null==e?[]:Zt(e,Oo(e))},$n.without=ar,$n.words=Xo,$n.wrap=function(e,t){return jr(vs(t),e)},$n.xor=rr,$n.xorBy=or,$n.xorWith=cr,$n.zip=lr,$n.zipObject=function(e,t){return gs(e||[],t||[],ti)},$n.zipObjectDeep=function(e,t){return gs(e||[],t||[],Zi)},$n.zipWith=dr,$n.entries=Mo,$n.entriesIn=Do,$n.extend=bo,$n.extendWith=wo,oc($n,$n),$n.add=yc,$n.attempt=Qo,$n.camelCase=zo,$n.capitalize=Bo,$n.ceil=vc,$n.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=go(n))==n?n:0),t!==i&&(t=(t=go(t))==t?t:0),oi(go(e),t,n)},$n.clone=function(e){return ci(e,4)},$n.cloneDeep=function(e){return ci(e,5)},$n.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:i)},$n.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:i)},$n.conformsTo=function(e,t){return null==t||li(e,t,Co(t))},$n.deburr=qo,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=_c,$n.endsWith=function(e,t,n){e=vo(e),t=ls(t);var s=e.length,a=n=n===i?s:oi(fo(n),0,s);return(n-=t.length)>=0&&e.slice(n,a)==t},$n.eq=Dr,$n.escape=function(e){return(e=vo(e))&&J.test(e)?e.replace(K,an):e},$n.escapeRegExp=function(e){return(e=vo(e))&&se.test(e)?e.replace(ie,"\\$&"):e},$n.every=function(e,t,n){var s=qr(e)?Lt:fi;return n&&_a(e,t,n)&&(t=i),s(e,ca(t,3))},$n.find=mr,$n.findIndex=Ba,$n.findKey=function(e,t){return $t(e,ca(t,3),bi)},$n.findLast=gr,$n.findLastIndex=qa,$n.findLastKey=function(e,t){return $t(e,ca(t,3),wi)},$n.floor=bc,$n.forEach=yr,$n.forEachRight=vr,$n.forIn=function(e,t){return null==e?e:vi(e,ca(t,3),Oo)},$n.forInRight=function(e,t){return null==e?e:_i(e,ca(t,3),Oo)},$n.forOwn=function(e,t){return e&&bi(e,ca(t,3))},$n.forOwnRight=function(e,t){return e&&wi(e,ca(t,3))},$n.get=Ao,$n.gt=$r,$n.gte=zr,$n.has=function(e,t){return null!=e&&ma(e,t,Ti)},$n.hasIn=To,$n.head=Ha,$n.identity=ic,$n.includes=function(e,t,n,i){e=Hr(e)?e:$o(e),n=n&&!i?fo(n):0;var s=e.length;return n<0&&(n=vn(s+n,0)),ro(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&Bt(e,t,n)>-1},$n.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:fo(n);return s<0&&(s=vn(i+s,0)),Bt(e,t,s)},$n.inRange=function(e,t,n){return t=ho(t),n===i?(n=t,t=0):n=ho(n),function(e,t,n){return e>=_n(t,n)&&e<vn(t,n)}(e=go(e),t,n)},$n.invoke=Lo,$n.isArguments=Br,$n.isArray=qr,$n.isArrayBuffer=Vr,$n.isArrayLike=Hr,$n.isArrayLikeObject=Wr,$n.isBoolean=function(e){return!0===e||!1===e||eo(e)&&Si(e)==_},$n.isBuffer=Yr,$n.isDate=Kr,$n.isElement=function(e){return eo(e)&&1===e.nodeType&&!io(e)},$n.isEmpty=function(e){if(null==e)return!0;if(Hr(e)&&(qr(e)||"string"==typeof e||"function"==typeof e.splice||Yr(e)||co(e)||Br(e)))return!e.length;var t=fa(e);if(t==E||t==R)return!e.size;if(xa(e))return!ji(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},$n.isEqual=function(e,t){return Oi(e,t)},$n.isEqualWith=function(e,t,n){var s=(n="function"==typeof n?n:i)?n(e,t):i;return s===i?Oi(e,t,i,n):!!s},$n.isError=Gr,$n.isFinite=function(e){return"number"==typeof e&&_t(e)},$n.isFunction=Jr,$n.isInteger=Xr,$n.isLength=Qr,$n.isMap=to,$n.isMatch=function(e,t){return e===t||Fi(e,t,da(t))},$n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Fi(e,t,da(t),n)},$n.isNaN=function(e){return no(e)&&e!=+e},$n.isNative=function(e){if(Ia(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ni(e)},$n.isNil=function(e){return null==e},$n.isNull=function(e){return null===e},$n.isNumber=no,$n.isObject=Zr,$n.isObjectLike=eo,$n.isPlainObject=io,$n.isRegExp=so,$n.isSafeInteger=function(e){return Xr(e)&&e>=-9007199254740991&&e<=h},$n.isSet=ao,$n.isString=ro,$n.isSymbol=oo,$n.isTypedArray=co,$n.isUndefined=function(e){return e===i},$n.isWeakMap=function(e){return eo(e)&&fa(e)==O},$n.isWeakSet=function(e){return eo(e)&&"[object WeakSet]"==Si(e)},$n.join=function(e,t){return null==e?"":Dt.call(e,t)},$n.kebabCase=Vo,$n.last=Ga,$n.lastIndexOf=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var a=s;return n!==i&&(a=(a=fo(n))<0?vn(s+a,0):_n(a,s-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):zt(e,Vt,a,!0)},$n.lowerCase=Ho,$n.lowerFirst=Wo,$n.lt=lo,$n.lte=uo,$n.max=function(e){return e&&e.length?mi(e,ic,Ai):i},$n.maxBy=function(e,t){return e&&e.length?mi(e,ca(t,2),Ai):i},$n.mean=function(e){return Ht(e,ic)},$n.meanBy=function(e,t){return Ht(e,ca(t,2))},$n.min=function(e){return e&&e.length?mi(e,ic,Mi):i},$n.minBy=function(e,t){return e&&e.length?mi(e,ca(t,2),Mi):i},$n.stubArray=mc,$n.stubFalse=gc,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=Ic,$n.nth=function(e,t){return e&&e.length?qi(e,fo(t)):i},$n.noConflict=function(){return ft._===this&&(ft._=$e),this},$n.noop=cc,$n.now=Sr,$n.pad=function(e,t,n){e=vo(e);var i=(t=fo(t))?hn(e):0;if(!t||i>=t)return e;var s=(t-i)/2;return Vs(mt(s),n)+e+Vs(ht(s),n)},$n.padEnd=function(e,t,n){e=vo(e);var i=(t=fo(t))?hn(e):0;return t&&i<t?e+Vs(t-i,n):e},$n.padStart=function(e,t,n){e=vo(e);var i=(t=fo(t))?hn(e):0;return t&&i<t?Vs(t-i,n)+e:e},$n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(vo(e).replace(ae,""),t||0)},$n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&_a(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ho(e),t===i?(t=e,e=0):t=ho(t)),e>t){var s=e;e=t,t=s}if(n||e%1||t%1){var a=In();return _n(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Ki(e,t)},$n.reduce=function(e,t,n){var i=qr(e)?jt:Kt,s=arguments.length<3;return i(e,ca(t,4),n,s,pi)},$n.reduceRight=function(e,t,n){var i=qr(e)?Pt:Kt,s=arguments.length<3;return i(e,ca(t,4),n,s,hi)},$n.repeat=function(e,t,n){return t=(n?_a(e,t,n):t===i)?1:fo(t),Gi(vo(e),t)},$n.replace=function(){var e=arguments,t=vo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,n){var s=-1,a=(t=_s(t,e)).length;for(a||(a=1,e=i);++s<a;){var r=null==e?i:e[ja(t[s])];r===i&&(s=a,r=n),e=Jr(r)?r.call(e):r}return e},$n.round=xc,$n.runInContext=e,$n.sample=function(e){return(qr(e)?Xn:Xi)(e)},$n.size=function(e){if(null==e)return 0;if(Hr(e))return ro(e)?hn(e):e.length;var t=fa(e);return t==E||t==R?e.size:ji(e).length},$n.snakeCase=Yo,$n.some=function(e,t,n){var s=qr(e)?Mt:ss;return n&&_a(e,t,n)&&(t=i),s(e,ca(t,3))},$n.sortedIndex=function(e,t){return as(e,t)},$n.sortedIndexBy=function(e,t,n){return rs(e,t,ca(n,2))},$n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=as(e,t);if(i<n&&Dr(e[i],t))return i}return-1},$n.sortedLastIndex=function(e,t){return as(e,t,!0)},$n.sortedLastIndexBy=function(e,t,n){return rs(e,t,ca(n,2),!0)},$n.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=as(e,t,!0)-1;if(Dr(e[n],t))return n}return-1},$n.startCase=Ko,$n.startsWith=function(e,t,n){return e=vo(e),n=null==n?0:oi(fo(n),0,e.length),t=ls(t),e.slice(n,n+t.length)==t},$n.subtract=Ec,$n.sum=function(e){return e&&e.length?Gt(e,ic):0},$n.sumBy=function(e,t){return e&&e.length?Gt(e,ca(t,2)):0},$n.template=function(e,t,n){var s=$n.templateSettings;n&&_a(e,t,n)&&(t=i),e=vo(e),t=wo({},t,s,Qs);var a,r,o=wo({},t.imports,s.imports,Qs),c=Co(o),l=Zt(o,c),d=0,u=t.interpolate||we,p="__p += '",h=Te((t.escape||we).source+"|"+u.source+"|"+(u===Z?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,(function(t,n,i,s,o,c){return i||(i=s),p+=e.slice(d,c).replace(Ie,rn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),o&&(r=!0,p+="';\n"+o+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),d=c+t.length,t})),p+="';\n";var m=Ue.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(r?p.replace(V,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Qo((function(){return Ee(c,f+"return "+p).apply(i,l)}));if(g.source=p,Gr(g))throw g;return g},$n.times=function(e,t){if((e=fo(e))<1||e>h)return[];var n=m,i=_n(e,m);t=ca(t),e-=m;for(var s=Jt(i,t);++n<e;)t(n);return s},$n.toFinite=ho,$n.toInteger=fo,$n.toLength=mo,$n.toLower=function(e){return vo(e).toLowerCase()},$n.toNumber=go,$n.toSafeInteger=function(e){return e?oi(fo(e),-9007199254740991,h):0===e?e:0},$n.toString=vo,$n.toUpper=function(e){return vo(e).toUpperCase()},$n.trim=function(e,t,n){if((e=vo(e))&&(n||t===i))return Xt(e);if(!e||!(t=ls(t)))return e;var s=fn(e),a=fn(t);return ws(s,tn(s,a),nn(s,a)+1).join("")},$n.trimEnd=function(e,t,n){if((e=vo(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ls(t)))return e;var s=fn(e);return ws(s,0,nn(s,fn(t))+1).join("")},$n.trimStart=function(e,t,n){if((e=vo(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=ls(t)))return e;var s=fn(e);return ws(s,tn(s,fn(t))).join("")},$n.truncate=function(e,t){var n=30,s="...";if(Zr(t)){var a="separator"in t?t.separator:a;n="length"in t?fo(t.length):n,s="omission"in t?ls(t.omission):s}var r=(e=vo(e)).length;if(on(e)){var o=fn(e);r=o.length}if(n>=r)return e;var c=n-hn(s);if(c<1)return s;var l=o?ws(o,0,c).join(""):e.slice(0,c);if(a===i)return l+s;if(o&&(c+=l.length-c),so(a)){if(e.slice(c).search(a)){var d,u=l;for(a.global||(a=Te(a.source,vo(fe.exec(a))+"g")),a.lastIndex=0;d=a.exec(u);)var p=d.index;l=l.slice(0,p===i?c:p)}}else if(e.indexOf(ls(a),c)!=c){var h=l.lastIndexOf(a);h>-1&&(l=l.slice(0,h))}return l+s},$n.unescape=function(e){return(e=vo(e))&&G.test(e)?e.replace(Y,gn):e},$n.uniqueId=function(e){var t=++je;return vo(e)+t},$n.upperCase=Go,$n.upperFirst=Jo,$n.each=yr,$n.eachRight=vr,$n.first=Ha,oc($n,(wc={},bi($n,(function(e,t){Ue.call($n.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),$n.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){$n[e].placeholder=$n})),kt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:vn(fo(n),0);var s=this.__filtered__&&!t?new Vn(this):this.clone();return s.__filtered__?s.__takeCount__=_n(n,s.__takeCount__):s.__views__.push({size:_n(n,m),type:e+(s.__dir__<0?"Right":"")}),s},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ic)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Ji((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Li(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Nr(ca(e)))},Vn.prototype.slice=function(e,t){e=fo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fo(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},bi(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),a=$n[s?"take"+("last"==t?"Right":""):t],r=s||/^find/.test(t);a&&($n.prototype[t]=function(){var t=this.__wrapped__,o=s?[1]:arguments,c=t instanceof Vn,l=o[0],d=c||qr(t),u=function(e){var t=a.apply($n,Ut([e],o));return s&&p?t[0]:t};d&&n&&"function"==typeof l&&1!=l.length&&(c=d=!1);var p=this.__chain__,h=!!this.__actions__.length,f=r&&!p,m=c&&!h;if(!r&&d){t=m?t:new Vn(this);var g=e.apply(t,o);return g.__actions__.push({func:pr,args:[u],thisArg:i}),new qn(g,p)}return f&&m?e.apply(this,o):(g=this.thru(u),f?s?g.value()[0]:g.value():g)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var s=this.value();return t.apply(qr(s)?s:[],e)}return this[n]((function(n){return t.apply(qr(n)?n:[],e)}))}})),bi(Vn.prototype,(function(e,t){var n=$n[t];if(n){var i=n.name+"";Ue.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[$s(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Rs(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Rs(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Rs(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qr(e),i=t<0,s=n?e.length:0,a=function(e,t,n){var i=-1,s=n.length;for(;++i<s;){var a=n[i],r=a.size;switch(a.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=_n(t,e+r);break;case"takeRight":e=vn(e,t-r)}}return{start:e,end:t}}(0,s,this.__views__),r=a.start,o=a.end,c=o-r,l=i?o:r-1,d=this.__iteratees__,u=d.length,p=0,h=_n(c,this.__takeCount__);if(!n||!i&&s==c&&h==c)return fs(e,this.__actions__);var f=[];e:for(;c--&&p<h;){for(var m=-1,g=e[l+=t];++m<u;){var y=d[m],v=y.iteratee,_=y.type,b=v(g);if(2==_)g=b;else if(!b){if(1==_)continue e;break e}}f[p++]=g}return f},$n.prototype.at=hr,$n.prototype.chain=function(){return ur(this)},$n.prototype.commit=function(){return new qn(this.value(),this.__chain__)},$n.prototype.next=function(){this.__values__===i&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var s=Ma(n);s.__index__=0,s.__values__=i,t?a.__wrapped__=s:t=s;var a=s;n=n.__wrapped__}return a.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:pr,args:[Za],thisArg:i}),new qn(t,this.__chain__)}return this.thru(Za)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return fs(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Xe&&($n.prototype[Xe]=function(){return this}),$n}();gt?((gt.exports=yn)._=yn,mt._=yn):ft._=yn}).call(n)}(tl,tl.exports);var nl=tl.exports;const il={type:gc,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?_l.audio[nl.camelCase("introductionNs")]:_l.audio[nl.camelCase("introduction")],prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${cc.t("introduction.intro.text1")} </h3>\n <p> ${cc.t("introduction.intro.text2")} </p> \n <p> ${cc.t("introduction.intro.text3")} </p>\n </div>\n ${Jc?"":`<div class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})} </div>`}\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${cc.t("introduction.intro.text4")} </h3>\n <p> ${cc.t("introduction.intro.text5")} </p> \n <p> ${cc.t("introduction.intro.text6")} </p> \n <p> ${cc.t("introduction.intro.text3")} </p>\n </div>\n ${Jc?"":`<div class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>Jc?`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.continue")}`})} </button>`:"",on_start:()=>{document.body.style.cursor="none"}},sl={timeline:[{type:gc,stimulus:()=>_l.audio.postPracticeInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${cc.t("practice.postPracticeIntro.text1")}</h3>\n <p>${cc.t("practice.postPracticeIntro.text2")}</p>\n <p>${cc.t("practice.postPracticeIntro.text3")}</p>\n <p>${cc.t("practice.postPracticeIntro.text4")}</p>\n <p>${cc.t("practice.postPracticeIntro.text5")}</p>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>Jc?`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.continue")}`})} </button>`:""},{type:gc,stimulus:()=>_l.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${cc.t("reminderTexts.remember")}</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style="text-align:center;">${cc.t(Jc?"practice.postPracticeReminder.text1Mobile":"practice.postPracticeReminder.text1")}</p>\n <img width="70%" src="${_l.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style="text-align:center;">${cc.t(Jc?"practice.postPracticeReminder.text2Mobile":"practice.postPracticeReminder.text2")}</p>\n <img width="70%" src="${_l.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b>${cc.t("practice.postPracticeReminder.text3")}</b></p>\n <p><b>${cc.t("practice.postPracticeReminder.text4")}</b></p>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.begin")}`})} </div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>Jc?`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.begin")}`})} </button>`:"",on_finish:()=>{r.session.set("indexTracking",0)}}]},al={name:"fullscreen",parameters:{fullscreen_mode:{type:_r.BOOL,pretty_name:"Fullscreen mode",default:!0,array:!1},message:{type:_r.HTML_STRING,pretty_name:"Message",default:"<p>The experiment will switch to full screen mode when you press the button below</p>",array:!1},button_label:{type:_r.STRING,pretty_name:"Button label",default:"Continue",array:!1},delay_after:{type:_r.INT,pretty_name:"Delay after",default:1e3,array:!1}}};class rl{constructor(e){this.jsPsych=e}trial(e,t){"undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element?this.endTrial(e,!1,t):t.fullscreen_mode?this.showDisplay(e,t):(this.exitFullScreen(),this.endTrial(e,!0,t))}showDisplay(e,t){e.innerHTML=`\n ${t.message}\n <button id="jspsych-fullscreen-btn" class="jspsych-btn">${t.button_label}</button>\n `,e.querySelector("#jspsych-fullscreen-btn").addEventListener("click",(()=>{this.enterFullScreen(),this.endTrial(e,!0,t)}))}endTrial(e,t,n){e.innerHTML="",this.jsPsych.pluginAPI.setTimeout((()=>{var e={success:t};this.jsPsych.finishTrial(e)}),n.delay_after)}enterFullScreen(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}exitFullScreen(){(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0},t)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),s=this.jsPsych.getDisplayElement();!1===i.success?this.endTrial(s,!1,e):(this.trial(s,e),n(),this.jsPsych.pluginAPI.clickTarget(s.querySelector("#jspsych-fullscreen-btn"),this.jsPsych.randomization.sampleExGaussian(1e3,100,.005,!0)))}}rl.info=al;const ol={name:"html-multi-response",parameters:{stimulus:{type:_r.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:_r.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:_r.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:_r.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:_r.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:_r.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:_r.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:_r.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:_r.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:_r.BOOL,pretty_name:"Response ends trial",default:!0}}};class cl{constructor(e){this.jsPsych=e}trial(e,t){var n='<div id="jspsych-html-multi-response-stimulus">'+t.stimulus+"</div>",i=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?i=t.button_html:console.error("Error in html-multi-response plugin. The length of the button_html array does not equal the length of the button_choices array");else for(var s=0;s<t.button_choices.length;s++)i.push(t.button_html);n+='<div id="jspsych-html-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var a=i[s].replace(/%choice%/g,t.button_choices[s]);n+='<div class="jspsych-html-multi-response-button" style="display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-html-multi-response-button-'+s+'" data-choice="'+s+'">'+a+"</div>"}n+="</div>",null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;if("NO_KEYS"!=t.keyboard_choices)var r=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:function(n){e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded",null==c.key&&(c=Object.assign({source:"keyboard",button:null},n)),t.response_ends_trial&&l()},valid_responses:t.keyboard_choices,rt_method:"performance",persist:!1,allow_held_key:!1});var o=performance.now();for(s=0;s<t.button_choices.length;s++)e.querySelector("#jspsych-html-multi-response-button-"+s).addEventListener("click",(e=>{d(e.currentTarget.getAttribute("data-choice"))}));var c={rt:null,button:null,key:null,source:null};const l=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==r&&this.jsPsych.pluginAPI.cancelKeyboardResponse(r);var n={rt:c.rt,stimulus:t.stimulus,button_response:c.button,keyboard_response:c.key,response_source:c.source};e.innerHTML="",this.jsPsych.finishTrial(n)};function d(n){var i=performance.now(),s=Math.round(i-o);c.button=parseInt(n),c.rt=s,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var a=document.querySelectorAll(".jspsych-html-multi-response-button button"),r=0;r<a.length;r++)a[r].setAttribute("disabled","disabled");t.response_ends_trial&&l()}null!==t.stimulus_duration&&this.jsPsych.pluginAPI.setTimeout((()=>{e.querySelector("#jspsych-html-multi-response-stimulus").style.visibility="hidden"}),t.stimulus_duration),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(l,t.trial_duration)}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),keyboard_response:this.jsPsych.pluginAPI.getValidKey(e.keyboard_choices),button_response:null,response_source:"keyboard"},i={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),button_response:this.jsPsych.randomization.randomInt(0,e.button_choices.length-1),keyboard_response:null,response_source:"button"},s=Math.random()<.5?n:i,a=this.jsPsych.pluginAPI.mergeSimulationData(s,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,a),a}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),s=this.jsPsych.getDisplayElement();this.trial(s,e),n(),null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(s.querySelector(`div[data-choice="${i.button_response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))}}cl.info=ol;const ll={type:gc,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?_l.audio[nl.camelCase("halfwayNs")]:r.session.get("config").story?_l.audio[nl.camelCase(`${r.session("character")}Halfway`)]:"",prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${cc.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${cc.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n ${Jc?"":`<div class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})} </div>`}\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${_l.images[nl.camelCase(`${r.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle">\n <p> ${cc.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${cc.t("gameBreak.halfwayScreen.text4")}</p>\n </div>\n </div>\n </div>\n ${Jc?"":`<div class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.continue")}`})} </button>`,on_finish:()=>{r.session.set("indexTracking",0)}},dl={timeline:[{type:gc,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?_l.audio[nl.camelCase("endNs")]:r.session.get("config").story?_l.audio[nl.camelCase(`${r.session("character")}End`)]:"",prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${cc.t("gameBreak.endScreen.text1")} </h3>\n <p> ${cc.t("gameBreak.endScreen.text2")} </p> \n </div>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.save")}`})}</div>`}\n </div>`:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${_l.images.classroomBackground}" alt= "classroom" style="width:100%;"> \n </div>\n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3> ${cc.t("gameBreak.endScreen.text3")} </h3>\n <p> ${r.session("character_name")} ${cc.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${_l.images[nl.camelCase(`${r.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.save")}`})}</div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.save")}`})} </button>`,data:{save_trial:!1}},{timeline:[{type:cl,stimulus:()=>`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${cc.t("gameBreak.debrief.text1")}</h3>\n <p>${cc.t("gameBreak.debrief.text2")}</p>\n </div>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.close")}`})}</div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.close")}`})} </button>`}],conditional_function:()=>"demo"===r.session.get("config").userMode},{type:rl,fullscreen_mode:!1,delay_after:0}]},ul={timeline:[{type:gc,stimulus:()=>_l.audio.studentSelect,prompt:()=>Jc?`\n <div>\n <img id="mobile-classroom-bg" src=${_l.images.classroomBackground} alt="background"/>\n <h3>${cc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${cc.t(Jc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p>\n </div>`:` \n <div class="jspsych-content-modified">\n <div class="class-container">\n <img id="classroom-bg" src=${_l.images.classroomBackground} alt="background"> \n </div> \n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3>${cc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${cc.t(Jc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n ${Jc?"":`<div class="number">${[1,2,3,4].map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}</div>`}\n <div class="student ${Jc?"mobile-student-select-characters":""}">\n ${["dog","cat","bird","deer"].map((e=>`<img src=${_l.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${cc.t("navigation.studentSelect")} \n </div>\n </div>\n `,keyboard_choices:()=>Jc?"NO_KEYS":["1","2","3","4"],button_choices:()=>Jc?["1","2","3","4"]:[],button_html:()=>'<button class="grade-btn">%choice%</button>',prompt_above_buttons:()=>Jc,data:{save_trial:!1},on_load:()=>{if(Jc){document.getElementById("jspsych-audio-multi-response-btngroup").classList.add("mobile-audio-btn-container");const e=document.getElementById("jspsych-content");if(e){const t=document.createElement("div"),n=document.createTextNode(cc.t("characterSelect.studentSelect.paragraph3MobileBefore")),i=document.createTextNode(cc.t("characterSelect.studentSelect.paragraph3MobileAfter")),s=document.createElement("span");s.classList.add("yellow"),s.textContent=cc.t("characterSelect.studentSelect.paragraph3MobileSpan"),t.appendChild(n),t.appendChild(s),t.appendChild(i),t.classList.add("button");const a=document.createElement("div"),r=["dog","cat","bird","deer"].map((e=>{const t=document.createElement("img");return t.setAttribute("src",_l.images[e]),t.setAttribute("alt",e),t.classList.add("mobile-character-select"),t}));for(const e of r)a.appendChild(e);e.appendChild(a),e.appendChild(t)}}},on_finish:e=>{const t={1:{character:"dog",characterName:cc.t("characterSelect.studentCharacter.dog"),characterActivity:cc.t("characterSelect.studentActivity.dog")},2:{character:"cat",characterName:cc.t("characterSelect.studentCharacter.cat"),characterActivity:cc.t("characterSelect.studentActivity.cat")},3:{character:"bird",characterName:cc.t("characterSelect.studentCharacter.bird"),characterActivity:cc.t("characterSelect.studentActivity.bird")},4:{character:"deer",characterName:cc.t("characterSelect.studentCharacter.deer"),characterActivity:cc.t("characterSelect.studentActivity.deer")}};r.session.set("character",t[Jc?e.button_response+1:e.keyboard_response].character),r.session.set("character_name",t[Jc?e.button_response+1:e.keyboard_response].characterName),r.session.set("character_activity",t[Jc?e.button_response+1:e.keyboard_response].characterActivity)}},{type:gc,stimulus:()=>_l.audio[nl.camelCase(`${r.session("character")}Intro`)],prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${_l.images[nl.camelCase(`${r.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${cc.t("characterSelect.studentIntro.paragraph1")} ${r.session("character_name")}. </p>\n <p> ${cc.t("characterSelect.studentIntro.paragraph2")} ${r.session("character_activity")}. </p>\n <p> ${cc.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.continue")}`})} </button>`}],conditional_function:()=>!(!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6)},pl=(e,t,n)=>({timeline:[{type:cl,stimulus:()=>{if(0===r.session("indexTracking")){const t=setTimeout((()=>r.session.set("timeOut",!0)),n);r.session.set("timerId",t),"tosrec"!==e?r.session.set("currentCorpus",Qc[e]):r.session.set("currentCorpus",Qc[r.session("tosrecCorpusId")])}return`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${r.session("currentCorpus")[r.session("indexTracking")].sentence}</p>\n </div>`},prompt:()=>Jc?"":`\n <div> \n <img class="lower" src="${_l.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Jc?[cc.t("terms.false")[0].toUpperCase(),cc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Jc?[`<button class="mobile-stimulus-btn"><img src=${_l.images.leftArrowBlankShort} alt=${cc.t("terms.false")}/><span>${cc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${_l.images.rightArrowBlankShort} alt=${cc.t("terms.true")}/><span>${cc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Jc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"test_response"},on_finish:n=>{n.keyboard_response?"arrowleft"===n.keyboard_response?r.session.set("keyResponse","left"):r.session.set("keyResponse","right"):0===n.button_response?r.session.set("buttonResponse","left"):r.session.set("buttonResponse","right"),n.keyboard_response?n.correct=el.pluginAPI.compareKeys(r.session("keyResponse"),r.session("currentCorpus")[r.session("indexTracking")].direction):n.correct=0===n.button_response&&"left"===r.session("currentCorpus")[r.session("indexTracking")].direction||1===n.button_response&&"right"===r.session("currentCorpus")[r.session("indexTracking")].direction,n.correct?r.session.set("dataCorrect",1):r.session.set("dataCorrect",0),vl.addResponseData(n.rt,n.keyboard_response?n.keyboard_response:n.button_response,r.session("dataCorrect")),el.data.addDataToLastTrial({save_trial:!r.session("timeOut"),pid:r.session.get("config").pid,subtask:e,blockId:t,corpusId:"tosrec"!==e?e:r.session("tosrecCorpusId"),trialNumBlock:r.session("indexTracking")+1,itemId:r.session("currentCorpus")[r.session("indexTracking")].itemId,testsetId:r.session("currentCorpus")[r.session("indexTracking")].testsetId,item:r.session("currentCorpus")[r.session("indexTracking")].sentence,truefalse:r.session("currentCorpus")[r.session("indexTracking")].answer,correct:r.session("dataCorrect"),story:r.session.get("config").story})}},{type:gc,stimulus:()=>_l.audio.neutralSoundSub,prompt:()=>Jc?'<div class=stimulus_div>\n <p id="mobile-placeholder-stimulus">Invisible Place holder text</p>\n </div>':`\n <div>\n <img class="lower" src="${_l.images.roarSreKeyboard}" alt="arrow keys">\n </div>`,keyboard_choices:"NO_KEYS",button_choices:()=>Jc?[cc.t("terms.false")[0].toUpperCase(),cc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Jc?[`<button class="mobile-stimulus-btn"><img src=${_l.images.leftArrowBlankShort} alt=${cc.t("terms.false")}/><span>${cc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${_l.images.rightArrowBlankShort} alt=${cc.t("terms.true")}/><span>${cc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],prompt_above_buttons:!0,on_load:()=>{if(Jc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content");const e=document.getElementById("jspsych-audio-multi-response-btngroup");e.style.display="flex",e.style.gap="9rem"}},trial_duration:200,response_allowed_while_playing:!1,trial_ends_after_audio:!0}],loop_function:function(){return r.session("indexTracking")===r.session("currentCorpus").length-1||r.session("timeOut")?(r.session.set("indexTracking",0),r.session.set("timeOut",!1),clearTimeout(r.session.get("timerId")),!1):(r.session.transact("indexTracking",(e=>e+1)),!0)}}),hl={type:gc,stimulus:()=>_l.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${cc.t("practice.intro.text1")}</h2>\n <p>${cc.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="instruction-boxes">\n <p> \n ${cc.t(Jc?"practice.intro.text3Mobile":"practice.intro.text3")} \n </p>\n <img src="${_l.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="instruction-boxes">\n <p> \n ${cc.t(Jc?"practice.intro.text4Mobile":"practice.intro.text4")} \n </p>\n <img src="${_l.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${cc.t("practice.intro.text5")}</b> </p> \n <div class="button">${cc.t("practice.intro.text6")}</div>\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button">${cc.t("practice.intro.text6Mobile")}</button>`,on_finish:()=>{r.session.set("indexTracking",-1)}},fl={type:cl,stimulus:()=>(r.session.transact("indexTracking",(e=>e+1)),`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${r.session("practiceCorpus")[r.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>Jc?"":`\n <div> \n <img class="lower" src="${_l.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Jc?[cc.t("terms.false")[0].toUpperCase(),cc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Jc?[`<button class="mobile-stimulus-btn"><img src=${_l.images.leftArrowBlankShort} alt=${cc.t("terms.false")}/><span>${cc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${_l.images.rightArrowBlankShort} alt=${cc.t("terms.true")}/><span>${cc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Jc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"practice_response",corpusId:"practice",save_trial:!0},on_finish:e=>{e.keyboard_response?(e.correct=el.pluginAPI.compareKeys(e.keyboard_response,r.session("practiceCorpus")[r.session("indexTracking")].correct_response),r.session.set("arrowResponse",e.keyboard_response)):e.correct="arrowleft"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response&&0===e.button_response||"arrowright"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response&&1===e.button_response,e.correct?(r.session.set("dataCorrect",1),r.session.set("feedbackResponse",cc.t("feedbackTranslations.correct"))):(r.session.set("dataCorrect",0),r.session.set("feedbackResponse",cc.t("feedbackTranslations.incorrect")));const t="arrowleft"===e.keyboard_response||0===e.button_response;r.session.set("responseLR",t?"left":"right"),r.session.set("answerRP",t?"false":"true"),r.session.set("responseColor",t?"orange":"blue");const n="arrowleft"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response;r.session.set("correctLR",n?"left":"right"),r.session.set("correctRP",n?"false":"true"),r.session.set("answerColor",n?"orange":"blue"),el.data.addDataToLastTrial({pid:r.session.get("config").pid,subtask:"practice",corpusId:"practice",correct:r.session("dataCorrect"),trialNumBlock:r.session("indexTracking"),item:r.session("practiceCorpus")[r.session("indexTracking")].sentence,truefalse:r.session("practiceCorpus")[r.session("indexTracking")].answer,story:r.session.get("config").story})}},ml={type:gc,response_allowed_while_playing:()=>r.session.get("config").skipInstructions,stimulus:()=>1===r.session("dataCorrect")?_l.audio[`feedback${r.session("indexTracking")}Correct`]:_l.audio[`feedback${r.session("indexTracking")}Incorrect`],prompt:()=>`\n <div class="stimulus_div">\n <p id=${Jc?"mobile-stimulus-text":""} class="feedback" translate='no'>\n <span class=${r.session("responseColor")}>${r.session("feedbackResponse")} ${cc.t(Jc?"practice.feedback.text1Mobile":"practice.feedback.text1",{arrow:"left"===r.session("responseLR")?cc.t("terms.left"):cc.t("terms.right"),type:"true"===r.session("answerRP")?cc.t("terms.true"):cc.t("terms.false")})}</span>\n <br></br> \n "${r.session("practiceCorpus")[r.session("indexTracking")].sentence}"\n <span class=${r.session("answerColor")}> ${cc.t(Jc?"practice.feedback.text2Mobile":"practice.feedback.text2",{arrow:"left"===r.session("correctLR")?cc.t("terms.left"):cc.t("terms.right"),type:"true"===r.session("correctRP")?cc.t("terms.true"):cc.t("terms.false")})}</span>\n </p>\n </div>\n ${Jc?"":`<img class="lower" src= "${"false"===r.session("correctRP")?_l.images.falseFlashKey:_l.images.trueFlashKey}" alt="arrow keys">`}`,keyboard_choices:()=>Jc?"NO_KEYS":"false"===r.session("correctRP")?["ArrowLeft"]:["ArrowRight"],button_choices:()=>Jc?["ArrowLeft","ArrowRight"]:[],button_html:()=>Jc?[`<button class="mobile-practice-feedback ${"false"===r.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"false"===r.session("correctRP")?_l.images.falseFlashKeySplit:_l.images.falseStaticKeySplit} alt="feedback arrow"/>\n </button>`,`<button class="mobile-practice-feedback ${"true"===r.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"true"===r.session("correctRP")?_l.images.trueFlashKeySplit:_l.images.trueStaticKeySplit} alt="feedback arrow"/>\n </button>`]:"",prompt_above_buttons:()=>Jc,on_load:()=>{document.querySelectorAll(".jspsych-audio-multi-response-button").forEach(((e,t)=>{const n="false"===r.session("correctRP");0!==t||n?1===t&&n&&e.classList.add("mobile-disable-button"):e.classList.add("mobile-disable-button")}))}};var gl={default:{languageSpecific:{device:["bird-end.mp3","bird-halfway.mp3","bird-intro.mp3","cat-end.mp3","cat-halfway.mp3","cat-intro.mp3","deer-end.mp3","deer-halfway.mp3","deer-intro.mp3","dog-end.mp3","dog-halfway.mp3","dog-intro.mp3","end-ns.mp3","feedback-0-correct.mp3","feedback-0-incorrect.mp3","feedback-1-correct.mp3","feedback-1-incorrect.mp3","feedback-2-correct.mp3","feedback-2-incorrect.mp3","feedback-3-correct.mp3","feedback-3-incorrect.mp3","grade-select.mp3","halfway-ns.mp3","introduction-ns.mp3","introduction.mp3","post-practice-instruction.mp3","post-practice-reminder.mp3","practice-instruction.mp3","student-select.mp3"],shared:["practice-left.webp","practice-right.webp","roar-sre-keyboard.webp","roar-sre-practice-keyboard.webp","grade-keyboard.webp","false-flash-key.webp","false-flash-key-split.webp","false-static-key-split.webp","true-flash-key-split.webp","true-static-key-split.webp","false-key.webp","grade-keys.webp","true-flash-key.webp","true-key.webp"]},shared:["neutral-sound-2.wav","neutral-sound-sub.mp3","neutral-sound.mp3","academy-background.webp","bird-happy.webp","bird-talking.webp","bird.webp","cat-happy.webp","cat-talking.webp","cat.webp","classroom-background.webp","deer-happy.webp","deer-talking.webp","deer.webp","dog-happy.webp","dog-talking.webp","dog.webp","rightArrowBlankShort.webp","leftArrowBlankShort.webp"]}};const yl="https://storage.googleapis.com/roar-sre";let vl,_l,bl;const wl=[cc.t("grades.1"),cc.t("grades.2"),cc.t("grades.3"),cc.t("grades.4"),cc.t("grades.5"),cc.t("grades.6"),cc.t("grades.7"),cc.t("grades.8+")],Il=[{timeline:[{type:dc,questions:[{prompt:"Lab ID:",name:"labId",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.labId=e.response.labId,r.session.set("config",t)}}],conditional_function:()=>!r.session.get("config").labId&&"otherLabs"===r.session.get("config").recruitment},{timeline:[{type:dc,questions:[{prompt:"Participant ID:",name:"pid",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.pid=e.response.pid,r.session.set("config",t)}}],conditional_function:()=>!r.session.get("config").pid&&"otherLabs"===r.session.get("config").recruitment},{timeline:[{type:pc,questions:[{prompt:' <div>\n <p class=" consent_form_title">STANFORD UNIVERSITY CONSENT FORM</p>\n <p class=" consent_form_text">\n <b>PURPOSE OF THE STUDY</b> \n <br>\n Data collected through games in the web-browser will help researchers understand relationships between academic skills, reading proficiency, cognition, perception, and/or attitudes towards reading and school in individuals with a broad range of reading skills.\n <br><br>\n <b>STUDY PROCEDURES</b> \n <br>\n In this study, you will be asked to complete computer tasks via a computer screen. Audio will be presented via headphones or speakers.\n <br><br>\n <b>PRIVACY AND DATA COLLECTION</b> <br>\n We will do our best to ensure your privacy. Data that is collected through this online experiment is stored separately from identifying information such as your name. For the sake of payment, sometimes we store an email address you provide, but this is stored separately from the responses that are recorded in the online experiment. Each participant is assigned a code and that is used rather than names. This is called “coded data” and we try to ensure that the identity of our research participants is kept confidential. Data collected as part of this study may be used for many years to help discover trends in the population and explore changes due to development and education. In addition, coded data may be shared online or with collaborators to allow for new and unforeseen discoveries. Researchers may choose to include coded data in publications to support findings, or they may choose to release coded data alongside findings for replicability.\n <br>\n <br>\n We will collect mouse and click, scores earned, button presses and their timestamps, or other data that may be derived from your behavior on our page. This data will be stored on servers. Incomplete data may be logged if you quit out of the experiment early. If you would like to void your data, you may request it through our contact email. \n <br>\n <br>\n <b>COMPENSATION</b>\n <br> \n Participation in this study is voluntary and you will not receive financial compensation.\n <br>\n <br>\n <b>RISKS, STRESS, OR DISCOMFORT</b>\n <br>\n If there is any reason to believe you are not safe to participate in any of the tasks, please contact us at <a href="url">readingresearch@stanford.edu</a>. Some people may experience some physical discomfort or boredom due to being asked to sit for long periods. For computer tasks, some people may also experience dry eyes or eye fatigue. For some tasks that are untimed, breaks can be taken as needed during the session.\n <br>\n <br>\n <b>CONTACT INFORMATION </b>\n <br>\n If you have any additional questions or concerns about our research, feel free to email us at <a href="url">readingresearch@stanford.edu</a>. We will be more than happy to help!\n <br>\n <br>\n For general information regarding questions or concerns about your rights as a research participant, please call 1-866-680-2906 to reach the Administrative Panel on Human Subjects in Medical Research, Stanford University.\n </p>\n </div>\n ',options:["<b>I agree to participate in this research. Participation in this research is voluntary, and I can stop at any time without penalty. <br> I feel that I understand what I am getting into, and I know I am free to leave the experiment at any time by simply closing the web browser.\n </b>"],required:!0,required_message:"You must check the box to continue",name:"Agree"}]}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},{timeline:[{type:fc,preamble:"<div><h1>Please share a bit more to help us understand your data!</h1><p>This information is optional.</p></div>",html:'\n <div className="item">\n <span htmlFor="instructions" class = "survey_form_text">How old are you? (Please type a number)</span>\n <input type = "text" id = "age" name="age" style = "font-size: 2vh" value=""/>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">What is your current grade or highest level of education?</span>\n <select id = "edu" name = "edu" style = "font-size: 2vh">\n <option value=""></option>\n <option value="prek">preK</option>\n <option value="k1">K1</option>\n <option value="k2">K2</option>\n <option value="1">Grade 1</option>\n <option value="2">Grade 2</option>\n <option value="3">Grade 3</option>\n <option value="4">Grade 4</option>\n <option value="5">Grade 5</option>\n <option value="6">Grade 6</option>\n <option value="7">Grade 7</option>\n <option value="8">Grade 8</option>\n <option value="9">Grade 9</option>\n <option value="10">Grade 10</option>\n <option value="11">Grade 11</option>\n <option value="12">Grade 12</option>\n <option value="college">College</option>\n <option value="proSchool">Professional School</option>\n <option value="gradSchool">Graduate School</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Is English your first language?</span>\n <select id = "ell" name = "ell" style = "font-size: 2vh">\n <option value=""></option>\n <option value="1">No</option>\n <option value="0">Yes</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Have you taken this game before?</span>\n <select id = "retake" name = "retake" style = "font-size: 2vh">\n <option value=""></option>\n <option value="0">No</option>\n <option value="1">Yes</option>\n </select>\n </div>\n <br>',autocomplete:!0,on_finish:e=>{const t={};for(const n in e.response)""===e.response[n]?t[n]=null:t[n]="retake"===n||"ell"===n?parseInt(e.response[n],10):e.response[n];t.grade=r.session.get("config").userMetadata.grade;const n=r.session.get("config"),i=or(null,null,t.age);n.userMetadata={...n.userMetadata,...t,...i},r.session.set("config",n)}}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},{timeline:[{type:gc,stimulus:()=>_l.audio.gradeSelect,prompt:()=>Jc?`\n <div class="mobile-grade-select">\n <h3>${cc.t("introduction.gradeSelect.text1")}</h3>\n <p>${cc.t("introduction.gradeSelect.text2Mobile")}</p>\n <p>${cc.t("introduction.gradeSelect.text3")}</p>\n <div class="button">${cc.t("introduction.gradeSelect.text4Mobile")}</div>\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${cc.t("introduction.gradeSelect.text1")}</h3>\n <p>${cc.t("introduction.gradeSelect.text2")}</p>\n <p>${cc.t("introduction.gradeSelect.text3")}</p>\n <img width="50%" src="${_l.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${cc.t("introduction.gradeSelect.text4")}</div>\n </div>`,keyboard_choices:Jc?"NO_KEYS":["1","2","3","4","5","6","7","8"],button_choices:Jc?wl:[],button_html:'<button class="grade-btn">%choice%</button>',prompt_above_buttons:!0,on_load:()=>{document.body.style.background="rgb(250, 246, 236)"},on_finish:async e=>{document.body.style.background="white";const t=e.button_response??e.keyboard_response;Jc?r.session.set("tosrecCorpusId",`tosrec${t+1}`):r.session.set("tosrecCorpusId",`tosrec${t}`);const n=r.session.get("config");n.userMetadata={...n.userMetadata,grade:Number(Jc?t+1:t)},n.story=ep(n.storyOption,n.userMetadata.grade),r.session.set("config",n)}}],conditional_function:()=>{const{grade:e}=r.session.get("config").userMetadata;return!cr(e)||(r.session.set("tosrecCorpusId",`tosrec${e}`),!1)}}];var xl=i((function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var s=e[t];i[s[0]]=s[1]}return i}));var El=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},Sl=Ys,Al=qs;var Tl=function(e,t,n,i){var s=!n;n||(n={});for(var a=-1,r=t.length;++a<r;){var o=t[a],c=i?i(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),s?Al(n,o,c):Sl(n,o,c)}return n},kl=Tl,Rl=kn;var Ll=function(e,t){return e&&kl(t,Rl(t),e)},Cl=Tl,Ol=ya;var Fl=function(e,t){return e&&Cl(t,Ol(t),e)},Nl={exports:{}};!function(e,t){var n=C,i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?n.Buffer:void 0,r=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(Nl,Nl.exports);var Ul=Nl.exports;var jl=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Pl=Tl,Ml=Ct;var Dl=function(e,t){return Pl(e,Ml(e),t)},$l=Tl,zl=la;var Bl=function(e,t){return $l(e,zl(e),t)},ql=Object.prototype.hasOwnProperty;var Vl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ql.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Hl=ut;var Wl=function(e){var t=new e.constructor(e.byteLength);return new Hl(t).set(new Hl(e)),t},Yl=Wl;var Kl=function(e,t){var n=t?Yl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Gl=/\w*$/;var Jl=function(e){var t=new e.constructor(e.source,Gl.exec(e));return t.lastIndex=e.lastIndex,t},Xl=O?O.prototype:void 0,Ql=Xl?Xl.valueOf:void 0;var Zl=Wl;var ed=Wl,td=Kl,nd=Jl,id=function(e){return Ql?Object(Ql.call(e)):{}},sd=function(e,t){var n=t?Zl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var ad=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return ed(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return td(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return sd(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return nd(e);case"[object Symbol]":return id(e)}},rd=V,od=Object.create,cd=function(){function e(){}return function(t){if(!rd(t))return{};if(od)return od(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ld=sa,dd=gn;var ud=function(e){return"function"!=typeof e.constructor||dd(e)?{}:cd(ld(e))},pd=ei,hd=Ft;var fd=function(e){return hd(e)&&"[object Map]"==pd(e)},md=Zt,gd=tn&&tn.isMap,yd=gd?md(gd):fd,vd=ei,_d=Ft;var bd=function(e){return _d(e)&&"[object Set]"==vd(e)},wd=Zt,Id=tn&&tn.isSet,xd=Id?wd(Id):bd,Ed=nt,Sd=El,Ad=Ys,Td=Ll,kd=Fl,Rd=Ul,Ld=jl,Cd=Dl,Od=Bl,Fd=On,Nd=wa,Ud=ei,jd=Vl,Pd=ad,Md=ud,Dd=It,$d=Vt,zd=yd,Bd=V,qd=xd,Vd=kn,Hd=ya,Wd="[object Arguments]",Yd="[object Function]",Kd="[object Object]",Gd={};Gd[Wd]=Gd["[object Array]"]=Gd["[object ArrayBuffer]"]=Gd["[object DataView]"]=Gd["[object Boolean]"]=Gd["[object Date]"]=Gd["[object Float32Array]"]=Gd["[object Float64Array]"]=Gd["[object Int8Array]"]=Gd["[object Int16Array]"]=Gd["[object Int32Array]"]=Gd["[object Map]"]=Gd["[object Number]"]=Gd[Kd]=Gd["[object RegExp]"]=Gd["[object Set]"]=Gd["[object String]"]=Gd["[object Symbol]"]=Gd["[object Uint8Array]"]=Gd["[object Uint8ClampedArray]"]=Gd["[object Uint16Array]"]=Gd["[object Uint32Array]"]=!0,Gd["[object Error]"]=Gd[Yd]=Gd["[object WeakMap]"]=!1;var Jd=function e(t,n,i,s,a,r){var o,c=1&n,l=2&n,d=4&n;if(i&&(o=a?i(t,s,a,r):i(t)),void 0!==o)return o;if(!Bd(t))return t;var u=Dd(t);if(u){if(o=jd(t),!c)return Ld(t,o)}else{var p=Ud(t),h=p==Yd||"[object GeneratorFunction]"==p;if($d(t))return Rd(t,c);if(p==Kd||p==Wd||h&&!a){if(o=l||h?{}:Md(t),!c)return l?Od(t,kd(o,t)):Cd(t,Td(o,t))}else{if(!Gd[p])return a?t:{};o=Pd(t,p,c)}}r||(r=new Ed);var f=r.get(t);if(f)return f;r.set(t,o),qd(t)?t.forEach((function(s){o.add(e(s,n,i,s,t,r))})):zd(t)&&t.forEach((function(s,a){o.set(a,e(s,n,i,a,t,r))}));var m=u?void 0:(d?l?Nd:Fd:l?Hd:Vd)(t);return Sd(m||t,(function(s,a){m&&(s=t[a=s]),Ad(o,a,e(s,n,i,a,t,r))})),o};var Xd=ss,Qd=function(e,t,n){var i=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(s);++i<s;)a[i]=e[i+t];return a};var Zd=function(e,t){return t.length<2?e:Xd(e,Qd(t,0,-1))},eu=Zi,tu=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},nu=Zd,iu=ts;var su=function(e,t){return t=eu(t,e),null==(e=nu(e,t))||delete e[iu(tu(t))]},au=q,ru=sa,ou=Ft,cu=Function.prototype,lu=Object.prototype,du=cu.toString,uu=lu.hasOwnProperty,pu=du.call(Object);var hu=function(e){if(!ou(e)||"[object Object]"!=au(e))return!1;var t=ru(e);if(null===t)return!0;var n=uu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&du.call(n)==pu};var fu=function(e){return hu(e)?void 0:e},mu=zt,gu=It,yu=O?O.isConcatSpreadable:void 0;var vu=wt,_u=function(e){return gu(e)||mu(e)||!!(yu&&e&&e[yu])};var bu=function e(t,n,i,s,a){var r=-1,o=t.length;for(i||(i=_u),a||(a=[]);++r<o;){var c=t[r];n>0&&i(c)?n>1?e(c,n-1,i,s,a):vu(a,c):s||(a[a.length]=c)}return a},wu=bu;var Iu=function(e){return(null==e?0:e.length)?wu(e,1):[]};var xu=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Eu=Math.max;var Su=function(e,t,n){return t=Eu(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=Eu(i.length-t,0),r=Array(a);++s<a;)r[s]=i[t+s];s=-1;for(var o=Array(t+1);++s<t;)o[s]=i[s];return o[t]=n(r),xu(e,this,o)}};var Au=function(e){return function(){return e}},Tu=zs,ku=Tu?function(e,t){return Tu(e,"toString",{configurable:!0,enumerable:!1,value:Au(t),writable:!0})}:Ss,Ru=Date.now;var Lu=function(e){var t=0,n=0;return function(){var i=Ru(),s=16-(i-n);if(n=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ku),Cu=Iu,Ou=Su,Fu=Lu;var Nu=zi,Uu=Jd,ju=su,Pu=Zi,Mu=Tl,Du=fu,$u=wa,zu=function(e){return Fu(Ou(e,void 0,Cu),e+"")}((function(e,t){var n={};if(null==e)return n;var i=!1;t=Nu(t,(function(t){return t=Pu(t,e),i||(i=t.length>1),t})),Mu(e,$u(e),n),i&&(n=Uu(n,7,Du));for(var s=t.length;s--;)ju(n,t[s]);return n})),Bu=i(zu),qu=zi;var Vu=function(e,t){return qu(t,(function(t){return[t,e[t]]}))},Hu=ei,Wu=pt,Yu=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var Ku=i(function(e){return function(t){var n=Hu(t);return"[object Map]"==n?Wu(t):"[object Set]"==n?Yu(t):Vu(t,e(t))}}(kn)),Gu={exports:{}};Gu.exports=function e(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function i(){var t=n.URL||n.webkitURL||null,i=e.toString();return c.BLOB_URL||(c.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))}var s=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,r={},o=0,c={};if(c.parse=d,c.unparse=u,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!s&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=b,c.ParserHandle=v,c.NetworkStreamer=h,c.FileStreamer=f,c.StringStreamer=m,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=y),n.jQuery){var l=n.jQuery;l.fn.parse=function(e){var t=e.config||{},i=[];return this.each((function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)i.push({file:this.files[s],inputElem:this,instanceConfig:l.extend({},t)})})),s(),this;function s(){if(0!==i.length){var t=i[0];if(k(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void a("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void r();"object"==typeof n.config&&(t.instanceConfig=l.extend(t.instanceConfig,n.config))}else if("skip"===n)return void r()}var s=t.instanceConfig.complete;t.instanceConfig.complete=function(e){k(s)&&s(e,t.file,t.inputElem),r()},c.parse(t.file,t.instanceConfig)}else k(e.complete)&&e.complete()}function a(t,n,i,s){k(e.error)&&e.error({name:t},n,i,s)}function r(){i.splice(0,1),s()}}}function d(e,t){var i=(t=t||{}).dynamicTyping||!1;if(k(i)&&(t.dynamicTypingFunction=i,i={}),t.dynamicTyping=i,t.transform=!!k(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var s=w();return s.userStep=t.step,s.userChunk=t.chunk,s.userComplete=t.complete,s.userError=t.error,t.step=k(t.step),t.chunk=k(t.chunk),t.complete=k(t.complete),t.error=k(t.error),delete t.worker,void s.postMessage({input:e,config:t,workerId:s.id})}var a=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(a=new y(t)).getStream():("string"==typeof e?(e=r(e),a=t.download?new h(t):new m(t)):!0===e.readable&&k(e.read)&&k(e.on)?a=new g(t):(n.File&&e instanceof File||e instanceof Object)&&(a=new f(t)),a.stream(e));function r(e){return 65279===e.charCodeAt(0)?e.slice(1):e}}function u(e,t){var n=!1,i=!0,s=",",a="\r\n",r='"',o=r+r,l=!1,d=null,u=!1;h();var p=new RegExp(_(r),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,l);if("object"==typeof e[0])return f(d||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function h(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(s=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(r=t.quoteChar),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+r),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(u=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function f(e,t,n){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(o&&i){for(var l=0;l<e.length;l++)l>0&&(r+=s),r+=m(e[l],l);t.length>0&&(r+=a)}for(var d=0;d<t.length;d++){var u=o?e.length:t[d].length,p=!1,h=o?0===Object.keys(t[d]).length:0===t[d].length;if(n&&!o&&(p="greedy"===n?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===n&&o){for(var f=[],g=0;g<u;g++){var y=c?e[g]:g;f.push(t[d][y])}p=""===f.join("").trim()}if(!p){for(var v=0;v<u;v++){v>0&&!h&&(r+=s);var _=o&&c?e[v]:v;r+=m(t[d][_],v)}d<t.length-1&&(!n||u>0&&!h)&&(r+=a)}}return r}function m(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;u&&"string"==typeof e&&u.test(e)&&(e="'"+e,i=!0);var a=e.toString().replace(p,o);return(i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||g(a,c.BAD_DELIMITERS)||a.indexOf(s)>-1||" "===a.charAt(0)||" "===a.charAt(a.length-1))?r+a+r:a}function g(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function p(e){function t(e){var t=A(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new v(t),this._handle.streamer=this,this._config=t}this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&k(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var r=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=r.meta.cursor;this._finished||(this._partialLine=s.substring(o-this._baseIndex),this._baseIndex=o),r&&r.data&&(this._rowCount+=r.data.length);var l=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(a)n.postMessage({results:r,workerId:c.WORKER_ID,finished:l});else if(k(this._config.chunk)&&!t){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);r=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!l||!k(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){k(this._config.error)?this._config.error(e):a&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function h(e){var t;function n(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),p.call(this,e),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),s||(t.onload=T(this._chunkLoaded,this),t.onerror=T(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}s&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function f(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),p.call(this,e);var i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=T(this._chunkLoaded,this),t.onerror=T(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var s=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,s)}var a=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function m(e){var t;e=e||{},p.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},p.call(this,e);var t=[],n=!0,i=!1;this.pause=function(){p.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){p.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=T((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=T((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=T((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=T((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function y(e){var n=t.Duplex,i=A(e),s=!0,a=!1,r=[],o=null;this._onCsvData=function(e){var t=e.data;o.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){o.push(null)},i.step=T(this._onCsvData,this),i.complete=T(this._onCsvComplete,this),p.call(this,i),this._nextChunk=function(){a&&1===r.length&&(this._finished=!0),r.length?r.shift()():s=!0},this._addToParseQueue=function(e,t){r.push(T((function(){if(this.parseChunk("string"==typeof e?e:e.toString(i.encoding)),k(t))return t()}),this)),s&&(s=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){a=!0,this._addToParseQueue("")},this.getStream=function(){return o},(o=new n({readableObjectMode:!0,decodeStrings:!1,read:T(this._onRead,this),write:T(this._onWrite,this)})).once("finish",T(this._onWriteComplete,this))}function v(e){var t,n,i,s=Math.pow(2,53),a=-s,r=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,d=0,u=0,p=!1,h=!1,f=[],m={data:[],errors:[],meta:{}};if(k(e.step)){var g=e.step;e.step=function(t){if(m=t,I())w();else{if(w(),0===m.data.length)return;d+=t.data.length,e.preview&&d>e.preview?n.abort():(m.data=m.data[0],g(m,l))}}}function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function v(e){if(r.test(e)){var t=parseFloat(e);if(t>a&&t<s)return!0}return!1}function w(){return m&&i&&(C("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(m.data=m.data.filter((function(e){return!y(e)}))),I()&&x(),T()}function I(){return e.header&&0===f.length}function x(){if(m)if(Array.isArray(m.data[0])){for(var t=0;I()&&t<m.data.length;t++)m.data[t].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(t,n){k(e.transformHeader)&&(t=e.transformHeader(t,n)),f.push(t)}}function E(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function S(e,t){return E(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(v(t)?parseFloat(t):o.test(t)?new Date(t):""===t?null:t):t}function T(){if(!m||!e.header&&!e.dynamicTyping&&!e.transform)return m;function t(t,n){var i,s=e.header?{}:[];for(i=0;i<t.length;i++){var a=i,r=t[i];e.header&&(a=i>=f.length?"__parsed_extra":f[i]),e.transform&&(r=e.transform(r,a)),r=S(a,r),"__parsed_extra"===a?(s[a]=s[a]||[],s[a].push(r)):s[a]=r}return e.header&&(i>f.length?C("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+i,u+n):i<f.length&&C("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+i,u+n)),s}var n=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(t),n=m.data.length):m.data=t(m.data,0),e.header&&m.meta&&(m.meta.fields=f),u+=n,m}function R(t,n,i,s,a){var r,o,l,d;a=a||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var u=0;u<a.length;u++){var p=a[u],h=0,f=0,m=0;l=void 0;for(var g=new b({comments:s,delimiter:p,newline:n,preview:10}).parse(t),v=0;v<g.data.length;v++)if(i&&y(g.data[v]))m++;else{var _=g.data[v].length;f+=_,void 0!==l?_>0&&(h+=Math.abs(_-l),l=_):l=_}g.data.length>0&&(f/=g.data.length-m),(void 0===o||h<=o)&&(void 0===d||f>d)&&f>1.99&&(o=h,r=p,d=f)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function L(e,t){e=e.substring(0,1048576);var n=new RegExp(_(t)+"([^]*?)"+_(t),"gm"),i=(e=e.replace(n,"")).split("\r"),s=e.split("\n"),a=s.length>1&&s[0].length<i[0].length;if(1===i.length||a)return"\n";for(var r=0,o=0;o<i.length;o++)"\n"===i[o][0]&&r++;return r>=i.length/2?"\r\n":"\r"}function C(e,t,n,i){var s={type:e,code:t,message:n};void 0!==i&&(s.row=i),m.errors.push(s)}this.parse=function(s,a,r){var o=e.quoteChar||'"';if(e.newline||(e.newline=L(s,o)),i=!1,e.delimiter)k(e.delimiter)&&(e.delimiter=e.delimiter(s),m.meta.delimiter=e.delimiter);else{var l=R(s,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);l.successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=c.DefaultDelimiter),m.meta.delimiter=e.delimiter}var d=A(e);return e.preview&&e.header&&d.preview++,t=s,n=new b(d),m=n.parse(t,a,r),w(),p?{meta:{paused:!0}}:m||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=k(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(p=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,k(e.complete)&&e.complete(m),t=""}}function _(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e){var t,n=(e=e||{}).delimiter,i=e.newline,s=e.comments,a=e.step,r=e.preview,o=e.fastMode,l=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),s===n)throw new Error("Comment character same as delimiter");!0===s?s="#":("string"!=typeof s||c.BAD_DELIMITERS.indexOf(s)>-1)&&(s=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var d=0,u=!1;this.parse=function(c,p,h){if("string"!=typeof c)throw new Error("Input must be a string");var f=c.length,m=n.length,g=i.length,y=s.length,v=k(a);d=0;var b=[],w=[],I=[],x=0;if(!c)return Y();if(e.header&&!p){var E=c.split(i)[0].split(n),S="_",A=[],T={},R=!1;for(var L in E){var C=E[L];k(e.transformHeader)&&(C=e.transformHeader(C,L));var O=C,F=T[C]||0;for(F>0&&(R=!0,O=C+S+F),T[C]=F+1;A.includes(O);)O=O+S+F;A.push(O)}if(R){var N=c.split(i);N[0]=A.join(n),c=N.join(i)}}if(o||!1!==o&&-1===c.indexOf(t)){for(var U=c.split(i),j=0;j<U.length;j++){if(I=U[j],d+=I.length,j!==U.length-1)d+=i.length;else if(h)return Y();if(!s||I.substring(0,y)!==s){if(v){if(b=[],q(I.split(n)),K(),u)return Y()}else q(I.split(n));if(r&&j>=r)return b=b.slice(0,r),Y(!0)}}return Y()}for(var P=c.indexOf(n,d),M=c.indexOf(i,d),D=new RegExp(_(l)+_(t),"g"),$=c.indexOf(t,d);;)if(c[d]!==t)if(s&&0===I.length&&c.substring(d,d+y)===s){if(-1===M)return Y();d=M+g,M=c.indexOf(i,d),P=c.indexOf(n,d)}else if(-1!==P&&(P<M||-1===M))I.push(c.substring(d,P)),d=P+m,P=c.indexOf(n,d);else{if(-1===M)break;if(I.push(c.substring(d,M)),W(M+g),v&&(K(),u))return Y();if(r&&b.length>=r)return Y(!0)}else for($=d,d++;;){if(-1===($=c.indexOf(t,$+1)))return h||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:d}),H();if($===f-1)return H(c.substring(d,$).replace(D,t));if(t!==l||c[$+1]!==l){if(t===l||0===$||c[$-1]!==l){-1!==P&&P<$+1&&(P=c.indexOf(n,$+1)),-1!==M&&M<$+1&&(M=c.indexOf(i,$+1));var z=V(-1===M?P:Math.min(P,M));if(c.substr($+1+z,m)===n){I.push(c.substring(d,$).replace(D,t)),d=$+1+z+m,c[$+1+z+m]!==t&&($=c.indexOf(t,d)),P=c.indexOf(n,d),M=c.indexOf(i,d);break}var B=V(M);if(c.substring($+1+B,$+1+B+g)===i){if(I.push(c.substring(d,$).replace(D,t)),W($+1+B+g),P=c.indexOf(n,d),$=c.indexOf(t,d),v&&(K(),u))return Y();if(r&&b.length>=r)return Y(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:d}),$++}}else $++}return H();function q(e){b.push(e),x=d}function V(e){var t=0;if(-1!==e){var n=c.substring($+1,e);n&&""===n.trim()&&(t=n.length)}return t}function H(e){return h||(void 0===e&&(e=c.substring(d)),I.push(e),d=f,q(I),v&&K()),Y()}function W(e){d=e,q(I),I=[],M=c.indexOf(i,d)}function Y(e){return{data:b,errors:w,meta:{delimiter:n,linebreak:i,aborted:u,truncated:!!e,cursor:x+(p||0)}}}function K(){a(Y()),b=[],w=[]}},this.abort=function(){u=!0},this.getCharIndex=function(){return d}}function w(){if(!c.WORKERS_SUPPORTED)return!1;var e=i(),t=new n.Worker(e);return t.onmessage=I,t.id=o++,r[t.id]=t,t}function I(e){var t=e.data,n=r[t.workerId],i=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){i=!0,x(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:E,resume:E};if(k(n.userStep)){for(var a=0;a<t.results.data.length&&(n.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!i);a++);delete t.results}else k(n.userChunk)&&(n.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!i&&x(t.workerId,t.results)}function x(e,t){var n=r[e];k(n.userComplete)&&n.userComplete(t),n.terminate(),delete r[e]}function E(){throw new Error("Not implemented.")}function S(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var i=c.parse(t.input,t.config);i&&n.postMessage({workerId:c.WORKER_ID,results:i,finished:!0})}}function A(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=A(e[n]);return t}function T(e,t){return function(){e.apply(t,arguments)}}function k(e){return"function"==typeof e}return a&&(n.onmessage=S),h.prototype=Object.create(p.prototype),h.prototype.constructor=h,f.prototype=Object.create(p.prototype),f.prototype.constructor=f,m.prototype=Object.create(m.prototype),m.prototype.constructor=m,g.prototype=Object.create(p.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(y.prototype=Object.create(p.prototype),y.prototype.constructor=y),c}();var Ju=Gu.exports;class Xu{constructor(){this.tableURL="https://storage.googleapis.com/roar-sre/scores/sre_lookup_v3.csv",this.lookupTable=[],this.tableLoaded=!1}async initTable(){return new Promise(((e,t)=>{const n=r.session.get("config").userMetadata?.grade;n||t(),this.gradeForScore=cr(n,1,12),Ju.parse(this.tableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{this.gradeForScore===Number(e.data.grade)&&this.lookupTable.push(Bu(e.data,["","X"]))},complete:()=>{this.tableLoaded=!0,e()}})}))}computedScoreCallback=async e=>{const{taskId:t}=r.session.get("config");if("sre"!==t)return null;const n=xl(Ku(e).map((([e,t])=>{const n="practice"===e?"practice":"test";return[e,{sreScore:(t[n]?.numCorrect||0)-(t[n]?.numIncorrect||0)}]}))),i=(s=n,s.lab?.sreScore?Math.max(n.lab.sreScore,0):s.aiV1P1?.sreScore?Math.max(s.aiV1P1.sreScore+5,0):s.aiV1P2?.sreScore?Math.max(s.aiV1P2.sreScore+3,0):0);var s;n.composite={sreScore:i};const a=r.session.get("config").userMetadata?.grade;if(a){this.tableLoaded||await this.initTable();const e=this.lookupTable.find((e=>e.sreScore===i));if(void 0!==e){const{grade:t,sreScore:s,...a}=e;n.composite={sreScore:i,...a}}}return n}}let Qu=!0;const Zu={type:rl,fullscreen_mode:!0,message:()=>`<div class='text_div'><h1>${cc.t("fullScreenTrial.prompt")}</h1></div>`,css_classes:["jspsych-content-modified"],delay_after:0,button_label:()=>`${cc.t("fullScreenTrial.buttonText")}`,on_start:()=>{document.body.style.cursor="default"},on_finish:()=>{Qu?Qu=!1:document.body.style.cursor="none"}},ep=(e,t)=>{let n;return n=["true","false"].includes(e?.toLocaleLowerCase())?e?.toLocaleLowerCase():!(cr(t)>=6),n};function tp(e){return"3minParallelAIFormV1"===e?Math.random()<.5?Xc(["lab","aiV1P1"]):Xc(["lab","aiV1P2"]):"3min1Block"===e?[Xc(["lab","aiV1P1","aiV1P2"])[0]]:"2BlocksV2"===e?[Xc(["lab","aiV1P1","aiV1P2"])[0],"aiV2"]:"90s2Blocks"===e?Xc(["test1","test2"]):["lab","ai"]}function np(e){return"3min1Block"===e?[18e4]:"2BlocksV2"===e?[18e4,9e4]:"90s2Blocks"===e?[9e4,9e4]:[18e4,18e4]}function ip(e){return"es"===e?"90s2Blocks":"default"}const sp=e=>{e.displayElement&&(el.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};el.opts.on_finish=t(el.opts.on_finish,(()=>{e.firekit.finishRun(),vl.markAsCompleted(),e.experimentFinished&&e.experimentFinished()}));const n=new Xu;el.opts.on_data_update=t(el.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,n.computedScoreCallback.bind(n))})),window.addEventListener("error",(t=>{const{msg:n,url:i,lineNo:s,columnNo:a,error:r}=t;e.firekit?.writeTrial({assessment_stage:"error",lastTrial:el.data.getLastTrialData().trials[0],message:String(n),source:i||null,lineNo:String(s||null),colNo:String(a||null),error:JSON.stringify(r||null),timeStamp:(new Date).toISOString()})})),r.session.has("initialized")&&r.local("initialized")||(r.session.set("practiceIndex",0),r.session.set("currentBlockIndex",0),r.session.set("trialNumBlock",0),r.session.set("trialNumTotal",0),r.session.set("demoCounter",0),r.session.set("nextStimulus",null),r.session.set("response",""),r.session.set("dataCorrect",""),r.session.set("keyResponse",""),r.session.set("gradeKeyResponse",[]),r.session.set("currentCorpus",[]),r.session.set("timeOut",!1),r.session.set("practiceCorpus",Qc.practice),r.session.set("currentTrialCorrect",!0),r.session.set("coinTrackingIndex",0),r.session.set("initialized",!0)),r.session},ap=e=>[Zu,...Il,{type:Eo,func:()=>{const t=r.session.get("config");t.pid=t.pid||(()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<16;n+=1)e+=t.charAt(Math.floor(62*Math.random()));return e})(),e.updateUser({assessmentPid:t.pid,labId:t.labId,...t.userMetadata})}}],rp=Object.prototype.toString;function op(e){switch(rp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return vp(e,Error)}}function cp(e,t){return rp.call(e)===`[object ${t}]`}function lp(e){return cp(e,"ErrorEvent")}function dp(e){return cp(e,"DOMError")}function up(e){return cp(e,"String")}function pp(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function hp(e){return null===e||pp(e)||"object"!=typeof e&&"function"!=typeof e}function fp(e){return cp(e,"Object")}function mp(e){return"undefined"!=typeof Event&&vp(e,Event)}function gp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function yp(e){return"number"==typeof e&&e!=e}function vp(e,t){try{return e instanceof t}catch(e){return!1}}function _p(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function bp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function wp(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{_p(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Ip(e,t,n=!1){return!!up(e)&&(cp(t,"RegExp")?t.test(e):!!up(t)&&(n?e===t:e.includes(t)))}function xp(e,t=[],n=!1){return t.some((t=>Ip(e,t,n)))}function Ep(e,t,n=250,i,s,a,r){if(!(a.exception&&a.exception.values&&r&&vp(r.originalException,Error)))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,l;o&&(a.exception.values=(c=Sp(e,t,s,r.originalException,i,a.exception.values,o,0),l=n,c.map((e=>(e.value&&(e.value=bp(e.value,l)),e)))))}function Sp(e,t,n,i,s,a,r,o){if(a.length>=n+1)return a;let c=[...a];if(vp(i[s],Error)){Ap(r,o);const a=e(t,i[s]),l=c.length;Tp(a,s,l,o),c=Sp(e,t,n,i[s],s,[a,...c],a,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,a)=>{if(vp(i,Error)){Ap(r,o);const l=e(t,i),d=c.length;Tp(l,`errors[${a}]`,d,o),c=Sp(e,t,n,i,s,[l,...c],l,d)}})),c}function Ap(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Tp(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function kp(e){return e&&e.Math==Math?e:void 0}const Rp="object"==typeof globalThis&&kp(globalThis)||"object"==typeof window&&kp(window)||"object"==typeof self&&kp(self)||"object"==typeof global&&kp(global)||function(){return this}()||{};function Lp(){return Rp}function Cp(e,t,n){const i=n||Rp,s=i.__SENTRY__=i.__SENTRY__||{};return s[e]||(s[e]=t())}const Op=Lp(),Fp=80;function Np(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||Fp;for(;n&&a++<i&&(l=Up(n,d),!("html"===l||a>1&&r+s.length*c+l.length>=u));)s.push(l),r+=l.length,n=n.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}function Up(e,t){const n=e,i=[];let s,a,r,o,c;if(!n||!n.tagName)return"";if(Op.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),s=n.className,s&&up(s))for(a=s.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)r=d[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}function jp(e){if(!Op.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const Pp="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Mp=["debug","info","warn","error","log","assert","trace"],Dp={};function $p(e){if(!("console"in Rp))return e();const t=Rp.console,n={},i=Object.keys(Dp);i.forEach((e=>{const i=Dp[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const zp=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Pp?Mp.forEach((n=>{t[n]=(...t)=>{e&&$p((()=>{Rp.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Mp.forEach((e=>{t[e]=()=>{}})),t}(),Bp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qp(e,t=!1){const{host:n,path:i,pass:s,port:a,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&s?`:${s}`:""}@${n}${a?`:${a}`:""}/${i?`${i}/`:i}${r}`}function Vp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Hp(e){const t="string"==typeof e?function(e){const t=Bp.exec(e);if(!t)return void $p((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,i,s="",a,r="",o]=t.slice(1);let c="",l=o;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Vp({host:a,pass:s,path:c,projectId:l,port:r,protocol:n,publicKey:i})}(e):Vp(e);if(t&&function(e){if(!Pp)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(zp.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(zp.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(zp.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(zp.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}class Wp extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Yp(e,t,n){if(!(t in e))return;const i=e[t],s=n(i);"function"==typeof s&&Gp(s,i),e[t]=s}function Kp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Pp&&zp.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Gp(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Kp(e,"__sentry_original__",t)}catch(e){}}function Jp(e){return e.__sentry_original__}function Xp(e){if(op(e))return{message:e.message,name:e.name,stack:e.stack,...Zp(e)};if(mp(e)){const t={type:e.type,target:Qp(e.target),currentTarget:Qp(e.currentTarget),...Zp(e)};return"undefined"!=typeof CustomEvent&&vp(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Qp(e){try{return t=e,"undefined"!=typeof Element&&vp(t,Element)?Np(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function Zp(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function eh(e){return th(e,new Map)}function th(e,t){if(function(e){if(!fp(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=th(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(th(e,t))})),i}return e}const nh=50,ih=/\(error: (.*)\)/,sh=/captureMessage|captureException/;function ah(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const i=[],s=e.split("\n");for(let e=n;e<s.length;e++){const n=s[e];if(n.length>1024)continue;const a=ih.test(n)?n.replace(ih,"$1"):n;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){i.push(t);break}}if(i.length>=nh)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),sh.test(t[t.length-1].function||"")&&(t.pop(),sh.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,nh).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(i)}}const rh="<anonymous>";function oh(e){try{return e&&"function"==typeof e&&e.name||rh}catch(e){return rh}}const ch={},lh={};function dh(e,t){ch[e]=ch[e]||[],ch[e].push(t)}function uh(e,t){lh[e]||(t(),lh[e]=!0)}function ph(e,t){const n=e&&ch[e];if(n)for(const i of n)try{i(t)}catch(t){Pp&&zp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${oh(i)}\nError:`,t)}}function hh(){"console"in Rp&&Mp.forEach((function(e){e in Rp.console&&Yp(Rp.console,e,(function(t){return Dp[e]=t,function(...t){ph("console",{args:t,level:e});const n=Dp[e];n&&n.apply(Rp.console,t)}}))}))}function fh(){const e=Rp,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function mh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function gh(e){const{message:t,event_id:n}=e;if(t)return t;const i=mh(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function yh(e,t,n){const i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function vh(e,t){const n=mh(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}function _h(e){if(e&&e.__sentry_captured__)return!0;try{Kp(e,"__sentry_captured__",!0)}catch(e){}return!1}function bh(e){return Array.isArray(e)?e:[e]}const wh=Rp,Ih=1e3;let xh,Eh,Sh;function Ah(){if(!wh.document)return;const e=ph.bind(null,"dom"),t=Th(e,!0);wh.document.addEventListener("click",t,!1),wh.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=wh[t]&&wh[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Yp(n,"addEventListener",(function(t){return function(n,i,s){if("click"===n||"keypress"==n)try{const i=this,a=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=a[n]=a[n]||{refCount:0};if(!r.handler){const i=Th(e);r.handler=i,t.call(this,n,i,s)}r.refCount++}catch(e){}return t.call(this,n,i,s)}})),Yp(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},a=s[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,i),a.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}function Th(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;Kp(n,"_sentryCaptured",!0),i&&!i._sentryId&&Kp(i,"_sentryId",fh());const s="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Eh)return!1;try{if(!e.target||e.target._sentryId!==Sh)return!1}catch(e){}return!0}(n)){e({event:n,name:s,global:t}),Eh=n.type,Sh=i?i._sentryId:void 0}clearTimeout(xh),xh=wh.setTimeout((()=>{Sh=void 0,Eh=void 0}),Ih)}}const kh=Lp();function Rh(){if(!("fetch"in kh))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Lh(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ch(e){const t="fetch";dh(t,e),uh(t,Oh)}function Oh(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Rh())return!1;if(Lh(kh.fetch))return!0;let e=!1;const t=kh.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Lh(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Pp&&zp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&Yp(Rp,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Nh(t),method:Fh(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Nh(t),method:Fh(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return ph("fetch",{...s}),e.apply(Rp,t).then((e=>(ph("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw ph("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}function Fh(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Nh(e){return"string"==typeof e?e:e?Fh(e,"url")?e.url:e.toString?e.toString():"":""}let Uh=null;function jh(e){const t="error";dh(t,e),uh(t,Ph)}function Ph(){Uh=Rp.onerror,Rp.onerror=function(e,t,n,i,s){return ph("error",{column:i,error:s,line:n,msg:e,url:t}),!(!Uh||Uh.__SENTRY_LOADER__)&&Uh.apply(this,arguments)},Rp.onerror.__SENTRY_INSTRUMENTED__=!0}let Mh=null;function Dh(e){const t="unhandledrejection";dh(t,e),uh(t,$h)}function $h(){Mh=Rp.onunhandledrejection,Rp.onunhandledrejection=function(e){return ph("unhandledrejection",e),!(Mh&&!Mh.__SENTRY_LOADER__)||Mh.apply(this,arguments)},Rp.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const zh=Lp();const Bh=Rp;let qh;function Vh(e){const t="history";dh(t,e),uh(t,Hh)}function Hh(){if(!function(){const e=zh.chrome,t=e&&e.app&&e.app.runtime,n="history"in zh&&!!zh.history.pushState&&!!zh.history.replaceState;return!t&&n}())return;const e=Bh.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=qh,t=String(n);qh=t;ph("history",{from:e,to:t})}return e.apply(this,t)}}Bh.onpopstate=function(...t){const n=Bh.location.href,i=qh;qh=n;if(ph("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},Yp(Bh.history,"pushState",t),Yp(Bh.history,"replaceState",t)}const Wh=Rp,Yh="__sentry_xhr_v3__";function Kh(e){dh("xhr",e),uh("xhr",Gh)}function Gh(){if(!Wh.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Yp(e,"open",(function(e){return function(...t){const n=Date.now(),i=up(t[0])?t[0].toUpperCase():void 0,s=function(e){if(up(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!i||!s)return e.apply(this,t);this[Yh]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[Yh];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}ph("xhr",{args:[i,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Yp(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),Yp(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,s=this[Yh];return s&&up(n)&&up(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),Yp(e,"send",(function(e){return function(...t){const n=this[Yh];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return ph("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function Jh(e,t=100,n=1/0){try{return Qh("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Xh(e,t=3,n=102400){const i=Jh(e,t);return s=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>n?Xh(e,t-1,n):i;var s}function Qh(e,t,n=1/0,i=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!yp(t))return t;const o=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(_p(t))return"[VueViewModel]";if(fp(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${oh(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return o.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return Qh("",l.toJSON(),c-1,i,s)}catch(e){}const d=Array.isArray(t)?[]:{};let u=0;const p=Xp(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(u>=i){d[e]="[MaxProperties ~]";break}const t=p[e];d[e]=Qh(e,t,c-1,i,s),u++}return r(t),d}var Zh;function ef(e){return new nf((t=>{t(e)}))}function tf(e){return new nf(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Zh||(Zh={}));let nf=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Zh.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e(((e,i)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(e){i(e)}else e(n)},t=>{if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(t){return new e(((e,n)=>{let i,s;return this.then((e=>{s=!1,i=e,t&&t()}),(e=>{s=!0,i=e,t&&t()})).then((()=>{s?n(i):e(i)}))}))}__init(){this._resolve=e=>{this._setResult(Zh.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Zh.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Zh.PENDING&&(gp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Zh.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Zh.RESOLVED&&e[1](this._value),this._state===Zh.REJECTED&&e[2](this._value),e[0]=!0)}))}}};function sf(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return tf(new Wp("Not adding Promise because buffer limit was reached."));const s=i();return-1===t.indexOf(s)&&t.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(e){return new nf(((n,i)=>{let s=t.length;if(!s)return n(!0);const a=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{ef(e).then((()=>{--s||(clearTimeout(a),n(!0))}),i)}))}))}}}function af(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}const rf=["fatal","error","warning","log","info","debug"];function of(e){return"warn"===e?"warning":rf.includes(e)?e:"log"}const cf=1e3;function lf(){return Date.now()/cf}const df=function(){const{performance:e}=Rp;if(!e||!e.now)return lf;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/cf}(),uf=(()=>{const{performance:e}=Rp;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;return a||o<t?s<=o?e.timeOrigin:r:i})(),pf="baggage",hf="sentry-",ff=/^sentry-/,mf=8192;function gf(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],i)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?s:`${e},${s}`;return a.length>mf?(Pp&&zp.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${hf}${t}`]=n),e)),{}))}function yf(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const vf=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function _f(e,t){const n=function(e){if(!e)return;const t=e.match(vf);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),i=function(e){if(!up(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=yf(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});else{if(!e)return;t=yf(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(ff)&&(e[t.slice(hf.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:s,parentSpanId:a,parentSampled:r}=n||{};return n?{traceId:s||fh(),parentSpanId:a||fh().substring(16),spanId:fh().substring(16),sampled:r,dsc:i||{}}:{traceId:s||fh(),spanId:fh().substring(16)}}function bf(e=fh(),t=fh().substring(16),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${e}-${t}${i}`}function wf(e,t=[]){return[e,t]}function If(e,t){const[n,i]=e;return[n,[...i,t]]}function xf(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function Ef(e,t){return(t||new TextEncoder).encode(e)}function Sf(e,t){const[n,i]=e;let s=JSON.stringify(n);function a(e){"string"==typeof s?s="string"==typeof e?s+e:[Ef(s,t),e]:s.push("string"==typeof e?Ef(e,t):e)}for(const e of i){const[t,n]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Jh(n))}a(e)}}return"string"==typeof s?s:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let i=0;for(const t of e)n.set(t,i),i+=t.length;return n}(s)}function Af(e,t){const n="string"==typeof e.data?Ef(e.data,t):e.data;return[eh({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Tf={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function kf(e){return Tf[e]}function Rf(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const Lf=6e4;function Cf(e,{statusCode:t,headers:n},i=Date.now()){const s={...e},a=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),a=parseInt(t,10),r=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))s[e]=i+r;else s.all=i+r}else r?s.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?Lf:i-t}(r,i):429===t&&(s.all=i+6e4);return s}const Of="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ff="production";function Nf(){return Cp("globalEventProcessors",(()=>[]))}function Uf(e){Nf().push(e)}function jf(e,t,n,i=0){return new nf(((s,a)=>{const r=e[i];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},n);Of&&r.id&&null===o&&zp.log(`Event processor "${r.id}" dropped event`),gp(o)?o.then((t=>jf(e,t,n,i+1).then(s))).then(null,a):jf(e,o,n,i+1).then(s).then(null,a)}}))}function Pf(e){const t=df(),n={sid:fh(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return eh({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Mf(n,e),n}function Mf(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||df(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:fh()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Df(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Mf(e,n)}const $f=1;function zf(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:r,tags:o,origin:c}=Hf(e);return eh({data:i,op:s,parent_span_id:a,span_id:t,status:r,tags:o,trace_id:n,origin:c})}function Bf(e){const{traceId:t,spanId:n}=e.spanContext();return bf(t,n,Wf(e))}function qf(e){return"number"==typeof e?Vf(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Vf(e.getTime()):df()}function Vf(e){return e>9999999999?e/1e3:e}function Hf(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function Wf(e){const{traceFlags:t}=e.spanContext();return Boolean(t&$f)}function Yf(e,t,n,i,s,a){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||n.event_id||fh(),timestamp:t.timestamp||lf()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:s,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:Ff);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==s&&(e.dist=s);e.message&&(e.message=bp(e.message,a));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=bp(r.value,a));const o=e.request;o&&o.url&&(o.url=bp(o.url,a))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),void 0===t.type&&function(e,t){const n=Rp._sentryDebugIds;if(!n)return;let i;const s=Kf.get(t);s?i=s:(i=new Map,Kf.set(t,i));const a=Object.keys(n).reduce(((e,s)=>{let a;const r=i.get(s);r?a=r:(a=t(s),i.set(s,a));for(let t=a.length-1;t>=0;t--){const i=a[t];if(i.filename){e[i.filename]=n[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(c,e.stackParser);const d=function(e,t){if(!t)return e;const n=e?e.clone():new pm;return n.update(t),n}(i,n.captureContext);n.mechanism&&vh(c,n.mechanism);const u=s&&s.getEventProcessors?s.getEventProcessors():[],p=function(){um||(um=new pm);return um}().getScopeData();if(a){lm(p,a.getScopeData())}if(d){lm(p,d.getScopeData())}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),cm(c,p);return jf([...u,...Nf(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof r&&r>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Jh(e.data,t,n)}})))},...e.user&&{user:Jh(e.user,t,n)},...e.contexts&&{contexts:Jh(e.contexts,t,n)},...e.extra&&{extra:Jh(e.extra,t,n)}};e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=Jh(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>{const i=Hf(e).data;return i&&(e.data=Jh(i,t,n)),e})));return i}(e,r,o):e)))}const Kf=new WeakMap;function Gf(e){if(e)return function(e){return e instanceof pm||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Jf.includes(e)))}(e)?{captureContext:e}:e}const Jf=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Xf(e,t){return bm().captureEvent(e,t)}function Qf(e,t){bm().addBreadcrumb(e,t)}function Zf(){return bm().getClient()}function em(){return bm().getScope()}function tm(e){const t=Zf(),n=wm(),i=em(),{release:s,environment:a=Ff}=t&&t.getOptions()||{},{userAgent:r}=Rp.navigator||{},o=Pf({release:s,environment:a,user:i.getUser()||n.getUser(),...r&&{userAgent:r},...e}),c=n.getSession();return c&&"ok"===c.status&&Mf(c,{status:"exited"}),nm(),n.setSession(o),i.setSession(o),o}function nm(){const e=wm(),t=em(),n=t.getSession()||e.getSession();n&&Df(n),im(),e.setSession(),t.setSession()}function im(){const e=wm(),t=em(),n=Zf(),i=t.getSession()||e.getSession();i&&n&&n.captureSession&&n.captureSession(i)}function sm(e=!1){e?nm():im()}function am(e){return e.transaction}function rm(e,t,n){const i=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},r=eh({environment:i.environment||Ff,release:i.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}function om(e){const t=Zf();if(!t)return{};const n=rm(Hf(e).trace_id||"",t,em()),i=am(e);if(!i)return n;const s=i&&i._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:r}=i.metadata;null!=a&&(n.sample_rate=`${a}`);const o=Hf(i);return r&&"url"!==r&&(n.transaction=o.description),n.sampled=String(Wf(i)),t.emit&&t.emit("createDsc",n),n}function cm(e,t){const{fingerprint:n,span:i,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,transactionName:o}=t,c=eh(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=eh(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const d=eh(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const u=eh(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts});r&&(e.level=r);o&&(e.transaction=o)}(e,t),i&&function(e,t){e.contexts={trace:zf(t),...e.contexts};const n=am(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:om(t),...e.sdkProcessingMetadata};const i=Hf(n).description;i&&(e.tags={transaction:i,...e.tags})}}(e,i),function(e,t){e.fingerprint=e.fingerprint?bh(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function lm(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:l,eventProcessors:d,attachments:u,propagationContext:p,transactionName:h,span:f}=t;dm(e,"extra",n),dm(e,"tags",i),dm(e,"user",s),dm(e,"contexts",a),dm(e,"sdkProcessingMetadata",o),r&&(e.level=r),h&&(e.transactionName=h),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...p}}function dm(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[t][i]=n[i])}}let um,pm=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=hm()}static clone(t){return t?t.clone():new e}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Mf(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):fp(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=hm(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:lf(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:i,_extra:s,_user:a,_level:r,_fingerprint:o,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:u,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:i,extra:s,user:a,level:r,fingerprint:o||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:d,transactionName:u,span:p}}applyToEvent(e,t={},n=[]){cm(e,this.getScopeData());return jf([...n,...Nf(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:fh();if(!this._client)return zp.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:fh();if(!this._client)return zp.warn("No client configured on scope - will not capture message!"),i;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:fh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(zp.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}};function hm(){return{traceId:fh(),spanId:fh().substring(16)}}const fm="7.101.0",mm=parseFloat(fm),gm=100;let ym=class{constructor(e,t,n,i=mm){let s,a;this._version=i,t?s=t:(s=new pm,s.setClient(e)),n?a=n:(a=new pm,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return gp(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:fh(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:fh(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:fh();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=gm}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const r={timestamp:lf(),...e},o=s?$p((()=>s(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=_m(this);try{e(this)}finally{_m(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Of&&zp.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(Of&&!n){this.getClient()?zp.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):zp.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&Df(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:s=Ff}=n&&n.getOptions()||{},{userAgent:a}=Rp.navigator||{},r=Pf({release:i,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Mf(o,{status:"exited"}),this.endSession(),t.setSession(r),r}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=vm().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Of&&zp.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function vm(){return Rp.__SENTRY__=Rp.__SENTRY__||{extensions:{},hub:void 0},Rp}function _m(e){const t=vm(),n=Im(t);return xm(t,e),n}function bm(){const e=vm();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=vm()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!Im(e).isOlderThan(mm)||xm(e,new ym);var t;return Im(e)}(e)}function wm(){return bm().getIsolationScope()}function Im(e){return Cp("hub",(()=>new ym),e)}function xm(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function Em(e){return(e||bm()).getScope().getTransaction()}let Sm=!1;function Am(){const e=Em();if(e){const t="internal_error";Of&&zp.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var Tm;function km(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);"unknown_error"!==n&&e.setStatus(n)}function Rm(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Zf(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Lm(e){if(!Rm())return;const t=function(e){if(e.startTime){const t={...e};return t.startTimestamp=qf(e.startTime),delete t.startTime,t}return e}(e),n=bm(),i=e.scope?e.scope.getSpan():Cm();if(e.onlyIfParent&&!i)return;const s=wm(),a=em();let r;if(i)r=i.startChild(t);else{const{traceId:e,dsc:i,parentSpanId:o,sampled:c}={...s.getPropagationContext(),...a.getPropagationContext()};r=n.startTransaction({traceId:e,parentSpanId:o,parentSampled:c,...t,metadata:{dynamicSamplingContext:i,...t.metadata}})}return function(e,t,n){e&&(Kp(e,Fm,n),Kp(e,Om,t))}(r,a,s),r}function Cm(){return em().getSpan()}Am.tag="sentry_tracingErrorCallback",function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(Tm||(Tm={}));const Om="_sentryScope",Fm="_sentryIsolationScope";const Nm="sentry.source",Um="sentry.sample_rate",jm="sentry.op",Pm="sentry.origin";class Mm{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Dm{constructor(e={}){this._traceId=e.traceId||fh(),this._spanId=e.spanId||fh().substring(16),this._startTime=e.startTimestamp||df(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Pm]:e.origin||"manual",[jm]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp)}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[jm]}set op(e){this.setAttribute(jm,e)}get origin(){return this._attributes[Pm]}set origin(e){this.setAttribute(Pm,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?$f:0}}startChild(e){const t=new Dm({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=am(this);if(t.transaction=n,Of&&n){const i=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${Hf(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;zp.log(i),this._logMessage=i}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return km(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=am(this);if(Of&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&zp.log(e.replace("Starting","Finishing"))}this._endTime=qf(e)}toTraceparent(){return Bf(this)}toContext(){return eh({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return zf(this)}getSpanJSON(){return eh({data:this._getData(),description:this._name,op:this._attributes[jm],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Pm],_metrics_summary:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,i=Object.keys(t).length>0;if(n||i)return n&&i?{...e,...t}:n?e:t}}class $m extends Dm{constructor(e,t){super(e),this._measurements={},this._contexts={},this._hub=t||bm(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Nm]&&{source:this._attributes[Nm]},...this._attributes[Um]&&{sampleRate:this._attributes[Um]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(Nm,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Mm(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=qf(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return eh({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return om(this)}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(Of&&zp.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return Of&&zp.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&Hf(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>Hf(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:i,isolationScope:s}={scope:(a=this)[Om],isolationScope:a[Fm]};var a;const{metadata:r}=this,{source:o}=r,c={contexts:{...this._contexts,trace:zf(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...r,capturedSpanScope:i,capturedSpanIsolationScope:s,dynamicSamplingContext:om(this)},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(Of&&zp.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),Of&&zp.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const zm={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Bm=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class qm extends Mm{constructor(e,t,n,i){super(i),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===Hf(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Vm extends $m{constructor(e,t,n=zm.idleTimeout,i=zm.finalTimeout,s=zm.heartbeatInterval,a=!1,r=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=s,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Bm[4],this._autoFinishAllowed=!r,a&&(Of&&zp.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),r||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Bm[3],this.end())}),this._finalTimeout)}end(e){const t=qf(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){Of&&zp.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;Hf(e).timestamp||(e.setStatus("cancelled"),e.end(t),Of&&zp.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:i}=Hf(e),s=n&&n<t,a=(this._finalTimeout+this._idleTimeout)/1e3,r=i&&n&&i-n<a;if(Of){const t=JSON.stringify(e,void 0,2);s?r||zp.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):zp.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return s&&r})),Of&&zp.log("[Tracing] flushing IdleTransaction")}else Of&&zp.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new qm(t,n,this.spanContext().spanId,e),Of&&zp.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Bm[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Of&&zp.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Bm[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Of&&zp.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Of&&zp.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Of&&zp.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Of&&zp.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=df();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Bm[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Of&&zp.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Bm[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Of&&zp.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Hm(e,t,n){if(!Rm(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(Um,Number(e.sampled)),e;let i;return"function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setAttribute(Um,Number(i))):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setAttribute(Um,Number(i))):(i=1,e.setAttribute(Um,i)),function(e){if(yp(e)||"number"!=typeof e&&"boolean"!=typeof e)return Of&&zp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1;if(e<0||e>1)return Of&&zp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(i)?i?(e.sampled=Math.random()<i,e.sampled?(Of&&zp.log(`[Tracing] starting ${e.op} transaction - ${Hf(e).description}`),e):(Of&&zp.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(Of&&zp.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(Of&&zp.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Wm(){const e=this.getScope().getSpan();return e?{"sentry-trace":Bf(e)}:{}}function Ym(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},s=i.instrumenter||"sentry",a=e.instrumenter||"sentry";s!==a&&(Of&&zp.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let r=new $m(e,this);return r=Hm(r,i,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),r.isRecording()&&r.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",r),r}function Km(e,t,n,i,s,a,r,o=!1){const c=e.getClient(),l=c&&c.getOptions()||{};let d=new Vm(t,e,n,i,r,s,o);return d=Hm(d,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),d.isRecording()&&d.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",d),d}function Gm(){const e=vm();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Ym),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Wm),Sm||(Sm=!0,jh(Am),Dh(Am)))}function Jm(e,t,n,i){const s=Rf(n),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const r=function(e,t,n,i){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:qp(i)},...s&&{trace:eh({...s})}}}(e,s,i,t);delete e.sdkProcessingMetadata;return wf(r,[[{type:a},e]])}const Xm="7";function Qm(e,t){return n={sentry_key:e.publicKey,sentry_version:Xm,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}const Zm=[];function eg(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(n)?[...t,...n]:"function"==typeof n?bh(n(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(i),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(s,(e=>"Debug"===e.name));if(-1!==a){const[e]=s.splice(a,1);s.push(e)}return s}function tg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function ng(e,t,n){if(n[t.name])Of&&zp.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Zm.indexOf(t.name)&&(t.setupOnce(Uf,bm),Zm.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,i)=>n(t,i,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign(((t,i)=>n(t,i,e)),{id:t.name});e.addEventProcessor(i)}Of&&zp.log(`Integration installed: ${t.name}`)}}function ig(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function sg(e,t,n,i){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),i&&t&&(s.dsn=qp(t));const a=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),i=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return wf(s,[a])}const ag="Not capturing exception because it's already been captured.";class rg{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Hp(e.dsn):Of&&zp.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${Qm(e,i)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(_h(e))return void(Of&&zp.log(ag));let i=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{i=e}))),i}captureMessage(e,t,n,i){let s=n&&n.event_id;const a=pp(e)?e:String(e),r=hp(e)?this.eventFromMessage(a,t,n):this.eventFromException(e,n);return this._process(r.then((e=>this._captureEvent(e,n,i))).then((e=>{s=e}))),s}captureEvent(e,t,n){if(t&&t.originalException&&_h(t.originalException))return void(Of&&zp.log(ag));let i=t&&t.event_id;const s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,s||n).then((e=>{i=e}))),i}captureSession(e){"string"!=typeof e.release?Of&&zp.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Mf(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):ef(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Of&&zp.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];ng(this,e,this._integrations),t||tg(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Jm(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=If(n,Af(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,i){const s=Rf(n);return wf({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!i&&t&&{dsn:qp(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;Of&&zp.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){Of&&zp.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=sg(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&ng(e,t,n)})),n}(this,e),tg(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,i=!1;const s=t.exception&&t.exception.values;if(s){i=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&n)&&(Mf(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new nf((t=>{let n=0;const i=setInterval((()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(n+=1,e&&n>=e&&(clearInterval(i),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,i=wm()){const s=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),Yf(s,e,t,n,this,i).then((e=>{if(null===e)return e;const t={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:i,spanId:s,parentSpanId:a,dsc:r}=t;e.contexts={trace:{trace_id:i,span_id:s,parent_span_id:a},...e.contexts};const o=r||rm(i,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Of){const t=e;"log"===t.logLevel?zp.log(t.message):zp.warn(t)}}))}_processEvent(e,t,n){const i=this.getOptions(),{sampleRate:s}=i,a=cg(e),r=og(e),o=e.type||"error",c=`before send for type \`${o}\``;if(r&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),tf(new Wp(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const l="replay_event"===o?"replay":o,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Wp("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const s=function(e,t,n){const{beforeSend:i,beforeSendTransaction:s}=e;if(og(t)&&i)return i(t,n);if(cg(t)&&s)return s(t,n);return t}(i,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(gp(e))return e.then((e=>{if(!fp(e)&&null!==e)throw new Wp(n);return e}),(e=>{throw new Wp(`${t} rejected with ${e}`)}));if(!fp(e)&&null!==e)throw new Wp(n);return e}(s,c)})).then((i=>{if(null===i)throw this.recordDroppedEvent("before_send",l,e),new Wp(`${c} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!a&&s&&this._updateSessionFromEvent(s,i);const r=i.transaction_info;if(a&&r&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...r,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(e instanceof Wp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Wp(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Of&&zp.error("Error while sending event:",e)}));Of&&zp.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,i]=t.split(":");return{reason:n,category:i,quantity:e[t]}}))}}function og(e){return void 0===e.type}function cg(e){return"transaction"===e.type}function lg(e,t){!0===t.debug&&(Of?zp.enable():$p((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));em().update(t.initialScope);const n=new e(t);!function(e){const t=bm().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}const dg=30;function ug(e,t,n=sf(e.bufferSize||dg)){let i={};function s(s){const a=[];if(xf(s,((t,n)=>{const s=kf(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,s)){const i=pg(t,n);e.recordDroppedEvent("ratelimit_backoff",s,i)}else a.push(t)})),0===a.length)return ef();const r=wf(s[0],a),o=t=>{xf(r,((n,i)=>{const s=pg(n,i);e.recordDroppedEvent(t,kf(i),s)}))};return n.add((()=>t({body:Sf(r,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Of&&zp.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Cf(i,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Wp)return Of&&zp.error("Skipped sending event because buffer is full."),o("queue_overflow"),ef();throw e}))}return s.__sentry__baseTransport__=!0,{send:s,flush:e=>n.drain(e)}}function pg(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const hg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],fg=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],mg="InboundFilters",gg=(e={})=>({name:mg,setupOnce(){},processEvent(t,n,i){const s=i.getOptions(),a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:hg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:fg],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,s);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return Of&&zp.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${gh(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));Of&&0===t.length&&zp.error(`Could not extract message for event ${gh(e)}`);return t}(e).some((e=>xp(e,t)))}(e,t.ignoreErrors))return Of&&zp.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${gh(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&xp(n,t)}(e,t.ignoreTransactions))return Of&&zp.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${gh(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=yg(e);return!!n&&xp(n,t)}(e,t.denyUrls))return Of&&zp.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${gh(e)}.\nUrl: ${yg(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=yg(e);return!n||xp(n,t)}(e,t.allowUrls))return Of&&zp.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${gh(e)}.\nUrl: ${yg(e)}`),!0;return!1}(t,a)?null:t}});function yg(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return Of&&zp.error(`Cannot extract url for event ${gh(e)}`),null}}let vg;ig(mg,gg);const _g="FunctionToString",bg=new WeakMap,wg=()=>({name:_g,setupOnce(){vg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Jp(this),n=bg.has(Zf())&&void 0!==t?t:this;return vg.apply(n,e)}}catch(e){}},setup(e){bg.set(e,!0)}});ig(_g,wg);const Ig="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,xg=Rp;const Eg=(e,t,n)=>{let i,s;return a=>{t.value>=0&&(a||n)&&(s=t.value-(i||0),(s||void 0===i)&&(i=t.value,t.delta=s,e(t)))}},Sg=()=>xg.__WEB_VITALS_POLYFILL__?xg.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=xg.performance.timing,t=xg.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):xg.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Ag=()=>{const e=Sg();return e&&e.activationStart||0},Tg=(e,t)=>{const n=Sg();let i="navigate";return n&&(i=xg.document.prerendering||Ag()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},kg=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{t(e.getEntries())}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},Rg=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==xg.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Lg=e=>{const t=Tg("CLS",0);let n,i=0,s=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const a=s[0],r=s[s.length-1];i&&0!==s.length&&e.startTime-r.startTime<1e3&&e.startTime-a.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e]),i>t.value&&(t.value=i,t.entries=s,n&&n())}}))},r=kg("layout-shift",a);if(r){n=Eg(e,t);const i=()=>{a(r.takeRecords()),n(!0)};return Rg(i),i}};let Cg=-1;const Og=()=>(Cg<0&&(Cg="hidden"!==xg.document.visibilityState||xg.document.prerendering?1/0:0,Rg((({timeStamp:e})=>{Cg=e}),!0)),{get firstHiddenTime(){return Cg}}),Fg=e=>{const t=Og(),n=Tg("FID");let i;const s=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),i(!0))},a=e=>{e.forEach(s)},r=kg("first-input",a);i=Eg(e,n),r&&Rg((()=>{a(r.takeRecords()),r.disconnect()}),!0)},Ng={},Ug=e=>{const t=Og(),n=Tg("LCP");let i;const s=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-Ag(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[s],i())}},a=kg("largest-contentful-paint",s);if(a){i=Eg(e,n);const t=()=>{Ng[n.id]||(s(a.takeRecords()),a.disconnect(),Ng[n.id]=!0,i(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),Rg(t,!0),t}},jg={},Pg={};let Mg,Dg,$g;function zg(e,t){return Yg(e,t),Pg[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);kg(e,(t=>{Bg(e,{entries:t})}),t)}(e),Pg[e]=!0),Kg(e,t)}function Bg(e,t){const n=jg[e];if(n&&n.length)for(const i of n)try{i(t)}catch(t){Ig&&zp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${oh(i)}\nError:`,t)}}function qg(){return Lg((e=>{Bg("cls",{metric:e}),Mg=e}))}function Vg(){return Fg((e=>{Bg("fid",{metric:e}),Dg=e}))}function Hg(){return Ug((e=>{Bg("lcp",{metric:e}),$g=e}))}function Wg(e,t,n,i,s=!1){let a;return Yg(e,t),Pg[e]||(a=n(),Pg[e]=!0),i&&t({metric:i}),Kg(e,t,s?a:void 0)}function Yg(e,t){jg[e]=jg[e]||[],jg[e].push(t)}function Kg(e,t,n){return()=>{n&&n();const i=jg[e];if(!i)return;const s=i.indexOf(t);-1!==s&&i.splice(s,1)}}function Gg(e){return"number"==typeof e&&isFinite(e)}function Jg(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Xg=2147483647;function Qg(e){return e/1e3}function Zg(){return xg&&xg.addEventListener&&xg.performance}let ey,ty,ny=0,iy={};function sy(){const e=Zg();if(e&&uf){e.mark&&xg.performance.mark("sentry-tracing-init");const t=Wg("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Qg(uf),i=Qg(t.startTime);Ig&&zp.log("[Measurements] Adding FID"),iy.fid={value:e.value,unit:"millisecond"},iy["mark.fid"]={value:n+i,unit:"second"}}),Vg,Dg),n=function(e,t=!1){return Wg("cls",e,qg,Mg,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ig&&zp.log("[Measurements] Adding CLS"),iy.cls={value:e.value,unit:""},ty=t)}),!0),i=function(e,t=!1){return Wg("lcp",e,Hg,$g,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ig&&zp.log("[Measurements] Adding LCP"),iy.lcp={value:e.value,unit:"millisecond"},ey=t)}),!0);return()=>{t(),n(),i()}}return()=>{}}function ay(e){const t=Zg();if(!t||!xg.performance.getEntries||!uf)return;Ig&&zp.log("[Tracing] Adding & adjusting spans using Performance API");const n=Qg(uf),i=t.getEntries();let s,a;const{op:r,start_timestamp:o}=Hf(e);if(i.slice(ny).forEach((t=>{const i=Qg(t.startTime),r=Qg(t.duration);if(!("navigation"===e.op&&o&&n+i<o))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{ry(e,t,i,n)})),ry(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ry(e,t,"fetch",n,"cache","domainLookupStart"),ry(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Jg(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Qg(t.requestStart),endTimestamp:n+Qg(t.responseEnd)}),Jg(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Qg(t.responseStart),endTimestamp:n+Qg(t.responseEnd)}))}(e,t,n)}(e,t,n),s=n+Qg(t.responseStart),a=n+Qg(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,i,s){const a=s+n,r=a+i;Jg(e,{description:t.name,endTimestamp:r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})}(e,t,i,r,n);const s=Og(),a=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&a&&(Ig&&zp.log("[Measurements] Adding FP"),iy.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(Ig&&zp.log("[Measurements] Adding FCP"),iy.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,i,s,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const r=af(n),o={};oy(o,t,"transferSize","http.response_transfer_size"),oy(o,t,"encodedBodySize","http.response_content_length"),oy(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus);r.protocol&&(o["url.scheme"]=r.protocol.split(":").pop());r.host&&(o["server.address"]=r.host);o["url.same_origin"]=n.includes(xg.location.origin);const c=a+i,l=c+s;Jg(e,{description:n.replace(xg.location.origin,""),endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}(e,t,t.name,i,r,n)}})),ny=Math.max(i.length-1,0),function(e){const t=xg.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Gg(n.rtt)&&(iy["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Gg(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);Gg(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===r){!function(e,t,n,i){"number"==typeof t&&i&&(Ig&&zp.log("[Measurements] Adding TTFB"),e.ttfb={value:1e3*Math.max(t-i,0),unit:"millisecond"},"number"==typeof n&&n<=t&&(e["ttfb.requestTime"]={value:1e3*(t-n),unit:"millisecond"}))}(iy,s,a,o),["fcp","fp","lcp"].forEach((e=>{if(!iy[e]||!o||n>=o)return;const t=iy[e].value,i=n+Qg(t),s=Math.abs(1e3*(i-o)),a=s-t;Ig&&zp.log(`[Measurements] Normalized ${e} from ${t} to ${s} (${a})`),iy[e].value=s}));const t=iy["mark.fid"];t&&iy.fid&&(Jg(e,{description:"first input delay",endTimestamp:t.value+Qg(iy.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete iy["mark.fid"]),"fcp"in iy||delete iy.cls,Object.keys(iy).forEach((e=>{!function(e,t,n){const i=Em();i&&i.setMeasurement(e,t,n)}(e,iy[e].value,iy[e].unit)})),function(e){ey&&(Ig&&zp.log("[Measurements] Adding LCP Data"),ey.element&&e.setTag("lcp.element",Np(ey.element)),ey.id&&e.setTag("lcp.id",ey.id),ey.url&&e.setTag("lcp.url",ey.url.trim().slice(0,200)),e.setTag("lcp.size",ey.size));ty&&ty.sources&&(Ig&&zp.log("[Measurements] Adding CLS Data"),ty.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,Np(t.node)))))}(e)}ey=void 0,ty=void 0,iy={}}function ry(e,t,n,i,s,a){const r=a?t[a]:t[`${n}End`],o=t[`${n}Start`];o&&r&&Jg(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:i+Qg(o),endTimestamp:i+Qg(r)})}function oy(e,t,n,i){const s=t[n];null!=s&&s<Xg&&(e[i]=s)}function cy(e,t,n,i,s="auto.http.browser"){if(!Rm()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const n=i[t];if(n){if(e.response){km(n,e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length");if(t){const e=parseInt(t);e>0&&n.setAttribute("http.response_content_length",e)}}else e.error&&n.setStatus("internal_error");n.end(),delete i[t]}return}const r=em(),o=Zf(),{method:c,url:l}=e.fetchData,d=a?Lm({name:`${c} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":c,[Pm]:s},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,i[d.spanContext().spanId]=d),n(e.fetchData.url)&&o){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,i,s){const a=s||n.getSpan(),r=wm(),{traceId:o,spanId:c,sampled:l,dsc:d}={...r.getPropagationContext(),...n.getPropagationContext()},u=a?Bf(a):bf(o,c,l),p=gf(d||(a?om(a):rm(o,t,n))),h=i.headers||("undefined"!=typeof Request&&vp(e,Request)?e.headers:void 0);if(h){if("undefined"!=typeof Headers&&vp(h,Headers)){const e=new Headers(h);return e.append("sentry-trace",u),p&&e.append(pf,p),e}if(Array.isArray(h)){const e=[...h,["sentry-trace",u]];return p&&e.push([pf,p]),e}{const e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...h,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:p}}(t,o,r,n,d)}return d}const ly=["localhost",/^\/(?!\/)/],dy={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:ly,tracePropagationTargets:ly};function uy(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:i,tracingOrigins:s,shouldCreateSpanForRequest:a,enableHTTPTimings:r}={traceFetch:dy.traceFetch,traceXHR:dy.traceXHR,...e},o="function"==typeof a?a:e=>!0,c=e=>function(e,t){return xp(e,t||ly)}(e,i||s),l={};t&&Ch((e=>{const t=cy(e,o,c,l);r&&t&&py(t)})),n&&Kh((e=>{const t=function(e,t,n,i){const s=e.xhr,a=s&&s[Yh];if(!Rm()||!s||s.__sentry_own_request__||!a)return;const r=t(a.url);if(e.endTimestamp&&r){const e=s.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&void 0!==a.status_code&&(km(t,a.status_code),t.end(),delete i[e]))}const o=em(),c=wm(),l=r?Lm({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[Pm]:"auto.http.browser"},op:"http.client"}):void 0;l&&(s.__sentry_xhr_span_id__=l.spanContext().spanId,i[s.__sentry_xhr_span_id__]=l);const d=Zf();if(s.setRequestHeader&&n(a.url)&&d){const{traceId:e,spanId:t,sampled:n,dsc:i}={...c.getPropagationContext(),...o.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(pf,n)}catch(e){}}(s,l?Bf(l):bf(e,t,n),gf(i||(l?om(l):rm(e,d,o))))}return l}(e,o,c,l);r&&t&&py(t)}))}function py(e){const{url:t}=Hf(e).data||{};if(!t||"string"!=typeof t)return;const n=zg("resource",(({entries:i})=>{i.forEach((i=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(i)&&i.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",i="";for(const s of e){if("/"===s){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t="h"===i?"http":i,n=e.split(i)[1];break}i+=s}i===e&&(t=i);return{name:t,version:n}}(e.nextHopProtocol),i=[];if(i.push(["network.protocol.version",n],["network.protocol.name",t]),!uf)return i;return[...i,["http.request.redirect_start",hy(e.redirectStart)],["http.request.fetch_start",hy(e.fetchStart)],["http.request.domain_lookup_start",hy(e.domainLookupStart)],["http.request.domain_lookup_end",hy(e.domainLookupEnd)],["http.request.connect_start",hy(e.connectStart)],["http.request.secure_connection_start",hy(e.secureConnectionStart)],["http.request.connection_end",hy(e.connectEnd)],["http.request.request_start",hy(e.requestStart)],["http.request.response_start",hy(e.responseStart)],["http.request.response_end",hy(e.responseEnd)]]}(i);t.forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function hy(e=0){return((uf||performance.timeOrigin)+e)/1e3}const fy={...zm,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,_experiments:{},...dy},my=(e={})=>{const t=!!Ig&&!(!e.tracePropagationTargets&&!e.tracingOrigins);Gm(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...fy,...e},i=sy();let s,a;function r(e){const t=bm(),{beforeStartSpan:r,idleTimeout:o,finalTimeout:c,heartbeatInterval:l}=n,d="pageload"===e.op;let u;if(d){const t=d?gy("sentry-trace"):"",n=d?gy("baggage"):void 0,{traceId:i,dsc:s,parentSpanId:a,sampled:r}=_f(t,n);u={traceId:i,parentSpanId:a,parentSampled:r,...e,metadata:{...e.metadata,dynamicSamplingContext:s},trimEnd:!0}}else u={trimEnd:!0,...e};const p=r?r(u):u;p.metadata=p.name!==u.name?{...p.metadata,source:"custom"}:p.metadata,s=p.name,a=function(e){const t=e.attributes&&e.attributes[Nm],n=e.data&&e.data[Nm],i=e.metadata&&e.metadata.source;return t||n||i}(p),!1===p.sampled&&Ig&&zp.log(`[Tracing] Will not send ${p.op} transaction because of beforeNavigate.`),Ig&&zp.log(`[Tracing] Starting ${p.op} transaction on scope`);const{location:h}=xg,f=Km(t,p,o,c,!0,{location:h},l,d);return d&&(xg.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(xg.document.readyState)&&f.sendAutoFinishSignal()})),["interactive","complete"].includes(xg.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback((e=>{i(),ay(e)})),f}return n.enableLongTask&&zg("longtask",(({entries:e})=>{for(const t of e){const e=Em();if(!e)return;const n=Qg(uf+t.startTime),i=Qg(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})),n._experiments.enableInteractions&&zg("event",(({entries:e})=>{for(const t of e){const e=Em();if(!e)return;if("click"===t.name){const n=Qg(uf+t.startTime),i=Qg(t.duration),s={description:Np(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i},a=jp(t.target);a&&(s.attributes={"ui.component_name":a}),e.startChild(s)}}})),{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const i=e.getOptions(),{markBackgroundSpan:o,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:u,_experiments:p}=n,h=i&&i.tracePropagationTargets,f=h||n.tracePropagationTargets;let m;Ig&&t&&h&&zp.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=xg.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{m&&(Ig&&zp.log(`[Tracing] Finishing current transaction with op: ${Hf(m).op}`),m.end()),m=r({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{m&&(Ig&&zp.log(`[Tracing] Finishing current transaction with op: ${Hf(m).op}`),m.end()),m=r({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit){const t={name:xg.location.pathname,startTimestamp:uf?uf/1e3:void 0,origin:"auto.pageload.browser",attributes:{[Nm]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=Cm();n&&Hf(n).op}(e,t)}n.instrumentNavigation&&e.emit&&Vh((({to:t,from:n})=>{if(void 0===n&&g&&-1!==g.indexOf(t))g=void 0;else if(n!==t){g=void 0;const t={name:xg.location.pathname,origin:"auto.navigation.browser",attributes:{[Nm]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=Cm();n&&Hf(n).op}(e,t)}})),o&&(xg&&xg.document?xg.document.addEventListener("visibilitychange",(()=>{const e=Em();if(xg.document.hidden&&e){const t="cancelled",{op:n,status:i}=Hf(e);Ig&&zp.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),i||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):Ig&&zp.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&function(e,t,n){let i;const s=()=>{const{idleTimeout:s,finalTimeout:a,heartbeatInterval:r}=e,o="ui.action.click",c=Em();if(c&&c.op&&["navigation","pageload"].includes(c.op))return void(Ig&&zp.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(i&&(i.setFinishReason("interactionInterrupted"),i.end(),i=void 0),!t)return void(Ig&&zp.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const{location:l}=xg,d={name:t,op:o,trimEnd:!0,data:{[Nm]:n||"url"}};i=Km(bm(),d,s,a,!0,{location:l},r)};["click"].forEach((e=>{addEventListener(e,s,{once:!1,capture:!0})}))}(n,s,a),uy({traceFetch:c,traceXHR:l,tracePropagationTargets:f,shouldCreateSpanForRequest:d,enableHTTPTimings:u})},options:n}};function gy(e){const t=(n=`meta[name=${e}]`,Op.document&&Op.document.querySelector?Op.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}const yy=Rp;let vy=0;function _y(){return vy>0}function by(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(Jp(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=i.map((e=>by(e,t)));return e.apply(this,s)}catch(e){throw vy++,setTimeout((()=>{vy--})),function(...e){const t=bm();if(2===e.length){const[n,i]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,i(n)))):t.withScope(i)}t.withScope(e[0])}((n=>{var s,a;n.addEventProcessor((e=>(t.mechanism&&(yh(e,void 0,void 0),vh(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),s=e,bm().captureException(s,Gf(a))})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}Gp(i,e),Kp(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}const wy="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Iy(e,t){const n=Ey(e,t),i={type:t&&t.name,value:Ay(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function xy(e,t){return{exception:{values:[Iy(e,t)]}}}function Ey(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Sy.test(e.message))return 1}return 0}(t);try{return e(n,i)}catch(e){}return[]}const Sy=/Minified React error #\d+;/i;function Ay(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ty(e,t,n,i,s){let a;if(lp(t)&&t.error){return xy(e,t.error)}if(dp(t)||cp(t,"DOMException")){const s=t;if("stack"in t)a=xy(e,t);else{const t=s.name||(dp(s)?"DOMError":"DOMException"),r=s.message?`${t}: ${s.message}`:t;a=ky(e,r,n,i),yh(a,r)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}if(op(t))return xy(e,t);if(fp(t)||mp(t)){return a=function(e,t,n,i){const s=Zf(),a=s&&s.getOptions().normalizeDepth,r={exception:{values:[{type:mp(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:Ry(t,{isUnhandledRejection:i})}]},extra:{__serialized__:Xh(t,a)}};if(n){const t=Ey(e,n);t.length&&(r.exception.values[0].stacktrace={frames:t})}return r}(e,t,n,s),vh(a,{synthetic:!0}),a}return a=ky(e,t,n,i),yh(a,`${t}`,void 0),vh(a,{synthetic:!0}),a}function ky(e,t,n,i){const s={};if(i&&n){const i=Ey(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(pp(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return s.logentry={message:e,params:n},s}return s.message=t,s}function Ry(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Xp(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return bp(n[0],t);for(let e=n.length;e>0;e--){const i=n.slice(0,e).join(", ");if(!(i.length>t))return e===n.length?i:bp(i,t)}return""}(e),i=t?"promise rejection":"exception";if(lp(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(mp(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}class Ly extends rg{constructor(e){!function(e,t,n=[t],i="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${i}:@sentry/${e}`,version:fm}))),version:fm}),e._metadata=s}(e,"browser",["browser"],yy.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&yy.document&&yy.document.addEventListener("visibilitychange",(()=>{"hidden"===yy.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,i){const s=Ty(e,t,n&&n.syntheticException||void 0,i);return vh(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),ef(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,s){const a=ky(e,t,i&&i.syntheticException||void 0,s);return a.level=n,i&&i.event_id&&(a.event_id=i.event_id),ef(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(wy&&zp.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:i}){const s={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:qp(i)}},a=function(e){return[{type:"user_report"},e]}(e);return wf(s,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(wy&&zp.log("No outcomes to send"));if(!this._dsn)return void(wy&&zp.log("No dsn provided, will not send outcomes"));wy&&zp.log("Sending outcomes:",e);const t=(n=e,wf((i=this._options.tunnel&&qp(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:s||lf(),discarded_events:n}]]));var n,i,s;this._sendEnvelope(t)}}let Cy;function Oy(e,t=function(){if(Cy)return Cy;if(Lh(yy.fetch))return Cy=yy.fetch.bind(yy);const e=yy.document;let t=yy.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(e){wy&&zp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Cy=t.bind(yy)}()){let n=0,i=0;return ug(e,(function(s){const a=s.body.length;n+=a,i++;const r={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,r).then((e=>(n-=a,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Cy=void 0,n-=a,i--,tf(e)}}))}const Fy=4;function Ny(e){return ug(e,(function(t){return new nf(((n,i)=>{const s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=()=>{s.readyState===Fy&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&s.setRequestHeader(t,e.headers[t]);s.send(t.body)}))}))}const Uy="?";function jy(e,t,n,i){const s={filename:e,function:t,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==i&&(s.colno=i),s}const Py=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,My=/\((\S*)(?::(\d+))(?::(\d+))\)/,Dy=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$y=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,By=ah(...[[30,e=>{const t=Py.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=My.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=qy(t[1]||Uy,t[2]);return jy(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Dy.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=$y.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Uy;return[n,e]=qy(n,e),jy(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=zy.exec(e);return t?jy(t[2],t[1]||Uy,+t[3],t[4]?+t[4]:void 0):void 0}]]),qy=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:Uy,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Vy=1024,Hy="Breadcrumbs",Wy=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Hy,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";dh(t,e),uh(t,hh)}(function(e){return function(t){if(Zf()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:of(t.level),message:wp(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${wp(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Qf(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Zf()!==e)return;let i,s,a="object"==typeof t?t.serializeAttribute:void 0,r="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;r&&r>Vy&&(wy&&zp.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${r} was configured. Sentry will use 1024 instead.`),r=Vy),"string"==typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=Np(t,{keyAttrs:a,maxStringLength:r}),s=jp(t)}catch(e){i="<unknown>"}if(0===i.length)return;const o={category:`ui.${n.name}`,message:i};s&&(o.data={"ui.component_name":s}),Qf(o,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),dh("dom",n),uh("dom",Ah)),t.xhr&&Kh(function(e){return function(t){if(Zf()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,s=t.xhr[Yh];if(!n||!i||!s)return;const{method:a,url:r,status_code:o,body:c}=s;Qf({category:"xhr",data:{method:a,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:i})}}(e)),t.fetch&&Ch(function(e){return function(t){if(Zf()!==e)return;const{startTimestamp:n,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Qf({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:i})}else{const e=t.response;Qf({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:i})}}}(e)),t.history&&Vh(function(e){return function(t){if(Zf()!==e)return;let n=t.from,i=t.to;const s=af(yy.location.href);let a=n?af(n):void 0;const r=af(i);a&&a.path||(a=s),s.protocol===r.protocol&&s.host===r.host&&(i=r.relative),s.protocol===a.protocol&&s.host===a.host&&(n=a.relative),Qf({category:"navigation",data:{from:n,to:i}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Zf()===e&&Qf({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:gh(t)},{event:t})}}(e))}}};ig(Hy,Wy);const Yy="Dedupe",Ky=()=>{let e;return{name:Yy,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,i=t.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!Jy(e,t))return!1;if(!Gy(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Xy(t),i=Xy(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!Jy(e,t))return!1;if(!Gy(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return wy&&zp.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Gy(e,t){let n=Qy(e),i=Qy(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let e=0;e<i.length;e++){const t=i[e],s=n[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function Jy(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(e){return!1}}function Xy(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Qy(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}ig(Yy,Ky);const Zy="GlobalHandlers",ev=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Zy,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){jh((t=>{const{stackParser:n,attachStacktrace:i}=iv();if(Zf()!==e||_y())return;const{msg:s,url:a,line:r,column:o,error:c}=t,l=void 0===c&&up(s)?function(e,t,n,i){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=lp(e)?e.message:e,r="Error";const o=a.match(s);o&&(r=o[1],a=o[2]);const c={exception:{values:[{type:r,value:a}]}};return tv(c,t,n,i)}(s,a,r,o):tv(Ty(n,c||s,void 0,i,!1),a,r,o);l.level="error",Xf(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),nv("onerror")),t.onunhandledrejection&&(!function(e){Dh((t=>{const{stackParser:n,attachStacktrace:i}=iv();if(Zf()!==e||_y())return;const s=function(e){if(hp(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),a=hp(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Ty(n,s,void 0,i,!0);a.level="error",Xf(a,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),nv("onunhandledrejection"))}}};function tv(e,t,n,i){const s=e.exception=e.exception||{},a=s.values=s.values||[],r=a[0]=a[0]||{},o=r.stacktrace=r.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(i,10))?void 0:i,d=isNaN(parseInt(n,10))?void 0:n,u=up(t)&&t.length>0?t:function(){try{return Op.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:d}),e}function nv(e){wy&&zp.log(`Global Handler attached: ${e}`)}function iv(){const e=Zf();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}ig(Zy,ev);const sv="HttpContext",av=()=>({name:sv,setupOnce(){},preprocessEvent(e){if(!yy.navigator&&!yy.location&&!yy.document)return;const t=e.request&&e.request.url||yy.location&&yy.location.href,{referrer:n}=yy.document||{},{userAgent:i}=yy.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},a={...e.request,...t&&{url:t},headers:s};e.request=a}});ig(sv,av);const rv="LinkedErrors",ov=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:rv,setupOnce(){},preprocessEvent(e,i,s){const a=s.getOptions();Ep(Iy,a.stackParser,a.maxValueLength,n,t,e,i)}}};ig(rv,ov);const cv=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],lv="TryCatch",dv=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:lv,setupOnce(){t.setTimeout&&Yp(yy,"setTimeout",uv),t.setInterval&&Yp(yy,"setInterval",uv),t.requestAnimationFrame&&Yp(yy,"requestAnimationFrame",pv),t.XMLHttpRequest&&"XMLHttpRequest"in yy&&Yp(XMLHttpRequest.prototype,"send",hv);const e=t.eventTarget;if(e){(Array.isArray(e)?e:cv).forEach(fv)}}}};function uv(e){return function(...t){const n=t[0];return t[0]=by(n,{mechanism:{data:{function:oh(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function pv(e){return function(t){return e.apply(this,[by(t,{mechanism:{data:{function:"requestAnimationFrame",handler:oh(e)},handled:!1,type:"instrument"}})])}}function hv(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Yp(n,e,(function(t){const n={mechanism:{data:{function:e,handler:oh(t)},handled:!1,type:"instrument"}},i=Jp(t);return i&&(n.mechanism.data.handler=oh(i)),by(t,n)}))})),e.apply(this,t)}}function fv(e){const t=yy,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Yp(n,"addEventListener",(function(t){return function(n,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=by(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:oh(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,by(i,{mechanism:{data:{function:"addEventListener",handler:oh(i),target:e},handled:!1,type:"instrument"}}),s])}})),Yp(n,"removeEventListener",(function(e){return function(t,n,i){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&e.call(this,t,n,i)}catch(e){}return e.call(this,t,s,i)}})))}ig(lv,dv);const mv=[gg(),wg(),dv(),Wy(),ev(),ov(),Ky(),av()];function gv(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...mv]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),yy.SENTRY_RELEASE&&yy.SENTRY_RELEASE.id&&(e.release=yy.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||By,Array.isArray(n)?ah(...n):n),integrations:eg(e),transport:e.transport||(Rh()?Oy:Ny)};var n;lg(Ly,t),e.autoSessionTracking&&function(){if(void 0===yy.document)return void(wy&&zp.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));tm({ignoreDuration:!0}),sm(),Vh((({from:e,to:t})=>{void 0!==e&&e!==t&&(tm({ignoreDuration:!0}),sm())}))}()}const yv=Object.prototype.toString;function vv(e,t){return yv.call(e)===`[object ${t}]`}function _v(e){return vv(e,"String")}function bv(e){return vv(e,"Object")}function wv(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Iv(e,t){try{return e instanceof t}catch(e){return!1}}function xv(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Ev(e,t,n=!1){return!!_v(e)&&(vv(t,"RegExp")?t.test(e):!!_v(t)&&(n?e===t:e.includes(t)))}function Sv(e){return e&&e.Math==Math?e:void 0}const Av="object"==typeof globalThis&&Sv(globalThis)||"object"==typeof window&&Sv(window)||"object"==typeof self&&Sv(self)||"object"==typeof global&&Sv(global)||function(){return this}()||{};function Tv(){return Av}function kv(e,t,n){const i=n||Av,s=i.__SENTRY__=i.__SENTRY__||{};return s[e]||(s[e]=t())}const Rv=Tv(),Lv=80;function Cv(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||Lv;for(;n&&a++<i&&(l=Ov(n,d),!("html"===l||a>1&&r+s.length*c+l.length>=u));)s.push(l),r+=l.length,n=n.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}function Ov(e,t){const n=e,i=[];let s,a,r,o,c;if(!n||!n.tagName)return"";if(Rv.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),s=n.className,s&&_v(s))for(a=s.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)r=d[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}const Fv="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Nv=["debug","info","warn","error","log","assert","trace"],Uv={};function jv(e){if(!("console"in Av))return e();const t=Av.console,n={},i=Object.keys(Uv);i.forEach((e=>{const i=Uv[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const Pv=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Fv?Nv.forEach((n=>{t[n]=(...t)=>{e&&jv((()=>{Av.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Nv.forEach((e=>{t[e]=()=>{}})),t}();function Mv(e,t=!1){const{host:n,path:i,pass:s,port:a,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&s?`:${s}`:""}@${n}${a?`:${a}`:""}/${i?`${i}/`:i}${r}`}function Dv(e,t,n){if(!(t in e))return;const i=e[t],s=n(i);"function"==typeof s&&function(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,$v(e,"__sentry_original__",t)}catch(e){}}(s,i),e[t]=s}function $v(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Fv&&Pv.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function zv(e){if(function(e){switch(yv.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Iv(e,Error)}}(e))return{message:e.message,name:e.name,stack:e.stack,...qv(e)};if(t=e,"undefined"!=typeof Event&&Iv(t,Event)){const t={type:e.type,target:Bv(e.target),currentTarget:Bv(e.currentTarget),...qv(e)};return"undefined"!=typeof CustomEvent&&Iv(e,CustomEvent)&&(t.detail=e.detail),t}return e;var t}function Bv(e){try{return t=e,"undefined"!=typeof Element&&Iv(t,Element)?Cv(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function qv(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Vv(e){return Hv(e,new Map)}function Hv(e,t){if(function(e){if(!bv(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=Hv(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(Hv(e,t))})),i}return e}const Wv="<anonymous>";function Yv(e){try{return e&&"function"==typeof e&&e.name||Wv}catch(e){return Wv}}const Kv={},Gv={};function Jv(e,t){Kv[e]=Kv[e]||[],Kv[e].push(t)}function Xv(e,t){Gv[e]||(t(),Gv[e]=!0)}function Qv(e,t){const n=e&&Kv[e];if(n)for(const i of n)try{i(t)}catch(t){Fv&&Pv.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Yv(i)}\nError:`,t)}}function Zv(){const e=Av,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}const e_=Av,t_=1e3;let n_,i_,s_;function a_(){if(!e_.document)return;const e=Qv.bind(null,"dom"),t=r_(e,!0);e_.document.addEventListener("click",t,!1),e_.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=e_[t]&&e_[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Dv(n,"addEventListener",(function(t){return function(n,i,s){if("click"===n||"keypress"==n)try{const i=this,a=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=a[n]=a[n]||{refCount:0};if(!r.handler){const i=r_(e);r.handler=i,t.call(this,n,i,s)}r.refCount++}catch(e){}return t.call(this,n,i,s)}})),Dv(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},a=s[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,i),a.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}function r_(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;$v(n,"_sentryCaptured",!0),i&&!i._sentryId&&$v(i,"_sentryId",Zv());const s="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==i_)return!1;try{if(!e.target||e.target._sentryId!==s_)return!1}catch(e){}return!0}(n)){e({event:n,name:s,global:t}),i_=n.type,s_=i?i._sentryId:void 0}clearTimeout(n_),n_=e_.setTimeout((()=>{s_=void 0,i_=void 0}),t_)}}const o_=Tv();function c_(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l_(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in o_))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(c_(o_.fetch))return!0;let e=!1;const t=o_.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=c_(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Fv&&Pv.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function d_(){l_()&&Dv(Av,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:p_(t),method:u_(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:p_(t),method:u_(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return Qv("fetch",{...s}),e.apply(Av,t).then((e=>(Qv("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Qv("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}function u_(e,t){return!!e&&"object"==typeof e&&!!e[t]}function p_(e){return"string"==typeof e?e:e?u_(e,"url")?e.url:e.toString?e.toString():"":""}const h_=Tv();const f_=Av;let m_;function g_(){if(!function(){const e=h_.chrome,t=e&&e.app&&e.app.runtime,n="history"in h_&&!!h_.history.pushState&&!!h_.history.replaceState;return!t&&n}())return;const e=f_.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=m_,t=String(n);m_=t;Qv("history",{from:e,to:t})}return e.apply(this,t)}}f_.onpopstate=function(...t){const n=f_.location.href,i=m_;m_=n;if(Qv("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},Dv(f_.history,"pushState",t),Dv(f_.history,"replaceState",t)}const y_=Av,v_="__sentry_xhr_v3__";function __(){if(!y_.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Dv(e,"open",(function(e){return function(...t){const n=Date.now(),i=_v(t[0])?t[0].toUpperCase():void 0,s=function(e){if(_v(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!i||!s)return e.apply(this,t);this[v_]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[v_];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Qv("xhr",{args:[i,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Dv(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),Dv(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,s=this[v_];return s&&_v(n)&&_v(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),Dv(e,"send",(function(e){return function(...t){const n=this[v_];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return Qv("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function b_(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function w_(){return"undefined"!=typeof window&&(!b_()||void 0!==Av.process&&"renderer"===Av.process.type)}function I_(e,t=100,n=1/0){try{return x_("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function x_(e,t,n=1/0,i=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(o=t)||o==o))return t;var o;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}(t))return"[VueViewModel]";if(function(e){return bv(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${Yv(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===l)return c.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&"function"==typeof d.toJSON)try{return x_("",d.toJSON(),l-1,i,s)}catch(e){}const u=Array.isArray(t)?[]:{};let p=0;const h=zv(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(p>=i){u[e]="[MaxProperties ~]";break}const t=h[e];u[e]=x_(e,t,l-1,i,s),p++}return r(t),u}var E_;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(E_||(E_={}));let S_=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=E_.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e(((e,i)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(e){i(e)}else e(n)},t=>{if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(t){return new e(((e,n)=>{let i,s;return this.then((e=>{s=!1,i=e,t&&t()}),(e=>{s=!0,i=e,t&&t()})).then((()=>{s?n(i):e(i)}))}))}__init(){this._resolve=e=>{this._setResult(E_.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(E_.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===E_.PENDING&&(wv(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===E_.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===E_.RESOLVED&&e[1](this._value),this._state===E_.REJECTED&&e[2](this._value),e[0]=!0)}))}}};const A_=1e3;function T_(){return Date.now()/A_}const k_=function(){const{performance:e}=Av;if(!e||!e.now)return T_;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/A_}(),R_=(()=>{const{performance:e}=Av;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;return a||o<t?s<=o?e.timeOrigin:r:i})();const L_=6e4;function C_(e,{statusCode:t,headers:n},i=Date.now()){const s={...e},a=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),a=parseInt(t,10),r=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))s[e]=i+r;else s.all=i+r}else r?s.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?L_:i-t}(r,i):429===t&&(s.all=i+6e4);return s}function O_(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}const F_="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,N_="production";function U_(){return kv("globalEventProcessors",(()=>[]))}function j_(e,t,n,i=0){return new S_(((s,a)=>{const r=e[i];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},n);F_&&r.id&&null===o&&Pv.log(`Event processor "${r.id}" dropped event`),wv(o)?o.then((t=>j_(e,t,n,i+1).then(s))).then(null,a):j_(e,o,n,i+1).then(s).then(null,a)}}))}function P_(e){const t=k_(),n={sid:Zv(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Vv({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&M_(n,e),n}function M_(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||k_(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Zv()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const D_=1;function $_(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:r,tags:o,origin:c}=z_(e);return Vv({data:i,op:s,parent_span_id:a,span_id:t,status:r,tags:o,trace_id:n,origin:c})}function z_(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function B_(e,t,n,i,s,a){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Zv(),timestamp:t.timestamp||T_()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:s,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:N_);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==s&&(e.dist=s);e.message&&(e.message=xv(e.message,a));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=xv(r.value,a));const o=e.request;o&&o.url&&(o.url=xv(o.url,a))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),void 0===t.type&&function(e,t){const n=Av._sentryDebugIds;if(!n)return;let i;const s=q_.get(t);s?i=s:(i=new Map,q_.set(t,i));const a=Object.keys(n).reduce(((e,s)=>{let a;const r=i.get(s);r?a=r:(a=t(s),i.set(s,a));for(let t=a.length-1;t>=0;t--){const i=a[t];if(i.filename){e[i.filename]=n[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(c,e.stackParser);const d=function(e,t){if(!t)return e;const n=e?e.clone():new tb;return n.update(t),n}(i,n.captureContext);n.mechanism&&function(e,t){const n=function(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}(c,n.mechanism);const u=s&&s.getEventProcessors?s.getEventProcessors():[],p=function(){eb||(eb=new tb);return eb}().getScopeData();if(a){Q_(p,a.getScopeData())}if(d){Q_(p,d.getScopeData())}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),X_(c,p);return j_([...u,...U_(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof r&&r>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:I_(e.data,t,n)}})))},...e.user&&{user:I_(e.user,t,n)},...e.contexts&&{contexts:I_(e.contexts,t,n)},...e.extra&&{extra:I_(e.extra,t,n)}};e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=I_(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>{const i=z_(e).data;return i&&(e.data=I_(i,t,n)),e})));return i}(e,r,o):e)))}const q_=new WeakMap;function V_(e){if(e)return function(e){return e instanceof tb||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>H_.includes(e)))}(e)?{captureContext:e}:e}const H_=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function W_(e,t){return cb().captureException(e,V_(t))}function Y_(){return cb().getClient()}function K_(){return cb().getScope()}function G_(e){return e.transaction}function J_(e){const t=Y_();if(!t)return{};const n=function(e,t,n){const i=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},r=Vv({environment:i.environment||N_,release:i.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}(z_(e).trace_id||"",t,K_()),i=G_(e);if(!i)return n;const s=i&&i._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:r}=i.metadata;null!=a&&(n.sample_rate=`${a}`);const o=z_(i);return r&&"url"!==r&&(n.transaction=o.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(t&D_)}(i)),t.emit&&t.emit("createDsc",n),n}function X_(e,t){const{fingerprint:n,span:i,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,transactionName:o}=t,c=Vv(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Vv(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const d=Vv(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const u=Vv(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts});r&&(e.level=r);o&&(e.transaction=o)}(e,t),i&&function(e,t){e.contexts={trace:$_(t),...e.contexts};const n=G_(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:J_(t),...e.sdkProcessingMetadata};const i=z_(n).description;i&&(e.tags={transaction:i,...e.tags})}}(e,i),function(e,t){e.fingerprint=e.fingerprint?function(e){return Array.isArray(e)?e:[e]}(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function Q_(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:l,eventProcessors:d,attachments:u,propagationContext:p,transactionName:h,span:f}=t;Z_(e,"extra",n),Z_(e,"tags",i),Z_(e,"user",s),Z_(e,"contexts",a),Z_(e,"sdkProcessingMetadata",o),r&&(e.level=r),h&&(e.transactionName=h),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...p}}function Z_(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[t][i]=n[i])}}let eb,tb=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=nb()}static clone(t){return t?t.clone():new e}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&M_(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):bv(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=nb(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:T_(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:i,_extra:s,_user:a,_level:r,_fingerprint:o,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:u,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:i,extra:s,user:a,level:r,fingerprint:o||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:d,transactionName:u,span:p}}applyToEvent(e,t={},n=[]){X_(e,this.getScopeData());return j_([...n,...U_(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Zv();if(!this._client)return Pv.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:Zv();if(!this._client)return Pv.warn("No client configured on scope - will not capture message!"),i;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Zv();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Pv.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}};function nb(){return{traceId:Zv(),spanId:Zv().substring(16)}}const ib=parseFloat("7.101.0"),sb=100;let ab=class{constructor(e,t,n,i=ib){let s,a;this._version=i,t?s=t:(s=new tb,s.setClient(e)),n?a=n:(a=new tb,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return wv(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:Zv(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:Zv(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Zv();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=sb}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const r={timestamp:T_(),...e},o=s?jv((()=>s(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=ob(this);try{e(this)}finally{ob(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return F_&&Pv.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(F_&&!n){this.getClient()?Pv.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Pv.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),M_(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:s=N_}=n&&n.getOptions()||{},{userAgent:a}=Av.navigator||{},r=P_({release:i,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&M_(o,{status:"exited"}),this.endSession(),t.setSession(r),r}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=rb().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);F_&&Pv.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function rb(){return Av.__SENTRY__=Av.__SENTRY__||{extensions:{},hub:void 0},Av}function ob(e){const t=rb(),n=lb(t);return db(t,e),n}function cb(){const e=rb();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=rb()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!lb(e).isOlderThan(ib)||db(e,new ab);var t;return lb(e)}(e)}function lb(e){return kv("hub",(()=>new ab),e)}function db(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function ub(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,i=n&&n.getDsn(),s=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,i)||function(e,t){if(!t)return!1;return pb(e)===pb(t)}(e,s)}function pb(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const hb="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,fb=Av,mb=()=>fb.__WEB_VITALS_POLYFILL__?fb.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=fb.performance.timing,t=fb.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):fb.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],gb=()=>{const e=mb();return e&&e.activationStart||0},yb=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{t(e.getEntries())}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},vb=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==fb.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let _b=-1;const bb=()=>(_b<0&&(_b="hidden"!==fb.document.visibilityState||fb.document.prerendering?1/0:0,vb((({timeStamp:e})=>{_b=e}),!0)),{get firstHiddenTime(){return _b}}),wb={},Ib=e=>{const t=bb(),n=((e,t)=>{const n=mb();let i="navigate";return n&&(i=fb.document.prerendering||gb()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}})("LCP");let i;const s=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-gb(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[s],i())}},a=yb("largest-contentful-paint",s);if(a){i=((e,t,n)=>{let i,s;return a=>{t.value>=0&&(a||n)&&(s=t.value-(i||0),(s||void 0===i)&&(i=t.value,t.delta=s,e(t)))}})(e,n);const t=()=>{wb[n.id]||(s(a.takeRecords()),a.disconnect(),wb[n.id]=!0,i(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),vb(t,!0),t}},xb={},Eb={};let Sb;function Ab(e,t=!1){return function(e,t,n,i,s=!1){let a;Lb(e,t),Eb[e]||(a=n(),Eb[e]=!0);i&&t({metric:i});return Cb(e,t,s?a:void 0)}("lcp",e,Rb,Sb,t)}function Tb(e,t){return Lb(e,t),Eb[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);yb(e,(t=>{kb(e,{entries:t})}),t)}(e),Eb[e]=!0),Cb(e,t)}function kb(e,t){const n=xb[e];if(n&&n.length)for(const i of n)try{i(t)}catch(t){hb&&Pv.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Yv(i)}\nError:`,t)}}function Rb(){return Ib((e=>{kb("lcp",{metric:e}),Sb=e}))}function Lb(e,t){xb[e]=xb[e]||[],xb[e].push(t)}function Cb(e,t,n){return()=>{n&&n();const i=xb[e];if(!i)return;const s=i.indexOf(t);-1!==s&&i.splice(s,1)}}const Ob=Av,Fb="sentryReplaySession",Nb="replay_event",Ub="Unable to send Replay",jb=15e4,Pb=5e3,Mb=2e7,Db=36e5;function $b(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}var zb;function Bb(e){const t=$b([e,"optionalAccess",e=>e.host]);return Boolean($b([t,"optionalAccess",e=>e.shadowRoot])===e)}function qb(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Vb(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,Hb).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Hb(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Vb(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(zb||(zb={}));class Wb{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=$b([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return i=()=>-1,null!=(n=t)?n:i();var n,i}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Yb({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Kb({isMasked:e,element:t,value:n,maskInputFn:i}){let s=n||"";return e?(i&&(s=i(s,t)),"*".repeat(s.length)):s}function Gb(e){return e.toLowerCase()}function Jb(e){return e.toUpperCase()}const Xb="__rrweb_original__";function Qb(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Gb(t):null}function Zb(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let ew=1;const tw=new RegExp("[^a-z0-9-_:]"),nw=-2;function iw(){return ew++}let sw,aw;const rw=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ow=/^(?:[a-z+]+:)?\/\//i,cw=/^www\..*/i,lw=/^(data:)([^,]*),(.*)/i;function dw(e,t){return(e||"").replace(rw,((e,n,i,s,a,r)=>{const o=i||a||r,c=n||s||"";if(!o)return e;if(ow.test(o)||cw.test(o))return`url(${c}${o}${c})`;if(lw.test(o))return`url(${c}${o}${c})`;if("/"===o[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+o}${c})`;const l=t.split("/"),d=o.split("/");l.pop();for(const e of d)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const uw=/^[^ \t\n\r\u000c]+/,pw=/^[, \t\n\r\u000c]+/;function hw(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function fw(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function mw(){const e=document.createElement("a");return e.href="",e.href}function gw(e,t,n,i,s,a){return i?"src"===n||"href"===n&&("use"!==t||"#"!==i[0])||"xlink:href"===n&&"#"!==i[0]?hw(e,i):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i;const s=e.exec(t.substring(n));return s?(i=s[0],n+=i.length,i):""}const s=[];for(;i(pw),!(n>=t.length);){let a=i(uw);if(","===a.slice(-1))a=hw(e,a.substring(0,a.length-1)),s.push(a);else{let i="";a=hw(e,a);let r=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((a+i).trim());break}if(r)")"===e&&(r=!1);else{if(","===e){n+=1,s.push((a+i).trim());break}"("===e&&(r=!0)}i+=e,n+=1}}}return s.join(", ")}(e,i):"style"===n?dw(i,mw()):"object"===t&&"data"===n?hw(e,i):"function"==typeof a?a(n,i,s):i:hw(e,i):i}function yw(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function vw(e,t,n=1/0,i=0){return e?e.nodeType!==e.ELEMENT_NODE||i>n?-1:t(e)?i:vw(e.parentNode,t,n,i+1):-1}function _w(e,t){return n=>{const i=n;if(null===i)return!1;try{if(e)if("string"==typeof e){if(i.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}return!1}(i,e))return!0;return!(!t||!i.matches(t))}catch(e){return!1}}}function bw(e,t,n,i,s,a){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("INPUT"===r.tagName){const e=r.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,c=-1;if(a){if(c=vw(r,_w(i,s)),c<0)return!0;o=vw(r,_w(t,n),c>=0?c:1/0)}else{if(o=vw(r,_w(t,n)),o<0)return!1;c=vw(r,_w(i,s),o>=0?o:1/0)}return o>=0?!(c>=0)||o<=c:!(c>=0)&&!!a}catch(e){}return!!a}function ww(e,t){const{doc:n,mirror:i,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:w=!1}=t,I=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,i);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:zb.Document,childNodes:[],compatMode:e.compatMode}:{type:zb.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:zb.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:r,maskInputOptions:o={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:d={},inlineImages:u,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:_,unmaskTextSelector:b}=t,w=function(e,t,n,i){try{if(i&&e.matches(i))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,s,a),I=function(e){if(e instanceof HTMLFormElement)return"form";const t=Gb(e.tagName);return tw.test(t)?"div":t}(e);let x={};const E=e.attributes.length;for(let t=0;t<E;t++){const i=e.attributes[t];i.name&&!yw(I,i.name,i.value)&&(x[i.name]=gw(n,I,Gb(i.name),i.value,e,c))}if("link"===I&&r){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let i=null;t&&(i=Vb(t)),i&&(delete x.rel,delete x.href,x._cssText=dw(i,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Vb(e.sheet);t&&(x._cssText=dw(t,mw()))}if("input"===I||"textarea"===I||"select"===I||"option"===I){const t=e,n=Qb(t),i=Zb(t,Jb(I),n),s=t.checked;if("submit"!==n&&"button"!==n&&i){const e=bw(t,y,_,v,b,Yb({type:n,tagName:Jb(I),maskInputOptions:o}));x.value=Kb({isMasked:e,element:t,value:i,maskInputFn:l})}s&&(x.checked=s)}"option"===I&&(e.selected&&!o.select?x.selected=!0:delete x.selected);if("canvas"===I&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let i=0;i<e.height;i+=50){const s=t.getImageData,a=Xb in s?s[Xb]:s;if(new Uint32Array(a.call(t,n,i,Math.min(50,e.width-n),Math.min(50,e.height-i)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(x.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const t=e.toDataURL(d.type,d.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(d.type,d.quality)&&(x.rr_dataURL=t)}if("img"===I&&u){sw||(sw=n.createElement("canvas"),aw=sw.getContext("2d"));const t=e,i=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{t.removeEventListener("load",s);try{sw.width=t.naturalWidth,sw.height=t.naturalHeight,aw.drawImage(t,0,0),x.rr_dataURL=sw.toDataURL(d.type,d.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}i?x.crossOrigin=i:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==I&&"video"!==I||(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop));if(w){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==I||h(x.src)||(e.contentDocument||(x.rr_src=x.src),delete x.src);let S;try{customElements.get(I)&&(S=!0)}catch(e){}return{type:zb.Element,tagName:I,attributes:x,childNodes:[],isSVG:fw(e)||void 0,needBlock:w,rootId:m,isCustom:S}}(e,{doc:n,blockClass:s,blockSelector:a,unblockSelector:r,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:w,rootId:I,maskAllText:o,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:i,unmaskTextClass:s,maskTextSelector:a,unmaskTextSelector:r,maskTextFn:o,maskInputOptions:c,maskInputFn:l,rootId:d}=t,u=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h="STYLE"===u||void 0,f="SCRIPT"===u||void 0,m="TEXTAREA"===u||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||$b([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=Vb(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=dw(p,mw())}f&&(p="SCRIPT_PLACEHOLDER");const g=bw(e,i,a,s,r,n);h||f||m||!p||!g||(p=o?o(p):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=l?l(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===u&&p){p=Kb({isMasked:bw(e,i,a,s,r,Yb({type:null,tagName:u,maskInputOptions:c})),element:e,value:p,maskInputFn:l})}return{type:zb.Text,textContent:p||"",isStyle:h,rootId:d}}(e,{maskAllText:o,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:I});case e.CDATA_SECTION_NODE:return{type:zb.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:zb.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}function Iw(e){return null==e?"":e.toLowerCase()}function xw(e,t){const{doc:n,mirror:i,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:k=!1}=t;let{preserveWhiteSpace:R=!0}=t;const L=ww(e,{doc:n,mirror:i,blockClass:s,blockSelector:a,maskAllText:o,unblockSelector:r,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:_,inlineImages:b,recordCanvas:w,keepIframeSrcFn:T,newlyAddedElement:k});if(!L)return console.warn(e,"not serialized"),null;let C;C=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===zb.Comment)return!0;if(e.type===zb.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Iw(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Iw(e.attributes.name)||"icon"===Iw(e.attributes.rel)||"apple-touch-icon"===Iw(e.attributes.rel)||"shortcut icon"===Iw(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Iw(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Iw(e.attributes.property).match(/^(og|twitter|fb):/)||Iw(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Iw(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Iw(e.attributes.name)||"googlebot"===Iw(e.attributes.name)||"bingbot"===Iw(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Iw(e.attributes.name)||"generator"===Iw(e.attributes.name)||"framework"===Iw(e.attributes.name)||"publisher"===Iw(e.attributes.name)||"progid"===Iw(e.attributes.name)||Iw(e.attributes.property).match(/^article:/)||Iw(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Iw(e.attributes.name)||"yandex-verification"===Iw(e.attributes.name)||"csrf-token"===Iw(e.attributes.name)||"p:domain_verify"===Iw(e.attributes.name)||"verify-v1"===Iw(e.attributes.name)||"verification"===Iw(e.attributes.name)||"shopify-checkout-api-token"===Iw(e.attributes.name)))return!0}}return!1}(L,v)&&(R||L.type!==zb.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?iw():nw;const O=Object.assign(L,{id:C});if(i.add(e,O),C===nw)return null;I&&I(e);let F=!p;if(O.type===zb.Element){F=F&&!O.needBlock,delete O.needBlock;const t=e.shadowRoot;t&&qb(t)&&(O.isShadowHost=!0)}if((O.type===zb.Document||O.type===zb.Element)&&F){v.headWhitespace&&O.type===zb.Element&&"head"===O.tagName&&(R=!1);const t={doc:n,mirror:i,blockClass:s,blockSelector:a,maskAllText:o,unblockSelector:r,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:A,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=xw(n,t);e&&O.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const i=xw(n,t);i&&(qb(e.shadowRoot)&&(i.isShadow=!0),O.childNodes.push(i))}}return e.parentNode&&Bb(e.parentNode)&&qb(e.parentNode)&&(O.isShadow=!0),O.type===zb.Element&&"iframe"===O.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let s,a=!1;try{s=i.document.readyState}catch(e){return}if("complete"!==s){const i=setTimeout((()=>{a||(t(),a=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(i),a=!0,t()}))}const r="about:blank";if(i.location.href!==r||e.src===r||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&x){const n=xw(t,{doc:t,mirror:i,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:A,keepIframeSrcFn:T});n&&x(e,n)}}),E),O.type===zb.Element&&"link"===O.tagName&&"stylesheet"===O.attributes.rel&&function(e,t,n){let i,s=!1;try{i=e.sheet}catch(e){return}if(i)return;const a=setTimeout((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(a),s=!0,t()}))}(e,(()=>{if(S){const t=xw(e,{doc:n,mirror:i,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:A,keepIframeSrcFn:T});t&&S(e,t)}}),A),O}function Ew(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}function Sw(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}const Aw="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Tw={map:{},getId:()=>(console.error(Aw),-1),getNode:()=>(console.error(Aw),null),removeNodeFromMap(){console.error(Aw)},has:()=>(console.error(Aw),!1),reset(){console.error(Aw)}};function kw(e,t,n={}){let i=null,s=0;return function(...a){const r=Date.now();s||!1!==n.leading||(s=r);const o=t-(r-s),c=this;o<=0||o>t?(i&&(clearTimeout(i),i=null),s=r,e.apply(c,a)):i||!1===n.trailing||(i=setTimeout((()=>{s=!1===n.leading?0:Date.now(),i=null,e.apply(c,a)}),o))}}function Rw(e,t,n,i,s=window){const a=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,i?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),a&&a.set&&a.set.call(this,e)}}),()=>Rw(e,t,a||{},!0)}function Lw(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],s=n(i);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=s,()=>{e[t]=i}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Tw=new Proxy(Tw,{get:(e,t,n)=>("map"===t&&console.error(Aw),Reflect.get(e,t,n))}));let Cw,Ow=Date.now;function Fw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Ew([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Ew([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Ew([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Ew([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Ew([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Ew([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Nw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Uw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function jw(e,t,n,i,s){if(!e)return!1;const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!a)return!1;const r=_w(t,n);if(!s){const e=i&&a.matches(i);return r(a)&&!e}const o=vw(a,r);let c=-1;return!(o<0)&&(i&&(c=vw(a,_w(null,i))),o>-1&&c<0||o<c)}function Pw(e,t){return t.getId(e)===nw}function Mw(e,t){if(Bb(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Mw(e.parentNode,t))}function Dw(e){return Boolean(e.changedTouches)}function $w(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function zw(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Bw(e){return Boolean(Ew([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ow=()=>(new Date).getTime());class qw{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Vw(e){let t=null;return Ew([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Hw(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Vw(n);)n=t;return n}(e);return t.contains(n)}function Ww(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Hw(e))}function Yw(...e){return function(){if(Cw)return Cw;const e=window.document;let t=window.requestAnimationFrame;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.requestAnimationFrame&&(t=i.requestAnimationFrame),e.head.removeChild(n)}catch(e){}return Cw=t.bind(window)}()(...e)}var Kw=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Kw||{}),Gw=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Gw||{}),Jw=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Jw||{}),Xw=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Xw||{});function Qw(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}function Zw(e){return"__ln"in e}class eI{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=Qw([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Zw(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Zw(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const tI=(e,t)=>`${e}@${t}`;class nI{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new eI,i=e=>{let t=e,n=nw;for(;n===nw;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Ww(s))return;const a=Bb(s.parentNode)?this.mirror.getId(Vw(s)):this.mirror.getId(s.parentNode),r=i(s);if(-1===a||-1===r)return n.addNode(s);const o=xw(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{$w(e,this.mirror)&&this.iframeManager.addIframe(e),zw(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Bw(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});o&&(e.push({parentId:a,nextId:r,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)sI(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)rI(this.droppedSet,e)||sI(this.removes,e,this.mirror)?rI(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let a=null;for(;n.length;){let e=null;if(a){const t=this.mirror.getId(a.value.parentNode),n=i(a.value);-1!==t&&-1!==n&&(e=a)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===i(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const i=t.parentNode.host;if(-1!==this.mirror.getId(i)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),s(e.value)}const r={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(r.texts.length||r.attributes.length||r.removes.length||r.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(r))},this.processMutation=e=>{if(Pw(e.target,this.mirror))return;let t;try{t=document.implementation.createHTMLDocument()}catch(e){t=this.doc}switch(e.type){case"characterData":{const t=e.target.textContent;jw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:bw(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let i=e.attributeName,s=e.target.getAttribute(i);if("value"===i){const t=Qb(n),i=n.tagName;s=Zb(n,i,t);const a=Yb({maskInputOptions:this.maskInputOptions,tagName:i,type:t});s=Kb({isMasked:bw(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:n,value:s,maskInputFn:this.maskInputFn})}if(jw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===e.oldValue)return;let a=this.attributes.find((t=>t.node===e.target));if("IFRAME"===n.tagName&&"src"===i&&!this.keepIframeSrcFn(s)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a)),"type"===i&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!yw(n.tagName,i)&&(a.attributes[i]=gw(this.doc,Gb(n.tagName),Gb(i),s,n,this.maskAttributeFn),"style"===i)){const i=t.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),s=n.style.getPropertyPriority(e);t!==i.style.getPropertyValue(e)||s!==i.style.getPropertyPriority(e)?a.styleDiff[e]=""===s?t:[t,s]:a._unchangedStyles[e]=[t,s]}for(const e of Array.from(i.style))""===n.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(jw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),i=Bb(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);jw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Pw(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(iI(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Mw(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[tI(n,i)]?iI(this.movedSet,t):this.removes.push({parentId:i,id:n,isShadow:!(!Bb(e.target)||!qb(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Pw(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[tI(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);jw(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Bw(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function iI(e,t){e.delete(t),t.childNodes.forEach((t=>iI(e,t)))}function sI(e,t,n){return 0!==e.length&&aI(e,t,n)}function aI(e,t,n){const{parentNode:i}=t;if(!i)return!1;const s=n.getId(i);return!!e.some((e=>e.id===s))||aI(e,i,n)}function rI(e,t){return 0!==e.size&&oI(e,t)}function oI(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||oI(e,n))}let cI;function lI(e){cI=e}function dI(){cI=void 0}const uI=e=>{if(!cI)return e;return(...t)=>{try{return e(...t)}catch(e){if(cI&&!0===cI(e))return()=>{};throw e}}};function pI(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}const hI=[];function fI(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function mI(e,t){const n=new nI;hI.push(n),n.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const s=pI([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(i=window[s]);const a=new i(uI((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function gI({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,c=[];let l=null;return Object.keys(Jw).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((r=>{let o=Gb(r);const d=(t=>r=>{const o=fI(r);if(jw(o,i,s,a,!0))return;let c=null,d=t;if("pointerType"in r){switch(r.pointerType){case"mouse":c=Xw.Mouse;break;case"touch":c=Xw.Touch;break;case"pen":c=Xw.Pen}c===Xw.Touch?Jw[t]===Jw.MouseDown?d="TouchStart":Jw[t]===Jw.MouseUp&&(d="TouchEnd"):Xw.Pen}else Dw(r)&&(c=Xw.Touch);null!==c?(l=c,(d.startsWith("Touch")&&c===Xw.Touch||d.startsWith("Mouse")&&c===Xw.Mouse)&&(c=null)):Jw[t]===Jw.Click&&(c=l,l=null);const u=Dw(r)?r.changedTouches[0]:r;if(!u)return;const p=n.getId(o),{clientX:h,clientY:f}=u;uI(e)({type:Jw[d],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(r);if(window.PointerEvent)switch(Jw[r]){case Jw.MouseDown:case Jw.MouseUp:o=o.replace("mouse","pointer");break;case Jw.TouchStart:case Jw.TouchEnd:return}c.push(Sw(o,d,t))})),uI((()=>{c.forEach((e=>e()))}))}function yI({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,sampling:r}){return Sw("scroll",uI(kw(uI((r=>{const o=fI(r);if(!o||jw(o,i,s,a,!0))return;const c=n.getId(o);if(o===t&&t.defaultView){const n=Fw(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:o.scrollLeft,y:o.scrollTop})})),r.scroll||100)),t)}const vI=["INPUT","TEXTAREA","SELECT"],_I=new WeakMap;function bI({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,ignoreClass:r,ignoreSelector:o,maskInputOptions:c,maskInputFn:l,sampling:d,userTriggeredOnInput:u,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=fI(e);const d=e.isTrusted,g=n&&Jb(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||vI.indexOf(g)<0||jw(n,i,s,a,!0))return;const v=n;if(v.classList.contains(r)||o&&v.matches(o))return;const _=Qb(n);let b=Zb(v,g,_),w=!1;const I=Yb({maskInputOptions:c,tagName:g,type:_}),x=bw(n,p,f,h,m,I);"radio"!==_&&"checkbox"!==_||(w=n.checked),b=Kb({isMasked:x,element:n,value:b,maskInputFn:l}),y(n,u?{text:b,isChecked:w,userTriggered:d}:{text:b,isChecked:w});const E=n.name;"radio"===_&&E&&w&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((e=>{if(e!==n){const t=Kb({isMasked:x,element:e,value:Zb(e,g,_),maskInputFn:l});y(e,u?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function y(t,i){const s=_I.get(t);if(!s||s.text!==i.text||s.isChecked!==i.isChecked){_I.set(t,i);const s=n.getId(t);uI(e)({...i,id:s})}}const v=("last"===d.input?["change"]:["input","change"]).map((e=>Sw(e,uI(g),t))),_=t.defaultView;if(!_)return()=>{v.forEach((e=>e()))};const b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),w=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(...w.map((e=>Rw(e[0],e[1],{set(){uI(g)({target:this,isTrusted:!1})}},!1,_)))),uI((()=>{v.forEach((e=>e()))}))}function wI(e){return function(e,t){if(SI("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||SI("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||SI("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||SI("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function II(e,t,n){let i,s;return e?(e.ownerNode?i=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:i}):{}}function xI({mirror:e,stylesheetManager:t},n){let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?pI([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):pI([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),a=pI([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(pI([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&s&&a?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return pI([a,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=pI([a,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return n}}),uI((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))):()=>{}}function EI(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const i=mI(e,e.doc),s=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let r,o=[];const c=kw(uI((t=>{const n=Date.now()-r;e(o.map((e=>(e.timeOffset-=n,e))),t),o=[],r=null})),a),l=uI(kw(uI((e=>{const t=fI(e),{clientX:n,clientY:s}=Dw(e)?e.changedTouches[0]:e;r||(r=Ow()),o.push({x:n,y:s,id:i.getId(t),timeOffset:Ow()-r}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Gw.Drag:e instanceof MouseEvent?Gw.MouseMove:Gw.TouchMove)})),s,{trailing:!1})),d=[Sw("mousemove",l,n),Sw("touchmove",l,n),Sw("drag",l,n)];return uI((()=>{d.forEach((e=>e()))}))}(e),a=gI(e),r=yI(e),o=function({viewportResizeCb:e},{win:t}){let n=-1,i=-1;return Sw("resize",uI(kw(uI((()=>{const t=Nw(),s=Uw();n===t&&i===s||(e({width:Number(s),height:Number(t)}),n=t,i=s)})),200)),t)}(e,{win:n}),c=bI(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:i,mirror:s,sampling:a,doc:r}){const o=uI((r=>kw(uI((a=>{const o=fI(a);if(!o||jw(o,t,n,i,!0))return;const{currentTime:c,volume:l,muted:d,playbackRate:u}=o;e({type:r,id:s.getId(o),currentTime:c,volume:l,muted:d,playbackRate:u})})),a.media||500))),c=[Sw("play",o(0),r),Sw("pause",o(1),r),Sw("seeked",o(2),r),Sw("volumechange",o(3),r),Sw("ratechange",o(4),r)];return uI((()=>{c.forEach((e=>e()))}))}(e),d=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:uI(((i,s,a)=>{const[r,o]=a,{id:c,styleId:l}=II(s,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:r,index:o}]}),i.apply(s,a)}))});const a=i.CSSStyleSheet.prototype.deleteRule;let r,o;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:uI(((i,s,a)=>{const[r]=a,{id:o,styleId:c}=II(s,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:r}]}),i.apply(s,a)}))}),i.CSSStyleSheet.prototype.replace&&(r=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:uI(((i,s,a)=>{const[r]=a,{id:o,styleId:c}=II(s,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replace:r}),i.apply(s,a)}))})),i.CSSStyleSheet.prototype.replaceSync&&(o=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:uI(((i,s,a)=>{const[r]=a,{id:o,styleId:c}=II(s,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replaceSync:r}),i.apply(s,a)}))}));const c={};AI("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(AI("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),AI("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),AI("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));const l={};return Object.entries(c).forEach((([i,s])=>{l[i]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(l[i].insertRule,{apply:uI(((i,s,a)=>{const[r,o]=a,{id:c,styleId:l}=II(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:r,index:[...wI(s),o||0]}]}),i.apply(s,a)}))}),s.prototype.deleteRule=new Proxy(l[i].deleteRule,{apply:uI(((i,s,a)=>{const[r]=a,{id:o,styleId:c}=II(s.parentStyleSheet,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:[...wI(s),r]}]}),i.apply(s,a)}))})})),uI((()=>{i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,r&&(i.CSSStyleSheet.prototype.replace=r),o&&(i.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),u=xI(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:i},{win:s}){const a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:uI(((s,r,o)=>{const[c,l,d]=o;if(n.has(c))return a.apply(r,[c,l,d]);const{id:u,styleId:p}=II(pI([r,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,i.styleMirror);return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,set:{property:c,value:l,priority:d},index:wI(r.parentRule)}),s.apply(r,o)}))});const r=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(r,{apply:uI(((s,a,o)=>{const[c]=o;if(n.has(c))return r.apply(a,[c]);const{id:l,styleId:d}=II(pI([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,i.styleMirror);return(l&&-1!==l||d&&-1!==d)&&e({id:l,styleId:d,remove:{property:c},index:wI(a.parentRule)}),s.apply(a,o)}))}),uI((()=>{s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=r}))}(e,{win:n}),h=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],s=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){const i=new a(e,t,n);return s.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const r=Lw(t.fonts,"add",(function(t){return function(n){return setTimeout(uI((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return i.push((()=>{n.FontFace=a})),i.push(r),uI((()=>{i.forEach((e=>e()))}))}(e):()=>{},f=function(e){const{doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,selectionCb:r}=e;let o=!0;const c=uI((()=>{const e=t.getSelection();if(!e||o&&pI([e,"optionalAccess",e=>e.isCollapsed]))return;o=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const r=e.getRangeAt(t),{startContainer:o,startOffset:l,endContainer:d,endOffset:u}=r;jw(o,i,s,a,!0)||jw(d,i,s,a,!0)||c.push({start:n.getId(o),startOffset:l,end:n.getId(d),endOffset:u})}r({ranges:c})}));return c(),Sw("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;if(!n||!n.customElements)return()=>{};const i=Lw(n.customElements,"define",(function(e){return function(n,i,s){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,i,s])}}));return i}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return uI((()=>{hI.forEach((e=>e.reset())),i.disconnect(),s(),a(),r(),o(),c(),l(),d(),u(),p(),h(),f(),m(),g.forEach((e=>e()))}))}function SI(e){return void 0!==window[e]}function AI(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class TI{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,i){const s=n||this.getIdToRemoteIdMap(e),a=i||this.getRemoteIdToIdMap(e);let r=s.get(t);return r||(r=this.generateIdFn(),s.set(t,r),a.set(r,t)),r}getIds(e,t){const n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,i)))}getRemoteId(e,t,n){const i=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=i.get(t);return s||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function kI(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}class RI{constructor(){this.crossOriginIframeMirror=new TI(iw),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class LI{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new TI(iw),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new TI(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),kI([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Kw.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Kw.IncrementalSnapshot,data:{source:Gw.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Kw.Meta:case Kw.Load:case Kw.DomContentLoaded:return!1;case Kw.Plugin:return t;case Kw.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Kw.IncrementalSnapshot:switch(t.data.source){case Gw.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Gw.Drag:case Gw.TouchMove:case Gw.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Gw.ViewportResize:return!1;case Gw.MediaInteraction:case Gw.MouseInteraction:case Gw.Scroll:case Gw.CanvasMutation:case Gw.Input:return this.replaceIds(t.data,e,["id"]),t;case Gw.StyleSheetRule:case Gw.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Gw.Font:return t;case Gw.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Gw.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),kI([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,i){for(const s of i)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===zb.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class CI{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class OI{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!qb(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=mI({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(yI({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(xI({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Lw(e.prototype,"attachShadow",(function(e){return function(i){const s=e.call(this,i);return this.shadowRoot&&Ww(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class FI{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class NI{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new qw,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},i=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:Hb(e),index:t})))})),n.styleIds.push(e)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class UI{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){Yw((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function jI(e){const t=e;return t.timestamp=Ow(),t}let PI;const MI=new Wb;function DI(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:u=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,packFn:w,sampling:I={},dataURLOptions:x={},mousemoveWait:E,recordCanvas:S=!1,recordCrossOriginIframes:A=!1,recordAfter:T=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:R=!1,inlineImages:L=!1,plugins:C,keepIframeSrcFn:O=(()=>!1),ignoreCSSAttributes:F=new Set([]),errorHandler:N,onMutation:U,getCanvasManager:j}=e;lI(N);const P=!A||window.parent===window;let M=!1;if(!P)try{window.parent.document&&(M=!1)}catch(e){M=!0}if(P&&!t)throw new Error("emit function is required");void 0!==E&&void 0===I.mousemove&&(I.mousemove=E),MI.reset();const D=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},$=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let z;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let B=0;const q=e=>{for(const t of C||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!M&&(e=w(e)),e},V=(e,s)=>{if(!O_([hI,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||e.type===Kw.FullSnapshot||e.type===Kw.IncrementalSnapshot&&e.data.source===Gw.Mutation||hI.forEach((e=>e.unfreeze())),P)O_([t,"optionalCall",t=>t(q(e),s)]);else if(M){const t={type:"rrweb",event:q(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===Kw.FullSnapshot)z=e,B=0;else if(e.type===Kw.IncrementalSnapshot){if(e.data.source===Gw.Mutation&&e.data.isAttachIframe)return;B++;const t=i&&B>=i,s=n&&e.timestamp-z.timestamp>n;(t||s)&&Z(!0)}},H=e=>{V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.Mutation,...e}}))},W=e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.Scroll,...e}})),Y=e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.CanvasMutation,...e}})),K=new NI({mutationCb:H,adoptedStyleSheetCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.AdoptedStyleSheet,...e}}))}),G="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new RI:new LI({mirror:MI,mutationCb:H,stylesheetManager:K,recordCrossOriginIframes:A,wrappedEmit:V});for(const e of C||[])e.getMirror&&e.getMirror({nodeMirror:MI,crossOriginIframeMirror:G.crossOriginIframeMirror,crossOriginIframeStyleMirror:G.crossOriginIframeStyleMirror});const J=new UI,X=function(e,t){try{return e?e(t):new FI}catch(e){return console.warn("Unable to initialize CanvasManager"),new FI}}(j,{mirror:MI,win:window,mutationCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.CanvasMutation,...e}})),recordCanvas:S,blockClass:s,blockSelector:a,unblockSelector:r,sampling:I.canvas,dataURLOptions:x,errorHandler:N}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new CI:new OI({mutationCb:H,scrollCb:W,bypassOptions:{onMutation:U,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:D,dataURLOptions:x,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,recordCanvas:S,inlineImages:L,sampling:I,slimDOMOptions:$,iframeManager:G,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:O,processedNodeManager:J},mirror:MI}),Z=(e=!1)=>{V(jI({type:Kw.Meta,data:{href:window.location.href,width:Uw(),height:Nw()}}),e),K.reset(),Q.init(),hI.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Wb,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:a=null,maskAllText:r=!1,maskTextClass:o="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:d=null,inlineStylesheet:u=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:S,keepIframeSrcFn:A=(()=>!1)}=t||{};return xw(e,{doc:e,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:r,maskTextClass:o,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:_,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:S,keepIframeSrcFn:A,newlyAddedElement:!1})}(document,{mirror:MI,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:D,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,slimDOM:$,dataURLOptions:x,recordCanvas:S,inlineImages:L,onSerialize:e=>{$w(e,MI)&&G.addIframe(e),zw(e,MI)&&K.trackLinkElement(e),Bw(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{G.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");V(jI({type:Kw.FullSnapshot,data:{node:t,initialOffset:Fw(window)}})),hI.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,MI.getId(document))};PI=Z;try{const e=[],t=e=>uI(EI)({onMutation:U,mutationCb:H,mousemoveCb:(e,t)=>V(jI({type:Kw.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.MouseInteraction,...e}})),scrollCb:W,viewportResizeCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.ViewportResize,...e}})),inputCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.Input,...e}})),mediaInteractionCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.MediaInteraction,...e}})),styleSheetRuleCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.StyleSheetRule,...e}})),styleDeclarationCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.StyleDeclaration,...e}})),canvasMutationCb:Y,fontCb:e=>V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.Font,...e}})),selectionCb:e=>{V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.Selection,...e}}))},customElementCb:e=>{V(jI({type:Kw.IncrementalSnapshot,data:{source:Gw.CustomElement,...e}}))},blockClass:s,ignoreClass:o,ignoreSelector:c,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:D,inlineStylesheet:f,sampling:I,recordCanvas:S,inlineImages:L,userTriggeredOnInput:k,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:O,blockSelector:a,unblockSelector:r,slimDOMOptions:$,dataURLOptions:x,mirror:MI,iframeManager:G,stylesheetManager:K,shadowDomManager:Q,processedNodeManager:J,canvasManager:X,ignoreCSSAttributes:F,plugins:O_([C,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>V(jI({type:Kw.Plugin,data:{plugin:e.name,payload:t}}))})))])||[]},{});G.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Z(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Sw("DOMContentLoaded",(()=>{V(jI({type:Kw.DomContentLoaded,data:{}})),"DOMContentLoaded"===T&&n()}))),e.push(Sw("load",(()=>{V(jI({type:Kw.Load,data:{}})),"load"===T&&n()}),window))),()=>{e.forEach((e=>e())),J.destroy(),PI=void 0,dI()}}catch(e){console.warn(e)}}DI.mirror=MI,DI.takeFullSnapshot=function(e){if(!PI)throw new Error("please take full snapshot after start recording");PI(e)};const $I=3;function zI(e){return e>9999999999?e:1e3*e}function BI(e){return e>9999999999?e/1e3:e}function qI(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Kw.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:I_(t,10,1e3)}}),"console"===t.category))))}const VI="button,a";function HI(e){return e.closest(VI)||e}function WI(e){const t=YI(e);return t&&t instanceof Element?HI(t):t}function YI(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let KI;function GI(e){return KI||(KI=[],Dv(Ob,"open",(function(e){return function(...t){if(KI)try{KI.forEach((e=>e()))}catch(e){}return e.apply(Ob,t)}}))),KI.push(e),()=>{const t=KI?KI.indexOf(e):-1;t>-1&&KI.splice(t,1)}}class JI{constructor(e,t,n=qI){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=GI((()=>{this._lastMutation=QI()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!XI.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:BI(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=BI(e)}registerScroll(e=Date.now()){this._lastScroll=BI(e)}registerClick(e){const t=HI(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=QI();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!i,{clickCount:a,clickBreadcrumb:r}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),i=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.slowClickDetected",data:{...r.data,url:Ob.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:i,clickCount:a||1}};this._addBreadcrumbEvent(t,s)}else if(a>1){const e={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.multiClick",data:{...r.data,url:Ob.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const XI=["A","BUTTON","INPUT"];function QI(){return Date.now()/1e3}function ZI(e,t){try{if(!function(e){return e.type===$I}(t))return;const{source:n}=t.data;if(n===Gw.Mutation&&e.registerMutation(t.timestamp),n===Gw.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Gw.MouseInteraction}(t)){const{type:n,id:i}=t.data,s=DI.mirror.getNode(i);s instanceof HTMLElement&&n===Jw.Click&&e.registerClick(s)}}catch(e){}}function ex(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var tx;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(tx||(tx={}));const nx=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ix(e){const t={};for(const n in e)if(nx.has(n)){let i=n;"data-testid"!==n&&"data-test-id"!==n||(i="testId"),t[i]=e[n]}return t}const sx=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,i=null;try{i=t?WI(e.event):YI(e.event),n=Cv(i,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:i,message:n}}(e);return ex({category:`ui.${e.name}`,...ax(t,n)})}(t);if(!n)return;const i="click"===t.name,s=i?t.event:void 0;var a,r,o;!(i&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(a=e.clickDetector,r=n,o=WI(t.event),a.handleClick(r,o)),qI(e,n)};function ax(e,t){const n=DI.mirror.getId(e),i=n&&DI.mirror.getNode(n),s=i&&DI.mirror.getMeta(i),a=s&&function(e){return e.type===tx.Element}(s)?s:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map((e=>e.type===tx.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:ix(a.attributes)}}:{}}}function rx(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:i,altKey:s,key:a,target:r}=e;if(!r||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(r)||!a)return null;const o=t||i||s,c=1===a.length;if(!o&&c)return null;const l=Cv(r,{maxStringLength:200})||"<unknown>",d=ax(r,l);return ex({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:i,altKey:s,key:a}})}(t);n&&qI(e,n)}const ox={resource:function(e){const{entryType:t,initiatorType:n,name:i,responseEnd:s,startTime:a,decodedBodySize:r,encodedBodySize:o,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:lx(a),end:lx(s),name:i,data:{size:l,statusCode:c,decodedBodySize:r,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:n,name:i,startTime:s}=e,a=lx(s);return{type:n,name:i,start:a,end:a+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:i,duration:s,domComplete:a,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:d,loadEventEnd:u,redirectCount:p,startTime:h,transferSize:f,type:m}=e;if(0===s)return null;return{type:`${t}.${m}`,start:lx(h),end:lx(a),name:n,data:{size:f,decodedBodySize:i,encodedBodySize:r,duration:s,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:u,domComplete:a,redirectCount:p}}}};function cx(e){return ox[e.entryType]?ox[e.entryType](e):null}function lx(e){return((R_||Ob.performance.timeOrigin)+e)/1e3}function dx(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const i=[];return["navigation","paint","resource"].forEach((e=>{i.push(Tb(e,n))})),i.push(Ab((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],i=n?n.element:void 0,s=e.value,a=lx(s);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:s,size:s,nodeId:i?DI.mirror.getId(i):void 0}}}(t))}))),()=>{i.forEach((e=>e()))}}const ux="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,px='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function hx(e,t){ux&&(Pv.info(e),t&&mx(e))}function fx(e,t){ux&&(Pv.info(e),t&&setTimeout((()=>{mx(e)}),0))}function mx(e){var t,n;t={category:"console",data:{logger:"replay"},level:"info",message:e},n={level:"info"},cb().addBreadcrumb(t,n)}class gx extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class yx{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Mb)throw new gx;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?zI(e):null}}class vx{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){hx("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((i,s)=>{const a=({data:t})=>{const r=t;if(r.method===e&&r.id===n){if(this._worker.removeEventListener("message",a),!r.success)return ux&&Pv.error("[Replay]",r.response),void s(new Error("Error in compression worker"));i(r.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class _x{constructor(e){this._worker=new vx(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=zI(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Mb?Promise.reject(new gx):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{ux&&Pv.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class bx{constructor(e){this._fallback=new yx,this._compression=new _x(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void hx("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){ux&&Pv.warn("[Replay] Failed to add events when switching buffers.",e)}}}function wx({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([px]);return URL.createObjectURL(e)}();return""}();if(!t)return;hx("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new bx(n)}catch(e){hx("[Replay] Failed to create compression worker")}}(t);if(e)return e}return hx("[Replay] Using simple buffer"),new yx}function Ix(){try{return"sessionStorage"in Ob&&!!Ob.sessionStorage}catch(e){return!1}}function xx(e){!function(){if(!Ix())return;try{Ob.sessionStorage.removeItem(Fb)}catch(e){}}(),e.session=void 0}function Ex(e){return void 0!==e&&Math.random()<e}function Sx(e){const t=Date.now();return{id:e.id||Zv(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Ax(e){if(Ix())try{Ob.sessionStorage.setItem(Fb,JSON.stringify(e))}catch(e){}}function Tx({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:i}={}){const s=function(e,t){return Ex(e)?"session":!!t&&"buffer"}(e,t),a=Sx({sampled:s,previousSessionId:i});return n&&Ax(a),a}function kx(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Rx(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:i=Date.now()}){return kx(e.started,t,i)||kx(e.lastActivity,n,i)}function Lx(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Rx(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Cx({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:i},s){const a=s.stickySession&&function(e){if(!Ix())return null;try{const t=Ob.sessionStorage.getItem(Fb);if(!t)return null;const n=JSON.parse(t);return fx("[Replay] Loading existing session",e),Sx(n)}catch(e){return null}}(e);return a?Lx(a,{sessionIdleExpire:t,maxReplayDuration:n})?(fx("[Replay] Session in sessionStorage is expired, creating new one..."),Tx(s,{previousSessionId:a.id})):a:(fx("[Replay] Creating new session",e),Tx(s,{previousSessionId:i}))}function Ox(e,t,n){return!!Nx(e,t)&&(Fx(e,t,n),!0)}async function Fx(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Kw.Custom}(e))return t(e)}catch(e){return ux&&Pv.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(t){const n=t&&t instanceof gx?"addEventSizeExceeded":"addEvent";ux&&Pv.error(t),await e.stop({reason:n});const i=Y_();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Nx(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=zI(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(hx(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function Ux(e){return!e.type}function jx(e){return"transaction"===e.type}function Px(e){return"feedback"===e.type}function Mx(e){const t=function(){const e=Y_();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,i)=>{if(!e.isEnabled()||!Ux(n)&&!jx(n))return;const s=i&&i.statusCode;t&&(!s||s<200||s>=300)||(jx(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:i}=e.getOptions();if("function"==typeof i&&!i(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function Dx(e){return t=>{e.isEnabled()&&Ux(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){qI(e,ex({category:"replay.hydrate-error"}))}}(e,t)}}function $x(e,t=!1){const n=t?Mx(e):void 0;return Object.assign(((t,i)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Ux(t)&&!jx(t)&&!Px(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Px(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Kw.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,i)&&!e.getOptions()._experiments.captureExceptions)return ux&&Pv.log("[Replay] Ignoring error from rrweb internals",t),null;const s=function(e,t){return"buffer"===e.recordingMode&&t.message!==Ub&&!(!t.exception||t.type)&&Ex(e.getOptions().errorSampleRate)}(e,t);return(s||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}function zx(e,t){return t.map((({type:t,start:n,end:i,name:s,data:a})=>{const r=e.throttledAddEvent({type:Kw.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:i,data:a}}});return"string"==typeof r?Promise.resolve(null):r}))}function Bx(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,i=Date.now()/1e3;return{type:"navigation.push",start:i,end:i,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(zx(e,[n]),!1))))}}function qx(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!ux||!e.getOptions()._experiments.traceInternals)&&ub(t,Y_())}(e,t.name)||e.addUpdate((()=>(zx(e,[t]),!0))))}function Vx(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:i}=e,s=i[v_];if(!t||!n||!s)return null;const{method:a,url:r,status_code:o}=s;return void 0===r?null:{type:"resource.xhr",name:r,start:t/1e3,end:n/1e3,data:{method:a,statusCode:o}}}(t);qx(e,n)}}function Hx(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Zx(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Wx(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Yx(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Zx(e)];if(!e)return[void 0]}catch(t){return ux&&Pv.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ux&&Pv.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Kx(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},i=n.warnings||[];return n.warnings=[...i,t],e._meta=n,e}function Gx(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:i,url:s,method:a,statusCode:r,request:o,response:c}=t;return{type:e,start:n/1e3,end:i/1e3,name:s,data:Vv({method:a,statusCode:r,request:o,response:c})}}function Jx(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Xx(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const i={headers:e,size:t},{body:s,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>jb,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,jb);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return i.body=s,a&&a.length>0&&(i._meta={warnings:a}),i}function Qx(e,t){return Object.keys(e).reduce(((n,i)=>{const s=i.toLowerCase();return t.includes(s)&&e[i]&&(n[s]=e[i]),n}),{})}function Zx(e){return new URLSearchParams(e).toString()}function eE(e,t){const n=function(e,t=Ob.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ob.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const i=n.href;if(!e.endsWith("/")&&i.endsWith("/"))return i.slice(0,-1);return i}(e);return function(e,t=[],n=!1){return t.some((t=>Ev(e,t,n)))}(n,t)}async function tE(e,t,n){try{const i=await async function(e,t,n){const i=Date.now(),{startTimestamp:s=i,endTimestamp:a=i}=t,{url:r,method:o,status_code:c=0,request_body_size:l,response_body_size:d}=e.data,u=eE(r,n.networkDetailAllowUrls)&&!eE(r,n.networkDetailDenyUrls),p=u?function({networkCaptureBodies:e,networkRequestHeaders:t},n,i){const s=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return sE(e[0],t);if(2===e.length)return sE(e[1],t);return{}}(n,t):{};if(!e)return Xx(s,i,void 0);const a=nE(n),[r,o]=Yx(a),c=Xx(s,i,r);if(o)return Kx(c,o);return c}(n,t.input,l):Jx(l),h=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:i},s,a){if(!e&&void 0!==a)return Jx(a);const r=s?iE(s.headers,i):{};if(!s||!t&&void 0!==a)return Xx(r,a,void 0);const[o,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){ux&&Pv.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const i=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(i)))}))}(t);return[e]}catch(e){return ux&&Pv.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(s),l=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:s,headers:a}){try{const r=e&&e.length&&void 0===i?Hx(e,n):i;return s?Xx(a,r,t?e:void 0):Jx(r)}catch(e){return ux&&Pv.warn("[Replay] Failed to serialize response body",e),Xx(a,i,void 0)}}(o,{networkCaptureBodies:t,textEncoder:n,responseBodySize:a,captureDetails:e,headers:r});if(c)return Kx(l,c);return l}(u,n,t.response,d);return{startTimestamp:s,endTimestamp:a,url:r,method:o,statusCode:c,request:p,response:h}}(e,t,n),s=Gx("resource.fetch",i);qx(n.replay,s)}catch(e){ux&&Pv.error("[Replay] Failed to capture fetch breadcrumb",e)}}function nE(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function iE(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function sE(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?iE(n,t):Array.isArray(n)?{}:Qx(n,t):{}}async function aE(e,t,n){try{const i=function(e,t,n){const i=Date.now(),{startTimestamp:s=i,endTimestamp:a=i,input:r,xhr:o}=t,{url:c,method:l,status_code:d=0,request_body_size:u,response_body_size:p}=e.data;if(!c)return null;if(!o||!eE(c,n.networkDetailAllowUrls)||eE(c,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:a,url:c,method:l,statusCode:d,request:Jx(u),response:Jx(p)}}const h=o[v_],f=h?Qx(h.request_headers,n.networkRequestHeaders):{},m=Qx(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,i]=t.split(": ");return e[n.toLowerCase()]=i,e}),{})}(o),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?Yx(r):[void 0],[v,_]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return ux&&Pv.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ux&&Pv.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return ux&&Pv.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(o):[void 0],b=Xx(f,u,g),w=Xx(m,p,v);return{startTimestamp:s,endTimestamp:a,url:c,method:l,statusCode:d,request:y?Kx(b,y):b,response:_?Kx(w,_):w}}(e,t,n),s=Gx("resource.xhr",i);qx(n.replay,s)}catch(e){ux&&Pv.error("[Replay] Failed to capture xhr breadcrumb",e)}}function rE(e,t,n){const{xhr:i,input:s}=t;if(!i)return;const a=Hx(s,n.textEncoder),r=i.getResponseHeader("content-length")?Wx(i.getResponseHeader("content-length")):function(e,t,n){try{return Hx("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(i.response,i.responseType,n.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}function oE(e){const t=Y_();try{const n=new TextEncoder,{networkDetailAllowUrls:i,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:i,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(rE(t,n,e),aE(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:i,response:s}=t,a=Hx(i?nE(i):void 0,n.textEncoder),r=s?Wx(s.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),tE(t,n,e))}catch(e){ux&&Pv.warn("Error when enriching network breadcrumb")}}(c,e,t))):(!function(e){const t="fetch";Jv(t,e),Xv(t,d_)}(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:i,response:s}=e;if(!n)return null;const{method:a,url:r}=i;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r,data:{method:a,statusCode:s?s.status:void 0}}}(t);qx(e,n)}}(e)),Jv("xhr",Vx(e)),Xv("xhr",__))}catch(e){}}let cE=null;const lE=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(cE===t||!t)return null;if(cE=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return ex(e);let n=!1;const i=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Pb?(n=!0,`${e.slice(0,Pb)}…`):e;if("object"==typeof e)try{const t=I_(e,7);return JSON.stringify(t).length>Pb?(n=!0,`${JSON.stringify(t,null,2).slice(0,Pb)}…`):t}catch(e){}return e}));return ex({...e,data:{...e.data,arguments:i,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return ex(t)}(t);n&&qI(e,n)};function dE(e){const t=K_(),n=Y_();t.addScopeListener(lE(e)),Jv("dom",sx(e)),Xv("dom",a_),function(e){const t="history";Jv(t,e),Xv(t,g_)}(Bx(e)),oE(e);const i=$x(e,!uE(n));n&&n.addEventProcessor?n.addEventProcessor(i):function(e){const t=Y_();t&&t.addEventProcessor&&t.addEventProcessor(e)}(i),uE(n)&&(n.on("beforeSendEvent",Dx(e)),n.on("afterSendEvent",Mx(e)),n.on("createDsc",(t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const i=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&i&&(e.flush(),t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=i))})))}function uE(e){return!(!e||!e.on)}function pE(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}}}}function hE(e){let t=!1;return(n,i)=>{if(!e.checkAndHandleExpiredSession())return void(ux&&Pv.warn("[Replay] Received replay event after session expired."));const s=i||!t;t=!0,e.clickDetector&&ZI(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!Ox(e,n,s))return!0;if(!s)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Ox(e,function(e){const t=e.getOptions();return{type:Kw.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(hx(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Ax(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}function fE(e,t,n,i){return function(e,t=[]){return[e,t]}(function(e,t,n,i){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:Mv(i)},...s&&{trace:Vv({...s})}}}(e,function(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}(e),i,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}async function mE({client:e,scope:t,replayId:n,event:i}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",i,s);const a=await B_(e.getOptions(),i,s,t,e,cb().getIsolationScope());if(!a)return null;a.platform=a.platform||"javascript";const r=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:c}=r&&r.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},a}async function gE({recordingData:e,replayId:t,segmentId:n,eventContext:i,timestamp:s,session:a}){const r=function({recordingData:e,headers:t}){let n;const i=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${i}${e}`;else{const t=(new TextEncoder).encode(i);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:o,errorIds:c,traceIds:l,initialTimestamp:d}=i,u=Y_(),p=K_(),h=u&&u.getTransport(),f=u&&u.getDsn();if(!(u&&h&&f&&a.sampled))return;const m={type:Nb,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:o,replay_id:t,segment_id:n,replay_type:a.sampled},g=await mE({scope:p,client:u,replayId:t,event:m});if(!g)return u.recordDroppedEvent("event_processor","replay",m),void hx("An event processor returned `null`, will not send event.");delete g.sdkProcessingMetadata;const y=fE(g,r,f,u.getOptions().tunnel);let v;try{v=await h.send(y)}catch(e){const t=new Error(Ub);try{t.cause=e}catch(e){}throw t}if(!v)return v;if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new yE(v.statusCode);const _=C_({},v);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(_,"replay"))throw new vE(_);return v}class yE extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class vE extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function _E(e,t={count:0,interval:5e3}){const{recordingData:n,options:i}=e;var s,a;if(n.length)try{return await gE(e),!0}catch(n){if(n instanceof yE||n instanceof vE)throw n;if(s="Replays",a={_retryCount:t.count},cb().setContext(s,a),ux&&i._experiments&&i._experiments.captureExceptions&&W_(n),t.count>=3){const e=new Error(`${Ub} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,i)=>{setTimeout((async()=>{try{await _E(e,t),n(!0)}catch(e){i(e)}}),t.interval)}))}}const bE="__THROTTLED";function wE(e,t,n){const i=new Map;let s=!1;return(...a)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;i.forEach(((e,n)=>{n<t&&i.delete(n)}))})(r),[...i.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":bE}s=!1;const o=i.get(r)||0;return i.set(r,o+1),e(...a)}}class IE{constructor({options:e,recordingOptions:t}){IE.prototype.__init.call(this),IE.prototype.__init2.call(this),IE.prototype.__init3.call(this),IE.prototype.__init4.call(this),IE.prototype.__init5.call(this),IE.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let i,s,a;const r=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return c(),i=e(),i}function c(){void 0!==s&&clearTimeout(s),void 0!==a&&clearTimeout(a),s=a=void 0}function l(){return s&&clearTimeout(s),s=setTimeout(o,t),r&&void 0===a&&(a=setTimeout(o,r)),i}return l.cancel=c,l.flush=function(){return void 0!==s||void 0!==a?o():i},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=wE(((e,t)=>function(e,t,n){return Nx(e,t)?Fx(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;s&&(this.clickDetector=new JI(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",fx(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");fx("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=Cx({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");fx("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Cx({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=DI({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:hE(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{hx("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,xx(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),hx("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),hx("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();hx("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&kx(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Ob.location.pathname}${Ob.location.hash}${Ob.location.search}`,t=`${Ob.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===bE){const e=ex({category:"replay.throttled"});this.addUpdate((()=>!Ox(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||K_().getTransaction(),t=(e&&z_(e).data||{})["sentry.source"];if(e&&t&&["route","custom"].includes(t))return z_(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=wx({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){ux&&Pv.error("[Replay]",e),ux&&this._options._experiments&&this._options._experiments.captureExceptions&&W_(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Cx({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Lx(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Ob.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ob.addEventListener("blur",this._handleWindowBlur),Ob.addEventListener("focus",this._handleWindowFocus),Ob.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(dE(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=dx(this)}_removeListeners(){try{Ob.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ob.removeEventListener("blur",this._handleWindowBlur),Ob.removeEventListener("focus",this._handleWindowFocus),Ob.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Ob.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=ex({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=ex({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{rx(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Rx(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):hx("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Kw.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(cx).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(zx(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(zx(e,[pE(Ob.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await _E({replayId:e,recordingData:s,segmentId:i,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Y_();t&&t.recordDroppedEvent("send_error","replay")}}else ux&&Pv.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(ux&&Pv.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const i=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(i||s)return hx(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(i&&this._debouncedFlush());const a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&hx("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){ux&&Pv.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ax(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,i=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||i){const e=ex({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function xE(e,t,n,i){const s=[...e,..."string"==typeof i?i.split(","):[],...t];return void 0!==n&&("string"==typeof n&&s.push(`.${n}`),jv((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),s.join(",")}const EE='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',SE=["content-length","content-type","accept"];let AE=!1;const TE=e=>new kE(e);class kE{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:i=36e5,stickySession:s=!0,useCompression:a=!0,workerUrl:r,_experiments:o={},sessionSampleRate:c,errorSampleRate:l,maskAllText:d=!0,maskAllInputs:u=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:_=!0,networkRequestHeaders:b=[],networkResponseHeaders:w=[],mask:I=[],maskAttributes:x=["title","placeholder"],unmask:E=[],block:S=[],unblock:A=[],ignore:T=[],maskFn:k,beforeAddRecordingEvent:R,beforeErrorSampling:L,blockClass:C,blockSelector:O,maskInputOptions:F,maskTextClass:N,maskTextSelector:U,ignoreClass:j}={}){this.name=kE.id;const P=function({mask:e,unmask:t,block:n,unblock:i,ignore:s,blockClass:a,blockSelector:r,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const d={maskTextSelector:xE(e,[".sentry-mask","[data-sentry-mask]"],o,c),unmaskTextSelector:xE(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:xE(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,r),unblockSelector:xE(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:xE(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return a instanceof RegExp&&(d.blockClass=a),o instanceof RegExp&&(d.maskTextClass=o),d}({mask:I,unmask:E,block:S,unblock:A,ignore:T,blockClass:C,blockSelector:O,maskTextClass:N,maskTextSelector:U,ignoreClass:j});if(this._recordingOptions={maskAllInputs:u,maskAllText:d,maskInputOptions:{...F||{},password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:i,privacyOptions:s,value:a}){return i?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?a:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a:a}({maskAttributes:x,maskAllText:d,privacyOptions:P,key:e,value:t,el:n}),...P,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(i,Db),stickySession:s,sessionSampleRate:c,errorSampleRate:l,useCompression:a,workerUrl:r,blockAllMedia:p,maskAllInputs:u,maskAllText:d,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:_,networkRequestHeaders:RE(b),networkResponseHeaders:RE(w),beforeAddRecordingEvent:R,beforeErrorSampling:L,_experiments:o},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof l&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${EE}`:EE),this._isInitialized&&w_())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return AE}set _isInitialized(e){AE=e}setupOnce(){w_()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=Y_(),n=t&&t.getOptions(),i={sessionSampleRate:0,errorSampleRate:0,...Vv(e)};if(!n)return jv((()=>{console.warn("SDK client is not available.")})),i;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&jv((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));"number"==typeof n.replaysSessionSampleRate&&(i.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(i.errorSampleRate=n.replaysOnErrorSampleRate);return i}(this._initialOptions);this._replay=new IE({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=Y_().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function RE(e){return[...SE,...e.map((e=>e.toLowerCase()))]}kE.__initStatic();const LE=Object.prototype.toString;function CE(e){switch(LE.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return UE(e,Error)}}function OE(e,t){return LE.call(e)===`[object ${t}]`}function FE(e){return OE(e,"Object")}function NE(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function UE(e,t){try{return e instanceof t}catch(e){return!1}}function jE(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function PE(e,t){let n=e;const i=n.length;if(i<=150)return n;t>i&&(t=i);let s=Math.max(t-60,0);s<5&&(s=0);let a=Math.min(s+140,i);return a>i-5&&(a=i),a===i&&(s=Math.max(a-140,0)),n=n.slice(s,a),s>0&&(n=`'{snip} ${n}`),a<i&&(n+=" {snip}"),n}function ME(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{jE(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function DE(e){return e&&e.Math==Math?e:void 0}const $E="object"==typeof globalThis&&DE(globalThis)||"object"==typeof window&&DE(window)||"object"==typeof self&&DE(self)||"object"==typeof global&&DE(global)||function(){return this}()||{};function zE(e,t,n){const i=n||$E,s=i.__SENTRY__=i.__SENTRY__||{};return s[e]||(s[e]=t())}const BE=$E,qE=80;function VE(e,t){const n=e,i=[];let s,a,r,o,c;if(!n||!n.tagName)return"";if(BE.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),s=n.className,s&&OE(s,"String"))for(a=s.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)r=d[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}const HE="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,WE=["debug","info","warn","error","log","assert","trace"],YE={};function KE(e){if(!("console"in $E))return e();const t=$E.console,n={},i=Object.keys(YE);i.forEach((e=>{const i=YE[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const GE=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return HE?WE.forEach((n=>{t[n]=(...t)=>{e&&KE((()=>{$E.console[n](`Sentry Logger [${n}]:`,...t)}))}})):WE.forEach((e=>{t[e]=()=>{}})),t}();function JE(e,t,n){if(!(t in e))return;const i=e[t],s=n(i);"function"==typeof s&&function(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,XE(e,"__sentry_original__",t)}catch(e){}}(s,i),e[t]=s}function XE(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){HE&&GE.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function QE(e){if(CE(e))return{message:e.message,name:e.name,stack:e.stack,...eS(e)};if(t=e,"undefined"!=typeof Event&&UE(t,Event)){const t={type:e.type,target:ZE(e.target),currentTarget:ZE(e.currentTarget),...eS(e)};return"undefined"!=typeof CustomEvent&&UE(e,CustomEvent)&&(t.detail=e.detail),t}return e;var t}function ZE(e){try{return t=e,"undefined"!=typeof Element&&UE(t,Element)?function(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||qE;for(;n&&a++<i&&(l=VE(n,d),!("html"===l||a>1&&r+s.length*c+l.length>=u));)s.push(l),r+=l.length,n=n.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function eS(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function tS(e){return nS(e,new Map)}function nS(e,t){if(function(e){if(!FE(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=nS(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(nS(e,t))})),i}return e}const iS="<anonymous>";function sS(e){try{return e&&"function"==typeof e&&e.name||iS}catch(e){return iS}}const aS={},rS={};function oS(e){const t="console";!function(e,t){aS[e]=aS[e]||[],aS[e].push(t)}(t,e),function(e,t){rS[e]||(t(),rS[e]=!0)}(t,cS)}function cS(){"console"in $E&&WE.forEach((function(e){e in $E.console&&JE($E.console,e,(function(t){return YE[e]=t,function(...t){!function(e,t){const n=e&&aS[e];if(n)for(const i of n)try{i(t)}catch(t){HE&&GE.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${sS(i)}\nError:`,t)}}("console",{args:t,level:e});const n=YE[e];n&&n.apply($E.console,t)}}))}))}function lS(){const e=$E,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function dS(e,t=100,n=1/0){try{return uS("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function uS(e,t,n=1/0,i=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(o=t)||o==o))return t;var o;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(jE(t))return"[VueViewModel]";if(function(e){return FE(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${sS(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===l)return c.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&"function"==typeof d.toJSON)try{return uS("",d.toJSON(),l-1,i,s)}catch(e){}const u=Array.isArray(t)?[]:{};let p=0;const h=QE(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(p>=i){u[e]="[MaxProperties ~]";break}const t=h[e];u[e]=uS(e,t,l-1,i,s),p++}return r(t),u}var pS;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(pS||(pS={}));class hS{constructor(e){hS.prototype.__init.call(this),hS.prototype.__init2.call(this),hS.prototype.__init3.call(this),hS.prototype.__init4.call(this),this._state=pS.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new hS(((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){i(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){i(e)}else i(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new hS(((t,n)=>{let i,s;return this.then((t=>{s=!1,i=t,e&&e()}),(t=>{s=!0,i=t,e&&e()})).then((()=>{s?n(i):t(i)}))}))}__init(){this._resolve=e=>{this._setResult(pS.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(pS.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===pS.PENDING&&(NE(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===pS.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===pS.RESOLVED&&e[1](this._value),this._state===pS.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const fS=["fatal","error","warning","log","info","debug"];function mS(e){return"warn"===e?"warning":fS.includes(e)?e:"log"}const gS=1e3;function yS(){return Date.now()/gS}const vS=function(){const{performance:e}=$E;if(!e||!e.now)return yS;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/gS}();(()=>{const{performance:e}=$E;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;(a||o<t)&&(s<=o&&e.timeOrigin)})();const _S="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,bS="production";function wS(e,t,n,i=0){return new hS(((s,a)=>{const r=e[i];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},n);_S&&r.id&&null===o&&GE.log(`Event processor "${r.id}" dropped event`),NE(o)?o.then((t=>wS(e,t,n,i+1).then(s))).then(null,a):wS(e,o,n,i+1).then(s).then(null,a)}}))}function IS(e){const t=vS(),n={sid:lS(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return tS({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&xS(n,e),n}function xS(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||vS(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:lS()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const ES=1;function SS(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:r,tags:o,origin:c}=AS(e);return tS({data:i,op:s,parent_span_id:a,span_id:t,status:r,tags:o,trace_id:n,origin:c})}function AS(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function TS(e){if(e)return function(e){return e instanceof NS||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>kS.includes(e)))}(e)?{captureContext:e}:e}const kS=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function RS(e,t){const n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return zS().captureMessage(e,n,i)}function LS(){return zS().getClient()}function CS(e){return e.transaction}function OS(e){const t=LS();if(!t)return{};const n=function(e,t,n){const i=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},r=tS({environment:i.environment||bS,release:i.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}(AS(e).trace_id||"",t,zS().getScope()),i=CS(e);if(!i)return n;const s=i&&i._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:r}=i.metadata;null!=a&&(n.sample_rate=`${a}`);const o=AS(i);return r&&"url"!==r&&(n.transaction=o.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(t&ES)}(i)),t.emit&&t.emit("createDsc",n),n}function FS(e,t){const{fingerprint:n,span:i,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,transactionName:o}=t,c=tS(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=tS(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const d=tS(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const u=tS(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts});r&&(e.level=r);o&&(e.transaction=o)}(e,t),i&&function(e,t){e.contexts={trace:SS(t),...e.contexts};const n=CS(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:OS(t),...e.sdkProcessingMetadata};const i=AS(n).description;i&&(e.tags={transaction:i,...e.tags})}}(e,i),function(e,t){e.fingerprint=e.fingerprint?function(e){return Array.isArray(e)?e:[e]}(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}class NS{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=US()}static clone(e){return e?e.clone():new NS}clone(){const e=new NS;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&xS(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof NS?t:this}return e instanceof NS?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):FE(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=US(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:yS(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:i,_extra:s,_user:a,_level:r,_fingerprint:o,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:u,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:i,extra:s,user:a,level:r,fingerprint:o||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:d,transactionName:u,span:p}}applyToEvent(e,t={},n=[]){FS(e,this.getScopeData());return wS([...n,...zE("globalEventProcessors",(()=>[])),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:lS();if(!this._client)return GE.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:lS();if(!this._client)return GE.warn("No client configured on scope - will not capture message!"),i;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:lS();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(GE.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function US(){return{traceId:lS(),spanId:lS().substring(16)}}const jS=parseFloat("7.101.1"),PS=100;class MS{constructor(e,t,n,i=jS){let s,a;this._version=i,t?s=t:(s=new NS,s.setClient(e)),n?a=n:(a=new NS,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return NE(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:lS(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:lS(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:lS();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=PS}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const r={timestamp:yS(),...e},o=s?KE((()=>s(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=$S(this);try{e(this)}finally{$S(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return _S&&GE.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(_S&&!n){this.getClient()?GE.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):GE.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),xS(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:s=bS}=n&&n.getOptions()||{},{userAgent:a}=$E.navigator||{},r=IS({release:i,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&xS(o,{status:"exited"}),this.endSession(),t.setSession(r),r}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=DS().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);_S&&GE.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function DS(){return $E.__SENTRY__=$E.__SENTRY__||{extensions:{},hub:void 0},$E}function $S(e){const t=DS(),n=BS(t);return qS(t,e),n}function zS(){const e=DS();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=DS()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!BS(e).isOlderThan(jS)||qS(e,new MS);var t;return BS(e)}(e)}function BS(e){return zE("hub",(()=>new MS),e)}function qS(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function VS(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}const HS="CaptureConsole",WS=(e={})=>{const t=e.levels||WE;return{name:HS,setupOnce(){},setup(e){"console"in $E&&oS((({args:n,level:i})=>{LS()===e&&t.includes(i)&&function(e,t){const n={level:mS(t),extra:{arguments:e}};!function(...e){const t=zS();if(2===e.length){const[n,i]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,i(n)))):t.withScope(i)}t.withScope(e[0])}((i=>{if(i.addEventProcessor((e=>(e.logger="console",function(e,t){const n=function(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}(e,{handled:!1,type:"console"}),e))),"assert"===t&&!1===e[0]){const t=`Assertion failed: ${ME(e.slice(1)," ")||"console.assert"}`;return i.setExtra("arguments",e.slice(1)),void RS(t,n)}const s=e.find((e=>e instanceof Error));if("error"===t&&s)return a=s,r=n,void zS().captureException(a,TS(r));var a,r;RS(ME(e," "),n)}))}(n,i)}))}}};VS(HS,WS);const YS="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,KS="ExtraErrorData",GS=(e={})=>{const t=e.depth||3,n=e.captureErrorCause||!1;return{name:KS,setupOnce(){},processEvent:(e,i)=>function(e,t={},n,i){if(!t.originalException||!CE(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,a=function(e,t){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const s=e[t];i[t]=CE(s)?s.toString():s}if(t&&void 0!==e.cause&&(i.cause=CE(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];i[e]=CE(n)?n.toString():n}}return i}catch(e){YS&&GE.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,i);if(a){const t={...e.contexts},i=dS(a,n);return FE(i)&&(XE(i,"__sentry_skip_normalization__",!0),t[s]=i),{...e,contexts:t}}return e}(e,i,t,n)}};VS(KS,GS);const JS=$E,XS="ContextLines",QS=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:XS,setupOnce(){},processEvent:e=>function(e,t){const n=JS.document,i=JS.location&&(s=JS.location.href,s.split(/[\?#]/,1)[0]);var s;if(!n||!i)return e;const a=e.exception&&e.exception.values;if(!a||!a.length)return e;const r=n.documentElement.innerHTML;if(!r)return e;const o=["<!DOCTYPE html>","<html>",...r.split("\n"),"</html>"];return a.forEach((e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map((e=>function(e,t,n,i){if(e.filename!==n||!e.lineno||!t.length)return e;return function(e,t,n=5){if(void 0===t.lineno)return;const i=e.length,s=Math.max(Math.min(i-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map((e=>PE(e,0))),t.context_line=PE(e[Math.min(i-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,i),s+1+n).map((e=>PE(e,0)))}(t,e,i),e}(e,o,i,t))))})),e}(e,t)}};VS(XS,QS);const ZS=new RegExp("^https:\\/\\/roar-sre--pr\\d+-\\w+\\.web\\.app\\/"),eA=new RegExp("^https:\\/\\/roar-staging\\.web\\.app\\/game\\/sre|https:\\/\\/roar-staging--pr\\d+-\\w+\\.web\\.app\\/");class tA{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,this.displayElement=i,this.jsPsych=null}async init(){gv({dsn:"https://b618958936a197de9f9f9a86ae6cceff@o4505913837420544.ingest.sentry.io/4505915445870592",integrations:[TE({maskAllText:!0,maskAllInputs:!0}),my(),WS({levels:["warning","error","debug","assert"]}),QS(),GS()],attachStacktrace:!0,tracesSampleRate:.2,tracePropagationTargets:[ZS,eA,"https://roar.education/game/sre","localhost"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),await this.firekit.startRun();const e=await(async(e,t,n,i)=>{const s=La(La({...t,...n},Ca),Oa),{userMode:a,assessmentPid:r,labId:o,recruitment:c,userMetadata:l,urlParams:d,consent:u,storyOption:p,language:h=cc.language,skipInstructions:f,grade:m,birthMonth:g,birthYear:y,age:v,ageMonths:_,timerLength:b}=s;"en"!==h&&cc.changeLanguage(h);const w=or(g,y,v,_),I={taskId:e.task.taskId,pid:r,labId:o,userMode:a||ip(h),recruitment:c||"pilot",storyOption:p,story:ep(p,m),userMetadata:{...l,grade:m,...w},startTime:new Date,urlParams:d,firekit:e,language:h,skipInstructions:f??!0,consent:u??!0,displayElement:i||null,blockOrder:tp(a||ip(h)),timerLength:b??18e4,timerLengthList:np(a||ip(h))},x=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,I[e]??t])));return await I.firekit.updateTaskParams(x),null!==I.pid&&await I.firekit.updateUser({assessmentPid:I.pid,...l}),I})(this.firekit,this.gameParams,this.userParams,this.displayElement);return r.session.set("config",e),function(e,t){_l=wo(gl,yl,cc.language),bl=Io(gl,yl,cc.language).default,console.log("mediaAssets",_l),console.log("preloadTrials",bl),bl.message=cc.t("loading"),sp(t);const n=ap(e),i=dr({responseTimeLowThreshold:1e3,responseTimeHighThreshold:2e4,accuracyThreshold:.6,minResponsesRequired:10,includedReliabilityFlags:["incomplete","responseTimeTooFast"]});vl=new ur({evaluateValidity:i,handleEngagementFlags:(e,n)=>t.firekit.run.started?t.firekit.updateEngagementFlags(e,n):null});const s=[bl,...n];return(e=>{const n={timeline:[fl,ml],repetitions:4};s.push(il),s.push(ul),s.push(hl),s.push(n),s.push(sl);for(let n=0;n<e.length;n+=1)s.push(pl(e[n],n+1,t.timerLengthList[n])),n<e.length-1&&s.push(ll);s.push(dl)})(t.blockOrder),{jsPsych:el,timeline:s}}(this.firekit,e)}async run(){const{jsPsych:e,timeline:t}=await this.init();this.jsPsych=e,this.jsPsych.run(t),await(e=>{const t=n=>{e()?n():setTimeout((e=>t(n)),400)};return new Promise(t)})((()=>!0===this.firekit.run.completed))}async abort(){this.firekit.abortRun(),document.querySelectorAll("audio").forEach((e=>e.pause())),this.jsPsych&&this.jsPsych.endExperiment()}}export{tA as default};
|
|
26
|
-
//# sourceMappingURL=index.
|
|
25
|
+
*/!function(e,t){(function(){var i,s="Expected a function",a="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,l=64,d=128,u=256,p=1/0,h=9007199254740991,f=NaN,m=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",l],["rearg",u]],y="[object Arguments]",v="[object Array]",_="[object Boolean]",b="[object Date]",w="[object Error]",I="[object Function]",x="[object GeneratorFunction]",E="[object Map]",S="[object Number]",A="[object Object]",T="[object Promise]",k="[object RegExp]",R="[object Set]",L="[object String]",C="[object Symbol]",O="[object WeakMap]",F="[object ArrayBuffer]",N="[object DataView]",U="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",M="[object Int16Array]",D="[object Int32Array]",$="[object Uint8Array]",z="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,G=RegExp(Y.source),J=RegExp(K.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ie.source),ae=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",Ce="["+xe+"]",Oe="["+Re+"]",Fe="["+Ee+"]",Ne="\\d+",Ue="["+Se+"]",je="["+Ae+"]",Pe="[^"+xe+Re+Ne+Se+Ae+Te+"]",Me="\\ud83c[\\udffb-\\udfff]",De="[^"+xe+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Te+"]",qe="\\u200d",Ve="(?:"+je+"|"+Pe+")",He="(?:"+Be+"|"+Pe+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Fe+"|"+Me+")"+"?",Ge="["+ke+"]?",Je=Ge+Ke+("(?:"+qe+"(?:"+[De,$e,ze].join("|")+")"+Ge+Ke+")*"),Xe="(?:"+[Ue,$e,ze].join("|")+")"+Je,Qe="(?:"+[De+Fe+"?",Fe,$e,ze,Ce].join("|")+")",Ze=RegExp(Le,"g"),et=RegExp(Fe,"g"),tt=RegExp(Me+"(?="+Me+")|"+Qe+Je,"g"),nt=RegExp([Be+"?"+je+"+"+We+"(?="+[Oe,Be,"$"].join("|")+")",He+"+"+Ye+"(?="+[Oe,Be+Ve,"$"].join("|")+")",Be+"?"+Ve+"+"+We,Be+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Xe].join("|"),"g"),it=RegExp("["+qe+xe+Ee+ke+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[U]=ot[j]=ot[P]=ot[M]=ot[D]=ot[$]=ot[z]=ot[B]=ot[q]=!0,ot[y]=ot[v]=ot[F]=ot[_]=ot[N]=ot[b]=ot[w]=ot[I]=ot[E]=ot[S]=ot[A]=ot[k]=ot[R]=ot[L]=ot[O]=!1;var ct={};ct[y]=ct[v]=ct[F]=ct[N]=ct[_]=ct[b]=ct[U]=ct[j]=ct[P]=ct[M]=ct[D]=ct[E]=ct[S]=ct[A]=ct[k]=ct[R]=ct[L]=ct[C]=ct[$]=ct[z]=ct[B]=ct[q]=!0,ct[w]=ct[I]=ct[O]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ut=parseInt,pt="object"==typeof n&&n&&n.Object===Object&&n,ht="object"==typeof self&&self&&self.Object===Object&&self,ft=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&>.exports===mt,vt=yt&&pt.process,_t=function(){try{var e=gt&>.require&>.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),bt=_t&&_t.isArrayBuffer,wt=_t&&_t.isDate,It=_t&&_t.isMap,xt=_t&&_t.isRegExp,Et=_t&&_t.isSet,St=_t&&_t.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,i){for(var s=-1,a=null==e?0:e.length;++s<a;){var r=e[s];t(i,r,n(r),e)}return i}function kt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,i=null==e?0:e.length,s=0,a=[];++n<i;){var r=e[n];t(r,n,e)&&(a[s++]=r)}return a}function Ot(e,t){return!!(null==e?0:e.length)&&Bt(e,t,0)>-1}function Ft(e,t,n){for(var i=-1,s=null==e?0:e.length;++i<s;)if(n(t,e[i]))return!0;return!1}function Nt(e,t){for(var n=-1,i=null==e?0:e.length,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s}function Ut(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e}function jt(e,t,n,i){var s=-1,a=null==e?0:e.length;for(i&&a&&(n=e[++s]);++s<a;)n=t(n,e[s],s,e);return n}function Pt(e,t,n,i){var s=null==e?0:e.length;for(i&&s&&(n=e[--s]);s--;)n=t(n,e[s],s,e);return n}function Mt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Dt=Wt("length");function $t(e,t,n){var i;return n(e,(function(e,n,s){if(t(e,n,s))return i=n,!1})),i}function zt(e,t,n,i){for(var s=e.length,a=n+(i?1:-1);i?a--:++a<s;)if(t(e[a],a,e))return a;return-1}function Bt(e,t,n){return t==t?function(e,t,n){var i=n-1,s=e.length;for(;++i<s;)if(e[i]===t)return i;return-1}(e,t,n):zt(e,Vt,n)}function qt(e,t,n,i){for(var s=n-1,a=e.length;++s<a;)if(i(e[s],t))return s;return-1}function Vt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Wt(e){return function(t){return null==t?i:t[e]}}function Yt(e){return function(t){return null==e?i:e[t]}}function Kt(e,t,n,i,s){return s(e,(function(e,s,a){n=i?(i=!1,e):t(n,e,s,a)})),n}function Gt(e,t){for(var n,s=-1,a=e.length;++s<a;){var r=t(e[s]);r!==i&&(n=n===i?r:n+r)}return n}function Jt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Xt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Qt(e){return function(t){return e(t)}}function Zt(e,t){return Nt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&Bt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var sn=Yt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+lt[e]}function on(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,i=e.length,s=0,a=[];++n<i;){var o=e[n];o!==t&&o!==r||(e[n]=r,a[s++]=n)}return a}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return on(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Dt(e)}function fn(e){return on(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var gn=Yt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?ft:yn.defaults(ft.Object(),t,yn.pick(ft,at))).Array,re=t.Date,xe=t.Error,Ee=t.Function,Se=t.Math,Ae=t.Object,Te=t.RegExp,ke=t.String,Re=t.TypeError,Le=n.prototype,Ce=Ee.prototype,Oe=Ae.prototype,Fe=t["__core-js_shared__"],Ne=Ce.toString,Ue=Oe.hasOwnProperty,je=0,Pe=function(){var e=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Me=Oe.toString,De=Ne.call(Ae),$e=ft._,ze=Te("^"+Ne.call(Ue).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=yt?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,He=Be?Be.allocUnsafe:i,We=ln(Ae.getPrototypeOf,Ae),Ye=Ae.create,Ke=Oe.propertyIsEnumerable,Ge=Le.splice,Je=qe?qe.isConcatSpreadable:i,Xe=qe?qe.iterator:i,Qe=qe?qe.toStringTag:i,tt=function(){try{var e=ua(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=re&&re.now!==ft.Date.now&&re.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,ht=Se.ceil,mt=Se.floor,gt=Ae.getOwnPropertySymbols,vt=Be?Be.isBuffer:i,_t=t.isFinite,Dt=Le.join,Yt=ln(Ae.keys,Ae),vn=Se.max,_n=Se.min,bn=re.now,wn=t.parseInt,In=Se.random,xn=Le.reverse,En=ua(t,"DataView"),Sn=ua(t,"Map"),An=ua(t,"Promise"),Tn=ua(t,"Set"),kn=ua(t,"WeakMap"),Rn=ua(Ae,"create"),Ln=kn&&new kn,Cn={},On=Pa(En),Fn=Pa(Sn),Nn=Pa(An),Un=Pa(Tn),jn=Pa(kn),Pn=qe?qe.prototype:i,Mn=Pn?Pn.valueOf:i,Dn=Pn?Pn.toString:i;function $n(e){if(eo(e)&&!qr(e)&&!(e instanceof Vn)){if(e instanceof qn)return e;if(Ue.call(e,"__wrapped__"))return Ma(e)}return new qn(e)}var zn=function(){function e(){}return function(t){if(!Zr(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Jn(e,t){var n=qr(e),i=!n&&Br(e),s=!n&&!i&&Yr(e),a=!n&&!i&&!s&&co(e),r=n||i||s||a,o=r?Jt(e.length,ke):[],c=o.length;for(var l in e)!t&&!Ue.call(e,l)||r&&("length"==l||s&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||va(l,c))||o.push(l);return o}function Xn(e){var t=e.length;return t?e[Ki(0,t-1)]:i}function Qn(e,t){return Na(Rs(e),oi(t,0,e.length))}function Zn(e){return Na(Rs(e))}function ei(e,t,n){(n!==i&&!Dr(e[t],n)||n===i&&!(t in e))&&ai(e,t,n)}function ti(e,t,n){var s=e[t];Ue.call(e,t)&&Dr(s,n)&&(n!==i||t in e)||ai(e,t,n)}function ni(e,t){for(var n=e.length;n--;)if(Dr(e[n][0],t))return n;return-1}function ii(e,t,n,i){return pi(e,(function(e,s,a){t(i,e,n(e),a)})),i}function si(e,t){return e&&Ls(t,Co(t),e)}function ai(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var s=-1,a=t.length,r=n(a),o=null==e;++s<a;)r[s]=o?i:Ao(e,t[s]);return r}function oi(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ci(e,t,n,s,a,r){var o,c=1&t,l=2&t,d=4&t;if(n&&(o=a?n(e,s,a,r):n(e)),o!==i)return o;if(!Zr(e))return e;var u=qr(e);if(u){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Rs(e,o)}else{var p=fa(e),h=p==I||p==x;if(Yr(e))return xs(e,c);if(p==A||p==y||h&&!a){if(o=l||h?{}:ga(e),!c)return l?function(e,t){return Ls(e,ha(e),t)}(e,function(e,t){return e&&Ls(t,Oo(t),e)}(o,e)):function(e,t){return Ls(e,pa(e),t)}(e,si(o,e))}else{if(!ct[p])return a?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case F:return Es(e);case _:case b:return new i(+e);case N:return function(e,t){var n=t?Es(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case U:case j:case P:case M:case D:case $:case z:case B:case q:return Ss(e,n);case E:return new i;case S:case L:return new i(e);case k:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new i;case C:return s=e,Mn?Ae(Mn.call(s)):{}}var s}(e,p,c)}}r||(r=new Gn);var f=r.get(e);if(f)return f;r.set(e,o),ao(e)?e.forEach((function(i){o.add(ci(i,t,n,i,e,r))})):to(e)&&e.forEach((function(i,s){o.set(s,ci(i,t,n,s,e,r))}));var m=u?i:(d?l?sa:ia:l?Oo:Co)(e);return kt(m||e,(function(i,s){m&&(i=e[s=i]),ti(o,s,ci(i,t,n,s,e,r))})),o}function li(e,t,n){var s=n.length;if(null==e)return!s;for(e=Ae(e);s--;){var a=n[s],r=t[a],o=e[a];if(o===i&&!(a in e)||!r(o))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new Re(s);return La((function(){e.apply(i,n)}),t)}function ui(e,t,n,i){var s=-1,a=Ot,r=!0,o=e.length,c=[],l=t.length;if(!o)return c;n&&(t=Nt(t,Qt(n))),i?(a=Ft,r=!1):t.length>=200&&(a=en,r=!1,t=new Kn(t));e:for(;++s<o;){var d=e[s],u=null==n?d:n(d);if(d=i||0!==d?d:0,r&&u==u){for(var p=l;p--;)if(t[p]===u)continue e;c.push(d)}else a(t,u,i)||c.push(d)}return c}$n.templateSettings={escape:X,evaluate:Q,interpolate:Z,variable:"",imports:{_:$n}},$n.prototype=Bn.prototype,$n.prototype.constructor=$n,qn.prototype=zn(Bn.prototype),qn.prototype.constructor=qn,Vn.prototype=zn(Bn.prototype),Vn.prototype.constructor=Vn,Hn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===a?i:n}return Ue.call(t,e)?t[e]:i},Hn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==i:Ue.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===i?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=ni(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Wn.prototype.get=function(e){var t=this.__data__,n=ni(t,e);return n<0?i:t[n][1]},Wn.prototype.has=function(e){return ni(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,i=ni(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Sn||Wn),string:new Hn}},Yn.prototype.delete=function(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return la(this,e).get(e)},Yn.prototype.has=function(e){return la(this,e).has(e)},Yn.prototype.set=function(e,t){var n=la(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var i=n.__data__;if(!Sn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(i)}return n.set(e,t),this.size=n.size,this};var pi=Fs(bi),hi=Fs(wi,!0);function fi(e,t){var n=!0;return pi(e,(function(e,i,s){return n=!!t(e,i,s)})),n}function mi(e,t,n){for(var s=-1,a=e.length;++s<a;){var r=e[s],o=t(r);if(null!=o&&(c===i?o==o&&!oo(o):n(o,c)))var c=o,l=r}return l}function gi(e,t){var n=[];return pi(e,(function(e,i,s){t(e,i,s)&&n.push(e)})),n}function yi(e,t,n,i,s){var a=-1,r=e.length;for(n||(n=ya),s||(s=[]);++a<r;){var o=e[a];t>0&&n(o)?t>1?yi(o,t-1,n,i,s):Ut(s,o):i||(s[s.length]=o)}return s}var vi=Ns(),_i=Ns(!0);function bi(e,t){return e&&vi(e,t,Co)}function wi(e,t){return e&&_i(e,t,Co)}function Ii(e,t){return Ct(t,(function(t){return Jr(e[t])}))}function xi(e,t){for(var n=0,s=(t=_s(t,e)).length;null!=e&&n<s;)e=e[ja(t[n++])];return n&&n==s?e:i}function Ei(e,t,n){var i=t(e);return qr(e)?i:Ut(i,n(e))}function Si(e){return null==e?e===i?"[object Undefined]":"[object Null]":Qe&&Qe in Ae(e)?function(e){var t=Ue.call(e,Qe),n=e[Qe];try{e[Qe]=i;var s=!0}catch(e){}var a=Me.call(e);s&&(t?e[Qe]=n:delete e[Qe]);return a}(e):function(e){return Me.call(e)}(e)}function Ai(e,t){return e>t}function Ti(e,t){return null!=e&&Ue.call(e,t)}function ki(e,t){return null!=e&&t in Ae(e)}function Ri(e,t,s){for(var a=s?Ft:Ot,r=e[0].length,o=e.length,c=o,l=n(o),d=1/0,u=[];c--;){var p=e[c];c&&t&&(p=Nt(p,Qt(t))),d=_n(p.length,d),l[c]=!s&&(t||r>=120&&p.length>=120)?new Kn(c&&p):i}p=e[0];var h=-1,f=l[0];e:for(;++h<r&&u.length<d;){var m=p[h],g=t?t(m):m;if(m=s||0!==m?m:0,!(f?en(f,g):a(u,g,s))){for(c=o;--c;){var y=l[c];if(!(y?en(y,g):a(e[c],g,s)))continue e}f&&f.push(g),u.push(m)}}return u}function Li(e,t,n){var s=null==(e=Ta(e,t=_s(t,e)))?e:e[ja(Ga(t))];return null==s?i:At(s,e,n)}function Ci(e){return eo(e)&&Si(e)==y}function Oi(e,t,n,s,a){return e===t||(null==e||null==t||!eo(e)&&!eo(t)?e!=e&&t!=t:function(e,t,n,s,a,r){var o=qr(e),c=qr(t),l=o?v:fa(e),d=c?v:fa(t),u=(l=l==y?A:l)==A,p=(d=d==y?A:d)==A,h=l==d;if(h&&Yr(e)){if(!Yr(t))return!1;o=!0,u=!1}if(h&&!u)return r||(r=new Gn),o||co(e)?ta(e,t,n,s,a,r):function(e,t,n,i,s,a,r){switch(n){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case F:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case _:case b:case S:return Dr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case k:case L:return e==t+"";case E:var o=cn;case R:var c=1&i;if(o||(o=un),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var d=ta(o(e),o(t),i,s,a,r);return r.delete(e),d;case C:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,l,n,s,a,r);if(!(1&n)){var f=u&&Ue.call(e,"__wrapped__"),m=p&&Ue.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,I=m?t.value():t;return r||(r=new Gn),a(g,I,n,s,r)}}if(!h)return!1;return r||(r=new Gn),function(e,t,n,s,a,r){var o=1&n,c=ia(e),l=c.length,d=ia(t),u=d.length;if(l!=u&&!o)return!1;var p=l;for(;p--;){var h=c[p];if(!(o?h in t:Ue.call(t,h)))return!1}var f=r.get(e),m=r.get(t);if(f&&m)return f==t&&m==e;var g=!0;r.set(e,t),r.set(t,e);var y=o;for(;++p<l;){var v=e[h=c[p]],_=t[h];if(s)var b=o?s(_,v,h,t,e,r):s(v,_,h,e,t,r);if(!(b===i?v===_||a(v,_,n,s,r):b)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var w=e.constructor,I=t.constructor;w==I||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof I&&I instanceof I||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,n,s,a,r)}(e,t,n,s,Oi,a))}function Fi(e,t,n,s){var a=n.length,r=a,o=!s;if(null==e)return!r;for(e=Ae(e);a--;){var c=n[a];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<r;){var l=(c=n[a])[0],d=e[l],u=c[1];if(o&&c[2]){if(d===i&&!(l in e))return!1}else{var p=new Gn;if(s)var h=s(d,u,l,e,t,p);if(!(h===i?Oi(u,d,3,s,p):h))return!1}}return!0}function Ni(e){return!(!Zr(e)||(t=e,Pe&&Pe in t))&&(Jr(e)?ze:ye).test(Pa(e));var t}function Ui(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?qr(e)?zi(e[0],e[1]):$i(e):pc(e)}function ji(e){if(!xa(e))return Yt(e);var t=[];for(var n in Ae(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pi(e){if(!Zr(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=xa(e),n=[];for(var i in e)("constructor"!=i||!t&&Ue.call(e,i))&&n.push(i);return n}function Mi(e,t){return e<t}function Di(e,t){var i=-1,s=Hr(e)?n(e.length):[];return pi(e,(function(e,n,a){s[++i]=t(e,n,a)})),s}function $i(e){var t=da(e);return 1==t.length&&t[0][2]?Sa(t[0][0],t[0][1]):function(n){return n===e||Fi(n,e,t)}}function zi(e,t){return ba(e)&&Ea(t)?Sa(ja(e),t):function(n){var s=Ao(n,e);return s===i&&s===t?To(n,e):Oi(t,s,3)}}function Bi(e,t,n,s,a){e!==t&&vi(t,(function(r,o){if(a||(a=new Gn),Zr(r))!function(e,t,n,s,a,r,o){var c=ka(e,n),l=ka(t,n),d=o.get(l);if(d)return void ei(e,n,d);var u=r?r(c,l,n+"",e,t,o):i,p=u===i;if(p){var h=qr(l),f=!h&&Yr(l),m=!h&&!f&&co(l);u=l,h||f||m?qr(c)?u=c:Wr(c)?u=Rs(c):f?(p=!1,u=xs(l,!0)):m?(p=!1,u=Ss(l,!0)):u=[]:io(l)||Br(l)?(u=c,Br(c)?u=yo(c):Zr(c)&&!Jr(c)||(u=ga(l))):p=!1}p&&(o.set(l,u),a(u,l,s,r,o),o.delete(l));ei(e,n,u)}(e,t,o,n,Bi,s,a);else{var c=s?s(ka(e,o),r,o+"",e,t,a):i;c===i&&(c=r),ei(e,o,c)}}),Oo)}function qi(e,t){var n=e.length;if(n)return va(t+=t<0?n:0,n)?e[t]:i}function Vi(e,t,n){t=t.length?Nt(t,(function(e){return qr(e)?function(t){return xi(t,1===e.length?e[0]:e)}:e})):[ic];var i=-1;t=Nt(t,Qt(ca()));var s=Di(e,(function(e,n,s){var a=Nt(t,(function(t){return t(e)}));return{criteria:a,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(s,(function(e,t){return function(e,t,n){var i=-1,s=e.criteria,a=t.criteria,r=s.length,o=n.length;for(;++i<r;){var c=As(s[i],a[i]);if(c)return i>=o?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hi(e,t,n){for(var i=-1,s=t.length,a={};++i<s;){var r=t[i],o=xi(e,r);n(o,r)&&Zi(a,_s(r,e),o)}return a}function Wi(e,t,n,i){var s=i?qt:Bt,a=-1,r=t.length,o=e;for(e===t&&(t=Rs(t)),n&&(o=Nt(e,Qt(n)));++a<r;)for(var c=0,l=t[a],d=n?n(l):l;(c=s(o,d,c,i))>-1;)o!==e&&Ge.call(o,c,1),Ge.call(e,c,1);return e}function Yi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var s=t[n];if(n==i||s!==a){var a=s;va(s)?Ge.call(e,s,1):us(e,s)}}return e}function Ki(e,t){return e+mt(In()*(t-e+1))}function Gi(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Ji(e,t){return Ca(Aa(e,t,ic),e+"")}function Xi(e){return Xn($o(e))}function Qi(e,t){var n=$o(e);return Na(n,oi(t,0,n.length))}function Zi(e,t,n,s){if(!Zr(e))return e;for(var a=-1,r=(t=_s(t,e)).length,o=r-1,c=e;null!=c&&++a<r;){var l=ja(t[a]),d=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=o){var u=c[l];(d=s?s(u,l,c):i)===i&&(d=Zr(u)?u:va(t[a+1])?[]:{})}ti(c,l,d),c=c[l]}return e}var es=Ln?function(e,t){return Ln.set(e,t),e}:ic,ts=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:ic;function ns(e){return Na($o(e))}function is(e,t,i){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(i=i>a?a:i)<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var r=n(a);++s<a;)r[s]=e[s+t];return r}function ss(e,t){var n;return pi(e,(function(e,i,s){return!(n=t(e,i,s))})),!!n}function as(e,t,n){var i=0,s=null==e?i:e.length;if("number"==typeof t&&t==t&&s<=2147483647){for(;i<s;){var a=i+s>>>1,r=e[a];null!==r&&!oo(r)&&(n?r<=t:r<t)?i=a+1:s=a}return s}return rs(e,t,ic,n)}function rs(e,t,n,s){var a=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=n(t))!=t,c=null===t,l=oo(t),d=t===i;a<r;){var u=mt((a+r)/2),p=n(e[u]),h=p!==i,f=null===p,m=p==p,g=oo(p);if(o)var y=s||m;else y=d?m&&(s||h):c?m&&h&&(s||!f):l?m&&h&&!f&&(s||!g):!f&&!g&&(s?p<=t:p<t);y?a=u+1:r=u}return _n(r,4294967294)}function os(e,t){for(var n=-1,i=e.length,s=0,a=[];++n<i;){var r=e[n],o=t?t(r):r;if(!n||!Dr(o,c)){var c=o;a[s++]=0===r?0:r}}return a}function cs(e){return"number"==typeof e?e:oo(e)?f:+e}function ls(e){if("string"==typeof e)return e;if(qr(e))return Nt(e,ls)+"";if(oo(e))return Dn?Dn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ds(e,t,n){var i=-1,s=Ot,a=e.length,r=!0,o=[],c=o;if(n)r=!1,s=Ft;else if(a>=200){var l=t?null:Gs(e);if(l)return un(l);r=!1,s=en,c=new Kn}else c=t?[]:o;e:for(;++i<a;){var d=e[i],u=t?t(d):d;if(d=n||0!==d?d:0,r&&u==u){for(var p=c.length;p--;)if(c[p]===u)continue e;t&&c.push(u),o.push(d)}else s(c,u,n)||(c!==o&&c.push(u),o.push(d))}return o}function us(e,t){return null==(e=Ta(e,t=_s(t,e)))||delete e[ja(Ga(t))]}function ps(e,t,n,i){return Zi(e,t,n(xi(e,t)),i)}function hs(e,t,n,i){for(var s=e.length,a=i?s:-1;(i?a--:++a<s)&&t(e[a],a,e););return n?is(e,i?0:a,i?a+1:s):is(e,i?a+1:0,i?s:a)}function fs(e,t){var n=e;return n instanceof Vn&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Ut([e],t.args))}),n)}function ms(e,t,i){var s=e.length;if(s<2)return s?ds(e[0]):[];for(var a=-1,r=n(s);++a<s;)for(var o=e[a],c=-1;++c<s;)c!=a&&(r[a]=ui(r[a]||o,e[c],t,i));return ds(yi(r,1),t,i)}function gs(e,t,n){for(var s=-1,a=e.length,r=t.length,o={};++s<a;){var c=s<r?t[s]:i;n(o,e[s],c)}return o}function ys(e){return Wr(e)?e:[]}function vs(e){return"function"==typeof e?e:ic}function _s(e,t){return qr(e)?e:ba(e,t)?[e]:Ua(vo(e))}var bs=Ji;function ws(e,t,n){var s=e.length;return n=n===i?s:n,!t&&n>=s?e:is(e,t,n)}var Is=it||function(e){return ft.clearTimeout(e)};function xs(e,t){if(t)return e.slice();var n=e.length,i=He?He(n):new e.constructor(n);return e.copy(i),i}function Es(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ss(e,t){var n=t?Es(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function As(e,t){if(e!==t){var n=e!==i,s=null===e,a=e==e,r=oo(e),o=t!==i,c=null===t,l=t==t,d=oo(t);if(!c&&!d&&!r&&e>t||r&&o&&l&&!c&&!d||s&&o&&l||!n&&l||!a)return 1;if(!s&&!r&&!d&&e<t||d&&n&&a&&!s&&!r||c&&n&&a||!o&&a||!l)return-1}return 0}function Ts(e,t,i,s){for(var a=-1,r=e.length,o=i.length,c=-1,l=t.length,d=vn(r-o,0),u=n(l+d),p=!s;++c<l;)u[c]=t[c];for(;++a<o;)(p||a<r)&&(u[i[a]]=e[a]);for(;d--;)u[c++]=e[a++];return u}function ks(e,t,i,s){for(var a=-1,r=e.length,o=-1,c=i.length,l=-1,d=t.length,u=vn(r-c,0),p=n(u+d),h=!s;++a<u;)p[a]=e[a];for(var f=a;++l<d;)p[f+l]=t[l];for(;++o<c;)(h||a<r)&&(p[f+i[o]]=e[a++]);return p}function Rs(e,t){var i=-1,s=e.length;for(t||(t=n(s));++i<s;)t[i]=e[i];return t}function Ls(e,t,n,s){var a=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var c=t[r],l=s?s(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),a?ai(n,c,l):ti(n,c,l)}return n}function Cs(e,t){return function(n,i){var s=qr(n)?Tt:ii,a=t?t():{};return s(n,e,ca(i,2),a)}}function Os(e){return Ji((function(t,n){var s=-1,a=n.length,r=a>1?n[a-1]:i,o=a>2?n[2]:i;for(r=e.length>3&&"function"==typeof r?(a--,r):i,o&&_a(n[0],n[1],o)&&(r=a<3?i:r,a=1),t=Ae(t);++s<a;){var c=n[s];c&&e(t,c,s,r)}return t}))}function Fs(e,t){return function(n,i){if(null==n)return n;if(!Hr(n))return e(n,i);for(var s=n.length,a=t?s:-1,r=Ae(n);(t?a--:++a<s)&&!1!==i(r[a],a,r););return n}}function Ns(e){return function(t,n,i){for(var s=-1,a=Ae(t),r=i(t),o=r.length;o--;){var c=r[e?o:++s];if(!1===n(a[c],c,a))break}return t}}function Us(e){return function(t){var n=on(t=vo(t))?fn(t):i,s=n?n[0]:t.charAt(0),a=n?ws(n,1).join(""):t.slice(1);return s[e]()+a}}function js(e){return function(t){return jt(Xo(qo(t).replace(Ze,"")),e,"")}}function Ps(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),i=e.apply(n,t);return Zr(i)?i:n}}function Ms(e){return function(t,n,s){var a=Ae(t);if(!Hr(t)){var r=ca(n,3);t=Co(t),n=function(e){return r(a[e],e,a)}}var o=e(t,n,s);return o>-1?a[r?t[o]:o]:i}}function Ds(e){return na((function(t){var n=t.length,a=n,r=qn.prototype.thru;for(e&&t.reverse();a--;){var o=t[a];if("function"!=typeof o)throw new Re(s);if(r&&!c&&"wrapper"==ra(o))var c=new qn([],!0)}for(a=c?a:n;++a<n;){var l=ra(o=t[a]),d="wrapper"==l?aa(o):i;c=d&&wa(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?c[ra(d[0])].apply(c,d[3]):1==o.length&&wa(o)?c[l]():c.thru(o)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&qr(i))return c.plant(i).value();for(var s=0,a=n?t[s].apply(this,e):i;++s<n;)a=t[s].call(this,a);return a}}))}function $s(e,t,s,a,r,o,c,l,u,p){var h=t&d,f=1&t,m=2&t,g=24&t,y=512&t,v=m?i:Ps(e);return function d(){for(var _=arguments.length,b=n(_),w=_;w--;)b[w]=arguments[w];if(g)var I=oa(d),x=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,I);if(a&&(b=Ts(b,a,r,g)),o&&(b=ks(b,o,c,g)),_-=x,g&&_<p){var E=dn(b,I);return Ys(e,t,$s,d.placeholder,s,b,E,l,u,p-_)}var S=f?s:this,A=m?S[e]:e;return _=b.length,l?b=function(e,t){var n=e.length,s=_n(t.length,n),a=Rs(e);for(;s--;){var r=t[s];e[s]=va(r,n)?a[r]:i}return e}(b,l):y&&_>1&&b.reverse(),h&&u<_&&(b.length=u),this&&this!==ft&&this instanceof d&&(A=v||Ps(A)),A.apply(S,b)}}function zs(e,t){return function(n,i){return function(e,t,n,i){return bi(e,(function(e,s,a){t(i,n(e),s,a)})),i}(n,e,t(i),{})}}function Bs(e,t){return function(n,s){var a;if(n===i&&s===i)return t;if(n!==i&&(a=n),s!==i){if(a===i)return s;"string"==typeof n||"string"==typeof s?(n=ls(n),s=ls(s)):(n=cs(n),s=cs(s)),a=e(n,s)}return a}}function qs(e){return na((function(t){return t=Nt(t,Qt(ca())),Ji((function(n){var i=this;return e(t,(function(e){return At(e,i,n)}))}))}))}function Vs(e,t){var n=(t=t===i?" ":ls(t)).length;if(n<2)return n?Gi(t,e):t;var s=Gi(t,ht(e/hn(t)));return on(t)?ws(fn(s),0,e).join(""):s.slice(0,e)}function Hs(e){return function(t,s,a){return a&&"number"!=typeof a&&_a(t,s,a)&&(s=a=i),t=ho(t),s===i?(s=t,t=0):s=ho(s),function(e,t,i,s){for(var a=-1,r=vn(ht((t-e)/(i||1)),0),o=n(r);r--;)o[s?r:++a]=e,e+=i;return o}(t,s,a=a===i?t<s?1:-1:ho(a),e)}}function Ws(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=go(t),n=go(n)),e(t,n)}}function Ys(e,t,n,s,a,r,o,d,u,p){var h=8&t;t|=h?c:l,4&(t&=~(h?l:c))||(t&=-4);var f=[e,t,a,h?r:i,h?o:i,h?i:r,h?i:o,d,u,p],m=n.apply(i,f);return wa(e)&&Ra(m,f),m.placeholder=s,Oa(m,e,t)}function Ks(e){var t=Se[e];return function(e,n){if(e=go(e),(n=null==n?0:_n(fo(n),292))&&_t(e)){var i=(vo(e)+"e").split("e");return+((i=(vo(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Gs=Tn&&1/un(new Tn([,-0]))[1]==p?function(e){return new Tn(e)}:cc;function Js(e){return function(t){var n=fa(t);return n==E?cn(t):n==R?pn(t):function(e,t){return Nt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xs(e,t,a,p,h,f,m,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Re(s);var v=p?p.length:0;if(v||(t&=-97,p=h=i),m=m===i?m:vn(fo(m),0),g=g===i?g:fo(g),v-=h?h.length:0,t&l){var _=p,b=h;p=h=i}var w=y?i:aa(e),I=[e,t,a,p,h,_,b,f,m,g];if(w&&function(e,t){var n=e[1],i=t[1],s=n|i,a=s<131,o=i==d&&8==n||i==d&&n==u&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&i&&(e[2]=t[2],s|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Ts(l,c,t[4]):c,e[4]=l?dn(e[3],r):t[4]}(c=t[5])&&(l=e[5],e[5]=l?ks(l,c,t[6]):c,e[6]=l?dn(e[5],r):t[6]);(c=t[7])&&(e[7]=c);i&d&&(e[8]=null==e[8]?t[8]:_n(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=s}(I,w),e=I[0],t=I[1],a=I[2],p=I[3],h=I[4],!(g=I[9]=I[9]===i?y?0:e.length:vn(I[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==o?function(e,t,s){var a=Ps(e);return function r(){for(var o=arguments.length,c=n(o),l=o,d=oa(r);l--;)c[l]=arguments[l];var u=o<3&&c[0]!==d&&c[o-1]!==d?[]:dn(c,d);return(o-=u.length)<s?Ys(e,t,$s,r.placeholder,i,c,u,i,i,s-o):At(this&&this!==ft&&this instanceof r?a:e,this,c)}}(e,t,g):t!=c&&33!=t||h.length?$s.apply(i,I):function(e,t,i,s){var a=1&t,r=Ps(e);return function t(){for(var o=-1,c=arguments.length,l=-1,d=s.length,u=n(d+c),p=this&&this!==ft&&this instanceof t?r:e;++l<d;)u[l]=s[l];for(;c--;)u[l++]=arguments[++o];return At(p,a?i:this,u)}}(e,t,a,p);else var x=function(e,t,n){var i=1&t,s=Ps(e);return function t(){return(this&&this!==ft&&this instanceof t?s:e).apply(i?n:this,arguments)}}(e,t,a);return Oa((w?es:Ra)(x,I),e,t)}function Qs(e,t,n,s){return e===i||Dr(e,Oe[n])&&!Ue.call(s,n)?t:e}function Zs(e,t,n,s,a,r){return Zr(e)&&Zr(t)&&(r.set(t,e),Bi(e,t,i,Zs,r),r.delete(t)),e}function ea(e){return io(e)?i:e}function ta(e,t,n,s,a,r){var o=1&n,c=e.length,l=t.length;if(c!=l&&!(o&&l>c))return!1;var d=r.get(e),u=r.get(t);if(d&&u)return d==t&&u==e;var p=-1,h=!0,f=2&n?new Kn:i;for(r.set(e,t),r.set(t,e);++p<c;){var m=e[p],g=t[p];if(s)var y=o?s(g,m,p,t,e,r):s(m,g,p,e,t,r);if(y!==i){if(y)continue;h=!1;break}if(f){if(!Mt(t,(function(e,t){if(!en(f,t)&&(m===e||a(m,e,n,s,r)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!a(m,g,n,s,r)){h=!1;break}}return r.delete(e),r.delete(t),h}function na(e){return Ca(Aa(e,i,Va),e+"")}function ia(e){return Ei(e,Co,pa)}function sa(e){return Ei(e,Oo,ha)}var aa=Ln?function(e){return Ln.get(e)}:cc;function ra(e){for(var t=e.name+"",n=Cn[t],i=Ue.call(Cn,t)?n.length:0;i--;){var s=n[i],a=s.func;if(null==a||a==e)return s.name}return t}function oa(e){return(Ue.call($n,"placeholder")?$n:e).placeholder}function ca(){var e=$n.iteratee||sc;return e=e===sc?Ui:e,arguments.length?e(arguments[0],arguments[1]):e}function la(e,t){var n,i,s=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof t?"string":"hash"]:s.map}function da(e){for(var t=Co(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,Ea(s)]}return t}function ua(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ni(n)?n:i}var pa=gt?function(e){return null==e?[]:(e=Ae(e),Ct(gt(e),(function(t){return Ke.call(e,t)})))}:mc,ha=gt?function(e){for(var t=[];e;)Ut(t,pa(e)),e=We(e);return t}:mc,fa=Si;function ma(e,t,n){for(var i=-1,s=(t=_s(t,e)).length,a=!1;++i<s;){var r=ja(t[i]);if(!(a=null!=e&&n(e,r)))break;e=e[r]}return a||++i!=s?a:!!(s=null==e?0:e.length)&&Qr(s)&&va(r,s)&&(qr(e)||Br(e))}function ga(e){return"function"!=typeof e.constructor||xa(e)?{}:zn(We(e))}function ya(e){return qr(e)||Br(e)||!!(Je&&e&&e[Je])}function va(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&_e.test(e))&&e>-1&&e%1==0&&e<t}function _a(e,t,n){if(!Zr(n))return!1;var i=typeof t;return!!("number"==i?Hr(n)&&va(t,n.length):"string"==i&&t in n)&&Dr(n[t],e)}function ba(e,t){if(qr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!oo(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ae(t))}function wa(e){var t=ra(e),n=$n[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var i=aa(n);return!!i&&e===i[0]}(En&&fa(new En(new ArrayBuffer(1)))!=N||Sn&&fa(new Sn)!=E||An&&fa(An.resolve())!=T||Tn&&fa(new Tn)!=R||kn&&fa(new kn)!=O)&&(fa=function(e){var t=Si(e),n=t==A?e.constructor:i,s=n?Pa(n):"";if(s)switch(s){case On:return N;case Fn:return E;case Nn:return T;case Un:return R;case jn:return O}return t});var Ia=Fe?Jr:gc;function xa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Ea(e){return e==e&&!Zr(e)}function Sa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ae(n)))}}function Aa(e,t,s){return t=vn(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=vn(i.length-t,0),o=n(r);++a<r;)o[a]=i[t+a];a=-1;for(var c=n(t+1);++a<t;)c[a]=i[a];return c[t]=s(o),At(e,this,c)}}function Ta(e,t){return t.length<2?e:xi(e,is(t,0,-1))}function ka(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ra=Fa(es),La=pt||function(e,t){return ft.setTimeout(e,t)},Ca=Fa(ts);function Oa(e,t,n){var i=t+"";return Ca(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return kt(g,(function(n){var i="_."+n[0];t&n[1]&&!Ot(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function Fa(e){var t=0,n=0;return function(){var s=bn(),a=16-(s-n);if(n=s,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Na(e,t){var n=-1,s=e.length,a=s-1;for(t=t===i?s:t;++n<t;){var r=Ki(n,a),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var Ua=function(e){var t=Fr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,i,s){t.push(i?s.replace(pe,"$1"):n||e)})),t}));function ja(e){if("string"==typeof e||oo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pa(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ma(e){if(e instanceof Vn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=Rs(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Da=Ji((function(e,t){return Wr(e)?ui(e,yi(t,1,Wr,!0)):[]})),$a=Ji((function(e,t){var n=Ga(t);return Wr(n)&&(n=i),Wr(e)?ui(e,yi(t,1,Wr,!0),ca(n,2)):[]})),za=Ji((function(e,t){var n=Ga(t);return Wr(n)&&(n=i),Wr(e)?ui(e,yi(t,1,Wr,!0),i,n):[]}));function Ba(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:fo(n);return s<0&&(s=vn(i+s,0)),zt(e,ca(t,3),s)}function qa(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var a=s-1;return n!==i&&(a=fo(n),a=n<0?vn(s+a,0):_n(a,s-1)),zt(e,ca(t,3),a,!0)}function Va(e){return(null==e?0:e.length)?yi(e,1):[]}function Ha(e){return e&&e.length?e[0]:i}var Wa=Ji((function(e){var t=Nt(e,ys);return t.length&&t[0]===e[0]?Ri(t):[]})),Ya=Ji((function(e){var t=Ga(e),n=Nt(e,ys);return t===Ga(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ri(n,ca(t,2)):[]})),Ka=Ji((function(e){var t=Ga(e),n=Nt(e,ys);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ri(n,i,t):[]}));function Ga(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Ja=Ji(Xa);function Xa(e,t){return e&&e.length&&t&&t.length?Wi(e,t):e}var Qa=na((function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Yi(e,Nt(t,(function(e){return va(e,n)?+e:e})).sort(As)),i}));function Za(e){return null==e?e:xn.call(e)}var er=Ji((function(e){return ds(yi(e,1,Wr,!0))})),tr=Ji((function(e){var t=Ga(e);return Wr(t)&&(t=i),ds(yi(e,1,Wr,!0),ca(t,2))})),nr=Ji((function(e){var t=Ga(e);return t="function"==typeof t?t:i,ds(yi(e,1,Wr,!0),i,t)}));function ir(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Wr(e))return t=vn(e.length,t),!0})),Jt(t,(function(t){return Nt(e,Wt(t))}))}function sr(e,t){if(!e||!e.length)return[];var n=ir(e);return null==t?n:Nt(n,(function(e){return At(t,i,e)}))}var ar=Ji((function(e,t){return Wr(e)?ui(e,t):[]})),rr=Ji((function(e){return ms(Ct(e,Wr))})),or=Ji((function(e){var t=Ga(e);return Wr(t)&&(t=i),ms(Ct(e,Wr),ca(t,2))})),cr=Ji((function(e){var t=Ga(e);return t="function"==typeof t?t:i,ms(Ct(e,Wr),i,t)})),lr=Ji(ir);var dr=Ji((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sr(e,n)}));function ur(e){var t=$n(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var hr=na((function(e){var t=e.length,n=t?e[0]:0,s=this.__wrapped__,a=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&s instanceof Vn&&va(n)?((s=s.slice(n,+n+(t?1:0))).__actions__.push({func:pr,args:[a],thisArg:i}),new qn(s,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)}));var fr=Cs((function(e,t,n){Ue.call(e,n)?++e[n]:ai(e,n,1)}));var mr=Ms(Ba),gr=Ms(qa);function yr(e,t){return(qr(e)?kt:pi)(e,ca(t,3))}function vr(e,t){return(qr(e)?Rt:hi)(e,ca(t,3))}var _r=Cs((function(e,t,n){Ue.call(e,n)?e[n].push(t):ai(e,n,[t])}));var br=Ji((function(e,t,i){var s=-1,a="function"==typeof t,r=Hr(e)?n(e.length):[];return pi(e,(function(e){r[++s]=a?At(t,e,i):Li(e,t,i)})),r})),wr=Cs((function(e,t,n){ai(e,n,t)}));function Ir(e,t){return(qr(e)?Nt:Di)(e,ca(t,3))}var xr=Cs((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Er=Ji((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_a(e,t[0],t[1])?t=[]:n>2&&_a(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,yi(t,1),[])})),Sr=lt||function(){return ft.Date.now()};function Ar(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xs(e,d,i,i,i,i,t)}function Tr(e,t){var n;if("function"!=typeof t)throw new Re(s);return e=fo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var kr=Ji((function(e,t,n){var i=1;if(n.length){var s=dn(n,oa(kr));i|=c}return Xs(e,i,t,n,s)})),Rr=Ji((function(e,t,n){var i=3;if(n.length){var s=dn(n,oa(Rr));i|=c}return Xs(t,i,e,n,s)}));function Lr(e,t,n){var a,r,o,c,l,d,u=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new Re(s);function m(t){var n=a,s=r;return a=r=i,u=t,c=e.apply(s,n)}function g(e){var n=e-d;return d===i||n>=t||n<0||h&&e-u>=o}function y(){var e=Sr();if(g(e))return v(e);l=La(y,function(e){var n=t-(e-d);return h?_n(n,o-(e-u)):n}(e))}function v(e){return l=i,f&&a?m(e):(a=r=i,c)}function _(){var e=Sr(),n=g(e);if(a=arguments,r=this,d=e,n){if(l===i)return function(e){return u=e,l=La(y,t),p?m(e):c}(d);if(h)return Is(l),l=La(y,t),m(d)}return l===i&&(l=La(y,t)),c}return t=go(t)||0,Zr(n)&&(p=!!n.leading,o=(h="maxWait"in n)?vn(go(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),_.cancel=function(){l!==i&&Is(l),u=0,a=d=r=l=i},_.flush=function(){return l===i?c:v(Sr())},_}var Cr=Ji((function(e,t){return di(e,1,t)})),Or=Ji((function(e,t,n){return di(e,go(t)||0,n)}));function Fr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(s);var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var r=e.apply(this,i);return n.cache=a.set(s,r)||a,r};return n.cache=new(Fr.Cache||Yn),n}function Nr(e){if("function"!=typeof e)throw new Re(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fr.Cache=Yn;var Ur=bs((function(e,t){var n=(t=1==t.length&&qr(t[0])?Nt(t[0],Qt(ca())):Nt(yi(t,1),Qt(ca()))).length;return Ji((function(i){for(var s=-1,a=_n(i.length,n);++s<a;)i[s]=t[s].call(this,i[s]);return At(e,this,i)}))})),jr=Ji((function(e,t){var n=dn(t,oa(jr));return Xs(e,c,i,t,n)})),Pr=Ji((function(e,t){var n=dn(t,oa(Pr));return Xs(e,l,i,t,n)})),Mr=na((function(e,t){return Xs(e,u,i,i,i,t)}));function Dr(e,t){return e===t||e!=e&&t!=t}var $r=Ws(Ai),zr=Ws((function(e,t){return e>=t})),Br=Ci(function(){return arguments}())?Ci:function(e){return eo(e)&&Ue.call(e,"callee")&&!Ke.call(e,"callee")},qr=n.isArray,Vr=bt?Qt(bt):function(e){return eo(e)&&Si(e)==F};function Hr(e){return null!=e&&Qr(e.length)&&!Jr(e)}function Wr(e){return eo(e)&&Hr(e)}var Yr=vt||gc,Kr=wt?Qt(wt):function(e){return eo(e)&&Si(e)==b};function Gr(e){if(!eo(e))return!1;var t=Si(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!io(e)}function Jr(e){if(!Zr(e))return!1;var t=Si(e);return t==I||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xr(e){return"number"==typeof e&&e==fo(e)}function Qr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Zr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eo(e){return null!=e&&"object"==typeof e}var to=It?Qt(It):function(e){return eo(e)&&fa(e)==E};function no(e){return"number"==typeof e||eo(e)&&Si(e)==S}function io(e){if(!eo(e)||Si(e)!=A)return!1;var t=We(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==De}var so=xt?Qt(xt):function(e){return eo(e)&&Si(e)==k};var ao=Et?Qt(Et):function(e){return eo(e)&&fa(e)==R};function ro(e){return"string"==typeof e||!qr(e)&&eo(e)&&Si(e)==L}function oo(e){return"symbol"==typeof e||eo(e)&&Si(e)==C}var co=St?Qt(St):function(e){return eo(e)&&Qr(e.length)&&!!ot[Si(e)]};var lo=Ws(Mi),uo=Ws((function(e,t){return e<=t}));function po(e){if(!e)return[];if(Hr(e))return ro(e)?fn(e):Rs(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=fa(e);return(t==E?cn:t==R?un:$o)(e)}function ho(e){return e?(e=go(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fo(e){var t=ho(e),n=t%1;return t==t?n?t-n:t:0}function mo(e){return e?oi(fo(e),0,m):0}function go(e){if("number"==typeof e)return e;if(oo(e))return f;if(Zr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ge.test(e);return n||ve.test(e)?ut(e.slice(2),n?2:8):me.test(e)?f:+e}function yo(e){return Ls(e,Oo(e))}function vo(e){return null==e?"":ls(e)}var _o=Os((function(e,t){if(xa(t)||Hr(t))Ls(t,Co(t),e);else for(var n in t)Ue.call(t,n)&&ti(e,n,t[n])})),bo=Os((function(e,t){Ls(t,Oo(t),e)})),wo=Os((function(e,t,n,i){Ls(t,Oo(t),e,i)})),Io=Os((function(e,t,n,i){Ls(t,Co(t),e,i)})),xo=na(ri);var Eo=Ji((function(e,t){e=Ae(e);var n=-1,s=t.length,a=s>2?t[2]:i;for(a&&_a(t[0],t[1],a)&&(s=1);++n<s;)for(var r=t[n],o=Oo(r),c=-1,l=o.length;++c<l;){var d=o[c],u=e[d];(u===i||Dr(u,Oe[d])&&!Ue.call(e,d))&&(e[d]=r[d])}return e})),So=Ji((function(e){return e.push(i,Zs),At(No,i,e)}));function Ao(e,t,n){var s=null==e?i:xi(e,t);return s===i?n:s}function To(e,t){return null!=e&&ma(e,t,ki)}var ko=zs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),ec(ic)),Ro=zs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]}),ca),Lo=Ji(Li);function Co(e){return Hr(e)?Jn(e):ji(e)}function Oo(e){return Hr(e)?Jn(e,!0):Pi(e)}var Fo=Os((function(e,t,n){Bi(e,t,n)})),No=Os((function(e,t,n,i){Bi(e,t,n,i)})),Uo=na((function(e,t){var n={};if(null==e)return n;var i=!1;t=Nt(t,(function(t){return t=_s(t,e),i||(i=t.length>1),t})),Ls(e,sa(e),n),i&&(n=ci(n,7,ea));for(var s=t.length;s--;)us(n,t[s]);return n}));var jo=na((function(e,t){return null==e?{}:function(e,t){return Hi(e,t,(function(t,n){return To(e,n)}))}(e,t)}));function Po(e,t){if(null==e)return{};var n=Nt(sa(e),(function(e){return[e]}));return t=ca(t),Hi(e,n,(function(e,n){return t(e,n[0])}))}var Mo=Js(Co),Do=Js(Oo);function $o(e){return null==e?[]:Zt(e,Co(e))}var zo=js((function(e,t,n){return t=t.toLowerCase(),e+(n?Bo(t):t)}));function Bo(e){return Jo(vo(e).toLowerCase())}function qo(e){return(e=vo(e))&&e.replace(be,sn).replace(et,"")}var Vo=js((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ho=js((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Wo=Us("toLowerCase");var Yo=js((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ko=js((function(e,t,n){return e+(n?" ":"")+Jo(t)}));var Go=js((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Jo=Us("toUpperCase");function Xo(e,t,n){return e=vo(e),(t=n?i:t)===i?function(e){return st.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qo=Ji((function(e,t){try{return At(e,i,t)}catch(e){return Gr(e)?e:new xe(e)}})),Zo=na((function(e,t){return kt(t,(function(t){t=ja(t),ai(e,t,kr(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Ds(),nc=Ds(!0);function ic(e){return e}function sc(e){return Ui("function"==typeof e?e:ci(e,1))}var ac=Ji((function(e,t){return function(n){return Li(n,e,t)}})),rc=Ji((function(e,t){return function(n){return Li(e,n,t)}}));function oc(e,t,n){var i=Co(t),s=Ii(t,i);null!=n||Zr(t)&&(s.length||!i.length)||(n=t,t=e,e=this,s=Ii(t,Co(t)));var a=!(Zr(n)&&"chain"in n&&!n.chain),r=Jr(e);return kt(s,(function(n){var i=t[n];e[n]=i,r&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Rs(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ut([this.value()],arguments))})})),e}function cc(){}var lc=qs(Nt),dc=qs(Lt),uc=qs(Mt);function pc(e){return ba(e)?Wt(ja(e)):function(e){return function(t){return xi(t,e)}}(e)}var hc=Hs(),fc=Hs(!0);function mc(){return[]}function gc(){return!1}var yc=Bs((function(e,t){return e+t}),0),vc=Ks("ceil"),_c=Bs((function(e,t){return e/t}),1),bc=Ks("floor");var wc,Ic=Bs((function(e,t){return e*t}),1),xc=Ks("round"),Ec=Bs((function(e,t){return e-t}),0);return $n.after=function(e,t){if("function"!=typeof t)throw new Re(s);return e=fo(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Ar,$n.assign=_o,$n.assignIn=bo,$n.assignInWith=wo,$n.assignWith=Io,$n.at=xo,$n.before=Tr,$n.bind=kr,$n.bindAll=Zo,$n.bindKey=Rr,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qr(e)?e:[e]},$n.chain=ur,$n.chunk=function(e,t,s){t=(s?_a(e,t,s):t===i)?1:vn(fo(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var r=0,o=0,c=n(ht(a/t));r<a;)c[o++]=is(e,r,r+=t);return c},$n.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,s=[];++t<n;){var a=e[t];a&&(s[i++]=a)}return s},$n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Ut(qr(i)?Rs(i):[i],yi(t,1))},$n.cond=function(e){var t=null==e?0:e.length,n=ca();return e=t?Nt(e,(function(e){if("function"!=typeof e[1])throw new Re(s);return[n(e[0]),e[1]]})):[],Ji((function(n){for(var i=-1;++i<t;){var s=e[i];if(At(s[0],this,n))return At(s[1],this,n)}}))},$n.conforms=function(e){return function(e){var t=Co(e);return function(n){return li(n,e,t)}}(ci(e,1))},$n.constant=ec,$n.countBy=fr,$n.create=function(e,t){var n=zn(e);return null==t?n:si(n,t)},$n.curry=function e(t,n,s){var a=Xs(t,8,i,i,i,i,i,n=s?i:n);return a.placeholder=e.placeholder,a},$n.curryRight=function e(t,n,s){var a=Xs(t,o,i,i,i,i,i,n=s?i:n);return a.placeholder=e.placeholder,a},$n.debounce=Lr,$n.defaults=Eo,$n.defaultsDeep=So,$n.defer=Cr,$n.delay=Or,$n.difference=Da,$n.differenceBy=$a,$n.differenceWith=za,$n.drop=function(e,t,n){var s=null==e?0:e.length;return s?is(e,(t=n||t===i?1:fo(t))<0?0:t,s):[]},$n.dropRight=function(e,t,n){var s=null==e?0:e.length;return s?is(e,0,(t=s-(t=n||t===i?1:fo(t)))<0?0:t):[]},$n.dropRightWhile=function(e,t){return e&&e.length?hs(e,ca(t,3),!0,!0):[]},$n.dropWhile=function(e,t){return e&&e.length?hs(e,ca(t,3),!0):[]},$n.fill=function(e,t,n,s){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&_a(e,t,n)&&(n=0,s=a),function(e,t,n,s){var a=e.length;for((n=fo(n))<0&&(n=-n>a?0:a+n),(s=s===i||s>a?a:fo(s))<0&&(s+=a),s=n>s?0:mo(s);n<s;)e[n++]=t;return e}(e,t,n,s)):[]},$n.filter=function(e,t){return(qr(e)?Ct:gi)(e,ca(t,3))},$n.flatMap=function(e,t){return yi(Ir(e,t),1)},$n.flatMapDeep=function(e,t){return yi(Ir(e,t),p)},$n.flatMapDepth=function(e,t,n){return n=n===i?1:fo(n),yi(Ir(e,t),n)},$n.flatten=Va,$n.flattenDeep=function(e){return(null==e?0:e.length)?yi(e,p):[]},$n.flattenDepth=function(e,t){return(null==e?0:e.length)?yi(e,t=t===i?1:fo(t)):[]},$n.flip=function(e){return Xs(e,512)},$n.flow=tc,$n.flowRight=nc,$n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var s=e[t];i[s[0]]=s[1]}return i},$n.functions=function(e){return null==e?[]:Ii(e,Co(e))},$n.functionsIn=function(e){return null==e?[]:Ii(e,Oo(e))},$n.groupBy=_r,$n.initial=function(e){return(null==e?0:e.length)?is(e,0,-1):[]},$n.intersection=Wa,$n.intersectionBy=Ya,$n.intersectionWith=Ka,$n.invert=ko,$n.invertBy=Ro,$n.invokeMap=br,$n.iteratee=sc,$n.keyBy=wr,$n.keys=Co,$n.keysIn=Oo,$n.map=Ir,$n.mapKeys=function(e,t){var n={};return t=ca(t,3),bi(e,(function(e,i,s){ai(n,t(e,i,s),e)})),n},$n.mapValues=function(e,t){var n={};return t=ca(t,3),bi(e,(function(e,i,s){ai(n,i,t(e,i,s))})),n},$n.matches=function(e){return $i(ci(e,1))},$n.matchesProperty=function(e,t){return zi(e,ci(t,1))},$n.memoize=Fr,$n.merge=Fo,$n.mergeWith=No,$n.method=ac,$n.methodOf=rc,$n.mixin=oc,$n.negate=Nr,$n.nthArg=function(e){return e=fo(e),Ji((function(t){return qi(t,e)}))},$n.omit=Uo,$n.omitBy=function(e,t){return Po(e,Nr(ca(t)))},$n.once=function(e){return Tr(2,e)},$n.orderBy=function(e,t,n,s){return null==e?[]:(qr(t)||(t=null==t?[]:[t]),qr(n=s?i:n)||(n=null==n?[]:[n]),Vi(e,t,n))},$n.over=lc,$n.overArgs=Ur,$n.overEvery=dc,$n.overSome=uc,$n.partial=jr,$n.partialRight=Pr,$n.partition=xr,$n.pick=jo,$n.pickBy=Po,$n.property=pc,$n.propertyOf=function(e){return function(t){return null==e?i:xi(e,t)}},$n.pull=Ja,$n.pullAll=Xa,$n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wi(e,t,ca(n,2)):e},$n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wi(e,t,i,n):e},$n.pullAt=Qa,$n.range=hc,$n.rangeRight=fc,$n.rearg=Mr,$n.reject=function(e,t){return(qr(e)?Ct:gi)(e,Nr(ca(t,3)))},$n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,s=[],a=e.length;for(t=ca(t,3);++i<a;){var r=e[i];t(r,i,e)&&(n.push(r),s.push(i))}return Yi(e,s),n},$n.rest=function(e,t){if("function"!=typeof e)throw new Re(s);return Ji(e,t=t===i?t:fo(t))},$n.reverse=Za,$n.sampleSize=function(e,t,n){return t=(n?_a(e,t,n):t===i)?1:fo(t),(qr(e)?Qn:Qi)(e,t)},$n.set=function(e,t,n){return null==e?e:Zi(e,t,n)},$n.setWith=function(e,t,n,s){return s="function"==typeof s?s:i,null==e?e:Zi(e,t,n,s)},$n.shuffle=function(e){return(qr(e)?Zn:ns)(e)},$n.slice=function(e,t,n){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&_a(e,t,n)?(t=0,n=s):(t=null==t?0:fo(t),n=n===i?s:fo(n)),is(e,t,n)):[]},$n.sortBy=Er,$n.sortedUniq=function(e){return e&&e.length?os(e):[]},$n.sortedUniqBy=function(e,t){return e&&e.length?os(e,ca(t,2)):[]},$n.split=function(e,t,n){return n&&"number"!=typeof n&&_a(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=vo(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=ls(t))&&on(e)?ws(fn(e),0,n):e.split(t,n):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new Re(s);return t=null==t?0:vn(fo(t),0),Ji((function(n){var i=n[t],s=ws(n,0,t);return i&&Ut(s,i),At(e,this,s)}))},$n.tail=function(e){var t=null==e?0:e.length;return t?is(e,1,t):[]},$n.take=function(e,t,n){return e&&e.length?is(e,0,(t=n||t===i?1:fo(t))<0?0:t):[]},$n.takeRight=function(e,t,n){var s=null==e?0:e.length;return s?is(e,(t=s-(t=n||t===i?1:fo(t)))<0?0:t,s):[]},$n.takeRightWhile=function(e,t){return e&&e.length?hs(e,ca(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?hs(e,ca(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new Re(s);return Zr(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Lr(e,t,{leading:i,maxWait:t,trailing:a})},$n.thru=pr,$n.toArray=po,$n.toPairs=Mo,$n.toPairsIn=Do,$n.toPath=function(e){return qr(e)?Nt(e,ja):oo(e)?[e]:Rs(Ua(vo(e)))},$n.toPlainObject=yo,$n.transform=function(e,t,n){var i=qr(e),s=i||Yr(e)||co(e);if(t=ca(t,4),null==n){var a=e&&e.constructor;n=s?i?new a:[]:Zr(e)&&Jr(a)?zn(We(e)):{}}return(s?kt:bi)(e,(function(e,i,s){return t(n,e,i,s)})),n},$n.unary=function(e){return Ar(e,1)},$n.union=er,$n.unionBy=tr,$n.unionWith=nr,$n.uniq=function(e){return e&&e.length?ds(e):[]},$n.uniqBy=function(e,t){return e&&e.length?ds(e,ca(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ds(e,i,t):[]},$n.unset=function(e,t){return null==e||us(e,t)},$n.unzip=ir,$n.unzipWith=sr,$n.update=function(e,t,n){return null==e?e:ps(e,t,vs(n))},$n.updateWith=function(e,t,n,s){return s="function"==typeof s?s:i,null==e?e:ps(e,t,vs(n),s)},$n.values=$o,$n.valuesIn=function(e){return null==e?[]:Zt(e,Oo(e))},$n.without=ar,$n.words=Xo,$n.wrap=function(e,t){return jr(vs(t),e)},$n.xor=rr,$n.xorBy=or,$n.xorWith=cr,$n.zip=lr,$n.zipObject=function(e,t){return gs(e||[],t||[],ti)},$n.zipObjectDeep=function(e,t){return gs(e||[],t||[],Zi)},$n.zipWith=dr,$n.entries=Mo,$n.entriesIn=Do,$n.extend=bo,$n.extendWith=wo,oc($n,$n),$n.add=yc,$n.attempt=Qo,$n.camelCase=zo,$n.capitalize=Bo,$n.ceil=vc,$n.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=go(n))==n?n:0),t!==i&&(t=(t=go(t))==t?t:0),oi(go(e),t,n)},$n.clone=function(e){return ci(e,4)},$n.cloneDeep=function(e){return ci(e,5)},$n.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:i)},$n.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:i)},$n.conformsTo=function(e,t){return null==t||li(e,t,Co(t))},$n.deburr=qo,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=_c,$n.endsWith=function(e,t,n){e=vo(e),t=ls(t);var s=e.length,a=n=n===i?s:oi(fo(n),0,s);return(n-=t.length)>=0&&e.slice(n,a)==t},$n.eq=Dr,$n.escape=function(e){return(e=vo(e))&&J.test(e)?e.replace(K,an):e},$n.escapeRegExp=function(e){return(e=vo(e))&&se.test(e)?e.replace(ie,"\\$&"):e},$n.every=function(e,t,n){var s=qr(e)?Lt:fi;return n&&_a(e,t,n)&&(t=i),s(e,ca(t,3))},$n.find=mr,$n.findIndex=Ba,$n.findKey=function(e,t){return $t(e,ca(t,3),bi)},$n.findLast=gr,$n.findLastIndex=qa,$n.findLastKey=function(e,t){return $t(e,ca(t,3),wi)},$n.floor=bc,$n.forEach=yr,$n.forEachRight=vr,$n.forIn=function(e,t){return null==e?e:vi(e,ca(t,3),Oo)},$n.forInRight=function(e,t){return null==e?e:_i(e,ca(t,3),Oo)},$n.forOwn=function(e,t){return e&&bi(e,ca(t,3))},$n.forOwnRight=function(e,t){return e&&wi(e,ca(t,3))},$n.get=Ao,$n.gt=$r,$n.gte=zr,$n.has=function(e,t){return null!=e&&ma(e,t,Ti)},$n.hasIn=To,$n.head=Ha,$n.identity=ic,$n.includes=function(e,t,n,i){e=Hr(e)?e:$o(e),n=n&&!i?fo(n):0;var s=e.length;return n<0&&(n=vn(s+n,0)),ro(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&Bt(e,t,n)>-1},$n.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:fo(n);return s<0&&(s=vn(i+s,0)),Bt(e,t,s)},$n.inRange=function(e,t,n){return t=ho(t),n===i?(n=t,t=0):n=ho(n),function(e,t,n){return e>=_n(t,n)&&e<vn(t,n)}(e=go(e),t,n)},$n.invoke=Lo,$n.isArguments=Br,$n.isArray=qr,$n.isArrayBuffer=Vr,$n.isArrayLike=Hr,$n.isArrayLikeObject=Wr,$n.isBoolean=function(e){return!0===e||!1===e||eo(e)&&Si(e)==_},$n.isBuffer=Yr,$n.isDate=Kr,$n.isElement=function(e){return eo(e)&&1===e.nodeType&&!io(e)},$n.isEmpty=function(e){if(null==e)return!0;if(Hr(e)&&(qr(e)||"string"==typeof e||"function"==typeof e.splice||Yr(e)||co(e)||Br(e)))return!e.length;var t=fa(e);if(t==E||t==R)return!e.size;if(xa(e))return!ji(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},$n.isEqual=function(e,t){return Oi(e,t)},$n.isEqualWith=function(e,t,n){var s=(n="function"==typeof n?n:i)?n(e,t):i;return s===i?Oi(e,t,i,n):!!s},$n.isError=Gr,$n.isFinite=function(e){return"number"==typeof e&&_t(e)},$n.isFunction=Jr,$n.isInteger=Xr,$n.isLength=Qr,$n.isMap=to,$n.isMatch=function(e,t){return e===t||Fi(e,t,da(t))},$n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Fi(e,t,da(t),n)},$n.isNaN=function(e){return no(e)&&e!=+e},$n.isNative=function(e){if(Ia(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ni(e)},$n.isNil=function(e){return null==e},$n.isNull=function(e){return null===e},$n.isNumber=no,$n.isObject=Zr,$n.isObjectLike=eo,$n.isPlainObject=io,$n.isRegExp=so,$n.isSafeInteger=function(e){return Xr(e)&&e>=-9007199254740991&&e<=h},$n.isSet=ao,$n.isString=ro,$n.isSymbol=oo,$n.isTypedArray=co,$n.isUndefined=function(e){return e===i},$n.isWeakMap=function(e){return eo(e)&&fa(e)==O},$n.isWeakSet=function(e){return eo(e)&&"[object WeakSet]"==Si(e)},$n.join=function(e,t){return null==e?"":Dt.call(e,t)},$n.kebabCase=Vo,$n.last=Ga,$n.lastIndexOf=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var a=s;return n!==i&&(a=(a=fo(n))<0?vn(s+a,0):_n(a,s-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):zt(e,Vt,a,!0)},$n.lowerCase=Ho,$n.lowerFirst=Wo,$n.lt=lo,$n.lte=uo,$n.max=function(e){return e&&e.length?mi(e,ic,Ai):i},$n.maxBy=function(e,t){return e&&e.length?mi(e,ca(t,2),Ai):i},$n.mean=function(e){return Ht(e,ic)},$n.meanBy=function(e,t){return Ht(e,ca(t,2))},$n.min=function(e){return e&&e.length?mi(e,ic,Mi):i},$n.minBy=function(e,t){return e&&e.length?mi(e,ca(t,2),Mi):i},$n.stubArray=mc,$n.stubFalse=gc,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=Ic,$n.nth=function(e,t){return e&&e.length?qi(e,fo(t)):i},$n.noConflict=function(){return ft._===this&&(ft._=$e),this},$n.noop=cc,$n.now=Sr,$n.pad=function(e,t,n){e=vo(e);var i=(t=fo(t))?hn(e):0;if(!t||i>=t)return e;var s=(t-i)/2;return Vs(mt(s),n)+e+Vs(ht(s),n)},$n.padEnd=function(e,t,n){e=vo(e);var i=(t=fo(t))?hn(e):0;return t&&i<t?e+Vs(t-i,n):e},$n.padStart=function(e,t,n){e=vo(e);var i=(t=fo(t))?hn(e):0;return t&&i<t?Vs(t-i,n)+e:e},$n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(vo(e).replace(ae,""),t||0)},$n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&_a(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ho(e),t===i?(t=e,e=0):t=ho(t)),e>t){var s=e;e=t,t=s}if(n||e%1||t%1){var a=In();return _n(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Ki(e,t)},$n.reduce=function(e,t,n){var i=qr(e)?jt:Kt,s=arguments.length<3;return i(e,ca(t,4),n,s,pi)},$n.reduceRight=function(e,t,n){var i=qr(e)?Pt:Kt,s=arguments.length<3;return i(e,ca(t,4),n,s,hi)},$n.repeat=function(e,t,n){return t=(n?_a(e,t,n):t===i)?1:fo(t),Gi(vo(e),t)},$n.replace=function(){var e=arguments,t=vo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,n){var s=-1,a=(t=_s(t,e)).length;for(a||(a=1,e=i);++s<a;){var r=null==e?i:e[ja(t[s])];r===i&&(s=a,r=n),e=Jr(r)?r.call(e):r}return e},$n.round=xc,$n.runInContext=e,$n.sample=function(e){return(qr(e)?Xn:Xi)(e)},$n.size=function(e){if(null==e)return 0;if(Hr(e))return ro(e)?hn(e):e.length;var t=fa(e);return t==E||t==R?e.size:ji(e).length},$n.snakeCase=Yo,$n.some=function(e,t,n){var s=qr(e)?Mt:ss;return n&&_a(e,t,n)&&(t=i),s(e,ca(t,3))},$n.sortedIndex=function(e,t){return as(e,t)},$n.sortedIndexBy=function(e,t,n){return rs(e,t,ca(n,2))},$n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=as(e,t);if(i<n&&Dr(e[i],t))return i}return-1},$n.sortedLastIndex=function(e,t){return as(e,t,!0)},$n.sortedLastIndexBy=function(e,t,n){return rs(e,t,ca(n,2),!0)},$n.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=as(e,t,!0)-1;if(Dr(e[n],t))return n}return-1},$n.startCase=Ko,$n.startsWith=function(e,t,n){return e=vo(e),n=null==n?0:oi(fo(n),0,e.length),t=ls(t),e.slice(n,n+t.length)==t},$n.subtract=Ec,$n.sum=function(e){return e&&e.length?Gt(e,ic):0},$n.sumBy=function(e,t){return e&&e.length?Gt(e,ca(t,2)):0},$n.template=function(e,t,n){var s=$n.templateSettings;n&&_a(e,t,n)&&(t=i),e=vo(e),t=wo({},t,s,Qs);var a,r,o=wo({},t.imports,s.imports,Qs),c=Co(o),l=Zt(o,c),d=0,u=t.interpolate||we,p="__p += '",h=Te((t.escape||we).source+"|"+u.source+"|"+(u===Z?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,(function(t,n,i,s,o,c){return i||(i=s),p+=e.slice(d,c).replace(Ie,rn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),o&&(r=!0,p+="';\n"+o+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),d=c+t.length,t})),p+="';\n";var m=Ue.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(r?p.replace(V,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Qo((function(){return Ee(c,f+"return "+p).apply(i,l)}));if(g.source=p,Gr(g))throw g;return g},$n.times=function(e,t){if((e=fo(e))<1||e>h)return[];var n=m,i=_n(e,m);t=ca(t),e-=m;for(var s=Jt(i,t);++n<e;)t(n);return s},$n.toFinite=ho,$n.toInteger=fo,$n.toLength=mo,$n.toLower=function(e){return vo(e).toLowerCase()},$n.toNumber=go,$n.toSafeInteger=function(e){return e?oi(fo(e),-9007199254740991,h):0===e?e:0},$n.toString=vo,$n.toUpper=function(e){return vo(e).toUpperCase()},$n.trim=function(e,t,n){if((e=vo(e))&&(n||t===i))return Xt(e);if(!e||!(t=ls(t)))return e;var s=fn(e),a=fn(t);return ws(s,tn(s,a),nn(s,a)+1).join("")},$n.trimEnd=function(e,t,n){if((e=vo(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ls(t)))return e;var s=fn(e);return ws(s,0,nn(s,fn(t))+1).join("")},$n.trimStart=function(e,t,n){if((e=vo(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=ls(t)))return e;var s=fn(e);return ws(s,tn(s,fn(t))).join("")},$n.truncate=function(e,t){var n=30,s="...";if(Zr(t)){var a="separator"in t?t.separator:a;n="length"in t?fo(t.length):n,s="omission"in t?ls(t.omission):s}var r=(e=vo(e)).length;if(on(e)){var o=fn(e);r=o.length}if(n>=r)return e;var c=n-hn(s);if(c<1)return s;var l=o?ws(o,0,c).join(""):e.slice(0,c);if(a===i)return l+s;if(o&&(c+=l.length-c),so(a)){if(e.slice(c).search(a)){var d,u=l;for(a.global||(a=Te(a.source,vo(fe.exec(a))+"g")),a.lastIndex=0;d=a.exec(u);)var p=d.index;l=l.slice(0,p===i?c:p)}}else if(e.indexOf(ls(a),c)!=c){var h=l.lastIndexOf(a);h>-1&&(l=l.slice(0,h))}return l+s},$n.unescape=function(e){return(e=vo(e))&&G.test(e)?e.replace(Y,gn):e},$n.uniqueId=function(e){var t=++je;return vo(e)+t},$n.upperCase=Go,$n.upperFirst=Jo,$n.each=yr,$n.eachRight=vr,$n.first=Ha,oc($n,(wc={},bi($n,(function(e,t){Ue.call($n.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),$n.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){$n[e].placeholder=$n})),kt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:vn(fo(n),0);var s=this.__filtered__&&!t?new Vn(this):this.clone();return s.__filtered__?s.__takeCount__=_n(n,s.__takeCount__):s.__views__.push({size:_n(n,m),type:e+(s.__dir__<0?"Right":"")}),s},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ic)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Ji((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Li(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Nr(ca(e)))},Vn.prototype.slice=function(e,t){e=fo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fo(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},bi(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),a=$n[s?"take"+("last"==t?"Right":""):t],r=s||/^find/.test(t);a&&($n.prototype[t]=function(){var t=this.__wrapped__,o=s?[1]:arguments,c=t instanceof Vn,l=o[0],d=c||qr(t),u=function(e){var t=a.apply($n,Ut([e],o));return s&&p?t[0]:t};d&&n&&"function"==typeof l&&1!=l.length&&(c=d=!1);var p=this.__chain__,h=!!this.__actions__.length,f=r&&!p,m=c&&!h;if(!r&&d){t=m?t:new Vn(this);var g=e.apply(t,o);return g.__actions__.push({func:pr,args:[u],thisArg:i}),new qn(g,p)}return f&&m?e.apply(this,o):(g=this.thru(u),f?s?g.value()[0]:g.value():g)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var s=this.value();return t.apply(qr(s)?s:[],e)}return this[n]((function(n){return t.apply(qr(n)?n:[],e)}))}})),bi(Vn.prototype,(function(e,t){var n=$n[t];if(n){var i=n.name+"";Ue.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[$s(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Rs(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Rs(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Rs(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qr(e),i=t<0,s=n?e.length:0,a=function(e,t,n){var i=-1,s=n.length;for(;++i<s;){var a=n[i],r=a.size;switch(a.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=_n(t,e+r);break;case"takeRight":e=vn(e,t-r)}}return{start:e,end:t}}(0,s,this.__views__),r=a.start,o=a.end,c=o-r,l=i?o:r-1,d=this.__iteratees__,u=d.length,p=0,h=_n(c,this.__takeCount__);if(!n||!i&&s==c&&h==c)return fs(e,this.__actions__);var f=[];e:for(;c--&&p<h;){for(var m=-1,g=e[l+=t];++m<u;){var y=d[m],v=y.iteratee,_=y.type,b=v(g);if(2==_)g=b;else if(!b){if(1==_)continue e;break e}}f[p++]=g}return f},$n.prototype.at=hr,$n.prototype.chain=function(){return ur(this)},$n.prototype.commit=function(){return new qn(this.value(),this.__chain__)},$n.prototype.next=function(){this.__values__===i&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var s=Ma(n);s.__index__=0,s.__values__=i,t?a.__wrapped__=s:t=s;var a=s;n=n.__wrapped__}return a.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:pr,args:[Za],thisArg:i}),new qn(t,this.__chain__)}return this.thru(Za)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return fs(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Xe&&($n.prototype[Xe]=function(){return this}),$n}();gt?((gt.exports=yn)._=yn,mt._=yn):ft._=yn}).call(n)}(tl,tl.exports);var nl=tl.exports;const il={type:gc,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?_l.audio[nl.camelCase("introductionNs")]:_l.audio[nl.camelCase("introduction")],prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${cc.t("introduction.intro.text1")} </h3>\n <p> ${cc.t("introduction.intro.text2")} </p> \n <p> ${cc.t("introduction.intro.text3")} </p>\n </div>\n ${Jc?"":`<div class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})} </div>`}\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${cc.t("introduction.intro.text4")} </h3>\n <p> ${cc.t("introduction.intro.text5")} </p> \n <p> ${cc.t("introduction.intro.text6")} </p> \n <p> ${cc.t("introduction.intro.text3")} </p>\n </div>\n ${Jc?"":`<div class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>Jc?`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.continue")}`})} </button>`:"",on_start:()=>{document.body.style.cursor="none"}},sl={timeline:[{type:gc,stimulus:()=>_l.audio.postPracticeInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${cc.t("practice.postPracticeIntro.text1")}</h3>\n <p>${cc.t("practice.postPracticeIntro.text2")}</p>\n <p>${cc.t("practice.postPracticeIntro.text3")}</p>\n <p>${cc.t("practice.postPracticeIntro.text4")}</p>\n <p>${cc.t("practice.postPracticeIntro.text5")}</p>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>Jc?`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.continue")}`})} </button>`:""},{type:gc,stimulus:()=>_l.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${cc.t("reminderTexts.remember")}</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style="text-align:center;">${cc.t(Jc?"practice.postPracticeReminder.text1Mobile":"practice.postPracticeReminder.text1")}</p>\n <img width="70%" src="${_l.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style="text-align:center;">${cc.t(Jc?"practice.postPracticeReminder.text2Mobile":"practice.postPracticeReminder.text2")}</p>\n <img width="70%" src="${_l.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b>${cc.t("practice.postPracticeReminder.text3")}</b></p>\n <p><b>${cc.t("practice.postPracticeReminder.text4")}</b></p>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.begin")}`})} </div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>Jc?`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.begin")}`})} </button>`:"",on_finish:()=>{r.session.set("indexTracking",0)}}]},al={name:"fullscreen",parameters:{fullscreen_mode:{type:_r.BOOL,pretty_name:"Fullscreen mode",default:!0,array:!1},message:{type:_r.HTML_STRING,pretty_name:"Message",default:"<p>The experiment will switch to full screen mode when you press the button below</p>",array:!1},button_label:{type:_r.STRING,pretty_name:"Button label",default:"Continue",array:!1},delay_after:{type:_r.INT,pretty_name:"Delay after",default:1e3,array:!1}}};class rl{constructor(e){this.jsPsych=e}trial(e,t){"undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element?this.endTrial(e,!1,t):t.fullscreen_mode?this.showDisplay(e,t):(this.exitFullScreen(),this.endTrial(e,!0,t))}showDisplay(e,t){e.innerHTML=`\n ${t.message}\n <button id="jspsych-fullscreen-btn" class="jspsych-btn">${t.button_label}</button>\n `,e.querySelector("#jspsych-fullscreen-btn").addEventListener("click",(()=>{this.enterFullScreen(),this.endTrial(e,!0,t)}))}endTrial(e,t,n){e.innerHTML="",this.jsPsych.pluginAPI.setTimeout((()=>{var e={success:t};this.jsPsych.finishTrial(e)}),n.delay_after)}enterFullScreen(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}exitFullScreen(){(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0},t)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),s=this.jsPsych.getDisplayElement();!1===i.success?this.endTrial(s,!1,e):(this.trial(s,e),n(),this.jsPsych.pluginAPI.clickTarget(s.querySelector("#jspsych-fullscreen-btn"),this.jsPsych.randomization.sampleExGaussian(1e3,100,.005,!0)))}}rl.info=al;const ol={name:"html-multi-response",parameters:{stimulus:{type:_r.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:_r.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:_r.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:_r.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:_r.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:_r.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:_r.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:_r.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:_r.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:_r.BOOL,pretty_name:"Response ends trial",default:!0}}};class cl{constructor(e){this.jsPsych=e}trial(e,t){var n='<div id="jspsych-html-multi-response-stimulus">'+t.stimulus+"</div>",i=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?i=t.button_html:console.error("Error in html-multi-response plugin. The length of the button_html array does not equal the length of the button_choices array");else for(var s=0;s<t.button_choices.length;s++)i.push(t.button_html);n+='<div id="jspsych-html-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var a=i[s].replace(/%choice%/g,t.button_choices[s]);n+='<div class="jspsych-html-multi-response-button" style="display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-html-multi-response-button-'+s+'" data-choice="'+s+'">'+a+"</div>"}n+="</div>",null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;if("NO_KEYS"!=t.keyboard_choices)var r=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:function(n){e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded",null==c.key&&(c=Object.assign({source:"keyboard",button:null},n)),t.response_ends_trial&&l()},valid_responses:t.keyboard_choices,rt_method:"performance",persist:!1,allow_held_key:!1});var o=performance.now();for(s=0;s<t.button_choices.length;s++)e.querySelector("#jspsych-html-multi-response-button-"+s).addEventListener("click",(e=>{d(e.currentTarget.getAttribute("data-choice"))}));var c={rt:null,button:null,key:null,source:null};const l=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==r&&this.jsPsych.pluginAPI.cancelKeyboardResponse(r);var n={rt:c.rt,stimulus:t.stimulus,button_response:c.button,keyboard_response:c.key,response_source:c.source};e.innerHTML="",this.jsPsych.finishTrial(n)};function d(n){var i=performance.now(),s=Math.round(i-o);c.button=parseInt(n),c.rt=s,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var a=document.querySelectorAll(".jspsych-html-multi-response-button button"),r=0;r<a.length;r++)a[r].setAttribute("disabled","disabled");t.response_ends_trial&&l()}null!==t.stimulus_duration&&this.jsPsych.pluginAPI.setTimeout((()=>{e.querySelector("#jspsych-html-multi-response-stimulus").style.visibility="hidden"}),t.stimulus_duration),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(l,t.trial_duration)}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),keyboard_response:this.jsPsych.pluginAPI.getValidKey(e.keyboard_choices),button_response:null,response_source:"keyboard"},i={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),button_response:this.jsPsych.randomization.randomInt(0,e.button_choices.length-1),keyboard_response:null,response_source:"button"},s=Math.random()<.5?n:i,a=this.jsPsych.pluginAPI.mergeSimulationData(s,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,a),a}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),s=this.jsPsych.getDisplayElement();this.trial(s,e),n(),null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(s.querySelector(`div[data-choice="${i.button_response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))}}cl.info=ol;const ll={type:gc,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?_l.audio[nl.camelCase("halfwayNs")]:r.session.get("config").story?_l.audio[nl.camelCase(`${r.session("character")}Halfway`)]:"",prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${cc.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${cc.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n ${Jc?"":`<div class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})} </div>`}\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${_l.images[nl.camelCase(`${r.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle">\n <p> ${cc.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${cc.t("gameBreak.halfwayScreen.text4")}</p>\n </div>\n </div>\n </div>\n ${Jc?"":`<div class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.continue")}`})} </button>`,on_finish:()=>{r.session.set("indexTracking",0)}},dl={timeline:[{type:gc,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?_l.audio[nl.camelCase("endNs")]:r.session.get("config").story?_l.audio[nl.camelCase(`${r.session("character")}End`)]:"",prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${cc.t("gameBreak.endScreen.text1")} </h3>\n <p> ${cc.t("gameBreak.endScreen.text2")} </p> \n </div>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.save")}`})}</div>`}\n </div>`:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${_l.images.classroomBackground}" alt= "classroom" style="width:100%;"> \n </div>\n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3> ${cc.t("gameBreak.endScreen.text3")} </h3>\n <p> ${r.session("character_name")} ${cc.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${_l.images[nl.camelCase(`${r.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.save")}`})}</div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.save")}`})} </button>`,data:{save_trial:!1}},{timeline:[{type:cl,stimulus:()=>`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${_l.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${cc.t("gameBreak.debrief.text1")}</h3>\n <p>${cc.t("gameBreak.debrief.text2")}</p>\n </div>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.close")}`})}</div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.close")}`})} </button>`}],conditional_function:()=>"demo"===r.session.get("config").userMode},{type:rl,fullscreen_mode:!1,delay_after:0}]},ul={timeline:[{type:gc,stimulus:()=>_l.audio.studentSelect,prompt:()=>Jc?`\n <div>\n <img id="mobile-classroom-bg" src=${_l.images.classroomBackground} alt="background"/>\n <h3>${cc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${cc.t(Jc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p>\n </div>`:` \n <div class="jspsych-content-modified">\n <div class="class-container">\n <img id="classroom-bg" src=${_l.images.classroomBackground} alt="background"> \n </div> \n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3>${cc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${cc.t(Jc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n ${Jc?"":`<div class="number">${[1,2,3,4].map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}</div>`}\n <div class="student ${Jc?"mobile-student-select-characters":""}">\n ${["dog","cat","bird","deer"].map((e=>`<img src=${_l.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${cc.t("navigation.studentSelect")} \n </div>\n </div>\n `,keyboard_choices:()=>Jc?"NO_KEYS":["1","2","3","4"],button_choices:()=>Jc?["1","2","3","4"]:[],button_html:()=>'<button class="grade-btn">%choice%</button>',prompt_above_buttons:()=>Jc,data:{save_trial:!1},on_load:()=>{if(Jc){document.getElementById("jspsych-audio-multi-response-btngroup").classList.add("mobile-audio-btn-container");const e=document.getElementById("jspsych-content");if(e){const t=document.createElement("div"),n=document.createTextNode(cc.t("characterSelect.studentSelect.paragraph3MobileBefore")),i=document.createTextNode(cc.t("characterSelect.studentSelect.paragraph3MobileAfter")),s=document.createElement("span");s.classList.add("yellow"),s.textContent=cc.t("characterSelect.studentSelect.paragraph3MobileSpan"),t.appendChild(n),t.appendChild(s),t.appendChild(i),t.classList.add("button");const a=document.createElement("div"),r=["dog","cat","bird","deer"].map((e=>{const t=document.createElement("img");return t.setAttribute("src",_l.images[e]),t.setAttribute("alt",e),t.classList.add("mobile-character-select"),t}));for(const e of r)a.appendChild(e);e.appendChild(a),e.appendChild(t)}}},on_finish:e=>{const t={1:{character:"dog",characterName:cc.t("characterSelect.studentCharacter.dog"),characterActivity:cc.t("characterSelect.studentActivity.dog")},2:{character:"cat",characterName:cc.t("characterSelect.studentCharacter.cat"),characterActivity:cc.t("characterSelect.studentActivity.cat")},3:{character:"bird",characterName:cc.t("characterSelect.studentCharacter.bird"),characterActivity:cc.t("characterSelect.studentActivity.bird")},4:{character:"deer",characterName:cc.t("characterSelect.studentCharacter.deer"),characterActivity:cc.t("characterSelect.studentActivity.deer")}};r.session.set("character",t[Jc?e.button_response+1:e.keyboard_response].character),r.session.set("character_name",t[Jc?e.button_response+1:e.keyboard_response].characterName),r.session.set("character_activity",t[Jc?e.button_response+1:e.keyboard_response].characterActivity)}},{type:gc,stimulus:()=>_l.audio[nl.camelCase(`${r.session("character")}Intro`)],prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${_l.images[nl.camelCase(`${r.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${cc.t("characterSelect.studentIntro.paragraph1")} ${r.session("character_name")}. </p>\n <p> ${cc.t("characterSelect.studentIntro.paragraph2")} ${r.session("character_activity")}. </p>\n <p> ${cc.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n ${Jc?"":`<div class="button">${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.anyKey")}`,action:`${cc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button"> ${cc.t("navigation.continueButtonText",{input:`${cc.t("terms.here")}`,action:`${cc.t("terms.continue")}`})} </button>`}],conditional_function:()=>!(!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6)},pl=(e,t,n)=>({timeline:[{type:cl,stimulus:()=>{if(0===r.session("indexTracking")){const t=setTimeout((()=>r.session.set("timeOut",!0)),n);r.session.set("timerId",t),"tosrec"!==e?r.session.set("currentCorpus",Qc[e]):r.session.set("currentCorpus",Qc[r.session("tosrecCorpusId")])}return`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${r.session("currentCorpus")[r.session("indexTracking")].sentence}</p>\n </div>`},prompt:()=>Jc?"":`\n <div> \n <img class="lower" src="${_l.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Jc?[cc.t("terms.false")[0].toUpperCase(),cc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Jc?[`<button class="mobile-stimulus-btn"><img src=${_l.images.leftArrowBlankShort} alt=${cc.t("terms.false")}/><span>${cc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${_l.images.rightArrowBlankShort} alt=${cc.t("terms.true")}/><span>${cc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Jc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"test_response"},on_finish:n=>{n.keyboard_response?"arrowleft"===n.keyboard_response?r.session.set("keyResponse","left"):r.session.set("keyResponse","right"):0===n.button_response?r.session.set("buttonResponse","left"):r.session.set("buttonResponse","right"),n.keyboard_response?n.correct=el.pluginAPI.compareKeys(r.session("keyResponse"),r.session("currentCorpus")[r.session("indexTracking")].direction):n.correct=0===n.button_response&&"left"===r.session("currentCorpus")[r.session("indexTracking")].direction||1===n.button_response&&"right"===r.session("currentCorpus")[r.session("indexTracking")].direction,n.correct?r.session.set("dataCorrect",1):r.session.set("dataCorrect",0),vl.addResponseData(n.rt,n.keyboard_response?n.keyboard_response:n.button_response,r.session("dataCorrect")),el.data.addDataToLastTrial({save_trial:!r.session("timeOut"),pid:r.session.get("config").pid,subtask:e,blockId:t,corpusId:"tosrec"!==e?e:r.session("tosrecCorpusId"),trialNumBlock:r.session("indexTracking")+1,itemId:r.session("currentCorpus")[r.session("indexTracking")].itemId,testsetId:r.session("currentCorpus")[r.session("indexTracking")].testsetId,item:r.session("currentCorpus")[r.session("indexTracking")].sentence,truefalse:r.session("currentCorpus")[r.session("indexTracking")].answer,correct:r.session("dataCorrect"),story:r.session.get("config").story})}},{type:gc,stimulus:()=>_l.audio.neutralSoundSub,prompt:()=>Jc?'<div class=stimulus_div>\n <p id="mobile-placeholder-stimulus">Invisible Place holder text</p>\n </div>':`\n <div>\n <img class="lower" src="${_l.images.roarSreKeyboard}" alt="arrow keys">\n </div>`,keyboard_choices:"NO_KEYS",button_choices:()=>Jc?[cc.t("terms.false")[0].toUpperCase(),cc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Jc?[`<button class="mobile-stimulus-btn"><img src=${_l.images.leftArrowBlankShort} alt=${cc.t("terms.false")}/><span>${cc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${_l.images.rightArrowBlankShort} alt=${cc.t("terms.true")}/><span>${cc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],prompt_above_buttons:!0,on_load:()=>{if(Jc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content");const e=document.getElementById("jspsych-audio-multi-response-btngroup");e.style.display="flex",e.style.gap="9rem"}},trial_duration:200,response_allowed_while_playing:!1,trial_ends_after_audio:!0}],loop_function:function(){return r.session("indexTracking")===r.session("currentCorpus").length-1||r.session("timeOut")?(r.session.set("indexTracking",0),r.session.set("timeOut",!1),clearTimeout(r.session.get("timerId")),!1):(r.session.transact("indexTracking",(e=>e+1)),!0)}}),hl={type:gc,stimulus:()=>_l.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${cc.t("practice.intro.text1")}</h2>\n <p>${cc.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="instruction-boxes">\n <p> \n ${cc.t(Jc?"practice.intro.text3Mobile":"practice.intro.text3")} \n </p>\n <img src="${_l.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="instruction-boxes">\n <p> \n ${cc.t(Jc?"practice.intro.text4Mobile":"practice.intro.text4")} \n </p>\n <img src="${_l.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${cc.t("practice.intro.text5")}</b> </p> \n <div class="button">${cc.t("practice.intro.text6")}</div>\n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Jc?["HERE"]:[],button_html:()=>`<button class="button">${cc.t("practice.intro.text6Mobile")}</button>`,on_finish:()=>{r.session.set("indexTracking",-1)}},fl={type:cl,stimulus:()=>(r.session.transact("indexTracking",(e=>e+1)),`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${r.session("practiceCorpus")[r.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>Jc?"":`\n <div> \n <img class="lower" src="${_l.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Jc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Jc?[cc.t("terms.false")[0].toUpperCase(),cc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Jc?[`<button class="mobile-stimulus-btn"><img src=${_l.images.leftArrowBlankShort} alt=${cc.t("terms.false")}/><span>${cc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${_l.images.rightArrowBlankShort} alt=${cc.t("terms.true")}/><span>${cc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Jc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"practice_response",corpusId:"practice",save_trial:!0},on_finish:e=>{e.keyboard_response?(e.correct=el.pluginAPI.compareKeys(e.keyboard_response,r.session("practiceCorpus")[r.session("indexTracking")].correct_response),r.session.set("arrowResponse",e.keyboard_response)):e.correct="arrowleft"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response&&0===e.button_response||"arrowright"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response&&1===e.button_response,e.correct?(r.session.set("dataCorrect",1),r.session.set("feedbackResponse",cc.t("feedbackTranslations.correct"))):(r.session.set("dataCorrect",0),r.session.set("feedbackResponse",cc.t("feedbackTranslations.incorrect")));const t="arrowleft"===e.keyboard_response||0===e.button_response;r.session.set("responseLR",t?"left":"right"),r.session.set("answerRP",t?"false":"true"),r.session.set("responseColor",t?"orange":"blue");const n="arrowleft"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response;r.session.set("correctLR",n?"left":"right"),r.session.set("correctRP",n?"false":"true"),r.session.set("answerColor",n?"orange":"blue"),el.data.addDataToLastTrial({pid:r.session.get("config").pid,subtask:"practice",corpusId:"practice",correct:r.session("dataCorrect"),trialNumBlock:r.session("indexTracking"),item:r.session("practiceCorpus")[r.session("indexTracking")].sentence,truefalse:r.session("practiceCorpus")[r.session("indexTracking")].answer,story:r.session.get("config").story})}},ml={type:gc,response_allowed_while_playing:()=>r.session.get("config").skipInstructions,stimulus:()=>1===r.session("dataCorrect")?_l.audio[`feedback${r.session("indexTracking")}Correct`]:_l.audio[`feedback${r.session("indexTracking")}Incorrect`],prompt:()=>`\n <div class="stimulus_div">\n <p id=${Jc?"mobile-stimulus-text":""} class="feedback" translate='no'>\n <span class=${r.session("responseColor")}>${r.session("feedbackResponse")} ${cc.t(Jc?"practice.feedback.text1Mobile":"practice.feedback.text1",{arrow:"left"===r.session("responseLR")?cc.t("terms.left"):cc.t("terms.right"),type:"true"===r.session("answerRP")?cc.t("terms.true"):cc.t("terms.false")})}</span>\n <br></br> \n "${r.session("practiceCorpus")[r.session("indexTracking")].sentence}"\n <span class=${r.session("answerColor")}> ${cc.t(Jc?"practice.feedback.text2Mobile":"practice.feedback.text2",{arrow:"left"===r.session("correctLR")?cc.t("terms.left"):cc.t("terms.right"),type:"true"===r.session("correctRP")?cc.t("terms.true"):cc.t("terms.false")})}</span>\n </p>\n </div>\n ${Jc?"":`<img class="lower" src= "${"false"===r.session("correctRP")?_l.images.falseFlashKey:_l.images.trueFlashKey}" alt="arrow keys">`}`,keyboard_choices:()=>Jc?"NO_KEYS":"false"===r.session("correctRP")?["ArrowLeft"]:["ArrowRight"],button_choices:()=>Jc?["ArrowLeft","ArrowRight"]:[],button_html:()=>Jc?[`<button class="mobile-practice-feedback ${"false"===r.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"false"===r.session("correctRP")?_l.images.falseFlashKeySplit:_l.images.falseStaticKeySplit} alt="feedback arrow"/>\n </button>`,`<button class="mobile-practice-feedback ${"true"===r.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"true"===r.session("correctRP")?_l.images.trueFlashKeySplit:_l.images.trueStaticKeySplit} alt="feedback arrow"/>\n </button>`]:"",prompt_above_buttons:()=>Jc,on_load:()=>{document.querySelectorAll(".jspsych-audio-multi-response-button").forEach(((e,t)=>{const n="false"===r.session("correctRP");0!==t||n?1===t&&n&&e.classList.add("mobile-disable-button"):e.classList.add("mobile-disable-button")}))}};var gl={default:{languageSpecific:{device:["bird-end.mp3","bird-halfway.mp3","bird-intro.mp3","cat-end.mp3","cat-halfway.mp3","cat-intro.mp3","deer-end.mp3","deer-halfway.mp3","deer-intro.mp3","dog-end.mp3","dog-halfway.mp3","dog-intro.mp3","end-ns.mp3","feedback-0-correct.mp3","feedback-0-incorrect.mp3","feedback-1-correct.mp3","feedback-1-incorrect.mp3","feedback-2-correct.mp3","feedback-2-incorrect.mp3","feedback-3-correct.mp3","feedback-3-incorrect.mp3","grade-select.mp3","halfway-ns.mp3","introduction-ns.mp3","introduction.mp3","post-practice-instruction.mp3","post-practice-reminder.mp3","practice-instruction.mp3","student-select.mp3"],shared:["practice-left.webp","practice-right.webp","roar-sre-keyboard.webp","roar-sre-practice-keyboard.webp","grade-keyboard.webp","false-flash-key.webp","false-flash-key-split.webp","false-static-key-split.webp","true-flash-key-split.webp","true-static-key-split.webp","false-key.webp","grade-keys.webp","true-flash-key.webp","true-key.webp"]},shared:["neutral-sound-2.wav","neutral-sound-sub.mp3","neutral-sound.mp3","academy-background.webp","bird-happy.webp","bird-talking.webp","bird.webp","cat-happy.webp","cat-talking.webp","cat.webp","classroom-background.webp","deer-happy.webp","deer-talking.webp","deer.webp","dog-happy.webp","dog-talking.webp","dog.webp","rightArrowBlankShort.webp","leftArrowBlankShort.webp"]}};const yl="https://storage.googleapis.com/roar-sre";let vl,_l,bl;const wl=[cc.t("grades.1"),cc.t("grades.2"),cc.t("grades.3"),cc.t("grades.4"),cc.t("grades.5"),cc.t("grades.6"),cc.t("grades.7"),cc.t("grades.8+")],Il=[{timeline:[{type:dc,questions:[{prompt:"Lab ID:",name:"labId",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.labId=e.response.labId,r.session.set("config",t)}}],conditional_function:()=>!r.session.get("config").labId&&"otherLabs"===r.session.get("config").recruitment},{timeline:[{type:dc,questions:[{prompt:"Participant ID:",name:"pid",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.pid=e.response.pid,r.session.set("config",t)}}],conditional_function:()=>!r.session.get("config").pid&&"otherLabs"===r.session.get("config").recruitment},{timeline:[{type:pc,questions:[{prompt:' <div>\n <p class=" consent_form_title">STANFORD UNIVERSITY CONSENT FORM</p>\n <p class=" consent_form_text">\n <b>PURPOSE OF THE STUDY</b> \n <br>\n Data collected through games in the web-browser will help researchers understand relationships between academic skills, reading proficiency, cognition, perception, and/or attitudes towards reading and school in individuals with a broad range of reading skills.\n <br><br>\n <b>STUDY PROCEDURES</b> \n <br>\n In this study, you will be asked to complete computer tasks via a computer screen. Audio will be presented via headphones or speakers.\n <br><br>\n <b>PRIVACY AND DATA COLLECTION</b> <br>\n We will do our best to ensure your privacy. Data that is collected through this online experiment is stored separately from identifying information such as your name. For the sake of payment, sometimes we store an email address you provide, but this is stored separately from the responses that are recorded in the online experiment. Each participant is assigned a code and that is used rather than names. This is called “coded data” and we try to ensure that the identity of our research participants is kept confidential. Data collected as part of this study may be used for many years to help discover trends in the population and explore changes due to development and education. In addition, coded data may be shared online or with collaborators to allow for new and unforeseen discoveries. Researchers may choose to include coded data in publications to support findings, or they may choose to release coded data alongside findings for replicability.\n <br>\n <br>\n We will collect mouse and click, scores earned, button presses and their timestamps, or other data that may be derived from your behavior on our page. This data will be stored on servers. Incomplete data may be logged if you quit out of the experiment early. If you would like to void your data, you may request it through our contact email. \n <br>\n <br>\n <b>COMPENSATION</b>\n <br> \n Participation in this study is voluntary and you will not receive financial compensation.\n <br>\n <br>\n <b>RISKS, STRESS, OR DISCOMFORT</b>\n <br>\n If there is any reason to believe you are not safe to participate in any of the tasks, please contact us at <a href="url">readingresearch@stanford.edu</a>. Some people may experience some physical discomfort or boredom due to being asked to sit for long periods. For computer tasks, some people may also experience dry eyes or eye fatigue. For some tasks that are untimed, breaks can be taken as needed during the session.\n <br>\n <br>\n <b>CONTACT INFORMATION </b>\n <br>\n If you have any additional questions or concerns about our research, feel free to email us at <a href="url">readingresearch@stanford.edu</a>. We will be more than happy to help!\n <br>\n <br>\n For general information regarding questions or concerns about your rights as a research participant, please call 1-866-680-2906 to reach the Administrative Panel on Human Subjects in Medical Research, Stanford University.\n </p>\n </div>\n ',options:["<b>I agree to participate in this research. Participation in this research is voluntary, and I can stop at any time without penalty. <br> I feel that I understand what I am getting into, and I know I am free to leave the experiment at any time by simply closing the web browser.\n </b>"],required:!0,required_message:"You must check the box to continue",name:"Agree"}]}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},{timeline:[{type:fc,preamble:"<div><h1>Please share a bit more to help us understand your data!</h1><p>This information is optional.</p></div>",html:'\n <div className="item">\n <span htmlFor="instructions" class = "survey_form_text">How old are you? (Please type a number)</span>\n <input type = "text" id = "age" name="age" style = "font-size: 2vh" value=""/>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">What is your current grade or highest level of education?</span>\n <select id = "edu" name = "edu" style = "font-size: 2vh">\n <option value=""></option>\n <option value="prek">preK</option>\n <option value="k1">K1</option>\n <option value="k2">K2</option>\n <option value="1">Grade 1</option>\n <option value="2">Grade 2</option>\n <option value="3">Grade 3</option>\n <option value="4">Grade 4</option>\n <option value="5">Grade 5</option>\n <option value="6">Grade 6</option>\n <option value="7">Grade 7</option>\n <option value="8">Grade 8</option>\n <option value="9">Grade 9</option>\n <option value="10">Grade 10</option>\n <option value="11">Grade 11</option>\n <option value="12">Grade 12</option>\n <option value="college">College</option>\n <option value="proSchool">Professional School</option>\n <option value="gradSchool">Graduate School</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Is English your first language?</span>\n <select id = "ell" name = "ell" style = "font-size: 2vh">\n <option value=""></option>\n <option value="1">No</option>\n <option value="0">Yes</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Have you taken this game before?</span>\n <select id = "retake" name = "retake" style = "font-size: 2vh">\n <option value=""></option>\n <option value="0">No</option>\n <option value="1">Yes</option>\n </select>\n </div>\n <br>',autocomplete:!0,on_finish:e=>{const t={};for(const n in e.response)""===e.response[n]?t[n]=null:t[n]="retake"===n||"ell"===n?parseInt(e.response[n],10):e.response[n];t.grade=r.session.get("config").userMetadata.grade;const n=r.session.get("config"),i=or(null,null,t.age);n.userMetadata={...n.userMetadata,...t,...i},r.session.set("config",n)}}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},{timeline:[{type:gc,stimulus:()=>_l.audio.gradeSelect,prompt:()=>Jc?`\n <div class="mobile-grade-select">\n <h3>${cc.t("introduction.gradeSelect.text1")}</h3>\n <p>${cc.t("introduction.gradeSelect.text2Mobile")}</p>\n <p>${cc.t("introduction.gradeSelect.text3")}</p>\n <div class="button">${cc.t("introduction.gradeSelect.text4Mobile")}</div>\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${cc.t("introduction.gradeSelect.text1")}</h3>\n <p>${cc.t("introduction.gradeSelect.text2")}</p>\n <p>${cc.t("introduction.gradeSelect.text3")}</p>\n <img width="50%" src="${_l.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${cc.t("introduction.gradeSelect.text4")}</div>\n </div>`,keyboard_choices:Jc?"NO_KEYS":["1","2","3","4","5","6","7","8"],button_choices:Jc?wl:[],button_html:'<button class="grade-btn">%choice%</button>',prompt_above_buttons:!0,on_load:()=>{document.body.style.background="rgb(250, 246, 236)"},on_finish:async e=>{document.body.style.background="white";const t=e.button_response??e.keyboard_response;Jc?r.session.set("tosrecCorpusId",`tosrec${t+1}`):r.session.set("tosrecCorpusId",`tosrec${t}`);const n=r.session.get("config");n.userMetadata={...n.userMetadata,grade:Number(Jc?t+1:t)},n.story=tp(n.storyOption,n.userMetadata.grade),r.session.set("config",n)}}],conditional_function:()=>{const{grade:e}=r.session.get("config").userMetadata;return!cr(e)||(r.session.set("tosrecCorpusId",`tosrec${e}`),!1)}}];var xl=i((function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var s=e[t];i[s[0]]=s[1]}return i}));var El=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},Sl=Ys,Al=qs;var Tl=function(e,t,n,i){var s=!n;n||(n={});for(var a=-1,r=t.length;++a<r;){var o=t[a],c=i?i(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),s?Al(n,o,c):Sl(n,o,c)}return n},kl=Tl,Rl=kn;var Ll=function(e,t){return e&&kl(t,Rl(t),e)},Cl=Tl,Ol=ya;var Fl=function(e,t){return e&&Cl(t,Ol(t),e)},Nl={exports:{}};!function(e,t){var n=C,i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?n.Buffer:void 0,r=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(Nl,Nl.exports);var Ul=Nl.exports;var jl=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Pl=Tl,Ml=Ct;var Dl=function(e,t){return Pl(e,Ml(e),t)},$l=Tl,zl=la;var Bl=function(e,t){return $l(e,zl(e),t)},ql=Object.prototype.hasOwnProperty;var Vl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ql.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Hl=ut;var Wl=function(e){var t=new e.constructor(e.byteLength);return new Hl(t).set(new Hl(e)),t},Yl=Wl;var Kl=function(e,t){var n=t?Yl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Gl=/\w*$/;var Jl=function(e){var t=new e.constructor(e.source,Gl.exec(e));return t.lastIndex=e.lastIndex,t},Xl=O?O.prototype:void 0,Ql=Xl?Xl.valueOf:void 0;var Zl=Wl;var ed=Wl,td=Kl,nd=Jl,id=function(e){return Ql?Object(Ql.call(e)):{}},sd=function(e,t){var n=t?Zl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var ad=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return ed(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return td(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return sd(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return nd(e);case"[object Symbol]":return id(e)}},rd=V,od=Object.create,cd=function(){function e(){}return function(t){if(!rd(t))return{};if(od)return od(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ld=sa,dd=gn;var ud=function(e){return"function"!=typeof e.constructor||dd(e)?{}:cd(ld(e))},pd=ei,hd=Ft;var fd=function(e){return hd(e)&&"[object Map]"==pd(e)},md=Zt,gd=tn&&tn.isMap,yd=gd?md(gd):fd,vd=ei,_d=Ft;var bd=function(e){return _d(e)&&"[object Set]"==vd(e)},wd=Zt,Id=tn&&tn.isSet,xd=Id?wd(Id):bd,Ed=nt,Sd=El,Ad=Ys,Td=Ll,kd=Fl,Rd=Ul,Ld=jl,Cd=Dl,Od=Bl,Fd=On,Nd=wa,Ud=ei,jd=Vl,Pd=ad,Md=ud,Dd=It,$d=Vt,zd=yd,Bd=V,qd=xd,Vd=kn,Hd=ya,Wd="[object Arguments]",Yd="[object Function]",Kd="[object Object]",Gd={};Gd[Wd]=Gd["[object Array]"]=Gd["[object ArrayBuffer]"]=Gd["[object DataView]"]=Gd["[object Boolean]"]=Gd["[object Date]"]=Gd["[object Float32Array]"]=Gd["[object Float64Array]"]=Gd["[object Int8Array]"]=Gd["[object Int16Array]"]=Gd["[object Int32Array]"]=Gd["[object Map]"]=Gd["[object Number]"]=Gd[Kd]=Gd["[object RegExp]"]=Gd["[object Set]"]=Gd["[object String]"]=Gd["[object Symbol]"]=Gd["[object Uint8Array]"]=Gd["[object Uint8ClampedArray]"]=Gd["[object Uint16Array]"]=Gd["[object Uint32Array]"]=!0,Gd["[object Error]"]=Gd[Yd]=Gd["[object WeakMap]"]=!1;var Jd=function e(t,n,i,s,a,r){var o,c=1&n,l=2&n,d=4&n;if(i&&(o=a?i(t,s,a,r):i(t)),void 0!==o)return o;if(!Bd(t))return t;var u=Dd(t);if(u){if(o=jd(t),!c)return Ld(t,o)}else{var p=Ud(t),h=p==Yd||"[object GeneratorFunction]"==p;if($d(t))return Rd(t,c);if(p==Kd||p==Wd||h&&!a){if(o=l||h?{}:Md(t),!c)return l?Od(t,kd(o,t)):Cd(t,Td(o,t))}else{if(!Gd[p])return a?t:{};o=Pd(t,p,c)}}r||(r=new Ed);var f=r.get(t);if(f)return f;r.set(t,o),qd(t)?t.forEach((function(s){o.add(e(s,n,i,s,t,r))})):zd(t)&&t.forEach((function(s,a){o.set(a,e(s,n,i,a,t,r))}));var m=u?void 0:(d?l?Nd:Fd:l?Hd:Vd)(t);return Sd(m||t,(function(s,a){m&&(s=t[a=s]),Ad(o,a,e(s,n,i,a,t,r))})),o};var Xd=ss,Qd=function(e,t,n){var i=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(s);++i<s;)a[i]=e[i+t];return a};var Zd=function(e,t){return t.length<2?e:Xd(e,Qd(t,0,-1))},eu=Zi,tu=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},nu=Zd,iu=ts;var su=function(e,t){return t=eu(t,e),null==(e=nu(e,t))||delete e[iu(tu(t))]},au=q,ru=sa,ou=Ft,cu=Function.prototype,lu=Object.prototype,du=cu.toString,uu=lu.hasOwnProperty,pu=du.call(Object);var hu=function(e){if(!ou(e)||"[object Object]"!=au(e))return!1;var t=ru(e);if(null===t)return!0;var n=uu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&du.call(n)==pu};var fu=function(e){return hu(e)?void 0:e},mu=zt,gu=It,yu=O?O.isConcatSpreadable:void 0;var vu=wt,_u=function(e){return gu(e)||mu(e)||!!(yu&&e&&e[yu])};var bu=function e(t,n,i,s,a){var r=-1,o=t.length;for(i||(i=_u),a||(a=[]);++r<o;){var c=t[r];n>0&&i(c)?n>1?e(c,n-1,i,s,a):vu(a,c):s||(a[a.length]=c)}return a},wu=bu;var Iu=function(e){return(null==e?0:e.length)?wu(e,1):[]};var xu=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Eu=Math.max;var Su=function(e,t,n){return t=Eu(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=Eu(i.length-t,0),r=Array(a);++s<a;)r[s]=i[t+s];s=-1;for(var o=Array(t+1);++s<t;)o[s]=i[s];return o[t]=n(r),xu(e,this,o)}};var Au=function(e){return function(){return e}},Tu=zs,ku=Tu?function(e,t){return Tu(e,"toString",{configurable:!0,enumerable:!1,value:Au(t),writable:!0})}:Ss,Ru=Date.now;var Lu=function(e){var t=0,n=0;return function(){var i=Ru(),s=16-(i-n);if(n=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ku),Cu=Iu,Ou=Su,Fu=Lu;var Nu=zi,Uu=Jd,ju=su,Pu=Zi,Mu=Tl,Du=fu,$u=wa,zu=function(e){return Fu(Ou(e,void 0,Cu),e+"")}((function(e,t){var n={};if(null==e)return n;var i=!1;t=Nu(t,(function(t){return t=Pu(t,e),i||(i=t.length>1),t})),Mu(e,$u(e),n),i&&(n=Uu(n,7,Du));for(var s=t.length;s--;)ju(n,t[s]);return n})),Bu=i(zu),qu=zi;var Vu=function(e,t){return qu(t,(function(t){return[t,e[t]]}))},Hu=ei,Wu=pt,Yu=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var Ku=i(function(e){return function(t){var n=Hu(t);return"[object Map]"==n?Wu(t):"[object Set]"==n?Yu(t):Vu(t,e(t))}}(kn)),Gu={exports:{}};Gu.exports=function e(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function i(){var t=n.URL||n.webkitURL||null,i=e.toString();return c.BLOB_URL||(c.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))}var s=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,r={},o=0,c={};if(c.parse=d,c.unparse=u,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!s&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=b,c.ParserHandle=v,c.NetworkStreamer=h,c.FileStreamer=f,c.StringStreamer=m,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=y),n.jQuery){var l=n.jQuery;l.fn.parse=function(e){var t=e.config||{},i=[];return this.each((function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)i.push({file:this.files[s],inputElem:this,instanceConfig:l.extend({},t)})})),s(),this;function s(){if(0!==i.length){var t=i[0];if(k(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void a("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void r();"object"==typeof n.config&&(t.instanceConfig=l.extend(t.instanceConfig,n.config))}else if("skip"===n)return void r()}var s=t.instanceConfig.complete;t.instanceConfig.complete=function(e){k(s)&&s(e,t.file,t.inputElem),r()},c.parse(t.file,t.instanceConfig)}else k(e.complete)&&e.complete()}function a(t,n,i,s){k(e.error)&&e.error({name:t},n,i,s)}function r(){i.splice(0,1),s()}}}function d(e,t){var i=(t=t||{}).dynamicTyping||!1;if(k(i)&&(t.dynamicTypingFunction=i,i={}),t.dynamicTyping=i,t.transform=!!k(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var s=w();return s.userStep=t.step,s.userChunk=t.chunk,s.userComplete=t.complete,s.userError=t.error,t.step=k(t.step),t.chunk=k(t.chunk),t.complete=k(t.complete),t.error=k(t.error),delete t.worker,void s.postMessage({input:e,config:t,workerId:s.id})}var a=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(a=new y(t)).getStream():("string"==typeof e?(e=r(e),a=t.download?new h(t):new m(t)):!0===e.readable&&k(e.read)&&k(e.on)?a=new g(t):(n.File&&e instanceof File||e instanceof Object)&&(a=new f(t)),a.stream(e));function r(e){return 65279===e.charCodeAt(0)?e.slice(1):e}}function u(e,t){var n=!1,i=!0,s=",",a="\r\n",r='"',o=r+r,l=!1,d=null,u=!1;h();var p=new RegExp(_(r),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,l);if("object"==typeof e[0])return f(d||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function h(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(s=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(r=t.quoteChar),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+r),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(u=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function f(e,t,n){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(o&&i){for(var l=0;l<e.length;l++)l>0&&(r+=s),r+=m(e[l],l);t.length>0&&(r+=a)}for(var d=0;d<t.length;d++){var u=o?e.length:t[d].length,p=!1,h=o?0===Object.keys(t[d]).length:0===t[d].length;if(n&&!o&&(p="greedy"===n?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===n&&o){for(var f=[],g=0;g<u;g++){var y=c?e[g]:g;f.push(t[d][y])}p=""===f.join("").trim()}if(!p){for(var v=0;v<u;v++){v>0&&!h&&(r+=s);var _=o&&c?e[v]:v;r+=m(t[d][_],v)}d<t.length-1&&(!n||u>0&&!h)&&(r+=a)}}return r}function m(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;u&&"string"==typeof e&&u.test(e)&&(e="'"+e,i=!0);var a=e.toString().replace(p,o);return(i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||g(a,c.BAD_DELIMITERS)||a.indexOf(s)>-1||" "===a.charAt(0)||" "===a.charAt(a.length-1))?r+a+r:a}function g(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function p(e){function t(e){var t=A(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new v(t),this._handle.streamer=this,this._config=t}this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&k(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var r=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=r.meta.cursor;this._finished||(this._partialLine=s.substring(o-this._baseIndex),this._baseIndex=o),r&&r.data&&(this._rowCount+=r.data.length);var l=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(a)n.postMessage({results:r,workerId:c.WORKER_ID,finished:l});else if(k(this._config.chunk)&&!t){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);r=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!l||!k(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){k(this._config.error)?this._config.error(e):a&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function h(e){var t;function n(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),p.call(this,e),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),s||(t.onload=T(this._chunkLoaded,this),t.onerror=T(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}s&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function f(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),p.call(this,e);var i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=T(this._chunkLoaded,this),t.onerror=T(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var s=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,s)}var a=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function m(e){var t;e=e||{},p.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},p.call(this,e);var t=[],n=!0,i=!1;this.pause=function(){p.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){p.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=T((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=T((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=T((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=T((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function y(e){var n=t.Duplex,i=A(e),s=!0,a=!1,r=[],o=null;this._onCsvData=function(e){var t=e.data;o.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){o.push(null)},i.step=T(this._onCsvData,this),i.complete=T(this._onCsvComplete,this),p.call(this,i),this._nextChunk=function(){a&&1===r.length&&(this._finished=!0),r.length?r.shift()():s=!0},this._addToParseQueue=function(e,t){r.push(T((function(){if(this.parseChunk("string"==typeof e?e:e.toString(i.encoding)),k(t))return t()}),this)),s&&(s=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){a=!0,this._addToParseQueue("")},this.getStream=function(){return o},(o=new n({readableObjectMode:!0,decodeStrings:!1,read:T(this._onRead,this),write:T(this._onWrite,this)})).once("finish",T(this._onWriteComplete,this))}function v(e){var t,n,i,s=Math.pow(2,53),a=-s,r=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,d=0,u=0,p=!1,h=!1,f=[],m={data:[],errors:[],meta:{}};if(k(e.step)){var g=e.step;e.step=function(t){if(m=t,I())w();else{if(w(),0===m.data.length)return;d+=t.data.length,e.preview&&d>e.preview?n.abort():(m.data=m.data[0],g(m,l))}}}function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function v(e){if(r.test(e)){var t=parseFloat(e);if(t>a&&t<s)return!0}return!1}function w(){return m&&i&&(C("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(m.data=m.data.filter((function(e){return!y(e)}))),I()&&x(),T()}function I(){return e.header&&0===f.length}function x(){if(m)if(Array.isArray(m.data[0])){for(var t=0;I()&&t<m.data.length;t++)m.data[t].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(t,n){k(e.transformHeader)&&(t=e.transformHeader(t,n)),f.push(t)}}function E(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function S(e,t){return E(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(v(t)?parseFloat(t):o.test(t)?new Date(t):""===t?null:t):t}function T(){if(!m||!e.header&&!e.dynamicTyping&&!e.transform)return m;function t(t,n){var i,s=e.header?{}:[];for(i=0;i<t.length;i++){var a=i,r=t[i];e.header&&(a=i>=f.length?"__parsed_extra":f[i]),e.transform&&(r=e.transform(r,a)),r=S(a,r),"__parsed_extra"===a?(s[a]=s[a]||[],s[a].push(r)):s[a]=r}return e.header&&(i>f.length?C("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+i,u+n):i<f.length&&C("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+i,u+n)),s}var n=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(t),n=m.data.length):m.data=t(m.data,0),e.header&&m.meta&&(m.meta.fields=f),u+=n,m}function R(t,n,i,s,a){var r,o,l,d;a=a||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var u=0;u<a.length;u++){var p=a[u],h=0,f=0,m=0;l=void 0;for(var g=new b({comments:s,delimiter:p,newline:n,preview:10}).parse(t),v=0;v<g.data.length;v++)if(i&&y(g.data[v]))m++;else{var _=g.data[v].length;f+=_,void 0!==l?_>0&&(h+=Math.abs(_-l),l=_):l=_}g.data.length>0&&(f/=g.data.length-m),(void 0===o||h<=o)&&(void 0===d||f>d)&&f>1.99&&(o=h,r=p,d=f)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function L(e,t){e=e.substring(0,1048576);var n=new RegExp(_(t)+"([^]*?)"+_(t),"gm"),i=(e=e.replace(n,"")).split("\r"),s=e.split("\n"),a=s.length>1&&s[0].length<i[0].length;if(1===i.length||a)return"\n";for(var r=0,o=0;o<i.length;o++)"\n"===i[o][0]&&r++;return r>=i.length/2?"\r\n":"\r"}function C(e,t,n,i){var s={type:e,code:t,message:n};void 0!==i&&(s.row=i),m.errors.push(s)}this.parse=function(s,a,r){var o=e.quoteChar||'"';if(e.newline||(e.newline=L(s,o)),i=!1,e.delimiter)k(e.delimiter)&&(e.delimiter=e.delimiter(s),m.meta.delimiter=e.delimiter);else{var l=R(s,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);l.successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=c.DefaultDelimiter),m.meta.delimiter=e.delimiter}var d=A(e);return e.preview&&e.header&&d.preview++,t=s,n=new b(d),m=n.parse(t,a,r),w(),p?{meta:{paused:!0}}:m||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=k(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(p=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,k(e.complete)&&e.complete(m),t=""}}function _(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e){var t,n=(e=e||{}).delimiter,i=e.newline,s=e.comments,a=e.step,r=e.preview,o=e.fastMode,l=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),s===n)throw new Error("Comment character same as delimiter");!0===s?s="#":("string"!=typeof s||c.BAD_DELIMITERS.indexOf(s)>-1)&&(s=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var d=0,u=!1;this.parse=function(c,p,h){if("string"!=typeof c)throw new Error("Input must be a string");var f=c.length,m=n.length,g=i.length,y=s.length,v=k(a);d=0;var b=[],w=[],I=[],x=0;if(!c)return Y();if(e.header&&!p){var E=c.split(i)[0].split(n),S="_",A=[],T={},R=!1;for(var L in E){var C=E[L];k(e.transformHeader)&&(C=e.transformHeader(C,L));var O=C,F=T[C]||0;for(F>0&&(R=!0,O=C+S+F),T[C]=F+1;A.includes(O);)O=O+S+F;A.push(O)}if(R){var N=c.split(i);N[0]=A.join(n),c=N.join(i)}}if(o||!1!==o&&-1===c.indexOf(t)){for(var U=c.split(i),j=0;j<U.length;j++){if(I=U[j],d+=I.length,j!==U.length-1)d+=i.length;else if(h)return Y();if(!s||I.substring(0,y)!==s){if(v){if(b=[],q(I.split(n)),K(),u)return Y()}else q(I.split(n));if(r&&j>=r)return b=b.slice(0,r),Y(!0)}}return Y()}for(var P=c.indexOf(n,d),M=c.indexOf(i,d),D=new RegExp(_(l)+_(t),"g"),$=c.indexOf(t,d);;)if(c[d]!==t)if(s&&0===I.length&&c.substring(d,d+y)===s){if(-1===M)return Y();d=M+g,M=c.indexOf(i,d),P=c.indexOf(n,d)}else if(-1!==P&&(P<M||-1===M))I.push(c.substring(d,P)),d=P+m,P=c.indexOf(n,d);else{if(-1===M)break;if(I.push(c.substring(d,M)),W(M+g),v&&(K(),u))return Y();if(r&&b.length>=r)return Y(!0)}else for($=d,d++;;){if(-1===($=c.indexOf(t,$+1)))return h||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:d}),H();if($===f-1)return H(c.substring(d,$).replace(D,t));if(t!==l||c[$+1]!==l){if(t===l||0===$||c[$-1]!==l){-1!==P&&P<$+1&&(P=c.indexOf(n,$+1)),-1!==M&&M<$+1&&(M=c.indexOf(i,$+1));var z=V(-1===M?P:Math.min(P,M));if(c.substr($+1+z,m)===n){I.push(c.substring(d,$).replace(D,t)),d=$+1+z+m,c[$+1+z+m]!==t&&($=c.indexOf(t,d)),P=c.indexOf(n,d),M=c.indexOf(i,d);break}var B=V(M);if(c.substring($+1+B,$+1+B+g)===i){if(I.push(c.substring(d,$).replace(D,t)),W($+1+B+g),P=c.indexOf(n,d),$=c.indexOf(t,d),v&&(K(),u))return Y();if(r&&b.length>=r)return Y(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:d}),$++}}else $++}return H();function q(e){b.push(e),x=d}function V(e){var t=0;if(-1!==e){var n=c.substring($+1,e);n&&""===n.trim()&&(t=n.length)}return t}function H(e){return h||(void 0===e&&(e=c.substring(d)),I.push(e),d=f,q(I),v&&K()),Y()}function W(e){d=e,q(I),I=[],M=c.indexOf(i,d)}function Y(e){return{data:b,errors:w,meta:{delimiter:n,linebreak:i,aborted:u,truncated:!!e,cursor:x+(p||0)}}}function K(){a(Y()),b=[],w=[]}},this.abort=function(){u=!0},this.getCharIndex=function(){return d}}function w(){if(!c.WORKERS_SUPPORTED)return!1;var e=i(),t=new n.Worker(e);return t.onmessage=I,t.id=o++,r[t.id]=t,t}function I(e){var t=e.data,n=r[t.workerId],i=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){i=!0,x(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:E,resume:E};if(k(n.userStep)){for(var a=0;a<t.results.data.length&&(n.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!i);a++);delete t.results}else k(n.userChunk)&&(n.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!i&&x(t.workerId,t.results)}function x(e,t){var n=r[e];k(n.userComplete)&&n.userComplete(t),n.terminate(),delete r[e]}function E(){throw new Error("Not implemented.")}function S(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var i=c.parse(t.input,t.config);i&&n.postMessage({workerId:c.WORKER_ID,results:i,finished:!0})}}function A(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=A(e[n]);return t}function T(e,t){return function(){e.apply(t,arguments)}}function k(e){return"function"==typeof e}return a&&(n.onmessage=S),h.prototype=Object.create(p.prototype),h.prototype.constructor=h,f.prototype=Object.create(p.prototype),f.prototype.constructor=f,m.prototype=Object.create(m.prototype),m.prototype.constructor=m,g.prototype=Object.create(p.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(y.prototype=Object.create(p.prototype),y.prototype.constructor=y),c}();var Ju=Gu.exports;class Xu{constructor(){this.tableURL="https://storage.googleapis.com/roar-sre/scores/sre_lookup_v3.csv",this.lookupTable=[],this.tableLoaded=!1}async initTable(){return new Promise(((e,t)=>{const n=r.session.get("config").userMetadata?.grade;n||t(),this.gradeForScore=cr(n,1,12),Ju.parse(this.tableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{this.gradeForScore===Number(e.data.grade)&&this.lookupTable.push(Bu(e.data,["","X"]))},complete:()=>{this.tableLoaded=!0,e()}})}))}computedScoreCallback=async e=>{const{taskId:t}=r.session.get("config");if("sre"!==t)return null;const n=xl(Ku(e).map((([e,t])=>{const n="practice"===e?"practice":"test";return[e,{sreScore:(t[n]?.numCorrect||0)-(t[n]?.numIncorrect||0)}]}))),i=(s=n,s.lab?.sreScore?Math.max(n.lab.sreScore,0):s.aiV1P1?.sreScore?Math.max(s.aiV1P1.sreScore+5,0):s.aiV1P2?.sreScore?Math.max(s.aiV1P2.sreScore+3,0):0);var s;n.composite={sreScore:i};const a=r.session.get("config").userMetadata?.grade;if(a){this.tableLoaded||await this.initTable();const e=this.lookupTable.find((e=>e.sreScore===i));if(void 0!==e){const{grade:t,sreScore:s,...a}=e;n.composite={sreScore:i,...a}}}return n}}let Qu=!0;const Zu=document.querySelector("#sentry-feedback"),ep={type:rl,fullscreen_mode:!0,message:()=>`<div class='text_div'><h1>${cc.t("fullScreenTrial.prompt")}</h1></div>`,css_classes:["jspsych-content-modified"],delay_after:0,button_label:()=>`${cc.t("fullScreenTrial.buttonText")}`,on_start:()=>{document.body.style.cursor="default",Zu&&(Zu.style.display="none")},on_finish:()=>{Qu?Qu=!1:document.body.style.cursor="none"}},tp=(e,t)=>{let n;return n=["true","false"].includes(e?.toLocaleLowerCase())?e?.toLocaleLowerCase():!(cr(t)>=6),n};function np(e){return"3minParallelAIFormV1"===e?Math.random()<.5?Xc(["lab","aiV1P1"]):Xc(["lab","aiV1P2"]):"3min1Block"===e?[Xc(["lab","aiV1P1","aiV1P2"])[0]]:"2BlocksV2"===e?[Xc(["lab","aiV1P1","aiV1P2"])[0],"aiV2"]:"90s2Blocks"===e?Xc(["test1","test2"]):["lab","ai"]}function ip(e){return"3min1Block"===e?[18e4]:"2BlocksV2"===e?[18e4,9e4]:"90s2Blocks"===e?[9e4,9e4]:[18e4,18e4]}function sp(e){return"es"===e?"90s2Blocks":"default"}const ap=e=>{e.displayElement&&(el.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};el.opts.on_finish=t(el.opts.on_finish,(()=>{e.firekit.finishRun(),vl.markAsCompleted(),e.experimentFinished&&e.experimentFinished()}));const n=new Xu;el.opts.on_data_update=t(el.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,n.computedScoreCallback.bind(n))})),window.addEventListener("error",(t=>{const{msg:n,url:i,lineNo:s,columnNo:a,error:r}=t;e.firekit?.writeTrial({assessment_stage:"error",lastTrial:el.data.getLastTrialData().trials[0],message:String(n),source:i||null,lineNo:String(s||null),colNo:String(a||null),error:JSON.stringify(r||null),timeStamp:(new Date).toISOString()})})),r.session.has("initialized")&&r.local("initialized")||(r.session.set("practiceIndex",0),r.session.set("currentBlockIndex",0),r.session.set("trialNumBlock",0),r.session.set("trialNumTotal",0),r.session.set("demoCounter",0),r.session.set("nextStimulus",null),r.session.set("response",""),r.session.set("dataCorrect",""),r.session.set("keyResponse",""),r.session.set("gradeKeyResponse",[]),r.session.set("currentCorpus",[]),r.session.set("timeOut",!1),r.session.set("practiceCorpus",Qc.practice),r.session.set("currentTrialCorrect",!0),r.session.set("coinTrackingIndex",0),r.session.set("initialized",!0)),r.session},rp=e=>[ep,...Il,{type:Eo,func:()=>{const t=r.session.get("config");t.pid=t.pid||(()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<16;n+=1)e+=t.charAt(Math.floor(62*Math.random()));return e})(),e.updateUser({assessmentPid:t.pid,labId:t.labId,...t.userMetadata})}}],op=Object.prototype.toString;function cp(e){switch(op.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _p(e,Error)}}function lp(e,t){return op.call(e)===`[object ${t}]`}function dp(e){return lp(e,"ErrorEvent")}function up(e){return lp(e,"DOMError")}function pp(e){return lp(e,"String")}function hp(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function fp(e){return null===e||hp(e)||"object"!=typeof e&&"function"!=typeof e}function mp(e){return lp(e,"Object")}function gp(e){return"undefined"!=typeof Event&&_p(e,Event)}function yp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function vp(e){return"number"==typeof e&&e!=e}function _p(e,t){try{return e instanceof t}catch(e){return!1}}function bp(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function wp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Ip(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{bp(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function xp(e,t,n=!1){return!!pp(e)&&(lp(t,"RegExp")?t.test(e):!!pp(t)&&(n?e===t:e.includes(t)))}function Ep(e,t=[],n=!1){return t.some((t=>xp(e,t,n)))}function Sp(e,t,n=250,i,s,a,r){if(!(a.exception&&a.exception.values&&r&&_p(r.originalException,Error)))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,l;o&&(a.exception.values=(c=Ap(e,t,s,r.originalException,i,a.exception.values,o,0),l=n,c.map((e=>(e.value&&(e.value=wp(e.value,l)),e)))))}function Ap(e,t,n,i,s,a,r,o){if(a.length>=n+1)return a;let c=[...a];if(_p(i[s],Error)){Tp(r,o);const a=e(t,i[s]),l=c.length;kp(a,s,l,o),c=Ap(e,t,n,i[s],s,[a,...c],a,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,a)=>{if(_p(i,Error)){Tp(r,o);const l=e(t,i),d=c.length;kp(l,`errors[${a}]`,d,o),c=Ap(e,t,n,i,s,[l,...c],l,d)}})),c}function Tp(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function kp(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function Rp(e){return e&&e.Math==Math?e:void 0}const Lp="object"==typeof globalThis&&Rp(globalThis)||"object"==typeof window&&Rp(window)||"object"==typeof self&&Rp(self)||"object"==typeof global&&Rp(global)||function(){return this}()||{};function Cp(){return Lp}function Op(e,t,n){const i=n||Lp,s=i.__SENTRY__=i.__SENTRY__||{};return s[e]||(s[e]=t())}const Fp=Cp(),Np=80;function Up(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||Np;for(;n&&a++<i&&(l=jp(n,d),!("html"===l||a>1&&r+s.length*c+l.length>=u));)s.push(l),r+=l.length,n=n.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}function jp(e,t){const n=e,i=[];let s,a,r,o,c;if(!n||!n.tagName)return"";if(Fp.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),s=n.className,s&&pp(s))for(a=s.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)r=d[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}function Pp(e){if(!Fp.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const Mp="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Dp=["debug","info","warn","error","log","assert","trace"],$p={};function zp(e){if(!("console"in Lp))return e();const t=Lp.console,n={},i=Object.keys($p);i.forEach((e=>{const i=$p[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const Bp=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Mp?Dp.forEach((n=>{t[n]=(...t)=>{e&&zp((()=>{Lp.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Dp.forEach((e=>{t[e]=()=>{}})),t}(),qp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Vp(e,t=!1){const{host:n,path:i,pass:s,port:a,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&s?`:${s}`:""}@${n}${a?`:${a}`:""}/${i?`${i}/`:i}${r}`}function Hp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Wp(e){const t="string"==typeof e?function(e){const t=qp.exec(e);if(!t)return void zp((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,i,s="",a,r="",o]=t.slice(1);let c="",l=o;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Hp({host:a,pass:s,path:c,projectId:l,port:r,protocol:n,publicKey:i})}(e):Hp(e);if(t&&function(e){if(!Mp)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Bp.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(Bp.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Bp.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Bp.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}class Yp extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Kp(e,t,n){if(!(t in e))return;const i=e[t],s=n(i);"function"==typeof s&&Jp(s,i),e[t]=s}function Gp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Mp&&Bp.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Jp(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Gp(e,"__sentry_original__",t)}catch(e){}}function Xp(e){return e.__sentry_original__}function Qp(e){if(cp(e))return{message:e.message,name:e.name,stack:e.stack,...eh(e)};if(gp(e)){const t={type:e.type,target:Zp(e.target),currentTarget:Zp(e.currentTarget),...eh(e)};return"undefined"!=typeof CustomEvent&&_p(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Zp(e){try{return t=e,"undefined"!=typeof Element&&_p(t,Element)?Up(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function eh(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function th(e){return nh(e,new Map)}function nh(e,t){if(function(e){if(!mp(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=nh(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(nh(e,t))})),i}return e}const ih=50,sh=/\(error: (.*)\)/,ah=/captureMessage|captureException/;function rh(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const i=[],s=e.split("\n");for(let e=n;e<s.length;e++){const n=s[e];if(n.length>1024)continue;const a=sh.test(n)?n.replace(sh,"$1"):n;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){i.push(t);break}}if(i.length>=ih)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),ah.test(t[t.length-1].function||"")&&(t.pop(),ah.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,ih).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(i)}}const oh="<anonymous>";function ch(e){try{return e&&"function"==typeof e&&e.name||oh}catch(e){return oh}}const lh={},dh={};function uh(e,t){lh[e]=lh[e]||[],lh[e].push(t)}function ph(e,t){dh[e]||(t(),dh[e]=!0)}function hh(e,t){const n=e&&lh[e];if(n)for(const i of n)try{i(t)}catch(t){Mp&&Bp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ch(i)}\nError:`,t)}}function fh(){"console"in Lp&&Dp.forEach((function(e){e in Lp.console&&Kp(Lp.console,e,(function(t){return $p[e]=t,function(...t){hh("console",{args:t,level:e});const n=$p[e];n&&n.apply(Lp.console,t)}}))}))}function mh(){const e=Lp,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function gh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function yh(e){const{message:t,event_id:n}=e;if(t)return t;const i=gh(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function vh(e,t,n){const i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function _h(e,t){const n=gh(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}function bh(e){if(e&&e.__sentry_captured__)return!0;try{Gp(e,"__sentry_captured__",!0)}catch(e){}return!1}function wh(e){return Array.isArray(e)?e:[e]}const Ih=Lp,xh=1e3;let Eh,Sh,Ah;function Th(){if(!Ih.document)return;const e=hh.bind(null,"dom"),t=kh(e,!0);Ih.document.addEventListener("click",t,!1),Ih.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Ih[t]&&Ih[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Kp(n,"addEventListener",(function(t){return function(n,i,s){if("click"===n||"keypress"==n)try{const i=this,a=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=a[n]=a[n]||{refCount:0};if(!r.handler){const i=kh(e);r.handler=i,t.call(this,n,i,s)}r.refCount++}catch(e){}return t.call(this,n,i,s)}})),Kp(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},a=s[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,i),a.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}function kh(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;Gp(n,"_sentryCaptured",!0),i&&!i._sentryId&&Gp(i,"_sentryId",mh());const s="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Sh)return!1;try{if(!e.target||e.target._sentryId!==Ah)return!1}catch(e){}return!0}(n)){e({event:n,name:s,global:t}),Sh=n.type,Ah=i?i._sentryId:void 0}clearTimeout(Eh),Eh=Ih.setTimeout((()=>{Ah=void 0,Sh=void 0}),xh)}}const Rh=Cp();function Lh(){if(!("fetch"in Rh))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Ch(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Oh(e){const t="fetch";uh(t,e),ph(t,Fh)}function Fh(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Lh())return!1;if(Ch(Rh.fetch))return!0;let e=!1;const t=Rh.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ch(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Mp&&Bp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&Kp(Lp,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Uh(t),method:Nh(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Uh(t),method:Nh(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return hh("fetch",{...s}),e.apply(Lp,t).then((e=>(hh("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw hh("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}function Nh(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Uh(e){return"string"==typeof e?e:e?Nh(e,"url")?e.url:e.toString?e.toString():"":""}let jh=null;function Ph(e){const t="error";uh(t,e),ph(t,Mh)}function Mh(){jh=Lp.onerror,Lp.onerror=function(e,t,n,i,s){return hh("error",{column:i,error:s,line:n,msg:e,url:t}),!(!jh||jh.__SENTRY_LOADER__)&&jh.apply(this,arguments)},Lp.onerror.__SENTRY_INSTRUMENTED__=!0}let Dh=null;function $h(e){const t="unhandledrejection";uh(t,e),ph(t,zh)}function zh(){Dh=Lp.onunhandledrejection,Lp.onunhandledrejection=function(e){return hh("unhandledrejection",e),!(Dh&&!Dh.__SENTRY_LOADER__)||Dh.apply(this,arguments)},Lp.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Bh=Cp();const qh=Lp;let Vh;function Hh(e){const t="history";uh(t,e),ph(t,Wh)}function Wh(){if(!function(){const e=Bh.chrome,t=e&&e.app&&e.app.runtime,n="history"in Bh&&!!Bh.history.pushState&&!!Bh.history.replaceState;return!t&&n}())return;const e=qh.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Vh,t=String(n);Vh=t;hh("history",{from:e,to:t})}return e.apply(this,t)}}qh.onpopstate=function(...t){const n=qh.location.href,i=Vh;Vh=n;if(hh("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},Kp(qh.history,"pushState",t),Kp(qh.history,"replaceState",t)}const Yh=Lp,Kh="__sentry_xhr_v3__";function Gh(e){uh("xhr",e),ph("xhr",Jh)}function Jh(){if(!Yh.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Kp(e,"open",(function(e){return function(...t){const n=Date.now(),i=pp(t[0])?t[0].toUpperCase():void 0,s=function(e){if(pp(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!i||!s)return e.apply(this,t);this[Kh]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[Kh];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}hh("xhr",{args:[i,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Kp(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),Kp(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,s=this[Kh];return s&&pp(n)&&pp(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),Kp(e,"send",(function(e){return function(...t){const n=this[Kh];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return hh("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function Xh(e,t=100,n=1/0){try{return Zh("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Qh(e,t=3,n=102400){const i=Xh(e,t);return s=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>n?Qh(e,t-1,n):i;var s}function Zh(e,t,n=1/0,i=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!vp(t))return t;const o=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(bp(t))return"[VueViewModel]";if(mp(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${ch(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return o.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return Zh("",l.toJSON(),c-1,i,s)}catch(e){}const d=Array.isArray(t)?[]:{};let u=0;const p=Qp(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(u>=i){d[e]="[MaxProperties ~]";break}const t=p[e];d[e]=Zh(e,t,c-1,i,s),u++}return r(t),d}var ef;function tf(e){return new sf((t=>{t(e)}))}function nf(e){return new sf(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(ef||(ef={}));let sf=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=ef.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e(((e,i)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(e){i(e)}else e(n)},t=>{if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(t){return new e(((e,n)=>{let i,s;return this.then((e=>{s=!1,i=e,t&&t()}),(e=>{s=!0,i=e,t&&t()})).then((()=>{s?n(i):e(i)}))}))}__init(){this._resolve=e=>{this._setResult(ef.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ef.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===ef.PENDING&&(yp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ef.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===ef.RESOLVED&&e[1](this._value),this._state===ef.REJECTED&&e[2](this._value),e[0]=!0)}))}}};function af(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return nf(new Yp("Not adding Promise because buffer limit was reached."));const s=i();return-1===t.indexOf(s)&&t.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(e){return new sf(((n,i)=>{let s=t.length;if(!s)return n(!0);const a=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{tf(e).then((()=>{--s||(clearTimeout(a),n(!0))}),i)}))}))}}}function rf(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}const of=["fatal","error","warning","log","info","debug"];function cf(e){return"warn"===e?"warning":of.includes(e)?e:"log"}const lf=1e3;function df(){return Date.now()/lf}const uf=function(){const{performance:e}=Lp;if(!e||!e.now)return df;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/lf}(),pf=(()=>{const{performance:e}=Lp;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;return a||o<t?s<=o?e.timeOrigin:r:i})(),hf="baggage",ff="sentry-",mf=/^sentry-/,gf=8192;function yf(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],i)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?s:`${e},${s}`;return a.length>gf?(Mp&&Bp.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${ff}${t}`]=n),e)),{}))}function vf(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const _f=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function bf(e,t){const n=function(e){if(!e)return;const t=e.match(_f);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),i=function(e){if(!pp(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=vf(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});else{if(!e)return;t=vf(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(mf)&&(e[t.slice(ff.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:s,parentSpanId:a,parentSampled:r}=n||{};return n?{traceId:s||mh(),parentSpanId:a||mh().substring(16),spanId:mh().substring(16),sampled:r,dsc:i||{}}:{traceId:s||mh(),spanId:mh().substring(16)}}function wf(e=mh(),t=mh().substring(16),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${e}-${t}${i}`}function If(e,t=[]){return[e,t]}function xf(e,t){const[n,i]=e;return[n,[...i,t]]}function Ef(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function Sf(e,t){return(t||new TextEncoder).encode(e)}function Af(e,t){const[n,i]=e;let s=JSON.stringify(n);function a(e){"string"==typeof s?s="string"==typeof e?s+e:[Sf(s,t),e]:s.push("string"==typeof e?Sf(e,t):e)}for(const e of i){const[t,n]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Xh(n))}a(e)}}return"string"==typeof s?s:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let i=0;for(const t of e)n.set(t,i),i+=t.length;return n}(s)}function Tf(e,t){const n="string"==typeof e.data?Sf(e.data,t):e.data;return[th({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const kf={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Rf(e){return kf[e]}function Lf(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const Cf=6e4;function Of(e,{statusCode:t,headers:n},i=Date.now()){const s={...e},a=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),a=parseInt(t,10),r=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))s[e]=i+r;else s.all=i+r}else r?s.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?Cf:i-t}(r,i):429===t&&(s.all=i+6e4);return s}const Ff="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Nf="production";function Uf(){return Op("globalEventProcessors",(()=>[]))}function jf(e){Uf().push(e)}function Pf(e,t,n,i=0){return new sf(((s,a)=>{const r=e[i];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},n);Ff&&r.id&&null===o&&Bp.log(`Event processor "${r.id}" dropped event`),yp(o)?o.then((t=>Pf(e,t,n,i+1).then(s))).then(null,a):Pf(e,o,n,i+1).then(s).then(null,a)}}))}function Mf(e){const t=uf(),n={sid:mh(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return th({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Df(n,e),n}function Df(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||uf(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:mh()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function $f(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Df(e,n)}const zf=1;function Bf(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:r,tags:o,origin:c}=Wf(e);return th({data:i,op:s,parent_span_id:a,span_id:t,status:r,tags:o,trace_id:n,origin:c})}function qf(e){const{traceId:t,spanId:n}=e.spanContext();return wf(t,n,Yf(e))}function Vf(e){return"number"==typeof e?Hf(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Hf(e.getTime()):uf()}function Hf(e){return e>9999999999?e/1e3:e}function Wf(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function Yf(e){const{traceFlags:t}=e.spanContext();return Boolean(t&zf)}function Kf(e,t,n,i,s,a){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||n.event_id||mh(),timestamp:t.timestamp||df()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:s,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:Nf);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==s&&(e.dist=s);e.message&&(e.message=wp(e.message,a));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=wp(r.value,a));const o=e.request;o&&o.url&&(o.url=wp(o.url,a))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),void 0===t.type&&function(e,t){const n=Lp._sentryDebugIds;if(!n)return;let i;const s=Gf.get(t);s?i=s:(i=new Map,Gf.set(t,i));const a=Object.keys(n).reduce(((e,s)=>{let a;const r=i.get(s);r?a=r:(a=t(s),i.set(s,a));for(let t=a.length-1;t>=0;t--){const i=a[t];if(i.filename){e[i.filename]=n[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(c,e.stackParser);const d=function(e,t){if(!t)return e;const n=e?e.clone():new hm;return n.update(t),n}(i,n.captureContext);n.mechanism&&_h(c,n.mechanism);const u=s&&s.getEventProcessors?s.getEventProcessors():[],p=function(){pm||(pm=new hm);return pm}().getScopeData();if(a){dm(p,a.getScopeData())}if(d){dm(p,d.getScopeData())}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),lm(c,p);return Pf([...u,...Uf(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof r&&r>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Xh(e.data,t,n)}})))},...e.user&&{user:Xh(e.user,t,n)},...e.contexts&&{contexts:Xh(e.contexts,t,n)},...e.extra&&{extra:Xh(e.extra,t,n)}};e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=Xh(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>{const i=Wf(e).data;return i&&(e.data=Xh(i,t,n)),e})));return i}(e,r,o):e)))}const Gf=new WeakMap;function Jf(e){if(e)return function(e){return e instanceof hm||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Xf.includes(e)))}(e)?{captureContext:e}:e}const Xf=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Qf(e,t){return wm().captureEvent(e,t)}function Zf(e,t){wm().addBreadcrumb(e,t)}function em(){return wm().getClient()}function tm(){return wm().getScope()}function nm(e){const t=em(),n=Im(),i=tm(),{release:s,environment:a=Nf}=t&&t.getOptions()||{},{userAgent:r}=Lp.navigator||{},o=Mf({release:s,environment:a,user:i.getUser()||n.getUser(),...r&&{userAgent:r},...e}),c=n.getSession();return c&&"ok"===c.status&&Df(c,{status:"exited"}),im(),n.setSession(o),i.setSession(o),o}function im(){const e=Im(),t=tm(),n=t.getSession()||e.getSession();n&&$f(n),sm(),e.setSession(),t.setSession()}function sm(){const e=Im(),t=tm(),n=em(),i=t.getSession()||e.getSession();i&&n&&n.captureSession&&n.captureSession(i)}function am(e=!1){e?im():sm()}function rm(e){return e.transaction}function om(e,t,n){const i=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},r=th({environment:i.environment||Nf,release:i.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}function cm(e){const t=em();if(!t)return{};const n=om(Wf(e).trace_id||"",t,tm()),i=rm(e);if(!i)return n;const s=i&&i._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:r}=i.metadata;null!=a&&(n.sample_rate=`${a}`);const o=Wf(i);return r&&"url"!==r&&(n.transaction=o.description),n.sampled=String(Yf(i)),t.emit&&t.emit("createDsc",n),n}function lm(e,t){const{fingerprint:n,span:i,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,transactionName:o}=t,c=th(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=th(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const d=th(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const u=th(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts});r&&(e.level=r);o&&(e.transaction=o)}(e,t),i&&function(e,t){e.contexts={trace:Bf(t),...e.contexts};const n=rm(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:cm(t),...e.sdkProcessingMetadata};const i=Wf(n).description;i&&(e.tags={transaction:i,...e.tags})}}(e,i),function(e,t){e.fingerprint=e.fingerprint?wh(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function dm(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:l,eventProcessors:d,attachments:u,propagationContext:p,transactionName:h,span:f}=t;um(e,"extra",n),um(e,"tags",i),um(e,"user",s),um(e,"contexts",a),um(e,"sdkProcessingMetadata",o),r&&(e.level=r),h&&(e.transactionName=h),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...p}}function um(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[t][i]=n[i])}}let pm,hm=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=fm()}static clone(t){return t?t.clone():new e}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Df(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):mp(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=fm(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:df(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:i,_extra:s,_user:a,_level:r,_fingerprint:o,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:u,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:i,extra:s,user:a,level:r,fingerprint:o||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:d,transactionName:u,span:p}}applyToEvent(e,t={},n=[]){lm(e,this.getScopeData());return Pf([...n,...Uf(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:mh();if(!this._client)return Bp.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:mh();if(!this._client)return Bp.warn("No client configured on scope - will not capture message!"),i;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:mh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Bp.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}};function fm(){return{traceId:mh(),spanId:mh().substring(16)}}const mm="7.101.0",gm=parseFloat(mm),ym=100;let vm=class{constructor(e,t,n,i=gm){let s,a;this._version=i,t?s=t:(s=new hm,s.setClient(e)),n?a=n:(a=new hm,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return yp(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:mh(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:mh(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:mh();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=ym}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const r={timestamp:df(),...e},o=s?zp((()=>s(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=bm(this);try{e(this)}finally{bm(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Ff&&Bp.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(Ff&&!n){this.getClient()?Bp.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Bp.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&$f(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:s=Nf}=n&&n.getOptions()||{},{userAgent:a}=Lp.navigator||{},r=Mf({release:i,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Df(o,{status:"exited"}),this.endSession(),t.setSession(r),r}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=_m().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Ff&&Bp.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function _m(){return Lp.__SENTRY__=Lp.__SENTRY__||{extensions:{},hub:void 0},Lp}function bm(e){const t=_m(),n=xm(t);return Em(t,e),n}function wm(){const e=_m();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=_m()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!xm(e).isOlderThan(gm)||Em(e,new vm);var t;return xm(e)}(e)}function Im(){return wm().getIsolationScope()}function xm(e){return Op("hub",(()=>new vm),e)}function Em(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function Sm(e){return(e||wm()).getScope().getTransaction()}let Am=!1;function Tm(){const e=Sm();if(e){const t="internal_error";Ff&&Bp.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var km;function Rm(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);"unknown_error"!==n&&e.setStatus(n)}function Lm(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=em(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Cm(e){if(!Lm())return;const t=function(e){if(e.startTime){const t={...e};return t.startTimestamp=Vf(e.startTime),delete t.startTime,t}return e}(e),n=wm(),i=e.scope?e.scope.getSpan():Om();if(e.onlyIfParent&&!i)return;const s=Im(),a=tm();let r;if(i)r=i.startChild(t);else{const{traceId:e,dsc:i,parentSpanId:o,sampled:c}={...s.getPropagationContext(),...a.getPropagationContext()};r=n.startTransaction({traceId:e,parentSpanId:o,parentSampled:c,...t,metadata:{dynamicSamplingContext:i,...t.metadata}})}return function(e,t,n){e&&(Gp(e,Nm,n),Gp(e,Fm,t))}(r,a,s),r}function Om(){return tm().getSpan()}Tm.tag="sentry_tracingErrorCallback",function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(km||(km={}));const Fm="_sentryScope",Nm="_sentryIsolationScope";const Um="sentry.source",jm="sentry.sample_rate",Pm="sentry.op",Mm="sentry.origin";class Dm{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class $m{constructor(e={}){this._traceId=e.traceId||mh(),this._spanId=e.spanId||mh().substring(16),this._startTime=e.startTimestamp||uf(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Mm]:e.origin||"manual",[Pm]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp)}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[Pm]}set op(e){this.setAttribute(Pm,e)}get origin(){return this._attributes[Mm]}set origin(e){this.setAttribute(Mm,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?zf:0}}startChild(e){const t=new $m({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=rm(this);if(t.transaction=n,Ff&&n){const i=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${Wf(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;Bp.log(i),this._logMessage=i}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Rm(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=rm(this);if(Ff&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&Bp.log(e.replace("Starting","Finishing"))}this._endTime=Vf(e)}toTraceparent(){return qf(this)}toContext(){return th({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return Bf(this)}getSpanJSON(){return th({data:this._getData(),description:this._name,op:this._attributes[Pm],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Mm],_metrics_summary:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,i=Object.keys(t).length>0;if(n||i)return n&&i?{...e,...t}:n?e:t}}class zm extends $m{constructor(e,t){super(e),this._measurements={},this._contexts={},this._hub=t||wm(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Um]&&{source:this._attributes[Um]},...this._attributes[jm]&&{sampleRate:this._attributes[jm]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(Um,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Dm(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=Vf(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return th({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return cm(this)}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(Ff&&Bp.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return Ff&&Bp.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&Wf(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>Wf(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:i,isolationScope:s}={scope:(a=this)[Fm],isolationScope:a[Nm]};var a;const{metadata:r}=this,{source:o}=r,c={contexts:{...this._contexts,trace:Bf(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...r,capturedSpanScope:i,capturedSpanIsolationScope:s,dynamicSamplingContext:cm(this)},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(Ff&&Bp.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),Ff&&Bp.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const Bm={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},qm=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Vm extends Dm{constructor(e,t,n,i){super(i),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===Wf(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Hm extends zm{constructor(e,t,n=Bm.idleTimeout,i=Bm.finalTimeout,s=Bm.heartbeatInterval,a=!1,r=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=s,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=qm[4],this._autoFinishAllowed=!r,a&&(Ff&&Bp.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),r||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=qm[3],this.end())}),this._finalTimeout)}end(e){const t=Vf(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){Ff&&Bp.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;Wf(e).timestamp||(e.setStatus("cancelled"),e.end(t),Ff&&Bp.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:i}=Wf(e),s=n&&n<t,a=(this._finalTimeout+this._idleTimeout)/1e3,r=i&&n&&i-n<a;if(Ff){const t=JSON.stringify(e,void 0,2);s?r||Bp.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):Bp.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return s&&r})),Ff&&Bp.log("[Tracing] flushing IdleTransaction")}else Ff&&Bp.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Vm(t,n,this.spanContext().spanId,e),Ff&&Bp.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=qm[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Ff&&Bp.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=qm[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Ff&&Bp.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Ff&&Bp.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Ff&&Bp.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Ff&&Bp.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=uf();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=qm[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Ff&&Bp.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=qm[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Ff&&Bp.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Wm(e,t,n){if(!Lm(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(jm,Number(e.sampled)),e;let i;return"function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setAttribute(jm,Number(i))):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setAttribute(jm,Number(i))):(i=1,e.setAttribute(jm,i)),function(e){if(vp(e)||"number"!=typeof e&&"boolean"!=typeof e)return Ff&&Bp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1;if(e<0||e>1)return Ff&&Bp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(i)?i?(e.sampled=Math.random()<i,e.sampled?(Ff&&Bp.log(`[Tracing] starting ${e.op} transaction - ${Wf(e).description}`),e):(Ff&&Bp.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(Ff&&Bp.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(Ff&&Bp.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Ym(){const e=this.getScope().getSpan();return e?{"sentry-trace":qf(e)}:{}}function Km(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},s=i.instrumenter||"sentry",a=e.instrumenter||"sentry";s!==a&&(Ff&&Bp.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let r=new zm(e,this);return r=Wm(r,i,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),r.isRecording()&&r.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",r),r}function Gm(e,t,n,i,s,a,r,o=!1){const c=e.getClient(),l=c&&c.getOptions()||{};let d=new Hm(t,e,n,i,r,s,o);return d=Wm(d,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),d.isRecording()&&d.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",d),d}function Jm(){const e=_m();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Km),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Ym),Am||(Am=!0,Ph(Tm),$h(Tm)))}function Xm(e,t,n,i){const s=Lf(n),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const r=function(e,t,n,i){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:Vp(i)},...s&&{trace:th({...s})}}}(e,s,i,t);delete e.sdkProcessingMetadata;return If(r,[[{type:a},e]])}const Qm="7";function Zm(e,t){return n={sentry_key:e.publicKey,sentry_version:Qm,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}const eg=[];function tg(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(n)?[...t,...n]:"function"==typeof n?wh(n(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(i),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(s,(e=>"Debug"===e.name));if(-1!==a){const[e]=s.splice(a,1);s.push(e)}return s}function ng(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function ig(e,t,n){if(n[t.name])Ff&&Bp.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===eg.indexOf(t.name)&&(t.setupOnce(jf,wm),eg.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,i)=>n(t,i,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign(((t,i)=>n(t,i,e)),{id:t.name});e.addEventProcessor(i)}Ff&&Bp.log(`Integration installed: ${t.name}`)}}function sg(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function ag(e,t,n,i){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),i&&t&&(s.dsn=Vp(t));const a=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),i=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return If(s,[a])}const rg="Not capturing exception because it's already been captured.";class og{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Wp(e.dsn):Ff&&Bp.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${Zm(e,i)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(bh(e))return void(Ff&&Bp.log(rg));let i=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{i=e}))),i}captureMessage(e,t,n,i){let s=n&&n.event_id;const a=hp(e)?e:String(e),r=fp(e)?this.eventFromMessage(a,t,n):this.eventFromException(e,n);return this._process(r.then((e=>this._captureEvent(e,n,i))).then((e=>{s=e}))),s}captureEvent(e,t,n){if(t&&t.originalException&&bh(t.originalException))return void(Ff&&Bp.log(rg));let i=t&&t.event_id;const s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,s||n).then((e=>{i=e}))),i}captureSession(e){"string"!=typeof e.release?Ff&&Bp.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Df(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):tf(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Ff&&Bp.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];ig(this,e,this._integrations),t||ng(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Xm(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=xf(n,Tf(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,i){const s=Lf(n);return If({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!i&&t&&{dsn:Vp(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;Ff&&Bp.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){Ff&&Bp.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=ag(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&ig(e,t,n)})),n}(this,e),ng(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,i=!1;const s=t.exception&&t.exception.values;if(s){i=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&n)&&(Df(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new sf((t=>{let n=0;const i=setInterval((()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(n+=1,e&&n>=e&&(clearInterval(i),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,i=Im()){const s=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),Kf(s,e,t,n,this,i).then((e=>{if(null===e)return e;const t={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:i,spanId:s,parentSpanId:a,dsc:r}=t;e.contexts={trace:{trace_id:i,span_id:s,parent_span_id:a},...e.contexts};const o=r||om(i,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Ff){const t=e;"log"===t.logLevel?Bp.log(t.message):Bp.warn(t)}}))}_processEvent(e,t,n){const i=this.getOptions(),{sampleRate:s}=i,a=lg(e),r=cg(e),o=e.type||"error",c=`before send for type \`${o}\``;if(r&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),nf(new Yp(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const l="replay_event"===o?"replay":o,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Yp("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const s=function(e,t,n){const{beforeSend:i,beforeSendTransaction:s}=e;if(cg(t)&&i)return i(t,n);if(lg(t)&&s)return s(t,n);return t}(i,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(yp(e))return e.then((e=>{if(!mp(e)&&null!==e)throw new Yp(n);return e}),(e=>{throw new Yp(`${t} rejected with ${e}`)}));if(!mp(e)&&null!==e)throw new Yp(n);return e}(s,c)})).then((i=>{if(null===i)throw this.recordDroppedEvent("before_send",l,e),new Yp(`${c} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!a&&s&&this._updateSessionFromEvent(s,i);const r=i.transaction_info;if(a&&r&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...r,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(e instanceof Yp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Yp(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Ff&&Bp.error("Error while sending event:",e)}));Ff&&Bp.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,i]=t.split(":");return{reason:n,category:i,quantity:e[t]}}))}}function cg(e){return void 0===e.type}function lg(e){return"transaction"===e.type}function dg(e,t){!0===t.debug&&(Ff?Bp.enable():zp((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));tm().update(t.initialScope);const n=new e(t);!function(e){const t=wm().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}const ug=30;function pg(e,t,n=af(e.bufferSize||ug)){let i={};function s(s){const a=[];if(Ef(s,((t,n)=>{const s=Rf(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,s)){const i=hg(t,n);e.recordDroppedEvent("ratelimit_backoff",s,i)}else a.push(t)})),0===a.length)return tf();const r=If(s[0],a),o=t=>{Ef(r,((n,i)=>{const s=hg(n,i);e.recordDroppedEvent(t,Rf(i),s)}))};return n.add((()=>t({body:Af(r,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Ff&&Bp.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Of(i,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Yp)return Ff&&Bp.error("Skipped sending event because buffer is full."),o("queue_overflow"),tf();throw e}))}return s.__sentry__baseTransport__=!0,{send:s,flush:e=>n.drain(e)}}function hg(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const fg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],mg=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],gg="InboundFilters",yg=(e={})=>({name:gg,setupOnce(){},processEvent(t,n,i){const s=i.getOptions(),a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:fg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:mg],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,s);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return Ff&&Bp.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${yh(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));Ff&&0===t.length&&Bp.error(`Could not extract message for event ${yh(e)}`);return t}(e).some((e=>Ep(e,t)))}(e,t.ignoreErrors))return Ff&&Bp.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${yh(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Ep(n,t)}(e,t.ignoreTransactions))return Ff&&Bp.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${yh(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=vg(e);return!!n&&Ep(n,t)}(e,t.denyUrls))return Ff&&Bp.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${yh(e)}.\nUrl: ${vg(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=vg(e);return!n||Ep(n,t)}(e,t.allowUrls))return Ff&&Bp.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${yh(e)}.\nUrl: ${vg(e)}`),!0;return!1}(t,a)?null:t}});function vg(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return Ff&&Bp.error(`Cannot extract url for event ${yh(e)}`),null}}let _g;sg(gg,yg);const bg="FunctionToString",wg=new WeakMap,Ig=()=>({name:bg,setupOnce(){_g=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Xp(this),n=wg.has(em())&&void 0!==t?t:this;return _g.apply(n,e)}}catch(e){}},setup(e){wg.set(e,!0)}});sg(bg,Ig);const xg="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Eg=Lp;const Sg=(e,t,n)=>{let i,s;return a=>{t.value>=0&&(a||n)&&(s=t.value-(i||0),(s||void 0===i)&&(i=t.value,t.delta=s,e(t)))}},Ag=()=>Eg.__WEB_VITALS_POLYFILL__?Eg.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=Eg.performance.timing,t=Eg.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):Eg.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Tg=()=>{const e=Ag();return e&&e.activationStart||0},kg=(e,t)=>{const n=Ag();let i="navigate";return n&&(i=Eg.document.prerendering||Tg()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},Rg=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{t(e.getEntries())}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},Lg=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==Eg.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Cg=e=>{const t=kg("CLS",0);let n,i=0,s=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const a=s[0],r=s[s.length-1];i&&0!==s.length&&e.startTime-r.startTime<1e3&&e.startTime-a.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e]),i>t.value&&(t.value=i,t.entries=s,n&&n())}}))},r=Rg("layout-shift",a);if(r){n=Sg(e,t);const i=()=>{a(r.takeRecords()),n(!0)};return Lg(i),i}};let Og=-1;const Fg=()=>(Og<0&&(Og="hidden"!==Eg.document.visibilityState||Eg.document.prerendering?1/0:0,Lg((({timeStamp:e})=>{Og=e}),!0)),{get firstHiddenTime(){return Og}}),Ng=e=>{const t=Fg(),n=kg("FID");let i;const s=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),i(!0))},a=e=>{e.forEach(s)},r=Rg("first-input",a);i=Sg(e,n),r&&Lg((()=>{a(r.takeRecords()),r.disconnect()}),!0)},Ug={},jg=e=>{const t=Fg(),n=kg("LCP");let i;const s=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-Tg(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[s],i())}},a=Rg("largest-contentful-paint",s);if(a){i=Sg(e,n);const t=()=>{Ug[n.id]||(s(a.takeRecords()),a.disconnect(),Ug[n.id]=!0,i(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),Lg(t,!0),t}},Pg={},Mg={};let Dg,$g,zg;function Bg(e,t){return Kg(e,t),Mg[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);Rg(e,(t=>{qg(e,{entries:t})}),t)}(e),Mg[e]=!0),Gg(e,t)}function qg(e,t){const n=Pg[e];if(n&&n.length)for(const i of n)try{i(t)}catch(t){xg&&Bp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ch(i)}\nError:`,t)}}function Vg(){return Cg((e=>{qg("cls",{metric:e}),Dg=e}))}function Hg(){return Ng((e=>{qg("fid",{metric:e}),$g=e}))}function Wg(){return jg((e=>{qg("lcp",{metric:e}),zg=e}))}function Yg(e,t,n,i,s=!1){let a;return Kg(e,t),Mg[e]||(a=n(),Mg[e]=!0),i&&t({metric:i}),Gg(e,t,s?a:void 0)}function Kg(e,t){Pg[e]=Pg[e]||[],Pg[e].push(t)}function Gg(e,t,n){return()=>{n&&n();const i=Pg[e];if(!i)return;const s=i.indexOf(t);-1!==s&&i.splice(s,1)}}function Jg(e){return"number"==typeof e&&isFinite(e)}function Xg(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Qg=2147483647;function Zg(e){return e/1e3}function ey(){return Eg&&Eg.addEventListener&&Eg.performance}let ty,ny,iy=0,sy={};function ay(){const e=ey();if(e&&pf){e.mark&&Eg.performance.mark("sentry-tracing-init");const t=Yg("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Zg(pf),i=Zg(t.startTime);xg&&Bp.log("[Measurements] Adding FID"),sy.fid={value:e.value,unit:"millisecond"},sy["mark.fid"]={value:n+i,unit:"second"}}),Hg,$g),n=function(e,t=!1){return Yg("cls",e,Vg,Dg,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(xg&&Bp.log("[Measurements] Adding CLS"),sy.cls={value:e.value,unit:""},ny=t)}),!0),i=function(e,t=!1){return Yg("lcp",e,Wg,zg,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(xg&&Bp.log("[Measurements] Adding LCP"),sy.lcp={value:e.value,unit:"millisecond"},ty=t)}),!0);return()=>{t(),n(),i()}}return()=>{}}function ry(e){const t=ey();if(!t||!Eg.performance.getEntries||!pf)return;xg&&Bp.log("[Tracing] Adding & adjusting spans using Performance API");const n=Zg(pf),i=t.getEntries();let s,a;const{op:r,start_timestamp:o}=Wf(e);if(i.slice(iy).forEach((t=>{const i=Zg(t.startTime),r=Zg(t.duration);if(!("navigation"===e.op&&o&&n+i<o))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{oy(e,t,i,n)})),oy(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),oy(e,t,"fetch",n,"cache","domainLookupStart"),oy(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Xg(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Zg(t.requestStart),endTimestamp:n+Zg(t.responseEnd)}),Xg(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Zg(t.responseStart),endTimestamp:n+Zg(t.responseEnd)}))}(e,t,n)}(e,t,n),s=n+Zg(t.responseStart),a=n+Zg(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,i,s){const a=s+n,r=a+i;Xg(e,{description:t.name,endTimestamp:r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})}(e,t,i,r,n);const s=Fg(),a=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&a&&(xg&&Bp.log("[Measurements] Adding FP"),sy.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(xg&&Bp.log("[Measurements] Adding FCP"),sy.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,i,s,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const r=rf(n),o={};cy(o,t,"transferSize","http.response_transfer_size"),cy(o,t,"encodedBodySize","http.response_content_length"),cy(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus);r.protocol&&(o["url.scheme"]=r.protocol.split(":").pop());r.host&&(o["server.address"]=r.host);o["url.same_origin"]=n.includes(Eg.location.origin);const c=a+i,l=c+s;Xg(e,{description:n.replace(Eg.location.origin,""),endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}(e,t,t.name,i,r,n)}})),iy=Math.max(i.length-1,0),function(e){const t=Eg.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Jg(n.rtt)&&(sy["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Jg(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);Jg(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===r){!function(e,t,n,i){"number"==typeof t&&i&&(xg&&Bp.log("[Measurements] Adding TTFB"),e.ttfb={value:1e3*Math.max(t-i,0),unit:"millisecond"},"number"==typeof n&&n<=t&&(e["ttfb.requestTime"]={value:1e3*(t-n),unit:"millisecond"}))}(sy,s,a,o),["fcp","fp","lcp"].forEach((e=>{if(!sy[e]||!o||n>=o)return;const t=sy[e].value,i=n+Zg(t),s=Math.abs(1e3*(i-o)),a=s-t;xg&&Bp.log(`[Measurements] Normalized ${e} from ${t} to ${s} (${a})`),sy[e].value=s}));const t=sy["mark.fid"];t&&sy.fid&&(Xg(e,{description:"first input delay",endTimestamp:t.value+Zg(sy.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete sy["mark.fid"]),"fcp"in sy||delete sy.cls,Object.keys(sy).forEach((e=>{!function(e,t,n){const i=Sm();i&&i.setMeasurement(e,t,n)}(e,sy[e].value,sy[e].unit)})),function(e){ty&&(xg&&Bp.log("[Measurements] Adding LCP Data"),ty.element&&e.setTag("lcp.element",Up(ty.element)),ty.id&&e.setTag("lcp.id",ty.id),ty.url&&e.setTag("lcp.url",ty.url.trim().slice(0,200)),e.setTag("lcp.size",ty.size));ny&&ny.sources&&(xg&&Bp.log("[Measurements] Adding CLS Data"),ny.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,Up(t.node)))))}(e)}ty=void 0,ny=void 0,sy={}}function oy(e,t,n,i,s,a){const r=a?t[a]:t[`${n}End`],o=t[`${n}Start`];o&&r&&Xg(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:i+Zg(o),endTimestamp:i+Zg(r)})}function cy(e,t,n,i){const s=t[n];null!=s&&s<Qg&&(e[i]=s)}function ly(e,t,n,i,s="auto.http.browser"){if(!Lm()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const n=i[t];if(n){if(e.response){Rm(n,e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length");if(t){const e=parseInt(t);e>0&&n.setAttribute("http.response_content_length",e)}}else e.error&&n.setStatus("internal_error");n.end(),delete i[t]}return}const r=tm(),o=em(),{method:c,url:l}=e.fetchData,d=a?Cm({name:`${c} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":c,[Mm]:s},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,i[d.spanContext().spanId]=d),n(e.fetchData.url)&&o){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,i,s){const a=s||n.getSpan(),r=Im(),{traceId:o,spanId:c,sampled:l,dsc:d}={...r.getPropagationContext(),...n.getPropagationContext()},u=a?qf(a):wf(o,c,l),p=yf(d||(a?cm(a):om(o,t,n))),h=i.headers||("undefined"!=typeof Request&&_p(e,Request)?e.headers:void 0);if(h){if("undefined"!=typeof Headers&&_p(h,Headers)){const e=new Headers(h);return e.append("sentry-trace",u),p&&e.append(hf,p),e}if(Array.isArray(h)){const e=[...h,["sentry-trace",u]];return p&&e.push([hf,p]),e}{const e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...h,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:p}}(t,o,r,n,d)}return d}const dy=["localhost",/^\/(?!\/)/],uy={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:dy,tracePropagationTargets:dy};function py(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:i,tracingOrigins:s,shouldCreateSpanForRequest:a,enableHTTPTimings:r}={traceFetch:uy.traceFetch,traceXHR:uy.traceXHR,...e},o="function"==typeof a?a:e=>!0,c=e=>function(e,t){return Ep(e,t||dy)}(e,i||s),l={};t&&Oh((e=>{const t=ly(e,o,c,l);r&&t&&hy(t)})),n&&Gh((e=>{const t=function(e,t,n,i){const s=e.xhr,a=s&&s[Kh];if(!Lm()||!s||s.__sentry_own_request__||!a)return;const r=t(a.url);if(e.endTimestamp&&r){const e=s.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&void 0!==a.status_code&&(Rm(t,a.status_code),t.end(),delete i[e]))}const o=tm(),c=Im(),l=r?Cm({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[Mm]:"auto.http.browser"},op:"http.client"}):void 0;l&&(s.__sentry_xhr_span_id__=l.spanContext().spanId,i[s.__sentry_xhr_span_id__]=l);const d=em();if(s.setRequestHeader&&n(a.url)&&d){const{traceId:e,spanId:t,sampled:n,dsc:i}={...c.getPropagationContext(),...o.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(hf,n)}catch(e){}}(s,l?qf(l):wf(e,t,n),yf(i||(l?cm(l):om(e,d,o))))}return l}(e,o,c,l);r&&t&&hy(t)}))}function hy(e){const{url:t}=Wf(e).data||{};if(!t||"string"!=typeof t)return;const n=Bg("resource",(({entries:i})=>{i.forEach((i=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(i)&&i.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",i="";for(const s of e){if("/"===s){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t="h"===i?"http":i,n=e.split(i)[1];break}i+=s}i===e&&(t=i);return{name:t,version:n}}(e.nextHopProtocol),i=[];if(i.push(["network.protocol.version",n],["network.protocol.name",t]),!pf)return i;return[...i,["http.request.redirect_start",fy(e.redirectStart)],["http.request.fetch_start",fy(e.fetchStart)],["http.request.domain_lookup_start",fy(e.domainLookupStart)],["http.request.domain_lookup_end",fy(e.domainLookupEnd)],["http.request.connect_start",fy(e.connectStart)],["http.request.secure_connection_start",fy(e.secureConnectionStart)],["http.request.connection_end",fy(e.connectEnd)],["http.request.request_start",fy(e.requestStart)],["http.request.response_start",fy(e.responseStart)],["http.request.response_end",fy(e.responseEnd)]]}(i);t.forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function fy(e=0){return((pf||performance.timeOrigin)+e)/1e3}const my={...Bm,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,_experiments:{},...uy},gy=(e={})=>{const t=!!xg&&!(!e.tracePropagationTargets&&!e.tracingOrigins);Jm(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...my,...e},i=ay();let s,a;function r(e){const t=wm(),{beforeStartSpan:r,idleTimeout:o,finalTimeout:c,heartbeatInterval:l}=n,d="pageload"===e.op;let u;if(d){const t=d?yy("sentry-trace"):"",n=d?yy("baggage"):void 0,{traceId:i,dsc:s,parentSpanId:a,sampled:r}=bf(t,n);u={traceId:i,parentSpanId:a,parentSampled:r,...e,metadata:{...e.metadata,dynamicSamplingContext:s},trimEnd:!0}}else u={trimEnd:!0,...e};const p=r?r(u):u;p.metadata=p.name!==u.name?{...p.metadata,source:"custom"}:p.metadata,s=p.name,a=function(e){const t=e.attributes&&e.attributes[Um],n=e.data&&e.data[Um],i=e.metadata&&e.metadata.source;return t||n||i}(p),!1===p.sampled&&xg&&Bp.log(`[Tracing] Will not send ${p.op} transaction because of beforeNavigate.`),xg&&Bp.log(`[Tracing] Starting ${p.op} transaction on scope`);const{location:h}=Eg,f=Gm(t,p,o,c,!0,{location:h},l,d);return d&&(Eg.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(Eg.document.readyState)&&f.sendAutoFinishSignal()})),["interactive","complete"].includes(Eg.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback((e=>{i(),ry(e)})),f}return n.enableLongTask&&Bg("longtask",(({entries:e})=>{for(const t of e){const e=Sm();if(!e)return;const n=Zg(pf+t.startTime),i=Zg(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})),n._experiments.enableInteractions&&Bg("event",(({entries:e})=>{for(const t of e){const e=Sm();if(!e)return;if("click"===t.name){const n=Zg(pf+t.startTime),i=Zg(t.duration),s={description:Up(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i},a=Pp(t.target);a&&(s.attributes={"ui.component_name":a}),e.startChild(s)}}})),{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const i=e.getOptions(),{markBackgroundSpan:o,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:u,_experiments:p}=n,h=i&&i.tracePropagationTargets,f=h||n.tracePropagationTargets;let m;xg&&t&&h&&Bp.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=Eg.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{m&&(xg&&Bp.log(`[Tracing] Finishing current transaction with op: ${Wf(m).op}`),m.end()),m=r({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{m&&(xg&&Bp.log(`[Tracing] Finishing current transaction with op: ${Wf(m).op}`),m.end()),m=r({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit){const t={name:Eg.location.pathname,startTimestamp:pf?pf/1e3:void 0,origin:"auto.pageload.browser",attributes:{[Um]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=Om();n&&Wf(n).op}(e,t)}n.instrumentNavigation&&e.emit&&Hh((({to:t,from:n})=>{if(void 0===n&&g&&-1!==g.indexOf(t))g=void 0;else if(n!==t){g=void 0;const t={name:Eg.location.pathname,origin:"auto.navigation.browser",attributes:{[Um]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=Om();n&&Wf(n).op}(e,t)}})),o&&(Eg&&Eg.document?Eg.document.addEventListener("visibilitychange",(()=>{const e=Sm();if(Eg.document.hidden&&e){const t="cancelled",{op:n,status:i}=Wf(e);xg&&Bp.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),i||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):xg&&Bp.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&function(e,t,n){let i;const s=()=>{const{idleTimeout:s,finalTimeout:a,heartbeatInterval:r}=e,o="ui.action.click",c=Sm();if(c&&c.op&&["navigation","pageload"].includes(c.op))return void(xg&&Bp.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(i&&(i.setFinishReason("interactionInterrupted"),i.end(),i=void 0),!t)return void(xg&&Bp.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const{location:l}=Eg,d={name:t,op:o,trimEnd:!0,data:{[Um]:n||"url"}};i=Gm(wm(),d,s,a,!0,{location:l},r)};["click"].forEach((e=>{addEventListener(e,s,{once:!1,capture:!0})}))}(n,s,a),py({traceFetch:c,traceXHR:l,tracePropagationTargets:f,shouldCreateSpanForRequest:d,enableHTTPTimings:u})},options:n}};function yy(e){const t=(n=`meta[name=${e}]`,Fp.document&&Fp.document.querySelector?Fp.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}const vy=Lp;let _y=0;function by(){return _y>0}function wy(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(Xp(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=i.map((e=>wy(e,t)));return e.apply(this,s)}catch(e){throw _y++,setTimeout((()=>{_y--})),function(...e){const t=wm();if(2===e.length){const[n,i]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,i(n)))):t.withScope(i)}t.withScope(e[0])}((n=>{var s,a;n.addEventProcessor((e=>(t.mechanism&&(vh(e,void 0,void 0),_h(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),s=e,wm().captureException(s,Jf(a))})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}Jp(i,e),Gp(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}const Iy="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function xy(e,t){const n=Sy(e,t),i={type:t&&t.name,value:Ty(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Ey(e,t){return{exception:{values:[xy(e,t)]}}}function Sy(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Ay.test(e.message))return 1}return 0}(t);try{return e(n,i)}catch(e){}return[]}const Ay=/Minified React error #\d+;/i;function Ty(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ky(e,t,n,i,s){let a;if(dp(t)&&t.error){return Ey(e,t.error)}if(up(t)||lp(t,"DOMException")){const s=t;if("stack"in t)a=Ey(e,t);else{const t=s.name||(up(s)?"DOMError":"DOMException"),r=s.message?`${t}: ${s.message}`:t;a=Ry(e,r,n,i),vh(a,r)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}if(cp(t))return Ey(e,t);if(mp(t)||gp(t)){return a=function(e,t,n,i){const s=em(),a=s&&s.getOptions().normalizeDepth,r={exception:{values:[{type:gp(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:Ly(t,{isUnhandledRejection:i})}]},extra:{__serialized__:Qh(t,a)}};if(n){const t=Sy(e,n);t.length&&(r.exception.values[0].stacktrace={frames:t})}return r}(e,t,n,s),_h(a,{synthetic:!0}),a}return a=Ry(e,t,n,i),vh(a,`${t}`,void 0),_h(a,{synthetic:!0}),a}function Ry(e,t,n,i){const s={};if(i&&n){const i=Sy(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(hp(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return s.logentry={message:e,params:n},s}return s.message=t,s}function Ly(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Qp(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return wp(n[0],t);for(let e=n.length;e>0;e--){const i=n.slice(0,e).join(", ");if(!(i.length>t))return e===n.length?i:wp(i,t)}return""}(e),i=t?"promise rejection":"exception";if(dp(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(gp(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}class Cy extends og{constructor(e){!function(e,t,n=[t],i="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${i}:@sentry/${e}`,version:mm}))),version:mm}),e._metadata=s}(e,"browser",["browser"],vy.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&vy.document&&vy.document.addEventListener("visibilitychange",(()=>{"hidden"===vy.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,i){const s=ky(e,t,n&&n.syntheticException||void 0,i);return _h(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),tf(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,s){const a=Ry(e,t,i&&i.syntheticException||void 0,s);return a.level=n,i&&i.event_id&&(a.event_id=i.event_id),tf(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Iy&&Bp.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:i}){const s={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:Vp(i)}},a=function(e){return[{type:"user_report"},e]}(e);return If(s,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(Iy&&Bp.log("No outcomes to send"));if(!this._dsn)return void(Iy&&Bp.log("No dsn provided, will not send outcomes"));Iy&&Bp.log("Sending outcomes:",e);const t=(n=e,If((i=this._options.tunnel&&Vp(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:s||df(),discarded_events:n}]]));var n,i,s;this._sendEnvelope(t)}}let Oy;function Fy(e,t=function(){if(Oy)return Oy;if(Ch(vy.fetch))return Oy=vy.fetch.bind(vy);const e=vy.document;let t=vy.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(e){Iy&&Bp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Oy=t.bind(vy)}()){let n=0,i=0;return pg(e,(function(s){const a=s.body.length;n+=a,i++;const r={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,r).then((e=>(n-=a,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Oy=void 0,n-=a,i--,nf(e)}}))}const Ny=4;function Uy(e){return pg(e,(function(t){return new sf(((n,i)=>{const s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=()=>{s.readyState===Ny&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&s.setRequestHeader(t,e.headers[t]);s.send(t.body)}))}))}const jy="?";function Py(e,t,n,i){const s={filename:e,function:t,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==i&&(s.colno=i),s}const My=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Dy=/\((\S*)(?::(\d+))(?::(\d+))\)/,$y=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zy=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,By=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qy=rh(...[[30,e=>{const t=My.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Dy.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Vy(t[1]||jy,t[2]);return Py(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=$y.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=zy.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||jy;return[n,e]=Vy(n,e),Py(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=By.exec(e);return t?Py(t[2],t[1]||jy,+t[3],t[4]?+t[4]:void 0):void 0}]]),Vy=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:jy,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Hy=1024,Wy="Breadcrumbs",Yy=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Wy,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";uh(t,e),ph(t,fh)}(function(e){return function(t){if(em()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:cf(t.level),message:Ip(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${Ip(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Zf(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(em()!==e)return;let i,s,a="object"==typeof t?t.serializeAttribute:void 0,r="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;r&&r>Hy&&(Iy&&Bp.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${r} was configured. Sentry will use 1024 instead.`),r=Hy),"string"==typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=Up(t,{keyAttrs:a,maxStringLength:r}),s=Pp(t)}catch(e){i="<unknown>"}if(0===i.length)return;const o={category:`ui.${n.name}`,message:i};s&&(o.data={"ui.component_name":s}),Zf(o,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),uh("dom",n),ph("dom",Th)),t.xhr&&Gh(function(e){return function(t){if(em()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,s=t.xhr[Kh];if(!n||!i||!s)return;const{method:a,url:r,status_code:o,body:c}=s;Zf({category:"xhr",data:{method:a,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:i})}}(e)),t.fetch&&Oh(function(e){return function(t){if(em()!==e)return;const{startTimestamp:n,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Zf({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:i})}else{const e=t.response;Zf({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:i})}}}(e)),t.history&&Hh(function(e){return function(t){if(em()!==e)return;let n=t.from,i=t.to;const s=rf(vy.location.href);let a=n?rf(n):void 0;const r=rf(i);a&&a.path||(a=s),s.protocol===r.protocol&&s.host===r.host&&(i=r.relative),s.protocol===a.protocol&&s.host===a.host&&(n=a.relative),Zf({category:"navigation",data:{from:n,to:i}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){em()===e&&Zf({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:yh(t)},{event:t})}}(e))}}};sg(Wy,Yy);const Ky="Dedupe",Gy=()=>{let e;return{name:Ky,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,i=t.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!Xy(e,t))return!1;if(!Jy(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Qy(t),i=Qy(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!Xy(e,t))return!1;if(!Jy(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return Iy&&Bp.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Jy(e,t){let n=Zy(e),i=Zy(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let e=0;e<i.length;e++){const t=i[e],s=n[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function Xy(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(e){return!1}}function Qy(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Zy(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}sg(Ky,Gy);const ev="GlobalHandlers",tv=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:ev,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){Ph((t=>{const{stackParser:n,attachStacktrace:i}=sv();if(em()!==e||by())return;const{msg:s,url:a,line:r,column:o,error:c}=t,l=void 0===c&&pp(s)?function(e,t,n,i){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=dp(e)?e.message:e,r="Error";const o=a.match(s);o&&(r=o[1],a=o[2]);const c={exception:{values:[{type:r,value:a}]}};return nv(c,t,n,i)}(s,a,r,o):nv(ky(n,c||s,void 0,i,!1),a,r,o);l.level="error",Qf(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),iv("onerror")),t.onunhandledrejection&&(!function(e){$h((t=>{const{stackParser:n,attachStacktrace:i}=sv();if(em()!==e||by())return;const s=function(e){if(fp(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),a=fp(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:ky(n,s,void 0,i,!0);a.level="error",Qf(a,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),iv("onunhandledrejection"))}}};function nv(e,t,n,i){const s=e.exception=e.exception||{},a=s.values=s.values||[],r=a[0]=a[0]||{},o=r.stacktrace=r.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(i,10))?void 0:i,d=isNaN(parseInt(n,10))?void 0:n,u=pp(t)&&t.length>0?t:function(){try{return Fp.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:d}),e}function iv(e){Iy&&Bp.log(`Global Handler attached: ${e}`)}function sv(){const e=em();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}sg(ev,tv);const av="HttpContext",rv=()=>({name:av,setupOnce(){},preprocessEvent(e){if(!vy.navigator&&!vy.location&&!vy.document)return;const t=e.request&&e.request.url||vy.location&&vy.location.href,{referrer:n}=vy.document||{},{userAgent:i}=vy.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},a={...e.request,...t&&{url:t},headers:s};e.request=a}});sg(av,rv);const ov="LinkedErrors",cv=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:ov,setupOnce(){},preprocessEvent(e,i,s){const a=s.getOptions();Sp(xy,a.stackParser,a.maxValueLength,n,t,e,i)}}};sg(ov,cv);const lv=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],dv="TryCatch",uv=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:dv,setupOnce(){t.setTimeout&&Kp(vy,"setTimeout",pv),t.setInterval&&Kp(vy,"setInterval",pv),t.requestAnimationFrame&&Kp(vy,"requestAnimationFrame",hv),t.XMLHttpRequest&&"XMLHttpRequest"in vy&&Kp(XMLHttpRequest.prototype,"send",fv);const e=t.eventTarget;if(e){(Array.isArray(e)?e:lv).forEach(mv)}}}};function pv(e){return function(...t){const n=t[0];return t[0]=wy(n,{mechanism:{data:{function:ch(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function hv(e){return function(t){return e.apply(this,[wy(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ch(e)},handled:!1,type:"instrument"}})])}}function fv(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Kp(n,e,(function(t){const n={mechanism:{data:{function:e,handler:ch(t)},handled:!1,type:"instrument"}},i=Xp(t);return i&&(n.mechanism.data.handler=ch(i)),wy(t,n)}))})),e.apply(this,t)}}function mv(e){const t=vy,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Kp(n,"addEventListener",(function(t){return function(n,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=wy(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ch(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,wy(i,{mechanism:{data:{function:"addEventListener",handler:ch(i),target:e},handled:!1,type:"instrument"}}),s])}})),Kp(n,"removeEventListener",(function(e){return function(t,n,i){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&e.call(this,t,n,i)}catch(e){}return e.call(this,t,s,i)}})))}sg(dv,uv);const gv=[yg(),Ig(),uv(),Yy(),tv(),cv(),Gy(),rv()];function yv(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...gv]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),vy.SENTRY_RELEASE&&vy.SENTRY_RELEASE.id&&(e.release=vy.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||qy,Array.isArray(n)?rh(...n):n),integrations:tg(e),transport:e.transport||(Lh()?Fy:Uy)};var n;dg(Cy,t),e.autoSessionTracking&&function(){if(void 0===vy.document)return void(Iy&&Bp.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));nm({ignoreDuration:!0}),am(),Hh((({from:e,to:t})=>{void 0!==e&&e!==t&&(nm({ignoreDuration:!0}),am())}))}()}const vv=Object.prototype.toString;function _v(e,t){return vv.call(e)===`[object ${t}]`}function bv(e){return _v(e,"String")}function wv(e){return _v(e,"Object")}function Iv(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function xv(e,t){try{return e instanceof t}catch(e){return!1}}function Ev(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Sv(e,t,n=!1){return!!bv(e)&&(_v(t,"RegExp")?t.test(e):!!bv(t)&&(n?e===t:e.includes(t)))}function Av(e){return e&&e.Math==Math?e:void 0}const Tv="object"==typeof globalThis&&Av(globalThis)||"object"==typeof window&&Av(window)||"object"==typeof self&&Av(self)||"object"==typeof global&&Av(global)||function(){return this}()||{};function kv(){return Tv}function Rv(e,t,n){const i=n||Tv,s=i.__SENTRY__=i.__SENTRY__||{};return s[e]||(s[e]=t())}const Lv=kv(),Cv=80;function Ov(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||Cv;for(;n&&a++<i&&(l=Fv(n,d),!("html"===l||a>1&&r+s.length*c+l.length>=u));)s.push(l),r+=l.length,n=n.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}function Fv(e,t){const n=e,i=[];let s,a,r,o,c;if(!n||!n.tagName)return"";if(Lv.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),s=n.className,s&&bv(s))for(a=s.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)r=d[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}const Nv="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Uv=["debug","info","warn","error","log","assert","trace"],jv={};function Pv(e){if(!("console"in Tv))return e();const t=Tv.console,n={},i=Object.keys(jv);i.forEach((e=>{const i=jv[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const Mv=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Nv?Uv.forEach((n=>{t[n]=(...t)=>{e&&Pv((()=>{Tv.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Uv.forEach((e=>{t[e]=()=>{}})),t}();function Dv(e,t=!1){const{host:n,path:i,pass:s,port:a,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&s?`:${s}`:""}@${n}${a?`:${a}`:""}/${i?`${i}/`:i}${r}`}function $v(e,t,n){if(!(t in e))return;const i=e[t],s=n(i);"function"==typeof s&&function(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,zv(e,"__sentry_original__",t)}catch(e){}}(s,i),e[t]=s}function zv(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Nv&&Mv.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Bv(e){if(function(e){switch(vv.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return xv(e,Error)}}(e))return{message:e.message,name:e.name,stack:e.stack,...Vv(e)};if(t=e,"undefined"!=typeof Event&&xv(t,Event)){const t={type:e.type,target:qv(e.target),currentTarget:qv(e.currentTarget),...Vv(e)};return"undefined"!=typeof CustomEvent&&xv(e,CustomEvent)&&(t.detail=e.detail),t}return e;var t}function qv(e){try{return t=e,"undefined"!=typeof Element&&xv(t,Element)?Ov(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function Vv(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Hv(e){return Wv(e,new Map)}function Wv(e,t){if(function(e){if(!wv(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=Wv(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(Wv(e,t))})),i}return e}const Yv="<anonymous>";function Kv(e){try{return e&&"function"==typeof e&&e.name||Yv}catch(e){return Yv}}const Gv={},Jv={};function Xv(e,t){Gv[e]=Gv[e]||[],Gv[e].push(t)}function Qv(e,t){Jv[e]||(t(),Jv[e]=!0)}function Zv(e,t){const n=e&&Gv[e];if(n)for(const i of n)try{i(t)}catch(t){Nv&&Mv.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Kv(i)}\nError:`,t)}}function e_(){const e=Tv,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}const t_=Tv,n_=1e3;let i_,s_,a_;function r_(){if(!t_.document)return;const e=Zv.bind(null,"dom"),t=o_(e,!0);t_.document.addEventListener("click",t,!1),t_.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=t_[t]&&t_[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($v(n,"addEventListener",(function(t){return function(n,i,s){if("click"===n||"keypress"==n)try{const i=this,a=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=a[n]=a[n]||{refCount:0};if(!r.handler){const i=o_(e);r.handler=i,t.call(this,n,i,s)}r.refCount++}catch(e){}return t.call(this,n,i,s)}})),$v(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},a=s[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,i),a.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}function o_(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;zv(n,"_sentryCaptured",!0),i&&!i._sentryId&&zv(i,"_sentryId",e_());const s="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==s_)return!1;try{if(!e.target||e.target._sentryId!==a_)return!1}catch(e){}return!0}(n)){e({event:n,name:s,global:t}),s_=n.type,a_=i?i._sentryId:void 0}clearTimeout(i_),i_=t_.setTimeout((()=>{a_=void 0,s_=void 0}),n_)}}const c_=kv();function l_(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function d_(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in c_))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(l_(c_.fetch))return!0;let e=!1;const t=c_.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=l_(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Nv&&Mv.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function u_(){d_()&&$v(Tv,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:h_(t),method:p_(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:h_(t),method:p_(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return Zv("fetch",{...s}),e.apply(Tv,t).then((e=>(Zv("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Zv("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}function p_(e,t){return!!e&&"object"==typeof e&&!!e[t]}function h_(e){return"string"==typeof e?e:e?p_(e,"url")?e.url:e.toString?e.toString():"":""}const f_=kv();const m_=Tv;let g_;function y_(){if(!function(){const e=f_.chrome,t=e&&e.app&&e.app.runtime,n="history"in f_&&!!f_.history.pushState&&!!f_.history.replaceState;return!t&&n}())return;const e=m_.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=g_,t=String(n);g_=t;Zv("history",{from:e,to:t})}return e.apply(this,t)}}m_.onpopstate=function(...t){const n=m_.location.href,i=g_;g_=n;if(Zv("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},$v(m_.history,"pushState",t),$v(m_.history,"replaceState",t)}const v_=Tv,__="__sentry_xhr_v3__";function b_(){if(!v_.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;$v(e,"open",(function(e){return function(...t){const n=Date.now(),i=bv(t[0])?t[0].toUpperCase():void 0,s=function(e){if(bv(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!i||!s)return e.apply(this,t);this[__]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[__];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Zv("xhr",{args:[i,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?$v(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),$v(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,s=this[__];return s&&bv(n)&&bv(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),$v(e,"send",(function(e){return function(...t){const n=this[__];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return Zv("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function w_(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function I_(){return"undefined"!=typeof window&&(!w_()||void 0!==Tv.process&&"renderer"===Tv.process.type)}function x_(e,t=100,n=1/0){try{return E_("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function E_(e,t,n=1/0,i=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(o=t)||o==o))return t;var o;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}(t))return"[VueViewModel]";if(function(e){return wv(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${Kv(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===l)return c.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&"function"==typeof d.toJSON)try{return E_("",d.toJSON(),l-1,i,s)}catch(e){}const u=Array.isArray(t)?[]:{};let p=0;const h=Bv(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(p>=i){u[e]="[MaxProperties ~]";break}const t=h[e];u[e]=E_(e,t,l-1,i,s),p++}return r(t),u}var S_;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(S_||(S_={}));let A_=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=S_.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e(((e,i)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(e){i(e)}else e(n)},t=>{if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(t){return new e(((e,n)=>{let i,s;return this.then((e=>{s=!1,i=e,t&&t()}),(e=>{s=!0,i=e,t&&t()})).then((()=>{s?n(i):e(i)}))}))}__init(){this._resolve=e=>{this._setResult(S_.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(S_.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===S_.PENDING&&(Iv(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===S_.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===S_.RESOLVED&&e[1](this._value),this._state===S_.REJECTED&&e[2](this._value),e[0]=!0)}))}}};const T_=1e3;function k_(){return Date.now()/T_}const R_=function(){const{performance:e}=Tv;if(!e||!e.now)return k_;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/T_}(),L_=(()=>{const{performance:e}=Tv;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;return a||o<t?s<=o?e.timeOrigin:r:i})();const C_=6e4;function O_(e,{statusCode:t,headers:n},i=Date.now()){const s={...e},a=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),a=parseInt(t,10),r=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))s[e]=i+r;else s.all=i+r}else r?s.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?C_:i-t}(r,i):429===t&&(s.all=i+6e4);return s}function F_(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}const N_="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,U_="production";function j_(){return Rv("globalEventProcessors",(()=>[]))}function P_(e,t,n,i=0){return new A_(((s,a)=>{const r=e[i];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},n);N_&&r.id&&null===o&&Mv.log(`Event processor "${r.id}" dropped event`),Iv(o)?o.then((t=>P_(e,t,n,i+1).then(s))).then(null,a):P_(e,o,n,i+1).then(s).then(null,a)}}))}function M_(e){const t=R_(),n={sid:e_(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Hv({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&D_(n,e),n}function D_(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||R_(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:e_()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const $_=1;function z_(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:r,tags:o,origin:c}=B_(e);return Hv({data:i,op:s,parent_span_id:a,span_id:t,status:r,tags:o,trace_id:n,origin:c})}function B_(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function q_(e,t,n,i,s,a){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||n.event_id||e_(),timestamp:t.timestamp||k_()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:s,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:U_);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==s&&(e.dist=s);e.message&&(e.message=Ev(e.message,a));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=Ev(r.value,a));const o=e.request;o&&o.url&&(o.url=Ev(o.url,a))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),void 0===t.type&&function(e,t){const n=Tv._sentryDebugIds;if(!n)return;let i;const s=V_.get(t);s?i=s:(i=new Map,V_.set(t,i));const a=Object.keys(n).reduce(((e,s)=>{let a;const r=i.get(s);r?a=r:(a=t(s),i.set(s,a));for(let t=a.length-1;t>=0;t--){const i=a[t];if(i.filename){e[i.filename]=n[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(c,e.stackParser);const d=function(e,t){if(!t)return e;const n=e?e.clone():new nb;return n.update(t),n}(i,n.captureContext);n.mechanism&&function(e,t){const n=function(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}(c,n.mechanism);const u=s&&s.getEventProcessors?s.getEventProcessors():[],p=function(){tb||(tb=new nb);return tb}().getScopeData();if(a){Z_(p,a.getScopeData())}if(d){Z_(p,d.getScopeData())}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),Q_(c,p);return P_([...u,...j_(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof r&&r>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:x_(e.data,t,n)}})))},...e.user&&{user:x_(e.user,t,n)},...e.contexts&&{contexts:x_(e.contexts,t,n)},...e.extra&&{extra:x_(e.extra,t,n)}};e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=x_(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>{const i=B_(e).data;return i&&(e.data=x_(i,t,n)),e})));return i}(e,r,o):e)))}const V_=new WeakMap;function H_(e){if(e)return function(e){return e instanceof nb||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>W_.includes(e)))}(e)?{captureContext:e}:e}const W_=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Y_(e,t){return lb().captureException(e,H_(t))}function K_(){return lb().getClient()}function G_(){return lb().getScope()}function J_(e){return e.transaction}function X_(e){const t=K_();if(!t)return{};const n=function(e,t,n){const i=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},r=Hv({environment:i.environment||U_,release:i.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}(B_(e).trace_id||"",t,G_()),i=J_(e);if(!i)return n;const s=i&&i._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:r}=i.metadata;null!=a&&(n.sample_rate=`${a}`);const o=B_(i);return r&&"url"!==r&&(n.transaction=o.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(t&$_)}(i)),t.emit&&t.emit("createDsc",n),n}function Q_(e,t){const{fingerprint:n,span:i,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,transactionName:o}=t,c=Hv(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Hv(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const d=Hv(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const u=Hv(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts});r&&(e.level=r);o&&(e.transaction=o)}(e,t),i&&function(e,t){e.contexts={trace:z_(t),...e.contexts};const n=J_(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:X_(t),...e.sdkProcessingMetadata};const i=B_(n).description;i&&(e.tags={transaction:i,...e.tags})}}(e,i),function(e,t){e.fingerprint=e.fingerprint?function(e){return Array.isArray(e)?e:[e]}(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function Z_(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:l,eventProcessors:d,attachments:u,propagationContext:p,transactionName:h,span:f}=t;eb(e,"extra",n),eb(e,"tags",i),eb(e,"user",s),eb(e,"contexts",a),eb(e,"sdkProcessingMetadata",o),r&&(e.level=r),h&&(e.transactionName=h),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...p}}function eb(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[t][i]=n[i])}}let tb,nb=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ib()}static clone(t){return t?t.clone():new e}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&D_(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):wv(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=ib(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:k_(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:i,_extra:s,_user:a,_level:r,_fingerprint:o,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:u,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:i,extra:s,user:a,level:r,fingerprint:o||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:d,transactionName:u,span:p}}applyToEvent(e,t={},n=[]){Q_(e,this.getScopeData());return P_([...n,...j_(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:e_();if(!this._client)return Mv.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:e_();if(!this._client)return Mv.warn("No client configured on scope - will not capture message!"),i;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:e_();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Mv.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}};function ib(){return{traceId:e_(),spanId:e_().substring(16)}}const sb=parseFloat("7.101.0"),ab=100;let rb=class{constructor(e,t,n,i=sb){let s,a;this._version=i,t?s=t:(s=new nb,s.setClient(e)),n?a=n:(a=new nb,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return Iv(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:e_(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:e_(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:e_();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=ab}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const r={timestamp:k_(),...e},o=s?Pv((()=>s(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=cb(this);try{e(this)}finally{cb(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return N_&&Mv.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(N_&&!n){this.getClient()?Mv.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Mv.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),D_(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:s=U_}=n&&n.getOptions()||{},{userAgent:a}=Tv.navigator||{},r=M_({release:i,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&D_(o,{status:"exited"}),this.endSession(),t.setSession(r),r}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=ob().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);N_&&Mv.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function ob(){return Tv.__SENTRY__=Tv.__SENTRY__||{extensions:{},hub:void 0},Tv}function cb(e){const t=ob(),n=db(t);return ub(t,e),n}function lb(){const e=ob();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=ob()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!db(e).isOlderThan(sb)||ub(e,new rb);var t;return db(e)}(e)}function db(e){return Rv("hub",(()=>new rb),e)}function ub(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function pb(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,i=n&&n.getDsn(),s=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,i)||function(e,t){if(!t)return!1;return hb(e)===hb(t)}(e,s)}function hb(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const fb="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,mb=Tv,gb=()=>mb.__WEB_VITALS_POLYFILL__?mb.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=mb.performance.timing,t=mb.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):mb.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],yb=()=>{const e=gb();return e&&e.activationStart||0},vb=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{t(e.getEntries())}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},_b=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==mb.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let bb=-1;const wb=()=>(bb<0&&(bb="hidden"!==mb.document.visibilityState||mb.document.prerendering?1/0:0,_b((({timeStamp:e})=>{bb=e}),!0)),{get firstHiddenTime(){return bb}}),Ib={},xb=e=>{const t=wb(),n=((e,t)=>{const n=gb();let i="navigate";return n&&(i=mb.document.prerendering||yb()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}})("LCP");let i;const s=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-yb(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[s],i())}},a=vb("largest-contentful-paint",s);if(a){i=((e,t,n)=>{let i,s;return a=>{t.value>=0&&(a||n)&&(s=t.value-(i||0),(s||void 0===i)&&(i=t.value,t.delta=s,e(t)))}})(e,n);const t=()=>{Ib[n.id]||(s(a.takeRecords()),a.disconnect(),Ib[n.id]=!0,i(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),_b(t,!0),t}},Eb={},Sb={};let Ab;function Tb(e,t=!1){return function(e,t,n,i,s=!1){let a;Cb(e,t),Sb[e]||(a=n(),Sb[e]=!0);i&&t({metric:i});return Ob(e,t,s?a:void 0)}("lcp",e,Lb,Ab,t)}function kb(e,t){return Cb(e,t),Sb[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);vb(e,(t=>{Rb(e,{entries:t})}),t)}(e),Sb[e]=!0),Ob(e,t)}function Rb(e,t){const n=Eb[e];if(n&&n.length)for(const i of n)try{i(t)}catch(t){fb&&Mv.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Kv(i)}\nError:`,t)}}function Lb(){return xb((e=>{Rb("lcp",{metric:e}),Ab=e}))}function Cb(e,t){Eb[e]=Eb[e]||[],Eb[e].push(t)}function Ob(e,t,n){return()=>{n&&n();const i=Eb[e];if(!i)return;const s=i.indexOf(t);-1!==s&&i.splice(s,1)}}const Fb=Tv,Nb="sentryReplaySession",Ub="replay_event",jb="Unable to send Replay",Pb=15e4,Mb=5e3,Db=2e7,$b=36e5;function zb(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}var Bb;function qb(e){const t=zb([e,"optionalAccess",e=>e.host]);return Boolean(zb([t,"optionalAccess",e=>e.shadowRoot])===e)}function Vb(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Hb(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,Wb).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Wb(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Hb(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Bb||(Bb={}));class Yb{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=zb([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return i=()=>-1,null!=(n=t)?n:i();var n,i}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Kb({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Gb({isMasked:e,element:t,value:n,maskInputFn:i}){let s=n||"";return e?(i&&(s=i(s,t)),"*".repeat(s.length)):s}function Jb(e){return e.toLowerCase()}function Xb(e){return e.toUpperCase()}const Qb="__rrweb_original__";function Zb(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Jb(t):null}function ew(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let tw=1;const nw=new RegExp("[^a-z0-9-_:]"),iw=-2;function sw(){return tw++}let aw,rw;const ow=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,cw=/^(?:[a-z+]+:)?\/\//i,lw=/^www\..*/i,dw=/^(data:)([^,]*),(.*)/i;function uw(e,t){return(e||"").replace(ow,((e,n,i,s,a,r)=>{const o=i||a||r,c=n||s||"";if(!o)return e;if(cw.test(o)||lw.test(o))return`url(${c}${o}${c})`;if(dw.test(o))return`url(${c}${o}${c})`;if("/"===o[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+o}${c})`;const l=t.split("/"),d=o.split("/");l.pop();for(const e of d)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const pw=/^[^ \t\n\r\u000c]+/,hw=/^[, \t\n\r\u000c]+/;function fw(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function mw(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function gw(){const e=document.createElement("a");return e.href="",e.href}function yw(e,t,n,i,s,a){return i?"src"===n||"href"===n&&("use"!==t||"#"!==i[0])||"xlink:href"===n&&"#"!==i[0]?fw(e,i):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i;const s=e.exec(t.substring(n));return s?(i=s[0],n+=i.length,i):""}const s=[];for(;i(hw),!(n>=t.length);){let a=i(pw);if(","===a.slice(-1))a=fw(e,a.substring(0,a.length-1)),s.push(a);else{let i="";a=fw(e,a);let r=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((a+i).trim());break}if(r)")"===e&&(r=!1);else{if(","===e){n+=1,s.push((a+i).trim());break}"("===e&&(r=!0)}i+=e,n+=1}}}return s.join(", ")}(e,i):"style"===n?uw(i,gw()):"object"===t&&"data"===n?fw(e,i):"function"==typeof a?a(n,i,s):i:fw(e,i):i}function vw(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _w(e,t,n=1/0,i=0){return e?e.nodeType!==e.ELEMENT_NODE||i>n?-1:t(e)?i:_w(e.parentNode,t,n,i+1):-1}function bw(e,t){return n=>{const i=n;if(null===i)return!1;try{if(e)if("string"==typeof e){if(i.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}return!1}(i,e))return!0;return!(!t||!i.matches(t))}catch(e){return!1}}}function ww(e,t,n,i,s,a){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("INPUT"===r.tagName){const e=r.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,c=-1;if(a){if(c=_w(r,bw(i,s)),c<0)return!0;o=_w(r,bw(t,n),c>=0?c:1/0)}else{if(o=_w(r,bw(t,n)),o<0)return!1;c=_w(r,bw(i,s),o>=0?o:1/0)}return o>=0?!(c>=0)||o<=c:!(c>=0)&&!!a}catch(e){}return!!a}function Iw(e,t){const{doc:n,mirror:i,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:w=!1}=t,I=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,i);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Bb.Document,childNodes:[],compatMode:e.compatMode}:{type:Bb.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Bb.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:r,maskInputOptions:o={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:d={},inlineImages:u,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:_,unmaskTextSelector:b}=t,w=function(e,t,n,i){try{if(i&&e.matches(i))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,s,a),I=function(e){if(e instanceof HTMLFormElement)return"form";const t=Jb(e.tagName);return nw.test(t)?"div":t}(e);let x={};const E=e.attributes.length;for(let t=0;t<E;t++){const i=e.attributes[t];i.name&&!vw(I,i.name,i.value)&&(x[i.name]=yw(n,I,Jb(i.name),i.value,e,c))}if("link"===I&&r){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let i=null;t&&(i=Hb(t)),i&&(delete x.rel,delete x.href,x._cssText=uw(i,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Hb(e.sheet);t&&(x._cssText=uw(t,gw()))}if("input"===I||"textarea"===I||"select"===I||"option"===I){const t=e,n=Zb(t),i=ew(t,Xb(I),n),s=t.checked;if("submit"!==n&&"button"!==n&&i){const e=ww(t,y,_,v,b,Kb({type:n,tagName:Xb(I),maskInputOptions:o}));x.value=Gb({isMasked:e,element:t,value:i,maskInputFn:l})}s&&(x.checked=s)}"option"===I&&(e.selected&&!o.select?x.selected=!0:delete x.selected);if("canvas"===I&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let i=0;i<e.height;i+=50){const s=t.getImageData,a=Qb in s?s[Qb]:s;if(new Uint32Array(a.call(t,n,i,Math.min(50,e.width-n),Math.min(50,e.height-i)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(x.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const t=e.toDataURL(d.type,d.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(d.type,d.quality)&&(x.rr_dataURL=t)}if("img"===I&&u){aw||(aw=n.createElement("canvas"),rw=aw.getContext("2d"));const t=e,i=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{t.removeEventListener("load",s);try{aw.width=t.naturalWidth,aw.height=t.naturalHeight,rw.drawImage(t,0,0),x.rr_dataURL=aw.toDataURL(d.type,d.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}i?x.crossOrigin=i:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==I&&"video"!==I||(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop));if(w){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==I||h(x.src)||(e.contentDocument||(x.rr_src=x.src),delete x.src);let S;try{customElements.get(I)&&(S=!0)}catch(e){}return{type:Bb.Element,tagName:I,attributes:x,childNodes:[],isSVG:mw(e)||void 0,needBlock:w,rootId:m,isCustom:S}}(e,{doc:n,blockClass:s,blockSelector:a,unblockSelector:r,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:w,rootId:I,maskAllText:o,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:i,unmaskTextClass:s,maskTextSelector:a,unmaskTextSelector:r,maskTextFn:o,maskInputOptions:c,maskInputFn:l,rootId:d}=t,u=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h="STYLE"===u||void 0,f="SCRIPT"===u||void 0,m="TEXTAREA"===u||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||zb([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=Hb(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=uw(p,gw())}f&&(p="SCRIPT_PLACEHOLDER");const g=ww(e,i,a,s,r,n);h||f||m||!p||!g||(p=o?o(p):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=l?l(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===u&&p){p=Gb({isMasked:ww(e,i,a,s,r,Kb({type:null,tagName:u,maskInputOptions:c})),element:e,value:p,maskInputFn:l})}return{type:Bb.Text,textContent:p||"",isStyle:h,rootId:d}}(e,{maskAllText:o,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:I});case e.CDATA_SECTION_NODE:return{type:Bb.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:Bb.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}function xw(e){return null==e?"":e.toLowerCase()}function Ew(e,t){const{doc:n,mirror:i,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:k=!1}=t;let{preserveWhiteSpace:R=!0}=t;const L=Iw(e,{doc:n,mirror:i,blockClass:s,blockSelector:a,maskAllText:o,unblockSelector:r,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:_,inlineImages:b,recordCanvas:w,keepIframeSrcFn:T,newlyAddedElement:k});if(!L)return console.warn(e,"not serialized"),null;let C;C=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===Bb.Comment)return!0;if(e.type===Bb.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(xw(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===xw(e.attributes.name)||"icon"===xw(e.attributes.rel)||"apple-touch-icon"===xw(e.attributes.rel)||"shortcut icon"===xw(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&xw(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(xw(e.attributes.property).match(/^(og|twitter|fb):/)||xw(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===xw(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===xw(e.attributes.name)||"googlebot"===xw(e.attributes.name)||"bingbot"===xw(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===xw(e.attributes.name)||"generator"===xw(e.attributes.name)||"framework"===xw(e.attributes.name)||"publisher"===xw(e.attributes.name)||"progid"===xw(e.attributes.name)||xw(e.attributes.property).match(/^article:/)||xw(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===xw(e.attributes.name)||"yandex-verification"===xw(e.attributes.name)||"csrf-token"===xw(e.attributes.name)||"p:domain_verify"===xw(e.attributes.name)||"verify-v1"===xw(e.attributes.name)||"verification"===xw(e.attributes.name)||"shopify-checkout-api-token"===xw(e.attributes.name)))return!0}}return!1}(L,v)&&(R||L.type!==Bb.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?sw():iw;const O=Object.assign(L,{id:C});if(i.add(e,O),C===iw)return null;I&&I(e);let F=!p;if(O.type===Bb.Element){F=F&&!O.needBlock,delete O.needBlock;const t=e.shadowRoot;t&&Vb(t)&&(O.isShadowHost=!0)}if((O.type===Bb.Document||O.type===Bb.Element)&&F){v.headWhitespace&&O.type===Bb.Element&&"head"===O.tagName&&(R=!1);const t={doc:n,mirror:i,blockClass:s,blockSelector:a,maskAllText:o,unblockSelector:r,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:A,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=Ew(n,t);e&&O.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const i=Ew(n,t);i&&(Vb(e.shadowRoot)&&(i.isShadow=!0),O.childNodes.push(i))}}return e.parentNode&&qb(e.parentNode)&&Vb(e.parentNode)&&(O.isShadow=!0),O.type===Bb.Element&&"iframe"===O.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let s,a=!1;try{s=i.document.readyState}catch(e){return}if("complete"!==s){const i=setTimeout((()=>{a||(t(),a=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(i),a=!0,t()}))}const r="about:blank";if(i.location.href!==r||e.src===r||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&x){const n=Ew(t,{doc:t,mirror:i,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:A,keepIframeSrcFn:T});n&&x(e,n)}}),E),O.type===Bb.Element&&"link"===O.tagName&&"stylesheet"===O.attributes.rel&&function(e,t,n){let i,s=!1;try{i=e.sheet}catch(e){return}if(i)return;const a=setTimeout((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(a),s=!0,t()}))}(e,(()=>{if(S){const t=Ew(e,{doc:n,mirror:i,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:A,keepIframeSrcFn:T});t&&S(e,t)}}),A),O}function Sw(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}function Aw(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}const Tw="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let kw={map:{},getId:()=>(console.error(Tw),-1),getNode:()=>(console.error(Tw),null),removeNodeFromMap(){console.error(Tw)},has:()=>(console.error(Tw),!1),reset(){console.error(Tw)}};function Rw(e,t,n={}){let i=null,s=0;return function(...a){const r=Date.now();s||!1!==n.leading||(s=r);const o=t-(r-s),c=this;o<=0||o>t?(i&&(clearTimeout(i),i=null),s=r,e.apply(c,a)):i||!1===n.trailing||(i=setTimeout((()=>{s=!1===n.leading?0:Date.now(),i=null,e.apply(c,a)}),o))}}function Lw(e,t,n,i,s=window){const a=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,i?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),a&&a.set&&a.set.call(this,e)}}),()=>Lw(e,t,a||{},!0)}function Cw(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],s=n(i);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=s,()=>{e[t]=i}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(kw=new Proxy(kw,{get:(e,t,n)=>("map"===t&&console.error(Tw),Reflect.get(e,t,n))}));let Ow,Fw=Date.now;function Nw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Sw([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Sw([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Sw([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Sw([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Sw([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Sw([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Uw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function jw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Pw(e,t,n,i,s){if(!e)return!1;const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!a)return!1;const r=bw(t,n);if(!s){const e=i&&a.matches(i);return r(a)&&!e}const o=_w(a,r);let c=-1;return!(o<0)&&(i&&(c=_w(a,bw(null,i))),o>-1&&c<0||o<c)}function Mw(e,t){return t.getId(e)===iw}function Dw(e,t){if(qb(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Dw(e.parentNode,t))}function $w(e){return Boolean(e.changedTouches)}function zw(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Bw(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function qw(e){return Boolean(Sw([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Fw=()=>(new Date).getTime());class Vw{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Hw(e){let t=null;return Sw([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ww(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Hw(n);)n=t;return n}(e);return t.contains(n)}function Yw(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Ww(e))}function Kw(...e){return function(){if(Ow)return Ow;const e=window.document;let t=window.requestAnimationFrame;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.requestAnimationFrame&&(t=i.requestAnimationFrame),e.head.removeChild(n)}catch(e){}return Ow=t.bind(window)}()(...e)}var Gw=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Gw||{}),Jw=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Jw||{}),Xw=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Xw||{}),Qw=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Qw||{});function Zw(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}function eI(e){return"__ln"in e}class tI{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=Zw([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&eI(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&eI(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const nI=(e,t)=>`${e}@${t}`;class iI{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new tI,i=e=>{let t=e,n=iw;for(;n===iw;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Yw(s))return;const a=qb(s.parentNode)?this.mirror.getId(Hw(s)):this.mirror.getId(s.parentNode),r=i(s);if(-1===a||-1===r)return n.addNode(s);const o=Ew(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{zw(e,this.mirror)&&this.iframeManager.addIframe(e),Bw(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),qw(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});o&&(e.push({parentId:a,nextId:r,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)aI(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)oI(this.droppedSet,e)||aI(this.removes,e,this.mirror)?oI(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let a=null;for(;n.length;){let e=null;if(a){const t=this.mirror.getId(a.value.parentNode),n=i(a.value);-1!==t&&-1!==n&&(e=a)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===i(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const i=t.parentNode.host;if(-1!==this.mirror.getId(i)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),s(e.value)}const r={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(r.texts.length||r.attributes.length||r.removes.length||r.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(r))},this.processMutation=e=>{if(Mw(e.target,this.mirror))return;let t;try{t=document.implementation.createHTMLDocument()}catch(e){t=this.doc}switch(e.type){case"characterData":{const t=e.target.textContent;Pw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ww(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let i=e.attributeName,s=e.target.getAttribute(i);if("value"===i){const t=Zb(n),i=n.tagName;s=ew(n,i,t);const a=Kb({maskInputOptions:this.maskInputOptions,tagName:i,type:t});s=Gb({isMasked:ww(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:n,value:s,maskInputFn:this.maskInputFn})}if(Pw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===e.oldValue)return;let a=this.attributes.find((t=>t.node===e.target));if("IFRAME"===n.tagName&&"src"===i&&!this.keepIframeSrcFn(s)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a)),"type"===i&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!vw(n.tagName,i)&&(a.attributes[i]=yw(this.doc,Jb(n.tagName),Jb(i),s,n,this.maskAttributeFn),"style"===i)){const i=t.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),s=n.style.getPropertyPriority(e);t!==i.style.getPropertyValue(e)||s!==i.style.getPropertyPriority(e)?a.styleDiff[e]=""===s?t:[t,s]:a._unchangedStyles[e]=[t,s]}for(const e of Array.from(i.style))""===n.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(Pw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),i=qb(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Pw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Mw(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(sI(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Dw(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[nI(n,i)]?sI(this.movedSet,t):this.removes.push({parentId:i,id:n,isShadow:!(!qb(e.target)||!Vb(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Mw(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[nI(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Pw(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),qw(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function sI(e,t){e.delete(t),t.childNodes.forEach((t=>sI(e,t)))}function aI(e,t,n){return 0!==e.length&&rI(e,t,n)}function rI(e,t,n){const{parentNode:i}=t;if(!i)return!1;const s=n.getId(i);return!!e.some((e=>e.id===s))||rI(e,i,n)}function oI(e,t){return 0!==e.size&&cI(e,t)}function cI(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||cI(e,n))}let lI;function dI(e){lI=e}function uI(){lI=void 0}const pI=e=>{if(!lI)return e;return(...t)=>{try{return e(...t)}catch(e){if(lI&&!0===lI(e))return()=>{};throw e}}};function hI(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}const fI=[];function mI(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function gI(e,t){const n=new iI;fI.push(n),n.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const s=hI([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(i=window[s]);const a=new i(pI((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function yI({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,c=[];let l=null;return Object.keys(Xw).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((r=>{let o=Jb(r);const d=(t=>r=>{const o=mI(r);if(Pw(o,i,s,a,!0))return;let c=null,d=t;if("pointerType"in r){switch(r.pointerType){case"mouse":c=Qw.Mouse;break;case"touch":c=Qw.Touch;break;case"pen":c=Qw.Pen}c===Qw.Touch?Xw[t]===Xw.MouseDown?d="TouchStart":Xw[t]===Xw.MouseUp&&(d="TouchEnd"):Qw.Pen}else $w(r)&&(c=Qw.Touch);null!==c?(l=c,(d.startsWith("Touch")&&c===Qw.Touch||d.startsWith("Mouse")&&c===Qw.Mouse)&&(c=null)):Xw[t]===Xw.Click&&(c=l,l=null);const u=$w(r)?r.changedTouches[0]:r;if(!u)return;const p=n.getId(o),{clientX:h,clientY:f}=u;pI(e)({type:Xw[d],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(r);if(window.PointerEvent)switch(Xw[r]){case Xw.MouseDown:case Xw.MouseUp:o=o.replace("mouse","pointer");break;case Xw.TouchStart:case Xw.TouchEnd:return}c.push(Aw(o,d,t))})),pI((()=>{c.forEach((e=>e()))}))}function vI({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,sampling:r}){return Aw("scroll",pI(Rw(pI((r=>{const o=mI(r);if(!o||Pw(o,i,s,a,!0))return;const c=n.getId(o);if(o===t&&t.defaultView){const n=Nw(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:o.scrollLeft,y:o.scrollTop})})),r.scroll||100)),t)}const _I=["INPUT","TEXTAREA","SELECT"],bI=new WeakMap;function wI({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,ignoreClass:r,ignoreSelector:o,maskInputOptions:c,maskInputFn:l,sampling:d,userTriggeredOnInput:u,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=mI(e);const d=e.isTrusted,g=n&&Xb(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||_I.indexOf(g)<0||Pw(n,i,s,a,!0))return;const v=n;if(v.classList.contains(r)||o&&v.matches(o))return;const _=Zb(n);let b=ew(v,g,_),w=!1;const I=Kb({maskInputOptions:c,tagName:g,type:_}),x=ww(n,p,f,h,m,I);"radio"!==_&&"checkbox"!==_||(w=n.checked),b=Gb({isMasked:x,element:n,value:b,maskInputFn:l}),y(n,u?{text:b,isChecked:w,userTriggered:d}:{text:b,isChecked:w});const E=n.name;"radio"===_&&E&&w&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((e=>{if(e!==n){const t=Gb({isMasked:x,element:e,value:ew(e,g,_),maskInputFn:l});y(e,u?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function y(t,i){const s=bI.get(t);if(!s||s.text!==i.text||s.isChecked!==i.isChecked){bI.set(t,i);const s=n.getId(t);pI(e)({...i,id:s})}}const v=("last"===d.input?["change"]:["input","change"]).map((e=>Aw(e,pI(g),t))),_=t.defaultView;if(!_)return()=>{v.forEach((e=>e()))};const b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),w=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(...w.map((e=>Lw(e[0],e[1],{set(){pI(g)({target:this,isTrusted:!1})}},!1,_)))),pI((()=>{v.forEach((e=>e()))}))}function II(e){return function(e,t){if(AI("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||AI("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||AI("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||AI("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function xI(e,t,n){let i,s;return e?(e.ownerNode?i=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:i}):{}}function EI({mirror:e,stylesheetManager:t},n){let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?hI([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):hI([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),a=hI([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(hI([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&s&&a?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return hI([a,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=hI([a,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return n}}),pI((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))):()=>{}}function SI(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const i=gI(e,e.doc),s=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let r,o=[];const c=Rw(pI((t=>{const n=Date.now()-r;e(o.map((e=>(e.timeOffset-=n,e))),t),o=[],r=null})),a),l=pI(Rw(pI((e=>{const t=mI(e),{clientX:n,clientY:s}=$w(e)?e.changedTouches[0]:e;r||(r=Fw()),o.push({x:n,y:s,id:i.getId(t),timeOffset:Fw()-r}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Jw.Drag:e instanceof MouseEvent?Jw.MouseMove:Jw.TouchMove)})),s,{trailing:!1})),d=[Aw("mousemove",l,n),Aw("touchmove",l,n),Aw("drag",l,n)];return pI((()=>{d.forEach((e=>e()))}))}(e),a=yI(e),r=vI(e),o=function({viewportResizeCb:e},{win:t}){let n=-1,i=-1;return Aw("resize",pI(Rw(pI((()=>{const t=Uw(),s=jw();n===t&&i===s||(e({width:Number(s),height:Number(t)}),n=t,i=s)})),200)),t)}(e,{win:n}),c=wI(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:i,mirror:s,sampling:a,doc:r}){const o=pI((r=>Rw(pI((a=>{const o=mI(a);if(!o||Pw(o,t,n,i,!0))return;const{currentTime:c,volume:l,muted:d,playbackRate:u}=o;e({type:r,id:s.getId(o),currentTime:c,volume:l,muted:d,playbackRate:u})})),a.media||500))),c=[Aw("play",o(0),r),Aw("pause",o(1),r),Aw("seeked",o(2),r),Aw("volumechange",o(3),r),Aw("ratechange",o(4),r)];return pI((()=>{c.forEach((e=>e()))}))}(e),d=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:pI(((i,s,a)=>{const[r,o]=a,{id:c,styleId:l}=xI(s,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:r,index:o}]}),i.apply(s,a)}))});const a=i.CSSStyleSheet.prototype.deleteRule;let r,o;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:pI(((i,s,a)=>{const[r]=a,{id:o,styleId:c}=xI(s,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:r}]}),i.apply(s,a)}))}),i.CSSStyleSheet.prototype.replace&&(r=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:pI(((i,s,a)=>{const[r]=a,{id:o,styleId:c}=xI(s,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replace:r}),i.apply(s,a)}))})),i.CSSStyleSheet.prototype.replaceSync&&(o=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:pI(((i,s,a)=>{const[r]=a,{id:o,styleId:c}=xI(s,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replaceSync:r}),i.apply(s,a)}))}));const c={};TI("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(TI("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),TI("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),TI("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));const l={};return Object.entries(c).forEach((([i,s])=>{l[i]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(l[i].insertRule,{apply:pI(((i,s,a)=>{const[r,o]=a,{id:c,styleId:l}=xI(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:r,index:[...II(s),o||0]}]}),i.apply(s,a)}))}),s.prototype.deleteRule=new Proxy(l[i].deleteRule,{apply:pI(((i,s,a)=>{const[r]=a,{id:o,styleId:c}=xI(s.parentStyleSheet,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:[...II(s),r]}]}),i.apply(s,a)}))})})),pI((()=>{i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,r&&(i.CSSStyleSheet.prototype.replace=r),o&&(i.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),u=EI(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:i},{win:s}){const a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:pI(((s,r,o)=>{const[c,l,d]=o;if(n.has(c))return a.apply(r,[c,l,d]);const{id:u,styleId:p}=xI(hI([r,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,i.styleMirror);return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,set:{property:c,value:l,priority:d},index:II(r.parentRule)}),s.apply(r,o)}))});const r=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(r,{apply:pI(((s,a,o)=>{const[c]=o;if(n.has(c))return r.apply(a,[c]);const{id:l,styleId:d}=xI(hI([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,i.styleMirror);return(l&&-1!==l||d&&-1!==d)&&e({id:l,styleId:d,remove:{property:c},index:II(a.parentRule)}),s.apply(a,o)}))}),pI((()=>{s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=r}))}(e,{win:n}),h=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],s=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){const i=new a(e,t,n);return s.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const r=Cw(t.fonts,"add",(function(t){return function(n){return setTimeout(pI((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return i.push((()=>{n.FontFace=a})),i.push(r),pI((()=>{i.forEach((e=>e()))}))}(e):()=>{},f=function(e){const{doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,selectionCb:r}=e;let o=!0;const c=pI((()=>{const e=t.getSelection();if(!e||o&&hI([e,"optionalAccess",e=>e.isCollapsed]))return;o=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const r=e.getRangeAt(t),{startContainer:o,startOffset:l,endContainer:d,endOffset:u}=r;Pw(o,i,s,a,!0)||Pw(d,i,s,a,!0)||c.push({start:n.getId(o),startOffset:l,end:n.getId(d),endOffset:u})}r({ranges:c})}));return c(),Aw("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;if(!n||!n.customElements)return()=>{};const i=Cw(n.customElements,"define",(function(e){return function(n,i,s){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,i,s])}}));return i}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return pI((()=>{fI.forEach((e=>e.reset())),i.disconnect(),s(),a(),r(),o(),c(),l(),d(),u(),p(),h(),f(),m(),g.forEach((e=>e()))}))}function AI(e){return void 0!==window[e]}function TI(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class kI{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,i){const s=n||this.getIdToRemoteIdMap(e),a=i||this.getRemoteIdToIdMap(e);let r=s.get(t);return r||(r=this.generateIdFn(),s.set(t,r),a.set(r,t)),r}getIds(e,t){const n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,i)))}getRemoteId(e,t,n){const i=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=i.get(t);return s||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function RI(e){let t,n=e[0],i=1;for(;i<e.length;){const s=e[i],a=e[i+1];if(i+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=a(n)):"call"!==s&&"optionalCall"!==s||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}class LI{constructor(){this.crossOriginIframeMirror=new kI(sw),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class CI{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new kI(sw),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new kI(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),RI([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Gw.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Gw.IncrementalSnapshot,data:{source:Jw.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Gw.Meta:case Gw.Load:case Gw.DomContentLoaded:return!1;case Gw.Plugin:return t;case Gw.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Gw.IncrementalSnapshot:switch(t.data.source){case Jw.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Jw.Drag:case Jw.TouchMove:case Jw.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Jw.ViewportResize:return!1;case Jw.MediaInteraction:case Jw.MouseInteraction:case Jw.Scroll:case Jw.CanvasMutation:case Jw.Input:return this.replaceIds(t.data,e,["id"]),t;case Jw.StyleSheetRule:case Jw.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Jw.Font:return t;case Jw.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Jw.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),RI([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,i){for(const s of i)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Bb.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class OI{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class FI{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Vb(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=gI({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(vI({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(EI({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Cw(e.prototype,"attachShadow",(function(e){return function(i){const s=e.call(this,i);return this.shadowRoot&&Yw(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class NI{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class UI{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Vw,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},i=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:Wb(e),index:t})))})),n.styleIds.push(e)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class jI{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){Kw((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function PI(e){const t=e;return t.timestamp=Fw(),t}let MI;const DI=new Yb;function $I(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:u=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,packFn:w,sampling:I={},dataURLOptions:x={},mousemoveWait:E,recordCanvas:S=!1,recordCrossOriginIframes:A=!1,recordAfter:T=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:R=!1,inlineImages:L=!1,plugins:C,keepIframeSrcFn:O=(()=>!1),ignoreCSSAttributes:F=new Set([]),errorHandler:N,onMutation:U,getCanvasManager:j}=e;dI(N);const P=!A||window.parent===window;let M=!1;if(!P)try{window.parent.document&&(M=!1)}catch(e){M=!0}if(P&&!t)throw new Error("emit function is required");void 0!==E&&void 0===I.mousemove&&(I.mousemove=E),DI.reset();const D=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},$=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let z;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let B=0;const q=e=>{for(const t of C||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!M&&(e=w(e)),e},V=(e,s)=>{if(!F_([fI,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||e.type===Gw.FullSnapshot||e.type===Gw.IncrementalSnapshot&&e.data.source===Jw.Mutation||fI.forEach((e=>e.unfreeze())),P)F_([t,"optionalCall",t=>t(q(e),s)]);else if(M){const t={type:"rrweb",event:q(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===Gw.FullSnapshot)z=e,B=0;else if(e.type===Gw.IncrementalSnapshot){if(e.data.source===Jw.Mutation&&e.data.isAttachIframe)return;B++;const t=i&&B>=i,s=n&&e.timestamp-z.timestamp>n;(t||s)&&Z(!0)}},H=e=>{V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.Mutation,...e}}))},W=e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.Scroll,...e}})),Y=e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.CanvasMutation,...e}})),K=new UI({mutationCb:H,adoptedStyleSheetCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.AdoptedStyleSheet,...e}}))}),G="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new LI:new CI({mirror:DI,mutationCb:H,stylesheetManager:K,recordCrossOriginIframes:A,wrappedEmit:V});for(const e of C||[])e.getMirror&&e.getMirror({nodeMirror:DI,crossOriginIframeMirror:G.crossOriginIframeMirror,crossOriginIframeStyleMirror:G.crossOriginIframeStyleMirror});const J=new jI,X=function(e,t){try{return e?e(t):new NI}catch(e){return console.warn("Unable to initialize CanvasManager"),new NI}}(j,{mirror:DI,win:window,mutationCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.CanvasMutation,...e}})),recordCanvas:S,blockClass:s,blockSelector:a,unblockSelector:r,sampling:I.canvas,dataURLOptions:x,errorHandler:N}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new OI:new FI({mutationCb:H,scrollCb:W,bypassOptions:{onMutation:U,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:D,dataURLOptions:x,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,recordCanvas:S,inlineImages:L,sampling:I,slimDOMOptions:$,iframeManager:G,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:O,processedNodeManager:J},mirror:DI}),Z=(e=!1)=>{V(PI({type:Gw.Meta,data:{href:window.location.href,width:jw(),height:Uw()}}),e),K.reset(),Q.init(),fI.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Yb,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:a=null,maskAllText:r=!1,maskTextClass:o="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:d=null,inlineStylesheet:u=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:S,keepIframeSrcFn:A=(()=>!1)}=t||{};return Ew(e,{doc:e,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:r,maskTextClass:o,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:_,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:S,keepIframeSrcFn:A,newlyAddedElement:!1})}(document,{mirror:DI,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:D,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,slimDOM:$,dataURLOptions:x,recordCanvas:S,inlineImages:L,onSerialize:e=>{zw(e,DI)&&G.addIframe(e),Bw(e,DI)&&K.trackLinkElement(e),qw(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{G.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");V(PI({type:Gw.FullSnapshot,data:{node:t,initialOffset:Nw(window)}})),fI.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,DI.getId(document))};MI=Z;try{const e=[],t=e=>pI(SI)({onMutation:U,mutationCb:H,mousemoveCb:(e,t)=>V(PI({type:Gw.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.MouseInteraction,...e}})),scrollCb:W,viewportResizeCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.ViewportResize,...e}})),inputCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.Input,...e}})),mediaInteractionCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.MediaInteraction,...e}})),styleSheetRuleCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.StyleSheetRule,...e}})),styleDeclarationCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.StyleDeclaration,...e}})),canvasMutationCb:Y,fontCb:e=>V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.Font,...e}})),selectionCb:e=>{V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.Selection,...e}}))},customElementCb:e=>{V(PI({type:Gw.IncrementalSnapshot,data:{source:Jw.CustomElement,...e}}))},blockClass:s,ignoreClass:o,ignoreSelector:c,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:D,inlineStylesheet:f,sampling:I,recordCanvas:S,inlineImages:L,userTriggeredOnInput:k,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:O,blockSelector:a,unblockSelector:r,slimDOMOptions:$,dataURLOptions:x,mirror:DI,iframeManager:G,stylesheetManager:K,shadowDomManager:Q,processedNodeManager:J,canvasManager:X,ignoreCSSAttributes:F,plugins:F_([C,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>V(PI({type:Gw.Plugin,data:{plugin:e.name,payload:t}}))})))])||[]},{});G.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Z(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Aw("DOMContentLoaded",(()=>{V(PI({type:Gw.DomContentLoaded,data:{}})),"DOMContentLoaded"===T&&n()}))),e.push(Aw("load",(()=>{V(PI({type:Gw.Load,data:{}})),"load"===T&&n()}),window))),()=>{e.forEach((e=>e())),J.destroy(),MI=void 0,uI()}}catch(e){console.warn(e)}}$I.mirror=DI,$I.takeFullSnapshot=function(e){if(!MI)throw new Error("please take full snapshot after start recording");MI(e)};const zI=3;function BI(e){return e>9999999999?e:1e3*e}function qI(e){return e>9999999999?e/1e3:e}function VI(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Gw.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:x_(t,10,1e3)}}),"console"===t.category))))}const HI="button,a";function WI(e){return e.closest(HI)||e}function YI(e){const t=KI(e);return t&&t instanceof Element?WI(t):t}function KI(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let GI;function JI(e){return GI||(GI=[],$v(Fb,"open",(function(e){return function(...t){if(GI)try{GI.forEach((e=>e()))}catch(e){}return e.apply(Fb,t)}}))),GI.push(e),()=>{const t=GI?GI.indexOf(e):-1;t>-1&&GI.splice(t,1)}}class XI{constructor(e,t,n=VI){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=JI((()=>{this._lastMutation=ZI()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!QI.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:qI(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=qI(e)}registerScroll(e=Date.now()){this._lastScroll=qI(e)}registerClick(e){const t=WI(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=ZI();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!i,{clickCount:a,clickBreadcrumb:r}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),i=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.slowClickDetected",data:{...r.data,url:Fb.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:i,clickCount:a||1}};this._addBreadcrumbEvent(t,s)}else if(a>1){const e={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.multiClick",data:{...r.data,url:Fb.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const QI=["A","BUTTON","INPUT"];function ZI(){return Date.now()/1e3}function ex(e,t){try{if(!function(e){return e.type===zI}(t))return;const{source:n}=t.data;if(n===Jw.Mutation&&e.registerMutation(t.timestamp),n===Jw.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Jw.MouseInteraction}(t)){const{type:n,id:i}=t.data,s=$I.mirror.getNode(i);s instanceof HTMLElement&&n===Xw.Click&&e.registerClick(s)}}catch(e){}}function tx(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var nx;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(nx||(nx={}));const ix=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function sx(e){const t={};for(const n in e)if(ix.has(n)){let i=n;"data-testid"!==n&&"data-test-id"!==n||(i="testId"),t[i]=e[n]}return t}const ax=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,i=null;try{i=t?YI(e.event):KI(e.event),n=Ov(i,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:i,message:n}}(e);return tx({category:`ui.${e.name}`,...rx(t,n)})}(t);if(!n)return;const i="click"===t.name,s=i?t.event:void 0;var a,r,o;!(i&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(a=e.clickDetector,r=n,o=YI(t.event),a.handleClick(r,o)),VI(e,n)};function rx(e,t){const n=$I.mirror.getId(e),i=n&&$I.mirror.getNode(n),s=i&&$I.mirror.getMeta(i),a=s&&function(e){return e.type===nx.Element}(s)?s:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map((e=>e.type===nx.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:sx(a.attributes)}}:{}}}function ox(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:i,altKey:s,key:a,target:r}=e;if(!r||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(r)||!a)return null;const o=t||i||s,c=1===a.length;if(!o&&c)return null;const l=Ov(r,{maxStringLength:200})||"<unknown>",d=rx(r,l);return tx({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:i,altKey:s,key:a}})}(t);n&&VI(e,n)}const cx={resource:function(e){const{entryType:t,initiatorType:n,name:i,responseEnd:s,startTime:a,decodedBodySize:r,encodedBodySize:o,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:dx(a),end:dx(s),name:i,data:{size:l,statusCode:c,decodedBodySize:r,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:n,name:i,startTime:s}=e,a=dx(s);return{type:n,name:i,start:a,end:a+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:i,duration:s,domComplete:a,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:d,loadEventEnd:u,redirectCount:p,startTime:h,transferSize:f,type:m}=e;if(0===s)return null;return{type:`${t}.${m}`,start:dx(h),end:dx(a),name:n,data:{size:f,decodedBodySize:i,encodedBodySize:r,duration:s,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:u,domComplete:a,redirectCount:p}}}};function lx(e){return cx[e.entryType]?cx[e.entryType](e):null}function dx(e){return((L_||Fb.performance.timeOrigin)+e)/1e3}function ux(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const i=[];return["navigation","paint","resource"].forEach((e=>{i.push(kb(e,n))})),i.push(Tb((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],i=n?n.element:void 0,s=e.value,a=dx(s);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:s,size:s,nodeId:i?$I.mirror.getId(i):void 0}}}(t))}))),()=>{i.forEach((e=>e()))}}const px="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,hx='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function fx(e,t){px&&(Mv.info(e),t&&gx(e))}function mx(e,t){px&&(Mv.info(e),t&&setTimeout((()=>{gx(e)}),0))}function gx(e){var t,n;t={category:"console",data:{logger:"replay"},level:"info",message:e},n={level:"info"},lb().addBreadcrumb(t,n)}class yx extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class vx{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Db)throw new yx;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?BI(e):null}}class _x{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){fx("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((i,s)=>{const a=({data:t})=>{const r=t;if(r.method===e&&r.id===n){if(this._worker.removeEventListener("message",a),!r.success)return px&&Mv.error("[Replay]",r.response),void s(new Error("Error in compression worker"));i(r.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class bx{constructor(e){this._worker=new _x(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=BI(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Db?Promise.reject(new yx):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{px&&Mv.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class wx{constructor(e){this._fallback=new vx,this._compression=new bx(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void fx("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){px&&Mv.warn("[Replay] Failed to add events when switching buffers.",e)}}}function Ix({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([hx]);return URL.createObjectURL(e)}();return""}();if(!t)return;fx("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new wx(n)}catch(e){fx("[Replay] Failed to create compression worker")}}(t);if(e)return e}return fx("[Replay] Using simple buffer"),new vx}function xx(){try{return"sessionStorage"in Fb&&!!Fb.sessionStorage}catch(e){return!1}}function Ex(e){!function(){if(!xx())return;try{Fb.sessionStorage.removeItem(Nb)}catch(e){}}(),e.session=void 0}function Sx(e){return void 0!==e&&Math.random()<e}function Ax(e){const t=Date.now();return{id:e.id||e_(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Tx(e){if(xx())try{Fb.sessionStorage.setItem(Nb,JSON.stringify(e))}catch(e){}}function kx({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:i}={}){const s=function(e,t){return Sx(e)?"session":!!t&&"buffer"}(e,t),a=Ax({sampled:s,previousSessionId:i});return n&&Tx(a),a}function Rx(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Lx(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:i=Date.now()}){return Rx(e.started,t,i)||Rx(e.lastActivity,n,i)}function Cx(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Lx(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Ox({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:i},s){const a=s.stickySession&&function(e){if(!xx())return null;try{const t=Fb.sessionStorage.getItem(Nb);if(!t)return null;const n=JSON.parse(t);return mx("[Replay] Loading existing session",e),Ax(n)}catch(e){return null}}(e);return a?Cx(a,{sessionIdleExpire:t,maxReplayDuration:n})?(mx("[Replay] Session in sessionStorage is expired, creating new one..."),kx(s,{previousSessionId:a.id})):a:(mx("[Replay] Creating new session",e),kx(s,{previousSessionId:i}))}function Fx(e,t,n){return!!Ux(e,t)&&(Nx(e,t,n),!0)}async function Nx(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Gw.Custom}(e))return t(e)}catch(e){return px&&Mv.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(t){const n=t&&t instanceof yx?"addEventSizeExceeded":"addEvent";px&&Mv.error(t),await e.stop({reason:n});const i=K_();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Ux(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=BI(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(fx(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function jx(e){return!e.type}function Px(e){return"transaction"===e.type}function Mx(e){return"feedback"===e.type}function Dx(e){const t=function(){const e=K_();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,i)=>{if(!e.isEnabled()||!jx(n)&&!Px(n))return;const s=i&&i.statusCode;t&&(!s||s<200||s>=300)||(Px(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:i}=e.getOptions();if("function"==typeof i&&!i(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function $x(e){return t=>{e.isEnabled()&&jx(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){VI(e,tx({category:"replay.hydrate-error"}))}}(e,t)}}function zx(e,t=!1){const n=t?Dx(e):void 0;return Object.assign(((t,i)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!jx(t)&&!Px(t)&&!Mx(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Mx(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Gw.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,i)&&!e.getOptions()._experiments.captureExceptions)return px&&Mv.log("[Replay] Ignoring error from rrweb internals",t),null;const s=function(e,t){return"buffer"===e.recordingMode&&t.message!==jb&&!(!t.exception||t.type)&&Sx(e.getOptions().errorSampleRate)}(e,t);return(s||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}function Bx(e,t){return t.map((({type:t,start:n,end:i,name:s,data:a})=>{const r=e.throttledAddEvent({type:Gw.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:i,data:a}}});return"string"==typeof r?Promise.resolve(null):r}))}function qx(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,i=Date.now()/1e3;return{type:"navigation.push",start:i,end:i,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Bx(e,[n]),!1))))}}function Vx(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!px||!e.getOptions()._experiments.traceInternals)&&pb(t,K_())}(e,t.name)||e.addUpdate((()=>(Bx(e,[t]),!0))))}function Hx(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:i}=e,s=i[__];if(!t||!n||!s)return null;const{method:a,url:r,status_code:o}=s;return void 0===r?null:{type:"resource.xhr",name:r,start:t/1e3,end:n/1e3,data:{method:a,statusCode:o}}}(t);Vx(e,n)}}function Wx(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=eE(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Yx(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Kx(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[eE(e)];if(!e)return[void 0]}catch(t){return px&&Mv.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return px&&Mv.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Gx(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},i=n.warnings||[];return n.warnings=[...i,t],e._meta=n,e}function Jx(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:i,url:s,method:a,statusCode:r,request:o,response:c}=t;return{type:e,start:n/1e3,end:i/1e3,name:s,data:Hv({method:a,statusCode:r,request:o,response:c})}}function Xx(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Qx(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const i={headers:e,size:t},{body:s,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Pb,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,Pb);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return i.body=s,a&&a.length>0&&(i._meta={warnings:a}),i}function Zx(e,t){return Object.keys(e).reduce(((n,i)=>{const s=i.toLowerCase();return t.includes(s)&&e[i]&&(n[s]=e[i]),n}),{})}function eE(e){return new URLSearchParams(e).toString()}function tE(e,t){const n=function(e,t=Fb.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Fb.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const i=n.href;if(!e.endsWith("/")&&i.endsWith("/"))return i.slice(0,-1);return i}(e);return function(e,t=[],n=!1){return t.some((t=>Sv(e,t,n)))}(n,t)}async function nE(e,t,n){try{const i=await async function(e,t,n){const i=Date.now(),{startTimestamp:s=i,endTimestamp:a=i}=t,{url:r,method:o,status_code:c=0,request_body_size:l,response_body_size:d}=e.data,u=tE(r,n.networkDetailAllowUrls)&&!tE(r,n.networkDetailDenyUrls),p=u?function({networkCaptureBodies:e,networkRequestHeaders:t},n,i){const s=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return aE(e[0],t);if(2===e.length)return aE(e[1],t);return{}}(n,t):{};if(!e)return Qx(s,i,void 0);const a=iE(n),[r,o]=Kx(a),c=Qx(s,i,r);if(o)return Gx(c,o);return c}(n,t.input,l):Xx(l),h=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:i},s,a){if(!e&&void 0!==a)return Xx(a);const r=s?sE(s.headers,i):{};if(!s||!t&&void 0!==a)return Qx(r,a,void 0);const[o,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){px&&Mv.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const i=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(i)))}))}(t);return[e]}catch(e){return px&&Mv.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(s),l=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:s,headers:a}){try{const r=e&&e.length&&void 0===i?Wx(e,n):i;return s?Qx(a,r,t?e:void 0):Xx(r)}catch(e){return px&&Mv.warn("[Replay] Failed to serialize response body",e),Qx(a,i,void 0)}}(o,{networkCaptureBodies:t,textEncoder:n,responseBodySize:a,captureDetails:e,headers:r});if(c)return Gx(l,c);return l}(u,n,t.response,d);return{startTimestamp:s,endTimestamp:a,url:r,method:o,statusCode:c,request:p,response:h}}(e,t,n),s=Jx("resource.fetch",i);Vx(n.replay,s)}catch(e){px&&Mv.error("[Replay] Failed to capture fetch breadcrumb",e)}}function iE(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function sE(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function aE(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?sE(n,t):Array.isArray(n)?{}:Zx(n,t):{}}async function rE(e,t,n){try{const i=function(e,t,n){const i=Date.now(),{startTimestamp:s=i,endTimestamp:a=i,input:r,xhr:o}=t,{url:c,method:l,status_code:d=0,request_body_size:u,response_body_size:p}=e.data;if(!c)return null;if(!o||!tE(c,n.networkDetailAllowUrls)||tE(c,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:a,url:c,method:l,statusCode:d,request:Xx(u),response:Xx(p)}}const h=o[__],f=h?Zx(h.request_headers,n.networkRequestHeaders):{},m=Zx(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,i]=t.split(": ");return e[n.toLowerCase()]=i,e}),{})}(o),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?Kx(r):[void 0],[v,_]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return px&&Mv.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return px&&Mv.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return px&&Mv.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(o):[void 0],b=Qx(f,u,g),w=Qx(m,p,v);return{startTimestamp:s,endTimestamp:a,url:c,method:l,statusCode:d,request:y?Gx(b,y):b,response:_?Gx(w,_):w}}(e,t,n),s=Jx("resource.xhr",i);Vx(n.replay,s)}catch(e){px&&Mv.error("[Replay] Failed to capture xhr breadcrumb",e)}}function oE(e,t,n){const{xhr:i,input:s}=t;if(!i)return;const a=Wx(s,n.textEncoder),r=i.getResponseHeader("content-length")?Yx(i.getResponseHeader("content-length")):function(e,t,n){try{return Wx("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(i.response,i.responseType,n.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}function cE(e){const t=K_();try{const n=new TextEncoder,{networkDetailAllowUrls:i,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:i,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(oE(t,n,e),rE(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:i,response:s}=t,a=Wx(i?iE(i):void 0,n.textEncoder),r=s?Yx(s.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),nE(t,n,e))}catch(e){px&&Mv.warn("Error when enriching network breadcrumb")}}(c,e,t))):(!function(e){const t="fetch";Xv(t,e),Qv(t,u_)}(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:i,response:s}=e;if(!n)return null;const{method:a,url:r}=i;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r,data:{method:a,statusCode:s?s.status:void 0}}}(t);Vx(e,n)}}(e)),Xv("xhr",Hx(e)),Qv("xhr",b_))}catch(e){}}let lE=null;const dE=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(lE===t||!t)return null;if(lE=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return tx(e);let n=!1;const i=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Mb?(n=!0,`${e.slice(0,Mb)}…`):e;if("object"==typeof e)try{const t=x_(e,7);return JSON.stringify(t).length>Mb?(n=!0,`${JSON.stringify(t,null,2).slice(0,Mb)}…`):t}catch(e){}return e}));return tx({...e,data:{...e.data,arguments:i,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return tx(t)}(t);n&&VI(e,n)};function uE(e){const t=G_(),n=K_();t.addScopeListener(dE(e)),Xv("dom",ax(e)),Qv("dom",r_),function(e){const t="history";Xv(t,e),Qv(t,y_)}(qx(e)),cE(e);const i=zx(e,!pE(n));n&&n.addEventProcessor?n.addEventProcessor(i):function(e){const t=K_();t&&t.addEventProcessor&&t.addEventProcessor(e)}(i),pE(n)&&(n.on("beforeSendEvent",$x(e)),n.on("afterSendEvent",Dx(e)),n.on("createDsc",(t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const i=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&i&&(e.flush(),t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=i))})))}function pE(e){return!(!e||!e.on)}function hE(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}}}}function fE(e){let t=!1;return(n,i)=>{if(!e.checkAndHandleExpiredSession())return void(px&&Mv.warn("[Replay] Received replay event after session expired."));const s=i||!t;t=!0,e.clickDetector&&ex(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!Fx(e,n,s))return!0;if(!s)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Fx(e,function(e){const t=e.getOptions();return{type:Gw.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(fx(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Tx(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}function mE(e,t,n,i){return function(e,t=[]){return[e,t]}(function(e,t,n,i){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:Dv(i)},...s&&{trace:Hv({...s})}}}(e,function(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}(e),i,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}async function gE({client:e,scope:t,replayId:n,event:i}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",i,s);const a=await q_(e.getOptions(),i,s,t,e,lb().getIsolationScope());if(!a)return null;a.platform=a.platform||"javascript";const r=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:c}=r&&r.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},a}async function yE({recordingData:e,replayId:t,segmentId:n,eventContext:i,timestamp:s,session:a}){const r=function({recordingData:e,headers:t}){let n;const i=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${i}${e}`;else{const t=(new TextEncoder).encode(i);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:o,errorIds:c,traceIds:l,initialTimestamp:d}=i,u=K_(),p=G_(),h=u&&u.getTransport(),f=u&&u.getDsn();if(!(u&&h&&f&&a.sampled))return;const m={type:Ub,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:o,replay_id:t,segment_id:n,replay_type:a.sampled},g=await gE({scope:p,client:u,replayId:t,event:m});if(!g)return u.recordDroppedEvent("event_processor","replay",m),void fx("An event processor returned `null`, will not send event.");delete g.sdkProcessingMetadata;const y=mE(g,r,f,u.getOptions().tunnel);let v;try{v=await h.send(y)}catch(e){const t=new Error(jb);try{t.cause=e}catch(e){}throw t}if(!v)return v;if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new vE(v.statusCode);const _=O_({},v);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(_,"replay"))throw new _E(_);return v}class vE extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class _E extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function bE(e,t={count:0,interval:5e3}){const{recordingData:n,options:i}=e;var s,a;if(n.length)try{return await yE(e),!0}catch(n){if(n instanceof vE||n instanceof _E)throw n;if(s="Replays",a={_retryCount:t.count},lb().setContext(s,a),px&&i._experiments&&i._experiments.captureExceptions&&Y_(n),t.count>=3){const e=new Error(`${jb} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,i)=>{setTimeout((async()=>{try{await bE(e,t),n(!0)}catch(e){i(e)}}),t.interval)}))}}const wE="__THROTTLED";function IE(e,t,n){const i=new Map;let s=!1;return(...a)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;i.forEach(((e,n)=>{n<t&&i.delete(n)}))})(r),[...i.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":wE}s=!1;const o=i.get(r)||0;return i.set(r,o+1),e(...a)}}class xE{constructor({options:e,recordingOptions:t}){xE.prototype.__init.call(this),xE.prototype.__init2.call(this),xE.prototype.__init3.call(this),xE.prototype.__init4.call(this),xE.prototype.__init5.call(this),xE.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let i,s,a;const r=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return c(),i=e(),i}function c(){void 0!==s&&clearTimeout(s),void 0!==a&&clearTimeout(a),s=a=void 0}function l(){return s&&clearTimeout(s),s=setTimeout(o,t),r&&void 0===a&&(a=setTimeout(o,r)),i}return l.cancel=c,l.flush=function(){return void 0!==s||void 0!==a?o():i},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=IE(((e,t)=>function(e,t,n){return Ux(e,t)?Nx(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;s&&(this.clickDetector=new XI(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",mx(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");mx("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=Ox({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");mx("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Ox({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=$I({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:fE(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{fx("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Ex(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),fx("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),fx("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();fx("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Rx(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Fb.location.pathname}${Fb.location.hash}${Fb.location.search}`,t=`${Fb.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===wE){const e=tx({category:"replay.throttled"});this.addUpdate((()=>!Fx(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||G_().getTransaction(),t=(e&&B_(e).data||{})["sentry.source"];if(e&&t&&["route","custom"].includes(t))return B_(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Ix({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){px&&Mv.error("[Replay]",e),px&&this._options._experiments&&this._options._experiments.captureExceptions&&Y_(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Ox({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Cx(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Fb.document.addEventListener("visibilitychange",this._handleVisibilityChange),Fb.addEventListener("blur",this._handleWindowBlur),Fb.addEventListener("focus",this._handleWindowFocus),Fb.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(uE(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=ux(this)}_removeListeners(){try{Fb.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Fb.removeEventListener("blur",this._handleWindowBlur),Fb.removeEventListener("focus",this._handleWindowFocus),Fb.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Fb.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=tx({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=tx({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{ox(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Lx(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):fx("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Gw.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(lx).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Bx(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(Bx(e,[hE(Fb.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await bE({replayId:e,recordingData:s,segmentId:i,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=K_();t&&t.recordDroppedEvent("send_error","replay")}}else px&&Mv.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(px&&Mv.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const i=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(i||s)return fx(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(i&&this._debouncedFlush());const a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&fx("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){px&&Mv.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Tx(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,i=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||i){const e=tx({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function EE(e,t,n,i){const s=[...e,..."string"==typeof i?i.split(","):[],...t];return void 0!==n&&("string"==typeof n&&s.push(`.${n}`),Pv((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),s.join(",")}const SE='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',AE=["content-length","content-type","accept"];let TE=!1;const kE=e=>new RE(e);class RE{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:i=36e5,stickySession:s=!0,useCompression:a=!0,workerUrl:r,_experiments:o={},sessionSampleRate:c,errorSampleRate:l,maskAllText:d=!0,maskAllInputs:u=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:_=!0,networkRequestHeaders:b=[],networkResponseHeaders:w=[],mask:I=[],maskAttributes:x=["title","placeholder"],unmask:E=[],block:S=[],unblock:A=[],ignore:T=[],maskFn:k,beforeAddRecordingEvent:R,beforeErrorSampling:L,blockClass:C,blockSelector:O,maskInputOptions:F,maskTextClass:N,maskTextSelector:U,ignoreClass:j}={}){this.name=RE.id;const P=function({mask:e,unmask:t,block:n,unblock:i,ignore:s,blockClass:a,blockSelector:r,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const d={maskTextSelector:EE(e,[".sentry-mask","[data-sentry-mask]"],o,c),unmaskTextSelector:EE(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:EE(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,r),unblockSelector:EE(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:EE(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return a instanceof RegExp&&(d.blockClass=a),o instanceof RegExp&&(d.maskTextClass=o),d}({mask:I,unmask:E,block:S,unblock:A,ignore:T,blockClass:C,blockSelector:O,maskTextClass:N,maskTextSelector:U,ignoreClass:j});if(this._recordingOptions={maskAllInputs:u,maskAllText:d,maskInputOptions:{...F||{},password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:i,privacyOptions:s,value:a}){return i?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?a:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a:a}({maskAttributes:x,maskAllText:d,privacyOptions:P,key:e,value:t,el:n}),...P,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(i,$b),stickySession:s,sessionSampleRate:c,errorSampleRate:l,useCompression:a,workerUrl:r,blockAllMedia:p,maskAllInputs:u,maskAllText:d,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:_,networkRequestHeaders:LE(b),networkResponseHeaders:LE(w),beforeAddRecordingEvent:R,beforeErrorSampling:L,_experiments:o},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof l&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${SE}`:SE),this._isInitialized&&I_())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return TE}set _isInitialized(e){TE=e}setupOnce(){I_()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=K_(),n=t&&t.getOptions(),i={sessionSampleRate:0,errorSampleRate:0,...Hv(e)};if(!n)return Pv((()=>{console.warn("SDK client is not available.")})),i;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&Pv((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));"number"==typeof n.replaysSessionSampleRate&&(i.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(i.errorSampleRate=n.replaysOnErrorSampleRate);return i}(this._initialOptions);this._replay=new xE({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=K_().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function LE(e){return[...AE,...e.map((e=>e.toLowerCase()))]}RE.__initStatic();const CE=Object.prototype.toString;function OE(e){switch(CE.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return jE(e,Error)}}function FE(e,t){return CE.call(e)===`[object ${t}]`}function NE(e){return FE(e,"Object")}function UE(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function jE(e,t){try{return e instanceof t}catch(e){return!1}}function PE(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function ME(e,t){let n=e;const i=n.length;if(i<=150)return n;t>i&&(t=i);let s=Math.max(t-60,0);s<5&&(s=0);let a=Math.min(s+140,i);return a>i-5&&(a=i),a===i&&(s=Math.max(a-140,0)),n=n.slice(s,a),s>0&&(n=`'{snip} ${n}`),a<i&&(n+=" {snip}"),n}function DE(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{PE(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function $E(e){return e&&e.Math==Math?e:void 0}const zE="object"==typeof globalThis&&$E(globalThis)||"object"==typeof window&&$E(window)||"object"==typeof self&&$E(self)||"object"==typeof global&&$E(global)||function(){return this}()||{};function BE(e,t,n){const i=n||zE,s=i.__SENTRY__=i.__SENTRY__||{};return s[e]||(s[e]=t())}const qE=zE,VE=80;function HE(e,t){const n=e,i=[];let s,a,r,o,c;if(!n||!n.tagName)return"";if(qE.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),s=n.className,s&&FE(s,"String"))for(a=s.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)r=d[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}const WE="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,YE=["debug","info","warn","error","log","assert","trace"],KE={};function GE(e){if(!("console"in zE))return e();const t=zE.console,n={},i=Object.keys(KE);i.forEach((e=>{const i=KE[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const JE=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return WE?YE.forEach((n=>{t[n]=(...t)=>{e&&GE((()=>{zE.console[n](`Sentry Logger [${n}]:`,...t)}))}})):YE.forEach((e=>{t[e]=()=>{}})),t}();function XE(e,t,n){if(!(t in e))return;const i=e[t],s=n(i);"function"==typeof s&&function(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,QE(e,"__sentry_original__",t)}catch(e){}}(s,i),e[t]=s}function QE(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){WE&&JE.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ZE(e){if(OE(e))return{message:e.message,name:e.name,stack:e.stack,...tS(e)};if(t=e,"undefined"!=typeof Event&&jE(t,Event)){const t={type:e.type,target:eS(e.target),currentTarget:eS(e.currentTarget),...tS(e)};return"undefined"!=typeof CustomEvent&&jE(e,CustomEvent)&&(t.detail=e.detail),t}return e;var t}function eS(e){try{return t=e,"undefined"!=typeof Element&&jE(t,Element)?function(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||VE;for(;n&&a++<i&&(l=HE(n,d),!("html"===l||a>1&&r+s.length*c+l.length>=u));)s.push(l),r+=l.length,n=n.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function tS(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function nS(e){return iS(e,new Map)}function iS(e,t){if(function(e){if(!NE(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=iS(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(iS(e,t))})),i}return e}const sS="<anonymous>";function aS(e){try{return e&&"function"==typeof e&&e.name||sS}catch(e){return sS}}const rS={},oS={};function cS(e){const t="console";!function(e,t){rS[e]=rS[e]||[],rS[e].push(t)}(t,e),function(e,t){oS[e]||(t(),oS[e]=!0)}(t,lS)}function lS(){"console"in zE&&YE.forEach((function(e){e in zE.console&&XE(zE.console,e,(function(t){return KE[e]=t,function(...t){!function(e,t){const n=e&&rS[e];if(n)for(const i of n)try{i(t)}catch(t){WE&&JE.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${aS(i)}\nError:`,t)}}("console",{args:t,level:e});const n=KE[e];n&&n.apply(zE.console,t)}}))}))}function dS(){const e=zE,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function uS(e,t=100,n=1/0){try{return pS("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function pS(e,t,n=1/0,i=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(o=t)||o==o))return t;var o;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(PE(t))return"[VueViewModel]";if(function(e){return NE(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${aS(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===l)return c.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&"function"==typeof d.toJSON)try{return pS("",d.toJSON(),l-1,i,s)}catch(e){}const u=Array.isArray(t)?[]:{};let p=0;const h=ZE(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(p>=i){u[e]="[MaxProperties ~]";break}const t=h[e];u[e]=pS(e,t,l-1,i,s),p++}return r(t),u}var hS;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(hS||(hS={}));class fS{constructor(e){fS.prototype.__init.call(this),fS.prototype.__init2.call(this),fS.prototype.__init3.call(this),fS.prototype.__init4.call(this),this._state=hS.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new fS(((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){i(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){i(e)}else i(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new fS(((t,n)=>{let i,s;return this.then((t=>{s=!1,i=t,e&&e()}),(t=>{s=!0,i=t,e&&e()})).then((()=>{s?n(i):t(i)}))}))}__init(){this._resolve=e=>{this._setResult(hS.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(hS.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===hS.PENDING&&(UE(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===hS.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===hS.RESOLVED&&e[1](this._value),this._state===hS.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const mS=["fatal","error","warning","log","info","debug"];function gS(e){return"warn"===e?"warning":mS.includes(e)?e:"log"}const yS=1e3;function vS(){return Date.now()/yS}const _S=function(){const{performance:e}=zE;if(!e||!e.now)return vS;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/yS}();(()=>{const{performance:e}=zE;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;(a||o<t)&&(s<=o&&e.timeOrigin)})();const bS="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,wS="production";function IS(e,t,n,i=0){return new fS(((s,a)=>{const r=e[i];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},n);bS&&r.id&&null===o&&JE.log(`Event processor "${r.id}" dropped event`),UE(o)?o.then((t=>IS(e,t,n,i+1).then(s))).then(null,a):IS(e,o,n,i+1).then(s).then(null,a)}}))}function xS(e){const t=_S(),n={sid:dS(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return nS({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ES(n,e),n}function ES(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||_S(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:dS()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const SS=1;function AS(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:r,tags:o,origin:c}=TS(e);return nS({data:i,op:s,parent_span_id:a,span_id:t,status:r,tags:o,trace_id:n,origin:c})}function TS(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function kS(e){if(e)return function(e){return e instanceof US||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>RS.includes(e)))}(e)?{captureContext:e}:e}const RS=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function LS(e,t){const n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return BS().captureMessage(e,n,i)}function CS(){return BS().getClient()}function OS(e){return e.transaction}function FS(e){const t=CS();if(!t)return{};const n=function(e,t,n){const i=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},r=nS({environment:i.environment||wS,release:i.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}(TS(e).trace_id||"",t,BS().getScope()),i=OS(e);if(!i)return n;const s=i&&i._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:r}=i.metadata;null!=a&&(n.sample_rate=`${a}`);const o=TS(i);return r&&"url"!==r&&(n.transaction=o.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(t&SS)}(i)),t.emit&&t.emit("createDsc",n),n}function NS(e,t){const{fingerprint:n,span:i,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:i,user:s,contexts:a,level:r,transactionName:o}=t,c=nS(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=nS(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const d=nS(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const u=nS(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts});r&&(e.level=r);o&&(e.transaction=o)}(e,t),i&&function(e,t){e.contexts={trace:AS(t),...e.contexts};const n=OS(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:FS(t),...e.sdkProcessingMetadata};const i=TS(n).description;i&&(e.tags={transaction:i,...e.tags})}}(e,i),function(e,t){e.fingerprint=e.fingerprint?function(e){return Array.isArray(e)?e:[e]}(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}class US{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=jS()}static clone(e){return e?e.clone():new US}clone(){const e=new US;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ES(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof US?t:this}return e instanceof US?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):NE(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=jS(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:vS(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:i,_extra:s,_user:a,_level:r,_fingerprint:o,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:u,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:i,extra:s,user:a,level:r,fingerprint:o||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:d,transactionName:u,span:p}}applyToEvent(e,t={},n=[]){NS(e,this.getScopeData());return IS([...n,...BE("globalEventProcessors",(()=>[])),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:dS();if(!this._client)return JE.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:dS();if(!this._client)return JE.warn("No client configured on scope - will not capture message!"),i;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:dS();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(JE.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function jS(){return{traceId:dS(),spanId:dS().substring(16)}}const PS=parseFloat("7.101.1"),MS=100;class DS{constructor(e,t,n,i=PS){let s,a;this._version=i,t?s=t:(s=new US,s.setClient(e)),n?a=n:(a=new US,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return UE(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:dS(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:dS(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:dS();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=MS}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const r={timestamp:vS(),...e},o=s?GE((()=>s(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=zS(this);try{e(this)}finally{zS(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return bS&&JE.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(bS&&!n){this.getClient()?JE.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):JE.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),ES(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:s=wS}=n&&n.getOptions()||{},{userAgent:a}=zE.navigator||{},r=xS({release:i,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&ES(o,{status:"exited"}),this.endSession(),t.setSession(r),r}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=$S().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);bS&&JE.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function $S(){return zE.__SENTRY__=zE.__SENTRY__||{extensions:{},hub:void 0},zE}function zS(e){const t=$S(),n=qS(t);return VS(t,e),n}function BS(){const e=$S();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=$S()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!qS(e).isOlderThan(PS)||VS(e,new DS);var t;return qS(e)}(e)}function qS(e){return BE("hub",(()=>new DS),e)}function VS(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function HS(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}const WS="CaptureConsole",YS=(e={})=>{const t=e.levels||YE;return{name:WS,setupOnce(){},setup(e){"console"in zE&&cS((({args:n,level:i})=>{CS()===e&&t.includes(i)&&function(e,t){const n={level:gS(t),extra:{arguments:e}};!function(...e){const t=BS();if(2===e.length){const[n,i]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,i(n)))):t.withScope(i)}t.withScope(e[0])}((i=>{if(i.addEventProcessor((e=>(e.logger="console",function(e,t){const n=function(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}(e,{handled:!1,type:"console"}),e))),"assert"===t&&!1===e[0]){const t=`Assertion failed: ${DE(e.slice(1)," ")||"console.assert"}`;return i.setExtra("arguments",e.slice(1)),void LS(t,n)}const s=e.find((e=>e instanceof Error));if("error"===t&&s)return a=s,r=n,void BS().captureException(a,kS(r));var a,r;LS(DE(e," "),n)}))}(n,i)}))}}};HS(WS,YS);const KS="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,GS="ExtraErrorData",JS=(e={})=>{const t=e.depth||3,n=e.captureErrorCause||!1;return{name:GS,setupOnce(){},processEvent:(e,i)=>function(e,t={},n,i){if(!t.originalException||!OE(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,a=function(e,t){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const s=e[t];i[t]=OE(s)?s.toString():s}if(t&&void 0!==e.cause&&(i.cause=OE(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];i[e]=OE(n)?n.toString():n}}return i}catch(e){KS&&JE.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,i);if(a){const t={...e.contexts},i=uS(a,n);return NE(i)&&(QE(i,"__sentry_skip_normalization__",!0),t[s]=i),{...e,contexts:t}}return e}(e,i,t,n)}};HS(GS,JS);const XS=zE,QS="ContextLines",ZS=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:QS,setupOnce(){},processEvent:e=>function(e,t){const n=XS.document,i=XS.location&&(s=XS.location.href,s.split(/[\?#]/,1)[0]);var s;if(!n||!i)return e;const a=e.exception&&e.exception.values;if(!a||!a.length)return e;const r=n.documentElement.innerHTML;if(!r)return e;const o=["<!DOCTYPE html>","<html>",...r.split("\n"),"</html>"];return a.forEach((e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map((e=>function(e,t,n,i){if(e.filename!==n||!e.lineno||!t.length)return e;return function(e,t,n=5){if(void 0===t.lineno)return;const i=e.length,s=Math.max(Math.min(i-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map((e=>ME(e,0))),t.context_line=ME(e[Math.min(i-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,i),s+1+n).map((e=>ME(e,0)))}(t,e,i),e}(e,o,i,t))))})),e}(e,t)}};HS(QS,ZS);const eA=new RegExp("^https:\\/\\/roar-sre--pr\\d+-\\w+\\.web\\.app\\/"),tA=new RegExp("^https:\\/\\/roar-staging\\.web\\.app\\/game\\/sre|https:\\/\\/roar-staging--pr\\d+-\\w+\\.web\\.app\\/");class nA{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,this.displayElement=i,this.jsPsych=null}async init(){yv({dsn:"https://b618958936a197de9f9f9a86ae6cceff@o4505913837420544.ingest.sentry.io/4505915445870592",integrations:[kE({maskAllText:!0,maskAllInputs:!0}),gy(),YS({levels:["warning","error","debug","assert"]}),ZS(),JS()],attachStacktrace:!0,tracesSampleRate:.2,tracePropagationTargets:[eA,tA,"https://roar.education/game/sre","localhost"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),await this.firekit.startRun();const e=await(async(e,t,n,i)=>{const s=La(La({...t,...n},Ca),Oa),{userMode:a,assessmentPid:r,labId:o,recruitment:c,userMetadata:l,urlParams:d,consent:u,storyOption:p,language:h=cc.language,skipInstructions:f,grade:m,birthMonth:g,birthYear:y,age:v,ageMonths:_,timerLength:b}=s;"en"!==h&&cc.changeLanguage(h);const w=or(g,y,v,_),I={taskId:e.task.taskId,pid:r,labId:o,userMode:a||sp(h),recruitment:c||"pilot",storyOption:p,story:tp(p,m),userMetadata:{...l,grade:m,...w},startTime:new Date,urlParams:d,firekit:e,language:h,skipInstructions:f??!0,consent:u??!0,displayElement:i||null,blockOrder:np(a||sp(h)),timerLength:b??18e4,timerLengthList:ip(a||sp(h))},x=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,I[e]??t])));return await I.firekit.updateTaskParams(x),null!==I.pid&&await I.firekit.updateUser({assessmentPid:I.pid,...l}),I})(this.firekit,this.gameParams,this.userParams,this.displayElement);return r.session.set("config",e),function(e,t){_l=wo(gl,yl,cc.language),bl=Io(gl,yl,cc.language).default,console.log("mediaAssets",_l),console.log("preloadTrials",bl),bl.message=cc.t("loading"),ap(t);const n=rp(e),i=dr({responseTimeLowThreshold:1e3,responseTimeHighThreshold:2e4,accuracyThreshold:.6,minResponsesRequired:10,includedReliabilityFlags:["incomplete","responseTimeTooFast"]});vl=new ur({evaluateValidity:i,handleEngagementFlags:(e,n)=>t.firekit.run.started?t.firekit.updateEngagementFlags(e,n):null});const s=[bl,...n];return(e=>{const n={timeline:[fl,ml],repetitions:4};s.push(il),s.push(ul),s.push(hl),s.push(n),s.push(sl);for(let n=0;n<e.length;n+=1)s.push(pl(e[n],n+1,t.timerLengthList[n])),n<e.length-1&&s.push(ll);s.push(dl)})(t.blockOrder),{jsPsych:el,timeline:s}}(this.firekit,e)}async run(){const{jsPsych:e,timeline:t}=await this.init();this.jsPsych=e,this.jsPsych.run(t),await(e=>{const t=n=>{e()?n():setTimeout((e=>t(n)),400)};return new Promise(t)})((()=>!0===this.firekit.run.completed))}async abort(){this.firekit.abortRun(),document.querySelectorAll("audio").forEach((e=>e.pause())),this.jsPsych&&this.jsPsych.endExperiment()}}export{nA as default};
|
|
26
|
+
//# sourceMappingURL=index.ef1f05ed.js.map
|