PageSourceSearch

https://navisavitravel.com/_next/static/chunks/pages/_app-bf482663653d1d5e.js

js navisavitravel.com collected 2026-10-09 22:41:13 UTC 805,027 bytes, 1,304 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="89c924ce-4c90-4668-9942-1cbf38b8e162",e._sentryDebugIdIdentifier="sentry-dbid-89c924ce-4c90-4668-9942-1cbf38b8e162")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{62364:function(e,t,r){"use strict";r.d(t,{HY:function(){return ey},tZ:function(){return ev},BX:function(){return ew}});var n,i,o,s,a=r(85893),l=r(67294),c=r.t(l,2),u=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++}
vendor: 3,941 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),d=Math.abs,h=String.fromCharCode,p=Object.assign;function f(e,t,r){return e.replace(t,r)}function m(e,t){return e.indexOf(t)}function g(e,t){return 0|e.charCodeAt(t)}function y(e,t,r){return e.slice(t,r)}function v(e){return e.length}function w(e,t){return t.push(e),e}var b=1,_=1,S=0,E=0,k=0,x="";function C(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:b,column:_,length:s,return:""}}function T(e,t){return p(C("",null,null,"",null,null,0),e,{length:-e.length},t)}function O(){return k=E<S?g(x,E++):0,_++,10===k&&(_=1,b++),k}function I(){return g(x,E)}function A(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return b=_=1,S=v(x=e),E=0,[]}function P(e){var t,r;return(t=E-1,r=function e(t){for(;O();)switch(k){case t:return E;case 34:case 39:34!==t&&39!==t&&e(k);break;case 40:41===t&&e(t);break;case 92:O()}return E}(91===e?e+2:40===e?e+1:e),y(x,t,r)).trim()}var N="-ms-",L="-moz-",D="-webkit-",M="comm",B="rule",j="decl",$="@keyframes";function U(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function F(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case j:return e.return=e.return||e.value;case M:return"";case $:return e.return=e.value+"{"+U(e.children,n)+"}";case B:e.value=e.props.join(",")}return v(r=U(e.children,n))?e.return=e.value+"{"+r+"}":""}function H(e,t,r,n,i,o,s,a,l,c,u){for(var h=i-1,p=0===i?o:[""],m=p.length,g=0,v=0,w=0;g<n;++g)for(var b=0,_=y(e,h+1,h=d(v=s[g])),S=e;b<m;++b)(S=(v>0?p[b]+" "+_:f(_,/&\f/g,p[b])).trim())&&(l[w++]=S);return C(e,t,r,0===i?B:a,l,c,u)}function z(e,t,r,n){return C(e,t,r,j,y(e,0,n),y(e,n+1,-1),n)}var q=function(e,t,r){for(var n=0,i=0;n=i,i=I(),38===n&&12===i&&(t[r]=1),!A(i);)O();return y(x,e,E)},W=function(e,t){var r=-1,n=44;do switch(A(n)){case 0:38===n&&12===I()&&(t[r]=1),e[r]+=q(E-1,t,r);break;case 2:e[r]+=P(n);break;case 4:if(44===n){e[++r]=58===I()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=h(n)}while(n=O());return e},V=function(e,t){var r;return r=W(R(e),t),x="",r},G=new WeakMap,J=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||G.get(r))&&!n){G.set(e,!0);for(var i=[],o=V(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},X=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Z=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case j:e.return=function e(t,r){switch(45^g(t,0)?(((r<<2^g(t,0))<<2^g(t,1))<<2^g(t,2))<<2^g(t,3):0){case 5103:return D+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return D+t+L+t+N+t+t;case 6828:case 4268:return D+t+N+t+t;case 6165:return D+t+N+"flex-"+t+t;case 5187:return D+t+f(t,/(\w+).+(:[^]+)/,D+"box-$1$2"+N+"flex-$1$2")+t;case 5443:return D+t+N+"flex-item-"+f(t,/flex-|-self/,"")+t;case 4675:return D+t+N+"flex-line-pack"+f(t,/align-content|flex-|-self/,"")+t;case 5548:return D+t+N+f(t,"shrink","negative")+t;case 5292:return D+t+N+f(t,"basis","preferred-size")+t;case 6060:return D+"box-"+f(t,"-grow","")+D+t+N+f(t,"grow","positive")+t;case 4554:return D+f(t,/([^-])(transform)/g,"$1"+D+"$2")+t;
vendor: 6,312 bytes, line 1
1case 6187:return f(f(f(t,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),t,"")+t;case 5495:case 3959:return f(t,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return f(f(t,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+t+t;case 4095:case 3583:case 4068:case 2532:return f(t,/(.+)-inline(.+)/,D+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(v(t)-1-r>6)switch(g(t,r+1)){case 109:if(45!==g(t,r+4))break;case 102:return f(t,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+L+(108==g(t,r+3)?"$3":"$2-$3"))+t;case 115:return~m(t,"stretch")?e(f(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==g(t,r+1))break;case 6444:switch(g(t,v(t)-3-(~m(t,"!important")&&10))){case 107:return f(t,":",":"+D)+t;case 101:return f(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===g(t,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+N+"$2box$3")+t}break;case 5936:switch(g(t,r+11)){case 114:return D+t+N+f(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return D+t+N+f(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return D+t+N+f(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return D+t+N+t+t}return t}(e.value,e.length);break;case $:return U([T(e,{value:f(e.value,"@","@"+D)})],n);case B:if(e.length){var i,o;return i=e.props,o=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return U([T(e,{props:[f(t,/:(read-\w+)/,":"+L+"$1")]})],n);case"::placeholder":return U([T(e,{props:[f(t,/:(plac\w+)/,":"+D+"input-$1")]}),T(e,{props:[f(t,/:(plac\w+)/,":"+L+"$1")]}),T(e,{props:[f(t,/:(plac\w+)/,N+"input-$1")]})],n)}return""},i.map(o).join("")}}}],K=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Y=function(e,t,r){K(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}},Q={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ee=/[A-Z]|^ms/g,et=/_EMO_([^_]+?)_([^]*?)_EMO_/g,er=function(e){return 45===e.charCodeAt(1)},en=function(e){return null!=e&&"boolean"!=typeof e},ei=(n=function(e){return er(e)?e:e.replace(ee,"-$&").toLowerCase()},i=Object.create(null),function(e){return void 0===i[e]&&(i[e]=n(e)),i[e]}),eo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(et,function(e,t,r){return s={name:t,styles:r,next:s},t})}return 1===Q[e]||er(e)||"number"!=typeof t||0===t?t:t+"px"};function es(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return s={name:r.name,styles:r.styles,next:s},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)s={name:n.name,styles:n.styles,next:s},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=es(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":en(s)&&(n+=ei(o)+":"+eo(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var a=0;a<s.length;a++)en(s[a])&&(n+=ei(o)+":"+eo(o,s[a])+";");else{var l=es(e,t,s);switch(o){case"animation":case"animationName":n+=ei(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var i=s,o=r(e);return s=i,es(e,t,o)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var ea=/label:\s*([^\s;{]+)\s*(;|$)/g,el=!!c.useInsertionEffect&&c.useInsertionEffect,ec=el||function(e){return e()};el||l.useLayoutEffect;var eu=l.createContext("undefined"!=typeof HTMLElement?function(e){var t,r,n,i,o,s,a=e.key;if("css"===a){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var c=e.stylisPlugins||Z,d={},p=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)d[t[r]]=!0;p.push(e)});var S=(r=(t=[J,X].concat(c,[F,(n=function(e){s.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,n,i,o){for(var s="",a=0;a<r;a++)s+=t[a](e,n,i,o)||"";return s}),T=function(e){var t,r;return U((r=function e(t,r,n,i,o,s,a,l,c){for(var u,d=0,p=0,S=a,T=0,R=0,N=0,L=1,D=1,B=1,j=0,$="",U=o,F=s,q=i,W=$;D;)switch(N=j,j=O()){case 40:if(108!=N&&58==g(W,S-1)){-1!=m(W+=f(P(j),"&","&\f"),"&\f")&&(B=-1);break}case 34:case 39:case 91:W+=P(j);break;case 9:case 10:case 13:case 32:W+=function(e){for(;k=I();)if(k<33)O();else break;return A(e)>2||A(k)>3?"":" "}(N);break;case 92:W+=function(e,t){for(var r;--t&&O()&&!(k<48)&&!(k>102)&&(!(k>57)||!(k<65))&&(!(k>70)||!(k<97)););return r=E+(t<6&&32==I()&&32==O()),y(x,e,r)}(E-1,7);continue;case 47:switch(I()){case 42:case 47:w(C(u=function(e,t){for(;O();)if(e+k===57)break;else if(e+k===84&&47===I())break;return"/*"+y(x,t,E-1)+"*"+h(47===e?e:O())}(O(),E),r,n,M,h(k),y(u,2,-2),0),c);break;default:W+="/"}break;case 123*L:l[d++]=v(W)*B;case 125*L:case 59:case 0:switch(j){case 0:case 125:D=0;case 59+p:-1==B&&(W=f(W,/\f/g,"")),R>0&&v(W)-S&&w(R>32?z(W+";",i,n,S-1):z(f(W," ","")+";",i,n,S-2),c);break;case 59:W+=";";default:if(w(q=H(W,r,n,d,p,o,l,$,U=[],F=[],S),s),123===j){if(0===p)e(W,r,q,q,U,s,S,l,F);else switch(99===T&&110===g(W,3)?100:T){case 100:case 108:case 109:case 115:e(t,q,q,i&&w(H(t,q,q,0,0,o,l,$,o,U=[],S),F),o,F,S,l,i?U:F);break;default:e(W,q,q,q,[""],F,0,l,F)}}}d=p=R=0,L=B=1,$=W="",S=a;break;case 58:S=1+v(W),R=N;default:if(L<1){if(123==j)--L;else if(125==j&&0==L++&&125==(k=E>
10?g(x,--E):0,_--,10===k&&(_=1,b--),k))continue}switch(W+=h(j),j*L){case 38:B=p>0?1:(W+="\f",-1);break;case 44:l[d++]=(v(W)-1)*B,B=1;break;case 64:45===I()&&(W+=P(O())),T=I(),p=S=v($=W+=function(e){for(;!A(I());)O();return y(x,e,E)}(E)),j++;break;case 45:45===N&&2==v(W)&&(L=0)}}return s}("",null,null,null,[""],t=R(t=e),0,[0],t),x="",r),S)};o=function(e,t,r,n){s=r,T(e?e+"{"+t.styles+"}":t.styles),n&&(N.inserted[t.name]=!0)};var N={key:a,sheet:new u({key:a,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:d,registered:{},insert:o};return N.sheet.hydrate(p),N}({key:"css"}):null);eu.Provider;var ed=l.createContext({}),eh={}.hasOwnProperty,ep="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ef=function(e,t){var r={};for(var n in t)eh.call(t,n)&&(r[n]=t[n]);return r[ep]=e,r},em=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return K(t,r,n),ec(function(){return Y(t,r,n)}),null},eg=(o=function(e,t,r){var n,i,o,a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var c=e[ep],u=[a],d="";"string"==typeof e.className?(n=t.registered,i=e.className,o="",i.split(" ").forEach(function(e){void 0!==n[e]?u.push(n[e]+";"):e&&(o+=e+" ")}),d=o):null!=e.className&&(d=e.className+" ");var h=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n,i=!0,o="";s=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=es(r,t,a)):o+=a[0];for(var l=1;l<e.length;l++)o+=es(r,t,e[l]),i&&(o+=a[l]);ea.lastIndex=0;for(var c="";null!==(n=ea.exec(o));)c+="-"+n[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(o)+c,styles:o,next:s}}(u,void 0,l.useContext(ed));d+=t.key+"-"+h.name;var p={};for(var f in e)eh.call(e,f)&&"css"!==f&&f!==ep&&(p[f]=e[f]);return p.className=d,r&&(p.ref=r),l.createElement(l.Fragment,null,l.createElement(em,{cache:t,serialized:h,isStringTag:"string"==typeof c}),l.createElement(c,p))},(0,l.forwardRef)(function(e,t){return o(e,(0,l.useContext)(eu),t)}));r(8679);var ey=a.Fragment,ev=function(e,t,r){return eh.call(t,"css")?a.jsx(eg,ef(e,t),r):a.jsx(e,t,r)},ew=function(e,t,r){return eh.call(t,"css")?a.jsxs(eg,ef(e,t),r):a.jsxs(e,t,r)}},74444:function(e,t,r){"use strict";r.d(t,{BH:function(){return v},L:function(){return c},LL:function(){return O},L_:function(){return _},Pz:function(){return y},ZR:function(){return T},aH:function(){return g},b$:function(){return E},eu:function(){return C},hl:function(){return x},m9:function(){return j},ne:function(){return D},pd:function(){return L},q4:function(){return m},ru:function(){return S},tV:function(){return u},uI:function(){return b},vZ:function(){return function e(t,r){if(t===r)return!0;let n=Object.keys(t),i=Object.keys(r);for(let o of n){if(!i.includes(o))return!1;let n=t[o],s=r[o];if(R(n)&&R(s)){if(!e(n,s))return!1}else if(n!==s)return!1}for(let e of i)if(!n.includes(e))return!1;return!0}},w1:function(){return k},xO:function(){return P},xb:function(){return A},z$:function(){return w},zd:function(){return N}});var n=r(83454);/**
2 * @license
3 * Copyright 2017 Google LLC
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *   http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */let i=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},o=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let o=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=((7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(o>>10)),t[n++]=String.fromCharCode(56320+(1023&o))}else{let o=e[r++],s=e[r++];
16t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")},s={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],o=t+1<e.length,s=o?e[t+1]:0,a=t+2<e.length,l=a?e[t+2]:0,c=i>>2,u=(3&i)<<4|s>>4,d=(15&s)<<2|l>>6,h=63&l;a||(h=64,o||(d=64)),n.push(r[c],r[u],r[d],r[h])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):o(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0,s=++t<e.length?r[e.charAt(t)]:64,l=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==o||null==s||null==l)throw new a;let c=i<<2|o>>4;if(n.push(c),64!==s){let e=o<<4&240|s>>2;if(n.push(e),64!==l){let e=s<<6&192|l;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class a extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let l=function(e){let t=i(e);return s.encodeByteArray(t,!0)},c=function(e){return l(e).replace(/\./g,"")},u=function(e){try{return s.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},d=()=>/**
17 * @license
18 * Copyright 2022 Google LLC
19 *
20 * Licensed under the Apache License, Version 2.0 (the "License");
21 * you may not use this file except in compliance with the License.
22 * You may obtain a copy of the License at
23 *
24 *   http://www.apache.org/licenses/LICENSE-2.0
25 *
26 * Unless required by applicable law or agreed to in writing, software
27 * distributed under the License is distributed on an "AS IS" BASIS,
28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29 * See the License for the specific language governing permissions and
30 * limitations under the License.
31 */(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,h=()=>{if(void 0===n||void 0===n.env)return;let e=n.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},p=()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&u(e[1]);return t&&JSON.parse(t)},f=()=>{try{return d()||h()||p()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},m=e=>{var t,r;return null===(r=null===(t=f())||void 0===t?void 0:t.emulatorHosts)||void 0===r?void 0:r[e]},g=()=>{var e;return null===(e=f())||void 0===e?void 0:e.config},y=e=>{var t;return null===(t=f())||void 0===t?void 0:t[`_${e}`]};/**
32 * @license
33 * Copyright 2017 Google LLC
34 *
35 * Licensed under the Apache License, Version 2.0 (the "License");
36 * you may not use this file except in compliance with the License.
37 * You may obtain a copy of the License at
38 *
39 *   http://www.apache.org/licenses/LICENSE-2.0
40 *
41 * Unless required by applicable law or agreed to in writing, software
42 * distributed under the License is distributed on an "AS IS" BASIS,
43 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44 * See the License for the specific language governing permissions and
45 * limitations under the License.
46 */class v{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>
46{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}/**
47 * @license
48 * Copyright 2017 Google LLC
49 *
50 * Licensed under the Apache License, Version 2.0 (the "License");
51 * you may not use this file except in compliance with the License.
52 * You may obtain a copy of the License at
53 *
54 *   http://www.apache.org/licenses/LICENSE-2.0
55 *
56 * Unless required by applicable law or agreed to in writing, software
57 * distributed under the License is distributed on an "AS IS" BASIS,
58 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59 * See the License for the specific language governing permissions and
60 * limitations under the License.
61 */function w(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function b(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(w())}function _(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function S(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function E(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function k(){let e=w();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function x(){try{return"object"==typeof indexedDB}catch(e){return!1}}function C(){return new Promise((e,t)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}})}class T extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,T.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,O.prototype.create)}}class O{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){let r=t[0]||{},n=`${this.service}/${e}`,i=this.errors[e],o=i?i.replace(I,(e,t)=>{let n=r[t];return null!=n?String(n):`<${t}?>`}):"Error",s=`${this.serviceName}: ${o} (${n}).`;return new T(n,s,r)}}let I=/\{\$([^}]+)}/g;function A(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function R(e){return null!==e&&"object"==typeof e}/**
62 * @license
63 * Copyright 2017 Google LLC
64 *
65 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License.
67 * You may obtain a copy of the License at
68 *
69 *   http://www.apache.org/licenses/LICENSE-2.0
70 *
71 * Unless required by applicable law or agreed to in writing, software
72 * distributed under the License is distributed on an "AS IS" BASIS,
73 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
74 * See the License for the specific language governing permissions and
75 * limitations under the License.
76 */function P(e){let t=[];for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return t.length?"&"+t.join("&"):""}function N(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,n]=e.split("=");
76t[decodeURIComponent(r)]=decodeURIComponent(n)}}),t}function L(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)}function D(e,t){let r=new M(e,t);return r.subscribe.bind(r)}class M{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(n.next=B),void 0===n.error&&(n.error=B),void 0===n.complete&&(n.complete=B);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}),this.observers.push(n),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function B(){}/**
77 * @license
78 * Copyright 2021 Google LLC
79 *
80 * Licensed under the Apache License, Version 2.0 (the "License");
81 * you may not use this file except in compliance with the License.
82 * You may obtain a copy of the License at
83 *
84 *   http://www.apache.org/licenses/LICENSE-2.0
85 *
86 * Unless required by applicable law or agreed to in writing, software
87 * distributed under the License is distributed on an "AS IS" BASIS,
88 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
89 * See the License for the specific language governing permissions and
90 * limitations under the License.
91 */function j(e){return e&&e._delegate?e._delegate:e}},19477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(85893),i=r(67294);t.default=function({html:e,height:t=null,width:r=null,children:o,dataNtpc:s=""}){return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,n.jsxs)(n.Fragment,{children:[o,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})}},7834:function(e,t,r){"use strict";let n;var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let o=r(85893),s=r(67294),a=i(r(4298));t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:r="dataLayer"}=e;return void 0===n&&(n=r),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
92          window['${r}'] = window['${r}'] || [];
93          function gtag(){window['${r}'].push(arguments);}
94          gtag('js', new Date());
95
96          gtag('config', '${t}');`}}),(0,o.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`})]})},t.sendGAEvent=function(...e){if(void 0===n){console.warn("@next/third-parties: GA has not been initialized");return}window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)}},83632:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
96dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(85893),o=r(86257),s=n(r(19477));t.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:a}=(0,o.GoogleMapsEmbed)(n);return(0,i.jsx)(s.default,{height:n.height||null,width:n.width||null,html:a,dataNtpc:"GoogleMapsEmbed"})}},30674:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let i=r(85893),o=r(67294),s=n(r(4298)),a="dataLayer";t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:r="dataLayer",auth:n,preview:l,dataLayer:c}=e;a=r;let u="dataLayer"!==r?`&l=${r}`:"",d=n?`&gtm_auth=${n}`:"",h=l?`&gtm_preview=${l}&gtm_cookies_win=x`:"";return(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
97      (function(w,l){
98        w[l]=w[l]||[];
99        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
100        ${c?`w[l].push(${JSON.stringify(c)})`:""}
101      })(window,'${r}');`}}),(0,i.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:`https://www.googletagmanager.com/gtm.js?id=${t}${u}${d}${h}`})]})},t.sendGTMEvent=(e,t)=>{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},19692:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var i=r(83632);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var o=r(11494);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return n(o).default}});var s=r(30674);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return s.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return s.sendGTMEvent}});var a=r(7834);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return a.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return a.sendGAEvent}})},11494:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(85893),o=n(r(4298)),s=r(86257),a=n(r(19477)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"};t.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,s.YouTubeEmbed)(e);return(0,i.jsx)(a.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(o.default,{src:e.url,strategy:l[e.strategy],stylesheets:n},e.url))})}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),s=o[0],a=o[1],c=new i((s+a)*3/4-a),u=0,d=a>0?s-4:s;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(e,t,n){for(var i,o=[],s=t;s<n;s+=3)o.push(r[(i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(e,t,r){"use strict";/*!
102 * The buffer module from node.js, for the browser.
103 *
104 * @author   Feross Aboukhadijeh <https://feross.org>
105 * @license  MIT
106 */var n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>
1062147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|f(e,t),n=s(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);var i=function(e){if(a.isBuffer(e)){var t,r=0|p(e.length),n=s(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),s(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(i)return n?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=A[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=t,o=r,0===i&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}
vendor: 14,466 bytes, line 106
106else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else -1!==u&&(o-=o-u),u=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return -1}function w(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,o){return t=+t,r>>>=0,o||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t=+t,r>>>=0,o||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=a,t.h2=50,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(c(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(I(o,Uint8Array))i+o.length>n.length?a.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(a.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):m.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,l=Math.min(o,s),c=this.slice(n,i),u=e.slice(t,r),d=0;d<l;++d)if(c[d]!==u[d]){o=c[d],s=u[d];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,c,u,d,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(a!=a)break;e[r+s]=a}return s}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,O(C(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=t,a=r,O(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,s,a);case"base64":return l=t,c=r,O(T(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=r,O(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-u),this,u,d);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s<r&&(o*=256);)this[t+s]=e/o&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),l=s.length;
106if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%l]}return this};var x=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},76489:function(e,t){"use strict";/*!
107 * cookie
108 * Copyright(c) 2012-2014 Roman Shtylman
109 * Copyright(c) 2015 Douglas Christopher Wilson
110 * MIT Licensed
111 */t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");var r={},i=e.length;if(i<2)return r;var o=t&&t.decode||u,s=0,a=0,d=0;do{if(-1===(a=e.indexOf("=",s)))break;if(-1===(d=e.indexOf(";",s)))d=i;else if(a>d){s=e.lastIndexOf(";",a-1)+1;continue}var h=l(e,s,a),p=c(e,a,h),f=e.slice(h,p);if(!n.call(r,f)){var m=l(e,a+1,d),g=c(e,d,m);34===e.charCodeAt(m)&&34===e.charCodeAt(g-1)&&(m++,g--);var y=e.slice(m,g);r[f]=function(e,t){try{return t(e)}catch(t){return e}}(y,o)}s=d+1}while(s<i);return r},t.serialize=function(e,t,n){var l=n&&n.encode||encodeURIComponent;if("function"!=typeof l)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var c=l(t);if(!o.test(c))throw TypeError("argument val is invalid");var u=e+"="+c;if(!n)return u;if(null!=n.maxAge){var d=Math.floor(n.maxAge);if(!isFinite(d))throw TypeError("option maxAge is invalid");u+="; Max-Age="+d}if(n.domain){if(!s.test(n.domain))throw TypeError("option domain is invalid");u+="; Domain="+n.domain}if(n.path){if(!a.test(n.path))throw TypeError("option path is invalid");u+="; Path="+n.path}if(n.expires){var h=n.expires;if("[object Date]"!==r.call(h)||isNaN(h.valueOf()))throw TypeError("option expires is invali
111d");u+="; Expires="+h.toUTCString()}if(n.httpOnly&&(u+="; HttpOnly"),n.secure&&(u+="; Secure"),n.partitioned&&(u+="; Partitioned"),n.priority)switch("string"==typeof n.priority?n.priority.toLowerCase():n.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var r=Object.prototype.toString,n=Object.prototype.hasOwnProperty,i=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(e,t,r){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<r);return r}function c(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return r}
111function u(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}},47041:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var o=r(76489),s=function(){return"undefined"!=typeof window},a=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set},l=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&a(null==e?void 0:e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&a(null==e?void 0:e.res.cookies)||!!(null==e?void 0:e.cookies)&&a(e.cookies())},c=function(e){var t={};return e.getAll().forEach(function(e){var r=e.name,n=e.value;t[r]=n}),t},u=function(e){try{if("string"==typeof e)return e;return JSON.stringify(e)}catch(t){return e}};t.getCookies=function(e){if(l(e)){if(null==e?void 0:e.req)return c(e.req.cookies);if(null==e?void 0:e.cookies)return c(e.cookies())}if(e&&(t=e.req),!s())return t&&t.cookies?t.cookies:t&&t.headers.cookie?(0,o.parse)(t.headers.cookie):{};for(var t,r={},n=document.cookie?document.cookie.split("; "):[],i=0,a=n.length;i<a;i++){var u=n[i].split("="),d=u.slice(1).join("=");r[u[0]]=d}return r},t.getCookie=function(e,r){var n=(0,t.getCookies)(r)[e];if(void 0!==n)return n?n.replace(/(%[0-9A-Z]{2}
111)+/g,decodeURIComponent):n},t.setCookie=function(e,t,r){if(l(r)){var a,c,d,h=r.req,p=r.res,f=r.cookies,m=i(r,["req","res","cookies"]),g=n({name:e,value:u(t)},m);h&&h.cookies.set(g),p&&p.cookies.set(g),f&&f().set(g);return}if(r){var h=r.req,p=r.res,y=i(r,["req","res"]);c=h,d=p,a=y}var v=(0,o.serialize)(e,u(t),n({path:"/"},a));if(s())document.cookie=v;else if(d&&c){var w=d.getHeader("Set-Cookie");if(Array.isArray(w)||(w=w?[String(w)]:[]),d.setHeader("Set-Cookie",w.concat(v)),c&&c.cookies){var b=c.cookies;""===t?delete b[e]:b[e]=u(t)}if(c&&c.headers&&c.headers.cookie){var b=(0,o.parse)(c.headers.cookie);""===t?delete b[e]:b[e]=u(t),c.headers.cookie=Object.entries(b).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.deleteCookie=function(e,r){return(0,t.setCookie)(e,"",n(n({},r),{maxAge:-1}))},t.hasCookie=function(e,r){return!!e&&(0,t.getCookies)(r).hasOwnProperty(e)}},40452:function(e,t,r){var n;n=function(e){var t,r,n,i,o,s,a,l,c,u,d,h,p,f;return t=e.lib.BlockCipher,r=e.algo,n=[],i=[],o=[],s=[],a=[],l=[],c=[],u=[],d=[],h=[],function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=0,p=0,t=0;t<256;t++){var f=p^p<<1^p<<2^p<<3^p<<4;f=f>>>8^255&f^99,n[r]=f,i[f]=r;var m=e[r],g=e[m],y=e[g],v=257*e[f]^16843008*f;o[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,a[r]=v<<8|v>>>24,l[r]=v;var v=16843009*y^65537*g^257*m^16843008*r;c[f]=v<<24|v>>>8,u[f]=v<<16|v>>>16,d[f]=v<<8|v>>>24,h[f]=v,r?(r=m^e[e[e[y^m]]],p^=e[e[p]]):r=p=1}}(),p=[0,1,2,4,8,16,32,64,128,27,54],f=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e,t=this._keyPriorReset=this._key,r=t.words,i=t.sigBytes/4,o=((this._nRounds=i+6)+1)*4,s=this._keySchedule=[],a=0;a<o;a++)a<i?s[a]=r[a]:(e=s[a-1],a%i?i>6&&a%i==4&&(e=n[e>>>24]<<24|n[e>>>16&255]<<16|n[e>>>8&255]<<8|n[255&e]):e=(n[(e=e<<8|e>>>24)>>>24]<<24|n[e>>>16&255]<<16|n[e>>>8&255]<<8|n[255&e])^p[a/i|0]<<24,s[a]=s[a-i]^e);for(var l=this._invKeySchedule=[],f=0;f<o;f++){var a=o-f;if(f%4)var e=s[a];else var e=s[a-4];f<4||a<=4?l[f]=e:l[f]=c[n[e>>>24]]^u[n[e>>>16&255]]^d[n[e>>>8&255]]^h[n[255&e]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,a,l,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,u,d,h,i);var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,s,a){for(var l=this._nRounds,c=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],h=e[t+3]^r[3],p=4,f=1;f<l;f++){var m=n[c>>>24]^i[u>>>16&255]^o[d>>>8&255]^s[255&h]^r[p++],g=n[u>>>24]^i[d>>>16&255]^o[h>>>8&255]^s[255&c]^r[p++],y=n[d>>>24]^i[h>>>16&255]^o[c>>>8&255]^s[255&u]^r[p++],v=n[h>>>24]^i[c>>>16&255]^o[u>>>8&255]^s[255&d]^r[p++];c=m,u=g,d=y,h=v}var m=(a[c>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&h])^r[p++],g=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[h>>>8&255]<<8|a[255&c])^r[p++],y=(a[d>>>24]<<24|a[h>>>16&255]<<16|a[c>>>8&255]<<8|a[255&u])^r[p++],v=(a[h>>>24]<<24|a[c>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^r[p++];e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=v},keySize:8}),e.AES=t._createHelper(f),e.AES},e.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},87407:function(e,t,r){var n;n=function(e){return function(){var t=e.lib.BlockCipher,r=e.algo;let n=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],i
vendor: 11,033 bytes, line 111
111=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]]
111;var o={pbox:[],sbox:[]};function s(e,t){let r=e.sbox[0][t>>24&255]+e.sbox[1][t>>16&255];return r^=e.sbox[2][t>>8&255],r+=e.sbox[3][255&t]}function a(e,t,r){let n,i=t,o=r;for(let t=0;t<16;++t)i^=e.pbox[t],o=s(e,i)^o,n=i,i=o,o=n;return n=i,i=o,o=n^e.pbox[16],{left:i^=e.pbox[17],right:o}}var l=r.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key;!function(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=i[t][r]}let o=0;for(let i=0;i<18;i++)e.pbox[i]=n[i]^t[o],++o>=r&&(o=0);let s=0,l=0,c=0;for(let t=0;t<18;t+=2)s=(c=a(e,s,l)).left,l=c.right,e.pbox[t]=s,e.pbox[t+1]=l;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)s=(c=a(e,s,l)).left,l=c.right,e.sbox[t][r]=s,e.sbox[t][r+1]=l}
111(o,e.words,e.sigBytes/4)}},encryptBlock:function(e,t){var r=a(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=function(e,t,r){let n,i=t,o=r;for(let t=17;t>1;--t)i^=e.pbox[t],o=s(e,i)^o,n=i,i=o,o=n;return n=i,i=o,o=n^e.pbox[1],{left:i^=e.pbox[0],right:o}}(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(l)}(),e.Blowfish},e.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},75109:function(e,t,r){var n;n=function(e){var t,r,n,i,o,s,a,l,c,u,d,h,p,f,m,g,y;e.lib.Cipher||(r=(t=e.lib).Base,n=t.WordArray,i=t.BufferedBlockAlgorithm,(o=e.enc).Utf8,s=o.Base64,a=e.algo.EvpKDF,l=t.Cipher=i.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:m}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),t.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),c=e.mode={},u=t.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=c.CBC=function(){var e=u.extend();function t(e,t,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=n[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),h=(e.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,o=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(o);var l=n.create(s,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.BlockCipher=l.extend({cfg:l.cfg.extend({mode:d,padding:h}),reset:function(){l.reset.call(this);var e,t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),p=t.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),f=(e.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?n.create([1398893684,1701076831]).concat(r).concat(t):t).toString(s)},parse:function(e){var t,r=s.parse(e),i=r.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=n.create(i.slice(2,4)),i.splice(0,4),r.sigBytes-=16),p.create({ciphertext:r,salt:t})}},m=t.SerializableCipher=r.extend({cfg:r.extend({format:f}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),s=i.cfg;return p.create({ciphertext:o,key:r,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=(e.kdf={}).OpenSSL={execute:function(e,t,r,i,o){if(i||(i=n.random(8)),o)var s=a.create({keySize:t+r,hasher:o}).compute(e,i);else var s=a.create({keySize:t+r}).compute(e,i);var l=n.create(s.words.slice(t),4*r);return s.sigBytes=4*t,p.create({key:s,iv:l,salt:i})}},y=t.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:g}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,m.decrypt.call(this,e,t,i.key,n)}}))},e.exports=n(r(78249),r(90888))},78249:function(e,t,r){var n;n=function(){var e=e||function(e,t){if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(42480)}catch(e){}var n,i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},l=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
vendor: 4,429 bytes, line 111
111pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=l.extend({init:function(e,r){e=this.words=e||[],t!=r?this.sigBytes=r:this.sigBytes=4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var a=0;a<i;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new c.init(t,e)}}),u=s.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,s=this.blockSize,a=o/(4*s),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*l,o);if(l){for(var d=0;d<l;d+=s)this._doProcessBlock(i,d);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new m.HMAC.init(e,r).finalize(t)}}});var m=s.algo={};return s}(Math);return e},e.exports=n()},98269:function(e,t,r){var n;n=function(e){var t;return t=e.lib.WordArray,e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var s=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<r;a++)i.push(n.charAt(s>>>6*(3-a)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var r=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(r=a)}return function(e,r,n){for(var i=[],o=0,s=0;s<r;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return t.create(i,o)}(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},e.exports=n(r(78249))},43786:function(e,t,r){var n;n=function(e){var t;return t=e.lib.WordArray,e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],s=0;s<n;s+=3)for(var a=(r[s>>>2]>>>24-s%4*8&255)<<16|(r[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|r[s+2>>>2]>>>24-(s+2)%4*8&255,l=0;l<4&&s+.75*l<n;l++)o.push(i.charAt(a>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,r){void 0===r&&(r=!0);var n=e.length,i=r?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s<i.length;
111s++)o[i.charCodeAt(s)]=s}var a=i.charAt(64);if(a){var l=e.indexOf(a);-1!==l&&(n=l)}return function(e,r,n){for(var i=[],o=0,s=0;s<r;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return t.create(i,o)}(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},e.enc.Base64url},e.exports=n(r(78249))},50298:function(e,t,r){var n;n=function(e){return function(){var t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i<r;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o<r;o+=2){var s=n(t[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o<r;o++)i[o>>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}}}(),e.enc.Utf16},e.exports=n(r(78249))},90888:function(e,t,r){var n;n=function(e){var t,r,n,i,o,s;return r=(t=e.lib).Base,n=t.WordArray,o=(i=e.algo).MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,i=this.cfg,o=i.hasher.create(),s=n.create(),a=s.words,l=i.keySize,c=i.iterations;a.length<l;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)r=o.finalize(r),o.reset();s.concat(r)}return s.sigBytes=4*l,s}}),e.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},e.EvpKDF},e.exports=n(r(78249),r(62783),r(89824))},42209:function(e,t,r){var n;n=function(e){var t,r;return t=e.lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},e.format.Hex},e.exports=n(r(78249),r(75109))},89824:function(e,t,r){var n;n=function(e){var t,r;t=e.lib.Base,r=e.enc.Utf8,e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),a=o.words,l=s.words,c=0;c<n;c++)a[c]^=1549556828,l[c]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})},e.exports=n(r(78249))},81354:function(e,t,r){var n;n=function(e){return e},e.exports=n(r(78249),r(64938),r(4433),r(50298),r(98269),r(43786),r(68214),r(62783),r(52153),r(87792),r(70034),r(17460),r(13327),r(30706),r(89824),r(2112),r(90888),r(75109),r(8568),r(74242),r(59968),r(27660),r(31148),r(43615),r(92807),r(71077),r(56475),r(16991),r(42209),r(40452),r(94253),r(51857),r(84454),r(93974),r(87407))},4433:function(e,t,r){var n;n=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray},e.exports=n(r(78249))},68214:function(e,t,r){var n;n=function(e){return function(t){var r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var a=o.MD5=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}
111var o=this._hash.words,a=e[t+0],h=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],w=e[t+8],b=e[t+9],_=e[t+10],S=e[t+11],E=e[t+12],k=e[t+13],x=e[t+14],C=e[t+15],T=o[0],O=o[1],I=o[2],A=o[3];T=l(T,O,I,A,a,7,s[0]),A=l(A,T,O,I,h,12,s[1]),I=l(I,A,T,O,p,17,s[2]),O=l(O,I,A,T,f,22,s[3]),T=l(T,O,I,A,m,7,s[4]),A=l(A,T,O,I,g,12,s[5]),I=l(I,A,T,O,y,17,s[6]),O=l(O,I,A,T,v,22,s[7]),T=l(T,O,I,A,w,7,s[8]),A=l(A,T,O,I,b,12,s[9]),I=l(I,A,T,O,_,17,s[10]),O=l(O,I,A,T,S,22,s[11]),T=l(T,O,I,A,E,7,s[12]),A=l(A,T,O,I,k,12,s[13]),I=l(I,A,T,O,x,17,s[14]),O=l(O,I,A,T,C,22,s[15]),T=c(T,O,I,A,h,5,s[16]),A=c(A,T,O,I,y,9,s[17]),I=c(I,A,T,O,S,14,s[18]),O=c(O,I,A,T,a,20,s[19]),T=c(T,O,I,A,g,5,s[20]),A=c(A,T,O,I,_,9,s[21]),I=c(I,A,T,O,C,14,s[22]),O=c(O,I,A,T,m,20,s[23]),T=c(T,O,I,A,b,5,s[24]),A=c(A,T,O,I,x,9,s[25]),I=c(I,A,T,O,f,14,s[26]),O=c(O,I,A,T,w,20,s[27]),T=c(T,O,I,A,k,5,s[28]),A=c(A,T,O,I,p,9,s[29]),I=c(I,A,T,O,v,14,s[30]),O=c(O,I,A,T,E,20,s[31]),T=u(T,O,I,A,g,4,s[32]),A=u(A,T,O,I,w,11,s[33]),I=u(I,A,T,O,S,16,s[34]),O=u(O,I,A,T,x,23,s[35]),T=u(T,O,I,A,h,4,s[36]),A=u(A,T,O,I,m,11,s[37]),I=u(I,A,T,O,v,16,s[38]),O=u(O,I,A,T,_,23,s[39]),T=u(T,O,I,A,k,4,s[40]),A=u(A,T,O,I,a,11,s[41]),I=u(I,A,T,O,f,16,s[42]),O=u(O,I,A,T,y,23,s[43]),T=u(T,O,I,A,b,4,s[44]),A=u(A,T,O,I,E,11,s[45]),I=u(I,A,T,O,C,16,s[46]),O=u(O,I,A,T,p,23,s[47]),T=d(T,O,I,A,a,6,s[48]),A=d(A,T,O,I,v,10,s[49]),I=d(I,A,T,O,x,15,s[50]),O=d(O,I,A,T,g,21,s[51]),T=d(T,O,I,A,E,6,s[52]),A=d(A,T,O,I,f,10,s[53]),I=d(I,A,T,O,_,15,s[54]),O=d(O,I,A,T,h,21,s[55]),T=d(T,O,I,A,w,6,s[56]),A=d(A,T,O,I,C,10,s[57]),I=d(I,A,T,O,y,15,s[58]),O=d(O,I,A,T,k,21,s[59]),T=d(T,O,I,A,m,6,s[60]),A=d(A,T,O,I,S,10,s[61]),I=d(I,A,T,O,p,15,s[62]),O=d(O,I,A,T,b,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+O|0,o[2]=o[2]+I|0,o[3]=o[3]+A|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296);r[(i+64>>>9<<4)+15]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,r[(i+64>>>9<<4)+14]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,e.sigBytes=(r.length+1)*4,this._process();for(var s=this._hash,a=s.words,l=0;l<4;l++){var c=a[l];a[l]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,s){var a=e+(t&r|~t&n)+i+s;return(a<<o|a>>>32-o)+t}function c(e,t,r,n,i,o,s){var a=e+(t&n|r&~n)+i+s;return(a<<o|a>>>32-o)+t}function u(e,t,r,n,i,o,s){var a=e+(t^r^n)+i+s;return(a<<o|a>>>32-o)+t}function d(e,t,r,n,i,o,s){var a=e+(r^(t|~n))+i+s;return(a<<o|a>>>32-o)+t}e.MD5=i._createHelper(a),e.HmacMD5=i._createHmacHelper(a)}(Math),e.MD5},e.exports=n(r(78249))},8568:function(e,t,r){var n;n=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var s=0;s<r;s++)e[t+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);r.call(this,e,t,i,n),this._prevBlock=o}}),t}(),e.mode.CFB},e.exports=n(r(78249),r(75109))},59968:function(e,t,r){var n;n=function(e){return(/** @preserve
112	 * Counter block mode compatible with  Dr Brian Gladman fileenc.c
113	 * derived from CryptoJS.mode.CTR
114	 * Jan Hruby [email protected]
115	 */e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if((e>>24&255)==255){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0+(t<<16)+(r<<8)+n}else e+=16777216;return e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var n,i=this._cipher,o=i.blockSize,s=this._iv,a=this._counter;s&&(a=this._counter=s.slice(0),this._iv=void 0),0===((n=a)[0]=r(n[0]))&&(n[1]=r(n[1]));var l=a.slice(0);i.encryptBlock(l,0);for(var c=0;c<o;c++)e[t+c]^=l[c]}});return t.Decryptor=n,t}(),e.mode.CTRGladman)},e.exports=n(r(78249),r(75109))},74242:function(e,t,r){var n;n=function(e){var t,r;return e.mode.CTR=(r=(t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);r.encryptBlock(s,0),o[n-1]=o[n-1]+1|0;for(var a=0;a<n;a++)e[t+a]^=s[a]}}),t.Decryptor=r,t),e.mode.CTR},e.exports=n(r(78249),r(75109))},31148:function(e,t,r){var n;n=function(e){var t;return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB},e.exports=n(r(78249),r(75109))},27660:function(e,t,r){var n;n=function(e){var t,r;return e.mode.OFB=(r=(t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}}),t.Decryptor=r,t),e.mode.OFB},e.exports=n(r(78249),r(75109))},43615:function(e,t,r){var n;n=function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;
vendor: 8,235 bytes, lines 115-123
115e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923},e.exports=n(r(78249),r(75109))},92807:function(e,t,r){var n;n=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126},e.exports=n(r(78249),r(75109))},71077:function(e,t,r){var n;n=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971},e.exports=n(r(78249),r(75109))},16991:function(e,t,r){var n;n=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding},e.exports=n(r(78249),r(75109))},56475:function(e,t,r){var n;n=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1,r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding},e.exports=n(r(78249),r(75109))},2112:function(e,t,r){var n;n=function(e){var t,r,n,i,o,s,a;return r=(t=e.lib).Base,n=t.WordArray,o=(i=e.algo).SHA256,s=i.HMAC,a=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=s.create(r.hasher,e),o=n.create(),a=n.create([1]),l=o.words,c=a.words,u=r.keySize,d=r.iterations;l.length<u;){var h=i.update(t).finalize(a);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var y=m.words,v=0;v<f;v++)p[v]^=y[v]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return a.create(r).compute(e,t)},e.PBKDF2},e.exports=n(r(78249),r(52153),r(89824))},93974:function(e,t,r){var n;n=function(e){return function(){var t=e.lib.StreamCipher,r=e.algo,n=[],i=[],o=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)a.call(this);for(var i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,s=o[0],l=o[1],c=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,u=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,d=c>>>16|4294901760&u,h=u<<16|65535&c;n[0]^=c,n[1]^=d,n[2]^=u,n[3]^=h,n[4]^=c,n[5]^=d,n[6]^=u,n[7]^=h;for(var i=0;i<4;i++)a.call(this)}},_doProcessBlock:function(e,t){var r=this._X;a.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360,e[t+i]^=n[i]},blockSize:4,ivSize:2});function a(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0;for(var r=0;r<8;r++){var n=e[r]+t[r],s=65535&n,a=n>>>16,l=((s*s>>>17)+s*a>>>15)+a*a,c=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=l^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=t._createHelper(s)}(),e.RabbitLegacy},e.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},84454:function(e,t,r){var n;n=function(e){return function(){var t=e.lib.StreamCipher,r=e.algo,n=[],i=[],o=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=(e[r]<<8|e[r]>>>24)&16711935|(e[r]<<24|e[r]>>>8)&4278255360;var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)a.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,s=o[0],l=o[1],c=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,u=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,d=c>>>16|4294901760&u,h=u<<16|65535&c;i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h;for(var r=0;r<4;r++)a.call(this)}},_doProcessBlock:function(e,t){var r=this._X;a.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360,e[t+i]^=n[i]},blockSize:4,ivSize:2});function a(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0;for(var r=0;r<8;r++){var n=e[r]+t[r],s=65535&n,a=n>>>16,l=((s*s>>>17)+s*a>>>15)+a*a,c=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=l^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=t._createHelper(s)}(),e.Rabbit},e.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},51857:function(e,t,r){var n;n=function(e){return function(){var t=e.lib.StreamCipher,r=e.algo,n=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;for(var i=0,o=0;i<256;i++){var s=i%r,a=t[s>>>2]>>>24-s%4*8&255;o=(o+n[i]+a)%256;var l=n[i];n[i]=n[o],n[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(n);var o=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(o)}(),e.RC4},e.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},30706:function(e,t,r){var n;n=function(e){return(/** @preserve
116	(c) 2012 by Cédric Mesnil. All rights reserved.
117
118	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
119
120	    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
121	    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
122
123	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (
123INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
124	*/function(t){var r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,s=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r,n,i,o,h,f,m,g,y,v,w,b,_,S,E,k,x,C,T,O=0;O<16;O++){var I=t+O,A=e[I];e[I]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var R=this._hash.words,P=u.words,N=d.words,L=s.words,D=a.words,M=l.words,B=c.words;S=y=R[0],E=v=R[1],k=w=R[2],x=b=R[3],C=_=R[4];for(var O=0;O<80;O+=1)T=y+e[t+L[O]]|0,O<16?T+=(v^w^b)+P[0]:O<32?T+=((r=v)&w|~r&b)+P[1]:O<48?T+=((v|~w)^b)+P[2]:O<64?T+=(n=v,i=w,(n&(o=b)|i&~o)+P[3]):T+=(v^(w|~b))+P[4],T|=0,T=(T=p(T,M[O]))+_|0,y=_,_=b,b=p(w,10),w=v,v=T,T=S+e[t+D[O]]|0,O<16?T+=(E^(k|~x))+N[0]:O<32?T+=(h=E,f=k,(h&(m=x)|f&~m)+N[1]):O<48?T+=((E|~k)^x)+N[2]:O<64?T+=((g=E)&k|~g&x)+N[3]:T+=(E^k^x)+N[4],T|=0,T=(T=p(T,B[O]))+C|0,S=C,C=x,x=p(k,10),k=E,E=T;T=R[1]+w+x|0,R[1]=R[2]+b+C|0,R[2]=R[3]+_+S|0,R[3]=R[4]+y+E|0,R[4]=R[0]+v+k|0,R[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,e.sigBytes=(t.length+1)*4,this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t){return e<<t|e>>>32-t}e.RIPEMD160=i._createHelper(h),e.HmacRIPEMD160=i._createHmacHelper(h)}(Math),e.RIPEMD160)},e.exports=n(r(78249))},62783:function(e,t,r){var n;n=function(e){var t,r,n,i,o,s;return r=(t=e.lib).WordArray,n=t.Hasher,i=e.algo,o=[],s=i.SHA1=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],s=r[2],a=r[3],l=r[4],c=0;c<80;c++){if(c<16)o[c]=0|e[t+c];else{var u=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+o[c];c<20?d+=(i&s|~i&a)+1518500249:c<40?d+=(i^s^a)+1859775393:c<60?d+=(i&s|i&a|s&a)-1894007588:d+=(i^s^a)-899497514,l=a,a=s,s=i<<30|i>>>2,i=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=Math.floor(r/4294967296),t[(n+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(s),e.HmacSHA1=n._createHmacHelper(s),e.SHA1},e.exports=n(r(78249))},87792:function(e,t,r){var n;n=function(e){var t,r,n,i;return t=e.lib.WordArray,n=(r=e.algo).SHA256,i=r.SHA224=n.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=4,e}}),e.SHA224=n._createHelper(i),e.HmacSHA224=n._createHmacHelper(i),e.SHA224},e.exports=n(r(78249),r(52153))},52153:function(e,t,r){var n;n=function(e){var t,r,n,i,o,s,a,l,c;return t=Math,n=(r=e.lib).WordArray,i=r.Hasher,o=e.algo,s=[],a=[],function(){function e(e){return(e-(0|e))*4294967296|0}for(var r=2,n=0;n<64;)(function(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0})(r)&&(n<8&&(s[n]=e(t.pow(r,.5))),a[n]=e(t.pow(r,1/3)),n++),r++}(),l=[],c=o.SHA256=i.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],c=r[4],u=r[5],d=r[6],h=r[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var f=l[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=l[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=m+l[p-7]+y+l[p-16]}var v=c&u^~c&d,w=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+v+a[p]+l[p],S=b+w;h=d,d=u,u=c,c=s+_|0,s=o,o=i,i=n,n=_+S|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=t.floor(n/4294967296),r[(i+64>>>9<<4)+15]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA256=i._createHelper(c),e.HmacSHA256=i._createHmacHelper(c),e.SHA256},e.exports=n(r(78249))},13327:function(e,t,r){var n;n=function(e){var t,r,n,i,o,s,a,l,c,u,d;return t=Math,n=(r=e.lib).WordArray,i=r.Hasher,o=e.x64.Word,s=e.algo,a=[],l=[],c=[],function(){for(var e=1,t=0,r=0;r<24;r++){a[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(var e=0;e<5;e++)for(var t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var s=1,u=0;u<24;u++){for(var d=0,h=0,p=0;p<7;
124p++){if(1&s){var f=(1<<p)-1;f<32?h^=1<<f:d^=1<<f-32}128&s?s=s<<1^113:s<<=1}c[u]=o.create(d,h)}}(),u=[],function(){for(var e=0;e<25;e++)u[e]=o.create()}(),d=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],s=e[t+2*i+1];o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,s=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;var d=r[i];d.high^=s,d.low^=o}for(var h=0;h<24;h++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){var d=r[p+5*g];f^=d.high,m^=d.low}var y=u[p];y.high=f,y.low=m}for(var p=0;p<5;p++)for(var v=u[(p+4)%5],w=u[(p+1)%5],b=w.high,_=w.low,f=v.high^(b<<1|_>>>31),m=v.low^(_<<1|b>>>31),g=0;g<5;g++){var d=r[p+5*g];d.high^=f,d.low^=m}for(var S=1;S<25;S++){var f,m,d=r[S],E=d.high,k=d.low,x=a[S];x<32?(f=E<<x|k>>>32-x,m=k<<x|E>>>32-x):(f=k<<x-32|E>>>64-x,m=E<<x-32|k>>>64-x);var C=u[l[S]];C.high=f,C.low=m}var T=u[0],O=r[0];T.high=O.high,T.low=O.low;for(var p=0;p<5;p++)for(var g=0;g<5;g++){var S=p+5*g,d=r[S],I=u[S],A=u[(p+1)%5+5*g],R=u[(p+2)%5+5*g];d.high=I.high^~A.high&R.high,d.low=I.low^~A.low&R.low}var d=r[0],P=c[h];d.high^=P.high,d.low^=P.low}},_doFinalize:function(){var e=this._data,r=e.words;this._nDataBytes;var i=8*e.sigBytes,o=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(t.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,l=a/8,c=[],u=0;u<l;u++){var d=s[u],h=d.high,p=d.low;h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,c.push(p),c.push(h)}return new n.init(c,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}}),e.SHA3=i._createHelper(d),e.HmacSHA3=i._createHmacHelper(d),e.SHA3},e.exports=n(r(78249),r(64938))},17460:function(e,t,r){var n;n=function(e){var t,r,n,i,o,s;return r=(t=e.x64).Word,n=t.WordArray,o=(i=e.algo).SHA512,s=i.SHA384=o.extend({_doReset:function(){this._hash=new n.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=o._createHelper(s),e.HmacSHA384=o._createHmacHelper(s),e.SHA384},e.exports=n(r(78249),r(64938),r(70034))},70034:function(e,t,r){var n;n=function(e){return function(){var t=e.lib.Hasher,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo;function s(){return n.create.apply(n,arguments)}var a=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1
124537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var c=o.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],c=r[4],u=r[5],d=r[6],h=r[7],p=n.high,f=n.low,m=i.high,g=i.low,y=o.high,v=o.low,w=s.high,b=s.low,_=c.high,S=c.low,E=u.high,k=u.low,x=d.high,C=d.low,T=h.high,O=h.low,I=p,A=f,R=m,P=g,N=y,L=v,D=w,M=b,B=_,j=S,$=E,U=k,F=x,H=C,z=T,q=O,W=0;W<80;W++){var V,G,J=l[W];if(W<16)G=J.high=0|e[t+2*W],V=J.low=0|e[t+2*W+1];else{var X=l[W-15],Z=X.high,K=X.low,Y=(Z>>>1|K<<31)^(Z>>>8|K<<24)^Z>>>7,Q=(K>>>1|Z<<31)^(K>>>8|Z<<24)^(K>>>7|Z<<25),ee=l[W-2],et=ee.high,er=ee.low,en=(et>>>19|er<<13)^(et<<3|er>>>29)^et>>>6,ei=(er>>>19|et<<13)^(er<<3|et>>>29)^(er>>>6|et<<26),eo=l[W-7],es=eo.high,ea=eo.low,el=l[W-16],ec=el.high,eu=el.low;G=Y+es+((V=Q+ea)>>>0<Q>>>0?1:0),V+=ei,G=G+en+(V>>>0<ei>>>0?1:0),V+=eu,G=G+ec+(V>>>0<eu>>>0?1:0),J.high=G,J.low=V}var ed=B&$^~B&F,eh=j&U^~j&H,ep=I&R^I&N^R&N,ef=A&P^A&L^P&L,em=(I>>>28|A<<4)^(I<<30|A>>>2)^(I<<25|A>>>7),eg=(A>>>28|I<<4)^(A<<30|I>>>2)^(A<<25|I>>>7),ey=(B>>>14|j<<18)^(B>>>18|j<<14)^(B<<23|j>>>9),ev=(j>>>14|B<<18)^(j>>>18|B<<14)^(j<<23|B>>>9),ew=a[W],eb=ew.high,e_=ew.low,eS=q+ev,eE=z+ey+(eS>>>0<q>>>0?1:0),eS=eS+eh,eE=eE+ed+(eS>>>0<eh>>>0?1:0),eS=eS+e_,eE=eE+eb+(eS>>>0<e_>>>0?1:0),eS=eS+V,eE=eE+G+(eS>>>0<V>>>0?1:0),ek=eg+ef,ex=em+ep+(ek>>>0<eg>>>0?1:0);z=F,q=H,F=$,H=U,$=B,U=j,B=D+eE+((j=M+eS|0)>>>0<M>>>0?1:0)|0,D=N,M=L,N=R,L=P,R=I,P=A,I=eE+ex+((A=eS+ek|0)>>>0<eS>>>0?1:0)|0}f=n.low=f+A,n.high=p+I+(f>>>0<A>>>0?1:0),g=i.low=g+P,i.high=m+R+(g>>>0<P>>>0?1:0),v=o.low=v+L,o.high=y+N+(v>>>0<L>>>0?1:0),b=s.low=b+M,s.high=w+D+(b>>>0<M>>>0?1:0),S=c.low=S+j,c.high=_+B+(S>>>0<j>>>0?1:0),k=u.low=k+U,u.high=E+$+(k>>>0<U>>>0?1:0),C=d.low=C+H,d.high=x+F+(C>>>0<H>>>0?1:0),O=h.low=O+q,h.high=T+z+(O>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+128>>>10<<5)+30]=Math.floor(r/4294967296),t[(n+128>>>10<<5)+31]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),e.SHA512},e.exports=n(r(78249),r(64938))},94253:function(e,t,r){var n;n=function(e){return function(){var t=e.lib,r=t.WordArray,n=t.BlockCipher,i=e.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l
vendor: 7,629 bytes, line 124
124=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 415 bytes, line 124
124c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=o[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],l=0;l<16;l++){for(var c=i[l]=[],u=a[l],r=0;r<24;r++)c[r/6|0]|=t[(s[r]-1+u)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(s[r+24]-1+u)%28]<<31-r%6;c[0]=c[0]<<1|c[0]>>>31;for(var r=1;r<7;r++)c[r]=c[r]>>>(r-1)*4+3;
124c[7]=c[7]<<5|c[7]>>>27}for(var d=this._invSubKeys=[],r=0;r<16;r++)d[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,s=this._rBlock,a=0,u=0;u<8;u++)a|=l[u][((s^i[u])&c[u])>>>0];this._lBlock=s,this._rBlock=o^a}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=n._createHelper(u);var p=i.TripleDES=n.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(r.create(t)),this._des2=u.createEncryptor(r.create(n)),this._des3=u.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=n._createHelper(p)}(),e.TripleDES},e.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},64938:function(e,t,r){var n;n=function(e){var t,r,n,i;return r=(t=e.lib).Base,n=t.WordArray,(i=e.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=r.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i<t;i++){var o=e[i];r.push(o.high),r.push(o.low)}return n.create(r,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}}),e},e.exports=n(r(78249))},8679:function(e,t,r){"use strict";var n=r(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var s=u(r);d&&(s=s.concat(d(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var y=s[g];if(!o[y]&&!(n&&n[y])&&!(m&&m[y])&&!(a&&a[y])){var v=h(r,y);try{c(t,y,v)}catch(e){}}}}return t}},80645:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,c=l>>1,u=-7,d=r?i-1:0,h=r?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?5960464477539062e-23:0,p=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+p]=255&s,p+=f,s/=256,c-=8);e[r+p-f]|=128*m}},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(58057)}])},7538:function(e,t,r){"use strict";let n,i,o,s,a,l,c,u,d,h,p,f,m,g,y,v,w,b,_;function S(e){let t;let r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}var E,k,x,C,T,O,I,A,R,P,N,L,D=r(33280),M=r(49889);function B(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:M.J})),version:M.J}),e._metadata=i}var j=r(39424),$=r(94223),U=r(17986);let F=[];function H(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function z(e,t,r){if(r[t.name]){$.X&&U.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===F.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),F.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}$.X&&U.kg.log(`Integration installed: ${t.name}`)}var q=r(82305),W=r(50027);let V=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],G=(e={})=>({name:"InboundFilters",processEvent:(t,r,n)=>{var i,o;return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:V],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,n.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?($.X&&U.kg.warn(`Event dropped due to being internal Sentry Error.
125Event: ${(0,q.jH)(t)}`),0):(o=i.ignoreErrors,!t.type&&o&&o.length&&(function(e){let t;let r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),r})(t).some(e=>(0,W.U0)(e,o)))?($.X&&U.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
126Event: ${(0,q.jH)(t)}`),0):t.type||!t.exception||!t.exception.values||0===t.exception.values.length||t.message||t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let r=e.transaction;return!!r&&(0,W.U0)(r,t)}(t,i.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let r=J(e);return!!r&&(0,W.U0)(r,t)}(t,i.denyUrls)?function(e,t){if(!t||!t.length)return!0;let r=J(e);return!r||(0,W.U0)(r,t)}(t,i.allowUrls)||($.X&&U.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
127Event: ${(0,q.jH)(t)}.
128Url: ${J(t)}`),0):($.X&&U.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
129Event: ${(0,q.jH)(t)}.
130Url: ${J(t)}`),0):($.X&&U.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
131Event: ${(0,q.jH)(t)}`),0):($.X&&U.kg.warn(`Event dropped due to not having an error message, error type or stacktrace.
132Event: ${(0,q.jH)(t)}`),0))?t:null}});function J(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--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(t){return $.X&&U.kg.error(`Cannot extract url for event ${(0,q.jH)(e)}`),null}}
132var X=r(73076),Z=r(51150);let K=new WeakMap,Y=()=>({name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,Z.HK)(this),r=K.has((0,X.s3)())&&void 0!==t?t:this;return n.apply(r,e)}}catch(e){}},setup(e){K.set(e,!0)}});var Q=r(39649);let ee=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r;if((r=e)&&(function(e,t){let r=e.message,n=t.message;return!!((r||n)&&(!r||n)&&(r||!n)&&r===n&&er(e,t)&&et(e,t))}(t,r)||function(e,t){let r=en(t),n=en(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&er(e,t)&&et(e,t))}(t,r)))return $.X&&U.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function et(e,t){let r=(0,Q.Fr)(e),n=(0,Q.Fr)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function er(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(e){return!1}}function en(e){return e.exception&&e.exception.values&&e.exception.values[0]}var ei=r(23187);let eo=D.GLOBAL_OBJ;function es(){if(!("fetch"in eo))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function ea(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var el=r(72123);let ec=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function eu(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${s}`}function ed(e){let t=ec.exec(e);if(!t){(0,U.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,i="",o="",s="",a=""]=t.slice(1),l="",c=a,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return eh({host:o,pass:i,path:l,projectId:c,port:s,protocol:r,publicKey:n})}function eh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var ep=r(90059);function ef(e,t=[]){return[e,t]}function em(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function eg(e){return D.GLOBAL_OBJ.__SENTRY__&&D.GLOBAL_OBJ.__SENTRY__.encodePolyfill?D.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}let ey={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function ev(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function ew(e,t,r,n){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:eu(n)},...i&&{trace:(0,Z.Jr)({...i})}}}var eb=r(81585),e_=r(10042),eS=r(59943);class eE extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}var ek=r(24925),ex=r(52340);function eC(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>1){$.X&&U.kg.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)}.`);return}return t}var eT=r(47515);let eO="Not capturing exception because it's already been captured.";class eI{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?ed(e):eh(e);if(t&&function(e){if(!ei.X)return!0;let{port:t,projectId:r,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(U.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"===n||"https"===n?!(t&&isNaN(parseInt(t,10)))||(U.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(U.kg.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(U.kg.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}(e.dsn):$.X&&U.kg.warn("No DSN provided, client will not send events."),this._dsn){var t,r,n;let i=(t=this._dsn,r=e.tunnel,n=e._metadata?e._metadata.sdk:void 0,r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(t,n)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}let i=["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&void 0==e[t]);i&&(0,U.Cf)(()=>{console.warn(`[Sentry] Deprecation warning: \`${i}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,r){let n=(0,q.DM)();if((0,q.YO)(e))return $.X&&U.kg.log(eO),n;let i={event_id:n,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r))),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,q.DM)(),...r},o=(0,ek.Le)(e)?e:String(e),s=(0,ek.pt)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(e=>this._captureEvent(e,i,n))),i.event_id}captureEvent(e,t,r){let n=(0,q.DM)();if(t&&t.originalException&&(0,q.YO)(t.originalException))return $.X&&U.kg.log(eO),n;let i={event_id:n,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||r)),i.event_id}captureSession(e){"string"!=typeof e.release?$.X&&U.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,e_.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
132return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):(0,ex.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];z(this,e,this._integrations),t||H(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){var i;let o=ev(r),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=r&&r.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let a=ew(e,o,n,t);return delete e.sdkProcessingMetadata,ef(a,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=function(e,t){let[r,n]=e;return[r,[...n,t]]}(r,function(e){let t="string"==typeof e.data?eg(e.data):e.data;return[(0,Z.Jr)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}(e));let n=this.sendEnvelope(r);n&&n.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,r,n){let i=ev(r);return ef({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:eu(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,r){if(this._options.sendClientReports){let n="number"==typeof r?r:1,i=`${e}:${t}`;$.X&&U.kg.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){let r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{let e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>($.X&&U.kg.error("Error while sending envelope:",e),e)):($.X&&U.kg.error("Transport disabled"),(0,ex.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t&&z(e,t,r)}),r}(this,e),H(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception&&t.exception.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,e_.CT)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ex.cW(t=>{let r=0,n=setInterval(()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r=(0,X.nZ)(),n=(0,X.aF)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,eT.R)(i,e,t,r,this,n).then(e=>{if(null===e)return e;e.contexts={trace:(0,X.XX)(r),...e.contexts};let t=(0,el.CG)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:t,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(e=>e.event_id,e=>{$.X&&(e instanceof eE&&"log"===e.logLevel?U.kg.log(e.message):U.kg.warn(e))})}_processEvent(e,t,r){let n=this.getOptions(),{sampleRate:i}=n,o=eR(e),s=eA(e),a=e.type||"error",l=`before send for type \`${a}\``,c=void 0===i?void 0:eC(i);if(s&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),(0,ex.$2)(new eE(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===a?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,d).then(r=>{if(null===r)throw this.recordDroppedEvent("event_processor",u,e),new eE("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?r:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,ek.J8)(e))return e.then(e=>{if(!(0,ek.PO)(e)&&null!==e)throw new eE(r);return e},e=>{throw new eE(`${t} rejected with ${e}`)});if(!(0,ek.PO)(e)&&null!==e)throw new eE(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t;if(eA(r)&&i)return i(r,n);if(eR(r)){if(r.spans&&s){let t=[];for(let n of r.spans){let r=s(n);r?t.push(r):((0,eb.R6)(),e.recordDroppedEvent("before_send","span"))}r.spans=t}if(o){if(r.spans){let e=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(r,n)}}return r}(this,n,r,t),l)}).then(n=>{if(null===n){if(this.recordDroppedEvent("before_send",u,e),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new eE(`${l} returned \`null\`, will not send event.`,"log")}let i=r&&r.getSession();if(!o&&i&&this._updateSessionFromEvent(i,n),o){let e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let s=n.transaction_info;return o&&s&&n.transaction!==e.transaction&&(n.transaction_info={...s,source:"custom"}),this.sendEvent(n,t),n}).then(null,e=>{if(e instanceof eE)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new eE(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
133Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;$.X&&U.kg.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){$.X&&U.kg.log("No outcomes to send");return}if(!this._dsn){$.X&&U.kg.log("No dsn provided, will not send outcomes");return}$.X&&U.kg.log("Sending outcomes:",t);let r=ef((e=this._options.tunnel&&eu(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eS.yW)(),discarded_events:t}]]);this.sendEnvelope(r)}}function eA(e){return void 0===e.type}function eR(e){return"transaction"===e.type}let eP="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function eN(e,t){let r=eD(e,t),n={type:function(e){let t=e&&e.name;return!t&&eB(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:eB(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function eL(e,t){return{exception:{values:[eN(e,t)]}}}function eD(e,t){let r=t.stacktrace||t.stack||"",n=t&&eM.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(r,n,i)}catch(e){}return[]}let eM=/Minified React error #\d+;/i;function eB(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ej(e,t,r,n,i){let o;if((0,ek.VW)(t)&&t.error)return eL(e,t.error);if((0,ek.TX)(t)||(0,ek.fm)(t)){if("stack"in t)o=eL(e,t);else{let i=t.name||((0,ek.TX)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;o=e$(e,s,r,n),(0,q.Db)(o,s)}
133return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,ek.VZ)(t)?eL(e,t):((0,ek.PO)(t)||(0,ek.cO)(t)?o=function(e,t,r,n){let i=(0,X.s3)(),o=i&&i.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),a={__serialized__:(0,ep.Qy)(t,o)};if(s)return{exception:{values:[eN(e,s)]},extra:a};let l={exception:{values:[{type:(0,ek.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,Z.zf)(e),n=t?"promise rejection":"exception";if((0,ek.VW)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,ek.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:a};if(r){let t=eD(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(o=e$(e,t,r,n),(0,q.Db)(o,`${t}`,void 0)),(0,q.EG)(o,{synthetic:!0}),o)}function e$(e,t,r,n){let i={};if(n&&r){let n=eD(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,q.EG)(i,{synthetic:!0})}if((0,ek.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}let eU=D.GLOBAL_OBJ,eF=0;function eH(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if((0,Z.HK)(e))return e}catch(t){return e}let r=function(...r){try{let n=r.map(e=>eH(e,t));return e.apply(this,n)}catch(e){throw eF++,setTimeout(()=>{eF--}),(0,X.$e)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,q.Db)(e,void 0,void 0),(0,q.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,j.Tb)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}(0,Z.$Q)(r,e),(0,Z.xp)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class ez extends eI{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e};B(t,"browser",["browser"],eU.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&eU.document&&eU.document.addEventListener("visibilitychange",()=>{"hidden"===eU.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,r,n){let i=ej(e,t,r&&r.syntheticException||void 0,n);return(0,q.EG)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,ex.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let o=e$(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,ex.WD)(o)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){eP&&U.kg.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:r,dsn:n}){return ef({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:eu(n)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}}let eq={},eW={};function eV(e,t){eq[e]=eq[e]||[],eq[e].push(t)}function eG(e,t){if(!eW[e]){eW[e]=!0;try{t()}catch(t){ei.X&&U.kg.error(`Error while instrumenting ${e}`,t)}}}function eJ(e,t){let r=e&&eq[e];if(r)for(let n of r)try{n(t)}catch(t){ei.X&&U.kg.error(`Error while triggering instrumentation handler.
134Type: ${e}
135Name: ${(0,Q.$P)(n)}
136Error:`,t)}}let eX=D.GLOBAL_OBJ;function eZ(e){eV("dom",e),eG("dom",eK)}function eK(){if(!eX.document)return;let e=eJ.bind(null,"dom"),t=eY(e,!0);eX.document.addEventListener("click",t,!1),eX.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=eX[t],n=r&&r.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,Z.hl)(n,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){let n=eY(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch(e){}return t.call(this,r,n,i)}}),(0,Z.hl)(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}}))})}function eY(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=function(e){try{return e.target}catch(e){return null}}(r);if("keypress"===r.type&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable))return;(0,Z.xp)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,Z.xp)(n,"_sentryId",(0,q.DM)());let a="keypress"===r.type?"input":r.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(r)&&(e({event:r,name:a,global:t}),o=r.type,s=n?n._sentryId:void 0),clearTimeout(i),i=eX.setTimeout(()=>{s=void 0,o=void 0},1e3)}}let eQ="__sentry_xhr_v3__";function e0(e){eV("xhr",e),eG("xhr",e1)}function e1(){if(!eX.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,eS.ph)(),o=(0,ek.HD)(r[0])?r[0].toUpperCase():void 0,s=function(e){if((0,ek.HD)(e))return e;try{return e.toString()}catch(e){}}(r[1]);if(!o||!s)return e.apply(t,r);t[eQ]={method:o,url:s,request_headers:{}}
136,"POST"===o&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[eQ];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}eJ("xhr",{endTimestamp:1e3*(0,eS.ph)(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(a(),e.apply(t,r))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,o=t[eQ];return o&&(0,ek.HD)(n)&&(0,ek.HD)(i)&&(o.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[eQ];return n&&(void 0!==r[0]&&(n.body=r[0]),eJ("xhr",{startTimestamp:1e3*(0,eS.ph)(),xhr:t})),e.apply(t,r)}})}let e2=D.GLOBAL_OBJ;function e4(e){let t="history";eV(t,e),eG(t,e3)}function e3(){if(!function(){let e=e2.chrome,t=e&&e.app&&e.app.runtime,r="history"in e2&&!!e2.history.pushState&&!!e2.history.replaceState;return!t&&r}())return;let e=eX.onpopstate;function t(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let e=a,t=String(r);a=t,eJ("history",{from:e,to:t})}return e.apply(this,t)}}eX.onpopstate=function(...t){let r=eX.location.href,n=a;if(a=r,eJ("history",{from:n,to:r}),e)try{return e.apply(this,t)}catch(e){}},(0,Z.hl)(eX.history,"pushState",t),(0,Z.hl)(eX.history,"replaceState",t)}function e5(){"console"in D.GLOBAL_OBJ&&U.RU.forEach(function(e){e in D.GLOBAL_OBJ.console&&(0,Z.hl)(D.GLOBAL_OBJ.console,e,function(t){return U.LD[e]=t,function(...t){eJ("console",{args:t,level:e});let r=U.LD[e];r&&r.apply(D.GLOBAL_OBJ.console,t)}})})}function e6(e,t){let r="fetch";eV(r,e),eG(r,()=>e8(void 0,t))}function e8(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!es())return!1;if(ea(eo.fetch))return!0;let e=!1,t=eo.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=ea(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){ei.X&&U.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,Z.hl)(D.GLOBAL_OBJ,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tt(t),method:te(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:tt(t),method:te(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:i,url:o},startTimestamp:1e3*(0,eS.ph)(),virtualError:n};return e||eJ("fetch",{...s}),t.apply(D.GLOBAL_OBJ,r).then(async t=>(e?e(t):eJ("fetch",{...s,endTimestamp:1e3*(0,eS.ph)(),response:t}),t),e=>{throw eJ("fetch",{...s,endTimestamp:1e3*(0,eS.ph)(),error:e}),(0,ek.VZ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,Z.xp)(e,"framesToPop",1)),e})}})}async function e7(e,t){if(e&&e.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),o=!1)}catch(e){o=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function e9(e){let t;try{t=e.clone()}catch(e){return}e7(t,()=>{eJ("fetch-body-resolved",{endTimestamp:1e3*(0,eS.ph)(),response:e})})}function te(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tt(e){return"string"==typeof e?e:e?te(e,"url")?e.url:e.toString?e.toString():"":""}function tr(e,t){let r=(0,X.s3)(),n=(0,X.aF)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions();if(o<=0)return;let s={timestamp:(0,eS.yW)(),...e},a=i?(0,U.Cf)(()=>i(s,t)):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,o))}var tn=r(70428);function ti(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function to(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function ts(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}let ta=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r;t.console&&function(e){let t="console";eV(t,e),eG(t,e5)}(function(t){if((0,X.s3)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:ti(t.level),message:(0,W.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,W.nK)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}tr(r,{input:t.args,level:t.level})}),t.dom&&eZ((r=t.dom,function(t){let n,i;if((0,X.s3)()!==e)return;let o="object"==typeof r?r.serializeAttribute:void 0,s="object"==typeof r&&"number"==typeof r.maxStringLength?r.maxStringLength:void 0;s&&s>1024&&(eP&&U.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,r=e&&e.target?e.target:e;n=(0,tn.Rt)(r,{keyAttrs:o,maxStringLength:s}),i=(0,tn.iY)(r)}catch(e){n="<unknown>"}if(0===n.length)return;let a={category:`ui.${t.name}`,message:n};i&&(a.data={"ui.component_name":i}),tr(a,{event:t.event,name:t.name,global:t.global})})),t.xhr&&e0(function(t){if((0,X.s3)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[eQ];if(!r||!n||!i)return;let{method:o,url:s,status_code:a,body:l}=i,c={xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:n},u=to(a);tr({category:"xhr",data:{method:o,url:s,status_code:a},type:"http",level:u},c)}),t.fetch&&e6(function(t){if((0,X.s3)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t;
136if(!(!n||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error)tr({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:n});else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:r,endTimestamp:n},s=to(i.status_code);tr({category:"fetch",data:i,type:"http",level:s},o)}}}),t.history&&e4(function(t){if((0,X.s3)()!==e)return;let r=t.from,n=t.to,i=ts(eU.location.href),o=r?ts(r):void 0,s=ts(n);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),tr({category:"navigation",data:{from:r,to:n}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,X.s3)()===e&&tr({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,q.jH)(t)},{event:t})})}}},tl=["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"],tc=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,Z.hl)(eU,"setTimeout",tu),t.setInterval&&(0,Z.hl)(eU,"setInterval",tu),t.requestAnimationFrame&&(0,Z.hl)(eU,"requestAnimationFrame",td),t.XMLHttpRequest&&"XMLHttpRequest"in eU&&(0,Z.hl)(XMLHttpRequest.prototype,"send",th);let e=t.eventTarget;e&&(Array.isArray(e)?e:tl).forEach(tp)}}};function tu(e){return function(...t){let r=t[0];return t[0]=eH(r,{mechanism:{data:{function:(0,Q.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function td(e){return function(t){return e.apply(this,[eH(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Q.$P)(e)},handled:!1,type:"instrument"}})])}}function th(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,Z.hl)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,Q.$P)(t)},handled:!1,type:"instrument"}},n=(0,Z.HK)(t);return n&&(r.mechanism.data.handler=(0,Q.$P)(n)),eH(t,r)})}),e.apply(this,t)}}function tp(e){let t=eU[e],r=t&&t.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,Z.hl)(r,"addEventListener",function(t){return function(r,n,i){try{"function"==typeof n.handleEvent&&(n.handleEvent=eH(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Q.$P)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,eH(n,{mechanism:{data:{function:"addEventListener",handler:(0,Q.$P)(n),target:e},handled:!1,type:"instrument"}}),i])}}),(0,Z.hl)(r,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch(e){}return e.call(this,t,r,n)}}))}let tf=()=>({name:"BrowserSession",setupOnce(){if(void 0===eU.document){eP&&U.kg.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,j.yj)({ignoreDuration:!0}),(0,j.cg)(),e4(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,j.yj)({ignoreDuration:!0}),(0,j.cg)())})}}),tm=null;function tg(e){let t="error";eV(t,e),eG(t,ty)}function ty(){tm=D.GLOBAL_OBJ.onerror,D.GLOBAL_OBJ.onerror=function(e,t,r,n,i){return eJ("error",{column:n,error:i,line:r,msg:e,url:t}),!!tm&&tm.apply(this,arguments)},D.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let tv=null;function tw(e){let t="unhandledrejection";eV(t,e),eG(t,tb)}function tb(){tv=D.GLOBAL_OBJ.onunhandledrejection,D.GLOBAL_OBJ.onunhandledrejection=function(e){return eJ("unhandledrejection",e),!tv||tv.apply(this,arguments)},D.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let t_=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(tg(t=>{let{stackParser:r,attachStacktrace:n}=tE();if((0,X.s3)()!==e||eF>0)return;let{msg:i,url:o,line:s,column:a,error:l}=t,c=function(e,t,r,n){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=(0,ek.HD)(t)&&t.length>0?t:(0,tn.l4)();return 0===l.length&&l.push({colno:n,filename:c,function:Q.Fi,in_app:!0,lineno:r}),e}(ej(r,l||i,void 0,n,!1),o,s,a);c.level="error",(0,j.eN)(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),tS("onerror")),t.onunhandledrejection&&(tw(t=>{let{stackParser:r,attachStacktrace:n}=tE();if((0,X.s3)()!==e||eF>0)return;let i=function(e){if((0,ek.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=(0,ek.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ej(r,i,void 0,n,!0);o.level="error",(0,j.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),tS("onunhandledrejection"))}}};function tS(e){eP&&U.kg.log(`Global Handler attached: ${e}`)}function tE(){let e=(0,X.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let tk=()=>({name:"HttpContext",preprocessEvent(e){if(!eU.navigator&&!eU.location&&!eU.document)return;let t=e.request&&e.request.url||eU.location&&eU.location.href,{referrer:r}=eU.document||{},{userAgent:n}=eU.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function tx(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0}
136,exception_id:t}}function tC(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}let tT=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){let o=i.getOptions();!function(e,t,r=250,n,i,o,s){if(!o.exception||!o.exception.values||!s||!(0,ek.V9)(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=(function e(t,r,n,i,o,s,a,l){if(s.length>=n+1)return s;let c=[...s];if((0,ek.V9)(i[o],Error)){tx(a,l);let s=t(r,i[o]),u=c.length;tC(s,o,u,l),c=e(t,r,n,i[o],o,[s,...c],s,u)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,ek.V9)(i,Error)){tx(a,l);let u=t(r,i),d=c.length;tC(u,`errors[${s}]`,d,l),c=e(t,r,n,i,o,[u,...c],u,d)}}),c})(e,t,i,s.originalException,n,o.exception.values,a,0).map(e=>(e.value&&(e.value=(0,W.$G)(e.value,r)),e)))}(eN,o.stackParser,o.maxValueLength,r,t,e,n)}}};function tO(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?Q.Fi:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let tI=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tA=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tR=/\((\S*)(?::(\d+))(?::(\d+))\)/,tP=[30,e=>{let t=tI.exec(e);if(t){let[,e,r,n]=t;return tO(e,Q.Fi,+r,+n)}let r=tA.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){let e=tR.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=tB(r[1]||Q.Fi,r[2]);return tO(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],tN=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tL=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tD=[50,e=>{let t=tN.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tL.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||Q.Fi;return[r,e]=tB(r,e),tO(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tM=(0,Q.pE)(tP,tD),tB=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Q.Fi,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tj="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,t$={};function tU(e){let t=t$[e];if(t)return t;let r=eX[e];if(ea(r))return t$[e]=r.bind(eX);let n=eX.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(t){tj&&U.kg.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?t$[e]=r.bind(eX):r}function tF(...e){return tU("setTimeout")(...e)}function tH(e,t,r=Date.now()){return(e[t]||e.all||0)>r}function tz(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else s?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(i.all=n+6e4);return i}function tq(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function tW(e,t=tU("fetch")){let r=0,n=0;return function(e,t,r=function(e){let t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return(0,ex.$2)(new eE("Not adding Promise because buffer limit was reached."));let i=n();return -1===t.indexOf(i)&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i},drain:function(e){return new ex.cW((r,n)=>{let i=t.length;if(!i)return r(!0);let o=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{(0,ex.WD)(e).then(()=>{--i||(clearTimeout(o),r(!0))},n)})})}}}(e.bufferSize||64)){let n={};return{send:function(i){let o=[];if(em(i,(t,r)=>{let i=ey[r];if(tH(n,i)){let n=tq(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else o.push(t)}),0===o.length)return(0,ex.WD)({});let s=ef(i[0],o),a=t=>{em(s,(r,n)=>{let i=tq(r,n);e.recordDroppedEvent(t,ey[n],i)})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[eg(n),e]:n.push("string"==typeof e?eg(e):e)}for(let e of r){let[t,r]=e;if(i(`
137${JSON.stringify(t)}
138`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,ep.Fv)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>
138e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&$.X&&U.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=tz(n,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof eE)return $.X&&U.kg.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,ex.WD)({});throw e})},flush:e=>r.drain(e)}}(e,function(i){let o=i.body.length;r+=o,n++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};if(!t)return t$.fetch=void 0,(0,ex.$2)("No fetch implementation available");try{return t(e.url,s).then(e=>(r-=o,n--,{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 t$.fetch=void 0,r-=o,n--,(0,ex.$2)(e)}})}function tV(e){let t=[G(),Y(),tc(),ta(),t_(),tT(),ee(),tk()];return!1!==e.autoSessionTracking&&t.push(tf()),t}var tG=r(67294),tJ=r(83454),tX=r(31218);function tZ(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[tX.E1],i=r[tX.Wb];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}let tK=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",tY=(e,t,r,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=tK(t.value,r),e(t))}},tQ=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,t0=(e=!0)=>{let t=eX.performance&&eX.performance.getEntriesByType&&eX.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},t1=()=>{let e=t0();return e&&e.activationStart||0},t2=(e,t)=>{let r=t0(),n="navigate";return r&&(eX.document&&eX.document.prerendering||t1()>0?n="prerender":eX.document&&eX.document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:tQ(),navigationType:n}},t4=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},t3=e=>{let t=t=>{("pagehide"===t.type||eX.document&&"hidden"===eX.document.visibilityState)&&e(t)};eX.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},t5=e=>{let t=!1;return()=>{t||(e(),t=!0)}},t6=-1,t8=()=>"hidden"!==eX.document.visibilityState||eX.document.prerendering?1/0:0,t7=e=>{"hidden"===eX.document.visibilityState&&t6>-1&&(t6="visibilitychange"===e.type?e.timeStamp:0,re())},t9=()=>{addEventListener("visibilitychange",t7,!0),addEventListener("prerenderingchange",t7,!0)},re=()=>{removeEventListener("visibilitychange",t7,!0),removeEventListener("prerenderingchange",t7,!0)},rt=()=>(eX.document&&t6<0&&(t6=t8(),t9()),{get firstHiddenTime(){return t6}}),rr=e=>{eX.document&&eX.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rn=[1800,3e3],ri=(e,t={})=>{rr(()=>{let r;let n=rt(),i=t2("FCP"),o=t4("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(i.value=Math.max(e.startTime-t1(),0),i.entries.push(e),r(!0)))})});o&&(r=tY(e,i,rn,t.reportAllChanges))})},ro=[.1,.25],rs=(e,t={})=>{ri(t5(()=>{let r;let n=t2("CLS",0),i=0,o=[],s=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],r=o[o.length-1];i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}}),i>n.value&&(n.value=i,n.entries=o,r())},a=t4("layout-shift",s);a&&(r=tY(e,n,ro,t.reportAllChanges),t3(()=>{s(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},ra=[100,300],rl=(e,t={})=>{rr(()=>{let r;let n=rt(),i=t2("FID"),o=e=>{e.startTime<n.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),r(!0))},s=e=>{e.forEach(o)},a=t4("first-input",s);r=tY(e,i,ra,t.reportAllChanges),a&&t3(t5(()=>{s(a.takeRecords()),a.disconnect()}))})},rc=0,ru=1/0,rd=0,rh=e=>
138{e.forEach(e=>{e.interactionId&&(ru=Math.min(ru,e.interactionId),rc=(rd=Math.max(rd,e.interactionId))?(rd-ru)/7+1:0)})},rp=()=>l?rc:performance.interactionCount||0,rf=()=>{"interactionCount"in performance||l||(l=t4("event",rh,{type:"event",buffered:!0,durationThreshold:0}))},rm=[],rg=new Map,ry=()=>rp()-0,rv=()=>{let e=Math.min(rm.length-1,Math.floor(ry()/50));return rm[e]},rw=[],rb=e=>{if(rw.forEach(t=>t(e)),!(e.interactionId||"first-input"===e.entryType))return;let t=rm[rm.length-1],r=rg.get(e.interactionId);if(r||rm.length<10||t&&e.duration>t.latency){if(r)e.duration>r.latency?(r.entries=[e],r.latency=e.duration):e.duration===r.latency&&e.startTime===(r.entries[0]&&r.entries[0].startTime)&&r.entries.push(e);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};rg.set(t.id,t),rm.push(t)}rm.sort((e,t)=>t.latency-e.latency),rm.length>10&&rm.splice(10).forEach(e=>rg.delete(e.id))}},r_=e=>{let t=eX.requestIdleCallback||eX.setTimeout,r=-1;return e=t5(e),eX.document&&"hidden"===eX.document.visibilityState?e():(r=t(e),t3(e)),r},rS=[200,500],rE=(e,t={})=>{"PerformanceEventTiming"in eX&&"interactionId"in PerformanceEventTiming.prototype&&rr(()=>{let r;rf();let n=t2("INP"),i=e=>{r_(()=>{e.forEach(rb);let t=rv();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())})},o=t4("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=tY(e,n,rS,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),t3(()=>{i(o.takeRecords()),r(!0)}))})},rk=[2500,4e3],rx={},rC=(e,t={})=>{rr(()=>{let r;let n=rt(),i=t2("LCP"),o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach(e=>{e.startTime<n.firstHiddenTime&&(i.value=Math.max(e.startTime-t1(),0),i.entries=[e],r())})},s=t4("largest-contentful-paint",o);if(s){r=tY(e,i,rk,t.reportAllChanges);let n=t5(()=>{rx[i.id]||(o(s.takeRecords()),s.disconnect(),rx[i.id]=!0,r(!0))});["keydown","click"].forEach(e=>{eX.document&&addEventListener(e,()=>r_(n),{once:!0,capture:!0})}),t3(n)}})},rT=[800,1800],rO=e=>{eX.document&&eX.document.prerendering?rr(()=>rO(e)):eX.document&&"complete"!==eX.document.readyState?addEventListener("load",()=>rO(e),!0):setTimeout(e,0)},rI=(e,t={})=>{let r=t2("TTFB"),n=tY(e,r,rT,t.reportAllChanges);rO(()=>{let e=t0();e&&(r.value=Math.max(e.responseStart-t1(),0),r.entries=[e],n(!0))})},rA={},rR={};function rP(e,t=!1){return rz("cls",e,rj,c,t)}function rN(e,t=!1){return rz("lcp",e,rU,d,t)}function rL(e){return rz("fid",e,r$,u)}function rD(e){return rz("inp",e,rH,p)}function rM(e,t){return rq(e,t),rR[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),t4(e,t=>{rB(e,{entries:t})},t)}(e),rR[e]=!0),rW(e,t)}function rB(e,t){let r=rA[e];if(r&&r.length)for(let n of r)try{n(t)}catch(t){tj&&U.kg.error(`Error while triggering instrumentation handler.
139Type: ${e}
140Name: ${(0,Q.$P)(n)}
141Error:`,t)}}function rj(){return rs(e=>{rB("cls",{metric:e}),c=e},{reportAllChanges:!0})}function r$(){return rl(e=>{rB("fid",{metric:e}),u=e})}function rU(){return rC(e=>{rB("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function rF(){return rI(e=>{rB("ttfb",{metric:e}),h=e})}function rH(){return rE(e=>{rB("inp",{metric:e}),p=e})}function rz(e,t,r,n,i=!1){let o;return rq(e,t),rR[e]||(o=r(),rR[e]=!0),n&&t({metric:n}),rW(e,t,i?o:void 0)}function rq(e,t){rA[e]=rA[e]||[],rA[e].push(t)}function rW(e,t,r){return()=>{r&&r();let n=rA[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}var rV=r(13533),rG=r(60811),rJ=r(67973),rX=r(89366),rZ=r(51824);class rK{constructor(e={}){this._traceId=e.traceId||(0,rZ.Ht)(),this._spanId=e.spanId||(0,rZ.M)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:eb.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}var rY=r(72751);let rQ="_sentryScope",r0="_sentryIsolationScope";function r1(e){return{scope:e[rQ],isolationScope:e[r0]}}class r2{constructor(e={}){this._traceId=e.traceId||(0,rZ.Ht)(),this._spanId=e.spanId||(0,rZ.M)(),this._startTime=e.startTimestamp||(0,eS.ph)(),this._attributes={},this.setAttributes({[tX.S3]:"manual",[tX.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
141addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?eb.i0:eb.ve}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,eb.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(tX.Zj,"custom"),this}end(e){this._endTime||(this._endTime=(0,eb.$k)(e),function(e){if(!$.X)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,eb.XU)(e),{spanId:n}=e.spanContext(),i=(0,eb.Gx)(e)===e,o=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;U.kg.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return(0,Z.Jr)({data:this._attributes,description:this._name,op:this._attributes[tX.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,eb._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tX.S3],_metrics_summary:(0,rY.y)(this),profile_id:this._attributes[tX.p6],exclusive_time:this._attributes[tX.JQ],measurements:tZ(this._events),is_segment:this._isStandaloneSpan&&(0,eb.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,eb.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){$.X&&U.kg.log("[Tracing] Adding an event to span:",e);let n=r4(t)?t:r||(0,eS.ph)(),i=r4(t)?{}:t||{},o={name:e,time:(0,eb.$k)(n),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,X.s3)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,eb.Gx)(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,X.s3)();if(!t)return;let r=e[1];if(!r||0===r.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}(function(e,t){let r=(0,el.jC)(e[0]),n=t&&t.getDsn(),i=t&&t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:eu(n)}},s=t&&t.getOptions().beforeSendSpan,a=s?e=>{let t=s((0,eb.XU)(e));return t||(0,eb.R6)(),t}:e=>(0,eb.XU)(e),l=[];for(let t of e){let e=a(t);e&&l.push([{type:"span"},e])}return ef(o,l)}([this],e)):($.X&&U.kg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&(r1(this).scope||(0,X.nZ)()).captureEvent(t)}_convertSpanToTransaction(){if(!r3((0,eb.XU)(this)))return;this._name||($.X&&U.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=r1(this),r=(e||(0,X.nZ)()).getClient()||(0,X.s3)();if(!0!==this._sampled){$.X&&U.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}let n=(0,eb.Dp)(this).filter(e=>e!==this&&!(e instanceof r2&&e.isStandaloneSpan())).map(e=>(0,eb.XU)(e)).filter(r3),i=this._attributes[tX.Zj];delete this._attributes[tX.xF],n.forEach(e=>{e.data&&delete e.data[tX.xF]});let o={contexts:{trace:(0,eb.HR)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,Z.Jr)({dynamicSamplingContext:(0,el.jC)(this)})},_metrics_summary:(0,rY.y)(this),...i&&{transaction_info:{source:i}}},s=tZ(this._events);return s&&Object.keys(s).length&&($.X&&U.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),o.measurements=s),o}}function r4(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function r3(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let r5="__SENTRY_SUPPRESS_TRACING__";function r6(e){let t=r7();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,eb.$k)(e.startTime),delete r.startTime,r}return t}(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,X.$e)(e.scope,t):void 0!==i?e=>r8(i,e):e=>e())(()=>{let t=(0,X.nZ)(),i=function(e){let t=(0,rX.Y)(e);if(!t)return;let r=(0,X.s3)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,eb.Gx)(t):t}(t);return e.onlyIfParent&&!i?new rK:function({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){var i;let o;if(!(0,rJ.z)())return new rK;let s=(0,X.aF)();if(e&&!r)o=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[r5]&&(0,eb.Tt)(e),s=o?new r2({...r,parentSpanId:n,traceId:i,sampled:o}):new rK({traceId:i});(0,eb.j5)(e,s);let a=(0,X.s3)();return a&&(a.emit("spanStart",s),r.endTimestamp&&a.emit("spanEnd",s)),s}(e,n,t),(0,eb.j5)(e,o);else if(e){let r=(0,el.jC)(e),{traceId:i,spanId:s}=e.spanContext(),a=(0,eb.Tt)(e);o=r9({traceId:i,parentSpanId:s,...t},n,a),(0,el.Lh)(o,r)}else{let{traceId:e,dsc:r,parentSpanId:i,sampled:a}={...s.getPropagationContext(),...n.getPropagationContext()};o=r9({traceId:e,parentSpanId:i,...t},n,a),r&&(0,el.Lh)(o,r)}return function(e){if(!$.X)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,eb.XU)(e),{spanId:i}=e.spanContext(),o=(0,eb.Tt)(e),s=(0,eb.Gx)(e),a=s===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,c=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];
141if(n&&c.push(`parent ID: ${n}`),!a){let{op:e,description:t}=(0,eb.XU)(s);c.push(`root ID: ${s.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}U.kg.log(`${l}
142  ${c.join("\n  ")}`)}(o),(i=o)&&((0,Z.xp)(i,r0,s),(0,Z.xp)(i,rQ,n)),o}({parentSpan:i,spanArguments:r,forceTransaction:n,scope:t})})}function r8(e,t){let r=r7();return r.withActiveSpan?r.withActiveSpan(e,t):(0,X.$e)(r=>((0,rX.D)(r,e||void 0),t(r)))}function r7(){let e=(0,rV.c)();return(0,rG.G)(e)}function r9(e,t,r){let n=(0,X.s3)(),i=n&&n.getOptions()||{},{name:o="",attributes:s}=e,[a,l]=t.getScopeData().sdkProcessingMetadata[r5]?[!1]:function(e,t){let r;if(!(0,rJ.z)(e))return[!1];let n=(0,X.aF)().getScopeData().sdkProcessingMetadata.normalizedRequest,i={...t,normalizedRequest:t.normalizedRequest||n},o=eC(r="function"==typeof e.tracesSampler?e.tracesSampler(i):void 0!==i.parentSampled?i.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1);return void 0===o?($.X&&U.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):o?Math.random()<o?[!0,o]:($.X&&U.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[!1,o]):($.X&&U.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o])}(i,{name:o,parentSampled:r,attributes:s,transactionContext:{name:o,parentSampled:r}}),c=new r2({...e,attributes:{[tX.Zj]:"custom",...e.attributes},sampled:a});return void 0!==l&&c.setAttribute(tX.TE,l),n&&n.emit("spanStart",c),c}function ne(e){return"number"==typeof e&&isFinite(e)}function nt(e,t,r,{...n}){let i=(0,eb.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),r8(e,()=>{let e=r6({startTime:t,...n});return e&&e.end(r),e})}function nr(e){let t;let r=(0,X.s3)();if(!r)return;let{name:n,transaction:i,attributes:o,startTime:s}=e,{release:a,environment:l}=r.getOptions(),c=r.getIntegrationByName("Replay"),u=c&&c.getReplayId(),d=(0,X.nZ)(),h=d.getUser(),p=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch(e){}return r6({name:n,attributes:{release:a,environment:l,user:p||void 0,profile_id:t||void 0,replay_id:u||void 0,transaction:i,"user_agent.original":eX.navigator&&eX.navigator.userAgent,...o},startTime:s,experimental:{standalone:!0}})}function nn(){return eX&&eX.addEventListener&&eX.performance}function ni(e){return e/1e3}function no(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}let ns=0,na={};function nl(e,t,r,n,i=r){let o=t["secureConnection"===r?"connectEnd":"fetch"===r?"domainLookupStart":`${r}End`],s=t[`${r}Start`];s&&o&&nt(e,n+ni(s),n+ni(o),{op:`browser.${i}`,name:t.name,attributes:{[tX.S3]:"auto.ui.browser.metrics"}})}function nc(e,t,r,n){let i=t[r];null!=i&&i<2147483647&&(e[n]=i)}let nu=[],nd=new Map,nh={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};var np=r(69737);let nf={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function nm(e,t={}){let r;let n=new Map,i=!1,o="externalFinish",s=!t.disableAutoFinish,a=[],{idleTimeout:l=nf.idleTimeout,finalTimeout:c=nf.finalTimeout,childSpanTimeout:u=nf.childSpanTimeout,beforeSpanEnd:d}=t,h=(0,X.s3)();if(!h||!(0,rJ.z)())return new rK;let p=(0,X.nZ)(),f=(0,eb.HN)(),m=function(e){let t=r6(e);return(0,rX.D)((0,X.nZ)(),t),$.X&&U.kg.log("[Tracing] Started span is an idle span"),t}(e);function g(){r&&(clearTimeout(r),r=void 0)}function y(e){g(),r=setTimeout(()=>{!i&&0===n.size&&s&&(o="idleTimeout",m.end(e))},l)}function v(e){r=setTimeout(()=>{!i&&s&&(o="heartbeatFailed",m.end(e))},u)}
142function w(e){i=!0,n.clear(),a.forEach(e=>e()),(0,rX.D)(p,f);let t=(0,eb.XU)(m),{start_timestamp:r}=t;if(!r)return;(t.data||{})[tX.ju]||m.setAttribute(tX.ju,o),U.kg.log(`[Tracing] Idle span "${t.op}" finished`);let s=(0,eb.Dp)(m).filter(e=>e!==m),u=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:np.jt,message:"cancelled"}),t.end(e),$.X&&U.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,eb.XU)(t),i=n<=e,o=r-n<=(c+l)/1e3;if($.X){let e=JSON.stringify(t,void 0,2);i?o||U.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):U.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,eb.ed)(m,t),u++)}),u>0&&m.setAttribute("sentry.idle_span_discarded_spans",u)}return m.end=new Proxy(m.end,{apply(e,t,r){d&&d(m);let[n,...i]=r,o=n||(0,eS.ph)(),s=(0,eb.$k)(o),a=(0,eb.Dp)(m).filter(e=>e!==m);if(!a.length)return w(s),Reflect.apply(e,t,[s,...i]);let l=a.map(e=>(0,eb.XU)(e).timestamp).filter(e=>!!e),u=l.length?Math.max(...l):void 0,h=(0,eb.XU)(m).start_timestamp,p=Math.min(h?h+c/1e3:1/0,Math.max(h||-1/0,Math.min(s,u||1/0)));return w(p),Reflect.apply(e,t,[p,...i])}}),a.push(h.on("spanStart",e=>{if(!i&&e!==m&&!(0,eb.XU)(e).timestamp&&(0,eb.Dp)(m).includes(e)){var t;t=e.spanContext().spanId,g(),n.set(t,!0),v((0,eS.ph)()+u/1e3)}})),a.push(h.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&y((0,eS.ph)()+l/1e3))})),a.push(h.on("idleSpanEnableAutoFinish",e=>{e===m&&(s=!0,y(),n.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(m.setStatus({code:np.jt,message:"deadline_exceeded"}),o="finalTimeout",m.end())},c),m}let ng=!1;function ny(){let e=(0,eb.HN)(),t=e&&(0,eb.Gx)(e);if(t){let e="internal_error";$.X&&U.kg.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:np.jt,message:e})}}ny.tag="sentry_tracingErrorCallback";var nv=r(94801),nw=r(98823);function nb(e={}){let t=(0,X.s3)();if(!(0,j._k)()||!t)return{};let r=(0,rV.c)(),n=(0,rG.G)(r);if(n.getTraceData)return n.getTraceData(e);let i=(0,X.nZ)(),o=e.span||(0,eb.HN)(),s=o?(0,eb.Hb)(o):function(e){let{traceId:t,sampled:r,spanId:n}=e.getPropagationContext();return(0,nv.$p)(t,n,r)}(i),a=o?(0,el.jC)(o):(0,el.CG)(t,i),l=(0,nw.IQ)(a);return nv.Ke.test(s)?{"sentry-trace":s,baggage:l}:(U.kg.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function n_(e){return e.split(",").filter(e=>!e.split("=")[0].startsWith(nw.lq)).join(",")}let nS=new WeakMap,nE=new Map,nk={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function nx(e){let{url:t}=(0,eb.XU)(e).data||{};if(!t||"string"!=typeof t)return;let r=rM("resource",({entries:n})=>{n.forEach(n=>{"resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)&&((function(e){let{name:t,version:r}=no(e.nextHopProtocol),n=[];return(n.push(["network.protocol.version",r],["network.protocol.name",t]),eS.Z1)?[...n,["http.request.redirect_start",nC(e.redirectStart)],["http.request.fetch_start",nC(e.fetchStart)],["http.request.domain_lookup_start",nC(e.domainLookupStart)],["http.request.domain_lookup_end",nC(e.domainLookupEnd)],["http.request.connect_start",nC(e.connectStart)],["http.request.secure_connection_start",nC(e.secureConnectionStart)],["http.request.connection_end",nC(e.connectEnd)],["http.request.request_start",nC(e.requestStart)],["http.request.response_start",nC(e.responseStart)],["http.request.response_end",nC(e.responseEnd)]]:n})(n).forEach(t=>e.setAttribute(...t)),setTimeout(r))})})}function nC(e=0){return((eS.Z1||performance.timeOrigin)+e)/1e3}function nT(e){try{return new URL(e,eU.location.origin).href}catch(e){return}}let nO={...nf,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...nk},nI=(e={})=>{ng||(ng=!0,tg(ny),tw(ny));let{enableInp:t,enableLongTask:r,enableLongAnimationFrame:n,_experiments:{enableInteractions:i,enableStandaloneClsSpans:o},beforeStartSpan:s,idleTimeout:a,finalTimeout:l,childSpanTimeout:c,markBackgroun
142dSpan:u,traceFetch:d,traceXHR:p,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:y,enableHTTPTimings:v,instrumentPageLoad:w,instrumentNavigation:b}={...nO,...e},_=function({recordClsStandaloneSpans:e}){let t=nn();if(t&&eS.Z1){t.mark&&eX.performance.mark("sentry-tracing-init");let r=rL(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let r=ni(eS.Z1),n=ni(t.startTime);na.fid={value:e.value,unit:"millisecond"},na["mark.fid"]={value:r+n,unit:"second"}}),n=rN(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(na.lcp={value:e.value,unit:"millisecond"},f=t)},!0),i=rz("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(na.ttfb={value:e.value,unit:"millisecond"})},rF,h),o=e?function(){let e,t,r=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){return!1}}())return;let n=!1;function i(){n||(n=!0,t&&function(e,t,r){tj&&U.kg.log(`Sending CLS span (${e})`);let n=ni((eS.Z1||0)+(t&&t.startTime||0)),i=(0,X.nZ)().getScopeData().transactionName,o=nr({name:t?(0,tn.Rt)(t.sources[0]&&t.sources[0].node):"Layout shift",transaction:i,attributes:(0,Z.Jr)({[tX.S3]:"auto.http.browser.cls",[tX.$J]:"ui.webvital.cls",[tX.JQ]:t&&t.duration||0,"sentry.pageload.span_id":r}),startTime:n});o&&(o.addEvent("cls",{[tX.E1]:"",[tX.Wb]:e}),o.end(n))}(r,e,t),o())}let o=rP(({metric:t})=>{let n=t.entries[t.entries.length-1];n&&(r=t.value,e=n)},!0);t3(()=>{i()}),setTimeout(()=>{let e=(0,X.s3)();if(!e)return;let r=e.on("startNavigationSpan",()=>{i(),r&&r()}),n=(0,eb.HN)(),o=n&&(0,eb.Gx)(n),s=o&&(0,eb.XU)(o);s&&"pageload"===s.op&&(t=o.spanContext().spanId)},0)}():rP(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(na.cls={value:e.value,unit:""},m=t)},!0);return()=>{r(),n(),i(),o&&o()}}return()=>void 0}({recordClsStandaloneSpans:o||!1});t&&function(){if(nn()&&eS.Z1){let e=rD(({metric:e})=>{if(void 0==e.value)return;let t=e.entries.find(t=>t.duration===e.value&&nh[t.name]);if(!t)return;let{interactionId:r}=t,n=nh[t.name],i=ni(eS.Z1+t.startTime),o=ni(e.value),s=(0,eb.HN)(),a=s?(0,eb.Gx)(s):void 0,l=(null!=r?nd.get(r):void 0)||a,c=l?(0,eb.XU)(l).description:(0,X.nZ)().getScopeData().transactionName,u=nr({name:(0,tn.Rt)(t.target),transaction:c,attributes:(0,Z.Jr)({[tX.S3]:"auto.http.browser.inp",[tX.$J]:`ui.interaction.${n}`,[tX.JQ]:t.duration}),startTime:i});u&&(u.addEvent("inp",{[tX.E1]:"millisecond",[tX.Wb]:e.value}),u.end(i+o))})}}(),n&&D.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,eb.HN)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=ni(eS.Z1+r.startTime),{start_timestamp:n,op:i}=(0,eb.XU)(t);if("navigation"===i&&n&&e<n)continue;let o=ni(r.duration),s={[tX.S3]:"auto.ui.browser.metrics"},{invoker:a,invokerType:l,sourceURL:c,sourceFunctionName:u,sourceCharPosition:d}=r.scripts[0];s["browser.script.invoker"]=a,s["browser.script.invoker_type"]=l,c&&(s["code.filepath"]=c),u&&(s["code.function"]=u),-1!==d&&(s["browser.script.source_char_position"]=d),nt(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):r&&rM("longtask",({entries:e})=>{let t=(0,eb.HN)();if(!t)return;let{op:r,start_timestamp:n}=(0,eb.XU)(t);for(let i of e){let e=ni(eS.Z1+i.startTime),o=ni(i.duration);"navigation"===r&&n&&e<n||nt(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[tX.S3]:"auto.ui.browser.metrics"}})}}),i&&rM("event",({entries:e})=>{let t=(0,eb.HN)();
142if(t){for(let r of e)if("click"===r.name){let e=ni(eS.Z1+r.startTime),n=ni(r.duration),i={name:(0,tn.Rt)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[tX.S3]:"auto.ui.browser.metrics"}},o=(0,tn.iY)(r.target);o&&(i.attributes["ui.component_name"]=o),nt(t,e,e+n,i)}}});let S={name:void 0,source:void 0};function E(e,t){let r="pageload"===t.op,n=s?s(t):t,i=n.attributes||{};t.name!==n.name&&(i[tX.Zj]="custom",n.attributes=i),S.name=n.name,S.source=i[tX.Zj];let u=nm(n,{idleTimeout:a,finalTimeout:l,childSpanTimeout:c,disableAutoFinish:r,beforeSpanEnd:e=>{_(),function(e,t){let r=nn();if(!r||!r.getEntries||!eS.Z1)return;let n=ni(eS.Z1),i=r.getEntries(),{op:o,start_timestamp:s}=(0,eb.XU)(e);if(i.slice(ns).forEach(t=>{let r=ni(t.startTime),i=ni(Math.max(0,t.duration));if("navigation"!==o||!s||!(n+r<s))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{nl(e,t,r,n)}),nl(e,t,"secureConnection",n,"TLS/SSL"),nl(e,t,"fetch",n,"cache"),nl(e,t,"domainLookup",n,"DNS"),function(e,t,r){let n=r+ni(t.requestStart),i=r+ni(t.responseEnd),o=r+ni(t.responseStart);t.responseEnd&&(nt(e,n,i,{op:"browser.request",name:t.name,attributes:{[tX.S3]:"auto.ui.browser.metrics"}}),nt(e,o,i,{op:"browser.response",name:t.name,attributes:{[tX.S3]:"auto.ui.browser.metrics"}}))}(e,t,n);break;case"mark":case"paint":case"measure":{(function(e,t,r,n,i){let o=t0(!1),s=i+Math.max(r,ni(o?o.requestStart:0)),a=i+r,l=a+n,c={[tX.S3]:"auto.resource.browser.metrics"};s!==a&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),s<=l&&nt(e,s,l,{name:t.name,op:t.entryType,attributes:c})})(e,t,r,i,n);let o=rt(),s=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&s&&(na.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(na.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,r,n,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s=ts(r),a={[tX.S3]:"auto.resource.browser.metrics"};nc(a,t,"transferSize","http.response_transfer_size"),nc(a,t,"encodedBodySize","http.response_content_length"),nc(a,t,"decodedBodySize","http.decoded_response_content_length");let l=t.deliveryType;null!=l&&(a["http.response_delivery_type"]=l);let c=t.renderBlockingStatus;c&&(a["resource.render_blocking_status"]=c),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=r.includes(eX.location.origin);let{name:u,version:d}=no(t.nextHopProtocol);a["network.protocol.name"]=u,a["network.protocol.version"]=d;let h=o+n;nt(e,h,h+i,{name:r.replace(eX.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})})(e,t,t.name,r,i,n)}}),ns=Math.max(i.length-1,0),function(e){let t=eX.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),ne(r.rtt)&&(na["connection.rtt"]={value:r.rtt,unit:"millisecond"})),ne(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),ne(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===o){(function(e){let t=t0(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})})(na);let r=na["mark.fid"];r&&na.fid&&(nt(e,r.value,r.value+ni(na.fid.value),{name:"first input delay",op:"ui.action",attributes:{[tX.S3]:"auto.ui.browser.metrics"}}),delete na["mark.fid"]),"fcp"in na&&t.recordClsOnPageloadSpan||delete na.cls,Object.entries(na).forEach(([e,t])=>{!function(e,t,r,n=(0,eb.HN)()){let i=n&&(0,eb.Gx)(n);i&&($.X&&U.kg.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[tX.Wb]:t,[tX.E1]:r}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",n),e.setAttribute("performance.activationStart",t1()),f&&(f.element&&e.setAttribute("lcp.element",(0,tn.Rt)(f.element)),f.id&&e.setAttribute("lcp.id",f.id),f.url&&e.setAttribute("lcp.url",f.url.trim().slice(0,200)),null!=f.loadTime&&e.setAttribute("lcp.loadTime",f.loadTime),null!=f.renderTime&&e.setAttribute("lcp.renderTime",f.renderTime),e.setAttribute("lcp.size",f.size)),m&&m.sources&&m.sources.forEac
142h((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,tn.Rt)(t.node)))}f=void 0,m=void 0,na={}}(e,{recordClsOnPageloadSpan:!o})}});function d(){["interactive","complete"].includes(eU.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return r&&eU.document&&(eU.document.addEventListener("readystatechange",()=>{d()}),d()),u}return{name:"BrowserTracing",afterAllSetup(e){let r,n;let o=eU.location&&eU.location.href;function s(){r&&!(0,eb.XU)(r).timestamp&&(eP&&U.kg.log(`[Tracing] Finishing current active span with op: ${(0,eb.XU)(r).op}`),r.end())}e.on("startNavigationSpan",t=>{(0,X.s3)()===e&&(s(),r=E(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,n={})=>{if((0,X.s3)()!==e)return;s();let i=n.sentryTrace||nP("sentry-trace"),o=n.baggage||nP("baggage"),a=(0,nv.pT)(i,o);(0,X.nZ)().setPropagationContext(a),r=E(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=(0,eb.XU)(e).op;if(e!==(0,eb.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;let r=(0,X.nZ)(),n=r.getPropagationContext();r.setPropagationContext({...n,sampled:void 0!==n.sampled?n.sampled:(0,eb.Tt)(e),dsc:n.dsc||(0,el.jC)(e)})}),eU.location&&(w&&nA(e,{name:eU.location.pathname,startTime:eS.Z1?eS.Z1/1e3:void 0,attributes:{[tX.Zj]:"url",[tX.S3]:"auto.pageload.browser"}}),b&&e4(({to:t,from:r})=>{if(void 0===r&&o&&-1!==o.indexOf(t)){o=void 0;return}r!==t&&(o=void 0,nR(e,{name:eU.location.pathname,attributes:{[tX.Zj]:"url",[tX.S3]:"auto.navigation.browser"}}))})),u&&(eU&&eU.document?eU.document.addEventListener("visibilitychange",()=>{let e=(0,eb.HN)();if(!e)return;let t=(0,eb.Gx)(e);if(eU.document.hidden&&t){let e="cancelled",{op:r,status:n}=(0,eb.XU)(t);eP&&U.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:np.jt,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):eP&&U.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),i&&eU.document&&addEventListener("click",()=>{let e="ui.action.click",t=(0,eb.HN)(),r=t&&(0,eb.Gx)(t);if(r&&["navigation","pageload"].includes((0,eb.XU)(r).op)){eP&&U.kg.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(n&&(n.setAttribute(tX.ju,"interactionInterrupted"),n.end(),n=void 0),!S.name){eP&&U.kg.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}n=nm({name:S.name,op:e,attributes:{[tX.Zj]:S.source||"url"}},{idleTimeout:a,finalTimeout:l,childSpanTimeout:c})},{once:!1,capture:!0}),t&&function(){let e=({entries:e})=>{let t=(0,eb.HN)(),r=t&&(0,eb.Gx)(t);e.forEach(e=>{if(!("duration"in e)||!r)return;let t=e.interactionId;if(!(null==t||nd.has(t))){if(nu.length>10){let e=nu.shift();nd.delete(e)}nu.push(t),nd.set(t,r)}})};rM("event",e),rM("first-input",e)}(),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a}={traceFetch:nk.traceFetch,traceXHR:nk.traceXHR,trackFetchStreamPerformance:nk.trackFetchStreamPerformance,...t},l="function"==typeof o?o:e=>!0,c=e=>(function(e,t){let r=eU.location&&eU.location.href;if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch(e){return!1}let o=n.origin===i;return t?(0,W.U0)(n.toString(),t)||o&&(0,W.U0)(n.pathname,t):o}{let r=!!e.match(/^\/(?!\/)/);return t?(0,W.U0)(e,t):r}})(e,a),u={};r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=nE.get(e.span_id);t&&(e.timestamp=t/1e3,nE.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";eV(t,e),eG(t,()=>e8(e9))}(e=>{if(e.response){let t=nS.get(e.response);t&&e.endTimestamp&&nE.set(t,e.endTimestamp)}}),e6(e=>{let t=function(e,t,r,n,i="auto.http.browser"){if(!e.fetchData)return;let o=(0,rJ.z)()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(function(e,t){if(t.response){(0,np.Q0)(e,t.response.status);let r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:np.jt,message:"internal_error"});e.end()}(r,e),delete n[t]);return}let{method:s,url:a}=e.fetchData,l=function(e){try{return new URL(e).href}catch(e){return}}(a),c=l?ts(l).host:void 0,u=!!(0,eb.HN)(),d=o&&u?r6({name:`${s} ${a}`,attributes:{url:a,type:"fetch","http.method":s,"http.url":l,"server.address":c,[tX.S3]:i,[tX.$J]:"http.client"}}):new rK;if(e.fetchData.__span=d.spanContext().spanId,n[d.spanContext().spanId]=d,r(e.fetchData.url)){let t=e.args[0],r=e.args[1]||{},n=function(e,t,r){let n=nb({span:r}),i=n["sentry-trace"],o=n.baggage;if(!i)return;let s=t.headers||("undefined"!=typeof Request&&(0,ek.V9)(e,Request)?e.headers:void 0);if(!s)return{...n};if("undefined"!=typeof Headers&&(0,ek.V9)(s,Headers)){let e=new Headers(s);if(e.set("sentry-trace",i),o){let t=e.get("baggage");if(t){let r=n_(t);e.set("baggage",r?`${r},${o}`:o)}else e.set("baggage",o)}return e}if(Array.isArray(s)){let e=[...s.filter(e=>!(Array.isArray(e)&&"sentry-trace"===e[0])).map(e=>{if(!Array.isArray(e)||"baggage"!==e[0]||"string"!=typeof e[1])return e;{let[t,r,...n]=e;return[t,n_(r),...n]}}),["sentry-trace",i]];return o&&e.push(["baggage",o]),e}{let e="baggage"in s?s.baggage:void 0,t=[];return Array.isArray(e)?t=e.map(e=>"string"==typeof e?n_(e):e).filter(e=>""===e):e&&t.push(n_(e)),o&&t.push(o),{...s,"sentry-trace":i,baggage:t.length>0?t.join(","):void 0}}}(t,r,(0,rJ.z)()&&u?d:void 0);n&&(e.args[1]=r,r.headers=n)}return d}(e,l,c,u);if(e.response&&e.fetchData.__span&&nS.set(e.response,e.fetchData.__span),t){let r=nT(e.fetchData.url),n=r?ts(r).host:void 0;
142t.setAttributes({"http.url":r,"server.address":n})}s&&t&&nx(t)})),n&&e0(e=>{let t=function(e,t,r,n){let i=e.xhr,o=i&&i[eQ];if(!i||i.__sentry_own_request__||!o)return;let s=(0,rJ.z)()&&t(o.url);if(e.endTimestamp&&s){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=n[e];t&&void 0!==o.status_code&&((0,np.Q0)(t,o.status_code),t.end(),delete n[e]);return}let a=nT(o.url),l=a?ts(a).host:void 0,c=!!(0,eb.HN)(),u=s&&c?r6({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":l,[tX.S3]:"auto.http.browser",[tX.$J]:"http.client"}}):new rK;return i.__sentry_xhr_span_id__=u.spanContext().spanId,n[i.__sentry_xhr_span_id__]=u,r(o.url)&&function(e,t){let{"sentry-trace":r,baggage:n}=nb({span:t});r&&function(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader("baggage",r)}catch(e){}}(e,r,n)}(i,(0,rJ.z)()&&c?u:void 0),u}(e,l,c,u);s&&t&&nx(t)})}(e,{traceFetch:d,traceXHR:p,trackFetchStreamPerformance:g,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:v})}}};function nA(e,t,r){e.emit("startPageLoadSpan",t,r),(0,X.nZ)().setTransactionName(t.name);let n=(0,eb.HN)();return"pageload"===(n&&(0,eb.XU)(n).op)?n:void 0}function nR(e,t){(0,X.aF)().setPropagationContext({traceId:(0,rZ.Ht)()}),(0,X.nZ)().setPropagationContext({traceId:(0,rZ.Ht)()}),e.emit("startNavigationSpan",t),(0,X.nZ)().setTransactionName(t.name);let r=(0,eb.HN)();return"navigation"===(r&&(0,eb.XU)(r).op)?r:void 0}function nP(e){let t=(0,tn.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}let nN="incomplete-app-router-transaction",nL=D.GLOBAL_OBJ;function nD(e){try{return new URL(e,"http://example.com/").pathname}catch(e){return"/"}}var nM=r(11163),nB=r(36096);let nj=nM.events?nM:nM.default,n$=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function nU(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function nF(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let nH=(e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in D.GLOBAL_OBJ&&void 0!==D.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||o){let e;let o=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,s=t?function(e,t){e=nU(e).slice(1),t=nU(t).slice(1);let r=nF(e.split("/")),n=nF(t.split("/")),i=Math.min(r.length,n.length),o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let s=[];for(let e=o;e<r.length;e++)s.push("..");return(s=s.concat(n.slice(o))).join("/")}(t,o):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=n$.exec(t);return r?r.slice(1):[]}(o)[2]||"";n.filename=`${r}${s}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>i(e))}}}})}}}catch(t){return e}}(t)),t}}},nz=({assetPrefixPath:e})=>({...nH({iteratee:t=>{try{let{origin:r}=new URL(t.filename);t.filename=S([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(r,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(e){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t}}),name:"NextjsClientStackFrameNormalization"});var nq=r(83454);let nW=D.GLOBAL_OBJ;var nV=r(83454);let nG=D.GLOBAL_OBJ;function nJ(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var nX=r(83454);function nZ(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==nX?nX:0))||function(){let e=D.GLOBAL_OBJ.process;return!!e&&"renderer"===e.type}())}let nK=D.GLOBAL_OBJ,nY="sentryReplaySession",nQ="Unable to send Replay";function n0(e,t){return null!=e?e:t()}function n1(e){let t;let r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}function n2(e){let t=n1([e,"optionalAccess",e=>e.host]);return n1([t,"optionalAccess",e=>e.shadowRoot])===e}function n4(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function n3(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,n5).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function n5(e){let t;if("styleSheet"in e)try{t=n3(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],o=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}(E=R||(R={}))[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";
142class n6{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?n0(n1([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-1):-1}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){let 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){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function n8({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function n7({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function n9(e){return e.toLowerCase()}function ie(e){return e.toUpperCase()}let it="__rrweb_original__";function ir(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?n9(t):null}function ii(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function io(e,t){let r;try{r=new URL(e,n0(t,()=>window.location.href))}catch(e){return null}return n0(n1([r.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}let is={};function ia(e){let t=is[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return is[e]=n.bind(window)}function il(...e){return ia("setTimeout")(...e)}function ic(...e){return ia("clearTimeout")(...e)}function iu(e){try{return e.contentDocument}catch(e){}}let id=1,ih=RegExp("[^a-z0-9-_:]");function ip(){return id++}let im=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ig=/^(?:[a-z+]+:)?\/\//i,iy=/^www\..*/i,iv=/^(data:)([^,]*),(.*)/i;function iw(e,t){return(e||"").replace(im,(e,r,n,i,o,s)=>{let a=n||o||s,l=r||i||"";if(!a)return e;if(ig.test(a)||iy.test(a)||iv.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let c=t.split("/"),u=a.split("/");for(let e of(c.pop(),u))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}let ib=/^[^ \t\n\r\u000c]+/,i_=/^[, \t\n\r\u000c]+/,iS=new WeakMap;function iE(e,t){return t&&""!==t.trim()?ik(e,t):t}function ik(e,t){let r=iS.get(e);if(r||(r=e.createElement("a"),iS.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ix(e,t,r,n,i,o){return n?"src"!==r&&("href"!==r||"use"===t&&"#"===n[0])&&("xlink:href"!==r||"#"===n[0])&&("background"!==r||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;let i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(i_),!(r>=t.length);){let o=n(ib);if(","===o.slice(-1))o=iE(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=iE(e,o);let s=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){r+=1,i.push((o+n).trim());break}"("===e&&(s=!0)}n+=e,r+=1}}}return i.join(", ")}(e,n):"style"===r?iw(n,ik(e)):"object"===t&&"data"===r?iE(e,n):"function"==typeof o?o(r,n,i):n:iE(e,n):n}function iC(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function iT(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:iT(e.parentNode,t,r,n+1)}function iO(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch(e){return!1}}}function iI(e,t,r,n,i,o){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){let e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,l=-1;if(o){if((l=iT(s,iO(n,i)))<0)return!0;a=iT(s,iO(t,r),l>=0?l:1/0)}else{if((a=iT(s,iO(t,r)))<0)return!1;l=iT(s,iO(n,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!o}catch(e){}return!!o}function iA(e){return null==e?"":e.toLowerCase()}function iR(e,t){let r;let{doc:n,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:p=!1,inl
142ineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:v,maskTextFn:w,maskInputFn:b,slimDOMOptions:_,dataURLOptions:S={},inlineImages:E=!1,recordCanvas:k=!1,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:T=5e3,onStylesheetLoad:O,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:P=!1}=t,{preserveWhiteSpace:N=!0}=t,L=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:v,dataURLOptions:w={},inlineImages:b,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:E=!1}=t,k=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:R.Document,childNodes:[],compatMode:e.compatMode};return{type:R.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:R.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){let r;let{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:a,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:v,maskAllText:w,maskTextClass:b,unmaskTextClass:_,maskTextSelector:S,unmaskTextSelector:E}=t,k=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o,s),x=function(e){if(e instanceof HTMLFormElement)return"form";let t=n9(e.tagName);return ih.test(t)?"div":t}(e),C={},T=e.attributes.length;for(let t=0;t<T;t++){let r=e.attributes[t];r.name&&!iC(x,r.name,r.value)&&(C[r.name]=ix(n,x,n9(r.name),r.value,e,c))}if("link"===x&&a){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=n3(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=iw(r,t.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=n3(e.sheet);t&&(C._cssText=iw(t,ik(n)))}if("input"===x||"textarea"===x||"select"===x||"option"===x){let t=ir(e),r=ii(e,ie(x),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=iI(e,b,S,_,E,n8({type:t,tagName:ie(x),maskInputOptions:l}));C.value=n7({isMasked:n,element:e,value:r,maskInputFn:u})}n&&(C.checked=n)}if("option"===x&&(e.selected&&!l.select?C.selected=!0:delete C.selected),"canvas"===x&&p){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData;if(new Uint32Array((it in i?i[it]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(C.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(C.rr_dataURL=t)}}if("img"===x&&h){g||(y=(g=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{g.width=e.naturalWidth,g.height=e.naturalHeight,y.drawImage(e,0,0),C.rr_dataURL=g.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?C.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===x||"video"===x)&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),k){let{width:t,height:r}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==x||f(C.src)||(k||iu(e)||(C.rr_src=C.src),delete C.src);try{customElements.get(x)&&(r=!0)}catch(e){}return{type:R.Element,tagName:x,attributes:C,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:k,rootId:v,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:f,maskInputFn:v,dataURLOptions:w,inlineImages:b,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:E,rootId:k,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,h=e.textContent,p="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||n1([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=n3(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=iw(h,ik(t.doc))}f&&(h="SCRIPT_PLACEHOLDER");let g=iI(e,n,o,i,s,r);return p||f||m||!h||!g||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*")),m&&h&&(l.textarea||g)&&(h=c?c(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h&&(h=n7({isMasked:iI(e,n,o,i,s,n8({type:null,tagName:d,maskInputOptions:l})),element:e,value:h,maskInputFn:c})),{type:R.Text,textContent:h||"",isStyle:p,rootId:u}}(e,{doc:r,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:f,maskInputFn:v,rootId:k});case e.CDATA_SECTION_NODE:return{type:R.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:R.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:n,mirror:i,blockClass:o,blockSelector:s,maskAllText:l,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:v,maskTextFn:w,maskInputFn:b,dataURLOptions:S,inlineImages:E,recordCanvas:k,keepIframeSrcFn:A,newlyAddedElement:P});if(!L)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===R.Comment)return!0;
142if(e.type===R.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===io(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(iA(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iA(e.attributes.name)||"icon"===iA(e.attributes.rel)||"apple-touch-icon"===iA(e.attributes.rel)||"shortcut icon"===iA(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&iA(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(iA(e.attributes.property).match(/^(og|twitter|fb):/)||iA(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===iA(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===iA(e.attributes.name)||"googlebot"===iA(e.attributes.name)||"bingbot"===iA(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===iA(e.attributes.name)||"generator"===iA(e.attributes.name)||"framework"===iA(e.attributes.name)||"publisher"===iA(e.attributes.name)||"progid"===iA(e.attributes.name)||iA(e.attributes.property).match(/^article:/)||iA(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===iA(e.attributes.name)||"yandex-verification"===iA(e.attributes.name)||"csrf-token"===iA(e.attributes.name)||"p:domain_verify"===iA(e.attributes.name)||"verify-v1"===iA(e.attributes.name)||"verification"===iA(e.attributes.name)||"shopify-checkout-api-token"===iA(e.attributes.name)))return!0}}return!1}(L,_)&&(N||L.type!==R.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?ip():-2;let D=Object.assign(L,{id:r});if(i.add(e,D),-2===r)return null;x&&x(e);let M=!p;if(D.type===R.Element){M=M&&!D.needBlock,delete D.needBlock;let t=e.shadowRoot;t&&n4(t)&&(D.isShadowHost=!0)}if((D.type===R.Document||D.type===R.Element)&&M){_.headWhitespace&&D.type===R.Element&&"head"===D.tagName&&(N=!1);let t={doc:n,mirror:i,blockClass:o,blockSelector:s,maskAllText:l,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:v,maskTextFn:w,maskInputFn:b,slimDOMOptions:_,dataURLOptions:S,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:A};for(let r of Array.from(e.childNodes)){let e=iR(r,t);e&&D.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=iR(r,t);n&&(n4(e.shadowRoot)&&(n.isShadow=!0),D.childNodes.push(n))}}return e.parentNode&&n2(e.parentNode)&&n4(e.parentNode)&&(D.isShadow=!0),D.type===R.Element&&"iframe"===D.tagName&&function(e,t,r){let n;let i=e.contentWindow;if(!i)return;let o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=il(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{ic(n),o=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return il(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=iu(e);if(t&&C){let r=iR(t,{doc:t,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:v,maskTextFn:w,maskInputFn:b,slimDOMOptions:_,dataURLOptions:S,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:A});r&&C(e,r)}},T),D.type===R.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===io(D.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let o=il(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{ic(o),i=!0,t()})}(e,()=>{if(O){let t=iR(e,{doc:n,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:v,maskTextFn:w,maskInputFn:b,slimDOMOptions:_,dataURLOptions:S,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:A});t&&O(e,t)}},I),D}function iP(e){let t;let r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}function iN(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let iL="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.",iD={map:{},getId:()=>(console.error(iL),-1),getNode:()=>(console.error(iL),null),removeNodeFromMap(){console.error(iL)},has:()=>(console.error(iL),!1),reset(){console.error(iL)}};function iM(e,t,r={}){let n=null,i=0;return function(...o){let s=Date.now();i||!1!==r.leading||(i=s);let a=t-(s-i),l=this;a<=0||a>t?(n&&(function(...e){iQ("clearTimeout")(...e)}
142(n),n=null),i=s,e.apply(l,o)):n||!1===r.trailing||(n=i0(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,o)},a))}}function iB(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(iD=new Proxy(iD,{get:(e,t,r)=>("map"===t&&console.error(iL),Reflect.get(e,t,r))}));let ij=Date.now;function i$(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:iP([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||iP([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||iP([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:iP([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||iP([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||iP([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function iU(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iF(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iH(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function iz(e,t,r,n,i){if(!e)return!1;let o=iH(e);if(!o)return!1;let s=iO(t,r);if(!i){let e=n&&o.matches(n);return s(o)&&!e}let a=iT(o,s),l=-1;return!(a<0)&&(n&&(l=iT(o,iO(null,n))),a>-1&&l<0||a<l)}function iq(e,t){return -2===t.getId(e)}function iW(e){return!!e.changedTouches}function iV(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function iG(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function iJ(e){return!!iP([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(ij=()=>new Date().getTime());class iX{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return t=this.styleIDMap.get(e),null!=t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}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 iZ(e){let t=null;return iP([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 iK(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=iZ(r);)r=t;return r}(e);return t.contains(r)}(e))}let iY={};function iQ(e){let t=iY[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return iY[e]=n.bind(window)}function i0(...e){return iQ("setTimeout")(...e)}var i1=((k=i1||{})[k.DomContentLoaded=0]="DomContentLoaded",k[k.Load=1]="Load",k[k.FullSnapshot=2]="FullSnapshot",k[k.IncrementalSnapshot=3]="IncrementalSnapshot",k[k.Meta=4]="Meta",k[k.Custom=5]="Custom",k[k.Plugin=6]="Plugin",k),i2=((x=i2||{})[x.Mutation=0]="Mutation",x[x.MouseMove=1]="MouseMove",x[x.MouseInteraction=2]="MouseInteraction",x[x.Scroll=3]="Scroll",x[x.ViewportResize=4]="ViewportResize",x[x.Input=5]="Input",x[x.TouchMove=6]="TouchMove",x[x.MediaInteraction=7]="MediaInteraction",x[x.StyleSheetRule=8]="StyleSheetRule",x[x.CanvasMutation=9]="CanvasMutation",x[x.Font=10]="Font",x[x.Log=11]="Log",x[x.Drag=12]="Drag",x[x.StyleDeclaration=13]="StyleDeclaration",x[x.Selection=14]="Selection",x[x.AdoptedStyleSheet=15]="AdoptedStyleSheet",x[x.CustomElement=16]="CustomElement",x),i4=((C=i4||{})[C.MouseUp=0]="MouseUp",C[C.MouseDown=1]="MouseDown",C[C.Click=2]="Click",C[C.ContextMenu=3]="ContextMenu",C[C.DblClick=4]="DblClick",C[C.Focus=5]="Focus",C[C.Blur=6]="Blur",C[C.TouchStart=7]="TouchStart",C[C.TouchMove_Departed=8]="TouchMove_Departed",C[C.TouchEnd=9]="TouchEnd",C[C.TouchCancel=10]="TouchCancel",C),i3=((T=i3||{})[T.Mouse=0]="Mouse",T[T.Pen=1]="Pen",T[T.Touch=2]="Touch",T);function i5(e){try{return e.contentDocument}catch(e){}}(O=P||(P={}))[O.Document=0]="Document",O[O.DocumentType=1]="DocumentType",O[O.Element=2]="Element",O[O.Text=3]="Text",O[O.CDATA=4]="CDATA",O[O.Comment=5]="Comment",(I=N||(N={}))[I.PLACEHOLDER=0]="PLACEHOLDER",I[I.ELEMENT_NODE=1]="ELEMENT_NODE",I[I.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",I[I.TEXT_NODE=3]="TEXT_NODE",I[I.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",I[I.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",I[I.ENTITY_NODE=6]="ENTITY_NODE",I[I.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",I[I.COMMENT_NODE=8]="COMMENT_NODE",I[I.DOCUMENT_NODE=9]="DOCUMENT_NODE",I[I.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",I[I.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";class i6{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=function(e){let t;let r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.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){let t=e.__ln;
142this.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--)}}let i8=(e,t)=>`${e}@${t}`;class i7{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,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;let e=[],t=new Set,r=new i6,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!iK(i))return;let o=n2(i.parentNode)?this.mirror.getId(iZ(i)):this.mirror.getId(i.parentNode),s=n(i);if(-1===o||-1===s)return r.addNode(i);let a=iR(i,{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=>{iV(e,this.mirror)&&!iz(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),iG(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),iJ(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{iz(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!oe(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)ot(this.droppedSet,e)||oe(this.removes,e,this.mirror)?ot(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;r.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),r=n(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),i(e.value)}let s={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=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).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};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!iq(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;iz(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:iI(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,iH(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=ir(t),i=t.tagName;n=ii(t,i,r);let o=n8({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=n7({isMasked:iI(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(iz(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
142if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(i5(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!iC(t.tagName,r)&&(i.attributes[r]=ix(this.doc,n9(t.tagName),n9(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),o=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||o!==r.style.getPropertyPriority(n)?""===o?i.styleDiff[n]=e:i.styleDiff[n]=[e,o]:i._unchangedStyles[n]=[e,o]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(iz(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=n2(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);iz(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||iq(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(i9(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(n2(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[i8(r,n)]?i9(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(n2(e.target)&&n4(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(iq(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[i8(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!iz(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),iJ(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 i9(e,t){e.delete(t),t.childNodes.forEach(t=>i9(e,t))}function oe(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function ot(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let or=e=>v?(...t)=>{try{return e(...t)}catch(e){if(v&&!0===v(e))return()=>{};throw e}}:e;function on(e){let t;let r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}let oi=[];function oo(e){try{if("composedPath"in e){let 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 os(e,t){let r=new i7;oi.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=on([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(n=window[i]);let o=new n(or(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function oa({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:s}){return iN("scroll",or(iM(or(s=>{let a=oo(s);if(!a||iz(a,n,i,o,!0))return;let l=r.getId(a);if(a===t&&t.defaultView){let r=i$(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100)),t)}let ol=["INPUT","TEXTAREA","SELECT"],oc=new WeakMap;function ou(e){var t;return t=[],of("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||of("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||of("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||of("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function od(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function oh({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?on([r,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):on([r,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=on([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(on([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return on([o,"access",e=>
142e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let r=on([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),or(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function op(e,t={}){let r;let n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=os(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=iM(or(t=>{let r=Date.now()-i;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],i=null}),s),c=or(iM(or(e=>{let t=oo(e),{clientX:r,clientY:o}=iW(e)?e.changedTouches[0]:e;i||(i=ij()),a.push({x:r,y:o,id:n.getId(t),timeOffset:ij()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?i2.Drag:e instanceof MouseEvent?i2.MouseMove:i2.TouchMove)}),o,{trailing:!1})),u=[iN("mousemove",c,r),iN("touchmove",c,r),iN("drag",c,r)];return or(()=>{u.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],c=null,u=t=>s=>{let a=oo(s);if(iz(a,n,i,o,!0))return;let l=null,u=t;if("pointerType"in s){switch(s.pointerType){case"mouse":l=i3.Mouse;break;case"touch":l=i3.Touch;break;case"pen":l=i3.Pen}l===i3.Touch?i4[t]===i4.MouseDown?u="TouchStart":i4[t]===i4.MouseUp&&(u="TouchEnd"):i3.Pen}else iW(s)&&(l=i3.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===i3.Touch||u.startsWith("Mouse")&&l===i3.Mouse)&&(l=null)):i4[t]===i4.Click&&(l=c,c=null);let d=iW(s)?s.changedTouches[0]:s;if(!d)return;let h=r.getId(a),{clientX:p,clientY:f}=d;or(e)({type:i4[u],id:h,x:p,y:f,...null!==l&&{pointerType:l}})};return Object.keys(i4).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(e=>{let r=n9(e),n=u(e);if(window.PointerEvent)switch(i4[e]){case i4.MouseDown:case i4.MouseUp:r=r.replace("mouse","pointer");break;case i4.TouchStart:case i4.TouchEnd:return}l.push(iN(r,n,t))}),or(()=>{l.forEach(e=>e())})}(e),s=oa(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return iN("resize",or(iM(or(()=>{let t=iU(),i=iF();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=oo(e),u=e.isTrusted,g=r&&ie(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>ol.indexOf(g)||iz(r,n,i,o,!0))return;let v=r;if(v.classList.contains(s)||a&&v.matches(a))return;let w=ir(r),b=ii(v,g,w),_=!1,S=n8({maskInputOptions:l,tagName:g,type:w}),E=iI(r,h,f,p,m,S);("radio"===w||"checkbox"===w)&&(_=r.checked),b=n7({isMasked:E,element:r,value:b,maskInputFn:c}),y(r,d?{text:b,isChecked:_,userTriggered:u}:{text:b,isChecked:_});let k=r.name;"radio"===w&&k&&_&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach(e=>{if(e!==r){let t=n7({isMasked:E,element:e,value:ii(e,g,w),maskInputFn:c});y(e,d?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}})}function y(t,n){let i=oc.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){oc.set(t,n);let i=r.getId(t);or(e)({...n,id:i})}}let v=("last"===u.input?["change"]:["input","change"]).map(e=>iN(e,or(g),t)),w=t.defaultView;if(!w)return()=>{v.forEach(e=>e())};let b=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),_=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(..._.map(e=>(function e(t,r,n,i,o=window){let s=o.Object.getOwnPropertyDescriptor(t,r);return o.Object.defineProperty(t,r,i?n:{set(e){i0(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){or(g)({target:this,isTrusted:!1})}},!1,w))),or(()=>
142{v.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:s}){let a=or(s=>iM(or(o=>{let a=oo(o);if(!a||iz(a,t,r,n,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=a;e({type:s,id:i.getId(a),currentTime:l,volume:c,muted:u,playbackRate:d})}),o.media||500)),l=[iN("play",a(0),s),iN("pause",a(1),s),iN("seeked",a(2),s),iN("volumechange",a(3),s),iN("ratechange",a(4),s)];return or(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,o;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:or((n,i,o)=>{let[s,a]=o,{id:l,styleId:c}=od(i,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:s,index:a}]}),n.apply(i,o)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:or((n,i,o)=>{let[s]=o,{id:a,styleId:l}=od(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:s}]}),n.apply(i,o)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:or((n,i,o)=>{let[s]=o,{id:a,styleId:l}=od(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:s}),n.apply(i,o)})})),n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:or((n,i,o)=>{let[s]=o,{id:a,styleId:l}=od(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:s}),n.apply(i,o)})}));let l={};om("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(om("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),om("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),om("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([n,i])=>{c[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[n].insertRule,{apply:or((n,i,o)=>{let[s,a]=o,{id:l,styleId:c}=od(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:s,index:[...ou(i),a||0]}]}),n.apply(i,o)})}),i.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:or((n,i,o)=>{let[s]=o,{id:a,styleId:l}=od(i.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...ou(i),s]}]}),n.apply(i,o)})})}),or(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=oh(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:or((i,s,a)=>{let[l,c,u]=a;if(r.has(l))return o.apply(s,[l,c,u]);let{id:d,styleId:h}=od(on([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:l,value:c,priority:u},index:ou(s.parentRule)}),i.apply(s,a)})});let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:or((i,o,a)=>{let[l]=a;if(r.has(l))return s.apply(o,[l]);let{id:c,styleId:u}=od(on([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:ou(o.parentRule)}),i.apply(o,a)})}),or(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){let n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let s=iB(t.fonts,"add",function(t){return function(r){return i0(or(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=o}),n.push(s),or(()=>
142{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,selectionCb:s}=e,a=!0,l=or(()=>{let e=t.getSelection();if(!e||a&&on([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:s,startOffset:a,endContainer:c,endOffset:u}=e.getRangeAt(t);iz(s,n,i,o,!0)||iz(c,n,i,o,!0)||l.push({start:r.getId(s),startOffset:a,end:r.getId(c),endOffset:u})}s({ranges:l})});return l(),iN("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?iB(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return or(()=>{oi.forEach(e=>e.reset()),on([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),i(),o(),s(),a(),l(),c(),u(),d(),h(),p(),f(),m(),g.forEach(e=>e())})}function of(e){return void 0!==window[e]}function om(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class og{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}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 oy(e){let t;let r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}class ov{constructor(){this.crossOriginIframeMirror=new og(ip),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ow{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new og(ip),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new og(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}),oy([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);let r=i5(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case i1.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:i1.IncrementalSnapshot,data:{source:i2.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case i1.Meta:case i1.Load:case i1.DomContentLoaded:break;case i1.Plugin:return t;case i1.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case i1.IncrementalSnapshot:switch(t.data.source){case i2.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
142),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 i2.Drag:case i2.TouchMove:case i2.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case i2.ViewportResize:return!1;case i2.MediaInteraction:case i2.MouseInteraction:case i2.Scroll:case i2.CanvasMutation:case i2.Input:return this.replaceIds(t.data,e,["id"]),t;case i2.StyleSheetRule:case i2.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case i2.Font:return t;case i2.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case i2.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),oy([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,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}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===R.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ob{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class o_{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(!n4(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=os({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(oa({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),i0(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(oh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=i5(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(iB(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&iK(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class oS{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class oE{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new iX,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;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:n5(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ok{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){iQ("requestAnimationFrame")(...e)}
142(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=S([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let ox=new n6;function oC(e={}){let t;let{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:_,maskAttributeFn:E,maskInputFn:k,maskTextFn:x,maxCanvasSize:C=null,packFn:T,sampling:O={},dataURLOptions:I={},mousemoveWait:A,recordDOM:R=!0,recordCanvas:P=!1,recordCrossOriginIframes:N=!1,recordAfter:L="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:M=!1,inlineImages:B=!1,plugins:j,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:U=new Set([]),errorHandler:F,onMutation:H,getCanvasManager:z}=e;v=F;let q=!N||window.parent===window,W=!1;if(!q)try{window.parent.document&&(W=!1)}catch(e){W=!0}if(q&&!r)throw Error("emit function is required");if(!q&&!W)return()=>{};void 0!==A&&void 0===O.mousemove&&(O.mousemove=A),ox.reset();let V=!0===g?{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!==y?y:{},G=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};!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 TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let J=0,X=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return T&&!W&&(e=T(e)),e};w=(e,o)=>{if(e.timestamp=ij(),S([oi,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==i1.FullSnapshot&&!(e.type===i1.IncrementalSnapshot&&e.data.source===i2.Mutation)&&oi.forEach(e=>e.unfreeze()),q)S([r,"optionalCall",t=>t(X(e),o)]);else if(W){let t={type:"rrweb",event:X(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===i1.FullSnapshot)t=e,J=0;else if(e.type===i1.IncrementalSnapshot){if(e.data.source===i2.Mutation&&e.data.isAttachIframe)return;J++;let r=i&&J>=i,o=n&&t&&e.timestamp-t.timestamp>n;(r||o)&&ei(!0)}};let Z=e=>{w({type:i1.IncrementalSnapshot,data:{source:i2.Mutation,...e}})},K=e=>w({type:i1.IncrementalSnapshot,data:{source:i2.Scroll,...e}}),Y=e=>w({type:i1.IncrementalSnapshot,data:{source:i2.CanvasMutation,...e}}),Q=new oE({mutationCb:Z,adoptedStyleSheetCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.AdoptedStyleSheet,...e}})}),ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ov:new ow({mirror:ox,mutationCb:Z,stylesheetManager:Q,recordCrossOriginIframes:N,wrappedEmit:w});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:ox,crossOriginIframeMirror:ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:ee.crossOriginIframeStyleMirror});let et=new ok,er=function(e,t){try{return e?e(t):new oS}catch(e){return console.warn("Unable to initialize CanvasManager"),new oS}}(z,{mirror:ox,win:window,mutationCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.CanvasMutation,...e}}),recordCanvas:P,blockClass:o,blockSelector:s,unblockSelector:a,maxCanvasSize:C,sampling:O.canvas,dataURLOptions:I,errorHandler:F}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ob:new o_({mutationCb:Z,scrollCb:K,bypassOptions:{onMutation:H,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:V,dataURLOptions:I,maskAttributeFn:E,maskTextFn:x,maskInputFn:k,recordCanvas:P,inlineImages:B,sampling:O,slimDOMOptions:G,iframeManager:ee,stylesheetManager:Q,canvasManager:er,keepIframeSrcFn:$,processedNodeManager:et},mirror:ox}),ei=(e=!1)=>
142{if(!R)return;w({type:i1.Meta,data:{href:window.location.href,width:iF(),height:iU()}},e),Q.reset(),en.init(),oi.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new n6,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:w,preserveWhiteSpace:b,onSerialize:_,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:k,stylesheetLoadTimeout:x,keepIframeSrcFn:C=()=>!1}=t||{};return iR(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,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:w,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:_,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:k,stylesheetLoadTimeout:x,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:ox,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:V,maskAttributeFn:E,maskInputFn:k,maskTextFn:x,slimDOM:G,dataURLOptions:I,recordCanvas:P,inlineImages:B,onSerialize:e=>{iV(e,ox)&&ee.addIframe(e),iG(e,ox)&&Q.trackLinkElement(e),iJ(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ee.attachIframe(e,t),e.contentWindow&&er.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:$});if(!t)return console.warn("Failed to snapshot the document");w({type:i1.FullSnapshot,data:{node:t,initialOffset:i$(window)}}),oi.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,ox.getId(document))};b=ei;try{let e=[],t=e=>or(op)({onMutation:H,mutationCb:Z,mousemoveCb:(e,t)=>w({type:i1.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.ViewportResize,...e}}),inputCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.Input,...e}}),mediaInteractionCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.MediaInteraction,...e}}),styleSheetRuleCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.StyleSheetRule,...e}}),styleDeclarationCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>w({type:i1.IncrementalSnapshot,data:{source:i2.Font,...e}}),selectionCb:e=>{w({type:i1.IncrementalSnapshot,data:{source:i2.Selection,...e}})},customElementCb:e=>{w({type:i1.IncrementalSnapshot,data:{source:i2.CustomElement,...e}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:V,inlineStylesheet:m,sampling:O,recordDOM:R,recordCanvas:P,inlineImages:B,userTriggeredOnInput:D,collectFonts:M,doc:e,maskAttributeFn:E,maskInputFn:k,maskTextFn:x,keepIframeSrcFn:$,blockSelector:s,unblockSelector:a,slimDOMOptions:G,dataURLOptions:I,mirror:ox,iframeManager:ee,stylesheetManager:Q,shadowDomManager:en,processedNodeManager:et,canvasManager:er,ignoreCSSAttributes:U,plugins:S([j,"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=>w({type:i1.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});ee.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{ei(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(iN("DOMContentLoaded",()=>{w({type:i1.DomContentLoaded,data:{}}),"DOMContentLoaded"===L&&r()})),e.push(iN("load",()=>{w({type:i1.Load,data:{}}),"load"===L&&r()}
142,window))),()=>{e.forEach(e=>e()),et.destroy(),b=void 0,v=void 0}}catch(e){console.warn(e)}}function oT(e){return e>9999999999?e:1e3*e}function oO(e){return e>9999999999?e/1e3:e}function oI(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:i1.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,ep.Fv)(t,10,1e3)}}),"console"===t.category)))}function oA(e){return e.closest("button,a")||e}function oR(e){let t=oP(e);return t&&t instanceof Element?oA(t):t}function oP(e){return"object"==typeof e&&e&&"target"in e?e.target:e}oC.mirror=ox,oC.takeFullSnapshot=function(e){if(!b)throw Error("please take full snapshot after start recording");b(e)};let oN=new Set([i2.Mutation,i2.StyleSheetRule,i2.StyleDeclaration,i2.AdoptedStyleSheet,i2.CanvasMutation,i2.Selection,i2.MediaInteraction]);class oL{constructor(e,t,r=oI){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=oM()},_||(_=[],(0,Z.hl)(nK,"open",function(e){return function(...t){if(_)try{_.forEach(e=>e())}catch(e){}return e.apply(nK,t)}})),_.push(e),()=>{let t=_?_.indexOf(e):-1;t>-1&&_.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r;if(r=this._ignoreSelector,!oD.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||r&&t.matches(r)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let n={timestamp:oO(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&1>Math.abs(e.timestamp-n.timestamp))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=oO(e)}registerScroll(e=Date.now()){this._lastScroll=oO(e)}registerClick(e){let t=oA(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=oM();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:nK.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:nK.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=tF(()=>this._checkClicks(),1e3)}}let oD=["A","BUTTON","INPUT"];function oM(){return Date.now()/1e3}function oB(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(A=L||(L={}))[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment";let oj=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),o$=e=>t=>{if(!e.isEnabled())return;let r=function(e){let{target:t,message:r}=function(e){let t;let r="click"===e.name,n=null;try{n=r?oR(e.event):oP(e.event),t=(0,tn.Rt)(n,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:n,message:t}}(e);return oB({category:`ui.${e.name}`,...oU(t,r)})}(t);if(!r)return;let n="click"===t.name,i=n?t.event:void 0;n&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,r){e.handleClick(t,r)}(e.clickDetector,r,oR(t.event)),oI(e,r)};function oU(e,t){let r=oC.mirror.getId(e),n=r&&oC.mirror.getNode(r),i=n&&oC.mirror.getMeta(n),o=i&&i.type===L.Element?i:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>
142e.type===L.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(oj.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(o.attributes)}}:{}}}let oF={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:oq(o),end:oq(i),name:n,data:{size:c,statusCode:l,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,o=oq(i);return{type:r,name:n,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:oq(p),end:oq(o),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:s,duration:i,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function oH(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function oz(e){let t=oF[e.entryType];return t?t(e):null}function oq(e){return((eS.Z1||nK.performance.timeOrigin)+e)/1e3}function oW(e){let t=e.entries[e.entries.length-1];return oX(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function oV(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=oC.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return oX(e,"cumulative-layout-shift",r,t)}function oG(e){let t=e.entries[e.entries.length-1];return oX(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function oJ(e){let t=e.entries[e.entries.length-1];return oX(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function oX(e,t,r,n){let i=e.value,o=e.rating,s=oq(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:r?r.map(e=>oC.mirror.getId(e)):void 0,attributions:n}}}let oZ="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,oK=["info","warn","error","log"],oY="[Replay] ";function oQ(e,t="info"){tr({category:"console",data:{logger:"replay"},level:t,message:`${oY}${e}`},{level:t})}let o0=function(){let e=!1,t=!1,r={exception:()=>void 0,infoTick:()=>void 0,setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return oZ?(oK.forEach(e=>{r[e]=(...r)=>{U.kg[e](oY,...r),t&&oQ(r.join(""),ti(e))}}),r.exception=(n,...i)=>{i.length&&r.error&&r.error(...i),U.kg.error(oY,n),e?(0,j.Tb)(n):t&&oQ(n,"error")},r.infoTick=(...e)=>{U.kg.info(oY,...e),t&&setTimeout(()=>oQ(e[0]),0)}):oK.forEach(e=>{r[e]=()=>void 0}),r}();class o1 extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class o2{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new o1;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?oT(e):null}}class o4{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){oZ&&o0.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let o=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",o),!t.success){oZ&&o0.error("Error in compression worker: ",t.response),i(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class o3{constructor(e){this._worker=new o4(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
142addEvent(e){let t=oT(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new o1):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{oZ&&o0.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class o5{constructor(e){this._fallback=new o2,this._compression=new o3(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}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}set waitForCheckout(e){this._used.waitForCheckout=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){oZ&&o0.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){oZ&&o0.exception(e,"Failed to add events when switching buffers.")}}}function o6(){try{return"sessionStorage"in nK&&!!nK.sessionStorage}catch(e){return!1}}function o8(e){return void 0!==e&&Math.random()<e}function o7(e){let t=Date.now(),r=e.id||(0,q.DM)(),n=e.started||t,i=e.lastActivity||t;return{id:r,started:n,lastActivity:i,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function o9(e){if(o6())try{nK.sessionStorage.setItem(nY,JSON.stringify(e))}catch(e){}}function se({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=o7({sampled:o8(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&o9(i),i}function st(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function sr(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return st(e.started,t,n)||st(e.lastActivity,r,n)}function sn(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!sr(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function si({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!o6())return null;try{let e=nK.sessionStorage.getItem(nY);if(!e)return null;let t=JSON.parse(e);return oZ&&o0.infoTick("Loading existing session"),o7(t)}catch(e){return null}}();return i?sn(i,{sessionIdleExpire:e,maxReplayDuration:t})?(oZ&&o0.infoTick("Session in sessionStorage is expired, creating new one..."),se(n,{previousSessionId:i.id})):i:(oZ&&o0.infoTick("Creating new session"),se(n,{previousSessionId:r}))}function so(e,t,r){return!!sa(e,t)&&(ss(e,t,r),!0)}async function ss(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let o=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===i1.Custom)return t(e)}catch(e){return oZ&&o0.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,o.beforeAddRecordingEvent);if(!s)return;return await n.addEvent(s)}
142catch(o){let t=o&&o instanceof o1;if(t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"});let r=(0,X.s3)();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function sa(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=oT(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(oZ&&o0.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function sl(e){return"transaction"===e.type}function sc(e){return"feedback"===e.type}function su(e){return!!e.category}function sd(){let e=(0,X.nZ)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,eb.HN)();if(t){let e=(0,el.jC)(t);delete e.replay_id}}function sh(e,t){return t.map(({type:t,start:r,end:n,name:i,data:o})=>{let s=e.throttledAddEvent({type:i1.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof s?Promise.resolve(null):s})}function sp(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(!oZ||!e.getOptions()._experiments.traceInternals)&&function(e,t){let r=t&&t.getDsn(),n=t&&t.getOptions().tunnel;return!!r&&e.includes(r.host)||!!n&&nJ(e)===nJ(n)}(r,(0,X.s3)())||e.addUpdate(()=>(sh(e,[t]),!0)))}function sf(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=sS(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function sm(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function sg(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[sS(e)];if(!e)return[void 0]}catch(t){return oZ&&o0.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return oZ&&o0.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function sy(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function sv(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:o,statusCode:s,request:a,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:(0,Z.Jr)({method:o,statusCode:s,request:a,response:l})}}function sw(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function sb(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,r=function(e){let t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(r);return n.body=i,o&&o.length>0&&(n._meta={warnings:o}),n}function s_(e,t){return Object.entries(e).reduce((r,[n,i])=>{let o=n.toLowerCase();return t.includes(o)&&e[n]&&(r[o]=i),r},{})}function sS(e){return new URLSearchParams(e).toString()}function sE(e,t){let r=function(e,t=nK.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(nK.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,W.U0)(r,t)}async function sk(e,t,r){try{let n=await sx(e,t,r),i=sv("resource.fetch",n);sp(r.replay,i)}catch(e){oZ&&o0.exception(e,"Failed to capture fetch breadcrumb")}}async function sx(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n}=t,{url:s,method:a,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=sE(s,r.networkDetailAllowUrls)&&!sE(s,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){let i=r?1===r.length&&"string"!=typeof r[0]?sA(r[0],t):2===r.length?sA(r[1],t):{}:{};if(!e)return sb(i,n,void 0);let[o,s]=sg(sO(r)),a=sb(i,n,o);return s?sy(a,s):a}(r,t.input,c):sw(c),response:await sC(d,r,t.response,u)}}async function sC(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return sw(i);let o=n?sI(n.headers,r):{};if(!n||!t&&void 0!==i)return sb(o,i,void 0);let[s,a]=await sT(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let o=e&&e.length&&void 0===r?sf(e):r;if(!n)return sw(o);if(t)return sb(i,o,e);return sb(i,o,void 0)}catch(e){return oZ&&o0.exception(e,"Failed to serialize response body"),sb(i,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return a?sy(l,a):l}async function sT(e){let t=function(e){try{return e.clone()}catch(e){oZ&&o0.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await new Promise((e,r)=>{let n=tF(()=>r(Error("Timeout while trying to read response body")),500);sR(t).then(t=>e(t),e=>r(e)).finally(()=>clearTimeout(n))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return oZ&&o0.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return oZ&&o0.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function sO(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function sI(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function sA(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?sI(r,t):Array.isArray(r)?{}:s_(r,t):{}}async function sR(e){return await e.text()}async function sP(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n,input:s,xhr:a}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!a||!sE(l,r.networkDetailAllowUrls)||sE(l,r.networkDetailDenyUrls)){let e=sw(d);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:e,response:sw(h)}}let p=a[eQ],f=p?s_(p.request_headers,r.networkRequestHeaders):{},m=s_(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>
142{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}(a),r.networkResponseHeaders),[g,y]=r.networkCaptureBodies?sg(s):[void 0],[v,w]=r.networkCaptureBodies?function(e){let 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 oZ&&o0.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return oZ&&o0.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return oZ&&o0.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=sb(f,d,g),_=sb(m,h,v);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:y?sy(b,y):b,response:w?sy(_,w):_}}(e,t,r),i=sv("resource.xhr",n);sp(r.replay,i)}catch(e){oZ&&o0.exception(e,"Failed to capture xhr breadcrumb")}}async function sN(e){try{return Promise.all(sh(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(nK.performance.memory)]))}catch(e){return[]}}let sL=D.GLOBAL_OBJ.navigator;async function sD({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let o=await (0,eT.R)(e.getOptions(),n,i,t,e,(0,X.aF)());if(!o)return null;o.platform=o.platform||"javascript";let s=e.getSdkMetadata(),{name:a,version:l}=s&&s.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0"},o}async function sM({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:o}){var s;let a;let l=function({recordingData:e,headers:t}){let r;let n=`${JSON.stringify(t)}
143`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:h}=n,p=(0,X.s3)(),f=(0,X.nZ)(),m=p&&p.getTransport(),g=p&&p.getDsn();if(!p||!m||!g||!o.sampled)return(0,ex.WD)({});let y={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:r,replay_type:o.sampled},v=await sD({scope:f,client:p,replayId:t,event:y});if(!v)return p.recordDroppedEvent("event_processor","replay",y),oZ&&o0.info("An event processor returned `null`, will not send event."),(0,ex.WD)({});delete v.sdkProcessingMetadata;let w=(s=p.getOptions().tunnel,ef(ew(v,ev(v),s,g),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await m.send(w)}catch(t){let e=Error(nQ);try{e.cause=t}catch(e){}throw e}if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new sB(a.statusCode);let b=tz({},a);if(tH(b,"replay"))throw new sj(b);return a}class sB extends Error{constructor(e){super(`Transport returned status code ${e}`)}}
143class sj extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function s$(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await sM(e),!0}catch(r){if(r instanceof sB||r instanceof sj)throw r;if((0,j.v)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${nQ} - max retries exceeded`);try{e.cause=r}catch(e){}throw e}return t.interval*=++t.count,new Promise((r,n)=>{tF(async()=>{try{await s$(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let sU="__THROTTLED";class sF{constructor({options:e,recordingOptions:t}){sF.prototype.__init.call(this),sF.prototype.__init2.call(this),sF.prototype.__init3.call(this),sF.prototype.__init4.call(this),sF.prototype.__init5.call(this),sF.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._requiresManualStart=!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,r){let n,i,o;let s=r&&r.maxWait?Math.max(r.maxWait,t):0;function a(){return l(),n=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=tF(a,t),s&&void 0===o&&(o=tF(a,s)),n}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==o?a():n},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,r){let n=new Map,i=e=>{let t=e-5;n.forEach((e,r)=>{r<t&&n.delete(r)})},o=()=>[...n.values()].reduce((e,t)=>e+t,0),s=!1;return(...t)=>{let r=Math.floor(Date.now()/1e3);if(i(r),o()>=300){let e=s;return s=!0,e?"__SKIPPED":sU}s=!1;let a=n.get(r)||0;return n.set(r,a+1),e(...t)}}((e,t)=>sa(this,e)?ss(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(i&&(this.clickDetector=new oL(this,i)),oZ){let t=e._experiments;o0.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){oZ&&o0.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n){if(this._initializeSessionForSampling(e),!this.session){oZ&&o0.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",oZ&&o0.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){oZ&&o0.info("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){oZ&&o0.info("Buffering is in progress, call `flush()` to save the replay");return}oZ&&o0.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=si({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled){oZ&&o0.info("Buffering is in progress, call `flush()` to save the replay");return}oZ&&o0.infoTick("Starting replay in buffer mode");let e=si({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let r=this._canvas;this._stopRecording=oC({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){oZ&&o0.warn("Received replay event after session expired.");return}let i=n||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:r}=t.data;if(oN.has(r)&&e.registerMutation(t.timestamp),r===i2.Scroll&&e.registerScroll(t.timestamp),t.data.source===i2.MouseInteraction){let{type:r,id:n}=t.data,i=oC.mirror.getNode(n);i instanceof HTMLElement&&r===i4.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!so(e,r,i))return!0;
143if(!i)return!1;let t=e.session;if(i&&e.session&&0===e.session.segmentId&&so(e,function(e){let t=e.getOptions();return{type:i1.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),"buffer"===e.recordingMode&&t&&e.eventBuffer){let r=e.eventBuffer.getEarliestTimestamp();r&&(oZ&&o0.info(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&o9(t))}return!!t&&!!t.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(sL&&sL.userAgent||"")||/Macintosh/i.test(sL&&sL.userAgent||"")&&sL&&sL.maxTouchPoints&&sL.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler,...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.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{oZ&&o0.info(`Stopping Replay${t?` triggered by ${t}`:""}`),sd(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(o6())try{nK.sessionStorage.removeItem(nY)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),oZ&&o0.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),oZ&&o0.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();oZ&&o0.info("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}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&&st(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${nK.location.pathname}${nK.location.hash}${nK.location.search}`,t=`${nK.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){let r=this._throttledAddEvent(e,t);if(r===sU){let e=oB({category:"replay.throttled"});this.addUpdate(()=>!so(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,eb.HN)(),t=e&&(0,eb.Gx)(e),r=(t&&(0,eb.XU)(t).data||{})[tX.Zj];if(t&&r&&["route","custom"].includes(r))return(0,eb.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['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}
vendor: 5,457 bytes, line 143
143},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==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},_=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},x=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=A(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}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(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,U)+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(U,C,0),R=U;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){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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;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}}},L=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}}},O=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=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(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;
143++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[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=U(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=x,c.p=_,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)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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(const r of t)n+=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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});']);return URL.createObjectURL(e)}());if(!t)return;oZ&&o0.info(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new o5(r)}catch(e){oZ&&o0.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return oZ&&o0.info("Using simple buffer"),new o2}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=si({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!sn(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{nK.document.addEventListener("visibilitychange",this._handleVisibilityChange),nK.addEventListener("blur",this._handleWindowBlur),nK.addEventListener("focus",this._handleWindowFocus),nK.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,X.s3)();eZ(o$(e)),e4(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(sh(e,[r]),!1)))}),function(e){let t=(0,X.s3)();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!su(t))return;let r=!su(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return oB(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,ep.Fv)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch(e){}return e});return oB({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):oB(t);r&&oI(e,r)})(e,t))}(e),function(e){let t=(0,X.s3)();try{let{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i;"xhr"===t.category&&(n=r)&&n.xhr&&(function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=sf(n),o=r.getResponseHeader("content-length")?sm(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return sf(r)}catch(e){return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r),sP(t,r,e)),"fetch"===t.category&&(i=r)&&i.response&&(function(e,t){let{input
143:r,response:n}=t,i=sf(r?sO(r):void 0),o=n?sm(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r),sk(t,r,e))}catch(e){oZ&&o0.exception(e,"Error when enriching network breadcrumb")}})(a,e,t))}catch(e){}}(e);let r=Object.assign((t,r)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||sl(t)||sc(t)?e.checkAndHandleExpiredSession()?sc(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:i1.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&r.originalException&&r.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?(oZ&&o0.log("Ignoring error from rrweb internals",t),null):(("buffer"===e.recordingMode&&t.message!==nQ&&t.exception&&!t.type&&o8(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(sd(),t):t,{id:"Replay"});(0,j.Qy)(r),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let r=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof r&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&oI(e,oB({category:"replay.hydrate-error",data:{url:(0,tn.l4)()}}))}(e,t)}),t.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!sl(t))return;let n=r&&r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(sl(t)){(function(e,t){let r=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&tF(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),t.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,r)=>{let n=e.getSessionId();r&&r.includeReplay&&e.isEnabled()&&n&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=n)}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(rM(e,r))}),n.push(rN(oH(oW,e)),rP(oH(oV,e)),rL(oH(oG,e)),rD(oH(oJ,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{nK.document.removeEventListener("visibilitychange",this._handleVisibilityChange),nK.removeEventListener("blur",this._handleWindowBlur),nK.removeEventListener("focus",this._handleWindowFocus),nK.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===nK.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=oB({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=oB({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:o,key:s,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=r||i||o,c=1===s.length;if(!l&&c)return null;let u=(0,tn.Rt)(a,{maxStringLength:200})||"<unknown>",d=oU(a,u);return oB({category:"ui.keyDown",message:u,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:o,key:s}})}(t);r&&oI(e,r)}(this,e)}}
143_doChangeToBackgroundTasks(e){!this.session||sr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){oZ&&o0.info("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_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:i1.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(oz).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(sh(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
143_popEventContext(){let 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(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){oZ&&o0.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await sN(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await s$({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,X.s3)();e&&e.recordDroppedEvent(t instanceof sj?"ratelimit_backoff":"send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){oZ&&o0.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){oZ&&o0.info(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&oZ&&o0.info("Flushing initial segment without checkout.");let s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&o9(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,r=this._options.mutationLimit,n=this._options.mutationBreadcrumbLimit,i=r&&t>r;if(t>n||i){let e=oB({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function sH(e,t){return[...e,...t].join(",")}let sz='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',sq=["content-length","content-type","accept"],sW=!1;class sV{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:s,_experiments:a={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:w=[],mask:b=[],maskAttributes:_=["title","placeholder"],unmask:S=[],block:E=[],unblock:k=[],ignore:x=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:O,onError:I}={}){this.name=sV.id;let A=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:sH(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:sH(t,[]),blockSelector:sH(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:sH(n,[]),ignoreSelector:sH(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:S,block:E,unblock:k,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o})({maskAttributes:_,maskAllText:l,privacyOptions:A,key:e,value:t,el:r}),...A,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(r,15e3),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:o,workerUrl:s,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:f,
143networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:sG(v),networkResponseHeaders:sG(w),beforeAddRecordingEvent:T,beforeErrorSampling:O,onError:I,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${sz}`:sz),this._isInitialized&&nZ())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return sW}set _isInitialized(e){sW=e}afterAllSetup(e){nZ()&&!this._replay&&(this._setup(e),this._initialize(e))}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):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...(0,Z.Jr)(e)},i=eC(r.replaysSessionSampleRate),o=eC(r.replaysOnErrorSampleRate);return null==i&&null==o&&(0,U.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=o&&(n.errorSampleRate=o),n}(this._initialOptions,e);this._replay=new sF({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function sG(e){return[...sq,...e.map(e=>e.toLowerCase())]}sV.__initStatic(),globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"C4ti0lCp1-_R-s4DCbkd4"},globalThis._sentryBasePath=void 0,globalThis._sentryRewriteFramesAssetPrefixPath="",function(e){let t={environment:function(e){let t=e?tJ.env.NEXT_PUBLIC_VERCEL_ENV:tJ.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tV(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=nI({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){var i;n&&(i=e,eU.document.getElementById("__NEXT_DATA__")?nj.events.on("routeChangeStart",e=>{let t,r;let n=e.split(/[?#]/,1)[0],o=function(e){let t=(eU.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let r=function(e){let t=e.split("/"),r="";S([t,"access",e=>e[t.length-1],"optionalAccess",e=>e.match,"call",e=>e(/^\[\[\.\.\..+\]\]$/)])&&(t.pop(),r="(?:/(.+?))?");let n=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${n}${r}(?:/)?$`)}(t);return e.match(r)})}(n);o?(t=o,r="route"):(t=n,r="url"),nR(i,{name:t,attributes:{[tX.$J]:"navigation",[tX.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[tX.Zj]:r}})}):function(e){let t;eU.addEventListener("popstate",()=>{t&&t.isRecording()?(t.updateName(eU.location.pathname),t.setAttribute(tX.Zj,"url")):t=nR(e,{name:eU.location.pathname,attributes:{[tX.$J]:"navigation",[tX.S3]:"auto.navigation.nextjs.app_router_instrumentation",[tX.Zj]:"url","navigation.type":"browser.popstate"}})});let r=!1,n=0,i=setInterval(()=>{var o,s;n++;let a=(o=S([nL,"optionalAccess",e=>e.next,"optionalAccess",e=>e.router]),s=()=>S([nL,"optionalAccess",e=>e.nd,"optionalAccess",e=>e.router]),null!=o?o:s());r||n>500?clearInterval(i):a&&(clearInterval(i),r=!0,["back","forward","push","replace"].forEach(r=>{S([a,"optionalAccess",e=>e[r]])&&(a[r]=new Proxy(a[r],{apply(n,i,o){let s=nR(e,{name:nN,attributes:{[tX.$J]:"navigation",[tX.S3]:"auto.navigation.nextjs.app_router_instrumentation",[tX.Zj]:"url"}});return t=s,"push"===r?(S([s,"optionalAccess",e=>e.updateName,"call",e=>e(nD(o[0]))]),S([s,"optionalAccess",e=>e.setAttribute,"call",e=>e(tX.Zj,"url")]),S([s,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.push")])):"replace"===r?(S([s,"optionalAccess",e=>e.updateName,"call",e=>e(nD(o[0]))]),S([s,"optionalAccess",e=>e.setAttribute,"call",e=>e(tX.Zj,"url")]),S([s,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.replace")])):"back"===r?S([s,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.back")]):"forward"===r&&S([s,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.forward")]),n.apply(i,o)}}))}))},20)}(i)),t.afterAllSetup(e),r&&(eU.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e;let t=eU.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){nB.X&&U.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:o}=e;return r.route=n,r.params=i,o&&o.pageProps&&(r.sentryTrace=o.pageProps._sentryTraceData,r.baggage=o.pageProps._sentryBaggage),r}(),o=(0,nw.XM)(i),s=t||eU.location.pathname;o&&o["sentry-transaction"]&&"/_error"===s&&(s=(s=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,"")),nA(e,{name:s,startTime:eS.Z1?eS.Z1/1e3:void 0,attributes:{[tX.$J]:"pageload",[tX.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[tX.Zj]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:i})}(e):nA(e,{name:eU.location.pathname,startTime:eS.Z1?eS.Z1/1e3:void 0,attributes:{[tX.$J]:"pageload",[tX.S3]:"auto.pageload.nextjs.app_router_instrumentation",[tX.Zj]:"url"}}))}}}());let r=nV.env._sentryRewriteFramesAssetPrefixPath||nG._sentryRewriteFramesAssetPrefixPath||"";return t.push(nz({assetPrefixPath:r})),t}(e),...e};(function(e){let t=nq.env._sentryRewritesTunnelPath||nW._sentryRewritesTunnelPath;if(t&&e.dsn){let r=ed(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],o=n[2],s=`${t}?o=${i}&p=${r.projectId}`;o&&(s+=`&r=${o}`),e.tunnel=s,nB.X&&U.kg.info(`Tunneling events to "${s}"`)}else nB.X&&U.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(t),B(t,"nextjs",["nextjs","react"]),function(e){let t={...e};
143B(t,"react"),(0,j.v)("react",{version:tG.version}),function(e={}){let t=function(e={}){let t={defaultIntegrations:tV(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eU.SENTRY_RELEASE&&eU.SENTRY_RELEASE.id?eU.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(!t.skipBrowserExtensionCheck&&function(){let e=void 0!==eU.window&&eU;if(!e)return!1;let t=e.chrome?"chrome":"browser",r=e[t],n=r&&r.runtime&&r.runtime.id,i=eU.location&&eU.location.href||"",o=!!n&&eU===eU.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),s=void 0!==e.nw;return!!n&&!o&&!s}()){(0,U.Cf)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}eP&&!es()&&U.kg.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."),function(e,t){!0===t.debug&&($.X?U.kg.enable():(0,U.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,X.nZ)().update(t.initialScope);let r=new e(t);(0,X.nZ)().setClient(r),r.init()}(ez,{...t,stackParser:(0,Q.Sq)(t.stackParser||tM),integrations:function(e){let t;let r=e.defaultIntegrations||[],n=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;let i=function(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(t),o=i.findIndex(e=>"Debug"===e.name);if(o>-1){let[e]=i.splice(o,1);i.push(e)}return i}(t),transport:t.transport||tW})}(t)}(t);let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",(0,j.Qy)(r);let n=e=>"transaction"===e.type&&e.transaction===nN?null:e;n.id="IncompleteTransactionFilter",(0,j.Qy)(n);let i=(e,t)=>{var r;return(r=S([t,"optionalAccess",e=>e.originalException]),(0,ek.VZ)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;"))?null:e};i.id="NextRedirectErrorFilter",(0,j.Qy)(i)}({dsn:"https://[email protected]/4506853933842432",tracesSampleRate:.1,replaysOnErrorSampleRate:.1,replaysSessionSampleRate:.1,integrations:[new sV({maskAllText:!0,blockAllMedia:!0})]})},46691:function(e,t){"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return h},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return p}});let s="refresh",a="navigate",l="restore",c="server-patch",u="prefetch",d="fast-refresh",h="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=r||(r={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=n||(n={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64318:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(98364),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89577:function(e,t,r){"use strict";
143Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=r(10260),i=r(85893),o=n._(r(67294)),s=r(71401),a=r(2045),l=r(27420),c=r(57201),u=r(11443),d=r(9953),h=r(15320),p=r(52905),f=r(64318),m=r(90953),g=r(46691),y=new Set;function v(e,t,r,n,i,o){if(o||(0,a.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(i))return;y.add(i)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,r,n)).catch(e=>{})}}function w(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:y,children:b,prefetch:_=null,passHref:S,replace:E,shallow:k,scroll:x,locale:C,onClick:T,onMouseEnter:O,onTouchStart:I,legacyBehavior:A=!1,...R}=e;r=b,A&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let P=o.default.useContext(d.RouterContext),N=o.default.useContext(h.AppRouterContext),L=null!=P?P:N,D=!P,M=!1!==_,B=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:j,as:$}=o.default.useMemo(()=>{if(!P){let e=w(l);return{href:e,as:y?w(y):e}}let[e,t]=(0,s.resolveHref)(P,l,!0);return{href:e,as:y?(0,s.resolveHref)(P,y):t||e}},[P,l,y]),U=o.default.useRef(j),F=o.default.useRef($);A&&(n=o.default.Children.only(r));let H=A?n&&"object"==typeof n&&n.ref:t,[z,q,W]=(0,p.useIntersection)({rootMargin:"200px"}),V=o.default.useCallback(e=>{(F.current!==$||U.current!==j)&&(W(),F.current=$,U.current=j),z(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[$,H,j,W,z]);o.default.useEffect(()=>{L&&q&&M&&v(L,j,$,{locale:C},{kind:B},D)},[$,j,q,C,M,null==P?void 0:P.locale,L,D,B]);let G={ref:V,onClick(e){A||"function"!=typeof T||T(e),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,r,n,i,s,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let h=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:c,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};u?o.default.startTransition(h):h()}(e,L,j,$,E,k,x,C,D)},onMouseEnter(e){A||"function"!=typeof O||O(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),L&&(M||!D)&&v(L,j,$,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:B},D)},onTouchStart:function(e){A||"function"!=typeof I||I(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),L&&(M||!D)&&v(L,j,$,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:B},D)}};if((0,c.isAbsoluteUrl)($))G.href=$;else if(!A||S||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,f.getDomainLocale)($,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);G.href=t||(0,m.addBasePath)((0,u.addLocale)($,e,null==P?void 0:P.defaultLocale))}return A?o.default.cloneElement(n,G):(0,i.jsx)("a",{...R,...G,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52905:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(67294),i=r(33815),o="function"==typeof IntersectionObserver,s=new Map,a=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,c=l||!o,[u,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{h.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(c||u)return;let e=h.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>
143{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),s.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!u){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,r,t,u,h.current]),[p,u,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58057:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{SofiaPro:function(){return u()},default:function(){return te}});var o,s,a={};r.r(a),r.d(a,{Decoder:function(){return eV},Encoder:function(){return eW},PacketType:function(){return s},isPacketValid:function(){return eZ},protocol:function(){return eq}});var l=r(62364),c=r(1192),u=r.n(c),d=r(9008),h=r.n(d),p=r(4298),f=r.n(p),m=r(67294),g=r(46669),y=r(15437),v=r(29496),w=r(19692);r(35667);var b=r(11163),_=r(85717),S=r(17502);let E=y.ZP.div.withConfig({componentId:"sc-62787b98-0"})(["height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#f9f9f9;text-align:center;"]),k=y.ZP.h1.withConfig({componentId:"sc-62787b98-1"})(["font-size:2.4rem;margin-bottom:1rem;color:#333;"]),x=y.ZP.p.withConfig({componentId:"sc-62787b98-2"})(["font-size:1.6rem;color:#555;max-width:600px;"]),C=y.ZP.button.withConfig({componentId:"sc-62787b98-3"})(["margin-top:2rem;padding:1rem 2rem;font-size:1.6rem;background-color:",";color:white;border:none;border-radius:8px;cursor:pointer;&:hover{background-color:",";}"],_.Z.naviPurple.main,_.Z.naviPurple.dark);class T extends m.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){if(this.state.hasError){var e;return this.props.fallback||(0,l.tZ)(l.HY,{children:(0,l.BX)(E,{children:[(0,l.tZ)(S.Zw,{loading:!0,style:{position:"absolute",top:"0"}}),(0,l.tZ)(k,{children:"Oops! Something went wrong."}),(0,l.tZ)(x,{children:(null===(e=this.state.error)||void 0===e?void 0:e.message)||"An unexpected error occurred."}),(0,l.tZ)(C,{onClick:this.handleRedirect,children:"Go to Home"})]})})}return this.props.children}constructor(e){super(e),this.handleRedirect=()=>{this.props.router.push("/")},this.state={hasError:!1,error:null}}}var O=(0,b.withRouter)(T),I=r(59519),A=()=>{let[e,t]=(0,m.useState)("");return(0,m.useEffect)(()=>{t((0,I.Fy)())},[]),(0,l.tZ)("script",{dangerouslySetInnerHTML:{__html:e},id:"globalLd",type:"application/ld+json"})},R=e=>{let{pageSlug:t=""}=e;if(!t)return null;try{let e=(0,I.dS)(t),r=JSON.stringify(e);return(0,l.tZ)("script",{dangerouslySetInnerHTML:{__html:r},id:"JsonLdBreadcrumbComponent",type:"application/ld+json"})}catch(e){return null}},P=r(85918),N=r(8842),L=r(5810),D=r(4066),M=r(9965);let B=Object.create(null);B.open="0",B.close="1",B.ping="2",B.pong="3",B.message="4",B.upgrade="5",B.noop="6";let j=Object.create(null);Object.keys(B).forEach(e=>{j[B[e]]=e});let $={type:"error",data:"parser error"},U="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),F="function"==typeof ArrayBuffer,H=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,z=({type:e,data:t},r,n)=>U&&t instanceof Blob?r?n(t):q(t,n):F&&(t instanceof ArrayBuffer||H(t))?r?n(t):q(new Blob([t]),n):n(B[e]+(t||"")),q=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function W(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<V.length;
143e++)G[V.charCodeAt(e)]=e;let J=e=>{let t=.75*e.length,r=e.length,n,i=0,o,s,a,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)o=G[e.charCodeAt(n)],s=G[e.charCodeAt(n+1)],a=G[e.charCodeAt(n+2)],l=G[e.charCodeAt(n+3)],u[i++]=o<<2|s>>4,u[i++]=(15&s)<<4|a>>2,u[i++]=(3&a)<<6|63&l;return c},X="function"==typeof ArrayBuffer,Z=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Y(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:K(e.substring(1),t)}:j[r]?e.length>1?{type:j[r],data:e.substring(1)}:{type:j[r]}:$},K=(e,t)=>X?Y(J(e),t):{base64:!0,data:e},Y=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Q=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,o)=>{z(e,!1,e=>{n[o]=e,++i===r&&t(n.join("\x1e"))})})},ee=(e,t)=>{let r=e.split("\x1e"),n=[];for(let e=0;e<r.length;e++){let i=Z(r[e],t);if(n.push(i),"error"===i.type)break}return n};function et(e){return e.reduce((e,t)=>e+t.length,0)}function er(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function en(e){if(e)return function(e){for(var t in en.prototype)e[t]=en.prototype[t];return e}(e)}en.prototype.on=en.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},en.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},en.prototype.off=en.prototype.removeListener=en.prototype.removeAllListeners=en.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},en.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},en.prototype.emitReserved=en.prototype.emit,en.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},en.prototype.hasListeners=function(e){return!!this.listeners(e).length};let ei="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),eo="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function es(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let ea=eo.setTimeout,el=eo.clearTimeout;function ec(e,t){t.useNativeTimers?(e.setTimeoutFn=ea.bind(eo),e.clearTimeoutFn=el.bind(eo)):(e.setTimeoutFn=eo.setTimeout.bind(eo),e.clearTimeoutFn=eo.clearTimeout.bind(eo))}function eu(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}
143class ed extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class eh extends en{constructor(e){super(),this.writable=!1,ec(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new ed(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=Z(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}class ep extends eh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){ee(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,Q(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=eu()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let ef=!1;try{ef="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let em=ef;function eg(){}class ey extends ep{constructor(e){if(super(e),"undefined"!=typeof location){let t="https:"===location.protocol,r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class ev extends en{constructor(e,t,r){super(),this.createRequest=e,ec(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=es(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.
143status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"undefined"!=typeof document&&(this._index=ev.requestsCount++,ev.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=eg,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete ev.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function ew(){for(let e in ev.requests)ev.requests.hasOwnProperty(e)&&ev.requests[e].abort()}ev.requestsCount=0,ev.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ew):"function"==typeof addEventListener&&addEventListener("onpagehide"in eo?"pagehide":"unload",ew,!1));let eb=function(){let e=eS({xdomain:!1});return e&&null!==e.responseType}();class e_ extends ey{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=eb&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ev(eS,this.uri(),e)}}function eS(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||em))return new XMLHttpRequest}catch(e){}if(!t)try{return new eo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let eE="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class ek extends eh{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=eE?{}:es(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;z(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&ei(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=eu()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let ex=eo.WebSocket||eo.MozWebSocket;class eC extends ek{createSocket(e,t,r){return eE?new ex(e,t,r):t?new ex(e,t):new ex(e)}doWrite(e,t){this.ws.send(t)}}class eT extends eh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=function(e,t){i||(i=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(a,l){for(r.push(a);;){if(0===n){if(1>et(r))break;let e=er(r,1);s=(128&e[0])==128,n=(o=127&e[0])<126?3:126===o?1:2}else if(1===n){if(2>et(r))break;let e=er(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>et(r))break;let e=er(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){l.enqueue($);break}o=4294967296*i+t.getUint32(4),n=3}else{if(et(r)<o)break;let e=er(r,o);l.enqueue(Z(s?e:i.decode(e),t)),n=0}if(0===o||o>e){l.enqueue($);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),o=new TransformStream({transform(e,t){var r;r=r=>{let n;let i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)},U&&e.data instanceof Blob?e.data.arrayBuffer().then(W).then(r):F&&(e.data instanceof ArrayBuffer||H(e.data))?r(W(e.data)):z(e,!1,e=>{n||(n=new TextEncoder),r(n.encode(e))})}});o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),s())}).catch(e=>{})};s();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&ei(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}}let eO={websocket:eC,webtransport:eT,polling:e_},eI=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,eA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function eR(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=eI.exec(e||""),o={},s=14;for(;s--;)o[eA[s]]=i[s]||"";return -1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){let r=t.replace(/\/{2,9}/g,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}(0,o.path),o.queryKey=function(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}(0,o.query),o}let eP="function"==typeof addEventListener&&"function"==typeof removeEventListener,eN=[];eP&&addEventListener("offline",()=>
vendor: 1,399 bytes, line 143
143{eN.forEach(e=>e())},!1);class eL extends en{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){let r=eR(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=eR(t.host).host);ec(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");
143t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}(this.opts.query)),eP&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},eN.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&eL.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",eL.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+="string"==typeof r?function(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(r):Math.ceil(1.33*(r.byteLength||r.size))),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ei(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(eL.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),eP&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=eN.indexOf(this._offlineEventListener);-1!==e&&eN.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}eL.protocol=4;class eD extends eL{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;eL.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(eL.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"===this.readyState||(c(),this.setTransport(t),t.send([{type:"upgrade"}
143]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function i(){r||(r=!0,c(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function a(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let c=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",s),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}class eM extends eD{constructor(e,t={}){let r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>eO[e]).filter(e=>!!e)),super(e,r)}}eM.protocol;let eB="function"==typeof ArrayBuffer,ej=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,e$=Object.prototype.toString,eU="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===e$.call(Blob),eF="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===e$.call(File);function eH(e){return eB&&(e instanceof ArrayBuffer||ej(e))||eU&&e instanceof Blob||eF&&e instanceof File}let ez=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eq=5;(o=s||(s={}))[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK";class eW{constructor(e){this.replacer=e}encode(e){return(e.type===s.EVENT||e.type===s.ACK)&&function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(e(t[r]))return!0;return!1}if(eH(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===s.BINARY_EVENT||e.type===s.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],r=e.data;return e.data=function e(t,r){if(!t)return t;if(eH(t)){let e={_placeholder:!0,num:r.length};return r.push(t),e}if(Array.isArray(t)){let n=Array(t.length);for(let i=0;i<t.length;i++)n[i]=e(t[i],r);return n}if("object"==typeof t&&!(t instanceof Date)){let n={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e(t[i],r));return n}return t}(r,t),e.attachments=t.length,{packet:e,buffers:t}}(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}class eV extends en{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof e?{reviver:e}:e)}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===s.BINARY_EVENT;r||t.type===s.BINARY_ACK?(t.type=r?s.EVENT:s.ACK,this.reconstructor=new eG(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eH(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===s[r.type])throw Error("unknown packet type "+r.type);if(r.type===s.BINARY_EVENT||r.type===s.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");let o=Number(i);if(!eJ(o)||o<0)throw Error("Illegal attachments");if(o>this.opts.maxAttachments)throw Error("too many attachments");r.attachments=o}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(eV.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case s.CONNECT:return eX(t);case s.DISCONNECT:return void 0===t;case s.CONNECT_ERROR:return"string"==typeof t||eX(t);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ez.indexOf(t[0]));case s.ACK:case s.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eG{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,r;let e=(t=this.reconPack,r=this.buffers,t.data=function e(t,r){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<r.length)return r[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=e(t[n],r);else if("object"==typeof t)for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=e(t[n],r));return t}(t.data,r),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}let eJ=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function eX(e){return"[object Object]"===Object.prototype.toString.call(e)}function eZ(e){var t;return"string"==typeof e.nsp&&(void 0===(t=e.id)||eJ(t))&&function(e,t){switch(e){case s.CONNECT:return void 0===t||eX(t);case s.DISCONNECT:return void 0===t;case s.EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ez.indexOf(t[0]));case s.ACK:return Array.isArray(t);case s.CONNECT_ERROR:return"string"==typeof t||eX(t);default:return!1}}(e.type,e.data)}function eK(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let eY=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eQ extends en{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eK(e,"open",this.onopen.bind(this)),eK(e,"packet",this.onpacket.b
143ind(this)),eK(e,"error",this.onerror.bind(this)),eK(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(eY.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let o={type:s.EVENT,data:t};if(o.options={},o.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),o.id=e}let a=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,l=this.connected&&!(null===(i=this.io.engine)||void 0===i?void 0:i._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>(this._queue[0],null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:s.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}
143_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(!(e.nsp!==this.nsp))switch(e.type){case s.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case s.EVENT:case s.BINARY_EVENT:this.onevent(e);break;case s.ACK:case s.BINARY_ACK:this.onack(e);break;case s.DISCONNECT:this.ondisconnect();break;case s.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:s.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:s.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function e0(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e0.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},e0.prototype.reset=function(){this.attempts=0},e0.prototype.setMin=function(e){this.ms=e},e0.prototype.setMax=function(e){this.max=e},e0.prototype.setJitter=function(e){this.jitter=e};class e1 extends en{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,ec(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new e0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new eM(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=eK(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eK(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eK(e,"ping",this.onping.bind(this)),eK(e,"data",this.ondata.bind(this)),eK(e,"error",this.onerror.bind(this)),eK(e,"close",this.onclose.bind(this)),eK(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){ei(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eQ(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}
143cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let e2={};function e4(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=function(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=eR(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,s=n.path,a=e2[o]&&s in e2[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?r=new e1(i,t):(e2[o]||(e2[o]=new e1(i,t)),r=e2[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(e4,{Manager:e1,Socket:eQ,io:e4,connect:e4});var e3=r(83454);let e5=(0,m.createContext)({socket:null,isConnected:!1});function e6(e){let{children:t}=e,{user:r}=(0,P.a)(),{setPurchaseData:n,setPlanUpgrading:i}=(0,L.iQ)(),[o,s]=(0,m.useState)(null),[a,c]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{if(!(null==r?void 0:r.uid))return;let e=e4(e3.env.NEXT_PUBLIC_SOCKET_URL||"",{path:"/api/socket.io",transports:["websocket","polling"],withCredentials:!0,reconnection:!0,reconnectionAttempts:5,reconnectionDelay:1e3,autoConnect:!0,forceNew:!0});return e.on("connect",()=>{c(!0),e.emit("register",r.uid),console.log("Socket connected and user registered")}),e.on("connect_error",e=>{console.error("Socket connection error:",e)}),e.on("disconnect",e=>{c(!1),console.log("Disconnected:",e)}),s(e),e.on("customer_purchases",e=>{n(null==e?void 0:e.purchases)}),e.on("subscription_upgrading",e=>{(null==e?void 0:e.is_upgrading)?(i(!0),(0,v.yv)("Please wait, the plan is upgrading.",{variant:"success"})):(null==e?void 0:e.done)&&((0,v.yv)("Plan upgraded.",{variant:"success"}),i(!1))}),()=>{e.disconnect()}},[r]),(0,l.tZ)(e5.Provider,{value:{socket:o,isConnected:a},children:t})}let e8=(0,y.vJ)(["html{font-size:62.5%;}body{font-size:16px;margin:0;padding:0;box-sizing:border-box;}*{font-family:",";}:root{--color-brand-primary:#624ff7;}"],u().style.fontFamily),e7={background:"linear-gradient(120deg, #3fd6d6 0%, #6c63ff 48%, #ff0080 100%)",color:"#ffffff",fontWeight:700,borderRadius:"10px",boxShadow:"0 12px 30px rgba(15, 23, 42, 0.18)","& svg":{color:"#ffffff"}},e9=(0,y.ZP)(v.pk).withConfig({componentId:"sc-7e02433f-0"})(()=>({"&.notistack-MuiContent-success":e7,"&.notistack-MuiContent-error":e7,"&.notistack-MuiContent-info":e7,"&.notistack-MuiContent-warning":e7,"&.notistack-MuiContent-default":e7}));var te=e=>{var t;let{Component:r,pageProps:n}=e,i=(0,l.tZ)(r,{...n}),o=(0,b.useRouter)(),s=r.Layout?r.Layout(i):i;return(0,m.useEffect)(()=>{let e=()=>{window.fbq&&window.fbq("track","PageView")};return o.events.on("routeChangeComplete",e),()=>{o.events.off("routeChangeComplete",e)}},[o.events]),(0,m.useEffect)(()=>{},[]),(0,l.tZ)(v.wT,{anchorOrigin:{vertical:"top",horizontal:"center"},classes:{containerRoot:"z-alert"},Components:{success:e9,error:e9,info:e9,warning:e9,default:e9},style:{fontSize:"1.6rem"},autoHideDuration:4e3,children:(0,l.tZ)(g.wI,{children:(0,l.tZ)(L.Zl,{children:(0,l.tZ)(P.Z,{children:(0,l.tZ)(e6,{children:(0,l.tZ)(D.c,{children:(0,l.tZ)(M.Cn,{children:(0,l.BX)(N.X$,{children:[(0,l.BX)(h(),{children:[(0,l.tZ)("title",{children:"Licensed Travel Video for Hotels, Airlines & OTAs | NaviSavi"}),!1,(0,l.tZ)("meta",{name:"viewport",content:"initial-scale=1, width=device-width"}),(0,l.tZ)("meta",{name:"description",content:"NaviSavi is the world's leading travel video licensing platform. Search 250k+ authentic UGC travel videos across 180+ destinations — rights-cleared and ready to deploy. From $17/video."}),(0,l.tZ)("meta",{property:"og:site_name",content:"NaviSavi"}),(0,l.tZ)("meta",{property:"og:locale",content:"en_US"}),(0,l.tZ)("link",{rel:"shortcut icon",href:"/favicon.ico"})]}),(0,l.tZ)(f(),{id:"cookieyes",src:"https://cdn-cookieyes.com/client_data/2a6ec3986ad384498e879ec63506acdc/script.
143js",strategy:"beforeInteractive"}),(0,l.tZ)(f(),{id:"facebook-pixel",strategy:"afterInteractive",children:"\n                        !function(f,b,e,v,n,t,s)\n                        {\n                          if(f.fbq) return;\n                          n=f.fbq=function(){\n                            n.callMethod\n                              ? n.callMethod.apply(n,arguments)\n                              : n.queue.push(arguments);\n                          };\n                          if(!f._fbq) f._fbq=n;\n                          n.push=n;\n                          n.loaded=!0;\n                          n.version='2.0';\n                          n.queue=[];\n                          t=b.createElement(e);\n                          t.async=!0;\n                          t.src=v;\n                          s=b.getElementsByTagName(e)[0];\n                          s.parentNode.insertBefore(t,s);\n                        }(\n                          window,\n                          document,\n                          'script',\n                          'https://connect.facebook.net/en_US/fbevents.js'\n                        );\n\n                        fbq('init', '1928674127466637');\n                        fbq('track', 'PageView');\n                      "}),(0,l.tZ)(f(),{id:"roaspy-tracking",src:"https://roaspy.navisavitravel.com/script/bus_ylKvcmjbUmilGb92py2hU.js",strategy:"afterInteractive"}),(0,l.tZ)(f(),{id:"microsoft-clarity",strategy:"afterInteractive",children:'\n                        (function(c,l,a,r,i,t,y){\n                          c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\n                          t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;\n                          y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n                        })(window, document, "clarity", "script", "x2tz5b9fdo");\n                      '}),(0,l.tZ)(A,{}),(0,l.tZ)(w.GoogleTagManager,{gtmId:"GTM-TPDL6VXT"}),(0,l.tZ)(R,{pageSlug:null!==(t=null==n?void 0:n.slug)&&void 0!==t?t:""}),(0,l.tZ)(e8,{}),(0,l.tZ)(O,{children:s})]})})})})})})})})}},17502:function(e,t,r){"use strict";r.d(t,{AB:function(){return l},J4:function(){return d},MU:function(){return o},V0:function(){return h},Zw:function(){return s},gM:function(){return a},h_:function(){return c},jE:function(){return u}});var n=r(15437),i=r(46347);let o=n.ZP.div.withConfig({componentId:"sc-42d9e8eb-0"})(["position:sticky;top:0;z-index:50;"]),s=n.ZP.div.withConfig({shouldForwardProp:e=>!["loading"].includes(e)}).withConfig({componentId:"sc-42d9e8eb-1"}
143)(["height:0.8rem;width:100%;z-index:99999;position:relative;background-image:linear-gradient( to right,"," 0%,"," 50%,"," 100% );"],i.O9.brand.turquoise,i.O9.brand.purple,i.O9.brand.pink),a=n.ZP.div.withConfig({componentId:"sc-42d9e8eb-2"})(["width:100%;min-height:8rem;display:flex;justify-content:center;align-items:center;background:",";border-bottom:1px solid ",";box-shadow:0 2px 14px ",";"],i.O9.background.panel,i.O9.border.soft,i.O9.shadow.soft),l=n.ZP.div.withConfig({componentId:"sc-42d9e8eb-3"})(["width:100%;max-width:",";padding:0 ",";display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;@media screen and (max-width:1023px){padding:0 ",";}@media screen and (max-width:640px){padding:0 ",";}"],i.W0.maxWidth,i.W0.pageX,i.W0.pageXTablet,i.W0.pageXMobile),c=n.ZP.div.withConfig({componentId:"sc-42d9e8eb-4"})(["position:fixed;top:0;left:0;width:100%;height:100vh;background:",";transform:translateY(",");transition:transform 0.3s ease-in-out;display:flex;flex-direction:column;overflow:auto;z-index:9999;padding-top:0;@media screen and (min-width:1024px){display:none;}"],i.O9.background.page,e=>{let{$isOpen:t}=e;return t?"0":"-100%"}),u=n.ZP.div.withConfig({componentId:"sc-42d9e8eb-5"})(["display:flex;align-items:center;@media screen and (max-width:1023px){display:none;}"]),d=n.ZP.div.withConfig({componentId:"sc-42d9e8eb-6"})(["display:flex;align-items:center;@media screen and (max-width:1023px){display:none;}"]),h=n.ZP.button.withConfig({componentId:"sc-42d9e8eb-7"})(["display:none;width:4.4rem;height:4.4rem;border:1px solid ",";border-radius:",";background:",";color:",";align-items:center;justify-content:center;cursor:pointer;@media screen and (max-width:1023px){display:flex;}svg{width:2.4rem;height:2.4rem;}"],i.O9.border.medium,i.W0.radiusButton,i.O9.background.panel,i.O9.text.primary)},85717:function(e,t){"use strict";t.Z={text:{light:" #465063",main:"#0F1319",contrastText:"#fff"},naviGray:{main:"#48484A",light:"#dedede"},naviPink:{main:"#FF0080"},naviPurple:{main:"#624FF7",dark:"#5B50F3"},naviBlue:{main:"#2AEFE0",dark:"#008080"},background:{border:"#4650634d",light:"#1E232C",borderBox:"#0f13194d",main:"#fff",inputBox:"#ecedef"}}},25938:function(e,t,r){"use strict";r.d(t,{RR:function(){return o},je:function(){return i},vC:function(){return n}});let n="active",i=[{limit:0,offset:0,latitude:51.5072178,longitude:-.1275862,ne_latitude:51.6723432,ne_longitude:.148271,sw_latitude:51.38494009999999,sw_longitude:-.3514683,destination_text:"London",displayName:"London",countryCode:"GB",label:"Culture, hotels, food and neighbourhoods",summary:"Explore real traveller videos from one of the world’s most visited cities.",videoSrc:"/cityvideos/london.mp4",thumbnailSrc:"/citythumbs/london.png"},{limit:0,offset:0,latitude:40.7127753,longitude:-74.0059728,ne_latitude:40.917705,ne_longitude:-73.700169,sw_latitude:40.476578,sw_longitude:-74.258843,destination_text:"New York",displayName:"New York",countryCode:"US",label:"Neighbourhoods, hotels, restaurants and city energy",summary:"Browse authentic traveller content from one of the world’s busiest cities.",videoSrc:"/cityvideos/newyork.mp4",thumbnailSrc:"/citythumbs/newyork.png"},{limit:0,offset:0,latitude:48.8575475,longitude:2.3513765,ne_latitude:48.9021476,ne_longitude:2.4698511,sw_latitude:48.8155622,sw_longitude:2.2242171,destination_text:"Paris",displayName:"Paris",countryCode:"FR",label:"Hotels, caf\xe9s, galleries and neighbourhoods",summary:"See authentic short-form video from the city people never stop booking.",videoSrc:"/cityvideos/paris.mp4",thumbnailSrc:"/citythumbs/paris.png"},{limit:0,offset:0,latitude:1.352083,longitude:103.819836,ne_latitude:1.4784001,ne_longitude:104.0945001,sw_latitude:1.1496,sw_longitude:103.594,destination_text:"Singapore",displayName:"Singapore",countryCode:"SG",label:"Skyline, food, hotels and city experiences",summary:"Explore real travel videos from a city built for visual discovery.",videoSrc:"/cityvideos/singapore.mp4",thumbnailSrc:"/citythumbs/singapore.png"},{limit:0,offset:0,latitude:41.3873974,longitude:2.168568,ne_latitude:41.4682974,ne_longitude:2.2280449,sw_latitude:41.3170385,sw_longitude:2.0523333,destination_text:"Barcelona",displayName:"Barcelona",countryCode:"ES",label:"Beaches, food, design and local culture",summary:"Discover authentic traveller videos across Barcelona’s most visual moments.",videoSrc:"/cityvideos/barcelona.mp4",thumbnailSrc:"/citythumbs/barcelona.png"},{limit:0,offset:0,latitude:25.2048493,longitude:55.2707828,ne_latitude:25.3585607,ne_longitude:55.5645216,sw_latitude:24.7934842,sw_longitude:54.89045429999999,destination_text:"Dubai",displayName:"Dubai",countryCode:"AE",label:"Hotels, rooftops, experiences and luxury stays",summary:"Explore real traveller content from one of travel’s fastest-moving cities.",videoSrc:"/cityvideos/dubai.mp4",thumbnailSrc:"/citythumbs/dubai.png"},{limit:0,offset:0,latitude:41.0082376,longitude:28.9783589,ne_latitude:41.199239,ne_longitude:29.4288049,sw_latitude:40.811404,sw_longitude:28.595554,destination_text:"İstanbul",displayName:"Istanbul",countryCode:"TR",label:"Culture, food, rooftops and the Bosphorus",summary:"Explore real traveller videos across one of the world’s great crossroads.",videoSrc:"/cityvideos/istanbul.mp4",thumbnailSrc:"/citythumbs/istanbul.png"},{limit:0,offset:0,latitude:-33.92584,longitude:18.42322,ne_latitude:-33.471,ne_longitude:18.994,sw_latitude:-34.358,sw_longitude:18.307,destination_text:"Cape Town",displayName:"C
143ape Town",countryCode:"ZA",label:"Coastlines, culture, food and mountain views",summary:"Browse authentic traveller videos from one of Africa’s most visual cities.",videoSrc:"/cityvideos/capetown.mp4",thumbnailSrc:"/citythumbs/capetown.png"},{limit:0,offset:0,latitude:41.8781136,longitude:-87.6297982,ne_latitude:42.0231351,ne_longitude:-87.52366099999999,sw_latitude:41.644286,sw_longitude:-87.940097,destination_text:"Chicago",displayName:"Chicago",countryCode:"US",label:"Architecture, food, hotels and city life",summary:"See real traveller videos from one of America’s great city destinations.",videoSrc:"/cityvideos/chicago.mp4",thumbnailSrc:"/citythumbs/chicago.png"},{limit:0,offset:0,latitude:35.6764225,longitude:139.650027,ne_latitude:35.8984074,ne_longitude:153.9867945,sw_latitude:20.4231216,sw_longitude:136.0696826,destination_text:"Tokyo",displayName:"Tokyo",countryCode:"JP",label:"Street life, food, design and culture",summary:"Explore real traveller videos from a city built for visual discovery.",videoSrc:"/cityvideos/tokyo.mp4",thumbnailSrc:"/citythumbs/tokyo.png"}],o=["/api/customer/purchase-addons","/api/customer/add-collection-subscription","/api/customer/add-video-subscription","/api/customer/cancel-plan-subscription","/api/customer/get-customer-by-firebase-id","/api/customer/save-channels","/api/customer/get-purchases","/api/customer/update-customer-info","/api/cart/checkout","/api/customer/get-single-purchase","/api/customer/stripe/get-promo","/api/playlists/share","/api/playlists/cover"]},46669:function(e,t,r){"use strict";r.d(t,{bp:function(){return s},wI:function(){return a}});var n=r(62364),i=r(67294);let o=(0,i.createContext)(void 0);function s(){let e=(0,i.useContext)(o);if(void 0===e)throw Error("useAppContext must be used within a AppProvider");return e}let a=e=>{let{children:t}=e,[r,s]=(0,i.useState)(!1),[a,l]=(0,i.useState)({active:!1,message:""}),[c,u]=(0,i.useState)(0),d=(0,i.useMemo)(()=>({dashboardMenuIsOpen:r,setDashboardMenuIsOpen:s,loading:a,setLoa
143ding:l,windowWidth:c}),[r,s,a,c]);return(0,i.useEffect)(()=>{let e=()=>{u(window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,n.tZ)(o.Provider,{value:d,children:t})}},85918:function(e,t,r){"use strict";r.d(t,{a:function(){return m}});var n=r(62364),i=r(67294),o=r(81517),s=r(7877),a=r(5810),l=r(47041),c=r(11163),u=r(98493),d=r(9835),h=r(22283),p=r(92729);let f=(0,i.createContext)({user:null,isUserValid:!1,loadingAuth:!0,parsedUser:null,setUser:()=>{},terms:!1,authChannel:null,setTerms:e=>{},getCustomerByFirebaseId:()=>{},updateCustomerInfo:()=>{},changePassword:()=>{}}),m=()=>(0,i.useContext)(f);t.Z=e=>{let{children:t}=e,r=(0,c.useRouter)(),[m,g]=(0,i.useState)(null),[y,v]=(0,i.useState)(!1),[w,b]=(0,i.useState)(!0),[_,S]=(0,i.useState)(!1),{clearCart:E,fetchUserPurchaseData:k}=(0,a.iQ)(),[x,C]=(0,i.useState)(null),[T,O]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e;return O(e=new BroadcastChannel("auth_events")),e.onmessage=e=>{let{type:t}=e.data||{};"SESSION_INVALIDATED"===t&&(0,u.T)(r,E)},()=>{e&&e.close()}},[]),(0,i.useEffect)(()=>{let e=(0,o.Aj)(s.I,async e=>{g(e),v(!!e),e&&(C(await I()),await k(null,!1)),setTimeout(()=>{b(!1)},1e3),S(!1)});return()=>{e()}},[]);let I=async()=>{try{var e;b(!0);let t=null===s.I||void 0===s.I?void 0:null===(e=s.I.currentUser)||void 0===e?void 0:e.uid,r=null;if(t)return r=await d.Z.post("/api/customer/get-customer-by-firebase-id"),localStorage.setItem("dbuser",JSON.stringify(null==r?void 0:r.data)),localStorage.setItem("userLog",null==r?void 0:r.data.firebase_id),null==r?void 0:r.data;return r}catch(e){console.error("Error fetching customer by Firebase ID context:",e),b(!1)}finally{b(!1)}},A=async e=>{try{var t,r,n;let i=null===s.I||void 0===s.I?void 0:null===(t=s.I.currentUser)||void 0===t?void 0:t.uid,o=null;if(!i)return o;{let t=await (0,h.H)(JSON.stringify(e));return o=await d.Z.patch("/api/customer/update-customer-info",{encryptedData:t}),localStorage.setItem("dbuser",JSON.stringify(null==o?void 0:null===(r=o.data)||void 0===r?void 0:r.data)),await (0,l.setCookie)("dbuser",null==o?void 0:null===(n=o.data)||void 0===n?void 0:n.data,{maxAge:604800,path:"/"}),o}}catch(e){}},R=async e=>{try{if(!e)return;await p.Z.post("/api/customer/revoke-token",{uid:e})}catch(e){}};return(0,n.tZ)(f.Provider,{value:{authChannel:T,user:m,isUserValid:y,loadingAuth:w,parsedUser:x,setUser:g,terms:_,setTerms:S,getCustomerByFirebaseId:I,updateCustomerInfo:A,changePassword:R},children:t})}},93673:function(e,t,r){"use strict";function n(e){return""!==e.q.trim()||null!==e.countryId||null!==e.regionId||null!==e.localityId||e.placeCategories.length>0||e.audienceSegments.length>0||null!==e.season||e.experienceCategories.length>0||e.vibes.length>0||0!==e.minDuration||30!==e.maxDuration||null!==e.minResolution||null!==e.maxResolution}r.d(t,{E_:function(){return a},MT:function(){return n}});let i=e=>{var t;return Array.isArray(e)?null!==(t=e[0])&&void 0!==t?t:null:null!=e?e:null},o=e=>{let t=i(e);return t?t.split(",").map(e=>e.trim()).filter(Boolean):[]},s=e=>{let t=i(e);if(!t)return null;let r=Number(t);return Number.isFinite(r)?r:null};function a(e){var t,r,n;let a=s(e.countryId),l=s(e.regionId),c=s(e.localityId);return{q:null!==(t=i(e.q))&&void 0!==t?t:"",countryId:a,countryName:null!==a?i(e.countryName):null,regionId:l,regionName:null!==l?i(e.regionName):null,localityId:c,localityName:null!==c?i(e.localityName):null,placeCategories:o(e.placeCategories),audienceSegments:o(e.audienceSegments),season:i(e.season),experienceCategories:o(e.experienceCategories),vibes:o(e.vibes),minDuration:null!==(r=s(e.minDuration))&&void 0!==r?r:0,maxDuration:null!==(n=s(e.maxDuration))&&void 0!==n?n:30,minResolution:i(e.minResolution),maxResolution:i(e.maxResolution)}}},5810:function(e,t,r){"use strict";r.d(t,{Zl:function(){return v},iQ:function(){return m}});var n=r(62364),i=r(92729),o=r(67294),s=r(29496),a=r(47041),l=r(25938),c=r(11163),u=r(9835),d=r(7877),h=r(81517),p=r(22283);let f=(0,o.createContext)(void 0);function m(){let e=(0,o.useContext)(f);if(void 0===e)throw Error("useCartContext must be used within a CartProvider");return e}let g="licensePrices",y="licensePricesFetchedAt",v=e=>{let{children:t}=e,r=(0,c.useRouter)(),[m,v]=(0,o.useState)({active:!1,message:""}),[w,b]=(0,o.useState)({active:!1,message:""}),[_,S]=(0,o.useState)([]),[E,k]=(0,o.useState)(null),[x,C]=(0,o.useState)(!1),[T,O]=(0,o.useState)(null),[I,A]=(0,o.useState)(0),[R,P]=(0,o.useState)(0),[N,L]=(0,o.useState)([]),[D,M]=(0,o.useState)(!1),[B,j]=(0,o.useState)(null),[$,U]=(0,o.useState)(null),[F,H]=(0,o.useState)(0),[z,q]=(0,o.useState)(!1),[W,V]=(0,o.useState)(null),[G,J]=(0,o.useState)(null),[X,Z]=(0,o.useState)(null),[K,Y]=(0,o.useState)(!1),[Q,ee]=(0,o.useState)(!1),[et,er]=(0,o.useState)(!1),[en,ei]=(0,o.useState)({active:!1,oldPrice:void 0,newPrice:void 0,couponId:void 0,promotion_code:void 0}),[eo,es]=(0,o.useState)(0),ea=()=>{try{let e=localStorage.getItem(g),t=localStorage.getItem(y);if(!e||!t)return null;let r=Number(t);if(!(r&&Date.now()-r<216e5))return null;let n=JSON.parse(e);return Array.isArray(n)?n:null}catch(e){return console.error("Error reading cached license prices:",e),null}},el=e=>{try{localStorage.setItem(g,JSON.stringify(e)),localStorage.setItem(y,String(Date.now()))}catch(e){console.error("Error caching license prices:",e)}},ec=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e&&(null==N?void 0:N.length))return;let t=ea();if(!e&&(null==t?void 0:t.length)){L(t);return}v({active:!0,message:"Fetching prices..."});try{let e=await (0,i.Z)("/api/customer/stripe/fetch-prices"),t=Array.isArray(e.data)?e.data:[];L(t),el(t)}
143catch(t){console.error("Error fetching license prices:",t);let e=ea();(null==e?void 0:e.length)&&L(e)}finally{v({active:!1})}};(0,o.useEffect)(()=>{ec()},[]),(0,o.useEffect)(()=>{eu(null)},[r]),(0,o.useEffect)(()=>{let e=(0,h.Aj)(d.I,async e=>{(null==e?void 0:e.uid)&&await eu(null)});return()=>e()},[d.I]);let eu=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Y(!0);let n=(0,a.getCookie)("dbuser")||localStorage.getItem("dbuser"),i=n?JSON.parse(n):void 0;if(i?i.customer_id:e){b({active:!0,message:"Fetching subscriptions..."});try{var o;V(null),M(!0),H(0),U(""),j(null),Z(null);let e=await u.Z.get("/api/customer/get-purchases",{}),t=(0,p.p)(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.data),r=null==(t=JSON.parse(t))?void 0:t.purchases;Z(r);let n=[],i=null;if(r&&r.length>0){if(r.forEach(e=>{var t;(null==e?void 0:null===(t=e.products)||void 0===t?void 0:t.length)&&e.products.forEach(t=>{if(t){let r=new Date,o=new Date("".concat(null==t?void 0:t.subscription_end_date));(null==t?void 0:t.cart_id)&&1===t.credits&&(t.cart_id=e.cart_id,n.push(t)),o>r&&(null==t?void 0:t.status)===l.vC&&t.credits&&t.credits>0&&(i=t)}})}),V(n),i){J(i);let e=new Date(i.subscription_end_date),t=i.credits_remaining,r=i.subscription_type,n=e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});M(!0),H(t),U(r),j(n)}else J(null),M(!1),j(null),U(null),es(e=>e+1)}else J(null),M(!1),j(null),U(null)}catch(e){console.error("Error fetching user purchase data:",e)}finally{q(!0),b({active:!1})}t&&r.reload()}else M(!1),j(null),U(null),q(!0);Y(!1)},ed=async e=>{if(null==e?void 0:e.length){Y(!0),Z(null),b({active:!0,message:"Fetching subscriptions..."});try{Z(e);let t=[],r=null;if(e&&e.length>0){if(e.forEach(e=>{e.products.forEach(n=>{let i=new Date,o=new Date(null==n?void 0:n.subscription_end_date);1===n.credits&&(n.cart_id=e.cart_id,t.push(n)),o>i&&(null==n?void 0:n.status)===l.vC&&n.credits>0&&(r=n)})}),V(t),r){J(r);let e=new Date(r.subscription_end_date),t=r.credits_remaining,n=r.subscription_type,i=e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});M(!0),H(t),U(n),j(i)}else M(!1),j(null),U(null),es(e=>e+1)}else M(!1),j(null),U(null)}catch(e){console.error("Error setting purchase data:",e)}finally{q(!0),b({active:!1})}Y(!1)}},eh=e=>{if(null==e?void 0:e.length){let t=JSON.stringify(e);localStorage.setItem("cart",t)}},ep=()=>{S([]);let e=localStorage.getItem("cart");if(e){let t=JSON.parse(e);return S(t),t}return null},ef=()=>{localStorage.removeItem("cart"),S([])},em=async e=>{S(t=>{let r=[...t,e];return eh(r),r});let t=localStorage.getItem("coupon");if(t){let e=JSON.parse(t);await ev(e)}er(!0);let r=setTimeout(()=>{er(!1)},3e3);return()=>clearTimeout(r)},eg=async e=>{let t=_.filter(t=>{var r,n;return!(null===(r=t.collection)||void 0===r?void 0:r.collection_id)||(null===(n=t.collection)||void 0===n?void 0:n.collection_id)!==e});S(t),eh(t),r.pathname.startsWith("/checkout")&&((null==T?void 0:T.promotionCode)&&(null==t?void 0:t.length)?await ev(null==T?void 0:T.promotionCode):ew())},ey=async e=>{var t,n,i,o;let{planId:s,videoId:a,collectionId:l,type:c}=e,u=[..._];switch(c){case"plan":u=_.filter(e=>e.uniqueId!==s);break;case"video":{if(!s||!a)break;let e=_.findIndex(e=>e.uniqueId===s);if(-1===e)break;let r=_[e],i=null!==(n=null===(t=r.videos)||void 0===t?void 0:t.filter(e=>e.id!==a))&&void 0!==n?n:[];if(i.length>0){let t={...r,videos:i};u[e]=t}else u=_.filter((t,r)=>r!==e);break}case"collection":if(!l)break;let d=_.findIndex(e=>{var t;return(null===(t=e.collection)||void 0===t?void 0:t.collection_id)===l});if(-1===d)break;let h=_[d];if(a&&h&&(null==h?void 0:null===(o=h.collection)||void 0===o?void 0:null===(i=o.videos)||void 0===i?void 0:i.length)){let e={...h.collection,videos:h.collection.videos.filter(e=>e.id!==a)};e.videos.length>0?u[d]={...h,collection:e}:u=_.filter((e,t)=>t!==d)}else u=_.filter((e,t)=>t!==d)}0===u.length&&localStorage.removeItem("cart"),S(u),eh(u),r.pathname.startsWith("/checkout")&&((null==T?void 0:T.promotionCode)&&u.length?await ev(T.promotionCode):ew())};(0,o.useEffect)(()=>{(async()=>{await ep(),await eu(null)})()},[]);let ev=async e=>{C(!0);let t=[],n=ep();if(null==n?void 0:n.length){var o,l,c,d,h;for(var p of n)t.push(null==p?void 0:p.price_id);let f=(0,a.getCookie)("dbuser")||localStorage.getItem("dbuser"),m=f?JSON.parse(f):void 0,g=m?m.customer_id:"";try{let{data:n}=await u.Z.post("/api/customer/stripe/get-promo",{code:e,customer:g,prices:t});(null==r?void 0:null===(o=r.pathname)||void 0===o?void 0:o.startsWith("/checkout"))&&(null==_?void 0:_.length)&&((null==n?void 0:n.hasDiscount)?((0,s.yv)("Promo code applied successfully!",{variant:"success"}),O(n),ei(e=>({...e,promotion_code:null==n?void 0:n.promotionCodeId}
143))):(0,s.yv)(n.error||"Promo code is not valid",{variant:"error"}))}catch(e){(null==r?void 0:null===(l=r.pathname)||void 0===l?void 0:l.startsWith("/checkout"))&&(null==_?void 0:_.length)&&(i.Z.isAxiosError(e)?(0,s.yv)(null!==(h=null==e?void 0:null===(d=e.response)||void 0===d?void 0:null===(c=d.data)||void 0===c?void 0:c.message)&&void 0!==h?h:"Promo code is not valid",{variant:"error"}):(0,s.yv)("string"==typeof e?e:"Promo code is not valid",{variant:"error"}),ew())}finally{(null==_?void 0:_.length)||await ew(),C(!1)}}C(!1)},ew=()=>{localStorage.removeItem("coupon"),O(null),ei({active:!1,oldPrice:void 0,newPrice:void 0,couponId:void 0,promotion_code:void 0})};return(0,o.useEffect)(()=>{let e=(()=>{var e,t,r;if(0===_.length)return null;let n=0;if(P(n=(null==E?void 0:null===(t=E.price)||void 0===t?void 0:null===(e=t.metadata)||void 0===e?void 0:e["Days Limit"])?(null===(r=_[0])||void 0===r?void 0:r.price)||0:_.reduce((e,t)=>e+(t.price||0),0)),T){if(void 0!==T.percentOff){let e=T.percentOff||0,t=n*(1-e/100);return ei(e=>({...e,active:!0,oldPrice:n,newPrice:t>0?t:0})),n*(1-T.percentOff/100)}if(void 0!==T.amountOff){let e=T.amountOff||0,t=n-e/100;return ei(e=>({...e,active:!0,oldPrice:n,newPrice:t>0?t:0})),n-T.amountOff/100}}return n})();A(e=e&&e>0?e:0)},[_,T,A]),(0,n.tZ)(f.Provider,{value:{cart:_,addToCart:em,removeFromCart:ey,removePlaylistFromCart:eg,clearCart:()=>{S([]),ef(),V([]),Z(null),J(null),H(0),O(null),ew()},applyCoupon:ev,removeCoupon:ew,coupon:T,totalPrice:I,subTotal:R,licensePrices:N,discount:en,fetchUserPurchaseData:eu,hasAccess:D,creditsRemaining:F,subscriptionEndDate:B,subscriptionLabel:$,setHasAccess:M,setHasFetchedMetadata:q,loadingPrices:m,loadingUserMetadata:w,singleLicenses:W,userPurchaseData:X,activePurchase:G,setActivePurchase:J,refreshFlag:eo,selectedLicense:E,setLicense:k,matchNewVideosWithPurchase:e=>{if(!(null==X?void 0:X.length))return!1;for(let n of X){var t,r;if(null==n?void 0:null===(t=n.products)||void 0===t?void 0:t.length){for(let t of n.products)if(null==t?void 0:null===(r=t.videos)||void 0===r?void 0:r.length){for(let r of t.videos)if(void 0!==r&&e.includes(r))return(0,s.yv)("You have already purchased some videos. Please delete them and continue.",{variant:"error"}),!0}}}return!1},loadingState:K,fetchAllPrices:ec,couponLoading:x,setPurchaseData:ed,getCartToLocalStorage:ep,setPlanUpgrading:ee,isPlanUpgrading:Q,showCartToast:et},children:t})}},9965:function(e,t,r){"use strict";r.d(t,{Cn:function(){return m},TH:function(){return h},bX:function(){return g},qI:function(){return p}});var n=r(62364),i=r(67294),o=r(29496),s=r(47041),a=r(57632),l=r(9835),c=r(7877),u=r(81517),d=r(85918);let h=40,p=240,f=(0,i.createContext)(void 0),m=e=>{let{children:t}=e,{getCustomerByFirebaseId:r,updateCustomerInfo:h}=(0,d.a)(),[p,m]=(0,i.useState)([]),[g,y]=(0,i.useState)(null),[v,w]=(0,i.useState)({active:!1,message:""}),[b,_]=(0,i.useState)("");(0,i.useEffect)(()=>{_(localStorage.getItem("userLog"))},[]);let S=async()=>{let e=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),t=localStorage.getItem("userLog"),n=e?JSON.parse(e):void 0;if((null==n?void 0:n.firebase_id)||(t?JSON.stringify(t):null)||b)try{let e=await r(),t=await (null==e?void 0:e.collections),n=t?JSON.parse(t):[];m(n)}catch(e){console.error("Error fetching playlist: ",e),(0,o.yv)("Error fetching playlist",{variant:"error"})}};(0,i.useEffect)(()=>{w(e=>({...e,active:!0,message:"Getting favorites and playlist..."}));let e=(0,u.Aj)(c.I,async e=>{if(e)try{let e=await r(),t=null==e?void 0:e.collections,n=t?JSON.parse(t):[];m(n)}catch(e){console.error("Error fetching playlist: ",e),(0,o.yv)("Error fetching playlist",{variant:"error"})}});return w(e=>({...e,active:!1,message:""})),()=>e()},[b]);let E=e=>{y(e)},k=async(e,t)=>{var n;let i=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),l=i?JSON.parse(i):void 0,u=null==l?void 0:l.firebase_id,d=null==l?void 0:l.customer_id;if(w({active:!0,message:"Creating playlist..."}),(null===c.I||void 0===c.I?void 0:null===(n=c.I.currentUser)||void 0===n?void 0:n.uid)||u){let n={id:(0,a.Z)(),title:e,items:[],...(null==t?void 0:t.description)?{description:t.description}:{},...(null==t?void 0:t.coverImage)?{coverImage:t.coverImage}:{}};m(e=>[...e,n]);try{let e=await r(),t=null==e?void 0:e.collections,i=t?JSON.parse(t):[];i.push(n);let s={customer_id:d,firebase_id:u,collections:JSON.stringify(i)};await h(s),(0,o.yv)("Successfully created playlist",{variant:"success"})}catch(e){console.error("Error creating the playlist: ",e),(0,o.yv)("Error creating the playlist",{variant:"error"})}w({active:!1,message:""})}else(0,o.yv)("Error creating the playlist",{variant:"error"}),w({active:!1,message:""})},x=(0,i.useCallback)(async(e,t)=>{var n;let i=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),a=i?JSON.parse(i):void 0,l=null==a?void 0:a.firebase_id,u=null==a?void 0:a.customer_id;if(w({active:!0,message:"Adding item to playlist..."}),(null===c.I||void 0===c.I?void 0:null===(n=c.I.currentUser)||void 0===n?void 0:n.uid)||l){if(p.some(r=>r.id===e&&r.items.includes(t))){w({active:!1,message:""}),(0,o.yv)("Item already exists in the playlist",{variant:"info"});return}m(r=>r.map(r=>{if(r.id===e&&!r.items.includes(t)){let e=[...r.items,t];return{...r,items:e}}return r}));try{let n=await r(),i=null==n?void 0:n.collections,s=i?JSON.parse(i):[];if(s.some(r=>r.id===e&&r.items.includes(t)))(0,o.yv)("Item already exists in the playlist",{variant:"info"});else{let r=s.map(r=>r.id!==e||r.items.includes(t)?r:{...r,items:[...r.items,t]}),n={customer_id:u,firebase_id:l,collections:JSON.stringify(r)};await h(n),(0,o.yv)("Item added to the playlist",{variant:"success"})}}catch(e){console.error("Error adding the item to the playlist: ",e),(0,o.yv)("Error adding the item to the playlist",{variant:"error"})}w({active:!1,message:""}),E(null)}},[]),C=(0,i.useCallback)(async(e,t)=>{var n,i,a,l;let u=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),d=u?JSON.parse(u):void 0,p=null==d?void 0:d.firebase_id,f=null==d?void 0:d.customer_id;if(w({active:!0,message:"Removing item from playlist..."}),(null===c.I||void 0===c.I?void 0:null===(n=c.I.currentUser)||void 0===n?void 0:n.uid)||p){m(r=>r.map(r=>{if(r.id===e){let e=r.items.filter(e=>String(e)!==String(t));return{...r,items:e}}return r}));try{let n=await r(),i=null==n?void 0:n.collections,s=(i?JSON.parse(i):[]).map(r=>{if(r.id===e){let e=r.items.filter(e=>String(e)!==String(t));return{...r,items:e}}return r}),a={customer_id:f,firebase_id:p,collection_id:e,collections:JSON.stringify(s)};await h(a),(0,o.yv)("Item removed from the playlist",{variant:"success"})}catch(e){(0,o.yv)(null!==(l=null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(i=a.data)||void 0===i?void 0:i.message)&&void 0!==l?l:"Error removing the item from the playlist",{variant:"error"})}w({active:!1,message:""})}},[p]),T=(0,i.useCallback)(async e=>{var t;let n=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),i=n?JSON.parse(n):void 0,a=null==i?void 0:i.firebase_id,l=null==i?void 0:i.customer_id;if(w({active:!0,message:"Deleting playlist..."}),(null===c.I||void 0===c.I?void 0:null===(t=c.I.currentUser)||void 0===t?void 0:t.uid)||a){m(t=>t.filter(t=>t.id!==e));try{let t=await r(),n=null==t?void 0:t.collections,i=(n?JSON.parse(n):[]).filter(t=>t.id!==e),s={customer_id:l,firebase_id:a,collections:JSON.stringify(i)};await h(s),m(i),(0,o.yv)("Playlist deleted successfully",{variant:"success"})}catch(e){console.error("Error deleting the playlist: ",e),(0,o.yv)("Error deleting the playlist",{variant:"error"})}w({active:!1,message:""})}},[]),O=(0,i.useCallback)(async(e,t)=>{var n;let i=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),a=i?JSON.parse(i):void 0,l=null==a?void 0:a.firebase_id,u=null==a?void 0:a.customer_id;if(w({active:!0,message:"Updating playlist title..."}),(null===c.I||void 0===c.I?void 0:null===(n=c.I.currentUser)||void 0===n?void 0:n.uid)||l){m
143(r=>r.map(r=>r.id===e?{...r,title:t}:r));try{let n=await r(),i=null==n?void 0:n.collections,s=(i?JSON.parse(i):[]).map(r=>r.id===e?{...r,title:t}:r),a={customer_id:u,firebase_id:l,collections:JSON.stringify(s)};await h(a),(0,o.yv)("Playlist title updated successfully",{variant:"success"})}catch(e){console.error("Error updating the playlist title: ",e),(0,o.yv)("Error updating the playlist title",{variant:"error"})}w({active:!1,message:""})}},[]),I=(0,i.useCallback)(async(e,t)=>{var n;let i=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),a=i?JSON.parse(i):void 0,l=null==a?void 0:a.firebase_id,u=null==a?void 0:a.customer_id;if(w({active:!0,message:"Updating playlist..."}),(null===c.I||void 0===c.I?void 0:null===(n=c.I.currentUser)||void 0===n?void 0:n.uid)||l){m(r=>r.map(r=>r.id===e?{...r,...t}:r));try{let n=await r(),i=null==n?void 0:n.collections,s=(i?JSON.parse(i):[]).map(r=>r.id===e?{...r,...t}:r),a={customer_id:u,firebase_id:l,collections:JSON.stringify(s)};await h(a),(0,o.yv)("Playlist updated successfully",{variant:"success"})}catch(e){console.error("Error updating the playlist: ",e),(0,o.yv)("Error updating the playlist",{variant:"error"})}w({active:!1,message:""})}},[]),A=e=>{var t,r,n,i;return{playlistId:null!==(t=e.shareId)&&void 0!==t?t:null,title:e.title,description:null!==(r=e.description)&&void 0!==r?r:null,thumbnail:null!==(n=e.coverImage)&&void 0!==n?n:null,videoIds:(null!==(i=e.items)&&void 0!==i?i:[]).map(String)}},R=e=>{var t,r,n;return JSON.stringify({title:e.title,description:null!==(t=e.description)&&void 0!==t?t:"",cover:null!==(r=e.coverImage)&&void 0!==r?r:"",items:null!==(n=e.items)&&void 0!==n?n:[]})},P=async e=>{let{data:t}=await l.Z.post("/api/playlists/share",A(e));return t},N=async(e,t,n)=>{let i=await r(),o=(null==i?void 0:i.collections)?JSON.parse(i.collections):[],a=o.find(t=>t.id===e);if(!a||a.shareId===t&&a.shareSlug===n)return;let l=o.map(r=>r.id===e?{...r,shareId:t,shareSlug:n}:r),c=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),u=c?JSON.parse(c):void 0,d={customer_id:null==u?void 0:u.customer_id,firebase_id:null==u?void 0:u.firebase_id,collections:JSON.stringify(l)};await h(d),m(l);let p=l.find(t=>t.id===e);p&&(D.current[e]=R(p))},L=async e=>{try{let t=await r(),n=((null==t?void 0:t.collections)?JSON.parse(t.collections):[]).find(t=>t.id===e);if(!n)return null;let{id:i,slug:o}=await P(n);return await N(e,i,o),o}catch(e){return console.error("Error sharing playlist:",e),(0,o.yv)("Could not create the share link",{variant:"error"}),null}},D=(0,i.useRef)({});return(0,i.useEffect)(()=>{p.forEach(e=>{if(!e.shareId)return;let t=R(e),r=D.current[e.id];if(void 0===r){D.current[e.id]=t;return}r!==t&&(D.current[e.id]=t,P(e).then(t=>N(e.id,t.id,t.slug)).catch(()=>{}))})},[p]),(0,n.tZ)(f.Provider,{value:{collections:p,createCollection:k,addItemToCollection:x,removeItemFromCollection:C,deleteCollection:T,handleCollectionModal:E,updateCollectionTitle:O,updateCollection:I,sharePlaylist:L,activeCollectionId:g,loading:v,setCollections:m,fetchCollections:S},children:t})},g=()=>{let e=(0,i.useContext)(f);if(!e)throw Error("useCollections must be used within a CollectionsProvider");return e}},4066:function(e,t,r){"use strict";r.d(t,{c:function(){return h},r:function(){return p}});var n=r(62364),i=r(67294),o=r(29496),s=r(47041),a=r(7877),l=r(81517),c=r(85918);let u=(0,i.createContext)(void 0),d=e=>{if(!Array.isArray(e))return[];let t=new Set;for(let r of e){let e=Number(r);Number.isFinite(e)&&t.add(e)}return Array.from(t)},h=e=>{let{children:t}=e,{getCustomerByFirebaseId:r,updateCustomerInfo:h}=(0,c.a)(),[p,f]=(0,i.useState)([]),[m,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=(0,l.Aj)(a.I,async e=>{if(!e){g(!1);return}g(!0);try{let e=await r(),t=null==e?void 0:e.favorites,n=t?JSON.parse(t):[];f(d(n))}catch(e){console.error("An error occurred while fetching favorites: ",e)}finally{g(!1)}});return()=>e()},[]);let y=(0,i.useCallback)(async e=>{let t=(0,s.getCookie)("dbuser")||localStorage.getItem("dbuser"),r=t?JSON.parse(t):void 0,n=null==r?void 0:r.firebase_id,i=null==r?void 0:r.customer_id;if(n&&i){let t;try{let r;let s=Number(e),a=d(p);a.includes(s)?(r=a.filter(e=>e!==s),t=2):(r=[...a,s],t=1);let l=JSON.stringify(r);await h({customer_id:i,firebase_id:n,favorites:l}),f(r),1===t&&(0,o.yv)("Video added to favorites",{variant:"success"}),2===t&&(0,o.yv)("Video removed from favorites",{variant:"success"})}catch(e){console.error("An error happened while updating favorites: ",e),(0,o.yv)("An error happened while updating favorites",{variant:"error"})}}},[p]);return(0,n.tZ)(u.Provider,{value:{favorites:p,toggleFavorite:y,loadingfavorites:m},children:t})},p=()=>{let e=(0,i.useContext)(u);if(!e)throw Error("useFavorites must be used within a FavoritesProvi
143der");return e}},8842:function(e,t,r){"use strict";r.d(t,{AB:function(){return u},X$:function(){return d}});var n=r(62364),i=r(67294),o=r(11163),s=r(25938),a=r(92729),l=r(93673);let c=(0,i.createContext)(void 0);function u(){let e=(0,i.useContext)(c);if(void 0===e)throw Error("useSearchContext must be used within a SearchProvider");return e}let d=e=>{let{children:t}=e,[r,u]=(0,i.useState)(0),[d,h]=(0,i.useState)(24),[p,f]=(0,i.useState)(""),[m,g]=(0,i.useState)(""),[y,v]=(0,i.useState)({all_videos_lat_long:[],videos:[]}),[w,b]=(0,i.useState)({all_videos_lat_long:[],videos:[]}),[_,S]=(0,i.useState)(null),[E,k]=(0,i.useState)({all_videos_lat_long:[],videos:[]}),[x,C]=(0,i.useState)(0),[T,O]=(0,i.useState)(!1),[I,A]=(0,i.useState)([]),[R,P]=(0,i.useState)(null),[N,L]=(0,i.useState)(null),[D,M]=(0,i.useState)(!1),B=(0,o.useRouter)(),j="/search"===B.pathname&&(0,l.MT)((0,l.E_)(B.query));(0,i.useEffect)(()=>{if(D){let e=setTimeout(()=>{M(!1)},2e3);return()=>clearTimeout(e)}},[D]);let $=async()=>{console.log("⚠️ fetchDefaultData CALLED");try{if(j)return;let t=function(){let e=0,t=2*s.je.length;for(;e<t;){var r;let t=Math.floor(Math.random()*s.je.length),n=s.je[t],i=localStorage.getItem("currentCityIndex");if(null===i)return localStorage.setItem("currentCityIndex",JSON.stringify(t)),n;let o=JSON.parse(i);if(t!==o&&(null==n?void 0:n.latitude)!==(null===(r=s.je[o])||void 0===r?void 0:r.latitude))return localStorage.setItem("currentCityIndex",JSON.stringify(t)),n;e++}return console.error("Could not find a unique city after maximum attempts."),null}();if(!t)return;S(t);let{data:r}=await a.Z.get("/api/media/search",{params:t});if(r){var e;b({all_videos_lat_long:null!==(e=null==r?void 0:r.all_videos_lat_long)&&void 0!==e?e:[],videos:[]})}}catch(e){}},U=(0,i.useMemo)(()=>({results:y,setResults:v,locationSearchTerm:m,setLocationSearchTerm:g,searchTerm:p,setSearchTerm:f,finalResults:E,setFinalResults:k,loading:T,setLoading:O,trending:I,setTrending:A,selectedItem:R,setSelectedItem:P,setError:L,error:N,searchOffset:r,setSearchOffset:u,searchLimit:d,setSearchLimit:h,totalResults:x,setTotalResults:C,setClosePurchaseModal:M,closePurchaseModal:D,fetchDefaultData:$,defaultMapData:w,defaultMapCity:_}),[y,m,p,E,T,I,R,N,r,d,x,D,$,w,_]);return(0,n.tZ)(c.Provider,{value:U,children:t})}},46347:function(e,t,r){"use strict";r.d(t,{O9:function(){return n},W0:function(){return o},cp:function(){return i}});let n={brand:{turquoise:"#3fd6d6",purple:"#6c63ff",pink:"#ff0080",white:"#ffffff"},text:{primary:"#111827",secondary:"#4b5563",muted:"#6b7280",inverse:"#ffffff"},background:{page:"#ffffff",soft:"#f7f7fb",panel:"#ffffff"},border:{soft:"rgba(17, 24, 39, 0.06)",medium:"rgba(17, 24, 39, 0.1
143)",purpleSoft:"rgba(108, 99, 255, 0.18)",purpleMedium:"rgba(108, 99, 255, 0.24)",pinkSoft:"rgba(255, 0, 138, 0.32)"},shadow:{soft:"rgba(15, 23, 42, 0.08)",medium:"rgba(15, 23, 42, 0.12)",strong:"rgba(15, 23, 42, 0.14)",pink:"rgba(255, 0, 138, 0.18)",pinkHover:"rgba(255, 0, 138, 0.26)"}},i={fontFamily:{primary:'"Sofia Pro", sans-serif'},hero:{eyebrow:"1rem",title:"clamp(4.2rem, 4.4vw, 5.6rem)",titleMobile:"clamp(3.4rem, 10vw, 4.4rem)",body:"1.6rem",bodyMobile:"1.5rem"},section:{eyebrow:"1.1rem",title:"clamp(2.8rem, 4vw, 4rem)",titleMobile:"clamp(2.6rem, 9vw, 3.4rem)",body:"1.5rem",bodyMobile:"1.4rem"},body:{xs:"1.1rem",sm:"1.3rem",md:"1.5rem",lg:"1.6rem",xl:"1.8rem"},button:{sm:"1.2rem",md:"1.4rem",lg:"1.5rem"},weight:{medium:500,semibold:600,bold:700},lineHeight:{tight:1.06,heading:1.15,body:1.55}},o={pageX:"24px",pageXTablet:"20px",pageXMobile:"16px",maxWidth:"1280px",maxWidthTight:"1180px",sectionY:"88px",sectionYMobile:"64px",heroTop:"48px",heroTopTablet:"40px",heroTopMobile:"32px",heroBottom:"88px",heroBottomTablet:"64px",heroBottomMobile:"48px",dashboardMaxWidth:"100%",dashboardNarrowWidth:"760px",dashboardPageTop:"40px",dashboardPageBottom:"64px",dashboardPageGap:"32px",dashboardSectionGap:"28px",dashboardCardGap:"20px",dashboardContentGap:"24px",cardPadding:"24px",cardPaddingCompact:"20px",cardPaddingMobile:"16px",formGap:"20px",formGroupGap:"12px",formFieldGap:"8px",buttonGap:"12px",inlineGap:"8px",radiusCard:"8px",radiusPanel:"8px",radiusInput:"8px",radiusButton:"8px"}},59519:function(e,t,r){"use strict";r.d(t,{dS:function(){return m},Fy:function(){return p},qP:function(){return f},Lf:function(){return g},oP:function(){return y}});var n=r(62364),i=r(83454);let o={about:"/about",advancedsearch:"/advancedsearch",baseRoute:i.env.NS_BASE_URL,cart:"/cart",checkout:"/checkout",contact:"/contact",dashboard:{baseRoute:"/dashboard",subRoutes:{downloads:"/downloads",favorites:"/favorites",settings:"/settings",subRoutes:{account:"/account",billing:"/billing",user:"/user"}}},details:"/details",preview:"/preview",download:"/download",faq:"/faq",home:"/",nextApi:{videos:"/api/media/videos"},privacy:"/privacy",resetPassword:"/reset-password",search:"/search",signIn:"/sign-in",signUp:"/sign-up",terms:"/terms",thankYou:"/thank-you",webApi:{baseRoute:"".concat(i.env.NS_API_URL,"/api"),subRoutes:{media:{baseRoute:"/media",subRoutes:{videos:"/videos"}}},getIP:"https://api.ipify.org/?format=json"}};
143var s=r(86455),a=r.n(s),l=r(85717),c=r(29496),u=r(41664),d=r.n(u);let h=o.baseRoute,p=()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Organization",legalName:"NaviSavi Inc.",name:"NaviSavi",url:"https://www.navisavitravel.com",logo:"https://www.navisavitravel.com/favicon.ico",description:"NaviSavi is the world's leading travel video licensing platform, offering 250k+ authentic UGC travel videos across 180+ destinations, rights-cleared and ready to deploy.",contactPoint:{"@type":"ContactPoint",email:"[email protected]",contactType:"sales"},sameAs:["https://www.facebook.com/navisavitravel/","https://twitter.com/navisavitravel","https://www.instagram.com/navisavitravel/","https://www.linkedin.com/company/navisavi","https://www.pinterest.com/navisavitravel/"]},{"@type":"WebSite",name:"NaviSavi",url:h,description:"Search 250k+ authentic, rights-cleared UGC travel videos across 180+ destinations.",potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"".concat(h,"/search?q={search_term_string}")},"query-input":"required name=search_term_string"}}]}),f=e=>JSON.stringify({"@context":"https://schema.org","@type":"VideoObject",name:e.title,description:"".concat(e.description," — ").concat(e.location_name),thumbnailUrl:e.thumbnail,contentUrl:e.standard_res_file,embedUrl:e.preview_file,uploadDate:new Date().toISOString().split("T")[0],publisher:{"@type":"Organization",name:"NaviSavi",url:"https://www.navisavitravel.com"},license:"https://www.navisavitravel.com/pricing",acquireLicensePage:"https://www.navisavitravel.com/video/".concat(e.id),locationCreated:{"@type":"Place",name:e.location_name}}),m=e=>{let t=e.split("/").filter(Boolean),r="",n=t.map((e,t)=>(r+="/".concat(e),{"@type":"ListItem",position:t+2,item:{"@id":"".concat(h).concat(r),name:e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}}));return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,item:{"@type":"Thing","@id":h,name:"Home",image:""}},...n]}},g=async(e,t,r)=>await a().fire({title:e,text:t,icon:"warning",showCancelButton:!0,confirmButtonColor:l.Z.naviPurple.main,cancelButtonColor:l.Z.naviPink.main,confirmButtonText:r}),y=e=>{e&&(null==e?void 0:e.credits_remaining)==0?(0,c.yv)("You have consumed 100% of your current plan, you can upgrade it now!",{preventDuplicate:!0,variant:"warning",action:v}):e&&(null==e?void 0:e.credits_remaining)>0&&(null==e?void 0:e.credits_remaining)/(null==e?void 0:e.credits)*100<=10&&(0,c.yv)("You have consumed 90% of your current plan, you can upgrade it now!",{preventDuplicate:!0,variant:"warning",action:v})},v=()=>(0,n.tZ)(d(),{href:"/dashboard/settings/account?section=Active%20Plans",style:{textDecoration:"none",fontSize:"1.6rem",fontWeight:"600"},children:"Upgrade Plan"})},7877:function(e,t,r){"use strict";r.d(t,{I:function(){return s}});var n=r(25816);/**
144 * @license
145 * Copyright 2020 Google LLC
146 *
147 * Licensed under the Apache License, Version 2.0 (the "License");
148 * you may not use this file except in compliance with the License.
149 * You may obtain a copy of the License at
150 *
151 *   http://www.apache.org/licenses/LICENSE-2.0
152 *
153 * Unless required by applicable law or agreed to in writing, software
154 * distributed under the License is distributed on an "AS IS" BASIS,
155 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
156 * See the License for the specific language governing permissions and
157 * limitations under the License.
158 */(0,n.KN)("firebase","10.14.1","app");var i=r(81517);let o=(0,n.ZF)({apiKey:"AIzaSyDO0MyXg-fzwckxWNlTCP5_ykjCoJEtwRM",authDomain:"navisavi-shineforth.firebaseapp.com",projectId:"navisavi-shineforth",storageBucket:"navisavi-shineforth.appspot.com",messagingSenderId:"748793378120",appId:"1:748793378120:web:819240bd647b3ea4faef7d",measurementId:"G-308KPDTYVT"}),s=(0,i.v0)(o)},98493:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n=r(7877),i=r(81517),o=r(47041);let s=async(e,t)=>{try{localStorage.removeItem("dbuser"),localStorage.removeItem("userLog"),(0,o.deleteCookie)("dbuser"),(0,o.deleteCookie)("token"),(0,o.deleteCookie)("userLog"),(0,o.deleteCookie)("customer_id"),await t(),await (0,i.w7)(n.I),e.push("/")}catch(e){console.error("Logout error:",e)}}},9835:function(e,t,r){"use strict";var n=r(92729),i=r(7877),o=r(39424),s=r(22283),a=r(25938);let l=n.Z.create();l.interceptors.request.use(async e=>{try{if(null===a.RR||void 0===a.RR?void 0:a.RR.some(t=>{var r;return null==e?void 0:null===(r=e.url)||void 0===r?void 0:r.startsWith(t)})){let t=await i.I.currentUser;if(!t||!(null==t?void 0:t.uid))return Promise.reject(Error("No authenticated user"));let r=await t.getIdToken(!1);e.headers.Authorization="Bearer ".concat(r);let n=await (0,s.H)(null==t?void 0:t.uid);e.headers["X-Custom-Secret"]=n}return e}catch(e){return o.Tb(e),Promise.reject(e)}},e=>(o.Tb(e),Promise.reject(e))),l.interceptors.response.use(e=>e,e=>(o.Tb(e),Promise.reject(e))),t.Z=l},22283:function(e,t,r){"use strict";r.d(t,{H:function(){return o},p:function(){return s}});var n=r(81354),i=r.n(n);function o(e){let t="32d8f9c2b7e5fc4e49d25f94b16773ff8c46a7bcbda554eb8e5f43bb1387c8c4";
158return t?i().AES.encrypt(e,t).toString(i().format.OpenSSL):""}function s(e){let t="32d8f9c2b7e5fc4e49d25f94b16773ff8c46a7bcbda554eb8e5f43bb1387c8c4";return t?i().AES.decrypt(e,t).toString(i().enc.Utf8):""}},35667:function(){},1192:function(e){e.exports={style:{fontFamily:"'__SofiaPro_4df8e3', '__SofiaPro_Fallback_4df8e3'"},className:"__className_4df8e3",variable:"__variable_4df8e3"}},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l=[],c=!1,u=-1;function d(){c&&n&&(c=!1,n.length?l=n.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(n=l,l=[];++u<t;)n&&n[u].run();u=-1,t=l.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,n),s=!1}finally{s&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},9008:function(e,t,r){e.exports=r(7828)},41664:function(e,t,r){e.exports=r(89577)},11163:function(e,t,r){e.exports=r(9090)},4298:function(e,t,r){e.exports=r(32892)},29496:function(e,t,r){"use strict";r.d(t,{pk:function(){return eb},wT:function(){return eT},yv:function(){return c}});var n,i,o,s,a,l,c,u=r(67294),d=r(73935),h=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(n&&(n+=" "),n+=t);return n};let p={data:""},f=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||p},m=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,g=/\/\*[^]*?\*\/|  +/g,y=/\n+/g,v=(e,t)=>{let r="",n="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+s+";":n+="f"==o[1]?v(s,o):o+"{"+v(s,"k"==o[1]?"":t)+"}":"object"==typeof s?n+=v(s,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=s&&(o="-"==o[1]?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=v.p?v.p(o,s):o+":"+s+";")}return r+(t&&i?t+"{"+i+"}":i)+n},w={},b=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+b(e[r]);return t}return e},_=(e,t,r,n,i)=>{var o;let s=b(e),a=w[s]||(w[s]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(s));if(!w[a]){let t=s!==e?e:(e=>{let t,r,n=[{}];for(;t=m.exec(e.replace(g,""));)t[4]?n.shift():t[3]?(r=t[3].replace(y," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(y," ").trim();return n[0]})(e);w[a]=v(i?{["@keyframes "+a]:t}:t,r?"":"."+a)}let l=r&&w.g;
158return r&&(w.g=w[a]),o=w[a],l?t.data=t.data.replace(l,o):-1===t.data.indexOf(o)&&(t.data=n?o+t.data:t.data+o),a},S=(e,t,r)=>e.reduce((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":v(e,""):!1===e?"":e}return e+n+(null==o?"":o)},"");function E(e){let t=this||{},r=e.call?e(t.p):e;return _(r.unshift?r.raw?S(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,f(t.target),t.g,t.o,t.k)}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t,r){return t&&k(e.prototype,t),r&&k(e,r),e}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function T(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function O(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function I(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}E.bind({g:1}),E.bind({k:1});var A=function(){return""},R=u.createContext({enqueueSnackbar:A,closeSnackbar:A}),P="@media (max-width:599.95px)",N="@media (min-width:600px)",L=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},D=function(e){return""+L(e.vertical)+L(e.horizontal)},M=function(e){return!!e||0===e},B="unmounted",j="exited",$="entering",U="entered",F="exiting",H=function(e){function t(t){r=e.call(this,t)||this;var r,n,i=t.appear;return r.appearStatus=null,t.in?i?(n=j,r.appearStatus=$):n=U:n=t.unmountOnExit||t.mountOnEnter?B:j,r.state={status:n},r.nextCallback=null,r}T(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===B?{status:j}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==$&&r!==U&&(t=$):(r===$||r===U)&&(t=F)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,t=e,r=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(r=e.exit,t=e.enter),{exit:r,enter:t}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===$?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===j&&this.setState({status:B})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.getTimeouts();if(!e&&!r){this.safeSetState({status:U},function(){t.props.onEntered&&t.props.onEntered(t.node,e)});return}this.props.onEnter&&this.props.onEnter(this.node,e),this.safeSetState({status:$},function(){t.props.onEntering&&t.props.onEntering(t.node,e),t.onTransitionEnd(n.enter,function(){t.safeSetState({status:U},function(){t.props.onEntered&&t.props.onEntered(t.node,e)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts();if(!t){this.safeSetState({status:j},function(){e.props.onExited&&e.props.onExited(e.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:F},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:j},function(){e.props.onExited&&e.props.onExited(e.node)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(){r&&(r=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=null==e&&!this.props.addEndListener;if(!this.node||r){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===B)return null;var t=this.props;return(0,t.children)(e,O(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},x(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(u.Component);function z(){}function q(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function W(e,t){return(0,u.useMemo)(function(){return null==e&&null==t?null:function(r){q(e,r),q(t,r)}},[e,t])}function V(e){var t=e.timeout,r=e.style,n=void 0===r?{}:r,i=e.mode;return{duration:"object"==typeof t?t[i]||0:t,easing:n.transitionTimingFunction,delay:n.transitionDelay}}H.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
158:!0,exit:!0,onEnter:z,onEntering:z,onEntered:z,onExit:z,onExiting:z,onExited:z};var G={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},J=function(e){e.scrollTop=e.scrollTop},X=function(e){return Math.round(e)+"ms"};function Z(e,t){void 0===e&&(e=["all"]);var r=t||{},n=r.duration,i=void 0===n?300:n,o=r.easing,s=void 0===o?G.easeInOut:o,a=r.delay,l=void 0===a?0:a;return(Array.isArray(e)?e:[e]).map(function(e){return e+" "+("string"==typeof i?i:X(i))+" "+s+" "+("string"==typeof l?l:X(l))}).join(",")}function K(e){return(e&&e.ownerDocument||document).defaultView||window}function Y(e,t){if(t){var r=function(e,t){var r,n=t.getBoundingClientRect(),i=K(t);if(t.fakeTransform)r=t.fakeTransform;else{var o=i.getComputedStyle(t);r=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var s=0,a=0;if(r&&"none"!==r&&"string"==typeof r){var l=r.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),a=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(i.innerWidth+s-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-s)+"px)";case"up":return"translateY("+(i.innerHeight+a-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-a)+"px)"}}(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var Q=(0,u.forwardRef)(function(e,t){var r=e.children,n=e.direction,i=void 0===n?"down":n,o=e.in,s=e.style,a=e.timeout,l=void 0===a?0:a,c=e.onEnter,d=e.onEntered,h=e.onExit,p=e.onExited,f=O(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,u.useRef)(null),g=W(r.ref,m),y=W(g,t),v=(0,u.useCallback)(function(){m.current&&Y(i,m.current)},[i]);return(0,u.useEffect)(function(){if(!o&&"down"!==i&&"right"!==i){var e=function(e,t){var r;function n(){for(var n=this,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];clearTimeout(r),r=setTimeout(function(){e.apply(n,o)},t)}return void 0===t&&(t=166),n.clear=function(){clearTimeout(r)},n}(function(){m.current&&Y(i,m.current)}),t=K(m.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}},[i,o]),(0,u.useEffect)(function(){o||v()},[o,v]),(0,u.createElement)(H,Object.assign({appear:!0,nodeRef:m,onEnter:function(e,t){Y(i,e),J(e),c&&c(e,t)},onEntered:d,onEntering:function(e){var t=(null==s?void 0:s.transitionTimingFunction)||G.easeOut,r=V({timeout:l,mode:"enter",style:C({},s,{transitionTimingFunction:t})});e.style.webkitTransition=Z("-webkit-transform",r),e.style.transition=Z("transform",r),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==s?void 0:s.transitionTimingFunction)||G.sharp,r=V({timeout:l,mode:"exit",style:C({},s,{transitionTimingFunction:t})});e.style.webkitTransition=Z("-webkit-transform",r),e.style.transition=Z("transform",r),Y(i,e),h&&h(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",p&&p(e)},in:o,timeout:l},f),function(e,t){return(0,u.cloneElement)(r,C({ref:y,style:C({visibility:"exited"!==e||o?void 0:"hidden"},s,{},r.props.style)},t))})});Q.displayName="Slide";var ee=function(e){return u.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},et={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:u.createElement(function(){return u.createElement(ee,null,u.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n        10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},null),warning:u.createElement(function(){return u.createElement(ee,null,u.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:u.createElement(function(){return u.createElement(ee,null,u.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},null),info:u.createElement(function(){return u.createElement(ee,null,u.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n        0 22,12A10,10 0 0,0 12,2Z"}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Q,transitionDuration:{enter:225,exit:195}},er=function(e,t){var r=function(e){return"number"==typeof e||null===e};return r(e)?e:r(t)?t:et.autoHideDuration},en=function(e,t){var r=function(e,t){return t.some(function(t){return typeof e===t})};return r(e,["string","number"])?e:r(e,["object"])?C({},et.transitionDuration,{},r(t,["object"])&&t,{},e):r(t,["string","number"])?t:r(t,["object"])?C({},et.transitionDuration,{},t):et.transitionDuration};function ei(e){return Object.entries(e).reduce(function(e,t){var r,n=t[0],i=t[1];return C({},e,((r={})[n]=E(i),r))},{})}var eo="notistack-CollapseWrapper",es=ei({root:{height:0},entered:{height:"auto"}}),ea=(0,u.forwardRef)(function(e,t){var r=e.children,n=e.in,i=e.onExited,o=(0,u.useRef)(null),s=(0,u.useRef)(null),a=W(t,s),l=function(){return o.current?o.current.clientHeight:0};return(0,u.createElement)(H,{in:n,unmountOnExit:!0,onEnter:function(e){e.style.height="0px"},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=l(),r=V({timeout:175,mode:"enter"}),n=r.duration,i=r.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=i||""},onExit:function(e){e.style.height=l()+"px"},onExited:i,onExiting:function(e){J(e);var t=V({timeout:175,mode:"exit"}),r=t.duration,n=t.easing;e.style.transitionDuration="string"==typeof r?r:r+"ms",e.style.height="0px",e.style.transitionTimingFunction=n||""},nodeRef:s,timeout:175},function(e,t){return(0,u.createElement)("div",Object.assign({ref:a,className:h(es.root,"entered"===e&&es.entered),style:C({pointerEvents:"all",overflow:"hidden",minHeight:"0px",transition:Z("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!n&&{visibility:"hidden"})},t),(0,u.createElement)("div",{ref:o,className:eo,style:{display:"flex",width:"100%"}},r))})});ea.displayName="Collapse";
158var el={right:"left",left:"right",bottom:"up",top:"down"},ec=function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(e){return!t[e]}).reduce(function(t,r){var n;return C({},t,((n={})[r]=e[r],n))},{})},eu=function(){};function ed(e,t){return e.reduce(function(e,r){return null==r?e:function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=[].concat(i);t&&-1===s.indexOf(t)&&s.push(t),e.apply(this,s),r.apply(this,s)}},eu)}var eh="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function ep(e){var t=(0,u.useRef)(e);return eh(function(){t.current=e}),(0,u.useCallback)(function(){return t.current.apply(void 0,arguments)},[])}var ef=(0,u.forwardRef)(function(e,t){var r=e.children,n=e.className,i=e.autoHideDuration,o=e.disableWindowBlurListener,s=void 0!==o&&o,a=e.onClose,l=e.id,c=e.open,d=e.SnackbarProps,p=void 0===d?{}:d,f=(0,u.useRef)(),m=ep(function(){a&&a.apply(void 0,arguments)}),g=ep(function(e){a&&null!=e&&(f.current&&clearTimeout(f.current),f.current=setTimeout(function(){m(null,"timeout",l)},e))});(0,u.useEffect)(function(){return c&&g(i),function(){f.current&&clearTimeout(f.current)}},[c,i,g]);var y=function(){f.current&&clearTimeout(f.current)},v=(0,u.useCallback)(function(){null!=i&&g(.5*i)},[i,g]);return(0,u.useEffect)(function(){if(!s&&c)return window.addEventListener("focus",v),window.addEventListener("blur",y),function(){window.removeEventListener("focus",v),window.removeEventListener("blur",y)}},[s,v,c]),(0,u.createElement)("div",Object.assign({ref:t},p,{className:h("notistack-Snackbar",n),onMouseEnter:function(e){p.onMouseEnter&&p.onMouseEnter(e),y()},onMouseLeave:function(e){p.onMouseLeave&&p.onMouseLeave(e),v()}}),r)});ef.displayName="Snackbar";var em=ei({root:((n={display:"flex",flexWrap:"wrap",flexGrow:1})[N]={flexGrow:"initial",minWidth:"288px"},n)}),eg=(0,u.forwardRef)(function(e,t){var r=e.className,n=O(e,["className"]);return u.createElement("div",Object.assign({ref:t,className:h(em.root,r)},n))});eg.displayName="SnackbarContent";var ey=ei({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),ev="notistack-snackbar",ew=(0,u.forwardRef)(function(e,t){var r=e.id,n=e.message,i=e.action,o=e.iconVariant,s=e.variant,a=e.hideIconVariant,l=e.style,c=e.className,d=o[s],p=i;return"function"==typeof p&&(p=p(r)),u.createElement(eg,{ref:t,role:"alert","aria-describedby":ev,style:l,className:h("notistack-MuiContent","notistack-MuiContent-"+s,ey.root,ey[s],c,!a&&d&&ey.lessPadding)},u.createElement("div",{id:ev,className:ey.message},a?null:d,n),p&&u.createElement("div",{className:ey.action},p))});ew.displayName="MaterialDesignContent";var eb=(0,u.memo)(ew),e_=ei({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),eS=function(e){var t,r=(0,u.useRef)(),n=(0,u.useState)(!0),i=n[0],o=n[1],s=ed([e.snack.onClose,e.onClose]),a=(0,u.useCallback)(function(){r.current=setTimeout(function(){o(function(e){return!e})},125)},[]);(0,u.useEffect)(function(){return function(){r.current&&clearTimeout(r.current)}},[]);var l=e.snack,c=e.classes,d=e.Component,p=(0,u.useMemo)(function(){return ec(c)},[c]),f=l.open,m=l.SnackbarProps,g=l.TransitionComponent,y=l.TransitionProps,v=l.transitionDuration,w=l.disableWindowBlurListener,b=l.content,_=O(l,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),S=C({direction:"center"!==(t=_.anchorOrigin).horizontal?el[t.horizontal]:el[t.vertical],timeout:v},y),E=b;"function"==typeof E&&(E=E(_.id,_.message));var k=["onEnter","onEntered","onExit","onExited"].reduce(function(t,r){var n;return C({},t,((n={})[r]=ed([e.snack[r],e[r]],_.id),n))},{});return u.createElement(ea,{in:i,onExited:k.onExited},u.createElement(ef,{open:f,id:_.id,disableWindowBlurListener:w,autoHideDuration:_.autoHideDuration,className:h(e_.wrappedRoot,p.root,p["anchorOrigin"+D(_.anchorOrigin)]),SnackbarProps:m,onClose:s},u.createElement(g,Object.assign({},S,{appear:!0,in:f,onExit:k.onExit,onExited:a,onEnter:k.onEnter,onEntered:ed([k.onEntered,function(){e.snack.requestClose&&s(null,"instructed",e.snack.id)}],_.id)}),E||u.createElement(void 0===d?eb:d,Object.assign({},_)))))},eE="."+eo,ek=ei({root:((i={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Z(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"})[eE]={padding:"6px 0px",transition:"padding 300ms ease 0ms"},i.maxWidth="calc(100% - 40px)",i[P]={width:"100%",maxWidth:"calc(100% - 32px)"},i),rootDense:((o={})[eE]={padding:"2px 0px"},o),top:{top:"14px",flexDirection:"column"},bottom:{bottom:"14px",flexDirection:"column-reverse"},left:((s={left:"20px"})[N]={alignItems:"flex-start"},s[P]={left:"16px"},s),right:((a={right:"20px"})[N]={alignItems:"flex-end"},a[P]={right:"16px"},a),center:((l={left:"50%",transform:"translateX(-50%)"})[N]={alignItems:"center"},l)}),ex=(0,u.memo)(function(e){var t=e.classes,r=void 0===t?{}:t,n=e.anchorOrigin,i=e.dense,o=e.children,s=h("notistack-SnackbarContainer",ek[n.vertical],ek[n.horizontal],ek.root,r.containerRoot,r["containerAnchorOrigin"+D(n)],i&&ek.rootDense);return u.createElement("div",{className:s},o)}
158),eC=function(e){return!("string"==typeof e||(0,u.isValidElement)(e))},eT=function(e){function t(t){var r;return(r=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw Error("enqueueSnackbar called with invalid argument");var n,i=eC(e)?e:t,o=eC(e)?e.message:e,s=i.key,a=i.preventDuplicate,l=O(i,["key","preventDuplicate"]),c=M(s),u=c?s:new Date().getTime()+Math.random(),d=(n=r.props,function(e,t){return(void 0===t&&(t=!1),t)?C({},et[e],{},n[e],{},l[e]):"autoHideDuration"===e?er(l.autoHideDuration,n.autoHideDuration):"transitionDuration"===e?en(l.transitionDuration,n.transitionDuration):l[e]||n[e]||et[e]}),p=C({id:u},l,{message:o,open:!0,entered:!1,requestClose:!1,persist:d("persist"),action:d("action"),content:d("content"),variant:d("variant"),anchorOrigin:d("anchorOrigin"),disableWindowBlurListener:d("disableWindowBlurListener"),autoHideDuration:d("autoHideDuration"),hideIconVariant:d("hideIconVariant"),TransitionComponent:d("TransitionComponent"),transitionDuration:d("transitionDuration"),TransitionProps:d("TransitionProps",!0),iconVariant:d("iconVariant",!0),style:d("style",!0),SnackbarProps:d("SnackbarProps",!0),className:h(r.props.className,l.className)});return p.persist&&(p.autoHideDuration=void 0),r.setState(function(e){if(void 0===a&&r.props.preventDuplicate||a){var t=function(e){return c?e.id===u:e.message===o},n=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(n||i)return e}return r.handleDisplaySnack(C({},e,{queue:[].concat(e.queue,[p])}))}),u},r.handleDisplaySnack=function(e){return e.snacks.length>=r.maxSnack?r.handleDismissOldest(e):r.processQueue(e)},r.processQueue=function(e){var t=e.queue,r=e.snacks;return t.length>0?C({},e,{snacks:[].concat(r,[t[0]]),queue:t.slice(1,t.length)}):e},r.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,n=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===r.maxSnack&&(n=!0);var i=e.snacks.map(function(e){return t||e.persist&&!n?C({},e):(t=!0,e.entered)?(e.onClose&&e.onClose(null,"maxsnack",e.id),r.props.onClose&&r.props.onClose(null,"maxsnack",e.id),C({},e,{open:!1})):C({},e,{requestClose:!0})});return C({},e,{snacks:i})},r.handleEnteredSnack=function(e,t,n){if(!M(n))throw Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(e){return{snacks:e.snacks.map(function(e){return e.id===n?C({},e,{entered:!0}):C({},e)})}})},r.handleCloseSnack=function(e,t,n){r.props.onClose&&r.props.onClose(e,t,n);var i=void 0===n;r.setState(function(e){var t=e.snacks,r=e.queue;return{snacks:t.map(function(e){return i||e.id===n?e.entered?C({},e,{open:!1}):C({},e,{requestClose:!0}):C({},e)}),queue:r.filter(function(e){return e.id!==n})}})},r.closeSnackbar=function(e){var t=r.state.snacks.find(function(t){return t.id===e});M(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),r.handleCloseSnack(null,"instructed",e)},r.handleExitedSnack=function(e,t){if(!M(t))throw Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(e){var n=r.processQueue(C({},e,{snacks:e.snacks.filter(function(e){return e.id!==t})}));return 0===n.queue.length?n:r.handleDismissOldest(n)})},c=r.enqueueSnackbar,r.closeSnackbar,r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar.bind(I(r)),closeSnackbar:r.closeSnackbar.bind(I(r))}},r}return T(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,r=this.props,n=r.domRoot,i=r.children,o=r.dense,s=void 0!==o&&o,a=r.Components,l=void 0===a?{}:a,c=r.classes,h=this.state.snacks.reduce(function(e,t){var r,n=D(t.anchorOrigin),i=e[n]||[];return C({},e,((r={})[n]=[].concat(i,[t]),r))},{}),p=Object.keys(h).map(function(t){var r=h[t],n=r[0];return u.createElement(ex,{key:t,dense:s,anchorOrigin:n.anchorOrigin,classes:c},r.map(function(t){return u.createElement(eS,{key:t.id,snack:t,classes:c,Component:l[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:ed([e.handleExitedSnack,e.props.onExited],t.id),onEntered:ed([e.handleEnteredSnack,e.props.onEntered],t.id)})}))});return u.createElement(R.Provider,{value:t},i,n?(0,d.createPortal)(p,n):p)},x(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||et.maxSnack}}]),t}(u.Component)},69921:function(e,t){"use strict";/** @license React v16.13.1
159 * react-is.production.min.js
160 *
161 * Copyright (c) Facebook, Inc. and its affiliates.
162 *
163 * This source code is licensed under the MIT license found in the
164 * LICENSE file in the root directory of this source tree.
165 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||_(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===w||e.$$typeof===b||e.$$typeof===y)},t.typeOf=_},59864:function(e,t,r){"use strict";e.exports=r(69921)},15437:function(e,t,r){"use strict";r.d(t,{f6:function(){return tu},vJ:function(){return t_},iv:function(){return ty},ZP:function(){return tw},F4:function(){return tE}});var n,i,o,s=r(67294),a="-ms-",l="-moz-",c="-webkit-",u="comm",d="rule",h="decl",p="@ke
165yframes",f=Math.abs,m=String.fromCharCode,g=Object.assign;function y(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,r){return e.replace(t,r)}function w(e,t,r){return e.indexOf(t,r)}function b(e,t){return 0|e.charCodeAt(t)}function _(e,t,r){return e.slice(t,r)}function S(e){return e.length}function E(e,t){return t.push(e),e}function k(e,t){return e.filter(function(e){return!y(e,t)})}var x=1,C=1,T=0,O=0,I=0,A="";function R(e,t,r,n,i,o,s,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:x,column:C,length:s,return:"",siblings:a}}function P(e,t){return g(R("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function N(e){for(;e.root;)e=P(e.root,{children:[e]});E(e,e.siblings)}function L(){return I=O<T?b(A,O++):0,C++,10===I&&(C=1,x++),I}function D(){return b(A,O)}function M(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function B(e){var t,r;return(t=O-1,r=function e(t){for(;L();)switch(I){case t:return O;case 34:case 39:34!==t&&39!==t&&e(I);break;case 40:41===t&&e(t);break;case 92:L()}return O}(91===e?e+2:40===e?e+1:e),_(A,t,r)).trim()}function j(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function $(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case h:return e.return=e.return||e.value;case u:return"";case p:return e.return=e.value+"{"+j(e.children,n)+"}";case d:if(!S(e.value=e.props.join(",")))return""}return S(r=j(e.children,n))?e.return=e.value+"{"+r+"}":""}function U(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h:e.return=function e(t,r,n){var i;switch(i=r,45^b(t,0)?(((i<<2^b(t,0))<<2^b(t,1))<<2^b(t,2))<<2^b(t,3):0){case 5103:return c+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return c+t+t;case 4855:return c+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return l+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return c+t+l+t+a+t+t;case 5936:switch(b(t,r+11)){case 114:return c+t+a+v(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
165case 108:return c+t+a+v(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return c+t+a+v(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return c+t+a+t+t;case 6165:return c+t+a+"flex-"+t+t;case 5187:return c+t+v(t,/(\w+).+(:[^]+)/,c+"box-$1$2"+a+"flex-$1$2")+t;case 5443:return c+t+a+"flex-item-"+v(t,/flex-|-self/g,"")+(y(t,/flex-|baseline/)?"":a+"grid-row-"+v(t,/flex-|-self/g,""))+t;case 4675:return c+t+a+"flex-line-pack"+v(t,/align-content|flex-|-self/g,"")+t;case 5548:return c+t+a+v(t,"shrink","negative")+t;case 5292:return c+t+a+v(t,"basis","preferred-size")+t;case 6060:return c+"box-"+v(t,"-grow","")+c+t+a+v(t,"grow","positive")+t;case 4554:return c+v(t,/([^-])(transform)/g,"$1"+c+"$2")+t;case 6187:return v(v(v(t,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),t,"")+t;case 5495:case 3959:return v(t,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return v(v(t,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+a+"flex-pack:$3"),/space-between/,"justify")+c+t+t;case 4200:if(!y(t,/flex-|baseline/))return a+"grid-column-align"+_(t,r)+t;break;case 2592:case 3360:return a+v(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,y(e.props,/grid-\w+-end/)}))return~w(t+(n=n[r].value),"span",0)?t:a+v(t,"-start","")+t+a+"grid-row-span:"+(~w(n,"span",0)?y(n,/\d+/):+y(n,/\d+/)-+y(t,/\d+/))+";";return a+v(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return y(e.props,/grid-\w+-start/)})?t:a+v(v(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return v(t,/(.+)-inline(.+)/,c+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(S(t)-1-r>6)switch(b(t,r+1)){case 109:if(45!==b(t,r+4))break;case 102:return v(t,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+l+(108==b(t,r+3)?"$3":"$2-$3"))+t;case 115:return~w(t,"stretch",0)?e(v(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return v(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,i,o,s,l){return a+r+":"+n+l+(i?a+r+"-span:"+(o?s:+s-+n)+l:"")+t});case 4949:if(121===b(t,r+6))return v(t,":",":"+c)+t;break;case 6444:switch(b(t,45===b(t,14)?18:11)){case 120:return v(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===b(t,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+a+"$2box$3")+t;case 100:return v(t,":",":"+a)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case p:return j([P(e,{value:v(e.value,"@","@"+c)})],n);case d:if(e.length){var i,o;return i=r=e.props,o=function(t){switch(y(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":N(P(e,{props:[v(t,/:(read-\w+)/,":"+l+"$1")]})),N(P(e,{props:[t]})),g(e,{props:k(r,n)});break;case"::placeholder":N(P(e,{props:[v(t,/:(plac\w+)/,":"+c+"input-$1")]})),N(P(e,{props:[v(t,/:(plac\w+)/,":"+l+"$1")]})),N(P(e,{props:[v(t,/:(plac\w+)/,a+"input-$1")]})),N(P(e,{props:[t]})),g(e,{props:k(r,n)})}return""},i.map(o).join("")}}}function F(e,t,r,n,i,o,s,a,l,c,u,h){for(var p=i-1,m=0===i?o:[""],g=m.length,y=0,w=0,b=0;y<n;++y)for(var S=0,E=_(e,p+1,p=f(w=s[y])),k=e;S<g;++S)(k=(w>0?m[S]+" "+E:v(E,/&\f/g,m[S])).trim())&&(l[b++]=k);return R(e,t,r,0===i?d:a,l,c,u,h)}function H(e,t,r,n,i){return R(e,t,r,h,_(e,0,n),_(e,n+1,-1),n,i)}var z=r(83454);let q=void 0!==z&&void 0!==z.env&&(z.env.REACT_APP_SC_ATTR||z.env.SC_ATTR)||"data-styled",W="active",V="data-styled-version",G="6.4.2",J="/*!sc*/\n",X="undefined"!=typeof window&&"undefined"!=typeof document;function Z(e){if(void 0!==z&&void 0!==z.env){let t=z.env[e];if(void 0!==t&&""!==t)return"false"!==t}}let K=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(i=null!==(n=Z("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==n?n:Z("SC_DISABLE_SPEEDY"))&&void 0!==i?i:void 0!==z&&void 0!==z.env&&!1),Y="sc-keyframes-",Q={};function ee(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let et=new Map,er=new Map,en=1,ei=e=>{if(et.has(e))return et.get(e);for(;er.has(en);)en++;let t=en++;return et.set(e,t),er.set(t,e),t},eo=e=>er.get(e),es=(e,t)=>{en=t+1,et.set(e,t),er.set(t,e)},ea=Object.freeze([]),el=Object.freeze({});function ec(e,t,r=el){return e.theme!==r.theme&&e.theme||t||r.theme}let eu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ed=/(^-|-$)/g;function eh(e){return e.replace(eu,"-").replace(ed,"")}let ep=/(a)(d)/gi,ef=e=>String.fromCharCode(e+(e>25?39:97));function em(e){let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ef(t%52)+r;return(ef(t%52)+r).replace(ep,"$1-$2")}let eg=(e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e},ey=e=>eg(5381,e);function ev(e){return em(ey(e)>>>0)}function ew(e){return"string"==typeof e}let eb=Symbol.for("react.memo"),e_=Symbol.for("react.forward_ref"),eS={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},eE={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ek={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ex={[e_]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[eb]:ek};function eC(e){return("type"in e&&e.type.$$typeof)===eb?ek:"$$typeof"in e?ex[e.$$typeof]:eS}let eT=Object.defineProperty,eO=Object.getOwnPropertyNames,eI=Object.getOwnPropertySymbols,eA=Object.getOwnPropertyDescriptor,eR=Object.getPrototypeOf,eP=Object.prototype;function eN(e){return"function"==typeof e}let eL=Symbol.for("react.forward_ref");function eD(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===eL&&"styledComponentId"in e}function eM(e,t){return e&&t?e+" "+t:e||t||""}function eB(e,t){return e.join(t||"")}function ej(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function e$(e,t){Object.defineProperty(e,"toString",{value:t})}let eU=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(let r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,r=t.length,n=r;for(;e>=n;)if((n<<=1)<0)throw ee(16,`${e}`);this.groupSizes=new Uint32Array(n),this.groupSizes.set(t),this.length=n;for(let e=r;e<n;e++)this.groupSizes[e]=0}let r=this.indexOfGroup(e+1),n=0;for(let i=0,o=t.length;i<o;i++)this.tag.insertRule(r,t[i])&&(this.groupSizes[e]++,r++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(let e=r;e<n;e++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;let r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r;for(let e=n;e<i;e++)t+=this.tag.getRule(e)+J;return t}},eF=`style[${q}][${V}="${G}"]`,eH=RegExp(`^${q}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),ez=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,eq=e=>{if(!e)return document;if(ez(e))return e;if("getRootNode"in e){let t=e.getRootNode();if(ez(t))return t}return document},eW=(e,t,r)=>{let n;let i=r.split(",");for(let r=0,o=i.length;r<o;r++)(n=i[r])&&e.registerName(t,n)},eV=(e,t)=>{var r;let n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(J),i=[];for(let t=0,r=n.length;t<r;t++){let r=n[t].trim();if(!r)continue;let o=r.match(eH);if(o){let t=0|parseInt(o[1],10),r=o[2];0!==t&&(es(r,t),eW(e,r,o[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(r)}},eG=e=>{let t=eq(e.options.target).querySelectorAll(eF);for(let r=0,n=t.length;r<n;r++){let n=t[r];n&&n.getAttribute(q)!==W&&(eV(e,n),n.parentNode&&n.parentNode.removeChild(n))}},eJ=!1,eX=(e,t)=>{let n=document.head,i=e||n,o=document.createElement("style"),s=(e=>{let t=Array.from(e.querySelectorAll(`style[${q}]`));return t[t.length-1]})(i),a=void 0!==s?s.nextSibling:null;o.setAttribute(q,W),o.setAttribute(V,G);let l=t||function(){if(!1!==eJ)return eJ;if("undefined"!=typeof document){let e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return eJ=e.nonce||e.getAttribute("content")||void 0;let t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return eJ=t.getAttribute("content")||void 0}return eJ=r.nc}();return l&&o.setAttribute("nonce",l),i.insertBefore(o,a),o},eZ=class{constructor(e,t){this.element=eX(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;let r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,n=r.length;t<n;t++){let n=r[t];if(n.ownerNode===e)return n}throw ee(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}}
165,eK=class{constructor(e,t){this.element=eX(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},eY=X,eQ={isServer:!X,useCSSOMInjection:!K};class e0{static registerId(e){return ei(e)}constructor(e=el,t={},r){this.options=Object.assign(Object.assign({},eQ),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(r),this.server=!!e.isServer,!this.server&&X&&eY&&(eY=!1,eG(this)),e$(this,()=>(e=>{let t=e.getTag(),{length:r}=t,n="";for(let i=0;i<r;i++){let r=eo(i);if(void 0===r)continue;let o=e.names.get(r);if(void 0===o||!o.size)continue;let s=t.getGroup(i);if(0===s.length)continue;let a=q+".g"+i+'[id="'+r+'"]',l="";for(let e of o)e.length>0&&(l+=e+",");n+=s+a+'{content:"'+l+'"}'+J}return n})(this))}rehydrate(){!this.server&&X&&eG(this)}reconstructWithOptions(e,t=!0){let r=new e0(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&X&&e.target!==this.options.target&&eq(this.options.target)!==eq(e.target)&&eG(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=new eU((({useCSSOMInjection:e,target:t,nonce:r})=>e?new eZ(t,r):new eK(t,r))(this.options)))}hasNameForId(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n}registerName(e,t){ei(e),e.startsWith(Y)&&this.keyframeIds.add(e);let r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,r){this.registerName(e,t),this.getTag().insertRules(ei(e),r)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(ei(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}let e1=new WeakSet,e2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function e4(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t+=n>=65&&n<=90?"-"+String.fromCharCode(n+32):e[r]}return t.startsWith("ms-")?"-"+t:t}let e3=Symbol.for("sc-keyframes");function e5(e){return eN(e)&&!(e.prototype&&e.prototype.isReactComponent)}let e6=e=>null==e||!1===e||""===e,e8=Symbol.for("react.client.reference");function e7(e){return e.$$typeof===e8}function e9(e,t,r,n,i=[]){if(e6(e))return i;let o=typeof e;if("string"===o)return i.push(e),i;if("function"===o)return e7(e)?i:e5(e)&&t?e9(e(t),t,r,n,i):(i.push(e),i);if(Array.isArray(e)){for(let o=0;o<e.length;o++)e9(e[o],t,r,n,i);return i}return eD(e)?i.push(`.${e.styledComponentId}`):"object"==typeof e&&null!==e&&e3 in e?r?(e.inject(r,n),i.push(e.getName(n))):i.push(e):e7(e)||(ej(e)?e.toString!==Object.prototype.toString?i.push(e.toString()):function e(t,r){for(let n in t){let i=t[n];t.hasOwnProperty(n)&&!e6(i)&&(Array.isArray(i)&&e1.has(i)||eN(i)?r.push(e4(n)+":",i,";"):ej(i)?(r.push(n+" {"),e(i,r),r.push("}")):r.push(e4(n)+": "+(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in e2||n.startsWith("--")?String(i).trim():i+"px")+";"))}}(e,i):i.push(e.toString())),i}let te=ey(G);class tt{constructor(e,t,r){this.rules=e,this.componentId=t,this.baseHash=eg(te,t),this.baseStyle=r,e0.registerId(t)}generateAndInjectStyles(e,t,r){let n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";{let i="";for(let n=0;n<this.rules.length;n++){let o=this.rules[n];if("string"==typeof o)i+=o;else if(o){if(e5(o)){let n=o(e);"string"==typeof n?i+=n:null!=n&&!1!==n&&(i+=eB(e9(n,e,t,r)))}else i+=eB(e9(o,e,t,r))}}
165if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);let e=r.hash?r.hash+i:i,o=this.dynamicNameCache.get(e);if(!o){if(o=em(eg(eg(this.baseHash,r.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,o)}if(!t.hasNameForId(this.componentId,o)){let e=r(i,"."+o,void 0,this.componentId);t.insertRules(this.componentId,o,e)}n=eM(n,o)}}return n}}let tr=/&/g;function tn(e,t){let r=0;for(;--t>=0&&92===e.charCodeAt(t);)r++;return!(1&~r)}function ti(e){let t=e.length,r="",n=0,i=0,o=0,s=!1,a=!1;for(let l=0;l<t;l++){let c=e.charCodeAt(l);if(0!==o||s||47!==c||42!==e.charCodeAt(l+1)){if(s)42===c&&47===e.charCodeAt(l+1)&&(s=!1,l++);else if(34!==c&&39!==c||tn(e,l)){if(0===o){if(123===c)i++;else if(125===c){if(--i<0){a=!0;let r=l+1;for(;r<t;){let t=e.charCodeAt(r);if(59===t||10===t)break;r++}r<t&&59===e.charCodeAt(r)&&r++,i=0,l=r-1,n=r;continue}0===i&&(r+=e.substring(n,l+1),n=l+1)}else 59===c&&0===i&&(r+=e.substring(n,l+1),n=l+1)}}else 0===o?o=c:o===c&&(o=0)}else s=!0,l++}return a||0!==i||0!==o?(n<t&&0===i&&0===o&&(r+=e.substring(n)),r):e}let to=new e0,ts=function({options:e=el,plugins:t=ea}=el){var r,n,i;let o,s,a;let l=(e,t,r)=>r.startsWith(s)&&r.endsWith(s)&&r.replaceAll(s,"").length>0?`.${o}`:e,c=t.slice();c.push(e=>{e.type===d&&e.value.includes("&")&&(a||(a=RegExp(`\\${s}\\b`,"g")),e.props[0]=e.props[0].replace(tr,s).replace(a,l))}),e.prefix&&c.push(U),c.push($);let h=[],p=(i=(n=c.concat((r=e=>h.push(e),function(e){!e.root&&(e=e.return)&&r(e)}))).length,function(e,t,r,o){for(var s="",a=0;a<i;a++)s+=n[a](e,t,r,o)||"";return s}),g=(t,r="",n="",i="&")=>{var l,c,d;o=i,s=r,a=void 0;let g=function(e){let t=-1!==e.indexOf("//"),r=-1!==e.indexOf("}");if(!t&&!r)return e;if(!t)return ti(e);let n=e.length,i="",o=0,s=0,a=0,l=0,c=0,u=!1;for(;s<n;){let t=e.charCodeAt(s);if(34!==t&&39!==t||tn(e,s)){if(0===a){if(47===t&&s+1<n&&42===e.charCodeAt(s+1)){for(s+=2;s+1<n&&(42!==e.charCodeAt(s)||47!==e.charCodeAt(s+1));)s++;s+=2}else if(40!==t){if(41!==t){if(l>0)s++;else if(42===t&&s+1<n&&47===e.charCodeAt(s+1))i+=e.substring(o,s),s+=2,o=s,u=!0;else if(47===t&&s+1<n&&47===e.charCodeAt(s+1)){for(i+=e.substring(o,s);s<n&&10!==e.charCodeAt(s);)s++;o=s,u=!0}else 123===t?c++:125===t&&c--,s++}else l>0&&l--,s++}else l++,s++}else s++}else 0===a?a=t:a===t&&(a=0),s++}return u?(o<n&&(i+=e.substring(o)),0===c?i:ti(i)):0===c?e:ti(e)}(t),y=(d=function e(t,r,n,i,o,s,a,l,c){for(var d,h=0,p=0,g=a,y=0,k=0,T=0,P=1,N=1,j=1,$=0,U="",z=o,q=s,W=i,V=U;N;)switch(T=$,$=L()){case 40:if(108!=T&&58==b(V,g-1)){-1!=w(V+=v(B($),"&","&\f"),"&\f",f(h?l[h-1]:0))&&(j=-1);break}case 34:case 39:case 91:V+=B($);break;case 9:case 10:case 13:case 32:V+=function(e){for(;I=D();)if(I<33)L();else break;return M(e)>2||M(I)>3?"":" "}(T);break;case 92:V+=function(e,t){for(var r;--t&&L()&&!(I<48)&&!(I>102)&&(!(I>57)||!(I<65))&&(!(I>70)||!(I<97)););return r=O+(t<6&&32==D()&&32==L()),_(A,e,r)}(O-1,7);continue;case 47:switch(D()){case 42:case 47:E(R(d=function(e,t){for(;L();)if(e+I===57)break;else if(e+I===84&&47===D())break;return"/*"+_(A,t,O-1)+"*"+m(47===e?e:L())}(L(),O),r,n,u,m(I),_(d,2,-2),0,c),c),(5==M(T||1)||5==M(D()||1))&&S(V)&&" "!==_(V,-1,void 0)&&(V+=" ");break;default:V+="/"}break;case 123*P:l[h++]=S(V)*j;case 125*P:case 59:case 0:switch($){case 0:case 125:N=0;case 59+p:-1==j&&(V=v(V,/\f/g,"")),k>0&&(S(V)-g||0===P&&47===T)&&E(k>32?H(V+";",i,n,g-1,c):H(v(V," ","")+";",i,n,g-2,c),c);break;case 59:V+=";";default:if(E(W=F(V,r,n,h,p,o,l,U,z=[],q=[],g,s),s),123===$){if(0===p)e(V,r,W,W,z,s,g,l,q);else{switch(y){case 99:if(110===b(V,3))break;case 108:if(97===b(V,2))break;default:p=0;case 100:case 109:case 115:}p?e(t,W,W,i&&E(F(t,W,W,0,0,o,l,U,o,z=[],g,q),q),o,q,g,l,i?z:q):e(V,W,W,W,[""],q,0,l,q)}}}h=p=k=0,P=j=1,U=V="",g=a;break;case 58:g=1+S(V),k=T;default:if(P<1){if(123==$)--P;else if(125==$&&0==P++&&125==(I=O>0?b(A,--O):0,C--,10===I&&(C=1,x--),I))continue}switch(V+=m($),$*P){case 38:j=p>0?1:(V+="\f",-1);break;case 44:l[h++]=(S(V)-1)*j,j=1;break;case 64:45===D()&&(V+=B(L())),y=D(),p=g=S(U=V+=function(e){for(;!M(D());)L();return _(A,e,O)}(O)),$++;break;case 45:45===T&&2==S(V)&&(P=0)}}return s}("",null,null,null,[""],(c=l=n||r?n+" "+r+" { "+g+" }":g,x=C=1,T=S(A=c),O=0,l=[]),0,[0],l),A="",d);return e.namespace&&(y=function e(t,r){let n=r+" ",i=","+n;for(let o=0;o<t.length;o++){let s=t[o];if("rule"===s.type){s.value=(n+s.value).replaceAll(",",i);let e=s.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];s.props=t}Array.isArray(s.children)&&"@keyframes"!==s.type&&e(s.children,r)}return t}(y,e.namespace)),h=[],j(y,p),h},y=5381;for(let e=0;e<t.length;e++)t[e].name||ee(15),y=eg(y,t[e].name);return(null==e?void 0:e.namespace)&&(y=eg(y,e.namespace)),(null==e?void 0:e.prefix)&&(y=eg(y,"p")),g.hash=5381!==y?y.toString():"",g}(),ta=s.createContext({shouldForwardProp:void 0,styleSheet:to,stylis:ts,stylisPlugins:void 0});function tl(){return s.useContext(ta)}ta.Consumer;let tc=s.createContext(void 0);function tu(e){let t=s.useContext(tc),r=s.useMemo(()=>(function(e,t){if(!e)throw ee(14);if(eN(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw ee(8);return t?Object.assign(Object.assign({},t),e):e})(e.theme,t),[e.theme,t]);return e.children?s.createElement(tc.Provider,{value:r},e.children):null}tc.Consumer;let td=Object.prototype.hasOwnProperty,th={};function tp(e,t,r){let n=eD(e),i=!ew(e),{attrs:o=ea,componentId:a=function(e,t){let r="string"!=typeof e?"sc":eh(e);th[r]=(th[r]||0)+1;let n=r+"-"+ev(G+r+th[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId),displayName:l=ew(e)?`styled.${e}`:`Styled(${e.displayName||e.name||"Component"})`}=t,c=t.displayName&&t.componentId?eh(t.displayName)+"-"+t.componentId:t.componentId||a,u=n&&e.attrs?e.attrs.concat(o).filter(
165Boolean):o,{shouldForwardProp:d}=t;if(n&&e.shouldForwardProp){let r=e.shouldForwardProp;if(t.shouldForwardProp){let e=t.shouldForwardProp;d=(t,n)=>r(t,n)&&e(t,n)}else d=r}let h=new tt(r,c,n?e.componentStyle:void 0);function p(e,t){return function(e,t,r){let n,i;let{attrs:o,componentStyle:a,defaultProps:l,foldedComponentIds:c,styledComponentId:u,target:d}=e,h=s.useContext(tc),p=tl(),f=e.shouldForwardProp||p.shouldForwardProp,m=ec(t,h,l)||el;{let e=s.useRef(null),r=e.current;if(null!==r&&r[1]===m&&r[2]===p.styleSheet&&r[3]===p.stylis&&r[7]===a&&function(e,t,r){let n=0;for(let r in t)if(td.call(t,r)&&(n++,e[r]!==t[r]))return!1;return n===r}(r[0],t,r[4]))n=r[5],i=r[6];else{var g,y,v;g=n=function(e,t,r){let n=Object.assign(Object.assign({},t),{className:void 0,theme:r}),i=e.length>1;for(let r=0;r<e.length;r++){let o=e[r],s=eN(o)?o(i?Object.assign({},n):n):o;for(let e in s)"className"===e?n.className=eM(n.className,s[e]):"style"===e?n.style=Object.assign(Object.assign({},n.style),s[e]):e in t&&void 0===t[e]||(n[e]=s[e])}return"className"in t&&"string"==typeof t.className&&(n.className=eM(n.className,t.className)),n}(o,t,m),y=p.styleSheet,v=p.stylis,i=a.generateAndInjectStyles(g,y,v);let r=0;for(let e in t)td.call(t,e)&&r++;e.current=[t,m,p.styleSheet,p.stylis,r,n,i,a]}}let w=n.as||d,b=function(e,t,r,n){let i={};for(let o in e)void 0===e[o]||"$"===o[0]||"as"===o||"theme"===o&&e.theme===r||("forwardedAs"===o?i.as=e.forwardedAs:n&&!n(o,t)||(i[o]=e[o]));return i}(n,w,m,f),_=eM(c,u);return i&&(_+=" "+i),n.className&&(_+=" "+n.className),b[ew(w)&&w.includes("-")?"class":"className"]=_,r&&(b.ref=r),(0,s.createElement)(w,b)}(f,e,t)}p.displayName=l;let f=s.forwardRef(p);return f.attrs=u,f.componentStyle=h,f.displayName=l,f.shouldForwardProp=d,f.foldedComponentIds=n?eM(e.foldedComponentIds,e.styledComponentId):"",f.styledComponentId=c,f.target=n?e.target:e,Object.defineProperty(f,"defaultProps",{get(){return this._foldedDefaultProps},set(t){this._foldedDefaultProps=n?function(e,...t){for(let r of t)(function e(t,r,n=!1){if(!n&&!ej(t)&&!Array.isArray(t))return r;if(Array.isArray(r))for(let n=0;n<r.length;n++)t[n]=e(t[n],r[n]);else if(ej(r))for(let n in r)t[n]=e(t[n],r[n]);return t})(e,r,!0);return e}({},e.defaultProps,t):t}}),e$(f,()=>`.${f.styledComponentId}`),i&&function e(t,r,n){if("string"!=typeof r){let i=eR(r);i&&i!==eP&&e(t,i,n);let o=eO(r).concat(eI(r)),s=eC(t),a=eC(r);for(let e=0;e<o.length;++e){let i=o[e];if(!(i in eE||n&&n[i]||a&&i in a||s&&i in s)){let e=eA(r,i);try{eT(t,i,e)}catch(e){}}}}return t}(f,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),f}var tf=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function tm(e,t){let r=[e[0]];for(let n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}let tg=e=>(e1.add(e),e);function ty(e,...t){return eN(e)||ej(e)?tg(e9(tm(ea,[e,...t]))):0===t.length&&1===e.length&&"string"==typeof e[0]?e9(e):tg(e9(tm(e,t)))}let tv=e=>(function e(t,r,n=el){if(!r)throw ee(1,r);let i=(e,...i)=>t(r,n,ty(e,...i));return i.attrs=i=>e(t,r,Object.assign(Object.assign({}
165,n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)})),i.withConfig=i=>e(t,r,Object.assign(Object.assign({},n),i)),i})(tp,e),tw=tv;tf.forEach(e=>{tw[e]=tv(e)});class tb{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(eN(r)&&!eD(r))return!1}return!0}(e),e0.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,r,n){let i=this.componentId;if(this.isStatic){if(r.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,r,n);else{let o=this.computeRules(e,t,r,n);r.insertRules(i,o.name,o.rules)}return}let o=this.instanceRules.get(e);if(this.computeRules(e,t,r,n),!r.server&&o){let t=o.rules,r=this.instanceRules.get(e).rules;if(t.length===r.length){let e=!0;for(let n=0;n<t.length;n++)if(t[n]!==r[n]){e=!1;break}if(e)return}}this.rebuildGroup(r)}computeRules(e,t,r,n){let i=eB(e9(this.rules,t,r,n)),o={name:this.componentId+e,rules:n(i,"")};return this.instanceRules.set(e,o),o}rebuildGroup(e){let t=this.componentId;for(let r of(e.clearRules(t),this.instanceRules.values()))e.insertRules(t,r.name,r.rules)}}function t_(e,...t){let r=ty(e,...t),n=`sc-global-${ev(JSON.stringify(r))}`,i=new tb(r,n),o=e=>{let t;let r=tl(),o=s.useContext(tc);{let e=s.useRef(null);null===e.current&&(e.current=r.styleSheet.allocateGSInstance(n)),t=e.current}r.styleSheet.server&&a(t,e,r.styleSheet,o,r.stylis);{let l=i.isStatic?[t,r.styleSheet,i]:[t,e,r.styleSheet,o,r.stylis,i],c=s.useRef(i);s.useLayoutEffect(()=>{r.styleSheet.server||(c.current!==i&&(r.styleSheet.clearRules(n),c.current=i),a(t,e,r.styleSheet,o,r.stylis))},l),s.useLayoutEffect(()=>()=>{r.styleSheet.server||i.removeStyles(t,r.styleSheet)},[t,r.styleSheet,i])}return r.styleSheet.server&&i.instanceRules.delete(t),null};function a(e,t,r,n,s){if(i.isStatic)i.renderStyles(e,Q,r,s);else{let a=Object.assign(Object.assign({},t),{theme:ec(t,n,o.defaultProps)});i.renderStyles(e,a,r,s)}}return s.memo(o)}class tS{constructor(e,t){this[o]=!0,this.inject=(e,t=ts)=>{let r=this.getName(t);if(!e.hasNameForId(this.id,r)){let n=t(this.rules,r,"@keyframes");e.insertRules(this.id,r,n)}},this.name=e,this.id=Y+e,this.rules=t,ei(this.id),e$(this,()=>{throw ee(12,String(this.name))})}getName(e=ts){return e.hash?this.name+em(+e.hash>>>0):this.name}}function tE(e,...t){let r=eB(ty(e,...t));return new tS(ev(r),r)}o=e3},86455:function(e){var t;t=function(){"use strict";let e;function t(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw TypeError("Private element is not present on this object")}let r={},n=()=>{r.previousActiveElement instanceof HTMLElement?(r.previousActiveElement.focus(),r.previousActiveElement=null):document.body&&document.body.focus()},i=e=>new Promise(t=>{if(!e)return t();let i=window.scrollX,o=window.scrollY;r.restoreFocusTimeout=setTimeout(()=>{n(),t()},100),window.scrollTo(i,o)}),o="swal2-",s=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=o+t,e),{}),a=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=o+t,e),{}),l="SweetAlert2:",c=e=>e.charAt(0).toUpperCase()+e.slice(1),u=e=>{console.warn(`${l} ${"object"==typeof e?e.join(" "):e}`)},d=e=>{console.error(`${l} ${e}`)},h=[],p=e=>{h.includes(e)||(h.push(e),u(e))},f=(e,t=null)=>{p(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},m=e=>"function"==typeof e?e():e,g=e=>e&&"function"==typeof e.toPromise,y=e=>g(e)?e.toPromise():Promise.resolve(e),v=e=>e&&Promise.resolve(e)===e,w=()=>navigator.userAgent.includes("Firefox"),b=()=>document.body.querySelector(`.${s.container}`),_=e=>{let t=b();return t?t.querySelector(e):null},S=e=>_(`.${e}`),E=()=>S(s.popup),k=()=>S(s.icon),x=()=>S(s.title),C=()=>S(s["html-container"]),T=()=>S(s.image),O=()=>S(s["progress-steps"]),I=()=>S(s["validation-message"]),A=()=>_(`.${s.actions} .${s.confirm}`),R=()=>_(`.${s.actions} .${s.cancel}`),P=()=>_(`.${s.actions} .${s.deny}`),N=()=>_(`.${s.loader}`),L=()=>S(s.actions),D=()=>S(s.footer),M=()=>S(s["timer-progress-bar"]),B=()=>S(s.close),j=`
166  a[href],
167  area[href],
168  input:not([disabled]),
169  select:not([disabled]),
170  textarea:not([disabled]),
171  button:not([disabled]),
172  iframe,
173  object,
174  embed,
175  [tabindex="0"],
176  [contenteditable],
177  audio[controls],
178  video[controls],
179  summary
180`,$=()=>{let e=E();if(!e)return[];
180let t=Array.from(e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((e,t)=>{let r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),r=Array.from(e.querySelectorAll(j)).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(t.concat(r))].filter(e=>ei(e))},U=()=>z(document.body,s.shown)&&!z(document.body,s["toast-shown"])&&!z(document.body,s["no-backdrop"]),F=()=>{let e=E();return!!e&&z(e,s.toast)},H=(e,t)=>{if(e.textContent="",t){let r=new DOMParser().parseFromString(t,"text/html"),n=r.querySelector("head");n&&Array.from(n.childNodes).forEach(t=>{e.appendChild(t)});let i=r.querySelector("body");i&&Array.from(i.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},z=(e,t)=>!!t&&t.split(/\s+/).every(t=>e.classList.contains(t)),q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(s).includes(r)||Object.values(a).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},W=(e,t,r)=>{if(q(e,t),!t.customClass)return;let n=t.customClass[r];if(n){if("string"!=typeof n&&!n.forEach){u(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`);return}X(e,n)}},V=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${s.popup} > .${s[t]}`);case"checkbox":return e.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return e.querySelector(`.${s.popup} > .${s.radio} input:checked`)||e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return e.querySelector(`.${s.popup} > .${s.range} input`);default:return e.querySelector(`.${s.popup} > .${s.input}`)}},G=e=>{if(e.focus(),"file"!==e.type){let t=e.value;e.value="",e.value=t}},J=(e,t,r)=>{if(!e||!t)return;let n="string"==typeof t?t.split(/\s+/).filter(Boolean):t;(Array.isArray(e)?e:[e]).forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},X=(e,t)=>{J(e,t,!0)},Z=(e,t)=>{J(e,t,!1)},K=(e,t)=>Array.from(e.children).find(e=>e instanceof HTMLElement&&z(e,t)),Y=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"==typeof r?`${r}px`:r):e.style.removeProperty(t)},Q=(e,t="flex")=>{e&&(e.style.display=t)},ee=e=>{e&&(e.style.display="none")},et=(e,t="block")=>{e&&new MutationObserver(()=>{en(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},er=(e,t,r,n)=>{let i=e.querySelector(t);i&&i.style.setProperty(r,n)},en=(e,t,r="flex")=>{t?Q(e,r):ee(e)},ei=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),eo=()=>!ei(A())&&!ei(P())&&!ei(R()),es=e=>e.scrollHeight>e.clientHeight,ea=(e,t)=>{let r=e;for(;r&&r!==t;){if(es(r))return!0;r=r.parentElement}return!1},el=e=>{let t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ec=(e,t=!1)=>{let r=M();r&&ei(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},eu=()=>{let e=M();if(!e)return;let t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";let r=parseInt(window.getComputedStyle(e).width);e.style.width=`${t/r*100}%`},ed=()=>"undefined"==typeof window||"undefined"==typeof document,eh=`
181 <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
182   <button type="button" class="${s.close}"></button>
183   <ul class="${s["progress-steps"]}"></ul>
184   <div class="${s.icon}"></div>
185   <img class="${s.image}" />
186   <h2 class="${s.title}" id="${s.title}"></h2>
187   <div class="${s["html-container"]}" id="${s["html-container"]}"></div>
188   <input class="${s.input}" id="${s.input}" />
189   <input type="file" class="${s.file}" />
190   <div class="${s.range}">
191     <input type="range" />
192     <output></output>
193   </div>
194   <select class="${s.select}" id="${s.select}"></select>
195   <div class="${s.radio}"></div>
196   <label class="${s.checkbox}">
197     <input type="checkbox" id="${s.checkbox}" />
198     <span class="${s.label}"></span>
199   </label>
200   <textarea class="${s.textarea}" id="${s.textarea}"></textarea>
201   <div class="${s["validation-message"]}" id="${s["validation-message"]}"></div>
202   <div class="${s.actions}">
203     <div class="${s.loader}"></div>
204     <button type="button" class="${s.confirm}"></button>
205     <button type="button" class="${s.deny}"></button>
206     <button type="button" class="${s.cancel}"></button>
207   </div>
208   <div class="${s.footer}"></div>
209   <div class="${s["timer-progress-bar-container"]}">
210     <div class="${s["timer-progress-bar"]}"></div>
211   </div>
212 </div>
213`.replace(/(^|\n)\s*/g,""),ep=()=>{let e=b();return!!e&&(e.remove(),Z([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0)},ef=()=>{r.currentInstance&&r.currentInstance.resetValidationMessage()},em=()=>{let e=E();if(!e)return;let t=K(e,s.input),r=K(e,s.file),n=e.querySelector(`.${s.range} input`),i=e.querySelector(`.${s.range} output`),o=K(e,s.select),a=e.querySelector(`.${s.checkbox} input`),l=K(e,s.textarea);t&&(t.oninput=ef),r&&(r.onchange=ef),o&&(o.onchange=ef),a&&(a.onchange=ef),l&&(l.oninput=ef),n&&i&&(n.oninput=()=>{ef(),i.value=n.value},n.onchange=()=>{ef(),i.value=n.value})},eg=e=>{if("string"==typeof e){let t=document.querySelector(e);
213if(!t)throw Error(`Target element "${e}" not found`);return t}return e},ey=e=>{let t=E();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},ev=e=>{"rtl"===window.getComputedStyle(e).direction&&(X(b(),s.rtl),r.isRTL=!0)},ew=e=>{let t=ep();if(ed()){d("SweetAlert2 requires document to initialize");return}let r=document.createElement("div");r.className=s.container,t&&X(r,s["no-transition"]),H(r,eh),r.dataset.swal2Theme=e.theme;let n=eg(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),ey(e),ev(n),em()},eb=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?e_(e,t):e&&H(t,e)},e_=(e,t)=>{"jquery"in e?eS(t,e):H(t,e.toString())},eS=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;(r in t);r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},eE=(e,t)=>{let r=L(),n=N();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Q(r):ee(r),W(r,t,"actions"),function(e,t,r){let n=A(),i=P(),o=R();n&&i&&o&&(ek(n,"confirm",r),ek(i,"deny",r),ek(o,"cancel",r),function(e,t,r,n){if(!n.buttonsStyling){Z([e,t,r],s.styled);return}X([e,t,r],s.styled),[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]].forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),function(e){let t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;let r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}(e)})}(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}(r,n,t),H(n,t.loaderHtml||""),W(n,t,"loader"))};function ek(e,t,r){let n=c(t);en(e,r[`show${n}Button`],"inline-block"),H(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=s[t],W(e,r,`${t}Button`)}let ex=(e,t)=>{let r=B();r&&(H(r,t.closeButtonHtml||""),W(r,t,"closeButton"),en(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},eC=(e,t)=>{let r=b();if(r){var n,i,o;"string"==typeof(n=t.backdrop)?r.style.background=n:n||X([document.documentElement,document.body],s["no-backdrop"]),(i=t.position)&&(i in s?X(r,s[i]):(u('The "position" parameter is not valid, defaulting to "center"'),X(r,s.center))),(o=t.grow)&&X(r,s[`grow-${o}`]),W(r,t,"container")}};var eT={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};let eO=["input","file","range","select","radio","checkbox","textarea"],eI=(e,t)=>{let r=E();if(!r)return;let n=eT.innerParams.get(e),i=!n||t.input!==n.input;eO.forEach(e=>{let n=K(r,s[e]);n&&(eP(e,t.inputAttributes),n.className=s[e],i&&ee(n))}),t.input&&(i&&eA(t),eN(t))},eA=e=>{if(!e.input)return;if(!ej[e.input]){d(`Unexpected type of input! Expected ${Object.keys(ej).join(" | ")}, got "${e.input}"`);return}let t=eM(e.input);if(!t)return;let r=ej[e.input](t,e);Q(t),e.inputAutoFocus&&setTimeout(()=>{G(r)})},eR=e=>{for(let{name:t}of Array.from(e.attributes))["id","type","value","style"].includes(t)||e.removeAttribute(t)},eP=(e,t)=>{let r=E();if(!r)return;let n=V(r,e);if(n)for(let e in eR(n),t)n.setAttribute(e,t[e])},eN=e=>{if(!e.input)return;let t=eM(e.input);t&&W(t,e,"input")},eL=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},eD=(e,t,r)=>{if(r.inputLabel){let n=document.createElement("label"),i=s["input-label"];n.setAttribute("for",e.id),n.className=i,"object"==typeof r.customClass&&X(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},eM=e=>{let t=E();if(t)return K(t,s[e]||s.input)},eB=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:v(t)||u(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},ej={};ej.text=ej.email=ej.password=ej.number=ej.tel=ej.url=ej.search=ej.date=ej["datetime-local"]=ej.time=ej.week=ej.month=(e,t)=>(eB(e,t.inputValue),eD(e,e,t),eL(e,t),e.type=t.input,e),ej.file=(e,t)=>
213(eD(e,e,t),eL(e,t),e),ej.range=(e,t)=>{let r=e.querySelector("input"),n=e.querySelector("output");return r&&(eB(r,t.inputValue),r.type=t.input,eD(r,e,t)),n&&eB(n,t.inputValue),e},ej.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){let r=document.createElement("option");H(r,t.inputPlaceholder),r.value="",r.disabled=!0,r.selected=!0,e.appendChild(r)}return eD(e,e,t),e},ej.radio=e=>(e.textContent="",e),ej.checkbox=(e,t)=>{let r=E();if(!r)throw Error("Popup not found");let n=V(r,"checkbox");if(!n)throw Error("Checkbox input not found");n.value="1",n.checked=!!t.inputValue;let i=e.querySelector("span");if(i){let e=t.inputPlaceholder||t.inputLabel;e&&H(i,e)}return n},ej.textarea=(e,t)=>{eB(e,t.inputValue),eL(e,t),eD(e,e,t);let r=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){let n=E();if(!n)return;let i=parseInt(window.getComputedStyle(n).width);new MutationObserver(()=>{if(!document.body.contains(e))return;let n=e.offsetWidth+r(e),o=E();o&&(n>i?o.style.width=`${n}px`:Y(o,"width",t.width))}).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};let e$=(e,t)=>{let r=C();r&&(et(r),W(r,t,"htmlContainer"),t.html?(eb(t.html,r),Q(r,"block")):t.text?(r.textContent=t.text,Q(r,"block")):ee(r),eI(e,t))},eU=(e,t)=>{let r=D();r&&(et(r),en(r,!!t.footer,"block"),t.footer&&eb(t.footer,r),W(r,t,"footer"))},eF=(e,t)=>{let r=eT.innerParams.get(e),n=k();if(n){if(r&&t.icon===r.icon){eV(n,t),eH(n,t);return}if(!t.icon&&!t.iconHtml){ee(n);return}if(t.icon&&-1===Object.keys(a).indexOf(t.icon)){d(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),ee(n);return}Q(n),eV(n,t),eH(n,t),X(n,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ez)}},eH=(e,t)=>{for(let[r,n]of Object.entries(a))t.icon!==r&&Z(e,n);X(e,t.icon&&a[t.icon]),eG(e,t),ez(),W(e,t,"icon")},ez=()=>{let e=E();if(!e)return;let t=window.getComputedStyle(e).getPropertyValue("background-color");e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix").forEach(e=>{e.style.backgroundColor=t})},eq=e=>`
214  ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}
215  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
216  <div class="swal2-success-ring"></div>
217  ${e.animation?'<div class="swal2-success-fix"></div>':""}
218  ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}
219`,eW=`
220  <span class="swal2-x-mark">
221    <span class="swal2-x-mark-line-left"></span>
222    <span class="swal2-x-mark-line-right"></span>
223  </span>
224`,eV=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";t.iconHtml?n=eJ(t.iconHtml):"success"===t.icon?(n=eq(t),r=r.replace(/ style=".*?"/g,"")):"error"===t.icon?n=eW:t.icon&&(n=eJ({question:"?",warning:"!",info:"i"}[t.icon])),r.trim()!==n.trim()&&H(e,n)},eG=(e,t)=>{if(t.iconColor){for(let r of(e.style.color=t.iconColor,e.style.borderColor=t.iconColor,[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"]))er(e,r,"background-color",t.iconColor);er(e,".swal2-success-ring","border-color",t.iconColor)}},eJ=e=>`<div class="${s["icon-content"]}">${e}</div>`,eX=(e,t)=>{let r=T();if(r){if(!t.imageUrl){ee(r);return}Q(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),Y(r,"width",t.imageWidth),Y(r,"height",t.imageHeight),r.className=s.image,W(r,t,"image")}},eZ=!1,eK=0,eY=0,eQ=0,e0=0,e1=e=>{e.addEventListener("mousedown",e4),document.body.addEventListener("mousemove",e3),e.addEventListener("mouseup",e5),e.addEventListener("touchstart",e4),document.body.addEventListener("touchmove",e3),e.addEventListener("touchend",e5)},e2=e=>{e.removeEventListener("mousedown",e4),document.body.removeEventListener("mousemove",e3),e.removeEventListener("mouseup",e5),e.removeEventListener("touchstart",e4),document.body.removeEventListener("touchmove",e3),e.removeEventListener("touchend",e5)},e4=e=>{let t=E();if(!t)return;let r=k();if(e.target===t||r&&r.contains(e.target)){eZ=!0;let r=e6(e);eK=r.clientX,eY=r.clientY,eQ=parseInt(t.style.insetInlineStart)||0,e0=parseInt(t.style.insetBlockStart)||0,X(t,"swal2-dragging")}},e3=e=>{let t=E();if(t&&eZ){let{clientX:n,clientY:i}=e6(e),o=n-eK;
224t.style.insetInlineStart=`${eQ+(r.isRTL?-o:o)}px`,t.style.insetBlockStart=`${e0+(i-eY)}px`}},e5=()=>{let e=E();eZ=!1,Z(e,"swal2-dragging")},e6=e=>{let t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},e8=(e,t)=>{let r=b(),n=E();if(r&&n){if(t.toast){Y(r,"width",t.width),n.style.width="100%";let e=N();e&&n.insertBefore(e,k())}else Y(n,"width",t.width);Y(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ee(I()),e7(n,t),t.draggable&&!t.toast?(X(n,s.draggable),e1(n)):(Z(n,s.draggable),e2(n))}},e7=(e,t)=>{let r=t.showClass||{};e.className=`${s.popup} ${ei(e)?r.popup:""}`,t.toast?(X([document.documentElement,document.body],s["toast-shown"]),X(e,s.toast)):X(e,s.modal),W(e,t,"popup"),"string"==typeof t.customClass&&X(e,t.customClass),t.icon&&X(e,s[`icon-${t.icon}`])},e9=(e,t)=>{let r=O();if(!r)return;let{progressSteps:n,currentProgressStep:i}=t;if(!n||0===n.length||void 0===i){ee(r);return}Q(r),r.textContent="",i>=n.length&&u("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{let a=te(e);if(r.appendChild(a),o===i&&X(a,s["active-progress-step"]),o!==n.length-1){let e=tt(t);r.appendChild(e)}})},te=e=>{let t=document.createElement("li");return X(t,s["progress-step"]),H(t,e),t},tt=e=>{let t=document.createElement("li");return X(t,s["progress-step-line"]),e.progressStepsDistance&&Y(t,"width",e.progressStepsDistance),t},tr=(e,t)=>{let r=x();r&&(et(r),en(r,!!(t.title||t.titleText),"block"),t.title&&eb(t.title,r),t.titleText&&(r.innerText=t.titleText),W(r,t,"title"))},tn=(e,t)=>{var n;e8(e,t),eC(e,t),e9(e,t),eF(e,t),eX(e,t),tr(e,t),ex(e,t),e$(e,t),eE(e,t),eU(e,t);let i=E();"function"==typeof t.didRender&&i&&t.didRender(i),null===(n=r.eventEmitter)||void 0===n||n.emit("didRender",i)},ti=()=>{var e;return null===(e=A())||void 0===e?void 0:e.click()},to=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),ts=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){let t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},ta=(e,t,r)=>{if(ts(e),!t.toast){let n=e=>td(t,e,r);e.keydownHandler=n;let i=t.keydownListenerCapture?window:E();i&&(e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",n,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)}},tl=(e,t)=>{var r;let n=$();return n.length?(-2===(e+=t)&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(w()&&n[e]instanceof HTMLIFrameElement)):(null===(r=E())||void 0===r||r.focus(),!0)},tc=["ArrowRight","ArrowDown"],tu=["ArrowLeft","ArrowUp"],td=(e,t,r)=>{e&&!t.isComposing&&229!==t.keyCode&&(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?th(t,e):"Tab"===t.key?tp(t):[...tc,...tu].includes(t.key)?tf(t.key):"Escape"===t.key&&tm(t,e,r))},th=(e,t)=>{if(!m(t.allowEnterKey))return;let r=E();if(!r||!t.input)return;let n=V(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;ti(),e.preventDefault()}},tp=e=>{let t=e.target,r=$().findIndex(e=>e===t),n=!0;n=e.shiftKey?tl(r,-1):tl(r,1),e.stopPropagation(),n&&e.preventDefault()},tf=e=>{let t=L(),r=A(),n=P(),i=R();if(!t||!r||!n||!i||document.activeElement instanceof HTMLElement&&![r,n,i].includes(document.activeElement))return;let o=tc.includes(e)?"nextElementSibling":"previousElementSibling",s=document.activeElement;if(s){for(let e=0;e<t.children.length;e++){if(!(s=s[o]))return;if(s instanceof HTMLButtonElement&&ei(s))break}s instanceof HTMLButtonElement&&s.focus()}},tm=(e,t,r)=>{e.preventDefault(),m(t.allowEscapeKey)&&r(to.esc)};var tg={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};let ty=()=>{let e=b();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},tv=()=>
224{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},tw="undefined"!=typeof window&&!!window.GestureEvent,tb=tw&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t_=()=>{if(tw&&!z(document.body,s.iosfix)){let e=document.body.scrollTop;document.body.style.top=`${-1*e}px`,X(document.body,s.iosfix),tS()}},tS=()=>{let e;let t=b();t&&(t.ontouchstart=t=>{e=tE(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())})},tE=e=>{let t=e.target,r=b(),n=C();return!(!r||!n||tk(e)||tx(e))&&!!(t===r||!es(r)&&t instanceof HTMLElement&&!ea(t,n)&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!(es(n)&&n.contains(t)))},tk=e=>!!(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),tx=e=>e.touches&&e.touches.length>1,tC=()=>{if(z(document.body,s.iosfix)){let e=parseInt(document.body.style.top,10);Z(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tT=()=>{let e=document.createElement("div");e.className=s["scrollbar-measure"],document.body.appendChild(e);let t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},tO=null,tI=e=>{null===tO&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(tO=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${tO+tT()}px`)},tA=()=>{null!==tO&&(document.body.style.paddingRight=`${tO}px`,tO=null)};function tR(e,t,n,o){F()?t$(e,o):(i(n).then(()=>t$(e,o)),ts(r)),tw?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(tA(),tC(),tv()),Z([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function tP(e){e=tM(e);let t=tg.swalPromiseResolve.get(this),r=tN(this);this.isAwaitingPromise?e.isDismissed||(tD(this),t(e)):r&&t(e)}let tN=e=>{let t=E();if(!t)return!1;let r=eT.innerParams.get(e);if(!r||z(t,r.hideClass.popup))return!1;Z(t,r.showClass.popup),X(t,r.hideClass.popup);let n=b();return Z(n,r.showClass.backdrop),X(n,r.hideClass.backdrop),tB(e,t,r),!0};function tL(e){let t=tg.swalPromiseReject.get(this);tD(this),t&&t(e)}let tD=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,eT.innerParams.get(e)||e._destroy())},tM=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),tB=(e,t,n)=>{var i;let o=b(),s=el(t);"function"==typeof n.willClose&&n.willClose(t),null===(i=r.eventEmitter)||void 0===i||i.emit("willClose",t),s&&o?tj(e,t,o,!!n.returnFocus,n.didClose):o&&tR(e,o,!!n.returnFocus,n.didClose)},tj=(e,t,n,i,o)=>{r.swalCloseEventFinishedCallback=tR.bind(null,e,n,i,o);let s=function(e){if(e.target===t){var n;null===(n=r.swalCloseEventFinishedCallback)||void 0===n||n.call(r),delete r.swalCloseEventFinishedCallback,t.removeEventListener("animationend",s),t.removeEventListener("transitionend",s)}};t.addEventListener("animationend",s),t.addEventListener("transitionend",s)},t$=(e,t)=>{setTimeout(()=>{var n;"function"==typeof t&&t.bind(e.params)(),null===(n=r.eventEmitter)||void 0===n||n.emit("didClose"),e._destroy&&e._destroy()})},tU=e=>{let t=E();if(t||new ni,!(t=E()))return;let r=N();F()?ee(k()):tF(t,e),Q(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},tF=(e,t)=>{let r=L(),n=N();r&&n&&(!t&&ei(A())&&(t=A()),Q(r),t&&(ee(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),X([e,r],s.loading))},tH=(e,t)=>{"select"===t.input||"radio"===t.input?tG(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(g(t.inputValue)||v(t.inputValue))&&(tU(A()),tJ(e,t))},tz=(e,t)=>{let r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return tq(r);case"radio":return tW(r);case"file":return tV(r);default:return t.inputAutoTrim?r.value.trim():r.value}},tq=e=>e.checked?1:0,tW=e=>e.checked?e.value:null,tV=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,tG=(e,t)=>{let r=E();if(!r)return;let n=e=>{"select"===t.input?function(e,t,r){let n=K(e,s.select);if(!n)return;let i=(e,t,n)=>{let i=document.createElement("option");i.value=n,H(i,t),i.selected=tZ(n,r.inputValue),e.appendChild(i)};
224t.forEach(e=>{let t=e[0],r=e[1];if(Array.isArray(r)){let e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}(r,tX(e),t):"radio"===t.input&&function(e,t,r){let n=K(e,s.radio);if(!n)return;t.forEach(e=>{let t=e[0],i=e[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=s.radio,o.value=t,tZ(t,r.inputValue)&&(o.checked=!0);let l=document.createElement("span");H(l,i),l.className=s.label,a.appendChild(o),a.appendChild(l),n.appendChild(a)});let i=n.querySelectorAll("input");i.length&&i[0].focus()}(r,tX(e),t)};g(t.inputOptions)||v(t.inputOptions)?(tU(A()),y(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"==typeof t.inputOptions?n(t.inputOptions):d(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},tJ=(e,t)=>{let r=e.getInput();r&&(ee(r),y(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,Q(r),r.focus(),e.hideLoading()}).catch(t=>{d(`Error in inputValue promise: ${t}`),r.value="",Q(r),r.focus(),e.hideLoading()}))},tX=e=>(e instanceof Map?Array.from(e):Object.entries(e)).map(([e,t])=>[e,"object"==typeof t?tX(t):t]),tZ=(e,t)=>!!t&&null!=t&&t.toString()===e.toString(),tK=e=>{let t=eT.innerParams.get(e);e.disableButtons(),t.input?t0(e,"confirm"):t5(e,!0)},tY=e=>{let t=eT.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?t0(e,"deny"):t2(e,!1)},tQ=(e,t)=>{e.disableButtons(),t(to.cancel)},t0=(e,t)=>{let r=eT.innerParams.get(e);if(!r.input){d(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);return}let n=e.getInput(),i=tz(e,r);r.inputValidator?t1(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?t2(e,i):t5(e,i)},t1=(e,t,r)=>{let n=eT.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>y(n.inputValidator(t,n.validationMessage))).then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?t2(e,t):t5(e,t)})},t2=(e,t)=>{let r=eT.innerParams.get(e);r.showLoaderOnDeny&&tU(P()),r.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>y(r.preDeny(t,r.validationMessage))).then(r=>{!1===r?(e.hideLoading(),tD(e)):e.close({isDenied:!0,value:void 0===r?t:r})}).catch(t=>t3(e,t))):e.close({isDenied:!0,value:t})},t4=(e,t)=>{e.close({isConfirmed:!0,value:t})},t3=(e,t)=>{e.rejectPromise(t)},t5=(e,t)=>{let r=eT.innerParams.get(e);r.showLoaderOnConfirm&&tU(),r.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>y(r.preConfirm(t,r.validationMessage))).then(r=>{ei(I())||!1===r?(e.hideLoading(),tD(e)):t4(e,void 0===r?t:r)}).catch(t=>t3(e,t))):t4(e,t)};function t6(){let e=eT.innerParams.get(this);if(!e)return;let t=eT.domCache.get(this);ee(t.loader),F()?e.icon&&Q(k()):t8(t),Z([t.popup,t.actions],s.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),this.enableButtons()}let t8=e=>{let t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?Q(r[0],"inline-block"):eo()&&ee(e.actions)};function t7(){let e=eT.innerParams.get(this),t=eT.domCache.get(this);return t?V(t.popup,e.input):null}function t9(e,t,r){let n=eT.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function re(e,t){let r=E();r&&e&&("radio"===e.type?r.querySelectorAll(`[name="${s.radio}"]`).forEach(e=>{e.disabled=t}):e.disabled=t)}function rt(){t9(this,["confirmButton","denyButton","cancelButton"],!1);let e=eT.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),eT.focusedElement.delete(this)}function rr(){eT.focusedElement.set(this,document.activeElement),t9(this,["confirmButton","denyButton","cancelButton"],!0)}function rn(){re(this.getInput(),!1)}function ri(){re(this.getInput(),!0)}function ro(e){let t=eT.domCache.get(this),r=eT.innerParams.get(this);H(t.validationMessage,e),t.validationMessage.className=s["validation-message"],r.customClass&&r.customClass.validationMessage&&X(t.validationMessage,r.customClass.validationMessage),Q(t.validationMessage);let n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",s["validation-message"]),G(n),X(n,s.inputerror))}function rs(){let e=eT.domCache.get(this);e.validationMessage&&ee(e.validationMessage);let t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),Z(t,s.inputerror))}let ra={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose
224:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},rl=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],rc={allowEnterKey:void 0},ru=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],rd=e=>Object.prototype.hasOwnProperty.call(ra,e),rh=e=>-1!==rl.indexOf(e),rp=e=>rc[e],rf=e=>{rd(e)||u(`Unknown parameter "${e}"`)},rm=e=>{ru.includes(e)&&u(`The parameter "${e}" is incompatible with toasts`)},rg=e=>{let t=rp(e);t&&f(e,t)},ry=e=>{for(let t in!1===e.backdrop&&e.allowOutsideClick&&u('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&u(`Invalid theme "${e.theme}"`),e)rf(t),e.toast&&rm(t),rg(t)};function rv(e){let t=b(),r=E(),n=eT.innerParams.get(this);if(!r||z(r,n.hideClass.popup)){u("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}let i=Object.assign({},n,rw(e));ry(i),t&&(t.dataset.swal2Theme=i.theme),tn(this,i),eT.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}let rw=e=>{let t={};return Object.keys(e).forEach(r=>{rh(r)?t[r]=e[r]:u(`Invalid parameter to update: ${r}`)}),t};function rb(){var e;let t=eT.domCache.get(this),n=eT.innerParams.get(this);if(!n){rS(this);return}t.popup&&r.swalCloseEventFinishedCallback&&(r.swalCloseEventFinishedCallback(),delete r.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),null===(e=r.eventEmitter)||void 0===e||e.emit("didDestroy"),r_(this)}let r_=e=>{rS(e),delete e.params,delete r.keydownHandler,delete r.keydownTarget,delete r.currentInstance},rS=e=>{e.isAwaitingPromise?(rE(eT,e),e.isAwaitingPromise=!0):(rE(tg,e),rE(eT,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},rE=(e,t)=>{for(let r in e)e[r].delete(t)};var rk=Object.freeze({__proto__:null,_destroy:rb,close:tP,closeModal:tP,closePopup:tP,closeToast:tP,disableButtons:rr,disableInput:ri,disableLoading:t6,enableButtons:rt,enableInput:rn,getInput:t7,handleAwaitingPromise:tD,hideLoading:t6,rejectPromise:tL,resetValidationMessage:rs,showValidationMessage:ro,update:rv});let rx=(e,t,r)=>{e.toast?rC(e,t,r):(rI(t),rA(t),rR(e,t,r))},rC=(e,t,r)=>{t.popup.onclick=()=>{e&&(rT(e)||e.timer||e.input)||r(to.close)}},rT=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton),rO=!1,rI=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(rO=!0)}}},rA=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(rO=!0)}}},rR=(e,t,r)=>{t.container.onclick=n=>{if(rO){rO=!1;return}n.target===t.container&&m(e.allowOutsideClick)&&r(to.backdrop)}},rP=e=>"object"==typeof e&&null!==e&&"jquery"in e,rN=e=>e instanceof Element||rP(e),rL=()=>
224{if(r.timeout)return eu(),r.timeout.stop()},rD=()=>{if(r.timeout){let e=r.timeout.start();return ec(e),e}},rM=!1,rB={},rj=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(let e in rB){let r=t.getAttribute&&t.getAttribute(e);if(r){rB[e].fire({template:r});return}}};class r${constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){let r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){let r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){let r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}r.eventEmitter=new r$;var rU=Object.freeze({__proto__:null,argsToParams:e=>{let t={};return"object"!=typeof e[0]||rN(e[0])?["title","html","icon"].forEach((r,n)=>{let i=e[n];"string"==typeof i||rN(i)?t[r]=i:void 0!==i&&d(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t},bindClickHandler:function(e="data-swal-template"){rB[e]=this,rM||(document.body.addEventListener("click",rj),rM=!0)},clickCancel:()=>{var e;return null===(e=R())||void 0===e?void 0:e.click()},clickConfirm:ti,clickDeny:()=>{var e;return null===(e=P())||void 0===e?void 0:e.click()},enableLoading:tU,fire:function(...e){return new this(...e)},getActions:L,getCancelButton:R,getCloseButton:B,getConfirmButton:A,getContainer:b,getDenyButton:P,getFocusableElements:$,getFooter:D,getHtmlContainer:C,getIcon:k,getIconContent:()=>S(s["icon-content"]),getImage:T,getInputLabel:()=>S(s["input-label"]),getLoader:N,getPopup:E,getProgressSteps:O,getTimerLeft:()=>r.timeout&&r.timeout.getTimerLeft(),getTimerProgressBar:M,getTitle:x,getValidationMessage:I,increaseTimer:e=>{if(r.timeout){let t=r.timeout.increase(e);return ec(t,!0),t}},isDeprecatedParameter:rp,isLoading:()=>{let e=E();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!!(r.timeout&&r.timeout.isRunning()),isUpdatableParameter:rh,isValidParameter:rd,isVisible:()=>ei(E()),mixin:function(e){class t extends this{_main(t,r){return super._main(t,Object.assign({},e,r))}}return t},off:(e,t)=>{if(r.eventEmitter){if(!e){r.eventEmitter.reset();return}t?r.eventEmitter.removeListener(e,t):r.eventEmitter.removeAllListeners(e)}},on:(e,t)=>{r.eventEmitter&&r.eventEmitter.on(e,t)},once:(e,t)=>{r.eventEmitter&&r.eventEmitter.once(e,t)},resumeTimer:rD,showLoading:tU,stopTimer:rL,toggleTimer:()=>{let e=r.timeout;return e&&(e.running?rL():rD())}});class rF{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){let t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}let rH=["swal-title","swal-html","swal-footer"],rz=e=>{let t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};let r=t.content;return rK(r),Object.assign(rq(r),rW(r),rV(r),rG(r),rJ(r),rX(r),rZ(r,rH))},rq=e=>{let t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{rY(e,["name","value"]);let r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in ra&&"boolean"==typeof ra[r]?t[r]="false"!==n:r in ra&&"object"==typeof ra[r]?t[r]=JSON.parse(n):t[r]=n)}),t},rW=e=>{let t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{let r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=Function(`return ${n}`)())}),t},rV=e=>{let t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{rY(e,["type","color","aria-label"]);let r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${c(r)}Button`]=!0;let n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);let i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},rG=e=>{let t={},r=e.querySelector("swal-image");if(r){rY(r,["src","width","height","alt"]);let e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);let n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);let i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);let o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},rJ=e=>{let t={},r=e.querySelector("swal-icon");return r&&(rY(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},rX=e=>{let t={},r=e.querySelector("swal-input");r&&(rY(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));let n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={}
224,n.forEach(e=>{rY(e,["value"]);let r=e.getAttribute("value");if(!r)return;let n=e.innerHTML;t.inputOptions[r]=n})),t},rZ=(e,t)=>{let r={};for(let n in t){let i=t[n],o=e.querySelector(i);o&&(rY(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},rK=e=>{let t=rH.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{let r=e.tagName.toLowerCase();t.includes(r)||u(`Unrecognized element <${r}>`)})},rY=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&u([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},rQ=e=>{var t,n;let i=b(),o=E();if(!i||!o)return;"function"==typeof e.willOpen&&e.willOpen(o),null===(t=r.eventEmitter)||void 0===t||t.emit("willOpen",o);let s=window.getComputedStyle(document.body).overflowY;if(r4(i,o,e),setTimeout(()=>{r1(i,o)},10),U()&&(r2(i,void 0!==e.scrollbarPadding&&e.scrollbarPadding,s),ty()),tb&&!1===e.backdrop&&o.scrollHeight>i.clientHeight&&(i.style.pointerEvents="auto"),F()||r.previousActiveElement||(r.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){let t=e.didOpen;setTimeout(()=>t(o))}null===(n=r.eventEmitter)||void 0===n||n.emit("didOpen",o)},r0=e=>{let t=E();if(!t||e.target!==t)return;let r=b();r&&(t.removeEventListener("animationend",r0),t.removeEventListener("transitionend",r0),r.style.overflowY="auto",Z(r,s["no-transition"]))},r1=(e,t)=>{el(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",r0),t.addEventListener("transitionend",r0)):e.style.overflowY="auto"},r2=(e,t,r)=>{t_(),t&&"hidden"!==r&&tI(r),setTimeout(()=>{e.scrollTop=0})},r4=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&X(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),Q(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&X(t,r.showClass.popup),t.style.removeProperty("opacity")},10)):Q(t,"grid"),X([document.documentElement,document.body],s.shown),r.heightAuto&&r.backdrop&&!r.toast&&X([document.documentElement,document.body],s["height-auto"])};var r3={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")},r5=new WeakMap;class r6{constructor(...r){var n,i;if(n=Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0}),function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,r5),r5.set(this,n),"undefined"==typeof window)return;e=this;let o=Object.freeze(this.constructor.argsToParams(r));this.params=o,this.isAwaitingPromise=!1,i=this._main(e.params),r5.set(t(r5,this),i)}_main(t,n={}){if(ry(Object.assign({},n,t)),r.currentInstance){let e=tg.swalPromiseResolve.get(r.currentInstance),{isAwaitingPromise:t}=r.currentInstance;r.currentInstance._destroy(),t||e({isDismissed:!0}),U()&&tv()}r.currentInstance=e;let i=r7(t,n);i.inputValidator||("email"===i.input&&(i.inputValidator=r3.email),"url"!==i.input||(i.inputValidator=r3.url)),i.showLoaderOnConfirm&&!i.preConfirm&&u("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),i.target&&("string"!=typeof i.target||document.querySelector(i.target))&&("string"==typeof i.target||i.target.appendChild)||(u('Target parameter is not valid, defaulting to "body"'),i.target="body"),"string"==typeof i.title&&(i.title=i.title.split("\n").join("<br />")),ew(i),Object.freeze(i),r.timeout&&(r.timeout.stop(),delete r.timeout),clearTimeout(r.restoreFocusTimeout);let o=r9(e);return tn(e,i),eT.innerParams.set(e,i),r8(e,o,i)}then(e){return r5.get(t(r5,this)).then(e)}finally(e){return r5.get(t(r5,this)).finally(e)}}
224let r8=(e,t,n)=>new Promise((i,o)=>{let s=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};tg.swalPromiseResolve.set(e,i),tg.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{tK(e)},t.denyButton.onclick=()=>{tY(e)},t.cancelButton.onclick=()=>{tQ(e,s)},t.closeButton.onclick=()=>{s(to.close)},rx(n,t,s),ta(r,n,s),tH(e,n),rQ(n),ne(r,n,s),nt(t,n),setTimeout(()=>{t.container.scrollTop=0})}),r7=(e,t)=>{let r=Object.assign({},ra,t,rz(e),e);return r.showClass=Object.assign({},ra.showClass,r.showClass),r.hideClass=Object.assign({},ra.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},r9=e=>{let t={popup:E(),container:b(),actions:L(),confirmButton:A(),denyButton:P(),cancelButton:R(),loader:N(),closeButton:B(),validationMessage:I(),progressSteps:O()};return eT.domCache.set(e,t),t},ne=(e,t,r)=>{let n=M();ee(n),t.timer&&(e.timeout=new rF(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(Q(n),W(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ec(t.timer)})))},nt=(e,t)=>{if(!t.toast){if(!m(t.allowEnterKey)){f("allowEnterKey","preConfirm: () => false"),e.popup.focus();return}nr(e)||nn(e,t)||tl(-1,1)}},nr=e=>{for(let t of Array.from(e.popup.querySelectorAll("[autofocus]")))if(t instanceof HTMLElement&&ei(t))return t.focus(),!0;return!1},nn=(e,t)=>t.focusDeny&&ei(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ei(e.cancelButton)?(e.cancelButton.focus(),!0):!!(t.focusConfirm&&ei(e.confirmButton))&&(e.confirmButton.focus(),!0);r6.prototype.disableButtons=rr,r6.prototype.enableButtons=rt,r6.prototype.getInput=t7,r6.prototype.disableInput=ri,r6.prototype.enableInput=rn,r6.prototype.hideLoading=t6,r6.prototype.disableLoading=t6,r6.prototype.showValidationMessage=ro,r6.prototype.resetValidationMessage=rs,r6.prototype.close=tP,r6.prototype.closePopup=tP,r6.prototype.closeModal=tP,r6.prototype.closeToast=tP,r6.prototype.rejectPromise=tL,r6.prototype.update=rv,r6.prototype._destroy=rb,Object.assign(r6,rU),Object.keys(rk).forEach(t=>{r6[t]=function(...r){if(e&&e[t])return e[t](...r)}}),r6.DismissReason=to,r6.version="11.26.25";let ni=r6;return ni.default=ni,ni},e.exports=t(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;
224--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end
vendor: 12,791 bytes, line 224
224";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:
224"!
vendor: 11,078 bytes, line 224
224";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}
224')},86257:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var n=r(53494);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=r(34248);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var o=r(92239);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},53494:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let o=i(r(89426)),s=r(17058);t.GoogleAnalytics=e=>{var t=n(e,[]);return(0,s.formatData)(o.default,t)}},34248:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let o=i(r(27395)),s=r(17058);t.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,s.formatData)(o.default,t)}},92239:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let o=i(r(88420)),s=r(17058);t.YouTubeEmbed=e=>{var t=n(e,[]);return(0,s.formatData)(o.default,t)}},17058:function(e,t){"use strict";function r(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function n(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function i(e,t,r,i,o){var s;if(!t)return`<${e}></${e}>`;let a=(null===(s=t.src)||void 0===s?void 0:s.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,i,o)}):t,l=Object.keys(Object.assign(Object.assign({},a),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=a[t],o=null!=n?n:i,s=!0===o?t:`${t}="${o}"`;return o?e+` ${s}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=n,t.createHtml=i,t.formatData=function(e,t){var o,s,a,l,c;let u=r(t,null===(o=e.scripts)||void 0===o?void 0:o.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=r(t,null===(a=null===(s=e.html)||void 0===s?void 0:s.attributes.src)||void 0===a?void 0:a.params),h=r(t,[null===(c=null===(l=e.html)||void 0===l?void 0:l.attributes.src)||void 0===c?void 0:c.slugParam]),p=r(t,[...Object.keys(u),...Object.keys(d),...Object.keys(h)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,p,d,h):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,u)})):null})}},57632:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});for(var n,i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),s=[],a=0;a<256;++a)s.push((a+256).toString(16).slice(1));var l=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();var a=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var l=0;l<16;++l)t[r+l]=a[l];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(a)}},42480:function(){},25816:function(e,t,r){"use strict";let n,i,o;r.d(t,{Jn:function(){return B},qX:function(){return N},rh:function(){return L},Xd:function(){return P},Mq:function(){return $},ZF:function(){return j},KN:function(){return U}});var s=r(8463),a=r(53333),l=r(74444);let c=(e,t)=>t.some(t=>e instanceof t),u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return d.get(e);if("objectStoreNames"===t)return e.objectStoreNames||h.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return g(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function g(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(g(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&u.set(t,e)}).catch(()=>{}),f.set(t,e),t}(e);if(p.has(e))return p.get(e);let r="function"==typeof(t=e)?t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(y(this),e),g(u.get(this))}:function(...e){return g(t.apply(y(this),e))}:function(e,...r){let n=t.call(y(this),e,...r);return h.set(n,e.sort?e.sort():[e]),g(n)}:(t instanceof IDBTransaction&&function(e){if(d.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});d.set(e,t)}(t),c(t,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,m):t;return r!==e&&(p.set(e,r),f.set(r,e)),r}let y=e=>f.get(e),v=["get","getKey","getAll","getAllKeys","count"],w=["put","add","delete","clear"],b=new Map;function _(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(b.get(t))return b.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=w.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||v.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;
224return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return b.set(t,o),o}m={...o=m,get:(e,t,r)=>_(e,t)||o.get(e,t,r),has:(e,t)=>!!_(e,t)||o.has(e,t)};/**
225 * @license
226 * Copyright 2019 Google LLC
227 *
228 * Licensed under the Apache License, Version 2.0 (the "License");
229 * you may not use this file except in compliance with the License.
230 * You may obtain a copy of the License at
231 *
232 *   http://www.apache.org/licenses/LICENSE-2.0
233 *
234 * Unless required by applicable law or agreed to in writing, software
235 * distributed under the License is distributed on an "AS IS" BASIS,
236 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
237 * See the License for the specific language governing permissions and
238 * limitations under the License.
239 */class S{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let E="@firebase/app",k="0.10.13",x=new a.Yd("@firebase/app"),C="[DEFAULT]",T={[E]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},O=new Map,I=new Map,A=new Map;function R(e,t){try{e.container.addComponent(t)}catch(r){x.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function P(e){let t=e.name;if(A.has(t))return x.debug(`There were multiple attempts to register component ${t}.`),!1;for(let r of(A.set(t,e),O.values()))R(r,e);for(let t of I.values())R(t,e);return!0}function N(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}function L(e){return void 0!==e.settings}let D=new l.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
239d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});/**
240 * @license
241 * Copyright 2019 Google LLC
242 *
243 * Licensed under the Apache License, Version 2.0 (the "License");
244 * you may not use this file except in compliance with the License.
245 * You may obtain a copy of the License at
246 *
247 *   http://www.apache.org/licenses/LICENSE-2.0
248 *
249 * Unless required by applicable law or agreed to in writing, software
250 * distributed under the License is distributed on an "AS IS" BASIS,
251 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
252 * See the License for the specific language governing permissions and
253 * limitations under the License.
254 */class M{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new s.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw D.create("app-deleted",{appName:this._name})}}/**
255 * @license
256 * Copyright 2019 Google LLC
257 *
258 * Licensed under the Apache License, Version 2.0 (the "License");
259 * you may not use this file except in compliance with the License.
260 * You may obtain a copy of the License at
261 *
262 *   http://www.apache.org/licenses/LICENSE-2.0
263 *
264 * Unless required by applicable law or agreed to in writing, software
265 * distributed under the License is distributed on an "AS IS" BASIS,
266 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
267 * See the License for the specific language governing permissions and
268 * limitations under the License.
269 */let B="10.14.1";function j(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let n=Object.assign({name:C,automaticDataCollectionEnabled:!1},t),i=n.name;if("string"!=typeof i||!i)throw D.create("bad-app-name",{appName:String(i)});if(r||(r=(0,l.aH)()),!r)throw D.create("no-options");let o=O.get(i);if(o){if((0,l.vZ)(r,o.options)&&(0,l.vZ)(n,o.config))return o;throw D.create("duplicate-app",{appName:i})}let a=new s.H0(i);for(let e of A.values())a.addComponent(e);let c=new M(r,n,a);return O.set(i,c),c}function $(e=C){let t=O.get(e);if(!t&&e===C&&(0,l.aH)())return j();if(!t)throw D.create("no-app",{appName:e});return t}function U(e,t,r){var n;let i=null!==(n=T[e])&&void 0!==n?n:e;r&&(i+=`-${r}`);let o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){let e=[`Unable to register library "${i}" with version "${t}":`];o&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),x.warn(e.join(" "));return}P(new s.wA(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}let F="firebase-heartbeat-store",H=null;function z(){return H||(H=(function(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,1),a=g(s);return n&&s.addEventListener("upgradeneeded",e=>{n(g(s.result),e.oldVersion,e.newVersion,g(s.transaction),e)}),r&&s.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a})("firebase-heartbeat-database",0,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(F)}catch(e){console.warn(e)}}}).catch(e=>{throw D.create("idb-open",{originalErrorMessage:e.message})})),H}async function q(e){try{let t=(await z()).transaction(F),r=await t.objectStore(F).get(V(e));return await t.done,r}catch(e){if(e instanceof l.ZR)x.warn(e.message);else{let t=D.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});x.warn(t.message)}}}async function W(e,t){try{let r=(await z()).transaction(F,"readwrite"),n=r.objectStore(F);await n.put(t,V(e)),await r.done}catch(e){if(e instanceof l.ZR)x.warn(e.message);else{let t=D.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});x.warn(t.message)}}}function V(e){return`${e.name}!${e.options.appId}`}class G{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new X(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{let r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=J();if((null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(e=>e.date===n))return;return this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let t=new Date(e.date).valueOf();return Date.now()-t<=2592e6}),this._storage.overwrite(this._heartbeatsCache)}catch(e){x.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let t=J(),{heartbeatsToSend:r,unsentEntries:n}=function(e,t=1024){let r=[],n=e.slice();for(let i of e){let e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),Z(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),Z(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),i=(0,l.L)(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return x.warn(e),""}}}function J(){return new Date().toISOString().substring(0,10)}class X{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,l.hl)()&&(0,l.eu)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await q(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return W(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return W(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function Z(e){return(0,l.L)(JSON.stringify({version:2,heartbeats:e})).length}P(new s.wA("platform-logger",e=>new S(e),"PRIVATE")),P(new s.wA("heartbeat",e=>new G(e),"PRIVATE")),U(E,k,""),U(E,k,"esm2017"),U("fire-js","")},8463:function(e,t,r){"use strict";r.d(t,{H0:function(){return a},wA:function(){return i}});var n=r(74444);class i{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
270 * @license
271 * Copyright 2019 Google LLC
272 *
273 * Licensed under the Apache License, Version 2.0 (the "License");
274 * you may not use this file except in compliance with the License.
275 * You may obtain a copy of the License at
276 *
277 *   http://www.apache.org/licenses/LICENSE-2.0
278 *
279 * Unless required by applicable law or agreed to in writing, software
280 * distributed under the License is distributed on an "AS IS" BASIS,
281 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
282 * See the License for the specific language governing permissions and
283 * limitations under the License.
284 */let o="[DEFAULT]";/**
285 * @license
286 * Copyright 2019 Google LLC
287 *
288 * Licensed under the Apache License, Version 2.0 (the "License");
289 * you may not use this file except in compliance with the License.
290 * You may obtain a copy of the License at
291 *
292 *   http://www.apache.org/licenses/LICENSE-2.0
293 *
294 * Unless required by applicable law or agreed to in writing, software
295 * distributed under the License is distributed on an "AS IS" BASIS,
296 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
297 * See the License for the specific language governing permissions and
298 * limitations under the License.
299 */class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new n.BH;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}else{if(n)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:o})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=o){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=o){return this.instances.has(e)}getOptions(e=o){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){var r;let n=this.normalizeInstanceIdentifier(t),i=null!==(r=this.onInitCallbacks.get(n))&&void 0!==r?r:new Set;i.add(e),this.onInitCallbacks.set(n,i);let o=this.instances.get(n);return o&&e(o,n),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let n of r)try{n(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:e===o?void 0:e,options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(e){}return r||null}normalizeInstanceIdentifier(e=o){return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}/**
300 * @license
301 * Copyright 2019 Google LLC
302 *
303 * Licensed under the Apache License, Version 2.0 (the "License");
304 * you may not use this file except in compliance with the License.
305 * You may obtain a copy of the License at
306 *
307 *   http://www.apache.org/licenses/LICENSE-2.0
308 *
309 * Unless required by applicable law or agreed to in writing, software
310 * distributed under the License is distributed on an "AS IS" BASIS,
311 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
312 * See the License for the specific language governing permissions and
313 * limitations under the License.
314 */class a{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},53333:function(e,t,r){"use strict";var n,i;r.d(t,{Yd:function(){return u},in:function(){return n}});/**
315 * @license
316 * Copyright 2017 Google LLC
317 *
318 * Licensed under the Apache License, Version 2.0 (the "License");
319 * you may not use this file except in compliance with the License.
320 * You may obtain a copy of the License at
321 *
322 *   http://www.apache.org/licenses/LICENSE-2.0
323 *
324 * Unless required by applicable law or agreed to in writing, software
325 * distributed under the License is distributed on an "AS IS" BASIS,
326 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
327 * See the License for the specific language governing permissions and
328 * limitations under the License.
329 */let o=[];(i=n||(n={}))[i.DEBUG=0]="DEBUG",i[i.VERBOSE=1]="VERBOSE",i[i.INFO=2]="INFO",i[i.WARN=3]="WARN",i[i.ERROR=4]="ERROR",i[i.SILENT=5]="SILENT";let s={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},a=n.INFO,l={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},c=(e,t,...r)=>{if(t<e.logLevel)return;let n=new Date().toISOString(),i=l[t];if(i)console[i](`[${n}]  ${e.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class u{constructor(e){this.name=e,this._logLevel=a,this._logHandler=c,this._userLogHandler=null,o.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in n))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?s[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,n.DEBUG,...e),this._logHandler(this,n.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,n.VERBOSE,...e),this._logHandler(this,n.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,n.INFO,...e),this._logHandler(this,n.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,n.WARN,...e),this._logHandler(this,n.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,n.ERROR,...e),this._logHandler(this,n.ERROR,...e)}}},60811:function(e,t,r){"use strict";r.d(t,{G:function(){return h}});var n=r(13533),i=r(43927),o=r(33280),s=r(24925);class a{constructor(e,t){let r,n;r=e||new i.s,n=t||new i.s,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,s.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function l(){let e=(0,n.c)(),t=(0,n.q)(e);return t.stack=t.stack||new a((0,o.Y)("defaultCurrentScope",()=>new i.s),(0,o.Y)("defaultIsolationScope",()=>new i.s))}function c(e){return l().withScope(e)}function u(e,t){let r=l();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}function h(e){let t=(0,n.q)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:c,withSetScope:u,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},13533:function(e,t,r){"use strict";r.d(t,{c:function(){return o},q:function(){return s}});var n=r(49889),i=r(33280);function o(){return s(i.GLOBAL_OBJ),i.GLOBAL_OBJ}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.J,t[n.J]=t[n.J]||{}}},73243:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n="production"},73076:function(e,t,r){"use strict";r.d(t,{$e:function(){return d},XX:function(){return p},aF:function(){return c},lW:function(){return u},nZ:function(){return l},s3:function(){return h}});var n=r(60811),i=r(13533),o=r(43927),s=r(51150),a=r(33280);function l(){let e=(0,i.c)();return(0,n.G)(e).getCurrentScope()}function c(){let e=(0,i.c)();return(0,n.G)(e).getIsolationScope()}function u(){return(0,a.Y)("globalScope",()=>new o.s)}function d(...e){let t=(0,i.c)(),r=(0,n.G)(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function h(){return l().getClient()}function p(e){let{traceId:t,spanId:r,parentSpanId:n}=e.getPropagationContext();return(0,s.Jr)({trace_id:t,span_id:r,parent_span_id:n})}},94223:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},39424:function(e,t,r){"use strict";r.d(t,{Qy:function(){return m},Tb:function(){return u},_k:function(){return f},cg:function(){return w},eN:function(){return d},v:function(){return h},yj:function(){return g},yl:function(){return p}});var n=r(73243),i=r(73076),o=r(94223),s=r(10042),a=r(17986),l=r(33280),c=r(47515);function u(e,t){return(0,i.nZ)().captureException(e,(0,c.U0)(t))}function d(e,t){return(0,i.nZ)().captureEvent(e,t)}function h(e,t){(0,i.aF)().setContext(e,t)}async function p(e){let t=(0,i.s3)();return t?t.flush(e):(o.X&&a.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function f(){let e=(0,i.s3)();return!!e&&!1!==e.getOptions().enabled&&!!e.getTransport()}function m(e){(0,i.aF)().addEventProcessor(e)}function g(e){let t=(0,i.s3)(),r=(0,i.aF)(),o=(0,i.nZ)(),{release:a,environment:c=n.J}=t&&t.getOptions()||{},{userAgent:u}
329=l.GLOBAL_OBJ.navigator||{},d=(0,s.Hv)({release:a,environment:c,user:o.getUser()||r.getUser(),...u&&{userAgent:u},...e}),h=r.getSession();return h&&"ok"===h.status&&(0,s.CT)(h,{status:"exited"}),y(),r.setSession(d),o.setSession(d),d}function y(){let e=(0,i.aF)(),t=(0,i.nZ)(),r=t.getSession()||e.getSession();r&&(0,s.RJ)(r),v(),e.setSession(),t.setSession()}function v(){let e=(0,i.aF)(),t=(0,i.nZ)(),r=(0,i.s3)(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n)}function w(e=!1){if(e){y();return}v()}},72751:function(e,t,r){"use strict";r.d(t,{y:function(){return i}});var n=r(51150);function i(e){let t=e._sentryMetrics;if(!t)return;let r={};for(let[,[e,i]]of t)(r[e]||(r[e]=[])).push((0,n.Jr)(i));return r}},43927:function(e,t,r){"use strict";r.d(t,{s:function(){return h}});var n=r(10042),i=r(24925),o=r(17986),s=r(82305),a=r(51824),l=r(59943),c=r(3613),u=r(89366);class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,a.Ht)(),spanId:(0,a.M)()}}clone(){let e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,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._lastEventId=this._lastEventId,(0,u.D)(e,(0,u.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}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,username:void 0},this._session&&(0,n.CT)(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}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[r,n]=t instanceof h?[t.getScopeData(),t.getRequestSession()]:(0,i.PO)(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:a,contexts:l,level:c,fingerprint:u=[],propagationContext:d}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},a&&Object.keys(a).length&&(this._user=a),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),n&&(this._requestSession=n),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._session=void 0,(0,u.D)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,a.Ht)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,l.yW)(),...e};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.re
329cordDroppedEvent("buffer_overflow","log_item")),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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,u.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,c.T)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:(0,a.M)(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t&&t.event_id?t.event_id:(0,s.DM)();if(!this._client)return o.kg.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r&&r.event_id?r.event_id:(0,s.DM)();if(!this._client)return o.kg.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:(0,s.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):o.kg.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let h=d},31218:function(e,t,r){"use strict";r.d(t,{$J:function(){return o},E1:function(){return l},JQ:function(){return h},S3:function(){return s},TE:function(){return i},Wb:function(){return c},Zj:function(){return n},ju:function(){return a},p6:function(){return d},xF:function(){return u}});let n="sentry.source",i="sentry.sample_rate",o="sentry.op",s="sentry.origin",a="sentry.idle_span_finish_reason",l="sentry.measurement_unit",c="sentry.measurement_value",u="sentry.custom_span_name",d="sentry.profile_id",h="sentry.exclusive_time"},10042:function(e,t,r){"use strict";r.d(t,{CT:function(){return a},Hv:function(){return s},RJ:function(){return l}});var n=r(51150),i=r(59943),o=r(82305);function s(e){let t=(0,i.ph)(),r={sid:(0,o.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,n.Jr)({sid:`${r.sid}`,init:r.init,started:new Date(1e3*r.started).toISOString(),timestamp:new Date(1e3*r.timestamp).toISOString(),status:r.status,errors:r.errors,did:"number"==typeof r.did||"string"==typeof r.did?`${r.did}`:void 0,duration:r.duration,abnormal_mechanism:r.abnormal_mechanism,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})};return e&&a(r,e),r}function a(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||(0,i.ph)(),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:(0,o.DM)()),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{let 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 l(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},72123:function(e,t,r){"use strict";r.d(t,{CG:function(){return p},Lh:function(){return d},jC:function(){return f}});
329var n=r(73243),i=r(73076),o=r(31218),s=r(98823),a=r(51150),l=r(67973),c=r(81585);let u="_frozenDsc";function d(e,t){(0,a.xp)(e,u,t)}function h(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},o=(0,a.Jr)({environment:r.environment||n.J,release:r.release,public_key:i,trace_id:e});return t.emit("createDsc",o),o}function p(e,t){let r=t.getPropagationContext();return r.dsc||h(r.traceId,e)}function f(e){let t=(0,i.s3)();if(!t)return{};let r=(0,c.Gx)(e),n=r[u];if(n)return n;let a=r.spanContext().traceState,d=a&&a.get("sentry.dsc"),p=d&&(0,s.EN)(d);if(p)return p;let f=h(e.spanContext().traceId,t),m=(0,c.XU)(r),g=m.data||{},y=g[o.TE];null!=y&&(f.sample_rate=`${y}`);let v=g[o.Zj],w=m.description;return"url"!==v&&w&&(f.transaction=w),(0,l.z)()&&(f.sampled=String((0,c.Tt)(r))),t.emit("createDsc",f,r),f}},69737:function(e,t,r){"use strict";r.d(t,{OP:function(){return i},Q0:function(){return s},jt:function(){return o},pq:function(){return n}});let n=0,i=1,o=2;function s(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}},98823:function(e,t,r){"use strict";r.d(t,{EN:function(){return l},IQ:function(){return c},XM:function(){return u},lq:function(){return s}});var n=r(23187),i=r(24925),o=r(17986);let s="sentry-",a=/^sentry-/;function l(e){let t=u(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(a)&&(e[t.slice(s.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function c(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],i)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===i?s:`${e},${s}`;return a.length>8192?(n.X&&o.kg.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e),{}))}function u(e){return e&&((0,i.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(d(t)).forEach(([t,r])=>{e[t]=r}),e),{}):d(e):void 0}function d(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}},70428:function(e,t,r){"use strict";r.d(t,{Rt:function(){return o},iY:function(){return l},l4:function(){return s},qT:function(){return a}});var n=r(24925);let i=r(33280).GLOBAL_OBJ;function o(e,t={}){if(!e)return"<unknown>";try{let r,o=e,s=[],a=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&a++<5&&(r=function(e,t){let r=[];if(!e||!e.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let o=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o&&o.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&(0,n.HD)(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(o,c),"html"!==r&&(!(a>1)||!(l+3*s.length+r.length>=u)));)s.push(r),l+=r.length,o=o.parentNode;return s.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(){try{return i.document.location.href}catch(e){return""}}function a(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function l(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},23187:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},24925:function(e,t,r){"use strict";r.d(t,{Cy:function(){return y},HD:function(){return c},J8:function(){return g},Kj:function(){return m},Le:function(){return u},PO:function(){return h},TX:function(){return a},V9:function(){return v},VW:function(){return s},VZ:function(){return i},cO:function(){return p},fm:function(){return l},kK:function(){return f},pt:function(){return d},y1:function(){return w}});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object E
329xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&v(e,Event)}function f(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}function y(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function w(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},17986:function(e,t,r){"use strict";r.d(t,{Cf:function(){return a},LD:function(){return s},RU:function(){return o},kg:function(){return l}});var n=r(23187),i=r(33280);let o=["debug","info","warn","error","log","assert","trace"],s={};function a(e){if(!("console"in i.GLOBAL_OBJ))return e();let t=i.GLOBAL_OBJ.console,r={},n=Object.keys(s);n.forEach(e=>{let n=s[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let l=(0,i.Y)("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return n.X?o.forEach(r=>{t[r]=(...t)=>{e&&a(()=>{i.GLOBAL_OBJ.console[r](`Sentry Logger [${r}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>void 0}),t})},82305:function(e,t,r){"use strict";r.d(t,{DM:function(){return o},Db:function(){return l},EG:function(){return c},YO:function(){return u},jH:function(){return a}});var n=r(51150),i=r(33280);function o(){let e=i.GLOBAL_OBJ,t=e.crypto||e.msCrypto,r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function a(e){let{message:t,event_id:r}=e;if(t)return t;let n=s(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function l(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function c(e,t){let r=s(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n&&n.data,...t.data};r.mechanism.data=e}}function u(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{(0,n.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}},90059:function(e,t,r){"use strict";r.d(t,{Fv:function(){return s},Qy:function(){return function e(t,r=3,n=102400){let i=s(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}}});var n=r(24925),i=r(51150),o=r(39649);function s(e,t=100,r=Infinity){try{return function e(t,r,s=Infinity,a=Infinity,l=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++)if(t[e]===r)return!0;return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}()){let[c,u]=l;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let d=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((0,n.y1)(t))return"[VueViewModel]";if((0,n.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!d.startsWith("[object "))return d;if(r.__sentry_skip_normalization__)return r;let h="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:s;if(0===h)return d.replace("object ","");if(c(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,h-1,a,l)}catch(e){}let p=Array.isArray(r)?[]:{},f=0,m=(0,i.Sh)(r);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(f>=a){p[t]="[MaxProperties ~]";break}let r=m[t];p[t]=e(t,r,h-1,a,l),f++}return u(r),p}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},51150:function(e,t,r){"use strict";r.d(t,{$Q:function(){return u},HK:function(){return d},Jr:function(){return g},Sh:function(){return h},hl:function(){return l},xp:function(){return c},zf:function(){return m}});var n=r(70428),i=r(23187),o=r(24925),s=r(17986),a=r(50027);function l(e,t,r){if(!(t in e))return;let n=e[t],o=r(n);"function"==typeof o&&u(o,n);try{e[t]=o}catch(r){i.X&&s.kg.log(`Failed to replace method "${t}" in object`,e)}}function c(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){i.X&&s.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,c(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function h(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if(!(0,o.cO)(e))return e;{let t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function p(e){try{return(0,o.kK)(e)?(0,n.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function f(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function m(e,t=40){let r=Object.keys(h(e));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,a.$G)(n,t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");
329if(!(n.length>t)){if(e===r.length)return n;return(0,a.$G)(n,t)}}return""}function g(e){return function e(t,r){if(function(e){if(!(0,o.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let n=r.get(t);if(void 0!==n)return n;let i={};for(let n of(r.set(t,i),Object.getOwnPropertyNames(t)))void 0!==t[n]&&(i[n]=e(t[n],r));return i}if(Array.isArray(t)){let n=r.get(t);if(void 0!==n)return n;let i=[];return r.set(t,i),t.forEach(t=>{i.push(e(t,r))}),i}return t}(e,new Map)}},51824:function(e,t,r){"use strict";r.d(t,{Ht:function(){return i},M:function(){return o}});var n=r(82305);function i(){return(0,n.DM)()}function o(){return(0,n.DM)().substring(16)}},39649:function(e,t,r){"use strict";r.d(t,{$P:function(){return u},Fi:function(){return n},Fr:function(){return d},Sq:function(){return a},pE:function(){return s}});let n="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function s(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,s=0)=>{let a=[],c=e.split("\n");for(let e=r;e<c.length;e++){let r=c[e];if(r.length>1024)continue;let n=i.test(r)?r.replace(i,"$1"):r;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){a.push(t);break}}if(a.length>=50+s)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),o.test(l(t).function||"")&&(t.pop(),o.test(l(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||l(t).filename,function:e.function||n}))}(a.slice(s))}}function a(e){return Array.isArray(e)?s(...e):e}function l(e){return e[e.length-1]||{}}let c="<anonymous>";function u(e){try{if(!e||"function"!=typeof e)return c;return e.name||c}catch(e){return c}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}},50027:function(e,t,r){"use strict";r.d(t,{$G:function(){return i},U0:function(){return s},nK:function(){return o}});var n=r(24925);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,n.y1)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function s(e,t=[],r=!1){return t.some(t=>(function(e,t,r=!1){return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):!!(0,n.HD)(t)&&(r?e===t:e.includes(t)))})(e,t,r))}},52340:function(e,t,r){"use strict";r.d(t,{$2:function(){return a},WD:function(){return s},cW:function(){return l}});var n,i,o=r(24925);function s(e){return new l(t=>{t(e)})}function a(e){return new l((t,r)=>{r(e)})}(n=i||(i={}))[n.PENDING=0]="PENDING",n[n.RESOLVED=1]="RESOLVED",n[n.REJECTED=2]="REJECTED";class l{constructor(e){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new l((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i){r(n);return}t(n)})})}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,o.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},59943:function(e,t,r){"use strict";r.d(t,{Z1:function(){return s},ph:function(){return o},yW:function(){return i}});var n=r(33280);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=n.GLOBAL_OBJ;if(!e||!e.now)return i;let t=Date.now()-e.now(),r=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/1e3}(),s=(()=>{let{performance:e}=n.GLOBAL_OBJ;if(!e||!e.now)return;let t=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+t-r):36e5;return i<36e5||s<36e5?i<=s?e.timeOrigin:o:r})()},94801:function(e,t,r){"use strict";r.d(t,{$p:function(){return a},Ke:function(){return o},pT:function(){return s}});var n=r(98823),i=r(51824);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(e,t){let r=function(e){let t;if(!e)return;let r=e.match(o);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),s=(0,n.EN)(t);if(!r||!r.traceId)return{traceId:(0,i.Ht)(),spanId:(0,i.M)()};let{traceId:a,parentSpanId:l,parentSampled:c}=r;return{traceId:a,parentSpanId:l,spanId:(0,i.M)(),sampled:c,dsc:s||{}}}function a(e=(0,i.Ht)(),t=(0,i.M)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},49889:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n="8.55.2"},33280:function(e,t,r){"use strict";r.d(t,{GLOBAL_OBJ:function(){return i},Y:function(){return o}});var n=r(49889);let i=globalThis;function o(e,t,r){let o=r||i,s=o.__SENTRY__=o.__SENTRY__||{},a=s[n.J]=s[n.J]||{};return a[e]||(a[e]=t())}},67973:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(73076);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=(0,n.s3)(),r=e||t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}},3613:function(e,t,r){"use strict";r.d(t,{T:function(){return function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&r&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}}})},47515:function(e,t,r){"use strict";let n,i,o;r.d(t,{U0:function(){return x},R:function(){return k}});
329var s=r(73243),a=r(73076),l=r(94223),c=r(24925),u=r(17986),d=r(52340),h=r(43927),p=r(33280),f=r(82305),m=r(90059),g=r(50027),y=r(59943),v=r(72123),w=r(51150),b=r(3613),_=r(81585);function S(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:f}=t;E(e,"extra",r),E(e,"tags",n),E(e,"user",i),E(e,"contexts",o),e.sdkProcessingMetadata=(0,b.T)(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function E(e,t,r){e[t]=(0,b.T)(e[t],r,1)}function k(e,t,r,b,E,k){let{normalizeDepth:x=3,normalizeMaxBreadth:C=1e3}=e,T={...t,event_id:t.event_id||r.event_id||(0,f.DM)(),timestamp:t.timestamp||(0,y.yW)()},O=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:o=250}=t;e.environment=e.environment||r||s.J,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i),e.message&&(e.message=(0,g.$G)(e.message,o));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,g.$G)(a.value,o));let l=e.request;l&&l.url&&(l.url=(0,g.$G)(l.url,o))})(T,e),O.length>0&&(T.sdk=T.sdk||{},T.sdk.integrations=[...T.sdk.integrations||[],...O]),E&&E.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=p.GLOBAL_OBJ._sentryDebugIds;if(!t)return{};let r=Object.keys(t);return o&&r.length===i?o:(i=r.length,o=r.reduce((r,i)=>{n||(n={});let o=n[i];if(o)r[o[0]]=o[1];else{let o=e(i);for(let e=o.length-1;e>=0;e--){let s=o[e],a=s&&s.filename,l=t[i];if(a&&l){r[a]=l,n[i]=[a,l];break}}}return r},{}))}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{r&&e.filename&&(e.debug_id=r[e.filename])})})}catch(e){}}(T,e.stackParser);let I=function(e,t){if(!t)return e;let r=e?e.clone():new h.s;return r.update(t),r}(b,r.captureContext);r.mechanism&&(0,f.EG)(T,r.mechanism);let A=E?E.getEventProcessors():[],R=(0,a.lW)().getScopeData();k&&S(R,k.getScopeData()),I&&S(R,I.getScopeData());let P=[...r.attachments||[],...R.attachments];return P.length&&(r.attachments=P),function(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:o}=t;(function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,transactionName:a}=t,l=(0,w.Jr)(r);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let c=(0,w.Jr)(n);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let u=(0,w.Jr)(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});let d=(0,w.Jr)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),n&&function(e,t){e.contexts={trace:(0,_.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,v.jC)(t),...e.sdkProcessingMetadata};let r=(0,_.Gx)(t),n=(0,_.XU)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],r&&(e.fingerprint=e.fingerprint.concat(r)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,i),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...o}}(T,R),(function e(t,r,n,i=0){return new d.cW((o,s)=>{let a=t[i];if(null===r||"function"!=typeof a)o(r);else{let d=a({...r},n);l.X&&a.id&&null===d&&u.kg.log(`Event processor "${a.id}" dropped event`),(0,c.J8)(d)?d.then(r=>e(t,r,n,i+1).then(o)).then(null,s):e(t,d,n,i+1).then(o).then(null,s)}})})([...A,...R.eventProcessors],T,r).then(e=>(e&&function(e){let 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||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof x&&x>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,m.Fv)(e.data,t,r)}}))},...e.user&&{user:(0,m.Fv)(e.user,t,r)},...e.contexts&&{contexts:(0,m.Fv)(e.contexts,t,r)},...e.extra&&{extra:(0,m.Fv)(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,m.Fv)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,m.Fv)(e.data,t,r)}}))),e.contexts&&e.contexts.flags&&n.contexts&&(n.contexts.flags=(0,m.Fv)(e.contexts.flags,3,r)),n}(e,x,C):e)}function x(e){return e?e instanceof h.s||"function"==typeof e||Object.keys(e).some(e=>C.includes(e))?{captureContext:e}:e:void 0}let C=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},89366:function(e,t,r){"use strict";r.d(t,{D:function(){return o},Y:function(){return s}});var n=r(51150);let i="_sentrySpan";function o(e,t){t?(0,n.xp)(e,i,t):delete e[i]}function s(e){return e[i]}},81585:function(e,t,r){"use strict";r.d(t,{$k:function(){return _},Dp:function(){return A},Gx:function(){return R},HN:function(){return P},HR:function(){return v},Hb:function(){return b},R6:function(){return N},Tt:function(){return k},XU:function(){return E},_4:function(){return x},ed:function(){return I},i0:function(){return g},j5:function(){return O},ve:function(){return m},wy:function(){return w}});var n=r(60811),i=r(13533),o=r(73076),s=r(72751),a=r(31218),l=r(69737),c=r(17986),u=r(51150),d=r(51824),h=r(59943),p=r(94801),f=r(89366);let m=0,g=1,y=!1;function v(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:s,origin:a}=E(e);return(0,u.Jr)({parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:s,origin:a})}function w(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:E(e).parent_span_id,o=n?(0,d.M)():t;return(0,u.Jr)({parent_span_id:i,span_id:o,trace_id:r})}function b(e){let{traceId:t,spanId:r}=e.spanContext(),n=k(e);return(0,p.$p)(t,r,n)}function _(e){return"number"==typeof e?S(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?S(e.getTime()):(0,h.ph)()}function S(e){return e>9999999999?e/1e3:e}function E(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:r}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:n,startTime:i,name:o,endTime:l,parentSpanId:c,status:d}=e;return(0,u.Jr)({span_id:t,trace_id:r,data:n,description:o,parent_span_id:c,start_timestamp:_(i),timestamp:_(l)||void 0,status:x(d),op:n[a.$J],origin:n[a.S3],_metrics_summary:(0,s.y)(e)})}return{span_id:t,trace_id:r}}catch(e){return{}}}function k(e){let{traceFlags:t}=e.spanContext();return t===g}function x(e){return e&&e.code!==l.pq?e.code===l.OP?"ok":e.message||"unknown_error":void 0}let C="_sentryChildSpans",T="_sentryRootSpan";function O(e,t){let r=e[T]||e;(0,u.xp)(t,T,r),e[C]?e[C].add(t):(0,u.xp)(e,C,new Set([t]))}function I(e,t){e[C]&&e[C].delete(t)}function A(e){let t=new Set;return function e(r){if(!t.has(r)&&k(r))for(let n of(t.add(r),r[C]?Array.from(r[C]):[]))e(n)}(e),Array.from(t)}function R(e){return e[T]||e}function P(){let e=(0,i.c)(),t=(0,n.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,f.Y)((0,o.nZ)())}function N(){y||((0,c.Cf)(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
329sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),y=!0)}},36096:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},92729:function(e,t,r){"use strict";let n,i,o,s;r.d(t,{Z:function(){return tx}});var a,l,c,u,d={};function h(e,t){return function(){return e.apply(t,arguments)}}r.r(d),r.d(d,{hasBrowserEnv:function(){return eN},hasStandardBrowserEnv:function(){return eD},hasStandardBrowserWebWorkerEnv:function(){return eM},navigator:function(){return eL},origin:function(){return eB}});var p=r(83454);let{toString:f}=Object.prototype,{getPrototypeOf:m}=Object,{iterator:g,toStringTag:y}=Symbol,v=(n=Object.create(null),e=>{let t=f.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),w=e=>(e=e.toLowerCase(),t=>v(t)===e),b=e=>t=>typeof t===e,{isArray:_}=Array,S=b("undefined");function E(e){return null!==e&&!S(e)&&null!==e.constructor&&!S(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let k=w("ArrayBuffer"),x=b("string"),C=b("function"),T=b("number"),O=e=>null!==e&&"object"==typeof e,I=e=>{if("object"!==v(e))return!1;let t=m(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(y in e)&&!(g in e)},A=w("Date"),R=w("File"),P=w("Blob"),N=w("FileList"),L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},D=void 0!==L.FormData?L.FormData:void 0,M=w("URLSearchParams"),[B,j,$,U]=["ReadableStream","Request","Response","Headers"].map(w);function F(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),_(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(E(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}}function H(e,t){let r;if(E(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,q=e=>!S(e)&&e!==z,W=(i="undefined"!=typeof Uint8Array&&m(Uint8Array),e=>i&&e instanceof i),V=w("HTMLFormElement"),G=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),{propertyIsEnumerable:J}=Object.prototype,X=w("RegExp"),Z=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};F(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},K=w("AsyncFunction"),Y=(a="function"==typeof setImmediate,l=C(z.postMessage),a?setImmediate:l?(c=`axios@${Math.random()}`,u=[],z.addEventListener("message",({source:e,data:t})=>{e===z&&t===c&&u.length&&u.shift()()},!1),e=>{u.push(e),z.postMessage(c,"*")}):e=>setTimeout(e)),Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):void 0!==p&&p.nextTick||Y;var ee={isArray:_,isArrayBuffer:k,isBuffer:E,isFormData:e=>{if(!e)return!1;if(D&&e instanceof D)return!0;let t=m(e);if(!t||t===Object.prototype||!C(e.append))return!1;let r=v(e);return"formdata"===r||"object"===r&&C(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&k(e.buffer)},isString:x,isNumber:T,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:I,isEmptyObject:e=>{if(!O(e)||E(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:B,isRequest:j,isResponse:$,isHeaders:U,isUndefined:S,isDate:A,isFile:R,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:P,isRegExp:X,isFunction:C,isStream:e=>O(e)&&C(e.pipe),isURLSearchParams:M,isTypedArray:W,isFileList:N,forEach:F,merge:function e(...t){let{caseless:r,skipUndefined:n}=q(this)&&this||{},i={},o=(t,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let s=r&&"string"==typeof o&&H(i,o)||o,a=G(i,s)?i[s]:void 0;I(a)&&I(t)?i[s]=e(a,t):I(t)?i[s]=e({},t):_(t)?i[s]=t.slice():n&&S(t)||(i[s]=t)};for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!r||E(r)||(F(r,o),"object"!=typeof r||_(r)))continue;let n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){let t=n[e];J.call(r,t)&&o(r[t],t)}}return i},extend:(e,t,r,{allOwnKeys:n}={})=>(F(t,(t,n)=>{r&&C(t)?Object.defineProperty(e,n,{__proto__:null,value:h(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
329configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;let a={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==r&&m(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:v,kindOfTest:w,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(_(e))return e;let t=e.length;if(!T(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[g]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:V,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:Z,freezeMethods:e=>{Z(e,(t,r)=>{if(C(e)&&["arguments","caller","callee"].includes(r))return!1;if(C(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(_(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:H,global:z,isContextDefined:q,isSpecCompliantForm:function(e){return!!(e&&C(e.append)&&"FormData"===e[y]&&e[g])},toJSONObject:e=>{let t=new WeakSet,r=e=>{if(O(e)){if(t.has(e))return;if(E(e))return e;if(!("toJSON"in e)){t.add(e);let n=_(e)?[]:{};return F(e,(e,t)=>{let i=r(e);S(i)||(n[t]=i)}),t.delete(e),n}}return e};return r(e)},isAsyncFn:K,isThenable:e=>e&&(O(e)||C(e))&&C(e.then)&&C(e.catch),setImmediate:Y,asap:Q,isIterable:e=>null!=e&&C(e[g])};let et=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var er=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&et[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let en=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ei=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function eo(e,t){return ee.isArray(e)?e.map(e=>eo(e,t)):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}let es=e=>eo(e,en),ea=e=>eo(e,ei);function el(e){let t=Object.create(null);return ee.forEach(e.toJSON(),(e,r)=>{t[r]=ea(e)}),t}let ec=Symbol("internals");function eu(e){return e&&String(e).trim().toLowerCase()}function ed(e){return!1===e||null==e?e:ee.isArray(e)?e.map(ed):es(String(e))}let eh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ep(e,t,r,n,i){if(ee.isFunction(n))return n.call(this,t,r);if(i&&(t=r),ee.isString(t)){if(ee.isString(n))return -1!==t.indexOf(n);if(ee.isRegExp(n))return n.test(t)}}class ef{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eu(t);if(!i)return;let o=ee.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=ed(e))}let o=(e,t)=>ee.forEach(e,(e,r)=>i(e,r,t));if(ee.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ee.isString(e)&&(e=e.trim())&&!eh(e))o(er(e),t);else if(ee.isObject(e)&&ee.isIterable(e)){let r={},n,i;for(let t of e){if(!ee.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?ee.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=eu(e)){let r=ee.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
329for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(ee.isFunction(t))return t.call(this,e,r);if(ee.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eu(e)){let r=ee.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||ep(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eu(e)){let i=ee.findKey(r,e);i&&(!t||ep(r,r[i],i,t))&&(delete r[i],n=!0)}}return ee.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||ep(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return ee.forEach(this,(n,i)=>{let o=ee.findKey(r,i);if(o){t[o]=ed(n),delete t[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();s!==i&&delete t[i],t[s]=ed(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ee.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ee.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ec]=this[ec]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eu(e);t[n]||(function(e,t){let r=ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(r,e),t[n]=!0)}return ee.isArray(e)?e.forEach(n):n(e),this}}ef.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.reduceDescriptors(ef.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ee.freezeMethods(ef);class em extends Error{static from(e,t,r,n,i,o){let s=new em(e.message,t||e.code,r,n,i);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&ee.hasOwnProp(e,"redact")?e.redact:void 0,r=ee.isArray(t)&&t.length>0?function(e,t){let r=new Set(t.map(e=>String(e).toLowerCase())),n=[],i=e=>{let t;if(null===e||"object"!=typeof e||ee.isBuffer(e))return e;if(-1===n.indexOf(e)){if(e instanceof ef&&(e=e.toJSON()),n.push(e),ee.isArray(e))t=[],e.forEach((e,r)=>{let n=i(e);ee.isUndefined(n)||(t[r]=n)});else{if(!ee.isPlainObject(e)&&function(e){if(ee.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ee.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;for(let[n,o]of(t=Object.create(null),Object.entries(e))){let e=r.has(n.toLowerCase())?"[REDACTED ****]":i(o);ee.isUndefined(e)||(t[n]=e)}}return n.pop(),t}};return i(e)}(e,t):ee.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}em.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",em.ERR_BAD_OPTION="ERR_BAD_OPTION",em.ECONNABORTED="ECONNABORTED",em.ETIMEDOUT="ETIMEDOUT",em.ECONNREFUSED="ECONNREFUSED",em.ERR_NETWORK="ERR_NETWORK",em.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",em.ERR_DEPRECATED="ERR_DEPRECATED",em.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",em.ERR_BAD_REQUEST="ERR_BAD_REQUEST",em.ERR_CANCELED="ERR_CANCELED",em.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",em.ERR_INVALID_URL="ERR_INVALID_URL",em.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var eg=em,ey=r(48764).lW;function ev(e){return ee.isPlainObject(e)||ee.isArray(e)}function ew(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function eb(e,t,r){return e?e.concat(t).map(function(e,t){return e=ew(e),
329!r&&t?"["+e+"]":e}).join(r?".":""):t}let e_=ee.toFlatObject(ee,{},null,function(e){return/^is[A-Z]/.test(e)});var eS=function(e,t,r){if(!ee.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=ee.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ee.isUndefined(t[e])})).metaTokens,i=r.visitor||d,o=r.dots,s=r.indexes,a=r.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===r.maxDepth?100:r.maxDepth,c=a&&ee.isSpecCompliantForm(t);if(!ee.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(ee.isDate(e))return e.toISOString();if(ee.isBoolean(e))return e.toString();if(!c&&ee.isBlob(e))throw new eg("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(e)||ee.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):ey.from(e):e}function d(e,r,i){let a=e;if(ee.isReactNative(t)&&ee.isReactNativeBlob(e))return t.append(eb(i,r,o),u(e)),!1;if(e&&!i&&"object"==typeof e){if(ee.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var l;if(ee.isArray(e)&&(l=e,ee.isArray(l)&&!l.some(ev))||(ee.isFileList(e)||ee.endsWith(r,"[]"))&&(a=ee.toArray(e)))return r=ew(r),a.forEach(function(e,n){ee.isUndefined(e)||null===e||t.append(!0===s?eb([r],n,o):null===s?r:r+"[]",u(e))}),!1}}return!!ev(e)||(t.append(eb(i,r,o),u(e)),!1)}let h=[],p=Object.assign(e_,{defaultVisitor:d,convertValue:u,isVisitable:ev});if(!ee.isObject(e))throw TypeError("data must be an object");return function e(r,n,o=0){if(!ee.isUndefined(r)){if(o>l)throw new eg("Object is too deeply nested ("+o+" levels). Max depth: "+l,eg.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==h.indexOf(r))throw Error("Circular reference detected in "+n.join("."));h.push(r),ee.forEach(r,function(r,s){!0===(!(ee.isUndefined(r)||null===r)&&i.call(t,r,ee.isString(s)?s.trim():s,n,p))&&e(r,n?n.concat(s):[s],o+1)}),h.pop()}}(e),t};function eE(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ek(e,t){this._pairs=[],e&&eS(e,this,t)}let ex=ek.prototype;function eC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eT(e,t,r){let n;if(!t)return e;let i=r&&r.encode||eC,o=ee.isFunction(r)?{serialize:r}:r,s=o&&o.serialize;if(n=s?s(t,o):ee.isURLSearchParams(t)?t.toString():new ek(t,o).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ex.append=function(e,t){this._pairs.push([e,t])},ex.toString=function(e){let t=e?function(t){return e.call(this,t,eE)}:eE;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eO{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ee.forEach(this.handlers,function(t){null!==t&&e(t)})}}var eI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},eA="undefined"!=typeof URLSearchParams?URLSearchParams:ek,eR="undefined"!=typeof FormData?FormData:null,eP="undefined"!=typeof Blob?Blob:null;let eN="undefined"!=typeof window&&"undefined"!=typeof document,eL="object"==typeof navigator&&navigator||void 0,eD=eN&&(!eL||0>["ReactNative","NativeScript","NS"].indexOf(eL.product)),eM="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eB=eN&&window.location.href||"http://localhost";var ej={...d,isBrowser:!0,classes:{URLSearchParams:eA,FormData:eR,Blob:eP},protocols:["http","https","file","blob","url","data"]},e$=function(e){if(ee.isFormData(e)&&ee.isFunction(e.entries)){let t={};return ee.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let o=t[i++];if("__proto__"===o)return!0;let s=Number.isFinite(+o),a=i>=t.length;return(o=!o&&ee.isArray(n)?n.length:o,a)?ee.hasOwnProp(n,o)?n[o]=ee.isArray(n[o])?n[o].concat(r):[n[o],r]:n[o]=r:(ee.hasOwnProp(n,o)&&ee.isObject(n[o])||(n[o]=[]),e(t,r,n[o],i)&&ee.
329isArray(n[o])&&(n[o]=function(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}(n[o]))),!s}(ee.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let eU=(e,t)=>null!=e&&ee.hasOwnProp(e,t)?e[t]:void 0,eF={transitional:eI,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=ee.isObject(e);if(o&&ee.isHTMLForm(e)&&(e=new FormData(e)),ee.isFormData(e))return i?JSON.stringify(e$(e)):e;if(ee.isArrayBuffer(e)||ee.isBuffer(e)||ee.isStream(e)||ee.isFile(e)||ee.isBlob(e)||ee.isReadableStream(e))return e;if(ee.isArrayBufferView(e))return e.buffer;if(ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){let t=eU(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return eS(e,new ej.classes.URLSearchParams,{visitor:function(e,t,r,n){return ej.isNode&&ee.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=ee.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=eU(this,"env"),i=n&&n.FormData;return eS(r?{"files[]":e}:e,i&&new i,t)}}return o||i?(t.setContentType("application/json",!1),function(e,t,r){if(ee.isString(e))try{return(0,JSON.parse)(e),ee.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=eU(this,"transitional")||eF.transitional,r=t&&t.forcedJSONParsing,n=eU(this,"responseType"),i="json"===n;if(ee.isResponse(e)||ee.isReadableStream(e))return e;if(e&&ee.isString(e)&&(r&&!n||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,eU(this,"parseReviver"))}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw eg.from(e,eg.ERR_BAD_RESPONSE,this,null,eU(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ej.classes.FormData,Blob:ej.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function eH(e,t){let r=this||eF,n=t||r,i=ef.from(n.headers),o=n.data;return ee.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ez(e){return!!(e&&e.__CANCEL__)}ee.forEach(["delete","get","head","post","put","patch","query"],e=>{eF.headers[e]={}});class eq extends eg{constructor(e,t,r){super(null==e?"canceled":e,eg.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function eW(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new eg("Request failed with status code "+r.status,r.status>=400&&r.status<500?eg.ERR_BAD_REQUEST:eg.ERR_BAD_RESPONSE,r.config,r.request,r))}var eV=function(e,t){let r;let n=Array(e=e||10),i=Array(e),o=0,s=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),c=i[s];r||(r=l),n[o]=a,i[o]=l;let u=s,d=0;for(;u!==o;)d+=n[u++],u%=e;if((o=(o+1)%e)===s&&(s=(s+1)%e),l-r<t)return;let h=c&&l-c;return h?Math.round(1e3*d/h):void 0}},eG=function(e,t){let r,n,i=0,o=1e3/t,s=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-i;a>=o?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},o-a)))},()=>r&&s(r)]};let eJ=(e,t,r=3)=>{let n=0,i=eV(50,250);return eG(r=>{if(!r||"number"!=typeof r.loaded)return;let o=r.loaded,s=r.lengthComputable?r.total:void 0,a=null!=s?Math.min(o,s):o,l=Math.max(0,a-n),c=i(l);n=Math.max(n,a),e({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s?(s-a)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},eX=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eZ=e=>(...t)=>ee.asap(()=>e(...t));var eK=ej.hasStandardBrowserEnv?(o=new URL(ej.origin),s=ej.navigator&&/(msie|trident)/i.test(ej.navigator.userAgent),e=>(e=new URL(e,ej.origin),o.protocol===e.protocol&&o.host===e.host&&(s||o.port===e.port))):()=>
329!0,eY=ej.hasStandardBrowserEnv?{write(e,t,r,n,i,o,s){if("undefined"==typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];ee.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),ee.isString(n)&&a.push(`path=${n}`),ee.isString(i)&&a.push(`domain=${i}`),!0===o&&a.push("secure"),ee.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)return decodeURIComponent(n.slice(i+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eQ(e,t,r){let n=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(n||!1===r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let e0=e=>e instanceof ef?{...e}:e;function e1(e,t){t=t||{};let r=Object.create(null);function n(e,t,r,n){return ee.isPlainObject(e)&&ee.isPlainObject(t)?ee.merge.call({caseless:n},e,t):ee.isPlainObject(t)?ee.merge({},t):ee.isArray(t)?t.slice():t}function i(e,t,r,i){return ee.isUndefined(t)?ee.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!ee.isUndefined(t))return n(void 0,t)}function s(e,t){return ee.isUndefined(t)?ee.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,o){return ee.hasOwnProp(t,o)?n(r,i):ee.hasOwnProp(e,o)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>i(e0(e),e0(t),r,!0)};return ee.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=ee.hasOwnProp(l,n)?l[n]:i,s=o(ee.hasOwnProp(e,n)?e[n]:void 0,ee.hasOwnProp(t,n)?t[n]:void 0,n);ee.isUndefined(s)&&o!==a||(r[n]=s)}),r}let e2=["content-type","content-length"],e4=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));var e3=function(e){let t=e1({},e),r=e=>ee.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),i=r("withXSRFToken"),o=r("xsrfHeaderName"),s=r("xsrfCookieName"),a=r("headers"),l=r("auth"),c=r("baseURL"),u=r("allowAbsoluteUrls"),d=r("url");if(t.headers=a=ef.from(a),t.url=eT(eQ(c,d,u),r("params"),r("paramsSerializer")),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?e4(l.password):""))),ee.isFormData(n)&&(ej.hasStandardBrowserEnv||ej.hasStandardBrowserWebWorkerEnv||ee.isReactNative(n)?a.setContentType(void 0):ee.isFunction(n.getHeaders)&&function(e,t,r){if("content-only"!==r){e.set(t);return}Object.entries(t).forEach(([t,r])=>{e2.includes(t.toLowerCase())&&e.set(t,r)})}(a,n.getHeaders(),r("formDataHeaderPolicy"))),ej.hasStandardBrowserEnv&&(ee.isFunction(i)&&(i=i(t)),!0===i||null==i&&eK(t.url))){let e=o&&s&&eY.read(s);e&&a.set(o,e)}return t},e5="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o,s,a;let l=e3(e),c=l.data,u=ef.from(l.headers).normalize(),{responseType:d,onUploadProgress:h,onDownloadProgress:p}=l;function f(){s&&s(),a&&a(),l.cancelToken&&l.cancelToken.unsubscribe(n),l.signal&&l.signal.removeEventListener("abort",n)}let m=new XMLHttpRequest;function g(){if(!m)return;let n=ef.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eW(function(e){t(e),f()},function(e){r(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new eg("Request aborted",eg.ECONNABORTED,e,m)),f(),m=null)},m.onerror=function(t){let n=new eg(t&&t.message?t.message:"Network Error",eg.ERR_NETWORK,e,m);n.event=t||null,r(n),f(),m=null},m.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",n=l.transitional||eI;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),r(new eg(t,n.clarifyTimeoutError?eg.ETIMEDOUT:eg.ECONNABORTED,e,m)),f(),m=null},void 0===c&&u.setContentType(null),"setRequestHeader"in m&&ee.forEach(el(u),function(e,t){m.setRequestHeader(t,e)}),ee.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&"json"!==d&&(m.responseType=l.responseType),p&&([o,a]=eJ(p,!0),m.addEventListener("progress",o)),h&&m.upload&&([i,s]=eJ(h),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",s)),(l.cancelToken||l.signal)&&(n=t=>{m&&(r(!t||t.type?new eq(null,e,m):t),m.abort(),f(),m=null)},l.cancelToken&&l.cancelToken.subscribe(n),l.signal&&(l.signal.aborted?n():l.signal.addEventListener("abort",n)));let y=function(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(l.url);if(y&&!ej.protocols.includes(y)){r(new eg("Unsupported protocol "+y+":",eg.ERR_BAD_REQUEST,e));return}m.send(c||null)})},e6=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,i=function(e){if(!n){n=!0,s();let t=e instanceof Error?e:this.reason;r.abort(t instanceof eg?t:new eq(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new eg(`timeout of ${t}ms exceeded`,eg.ETIMEDOUT))},t),s=()=>
329{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:a}=r;return a.unsubscribe=()=>ee.asap(s),a};let e8=function*(e,t){let r,n=e.byteLength;if(!t||n<t){yield e;return}let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},e7=async function*(e,t){for await(let r of e9(e))yield*e8(r,t)},e9=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},te=(e,t,r,n)=>{let i;let o=e7(e,t),s=0,a=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){a(),e.close();return}let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})};var tt=r(48764).lW;let tr="1.17.0",{isFunction:tn}=ee,ti=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),to=e=>{if(!ee.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ts=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ta=e=>{let t=e.indexOf("://"),r=e;return -1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},tl=e=>{let t;let r=void 0!==ee.global&&null!==ee.global?ee.global:globalThis,{ReadableStream:n,TextEncoder:i}=r,{fetch:o,Request:s,Response:a}=e=ee.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),l=o?tn(o):"function"==typeof fetch,c=tn(s),u=tn(a);if(!l)return!1;let d=l&&tn(n),h=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer())),p=c&&d&&ts(()=>{let e=!1,t=new s(ej.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),f=u&&d&&ts(()=>ee.isReadableStream(new a("").body)),m={stream:f&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new eg(`Response type '${e}' is not supported`,eg.ERR_NOT_SUPPORT,r)})});let g=async e=>{if(null==e)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e)){let t=new s(ej.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ee.isArrayBufferView(e)||ee.isArrayBuffer(e)?e.byteLength:(ee.isURLSearchParams(e)&&(e+=""),ee.isString(e))?(await h(e)).byteLength:void 0},y=async(e,t)=>{let r=ee.toFiniteNumber(e.getContentLength());return null==r?g(t):r};return async e=>{let t,{url:r,method:n,data:l,signal:u,cancelToken:d,timeout:h,onDownloadProgress:g,onUploadProgress:v,responseType:w,headers:b,withCredentials:_="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:k}=e3(e),x=ee.isNumber(E)&&E>-1,C=ee.isNumber(k)&&k>-1,T=o||fetch;w=w?(w+"").toLowerCase():"text";let O=e6([u,d&&d.toAbortSignal()],h),I=null,A=O&&O.unsubscribe&&(()=>{O.unsubscribe()});try{let o,u;let d=(u="auth",ee.hasOwnProp(e,u)?e[u]:void 0);if(d){let e=d.username||"",t=d.password||"";o={username:e,password:t}}if(ta(r)){let e=new URL(r,ej.origin);if(!o&&(e.username||e.password)){let t=to(e.username),r=to(e.password);o={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(o&&(b.delete("authorization"),b.set("Authorization","Basic "+btoa(ti((o.username||"")+":"+(o.password||""))))),x&&"string"==typeof r&&r.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length,t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){let t=n.charCodeAt(r+1),i=n.charCodeAt(r+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,r+=2)}let r=0,i=t-1,o=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));i>=0&&(61===n.charCodeAt(i)?(r++,i--):o(i)&&(r++,i-=3)),1===r&&i>=0&&(61===n.charCodeAt(i)?r++:o(i)&&r++);let s=3*Math.floor(e/4)-(r||0);return s>0?s:0}if(void 0!==tt&&"function"==typeof tt.byteLength)return tt.byteLength(n,"utf8");let i=0;for(let e=0,t=n.length;e<t;e++){let r=n.charCodeAt(e);if(r<128)i+=1;else if(r<2048)i+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}(r)>E)throw new eg("maxContentLength size of "+E+" exceeded",eg.ERR_BAD_RESPONSE,e,I);if(C&&"get"!==n&&"head"!==n){let t=await y(b,l);if("number"==typeof t&&isFinite(t)&&t>k)throw new eg("Request body larger than maxBodyLength limit",eg.ERR_BAD_REQUEST,e,I)}if(v&&p&&"get"!==n&&"head"!==n&&0!==(t=await y(b,l))){let e,n=new s(r,{method:"POST",body:l,duplex:"half"});if(ee.isFormData(l)&&(e=n.headers.get("content-type"))&&b.setContentType(e),n.body){let[e,r]=eX(t,eJ(eZ(v)));l=te(n.body,65536,e,r)}}ee.isString(_)||(_=_?"include":"omit");let h=c&&"credentials"in s.prototype;if(ee.isFormData(l)){let e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}b.set("User-Agent","axios/"+tr,!1);let R={...S,signal:O,method:n.toUpperCase(),headers:el(b.normalize()),body:l,duplex:"half",credentials:h?_:void 0};I=c&&new s(r,R);let P=await (c?T(I,S):T(r,R));if(x){let t=ee.toFiniteNumber(P.headers.get("content-length"));if(null!=t&&t>E)throw new eg("maxContentLength size of "+E+" exceeded",eg.ERR_BAD_RESPONSE,e,I)}let N=f&&("stream"===w||"response"===w);if(f&&P.body&&(g||x||N&&A)){let t={};
329["status","statusText","headers"].forEach(e=>{t[e]=P[e]});let r=ee.toFiniteNumber(P.headers.get("content-length")),[n,i]=g&&eX(r,eJ(eZ(g),!0))||[];P=new a(te(P.body,65536,t=>{if(x&&t>E)throw new eg("maxContentLength size of "+E+" exceeded",eg.ERR_BAD_RESPONSE,e,I);n&&n(t)},()=>{i&&i(),A&&A()}),t)}w=w||"text";let L=await m[ee.findKey(m,w)||"text"](P,e);if(x&&!f&&!N){let t;if(null!=L&&("number"==typeof L.byteLength?t=L.byteLength:"number"==typeof L.size?t=L.size:"string"==typeof L&&(t="function"==typeof i?new i().encode(L).byteLength:L.length)),"number"==typeof t&&t>E)throw new eg("maxContentLength size of "+E+" exceeded",eg.ERR_BAD_RESPONSE,e,I)}return!N&&A&&A(),await new Promise((t,r)=>{eW(t,r,{data:L,headers:ef.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:I})})}catch(t){if(A&&A(),O&&O.aborted&&O.reason instanceof eg){let r=O.reason;throw r.config=e,I&&(r.request=I),t!==r&&(r.cause=t),r}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new eg("Network Error",eg.ERR_NETWORK,e,I,t&&t.response),{cause:t.cause||t});throw eg.from(t,t&&t.code,e,I,t&&t.response)}}},tc=new Map,tu=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,o=[n,i,r],s=o.length,a,l,c=tc;for(;s--;)a=o[s],void 0===(l=c.get(a))&&c.set(a,l=s?new Map:tl(t)),c=l;return l};tu();let td={http:null,xhr:e5,fetch:{get:tu}};ee.forEach(td,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let th=e=>`- ${e}`,tp=e=>ee.isFunction(e)||null===e||!1===e;var tf=function(e,t){let r,n;let{length:i}=e=ee.isArray(e)?e:[e],o={};for(let s=0;s<i;s++){let i;if(n=r=e[s],!tp(r)&&void 0===(n=td[(i=String(r)).toLowerCase()]))throw new eg(`Unknown adapter '${i}'`);if(n&&(ee.isFunction(n)||(n=n.get(t))))break;o[i||"#"+s]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new eg("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(th).join("\n"):" "+th(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eq(null,e)}function tg(e){return tm(e),e.headers=ef.from(e.headers),e.data=eH.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tf(e.adapter||eF.adapter,e)(e).then(function(t){tm(e),e.response=t;try{t.data=eH.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=ef.from(t.headers),t},function(t){if(!ez(t)&&(tm(e),t&&t.response)){e.response=t.response;try{t.response.data=eH.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=ef.from(t.response.headers)}return Promise.reject(t)})}let ty={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ty[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tv={};ty.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tr+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new eg(n(i," has been removed"+(t?" in "+t:"")),eg.ERR_DEPRECATED);return t&&!tv[i]&&(tv[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},ty.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var tw={assertOptions:function(e,t,r){if("object"!=typeof e)throw new eg("options must be an object",eg.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){let t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new eg("option "+o+" must be "+r,eg.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new eg("Unknown option "+o,eg.ERR_BAD_OPTION)}},validators:ty};let tb=tw.validators;class t_{constructor(e){this.defaults=e||{},this.interceptors={request:new eO,response:new eO}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>
329{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:s}=t=e1(this.defaults,t);void 0!==i&&tw.assertOptions(i,{silentJSONParsing:tb.transitional(tb.boolean),forcedJSONParsing:tb.transitional(tb.boolean),clarifyTimeoutError:tb.transitional(tb.boolean),legacyInterceptorReqResOrdering:tb.transitional(tb.boolean),advertiseZstdAcceptEncoding:tb.transitional(tb.boolean)},!1),null!=o&&(ee.isFunction(o)?t.paramsSerializer={serialize:o}:tw.assertOptions(o,{encode:tb.function,serialize:tb.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tw.assertOptions(t,{baseUrl:tb.spelling("baseURL"),withXsrfToken:tb.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&ee.merge(s.common,s[t.method]);s&&ee.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete s[e]}),t.headers=ef.concat(a,s);let l=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let r=t.transitional||eI;r&&r.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d=0;if(!c){let e=[tg.bind(this),void 0];for(e.unshift(...l),e.push(...u),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let h=t;for(;d<n;){let e=l[d++],t=l[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{r=tg.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,n=u.length;d<n;)r=r.then(u[d++],u[d++]);return r}getUri(e){return eT(eQ((e=e1(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(e){t_.prototype[e]=function(t,r){return this.request(e1(r||{},{method:e,url:t,data:(r||{}).data}))}}),ee.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,i){return this.request(e1(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}t_.prototype[e]=t(),"query"!==e&&(t_.prototype[e+"Form"]=t(!0))});class tS{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eq(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tS(function(t){e=t}),cancel:e}}}let tE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
329alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tE).forEach(([e,t])=>{tE[t]=e});let tk=function e(t){let r=new t_(t),n=h(t_.prototype.request,r);return ee.extend(n,t_.prototype,r,{allOwnKeys:!0}),ee.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(e1(t,r))},n}(eF);tk.Axios=t_,tk.CanceledError=eq,tk.CancelToken=tS,tk.isCancel=ez,tk.VERSION=tr,tk.toFormData=eS,tk.AxiosError=eg,tk.Cancel=tk.CanceledError,tk.all=function(e){return Promise.all(e)},tk.spread=function(e){return function(t){return e.apply(null,t)}},tk.isAxiosError=function(e){return ee.isObject(e)&&!0===e.isAxiosError},tk.mergeConfig=e1,tk.AxiosHeaders=ef,tk.formToJSON=e=>e$(ee.isHTMLForm(e)?new FormData(e):e),tk.getAdapter=tf,tk.HttpStatusCode=tE,tk.default=tk;var tx=tk},81517:function(e,t,r){"use strict";r.d(t,{w9:function(){return eJ},hJ:function(){return eY},v0:function(){return rf},ZJ:function(){return te},Aj:function(){return ta},aF:function(){return tt},LS:function(){return tn},e5:function(){return ti},rh:function(){return tj},w7:function(){return tl},gQ:function(){return to}});var n,i=r(25816),o=r(74444),s=r(53333);function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}"function"==typeof SuppressedError&&SuppressedError;var l=r(8463);function c(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}let u=new o.LL("auth","Firebase",c()),d=new s.Yd("@firebase/auth");function h(e,...t){d.logLevel<=s.in.ERROR&&d.error(`Auth (${i.Jn}): ${e}`,...t)}/**
330 * @license
331 * Copyright 2020 Google LLC
332 *
333 * Licensed under the Apache License, Version 2.0 (the "License");
334 * you may not use this file except in compliance with the License.
335 * You may obtain a copy of the License at
336 *
337 *   http://www.apache.org/licenses/LICENSE-2.0
338 *
339 * Unless required by applicable law or agreed to in writing, software
340 * distributed under the License is distributed on an "AS IS" BASIS,
341 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
342 * See the License for the specific language governing permissions and
343 * limitations under the License.
344 */function p(e,...t){throw y(e,...t)}function f(e,...t){return y(e,...t)}function m(e,t,r){let n=Object.assign(Object.assign({},c()),{[t]:r});return new o.LL("auth","Firebase",n).create(t,{appName:e.name})}function g(e){return m(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function y(e,...t){if("string"!=typeof e){let r=t[0],n=[...t.slice(1)];
344return n[0]&&(n[0].appName=e.name),e._errorFactory.create(r,...n)}return u.create(e,...t)}function v(e,t,...r){if(!e)throw y(t,...r)}function w(e){let t="INTERNAL ASSERTION FAILED: "+e;throw h(t),Error(t)}/**
345 * @license
346 * Copyright 2020 Google LLC
347 *
348 * Licensed under the Apache License, Version 2.0 (the "License");
349 * you may not use this file except in compliance with the License.
350 * You may obtain a copy of the License at
351 *
352 *   http://www.apache.org/licenses/LICENSE-2.0
353 *
354 * Unless required by applicable law or agreed to in writing, software
355 * distributed under the License is distributed on an "AS IS" BASIS,
356 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
357 * See the License for the specific language governing permissions and
358 * limitations under the License.
359 */function b(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function _(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}/**
360 * @license
361 * Copyright 2020 Google LLC
362 *
363 * Licensed under the Apache License, Version 2.0 (the "License");
364 * you may not use this file except in compliance with the License.
365 * You may obtain a copy of the License at
366 *
367 *   http://www.apache.org/licenses/LICENSE-2.0
368 *
369 * Unless required by applicable law or agreed to in writing, software
370 * distributed under the License is distributed on an "AS IS" BASIS,
371 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
372 * See the License for the specific language governing permissions and
373 * limitations under the License.
374 */class S{constructor(e,t){var r;this.shortDelay=e,this.longDelay=t,r="Short delay should be less than long delay!",t>e||w(r),this.isMobile=(0,o.uI)()||(0,o.b$)()}get(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&("http:"===_()||"https:"===_()||(0,o.ru)()||"connection"in navigator))||navigator.onLine?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
375 * @license
376 * Copyright 2020 Google LLC
377 *
378 * Licensed under the Apache License, Version 2.0 (the "License");
379 * you may not use this file except in compliance with the License.
380 * You may obtain a copy of the License at
381 *
382 *   http://www.apache.org/licenses/LICENSE-2.0
383 *
384 * Unless required by applicable law or agreed to in writing, software
385 * distributed under the License is distributed on an "AS IS" BASIS,
386 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
387 * See the License for the specific language governing permissions and
388 * limitations under the License.
389 */function E(e,t){var r,n;r=e.emulator,n="Emulator should always be set here",r||w(n);let{url:i}=e.emulator;return t?`${i}${t.startsWith("/")?t.slice(1):t}`:i}/**
390 * @license
391 * Copyright 2020 Google LLC
392 *
393 * Licensed under the Apache License, Version 2.0 (the "License");
394 * you may not use this file except in compliance with the License.
395 * You may obtain a copy of the License at
396 *
397 *   http://www.apache.org/licenses/LICENSE-2.0
398 *
399 * Unless required by applicable law or agreed to in writing, software
400 * distributed under the License is distributed on an "AS IS" BASIS,
401 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
402 * See the License for the specific language governing permissions and
403 * limitations under the License.
404 */class k{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void w("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void w("Could not find Headers implementation, make sure you call FetchProvi
404der.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void w("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
405 * @license
406 * Copyright 2020 Google LLC
407 *
408 * Licensed under the Apache License, Version 2.0 (the "License");
409 * you may not use this file except in compliance with the License.
410 * You may obtain a copy of the License at
411 *
412 *   http://www.apache.org/licenses/LICENSE-2.0
413 *
414 * Unless required by applicable law or agreed to in writing, software
415 * distributed under the License is distributed on an "AS IS" BASIS,
416 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
417 * See the License for the specific language governing permissions and
418 * limitations under the License.
419 */let x={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},C=new S(3e4,6e4);function T(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function O(e,t,r,n,i={}){return I(e,i,async()=>{let i={},s={};n&&("GET"===t?s=n:i={body:JSON.stringify(n)});let a=(0,o.xO)(Object.assign({key:e.config.apiKey},s)).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);let c=Object.assign({method:t,headers:l},i);return(0,o.L_)()||(c.referrerPolicy="no-referrer"),k.fetch()(R(e,e.config.apiHost,r,a),c)})}async function I(e,t,r){e._canInitEmulator=!1;let n=Object.assign(Object.assign({},x),t);try{let t=new P(e),i=await Promise.race([r(),t.promise]);t.clearNetworkTimeout();let o=await i.json();if("needConfirmation"in o)throw N(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{let[t,r]=(i.ok?o.errorMessage:o.error.message).split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===t)throw N(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===t)throw N(e,"email-already-in-use",o);if("USER_DISABLED"===t)throw N(e,"user-disabled",o);let s=n[t]||t.toLowerCase().replace(/[_\s]+/g,"-");if(r)throw m(e,s,r);p(e,s)}}catch(t){if(t instanceof o.ZR)throw t;p(e,"network-request-failed",{message:String(t)})}}async function A(e,t,r,n,i={}){let o=await O(e,t,r,n,i);return"mfaPendingCredential"in o&&p(e,"multi-factor-auth-required",{_serverResponse:o}),o}function R(e,t,r,n){let i=`${t}${r}?${n}`;return e.config.emulator?E(e.config,i):`${e.config.apiScheme}://${i}`}class P{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>
419{this.timer=setTimeout(()=>t(f(this.auth,"network-request-failed")),C.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function N(e,t,r){let n={appName:e.name};r.email&&(n.email=r.email),r.phoneNumber&&(n.phoneNumber=r.phoneNumber);let i=f(e,t,n);return i.customData._tokenResponse=r,i}function L(e){return void 0!==e&&void 0!==e.enterprise}class D{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(let t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return function(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}}async function M(e,t){return O(e,"GET","/v2/recaptchaConfig",T(e,t))}/**
420 * @license
421 * Copyright 2020 Google LLC
422 *
423 * Licensed under the Apache License, Version 2.0 (the "License");
424 * you may not use this file except in compliance with the License.
425 * You may obtain a copy of the License at
426 *
427 *   http://www.apache.org/licenses/LICENSE-2.0
428 *
429 * Unless required by applicable law or agreed to in writing, software
430 * distributed under the License is distributed on an "AS IS" BASIS,
431 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
432 * See the License for the specific language governing permissions and
433 * limitations under the License.
434 */async function B(e,t){return O(e,"POST","/v1/accounts:delete",t)}async function j(e,t){return O(e,"POST","/v1/accounts:lookup",t)}/**
435 * @license
436 * Copyright 2020 Google LLC
437 *
438 * Licensed under the Apache License, Version 2.0 (the "License");
439 * you may not use this file except in compliance with the License.
440 * You may obtain a copy of the License at
441 *
442 *   http://www.apache.org/licenses/LICENSE-2.0
443 *
444 * Unless required by applicable law or agreed to in writing, software
445 * distributed under the License is distributed on an "AS IS" BASIS,
446 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
447 * See the License for the specific language governing permissions and
448 * limitations under the License.
449 */function $(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}async function U(e,t=!1){let r=(0,o.m9)(e),n=await r.getIdToken(t),i=H(n);v(i&&i.exp&&i.auth_time&&i.iat,r.auth,"internal-error");let s="object"==typeof i.firebase?i.firebase:void 0,a=null==s?void 0:s.sign_in_provider;return{claims:i,token:n,authTime:$(F(i.auth_time)),issuedAtTime:$(F(i.iat)),expirationTime:$(F(i.exp)),signInProvider:a||null,signInSecondFactor:(null==s?void 0:s.sign_in_second_factor)||null}}function F(e){return 1e3*Number(e)}function H(e){let[t,r,n]=e.split(".");if(void 0===t||void 0===r||void 0===n)return h("JWT malformed, contained fewer than 3 sections"),null;try{let e=(0,o.tV)(r);if(!e)return h("Failed to decode base64 JWT payload"),null;return JSON.parse(e)}catch(e){return h("Caught error parsing JWT payload as JSON",null==e?void 0:e.toString()),null}}function z(e){let t=H(e);return v(t,"internal-error"),v(void 0!==t.exp,"internal-error"),v(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}/**
450 * @license
451 * Copyright 2020 Google LLC
452 *
453 * Licensed under the Apache License, Version 2.0 (the "License");
454 * you may not use this file except in compliance with the License.
455 * You may obtain a copy of the License at
456 *
457 *   http://www.apache.org/licenses/LICENSE-2.0
458 *
459 * Unless required by applicable law or agreed to in writing, software
460 * distributed under the License is distributed on an "AS IS" BASIS,
461 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
462 * See the License for the specific language governing permissions and
463 * limitations under the License.
464 */async function q(e,t,r=!1){if(r)return t;try{return await t}catch(t){throw t instanceof o.ZR&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}/**
465 * @license
466 * Copyright 2020 Google LLC
467 *
468 * Licensed under the Apache License, Version 2.0 (the "License");
469 * you may not use this file except in compliance with the License.
470 * You may obtain a copy of the License at
471 *
472 *   http://www.apache.org/licenses/LICENSE-2.0
473 *
474 * Unless required by applicable law or agreed to in writing, software
475 * distributed under the License is distributed on an "AS IS" BASIS,
476 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
477 * See the License for the specific language governing permissions and
478 * limitations under the License.
479 */class W{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(!e)return this.errorBackoff=3e4,Math.max(0,(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5);{let e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(null==e?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
480 * @license
481 * Copyright 2020 Google LLC
482 *
483 * Licensed under the Apache License, Version 2.0 (the "License");
484 * you may not use this file except in compliance with the License.
485 * You may obtain a copy of the License at
486 *
487 *   http://www.apache.org/licenses/LICENSE-2.0
488 *
489 * Unless required by applicable law or agreed to in writing, software
490 * distributed under the License is distributed on an "AS IS" BASIS,
491 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
492 * See the License for the specific language governing permissions and
493 * limitations under the License.
494 */class V{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=$(this.lastLoginAt),this.creationTime=$(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
495 * @license
496 * Copyright 2019 Google LLC
497 *
498 * Licensed under the Apache License, Version 2.0 (the "License");
499 * you may not use this file except in compliance with the License.
500 * You may obtain a copy of the License at
501 *
502 *   http://www.apache.org/licenses/LICENSE-2.0
503 *
504 * Unless required by applicable law or agreed to in writing, software
505 * distributed under the License is distributed on an "AS IS" BASIS,
506 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
507 * See the License for the specific language governing permissions and
508 * limitations under the License.
509 */async function G(e){var t;let r=e.auth,n=await e.getIdToken(),i=await q(e,j(r,{idToken:n}));v(null==i?void 0:i.users.length,r,"internal-error");let o=i.users[0];e._notifyReloadListener(o);let s=(null===(t=o.providerUserInfo)||void 0===t?void 0:t.length)?X(o.providerUserInfo):[],a=[...e.providerData.filter(e=>!s.some(t=>t.providerId===e.providerId)),...s],l=e.isAnonymous,c=!(e.email&&o.passwordHash)&&!(null==a?void 0:a.length);Object.assign(e,{uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new V(o.createdAt,o.lastLoginAt),isAnonymous:!!l&&c})}async function J(e){let t=(0,o.m9)(e);await G(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function X(e){return e.map(e=>{var{providerId:t}=e,r=a(e,["providerId"]);return{providerId:t,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
510 * @license
511 * Copyright 2020 Google LLC
512 *
513 * Licensed under the Apache License, Version 2.0 (the "License");
514 * you may not use this file except in compliance with the License.
515 * You may obtain a copy of the License at
516 *
517 *   http://www.apache.org/licenses/LICENSE-2.0
518 *
519 * Unless required by applicable law or agreed to in writing, softw
519are
520 * distributed under the License is distributed on an "AS IS" BASIS,
521 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
522 * See the License for the specific language governing permissions and
523 * limitations under the License.
524 */async function Z(e,t){let r=await I(e,{},async()=>{let r=(0,o.xO)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:n,apiKey:i}=e.config,s=R(e,n,"/v1/token",`key=${i}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",k.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token}}async function K(e,t){return O(e,"POST","/v2/accounts:revokeToken",T(e,t))}/**
525 * @license
526 * Copyright 2020 Google LLC
527 *
528 * Licensed under the Apache License, Version 2.0 (the "License");
529 * you may not use this file except in compliance with the License.
530 * You may obtain a copy of the License at
531 *
532 *   http://www.apache.org/licenses/LICENSE-2.0
533 *
534 * Unless required by applicable law or agreed to in writing, software
535 * distributed under the License is distributed on an "AS IS" BASIS,
536 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
537 * See the License for the specific language governing permissions and
538 * limitations under the License.
539 */class Y{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){v(e.idToken,"internal-error"),v(void 0!==e.idToken,"internal-error"),v(void 0!==e.refreshToken,"internal-error");let t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):z(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){v(0!==e.length,"internal-error");let t=z(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(v(this.refreshToken,e,"user-token-expired"),this.refreshToken)?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:r,refreshToken:n,expiresIn:i}=await Z(e,t);this.updateTokensAndExpiration(r,n,Number(i))}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){let{refreshToken:r,accessToken:n,expirationTime:i}=t,o=new Y;return r&&(v("string"==typeof r,"internal-error",{appName:e}),o.refreshToken=r),n&&(v("string"==typeof n,"internal-error",{appName:e}),o.accessToken=n),i&&(v("number"==typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Y,this.toJSON())}_performRefresh(){return w("not implemented")}}/**
540 * @license
541 * Copyright 2020 Google LLC
542 *
543 * Licensed under the Apache License, Version 2.0 (the "License");
544 * you may not use this file except in compliance with the License.
545 * You may obtain a copy of the License at
546 *
547 *   http://www.apache.org/licenses/LICENSE-2.0
548 *
549 * Unless required by applicable law or agreed to in writing, software
550 * distributed under the License is distributed on an "AS IS" BASIS,
551 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
552 * See the License for the specific language governing permissions and
553 * limitations under the License.
554 */function Q(e,t){v("string"==typeof e||void 0===e,"internal-error",{appName:t})}class ee{constructor(e){var{uid:t,auth:r,stsTokenManager:n}=e,i=a(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new W(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=r,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new V(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){let t=await q(this,this.stsTokenManager.getToken(this.auth,e));return v(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return U(this,e)}reload(){return J(this)}_assign(e){this!==e&&(v(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
554otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let t=new ee(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){v(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),t&&await G(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,i.rh)(this.auth.app))return Promise.reject(g(this.auth));let e=await this.getIdToken();return await q(this,B(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var r,n,i,o,s,a,l,c;let u=null!==(r=t.displayName)&&void 0!==r?r:void 0,d=null!==(n=t.email)&&void 0!==n?n:void 0,h=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,p=null!==(o=t.photoURL)&&void 0!==o?o:void 0,f=null!==(s=t.tenantId)&&void 0!==s?s:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,y=null!==(c=t.lastLoginAt)&&void 0!==c?c:void 0,{uid:w,emailVerified:b,isAnonymous:_,providerData:S,stsTokenManager:E}=t;v(w&&E,e,"internal-error");let k=Y.fromJSON(this.name,E);v("string"==typeof w,e,"internal-error"),Q(u,e.name),Q(d,e.name),v("boolean"==typeof b,e,"internal-error"),v("boolean"==typeof _,e,"internal-error"),Q(h,e.name),Q(p,e.name),Q(f,e.name),Q(m,e.name),Q(g,e.name),Q(y,e.name);let x=new ee({uid:w,auth:e,email:d,emailVerified:b,displayName:u,isAnonymous:_,photoURL:p,phoneNumber:h,tenantId:f,stsTokenManager:k,createdAt:g,lastLoginAt:y});return S&&Array.isArray(S)&&(x.providerData=S.map(e=>Object.assign({},e))),m&&(x._redirectEventId=m),x}static async _fromIdTokenResponse(e,t,r=!1){let n=new Y;n.updateFromServerResponse(t);let i=new ee({uid:t.localId,auth:e,stsTokenManager:n,isAnonymous:r});return await G(i),i}static async _fromGetAccountInfoResponse(e,t,r){let n=t.users[0];v(void 0!==n.localId,"internal-error");let i=void 0!==n.providerUserInfo?X(n.providerUserInfo):[],o=!(n.email&&n.passwordHash)&&!(null==i?void 0:i.length),s=new Y;s.updateFromIdToken(r);let a=new ee({uid:n.localId,auth:e,stsTokenManager:s,isAnonymous:o});return Object.assign(a,{uid:n.localId,displayName:n.displayName||null,photoURL:n.photoUrl||null,email:n.email||null,emailVerified:n.emailVerified||!1,phoneNumber:n.phoneNumber||null,tenantId:n.tenantId||null,providerData:i,metadata:new V(n.createdAt,n.lastLoginAt),isAnonymous:!(n.email&&n.passwordHash)&&!(null==i?void 0:i.length)}),a}}/**
555 * @license
556 * Copyright 2020 Google LLC
557 *
558 * Licensed under the Apache License, Version 2.0 (the "License");
559 * you may not use this file except in compliance with the License.
560 * You may obtain a copy of the License at
561 *
562 *   http://www.apache.org/licenses/LICENSE-2.0
563 *
564 * Unless required by applicable law or agreed to in writing, softw
564are
565 * distributed under the License is distributed on an "AS IS" BASIS,
566 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
567 * See the License for the specific language governing permissions and
568 * limitations under the License.
569 */let et=new Map;function er(e){var t,r;t="Expected a class definition",e instanceof Function||w(t);let n=et.get(e);return n?(r="Instance stored in cache mismatched with class",n instanceof e||w(r)):(n=new e,et.set(e,n)),n}/**
570 * @license
571 * Copyright 2019 Google LLC
572 *
573 * Licensed under the Apache License, Version 2.0 (the "License");
574 * you may not use this file except in compliance with the License.
575 * You may obtain a copy of the License at
576 *
577 *   http://www.apache.org/licenses/LICENSE-2.0
578 *
579 * Unless required by applicable law or agreed to in writing, software
580 * distributed under the License is distributed on an "AS IS" BASIS,
581 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
582 * See the License for the specific language governing permissions and
583 * limitations under the License.
584 */class en{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}/**
585 * @license
586 * Copyright 2019 Google LLC
587 *
588 * Licensed under the Apache License, Version 2.0 (the "License");
589 * you may not use this file except in compliance with the License.
590 * You may obtain a copy of the License at
591 *
592 *   http://www.apache.org/licenses/LICENSE-2.0
593 *
594 * Unless required by applicable law or agreed to in writing, software
595 * distributed under the License is distributed on an "AS IS" BASIS,
596 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
597 * See the License for the specific language governing permissions and
598 * limitations under the License.
599 */function ei(e,t,r){return`firebase:${e}:${t}:${r}`}en.type="NONE";class eo{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;let{config:n,name:i}=this.auth;this.fullUserKey=ei(this.userKey,n.apiKey,i),this.fullPersistenceKey=ei("persistence",n.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);return e?ee._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,r="authUser"){if(!t.length)return new eo(er(en),e,r);let n=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),i=n[0]||er(en),o=ei(r,e.config.apiKey,e.name),s=null;for(let r of t)try{let t=await r._get(o);if(t){let n=ee._fromJSON(e,t);r!==i&&(s=n),i=r;break}}catch(e){}let a=n.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&a.length&&(i=a[0],s&&await i._set(o,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(o)}catch(e){}}))),new eo(i,e,r)}}/**
600 * @license
601 * Copyright 2020 Google LLC
602 *
603 * Licensed under the Apache License, Version 2.0 (the "License");
604 * you may not use this file except in compliance with the License.
605 * You may obtain a copy of the License at
606 *
607 *   http://www.apache.org/licenses/LICENSE-2.0
608 *
609 * Unless required by applicable law or agreed to in writing, software
610 * distributed under the License is distributed on an "AS IS" BASIS,
611 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
612 * See the License for the specific language governing permissions and
613 * limitations under the License.
614 */function es(e){let t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(eu(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";{if(t.includes("edge/"))return"Edge";if(ea(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(eh(t))return"Blackberry";if(ep(t))return"Webos";if(el(t))return"Safari";if((t.includes("chrome/")||ec(t))&&!t.includes("edge/"))return"Chrome";if(ed(t))return"Android";let r=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if((null==r?void 0:r.length)===2)return r[1]}return"Other"}function ea(e=(0,o.z$)()){return/firefox\//i.test(e)}function el(e=(0,o.z$)()){let t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function ec(e=(0,o.z$)()){return/crios\//i.test(e)}function eu(e=(0,o.z$)()){return/iemobile/i.test(e)}function ed(e=(0,o.z$)()){return/android/i.test(e)}function eh(e=(0,o.z$)()){return/blackberry/i.test(e)}function ep(e=(0,o.z$)()){return/webos/i.test(e)}function ef(e=(0,o.z$)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function em(e=(0,o.z$)()){return ef(e)||ed(e)||ep(e)||eh(e)||/windows phone/i.test(e)||eu(e)}/**
615 * @license
616 * Copyright 2020 Google LLC
617 *
618 * Licensed under the Apache License, Version 2.0 (the "License");
619 * you may not use this file except in compliance with the License.
620 * You may obtain a copy of the License at
621 *
622 *   http://www.apache.org/licenses/LICENSE-2.0
623 *
624 * Unless required by applicable law or agreed to in writing, software
625 * distributed under the License is distributed on an "AS IS" BASIS,
626 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
627 * See the License for the specific language governing permissions and
628 * limitations under the License.
629 */function eg(e,t=[]){let r;switch(e){case"Browser":r=es((0,o.z$)());break;case"Worker":r=`${es((0,o.z$)())}-${e}`;break;default:r=e}let n=t.length?t.join(","):"FirebaseCore-web";return`${r}/JsCore/${i.Jn}/${n}`}/**
630 * @license
631 * Copyright 2022 Google LLC
632 *
633 * Licensed under the Apache License, Version 2.0 (the "License");
634 * you may not use this file except in compliance with the License.
635 * You may obtain a copy of the License at
636 *
637 *   http://www.apache.org/licenses/LICENSE-2.0
638 *
639 * Unless required by applicable law or agreed to in writing, software
640 * distributed under the License is distributed on an "AS IS" BASIS,
641 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
642 * See the License for the specific language governing permissions and
643 * limitations under the License.
644 */class ey{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let r=t=>new Promise((r,n)=>{try{let n=e(t);r(n)}catch(e){n(e)}});r.onAbort=t,this.queue.push(r);let n=this.queue.length-1;return()=>{this.queue[n]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let r of this.queue)await r(e),r.onAbort&&t.push(r.onAbort)}catch(e){for(let e of(t.reverse(),t))try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==e?void 0:e.message})}}}/**
645 * @license
646 * Copyright 2023 Google LLC
647 *
648 * Licensed under the Apache License, Version 2.0 (the "License");
649 * you may not use this file except in compliance with the License.
650 * You may obtain a copy of the License at
651 *
652 *   http://www.apache.org/licenses/LICENSE-2.0
653 *
654 * Unless required by applicable law or agreed to in writing, software
655 * distributed under the License is distributed on an "AS IS" BASIS,
656 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
657 * See the License for the specific language governing permissions and
658 * limitations under the License.
659 */async function ev(e,t={}){return O(e,"GET","/v2/passwordPolicy",T(e,t))}class ew{constructor(e){var t,r,n,i;let o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=o.minPasswordLength)&&void 0!==t?t:6,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),void 0!==o.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),void 0!==o.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),void 0!==o.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),void 0!==o.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(n=null===(r=e.allowedNonAlphanumericCharacters)||void 0===r?void 0:r.join(""))&&void 0!==n?n:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,r,n,i,o,s;let a={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,a),this.validatePasswordCharacterOptions(e,a),a.isValid&&(a.isValid=null===(t=a.meetsMinPasswordLength)||void 0===t||t),a.isValid&&(a.isValid=null===(r=a.meetsMaxPasswordLength)||void 0===r||r),a.isValid&&(a.isValid=null===(n=a.containsLowercaseLetter)||void 0===n||n),a.isValid&&
659(a.isValid=null===(i=a.containsUppercaseLetter)||void 0===i||i),a.isValid&&(a.isValid=null===(o=a.containsNumericCharacter)||void 0===o||o),a.isValid&&(a.isValid=null===(s=a.containsNonAlphanumericCharacter)||void 0===s||s),a}validatePasswordLengthOptions(e,t){let r=this.customStrengthOptions.minPasswordLength,n=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),n&&(t.meetsMaxPasswordLength=e.length<=n)}validatePasswordCharacterOptions(e,t){let r;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let n=0;n<e.length;n++)r=e.charAt(n),this.updatePasswordCharacterOptionsStatuses(t,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,t,r,n,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=n)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}/**
660 * @license
661 * Copyright 2020 Google LLC
662 *
663 * Licensed under the Apache License, Version 2.0 (the "License");
664 * you may not use this file except in compliance with the License.
665 * You may obtain a copy of the License at
666 *
667 *   http://www.apache.org/licenses/LICENSE-2.0
668 *
669 * Unless required by applicable law or agreed to in writing, software
670 * distributed under the License is distributed on an "AS IS" BASIS,
671 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
672 * See the License for the specific language governing permissions and
673 * limitations under the License.
674 */class eb{constructor(e,t,r,n){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new eS(this),this.idTokenSubscription=new eS(this),this.beforeStateQueue=new ey(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=u,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=er(t)),this._initializationPromise=this.queue(async()=>{var r,n;if(!this._deleted&&(this.persistenceManager=await eo.create(this,e),!this._deleted)){if(null===(r=this._popupRedirectResolver)||void 0===r?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(n=this.currentUser)||void 0===n?void 0:n.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{let t=await j(this,{idToken:e}),r=await ee._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(r)}catch(e){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",e),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if((0,i.rh)(this.app)){let e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}let r=await this.assertedPersistence.getCurrentUser(),n=r,o=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let r=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,i=null==n?void 0:n._redirectEventId,s=await this.tryRedirectSignIn(e);(!r||r===i)&&(null==s?void 0:s.user)&&(n=s.user,o=!0)}if(!n)return this.directlySetCurrentUser(null);
674if(!n._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(n)}catch(e){n=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return(v(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId)?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await G(e)}catch(e){if((null==e?void 0:e.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,i.rh)(this.app))return Promise.reject(g(this));let t=e?(0,o.m9)(e):null;return t&&v(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&v(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(0,i.rh)(this.app)?Promise.reject(g(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,i.rh)(this.app)?Promise.reject(g(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(er(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();let t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){let e=new ew(await ev(this));null===this.tenantId?this._projectPasswordPolicy=e:this._tenantPasswordPolicies[this.tenantId]=e}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new o.LL("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{let r=this.onAuthStateChanged(()=>{r(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){let t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await K(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){let r=await this.getOrInitRedirectPersistenceManager(t);return null===e?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&er(e)||this._popupRedirectResolver;v(t,this,"argument-error"),this.redirectPersistenceManager=await eo.create(this,[er(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,r;return(this._isInitialized&&await this.queue(async()=>{}),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e)?this._currentUser:(null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let r=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,n){if(this._deleted)return()=>{};let i="function"==typeof t?t:t.next.bind(t),o=!1,s=this._isInitialized?Promise.resolve():this._initializationPromise;if(v(s,this,"internal-error"),s.then(()=>{o||i(this.currentUser)}),"function"==typeof t){let i=e.addObserver(t,r,n);return()=>{o=!0,i()}}{let r=e.addObserver(t);return()=>{o=!0,r()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return v(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=eg(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;let t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);let r=await (null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());r&&(t["X-Firebase-Client"]=r);let n=await this._getAppCheckToken();return n&&(t["X-Firebase-AppCheck"]=n),t}async _getAppCheckToken(){var e;let t=await (null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null==t?void 0:t.error)&&function(e,...t){d.logLevel<=s.in.WARN&&d.warn(`Auth (${i.Jn}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}function e_(e){return(0,o.m9)(e)}class eS{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,o.ne)(e=>this.observer=e)}get next(){return v(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
675 * @license
676 * Copyright 2020 Google LLC
677 *
678 * Licensed under the Apache License, Version 2.0 (the "License");
679 * you may not use this file except in compliance with the License.
680 * You may obtain a copy of the License at
681 *
682 *   http://www.apache.org/licenses/LICENSE-2.0
683 *
684 * Unless required by applicable law or agreed to in writing, software
685 * distributed under the License is distributed on an "AS IS" BASIS,
686 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
687 * See the License for the specific language governing permissions and
688 * limitations under the License.
689 */let eE={async loadJS(){throw Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function ek(e){return`__${e}${Math.floor(1e6*Math.random())}`}class ex{constructor(e){this.type="recaptcha-enterprise",this.auth=e_(e)}async verify(e="verify",t=!1){async function r(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,r)=>{M(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(n=>{if(void 0===n.recaptchaKey)r(Error("recaptcha Enterprise site key undefined"));else{let r=new D(n);return null==e.tenantId?e._agentRecaptchaConfig=r:e._tenantRecaptchaConfigs[e.tenantId]=r,t(r.siteKey)}}).catch(e=>{r(e)})})}function n(t,r,n){let i=window.grecaptcha;L(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{r(e)}).catch(()=>{r("NO_RECAPTCHA")})}):n(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((e,i)=>{r(this.auth).then(r=>{if(!t&&L(window.grecaptcha))n(r,e,i);else{var o;if("undefined"==typeof window){i(Error("RecaptchaVerifier is only supported in browser"));return}let t=eE.recaptchaEnterpriseScript;0!==t.length&&(t+=r),(o=t,eE.loadJS(o)).then(()=>{n(r,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function eC(e,t,r,n=!1){let i;let o=new ex(e);try{i=await o.verify(r)}catch(e){i=await o.verify(r,!0)}let s=Object.assign({},t);return n?Object.assign(s,{captchaResp:i}):Object.assign(s,{captchaResponse:i}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}async function eT(e,t,r,n){var i;if(null===(i=e._getRecaptchaConfig())||void 0===i||!i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER"))return n(e,t).catch(async i=>{if("auth/missing-recaptcha-token"!==i.code)return Promise.reject(i);{console.log(`${r} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);let i=await eC(e,t,r,"getOobCode"===r);return n(e,i)}});{let i=await eC(e,t,r,"getOobCode"===r);return n(e,i)}}function eO(e){let t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function eI(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}/**
690 * @license
691 * Copyright 2020 Google LLC
692 *
693 * Licensed under the Apache License, Version 2.0 (the "License");
694 * you may not use this file except in compliance with the License.
695 * You may obtain a copy of the License at
696 *
697 *   http://www.apache.org/licenses/LICENSE-2.0
698 *
699 * Unless required by applicable law or agreed to in writing, software
700 * distributed under the License is distributed on an "AS IS" BASIS,
701 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
702 * See the License for the specific language governing permissions and
703 * limitations under the License.
704 */class eA{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return w("not implemented")}_getIdTokenResponse(e){return w("not implemented")}_linkToIdToken(e,t){return w("not implemented")}_getReauthenticationResolver(e){return w("not implemented")}}async function eR(e,t){return O(e,"POST","/v1/accounts:update",t)}async function eP(e,t){return O(e,"POST","/v1/accounts:signUp",t)}/**
705 * @license
706 * Copyright 2020 Google LLC
707 *
708 * Licensed under the Apache License, Version 2.0 (the "License");
709 * you may not use this file except in compliance with the License.
710 * You may obtain a copy of the License at
711 *
712 *   http://www.apache.org/licenses/LICENSE-2.0
713 *
714 * Unless required by applicable law or agreed to in writing, softw
714are
715 * distributed under the License is distributed on an "AS IS" BASIS,
716 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
717 * See the License for the specific language governing permissions and
718 * limitations under the License.
719 */async function eN(e,t){return A(e,"POST","/v1/accounts:signInWithPassword",T(e,t))}async function eL(e,t){return O(e,"POST","/v1/accounts:sendOobCode",T(e,t))}async function eD(e,t){return eL(e,t)}/**
720 * @license
721 * Copyright 2020 Google LLC
722 *
723 * Licensed under the Apache License, Version 2.0 (the "License");
724 * you may not use this file except in compliance with the License.
725 * You may obtain a copy of the License at
726 *
727 *   http://www.apache.org/licenses/LICENSE-2.0
728 *
729 * Unless required by applicable law or agreed to in writing, software
730 * distributed under the License is distributed on an "AS IS" BASIS,
731 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
732 * See the License for the specific language governing permissions and
733 * limitations under the License.
734 */async function eM(e,t){return A(e,"POST","/v1/accounts:signInWithEmailLink",T(e,t))}async function eB(e,t){return A(e,"POST","/v1/accounts:signInWithEmailLink",T(e,t))}/**
735 * @license
736 * Copyright 2020 Google LLC
737 *
738 * Licensed under the Apache License, Version 2.0 (the "License");
739 * you may not use this file except in compliance with the License.
740 * You may obtain a copy of the License at
741 *
742 *   http://www.apache.org/licenses/LICENSE-2.0
743 *
744 * Unless required by applicable law or agreed to in writing, software
745 * distributed under the License is distributed on an "AS IS" BASIS,
746 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
747 * See the License for the specific language governing permissions and
748 * limitations under the License.
749 */class ej extends eA{constructor(e,t,r,n=null){super("password",r),this._email=e,this._password=t,this._tenantId=n}static _fromEmailAndPassword(e,t){return new ej(e,t,"password")}static _fromEmailAndCode(e,t,r=null){return new ej(e,t,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e;if((null==t?void 0:t.email)&&(null==t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return eT(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",eN);case"emailLink":return eM(e,{email:this._email,oobCode:this._password});default:p(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return eT(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",eP);case"emailLink":return eB(e,{idToken:t,email:this._email,oobCode:this._password});default:p(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/**
750 * @license
751 * Copyright 2020 Google LLC
752 *
753 * Licensed under the Apache License, Version 2.0 (the "License");
754 * you may not use this file except in compliance with the License.
755 * You may obtain a copy of the License at
756 *
757 *   http://www.apache.org/licenses/LICENSE-2.0
758 *
759 * Unless required by applicable law or agreed to in writing, software
760 * distributed under the License is distributed on an "AS IS" BASIS,
761 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
762 * See the License for the specific language governing permissions and
763 * limitations under the License.
764 */async function e$(e,t){return A(e,"POST","/v1/accounts:signInWithIdp",T(e,t))}class eU extends eA{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new eU(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
764(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):p("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e,{providerId:r,signInMethod:n}=t,i=a(t,["providerId","signInMethod"]);if(!r||!n)return null;let o=new eU(r,n);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return e$(e,this.buildRequest())}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,e$(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,e$(e,t)}buildRequest(){let e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,o.xO)(t)}return e}}/**
765 * @license
766 * Copyright 2020 Google LLC
767 *
768 * Licensed under the Apache License, Version 2.0 (the "License");
769 * you may not use this file except in compliance with the License.
770 * You may obtain a copy of the License at
771 *
772 *   http://www.apache.org/licenses/LICENSE-2.0
773 *
774 * Unless required by applicable law or agreed to in writing, software
775 * distributed under the License is distributed on an "AS IS" BASIS,
776 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
777 * See the License for the specific language governing permissions and
778 * limitations under the License.
779 */async function eF(e,t){return O(e,"POST","/v1/accounts:sendVerificationCode",T(e,t))}async function eH(e,t){return A(e,"POST","/v1/accounts:signInWithPhoneNumber",T(e,t))}async function ez(e,t){let r=await A(e,"POST","/v1/accounts:signInWithPhoneNumber",T(e,t));if(r.temporaryProof)throw N(e,"account-exists-with-different-credential",r);return r}let eq={USER_NOT_FOUND:"user-not-found"};async function eW(e,t){return A(e,"POST","/v1/accounts:signInWithPhoneNumber",T(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),eq)}/**
780 * @license
781 * Copyright 2020 Google LLC
782 *
783 * Licensed under the Apache License, Version 2.0 (the "License");
784 * you may not use this file except in compliance with the License.
785 * You may obtain a copy of the License at
786 *
787 *   http://www.apache.org/licenses/LICENSE-2.0
788 *
789 * Unless required by applicable law or agreed to in writing, software
790 * distributed under the License is distributed on an "AS IS" BASIS,
791 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
792 * See the License for the specific language governing permissions and
793 * limitations under the License.
794 */class eV extends eA{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new eV({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new eV({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return eH(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return ez(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return eW(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:n}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:n}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));let{verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}=e;return r||t||n||i?new eV({verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}):null}}class eG{constructor(e){var t,r,n,i,s,a;let l=(0,o.zd)((0,o.pd)(e)),c=null!==(t=l.apiKey)&&void 0!==t?t:null,u=null!==(r=l.oobCode)&&void 0!==r?r:null,d=/**
795 * @license
796 * Copyright 2020 Google LLC
797 *
798 * Licensed under the Apache License, Version 2.0 (the "License");
799 * you may not use this file except in compliance with the License.
800 * You may obtain a copy of the License at
801 *
802 *   http://www.apache.org/licenses/LICENSE-2.0
803 *
804 * Unless required by applicable law or agreed to in writing, software
805 * distributed under the License is distributed on an "AS IS" BASIS,
806 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
807 * See the License for the specific language governing permissions and
808 * limitations under the License.
809 */function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(n=l.mode)&&void 0!==n?n:null);v(c&&u&&d,"argument-error"),this.apiKey=c,this.operation=d,this.code=u,this.continueUrl=null!==(i=l.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(s=l.languageCode)&&void 0!==s?s:null,this.tenantId=null!==(a=l.tenantId)&&void 0!==a?a:null}static parseLink(e){let t=function(e){let t=(0,o.zd)((0,o.pd)(e)).link,r=t?(0,o.zd)((0,o.pd)(t)).deep_link_id:null,n=(0,o.zd)((0,o.pd)(e)).deep_link_id;return(n?(0,o.zd)((0,o.pd)(n)).link:null)||n||r||t||e}(e);try{return new eG(t)}catch(e){return null}}}/**
810 * @license
811 * Copyright 2020 Google LLC
812 *
813 * Licensed under the Apache License, Version 2.0 (the "License");
814 * you may not use this file except in compliance with the License.
815 * You may obtain a copy of the License at
816 *
817 *   http://www.apache.org/licenses/LICENSE-2.0
818 *
819 * Unless required by applicable law or agreed to in writing, software
820 * distributed under the License is distributed on an "AS IS" BASIS,
821 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
822 * See the License for the specific language governing permissions and
823 * limitations under the License.
824 */class eJ{constructor(){this.providerId=eJ.PROVIDER_ID}static credential(e,t){return ej._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let r=eG.parseLink(t);return v(r,"argument-error"),ej._fromEmailAndCode(e,r.code,r.tenantId)}}eJ.PROVIDER_ID="password",eJ.EMAIL_PASSWORD_SIGN_IN_METHOD="password",eJ.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
825 * @license
826 * Copyright 2020 Google LLC
827 *
828 * Licensed under the Apache License, Version 2.0 (the "License");
829 * you may not use this file except in compliance with the License.
830 * You may obtain a copy of the License at
831 *
832 *   http://www.apache.org/licenses/LICENSE-2.0
833 *
834 * Unless required by applicable law or agreed to in writing, software
835 * distributed under the License is distributed on an "AS IS" BASIS,
836 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
837 * See the License for the specific language governing permissions and
838 * limitations under the License.
839 */class eX{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/**
840 * @license
841 * Copyright 2019 Google LLC
842 *
843 * Licensed under the Apache License, Version 2.0 (the "License");
844 * you may not use this file except in compliance with the License.
845 * You may obtain a copy of the License at
846 *
847 *   http://www.apache.org/licenses/LICENSE-2.0
848 *
849 * Unless required by applicable law or agreed to in writing, software
850 * distributed under the License is distributed on an "AS IS" BASIS,
851 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
852 * See the License for the specific language governing permissions and
853 * limitations under the License.
854 */class eZ extends eX{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/**
855 * @license
856 * Copyright 2020 Google LLC
857 *
858 * Licensed under the Apache License, Version 2.0 (the "License");
859 * you may not use this file except in compliance with the License.
860 * You may obtain a copy of the License at
861 *
862 *   http://www.apache.org/licenses/LICENSE-2.0
863 *
864 * Unless required by applicable law or agreed to in writing, software
865 * distributed under the License is distributed on an "AS IS" BASIS,
866 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
867 * See the License for the specific language governing permissions and
868 * limitations under the License.
869 */class eK extends eZ{constructor(){super("facebook.com")}static credential(e){return eU._fromParams({providerId:eK.PROVIDER_ID,signInMethod:eK.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eK.credentialFromTaggedObject(e)}static credentialFromError(e){return eK.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eK.credential(e.oauthAccessToken)}catch(e){return null}}}eK.FACEBOOK_SIGN_IN_METHOD="facebook.com",eK.PROVIDER_ID="facebook.com";/**
870 * @license
871 * Copyright 2020 Google LLC
872 *
873 * Licensed under the Apache License, Version 2.0 (the "License");
874 * you may not use this file except in compliance with the License.
875 * You may obtain a copy of the License at
876 *
877 *   http://www.apache.org/licenses/LICENSE-2.0
878 *
879 * Unless required by applicable law or agreed to in writing, software
880 * distributed under the License is distributed on an "AS IS" BASIS,
881 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
882 * See the License for the specific language governing permissions and
883 * limitations under the License.
884 */class eY extends eZ{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return eU._fromParams({providerId:eY.PROVIDER_ID,signInMethod:eY.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return eY.credentialFromTaggedObject(e)}static credentialFromError(e){return eY.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r}=e;if(!t&&!r)return null;try{return eY.credential(t,r)}catch(e){return null}}}eY.GOOGLE_SIGN_IN_METHOD="google.com",eY.PROVIDER_ID="google.com";/**
885 * @license
886 * Copyright 2020 Google LLC
887 *
888 * Licensed under the Apache License, Version 2.0 (the "License");
889 * you may not use this file except in compliance with the License.
890 * You may obtain a copy of the License at
891 *
892 *   http://www.apache.org/licenses/LICENSE-2.0
893 *
894 * Unless required by applicable law or agreed to in writing, software
895 * distributed under the License is distributed on an "AS IS" BASIS,
896 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
897 * See the License for the specific language governing permissions and
898 * limitations under the License.
899 */class eQ extends eZ{constructor(){super("github.com")}static credential(e){return eU._fromParams({providerId:eQ.PROVIDER_ID,signInMethod:eQ.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eQ.credentialFromTaggedObject(e)}static credentialFromError(e){return eQ.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eQ.credential(e.oauthAccessToken)}catch(e){return null}}}eQ.GITHUB_SIGN_IN_METHOD="github.com",eQ.PROVIDER_ID="github.com";/**
900 * @license
901 * Copyright 2020 Google LLC
902 *
903 * Licensed under the Apache License, Version 2.0 (the "License");
904 * you may not use this file except in compliance with the License.
905 * You may obtain a copy of the License at
906 *
907 *   http://www.apache.org/licenses/LICENSE-2.0
908 *
909 * Unless required by applicable law or agreed to in writing, software
910 * distributed under the License is distributed on an "AS IS" BASIS,
911 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
912 * See the License for the specific language governing permissions and
913 * limitations under the License.
914 */class e0 extends eZ{constructor(){super("twitter.com")}static credential(e,t){return eU._fromParams({providerId:e0.PROVIDER_ID,signInMethod:e0.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return e0.credentialFromTaggedObject(e)}static credentialFromError(e){return e0.credentialFromTaggedObject(e.customData||{})}
914static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:r}=e;if(!t||!r)return null;try{return e0.credential(t,r)}catch(e){return null}}}e0.TWITTER_SIGN_IN_METHOD="twitter.com",e0.PROVIDER_ID="twitter.com";/**
915 * @license
916 * Copyright 2020 Google LLC
917 *
918 * Licensed under the Apache License, Version 2.0 (the "License");
919 * you may not use this file except in compliance with the License.
920 * You may obtain a copy of the License at
921 *
922 *   http://www.apache.org/licenses/LICENSE-2.0
923 *
924 * Unless required by applicable law or agreed to in writing, software
925 * distributed under the License is distributed on an "AS IS" BASIS,
926 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
927 * See the License for the specific language governing permissions and
928 * limitations under the License.
929 */class e1{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,r,n=!1){return new e1({user:await ee._fromIdTokenResponse(e,r,n),providerId:e2(r),_tokenResponse:r,operationType:t})}static async _forOperation(e,t,r){return await e._updateTokensIfNecessary(r,!0),new e1({user:e,providerId:e2(r),_tokenResponse:r,operationType:t})}}function e2(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/**
930 * @license
931 * Copyright 2020 Google LLC
932 *
933 * Licensed under the Apache License, Version 2.0 (the "License");
934 * you may not use this file except in compliance with the License.
935 * You may obtain a copy of the License at
936 *
937 *   http://www.apache.org/licenses/LICENSE-2.0
938 *
939 * Unless required by applicable law or agreed to in writing, software
940 * distributed under the License is distributed on an "AS IS" BASIS,
941 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
942 * See the License for the specific language governing permissions and
943 * limitations under the License.
944 */class e4 extends o.ZR{constructor(e,t,r,n){var i;super(t.code,t.message),this.operationType=r,this.user=n,Object.setPrototypeOf(this,e4.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,t,r,n){return new e4(e,t,r,n)}}function e3(e,t,r,n){return("reauthenticate"===t?r._getReauthenticationResolver(e):r._getIdTokenResponse(e)).catch(r=>{if("auth/multi-factor-auth-required"===r.code)throw e4._fromErrorAndOperation(e,r,t,n);throw r})}async function e5(e,t,r=!1){let n=await q(e,t._linkToIdToken(e.auth,await e.getIdToken()),r);return e1._forOperation(e,"link",n)}async function e6(e,t,r){await G(t),v(new Set(t.providerData.map(({providerId:e})=>e).filter(e=>!!e)).has(r)===e,t.auth,!1===e?"provider-already-linked":"no-such-provider")}/**
945 * @license
946 * Copyright 2019 Google LLC
947 *
948 * Licensed under the Apache License, Version 2.0 (the "License");
949 * you may not use this file except in compliance with the License.
950 * You may obtain a copy of the License at
951 *
952 *   http://www.apache.org/licenses/LICENSE-2.0
953 *
954 * Unless required by applicable law or agreed to in writing, software
955 * distributed under the License is distributed on an "AS IS" BASIS,
956 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
957 * See the License for the specific language governing permissions and
958 * limitations under the License.
959 */async function e8(e,t,r=!1){let{auth:n}=e;if((0,i.rh)(n.app))return Promise.reject(g(n));let o="reauthenticate";try{let i=await q(e,e3(n,o,t,e),r);v(i.idToken,n,"internal-error");let s=H(i.idToken);v(s,n,"internal-error");let{sub:a}=s;return v(e.uid===a,n,"user-mismatch"),e1._forOperation(e,o,i)}catch(e){throw(null==e?void 0:e.code)==="auth/user-not-found"&&p(n,"user-mismatch"),e}}/**
960 * @license
961 * Copyright 2020 Google LLC
962 *
963 * Licensed under the Apache License, Version 2.0 (the "License");
964 * you may not use this file except in compliance with the License.
965 * You may obtain a copy of the License at
966 *
967 *   http://www.apache.org/licenses/LICENSE-2.0
968 *
969 * Unless required by applicable law or agreed to in writing, softw
969are
970 * distributed under the License is distributed on an "AS IS" BASIS,
971 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
972 * See the License for the specific language governing permissions and
973 * limitations under the License.
974 */async function e7(e,t,r=!1){if((0,i.rh)(e.app))return Promise.reject(g(e));let n="signIn",o=await e3(e,n,t),s=await e1._fromIdTokenResponse(e,n,o);return r||await e._updateCurrentUser(s.user),s}async function e9(e,t){return e7(e_(e),t)}async function te(e,t){let r=(0,o.m9)(e);return await e6(!1,r,t.providerId),e5(r,t)}async function tt(e,t){return e8((0,o.m9)(e),t)}/**
975 * @license
976 * Copyright 2020 Google LLC
977 *
978 * Licensed under the Apache License, Version 2.0 (the "License");
979 * you may not use this file except in compliance with the License.
980 * You may obtain a copy of the License at
981 *
982 *   http://www.apache.org/licenses/LICENSE-2.0
983 *
984 * Unless required by applicable law or agreed to in writing, software
985 * distributed under the License is distributed on an "AS IS" BASIS,
986 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
987 * See the License for the specific language governing permissions and
988 * limitations under the License.
989 */async function tr(e){let t=e_(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function tn(e,t,r){let n=e_(e),i={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};if(r){var o;v((null===(o=r.url)||void 0===o?void 0:o.length)>0,n,"invalid-continue-uri"),v(void 0===r.dynamicLinkDomain||r.dynamicLinkDomain.length>0,n,"invalid-dynamic-link-domain"),i.continueUrl=r.url,i.dynamicLinkDomain=r.dynamicLinkDomain,i.canHandleCodeInApp=r.handleCodeInApp,r.iOS&&(v(r.iOS.bundleId.length>0,n,"missing-ios-bundle-id"),i.iOSBundleId=r.iOS.bundleId),r.android&&(v(r.android.packageName.length>0,n,"missing-android-pkg-name"),i.androidInstallApp=r.android.installApp,i.androidMinimumVersionCode=r.android.minimumVersion,i.androidPackageName=r.android.packageName)}await eT(n,i,"getOobCode",eD)}function ti(e,t,r){return(0,i.rh)(e.app)?Promise.reject(g(e)):e9((0,o.m9)(e),eJ.credential(t,r)).catch(async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&tr(e),t})}function to(e,t){return ts((0,o.m9)(e),null,t)}async function ts(e,t,r){let{auth:n}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),r&&(i.password=r);let o=await q(e,eR(n,i));await e._updateTokensIfNecessary(o,!0)}function ta(e,t,r,n){return(0,o.m9)(e).onAuthStateChanged(t,r,n)}function tl(e){return(0,o.m9)(e).signOut()}new WeakMap;let tc="__sak";/**
990 * @license
991 * Copyright 2019 Google LLC
992 *
993 * Licensed under the Apache License, Version 2.0 (the "License");
994 * you may not use this file except in compliance with the License.
995 * You may obtain a copy of the License at
996 *
997 *   http://www.apache.org/licenses/LICENSE-2.0
998 *
999 * Unless required by applicable law or agreed to in writing, software
1000 * distributed under the License is distributed on an "AS IS" BASIS,
1001 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1002 * See the License for the specific language governing permissions and
1003 * limitations under the License.
1004 */class tu{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(!1);return this.storage.setItem(tc,"1"),this.storage.removeItem(tc),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class td extends tu{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=em(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let r=this.storage.getItem(t),n=this.localCache[t];r!==n&&e(t,n,r)}}
1004onStorageEvent(e,t=!1){if(!e.key){this.forAllChangedKeys((e,t,r)=>{this.notifyListeners(e,r)});return}let r=e.key;t?this.detachListener():this.stopPolling();let n=()=>{let e=this.storage.getItem(r);(t||this.localCache[r]!==e)&&this.notifyListeners(r,e)},i=this.storage.getItem(r);(0,o.w1)()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(n,10):n()}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:r}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}td.type="LOCAL";/**
1005 * @license
1006 * Copyright 2020 Google LLC
1007 *
1008 * Licensed under the Apache License, Version 2.0 (the "License");
1009 * you may not use this file except in compliance with the License.
1010 * You may obtain a copy of the License at
1011 *
1012 *   http://www.apache.org/licenses/LICENSE-2.0
1013 *
1014 * Unless required by applicable law or agreed to in writing, software
1015 * distributed under the License is distributed on an "AS IS" BASIS,
1016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1017 * See the License for the specific language governing permissions and
1018 * limitations under the License.
1019 */class th extends tu{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}th.type="SESSION";/**
1020 * @license
1021 * Copyright 2019 Google LLC
1022 *
1023 * Licensed under the Apache License, Version 2.0 (the "License");
1024 * you may not use this file except in compliance with the License.
1025 * You may obtain a copy of the License at
1026 *
1027 *   http://www.apache.org/licenses/LICENSE-2.0
1028 *
1029 * Unless required by applicable law or agreed to in writing, software
1030 * distributed under the License is distributed on an "AS IS" BASIS,
1031 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1032 * See the License for the specific language governing permissions and
1033 * limitations under the License.
1034 */class tp{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;let r=new tp(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let{eventId:t,eventType:r,data:n}=e.data,i=this.handlersMap[r];if(!(null==i?void 0:i.size))return;e.ports[0].postMessage({status:"ack",eventId:t,eventType:r});let o=Array.from(i).map(async t=>t(e.origin,n)),s=await Promise.all(o.map(async e=>{try{let t=await e;return{fulfilled:!0,value:t}}catch(e){return{fulfilled:!1,reason:e}}}));e.ports[0].postMessage({status:"done",eventId:t,eventType:r,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}/**
1035 * @license
1036 * Copyright 2020 Google LLC
1037 *
1038 * Licensed under the Apache License, Version 2.0 (the "License");
1039 * you may not use this file except in compliance with the License.
1040 * You may obtain a copy of the License at
1041 *
1042 *   http://www.apache.org/licenses/LICENSE-2.0
1043 *
1044 * Unless required by applicable law or agreed to in writing, software
1045 * distributed under the License is distributed on an "AS IS" BASIS,
1046 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1047 * See the License for the specific language governing permissions and
1048 * limitations under the License.
1049 */function tf(e="",t=10){let r="";for(let e=0;e<t;e++)r+=Math.floor(10*Math.random());return e+r}tp.receivers=[];/**
1050 * @license
1051 * Copyright 2019 Google LLC
1052 *
1053 * Licensed under the Apache License, Version 2.0 (the "License");
1054 * you may not use this file except in compliance with the License.
1055 * You may obtain a copy of the License at
1056 *
1057 *   http://www.apache.org/licenses/LICENSE-2.0
1058 *
1059 * Unless required by applicable law or agreed to in writing, software
1060 * distributed under the License is distributed on an "AS IS" BASIS,
1061 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1062 * See the License for the specific language governing permissions and
1063 * limitations under the License.
1064 */class tm{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,r=50){let n,i;let o="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!o)throw Error("connection_unavailable");return new Promise((s,a)=>{let l=tf("",20);o.port1.start();let c=setTimeout(()=>{a(Error("unsupported_event"))},r);i={messageChannel:o,onMessage(e){if(e.data.eventId===l)switch(e.data.status){case"ack":clearTimeout(c),n=setTimeout(()=>{a(Error("timeout"))},3e3);break;case"done":clearTimeout(n),s(e.data.response);break;default:clearTimeout(c),clearTimeout(n),a(Error("invalid_response"))}}},this.handlers.add(i),o.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[o.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}/**
1065 * @license
1066 * Copyright 2020 Google LLC
1067 *
1068 * Licensed under the Apache License, Version 2.0 (the "License");
1069 * you may not use this file except in compliance with the License.
1070 * You may obtain a copy of the License at
1071 *
1072 *   http://www.apache.org/licenses/LICENSE-2.0
1073 *
1074 * Unless required by applicable law or agreed to in writing, software
1075 * distributed under the License is distributed on an "AS IS" BASIS,
1076 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1077 * See the License for the specific language governing permissions and
1078 * limitations under the License.
1079 */function tg(){return window}/**
1080 * @license
1081 * Copyright 2020 Google LLC.
1082 *
1083 * Licensed under the Apache License, Version 2.0 (the "License");
1084 * you may not use this file except in compliance with the License.
1085 * You may obtain a copy of the License at
1086 *
1087 *   http://www.apache.org/licenses/LICENSE-2.0
1088 *
1089 * Unless required by applicable law or agreed to in writing, software
1090 * distributed under the License is distributed on an "AS IS" BASIS,
1091 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1092 * See the License for the specific language governing permissions and
1093 * limitations under the License.
1094 */function ty(){return void 0!==tg().WorkerGlobalScope&&"function"==typeof tg().importScripts}async function tv(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}/**
1095 * @license
1096 * Copyright 2019 Google LLC
1097 *
1098 * Licensed under the Apache License, Version 2.0 (the "License");
1099 * you may not use this file except in compliance with the License.
1100 * You may obtain a copy of the License at
1101 *
1102 *   http://www.apache.org/licenses/LICENSE-2.0
1103 *
1104 * Unless required by applicable law or agreed to in writing, software
1105 * distributed under the License is distributed on an "AS IS" BASIS,
1106 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1107 * See the License for the specific language governing permissions and
1108 * limitations under the License.
1109 */let tw="firebaseLocalStorageDb",tb="firebaseLocalStorage",t_="fbase_key";class tS{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>
1109{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function tE(e,t){return e.transaction([tb],t?"readwrite":"readonly").objectStore(tb)}function tk(){let e=indexedDB.open(tw,1);return new Promise((t,r)=>{e.addEventListener("error",()=>{r(e.error)}),e.addEventListener("upgradeneeded",()=>{let t=e.result;try{t.createObjectStore(tb,{keyPath:t_})}catch(e){r(e)}}),e.addEventListener("success",async()=>{let r=e.result;r.objectStoreNames.contains(tb)?t(r):(r.close(),await new tS(indexedDB.deleteDatabase(tw)).toPromise(),t(await tk()))})})}async function tx(e,t,r){return new tS(tE(e,!0).put({[t_]:t,value:r})).toPromise()}async function tC(e,t){let r=tE(e,!1).get(t),n=await new tS(r).toPromise();return void 0===n?null:n.value}function tT(e,t){return new tS(tE(e,!0).delete(t)).toPromise()}class tO{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await tk()),this.db}async _withRetries(e){let t=0;for(;;)try{let t=await this._openDb();return await e(t)}catch(e){if(t++>3)throw e;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return ty()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=tp._getInstance(ty()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await tv(),!this.activeServiceWorker)return;this.sender=new tm(this.activeServiceWorker);let r=await this.sender._send("ping",{},800);r&&(null===(e=r[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=r[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null===(t=null==navigator?void 0:navigator.serviceWorker)||void 0===t?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(e){}}async _isAvailable(){try{if(!indexedDB)return!1;let e=await tk();return await tx(e,tc,"1"),await tT(e,tc),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(r=>tx(r,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>tC(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>tT(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>new tS(tE(e,!1).getAll()).toPromise());if(!e||0!==this.pendingWrites)return[];let t=[],r=new Set;if(0!==e.length)for(let{fbase_key:n,value:i}of e)r.add(n),JSON.stringify(this.localCache[n])!==JSON.stringify(i)&&(this.notifyListeners(n,i),t.push(n));for(let e of Object.keys(this.localCache))this.localCache[e]&&!r.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}async function tI(e,t,r){var n,i,o;let s=await r.verify();try{let a;if(v("string"==typeof s,e,"argument-error"),v("recaptcha"===r.type,e,"argument-error"),a="string"==typeof t?{phoneNumber:t}
1109:t,"session"in a){let t=a.session;if("phoneNumber"in a)return v("enroll"===t.type,e,"internal-error"),(await (i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:a.phoneNumber,recaptchaToken:s}},O(e,"POST","/v2/accounts/mfaEnrollment:start",T(e,i)))).phoneSessionInfo.sessionInfo;{v("signin"===t.type,e,"internal-error");let r=(null===(n=a.multiFactorHint)||void 0===n?void 0:n.uid)||a.multiFactorUid;return v(r,e,"missing-multi-factor-info"),(await (o={mfaPendingCredential:t.credential,mfaEnrollmentId:r,phoneSignInInfo:{recaptchaToken:s}},O(e,"POST","/v2/accounts/mfaSignIn:start",T(e,o)))).phoneResponseInfo.sessionInfo}}{let{sessionInfo:t}=await eF(e,{phoneNumber:a.phoneNumber,recaptchaToken:s});return t}}finally{r._reset()}}tO.type="LOCAL",ek("rcb"),new S(3e4,6e4);/**
1110 * @license
1111 * Copyright 2020 Google LLC
1112 *
1113 * Licensed under the Apache License, Version 2.0 (the "License");
1114 * you may not use this file except in compliance with the License.
1115 * You may obtain a copy of the License at
1116 *
1117 *   http://www.apache.org/licenses/LICENSE-2.0
1118 *
1119 * Unless required by applicable law or agreed to in writing, software
1120 * distributed under the License is distributed on an "AS IS" BASIS,
1121 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1122 * See the License for the specific language governing permissions and
1123 * limitations under the License.
1124 */class tA{constructor(e){this.providerId=tA.PROVIDER_ID,this.auth=e_(e)}verifyPhoneNumber(e,t){return tI(this.auth,e,(0,o.m9)(t))}static credential(e,t){return eV._fromVerification(e,t)}static credentialFromResult(e){return tA.credentialFromTaggedObject(e)}static credentialFromError(e){return tA.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:r}=e;return t&&r?eV._fromTokenResponse(t,r):null}}/**
1125 * @license
1126 * Copyright 2021 Google LLC
1127 *
1128 * Licensed under the Apache License, Version 2.0 (the "License");
1129 * you may not use this file except in compliance with the License.
1130 * You may obtain a copy of the License at
1131 *
1132 *   http://www.apache.org/licenses/LICENSE-2.0
1133 *
1134 * Unless required by applicable law or agreed to in writing, software
1135 * distributed under the License is distributed on an "AS IS" BASIS,
1136 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1137 * See the License for the specific language governing permissions and
1138 * limitations under the License.
1139 */function tR(e,t){return t?er(t):(v(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}tA.PROVIDER_ID="phone",tA.PHONE_SIGN_IN_METHOD="phone";/**
1140 * @license
1141 * Copyright 2019 Google LLC
1142 *
1143 * Licensed under the Apache License, Version 2.0 (the "License");
1144 * you may not use this file except in compliance with the License.
1145 * You may obtain a copy of the License at
1146 *
1147 *   http://www.apache.org/licenses/LICENSE-2.0
1148 *
1149 * Unless required by applicable law or agreed to in writing, software
1150 * distributed under the License is distributed on an "AS IS" BASIS,
1151 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1152 * See the License for the specific language governing permissions and
1153 * limitations under the License.
1154 */class tP extends eA{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return e$(e,this._buildIdpRequest())}_linkToIdToken(e,t){return e$(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return e$(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function tN(e){return e7(e.auth,new tP(e),e.bypassAuthState)}function tL(e){let{auth:t,user:r}=e;return v(r,t,"internal-error"),e8(r,new tP(e),e.bypassAuthState)}async function tD(e){let{auth:t,user:r}=e;return v(r,t,"internal-error"),e5(r,new tP(e),e.bypassAuthState)}/**
1155 * @license
1156 * Copyright 2020 Google LLC
1157 *
1158 * Licensed under the Apache License, Version 2.0 (the "License");
1159 * you may not use this file except in compliance with the License.
1160 * You may obtain a copy of the License at
1161 *
1162 *   http://www.apache.org/licenses/LICENSE-2.0
1163 *
1164 * Unless required by applicable law or agreed to in writing, software
1165 * distributed under the License is distributed on an "AS IS" BASIS,
1166 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1167 * See the License for the specific language governing permissions and
1168 * limitations under the License.
1169 */class tM{constructor(e,t,r,n,i=!1){this.auth=e,this.resolver=r,this.user=n,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){let{urlResponse:t,sessionId:r,postBody:n,tenantId:i,error:o,type:s}=e;if(o){this.reject(o);return}let a={auth:this.auth,requestUri:t,sessionId:r,tenantId:i||void 0,postBody:n||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(a))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return tN;case"linkViaPopup":case"linkViaRedirect":return tD;case"reauthViaPopup":case"reauthViaRedirect":return tL;default:p(this.auth,"internal-error")}}resolve(e){var t,r;t=this.pendingPromise,r="Pending promise was never set",t||w(r),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){var t,r;t=this.pendingPromise,r="Pending promise was never set",t||w(r),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
1170 * @license
1171 * Copyright 2020 Google LLC
1172 *
1173 * Licensed under the Apache License, Version 2.0 (the "License");
1174 * you may not use this file except in compliance with the License.
1175 * You may obtain a copy of the License at
1176 *
1177 *   http://www.apache.org/licenses/LICENSE-2.0
1178 *
1179 * Unless required by applicable law or agreed to in writing, software
1180 * distributed under the License is distributed on an "AS IS" BASIS,
1181 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1182 * See the License for the specific language governing permissions and
1183 * limitations under the License.
1184 */let tB=new S(2e3,1e4);async function tj(e,t,r){if((0,i.rh)(e.app))return Promise.reject(f(e,"operation-not-supported-in-this-environment"));let n=e_(e);!function(e,t,r){if(!(t instanceof r))throw r.name!==t.constructor.name&&p(e,"argument-error"),m(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}(e,t,eX);let o=tR(n,r);return new t$(n,"signInViaPopup",t,o).executeNotNull()}class t$ extends tM{constructor(e,t,r,n,i){super(e,t,n,i),this.provider=r,this.authWindow=null,this.pollId=null,t$.currentPopupAction&&t$.currentPopupAction.cancel(),t$.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return v(e,this.auth,"internal-error"),e}async onExecution(){var e,t;e=1===this.filter.length,t="Popup operations only handle one event",e||w(t);let r=tf();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],r),this.authWindow.associatedEvent=r,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(f(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(f(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,t$.currentPopupAction=null}pollUserCancellation(){let e=()=>{var t,r;if(null===(r=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===r?void 0:r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(f(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,tB.get())};e()}}t$.currentPopupAction=null;let tU=new Map;class tF extends tM{constructor(e,t,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null}async execute(){let e=tU.get(this.auth._key());if(!e){try{let t=await tH(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}tU.set(this.auth._key(),e)}return this.bypassAuthState||tU.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);
1184if("unknown"===e.type){this.resolve(null);return}if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function tH(e,t){let r=ei("pendingRedirect",t.config.apiKey,t.name),n=er(e._redirectPersistence);if(!await n._isAvailable())return!1;let i=await n._get(r)==="true";return await n._remove(r),i}function tz(e,t){tU.set(e._key(),t)}async function tq(e,t,r=!1){if((0,i.rh)(e.app))return Promise.reject(g(e));let n=e_(e),o=tR(n,t),s=new tF(n,o,r),a=await s.execute();return a&&!r&&(delete a.user._redirectEventId,await n._persistUserIfCurrent(a.user),await n._setRedirectUser(null,t)),a}class tW{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(t=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return tG(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var r;if(e.error&&!tG(e)){let n=(null===(r=e.error.code)||void 0===r?void 0:r.split("auth/")[1])||"internal-error";t.onError(f(this.auth,n))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let r=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(tV(e))}saveEventToCache(e){this.cachedEventUids.add(tV(e)),this.lastProcessedEventTime=Date.now()}}function tV(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function tG({type:e,error:t}){return"unknown"===e&&(null==t?void 0:t.code)==="auth/no-auth-event"}/**
1185 * @license
1186 * Copyright 2020 Google LLC
1187 *
1188 * Licensed under the Apache License, Version 2.0 (the "License");
1189 * you may not use this file except in compliance with the License.
1190 * You may obtain a copy of the License at
1191 *
1192 *   http://www.apache.org/licenses/LICENSE-2.0
1193 *
1194 * Unless required by applicable law or agreed to in writing, software
1195 * distributed under the License is distributed on an "AS IS" BASIS,
1196 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1197 * See the License for the specific language governing permissions and
1198 * limitations under the License.
1199 */async function tJ(e,t={}){return O(e,"GET","/v1/projects",t)}/**
1200 * @license
1201 * Copyright 2020 Google LLC
1202 *
1203 * Licensed under the Apache License, Version 2.0 (the "License");
1204 * you may not use this file except in compliance with the License.
1205 * You may obtain a copy of the License at
1206 *
1207 *   http://www.apache.org/licenses/LICENSE-2.0
1208 *
1209 * Unless required by applicable law or agreed to in writing, software
1210 * distributed under the License is distributed on an "AS IS" BASIS,
1211 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212 * See the License for the specific language governing permissions and
1213 * limitations under the License.
1214 */let tX=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,tZ=/^https?/;async function tK(e){if(e.config.emulator)return;let{authorizedDomains:t}=await tJ(e);for(let e of t)try{if(function(e){let t=b(),{protocol:r,hostname:n}=new URL(t);if(e.startsWith("chrome-extension://")){let i=new URL(e);return""===i.hostname&&""===n?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&i.hostname===n}if(!tZ.test(r))return!1;if(tX.test(e))return n===e;let i=e.replace(/\./g,"\\.");return RegExp("^(.+\\."+i+"|"+i+")$","i").test(n)}(e))return}catch(e){}p(e,"unauthorized-domain")}/**
1215 * @license
1216 * Copyright 2020 Google LLC.
1217 *
1218 * Licensed under the Apache License, Version 2.0 (the "License");
1219 * you may not use this file except in compliance with the License.
1220 * You may obtain a copy of the License at
1221 *
1222 *   http://www.apache.org/licenses/LICENSE-2.0
1223 *
1224 * Unless required by applicable law or agreed to in writing, software
1225 * distributed under the License is distributed on an "AS IS" BASIS,
1226 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1227 * See the License for the specific language governing permissions and
1228 * limitations under the License.
1229 */let tY=new S(3e4,6e4);function tQ(){let e=tg().___jsl;if(null==e?void 0:e.H){for(let t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}}let t0=null,t1=new S(5e3,15e3),t2={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},t4=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);async function t3(e){let t=await (t0=t0||new Promise((t,r)=>{var n,i,o,s;function a(){tQ(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{tQ(),r(f(e,"network-request-failed"))},timeout:tY.get()})}if(null===(i=null===(n=tg().gapi)||void 0===n?void 0:n.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else if(null===(o=tg().gapi)||void 0===o?void 0:o.load)a();else{let t=ek("iframefcb");return tg()[t]=()=>{gapi.load?a():r(f(e,"network-request-failed"))},(s=`${eE.gapiScript}?onload=${t}`,eE.loadJS(s)).catch(e=>r(e))}}).catch(e=>{throw t0=null,e})),r=tg().gapi;return v(r,e,"internal-error"),t.open({where:document.body,url:function(e){let t=e.config;v(t.authDomain,e,"auth-domain-config-required");let r=t.emulator?E(t,"emulator/auth/iframe"):`https://${e.config.authDomain}/__/auth/iframe`,n={apiKey:t.apiKey,appName:e.name,v:i.Jn},s=t4.get(e.config.apiHost);s&&(n.eid=s);let a=e._getFrameworks();return a.length&&(n.fw=a.join(",")),`${r}?${(0,o.xO)(n).slice(1)}`}(e),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:t2,dontclear:!0},t=>new Promise(async(r,n)=>{await t.restyle({setHideOnLeave:!1});let i=f(e,"network-request-failed"),o=tg().setTimeout(()=>{n(i)},t1.get());function s(){tg().clearTimeout(o),r(t)}t.ping(s).then(s,()=>{n(i)})}))}/**
1230 * @license
1231 * Copyright 2020 Google LLC.
1232 *
1233 * Licensed under the Apache License, Version 2.0 (the "License");
1234 * you may not use this file except in compliance with the License.
1235 * You may obtain a copy of the License at
1236 *
1237 *   http://www.apache.org/licenses/LICENSE-2.0
1238 *
1239 * Unless required by applicable law or agreed to in writing, software
1240 * distributed under the License is distributed on an "AS IS" BASIS,
1241 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1242 * See the License for the specific language governing permissions and
1243 * limitations under the License.
1244 */let t5={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class t6{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}let t8=encodeURIComponent("fac");async function t7(e,t,r,n,s,a){v(e.config.authDomain,e,"auth-domain-config-required"),v(e.config.apiKey,e,"invalid-api-key");let l={apiKey:e.config.apiKey,appName:e.name,authType:r,redirectUrl:n,v:i.Jn,eventId:s};if(t instanceof eX)for(let[r,n]of(t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,o.xb)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters())),Object.entries(a||{})))l[r]=n;if(t instanceof eZ){let e=t.getScopes().filter(e=>""!==e);e.length>0&&(l.scopes=e.join(","))}for(let t of(e.tenantId&&(l.tid=e.tenantId),Object.keys(l)))void 0===l[t]&&delete l[t];let c=await e._getAppCheckToken(),u=c?`#${t8}=${encodeURIComponent(c)}`:"";return`${function({config:e}){return e.emulator?E(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${(0,o.xO)(l).slice(1)}${u}`}/**
1245 * @license
1246 * Copyright 2020 Google LLC
1247 *
1248 * Licensed under the Apache License, Version 2.0 (the "License");
1249 * you may not use this file except in compliance with the License.
1250 * You may obtain a copy of the License at
1251 *
1252 *   http://www.apache.org/licenses/LICENSE-2.0
1253 *
1254 * Unless required by applicable law or agreed to in writing, software
1255 * distributed under the License is distributed on an "AS IS" BASIS,
1256 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1257 * See the License for the specific language governing permissions and
1258 * limitations under the License.
1259 */let t9="webStorageSupport";class re{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=th,this._completeRedirectFn=tq,this._overrideRedirectResult=tz}async _openPopup(e,t,r,n){var i,s,a;s=null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,a="_initialize() not called before _openPopup()",s||w(a);let l=await t7(e,t,r,b(),n);return function(e,t,r,n=500,i=600){let s=Math.max((window.screen.availHeight-i)/2,0).toString(),a=Math.max((window.screen.availWidth-n)/2,0).toString(),l="",c=Object.assign(Object.assign({},t5),{width:n.toString(),height:i.toString(),top:s,left:a}),u=(0,o.z$)().toLowerCase();r&&(l=ec(u)?"_blank":r),ea(u)&&(t=t||"http://localhost",c.scrollbars="yes");let d=Object.entries(c).reduce((e,[t,r])=>`${e}${t}=${r},`,"");if(function(e=(0,o.z$)()){var t;return ef(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}(u)&&"_self"!==l)return function(e,t){let r=document.createElement("a");r.href=e,r.target=t;let n=document.createEvent("MouseEvent");n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),r.dispatchEvent(n)}(t||"",l),new t6(null);let h=window.open(t||"",l,d);v(h,e,"popup-blocked");try{h.focus()}catch(e){}return new t6(h)}(e,l,tf())}async _openRedirect(e,t,r,n){var i;return await this._originValidation(e),i=await t7(e,t,r,b(),n),tg().location.href=i,new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){var r;let{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(r="If manager is not set, promise should be",n||w(r),n)}let n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){let t=await t3(e),r=new tW(e);return t.register("authEvent",t=>(v(null==t?void 0:t.authEvent,e,"invalid-auth-event"),{status:r.onEvent(t.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(t9,{type:t9},r=>{var n;let i=null===(n=null==r?void 0:r[0])||void 0===n?void 0:n[t9];void 0!==i&&t(!!i),p(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=tK(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return em()||el()||ef()}}class rt{constructor(e){this.factorId=e}_process(e,t,r){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,r);case"signin":return this._finalizeSignIn(e,t.credential);default:return w("unexpected MultiFactorSessionType")}}}class rr extends rt{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new rr(e)}_finalizeEnroll(e,t,r){return O(e,"POST","/v2/accounts/mfaEnrollment:finalize",T(e,{idToken:t,displayName:r,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}_finalizeSignIn(e,t){return O(e,"POST","/v2/accounts/mfaSignIn:finalize",T(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}}class rn{constructor(){}static assertion(e){return rr._fromCredential(e)}}rn.FACTOR_ID="phone";class ri{static assertionForEnrollment(e,t){return ro._fromSecret(e,t)}static assertionForSignIn(e,t){return ro._fromEnrollmentId(e,t)}static async generateSecret(e){var t,r;v(void 0!==(null===(t=e.user)||void 0===t?void 0:t.auth),"internal-error");let n=await O(r=e.user.auth,"POST","/v2/accounts/mfaEnrollment:start",T(r,{idToken:e.credential,totpEnrollmentInfo:{}}));return rs._fromStartTotpMfaEnrollmentResponse(n,e.user.auth)}}ri.FACTOR_ID="totp";class ro extends rt{constructor(e,t,r){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=r}static _fromSecret(e,t){return new ro(t,void 0,e)}static _fromEnrollmentId(e,t){return new ro(t,e)}async _finalizeEnroll(e,t,r){return v(void 0!==this.secret,e,"argument-error"),O(e,"POST","/v2/accounts/mfaEnrollment:finalize",T(e,{idToken:t,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)}))}async _finalizeSignIn(e,t){v(void 0!==this.enrollmentId&&void 0!==this.otp,e,"argument-error");let r={verificationCode:this.otp};return O(e,"POST","/v2/accounts/mfaSignIn:finalize",T(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r}))}}class rs{constructor(e,t,r,n,i,o,s){this.sessionInfo=o,this.auth=s,this.secretKey=e,this.hashingAlgorithm=t,this.co
1259deLength=r,this.codeIntervalSeconds=n,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(e,t){return new rs(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){var r;let n=!1;return(ra(e)||ra(t))&&(n=!0),n&&(ra(e)&&(e=(null===(r=this.auth.currentUser)||void 0===r?void 0:r.email)||"unknownuser"),ra(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function ra(e){return void 0===e||(null==e?void 0:e.length)===0}var rl="@firebase/auth",rc="1.7.9";/**
1260 * @license
1261 * Copyright 2020 Google LLC
1262 *
1263 * Licensed under the Apache License, Version 2.0 (the "License");
1264 * you may not use this file except in compliance with the License.
1265 * You may obtain a copy of the License at
1266 *
1267 *   http://www.apache.org/licenses/LICENSE-2.0
1268 *
1269 * Unless required by applicable law or agreed to in writing, software
1270 * distributed under the License is distributed on an "AS IS" BASIS,
1271 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1272 * See the License for the specific language governing permissions and
1273 * limitations under the License.
1274 */class ru{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){return(this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser)?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){v(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}let rd=(0,o.Pz)("authIdTokenMaxAge")||300,rh=null,rp=e=>async t=>{let r=t&&await t.getIdTokenResult(),n=r&&(new Date().getTime()-Date.parse(r.issuedAtTime))/1e3;if(n&&n>rd)return;let i=null==r?void 0:r.token;rh!==i&&(rh=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function rf(e=(0,i.Mq)()){let t=(0,i.qX)(e,"auth");if(t.isInitialized())return t.getImmediate();let r=/**
1275 * @license
1276 * Copyright 2020 Google LLC
1277 *
1278 * Licensed under the Apache License, Version 2.0 (the "License");
1279 * you may not use this file except in compliance with the License.
1280 * You may obtain a copy of the License at
1281 *
1282 *   http://www.apache.org/licenses/LICENSE-2.0
1283 *
1284 * Unless required by applicable law or agreed to in writing, software
1285 * distributed under the License is distributed on an "AS IS" BASIS,
1286 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1287 * See the License for the specific language governing permissions and
1288 * limitations under the License.
1289 */function(e,t){let r=(0,i.qX)(e,"auth");if(r.isInitialized()){let e=r.getImmediate(),n=r.getOptions();if((0,o.vZ)(n,null!=t?t:{}))return e;p(e,"already-initialized")}return r.initialize({options:t})}(e,{popupRedirectResolver:re,persistence:[tO,td,th]}),n=(0,o.Pz)("authTokenSyncURL");if(n&&"boolean"==typeof isSecureContext&&isSecureContext){let e=new URL(n,location.origin);if(location.origin===e.origin){var s,a;let t=rp(e.toString());s=()=>t(r.currentUser),(0,o.m9)(r).beforeAuthStateChanged(t,s),a=e=>t(e),(0,o.m9)(r).onIdTokenChanged(a,void 0,void 0)}}let l=(0,o.q4)("auth");return l&&function(e,t,r){let n=e_(e);v(n._canInitEmulator,n,"emulator-config-failed"),v(/^https?:\/\//.test(t),n,"invalid-emulator-scheme");let i=eO(t),{host:o,port:s}=function(e){let t=eO(e),r=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!r)return{host:"",port:null};let n=r[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(n);if(i){let e=i[1];return{host:e,port:eI(n.substr(e.length+1))}}{let[e,t]=n.split(":");return{host:e,port:eI(t)}}}(t),a=null===s?"":`:${s}`;n.config.emulator={url:`${i}//${o}${a}/`},n.settings.appVerificationDisabledForTesting=!0,n.emulatorConfig=Object.freeze({host:o,port:s,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:!1})}),function(){function e(){let e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}(r,`http://${l}`),r}eE={loadJS:e=>
1289new Promise((t,r)=>{var n,i;let o=document.createElement("script");o.setAttribute("src",e),o.onload=t,o.onerror=e=>{let t=f("internal-error");t.customData=e,r(t)},o.type="text/javascript",o.charset="UTF-8",(null!==(i=null===(n=document.getElementsByTagName("head"))||void 0===n?void 0:n[0])&&void 0!==i?i:document).appendChild(o)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},n="Browser",(0,i.Xd)(new l.wA("auth",(e,{options:t})=>{let r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;v(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});let l=new eb(r,i,o,{apiKey:s,authDomain:a,clientPlatform:n,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:eg(n)});return function(e,t){let r=(null==t?void 0:t.persistence)||[],n=(Array.isArray(r)?r:[r]).map(er);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(n,null==t?void 0:t.popupRedirectResolver)}(l,t),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),(0,i.Xd)(new l.wA("auth-internal",e=>new ru(e_(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,i.KN)(rl,rc,/**
1290 * @license
1291 * Copyright 2020 Google LLC
1292 *
1293 * Licensed under the Apache License, Version 2.0 (the "License");
1294 * you may not use this file except in compliance with the License.
1295 * You may obtain a copy of the License at
1296 *
1297 *   http://www.apache.org/licenses/LICENSE-2.0
1298 *
1299 * Unless required by applicable law or agreed to in writing, software
1300 * distributed under the License is distributed on an "AS IS" BASIS,
1301 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1302 * See the License for the specific language governing permissions and
1303 * limitations under the License.
1304 */function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(n)),(0,i.KN)(rl,rc,"esm2017")},89426:function(e){"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},27395:function(e){"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},88420:function(e){"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(7538),t(6840),t(9090)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.