var b8=Object.defineProperty;var C8=(Ut,Ht,$n)=>Ht in Ut?b8(Ut,Ht,{enumerable:!0,configurable:!0,writable:!0,value:$n}):Ut[Ht]=$n;var Lt=(Ut,Ht,$n)=>C8(Ut,typeof Ht!="symbol"?Ht+"":Ht,$n);try{let Ut=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Ht=new Ut.Error().stack;Ht&&(Ut._sentryDebugIds=Ut._sentryDebugIds||{},Ut._sentryDebugIds[Ht]="6f8613b0-feee-4f91-8b9e-cda719a8997c",Ut._sentryDebugIdIdentifier="sentry-dbid-6f8613b0-feee-4f91-8b9e-cda719a8997c")}catch{}(function(){"use strict";{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"2a2ee18ca98415e94405e2312142dd7e3e04d72c"}}function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht={exports:{}},$n={},Su={exports:{}},Ce={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Nh;function wE(){if(Nh)return Ce;Nh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,E={};function T(P,V,we){this.props=P,this.context=V,this.refs=E,this.updater=we||x}T.prototype.isReactComponent={},T.prototype.setState=function(P,V){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,V,"setState")},T.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function A(){}A.prototype=T.prototype;function L(P,V,we){this.props=P,this.context=V,this.refs=E,this.updater=we||x}var j=L.prototype=new A;j.constructor=L,_(j,T.prototype),j.isPureReactComponent=!0;var K=Array.isArray,H=Object.prototype.hasOwnProperty,O={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function W(P,V,we){var Ee,Pe={},Ne=null,Ue=null;if(V!=null)for(Ee in V.ref!==void 0&&(Ue=V.ref),V.key!==void 0&&(Ne=""+V.key),V)H.call(V,Ee)&&!C.hasOwnProperty(Ee)&&(Pe[Ee]=V[Ee]);var $e=arguments.length-2;if($e===1)Pe.children=we;else if(1<$e){for(var We=Array($e),St=0;St<$e;St++)We[St]=arguments[St+2];Pe.children=We}if(P&&P.defaultProps)for(Ee in $e=P.defaultProps,$e)Pe[Ee]===void 0&&(Pe[Ee]=$e[Ee]);return{$$typeof:e,type:P,key:Ne,ref:Ue,props:Pe,_owner:O.current}}function B(P,V){return{$$typeof:e,type:P.type,key:V,ref:P.ref,props:P.props,_owner:P._owner}}function U(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function J(P){var V={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(we){return V[we]})}var Z=/\/+/g;function ue(P,V){return typeof P=="object"&&P!==null&&P.key!=null?J(""+P.key):V.toString(36)}function me(P,V,we,Ee,Pe){var Ne=typeof P;(Ne==="undefined"||Ne==="boolean")&&(P=null);var Ue=!1;if(P===null)Ue=!0;else switch(Ne){case"string":case"number":Ue=!0;break;case"object":switch(P.$$typeof){case e:case t:Ue=!0}}if(Ue)return Ue=P,Pe=Pe(Ue),P=Ee===""?"."+ue(Ue,0):Ee,K(Pe)?(we="",P!=null&&(we=P.replace(Z,"$&/")+"/"),me(Pe,V,we,"",function(St){return St})):Pe!=null&&(U(Pe)&&(Pe=B(Pe,we+(!Pe.key||Ue&&Ue.key===Pe.key?"":(""+Pe.key).replace(Z,"$&/")+"/")+P)),V.push(Pe)),1;if(Ue=0,Ee=Ee===""?".":Ee+":",K(P))for(var $e=0;$e<P.length;$e++){Ne=P[$e];var We=Ee+ue(Ne,$e);Ue+=me(Ne,V,we,We,Pe)}else if(We=w(P),typeof We=="function")for(P=We.call(P),$e=0;!(Ne=P.next()).done;)Ne=Ne.value,We=Ee+ue(Ne,$e++),Ue+=me(Ne,V,we,We,Pe);else if(Ne==="object")throw V=String(P),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return Ue}function De(P,V,we){if(P==null)return P;var Ee=[],Pe=0;return me(P,Ee,"","",function(Ne){return V.call(we,Ne,Pe++)}),Ee}function te(P){if(P._status===-1){var V=P._result;V=V(),V.then(function(we){(P._status===0||P._status===-1)&&(P._status=1,P._result=we)},function(we){(P._status===0||P._status===-1)&&(P._status=2,P._result=we)}),P._status===-1&&(P._status=0,P._result=V)}if(P._status===1)return P._result.default;throw P._result}var Se={current:null},q={transition:null},oe={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:q,ReactCurrentOwner:O};function ne(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:De,forEach:function(P,V,we){De(P,function(){V.apply(this,arguments)},we)},count:function(P){var V=0;return De(P,function(){V++}),V},toArray:function(P){return De(P,function(V){return V})||[]},only:function(P){if(!U(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ce.Component=T,Ce.Fragment=n,Ce.Profiler=i,Ce.PureComponent=L,Ce.StrictMode=s,Ce.Suspense=f,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,Ce.act=ne,Ce.cloneElement=function(P,V,we){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var Ee=_({},P.props),Pe=P.key,Ne=P.ref,Ue=P._owner;if(V!=null){if(V.ref!==void 0&&(Ne=V.ref,Ue=O.current),V.key!==void 0&&(Pe=""+V.key),P.type&&P.type.defaultProps)var $e=P.type.defaultProps;for(We in V)H.call(V,We)&&!C.hasOwnProperty(We)&&(Ee[We]=V[We]===void 0&&$e!==void 0?$e[We]:V[We])}var We=arguments.length-2;if(We===1)Ee.children=we;else if(1<We){$e=Array(We);for(var St=0;St<We;St++)$e[St]=arguments[St+2];Ee.children=$e}return{$$typeof:e,type:P.type,key:Pe,ref:Ne,props:Ee,_owner:Ue}},Ce.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:a,_context:P},P.Consumer=P},Ce.createElement=W,Ce.createFactory=function(P){var V=W.bind(null,P);return V.type=P,V},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(P){return{$$typeof:d,render:P}},Ce.isValidElement=U,Ce.lazy=function(P){return{$$typeof:g,_payload:{_status:-1,_result:P},_init:te}},Ce.memo=function(P,V){return{$$typeof:h,type:P,compare:V===void 0?null:V}},Ce.startTransition=function(P){var V=q.transition;q.transition={};try{P()}finally{q.transition=V}},Ce.unstable_act=ne,Ce.useCallback=function(P,V){return Se.current.useCallback(P,V)},Ce.useContext=function(P){return Se.current.useContext(P)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(P){return Se.current.useDeferredValue(P)},Ce.useEffect=function(P,V){return Se.current.useEffect(P,V)},Ce.useId=function(){return Se.current.useId()},Ce.useImperativeHandle=function(P,V,we){return Se.current.useImperativeHandle(P,V,we)},Ce.useInsertionEffect=function(P,V){return Se.current.useInsertionEffect(P,V)},Ce.useLayoutEffect=function(P,V){return Se.current.useLayoutEffect(P,V)},Ce.useMemo=function(P,V){return Se.current.useMemo(P,V)},Ce.useReducer=function(P,V,we){return Se.current.useReducer(P,V,we)},Ce.useRef=function(P){return Se.current.useRef(P)},Ce.useState=function(P){return Se.current.useState(P)},Ce.useSyncExternalStore=function(P,V,we){return Se.current.useSyncExternalStore(P,V,we)},Ce.useTransition=function(){return Se.current.useTransition()},Ce.version="18.3.1",Ce}var Mh;function wu(){return Mh||(Mh=1,Su.exports=wE()),Su.exports}/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Lh;function _E(){if(Lh)return $n;Lh=1;var e=wu(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,h){var g,y={},w=null,x=null;h!==void 0&&(w=""+h),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(x=f.ref);for(g in f)s.call(f,g)&&!a.hasOwnProperty(g)&&(y[g]=f[g]);if(d&&d.defaultProps)for(g in f=d.defaultProps,f)y[g]===void 0&&(y[g]=f[g]);return{$$typeof:t,type:d,key:w,ref:x,props:y,_owner:i.current}}return $n.Fragment=n,$n.jsx=c,$n.jsxs=c,$n}var jh;function EE(){return jh||(jh=1,Ht.exports=_E()),Ht.exports}var v=EE(),R=wu();const Tt=Ut(R);var Ea={},_u={exports:{}},Wt={},Eu={exports:{}},xu={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Dh;function xE(){return Dh||(Dh=1,function(e){function t(q,oe){var ne=q.length;q.push(oe);e:for(;0<ne;){var P=ne-1>>>1,V=q[P];if(0<i(V,oe))q[P]=oe,q[ne]=V,ne=P;else break e}}function n(q){return q.length===0?null:q[0]}function s(q){if(q.length===0)return null;var oe=q[0],ne=q.pop();if(ne!==oe){q[0]=ne;e:for(var P=0,V=q.length,we=V>>>1;P<we;){var Ee=2*(P+1)-1,Pe=q[Ee],Ne=Ee+1,Ue=q[Ne];if(0>i(Pe,ne))Ne<V&&0>i(Ue,Pe)?(q[P]=Ue,q[Ne]=ne,P=Ne):(q[P]=Pe,q[Ee]=ne,P=Ee);else if(Ne<V&&0>i(Ue,ne))q[P]=Ue,q[Ne]=ne,P=Ne;else break e}}return oe}function i(q,oe){var ne=q.sortIndex-oe.sortIndex;return ne!==0?ne:q.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],g=1,y=null,w=3,x=!1,_=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(q){for(var oe=n(h);oe!==null;){if(oe.callback===null)s(h);else if(oe.startTime<=q)s(h),oe.sortIndex=oe.expirationTime,t(f,oe);else break;oe=n(h)}}function K(q){if(E=!1,j(q),!_)if(n(f)!==null)_=!0,te(H);else{var oe=n(h);oe!==null&&Se(K,oe.startTime-q)}}function H(q,oe){_=!1,E&&(E=!1,A(W),W=-1),x=!0;var ne=w;try{for(j(oe),y=n(f);y!==null&&(!(y.expirationTime>oe)||q&&!J());){var P=y.callback;if(typeof P=="function"){y.callback=null,w=y.priorityLevel;var V=P(y.expirationTime<=oe);oe=e.unstable_now(),typeof V=="function"?y.callback=V:y===n(f)&&s(f),j(oe)}else s(f);y=n(f)}if(y!==null)var we=!0;else{var Ee=n(h);Ee!==null&&Se(K,Ee.startTime-oe),we=!1}return we}finally{y=null,w=ne,x=!1}}var O=!1,C=null,W=-1,B=5,U=-1;function J(){return!(e.unstable_now()-U<B)}function Z(){if(C!==null){var q=e.unstable_now();U=q;var oe=!0;try{oe=C(!0,q)}finally{oe?ue():(O=!1,C=null)}}else O=!1}var ue;if(typeof L=="function")ue=function(){L(Z)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,De=me.port2;me.port1.onmessage=Z,ue=function(){De.postMessage(null)}}else ue=function(){T(Z,0)};function te(q){C=q,O||(O=!0,ue())}function Se(q,oe){W=T(function(){q(e.unstable_now())},oe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_continueExecution=function(){_||x||(_=!0,te(H))},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(q){switch(w){case 1:case 2:case 3:var oe=3;break;default:oe=w}var ne=w;w=oe;try{return q()}finally{w=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,oe){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ne=w;w=q;try{return oe()}finally{w=ne}},e.unstable_scheduleCallback=function(q,oe,ne){var P=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?P+ne:P):ne=P,q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=ne+V,q={id:g++,callback:oe,priorityLevel:q,startTime:ne,expirationTime:V,sortIndex:-1},ne>P?(q.sortIndex=ne,t(h,q),n(f)===null&&q===n(h)&&(E?(A(W),W=-1):E=!0,Se(K,ne-P))):(q.sortIndex=V,t(f,q),_||x||(_=!0,te(H))),q},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(q){var oe=w;return function(){var ne=w;w=oe;try{return q.apply(this,arguments)}finally{w=ne}}}}(xu)),xu}var $h;function TE(){return $h||($h=1,Eu.exports=xE()),Eu.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Bh;function kE(){if(Bh)return Wt;Bh=1;var e=wu(),t=TE();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function a(r,o){c(r,o),c(r+"Capture",o)}function c(r,o){for(i[r]=o,r=0;r<o.length;r++)s.add(o[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},y={};function w(r){return f.call(y,r)?!0:f.call(g,r)?!1:h.test(r)?y[r]=!0:(g[r]=!0,!1)}function x(r,o,l,u){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function _(r,o,l,u){if(o===null||typeof o>"u"||x(r,o,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function E(r,o,l,u,p,m,S){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=r,this.type=o,this.sanitizeURL=m,this.removeEmptyString=S}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){T[r]=new E(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];T[o]=new E(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){T[r]=new E(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){T[r]=new E(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){T[r]=new E(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){T[r]=new E(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){T[r]=new E(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){T[r]=new E(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){T[r]=new E(r,5,!1,r.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function L(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(A,L);T[o]=new E(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(A,L);T[o]=new E(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(A,L);T[o]=new E(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){T[r]=new E(r,1,!1,r.toLowerCase(),null,!1,!1)}),T.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){T[r]=new E(r,1,!1,r.toLowerCase(),null,!0,!0)});function j(r,o,l,u){var p=T.hasOwnProperty(o)?T[o]:null;(p!==null?p.type!==0:u||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(_(o,l,p,u)&&(l=null),u||p===null?w(o)&&(l===null?r.removeAttribute(o):r.setAttribute(o,""+l)):p.mustUseProperty?r[p.propertyName]=l===null?p.type===3?!1:"":l:(o=p.attributeName,u=p.attributeNamespace,l===null?r.removeAttribute(o):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,u?r.setAttributeNS(u,o,l):r.setAttribute(o,l))))}var K=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),O=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),J=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),q=Symbol.iterator;function oe(r){return r===null||typeof r!="object"?null:(r=q&&r[q]||r["@@iterator"],typeof r=="function"?r:null)}var ne=Object.assign,P;function V(r){if(P===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);P=o&&o[1]||""}return`
`+P+r}var we=!1;function Ee(r,o){if(!r||we)return"";we=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(D){var u=D}Reflect.construct(r,[],o)}else{try{o.call()}catch(D){u=D}r.call(o.prototype)}else{try{throw Error()}catch(D){u=D}r()}}catch(D){if(D&&u&&typeof D.stack=="string"){for(var p=D.stack.split(`
`),m=u.stack.split(`
`),S=p.length-1,k=m.length-1;1<=S&&0<=k&&p[S]!==m[k];)k--;for(;1<=S&&0<=k;S--,k--)if(p[S]!==m[k]){if(S!==1||k!==1)do if(S--,k--,0>k||p[S]!==m[k]){var I=`
`+p[S].replace(" at new "," at ");return r.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",r.displayName)),I}while(1<=S&&0<=k);break}}}finally{we=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?V(r):""}function Pe(r){switch(r.tag){case 5:return V(r.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return r=Ee(r.type,!1),r;case 11:return r=Ee(r.type.render,!1),r;case 1:return r=Ee(r.type,!0),r;default:return""}}function Ne(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case C:return"Fragment";case O:return"Portal";case B:return"Profiler";case W:return"StrictMode";case ue:return"Suspense";case me:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case J:return(r.displayName||"Context")+".Consumer";case U:return(r._context.displayName||"Context")+".Provider";case Z:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case De:return o=r.displayName||null,o!==null?o:Ne(r.type)||"Memo";case te:o=r._payload,r=r._init;try{return Ne(r(o))}catch{}}return null}function Ue(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ne(o);case 8:return o===W?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function $e(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function We(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function St(r){var o=We(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),u=""+r[o];if(!r.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,m=l.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return p.call(this)},set:function(S){u=""+S,m.call(this,S)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Rs(r){r._valueTracker||(r._valueTracker=St(r))}function cc(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),u="";return r&&(u=We(r)?r.checked?"true":"false":r.value),r=u,r!==l?(o.setValue(r),!0):!1}function Ro(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function An(r,o){var l=o.checked;return ne({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Gn(r,o){var l=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;l=$e(o.value!=null?o.value:l),r._wrapperState={initialChecked:u,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ao(r,o){o=o.checked,o!=null&&j(r,"checked",o,!1)}function As(r,o){Ao(r,o);var l=$e(o.value),u=o.type;if(l!=null)u==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(u==="submit"||u==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?Ps(r,o.type,l):o.hasOwnProperty("defaultValue")&&Ps(r,o.type,$e(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Os(r,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,l||o===r.value||(r.value=o),r.defaultValue=o}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function Ps(r,o,l){(o!=="number"||Ro(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var Ae=Array.isArray;function wt(r,o,l,u){if(r=r.options,o){o={};for(var p=0;p<l.length;p++)o["$"+l[p]]=!0;for(l=0;l<r.length;l++)p=o.hasOwnProperty("$"+r[l].value),r[l].selected!==p&&(r[l].selected=p),p&&u&&(r[l].defaultSelected=!0)}else{for(l=""+$e(l),o=null,p=0;p<r.length;p++){if(r[p].value===l){r[p].selected=!0,u&&(r[p].defaultSelected=!0);return}o!==null||r[p].disabled||(o=r[p])}o!==null&&(o.selected=!0)}}function Re(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return ne({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ye(r,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(n(92));if(Ae(l)){if(1<l.length)throw Error(n(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:$e(l)}}function je(r,o){var l=$e(o.value),u=$e(o.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),o.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),u!=null&&(r.defaultValue=""+u)}function Yn(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function uc(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Wf(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?uc(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var dc,NS=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,u,p){MSApp.execUnsafeLocalFunction(function(){return r(o,l,u,p)})}:r}(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(dc=dc||document.createElement("div"),dc.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=dc.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function $i(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var Bi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},OD=["Webkit","ms","Moz","O"];Object.keys(Bi).forEach(function(r){OD.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Bi[o]=Bi[r]})});function MS(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||Bi.hasOwnProperty(r)&&Bi[r]?(""+o).trim():o+"px"}function LS(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var u=l.indexOf("--")===0,p=MS(l,o[l],u);l==="float"&&(l="cssFloat"),u?r.setProperty(l,p):r[l]=p}}var PD=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qf(r,o){if(o){if(PD[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Vf(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gf=null;function Yf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Kf=null,Oo=null,Po=null;function jS(r){if(r=aa(r)){if(typeof Kf!="function")throw Error(n(280));var o=r.stateNode;o&&(o=Mc(o),Kf(r.stateNode,r.type,o))}}function DS(r){Oo?Po?Po.push(r):Po=[r]:Oo=r}function $S(){if(Oo){var r=Oo,o=Po;if(Po=Oo=null,jS(r),o)for(r=0;r<o.length;r++)jS(o[r])}}function BS(r,o){return r(o)}function FS(){}var Qf=!1;function zS(r,o,l){if(Qf)return r(o,l);Qf=!0;try{return BS(r,o,l)}finally{Qf=!1,(Oo!==null||Po!==null)&&(FS(),$S())}}function Fi(r,o){var l=r.stateNode;if(l===null)return null;var u=Mc(l);if(u===null)return null;l=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,o,typeof l));return l}var Xf=!1;if(d)try{var zi={};Object.defineProperty(zi,"passive",{get:function(){Xf=!0}}),window.addEventListener("test",zi,zi),window.removeEventListener("test",zi,zi)}catch{Xf=!1}function ND(r,o,l,u,p,m,S,k,I){var D=Array.prototype.slice.call(arguments,3);try{o.apply(l,D)}catch(Y){this.onError(Y)}}var Ui=!1,fc=null,pc=!1,Jf=null,MD={onError:function(r){Ui=!0,fc=r}};function LD(r,o,l,u,p,m,S,k,I){Ui=!1,fc=null,ND.apply(MD,arguments)}function jD(r,o,l,u,p,m,S,k,I){if(LD.apply(this,arguments),Ui){if(Ui){var D=fc;Ui=!1,fc=null}else throw Error(n(198));pc||(pc=!0,Jf=D)}}function Ns(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,o.flags&4098&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function US(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function HS(r){if(Ns(r)!==r)throw Error(n(188))}function DD(r){var o=r.alternate;if(!o){if(o=Ns(r),o===null)throw Error(n(188));return o!==r?null:r}for(var l=r,u=o;;){var p=l.return;if(p===null)break;var m=p.alternate;if(m===null){if(u=p.return,u!==null){l=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===l)return HS(p),r;if(m===u)return HS(p),o;m=m.sibling}throw Error(n(188))}if(l.return!==u.return)l=p,u=m;else{for(var S=!1,k=p.child;k;){if(k===l){S=!0,l=p,u=m;break}if(k===u){S=!0,u=p,l=m;break}k=k.sibling}if(!S){for(k=m.child;k;){if(k===l){S=!0,l=m,u=p;break}if(k===u){S=!0,u=m,l=p;break}k=k.sibling}if(!S)throw Error(n(189))}}if(l.alternate!==u)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:o}function WS(r){return r=DD(r),r!==null?qS(r):null}function qS(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=qS(r);if(o!==null)return o;r=r.sibling}return null}var VS=t.unstable_scheduleCallback,GS=t.unstable_cancelCallback,$D=t.unstable_shouldYield,BD=t.unstable_requestPaint,at=t.unstable_now,FD=t.unstable_getCurrentPriorityLevel,Zf=t.unstable_ImmediatePriority,YS=t.unstable_UserBlockingPriority,hc=t.unstable_NormalPriority,zD=t.unstable_LowPriority,KS=t.unstable_IdlePriority,mc=null,Kn=null;function UD(r){if(Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(mc,r,void 0,(r.current.flags&128)===128)}catch{}}var On=Math.clz32?Math.clz32:qD,HD=Math.log,WD=Math.LN2;function qD(r){return r>>>=0,r===0?32:31-(HD(r)/WD|0)|0}var gc=64,yc=4194304;function Hi(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function vc(r,o){var l=r.pendingLanes;if(l===0)return 0;var u=0,p=r.suspendedLanes,m=r.pingedLanes,S=l&268435455;if(S!==0){var k=S&~p;k!==0?u=Hi(k):(m&=S,m!==0&&(u=Hi(m)))}else S=l&~p,S!==0?u=Hi(S):m!==0&&(u=Hi(m));if(u===0)return 0;if(o!==0&&o!==u&&!(o&p)&&(p=u&-u,m=o&-o,p>=m||p===16&&(m&4194240)!==0))return o;if(u&4&&(u|=l&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=u;0<o;)l=31-On(o),p=1<<l,u|=r[l],o&=~p;return u}function VD(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function GD(r,o){for(var l=r.suspendedLanes,u=r.pingedLanes,p=r.expirationTimes,m=r.pendingLanes;0<m;){var S=31-On(m),k=1<<S,I=p[S];I===-1?(!(k&l)||k&u)&&(p[S]=VD(k,o)):I<=o&&(r.expiredLanes|=k),m&=~k}}function ep(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function QS(){var r=gc;return gc<<=1,!(gc&4194240)&&(gc=64),r}function tp(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function Wi(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-On(o),r[o]=l}function YD(r,o){var l=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var u=r.eventTimes;for(r=r.expirationTimes;0<l;){var p=31-On(l),m=1<<p;o[p]=0,u[p]=-1,r[p]=-1,l&=~m}}function np(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var u=31-On(l),p=1<<u;p&o|r[u]&o&&(r[u]|=o),l&=~p}}var He=0;function XS(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var JS,rp,ZS,ew,tw,sp=!1,Sc=[],zr=null,Ur=null,Hr=null,qi=new Map,Vi=new Map,Wr=[],KD="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nw(r,o){switch(r){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Hr=null;break;case"pointerover":case"pointerout":qi.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vi.delete(o.pointerId)}}function Gi(r,o,l,u,p,m){return r===null||r.nativeEvent!==m?(r={blockedOn:o,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},o!==null&&(o=aa(o),o!==null&&rp(o)),r):(r.eventSystemFlags|=u,o=r.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),r)}function QD(r,o,l,u,p){switch(o){case"focusin":return zr=Gi(zr,r,o,l,u,p),!0;case"dragenter":return Ur=Gi(Ur,r,o,l,u,p),!0;case"mouseover":return Hr=Gi(Hr,r,o,l,u,p),!0;case"pointerover":var m=p.pointerId;return qi.set(m,Gi(qi.get(m)||null,r,o,l,u,p)),!0;case"gotpointercapture":return m=p.pointerId,Vi.set(m,Gi(Vi.get(m)||null,r,o,l,u,p)),!0}return!1}function rw(r){var o=Ms(r.target);if(o!==null){var l=Ns(o);if(l!==null){if(o=l.tag,o===13){if(o=US(l),o!==null){r.blockedOn=o,tw(r.priority,function(){ZS(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function wc(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=ip(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);Gf=u,l.target.dispatchEvent(u),Gf=null}else return o=aa(l),o!==null&&rp(o),r.blockedOn=l,!1;o.shift()}return!0}function sw(r,o,l){wc(r)&&l.delete(o)}function XD(){sp=!1,zr!==null&&wc(zr)&&(zr=null),Ur!==null&&wc(Ur)&&(Ur=null),Hr!==null&&wc(Hr)&&(Hr=null),qi.forEach(sw),Vi.forEach(sw)}function Yi(r,o){r.blockedOn===o&&(r.blockedOn=null,sp||(sp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,XD)))}function Ki(r){function o(p){return Yi(p,r)}if(0<Sc.length){Yi(Sc[0],r);for(var l=1;l<Sc.length;l++){var u=Sc[l];u.blockedOn===r&&(u.blockedOn=null)}}for(zr!==null&&Yi(zr,r),Ur!==null&&Yi(Ur,r),Hr!==null&&Yi(Hr,r),qi.forEach(o),Vi.forEach(o),l=0;l<Wr.length;l++)u=Wr[l],u.blockedOn===r&&(u.blockedOn=null);for(;0<Wr.length&&(l=Wr[0],l.blockedOn===null);)rw(l),l.blockedOn===null&&Wr.shift()}var No=K.ReactCurrentBatchConfig,_c=!0;function JD(r,o,l,u){var p=He,m=No.transition;No.transition=null;try{He=1,op(r,o,l,u)}finally{He=p,No.transition=m}}function ZD(r,o,l,u){var p=He,m=No.transition;No.transition=null;try{He=4,op(r,o,l,u)}finally{He=p,No.transition=m}}function op(r,o,l,u){if(_c){var p=ip(r,o,l,u);if(p===null)xp(r,o,u,Ec,l),nw(r,u);else if(QD(p,r,o,l,u))u.stopPropagation();else if(nw(r,u),o&4&&-1<KD.indexOf(r)){for(;p!==null;){var m=aa(p);if(m!==null&&JS(m),m=ip(r,o,l,u),m===null&&xp(r,o,u,Ec,l),m===p)break;p=m}p!==null&&u.stopPropagation()}else xp(r,o,u,null,l)}}var Ec=null;function ip(r,o,l,u){if(Ec=null,r=Yf(u),r=Ms(r),r!==null)if(o=Ns(r),o===null)r=null;else if(l=o.tag,l===13){if(r=US(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return Ec=r,null}function ow(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(FD()){case Zf:return 1;case YS:return 4;case hc:case zD:return 16;case KS:return 536870912;default:return 16}default:return 16}}var qr=null,ap=null,xc=null;function iw(){if(xc)return xc;var r,o=ap,l=o.length,u,p="value"in qr?qr.value:qr.textContent,m=p.length;for(r=0;r<l&&o[r]===p[r];r++);var S=l-r;for(u=1;u<=S&&o[l-u]===p[m-u];u++);return xc=p.slice(r,1<u?1-u:void 0)}function Tc(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function kc(){return!0}function aw(){return!1}function ln(r){function o(l,u,p,m,S){this._reactName=l,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var k in r)r.hasOwnProperty(k)&&(l=r[k],this[k]=l?l(m):m[k]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?kc:aw,this.isPropagationStopped=aw,this}return ne(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=kc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=kc)},persist:function(){},isPersistent:kc}),o}var Mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lp=ln(Mo),Qi=ne({},Mo,{view:0,detail:0}),e$=ln(Qi),cp,up,Xi,Ic=ne({},Qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fp,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Xi&&(Xi&&r.type==="mousemove"?(cp=r.screenX-Xi.screenX,up=r.screenY-Xi.screenY):up=cp=0,Xi=r),cp)},movementY:function(r){return"movementY"in r?r.movementY:up}}),lw=ln(Ic),t$=ne({},Ic,{dataTransfer:0}),n$=ln(t$),r$=ne({},Qi,{relatedTarget:0}),dp=ln(r$),s$=ne({},Mo,{animationName:0,elapsedTime:0,pseudoElement:0}),o$=ln(s$),i$=ne({},Mo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),a$=ln(i$),l$=ne({},Mo,{data:0}),cw=ln(l$),c$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},d$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f$(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=d$[r])?!!o[r]:!1}function fp(){return f$}var p$=ne({},Qi,{key:function(r){if(r.key){var o=c$[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Tc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?u$[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fp,charCode:function(r){return r.type==="keypress"?Tc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Tc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),h$=ln(p$),m$=ne({},Ic,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uw=ln(m$),g$=ne({},Qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fp}),y$=ln(g$),v$=ne({},Mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),S$=ln(v$),w$=ne({},Ic,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),_$=ln(w$),E$=[9,13,27,32],pp=d&&"CompositionEvent"in window,Ji=null;d&&"documentMode"in document&&(Ji=document.documentMode);var x$=d&&"TextEvent"in window&&!Ji,dw=d&&(!pp||Ji&&8<Ji&&11>=Ji),fw=" ",pw=!1;function hw(r,o){switch(r){case"keyup":return E$.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mw(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Lo=!1;function T$(r,o){switch(r){case"compositionend":return mw(o);case"keypress":return o.which!==32?null:(pw=!0,fw);case"textInput":return r=o.data,r===fw&&pw?null:r;default:return null}}function k$(r,o){if(Lo)return r==="compositionend"||!pp&&hw(r,o)?(r=iw(),xc=ap=qr=null,Lo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return dw&&o.locale!=="ko"?null:o.data;default:return null}}var I$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gw(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!I$[r.type]:o==="textarea"}function yw(r,o,l,u){DS(u),o=Oc(o,"onChange"),0<o.length&&(l=new lp("onChange","change",null,l,u),r.push({event:l,listeners:o}))}var Zi=null,ea=null;function b$(r){Lw(r,0)}function bc(r){var o=Fo(r);if(cc(o))return r}function C$(r,o){if(r==="change")return o}var vw=!1;if(d){var hp;if(d){var mp="oninput"in document;if(!mp){var Sw=document.createElement("div");Sw.setAttribute("oninput","return;"),mp=typeof Sw.oninput=="function"}hp=mp}else hp=!1;vw=hp&&(!document.documentMode||9<document.documentMode)}function ww(){Zi&&(Zi.detachEvent("onpropertychange",_w),ea=Zi=null)}function _w(r){if(r.propertyName==="value"&&bc(ea)){var o=[];yw(o,ea,r,Yf(r)),zS(b$,o)}}function R$(r,o,l){r==="focusin"?(ww(),Zi=o,ea=l,Zi.attachEvent("onpropertychange",_w)):r==="focusout"&&ww()}function A$(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return bc(ea)}function O$(r,o){if(r==="click")return bc(o)}function P$(r,o){if(r==="input"||r==="change")return bc(o)}function N$(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Pn=typeof Object.is=="function"?Object.is:N$;function ta(r,o){if(Pn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),u=Object.keys(o);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var p=l[u];if(!f.call(o,p)||!Pn(r[p],o[p]))return!1}return!0}function Ew(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function xw(r,o){var l=Ew(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=o&&u>=o)return{node:l,offset:o-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ew(l)}}function Tw(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?Tw(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function kw(){for(var r=window,o=Ro();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=Ro(r.document)}return o}function gp(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function M$(r){var o=kw(),l=r.focusedElem,u=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&Tw(l.ownerDocument.documentElement,l)){if(u!==null&&gp(l)){if(o=u.start,r=u.end,r===void 0&&(r=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(r,l.value.length);else if(r=(o=l.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var p=l.textContent.length,m=Math.min(u.start,p);u=u.end===void 0?m:Math.min(u.end,p),!r.extend&&m>u&&(p=u,u=m,m=p),p=xw(l,m);var S=xw(l,u);p&&S&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==S.node||r.focusOffset!==S.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),r.removeAllRanges(),m>u?(r.addRange(o),r.extend(S.node,S.offset)):(o.setEnd(S.node,S.offset),r.addRange(o)))}}for(o=[],r=l;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)r=o[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var L$=d&&"documentMode"in document&&11>=document.documentMode,jo=null,yp=null,na=null,vp=!1;function Iw(r,o,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;vp||jo==null||jo!==Ro(u)||(u=jo,"selectionStart"in u&&gp(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),na&&ta(na,u)||(na=u,u=Oc(yp,"onSelect"),0<u.length&&(o=new lp("onSelect","select",null,o,l),r.push({event:o,listeners:u}),o.target=jo)))}function Cc(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var Do={animationend:Cc("Animation","AnimationEnd"),animationiteration:Cc("Animation","AnimationIteration"),animationstart:Cc("Animation","AnimationStart"),transitionend:Cc("Transition","TransitionEnd")},Sp={},bw={};d&&(bw=document.createElement("div").style,"AnimationEvent"in window||(delete Do.animationend.animation,delete Do.animationiteration.animation,delete Do.animationstart.animation),"TransitionEvent"in window||delete Do.transitionend.transition);function Rc(r){if(Sp[r])return Sp[r];if(!Do[r])return r;var o=Do[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in bw)return Sp[r]=o[l];return r}var Cw=Rc("animationend"),Rw=Rc("animationiteration"),Aw=Rc("animationstart"),Ow=Rc("transitionend"),Pw=new Map,Nw="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Vr(r,o){Pw.set(r,o),a(o,[r])}for(var wp=0;wp<Nw.length;wp++){var _p=Nw[wp],j$=_p.toLowerCase(),D$=_p[0].toUpperCase()+_p.slice(1);Vr(j$,"on"+D$)}Vr(Cw,"onAnimationEnd"),Vr(Rw,"onAnimationIteration"),Vr(Aw,"onAnimationStart"),Vr("dblclick","onDoubleClick"),Vr("focusin","onFocus"),Vr("focusout","onBlur"),Vr(Ow,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ra="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$$=new Set("cancel close invalid load scroll toggle".split(" ").concat(ra));function Mw(r,o,l){var u=r.type||"unknown-event";r.currentTarget=l,jD(u,o,void 0,r),r.currentTarget=null}function Lw(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],p=u.event;u=u.listeners;e:{var m=void 0;if(o)for(var S=u.length-1;0<=S;S--){var k=u[S],I=k.instance,D=k.currentTarget;if(k=k.listener,I!==m&&p.isPropagationStopped())break e;Mw(p,k,D),m=I}else for(S=0;S<u.length;S++){if(k=u[S],I=k.instance,D=k.currentTarget,k=k.listener,I!==m&&p.isPropagationStopped())break e;Mw(p,k,D),m=I}}}if(pc)throw r=Jf,pc=!1,Jf=null,r}function Qe(r,o){var l=o[Rp];l===void 0&&(l=o[Rp]=new Set);var u=r+"__bubble";l.has(u)||(jw(o,r,2,!1),l.add(u))}function Ep(r,o,l){var u=0;o&&(u|=4),jw(l,r,u,o)}var Ac="_reactListening"+Math.random().toString(36).slice(2);function sa(r){if(!r[Ac]){r[Ac]=!0,s.forEach(function(l){l!=="selectionchange"&&($$.has(l)||Ep(l,!1,r),Ep(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Ac]||(o[Ac]=!0,Ep("selectionchange",!1,o))}}function jw(r,o,l,u){switch(ow(o)){case 1:var p=JD;break;case 4:p=ZD;break;default:p=op}l=p.bind(null,o,l,r),p=void 0,!Xf||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),u?p!==void 0?r.addEventListener(o,l,{capture:!0,passive:p}):r.addEventListener(o,l,!0):p!==void 0?r.addEventListener(o,l,{passive:p}):r.addEventListener(o,l,!1)}function xp(r,o,l,u,p){var m=u;if(!(o&1)&&!(o&2)&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var k=u.stateNode.containerInfo;if(k===p||k.nodeType===8&&k.parentNode===p)break;if(S===4)for(S=u.return;S!==null;){var I=S.tag;if((I===3||I===4)&&(I=S.stateNode.containerInfo,I===p||I.nodeType===8&&I.parentNode===p))return;S=S.return}for(;k!==null;){if(S=Ms(k),S===null)return;if(I=S.tag,I===5||I===6){u=m=S;continue e}k=k.parentNode}}u=u.return}zS(function(){var D=m,Y=Yf(l),Q=[];e:{var G=Pw.get(r);if(G!==void 0){var re=lp,ae=r;switch(r){case"keypress":if(Tc(l)===0)break e;case"keydown":case"keyup":re=h$;break;case"focusin":ae="focus",re=dp;break;case"focusout":ae="blur",re=dp;break;case"beforeblur":case"afterblur":re=dp;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=lw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=n$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=y$;break;case Cw:case Rw:case Aw:re=o$;break;case Ow:re=S$;break;case"scroll":re=e$;break;case"wheel":re=_$;break;case"copy":case"cut":case"paste":re=a$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=uw}var le=(o&4)!==0,lt=!le&&r==="scroll",N=le?G!==null?G+"Capture":null:G;le=[];for(var b=D,M;b!==null;){M=b;var X=M.stateNode;if(M.tag===5&&X!==null&&(M=X,N!==null&&(X=Fi(b,N),X!=null&&le.push(oa(b,X,M)))),lt)break;b=b.return}0<le.length&&(G=new re(G,ae,null,l,Y),Q.push({event:G,listeners:le}))}}if(!(o&7)){e:{if(G=r==="mouseover"||r==="pointerover",re=r==="mouseout"||r==="pointerout",G&&l!==Gf&&(ae=l.relatedTarget||l.fromElement)&&(Ms(ae)||ae[dr]))break e;if((re||G)&&(G=Y.window===Y?Y:(G=Y.ownerDocument)?G.defaultView||G.parentWindow:window,re?(ae=l.relatedTarget||l.toElement,re=D,ae=ae?Ms(ae):null,ae!==null&&(lt=Ns(ae),ae!==lt||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(re=null,ae=D),re!==ae)){if(le=lw,X="onMouseLeave",N="onMouseEnter",b="mouse",(r==="pointerout"||r==="pointerover")&&(le=uw,X="onPointerLeave",N="onPointerEnter",b="pointer"),lt=re==null?G:Fo(re),M=ae==null?G:Fo(ae),G=new le(X,b+"leave",re,l,Y),G.target=lt,G.relatedTarget=M,X=null,Ms(Y)===D&&(le=new le(N,b+"enter",ae,l,Y),le.target=M,le.relatedTarget=lt,X=le),lt=X,re&&ae)t:{for(le=re,N=ae,b=0,M=le;M;M=$o(M))b++;for(M=0,X=N;X;X=$o(X))M++;for(;0<b-M;)le=$o(le),b--;for(;0<M-b;)N=$o(N),M--;for(;b--;){if(le===N||N!==null&&le===N.alternate)break t;le=$o(le),N=$o(N)}le=null}else le=null;re!==null&&Dw(Q,G,re,le,!1),ae!==null&&lt!==null&&Dw(Q,lt,ae,le,!0)}}e:{if(G=D?Fo(D):window,re=G.nodeName&&G.nodeName.toLowerCase(),re==="select"||re==="input"&&G.type==="file")var ce=C$;else if(gw(G))if(vw)ce=P$;else{ce=A$;var de=R$}else(re=G.nodeName)&&re.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(ce=O$);if(ce&&(ce=ce(r,D))){yw(Q,ce,l,Y);break e}de&&de(r,G,D),r==="focusout"&&(de=G._wrapperState)&&de.controlled&&G.type==="number"&&Ps(G,"number",G.value)}switch(de=D?Fo(D):window,r){case"focusin":(gw(de)||de.contentEditable==="true")&&(jo=de,yp=D,na=null);break;case"focusout":na=yp=jo=null;break;case"mousedown":vp=!0;break;case"contextmenu":case"mouseup":case"dragend":vp=!1,Iw(Q,l,Y);break;case"selectionchange":if(L$)break;case"keydown":case"keyup":Iw(Q,l,Y)}var fe;if(pp)e:{switch(r){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Lo?hw(r,l)&&(ye="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(dw&&l.locale!=="ko"&&(Lo||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Lo&&(fe=iw()):(qr=Y,ap="value"in qr?qr.value:qr.textContent,Lo=!0)),de=Oc(D,ye),0<de.length&&(ye=new cw(ye,r,null,l,Y),Q.push({event:ye,listeners:de}),fe?ye.data=fe:(fe=mw(l),fe!==null&&(ye.data=fe)))),(fe=x$?T$(r,l):k$(r,l))&&(D=Oc(D,"onBeforeInput"),0<D.length&&(Y=new cw("onBeforeInput","beforeinput",null,l,Y),Q.push({event:Y,listeners:D}),Y.data=fe))}Lw(Q,o)})}function oa(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Oc(r,o){for(var l=o+"Capture",u=[];r!==null;){var p=r,m=p.stateNode;p.tag===5&&m!==null&&(p=m,m=Fi(r,l),m!=null&&u.unshift(oa(r,m,p)),m=Fi(r,o),m!=null&&u.push(oa(r,m,p))),r=r.return}return u}function $o(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Dw(r,o,l,u,p){for(var m=o._reactName,S=[];l!==null&&l!==u;){var k=l,I=k.alternate,D=k.stateNode;if(I!==null&&I===u)break;k.tag===5&&D!==null&&(k=D,p?(I=Fi(l,m),I!=null&&S.unshift(oa(l,I,k))):p||(I=Fi(l,m),I!=null&&S.push(oa(l,I,k)))),l=l.return}S.length!==0&&r.push({event:o,listeners:S})}var B$=/\r\n?/g,F$=/\u0000|\uFFFD/g;function $w(r){return(typeof r=="string"?r:""+r).replace(B$,`
`).replace(F$,"")}function Pc(r,o,l){if(o=$w(o),$w(r)!==o&&l)throw Error(n(425))}function Nc(){}var Tp=null,kp=null;function Ip(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var bp=typeof setTimeout=="function"?setTimeout:void 0,z$=typeof clearTimeout=="function"?clearTimeout:void 0,Bw=typeof Promise=="function"?Promise:void 0,U$=typeof queueMicrotask=="function"?queueMicrotask:typeof Bw<"u"?function(r){return Bw.resolve(null).then(r).catch(H$)}:bp;function H$(r){setTimeout(function(){throw r})}function Cp(r,o){var l=o,u=0;do{var p=l.nextSibling;if(r.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(u===0){r.removeChild(p),Ki(o);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=p}while(l);Ki(o)}function Gr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function Fw(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return r;o--}else l==="/$"&&o++}r=r.previousSibling}return null}var Bo=Math.random().toString(36).slice(2),Qn="__reactFiber$"+Bo,ia="__reactProps$"+Bo,dr="__reactContainer$"+Bo,Rp="__reactEvents$"+Bo,W$="__reactListeners$"+Bo,q$="__reactHandles$"+Bo;function Ms(r){var o=r[Qn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[dr]||l[Qn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=Fw(r);r!==null;){if(l=r[Qn])return l;r=Fw(r)}return o}r=l,l=r.parentNode}return null}function aa(r){return r=r[Qn]||r[dr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Fo(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Mc(r){return r[ia]||null}var Ap=[],zo=-1;function Yr(r){return{current:r}}function Xe(r){0>zo||(r.current=Ap[zo],Ap[zo]=null,zo--)}function Ke(r,o){zo++,Ap[zo]=r.current,r.current=o}var Kr={},Ot=Yr(Kr),Jt=Yr(!1),Ls=Kr;function Uo(r,o){var l=r.type.contextTypes;if(!l)return Kr;var u=r.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var p={},m;for(m in l)p[m]=o[m];return u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=p),p}function Zt(r){return r=r.childContextTypes,r!=null}function Lc(){Xe(Jt),Xe(Ot)}function zw(r,o,l){if(Ot.current!==Kr)throw Error(n(168));Ke(Ot,o),Ke(Jt,l)}function Uw(r,o,l){var u=r.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var p in u)if(!(p in o))throw Error(n(108,Ue(r)||"Unknown",p));return ne({},l,u)}function jc(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Kr,Ls=Ot.current,Ke(Ot,r),Ke(Jt,Jt.current),!0}function Hw(r,o,l){var u=r.stateNode;if(!u)throw Error(n(169));l?(r=Uw(r,o,Ls),u.__reactInternalMemoizedMergedChildContext=r,Xe(Jt),Xe(Ot),Ke(Ot,r)):Xe(Jt),Ke(Jt,l)}var fr=null,Dc=!1,Op=!1;function Ww(r){fr===null?fr=[r]:fr.push(r)}function V$(r){Dc=!0,Ww(r)}function Qr(){if(!Op&&fr!==null){Op=!0;var r=0,o=He;try{var l=fr;for(He=1;r<l.length;r++){var u=l[r];do u=u(!0);while(u!==null)}fr=null,Dc=!1}catch(p){throw fr!==null&&(fr=fr.slice(r+1)),VS(Zf,Qr),p}finally{He=o,Op=!1}}return null}var Ho=[],Wo=0,$c=null,Bc=0,mn=[],gn=0,js=null,pr=1,hr="";function Ds(r,o){Ho[Wo++]=Bc,Ho[Wo++]=$c,$c=r,Bc=o}function qw(r,o,l){mn[gn++]=pr,mn[gn++]=hr,mn[gn++]=js,js=r;var u=pr;r=hr;var p=32-On(u)-1;u&=~(1<<p),l+=1;var m=32-On(o)+p;if(30<m){var S=p-p%5;m=(u&(1<<S)-1).toString(32),u>>=S,p-=S,pr=1<<32-On(o)+p|l<<p|u,hr=m+r}else pr=1<<m|l<<p|u,hr=r}function Pp(r){r.return!==null&&(Ds(r,1),qw(r,1,0))}function Np(r){for(;r===$c;)$c=Ho[--Wo],Ho[Wo]=null,Bc=Ho[--Wo],Ho[Wo]=null;for(;r===js;)js=mn[--gn],mn[gn]=null,hr=mn[--gn],mn[gn]=null,pr=mn[--gn],mn[gn]=null}var cn=null,un=null,Ze=!1,Nn=null;function Vw(r,o){var l=wn(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=r,o=r.deletions,o===null?(r.deletions=[l],r.flags|=16):o.push(l)}function Gw(r,o){switch(r.tag){case 5:var l=r.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,cn=r,un=Gr(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,cn=r,un=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=js!==null?{id:pr,overflow:hr}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=wn(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,cn=r,un=null,!0):!1;default:return!1}}function Mp(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Lp(r){if(Ze){var o=un;if(o){var l=o;if(!Gw(r,o)){if(Mp(r))throw Error(n(418));o=Gr(l.nextSibling);var u=cn;o&&Gw(r,o)?Vw(u,l):(r.flags=r.flags&-4097|2,Ze=!1,cn=r)}}else{if(Mp(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ze=!1,cn=r}}}function Yw(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;cn=r}function Fc(r){if(r!==cn)return!1;if(!Ze)return Yw(r),Ze=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Ip(r.type,r.memoizedProps)),o&&(o=un)){if(Mp(r))throw Kw(),Error(n(418));for(;o;)Vw(r,o),o=Gr(o.nextSibling)}if(Yw(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(o===0){un=Gr(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}un=null}}else un=cn?Gr(r.stateNode.nextSibling):null;return!0}function Kw(){for(var r=un;r;)r=Gr(r.nextSibling)}function qo(){un=cn=null,Ze=!1}function jp(r){Nn===null?Nn=[r]:Nn.push(r)}var G$=K.ReactCurrentBatchConfig;function la(r,o,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var u=l.stateNode}if(!u)throw Error(n(147,r));var p=u,m=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(S){var k=p.refs;S===null?delete k[m]:k[m]=S},o._stringRef=m,o)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function zc(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Qw(r){var o=r._init;return o(r._payload)}function Xw(r){function o(N,b){if(r){var M=N.deletions;M===null?(N.deletions=[b],N.flags|=16):M.push(b)}}function l(N,b){if(!r)return null;for(;b!==null;)o(N,b),b=b.sibling;return null}function u(N,b){for(N=new Map;b!==null;)b.key!==null?N.set(b.key,b):N.set(b.index,b),b=b.sibling;return N}function p(N,b){return N=ss(N,b),N.index=0,N.sibling=null,N}function m(N,b,M){return N.index=M,r?(M=N.alternate,M!==null?(M=M.index,M<b?(N.flags|=2,b):M):(N.flags|=2,b)):(N.flags|=1048576,b)}function S(N){return r&&N.alternate===null&&(N.flags|=2),N}function k(N,b,M,X){return b===null||b.tag!==6?(b=bh(M,N.mode,X),b.return=N,b):(b=p(b,M),b.return=N,b)}function I(N,b,M,X){var ce=M.type;return ce===C?Y(N,b,M.props.children,X,M.key):b!==null&&(b.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===te&&Qw(ce)===b.type)?(X=p(b,M.props),X.ref=la(N,b,M),X.return=N,X):(X=du(M.type,M.key,M.props,null,N.mode,X),X.ref=la(N,b,M),X.return=N,X)}function D(N,b,M,X){return b===null||b.tag!==4||b.stateNode.containerInfo!==M.containerInfo||b.stateNode.implementation!==M.implementation?(b=Ch(M,N.mode,X),b.return=N,b):(b=p(b,M.children||[]),b.return=N,b)}function Y(N,b,M,X,ce){return b===null||b.tag!==7?(b=qs(M,N.mode,X,ce),b.return=N,b):(b=p(b,M),b.return=N,b)}function Q(N,b,M){if(typeof b=="string"&&b!==""||typeof b=="number")return b=bh(""+b,N.mode,M),b.return=N,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case H:return M=du(b.type,b.key,b.props,null,N.mode,M),M.ref=la(N,null,b),M.return=N,M;case O:return b=Ch(b,N.mode,M),b.return=N,b;case te:var X=b._init;return Q(N,X(b._payload),M)}if(Ae(b)||oe(b))return b=qs(b,N.mode,M,null),b.return=N,b;zc(N,b)}return null}function G(N,b,M,X){var ce=b!==null?b.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ce!==null?null:k(N,b,""+M,X);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case H:return M.key===ce?I(N,b,M,X):null;case O:return M.key===ce?D(N,b,M,X):null;case te:return ce=M._init,G(N,b,ce(M._payload),X)}if(Ae(M)||oe(M))return ce!==null?null:Y(N,b,M,X,null);zc(N,M)}return null}function re(N,b,M,X,ce){if(typeof X=="string"&&X!==""||typeof X=="number")return N=N.get(M)||null,k(b,N,""+X,ce);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case H:return N=N.get(X.key===null?M:X.key)||null,I(b,N,X,ce);case O:return N=N.get(X.key===null?M:X.key)||null,D(b,N,X,ce);case te:var de=X._init;return re(N,b,M,de(X._payload),ce)}if(Ae(X)||oe(X))return N=N.get(M)||null,Y(b,N,X,ce,null);zc(b,X)}return null}function ae(N,b,M,X){for(var ce=null,de=null,fe=b,ye=b=0,xt=null;fe!==null&&ye<M.length;ye++){fe.index>ye?(xt=fe,fe=null):xt=fe.sibling;var ze=G(N,fe,M[ye],X);if(ze===null){fe===null&&(fe=xt);break}r&&fe&&ze.alternate===null&&o(N,fe),b=m(ze,b,ye),de===null?ce=ze:de.sibling=ze,de=ze,fe=xt}if(ye===M.length)return l(N,fe),Ze&&Ds(N,ye),ce;if(fe===null){for(;ye<M.length;ye++)fe=Q(N,M[ye],X),fe!==null&&(b=m(fe,b,ye),de===null?ce=fe:de.sibling=fe,de=fe);return Ze&&Ds(N,ye),ce}for(fe=u(N,fe);ye<M.length;ye++)xt=re(fe,N,ye,M[ye],X),xt!==null&&(r&&xt.alternate!==null&&fe.delete(xt.key===null?ye:xt.key),b=m(xt,b,ye),de===null?ce=xt:de.sibling=xt,de=xt);return r&&fe.forEach(function(os){return o(N,os)}),Ze&&Ds(N,ye),ce}function le(N,b,M,X){var ce=oe(M);if(typeof ce!="function")throw Error(n(150));if(M=ce.call(M),M==null)throw Error(n(151));for(var de=ce=null,fe=b,ye=b=0,xt=null,ze=M.next();fe!==null&&!ze.done;ye++,ze=M.next()){fe.index>ye?(xt=fe,fe=null):xt=fe.sibling;var os=G(N,fe,ze.value,X);if(os===null){fe===null&&(fe=xt);break}r&&fe&&os.alternate===null&&o(N,fe),b=m(os,b,ye),de===null?ce=os:de.sibling=os,de=os,fe=xt}if(ze.done)return l(N,fe),Ze&&Ds(N,ye),ce;if(fe===null){for(;!ze.done;ye++,ze=M.next())ze=Q(N,ze.value,X),ze!==null&&(b=m(ze,b,ye),de===null?ce=ze:de.sibling=ze,de=ze);return Ze&&Ds(N,ye),ce}for(fe=u(N,fe);!ze.done;ye++,ze=M.next())ze=re(fe,N,ye,ze.value,X),ze!==null&&(r&&ze.alternate!==null&&fe.delete(ze.key===null?ye:ze.key),b=m(ze,b,ye),de===null?ce=ze:de.sibling=ze,de=ze);return r&&fe.forEach(function(I8){return o(N,I8)}),Ze&&Ds(N,ye),ce}function lt(N,b,M,X){if(typeof M=="object"&&M!==null&&M.type===C&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case H:e:{for(var ce=M.key,de=b;de!==null;){if(de.key===ce){if(ce=M.type,ce===C){if(de.tag===7){l(N,de.sibling),b=p(de,M.props.children),b.return=N,N=b;break e}}else if(de.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===te&&Qw(ce)===de.type){l(N,de.sibling),b=p(de,M.props),b.ref=la(N,de,M),b.return=N,N=b;break e}l(N,de);break}else o(N,de);de=de.sibling}M.type===C?(b=qs(M.props.children,N.mode,X,M.key),b.return=N,N=b):(X=du(M.type,M.key,M.props,null,N.mode,X),X.ref=la(N,b,M),X.return=N,N=X)}return S(N);case O:e:{for(de=M.key;b!==null;){if(b.key===de)if(b.tag===4&&b.stateNode.containerInfo===M.containerInfo&&b.stateNode.implementation===M.implementation){l(N,b.sibling),b=p(b,M.children||[]),b.return=N,N=b;break e}else{l(N,b);break}else o(N,b);b=b.sibling}b=Ch(M,N.mode,X),b.return=N,N=b}return S(N);case te:return de=M._init,lt(N,b,de(M._payload),X)}if(Ae(M))return ae(N,b,M,X);if(oe(M))return le(N,b,M,X);zc(N,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,b!==null&&b.tag===6?(l(N,b.sibling),b=p(b,M),b.return=N,N=b):(l(N,b),b=bh(M,N.mode,X),b.return=N,N=b),S(N)):l(N,b)}return lt}var Vo=Xw(!0),Jw=Xw(!1),Uc=Yr(null),Hc=null,Go=null,Dp=null;function $p(){Dp=Go=Hc=null}function Bp(r){var o=Uc.current;Xe(Uc),r._currentValue=o}function Fp(r,o,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),r===l)break;r=r.return}}function Yo(r,o){Hc=r,Dp=Go=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&o&&(en=!0),r.firstContext=null)}function yn(r){var o=r._currentValue;if(Dp!==r)if(r={context:r,memoizedValue:o,next:null},Go===null){if(Hc===null)throw Error(n(308));Go=r,Hc.dependencies={lanes:0,firstContext:r}}else Go=Go.next=r;return o}var $s=null;function zp(r){$s===null?$s=[r]:$s.push(r)}function Zw(r,o,l,u){var p=o.interleaved;return p===null?(l.next=l,zp(o)):(l.next=p.next,p.next=l),o.interleaved=l,mr(r,u)}function mr(r,o){r.lanes|=o;var l=r.alternate;for(l!==null&&(l.lanes|=o),l=r,r=r.return;r!==null;)r.childLanes|=o,l=r.alternate,l!==null&&(l.childLanes|=o),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Xr=!1;function Up(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e_(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function gr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Jr(r,o,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,Be&2){var p=u.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),u.pending=o,mr(r,l)}return p=u.interleaved,p===null?(o.next=o,zp(u)):(o.next=p.next,p.next=o),u.interleaved=o,mr(r,l)}function Wc(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var u=o.lanes;u&=r.pendingLanes,l|=u,o.lanes=l,np(r,l)}}function t_(r,o){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var p=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var S={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?p=m=S:m=m.next=S,l=l.next}while(l!==null);m===null?p=m=o:m=m.next=o}else p=m=o;l={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:u.shared,effects:u.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}function qc(r,o,l,u){var p=r.updateQueue;Xr=!1;var m=p.firstBaseUpdate,S=p.lastBaseUpdate,k=p.shared.pending;if(k!==null){p.shared.pending=null;var I=k,D=I.next;I.next=null,S===null?m=D:S.next=D,S=I;var Y=r.alternate;Y!==null&&(Y=Y.updateQueue,k=Y.lastBaseUpdate,k!==S&&(k===null?Y.firstBaseUpdate=D:k.next=D,Y.lastBaseUpdate=I))}if(m!==null){var Q=p.baseState;S=0,Y=D=I=null,k=m;do{var G=k.lane,re=k.eventTime;if((u&G)===G){Y!==null&&(Y=Y.next={eventTime:re,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var ae=r,le=k;switch(G=o,re=l,le.tag){case 1:if(ae=le.payload,typeof ae=="function"){Q=ae.call(re,Q,G);break e}Q=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=le.payload,G=typeof ae=="function"?ae.call(re,Q,G):ae,G==null)break e;Q=ne({},Q,G);break e;case 2:Xr=!0}}k.callback!==null&&k.lane!==0&&(r.flags|=64,G=p.effects,G===null?p.effects=[k]:G.push(k))}else re={eventTime:re,lane:G,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Y===null?(D=Y=re,I=Q):Y=Y.next=re,S|=G;if(k=k.next,k===null){if(k=p.shared.pending,k===null)break;G=k,k=G.next,G.next=null,p.lastBaseUpdate=G,p.shared.pending=null}}while(!0);if(Y===null&&(I=Q),p.baseState=I,p.firstBaseUpdate=D,p.lastBaseUpdate=Y,o=p.shared.interleaved,o!==null){p=o;do S|=p.lane,p=p.next;while(p!==o)}else m===null&&(p.shared.lanes=0);zs|=S,r.lanes=S,r.memoizedState=Q}}function n_(r,o,l){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var u=r[o],p=u.callback;if(p!==null){if(u.callback=null,u=l,typeof p!="function")throw Error(n(191,p));p.call(u)}}}var ca={},Xn=Yr(ca),ua=Yr(ca),da=Yr(ca);function Bs(r){if(r===ca)throw Error(n(174));return r}function Hp(r,o){switch(Ke(da,o),Ke(ua,r),Ke(Xn,ca),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Wf(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=Wf(o,r)}Xe(Xn),Ke(Xn,o)}function Ko(){Xe(Xn),Xe(ua),Xe(da)}function r_(r){Bs(da.current);var o=Bs(Xn.current),l=Wf(o,r.type);o!==l&&(Ke(ua,r),Ke(Xn,l))}function Wp(r){ua.current===r&&(Xe(Xn),Xe(ua))}var et=Yr(0);function Vc(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var qp=[];function Vp(){for(var r=0;r<qp.length;r++)qp[r]._workInProgressVersionPrimary=null;qp.length=0}var Gc=K.ReactCurrentDispatcher,Gp=K.ReactCurrentBatchConfig,Fs=0,tt=null,ht=null,_t=null,Yc=!1,fa=!1,pa=0,Y$=0;function Pt(){throw Error(n(321))}function Yp(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!Pn(r[l],o[l]))return!1;return!0}function Kp(r,o,l,u,p,m){if(Fs=m,tt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Gc.current=r===null||r.memoizedState===null?J$:Z$,r=l(u,p),fa){m=0;do{if(fa=!1,pa=0,25<=m)throw Error(n(301));m+=1,_t=ht=null,o.updateQueue=null,Gc.current=e8,r=l(u,p)}while(fa)}if(Gc.current=Xc,o=ht!==null&&ht.next!==null,Fs=0,_t=ht=tt=null,Yc=!1,o)throw Error(n(300));return r}function Qp(){var r=pa!==0;return pa=0,r}function Jn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?tt.memoizedState=_t=r:_t=_t.next=r,_t}function vn(){if(ht===null){var r=tt.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var o=_t===null?tt.memoizedState:_t.next;if(o!==null)_t=o,ht=r;else{if(r===null)throw Error(n(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},_t===null?tt.memoizedState=_t=r:_t=_t.next=r}return _t}function ha(r,o){return typeof o=="function"?o(r):o}function Xp(r){var o=vn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var u=ht,p=u.baseQueue,m=l.pending;if(m!==null){if(p!==null){var S=p.next;p.next=m.next,m.next=S}u.baseQueue=p=m,l.pending=null}if(p!==null){m=p.next,u=u.baseState;var k=S=null,I=null,D=m;do{var Y=D.lane;if((Fs&Y)===Y)I!==null&&(I=I.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),u=D.hasEagerState?D.eagerState:r(u,D.action);else{var Q={lane:Y,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};I===null?(k=I=Q,S=u):I=I.next=Q,tt.lanes|=Y,zs|=Y}D=D.next}while(D!==null&&D!==m);I===null?S=u:I.next=k,Pn(u,o.memoizedState)||(en=!0),o.memoizedState=u,o.baseState=S,o.baseQueue=I,l.lastRenderedState=u}if(r=l.interleaved,r!==null){p=r;do m=p.lane,tt.lanes|=m,zs|=m,p=p.next;while(p!==r)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Jp(r){var o=vn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var u=l.dispatch,p=l.pending,m=o.memoizedState;if(p!==null){l.pending=null;var S=p=p.next;do m=r(m,S.action),S=S.next;while(S!==p);Pn(m,o.memoizedState)||(en=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,u]}function s_(){}function o_(r,o){var l=tt,u=vn(),p=o(),m=!Pn(u.memoizedState,p);if(m&&(u.memoizedState=p,en=!0),u=u.queue,Zp(l_.bind(null,l,u,r),[r]),u.getSnapshot!==o||m||_t!==null&&_t.memoizedState.tag&1){if(l.flags|=2048,ma(9,a_.bind(null,l,u,p,o),void 0,null),Et===null)throw Error(n(349));Fs&30||i_(l,o,p)}return p}function i_(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=tt.updateQueue,o===null?(o={lastEffect:null,stores:null},tt.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function a_(r,o,l,u){o.value=l,o.getSnapshot=u,c_(o)&&u_(r)}function l_(r,o,l){return l(function(){c_(o)&&u_(r)})}function c_(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!Pn(r,l)}catch{return!0}}function u_(r){var o=mr(r,1);o!==null&&Dn(o,r,1,-1)}function d_(r){var o=Jn();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:r},o.queue=r,r=r.dispatch=X$.bind(null,tt,r),[o.memoizedState,r]}function ma(r,o,l,u){return r={tag:r,create:o,destroy:l,deps:u,next:null},o=tt.updateQueue,o===null?(o={lastEffect:null,stores:null},tt.updateQueue=o,o.lastEffect=r.next=r):(l=o.lastEffect,l===null?o.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,o.lastEffect=r)),r}function f_(){return vn().memoizedState}function Kc(r,o,l,u){var p=Jn();tt.flags|=r,p.memoizedState=ma(1|o,l,void 0,u===void 0?null:u)}function Qc(r,o,l,u){var p=vn();u=u===void 0?null:u;var m=void 0;if(ht!==null){var S=ht.memoizedState;if(m=S.destroy,u!==null&&Yp(u,S.deps)){p.memoizedState=ma(o,l,m,u);return}}tt.flags|=r,p.memoizedState=ma(1|o,l,m,u)}function p_(r,o){return Kc(8390656,8,r,o)}function Zp(r,o){return Qc(2048,8,r,o)}function h_(r,o){return Qc(4,2,r,o)}function m_(r,o){return Qc(4,4,r,o)}function g_(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function y_(r,o,l){return l=l!=null?l.concat([r]):null,Qc(4,4,g_.bind(null,o,r),l)}function eh(){}function v_(r,o){var l=vn();o=o===void 0?null:o;var u=l.memoizedState;return u!==null&&o!==null&&Yp(o,u[1])?u[0]:(l.memoizedState=[r,o],r)}function S_(r,o){var l=vn();o=o===void 0?null:o;var u=l.memoizedState;return u!==null&&o!==null&&Yp(o,u[1])?u[0]:(r=r(),l.memoizedState=[r,o],r)}function w_(r,o,l){return Fs&21?(Pn(l,o)||(l=QS(),tt.lanes|=l,zs|=l,r.baseState=!0),o):(r.baseState&&(r.baseState=!1,en=!0),r.memoizedState=l)}function K$(r,o){var l=He;He=l!==0&&4>l?l:4,r(!0);var u=Gp.transition;Gp.transition={};try{r(!1),o()}finally{He=l,Gp.transition=u}}function __(){return vn().memoizedState}function Q$(r,o,l){var u=ns(r);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},E_(r))x_(o,l);else if(l=Zw(r,o,l,u),l!==null){var p=zt();Dn(l,r,u,p),T_(l,o,u)}}function X$(r,o,l){var u=ns(r),p={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(E_(r))x_(o,p);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var S=o.lastRenderedState,k=m(S,l);if(p.hasEagerState=!0,p.eagerState=k,Pn(k,S)){var I=o.interleaved;I===null?(p.next=p,zp(o)):(p.next=I.next,I.next=p),o.interleaved=p;return}}catch{}finally{}l=Zw(r,o,p,u),l!==null&&(p=zt(),Dn(l,r,u,p),T_(l,o,u))}}function E_(r){var o=r.alternate;return r===tt||o!==null&&o===tt}function x_(r,o){fa=Yc=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function T_(r,o,l){if(l&4194240){var u=o.lanes;u&=r.pendingLanes,l|=u,o.lanes=l,np(r,l)}}var Xc={readContext:yn,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useInsertionEffect:Pt,useLayoutEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useMutableSource:Pt,useSyncExternalStore:Pt,useId:Pt,unstable_isNewReconciler:!1},J$={readContext:yn,useCallback:function(r,o){return Jn().memoizedState=[r,o===void 0?null:o],r},useContext:yn,useEffect:p_,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,Kc(4194308,4,g_.bind(null,o,r),l)},useLayoutEffect:function(r,o){return Kc(4194308,4,r,o)},useInsertionEffect:function(r,o){return Kc(4,2,r,o)},useMemo:function(r,o){var l=Jn();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var u=Jn();return o=l!==void 0?l(o):o,u.memoizedState=u.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},u.queue=r,r=r.dispatch=Q$.bind(null,tt,r),[u.memoizedState,r]},useRef:function(r){var o=Jn();return r={current:r},o.memoizedState=r},useState:d_,useDebugValue:eh,useDeferredValue:function(r){return Jn().memoizedState=r},useTransition:function(){var r=d_(!1),o=r[0];return r=K$.bind(null,r[1]),Jn().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var u=tt,p=Jn();if(Ze){if(l===void 0)throw Error(n(407));l=l()}else{if(l=o(),Et===null)throw Error(n(349));Fs&30||i_(u,o,l)}p.memoizedState=l;var m={value:l,getSnapshot:o};return p.queue=m,p_(l_.bind(null,u,m,r),[r]),u.flags|=2048,ma(9,a_.bind(null,u,m,l,o),void 0,null),l},useId:function(){var r=Jn(),o=Et.identifierPrefix;if(Ze){var l=hr,u=pr;l=(u&~(1<<32-On(u)-1)).toString(32)+l,o=":"+o+"R"+l,l=pa++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=Y$++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},Z$={readContext:yn,useCallback:v_,useContext:yn,useEffect:Zp,useImperativeHandle:y_,useInsertionEffect:h_,useLayoutEffect:m_,useMemo:S_,useReducer:Xp,useRef:f_,useState:function(){return Xp(ha)},useDebugValue:eh,useDeferredValue:function(r){var o=vn();return w_(o,ht.memoizedState,r)},useTransition:function(){var r=Xp(ha)[0],o=vn().memoizedState;return[r,o]},useMutableSource:s_,useSyncExternalStore:o_,useId:__,unstable_isNewReconciler:!1},e8={readContext:yn,useCallback:v_,useContext:yn,useEffect:Zp,useImperativeHandle:y_,useInsertionEffect:h_,useLayoutEffect:m_,useMemo:S_,useReducer:Jp,useRef:f_,useState:function(){return Jp(ha)},useDebugValue:eh,useDeferredValue:function(r){var o=vn();return ht===null?o.memoizedState=r:w_(o,ht.memoizedState,r)},useTransition:function(){var r=Jp(ha)[0],o=vn().memoizedState;return[r,o]},useMutableSource:s_,useSyncExternalStore:o_,useId:__,unstable_isNewReconciler:!1};function Mn(r,o){if(r&&r.defaultProps){o=ne({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function th(r,o,l,u){o=r.memoizedState,l=l(u,o),l=l==null?o:ne({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Jc={isMounted:function(r){return(r=r._reactInternals)?Ns(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var u=zt(),p=ns(r),m=gr(u,p);m.payload=o,l!=null&&(m.callback=l),o=Jr(r,m,p),o!==null&&(Dn(o,r,p,u),Wc(o,r,p))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var u=zt(),p=ns(r),m=gr(u,p);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=Jr(r,m,p),o!==null&&(Dn(o,r,p,u),Wc(o,r,p))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=zt(),u=ns(r),p=gr(l,u);p.tag=2,o!=null&&(p.callback=o),o=Jr(r,p,u),o!==null&&(Dn(o,r,u,l),Wc(o,r,u))}};function k_(r,o,l,u,p,m,S){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,m,S):o.prototype&&o.prototype.isPureReactComponent?!ta(l,u)||!ta(p,m):!0}function I_(r,o,l){var u=!1,p=Kr,m=o.contextType;return typeof m=="object"&&m!==null?m=yn(m):(p=Zt(o)?Ls:Ot.current,u=o.contextTypes,m=(u=u!=null)?Uo(r,p):Kr),o=new o(l,m),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Jc,r.stateNode=o,o._reactInternals=r,u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=m),o}function b_(r,o,l,u){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,u),o.state!==r&&Jc.enqueueReplaceState(o,o.state,null)}function nh(r,o,l,u){var p=r.stateNode;p.props=l,p.state=r.memoizedState,p.refs={},Up(r);var m=o.contextType;typeof m=="object"&&m!==null?p.context=yn(m):(m=Zt(o)?Ls:Ot.current,p.context=Uo(r,m)),p.state=r.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(th(r,o,m,l),p.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&Jc.enqueueReplaceState(p,p.state,null),qc(r,l,p,u),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function Qo(r,o){try{var l="",u=o;do l+=Pe(u),u=u.return;while(u);var p=l}catch(m){p=`
Error generating stack: `+m.message+`
`+m.stack}return{value:r,source:o,stack:p,digest:null}}function rh(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function sh(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var t8=typeof WeakMap=="function"?WeakMap:Map;function C_(r,o,l){l=gr(-1,l),l.tag=3,l.payload={element:null};var u=o.value;return l.callback=function(){ou||(ou=!0,Sh=u),sh(r,o)},l}function R_(r,o,l){l=gr(-1,l),l.tag=3;var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var p=o.value;l.payload=function(){return u(p)},l.callback=function(){sh(r,o)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){sh(r,o),typeof u!="function"&&(es===null?es=new Set([this]):es.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})}),l}function A_(r,o,l){var u=r.pingCache;if(u===null){u=r.pingCache=new t8;var p=new Set;u.set(o,p)}else p=u.get(o),p===void 0&&(p=new Set,u.set(o,p));p.has(l)||(p.add(l),r=m8.bind(null,r,o,l),o.then(r,r))}function O_(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function P_(r,o,l,u,p){return r.mode&1?(r.flags|=65536,r.lanes=p,r):(r===o?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=gr(-1,1),o.tag=2,Jr(l,o,1))),l.lanes|=1),r)}var n8=K.ReactCurrentOwner,en=!1;function Ft(r,o,l,u){o.child=r===null?Jw(o,null,l,u):Vo(o,r.child,l,u)}function N_(r,o,l,u,p){l=l.render;var m=o.ref;return Yo(o,p),u=Kp(r,o,l,u,m,p),l=Qp(),r!==null&&!en?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,yr(r,o,p)):(Ze&&l&&Pp(o),o.flags|=1,Ft(r,o,u,p),o.child)}function M_(r,o,l,u,p){if(r===null){var m=l.type;return typeof m=="function"&&!Ih(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,L_(r,o,m,u,p)):(r=du(l.type,null,u,o,o.mode,p),r.ref=o.ref,r.return=o,o.child=r)}if(m=r.child,!(r.lanes&p)){var S=m.memoizedProps;if(l=l.compare,l=l!==null?l:ta,l(S,u)&&r.ref===o.ref)return yr(r,o,p)}return o.flags|=1,r=ss(m,u),r.ref=o.ref,r.return=o,o.child=r}function L_(r,o,l,u,p){if(r!==null){var m=r.memoizedProps;if(ta(m,u)&&r.ref===o.ref)if(en=!1,o.pendingProps=u=m,(r.lanes&p)!==0)r.flags&131072&&(en=!0);else return o.lanes=r.lanes,yr(r,o,p)}return oh(r,o,l,u,p)}function j_(r,o,l){var u=o.pendingProps,p=u.children,m=r!==null?r.memoizedState:null;if(u.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ke(Jo,dn),dn|=l;else{if(!(l&1073741824))return r=m!==null?m.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Ke(Jo,dn),dn|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=m!==null?m.baseLanes:l,Ke(Jo,dn),dn|=u}else m!==null?(u=m.baseLanes|l,o.memoizedState=null):u=l,Ke(Jo,dn),dn|=u;return Ft(r,o,p,l),o.child}function D_(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function oh(r,o,l,u,p){var m=Zt(l)?Ls:Ot.current;return m=Uo(o,m),Yo(o,p),l=Kp(r,o,l,u,m,p),u=Qp(),r!==null&&!en?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,yr(r,o,p)):(Ze&&u&&Pp(o),o.flags|=1,Ft(r,o,l,p),o.child)}function $_(r,o,l,u,p){if(Zt(l)){var m=!0;jc(o)}else m=!1;if(Yo(o,p),o.stateNode===null)eu(r,o),I_(o,l,u),nh(o,l,u,p),u=!0;else if(r===null){var S=o.stateNode,k=o.memoizedProps;S.props=k;var I=S.context,D=l.contextType;typeof D=="object"&&D!==null?D=yn(D):(D=Zt(l)?Ls:Ot.current,D=Uo(o,D));var Y=l.getDerivedStateFromProps,Q=typeof Y=="function"||typeof S.getSnapshotBeforeUpdate=="function";Q||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(k!==u||I!==D)&&b_(o,S,u,D),Xr=!1;var G=o.memoizedState;S.state=G,qc(o,u,S,p),I=o.memoizedState,k!==u||G!==I||Jt.current||Xr?(typeof Y=="function"&&(th(o,l,Y,u),I=o.memoizedState),(k=Xr||k_(o,l,k,u,G,I,D))?(Q||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(o.flags|=4194308)):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=I),S.props=u,S.state=I,S.context=D,u=k):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{S=o.stateNode,e_(r,o),k=o.memoizedProps,D=o.type===o.elementType?k:Mn(o.type,k),S.props=D,Q=o.pendingProps,G=S.context,I=l.contextType,typeof I=="object"&&I!==null?I=yn(I):(I=Zt(l)?Ls:Ot.current,I=Uo(o,I));var re=l.getDerivedStateFromProps;(Y=typeof re=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(k!==Q||G!==I)&&b_(o,S,u,I),Xr=!1,G=o.memoizedState,S.state=G,qc(o,u,S,p);var ae=o.memoizedState;k!==Q||G!==ae||Jt.current||Xr?(typeof re=="function"&&(th(o,l,re,u),ae=o.memoizedState),(D=Xr||k_(o,l,D,u,G,ae,I)||!1)?(Y||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(u,ae,I),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(u,ae,I)),typeof S.componentDidUpdate=="function"&&(o.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof S.componentDidUpdate!="function"||k===r.memoizedProps&&G===r.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&G===r.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=ae),S.props=u,S.state=ae,S.context=I,u=D):(typeof S.componentDidUpdate!="function"||k===r.memoizedProps&&G===r.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&G===r.memoizedState||(o.flags|=1024),u=!1)}return ih(r,o,l,u,m,p)}function ih(r,o,l,u,p,m){D_(r,o);var S=(o.flags&128)!==0;if(!u&&!S)return p&&Hw(o,l,!1),yr(r,o,m);u=o.stateNode,n8.current=o;var k=S&&typeof l.getDerivedStateFromError!="function"?null:u.render();return o.flags|=1,r!==null&&S?(o.child=Vo(o,r.child,null,m),o.child=Vo(o,null,k,m)):Ft(r,o,k,m),o.memoizedState=u.state,p&&Hw(o,l,!0),o.child}function B_(r){var o=r.stateNode;o.pendingContext?zw(r,o.pendingContext,o.pendingContext!==o.context):o.context&&zw(r,o.context,!1),Hp(r,o.containerInfo)}function F_(r,o,l,u,p){return qo(),jp(p),o.flags|=256,Ft(r,o,l,u),o.child}var ah={dehydrated:null,treeContext:null,retryLane:0};function lh(r){return{baseLanes:r,cachePool:null,transitions:null}}function z_(r,o,l){var u=o.pendingProps,p=et.current,m=!1,S=(o.flags&128)!==0,k;if((k=S)||(k=r!==null&&r.memoizedState===null?!1:(p&2)!==0),k?(m=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),Ke(et,p&1),r===null)return Lp(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(o.mode&1?r.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(S=u.children,r=u.fallback,m?(u=o.mode,m=o.child,S={mode:"hidden",children:S},!(u&1)&&m!==null?(m.childLanes=0,m.pendingProps=S):m=fu(S,u,0,null),r=qs(r,u,l,null),m.return=o,r.return=o,m.sibling=r,o.child=m,o.child.memoizedState=lh(l),o.memoizedState=ah,r):ch(o,S));if(p=r.memoizedState,p!==null&&(k=p.dehydrated,k!==null))return r8(r,o,S,u,k,p,l);if(m){m=u.fallback,S=o.mode,p=r.child,k=p.sibling;var I={mode:"hidden",children:u.children};return!(S&1)&&o.child!==p?(u=o.child,u.childLanes=0,u.pendingProps=I,o.deletions=null):(u=ss(p,I),u.subtreeFlags=p.subtreeFlags&14680064),k!==null?m=ss(k,m):(m=qs(m,S,l,null),m.flags|=2),m.return=o,u.return=o,u.sibling=m,o.child=u,u=m,m=o.child,S=r.child.memoizedState,S=S===null?lh(l):{baseLanes:S.baseLanes|l,cachePool:null,transitions:S.transitions},m.memoizedState=S,m.childLanes=r.childLanes&~l,o.memoizedState=ah,u}return m=r.child,r=m.sibling,u=ss(m,{mode:"visible",children:u.children}),!(o.mode&1)&&(u.lanes=l),u.return=o,u.sibling=null,r!==null&&(l=o.deletions,l===null?(o.deletions=[r],o.flags|=16):l.push(r)),o.child=u,o.memoizedState=null,u}function ch(r,o){return o=fu({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Zc(r,o,l,u){return u!==null&&jp(u),Vo(o,r.child,null,l),r=ch(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function r8(r,o,l,u,p,m,S){if(l)return o.flags&256?(o.flags&=-257,u=rh(Error(n(422))),Zc(r,o,S,u)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(m=u.fallback,p=o.mode,u=fu({mode:"visible",children:u.children},p,0,null),m=qs(m,p,S,null),m.flags|=2,u.return=o,m.return=o,u.sibling=m,o.child=u,o.mode&1&&Vo(o,r.child,null,S),o.child.memoizedState=lh(S),o.memoizedState=ah,m);if(!(o.mode&1))return Zc(r,o,S,null);if(p.data==="$!"){if(u=p.nextSibling&&p.nextSibling.dataset,u)var k=u.dgst;return u=k,m=Error(n(419)),u=rh(m,u,void 0),Zc(r,o,S,u)}if(k=(S&r.childLanes)!==0,en||k){if(u=Et,u!==null){switch(S&-S){case 4:p=2;break;case 16:p=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=p&(u.suspendedLanes|S)?0:p,p!==0&&p!==m.retryLane&&(m.retryLane=p,mr(r,p),Dn(u,r,p,-1))}return kh(),u=rh(Error(n(421))),Zc(r,o,S,u)}return p.data==="$?"?(o.flags|=128,o.child=r.child,o=g8.bind(null,r),p._reactRetry=o,null):(r=m.treeContext,un=Gr(p.nextSibling),cn=o,Ze=!0,Nn=null,r!==null&&(mn[gn++]=pr,mn[gn++]=hr,mn[gn++]=js,pr=r.id,hr=r.overflow,js=o),o=ch(o,u.children),o.flags|=4096,o)}function U_(r,o,l){r.lanes|=o;var u=r.alternate;u!==null&&(u.lanes|=o),Fp(r.return,o,l)}function uh(r,o,l,u,p){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:p}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=l,m.tailMode=p)}function H_(r,o,l){var u=o.pendingProps,p=u.revealOrder,m=u.tail;if(Ft(r,o,u.children,l),u=et.current,u&2)u=u&1|2,o.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&U_(r,l,o);else if(r.tag===19)U_(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}u&=1}if(Ke(et,u),!(o.mode&1))o.memoizedState=null;else switch(p){case"forwards":for(l=o.child,p=null;l!==null;)r=l.alternate,r!==null&&Vc(r)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),uh(o,!1,p,l,m);break;case"backwards":for(l=null,p=o.child,o.child=null;p!==null;){if(r=p.alternate,r!==null&&Vc(r)===null){o.child=p;break}r=p.sibling,p.sibling=l,l=p,p=r}uh(o,!0,l,null,m);break;case"together":uh(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function eu(r,o){!(o.mode&1)&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function yr(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),zs|=o.lanes,!(l&o.childLanes))return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,l=ss(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=ss(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function s8(r,o,l){switch(o.tag){case 3:B_(o),qo();break;case 5:r_(o);break;case 1:Zt(o.type)&&jc(o);break;case 4:Hp(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,p=o.memoizedProps.value;Ke(Uc,u._currentValue),u._currentValue=p;break;case 13:if(u=o.memoizedState,u!==null)return u.dehydrated!==null?(Ke(et,et.current&1),o.flags|=128,null):l&o.child.childLanes?z_(r,o,l):(Ke(et,et.current&1),r=yr(r,o,l),r!==null?r.sibling:null);Ke(et,et.current&1);break;case 19:if(u=(l&o.childLanes)!==0,r.flags&128){if(u)return H_(r,o,l);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ke(et,et.current),u)break;return null;case 22:case 23:return o.lanes=0,j_(r,o,l)}return yr(r,o,l)}var W_,dh,q_,V_;W_=function(r,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},dh=function(){},q_=function(r,o,l,u){var p=r.memoizedProps;if(p!==u){r=o.stateNode,Bs(Xn.current);var m=null;switch(l){case"input":p=An(r,p),u=An(r,u),m=[];break;case"select":p=ne({},p,{value:void 0}),u=ne({},u,{value:void 0}),m=[];break;case"textarea":p=Re(r,p),u=Re(r,u),m=[];break;default:typeof p.onClick!="function"&&typeof u.onClick=="function"&&(r.onclick=Nc)}qf(l,u);var S;l=null;for(D in p)if(!u.hasOwnProperty(D)&&p.hasOwnProperty(D)&&p[D]!=null)if(D==="style"){var k=p[D];for(S in k)k.hasOwnProperty(S)&&(l||(l={}),l[S]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(i.hasOwnProperty(D)?m||(m=[]):(m=m||[]).push(D,null));for(D in u){var I=u[D];if(k=p!=null?p[D]:void 0,u.hasOwnProperty(D)&&I!==k&&(I!=null||k!=null))if(D==="style")if(k){for(S in k)!k.hasOwnProperty(S)||I&&I.hasOwnProperty(S)||(l||(l={}),l[S]="");for(S in I)I.hasOwnProperty(S)&&k[S]!==I[S]&&(l||(l={}),l[S]=I[S])}else l||(m||(m=[]),m.push(D,l)),l=I;else D==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,k=k?k.__html:void 0,I!=null&&k!==I&&(m=m||[]).push(D,I)):D==="children"?typeof I!="string"&&typeof I!="number"||(m=m||[]).push(D,""+I):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(i.hasOwnProperty(D)?(I!=null&&D==="onScroll"&&Qe("scroll",r),m||k===I||(m=[])):(m=m||[]).push(D,I))}l&&(m=m||[]).push("style",l);var D=m;(o.updateQueue=D)&&(o.flags|=4)}},V_=function(r,o,l,u){l!==u&&(o.flags|=4)};function ga(r,o){if(!Ze)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function Nt(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(o)for(var p=r.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags&14680064,u|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=u,r.childLanes=l,o}function o8(r,o,l){var u=o.pendingProps;switch(Np(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(o),null;case 1:return Zt(o.type)&&Lc(),Nt(o),null;case 3:return u=o.stateNode,Ko(),Xe(Jt),Xe(Ot),Vp(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(Fc(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,Nn!==null&&(Eh(Nn),Nn=null))),dh(r,o),Nt(o),null;case 5:Wp(o);var p=Bs(da.current);if(l=o.type,r!==null&&o.stateNode!=null)q_(r,o,l,u,p),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!u){if(o.stateNode===null)throw Error(n(166));return Nt(o),null}if(r=Bs(Xn.current),Fc(o)){u=o.stateNode,l=o.type;var m=o.memoizedProps;switch(u[Qn]=o,u[ia]=m,r=(o.mode&1)!==0,l){case"dialog":Qe("cancel",u),Qe("close",u);break;case"iframe":case"object":case"embed":Qe("load",u);break;case"video":case"audio":for(p=0;p<ra.length;p++)Qe(ra[p],u);break;case"source":Qe("error",u);break;case"img":case"image":case"link":Qe("error",u),Qe("load",u);break;case"details":Qe("toggle",u);break;case"input":Gn(u,m),Qe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!m.multiple},Qe("invalid",u);break;case"textarea":Ye(u,m),Qe("invalid",u)}qf(l,m),p=null;for(var S in m)if(m.hasOwnProperty(S)){var k=m[S];S==="children"?typeof k=="string"?u.textContent!==k&&(m.suppressHydrationWarning!==!0&&Pc(u.textContent,k,r),p=["children",k]):typeof k=="number"&&u.textContent!==""+k&&(m.suppressHydrationWarning!==!0&&Pc(u.textContent,k,r),p=["children",""+k]):i.hasOwnProperty(S)&&k!=null&&S==="onScroll"&&Qe("scroll",u)}switch(l){case"input":Rs(u),Os(u,m,!0);break;case"textarea":Rs(u),Yn(u);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(u.onclick=Nc)}u=p,o.updateQueue=u,u!==null&&(o.flags|=4)}else{S=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=uc(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=S.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof u.is=="string"?r=S.createElement(l,{is:u.is}):(r=S.createElement(l),l==="select"&&(S=r,u.multiple?S.multiple=!0:u.size&&(S.size=u.size))):r=S.createElementNS(r,l),r[Qn]=o,r[ia]=u,W_(r,o,!1,!1),o.stateNode=r;e:{switch(S=Vf(l,u),l){case"dialog":Qe("cancel",r),Qe("close",r),p=u;break;case"iframe":case"object":case"embed":Qe("load",r),p=u;break;case"video":case"audio":for(p=0;p<ra.length;p++)Qe(ra[p],r);p=u;break;case"source":Qe("error",r),p=u;break;case"img":case"image":case"link":Qe("error",r),Qe("load",r),p=u;break;case"details":Qe("toggle",r),p=u;break;case"input":Gn(r,u),p=An(r,u),Qe("invalid",r);break;case"option":p=u;break;case"select":r._wrapperState={wasMultiple:!!u.multiple},p=ne({},u,{value:void 0}),Qe("invalid",r);break;case"textarea":Ye(r,u),p=Re(r,u),Qe("invalid",r);break;default:p=u}qf(l,p),k=p;for(m in k)if(k.hasOwnProperty(m)){var I=k[m];m==="style"?LS(r,I):m==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,I!=null&&NS(r,I)):m==="children"?typeof I=="string"?(l!=="textarea"||I!=="")&&$i(r,I):typeof I=="number"&&$i(r,""+I):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(i.hasOwnProperty(m)?I!=null&&m==="onScroll"&&Qe("scroll",r):I!=null&&j(r,m,I,S))}switch(l){case"input":Rs(r),Os(r,u,!1);break;case"textarea":Rs(r),Yn(r);break;case"option":u.value!=null&&r.setAttribute("value",""+$e(u.value));break;case"select":r.multiple=!!u.multiple,m=u.value,m!=null?wt(r,!!u.multiple,m,!1):u.defaultValue!=null&&wt(r,!!u.multiple,u.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=Nc)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Nt(o),null;case 6:if(r&&o.stateNode!=null)V_(r,o,r.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(n(166));if(l=Bs(da.current),Bs(Xn.current),Fc(o)){if(u=o.stateNode,l=o.memoizedProps,u[Qn]=o,(m=u.nodeValue!==l)&&(r=cn,r!==null))switch(r.tag){case 3:Pc(u.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Pc(u.nodeValue,l,(r.mode&1)!==0)}m&&(o.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[Qn]=o,o.stateNode=u}return Nt(o),null;case 13:if(Xe(et),u=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ze&&un!==null&&o.mode&1&&!(o.flags&128))Kw(),qo(),o.flags|=98560,m=!1;else if(m=Fc(o),u!==null&&u.dehydrated!==null){if(r===null){if(!m)throw Error(n(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Qn]=o}else qo(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Nt(o),m=!1}else Nn!==null&&(Eh(Nn),Nn=null),m=!0;if(!m)return o.flags&65536?o:null}return o.flags&128?(o.lanes=l,o):(u=u!==null,u!==(r!==null&&r.memoizedState!==null)&&u&&(o.child.flags|=8192,o.mode&1&&(r===null||et.current&1?mt===0&&(mt=3):kh())),o.updateQueue!==null&&(o.flags|=4),Nt(o),null);case 4:return Ko(),dh(r,o),r===null&&sa(o.stateNode.containerInfo),Nt(o),null;case 10:return Bp(o.type._context),Nt(o),null;case 17:return Zt(o.type)&&Lc(),Nt(o),null;case 19:if(Xe(et),m=o.memoizedState,m===null)return Nt(o),null;if(u=(o.flags&128)!==0,S=m.rendering,S===null)if(u)ga(m,!1);else{if(mt!==0||r!==null&&r.flags&128)for(r=o.child;r!==null;){if(S=Vc(r),S!==null){for(o.flags|=128,ga(m,!1),u=S.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=l,l=o.child;l!==null;)m=l,r=u,m.flags&=14680066,S=m.alternate,S===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=S.childLanes,m.lanes=S.lanes,m.child=S.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=S.memoizedProps,m.memoizedState=S.memoizedState,m.updateQueue=S.updateQueue,m.type=S.type,r=S.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Ke(et,et.current&1|2),o.child}r=r.sibling}m.tail!==null&&at()>Zo&&(o.flags|=128,u=!0,ga(m,!1),o.lanes=4194304)}else{if(!u)if(r=Vc(S),r!==null){if(o.flags|=128,u=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),ga(m,!0),m.tail===null&&m.tailMode==="hidden"&&!S.alternate&&!Ze)return Nt(o),null}else 2*at()-m.renderingStartTime>Zo&&l!==1073741824&&(o.flags|=128,u=!0,ga(m,!1),o.lanes=4194304);m.isBackwards?(S.sibling=o.child,o.child=S):(l=m.last,l!==null?l.sibling=S:o.child=S,m.last=S)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=at(),o.sibling=null,l=et.current,Ke(et,u?l&1|2:l&1),o):(Nt(o),null);case 22:case 23:return Th(),u=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==u&&(o.flags|=8192),u&&o.mode&1?dn&1073741824&&(Nt(o),o.subtreeFlags&6&&(o.flags|=8192)):Nt(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function i8(r,o){switch(Np(o),o.tag){case 1:return Zt(o.type)&&Lc(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Ko(),Xe(Jt),Xe(Ot),Vp(),r=o.flags,r&65536&&!(r&128)?(o.flags=r&-65537|128,o):null;case 5:return Wp(o),null;case 13:if(Xe(et),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));qo()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Xe(et),null;case 4:return Ko(),null;case 10:return Bp(o.type._context),null;case 22:case 23:return Th(),null;case 24:return null;default:return null}}var tu=!1,Mt=!1,a8=typeof WeakSet=="function"?WeakSet:Set,ie=null;function Xo(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){rt(r,o,u)}else l.current=null}function fh(r,o,l){try{l()}catch(u){rt(r,o,u)}}var G_=!1;function l8(r,o){if(Tp=_c,r=kw(),gp(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var p=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var S=0,k=-1,I=-1,D=0,Y=0,Q=r,G=null;t:for(;;){for(var re;Q!==l||p!==0&&Q.nodeType!==3||(k=S+p),Q!==m||u!==0&&Q.nodeType!==3||(I=S+u),Q.nodeType===3&&(S+=Q.nodeValue.length),(re=Q.firstChild)!==null;)G=Q,Q=re;for(;;){if(Q===r)break t;if(G===l&&++D===p&&(k=S),G===m&&++Y===u&&(I=S),(re=Q.nextSibling)!==null)break;Q=G,G=Q.parentNode}Q=re}l=k===-1||I===-1?null:{start:k,end:I}}else l=null}l=l||{start:0,end:0}}else l=null;for(kp={focusedElem:r,selectionRange:l},_c=!1,ie=o;ie!==null;)if(o=ie,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ie=r;else for(;ie!==null;){o=ie;try{var ae=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var le=ae.memoizedProps,lt=ae.memoizedState,N=o.stateNode,b=N.getSnapshotBeforeUpdate(o.elementType===o.type?le:Mn(o.type,le),lt);N.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var M=o.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(X){rt(o,o.return,X)}if(r=o.sibling,r!==null){r.return=o.return,ie=r;break}ie=o.return}return ae=G_,G_=!1,ae}function ya(r,o,l){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var p=u=u.next;do{if((p.tag&r)===r){var m=p.destroy;p.destroy=void 0,m!==void 0&&fh(o,l,m)}p=p.next}while(p!==u)}}function nu(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&r)===r){var u=l.create;l.destroy=u()}l=l.next}while(l!==o)}}function ph(r){var o=r.ref;if(o!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof o=="function"?o(r):o.current=r}}function Y_(r){var o=r.alternate;o!==null&&(r.alternate=null,Y_(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[Qn],delete o[ia],delete o[Rp],delete o[W$],delete o[q$])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function K_(r){return r.tag===5||r.tag===3||r.tag===4}function Q_(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||K_(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function hh(r,o,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(r,o):l.insertBefore(r,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(r,l)):(o=l,o.appendChild(r)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Nc));else if(u!==4&&(r=r.child,r!==null))for(hh(r,o,l),r=r.sibling;r!==null;)hh(r,o,l),r=r.sibling}function mh(r,o,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(u!==4&&(r=r.child,r!==null))for(mh(r,o,l),r=r.sibling;r!==null;)mh(r,o,l),r=r.sibling}var bt=null,Ln=!1;function Zr(r,o,l){for(l=l.child;l!==null;)X_(r,o,l),l=l.sibling}function X_(r,o,l){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(mc,l)}catch{}switch(l.tag){case 5:Mt||Xo(l,o);case 6:var u=bt,p=Ln;bt=null,Zr(r,o,l),bt=u,Ln=p,bt!==null&&(Ln?(r=bt,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):bt.removeChild(l.stateNode));break;case 18:bt!==null&&(Ln?(r=bt,l=l.stateNode,r.nodeType===8?Cp(r.parentNode,l):r.nodeType===1&&Cp(r,l),Ki(r)):Cp(bt,l.stateNode));break;case 4:u=bt,p=Ln,bt=l.stateNode.containerInfo,Ln=!0,Zr(r,o,l),bt=u,Ln=p;break;case 0:case 11:case 14:case 15:if(!Mt&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){p=u=u.next;do{var m=p,S=m.destroy;m=m.tag,S!==void 0&&(m&2||m&4)&&fh(l,o,S),p=p.next}while(p!==u)}Zr(r,o,l);break;case 1:if(!Mt&&(Xo(l,o),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(k){rt(l,o,k)}Zr(r,o,l);break;case 21:Zr(r,o,l);break;case 22:l.mode&1?(Mt=(u=Mt)||l.memoizedState!==null,Zr(r,o,l),Mt=u):Zr(r,o,l);break;default:Zr(r,o,l)}}function J_(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new a8),o.forEach(function(u){var p=y8.bind(null,r,u);l.has(u)||(l.add(u),u.then(p,p))})}}function jn(r,o){var l=o.deletions;if(l!==null)for(var u=0;u<l.length;u++){var p=l[u];try{var m=r,S=o,k=S;e:for(;k!==null;){switch(k.tag){case 5:bt=k.stateNode,Ln=!1;break e;case 3:bt=k.stateNode.containerInfo,Ln=!0;break e;case 4:bt=k.stateNode.containerInfo,Ln=!0;break e}k=k.return}if(bt===null)throw Error(n(160));X_(m,S,p),bt=null,Ln=!1;var I=p.alternate;I!==null&&(I.return=null),p.return=null}catch(D){rt(p,o,D)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Z_(o,r),o=o.sibling}function Z_(r,o){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(jn(o,r),Zn(r),u&4){try{ya(3,r,r.return),nu(3,r)}catch(le){rt(r,r.return,le)}try{ya(5,r,r.return)}catch(le){rt(r,r.return,le)}}break;case 1:jn(o,r),Zn(r),u&512&&l!==null&&Xo(l,l.return);break;case 5:if(jn(o,r),Zn(r),u&512&&l!==null&&Xo(l,l.return),r.flags&32){var p=r.stateNode;try{$i(p,"")}catch(le){rt(r,r.return,le)}}if(u&4&&(p=r.stateNode,p!=null)){var m=r.memoizedProps,S=l!==null?l.memoizedProps:m,k=r.type,I=r.updateQueue;if(r.updateQueue=null,I!==null)try{k==="input"&&m.type==="radio"&&m.name!=null&&Ao(p,m),Vf(k,S);var D=Vf(k,m);for(S=0;S<I.length;S+=2){var Y=I[S],Q=I[S+1];Y==="style"?LS(p,Q):Y==="dangerouslySetInnerHTML"?NS(p,Q):Y==="children"?$i(p,Q):j(p,Y,Q,D)}switch(k){case"input":As(p,m);break;case"textarea":je(p,m);break;case"select":var G=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!m.multiple;var re=m.value;re!=null?wt(p,!!m.multiple,re,!1):G!==!!m.multiple&&(m.defaultValue!=null?wt(p,!!m.multiple,m.defaultValue,!0):wt(p,!!m.multiple,m.multiple?[]:"",!1))}p[ia]=m}catch(le){rt(r,r.return,le)}}break;case 6:if(jn(o,r),Zn(r),u&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,m=r.memoizedProps;try{p.nodeValue=m}catch(le){rt(r,r.return,le)}}break;case 3:if(jn(o,r),Zn(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Ki(o.containerInfo)}catch(le){rt(r,r.return,le)}break;case 4:jn(o,r),Zn(r);break;case 13:jn(o,r),Zn(r),p=r.child,p.flags&8192&&(m=p.memoizedState!==null,p.stateNode.isHidden=m,!m||p.alternate!==null&&p.alternate.memoizedState!==null||(vh=at())),u&4&&J_(r);break;case 22:if(Y=l!==null&&l.memoizedState!==null,r.mode&1?(Mt=(D=Mt)||Y,jn(o,r),Mt=D):jn(o,r),Zn(r),u&8192){if(D=r.memoizedState!==null,(r.stateNode.isHidden=D)&&!Y&&r.mode&1)for(ie=r,Y=r.child;Y!==null;){for(Q=ie=Y;ie!==null;){switch(G=ie,re=G.child,G.tag){case 0:case 11:case 14:case 15:ya(4,G,G.return);break;case 1:Xo(G,G.return);var ae=G.stateNode;if(typeof ae.componentWillUnmount=="function"){u=G,l=G.return;try{o=u,ae.props=o.memoizedProps,ae.state=o.memoizedState,ae.componentWillUnmount()}catch(le){rt(u,l,le)}}break;case 5:Xo(G,G.return);break;case 22:if(G.memoizedState!==null){nE(Q);continue}}re!==null?(re.return=G,ie=re):nE(Q)}Y=Y.sibling}e:for(Y=null,Q=r;;){if(Q.tag===5){if(Y===null){Y=Q;try{p=Q.stateNode,D?(m=p.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(k=Q.stateNode,I=Q.memoizedProps.style,S=I!=null&&I.hasOwnProperty("display")?I.display:null,k.style.display=MS("display",S))}catch(le){rt(r,r.return,le)}}}else if(Q.tag===6){if(Y===null)try{Q.stateNode.nodeValue=D?"":Q.memoizedProps}catch(le){rt(r,r.return,le)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===r)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===r)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===r)break e;Y===Q&&(Y=null),Q=Q.return}Y===Q&&(Y=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:jn(o,r),Zn(r),u&4&&J_(r);break;case 21:break;default:jn(o,r),Zn(r)}}function Zn(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(K_(l)){var u=l;break e}l=l.return}throw Error(n(160))}switch(u.tag){case 5:var p=u.stateNode;u.flags&32&&($i(p,""),u.flags&=-33);var m=Q_(r);mh(r,m,p);break;case 3:case 4:var S=u.stateNode.containerInfo,k=Q_(r);hh(r,k,S);break;default:throw Error(n(161))}}catch(I){rt(r,r.return,I)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function c8(r,o,l){ie=r,eE(r)}function eE(r,o,l){for(var u=(r.mode&1)!==0;ie!==null;){var p=ie,m=p.child;if(p.tag===22&&u){var S=p.memoizedState!==null||tu;if(!S){var k=p.alternate,I=k!==null&&k.memoizedState!==null||Mt;k=tu;var D=Mt;if(tu=S,(Mt=I)&&!D)for(ie=p;ie!==null;)S=ie,I=S.child,S.tag===22&&S.memoizedState!==null?rE(p):I!==null?(I.return=S,ie=I):rE(p);for(;m!==null;)ie=m,eE(m),m=m.sibling;ie=p,tu=k,Mt=D}tE(r)}else p.subtreeFlags&8772&&m!==null?(m.return=p,ie=m):tE(r)}}function tE(r){for(;ie!==null;){var o=ie;if(o.flags&8772){var l=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Mt||nu(5,o);break;case 1:var u=o.stateNode;if(o.flags&4&&!Mt)if(l===null)u.componentDidMount();else{var p=o.elementType===o.type?l.memoizedProps:Mn(o.type,l.memoizedProps);u.componentDidUpdate(p,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&n_(o,m,u);break;case 3:var S=o.updateQueue;if(S!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}n_(o,S,l)}break;case 5:var k=o.stateNode;if(l===null&&o.flags&4){l=k;var I=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":I.autoFocus&&l.focus();break;case"img":I.src&&(l.src=I.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var D=o.alternate;if(D!==null){var Y=D.memoizedState;if(Y!==null){var Q=Y.dehydrated;Q!==null&&Ki(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Mt||o.flags&512&&ph(o)}catch(G){rt(o,o.return,G)}}if(o===r){ie=null;break}if(l=o.sibling,l!==null){l.return=o.return,ie=l;break}ie=o.return}}function nE(r){for(;ie!==null;){var o=ie;if(o===r){ie=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ie=l;break}ie=o.return}}function rE(r){for(;ie!==null;){var o=ie;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{nu(4,o)}catch(I){rt(o,l,I)}break;case 1:var u=o.stateNode;if(typeof u.componentDidMount=="function"){var p=o.return;try{u.componentDidMount()}catch(I){rt(o,p,I)}}var m=o.return;try{ph(o)}catch(I){rt(o,m,I)}break;case 5:var S=o.return;try{ph(o)}catch(I){rt(o,S,I)}}}catch(I){rt(o,o.return,I)}if(o===r){ie=null;break}var k=o.sibling;if(k!==null){k.return=o.return,ie=k;break}ie=o.return}}var u8=Math.ceil,ru=K.ReactCurrentDispatcher,gh=K.ReactCurrentOwner,Sn=K.ReactCurrentBatchConfig,Be=0,Et=null,dt=null,Ct=0,dn=0,Jo=Yr(0),mt=0,va=null,zs=0,su=0,yh=0,Sa=null,tn=null,vh=0,Zo=1/0,vr=null,ou=!1,Sh=null,es=null,iu=!1,ts=null,au=0,wa=0,wh=null,lu=-1,cu=0;function zt(){return Be&6?at():lu!==-1?lu:lu=at()}function ns(r){return r.mode&1?Be&2&&Ct!==0?Ct&-Ct:G$.transition!==null?(cu===0&&(cu=QS()),cu):(r=He,r!==0||(r=window.event,r=r===void 0?16:ow(r.type)),r):1}function Dn(r,o,l,u){if(50<wa)throw wa=0,wh=null,Error(n(185));Wi(r,l,u),(!(Be&2)||r!==Et)&&(r===Et&&(!(Be&2)&&(su|=l),mt===4&&rs(r,Ct)),nn(r,u),l===1&&Be===0&&!(o.mode&1)&&(Zo=at()+500,Dc&&Qr()))}function nn(r,o){var l=r.callbackNode;GD(r,o);var u=vc(r,r===Et?Ct:0);if(u===0)l!==null&&GS(l),r.callbackNode=null,r.callbackPriority=0;else if(o=u&-u,r.callbackPriority!==o){if(l!=null&&GS(l),o===1)r.tag===0?V$(oE.bind(null,r)):Ww(oE.bind(null,r)),U$(function(){!(Be&6)&&Qr()}),l=null;else{switch(XS(u)){case 1:l=Zf;break;case 4:l=YS;break;case 16:l=hc;break;case 536870912:l=KS;break;default:l=hc}l=pE(l,sE.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function sE(r,o){if(lu=-1,cu=0,Be&6)throw Error(n(327));var l=r.callbackNode;if(ei()&&r.callbackNode!==l)return null;var u=vc(r,r===Et?Ct:0);if(u===0)return null;if(u&30||u&r.expiredLanes||o)o=uu(r,u);else{o=u;var p=Be;Be|=2;var m=aE();(Et!==r||Ct!==o)&&(vr=null,Zo=at()+500,Hs(r,o));do try{p8();break}catch(k){iE(r,k)}while(!0);$p(),ru.current=m,Be=p,dt!==null?o=0:(Et=null,Ct=0,o=mt)}if(o!==0){if(o===2&&(p=ep(r),p!==0&&(u=p,o=_h(r,p))),o===1)throw l=va,Hs(r,0),rs(r,u),nn(r,at()),l;if(o===6)rs(r,u);else{if(p=r.current.alternate,!(u&30)&&!d8(p)&&(o=uu(r,u),o===2&&(m=ep(r),m!==0&&(u=m,o=_h(r,m))),o===1))throw l=va,Hs(r,0),rs(r,u),nn(r,at()),l;switch(r.finishedWork=p,r.finishedLanes=u,o){case 0:case 1:throw Error(n(345));case 2:Ws(r,tn,vr);break;case 3:if(rs(r,u),(u&130023424)===u&&(o=vh+500-at(),10<o)){if(vc(r,0)!==0)break;if(p=r.suspendedLanes,(p&u)!==u){zt(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=bp(Ws.bind(null,r,tn,vr),o);break}Ws(r,tn,vr);break;case 4:if(rs(r,u),(u&4194240)===u)break;for(o=r.eventTimes,p=-1;0<u;){var S=31-On(u);m=1<<S,S=o[S],S>p&&(p=S),u&=~m}if(u=p,u=at()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*u8(u/1960))-u,10<u){r.timeoutHandle=bp(Ws.bind(null,r,tn,vr),u);break}Ws(r,tn,vr);break;case 5:Ws(r,tn,vr);break;default:throw Error(n(329))}}}return nn(r,at()),r.callbackNode===l?sE.bind(null,r):null}function _h(r,o){var l=Sa;return r.current.memoizedState.isDehydrated&&(Hs(r,o).flags|=256),r=uu(r,o),r!==2&&(o=tn,tn=l,o!==null&&Eh(o)),r}function Eh(r){tn===null?tn=r:tn.push.apply(tn,r)}function d8(r){for(var o=r;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var p=l[u],m=p.getSnapshot;p=p.value;try{if(!Pn(m(),p))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function rs(r,o){for(o&=~yh,o&=~su,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-On(o),u=1<<l;r[l]=-1,o&=~u}}function oE(r){if(Be&6)throw Error(n(327));ei();var o=vc(r,0);if(!(o&1))return nn(r,at()),null;var l=uu(r,o);if(r.tag!==0&&l===2){var u=ep(r);u!==0&&(o=u,l=_h(r,u))}if(l===1)throw l=va,Hs(r,0),rs(r,o),nn(r,at()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Ws(r,tn,vr),nn(r,at()),null}function xh(r,o){var l=Be;Be|=1;try{return r(o)}finally{Be=l,Be===0&&(Zo=at()+500,Dc&&Qr())}}function Us(r){ts!==null&&ts.tag===0&&!(Be&6)&&ei();var o=Be;Be|=1;var l=Sn.transition,u=He;try{if(Sn.transition=null,He=1,r)return r()}finally{He=u,Sn.transition=l,Be=o,!(Be&6)&&Qr()}}function Th(){dn=Jo.current,Xe(Jo)}function Hs(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,z$(l)),dt!==null)for(l=dt.return;l!==null;){var u=l;switch(Np(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Lc();break;case 3:Ko(),Xe(Jt),Xe(Ot),Vp();break;case 5:Wp(u);break;case 4:Ko();break;case 13:Xe(et);break;case 19:Xe(et);break;case 10:Bp(u.type._context);break;case 22:case 23:Th()}l=l.return}if(Et=r,dt=r=ss(r.current,null),Ct=dn=o,mt=0,va=null,yh=su=zs=0,tn=Sa=null,$s!==null){for(o=0;o<$s.length;o++)if(l=$s[o],u=l.interleaved,u!==null){l.interleaved=null;var p=u.next,m=l.pending;if(m!==null){var S=m.next;m.next=p,u.next=S}l.pending=u}$s=null}return r}function iE(r,o){do{var l=dt;try{if($p(),Gc.current=Xc,Yc){for(var u=tt.memoizedState;u!==null;){var p=u.queue;p!==null&&(p.pending=null),u=u.next}Yc=!1}if(Fs=0,_t=ht=tt=null,fa=!1,pa=0,gh.current=null,l===null||l.return===null){mt=1,va=o,dt=null;break}e:{var m=r,S=l.return,k=l,I=o;if(o=Ct,k.flags|=32768,I!==null&&typeof I=="object"&&typeof I.then=="function"){var D=I,Y=k,Q=Y.tag;if(!(Y.mode&1)&&(Q===0||Q===11||Q===15)){var G=Y.alternate;G?(Y.updateQueue=G.updateQueue,Y.memoizedState=G.memoizedState,Y.lanes=G.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var re=O_(S);if(re!==null){re.flags&=-257,P_(re,S,k,m,o),re.mode&1&&A_(m,D,o),o=re,I=D;var ae=o.updateQueue;if(ae===null){var le=new Set;le.add(I),o.updateQueue=le}else ae.add(I);break e}else{if(!(o&1)){A_(m,D,o),kh();break e}I=Error(n(426))}}else if(Ze&&k.mode&1){var lt=O_(S);if(lt!==null){!(lt.flags&65536)&&(lt.flags|=256),P_(lt,S,k,m,o),jp(Qo(I,k));break e}}m=I=Qo(I,k),mt!==4&&(mt=2),Sa===null?Sa=[m]:Sa.push(m),m=S;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var N=C_(m,I,o);t_(m,N);break e;case 1:k=I;var b=m.type,M=m.stateNode;if(!(m.flags&128)&&(typeof b.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(es===null||!es.has(M)))){m.flags|=65536,o&=-o,m.lanes|=o;var X=R_(m,k,o);t_(m,X);break e}}m=m.return}while(m!==null)}cE(l)}catch(ce){o=ce,dt===l&&l!==null&&(dt=l=l.return);continue}break}while(!0)}function aE(){var r=ru.current;return ru.current=Xc,r===null?Xc:r}function kh(){(mt===0||mt===3||mt===2)&&(mt=4),Et===null||!(zs&268435455)&&!(su&268435455)||rs(Et,Ct)}function uu(r,o){var l=Be;Be|=2;var u=aE();(Et!==r||Ct!==o)&&(vr=null,Hs(r,o));do try{f8();break}catch(p){iE(r,p)}while(!0);if($p(),Be=l,ru.current=u,dt!==null)throw Error(n(261));return Et=null,Ct=0,mt}function f8(){for(;dt!==null;)lE(dt)}function p8(){for(;dt!==null&&!$D();)lE(dt)}function lE(r){var o=fE(r.alternate,r,dn);r.memoizedProps=r.pendingProps,o===null?cE(r):dt=o,gh.current=null}function cE(r){var o=r;do{var l=o.alternate;if(r=o.return,o.flags&32768){if(l=i8(l,o),l!==null){l.flags&=32767,dt=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{mt=6,dt=null;return}}else if(l=o8(l,o,dn),l!==null){dt=l;return}if(o=o.sibling,o!==null){dt=o;return}dt=o=r}while(o!==null);mt===0&&(mt=5)}function Ws(r,o,l){var u=He,p=Sn.transition;try{Sn.transition=null,He=1,h8(r,o,l,u)}finally{Sn.transition=p,He=u}return null}function h8(r,o,l,u){do ei();while(ts!==null);if(Be&6)throw Error(n(327));l=r.finishedWork;var p=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var m=l.lanes|l.childLanes;if(YD(r,m),r===Et&&(dt=Et=null,Ct=0),!(l.subtreeFlags&2064)&&!(l.flags&2064)||iu||(iu=!0,pE(hc,function(){return ei(),null})),m=(l.flags&15990)!==0,l.subtreeFlags&15990||m){m=Sn.transition,Sn.transition=null;var S=He;He=1;var k=Be;Be|=4,gh.current=null,l8(r,l),Z_(l,r),M$(kp),_c=!!Tp,kp=Tp=null,r.current=l,c8(l),BD(),Be=k,He=S,Sn.transition=m}else r.current=l;if(iu&&(iu=!1,ts=r,au=p),m=r.pendingLanes,m===0&&(es=null),UD(l.stateNode),nn(r,at()),o!==null)for(u=r.onRecoverableError,l=0;l<o.length;l++)p=o[l],u(p.value,{componentStack:p.stack,digest:p.digest});if(ou)throw ou=!1,r=Sh,Sh=null,r;return au&1&&r.tag!==0&&ei(),m=r.pendingLanes,m&1?r===wh?wa++:(wa=0,wh=r):wa=0,Qr(),null}function ei(){if(ts!==null){var r=XS(au),o=Sn.transition,l=He;try{if(Sn.transition=null,He=16>r?16:r,ts===null)var u=!1;else{if(r=ts,ts=null,au=0,Be&6)throw Error(n(331));var p=Be;for(Be|=4,ie=r.current;ie!==null;){var m=ie,S=m.child;if(ie.flags&16){var k=m.deletions;if(k!==null){for(var I=0;I<k.length;I++){var D=k[I];for(ie=D;ie!==null;){var Y=ie;switch(Y.tag){case 0:case 11:case 15:ya(8,Y,m)}var Q=Y.child;if(Q!==null)Q.return=Y,ie=Q;else for(;ie!==null;){Y=ie;var G=Y.sibling,re=Y.return;if(Y_(Y),Y===D){ie=null;break}if(G!==null){G.return=re,ie=G;break}ie=re}}}var ae=m.alternate;if(ae!==null){var le=ae.child;if(le!==null){ae.child=null;do{var lt=le.sibling;le.sibling=null,le=lt}while(le!==null)}}ie=m}}if(m.subtreeFlags&2064&&S!==null)S.return=m,ie=S;else e:for(;ie!==null;){if(m=ie,m.flags&2048)switch(m.tag){case 0:case 11:case 15:ya(9,m,m.return)}var N=m.sibling;if(N!==null){N.return=m.return,ie=N;break e}ie=m.return}}var b=r.current;for(ie=b;ie!==null;){S=ie;var M=S.child;if(S.subtreeFlags&2064&&M!==null)M.return=S,ie=M;else e:for(S=b;ie!==null;){if(k=ie,k.flags&2048)try{switch(k.tag){case 0:case 11:case 15:nu(9,k)}}catch(ce){rt(k,k.return,ce)}if(k===S){ie=null;break e}var X=k.sibling;if(X!==null){X.return=k.return,ie=X;break e}ie=k.return}}if(Be=p,Qr(),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(mc,r)}catch{}u=!0}return u}finally{He=l,Sn.transition=o}}return!1}function uE(r,o,l){o=Qo(l,o),o=C_(r,o,1),r=Jr(r,o,1),o=zt(),r!==null&&(Wi(r,1,o),nn(r,o))}function rt(r,o,l){if(r.tag===3)uE(r,r,l);else for(;o!==null;){if(o.tag===3){uE(o,r,l);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(es===null||!es.has(u))){r=Qo(l,r),r=R_(o,r,1),o=Jr(o,r,1),r=zt(),o!==null&&(Wi(o,1,r),nn(o,r));break}}o=o.return}}function m8(r,o,l){var u=r.pingCache;u!==null&&u.delete(o),o=zt(),r.pingedLanes|=r.suspendedLanes&l,Et===r&&(Ct&l)===l&&(mt===4||mt===3&&(Ct&130023424)===Ct&&500>at()-vh?Hs(r,0):yh|=l),nn(r,o)}function dE(r,o){o===0&&(r.mode&1?(o=yc,yc<<=1,!(yc&130023424)&&(yc=4194304)):o=1);var l=zt();r=mr(r,o),r!==null&&(Wi(r,o,l),nn(r,l))}function g8(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),dE(r,l)}function y8(r,o){var l=0;switch(r.tag){case 13:var u=r.stateNode,p=r.memoizedState;p!==null&&(l=p.retryLane);break;case 19:u=r.stateNode;break;default:throw Error(n(314))}u!==null&&u.delete(o),dE(r,l)}var fE;fE=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||Jt.current)en=!0;else{if(!(r.lanes&l)&&!(o.flags&128))return en=!1,s8(r,o,l);en=!!(r.flags&131072)}else en=!1,Ze&&o.flags&1048576&&qw(o,Bc,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;eu(r,o),r=o.pendingProps;var p=Uo(o,Ot.current);Yo(o,l),p=Kp(null,o,u,r,p,l);var m=Qp();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Zt(u)?(m=!0,jc(o)):m=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Up(o),p.updater=Jc,o.stateNode=p,p._reactInternals=o,nh(o,u,r,l),o=ih(null,o,u,!0,m,l)):(o.tag=0,Ze&&m&&Pp(o),Ft(null,o,p,l),o=o.child),o;case 16:u=o.elementType;e:{switch(eu(r,o),r=o.pendingProps,p=u._init,u=p(u._payload),o.type=u,p=o.tag=S8(u),r=Mn(u,r),p){case 0:o=oh(null,o,u,r,l);break e;case 1:o=$_(null,o,u,r,l);break e;case 11:o=N_(null,o,u,r,l);break e;case 14:o=M_(null,o,u,Mn(u.type,r),l);break e}throw Error(n(306,u,""))}return o;case 0:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Mn(u,p),oh(r,o,u,p,l);case 1:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Mn(u,p),$_(r,o,u,p,l);case 3:e:{if(B_(o),r===null)throw Error(n(387));u=o.pendingProps,m=o.memoizedState,p=m.element,e_(r,o),qc(o,u,null,l);var S=o.memoizedState;if(u=S.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){p=Qo(Error(n(423)),o),o=F_(r,o,u,l,p);break e}else if(u!==p){p=Qo(Error(n(424)),o),o=F_(r,o,u,l,p);break e}else for(un=Gr(o.stateNode.containerInfo.firstChild),cn=o,Ze=!0,Nn=null,l=Jw(o,null,u,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(qo(),u===p){o=yr(r,o,l);break e}Ft(r,o,u,l)}o=o.child}return o;case 5:return r_(o),r===null&&Lp(o),u=o.type,p=o.pendingProps,m=r!==null?r.memoizedProps:null,S=p.children,Ip(u,p)?S=null:m!==null&&Ip(u,m)&&(o.flags|=32),D_(r,o),Ft(r,o,S,l),o.child;case 6:return r===null&&Lp(o),null;case 13:return z_(r,o,l);case 4:return Hp(o,o.stateNode.containerInfo),u=o.pendingProps,r===null?o.child=Vo(o,null,u,l):Ft(r,o,u,l),o.child;case 11:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Mn(u,p),N_(r,o,u,p,l);case 7:return Ft(r,o,o.pendingProps,l),o.child;case 8:return Ft(r,o,o.pendingProps.children,l),o.child;case 12:return Ft(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(u=o.type._context,p=o.pendingProps,m=o.memoizedProps,S=p.value,Ke(Uc,u._currentValue),u._currentValue=S,m!==null)if(Pn(m.value,S)){if(m.children===p.children&&!Jt.current){o=yr(r,o,l);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var k=m.dependencies;if(k!==null){S=m.child;for(var I=k.firstContext;I!==null;){if(I.context===u){if(m.tag===1){I=gr(-1,l&-l),I.tag=2;var D=m.updateQueue;if(D!==null){D=D.shared;var Y=D.pending;Y===null?I.next=I:(I.next=Y.next,Y.next=I),D.pending=I}}m.lanes|=l,I=m.alternate,I!==null&&(I.lanes|=l),Fp(m.return,l,o),k.lanes|=l;break}I=I.next}}else if(m.tag===10)S=m.type===o.type?null:m.child;else if(m.tag===18){if(S=m.return,S===null)throw Error(n(341));S.lanes|=l,k=S.alternate,k!==null&&(k.lanes|=l),Fp(S,l,o),S=m.sibling}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===o){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}Ft(r,o,p.children,l),o=o.child}return o;case 9:return p=o.type,u=o.pendingProps.children,Yo(o,l),p=yn(p),u=u(p),o.flags|=1,Ft(r,o,u,l),o.child;case 14:return u=o.type,p=Mn(u,o.pendingProps),p=Mn(u.type,p),M_(r,o,u,p,l);case 15:return L_(r,o,o.type,o.pendingProps,l);case 17:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Mn(u,p),eu(r,o),o.tag=1,Zt(u)?(r=!0,jc(o)):r=!1,Yo(o,l),I_(o,u,p),nh(o,u,p,l),ih(null,o,u,!0,r,l);case 19:return H_(r,o,l);case 22:return j_(r,o,l)}throw Error(n(156,o.tag))};function pE(r,o){return VS(r,o)}function v8(r,o,l,u){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wn(r,o,l,u){return new v8(r,o,l,u)}function Ih(r){return r=r.prototype,!(!r||!r.isReactComponent)}function S8(r){if(typeof r=="function")return Ih(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Z)return 11;if(r===De)return 14}return 2}function ss(r,o){var l=r.alternate;return l===null?(l=wn(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function du(r,o,l,u,p,m){var S=2;if(u=r,typeof r=="function")Ih(r)&&(S=1);else if(typeof r=="string")S=5;else e:switch(r){case C:return qs(l.children,p,m,o);case W:S=8,p|=8;break;case B:return r=wn(12,l,o,p|2),r.elementType=B,r.lanes=m,r;case ue:return r=wn(13,l,o,p),r.elementType=ue,r.lanes=m,r;case me:return r=wn(19,l,o,p),r.elementType=me,r.lanes=m,r;case Se:return fu(l,p,m,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case U:S=10;break e;case J:S=9;break e;case Z:S=11;break e;case De:S=14;break e;case te:S=16,u=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=wn(S,l,o,p),o.elementType=r,o.type=u,o.lanes=m,o}function qs(r,o,l,u){return r=wn(7,r,u,o),r.lanes=l,r}function fu(r,o,l,u){return r=wn(22,r,u,o),r.elementType=Se,r.lanes=l,r.stateNode={isHidden:!1},r}function bh(r,o,l){return r=wn(6,r,null,o),r.lanes=l,r}function Ch(r,o,l){return o=wn(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function w8(r,o,l,u,p){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tp(0),this.expirationTimes=tp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tp(0),this.identifierPrefix=u,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Rh(r,o,l,u,p,m,S,k,I){return r=new w8(r,o,l,k,I),o===1?(o=1,m===!0&&(o|=8)):o=0,m=wn(3,null,null,o),r.current=m,m.stateNode=r,m.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Up(m),r}function _8(r,o,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:u==null?null:""+u,children:r,containerInfo:o,implementation:l}}function hE(r){if(!r)return Kr;r=r._reactInternals;e:{if(Ns(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Zt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(Zt(l))return Uw(r,l,o)}return o}function mE(r,o,l,u,p,m,S,k,I){return r=Rh(l,u,!0,r,p,m,S,k,I),r.context=hE(null),l=r.current,u=zt(),p=ns(l),m=gr(u,p),m.callback=o??null,Jr(l,m,p),r.current.lanes=p,Wi(r,p,u),nn(r,u),r}function pu(r,o,l,u){var p=o.current,m=zt(),S=ns(p);return l=hE(l),o.context===null?o.context=l:o.pendingContext=l,o=gr(m,S),o.payload={element:r},u=u===void 0?null:u,u!==null&&(o.callback=u),r=Jr(p,o,S),r!==null&&(Dn(r,p,S,m),Wc(r,p,S)),S}function hu(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function gE(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function Ah(r,o){gE(r,o),(r=r.alternate)&&gE(r,o)}function E8(){return null}var yE=typeof reportError=="function"?reportError:function(r){console.error(r)};function Oh(r){this._internalRoot=r}mu.prototype.render=Oh.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));pu(r,o,null,null)},mu.prototype.unmount=Oh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Us(function(){pu(null,r,null,null)}),o[dr]=null}};function mu(r){this._internalRoot=r}mu.prototype.unstable_scheduleHydration=function(r){if(r){var o=ew();r={blockedOn:null,target:r,priority:o};for(var l=0;l<Wr.length&&o!==0&&o<Wr[l].priority;l++);Wr.splice(l,0,r),l===0&&rw(r)}};function Ph(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function gu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function vE(){}function x8(r,o,l,u,p){if(p){if(typeof u=="function"){var m=u;u=function(){var D=hu(S);m.call(D)}}var S=mE(o,u,r,0,null,!1,!1,"",vE);return r._reactRootContainer=S,r[dr]=S.current,sa(r.nodeType===8?r.parentNode:r),Us(),S}for(;p=r.lastChild;)r.removeChild(p);if(typeof u=="function"){var k=u;u=function(){var D=hu(I);k.call(D)}}var I=Rh(r,0,!1,null,null,!1,!1,"",vE);return r._reactRootContainer=I,r[dr]=I.current,sa(r.nodeType===8?r.parentNode:r),Us(function(){pu(o,I,l,u)}),I}function yu(r,o,l,u,p){var m=l._reactRootContainer;if(m){var S=m;if(typeof p=="function"){var k=p;p=function(){var I=hu(S);k.call(I)}}pu(o,S,r,p)}else S=x8(l,o,r,p,u);return hu(S)}JS=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=Hi(o.pendingLanes);l!==0&&(np(o,l|1),nn(o,at()),!(Be&6)&&(Zo=at()+500,Qr()))}break;case 13:Us(function(){var u=mr(r,1);if(u!==null){var p=zt();Dn(u,r,1,p)}}),Ah(r,1)}},rp=function(r){if(r.tag===13){var o=mr(r,134217728);if(o!==null){var l=zt();Dn(o,r,134217728,l)}Ah(r,134217728)}},ZS=function(r){if(r.tag===13){var o=ns(r),l=mr(r,o);if(l!==null){var u=zt();Dn(l,r,o,u)}Ah(r,o)}},ew=function(){return He},tw=function(r,o){var l=He;try{return He=r,o()}finally{He=l}},Kf=function(r,o,l){switch(o){case"input":if(As(r,l),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var u=l[o];if(u!==r&&u.form===r.form){var p=Mc(u);if(!p)throw Error(n(90));cc(u),As(u,p)}}}break;case"textarea":je(r,l);break;case"select":o=l.value,o!=null&&wt(r,!!l.multiple,o,!1)}},BS=xh,FS=Us;var T8={usingClientEntryPoint:!1,Events:[aa,Fo,Mc,DS,$S,xh]},_a={findFiberByHostInstance:Ms,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},k8={bundleType:_a.bundleType,version:_a.version,rendererPackageName:_a.rendererPackageName,rendererConfig:_a.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=WS(r),r===null?null:r.stateNode},findFiberByHostInstance:_a.findFiberByHostInstance||E8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vu.isDisabled&&vu.supportsFiber)try{mc=vu.inject(k8),Kn=vu}catch{}}return Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T8,Wt.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ph(o))throw Error(n(200));return _8(r,o,null,l)},Wt.createRoot=function(r,o){if(!Ph(r))throw Error(n(299));var l=!1,u="",p=yE;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=Rh(r,1,!1,null,null,l,!1,u,p),r[dr]=o.current,sa(r.nodeType===8?r.parentNode:r),new Oh(o)},Wt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=WS(o),r=r===null?null:r.stateNode,r},Wt.flushSync=function(r){return Us(r)},Wt.hydrate=function(r,o,l){if(!gu(o))throw Error(n(200));return yu(null,r,o,!0,l)},Wt.hydrateRoot=function(r,o,l){if(!Ph(r))throw Error(n(405));var u=l!=null&&l.hydratedSources||null,p=!1,m="",S=yE;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(S=l.onRecoverableError)),o=mE(o,null,r,1,l??null,p,!1,m,S),r[dr]=o.current,sa(r),u)for(r=0;r<u.length;r++)l=u[r],p=l._getVersion,p=p(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,p]:o.mutableSourceEagerHydrationData.push(l,p);return new mu(o)},Wt.render=function(r,o,l){if(!gu(o))throw Error(n(200));return yu(null,r,o,!1,l)},Wt.unmountComponentAtNode=function(r){if(!gu(r))throw Error(n(40));return r._reactRootContainer?(Us(function(){yu(null,null,r,!1,function(){r._reactRootContainer=null,r[dr]=null})}),!0):!1},Wt.unstable_batchedUpdates=xh,Wt.unstable_renderSubtreeIntoContainer=function(r,o,l,u){if(!gu(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return yu(r,o,l,!1,u)},Wt.version="18.3.1-next-f1338f8080-20240426",Wt}var Fh;function zh(){if(Fh)return _u.exports;Fh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_u.exports=kE(),_u.exports}var Uh;function IE(){if(Uh)return Ea;Uh=1;var e=zh();return Ea.createRoot=e.createRoot,Ea.hydrateRoot=e.hydrateRoot,Ea}var bE=IE();const Sr=e=>{const t=crypto.randomUUID();return e?t.substring(0,e):t},CE=()=>{localStorage.removeItem("edmap-access-token"),localStorage.removeItem("edmap-refresh-token")},RE=async()=>(AE(),await jr()),AE=()=>{localStorage.removeItem("edmap-user-id")},OE=()=>{const e=new URL(window.location.href);e.searchParams.delete("code"),window.history.replaceState({index:0,scrollX:0,scrollY:document.scrollY},"",e.toString())},Hh=async()=>(CE(),OE(),await RE());function Wh(e,t){return function(){return e.apply(t,arguments)}}const{toString:PE}=Object.prototype,{getPrototypeOf:Tu}=Object,xa=(e=>t=>{const n=PE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_n=e=>(e=e.toLowerCase(),t=>xa(t)===e),Ta=e=>t=>typeof t===e,{isArray:Vs}=Array,ti=Ta("undefined");function NE(e){return e!==null&&!ti(e)&&e.constructor!==null&&!ti(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qh=_n("ArrayBuffer");function ME(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qh(e.buffer),t}const LE=Ta("string"),rn=Ta("function"),Vh=Ta("number"),ka=e=>e!==null&&typeof e=="object",jE=e=>e===!0||e===!1,Ia=e=>{if(xa(e)!=="object")return!1;const t=Tu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},DE=_n("Date"),$E=_n("File"),BE=_n("Blob"),FE=_n("FileList"),zE=e=>ka(e)&&rn(e.pipe),UE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rn(e.append)&&((t=xa(e))==="formdata"||t==="object"&&rn(e.toString)&&e.toString()==="[object FormData]"))},HE=_n("URLSearchParams"),[WE,qE,VE,GE]=["ReadableStream","Request","Response","Headers"].map(_n),YE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ni(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Vs(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),c=a.length;let d;for(s=0;s<c;s++)d=a[s],t.call(null,e[d],d,e)}}function Gh(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yh=e=>!ti(e)&&e!==is;function ku(){const{caseless:e}=Yh(this)&&this||{},t={},n=(s,i)=>{const a=e&&Gh(t,i)||i;Ia(t[a])&&Ia(s)?t[a]=ku(t[a],s):Ia(s)?t[a]=ku({},s):Vs(s)?t[a]=s.slice():t[a]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&ni(arguments[s],n);return t}const KE=(e,t,n,{allOwnKeys:s}={})=>(ni(t,(i,a)=>{n&&rn(i)?e[a]=Wh(i,n):e[a]=i},{allOwnKeys:s}),e),QE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XE=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},JE=(e,t,n,s)=>{let i,a,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)c=i[a],(!s||s(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&Tu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ZE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},ex=e=>{if(!e)return null;if(Vs(e))return e;let t=e.length;if(!Vh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Tu(Uint8Array)),nx=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},rx=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},sx=_n("HTMLFormElement"),ox=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),Kh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ix=_n("RegExp"),Qh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ni(n,(i,a)=>{let c;(c=t(i,a,e))!==!1&&(s[a]=c||i)}),Object.defineProperties(e,s)},ax=e=>{Qh(e,(t,n)=>{if(rn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(rn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lx=(e,t)=>{const n={},s=i=>{i.forEach(a=>{n[a]=!0})};return Vs(e)?s(e):s(String(e).split(t)),n},cx=()=>{},ux=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Iu="abcdefghijklmnopqrstuvwxyz",Xh="0123456789",Jh={DIGIT:Xh,ALPHA:Iu,ALPHA_DIGIT:Iu+Iu.toUpperCase()+Xh},dx=(e=16,t=Jh.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function fx(e){return!!(e&&rn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const px=e=>{const t=new Array(10),n=(s,i)=>{if(ka(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const a=Vs(s)?[]:{};return ni(s,(c,d)=>{const f=n(c,i+1);!ti(f)&&(a[d]=f)}),t[i]=void 0,a}}return s};return n(e,0)},hx=_n("AsyncFunction"),mx=e=>e&&(ka(e)||rn(e))&&rn(e.then)&&rn(e.catch),Zh=((e,t)=>e?setImmediate:t?((n,s)=>(is.addEventListener("message",({source:i,data:a})=>{i===is&&a===n&&s.length&&s.shift()()},!1),i=>{s.push(i),is.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",rn(is.postMessage)),gx=typeof queueMicrotask<"u"?queueMicrotask.bind(is):typeof process<"u"&&process.nextTick||Zh,z={isArray:Vs,isArrayBuffer:qh,isBuffer:NE,isFormData:UE,isArrayBufferView:ME,isString:LE,isNumber:Vh,isBoolean:jE,isObject:ka,isPlainObject:Ia,isReadableStream:WE,isRequest:qE,isResponse:VE,isHeaders:GE,isUndefined:ti,isDate:DE,isFile:$E,isBlob:BE,isRegExp:ix,isFunction:rn,isStream:zE,isURLSearchParams:HE,isTypedArray:tx,isFileList:FE,forEach:ni,merge:ku,extend:KE,trim:YE,stripBOM:QE,inherits:XE,toFlatObject:JE,kindOf:xa,kindOfTest:_n,endsWith:ZE,toArray:ex,forEachEntry:nx,matchAll:rx,isHTMLForm:sx,hasOwnProperty:Kh,hasOwnProp:Kh,reduceDescriptors:Qh,freezeMethods:ax,toObjectSet:lx,toCamelCase:ox,noop:cx,toFiniteNumber:ux,findKey:Gh,global:is,isContextDefined:Yh,ALPHABET:Jh,generateString:dx,isSpecCompliantForm:fx,toJSONObject:px,isAsyncFn:hx,isThenable:mx,setImmediate:Zh,asap:gx};function xe(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}z.inherits(xe,Error,{toJSON:function(){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:z.toJSONObject(this.config),code:this.code,status:this.status}}});const em=xe.prototype,tm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tm[e]={value:e}}),Object.defineProperties(xe,tm),Object.defineProperty(em,"isAxiosError",{value:!0}),xe.from=(e,t,n,s,i,a)=>{const c=Object.create(em);return z.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),xe.call(c,e.message,t,n,s,i),c.cause=e,c.name=e.name,a&&Object.assign(c,a),c};const yx=null;function bu(e){return z.isPlainObject(e)||z.isArray(e)}function nm(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function rm(e,t,n){return e?e.concat(t).map(function(i,a){return i=nm(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function vx(e){return z.isArray(e)&&!e.some(bu)}const Sx=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function ba(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,T){return!z.isUndefined(T[E])});const s=n.metaTokens,i=n.visitor||g,a=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(z.isDate(_))return _.toISOString();if(!f&&z.isBlob(_))throw new xe("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(_)||z.isTypedArray(_)?f&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function g(_,E,T){let A=_;if(_&&!T&&typeof _=="object"){if(z.endsWith(E,"{}"))E=s?E:E.slice(0,-2),_=JSON.stringify(_);else if(z.isArray(_)&&vx(_)||(z.isFileList(_)||z.endsWith(E,"[]"))&&(A=z.toArray(_)))return E=nm(E),A.forEach(function(j,K){!(z.isUndefined(j)||j===null)&&t.append(c===!0?rm([E],K,a):c===null?E:E+"[]",h(j))}),!1}return bu(_)?!0:(t.append(rm(T,E,a),h(_)),!1)}const y=[],w=Object.assign(Sx,{defaultVisitor:g,convertValue:h,isVisitable:bu});function x(_,E){if(!z.isUndefined(_)){if(y.indexOf(_)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(_),z.forEach(_,function(A,L){(!(z.isUndefined(A)||A===null)&&i.call(t,A,z.isString(L)?L.trim():L,E,w))===!0&&x(A,E?E.concat(L):[L])}),y.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function sm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Cu(e,t){this._pairs=[],e&&ba(e,this,t)}const om=Cu.prototype;om.append=function(t,n){this._pairs.push([t,n])},om.toString=function(t){const n=t?function(s){return t.call(this,s,sm)}:sm;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function wx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function im(e,t,n){if(!t)return e;const s=n&&n.encode||wx;z.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=z.isURLSearchParams(t)?t.toString():new Cu(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}let am=class{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(s){s!==null&&t(s)})}};const lm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_x={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Cu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ru=typeof window<"u"&&typeof document<"u",Au=typeof navigator=="object"&&navigator||void 0,Ex=Ru&&(!Au||["ReactNative","NativeScript","NS"].indexOf(Au.product)<0),xx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tx=Ru&&window.location.href||"http://localhost",Rt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ru,hasStandardBrowserEnv:Ex,hasStandardBrowserWebWorkerEnv:xx,navigator:Au,origin:Tx},Symbol.toStringTag,{value:"Module"})),..._x};function kx(e,t){return ba(e,new Rt.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,a){return Rt.isNode&&z.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Ix(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bx(e){const t={},n=Object.keys(e);let s;const i=n.length;let a;for(s=0;s<i;s++)a=n[s],t[a]=e[a];return t}function cm(e){function t(n,s,i,a){let c=n[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=a>=n.length;return c=!c&&z.isArray(i)?i.length:c,f?(z.hasOwnProp(i,c)?i[c]=[i[c],s]:i[c]=s,!d):((!i[c]||!z.isObject(i[c]))&&(i[c]=[]),t(n,s,i[c],a)&&z.isArray(i[c])&&(i[c]=bx(i[c])),!d)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(s,i)=>{t(Ix(s),i,n,0)}),n}return null}function Cx(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const ri={transitional:lm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,a=z.isObject(t);if(a&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return i?JSON.stringify(cm(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return kx(t,this.formSerializer).toString();if((d=z.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ba(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Cx(t)):t}],transformResponse:[function(t){const n=this.transitional||ri.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(s&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?xe.from(d,xe.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{ri.headers[e]={}});const Rx=z.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"]),Ax=e=>{const t={};let n,s,i;return e&&e.split(`
`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),s=c.substring(i+1).trim(),!(!n||t[n]&&Rx[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},um=Symbol("internals");function si(e){return e&&String(e).trim().toLowerCase()}function Ca(e){return e===!1||e==null?e:z.isArray(e)?e.map(Ca):String(e)}function Ox(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Px=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ou(e,t,n,s,i){if(z.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!z.isString(t)){if(z.isString(s))return t.indexOf(s)!==-1;if(z.isRegExp(s))return s.test(t)}}function Nx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Mx(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,a,c){return this[s].call(this,t,i,a,c)},configurable:!0})})}let qt=class{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function a(d,f,h){const g=si(f);if(!g)throw new Error("header name must be a non-empty string");const y=z.findKey(i,g);(!y||i[y]===void 0||h===!0||h===void 0&&i[y]!==!1)&&(i[y||f]=Ca(d))}const c=(d,f)=>z.forEach(d,(h,g)=>a(h,g,f));if(z.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(z.isString(t)&&(t=t.trim())&&!Px(t))c(Ax(t),n);else if(z.isHeaders(t))for(const[d,f]of t.entries())a(f,d,s);else t!=null&&a(n,t,s);return this}get(t,n){if(t=si(t),t){const s=z.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return Ox(i);if(z.isFunction(n))return n.call(this,i,s);if(z.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=si(t),t){const s=z.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ou(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function a(c){if(c=si(c),c){const d=z.findKey(s,c);d&&(!n||Ou(s,s[d],d,n))&&(delete s[d],i=!0)}}return z.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const a=n[s];(!t||Ou(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,s={};return z.forEach(this,(i,a)=>{const c=z.findKey(s,a);if(c){n[c]=Ca(i),delete n[a];return}const d=t?Nx(a):String(a).trim();d!==a&&delete n[a],n[d]=Ca(i),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&z.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[um]=this[um]={accessors:{}}).accessors,i=this.prototype;function a(c){const d=si(c);s[d]||(Mx(i,c),s[d]=!0)}return z.isArray(t)?t.forEach(a):a(t),this}};qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(qt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),z.freezeMethods(qt);function Pu(e,t){const n=this||ri,s=t||n,i=qt.from(s.headers);let a=s.data;return z.forEach(e,function(d){a=d.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function dm(e){return!!(e&&e.__CANCEL__)}function Gs(e,t,n){xe.call(this,e??"canceled",xe.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(Gs,xe,{__CANCEL__:!0});function fm(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new xe("Request failed with status code "+n.status,[xe.ERR_BAD_REQUEST,xe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Lx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jx(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,a=0,c;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),g=s[a];c||(c=h),n[i]=f,s[i]=h;let y=a,w=0;for(;y!==i;)w+=n[y++],y=y%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),h-c<t)return;const x=g&&h-g;return x?Math.round(w*1e3/x):void 0}}function Dx(e,t){let n=0,s=1e3/t,i,a;const c=(h,g=Date.now())=>{n=g,i=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const g=Date.now(),y=g-n;y>=s?c(h,g):(i=h,a||(a=setTimeout(()=>{a=null,c(i)},s-y)))},()=>i&&c(i)]}const Ra=(e,t,n=3)=>{let s=0;const i=jx(50,250);return Dx(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,f=c-s,h=i(f),g=c<=d;s=c;const y={loaded:c,total:d,progress:d?c/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&g?(d-c)/h:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(y)},n)},pm=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},hm=e=>(...t)=>z.asap(()=>e(...t)),$x=Rt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Rt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Rt.origin),Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent)):()=>!0,Bx=Rt.hasStandardBrowserEnv?{write(e,t,n,s,i,a){const c=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),z.isString(s)&&c.push("path="+s),z.isString(i)&&c.push("domain="+i),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mm(e,t){return e&&!Fx(t)?zx(e,t):t}const gm=e=>e instanceof qt?{...e}:e;function as(e,t){t=t||{};const n={};function s(h,g,y,w){return z.isPlainObject(h)&&z.isPlainObject(g)?z.merge.call({caseless:w},h,g):z.isPlainObject(g)?z.merge({},g):z.isArray(g)?g.slice():g}function i(h,g,y,w){if(z.isUndefined(g)){if(!z.isUndefined(h))return s(void 0,h,y,w)}else return s(h,g,y,w)}function a(h,g){if(!z.isUndefined(g))return s(void 0,g)}function c(h,g){if(z.isUndefined(g)){if(!z.isUndefined(h))return s(void 0,h)}else return s(void 0,g)}function d(h,g,y){if(y in t)return s(h,g);if(y in e)return s(void 0,h)}const f={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(h,g,y)=>i(gm(h),gm(g),y,!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(g){const y=f[g]||i,w=y(e[g],t[g],g);z.isUndefined(w)&&y!==d||(n[g]=w)}),n}const ym=e=>{const t=as({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:a,headers:c,auth:d}=t;t.headers=c=qt.from(c),t.url=im(mm(t.baseURL,t.url),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(z.isFormData(n)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((f=c.getContentType())!==!1){const[h,...g]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...g].join("; "))}}if(Rt.hasStandardBrowserEnv&&(s&&z.isFunction(s)&&(s=s(t)),s||s!==!1&&$x(t.url))){const h=i&&a&&Bx.read(a);h&&c.set(i,h)}return t},Ux=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=ym(e);let a=i.data;const c=qt.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:h}=i,g,y,w,x,_;function E(){x&&x(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let T=new XMLHttpRequest;T.open(i.method.toUpperCase(),i.url,!0),T.timeout=i.timeout;function A(){if(!T)return;const j=qt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:j,config:e,request:T};fm(function(C){n(C),E()},function(C){s(C),E()},H),T=null}"onloadend"in T?T.onloadend=A:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(A)},T.onabort=function(){T&&(s(new xe("Request aborted",xe.ECONNABORTED,e,T)),T=null)},T.onerror=function(){s(new xe("Network Error",xe.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let K=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const H=i.transitional||lm;i.timeoutErrorMessage&&(K=i.timeoutErrorMessage),s(new xe(K,H.clarifyTimeoutError?xe.ETIMEDOUT:xe.ECONNABORTED,e,T)),T=null},a===void 0&&c.setContentType(null),"setRequestHeader"in T&&z.forEach(c.toJSON(),function(K,H){T.setRequestHeader(H,K)}),z.isUndefined(i.withCredentials)||(T.withCredentials=!!i.withCredentials),d&&d!=="json"&&(T.responseType=i.responseType),h&&([w,_]=Ra(h,!0),T.addEventListener("progress",w)),f&&T.upload&&([y,x]=Ra(f),T.upload.addEventListener("progress",y),T.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(g=j=>{T&&(s(!j||j.type?new Gs(null,e,T):j),T.abort(),T=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const L=Lx(i.url);if(L&&Rt.protocols.indexOf(L)===-1){s(new xe("Unsupported protocol "+L+":",xe.ERR_BAD_REQUEST,e));return}T.send(a||null)})},Hx=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const a=function(h){if(!i){i=!0,d();const g=h instanceof Error?h:this.reason;s.abort(g instanceof xe?g:new Gs(g instanceof Error?g.message:g))}};let c=t&&setTimeout(()=>{c=null,a(new xe(`timeout ${t} of ms exceeded`,xe.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=s;return f.unsubscribe=()=>z.asap(d),f}},Wx=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},qx=async function*(e,t){for await(const n of Vx(e))yield*Wx(n,t)},Vx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},vm=(e,t,n,s)=>{const i=qx(e,t);let a=0,c,d=f=>{c||(c=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:g}=await i.next();if(h){d(),f.close();return}let y=g.byteLength;if(n){let w=a+=y;n(w)}f.enqueue(new Uint8Array(g))}catch(h){throw d(h),h}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},Aa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sm=Aa&&typeof ReadableStream=="function",Gx=Aa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),wm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Yx=Sm&&wm(()=>{let e=!1;const t=new Request(Rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_m=64*1024,Nu=Sm&&wm(()=>z.isReadableStream(new Response("").body)),Oa={stream:Nu&&(e=>e.body)};Aa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Oa[t]&&(Oa[t]=z.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new xe(`Response type '${t}' is not supported`,xe.ERR_NOT_SUPPORT,s)})})})(new Response);const Kx=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(Rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await Gx(e)).byteLength},Qx=async(e,t)=>{const n=z.toFiniteNumber(e.getContentLength());return n??Kx(t)},Mu={http:yx,xhr:Ux,fetch:Aa&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:g,withCredentials:y="same-origin",fetchOptions:w}=ym(e);h=h?(h+"").toLowerCase():"text";let x=Hx([i,a&&a.toAbortSignal()],c),_;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let T;try{if(f&&Yx&&n!=="get"&&n!=="head"&&(T=await Qx(g,s))!==0){let H=new Request(t,{method:"POST",body:s,duplex:"half"}),O;if(z.isFormData(s)&&(O=H.headers.get("content-type"))&&g.setContentType(O),H.body){const[C,W]=pm(T,Ra(hm(f)));s=vm(H.body,_m,C,W)}}z.isString(y)||(y=y?"include":"omit");const A="credentials"in Request.prototype;_=new Request(t,{...w,signal:x,method:n.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:A?y:void 0});let L=await fetch(_);const j=Nu&&(h==="stream"||h==="response");if(Nu&&(d||j&&E)){const H={};["status","statusText","headers"].forEach(B=>{H[B]=L[B]});const O=z.toFiniteNumber(L.headers.get("content-length")),[C,W]=d&&pm(O,Ra(hm(d),!0))||[];L=new Response(vm(L.body,_m,C,()=>{W&&W(),E&&E()}),H)}h=h||"text";let K=await Oa[z.findKey(Oa,h)||"text"](L,e);return!j&&E&&E(),await new Promise((H,O)=>{fm(H,O,{data:K,headers:qt.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:_})})}catch(A){throw E&&E(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new xe("Network Error",xe.ERR_NETWORK,e,_),{cause:A.cause||A}):xe.from(A,A&&A.code,e,_)}})};z.forEach(Mu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Em=e=>`- ${e}`,Xx=e=>z.isFunction(e)||e===null||e===!1,xm={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let a=0;a<t;a++){n=e[a];let c;if(s=n,!Xx(n)&&(s=Mu[(c=String(n)).toLowerCase()],s===void 0))throw new xe(`Unknown adapter '${c}'`);if(s)break;i[c||"#"+a]=s}if(!s){const a=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=t?a.length>1?`since :
`+a.map(Em).join(`
`):" "+Em(a[0]):"as no adapter specified";throw new xe("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Mu};function Lu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gs(null,e)}function Tm(e){return Lu(e),e.headers=qt.from(e.headers),e.data=Pu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xm.getAdapter(e.adapter||ri.adapter)(e).then(function(s){return Lu(e),s.data=Pu.call(e,e.transformResponse,s),s.headers=qt.from(s.headers),s},function(s){return dm(s)||(Lu(e),s&&s.response&&(s.response.data=Pu.call(e,e.transformResponse,s.response),s.response.headers=qt.from(s.response.headers))),Promise.reject(s)})}const km="1.7.9",Pa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pa[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Im={};Pa.transitional=function(t,n,s){function i(a,c){return"[Axios v"+km+"] Transitional option '"+a+"'"+c+(s?". "+s:"")}return(a,c,d)=>{if(t===!1)throw new xe(i(c," has been removed"+(n?" in "+n:"")),xe.ERR_DEPRECATED);return n&&!Im[c]&&(Im[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,c,d):!0}},Pa.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Jx(e,t,n){if(typeof e!="object")throw new xe("options must be an object",xe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const a=s[i],c=t[a];if(c){const d=e[a],f=d===void 0||c(d,a,e);if(f!==!0)throw new xe("option "+a+" must be "+f,xe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xe("Unknown option "+a,xe.ERR_BAD_OPTION)}}const Na={assertOptions:Jx,validators:Pa},Bn=Na.validators;let ls=class{constructor(t){this.defaults=t,this.interceptors={request:new am,response:new am}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+a):s.stack=a}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=as(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:a}=n;s!==void 0&&Na.assertOptions(s,{silentJSONParsing:Bn.transitional(Bn.boolean),forcedJSONParsing:Bn.transitional(Bn.boolean),clarifyTimeoutError:Bn.transitional(Bn.boolean)},!1),i!=null&&(z.isFunction(i)?n.paramsSerializer={serialize:i}:Na.assertOptions(i,{encode:Bn.function,serialize:Bn.function},!0)),Na.assertOptions(n,{baseUrl:Bn.spelling("baseURL"),withXsrfToken:Bn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=a&&z.merge(a.common,a[n.method]);a&&z.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),n.headers=qt.concat(c,a);const d=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,d.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let g,y=0,w;if(!f){const _=[Tm.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),w=_.length,g=Promise.resolve(n);y<w;)g=g.then(_[y++],_[y++]);return g}w=d.length;let x=n;for(y=0;y<w;){const _=d[y++],E=d[y++];try{x=_(x)}catch(T){E.call(this,T);break}}try{g=Tm.call(this,x)}catch(_){return Promise.reject(_)}for(y=0,w=h.length;y<w;)g=g.then(h[y++],h[y++]);return g}getUri(t){t=as(this.defaults,t);const n=mm(t.baseURL,t.url);return im(n,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){ls.prototype[t]=function(n,s){return this.request(as(s||{},{method:t,url:n,data:(s||{}).data}))}}),z.forEach(["post","put","patch"],function(t){function n(s){return function(a,c,d){return this.request(as(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}ls.prototype[t]=n(),ls.prototype[t+"Form"]=n(!0)});let Zx=class SE{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const s=this;this.promise.then(i=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](i);s._listeners=null}),this.promise.then=i=>{let a;const c=new Promise(d=>{s.subscribe(d),a=d}).then(i);return c.cancel=function(){s.unsubscribe(a)},c},t(function(a,c,d){s.reason||(s.reason=new Gs(a,c,d),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new SE(function(i){t=i}),cancel:t}}};function eT(e){return function(n){return e.apply(null,n)}}function tT(e){return z.isObject(e)&&e.isAxiosError===!0}const ju={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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};Object.entries(ju).forEach(([e,t])=>{ju[t]=e});function bm(e){const t=new ls(e),n=Wh(ls.prototype.request,t);return z.extend(n,ls.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return bm(as(e,i))},n}const st=bm(ri);st.Axios=ls,st.CanceledError=Gs,st.CancelToken=Zx,st.isCancel=dm,st.VERSION=km,st.toFormData=ba,st.AxiosError=xe,st.Cancel=st.CanceledError,st.all=function(t){return Promise.all(t)},st.spread=eT,st.isAxiosError=tT,st.mergeConfig=as,st.AxiosHeaders=qt,st.formToJSON=e=>cm(z.isHTMLForm(e)?new FormData(e):e),st.getAdapter=xm.getAdapter,st.HttpStatusCode=ju,st.default=st;const Du="https://api.edmap.space",ct=st.create();ct.defaults.baseURL=Du,ct.interceptors.request.use(async e=>{const t=localStorage.getItem("edmap-access-token");return e.headers.Accept="application/json",t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));const oi={},Cm=async e=>(await Hh(),window.location.reload(),Promise.reject(e)),Rm=async(e,t)=>{const n=e.data.accessToken,s=e.data.refreshToken;return localStorage.setItem("edmap-access-token",n),localStorage.setItem("edmap-refresh-token",s),t.headers||(t.headers={}),t.headers.Authorization=`Bearer ${n}`,ct(t)};ct.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response.status===401,s=t._retry;if(!n||s)return Promise.reject(e);t._retry=!0;const i=localStorage.getItem("edmap-refresh-token");if(!i)return Cm(e);try{if(!oi.time||Date.now()-oi.time>1e3*3){const c=st.post(`${Du}/auth/revalidate-token`,{refreshToken:i},{headers:{Authorization:`Bearer ${i}`}});oi.time=Date.now(),oi.request=c;const d=await c;return Rm(d,t)}const a=await oi.request;if(!a)throw new Error;return Rm(a,t)}catch(a){return Cm(a)}});class nT{constructor(){Lt(this,"reportAction",(t,n)=>{this.reportActiveUser(),this.actions+=1,this.performPost(t,n)});Lt(this,"reportEdgeClick",(t,n,s)=>{this.reportAction("/journey-edge-click",{mapId:t,questId:n,userId:Ll(),edgeId:s})});Lt(this,"reportTestAnswers",(t,n)=>{const{mapId:s,questId:i}=this.getBaseAnalyticsProps(),a=Ll(),c=n.map(d=>({mapId:s,questId:i,questionId:t,answerId:d||"",userId:a}));this.reportAction("/test-selected-answer",c)});Lt(this,"reportWidgetView",()=>{if(this.isWidgetViewed)return;this.isWidgetViewed=!0;const{mapId:t,questId:n}=this.getBaseAnalyticsProps();return this.performPost("/widget-view",{mapId:t,questId:n})});Lt(this,"reportActiveUser",()=>{if(this.isUserActive)return;this.isUserActive=!0,this.reportWidgetView();const{mapId:t,questId:n}=this.getBaseAnalyticsProps();return this.performPost("/active-user",{mapId:t,questId:n})});Lt(this,"reportActions",(t,n)=>{this.actions!==0&&(this.performPost("/actions-agriggated",{mapId:t,questId:n,userId:Ll(),actionCount:this.actions}),this.actions=0)});Lt(this,"reportQuestCompletion",(t,n)=>{this.performPost("/quest-competed",{mapId:t,questId:n})});Lt(this,"reportNewUserCreated",()=>{this.performPost("/user-created",this.getBaseAnalyticsProps())});Lt(this,"reportUserRegistration",()=>{this.performPost("/user-registrated",{...this.getBaseAnalyticsProps(),userId:Ll()})});Lt(this,"reportQuestEnded",(t,n)=>{this.reportActions(t,n),this.reportQuestCompletion(t,n)});Lt(this,"drainPendingAnalytics",()=>{const{mapId:t,questId:n}=this.getBaseAnalyticsProps();this.reportActions(t,n)});Lt(this,"performPost",(t,n)=>{try{const s=this.formPayload(n);return navigator.sendBeacon(`${this.baseUrl}${t}`,s)}catch{}});Lt(this,"dropUserActivation",()=>{this.isUserActive=!1,this.isWidgetViewed=!1});Lt(this,"formPayload",t=>{const n=JSON.stringify(t);return new Blob([n],{type:"application/json"})});Lt(this,"getBaseAnalyticsProps",()=>{const[t,n]=localStorage.getItem("analytics").split("@");return{mapId:t,questId:n}});this.actions=0,this.isUserActive=!1,this.isWidgetViewed=!1,this.baseUrl=`${Du}/analytics`}}const wr=new nT,Te=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,cs="8.50.0",Me=globalThis;function Ma(e,t,n){const s=Me,i=s.__SENTRY__=s.__SENTRY__||{},a=i[cs]=i[cs]||{};return a[e]||(a[e]=t())}const _r=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,rT="Sentry Logger ",$u=["debug","info","warn","error","log","assert","trace"],La={};function Er(e){if(!("console"in Me))return e();const t=Me.console,n={},s=Object.keys(La);s.forEach(i=>{const a=La[i];n[i]=t[i],t[i]=a});try{return e()}finally{s.forEach(i=>{t[i]=n[i]})}}function sT(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return _r?$u.forEach(n=>{t[n]=(...s)=>{e&&Er(()=>{Me.console[n](`${rT}[${n}]:`,...s)})}}):$u.forEach(n=>{t[n]=()=>{}}),t}const ee=Ma("logger",sT),Am=50,us="?",Om=/\(error: (.*)\)/,Pm=/captureMessage|captureException/;function Nm(...e){const t=e.sort((n,s)=>n[0]-s[0]).map(n=>n[1]);return(n,s=0,i=0)=>{const a=[],c=n.split(`
`);for(let d=s;d<c.length;d++){const f=c[d];if(f.length>1024)continue;const h=Om.test(f)?f.replace(Om,"$1"):f;if(!h.match(/\S*Error: /)){for(const g of t){const y=g(h);if(y){a.push(y);break}}if(a.length>=Am+i)break}}return iT(a.slice(i))}}function oT(e){return Array.isArray(e)?Nm(...e):e}function iT(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(ja(t).function||"")&&t.pop(),t.reverse(),Pm.test(ja(t).function||"")&&(t.pop(),Pm.test(ja(t).function||"")&&t.pop()),t.slice(0,Am).map(n=>({...n,filename:n.filename||ja(t).filename,function:n.function||us}))}function ja(e){return e[e.length-1]||{}}const Bu="<anonymous>";function er(e){try{return!e||typeof e!="function"?Bu:e.name||Bu}catch{return Bu}}function Mm(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(s=>{s.stacktrace.frames&&n.push(...s.stacktrace.frames)}),n}catch{return}}}const Da={},Lm={};function xr(e,t){Da[e]=Da[e]||[],Da[e].push(t)}function Tr(e,t){if(!Lm[e]){Lm[e]=!0;try{t()}catch(n){_r&&ee.error(`Error while instrumenting ${e}`,n)}}}function fn(e,t){const n=e&&Da[e];if(n)for(const s of n)try{s(t)}catch(i){_r&&ee.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${er(s)}
Error:`,i)}}let Fu=null;function jm(e){const t="error";xr(t,e),Tr(t,aT)}function aT(){Fu=Me.onerror,Me.onerror=function(e,t,n,s,i){return fn("error",{column:s,error:i,line:n,msg:e,url:t}),Fu?Fu.apply(this,arguments):!1},Me.onerror.__SENTRY_INSTRUMENTED__=!0}let zu=null;function Dm(e){const t="unhandledrejection";xr(t,e),Tr(t,lT)}function lT(){zu=Me.onunhandledrejection,Me.onunhandledrejection=function(e){return fn("unhandledrejection",e),zu?zu.apply(this,arguments):!0},Me.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ds(){return Uu(Me),Me}function Uu(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||cs,t[cs]=t[cs]||{}}const $m=Object.prototype.toString;function Hu(e){switch($m.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return nr(e,Error)}}function Ys(e,t){return $m.call(e)===`[object ${t}]`}function Bm(e){return Ys(e,"ErrorEvent")}function Fm(e){return Ys(e,"DOMError")}function cT(e){return Ys(e,"DOMException")}function tr(e){return Ys(e,"String")}function Wu(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function qu(e){return e===null||Wu(e)||typeof e!="object"&&typeof e!="function"}function Ks(e){return Ys(e,"Object")}function $a(e){return typeof Event<"u"&&nr(e,Event)}function uT(e){return typeof Element<"u"&&nr(e,Element)}function dT(e){return Ys(e,"RegExp")}function Ba(e){return!!(e&&e.then&&typeof e.then=="function")}function fT(e){return Ks(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function nr(e,t){try{return e instanceof t}catch{return!1}}function zm(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Qs=Me,pT=80;function rr(e,t={}){if(!e)return"<unknown>";try{let n=e;const s=5,i=[];let a=0,c=0;const d=" > ",f=d.length;let h;const g=Array.isArray(t)?t:t.keyAttrs,y=!Array.isArray(t)&&t.maxStringLength||pT;for(;n&&a++<s&&(h=hT(n,g),!(h==="html"||a>1&&c+i.length*f+h.length>=y));)i.push(h),c+=h.length,n=n.parentNode;return i.reverse().join(d)}catch{return"<unknown>"}}function hT(e,t){const n=e,s=[];if(!n||!n.tagName)return"";if(Qs.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}s.push(n.tagName.toLowerCase());const i=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(i&&i.length)i.forEach(c=>{s.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&s.push(`#${n.id}`);const c=n.className;if(c&&tr(c)){const d=c.split(/\s+/);for(const f of d)s.push(`.${f}`)}}const a=["aria-label","type","name","title","alt"];for(const c of a){const d=n.getAttribute(c);d&&s.push(`[${c}="${d}"]`)}return s.join("")}function Um(){try{return Qs.document.location.href}catch{return""}}function mT(e){return Qs.document&&Qs.document.querySelector?Qs.document.querySelector(e):null}function Hm(e){if(!Qs.HTMLElement)return null;let t=e;const n=5;for(let s=0;s<n;s++){if(!t)return null;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}function Xs(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Wm(e,t){if(!Array.isArray(e))return"";const n=[];for(let s=0;s<e.length;s++){const i=e[s];try{zm(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function gT(e,t,n=!1){return tr(e)?dT(t)?t.test(e):tr(t)?n?e===t:e.includes(t):!1:!1}function kr(e,t=[],n=!1){return t.some(s=>gT(e,s,n))}function Vt(e,t,n){if(!(t in e))return;const s=e[t],i=n(s);typeof i=="function"&&qm(i,s);try{e[t]=i}catch{_r&&ee.log(`Failed to replace method "${t}" in object`,e)}}function pn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{_r&&ee.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function qm(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,pn(e,"__sentry_original__",t)}catch{}}function Vu(e){return e.__sentry_original__}function Vm(e){if(Hu(e))return{message:e.message,name:e.name,stack:e.stack,...Ym(e)};if($a(e)){const t={type:e.type,target:Gm(e.target),currentTarget:Gm(e.currentTarget),...Ym(e)};return typeof CustomEvent<"u"&&nr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Gm(e){try{return uT(e)?rr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Ym(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function yT(e,t=40){const n=Object.keys(Vm(e));n.sort();const s=n[0];if(!s)return"[object has no keys]";if(s.length>=t)return Xs(s,t);for(let i=n.length;i>0;i--){const a=n.slice(0,i).join(", ");if(!(a.length>t))return i===n.length?a:Xs(a,t)}return""}function ft(e){return Gu(e,new Map)}function Gu(e,t){if(vT(e)){const n=t.get(e);if(n!==void 0)return n;const s={};t.set(e,s);for(const i of Object.getOwnPropertyNames(e))typeof e[i]<"u"&&(s[i]=Gu(e[i],t));return s}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const s=[];return t.set(e,s),e.forEach(i=>{s.push(Gu(i,t))}),s}return e}function vT(e){if(!Ks(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Km=1e3;function ii(){return Date.now()/Km}function ST(){const{performance:e}=Me;if(!e||!e.now)return ii;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Km}const jt=ST(),Dt=(()=>{const{performance:e}=Me;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),s=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-s):t,a=i<t,c=e.timing&&e.timing.navigationStart,f=typeof c=="number"?Math.abs(c+n-s):t,h=f<t;return a||h?i<=f?e.timeOrigin:c:s})();function sn(){const e=Me,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const s=new Uint8Array(1);return t.getRandomValues(s),s[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,s=>(s^(n()&15)>>s/4).toString(16))}function Qm(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Ir(e){const{message:t,event_id:n}=e;if(t)return t;const s=Qm(e);return s?s.type&&s.value?`${s.type}: ${s.value}`:s.type||s.value||n||"<unknown>":n||"<unknown>"}function Yu(e,t,n){const s=e.exception=e.exception||{},i=s.values=s.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Js(e,t){const n=Qm(e);if(!n)return;const s={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...s,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function Xm(e){if(wT(e))return!0;try{pn(e,"__sentry_captured__",!0)}catch{}return!1}function wT(e){try{return e.__sentry_captured__}catch{}}var sr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const s=2;e[e.REJECTED=s]="REJECTED"})(sr||(sr={}));function or(e){return new hn(t=>{t(e)})}function Fa(e){return new hn((t,n)=>{n(e)})}class hn{constructor(t){hn.prototype.__init.call(this),hn.prototype.__init2.call(this),hn.prototype.__init3.call(this),hn.prototype.__init4.call(this),this._state=sr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new hn((s,i)=>{this._handlers.push([!1,a=>{if(!t)s(a);else try{s(t(a))}catch(c){i(c)}},a=>{if(!n)i(a);else try{s(n(a))}catch(c){i(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new hn((n,s)=>{let i,a;return this.then(c=>{a=!1,i=c,t&&t()},c=>{a=!0,i=c,t&&t()}).then(()=>{if(a){s(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(sr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(sr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===sr.PENDING){if(Ba(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===sr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===sr.RESOLVED&&n[1](this._value),this._state===sr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function _T(e){const t=jt(),n={sid:sn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>xT(n)};return e&&Zs(n,e),n}function Zs(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||jt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:sn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ET(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Zs(e,n)}function xT(e){return ft({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function br(){return sn()}function Cr(){return sn().substring(16)}function za(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const s={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[i]=za(s[i],t[i],n-1));return s}const Ku="_sentrySpan";function ai(e,t){t?pn(e,Ku,t):delete e[Ku]}function Ua(e){return e[Ku]}const TT=100;class Qu{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:br(),spanId:Cr()}}clone(){const t=new Qu;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,ai(t,Ua(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Zs(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[s,i]=n instanceof fs?[n.getScopeData(),n.getRequestSession()]:Ks(n)?[t,t.requestSession]:[],{tags:a,extra:c,user:d,contexts:f,level:h,fingerprint:g=[],propagationContext:y}=s||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...c},this._contexts={...this._contexts,...f},d&&Object.keys(d).length&&(this._user=d),h&&(this._level=h),g.length&&(this._fingerprint=g),y&&(this._propagationContext=y),i&&(this._requestSession=i),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,ai(this,void 0),this._attachments=[],this.setPropagationContext({traceId:br()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const s=typeof n=="number"?n:TT;if(s<=0)return this;const i={timestamp:ii(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>s?a.slice(-s):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),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:Ua(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=za(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Cr(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const s=n&&n.event_id?n.event_id:sn();if(!this._client)return ee.warn("No client configured on scope - will not capture exception!"),s;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:s},this),s}captureMessage(t,n,s){const i=s&&s.event_id?s.event_id:sn();if(!this._client)return ee.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...s,event_id:i},this),i}captureEvent(t,n){const s=n&&n.event_id?n.event_id:sn();return this._client?(this._client.captureEvent(t,{...n,event_id:s},this),s):(ee.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const fs=Qu;function kT(){return Ma("defaultCurrentScope",()=>new fs)}function IT(){return Ma("defaultIsolationScope",()=>new fs)}class bT{constructor(t,n){let s;t?s=t:s=new fs;let i;n?i=n:i=new fs,this._stack=[{scope:s}],this._isolationScope=i}withScope(t){const n=this._pushScope();let s;try{s=t(n)}catch(i){throw this._popScope(),i}return Ba(s)?s.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function eo(){const e=ds(),t=Uu(e);return t.stack=t.stack||new bT(kT(),IT())}function CT(e){return eo().withScope(e)}function RT(e,t){const n=eo();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Jm(e){return eo().withScope(()=>e(eo().getIsolationScope()))}function AT(){return{withIsolationScope:Jm,withScope:CT,withSetScope:RT,withSetIsolationScope:(e,t)=>Jm(t),getCurrentScope:()=>eo().getScope(),getIsolationScope:()=>eo().getIsolationScope()}}function to(e){const t=Uu(e);return t.acs?t.acs:AT()}function qe(){const e=ds();return to(e).getCurrentScope()}function En(){const e=ds();return to(e).getIsolationScope()}function OT(){return Ma("globalScope",()=>new fs)}function Xu(...e){const t=ds(),n=to(t);if(e.length===2){const[s,i]=e;return s?n.withSetScope(s,i):n.withScope(i)}return n.withScope(e[0])}function Oe(){return qe().getClient()}function PT(e){const t=e.getPropagationContext(),{traceId:n,spanId:s,parentSpanId:i}=t;return ft({trace_id:n,span_id:s,parent_span_id:i})}const NT="_sentryMetrics";function Ju(e){const t=e[NT];if(!t)return;const n={};for(const[,[s,i]]of t)(n[s]||(n[s]=[])).push(ft(i));return n}const Fn="sentry.source",Zm="sentry.sample_rate",ps="sentry.op",gt="sentry.origin",Zu="sentry.idle_span_finish_reason",Ha="sentry.measurement_unit",Wa="sentry.measurement_value",eg="sentry.custom_span_name",MT="sentry.profile_id",ed="sentry.exclusive_time",LT=0,tg=1,yt=2;function jT(e){if(e<400&&e>=100)return{code:tg};if(e>=400&&e<500)switch(e){case 401:return{code:yt,message:"unauthenticated"};case 403:return{code:yt,message:"permission_denied"};case 404:return{code:yt,message:"not_found"};case 409:return{code:yt,message:"already_exists"};case 413:return{code:yt,message:"failed_precondition"};case 429:return{code:yt,message:"resource_exhausted"};case 499:return{code:yt,message:"cancelled"};default:return{code:yt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:yt,message:"unimplemented"};case 503:return{code:yt,message:"unavailable"};case 504:return{code:yt,message:"deadline_exceeded"};default:return{code:yt,message:"internal_error"}}return{code:yt,message:"unknown_error"}}function ng(e,t){e.setAttribute("http.response.status_code",t);const n=jT(t);n.message!=="unknown_error"&&e.setStatus(n)}const td="sentry-",DT=/^sentry-/,$T=8192;function rg(e){const t=FT(e);if(!t)return;const n=Object.entries(t).reduce((s,[i,a])=>{if(i.match(DT)){const c=i.slice(td.length);s[c]=a}return s},{});if(Object.keys(n).length>0)return n}function BT(e){if(!e)return;const t=Object.entries(e).reduce((n,[s,i])=>(i&&(n[`${td}${s}`]=i),n),{});return zT(t)}function FT(e){if(!(!e||!tr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const s=sg(n);return Object.entries(s).forEach(([i,a])=>{t[i]=a}),t},{}):sg(e)}function sg(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,s])=>(n&&s&&(t[n]=s),t),{})}function zT(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,s],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(s)}`,c=i===0?a:`${t},${a}`;return c.length>$T?(_r&&ee.warn(`Not adding key: ${n} with val: ${s} to baggage header due to exceeding baggage size limits.`),t):c},"")}const og=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function UT(e){if(!e)return;const t=e.match(og);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function HT(e,t){const n=UT(e),s=rg(t);if(!n||!n.traceId)return{traceId:br(),spanId:Cr()};const{traceId:i,parentSpanId:a,parentSampled:c}=n,d=Cr();return{traceId:i,parentSpanId:a,spanId:d,sampled:c,dsc:s||{}}}function ig(e=br(),t=Cr(),n){let s="";return n!==void 0&&(s=n?"-1":"-0"),`${e}-${t}${s}`}const ag=0,lg=1;let cg=!1;function WT(e){const{spanId:t,traceId:n}=e.spanContext(),{data:s,op:i,parent_span_id:a,status:c,origin:d}=Fe(e);return ft({parent_span_id:a,span_id:t,trace_id:n,data:s,op:i,status:c,origin:d})}function qT(e){const{spanId:t,traceId:n,isRemote:s}=e.spanContext(),i=s?t:Fe(e).parent_span_id,a=s?Cr():t;return ft({parent_span_id:i,span_id:a,trace_id:n})}function VT(e){const{traceId:t,spanId:n}=e.spanContext(),s=ms(e);return ig(t,n,s)}function hs(e){return typeof e=="number"?ug(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ug(e.getTime()):jt()}function ug(e){return e>9999999999?e/1e3:e}function Fe(e){if(YT(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(GT(e)){const{attributes:s,startTime:i,name:a,endTime:c,parentSpanId:d,status:f}=e;return ft({span_id:t,trace_id:n,data:s,description:a,parent_span_id:d,start_timestamp:hs(i),timestamp:hs(c)||void 0,status:dg(f),op:s[ps],origin:s[gt],_metrics_summary:Ju(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function GT(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function YT(e){return typeof e.getSpanJSON=="function"}function ms(e){const{traceFlags:t}=e.spanContext();return t===lg}function dg(e){if(!(!e||e.code===LT))return e.code===tg?"ok":e.message||"unknown_error"}const gs="_sentryChildSpans",nd="_sentryRootSpan";function fg(e,t){const n=e[nd]||e;pn(t,nd,n),e[gs]?e[gs].add(t):pn(e,gs,new Set([t]))}function KT(e,t){e[gs]&&e[gs].delete(t)}function qa(e){const t=new Set;function n(s){if(!t.has(s)&&ms(s)){t.add(s);const i=s[gs]?Array.from(s[gs]):[];for(const a of i)n(a)}}return n(e),Array.from(t)}function kt(e){return e[nd]||e}function vt(){const e=ds(),t=to(e);return t.getActiveSpan?t.getActiveSpan():Ua(qe())}function pg(){cg||(Er(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),cg=!0)}let hg=!1;function QT(){hg||(hg=!0,jm(rd),Dm(rd))}function rd(){const e=vt(),t=e&&kt(e);if(t){const n="internal_error";Te&&ee.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:yt,message:n})}}rd.tag="sentry_tracingErrorCallback";const mg="_sentryScope",gg="_sentryIsolationScope";function XT(e,t,n){e&&(pn(e,gg,n),pn(e,mg,t))}function yg(e){return{scope:e[mg],isolationScope:e[gg]}}function Rr(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Oe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class no{constructor(t={}){this._traceId=t.traceId||br(),this._spanId=t.spanId||Cr()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ag}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,s){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const sd="production",vg="_frozenDsc";function Sg(e,t){pn(e,vg,t)}function wg(e,t){const n=t.getOptions(),{publicKey:s}=t.getDsn()||{},i=ft({environment:n.environment||sd,release:n.release,public_key:s,trace_id:e});return t.emit("createDsc",i),i}function _g(e,t){const n=t.getPropagationContext();return n.dsc||wg(n.traceId,e)}function ys(e){const t=Oe();if(!t)return{};const n=kt(e),s=n[vg];if(s)return s;const i=n.spanContext().traceState,a=i&&i.get("sentry.dsc"),c=a&&rg(a);if(c)return c;const d=wg(e.spanContext().traceId,t),f=Fe(n),h=f.data||{},g=h[Zm];g!=null&&(d.sample_rate=`${g}`);const y=h[Fn],w=f.description;return y!=="url"&&w&&(d.transaction=w),Rr()&&(d.sampled=String(ms(n))),t.emit("createDsc",d,n),d}function JT(e){if(!Te)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:s}=Fe(e),{spanId:i}=e.spanContext(),a=ms(e),c=kt(e),d=c===e,f=`[Tracing] Starting ${a?"sampled":"unsampled"} ${d?"root ":""}span`,h=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(s&&h.push(`parent ID: ${s}`),!d){const{op:g,description:y}=Fe(c);h.push(`root ID: ${c.spanContext().spanId}`),g&&h.push(`root op: ${g}`),y&&h.push(`root description: ${y}`)}ee.log(`${f}
  ${h.join(`
  `)}`)}function ZT(e){if(!Te)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Fe(e),{spanId:s}=e.spanContext(),a=kt(e)===e,c=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${s}`;ee.log(c)}function Va(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){Te&&ee.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}function ek(e,t){if(!Rr(e))return[!1];const n=En().getScopeData().sdkProcessingMetadata.normalizedRequest,s={...t,normalizedRequest:t.normalizedRequest||n};let i;typeof e.tracesSampler=="function"?i=e.tracesSampler(s):s.parentSampled!==void 0?i=s.parentSampled:typeof e.tracesSampleRate<"u"?i=e.tracesSampleRate:i=1;const a=Va(i);return a===void 0?(Te&&ee.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):a?Math.random()<a?[!0,a]:(Te&&ee.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[!1,a]):(Te&&ee.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a])}const tk=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nk(e){return e==="http"||e==="https"}function li(e,t=!1){const{host:n,path:s,pass:i,port:a,projectId:c,protocol:d,publicKey:f}=e;return`${d}://${f}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${s&&`${s}/`}${c}`}function rk(e){const t=tk.exec(e);if(!t){Er(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,s,i="",a="",c="",d=""]=t.slice(1);let f="",h=d;const g=h.split("/");if(g.length>1&&(f=g.slice(0,-1).join("/"),h=g.pop()),h){const y=h.match(/^\d+/);y&&(h=y[0])}return Eg({host:a,pass:i,path:f,projectId:h,port:c,protocol:n,publicKey:s})}function Eg(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function sk(e){if(!_r)return!0;const{port:t,projectId:n,protocol:s}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(ee.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?nk(s)?t&&isNaN(parseInt(t,10))?(ee.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ee.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):(ee.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ok(e){const t=typeof e=="string"?rk(e):Eg(e);if(!(!t||!sk(t)))return t}function ik(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;a<t.length;a++)if(t[a]===i)return!0;return t.push(i),!1}function s(i){if(e)t.delete(i);else for(let a=0;a<t.length;a++)if(t[a]===i){t.splice(a,1);break}}return[n,s]}function xn(e,t=100,n=1/0){try{return od("",e,t,n)}catch(s){return{ERROR:`**non-serializable** (${s})`}}}function xg(e,t=3,n=100*1024){const s=xn(e,t);return uk(s)>n?xg(e,t-1,n):s}function od(e,t,n=1/0,s=1/0,i=ik()){const[a,c]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=ak(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return d.replace("object ","");if(a(t))return"[Circular ~]";const h=t;if(h&&typeof h.toJSON=="function")try{const x=h.toJSON();return od("",x,f-1,s,i)}catch{}const g=Array.isArray(t)?[]:{};let y=0;const w=Vm(t);for(const x in w){if(!Object.prototype.hasOwnProperty.call(w,x))continue;if(y>=s){g[x]="[MaxProperties ~]";break}const _=w[x];g[x]=od(x,_,f-1,s,i),y++}return c(t),g}function ak(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(zm(t))return"[VueViewModel]";if(fT(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${er(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=lk(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function lk(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function ck(e){return~-encodeURI(e).split(/%..|./).length}function uk(e){return ck(JSON.stringify(e))}function vs(e,t=[]){return[e,t]}function dk(e,t){const[n,s]=e;return[n,[...s,t]]}function Tg(e,t){const n=e[1];for(const s of n){const i=s[0].type;if(t(s,i))return!0}return!1}function id(e){return Me.__SENTRY__&&Me.__SENTRY__.encodePolyfill?Me.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function fk(e){const[t,n]=e;let s=JSON.stringify(t);function i(a){typeof s=="string"?s=typeof a=="string"?s+a:[id(s),a]:s.push(typeof a=="string"?id(a):a)}for(const a of n){const[c,d]=a;if(i(`
${JSON.stringify(c)}
`),typeof d=="string"||d instanceof Uint8Array)i(d);else{let f;try{f=JSON.stringify(d)}catch{f=JSON.stringify(xn(d))}i(f)}}return typeof s=="string"?s:pk(s)}function pk(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let s=0;for(const i of e)n.set(i,s),s+=i.length;return n}function hk(e){return[{type:"span"},e]}function mk(e){const t=typeof e.data=="string"?id(e.data):e.data;return[ft({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const gk={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 kg(e){return gk[e]}function ad(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ig(e,t,n,s){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&s&&{dsn:li(s)},...i&&{trace:ft({...i})}}}function yk(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function vk(e,t,n,s){const i=ad(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!s&&t&&{dsn:li(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return vs(a,[c])}function Sk(e,t,n,s){const i=ad(n),a=e.type&&e.type!=="replay_event"?e.type:"event";yk(e,n&&n.sdk);const c=Ig(e,i,s,t);return delete e.sdkProcessingMetadata,vs(c,[[{type:a},e]])}function wk(e,t){function n(g){return!!g.trace_id&&!!g.public_key}const s=ys(e[0]),i=t&&t.getDsn(),a=t&&t.getOptions().tunnel,c={sent_at:new Date().toISOString(),...n(s)&&{trace:s},...!!a&&i&&{dsn:li(i)}},d=t&&t.getOptions().beforeSendSpan,f=d?g=>{const y=d(Fe(g));return y||pg(),y}:g=>Fe(g),h=[];for(const g of e){const y=f(g);y&&h.push(hk(y))}return vs(c,h)}function _k(e,t,n,s=vt()){const i=s&&kt(s);i&&(Te&&ee.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Wa]:t,[Ha]:n}))}function bg(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const s=n.attributes||{},i=s[Ha],a=s[Wa];typeof i=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:i})}),t}const Cg=1e3;class ld{constructor(t={}){this._traceId=t.traceId||br(),this._spanId=t.spanId||Cr(),this._startTime=t.startTimestamp||jt(),this._attributes={},this.setAttributes({[gt]:"manual",[ps]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:s}=this;return{spanId:t,traceId:n,traceFlags:s?lg:ag}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=hs(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Fn,"custom"),this}end(t){this._endTime||(this._endTime=hs(t),ZT(this),this._onSpanEnded())}getSpanJSON(){return ft({data:this._attributes,description:this._name,op:this._attributes[ps],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:dg(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gt],_metrics_summary:Ju(this),profile_id:this._attributes[MT],exclusive_time:this._attributes[ed],measurements:bg(this._events),is_segment:this._isStandaloneSpan&&kt(this)===this||void 0,segment_id:this._isStandaloneSpan?kt(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,s){Te&&ee.log("[Tracing] Adding an event to span:",t);const i=Rg(n)?n:s||jt(),a=Rg(n)?{}:n||{},c={name:t,time:hs(i),attributes:a};return this._events.push(c),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Oe();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===kt(this)))return;if(this._isStandaloneSpan){this._sampled?xk(wk([this],t)):(Te&&ee.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const s=this._convertSpanToTransaction();s&&(yg(this).scope||qe()).captureEvent(s)}_convertSpanToTransaction(){if(!Ag(Fe(this)))return;this._name||(Te&&ee.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=yg(this),i=(t||qe()).getClient()||Oe();if(this._sampled!==!0){Te&&ee.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}const c=qa(this).filter(y=>y!==this&&!Ek(y)).map(y=>Fe(y)).filter(Ag),d=this._attributes[Fn];delete this._attributes[eg],c.forEach(y=>{y.data&&delete y.data[eg]});const f={contexts:{trace:WT(this)},spans:c.length>Cg?c.sort((y,w)=>y.start_timestamp-w.start_timestamp).slice(0,Cg):c,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...ft({dynamicSamplingContext:ys(this)})},_metrics_summary:Ju(this),...d&&{transaction_info:{source:d}}},h=bg(this._events);return h&&Object.keys(h).length&&(Te&&ee.log("[Measurements] Adding measurements to transaction event",JSON.stringify(h,void 0,2)),f.measurements=h),f}}function Rg(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Ag(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Ek(e){return e instanceof ld&&e.isStandaloneSpan()}function xk(e){const t=Oe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const Og="__SENTRY_SUPPRESS_TRACING__";function ci(e){const t=Ng();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=kk(e),{forceTransaction:s,parentSpan:i}=e;return(e.scope?c=>Xu(e.scope,c):i!==void 0?c=>Pg(i,c):c=>c())(()=>{const c=qe(),d=bk(c);return e.onlyIfParent&&!d?new no:Tk({parentSpan:d,spanArguments:n,forceTransaction:s,scope:c})})}function Pg(e,t){const n=Ng();return n.withActiveSpan?n.withActiveSpan(e,t):Xu(s=>(ai(s,e||void 0),t(s)))}function Tk({parentSpan:e,spanArguments:t,forceTransaction:n,scope:s}){if(!Rr())return new no;const i=En();let a;if(e&&!n)a=Ik(e,s,t),fg(e,a);else if(e){const c=ys(e),{traceId:d,spanId:f}=e.spanContext(),h=ms(e);a=Mg({traceId:d,parentSpanId:f,...t},s,h),Sg(a,c)}else{const{traceId:c,dsc:d,parentSpanId:f,sampled:h}={...i.getPropagationContext(),...s.getPropagationContext()};a=Mg({traceId:c,parentSpanId:f,...t},s,h),d&&Sg(a,d)}return JT(a),XT(a,s,i),a}function kk(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const s={...n};return s.startTimestamp=hs(e.startTime),delete s.startTime,s}return n}function Ng(){const e=ds();return to(e)}function Mg(e,t,n){const s=Oe(),i=s&&s.getOptions()||{},{name:a="",attributes:c}=e,[d,f]=t.getScopeData().sdkProcessingMetadata[Og]?[!1]:ek(i,{name:a,parentSampled:n,attributes:c,transactionContext:{name:a,parentSampled:n}}),h=new ld({...e,attributes:{[Fn]:"custom",...e.attributes},sampled:d});return f!==void 0&&h.setAttribute(Zm,f),s&&s.emit("spanStart",h),h}function Ik(e,t,n){const{spanId:s,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Og]?!1:ms(e),c=a?new ld({...n,parentSpanId:s,traceId:i,sampled:a}):new no({traceId:i});fg(e,c);const d=Oe();return d&&(d.emit("spanStart",c),n.endTimestamp&&d.emit("spanEnd",c)),c}function bk(e){const t=Ua(e);if(!t)return;const n=Oe();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?kt(t):t}const Ga={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Ck="heartbeatFailed",Rk="idleTimeout",Ak="finalTimeout",Ok="externalFinish";function Lg(e,t={}){const n=new Map;let s=!1,i,a=Ok,c=!t.disableAutoFinish;const d=[],{idleTimeout:f=Ga.idleTimeout,finalTimeout:h=Ga.finalTimeout,childSpanTimeout:g=Ga.childSpanTimeout,beforeSpanEnd:y}=t,w=Oe();if(!w||!Rr())return new no;const x=qe(),_=vt(),E=Pk(e);E.end=new Proxy(E.end,{apply(O,C,W){y&&y(E);const[B,...U]=W,J=B||jt(),Z=hs(J),ue=qa(E).filter(q=>q!==E);if(!ue.length)return H(Z),Reflect.apply(O,C,[Z,...U]);const me=ue.map(q=>Fe(q).timestamp).filter(q=>!!q),De=me.length?Math.max(...me):void 0,te=Fe(E).start_timestamp,Se=Math.min(te?te+h/1e3:1/0,Math.max(te||-1/0,Math.min(Z,De||1/0)));return H(Se),Reflect.apply(O,C,[Se,...U])}});function T(){i&&(clearTimeout(i),i=void 0)}function A(O){T(),i=setTimeout(()=>{!s&&n.size===0&&c&&(a=Rk,E.end(O))},f)}function L(O){i=setTimeout(()=>{!s&&c&&(a=Ck,E.end(O))},g)}function j(O){T(),n.set(O,!0);const C=jt();L(C+g/1e3)}function K(O){if(n.has(O)&&n.delete(O),n.size===0){const C=jt();A(C+f/1e3)}}function H(O){s=!0,n.clear(),d.forEach(Z=>Z()),ai(x,_);const C=Fe(E),{start_timestamp:W}=C;if(!W)return;(C.data||{})[Zu]||E.setAttribute(Zu,a),ee.log(`[Tracing] Idle span "${C.op}" finished`);const U=qa(E).filter(Z=>Z!==E);let J=0;U.forEach(Z=>{Z.isRecording()&&(Z.setStatus({code:yt,message:"cancelled"}),Z.end(O),Te&&ee.log("[Tracing] Cancelling span since span ended early",JSON.stringify(Z,void 0,2)));const ue=Fe(Z),{timestamp:me=0,start_timestamp:De=0}=ue,te=De<=O,Se=(h+f)/1e3,q=me-De<=Se;if(Te){const oe=JSON.stringify(Z,void 0,2);te?q||ee.log("[Tracing] Discarding span since it finished after idle span final timeout",oe):ee.log("[Tracing] Discarding span since it happened after idle span was finished",oe)}(!q||!te)&&(KT(E,Z),J++)}),J>0&&E.setAttribute("sentry.idle_span_discarded_spans",J)}return d.push(w.on("spanStart",O=>{if(s||O===E||Fe(O).timestamp)return;qa(E).includes(O)&&j(O.spanContext().spanId)})),d.push(w.on("spanEnd",O=>{s||K(O.spanContext().spanId)})),d.push(w.on("idleSpanEnableAutoFinish",O=>{O===E&&(c=!0,A(),n.size&&L())})),t.disableAutoFinish||A(),setTimeout(()=>{s||(E.setStatus({code:yt,message:"deadline_exceeded"}),a=Ak,E.end())},h),E}function Pk(e){const t=ci(e);return ai(qe(),t),Te&&ee.log("[Tracing] Started span is an idle span"),t}function cd(e,t,n,s=0){return new hn((i,a)=>{const c=e[s];if(t===null||typeof c!="function")i(t);else{const d=c({...t},n);Te&&c.id&&d===null&&ee.log(`Event processor "${c.id}" dropped event`),Ba(d)?d.then(f=>cd(e,f,n,s+1).then(i)).then(null,a):cd(e,d,n,s+1).then(i).then(null,a)}})}let Ya,jg,Ka;function Nk(e){const t=Me._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ka&&n.length===jg||(jg=n.length,Ka=n.reduce((s,i)=>{Ya||(Ya={});const a=Ya[i];if(a)s[a[0]]=a[1];else{const c=e(i);for(let d=c.length-1;d>=0;d--){const f=c[d],h=f&&f.filename,g=t[i];if(h&&g){s[h]=g,Ya[i]=[h,g];break}}}return s},{})),Ka}function Mk(e,t){const{fingerprint:n,span:s,breadcrumbs:i,sdkProcessingMetadata:a}=t;Lk(e,t),s&&$k(e,s),Bk(e,n),jk(e,i),Dk(e,a)}function Dg(e,t){const{extra:n,tags:s,user:i,contexts:a,level:c,sdkProcessingMetadata:d,breadcrumbs:f,fingerprint:h,eventProcessors:g,attachments:y,propagationContext:w,transactionName:x,span:_}=t;Qa(e,"extra",n),Qa(e,"tags",s),Qa(e,"user",i),Qa(e,"contexts",a),e.sdkProcessingMetadata=za(e.sdkProcessingMetadata,d,2),c&&(e.level=c),x&&(e.transactionName=x),_&&(e.span=_),f.length&&(e.breadcrumbs=[...e.breadcrumbs,...f]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),g.length&&(e.eventProcessors=[...e.eventProcessors,...g]),y.length&&(e.attachments=[...e.attachments,...y]),e.propagationContext={...e.propagationContext,...w}}function Qa(e,t,n){e[t]=za(e[t],n,1)}function Lk(e,t){const{extra:n,tags:s,user:i,contexts:a,level:c,transactionName:d}=t,f=ft(n);f&&Object.keys(f).length&&(e.extra={...f,...e.extra});const h=ft(s);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const g=ft(i);g&&Object.keys(g).length&&(e.user={...g,...e.user});const y=ft(a);y&&Object.keys(y).length&&(e.contexts={...y,...e.contexts}),c&&(e.level=c),d&&e.type!=="transaction"&&(e.transaction=d)}function jk(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Dk(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function $k(e,t){e.contexts={trace:qT(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ys(t),...e.sdkProcessingMetadata};const n=kt(t),s=Fe(n).description;s&&!e.transaction&&e.type==="transaction"&&(e.transaction=s)}function Bk(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function $g(e,t,n,s,i,a){const{normalizeDepth:c=3,normalizeMaxBreadth:d=1e3}=e,f={...t,event_id:t.event_id||n.event_id||sn(),timestamp:t.timestamp||ii()},h=n.integrations||e.integrations.map(T=>T.name);Fk(f,e),Hk(f,h),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&zk(f,e.stackParser);const g=qk(s,n.captureContext);n.mechanism&&Js(f,n.mechanism);const y=i?i.getEventProcessors():[],w=OT().getScopeData();if(a){const T=a.getScopeData();Dg(w,T)}if(g){const T=g.getScopeData();Dg(w,T)}const x=[...n.attachments||[],...w.attachments];x.length&&(n.attachments=x),Mk(f,w);const _=[...y,...w.eventProcessors];return cd(_,f,n).then(T=>(T&&Uk(T),typeof c=="number"&&c>0?Wk(T,c,d):T))}function Fk(e,t){const{environment:n,release:s,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||sd,!e.release&&s&&(e.release=s),!e.dist&&i&&(e.dist=i),e.message&&(e.message=Xs(e.message,a));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=Xs(c.value,a));const d=e.request;d&&d.url&&(d.url=Xs(d.url,a))}function zk(e,t){const n=Nk(t);try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(i=>{n&&i.filename&&(i.debug_id=n[i.filename])})})}catch{}}function Uk(e){const t={};try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,i])=>{n.push({type:"sourcemap",code_file:s,debug_id:i})})}function Hk(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Wk(e,t,n){if(!e)return null;const s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:xn(i.data,t,n)}}))},...e.user&&{user:xn(e.user,t,n)},...e.contexts&&{contexts:xn(e.contexts,t,n)},...e.extra&&{extra:xn(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&s.contexts&&(s.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(s.contexts.trace.data=xn(e.contexts.trace.data,t,n))),e.spans&&(s.spans=e.spans.map(i=>({...i,...i.data&&{data:xn(i.data,t,n)}}))),e.contexts&&e.contexts.flags&&s.contexts&&(s.contexts.flags=xn(e.contexts.flags,3,n)),s}function qk(e,t){if(!t)return e;const n=e?e.clone():new fs;return n.update(t),n}function L8(e){}function Tn(e,t){return qe().captureException(e,void 0)}function Bg(e,t){return qe().captureEvent(e,t)}function Fg(e,t){En().setContext(e,t)}function Vk(){const e=Oe();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Gk(e){En().addEventProcessor(e)}function zg(e){const t=Oe(),n=En(),s=qe(),{release:i,environment:a=sd}=t&&t.getOptions()||{},{userAgent:c}=Me.navigator||{},d=_T({release:i,environment:a,user:s.getUser()||n.getUser(),...c&&{userAgent:c},...e}),f=n.getSession();return f&&f.status==="ok"&&Zs(f,{status:"exited"}),Ug(),n.setSession(d),s.setSession(d),d}function Ug(){const e=En(),t=qe(),n=t.getSession()||e.getSession();n&&ET(n),Hg(),e.setSession(),t.setSession()}function Hg(){const e=En(),t=qe(),n=Oe(),s=t.getSession()||e.getSession();s&&n&&n.captureSession(s)}function Wg(e=!1){if(e){Ug();return}Hg()}const Yk="7";function Kk(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Qk(e){return`${Kk(e)}${e.projectId}/envelope/`}function Xk(e,t){const n={sentry_version:Yk};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Jk(e,t,n){return t||`${Qk(e)}?${Xk(e,n)}`}const qg=[];function Zk(e){const t={};return e.forEach(n=>{const{name:s}=n,i=t[s];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[s]=n)}),Object.values(t)}function eI(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(c=>{c.isDefaultInstance=!0});let s;if(Array.isArray(n))s=[...t,...n];else if(typeof n=="function"){const c=n(t);s=Array.isArray(c)?c:[c]}else s=t;const i=Zk(s),a=i.findIndex(c=>c.name==="Debug");if(a>-1){const[c]=i.splice(a,1);i.push(c)}return i}function tI(e,t){const n={};return t.forEach(s=>{s&&Gg(e,s,n)}),n}function Vg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Gg(e,t,n){if(n[t.name]){Te&&ee.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,qg.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),qg.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const s=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>s(i,a,e))}if(typeof t.processEvent=="function"){const s=t.processEvent.bind(t),i=Object.assign((a,c)=>s(a,c,e),{id:t.name});e.addEventProcessor(i)}Te&&ee.log(`Integration installed: ${t.name}`)}function j8(e){return e}function nI(e,t,n){const s=[{type:"client_report"},{timestamp:ii(),discarded_events:e}];return vs(t?{dsn:t}:{},[s])}class zn extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const Yg="Not capturing exception because it's already been captured.";class rI{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=ok(t.dsn):Te&&ee.warn("No DSN provided, client will not send events."),this._dsn){const i=Jk(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:i})}const s=["enableTracing","tracesSampleRate","tracesSampler"].find(i=>i in t&&t[i]==null);s&&Er(()=>{console.warn(`[Sentry] Deprecation warning: \`${s}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,s){const i=sn();if(Xm(t))return Te&&ee.log(Yg),i;const a={event_id:i,...n};return this._process(this.eventFromException(t,a).then(c=>this._captureEvent(c,a,s))),a.event_id}captureMessage(t,n,s,i){const a={event_id:sn(),...s},c=Wu(t)?t:String(t),d=qu(t)?this.eventFromMessage(c,n,a):this.eventFromException(t,a);return this._process(d.then(f=>this._captureEvent(f,a,i))),a.event_id}captureEvent(t,n,s){const i=sn();if(n&&n.originalException&&Xm(n.originalException))return Te&&ee.log(Yg),i;const a={event_id:i,...n},d=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,d||s)),a.event_id}captureSession(t){typeof t.release!="string"?Te&&ee.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Zs(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(s=>n.flush(t).then(i=>s&&i))):or(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Gg(this,t,this._integrations),n||Vg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let s=Sk(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])s=dk(s,mk(a));const i=this.sendEnvelope(s);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=vk(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,s){if(this._options.sendClientReports){const i=typeof s=="number"?s:1,a=`${t}:${n}`;Te&&ee.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}on(t,n){const s=this._hooks[t]=this._hooks[t]||[];return s.push(n),()=>{const i=s.indexOf(n);i>-1&&s.splice(i,1)}}emit(t,...n){const s=this._hooks[t];s&&s.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Te&&ee.error("Error while sending envelope:",n),n)):(Te&&ee.error("Transport disabled"),or({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=tI(this,t),Vg(this,t)}_updateSessionFromEvent(t,n){let s=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const f of a){const h=f.mechanism;if(h&&h.handled===!1){s=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&s)&&(Zs(t,{...s&&{status:"crashed"},errors:t.errors||Number(i||s)}),this.captureSession(t))}_isClientDoneProcessing(t){return new hn(n=>{let s=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(s+=i,t&&s>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,s=qe(),i=En()){const a=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),$g(a,t,n,s,this,i).then(d=>{if(d===null)return d;d.contexts={trace:PT(s),...d.contexts};const f=_g(this,s);return d.sdkProcessingMetadata={dynamicSamplingContext:f,...d.sdkProcessingMetadata},d})}_captureEvent(t,n={},s){return this._processEvent(t,n,s).then(i=>i.event_id,i=>{if(Te){const a=i;a.logLevel==="log"?ee.log(a.message):ee.warn(a)}})}_processEvent(t,n,s){const i=this.getOptions(),{sampleRate:a}=i,c=Qg(t),d=Kg(t),f=t.type||"error",h=`before send for type \`${f}\``,g=typeof a>"u"?void 0:Va(a);if(d&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error",t),Fa(new zn(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const y=f==="replay_event"?"replay":f,x=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,s,x).then(_=>{if(_===null)throw this.recordDroppedEvent("event_processor",y,t),new zn("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return _;const T=oI(this,i,_,n);return sI(T,h)}).then(_=>{if(_===null){if(this.recordDroppedEvent("before_send",y,t),c){const L=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",L)}throw new zn(`${h} returned \`null\`, will not send event.`,"log")}const E=s&&s.getSession();if(!c&&E&&this._updateSessionFromEvent(E,_),c){const A=_.sdkProcessingMetadata&&_.sdkProcessingMetadata.spanCountBeforeProcessing||0,L=_.spans?_.spans.length:0,j=A-L;j>0&&this.recordDroppedEvent("before_send","span",j)}const T=_.transaction_info;if(c&&T&&_.transaction!==t.transaction){const A="custom";_.transaction_info={...T,source:A}}return this.sendEvent(_,n),_}).then(null,_=>{throw _ instanceof zn?_:(this.captureException(_,{data:{__sentry__:!0},originalException:_}),new zn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${_}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,s])=>{const[i,a]=n.split(":");return{reason:i,category:a,quantity:s}})}_flushOutcomes(){Te&&ee.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Te&&ee.log("No outcomes to send");return}if(!this._dsn){Te&&ee.log("No dsn provided, will not send outcomes");return}Te&&ee.log("Sending outcomes:",t);const n=nI(t,this._options.tunnel&&li(this._dsn));this.sendEnvelope(n)}}function sI(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ba(e))return e.then(s=>{if(!Ks(s)&&s!==null)throw new zn(n);return s},s=>{throw new zn(`${t} rejected with ${s}`)});if(!Ks(e)&&e!==null)throw new zn(n);return e}function oI(e,t,n,s){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:c}=t;if(Kg(n)&&i)return i(n,s);if(Qg(n)){if(n.spans&&c){const d=[];for(const f of n.spans){const h=c(f);h?d.push(h):(pg(),e.recordDroppedEvent("before_send","span"))}n.spans=d}if(a){if(n.spans){const d=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return a(n,s)}}return n}function Kg(e){return e.type===void 0}function Qg(e){return e.type==="transaction"}function iI(e,t){t.debug===!0&&(Te?ee.enable():Er(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),qe().update(t.initialScope);const s=new e(t);return aI(s),s.init(),s}function aI(e){qe().setClient(e)}function lI(e){const t=[];function n(){return e===void 0||t.length<e}function s(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function i(c){if(!n())return Fa(new zn("Not adding Promise because buffer limit was reached."));const d=c();return t.indexOf(d)===-1&&t.push(d),d.then(()=>s(d)).then(null,()=>s(d).then(null,()=>{})),d}function a(c){return new hn((d,f)=>{let h=t.length;if(!h)return d(!0);const g=setTimeout(()=>{c&&c>0&&d(!1)},c);t.forEach(y=>{or(y).then(()=>{--h||(clearTimeout(g),d(!0))},f)})})}return{$:t,add:i,drain:a}}const cI=60*1e3;function uI(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const s=Date.parse(`${e}`);return isNaN(s)?cI:s-t}function dI(e,t){return e[t]||e.all||0}function Xg(e,t,n=Date.now()){return dI(e,t)>n}function Jg(e,{statusCode:t,headers:n},s=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(a)for(const d of a.trim().split(",")){const[f,h,,,g]=d.split(":",5),y=parseInt(f,10),w=(isNaN(y)?60:y)*1e3;if(!h)i.all=s+w;else for(const x of h.split(";"))x==="metric_bucket"?(!g||g.split(";").includes("custom"))&&(i[x]=s+w):i[x]=s+w}else c?i.all=s+uI(c,s):t===429&&(i.all=s+60*1e3);return i}const fI=64;function pI(e,t,n=lI(e.bufferSize||fI)){let s={};const i=c=>n.drain(c);function a(c){const d=[];if(Tg(c,(y,w)=>{const x=kg(w);if(Xg(s,x)){const _=Zg(y,w);e.recordDroppedEvent("ratelimit_backoff",x,_)}else d.push(y)}),d.length===0)return or({});const f=vs(c[0],d),h=y=>{Tg(f,(w,x)=>{const _=Zg(w,x);e.recordDroppedEvent(y,kg(x),_)})},g=()=>t({body:fk(f)}).then(y=>(y.statusCode!==void 0&&(y.statusCode<200||y.statusCode>=300)&&Te&&ee.warn(`Sentry responded with status code ${y.statusCode} to sent event.`),s=Jg(s,y),y),y=>{throw h("network_error"),y});return n.add(g).then(y=>y,y=>{if(y instanceof zn)return Te&&ee.error("Skipped sending event because buffer is full."),h("queue_overflow"),or({});throw y})}return{send:a,flush:i}}function Zg(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function hI(e,t){const n=t&&t.getDsn(),s=t&&t.getOptions().tunnel;return gI(e,n)||mI(e,s)}function mI(e,t){return t?ey(e)===ey(t):!1}function gI(e,t){return t?e.includes(t.host):!1}function ey(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function ty(e,t,n=[t],s="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${s}:@sentry/${a}`,version:cs})),version:cs}),e._metadata=i}function ny(e={}){const t=Oe();if(!Vk()||!t)return{};const n=ds(),s=to(n);if(s.getTraceData)return s.getTraceData(e);const i=qe(),a=e.span||vt(),c=a?VT(a):yI(i),d=a?ys(a):_g(t,i),f=BT(d);return og.test(c)?{"sentry-trace":c,baggage:f}:(ee.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function yI(e){const{traceId:t,sampled:n,spanId:s}=e.getPropagationContext();return ig(t,s,n)}const vI=100;function Ar(e,t){const n=Oe(),s=En();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=vI}=n.getOptions();if(a<=0)return;const d={timestamp:ii(),...e},f=i?Er(()=>i(d,t)):d;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),s.addBreadcrumb(f,a))}let ry;const SI="FunctionToString",sy=new WeakMap,wI=()=>({name:SI,setupOnce(){ry=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Vu(this),n=sy.has(Oe())&&t!==void 0?t:this;return ry.apply(n,e)}}catch{}},setup(e){sy.set(e,!0)}}),_I=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"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+$/],EI="InboundFilters",xI=(e={})=>({name:EI,processEvent(t,n,s){const i=s.getOptions(),a=TI(e,i);return kI(t,a)?null:t}});function TI(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_I],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function kI(e,t){return t.ignoreInternal&&OI(e)?(Te&&ee.warn(`Event dropped due to being internal Sentry Error.
Event: ${Ir(e)}`),!0):II(e,t.ignoreErrors)?(Te&&ee.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Ir(e)}`),!0):NI(e)?(Te&&ee.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Ir(e)}`),!0):bI(e,t.ignoreTransactions)?(Te&&ee.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Ir(e)}`),!0):CI(e,t.denyUrls)?(Te&&ee.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Ir(e)}.
Url: ${Xa(e)}`),!0):RI(e,t.allowUrls)?!1:(Te&&ee.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Ir(e)}.
Url: ${Xa(e)}`),!0)}function II(e,t){return e.type||!t||!t.length?!1:AI(e).some(n=>kr(n,t))}function bI(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?kr(n,t):!1}function CI(e,t){if(!t||!t.length)return!1;const n=Xa(e);return n?kr(n,t):!1}function RI(e,t){if(!t||!t.length)return!0;const n=Xa(e);return n?kr(n,t):!0}function AI(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function OI(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function PI(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Xa(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?PI(t):null}catch{return Te&&ee.error(`Cannot extract url for event ${Ir(e)}`),null}}function NI(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function MI(e,t,n=250,s,i,a,c){if(!a.exception||!a.exception.values||!c||!nr(c.originalException,Error))return;const d=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;d&&(a.exception.values=LI(ud(e,t,i,c.originalException,s,a.exception.values,d,0),n))}function ud(e,t,n,s,i,a,c,d){if(a.length>=n+1)return a;let f=[...a];if(nr(s[i],Error)){oy(c,d);const h=e(t,s[i]),g=f.length;iy(h,i,g,d),f=ud(e,t,n,s[i],i,[h,...f],h,g)}return Array.isArray(s.errors)&&s.errors.forEach((h,g)=>{if(nr(h,Error)){oy(c,d);const y=e(t,h),w=f.length;iy(y,`errors[${g}]`,w,d),f=ud(e,t,n,h,i,[y,...f],y,w)}}),f}function oy(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function iy(e,t,n,s){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:s}}function LI(e,t){return e.map(n=>(n.value&&(n.value=Xs(n.value,t)),n))}function Ss(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",s=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:s,relative:t[5]+n+s}}function jI(e){const t="console";xr(t,e),Tr(t,DI)}function DI(){"console"in Me&&$u.forEach(function(e){e in Me.console&&Vt(Me.console,e,function(t){return La[e]=t,function(...n){fn("console",{args:n,level:e});const i=La[e];i&&i.apply(Me.console,n)}})})}function ay(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const $I="Dedupe",BI=()=>{let e;return{name:$I,processEvent(t){if(t.type)return t;try{if(FI(t,e))return Te&&ee.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function FI(e,t){return t?!!(zI(e,t)||UI(e,t)):!1}function zI(e,t){const n=e.message,s=t.message;return!(!n&&!s||n&&!s||!n&&s||n!==s||!cy(e,t)||!ly(e,t))}function UI(e,t){const n=uy(t),s=uy(e);return!(!n||!s||n.type!==s.type||n.value!==s.value||!cy(e,t)||!ly(e,t))}function ly(e,t){let n=Mm(e),s=Mm(t);if(!n&&!s)return!0;if(n&&!s||!n&&s||(n=n,s=s,s.length!==n.length))return!1;for(let i=0;i<s.length;i++){const a=s[i],c=n[i];if(a.filename!==c.filename||a.lineno!==c.lineno||a.colno!==c.colno||a.function!==c.function)return!1}return!0}function cy(e,t){let n=e.fingerprint,s=t.fingerprint;if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;n=n,s=s;try{return n.join("")===s.join("")}catch{return!1}}function uy(e){return e.exception&&e.exception.values&&e.exception.values[0]}function HI(e,t,n,s,i="auto.http.browser"){if(!e.fetchData)return;const a=Rr()&&t(e.fetchData.url);if(e.endTimestamp&&a){const w=e.fetchData.__span;if(!w)return;const x=s[w];x&&(VI(x,e),delete s[w]);return}const{method:c,url:d}=e.fetchData,f=qI(d),h=f?Ss(f).host:void 0,g=!!vt(),y=a&&g?ci({name:`${c} ${d}`,attributes:{url:d,type:"fetch","http.method":c,"http.url":f,"server.address":h,[gt]:i,[ps]:"http.client"}}):new no;if(e.fetchData.__span=y.spanContext().spanId,s[y.spanContext().spanId]=y,n(e.fetchData.url)){const w=e.args[0],x=e.args[1]||{},_=WI(w,x,Rr()&&g?y:void 0);_&&(e.args[1]=x,x.headers=_)}return y}function WI(e,t,n){const s=ny({span:n}),i=s["sentry-trace"],a=s.baggage;if(!i)return;const c=t.headers||(GI(e)?e.headers:void 0);if(c)if(YI(c)){const d=new Headers(c);if(d.set("sentry-trace",i),a){const f=d.get("baggage");if(f){const h=Ja(f);d.set("baggage",h?`${h},${a}`:a)}else d.set("baggage",a)}return d}else if(Array.isArray(c)){const d=[...c.filter(f=>!(Array.isArray(f)&&f[0]==="sentry-trace")).map(f=>{if(Array.isArray(f)&&f[0]==="baggage"&&typeof f[1]=="string"){const[h,g,...y]=f;return[h,Ja(g),...y]}else return f}),["sentry-trace",i]];return a&&d.push(["baggage",a]),d}else{const d="baggage"in c?c.baggage:void 0;let f=[];return Array.isArray(d)?f=d.map(h=>typeof h=="string"?Ja(h):h).filter(h=>h===""):d&&f.push(Ja(d)),a&&f.push(a),{...c,"sentry-trace":i,baggage:f.length>0?f.join(","):void 0}}else return{...s}}function qI(e){try{return new URL(e).href}catch{return}}function VI(e,t){if(t.response){ng(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const s=parseInt(n);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:yt,message:"internal_error"});e.end()}function Ja(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(td)).join(",")}function GI(e){return typeof Request<"u"&&nr(e,Request)}function YI(e){return typeof Headers<"u"&&nr(e,Headers)}function dy(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const dd=Me;function fy(){if(!("fetch"in dd))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function fd(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function KI(){if(typeof EdgeRuntime=="string")return!0;if(!fy())return!1;if(fd(dd.fetch))return!0;let e=!1;const t=dd.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=fd(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){_r&&ee.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function py(e,t){const n="fetch";xr(n,e),Tr(n,()=>hy(void 0,t))}function QI(e){const t="fetch-body-resolved";xr(t,e),Tr(t,()=>hy(JI))}function hy(e,t=!1){t&&!KI()||Vt(Me,"fetch",function(n){return function(...s){const i=new Error,{method:a,url:c}=ZI(s),d={args:s,fetchData:{method:a,url:c},startTimestamp:jt()*1e3,virtualError:i};return e||fn("fetch",{...d}),n.apply(Me,s).then(async f=>(e?e(f):fn("fetch",{...d,endTimestamp:jt()*1e3,response:f}),f),f=>{throw fn("fetch",{...d,endTimestamp:jt()*1e3,error:f}),Hu(f)&&f.stack===void 0&&(f.stack=i.stack,pn(f,"framesToPop",1)),f})}})}async function XI(e,t){if(e&&e.body){const n=e.body,s=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let a=!0;for(;a;){let c;try{c=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:d}=await s.read();clearTimeout(c),d&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(c)}}clearTimeout(i),s.releaseLock(),n.cancel().then(null,()=>{})}}function JI(e){let t;try{t=e.clone()}catch{return}XI(t,()=>{fn("fetch-body-resolved",{endTimestamp:jt()*1e3,response:e})})}function pd(e,t){return!!e&&typeof e=="object"&&!!e[t]}function my(e){return typeof e=="string"?e:e?pd(e,"url")?e.url:e.toString?e.toString():"":""}function ZI(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,s]=e;return{url:my(n),method:pd(s,"method")?String(s.method).toUpperCase():"GET"}}const t=e[0];return{url:my(t),method:pd(t,"method")?String(t.method).toUpperCase():"GET"}}function eb(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function tb(){return"npm"}function nb(){return!eb()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function gy(){return typeof window<"u"&&(!nb()||rb())}function rb(){const e=Me.process;return!!e&&e.type==="renderer"}const Za=Me;function sb(){const e=Za.chrome,t=e&&e.app&&e.app.runtime,n="history"in Za&&!!Za.history.pushState&&!!Za.history.replaceState;return!t&&n}function ob(e,t){return e??t()}function el(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}const _e=Me;let hd=0;function yy(){return hd>0}function ib(){hd++,setTimeout(()=>{hd--})}function ro(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(Vu(e))return e}catch{return e}const s=function(...i){try{const a=i.map(c=>ro(c,t));return e.apply(this,a)}catch(a){throw ib(),Xu(c=>{c.addEventProcessor(d=>(t.mechanism&&(Yu(d,void 0),Js(d,t.mechanism)),d.extra={...d.extra,arguments:i},d)),Tn(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=e[i])}catch{}qm(s,e),pn(e,"__sentry_wrapped__",s);try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get(){return e.name}})}catch{}return s}const Un=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function md(e,t){const n=yd(e,t),s={type:db(t),value:fb(t)};return n.length&&(s.stacktrace={frames:n}),s.type===void 0&&s.value===""&&(s.value="Unrecoverable error caught"),s}function ab(e,t,n,s){const i=Oe(),a=i&&i.getOptions().normalizeDepth,c=yb(t),d={__serialized__:xg(t,a)};if(c)return{exception:{values:[md(e,c)]},extra:d};const f={exception:{values:[{type:$a(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:mb(t,{isUnhandledRejection:s})}]},extra:d};if(n){const h=yd(e,n);h.length&&(f.exception.values[0].stacktrace={frames:h})}return f}function gd(e,t){return{exception:{values:[md(e,t)]}}}function yd(e,t){const n=t.stacktrace||t.stack||"",s=cb(t),i=ub(t);try{return e(n,s,i)}catch{}return[]}const lb=/Minified React error #\d+;/i;function cb(e){return e&&lb.test(e.message)?1:0}function ub(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function vy(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function db(e){const t=e&&e.name;return!t&&vy(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function fb(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:vy(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function pb(e,t,n,s){const i=n&&n.syntheticException||void 0,a=vd(e,t,i,s);return Js(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),or(a)}function hb(e,t,n="info",s,i){const a=s&&s.syntheticException||void 0,c=Sd(e,t,a,i);return c.level=n,s&&s.event_id&&(c.event_id=s.event_id),or(c)}function vd(e,t,n,s,i){let a;if(Bm(t)&&t.error)return gd(e,t.error);if(Fm(t)||cT(t)){const c=t;if("stack"in t)a=gd(e,t);else{const d=c.name||(Fm(c)?"DOMError":"DOMException"),f=c.message?`${d}: ${c.message}`:d;a=Sd(e,f,n,s),Yu(a,f)}return"code"in c&&(a.tags={...a.tags,"DOMException.code":`${c.code}`}),a}return Hu(t)?gd(e,t):Ks(t)||$a(t)?(a=ab(e,t,n,i),Js(a,{synthetic:!0}),a):(a=Sd(e,t,n,s),Yu(a,`${t}`),Js(a,{synthetic:!0}),a)}function Sd(e,t,n,s){const i={};if(s&&n){const a=yd(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]}),Js(i,{synthetic:!0})}if(Wu(t)){const{__sentry_template_string__:a,__sentry_template_values__:c}=t;return i.logentry={message:a,params:c},i}return i.message=t,i}function mb(e,{isUnhandledRejection:t}){const n=yT(e),s=t?"promise rejection":"exception";return Bm(e)?`Event \`ErrorEvent\` captured as ${s} with message \`${e.message}\``:$a(e)?`Event \`${gb(e)}\` (type=${e.type}) captured as ${s}`:`Object captured as ${s} with keys: ${n}`}function gb(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function yb(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function vb(e,{metadata:t,tunnel:n,dsn:s}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!s&&{dsn:li(s)}},a=Sb(e);return vs(i,[a])}function Sb(e){return[{type:"user_report"},e]}class wb extends rI{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},s=_e.SENTRY_SDK_SOURCE||tb();ty(n,"browser",["browser"],s),super(n),n.sendClientReports&&_e.document&&_e.document.addEventListener("visibilitychange",()=>{_e.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return pb(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",s){return hb(this._options.stackParser,t,n,s,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Un&&ee.warn("SDK not enabled, will not capture user feedback.");return}const n=vb(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,s)}}const wd=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_b=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",so=(e,t,n,s)=>{let i,a;return c=>{t.value>=0&&(c||s)&&(a=t.value-(i||0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=_b(t.value,n),e(t)))}},pe=Me,Eb=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ui=(e=!0)=>{const t=pe.performance&&pe.performance.getEntriesByType&&pe.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},di=()=>{const e=ui();return e&&e.activationStart||0},oo=(e,t)=>{const n=ui();let s="navigate";return n&&(pe.document&&pe.document.prerendering||di()>0?s="prerender":pe.document&&pe.document.wasDiscarded?s="restore":n.type&&(s=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Eb(),navigationType:s}},ws=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const s=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return s.observe(Object.assign({type:e,buffered:!0},n||{})),s}}catch{}},io=e=>{const t=n=>{(n.type==="pagehide"||pe.document&&pe.document.visibilityState==="hidden")&&e(n)};pe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},tl=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let fi=-1;const xb=()=>pe.document.visibilityState==="hidden"&&!pe.document.prerendering?0:1/0,nl=e=>{pe.document.visibilityState==="hidden"&&fi>-1&&(fi=e.type==="visibilitychange"?e.timeStamp:0,kb())},Tb=()=>{addEventListener("visibilitychange",nl,!0),addEventListener("prerenderingchange",nl,!0)},kb=()=>{removeEventListener("visibilitychange",nl,!0),removeEventListener("prerenderingchange",nl,!0)},rl=()=>(pe.document&&fi<0&&(fi=xb(),Tb()),{get firstHiddenTime(){return fi}}),pi=e=>{pe.document&&pe.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Ib=[1800,3e3],bb=(e,t={})=>{pi(()=>{const n=rl(),s=oo("FCP");let i;const c=ws("paint",d=>{d.forEach(f=>{f.name==="first-contentful-paint"&&(c.disconnect(),f.startTime<n.firstHiddenTime&&(s.value=Math.max(f.startTime-di(),0),s.entries.push(f),i(!0)))})});c&&(i=so(e,s,Ib,t.reportAllChanges))})},Cb=[.1,.25],Rb=(e,t={})=>{bb(tl(()=>{const n=oo("CLS",0);let s,i=0,a=[];const c=f=>{f.forEach(h=>{if(!h.hadRecentInput){const g=a[0],y=a[a.length-1];i&&g&&y&&h.startTime-y.startTime<1e3&&h.startTime-g.startTime<5e3?(i+=h.value,a.push(h)):(i=h.value,a=[h])}}),i>n.value&&(n.value=i,n.entries=a,s())},d=ws("layout-shift",c);d&&(s=so(e,n,Cb,t.reportAllChanges),io(()=>{c(d.takeRecords()),s(!0)}),setTimeout(s,0))}))},Ab=[100,300],Ob=(e,t={})=>{pi(()=>{const n=rl(),s=oo("FID");let i;const a=f=>{f.startTime<n.firstHiddenTime&&(s.value=f.processingStart-f.startTime,s.entries.push(f),i(!0))},c=f=>{f.forEach(a)},d=ws("first-input",c);i=so(e,s,Ab,t.reportAllChanges),d&&io(tl(()=>{c(d.takeRecords()),d.disconnect()}))})};let Sy=0,_d=1/0,sl=0;const Pb=e=>{e.forEach(t=>{t.interactionId&&(_d=Math.min(_d,t.interactionId),sl=Math.max(sl,t.interactionId),Sy=sl?(sl-_d)/7+1:0)})};let Ed;const Nb=()=>Ed?Sy:performance.interactionCount||0,Mb=()=>{"interactionCount"in performance||Ed||(Ed=ws("event",Pb,{type:"event",buffered:!0,durationThreshold:0}))},ir=[],xd=new Map,Lb=40;let jb=0;const Db=()=>Nb()-jb,$b=()=>{const e=Math.min(ir.length-1,Math.floor(Db()/50));return ir[e]},Td=10,Bb=[],Fb=e=>{if(Bb.forEach(s=>s(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=ir[ir.length-1],n=xd.get(e.interactionId);if(n||ir.length<Td||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const s={id:e.interactionId,latency:e.duration,entries:[e]};xd.set(s.id,s),ir.push(s)}ir.sort((s,i)=>i.latency-s.latency),ir.length>Td&&ir.splice(Td).forEach(s=>xd.delete(s.id))}},wy=e=>{const t=pe.requestIdleCallback||pe.setTimeout;let n=-1;return e=tl(e),pe.document&&pe.document.visibilityState==="hidden"?e():(n=t(e),io(e)),n},zb=[200,500],Ub=(e,t={})=>{"PerformanceEventTiming"in pe&&"interactionId"in PerformanceEventTiming.prototype&&pi(()=>{Mb();const n=oo("INP");let s;const i=c=>{wy(()=>{c.forEach(Fb);const d=$b();d&&d.latency!==n.value&&(n.value=d.latency,n.entries=d.entries,s())})},a=ws("event",i,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:Lb});s=so(e,n,zb,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),io(()=>{i(a.takeRecords()),s(!0)}))})},Hb=[2500,4e3],_y={},Wb=(e,t={})=>{pi(()=>{const n=rl(),s=oo("LCP");let i;const a=d=>{t.reportAllChanges||(d=d.slice(-1)),d.forEach(f=>{f.startTime<n.firstHiddenTime&&(s.value=Math.max(f.startTime-di(),0),s.entries=[f],i())})},c=ws("largest-contentful-paint",a);if(c){i=so(e,s,Hb,t.reportAllChanges);const d=tl(()=>{_y[s.id]||(a(c.takeRecords()),c.disconnect(),_y[s.id]=!0,i(!0))});["keydown","click"].forEach(f=>{pe.document&&addEventListener(f,()=>wy(d),{once:!0,capture:!0})}),io(d)}})},qb=[800,1800],kd=e=>{pe.document&&pe.document.prerendering?pi(()=>kd(e)):pe.document&&pe.document.readyState!=="complete"?addEventListener("load",()=>kd(e),!0):setTimeout(e,0)},Vb=(e,t={})=>{const n=oo("TTFB"),s=so(e,n,qb,t.reportAllChanges);kd(()=>{const i=ui();i&&(n.value=Math.max(i.responseStart-di(),0),n.entries=[i],s(!0))})},hi={},ol={};let Ey,xy,Ty,ky,Iy;function Id(e,t=!1){return mi("cls",e,Yb,Ey,t)}function by(e,t=!1){return mi("lcp",e,Qb,Ty,t)}function Cy(e){return mi("fid",e,Kb,xy)}function Gb(e){return mi("ttfb",e,Xb,ky)}function Ry(e){return mi("inp",e,Jb,Iy)}function ao(e,t){return Ay(e,t),ol[e]||(Zb(e),ol[e]=!0),Oy(e,t)}function lo(e,t){const n=hi[e];if(!(!n||!n.length))for(const s of n)try{s(t)}catch(i){wd&&ee.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${er(s)}
Error:`,i)}}function Yb(){return Rb(e=>{lo("cls",{metric:e}),Ey=e},{reportAllChanges:!0})}function Kb(){return Ob(e=>{lo("fid",{metric:e}),xy=e})}function Qb(){return Wb(e=>{lo("lcp",{metric:e}),Ty=e},{reportAllChanges:!0})}function Xb(){return Vb(e=>{lo("ttfb",{metric:e}),ky=e})}function Jb(){return Ub(e=>{lo("inp",{metric:e}),Iy=e})}function mi(e,t,n,s,i=!1){Ay(e,t);let a;return ol[e]||(a=n(),ol[e]=!0),s&&t({metric:s}),Oy(e,t,i?a:void 0)}function Zb(e){const t={};e==="event"&&(t.durationThreshold=0),ws(e,n=>{lo(e,{entries:n})},t)}function Ay(e,t){hi[e]=hi[e]||[],hi[e].push(t)}function Oy(e,t,n){return()=>{n&&n();const s=hi[e];if(!s)return;const i=s.indexOf(t);i!==-1&&s.splice(i,1)}}function eC(e){return"duration"in e}function bd(e){return typeof e=="number"&&isFinite(e)}function ar(e,t,n,{...s}){const i=Fe(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Pg(e,()=>{const a=ci({startTime:t,...s});return a&&a.end(n),a})}function Py(e){const t=Oe();if(!t)return;const{name:n,transaction:s,attributes:i,startTime:a}=e,{release:c,environment:d}=t.getOptions(),f=t.getIntegrationByName("Replay"),h=f&&f.getReplayId(),g=qe(),y=g.getUser(),w=y!==void 0?y.email||y.id||y.ip_address:void 0;let x;try{x=g.getScopeData().contexts.profile.profile_id}catch{}const _={release:c,environment:d,user:w||void 0,profile_id:x||void 0,replay_id:h||void 0,transaction:s,"user_agent.original":pe.navigator&&pe.navigator.userAgent,...i};return ci({name:n,attributes:_,startTime:a,experimental:{standalone:!0}})}function Cd(){return pe&&pe.addEventListener&&pe.performance}function ot(e){return e/1e3}function tC(){let e=0,t,n;if(!rC())return;let s=!1;function i(){s||(s=!0,n&&nC(e,t,n),a())}const a=Id(({metric:c})=>{const d=c.entries[c.entries.length-1];d&&(e=c.value,t=d)},!0);io(()=>{i()}),setTimeout(()=>{const c=Oe();if(!c)return;const d=c.on("startNavigationSpan",()=>{i(),d&&d()}),f=vt(),h=f&&kt(f),g=h&&Fe(h);g&&g.op==="pageload"&&(n=h.spanContext().spanId)},0)}function nC(e,t,n){wd&&ee.log(`Sending CLS span (${e})`);const s=ot((Dt||0)+(t&&t.startTime||0)),i=qe().getScopeData().transactionName,a=t?rr(t.sources[0]&&t.sources[0].node):"Layout shift",c=ft({[gt]:"auto.http.browser.cls",[ps]:"ui.webvital.cls",[ed]:t&&t.duration||0,"sentry.pageload.span_id":n}),d=Py({name:a,transaction:i,attributes:c,startTime:s});d&&(d.addEvent("cls",{[Ha]:"",[Wa]:e}),d.end(s))}function rC(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const sC=2147483647;let Ny=0,It={},Gt,gi;function oC({recordClsStandaloneSpans:e}){const t=Cd();if(t&&Dt){t.mark&&pe.performance.mark("sentry-tracing-init");const n=dC(),s=uC(),i=fC(),a=e?tC():cC();return()=>{n(),s(),i(),a&&a()}}return()=>{}}function iC(){ao("longtask",({entries:e})=>{const t=vt();if(!t)return;const{op:n,start_timestamp:s}=Fe(t);for(const i of e){const a=ot(Dt+i.startTime),c=ot(i.duration);n==="navigation"&&s&&a<s||ar(t,a,a+c,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[gt]:"auto.ui.browser.metrics"}})}})}function aC(){new PerformanceObserver(t=>{const n=vt();if(n)for(const s of t.getEntries()){if(!s.scripts[0])continue;const i=ot(Dt+s.startTime),{start_timestamp:a,op:c}=Fe(n);if(c==="navigation"&&a&&i<a)continue;const d=ot(s.duration),f={[gt]:"auto.ui.browser.metrics"},h=s.scripts[0],{invoker:g,invokerType:y,sourceURL:w,sourceFunctionName:x,sourceCharPosition:_}=h;f["browser.script.invoker"]=g,f["browser.script.invoker_type"]=y,w&&(f["code.filepath"]=w),x&&(f["code.function"]=x),_!==-1&&(f["browser.script.source_char_position"]=_),ar(n,i,i+d,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function lC(){ao("event",({entries:e})=>{const t=vt();if(t){for(const n of e)if(n.name==="click"){const s=ot(Dt+n.startTime),i=ot(n.duration),a={name:rr(n.target),op:`ui.interaction.${n.name}`,startTime:s,attributes:{[gt]:"auto.ui.browser.metrics"}},c=Hm(n.target);c&&(a.attributes["ui.component_name"]=c),ar(t,s,s+i,a)}}})}function cC(){return Id(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(It.cls={value:e.value,unit:""},gi=t)},!0)}function uC(){return by(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(It.lcp={value:e.value,unit:"millisecond"},Gt=t)},!0)}function dC(){return Cy(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ot(Dt),s=ot(t.startTime);It.fid={value:e.value,unit:"millisecond"},It["mark.fid"]={value:n+s,unit:"second"}})}function fC(){return Gb(({metric:e})=>{e.entries[e.entries.length-1]&&(It.ttfb={value:e.value,unit:"millisecond"})})}function pC(e,t){const n=Cd();if(!n||!n.getEntries||!Dt)return;const s=ot(Dt),i=n.getEntries(),{op:a,start_timestamp:c}=Fe(e);if(i.slice(Ny).forEach(d=>{const f=ot(d.startTime),h=ot(Math.max(0,d.duration));if(!(a==="navigation"&&c&&s+f<c))switch(d.entryType){case"navigation":{mC(e,d,s);break}case"mark":case"paint":case"measure":{hC(e,d,f,h,s);const g=rl(),y=d.startTime<g.firstHiddenTime;d.name==="first-paint"&&y&&(It.fp={value:d.startTime,unit:"millisecond"}),d.name==="first-contentful-paint"&&y&&(It.fcp={value:d.startTime,unit:"millisecond"});break}case"resource":{vC(e,d,d.name,f,h,s);break}}}),Ny=Math.max(i.length-1,0),SC(e),a==="pageload"){_C(It);const d=It["mark.fid"];d&&It.fid&&(ar(e,d.value,d.value+ot(It.fid.value),{name:"first input delay",op:"ui.action",attributes:{[gt]:"auto.ui.browser.metrics"}}),delete It["mark.fid"]),(!("fcp"in It)||!t.recordClsOnPageloadSpan)&&delete It.cls,Object.entries(It).forEach(([f,h])=>{_k(f,h.value,h.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",di()),wC(e)}Gt=void 0,gi=void 0,It={}}function hC(e,t,n,s,i){const a=ui(!1),c=ot(a?a.requestStart:0),d=i+Math.max(n,c),f=i+n,h=f+s,g={[gt]:"auto.resource.browser.metrics"};return d!==f&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=d),ar(e,d,h,{name:t.name,op:t.entryType,attributes:g}),d}function mC(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(s=>{il(e,t,s,n)}),il(e,t,"secureConnection",n,"TLS/SSL"),il(e,t,"fetch",n,"cache"),il(e,t,"domainLookup",n,"DNS"),yC(e,t,n)}function il(e,t,n,s,i=n){const a=gC(n),c=t[a],d=t[`${n}Start`];!d||!c||ar(e,s+ot(d),s+ot(c),{op:`browser.${i}`,name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}})}function gC(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function yC(e,t,n){const s=n+ot(t.requestStart),i=n+ot(t.responseEnd),a=n+ot(t.responseStart);t.responseEnd&&(ar(e,s,i,{op:"browser.request",name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}}),ar(e,a,i,{op:"browser.response",name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}}))}function vC(e,t,n,s,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=Ss(n),d={[gt]:"auto.resource.browser.metrics"};Rd(d,t,"transferSize","http.response_transfer_size"),Rd(d,t,"encodedBodySize","http.response_content_length"),Rd(d,t,"decodedBodySize","http.decoded_response_content_length");const f=t.deliveryType;f!=null&&(d["http.response_delivery_type"]=f);const h=t.renderBlockingStatus;h&&(d["resource.render_blocking_status"]=h),c.protocol&&(d["url.scheme"]=c.protocol.split(":").pop()),c.host&&(d["server.address"]=c.host),d["url.same_origin"]=n.includes(pe.location.origin);const g=a+s,y=g+i;ar(e,g,y,{name:n.replace(pe.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:d})}function SC(e){const t=pe.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),bd(n.rtt)&&(It["connection.rtt"]={value:n.rtt,unit:"millisecond"})),bd(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),bd(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function wC(e){Gt&&(Gt.element&&e.setAttribute("lcp.element",rr(Gt.element)),Gt.id&&e.setAttribute("lcp.id",Gt.id),Gt.url&&e.setAttribute("lcp.url",Gt.url.trim().slice(0,200)),Gt.loadTime!=null&&e.setAttribute("lcp.loadTime",Gt.loadTime),Gt.renderTime!=null&&e.setAttribute("lcp.renderTime",Gt.renderTime),e.setAttribute("lcp.size",Gt.size)),gi&&gi.sources&&gi.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,rr(t.node)))}function Rd(e,t,n,s){const i=t[n];i!=null&&i<sC&&(e[s]=i)}function _C(e){const t=ui(!1);if(!t)return;const{responseStart:n,requestStart:s}=t;s<=n&&(e["ttfb.requestTime"]={value:n-s,unit:"millisecond"})}const EC=1e3;let My,Ad,Od;function Ly(e){const t="dom";xr(t,e),Tr(t,xC)}function xC(){if(!pe.document)return;const e=fn.bind(null,"dom"),t=jy(e,!0);pe.document.addEventListener("click",t,!1),pe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=pe[n],a=i&&i.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(Vt(a,"addEventListener",function(c){return function(d,f,h){if(d==="click"||d=="keypress")try{const g=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},y=g[d]=g[d]||{refCount:0};if(!y.handler){const w=jy(e);y.handler=w,c.call(this,d,w,h)}y.refCount++}catch{}return c.call(this,d,f,h)}}),Vt(a,"removeEventListener",function(c){return function(d,f,h){if(d==="click"||d=="keypress")try{const g=this.__sentry_instrumentation_handlers__||{},y=g[d];y&&(y.refCount--,y.refCount<=0&&(c.call(this,d,y.handler,h),y.handler=void 0,delete g[d]),Object.keys(g).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,d,f,h)}}))})}function TC(e){if(e.type!==Ad)return!1;try{if(!e.target||e.target._sentryId!==Od)return!1}catch{}return!0}function kC(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function jy(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const s=IC(n);if(kC(n.type,s))return;pn(n,"_sentryCaptured",!0),s&&!s._sentryId&&pn(s,"_sentryId",sn());const i=n.type==="keypress"?"input":n.type;TC(n)||(e({event:n,name:i,global:t}),Ad=n.type,Od=s?s._sentryId:void 0),clearTimeout(My),My=pe.setTimeout(()=>{Od=void 0,Ad=void 0},EC)}}function IC(e){try{return e.target}catch{return null}}let al;function ll(e){const t="history";xr(t,e),Tr(t,bC)}function bC(){if(!sb())return;const e=pe.onpopstate;pe.onpopstate=function(...n){const s=pe.location.href,i=al;if(al=s,fn("history",{from:i,to:s}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...s){const i=s.length>2?s[2]:void 0;if(i){const a=al,c=String(i);al=c,fn("history",{from:a,to:c})}return n.apply(this,s)}}Vt(pe.history,"pushState",t),Vt(pe.history,"replaceState",t)}const cl={};function Dy(e){const t=cl[e];if(t)return t;let n=pe[e];if(fd(n))return cl[e]=n.bind(pe);const s=pe.document;if(s&&typeof s.createElement=="function")try{const i=s.createElement("iframe");i.hidden=!0,s.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(n=a[e]),s.head.removeChild(i)}catch(i){wd&&ee.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(cl[e]=n.bind(pe))}function $y(e){cl[e]=void 0}function co(...e){return Dy("setTimeout")(...e)}const _s="__sentry_xhr_v3__";function By(e){const t="xhr";xr(t,e),Tr(t,CC)}function CC(){if(!pe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,s){const i=new Error,a=jt()*1e3,c=tr(s[0])?s[0].toUpperCase():void 0,d=RC(s[1]);if(!c||!d)return t.apply(n,s);n[_s]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const h=n[_s];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const g={endTimestamp:jt()*1e3,startTimestamp:a,xhr:n,virtualError:i};fn("xhr",g)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,g,y){return f(),h.apply(g,y)}}):n.addEventListener("readystatechange",f),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,g,y){const[w,x]=y,_=g[_s];return _&&tr(w)&&tr(x)&&(_.request_headers[w.toLowerCase()]=x),h.apply(g,y)}}),t.apply(n,s)}}),e.send=new Proxy(e.send,{apply(t,n,s){const i=n[_s];if(!i)return t.apply(n,s);s[0]!==void 0&&(i.body=s[0]);const a={startTimestamp:jt()*1e3,xhr:n};return fn("xhr",a),t.apply(n,s)}})}function RC(e){if(tr(e))return e;try{return e.toString()}catch{}}const Pd=[],ul=new Map;function AC(){if(Cd()&&Dt){const t=OC();return()=>{t()}}return()=>{}}const Fy={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"};function OC(){return Ry(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(_=>_.duration===e.value&&Fy[_.name]);if(!t)return;const{interactionId:n}=t,s=Fy[t.name],i=ot(Dt+t.startTime),a=ot(e.value),c=vt(),d=c?kt(c):void 0,h=(n!=null?ul.get(n):void 0)||d,g=h?Fe(h).description:qe().getScopeData().transactionName,y=rr(t.target),w=ft({[gt]:"auto.http.browser.inp",[ps]:`ui.interaction.${s}`,[ed]:t.duration}),x=Py({name:y,transaction:g,attributes:w,startTime:i});x&&(x.addEvent("inp",{[Ha]:"millisecond",[Wa]:e.value}),x.end(i+a))})}function PC(e){const t=({entries:n})=>{const s=vt(),i=s&&kt(s);n.forEach(a=>{if(!eC(a)||!i)return;const c=a.interactionId;if(c!=null&&!ul.has(c)){if(Pd.length>10){const d=Pd.shift();ul.delete(d)}Pd.push(c),ul.set(c,i)}})};ao("event",t),ao("first-input",t)}function NC(e,t=Dy("fetch")){let n=0,s=0;function i(a){const c=a.body.length;n+=c,s++;const d={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&s<15,...e.fetchOptions};if(!t)return $y("fetch"),Fa("No fetch implementation available");try{return t(e.url,d).then(f=>(n-=c,s--,{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}))}catch(f){return $y("fetch"),n-=c,s--,Fa(f)}}return pI(e,i)}const MC=30,LC=50;function Nd(e,t,n,s){const i={filename:e,function:t==="<anonymous>"?us:t,in_app:!0};return n!==void 0&&(i.lineno=n),s!==void 0&&(i.colno=s),i}const jC=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,DC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$C=/\((\S*)(?::(\d+))(?::(\d+))\)/,BC=[MC,e=>{const t=jC.exec(e);if(t){const[,s,i,a]=t;return Nd(s,us,+i,+a)}const n=DC.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=$C.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[i,a]=zy(n[1]||us,n[2]);return Nd(a,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],FC=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zC=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,UC=Nm(...[BC,[LC,e=>{const t=FC.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=zC.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let s=t[3],i=t[1]||us;return[i,s]=zy(i,s),Nd(s,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),zy=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,s=e.indexOf("safari-web-extension")!==-1;return n||s?[e.indexOf("@")!==-1?e.split("@")[0]:us,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},dl=1024,HC="Breadcrumbs",WC=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:HC,setup(n){t.console&&jI(GC(n)),t.dom&&Ly(VC(n,t.dom)),t.xhr&&By(YC(n)),t.fetch&&py(KC(n)),t.history&&ll(QC(n)),t.sentry&&n.on("beforeSendEvent",qC(n))}}};function qC(e){return function(n){Oe()===e&&Ar({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ir(n)},{event:n})}}function VC(e,t){return function(s){if(Oe()!==e)return;let i,a,c=typeof t=="object"?t.serializeAttribute:void 0,d=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;d&&d>dl&&(Un&&ee.warn(`\`dom.maxStringLength\` cannot exceed ${dl}, but a value of ${d} was configured. Sentry will use ${dl} instead.`),d=dl),typeof c=="string"&&(c=[c]);try{const h=s.event,g=XC(h)?h.target:h;i=rr(g,{keyAttrs:c,maxStringLength:d}),a=Hm(g)}catch{i="<unknown>"}if(i.length===0)return;const f={category:`ui.${s.name}`,message:i};a&&(f.data={"ui.component_name":a}),Ar(f,{event:s.event,name:s.name,global:s.global})}}function GC(e){return function(n){if(Oe()!==e)return;const s={category:"console",data:{arguments:n.args,logger:"console"},level:ay(n.level),message:Wm(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)s.message=`Assertion failed: ${Wm(n.args.slice(1)," ")||"console.assert"}`,s.data.arguments=n.args.slice(1);else return;Ar(s,{input:n.args,level:n.level})}}function YC(e){return function(n){if(Oe()!==e)return;const{startTimestamp:s,endTimestamp:i}=n,a=n.xhr[_s];if(!s||!i||!a)return;const{method:c,url:d,status_code:f,body:h}=a,g={method:c,url:d,status_code:f},y={xhr:n.xhr,input:h,startTimestamp:s,endTimestamp:i},w=dy(f);Ar({category:"xhr",data:g,type:"http",level:w},y)}}function KC(e){return function(n){if(Oe()!==e)return;const{startTimestamp:s,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,c={data:n.error,input:n.args,startTimestamp:s,endTimestamp:i};Ar({category:"fetch",data:a,level:"error",type:"http"},c)}else{const a=n.response,c={...n.fetchData,status_code:a&&a.status},d={input:n.args,response:a,startTimestamp:s,endTimestamp:i},f=dy(c.status_code);Ar({category:"fetch",data:c,type:"http",level:f},d)}}}function QC(e){return function(n){if(Oe()!==e)return;let s=n.from,i=n.to;const a=Ss(_e.location.href);let c=s?Ss(s):void 0;const d=Ss(i);(!c||!c.path)&&(c=a),a.protocol===d.protocol&&a.host===d.host&&(i=d.relative),a.protocol===c.protocol&&a.host===c.host&&(s=c.relative),Ar({category:"navigation",data:{from:s,to:i}})}}function XC(e){return!!e&&!!e.target}const JC=["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"],ZC="BrowserApiErrors",eR=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:ZC,setupOnce(){t.setTimeout&&Vt(_e,"setTimeout",Uy),t.setInterval&&Vt(_e,"setInterval",Uy),t.requestAnimationFrame&&Vt(_e,"requestAnimationFrame",tR),t.XMLHttpRequest&&"XMLHttpRequest"in _e&&Vt(XMLHttpRequest.prototype,"send",nR);const n=t.eventTarget;n&&(Array.isArray(n)?n:JC).forEach(rR)}}};function Uy(e){return function(...t){const n=t[0];return t[0]=ro(n,{mechanism:{data:{function:er(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tR(e){return function(t){return e.apply(this,[ro(t,{mechanism:{data:{function:"requestAnimationFrame",handler:er(e)},handled:!1,type:"instrument"}})])}}function nR(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Vt(n,i,function(a){const c={mechanism:{data:{function:i,handler:er(a)},handled:!1,type:"instrument"}},d=Vu(a);return d&&(c.mechanism.data.handler=er(d)),ro(a,c)})}),e.apply(this,t)}}function rR(e){const n=_e[e],s=n&&n.prototype;!s||!s.hasOwnProperty||!s.hasOwnProperty("addEventListener")||(Vt(s,"addEventListener",function(i){return function(a,c,d){try{sR(c)&&(c.handleEvent=ro(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:er(c),target:e},handled:!1,type:"instrument"}}))}catch{}return i.apply(this,[a,ro(c,{mechanism:{data:{function:"addEventListener",handler:er(c),target:e},handled:!1,type:"instrument"}}),d])}}),Vt(s,"removeEventListener",function(i){return function(a,c,d){try{const f=c.__sentry_wrapped__;f&&i.call(this,a,f,d)}catch{}return i.call(this,a,c,d)}}))}function sR(e){return typeof e.handleEvent=="function"}const oR=()=>({name:"BrowserSession",setupOnce(){if(typeof _e.document>"u"){Un&&ee.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}zg({ignoreDuration:!0}),Wg(),ll(({from:e,to:t})=>{e!==void 0&&e!==t&&(zg({ignoreDuration:!0}),Wg())})}}),iR="GlobalHandlers",aR=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:iR,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(lR(n),Hy("onerror")),t.onunhandledrejection&&(cR(n),Hy("onunhandledrejection"))}}};function lR(e){jm(t=>{const{stackParser:n,attachStacktrace:s}=Wy();if(Oe()!==e||yy())return;const{msg:i,url:a,line:c,column:d,error:f}=t,h=fR(vd(n,f||i,void 0,s,!1),a,c,d);h.level="error",Bg(h,{originalException:f,mechanism:{handled:!1,type:"onerror"}})})}function cR(e){Dm(t=>{const{stackParser:n,attachStacktrace:s}=Wy();if(Oe()!==e||yy())return;const i=uR(t),a=qu(i)?dR(i):vd(n,i,void 0,s,!0);a.level="error",Bg(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function uR(e){if(qu(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function dR(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function fR(e,t,n,s){const i=e.exception=e.exception||{},a=i.values=i.values||[],c=a[0]=a[0]||{},d=c.stacktrace=c.stacktrace||{},f=d.frames=d.frames||[],h=s,g=n,y=tr(t)&&t.length>0?t:Um();return f.length===0&&f.push({colno:h,filename:y,function:us,in_app:!0,lineno:g}),e}function Hy(e){Un&&ee.log(`Global Handler attached: ${e}`)}function Wy(){const e=Oe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const pR=()=>({name:"HttpContext",preprocessEvent(e){if(!_e.navigator&&!_e.location&&!_e.document)return;const t=e.request&&e.request.url||_e.location&&_e.location.href,{referrer:n}=_e.document||{},{userAgent:s}=_e.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...s&&{"User-Agent":s}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),hR="cause",mR=5,gR="LinkedErrors",yR=(e={})=>{const t=e.limit||mR,n=e.key||hR;return{name:gR,preprocessEvent(s,i,a){const c=a.getOptions();MI(md,c.stackParser,c.maxValueLength,n,t,s,i)}}};function vR(e){const t=[xI(),wI(),eR(),WC(),aR(),yR(),BI(),pR()];return e.autoSessionTracking!==!1&&t.push(oR()),t}function SR(e={}){const t={defaultIntegrations:vR(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:_e.SENTRY_RELEASE&&_e.SENTRY_RELEASE.id?_e.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function wR(){const e=typeof _e.window<"u"&&_e;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],s=n&&n.runtime&&n.runtime.id,i=_e.location&&_e.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],c=!!s&&_e===_e.top&&a.some(f=>i.startsWith(`${f}//`)),d=typeof e.nw<"u";return!!s&&!c&&!d}function _R(e={}){const t=SR(e);if(!t.skipBrowserExtensionCheck&&wR()){Er(()=>{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}Un&&(fy()||ee.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:oT(t.stackParser||UC),integrations:eI(t),transport:t.transport||NC};return iI(wb,n)}const Ve=Me,Md="sentryReplaySession",ER="replay_event",Ld="Unable to send Replay",xR=3e5,TR=9e5,kR=5e3,IR=5500,bR=6e4,CR=5e3,RR=3,qy=15e4,fl=5e3,AR=3e3,OR=300,jd=2e7,PR=4999,NR=15e3,Vy=36e5;function Dd(e,t){return e??t()}function yi(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}var pt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(pt||(pt={}));function MR(e){return e.nodeType===e.ELEMENT_NODE}function vi(e){const t=yi([e,"optionalAccess",n=>n.host]);return yi([t,"optionalAccess",n=>n.shadowRoot])===e}function Si(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function LR(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function jR(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function pl(e){try{const t=e.rules||e.cssRules;return t?LR(Array.from(t,Gy).join("")):null}catch{return null}}function DR(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style,i=s[n],a=s.getPropertyPriority(i);t+=`${i}:${s.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}function Gy(e){let t;if(BR(e))try{t=pl(e.styleSheet)||jR(e)}catch{}else if(FR(e)){let n=e.cssText;const s=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=DR(e)),s&&(n=$R(n)),s||i)return n}return t||e.cssText}function $R(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function BR(e){return"styleSheet"in e}function FR(e){return"selectorText"in e}class Yy{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=yi([this,"access",s=>s.getMeta,"call",s=>s(t),"optionalAccess",s=>s.id]);return Dd(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const s=n.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,n)}replace(t,n){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function zR(){return new Yy}function hl({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function wi({isMasked:e,element:t,value:n,maskInputFn:s}){let i=n||"";return e?(s&&(i=s(i,t)),"*".repeat(i.length)):i}function uo(e){return e.toLowerCase()}function $d(e){return e.toUpperCase()}const Ky="__rrweb_original__";function UR(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let s=0;s<e.width;s+=n)for(let i=0;i<e.height;i+=n){const a=t.getImageData,c=Ky in a?a[Ky]:a;if(new Uint32Array(c.call(t,s,i,Math.min(n,e.width-s),Math.min(n,e.height-i)).data.buffer).some(f=>f!==0))return!1}return!0}function Bd(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?uo(t):null}function ml(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Qy(e,t){let n;try{n=new URL(e,Dd(t,()=>window.location.href))}catch{return null}const s=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(s);return Dd(yi([i,"optionalAccess",a=>a[1]]),()=>null)}const Xy={};function Jy(e){const t=Xy[e];if(t)return t;const n=window.document;let s=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(s=a[e]),n.head.removeChild(i)}catch{}return Xy[e]=s.bind(window)}function Fd(...e){return Jy("setTimeout")(...e)}function Zy(...e){return Jy("clearTimeout")(...e)}function e0(e){try{return e.contentDocument}catch{}}let HR=1;const WR=new RegExp("[^a-z0-9-_:]"),_i=-2;function zd(){return HR++}function qR(e){if(e instanceof HTMLFormElement)return"form";const t=uo(e.tagName);return WR.test(t)?"div":t}function VR(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let fo,t0;const GR=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,YR=/^(?:[a-z+]+:)?\/\//i,KR=/^www\..*/i,QR=/^(data:)([^,]*),(.*)/i;function gl(e,t){return(e||"").replace(GR,(n,s,i,a,c,d)=>{const f=i||c||d,h=s||a||"";if(!f)return n;if(YR.test(f)||KR.test(f))return`url(${h}${f}${h})`;if(QR.test(f))return`url(${h}${f}${h})`;if(f[0]==="/")return`url(${h}${VR(t)+f}${h})`;const g=t.split("/"),y=f.split("/");g.pop();for(const w of y)w!=="."&&(w===".."?g.pop():g.push(w));return`url(${h}${g.join("/")}${h})`})}const XR=/^[^ \t\n\r\u000c]+/,JR=/^[, \t\n\r\u000c]+/;function ZR(e,t){if(t.trim()==="")return t;let n=0;function s(a){let c;const d=a.exec(t.substring(n));return d?(c=d[0],n+=c.length,c):""}const i=[];for(;s(JR),!(n>=t.length);){let a=s(XR);if(a.slice(-1)===",")a=po(e,a.substring(0,a.length-1)),i.push(a);else{let c="";a=po(e,a);let d=!1;for(;;){const f=t.charAt(n);if(f===""){i.push((a+c).trim());break}else if(d)f===")"&&(d=!1);else if(f===","){n+=1,i.push((a+c).trim());break}else f==="("&&(d=!0);c+=f,n+=1}}}return i.join(", ")}const n0=new WeakMap;function po(e,t){return!t||t.trim()===""?t:yl(e,t)}function e2(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function yl(e,t){let n=n0.get(e);if(n||(n=e.createElement("a"),n0.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function r0(e,t,n,s,i,a){return s&&(n==="src"||n==="href"&&!(t==="use"&&s[0]==="#")||n==="xlink:href"&&s[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?po(e,s):n==="srcset"?ZR(e,s):n==="style"?gl(s,yl(e)):t==="object"&&n==="data"?po(e,s):typeof a=="function"?a(n,s,i):s)}function s0(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function t2(e,t,n,s){try{if(s&&e.matches(s))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const a=e.classList[i];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function n2(e,t){for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!1}function Es(e,t,n=1/0,s=0){return!e||e.nodeType!==e.ELEMENT_NODE||s>n?-1:t(e)?s:Es(e.parentNode,t,n,s+1)}function ho(e,t){return n=>{const s=n;if(s===null)return!1;try{if(e){if(typeof e=="string"){if(s.matches(`.${e}`))return!0}else if(n2(s,e))return!0}return!!(t&&s.matches(t))}catch{return!1}}}function mo(e,t,n,s,i,a){try{const c=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(c===null)return!1;if(c.tagName==="INPUT"){const h=c.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(h))return!0}let d=-1,f=-1;if(a){if(f=Es(c,ho(s,i)),f<0)return!0;d=Es(c,ho(t,n),f>=0?f:1/0)}else{if(d=Es(c,ho(t,n)),d<0)return!1;f=Es(c,ho(s,i),d>=0?d:1/0)}return d>=0?f>=0?d<=f:!0:f>=0?!1:!!a}catch{}return!!a}function r2(e,t,n){const s=e.contentWindow;if(!s)return;let i=!1,a;try{a=s.document.readyState}catch{return}if(a!=="complete"){const d=Fd(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{Zy(d),i=!0,t()});return}const c="about:blank";if(s.location.href!==c||e.src===c||e.src==="")return Fd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function s2(e,t,n){let s=!1,i;try{i=e.sheet}catch{return}if(i)return;const a=Fd(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Zy(a),s=!0,t()})}function o2(e,t){const{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskAttributeFn:f,maskTextClass:h,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:w,inlineStylesheet:x,maskInputOptions:_={},maskTextFn:E,maskInputFn:T,dataURLOptions:A={},inlineImages:L,recordCanvas:j,keepIframeSrcFn:K,newlyAddedElement:H=!1}=t,O=i2(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pt.Document,childNodes:[],compatMode:e.compatMode}:{type:pt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return l2(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:c,inlineStylesheet:x,maskAttributeFn:f,maskInputOptions:_,maskInputFn:T,dataURLOptions:A,inlineImages:L,recordCanvas:j,keepIframeSrcFn:K,newlyAddedElement:H,rootId:O,maskAllText:d,maskTextClass:h,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:w});case e.TEXT_NODE:return a2(e,{doc:n,maskAllText:d,maskTextClass:h,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:w,maskTextFn:E,maskInputOptions:_,maskInputFn:T,rootId:O});case e.CDATA_SECTION_NODE:return{type:pt.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:pt.Comment,textContent:e.textContent||"",rootId:O};default:return!1}}function i2(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function a2(e,t){const{maskAllText:n,maskTextClass:s,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:c,maskTextFn:d,maskInputOptions:f,maskInputFn:h,rootId:g}=t,y=e.parentNode&&e.parentNode.tagName;let w=e.textContent;const x=y==="STYLE"?!0:void 0,_=y==="SCRIPT"?!0:void 0,E=y==="TEXTAREA"?!0:void 0;if(x&&w){try{e.nextSibling||e.previousSibling||yi([e,"access",A=>A.parentNode,"access",A=>A.sheet,"optionalAccess",A=>A.cssRules])&&(w=pl(e.parentNode.sheet))}catch(A){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${A}`,e)}w=gl(w,yl(t.doc))}_&&(w="SCRIPT_PLACEHOLDER");const T=mo(e,s,a,i,c,n);if(!x&&!_&&!E&&w&&T&&(w=d?d(w,e.parentElement):w.replace(/[\S]/g,"*")),E&&w&&(f.textarea||T)&&(w=h?h(w,e.parentNode):w.replace(/[\S]/g,"*")),y==="OPTION"&&w){const A=hl({type:null,tagName:y,maskInputOptions:f});w=wi({isMasked:mo(e,s,a,i,c,A),element:e,value:w,maskInputFn:h})}return{type:pt.Text,textContent:w||"",isStyle:x,rootId:g}}function l2(e,t){const{doc:n,blockClass:s,blockSelector:i,unblockSelector:a,inlineStylesheet:c,maskInputOptions:d={},maskAttributeFn:f,maskInputFn:h,dataURLOptions:g={},inlineImages:y,recordCanvas:w,keepIframeSrcFn:x,newlyAddedElement:_=!1,rootId:E,maskAllText:T,maskTextClass:A,unmaskTextClass:L,maskTextSelector:j,unmaskTextSelector:K}=t,H=t2(e,s,i,a),O=qR(e);let C={};const W=e.attributes.length;for(let U=0;U<W;U++){const J=e.attributes[U];J.name&&!s0(O,J.name,J.value)&&(C[J.name]=r0(n,O,uo(J.name),J.value,e,f))}if(O==="link"&&c){const U=Array.from(n.styleSheets).find(Z=>Z.href===e.href);let J=null;U&&(J=pl(U)),J&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=gl(J,U.href))}if(O==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const U=pl(e.sheet);U&&(C._cssText=gl(U,yl(n)))}if(O==="input"||O==="textarea"||O==="select"||O==="option"){const U=e,J=Bd(U),Z=ml(U,$d(O),J),ue=U.checked;if(J!=="submit"&&J!=="button"&&Z){const me=mo(U,A,j,L,K,hl({type:J,tagName:$d(O),maskInputOptions:d}));C.value=wi({isMasked:me,element:U,value:Z,maskInputFn:h})}ue&&(C.checked=ue)}if(O==="option"&&(e.selected&&!d.select?C.selected=!0:delete C.selected),O==="canvas"&&w){if(e.__context==="2d")UR(e)||(C.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){const U=e.toDataURL(g.type,g.quality),J=n.createElement("canvas");J.width=e.width,J.height=e.height;const Z=J.toDataURL(g.type,g.quality);U!==Z&&(C.rr_dataURL=U)}}if(O==="img"&&y){fo||(fo=n.createElement("canvas"),t0=fo.getContext("2d"));const U=e,J=U.currentSrc||U.getAttribute("src")||"<unknown-src>",Z=U.crossOrigin,ue=()=>{U.removeEventListener("load",ue);try{fo.width=U.naturalWidth,fo.height=U.naturalHeight,t0.drawImage(U,0,0),C.rr_dataURL=fo.toDataURL(g.type,g.quality)}catch(me){if(U.crossOrigin!=="anonymous"){U.crossOrigin="anonymous",U.complete&&U.naturalWidth!==0?ue():U.addEventListener("load",ue);return}else console.warn(`Cannot inline img src=${J}! Error: ${me}`)}U.crossOrigin==="anonymous"&&(Z?C.crossOrigin=Z:U.removeAttribute("crossorigin"))};U.complete&&U.naturalWidth!==0?ue():U.addEventListener("load",ue)}if((O==="audio"||O==="video")&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),_||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),H){const{width:U,height:J}=e.getBoundingClientRect();C={class:C.class,rr_width:`${U}px`,rr_height:`${J}px`}}O==="iframe"&&!x(C.src)&&(!H&&!e0(e)&&(C.rr_src=C.src),delete C.src);let B;try{customElements.get(O)&&(B=!0)}catch{}return{type:pt.Element,tagName:O,attributes:C,childNodes:[],isSVG:e2(e)||void 0,needBlock:H,rootId:E,isCustom:B}}function Ge(e){return e==null?"":e.toLowerCase()}function c2(e,t){if(t.comment&&e.type===pt.Comment)return!0;if(e.type===pt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Qy(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ge(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ge(e.attributes.name)==="application-name"||Ge(e.attributes.rel)==="icon"||Ge(e.attributes.rel)==="apple-touch-icon"||Ge(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ge(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ge(e.attributes.property).match(/^(og|twitter|fb):/)||Ge(e.attributes.name).match(/^(og|twitter):/)||Ge(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ge(e.attributes.name)==="robots"||Ge(e.attributes.name)==="googlebot"||Ge(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ge(e.attributes.name)==="author"||Ge(e.attributes.name)==="generator"||Ge(e.attributes.name)==="framework"||Ge(e.attributes.name)==="publisher"||Ge(e.attributes.name)==="progid"||Ge(e.attributes.property).match(/^article:/)||Ge(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ge(e.attributes.name)==="google-site-verification"||Ge(e.attributes.name)==="yandex-verification"||Ge(e.attributes.name)==="csrf-token"||Ge(e.attributes.name)==="p:domain_verify"||Ge(e.attributes.name)==="verify-v1"||Ge(e.attributes.name)==="verification"||Ge(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function go(e,t){const{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,skipChild:w=!1,inlineStylesheet:x=!0,maskInputOptions:_={},maskAttributeFn:E,maskTextFn:T,maskInputFn:A,slimDOMOptions:L,dataURLOptions:j={},inlineImages:K=!1,recordCanvas:H=!1,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:W=5e3,onStylesheetLoad:B,stylesheetLoadTimeout:U=5e3,keepIframeSrcFn:J=()=>!1,newlyAddedElement:Z=!1}=t;let{preserveWhiteSpace:ue=!0}=t;const me=o2(e,{doc:n,mirror:s,blockClass:i,blockSelector:a,maskAllText:d,unblockSelector:c,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:x,maskInputOptions:_,maskAttributeFn:E,maskTextFn:T,maskInputFn:A,dataURLOptions:j,inlineImages:K,recordCanvas:H,keepIframeSrcFn:J,newlyAddedElement:Z});if(!me)return console.warn(e,"not serialized"),null;let De;s.hasNode(e)?De=s.getId(e):c2(me,L)||!ue&&me.type===pt.Text&&!me.isStyle&&!me.textContent.replace(/^\s+|\s+$/gm,"").length?De=_i:De=zd();const te=Object.assign(me,{id:De});if(s.add(e,te),De===_i)return null;O&&O(e);let Se=!w;if(te.type===pt.Element){Se=Se&&!te.needBlock,delete te.needBlock;const q=e.shadowRoot;q&&Si(q)&&(te.isShadowHost=!0)}if((te.type===pt.Document||te.type===pt.Element)&&Se){L.headWhitespace&&te.type===pt.Element&&te.tagName==="head"&&(ue=!1);const q={doc:n,mirror:s,blockClass:i,blockSelector:a,maskAllText:d,unblockSelector:c,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,skipChild:w,inlineStylesheet:x,maskInputOptions:_,maskAttributeFn:E,maskTextFn:T,maskInputFn:A,slimDOMOptions:L,dataURLOptions:j,inlineImages:K,recordCanvas:H,preserveWhiteSpace:ue,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:W,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:J};for(const oe of Array.from(e.childNodes)){const ne=go(oe,q);ne&&te.childNodes.push(ne)}if(MR(e)&&e.shadowRoot)for(const oe of Array.from(e.shadowRoot.childNodes)){const ne=go(oe,q);ne&&(Si(e.shadowRoot)&&(ne.isShadow=!0),te.childNodes.push(ne))}}return e.parentNode&&vi(e.parentNode)&&Si(e.parentNode)&&(te.isShadow=!0),te.type===pt.Element&&te.tagName==="iframe"&&r2(e,()=>{const q=e0(e);if(q&&C){const oe=go(q,{doc:q,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,skipChild:!1,inlineStylesheet:x,maskInputOptions:_,maskAttributeFn:E,maskTextFn:T,maskInputFn:A,slimDOMOptions:L,dataURLOptions:j,inlineImages:K,recordCanvas:H,preserveWhiteSpace:ue,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:W,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:J});oe&&C(e,oe)}},W),te.type===pt.Element&&te.tagName==="link"&&typeof te.attributes.rel=="string"&&(te.attributes.rel==="stylesheet"||te.attributes.rel==="preload"&&typeof te.attributes.href=="string"&&Qy(te.attributes.href)==="css")&&s2(e,()=>{if(B){const q=go(e,{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:y,skipChild:!1,inlineStylesheet:x,maskInputOptions:_,maskAttributeFn:E,maskTextFn:T,maskInputFn:A,slimDOMOptions:L,dataURLOptions:j,inlineImages:K,recordCanvas:H,preserveWhiteSpace:ue,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:W,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:J});q&&B(e,q)}},U),te}function u2(e,t){const{mirror:n=new Yy,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:h=null,unmaskTextSelector:g=null,inlineStylesheet:y=!0,inlineImages:w=!1,recordCanvas:x=!1,maskAllInputs:_=!1,maskAttributeFn:E,maskTextFn:T,maskInputFn:A,slimDOM:L=!1,dataURLOptions:j,preserveWhiteSpace:K,onSerialize:H,onIframeLoad:O,iframeLoadTimeout:C,onStylesheetLoad:W,stylesheetLoadTimeout:B,keepIframeSrcFn:U=()=>!1}=t||{};return go(e,{doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:g,skipChild:!1,inlineStylesheet:y,maskInputOptions:_===!0?{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?{}:_,maskAttributeFn:E,maskTextFn:T,maskInputFn:A,slimDOMOptions:L===!0||L==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:L==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:L===!1?{}:L,dataURLOptions:j,inlineImages:w,recordCanvas:x,preserveWhiteSpace:K,onSerialize:H,onIframeLoad:O,iframeLoadTimeout:C,onStylesheetLoad:W,stylesheetLoadTimeout:B,keepIframeSrcFn:U,newlyAddedElement:!1})}function Or(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}function $t(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)}const yo=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let o0={map:{},getId(){return console.error(yo),-1},getNode(){return console.error(yo),null},removeNodeFromMap(){console.error(yo)},has(){return console.error(yo),!1},reset(){console.error(yo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(o0=new Proxy(o0,{get(e,t,n){return t==="map"&&console.error(yo),Reflect.get(e,t,n)}}));function Ei(e,t,n={}){let s=null,i=0;return function(...a){const c=Date.now();!i&&n.leading===!1&&(i=c);const d=t-(c-i),f=this;d<=0||d>t?(s&&(y2(s),s=null),i=c,e.apply(f,a)):!s&&n.trailing!==!1&&(s=Sl(()=>{i=n.leading===!1?0:Date.now(),s=null,e.apply(f,a)},d))}}function i0(e,t,n,s,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,s?n:{set(c){Sl(()=>{n.set.call(this,c)},0),a&&a.set&&a.set.call(this,c)}}),()=>i0(e,t,a||{},!0)}function Ud(e,t,n){try{if(!(t in e))return()=>{};const s=e[t],i=n(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch{return()=>{}}}let vl=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(vl=()=>new Date().getTime());function a0(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Or([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Or([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Or([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Or([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Or([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Or([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function l0(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function c0(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function u0(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function on(e,t,n,s,i){if(!e)return!1;const a=u0(e);if(!a)return!1;const c=ho(t,n);if(!i){const h=s&&a.matches(s);return c(a)&&!h}const d=Es(a,c);let f=-1;return d<0?!1:(s&&(f=Es(a,ho(null,s))),d>-1&&f<0?!0:d<f)}function d2(e,t){return t.getId(e)!==-1}function Hd(e,t){return t.getId(e)===_i}function d0(e,t){if(vi(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?d0(e.parentNode,t):!0:!0}function Wd(e){return!!e.changedTouches}function f2(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=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function f0(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function p0(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function qd(e){return!!Or([e,"optionalAccess",t=>t.shadowRoot])}class p2{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return ob(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let s;return n===void 0?s=this.id++:s=n,this.styleIDMap.set(t,s),this.idStyleMap.set(s,t),s}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function h0(e){let t=null;return Or([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function h2(e){let t=e,n;for(;n=h0(t);)t=n;return t}function m2(e){const t=e.ownerDocument;if(!t)return!1;const n=h2(e);return t.contains(n)}function m0(e){const t=e.ownerDocument;return t?t.contains(e)||m2(e):!1}const g0={};function Vd(e){const t=g0[e];if(t)return t;const n=window.document;let s=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(s=a[e]),n.head.removeChild(i)}catch{}return g0[e]=s.bind(window)}function g2(...e){return Vd("requestAnimationFrame")(...e)}function Sl(...e){return Vd("setTimeout")(...e)}function y2(...e){return Vd("clearTimeout")(...e)}var be=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(be||{}),ve=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ve||{}),Bt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Bt||{}),lr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(lr||{}),y0;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(y0||(y0={}));var v0;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(v0||(v0={}));function Gd(e){try{return e.contentDocument}catch{}}function v2(e){try{return e.contentWindow}catch{}}function S2(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}function S0(e){return"__ln"in e}class w2{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let s=0;s<t;s++)n=S2([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&S0(t.previousSibling)){const s=t.previousSibling.__ln.next;n.next=s,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,s&&(s.previous=n)}else if(t.nextSibling&&S0(t.nextSibling)&&t.nextSibling.__ln.previous){const s=t.nextSibling.__ln.previous;n.previous=s,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,s&&(s.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const w0=(e,t)=>`${e}@${t}`;class _2{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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,s=new w2,i=f=>{let h=f,g=_i;for(;g===_i;)h=h&&h.nextSibling,g=h&&this.mirror.getId(h);return g},a=f=>{if(!f.parentNode||!m0(f))return;const h=vi(f.parentNode)?this.mirror.getId(h0(f)):this.mirror.getId(f.parentNode),g=i(f);if(h===-1||g===-1)return s.addNode(f);const y=go(f,{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:w=>{f0(w,this.mirror)&&!on(w,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(w),p0(w,this.mirror)&&this.stylesheetManager.trackLinkElement(w),qd(f)&&this.shadowDomManager.addShadowRoot(f.shadowRoot,this.doc)},onIframeLoad:(w,x)=>{on(w,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(w,x),w.contentWindow&&this.canvasManager.addWindow(w.contentWindow),this.shadowDomManager.observeAttachShadow(w))},onStylesheetLoad:(w,x)=>{this.stylesheetManager.attachLinkElement(w,x)}});y&&(t.push({parentId:h,nextId:g,node:y}),n.add(y.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const f of this.movedSet)_0(this.removes,f,this.mirror)&&!this.movedSet.has(f.parentNode)||a(f);for(const f of this.addedSet)!E0(this.droppedSet,f)&&!_0(this.removes,f,this.mirror)||E0(this.movedSet,f)?a(f):this.droppedSet.add(f);let c=null;for(;s.length;){let f=null;if(c){const h=this.mirror.getId(c.value.parentNode),g=i(c.value);h!==-1&&g!==-1&&(f=c)}if(!f){let h=s.tail;for(;h;){const g=h;if(h=h.previous,g){const y=this.mirror.getId(g.value.parentNode);if(i(g.value)===-1)continue;if(y!==-1){f=g;break}else{const x=g.value;if(x.parentNode&&x.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const _=x.parentNode.host;if(this.mirror.getId(_)!==-1){f=g;break}}}}}}if(!f){for(;s.head;)s.removeNode(s.head.value);break}c=f.previous,s.removeNode(f.value),a(f.value)}const d={texts:this.texts.map(f=>({id:this.mirror.getId(f.node),value:f.value})).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),attributes:this.attributes.map(f=>{const{attributes:h}=f;if(typeof h.style=="string"){const g=JSON.stringify(f.styleDiff),y=JSON.stringify(f._unchangedStyles);g.length<h.style.length&&(g+y).split("var(").length===h.style.split("var(").length&&(h.style=f.styleDiff)}return{id:this.mirror.getId(f.node),attributes:h}}).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.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(d))},this.processMutation=t=>{if(!Hd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!on(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:mo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,u0(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let s=t.attributeName,i=t.target.getAttribute(s);if(s==="value"){const c=Bd(n),d=n.tagName;i=ml(n,d,c);const f=hl({maskInputOptions:this.maskInputOptions,tagName:d,type:c}),h=mo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,f);i=wi({isMasked:h,element:n,value:i,maskInputFn:this.maskInputFn})}if(on(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&s==="src"&&!this.keepIframeSrcFn(i))if(!Gd(n))s="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),s==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!s0(n.tagName,s)&&(a.attributes[s]=r0(this.doc,uo(n.tagName),uo(s),i,n,this.maskAttributeFn),s==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(const d of Array.from(n.style)){const f=n.style.getPropertyValue(d),h=n.style.getPropertyPriority(d);f!==c.style.getPropertyValue(d)||h!==c.style.getPropertyPriority(d)?h===""?a.styleDiff[d]=f:a.styleDiff[d]=[f,h]:a._unchangedStyles[d]=[f,h]}for(const d of Array.from(c.style))n.style.getPropertyValue(d)===""&&(a.styleDiff[d]=!1)}break}case"childList":{if(on(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const s=this.mirror.getId(n),i=vi(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);on(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Hd(n,this.mirror)||!d2(n,this.mirror)||(this.addedSet.has(n)?(Yd(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&s===-1||d0(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[w0(s,i)]?Yd(this.movedSet,n):this.removes.push({parentId:i,id:s,isShadow:vi(t.target)&&Si(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Hd(t,this.mirror))return;this.movedSet.add(t);let s=null;n&&this.mirror.hasNode(n)&&(s=this.mirror.getId(n)),s&&s!==-1&&(this.movedMap[w0(this.mirror.getId(t),s)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);on(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(s=>this.genAdds(s)),qd(t)&&t.shadowRoot.childNodes.forEach(s=>{this.processedNodeManager.add(s,this),this.genAdds(s,t)}))}}}init(t){["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(n=>{this[n]=t[n]})}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 Yd(e,t){e.delete(t),t.childNodes.forEach(n=>Yd(e,n))}function _0(e,t,n){return e.length===0?!1:E2(e,t,n)}function E2(e,t,n){let s=t.parentNode;for(;s;){const i=n.getId(s);if(e.some(a=>a.id===i))return!0;s=s.parentNode}return!1}function E0(e,t){return e.size===0?!1:x0(e,t)}function x0(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:x0(e,n):!1}let xi;function x2(e){xi=e}function T2(){xi=void 0}const Le=e=>xi?(...n)=>{try{return e(...n)}catch(s){if(xi&&xi(s)===!0)return()=>{};throw s}}:e;function kn(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}const vo=[];function Ti(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function T0(e,t){const n=new _2;vo.push(n),n.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=kn([window,"optionalAccess",c=>c.Zone,"optionalAccess",c=>c.__symbol__,"optionalCall",c=>c("MutationObserver")]);i&&window[i]&&(s=window[i]);const a=new s(Le(c=>{e.onMutation&&e.onMutation(c)===!1||n.processMutations.bind(n)(c)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function k2({mousemoveCb:e,sampling:t,doc:n,mirror:s}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let c=[],d;const f=Ei(Le(y=>{const w=Date.now()-d;e(c.map(x=>(x.timeOffset-=w,x)),y),c=[],d=null}),a),h=Le(Ei(Le(y=>{const w=Ti(y),{clientX:x,clientY:_}=Wd(y)?y.changedTouches[0]:y;d||(d=vl()),c.push({x,y:_,id:s.getId(w),timeOffset:vl()-d}),f(typeof DragEvent<"u"&&y instanceof DragEvent?ve.Drag:y instanceof MouseEvent?ve.MouseMove:ve.TouchMove)}),i,{trailing:!1})),g=[$t("mousemove",h,n),$t("touchmove",h,n),$t("drag",h,n)];return Le(()=>{g.forEach(y=>y())})}function I2({mouseInteractionCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,sampling:c}){if(c.mouseInteraction===!1)return()=>{};const d=c.mouseInteraction===!0||c.mouseInteraction===void 0?{}:c.mouseInteraction,f=[];let h=null;const g=y=>w=>{const x=Ti(w);if(on(x,s,i,a,!0))return;let _=null,E=y;if("pointerType"in w){switch(w.pointerType){case"mouse":_=lr.Mouse;break;case"touch":_=lr.Touch;break;case"pen":_=lr.Pen;break}_===lr.Touch?Bt[y]===Bt.MouseDown?E="TouchStart":Bt[y]===Bt.MouseUp&&(E="TouchEnd"):lr.Pen}else Wd(w)&&(_=lr.Touch);_!==null?(h=_,(E.startsWith("Touch")&&_===lr.Touch||E.startsWith("Mouse")&&_===lr.Mouse)&&(_=null)):Bt[y]===Bt.Click&&(_=h,h=null);const T=Wd(w)?w.changedTouches[0]:w;if(!T)return;const A=n.getId(x),{clientX:L,clientY:j}=T;Le(e)({type:Bt[E],id:A,x:L,y:j,..._!==null&&{pointerType:_}})};return Object.keys(Bt).filter(y=>Number.isNaN(Number(y))&&!y.endsWith("_Departed")&&d[y]!==!1).forEach(y=>{let w=uo(y);const x=g(y);if(window.PointerEvent)switch(Bt[y]){case Bt.MouseDown:case Bt.MouseUp:w=w.replace("mouse","pointer");break;case Bt.TouchStart:case Bt.TouchEnd:return}f.push($t(w,x,t))}),Le(()=>{f.forEach(y=>y())})}function k0({scrollCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,sampling:c}){const d=Le(Ei(Le(f=>{const h=Ti(f);if(!h||on(h,s,i,a,!0))return;const g=n.getId(h);if(h===t&&t.defaultView){const y=a0(t.defaultView);e({id:g,x:y.left,y:y.top})}else e({id:g,x:h.scrollLeft,y:h.scrollTop})}),c.scroll||100));return $t("scroll",d,t)}function b2({viewportResizeCb:e},{win:t}){let n=-1,s=-1;const i=Le(Ei(Le(()=>{const a=l0(),c=c0();(n!==a||s!==c)&&(e({width:Number(c),height:Number(a)}),n=a,s=c)}),200));return $t("resize",i,t)}const C2=["INPUT","TEXTAREA","SELECT"],I0=new WeakMap;function R2({inputCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,ignoreClass:c,ignoreSelector:d,maskInputOptions:f,maskInputFn:h,sampling:g,userTriggeredOnInput:y,maskTextClass:w,unmaskTextClass:x,maskTextSelector:_,unmaskTextSelector:E}){function T(C){let W=Ti(C);const B=C.isTrusted,U=W&&$d(W.tagName);if(U==="OPTION"&&(W=W.parentElement),!W||!U||C2.indexOf(U)<0||on(W,s,i,a,!0))return;const J=W;if(J.classList.contains(c)||d&&J.matches(d))return;const Z=Bd(W);let ue=ml(J,U,Z),me=!1;const De=hl({maskInputOptions:f,tagName:U,type:Z}),te=mo(W,w,_,x,E,De);(Z==="radio"||Z==="checkbox")&&(me=W.checked),ue=wi({isMasked:te,element:W,value:ue,maskInputFn:h}),A(W,y?{text:ue,isChecked:me,userTriggered:B}:{text:ue,isChecked:me});const Se=W.name;Z==="radio"&&Se&&me&&t.querySelectorAll(`input[type="radio"][name="${Se}"]`).forEach(q=>{if(q!==W){const oe=wi({isMasked:te,element:q,value:ml(q,U,Z),maskInputFn:h});A(q,y?{text:oe,isChecked:!me,userTriggered:!1}:{text:oe,isChecked:!me})}})}function A(C,W){const B=I0.get(C);if(!B||B.text!==W.text||B.isChecked!==W.isChecked){I0.set(C,W);const U=n.getId(C);Le(e)({...W,id:U})}}const j=(g.input==="last"?["change"]:["input","change"]).map(C=>$t(C,Le(T),t)),K=t.defaultView;if(!K)return()=>{j.forEach(C=>C())};const H=K.Object.getOwnPropertyDescriptor(K.HTMLInputElement.prototype,"value"),O=[[K.HTMLInputElement.prototype,"value"],[K.HTMLInputElement.prototype,"checked"],[K.HTMLSelectElement.prototype,"value"],[K.HTMLTextAreaElement.prototype,"value"],[K.HTMLSelectElement.prototype,"selectedIndex"],[K.HTMLOptionElement.prototype,"selected"]];return H&&H.set&&j.push(...O.map(C=>i0(C[0],C[1],{set(){Le(T)({target:this,isTrusted:!1})}},!1,K))),Le(()=>{j.forEach(C=>C())})}function wl(e){const t=[];function n(s,i){if(_l("CSSGroupingRule")&&s.parentRule instanceof CSSGroupingRule||_l("CSSMediaRule")&&s.parentRule instanceof CSSMediaRule||_l("CSSSupportsRule")&&s.parentRule instanceof CSSSupportsRule||_l("CSSConditionRule")&&s.parentRule instanceof CSSConditionRule){const c=Array.from(s.parentRule.cssRules).indexOf(s);i.unshift(c)}else if(s.parentStyleSheet){const c=Array.from(s.parentStyleSheet.cssRules).indexOf(s);i.unshift(c)}return i}return n(e,t)}function Pr(e,t,n){let s,i;return e?(e.ownerNode?s=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:s}):{}}function A2({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const i=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Le((g,y,w)=>{const[x,_]=w,{id:E,styleId:T}=Pr(y,t,n.styleMirror);return(E&&E!==-1||T&&T!==-1)&&e({id:E,styleId:T,adds:[{rule:x,index:_}]}),g.apply(y,w)})});const a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Le((g,y,w)=>{const[x]=w,{id:_,styleId:E}=Pr(y,t,n.styleMirror);return(_&&_!==-1||E&&E!==-1)&&e({id:_,styleId:E,removes:[{index:x}]}),g.apply(y,w)})});let c;s.CSSStyleSheet.prototype.replace&&(c=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:Le((g,y,w)=>{const[x]=w,{id:_,styleId:E}=Pr(y,t,n.styleMirror);return(_&&_!==-1||E&&E!==-1)&&e({id:_,styleId:E,replace:x}),g.apply(y,w)})}));let d;s.CSSStyleSheet.prototype.replaceSync&&(d=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(d,{apply:Le((g,y,w)=>{const[x]=w,{id:_,styleId:E}=Pr(y,t,n.styleMirror);return(_&&_!==-1||E&&E!==-1)&&e({id:_,styleId:E,replaceSync:x}),g.apply(y,w)})}));const f={};El("CSSGroupingRule")?f.CSSGroupingRule=s.CSSGroupingRule:(El("CSSMediaRule")&&(f.CSSMediaRule=s.CSSMediaRule),El("CSSConditionRule")&&(f.CSSConditionRule=s.CSSConditionRule),El("CSSSupportsRule")&&(f.CSSSupportsRule=s.CSSSupportsRule));const h={};return Object.entries(f).forEach(([g,y])=>{h[g]={insertRule:y.prototype.insertRule,deleteRule:y.prototype.deleteRule},y.prototype.insertRule=new Proxy(h[g].insertRule,{apply:Le((w,x,_)=>{const[E,T]=_,{id:A,styleId:L}=Pr(x.parentStyleSheet,t,n.styleMirror);return(A&&A!==-1||L&&L!==-1)&&e({id:A,styleId:L,adds:[{rule:E,index:[...wl(x),T||0]}]}),w.apply(x,_)})}),y.prototype.deleteRule=new Proxy(h[g].deleteRule,{apply:Le((w,x,_)=>{const[E]=_,{id:T,styleId:A}=Pr(x.parentStyleSheet,t,n.styleMirror);return(T&&T!==-1||A&&A!==-1)&&e({id:T,styleId:A,removes:[{index:[...wl(x),E]}]}),w.apply(x,_)})})}),Le(()=>{s.CSSStyleSheet.prototype.insertRule=i,s.CSSStyleSheet.prototype.deleteRule=a,c&&(s.CSSStyleSheet.prototype.replace=c),d&&(s.CSSStyleSheet.prototype.replaceSync=d),Object.entries(f).forEach(([g,y])=>{y.prototype.insertRule=h[g].insertRule,y.prototype.deleteRule=h[g].deleteRule})})}function b0({mirror:e,stylesheetManager:t},n){let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(n.host);const i=n.nodeName==="#document"?kn([n,"access",c=>c.defaultView,"optionalAccess",c=>c.Document]):kn([n,"access",c=>c.ownerDocument,"optionalAccess",c=>c.defaultView,"optionalAccess",c=>c.ShadowRoot]),a=kn([i,"optionalAccess",c=>c.prototype])?Object.getOwnPropertyDescriptor(kn([i,"optionalAccess",c=>c.prototype]),"adoptedStyleSheets"):void 0;return s===null||s===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return kn([a,"access",c=>c.get,"optionalAccess",c=>c.call,"call",c=>c(this)])},set(c){const d=kn([a,"access",f=>f.set,"optionalAccess",f=>f.call,"call",f=>f(this,c)]);if(s!==null&&s!==-1)try{t.adoptStyleSheets(c,s)}catch{}return d}}),Le(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function O2({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:s},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Le((d,f,h)=>{const[g,y,w]=h;if(n.has(g))return a.apply(f,[g,y,w]);const{id:x,styleId:_}=Pr(kn([f,"access",E=>E.parentRule,"optionalAccess",E=>E.parentStyleSheet]),t,s.styleMirror);return(x&&x!==-1||_&&_!==-1)&&e({id:x,styleId:_,set:{property:g,value:y,priority:w},index:wl(f.parentRule)}),d.apply(f,h)})});const c=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Le((d,f,h)=>{const[g]=h;if(n.has(g))return c.apply(f,[g]);const{id:y,styleId:w}=Pr(kn([f,"access",x=>x.parentRule,"optionalAccess",x=>x.parentStyleSheet]),t,s.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,remove:{property:g},index:wl(f.parentRule)}),d.apply(f,h)})}),Le(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=c})}function P2({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:s,mirror:i,sampling:a,doc:c}){const d=Le(h=>Ei(Le(g=>{const y=Ti(g);if(!y||on(y,t,n,s,!0))return;const{currentTime:w,volume:x,muted:_,playbackRate:E}=y;e({type:h,id:i.getId(y),currentTime:w,volume:x,muted:_,playbackRate:E})}),a.media||500)),f=[$t("play",d(0),c),$t("pause",d(1),c),$t("seeked",d(2),c),$t("volumechange",d(3),c),$t("ratechange",d(4),c)];return Le(()=>{f.forEach(h=>h())})}function N2({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const s=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(f,h,g){const y=new a(f,h,g);return i.set(y,{family:f,buffer:typeof h!="string",descriptors:g,fontSource:typeof h=="string"?h:JSON.stringify(Array.from(new Uint8Array(h)))}),y};const c=Ud(t.fonts,"add",function(d){return function(f){return Sl(Le(()=>{const h=i.get(f);h&&(e(h),i.delete(f))}),0),d.apply(this,[f])}});return s.push(()=>{n.FontFace=a}),s.push(c),Le(()=>{s.forEach(d=>d())})}function M2(e){const{doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,selectionCb:c}=e;let d=!0;const f=Le(()=>{const h=t.getSelection();if(!h||d&&kn([h,"optionalAccess",w=>w.isCollapsed]))return;d=h.isCollapsed||!1;const g=[],y=h.rangeCount||0;for(let w=0;w<y;w++){const x=h.getRangeAt(w),{startContainer:_,startOffset:E,endContainer:T,endOffset:A}=x;on(_,s,i,a,!0)||on(T,s,i,a,!0)||g.push({start:n.getId(_),startOffset:E,end:n.getId(T),endOffset:A})}c({ranges:g})});return f(),$t("selectionchange",f)}function L2({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Ud(n.customElements,"define",function(i){return function(a,c,d){try{t({define:{name:a}})}catch{}return i.apply(this,[a,c,d])}})}function j2(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let s;e.recordDOM&&(s=T0(e,e.doc));const i=k2(e),a=I2(e),c=k0(e),d=b2(e,{win:n}),f=R2(e),h=P2(e);let g=()=>{},y=()=>{},w=()=>{},x=()=>{};e.recordDOM&&(g=A2(e,{win:n}),y=b0(e,e.doc),w=O2(e,{win:n}),e.collectFonts&&(x=N2(e)));const _=M2(e),E=L2(e),T=[];for(const A of e.plugins)T.push(A.observer(A.callback,n,A.options));return Le(()=>{vo.forEach(A=>A.reset()),kn([s,"optionalAccess",A=>A.disconnect,"call",A=>A()]),i(),a(),c(),d(),f(),h(),g(),y(),w(),x(),_(),E(),T.forEach(A=>A())})}function _l(e){return typeof window[e]<"u"}function El(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Kd{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,s,i){const a=s||this.getIdToRemoteIdMap(t),c=i||this.getRemoteIdToIdMap(t);let d=a.get(n);return d||(d=this.generateIdFn(),a.set(n,d),c.set(d,n)),d}getIds(t,n){const s=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,s,i))}getRemoteId(t,n,s){const i=s||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=i.get(n);return a||-1}getRemoteIds(t,n){const s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,s))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function C0(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}class D2{constructor(){this.crossOriginIframeMirror=new Kd(zd),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class $2{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Kd(zd),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Kd(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),C0([this,"access",i=>i.loadListener,"optionalCall",i=>i(t)]);const s=Gd(t);s&&s.adoptedStyleSheets&&s.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(s.adoptedStyleSheets,this.mirror.getId(s))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case be.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:be.IncrementalSnapshot,data:{source:ve.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case be.Meta:case be.Load:case be.DomContentLoaded:return!1;case be.Plugin:return n;case be.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case be.IncrementalSnapshot:switch(n.data.source){case ve.Mutation:return n.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(s.node,i)}),n.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),n.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),n.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case ve.Drag:case ve.TouchMove:case ve.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case ve.ViewportResize:return!1;case ve.MediaInteraction:case ve.MouseInteraction:case ve.Scroll:case ve.CanvasMutation:case ve.Input:return this.replaceIds(n.data,t,["id"]),n;case ve.StyleSheetRule:case ve.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case ve.Font:return n;case ve.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),n;case ve.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),C0([n,"access",s=>s.data,"access",s=>s.styles,"optionalAccess",s=>s.forEach,"call",s=>s(i=>{this.replaceStyleIds(i,t,["styleId"])})]),n}}return!1}replace(t,n,s,i){for(const a of i)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(s,n[a]):n[a]=t.getId(s,n[a]));return n}replaceIds(t,n,s){return this.replace(this.crossOriginIframeMirror,t,n,s)}replaceStyleIds(t,n,s){return this.replace(this.crossOriginIframeStyleMirror,t,n,s)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(s=>{this.replaceIdOnNode(s,n)})}patchRootIdOnNode(t,n){t.type!==pt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(s=>{this.patchRootIdOnNode(s,n)})}}class B2{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class F2{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Si(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const s=T0({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>s.disconnect()),this.restoreHandlers.push(k0({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Sl(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(b0({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Gd(t),s=v2(t);!n||!s||this.patchAttachShadow(s.Element,n)}patchAttachShadow(t,n){const s=this;this.restoreHandlers.push(Ud(t.prototype,"attachShadow",function(i){return function(a){const c=i.call(this,a);return this.shadowRoot&&m0(this)&&s.addShadowRoot(this.shadowRoot,n),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class R0{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class z2{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new p2,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const s={id:n,styleIds:[]},i=[];for(const a of t){let c;this.styleMirror.has(a)?c=this.styleMirror.getId(a):(c=this.styleMirror.add(a),i.push({styleId:c,rules:Array.from(a.rules||CSSRule,(d,f)=>({rule:Gy(d),index:f}))})),s.styleIds.push(c)}i.length>0&&(s.styles=i),this.adoptedStyleSheetCb(s)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class U2{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const s=this.nodeMap.get(t);return s&&Array.from(s).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,g2(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let nt,xl;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=el([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const In=zR();function cr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:f=null,maskAllText:h=!1,maskTextClass:g="rr-mask",unmaskTextClass:y=null,maskTextSelector:w=null,unmaskTextSelector:x=null,inlineStylesheet:_=!0,maskAllInputs:E,maskInputOptions:T,slimDOMOptions:A,maskAttributeFn:L,maskInputFn:j,maskTextFn:K,maxCanvasSize:H=null,packFn:O,sampling:C={},dataURLOptions:W={},mousemoveWait:B,recordDOM:U=!0,recordCanvas:J=!1,recordCrossOriginIframes:Z=!1,recordAfter:ue=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:me=!1,collectFonts:De=!1,inlineImages:te=!1,plugins:Se,keepIframeSrcFn:q=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:ne,onMutation:P,getCanvasManager:V}=e;x2(ne);const we=Z?window.parent===window:!0;let Ee=!1;if(!we)try{window.parent.document&&(Ee=!1)}catch{Ee=!0}if(we&&!t)throw new Error("emit function is required");if(!we&&!Ee)return()=>{};B!==void 0&&C.mousemove===void 0&&(C.mousemove=B),In.reset();const Pe=E===!0?{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}:T!==void 0?T:{},Ne=A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:A==="all",headMetaDescKeywords:A==="all"}:A||{};f2();let Ue,$e=0;const We=Ae=>{for(const wt of Se||[])wt.eventProcessor&&(Ae=wt.eventProcessor(Ae));return O&&!Ee&&(Ae=O(Ae)),Ae};nt=(Ae,wt)=>{const Re=Ae;if(Re.timestamp=vl(),el([vo,"access",Ye=>Ye[0],"optionalAccess",Ye=>Ye.isFrozen,"call",Ye=>Ye()])&&Re.type!==be.FullSnapshot&&!(Re.type===be.IncrementalSnapshot&&Re.data.source===ve.Mutation)&&vo.forEach(Ye=>Ye.unfreeze()),we)el([t,"optionalCall",Ye=>Ye(We(Re),wt)]);else if(Ee){const Ye={type:"rrweb",event:We(Re),origin:window.location.origin,isCheckout:wt};window.parent.postMessage(Ye,"*")}if(Re.type===be.FullSnapshot)Ue=Re,$e=0;else if(Re.type===be.IncrementalSnapshot){if(Re.data.source===ve.Mutation&&Re.data.isAttachIframe)return;$e++;const Ye=s&&$e>=s,je=n&&Ue&&Re.timestamp-Ue.timestamp>n;(Ye||je)&&Ps(!0)}};const St=Ae=>{nt({type:be.IncrementalSnapshot,data:{source:ve.Mutation,...Ae}})},Rs=Ae=>nt({type:be.IncrementalSnapshot,data:{source:ve.Scroll,...Ae}}),cc=Ae=>nt({type:be.IncrementalSnapshot,data:{source:ve.CanvasMutation,...Ae}}),Ro=Ae=>nt({type:be.IncrementalSnapshot,data:{source:ve.AdoptedStyleSheet,...Ae}}),An=new z2({mutationCb:St,adoptedStyleSheetCb:Ro}),Gn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new D2:new $2({mirror:In,mutationCb:St,stylesheetManager:An,recordCrossOriginIframes:Z,wrappedEmit:nt});for(const Ae of Se||[])Ae.getMirror&&Ae.getMirror({nodeMirror:In,crossOriginIframeMirror:Gn.crossOriginIframeMirror,crossOriginIframeStyleMirror:Gn.crossOriginIframeStyleMirror});const Ao=new U2,As=W2(V,{mirror:In,win:window,mutationCb:Ae=>nt({type:be.IncrementalSnapshot,data:{source:ve.CanvasMutation,...Ae}}),recordCanvas:J,blockClass:i,blockSelector:a,unblockSelector:c,maxCanvasSize:H,sampling:C.canvas,dataURLOptions:W,errorHandler:ne}),Os=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new B2:new F2({mutationCb:St,scrollCb:Rs,bypassOptions:{onMutation:P,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:h,maskTextClass:g,unmaskTextClass:y,maskTextSelector:w,unmaskTextSelector:x,inlineStylesheet:_,maskInputOptions:Pe,dataURLOptions:W,maskAttributeFn:L,maskTextFn:K,maskInputFn:j,recordCanvas:J,inlineImages:te,sampling:C,slimDOMOptions:Ne,iframeManager:Gn,stylesheetManager:An,canvasManager:As,keepIframeSrcFn:q,processedNodeManager:Ao},mirror:In}),Ps=(Ae=!1)=>{if(!U)return;nt({type:be.Meta,data:{href:window.location.href,width:c0(),height:l0()}},Ae),An.reset(),Os.init(),vo.forEach(Re=>Re.lock());const wt=u2(document,{mirror:In,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:h,maskTextClass:g,unmaskTextClass:y,maskTextSelector:w,unmaskTextSelector:x,inlineStylesheet:_,maskAllInputs:Pe,maskAttributeFn:L,maskInputFn:j,maskTextFn:K,slimDOM:Ne,dataURLOptions:W,recordCanvas:J,inlineImages:te,onSerialize:Re=>{f0(Re,In)&&Gn.addIframe(Re),p0(Re,In)&&An.trackLinkElement(Re),qd(Re)&&Os.addShadowRoot(Re.shadowRoot,document)},onIframeLoad:(Re,Ye)=>{Gn.attachIframe(Re,Ye),Re.contentWindow&&As.addWindow(Re.contentWindow),Os.observeAttachShadow(Re)},onStylesheetLoad:(Re,Ye)=>{An.attachLinkElement(Re,Ye)},keepIframeSrcFn:q});if(!wt)return console.warn("Failed to snapshot the document");nt({type:be.FullSnapshot,data:{node:wt,initialOffset:a0(window)}}),vo.forEach(Re=>Re.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&An.adoptStyleSheets(document.adoptedStyleSheets,In.getId(document))};xl=Ps;try{const Ae=[],wt=Ye=>Le(j2)({onMutation:P,mutationCb:St,mousemoveCb:(je,Yn)=>nt({type:be.IncrementalSnapshot,data:{source:Yn,positions:je}}),mouseInteractionCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ve.MouseInteraction,...je}}),scrollCb:Rs,viewportResizeCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ve.ViewportResize,...je}}),inputCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ve.Input,...je}}),mediaInteractionCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ve.MediaInteraction,...je}}),styleSheetRuleCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ve.StyleSheetRule,...je}}),styleDeclarationCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ve.StyleDeclaration,...je}}),canvasMutationCb:cc,fontCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ve.Font,...je}}),selectionCb:je=>{nt({type:be.IncrementalSnapshot,data:{source:ve.Selection,...je}})},customElementCb:je=>{nt({type:be.IncrementalSnapshot,data:{source:ve.CustomElement,...je}})},blockClass:i,ignoreClass:d,ignoreSelector:f,maskAllText:h,maskTextClass:g,unmaskTextClass:y,maskTextSelector:w,unmaskTextSelector:x,maskInputOptions:Pe,inlineStylesheet:_,sampling:C,recordDOM:U,recordCanvas:J,inlineImages:te,userTriggeredOnInput:me,collectFonts:De,doc:Ye,maskAttributeFn:L,maskInputFn:j,maskTextFn:K,keepIframeSrcFn:q,blockSelector:a,unblockSelector:c,slimDOMOptions:Ne,dataURLOptions:W,mirror:In,iframeManager:Gn,stylesheetManager:An,shadowDomManager:Os,processedNodeManager:Ao,canvasManager:As,ignoreCSSAttributes:oe,plugins:el([Se,"optionalAccess",je=>je.filter,"call",je=>je(Yn=>Yn.observer),"optionalAccess",je=>je.map,"call",je=>je(Yn=>({observer:Yn.observer,options:Yn.options,callback:uc=>nt({type:be.Plugin,data:{plugin:Yn.name,payload:uc}})}))])||[]},{});Gn.addLoadListener(Ye=>{try{Ae.push(wt(Ye.contentDocument))}catch(je){console.warn(je)}});const Re=()=>{Ps(),Ae.push(wt(document))};return document.readyState==="interactive"||document.readyState==="complete"?Re():(Ae.push($t("DOMContentLoaded",()=>{nt({type:be.DomContentLoaded,data:{}}),ue==="DOMContentLoaded"&&Re()})),Ae.push($t("load",()=>{nt({type:be.Load,data:{}}),ue==="load"&&Re()},window))),()=>{Ae.forEach(Ye=>Ye()),Ao.destroy(),xl=void 0,T2()}}catch(Ae){console.warn(Ae)}}function H2(e){if(!xl)throw new Error("please take full snapshot after start recording");xl(e)}cr.mirror=In,cr.takeFullSnapshot=H2;function W2(e,t){try{return e?e(t):new R0}catch{return console.warn("Unable to initialize CanvasManager"),new R0}}const q2=3,V2=5;function Qd(e){return e>9999999999?e:e*1e3}function Xd(e){return e>9999999999?e/1e3:e}function ki(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:be.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:xn(t,10,1e3)}}),t.category==="console")))}const G2="button,a";function A0(e){return e.closest(G2)||e}function O0(e){const t=P0(e);return!t||!(t instanceof Element)?t:A0(t)}function P0(e){return Y2(e)?e.target:e}function Y2(e){return typeof e=="object"&&!!e&&"target"in e}let Nr;function K2(e){return Nr||(Nr=[],Q2()),Nr.push(e),()=>{const t=Nr?Nr.indexOf(e):-1;t>-1&&Nr.splice(t,1)}}function Q2(){Vt(Ve,"open",function(e){return function(...t){if(Nr)try{Nr.forEach(n=>n())}catch{}return e.apply(Ve,t)}})}const X2=new Set([ve.Mutation,ve.StyleSheetRule,ve.StyleDeclaration,ve.AdoptedStyleSheet,ve.CanvasMutation,ve.Selection,ve.MediaInteraction]);function J2(e,t,n){e.handleClick(t,n)}class Z2{constructor(t,n,s=ki){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=s}addListeners(){const t=K2(()=>{this._lastMutation=N0()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(tA(n,this._ignoreSelector)||!nA(t))return;const s={timestamp:Xd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===s.node&&Math.abs(i.timestamp-s.timestamp)<1)||(this._clicks.push(s),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Xd(t)}registerScroll(t=Date.now()){this._lastScroll=Xd(t)}registerClick(t){const n=A0(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=N0();this._clicks.forEach(s=>{!s.mutationAfter&&this._lastMutation&&(s.mutationAfter=s.timestamp<=this._lastMutation?this._lastMutation-s.timestamp:void 0),!s.scrollAfter&&this._lastScroll&&(s.scrollAfter=s.timestamp<=this._lastScroll?this._lastScroll-s.timestamp:void 0),s.timestamp+this._timeout<=n&&t.push(s)});for(const s of t){const i=this._clicks.indexOf(s);i>-1&&(this._generateBreadcrumbs(s),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,s=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!s&&!i,{clickCount:c,clickBreadcrumb:d}=t;if(a){const f=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,h=f<this._timeout*1e3?"mutation":"timeout",g={type:"default",message:d.message,timestamp:d.timestamp,category:"ui.slowClickDetected",data:{...d.data,url:Ve.location.href,route:n.getCurrentRoute(),timeAfterClickMs:f,endReason:h,clickCount:c||1}};this._addBreadcrumbEvent(n,g);return}if(c>1){const f={type:"default",message:d.message,timestamp:d.timestamp,category:"ui.multiClick",data:{...d.data,url:Ve.location.href,route:n.getCurrentRoute(),clickCount:c,metric:!0}};this._addBreadcrumbEvent(n,f)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=co(()=>this._checkClicks(),1e3)}}const eA=["A","BUTTON","INPUT"];function tA(e,t){return!!(!eA.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function nA(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function N0(){return Date.now()/1e3}function rA(e,t){try{if(!sA(t))return;const{source:n}=t.data;if(X2.has(n)&&e.registerMutation(t.timestamp),n===ve.Scroll&&e.registerScroll(t.timestamp),oA(t)){const{type:s,id:i}=t.data,a=cr.mirror.getNode(i);a instanceof HTMLElement&&s===Bt.Click&&e.registerClick(a)}}catch{}}function sA(e){return e.type===q2}function oA(e){return e.data.source===ve.MouseInteraction}function Hn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Tl;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Tl||(Tl={}));const iA=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function aA(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(iA.has(n)){let s=n;(n==="data-testid"||n==="data-test-id")&&(s="testId"),t[s]=e[n]}return t}const lA=e=>t=>{if(!e.isEnabled())return;const n=cA(t);if(!n)return;const s=t.name==="click",i=s?t.event:void 0;s&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&J2(e.clickDetector,n,O0(t.event)),ki(e,n)};function M0(e,t){const n=cr.mirror.getId(e),s=n&&cr.mirror.getNode(n),i=s&&cr.mirror.getMeta(s),a=i&&dA(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(c=>c.type===Tl.Text&&c.textContent).filter(Boolean).map(c=>c.trim()).join(""),attributes:aA(a.attributes)}}:{}}}function cA(e){const{target:t,message:n}=uA(e);return Hn({category:`ui.${e.name}`,...M0(t,n)})}function uA(e){const t=e.name==="click";let n,s=null;try{s=t?O0(e.event):P0(e.event),n=rr(s,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:s,message:n}}function dA(e){return e.type===Tl.Element}function fA(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=pA(t);n&&ki(e,n)}function pA(e){const{metaKey:t,shiftKey:n,ctrlKey:s,altKey:i,key:a,target:c}=e;if(!c||hA(c)||!a)return null;const d=t||s||i,f=a.length===1;if(!d&&f)return null;const h=rr(c,{maxStringLength:200})||"<unknown>",g=M0(c,h);return Hn({category:"ui.keyDown",message:h,data:{...g.data,metaKey:t,shiftKey:n,ctrlKey:s,altKey:i,key:a}})}function hA(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const mA={resource:wA,paint:vA,navigation:SA};function kl(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function gA(e){return e.map(yA).filter(Boolean)}function yA(e){const t=mA[e.entryType];return t?t(e):null}function So(e){return((Dt||Ve.performance.timeOrigin)+e)/1e3}function vA(e){const{duration:t,entryType:n,name:s,startTime:i}=e,a=So(i);return{type:n,name:s,start:a,end:a+t,data:void 0}}function SA(e){const{entryType:t,name:n,decodedBodySize:s,duration:i,domComplete:a,encodedBodySize:c,domContentLoadedEventStart:d,domContentLoadedEventEnd:f,domInteractive:h,loadEventStart:g,loadEventEnd:y,redirectCount:w,startTime:x,transferSize:_,type:E}=e;return i===0?null:{type:`${t}.${E}`,start:So(x),end:So(a),name:n,data:{size:_,decodedBodySize:s,encodedBodySize:c,duration:i,domInteractive:h,domContentLoadedEventStart:d,domContentLoadedEventEnd:f,loadEventStart:g,loadEventEnd:y,domComplete:a,redirectCount:w}}}function wA(e){const{entryType:t,initiatorType:n,name:s,responseEnd:i,startTime:a,decodedBodySize:c,encodedBodySize:d,responseStatus:f,transferSize:h}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:So(a),end:So(i),name:s,data:{size:h,statusCode:f,decodedBodySize:c,encodedBodySize:d}}}function _A(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return Il(e,"largest-contentful-paint",n)}function EA(e){return e.sources!==void 0}function xA(e){const t=[],n=[];for(const s of e.entries)if(EA(s)){const i=[];for(const a of s.sources)if(a.node){n.push(a.node);const c=cr.mirror.getId(a.node);c&&i.push(c)}t.push({value:s.value,nodeIds:i.length?i:void 0})}return Il(e,"cumulative-layout-shift",n,t)}function TA(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Il(e,"first-input-delay",n)}function kA(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Il(e,"interaction-to-next-paint",n)}function Il(e,t,n,s){const i=e.value,a=e.rating,c=So(i);return{type:"web-vital",name:t,start:c,end:c,data:{value:i,size:i,rating:a,nodeIds:n?n.map(d=>cr.mirror.getId(d)):void 0,attributions:s}}}function IA(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const s=[];return["navigation","paint","resource"].forEach(i=>{s.push(ao(i,n))}),s.push(by(kl(_A,e)),Id(kl(xA,e)),Cy(kl(TA,e)),Ry(kl(kA,e))),()=>{s.forEach(i=>i())}}const he=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,bA='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==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;++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});';function CA(){const e=new Blob([bA]);return URL.createObjectURL(e)}const L0=["info","warn","error","log"],bl="[Replay] ";function Jd(e,t="info"){Ar({category:"console",data:{logger:"replay"},level:t,message:`${bl}${e}`},{level:t})}function RA(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:s=>{e=s.captureExceptions,t=s.traceInternals}};return he?(L0.forEach(s=>{n[s]=(...i)=>{ee[s](bl,...i),t&&Jd(i.join(""),ay(s))}}),n.exception=(s,...i)=>{i.length&&n.error&&n.error(...i),ee.error(bl,s),e?Tn(s):t&&Jd(s,"error")},n.infoTick=(...s)=>{ee.info(bl,...s),t&&setTimeout(()=>Jd(s[0]),0)}):L0.forEach(s=>{n[s]=()=>{}}),n}const ge=RA();class Zd extends Error{constructor(){super(`Event buffer exceeded maximum size of ${jd}.`)}}class j0{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(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>jd)throw new Zd;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?Qd(t):null}}class AA{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:s})=>{s.success?t():n()},{once:!0}),this._worker.addEventListener("error",s=>{n(s)},{once:!0})}),this._ensureReadyPromise)}destroy(){he&&ge.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const s=this._getAndIncrementId();return new Promise((i,a)=>{const c=({data:d})=>{const f=d;if(f.method===t&&f.id===s){if(this._worker.removeEventListener("message",c),!f.success){he&&ge.error("Error in compression worker: ",f.response),a(new Error("Error in compression worker"));return}i(f.response)}};this._worker.addEventListener("message",c),this._worker.postMessage({id:s,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class OA{constructor(t){this._worker=new AA(t),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()}addEvent(t){const n=Qd(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const s=JSON.stringify(t);return this._totalSize+=s.length,this._totalSize>jd?Promise.reject(new Zd):this._sendEventToWorker(s)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{he&&ge.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class PA{constructor(t){this._fallback=new j0,this._compression=new OA(t),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(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){he&&ge.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:s}=this._fallback,i=[];for(const a of t)i.push(this._compression.addEvent(a));this._compression.hasCheckout=n,this._compression.waitForCheckout=s,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(a){he&&ge.exception(a,"Failed to add events when switching buffers.")}}}function NA({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=MA(t);if(n)return n}return he&&ge.info("Using simple buffer"),new j0}function MA(e){try{const t=e||LA();if(!t)return;he&&ge.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new PA(n)}catch(t){he&&ge.exception(t,"Failed to create compression worker")}}function LA(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?CA():""}function ef(){try{return"sessionStorage"in Ve&&!!Ve.sessionStorage}catch{return!1}}function jA(e){DA(),e.session=void 0}function DA(){if(ef())try{Ve.sessionStorage.removeItem(Md)}catch{}}function D0(e){return e===void 0?!1:Math.random()<e}function $0(e){const t=Date.now(),n=e.id||sn(),s=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,c=e.sampled,d=e.previousSessionId;return{id:n,started:s,lastActivity:i,segmentId:a,sampled:c,previousSessionId:d}}function tf(e){if(ef())try{Ve.sessionStorage.setItem(Md,JSON.stringify(e))}catch{}}function $A(e,t){return D0(e)?"session":t?"buffer":!1}function B0({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:s}={}){const i=$A(e,t),a=$0({sampled:i,previousSessionId:s});return n&&tf(a),a}function BA(){if(!ef())return null;try{const e=Ve.sessionStorage.getItem(Md);if(!e)return null;const t=JSON.parse(e);return he&&ge.infoTick("Loading existing session"),$0(t)}catch{return null}}function nf(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function F0(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:s=Date.now()}){return nf(e.started,t,s)||nf(e.lastActivity,n,s)}function z0(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!F0(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function rf({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},s){const i=s.stickySession&&BA();return i?z0(i,{sessionIdleExpire:e,maxReplayDuration:t})?(he&&ge.infoTick("Session in sessionStorage is expired, creating new one..."),B0(s,{previousSessionId:i.id})):i:(he&&ge.infoTick("Creating new session"),B0(s,{previousSessionId:n}))}function FA(e){return e.type===be.Custom}function sf(e,t,n){return H0(e,t)?(U0(e,t,n),!0):!1}function zA(e,t,n){return H0(e,t)?U0(e,t,n):Promise.resolve(null)}async function U0(e,t,n){const{eventBuffer:s}=e;if(!s||s.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&s.clear(),n&&(s.hasCheckout=!0,s.waitForCheckout=!1);const a=e.getOptions(),c=UA(t,a.beforeAddRecordingEvent);return c?await s.addEvent(c):void 0}catch(a){const c=a&&a instanceof Zd,d=c?"addEventSizeExceeded":"addEvent";if(c&&i)return s.clear(),s.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:d});const f=Oe();f&&f.recordDroppedEvent("internal_sdk_error","replay")}}function H0(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Qd(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(he&&ge.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function UA(e,t){try{if(typeof t=="function"&&FA(e))return t(e)}catch(n){return he&&ge.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function of(e){return!e.type}function af(e){return e.type==="transaction"}function HA(e){return e.type==="replay_event"}function W0(e){return e.type==="feedback"}function WA(e){return(t,n)=>{if(!e.isEnabled()||!of(t)&&!af(t))return;const s=n&&n.statusCode;if(!(!s||s<200||s>=300)){if(af(t)){qA(e,t);return}VA(e,t)}}}function qA(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function VA(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:s}=e.getOptions();typeof s=="function"&&!s(t)||co(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function GA(e){return t=>{!e.isEnabled()||!of(t)||YA(e,t)}}function YA(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const s=Hn({category:"replay.hydrate-error",data:{url:Um()}});ki(e,s)}}function KA(e){const t=Oe();t&&t.on("beforeAddBreadcrumb",n=>QA(e,n))}function QA(e,t){if(!e.isEnabled()||!q0(t))return;const n=XA(t);n&&ki(e,n)}function XA(e){return!q0(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?JA(e):Hn(e)}function JA(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Hn(e);let n=!1;const s=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>fl?(n=!0,`${i.slice(0,fl)}…`):i;if(typeof i=="object")try{const a=xn(i,7);return JSON.stringify(a).length>fl?(n=!0,`${JSON.stringify(a,null,2).slice(0,fl)}…`):a}catch{}return i});return Hn({...e,data:{...e.data,arguments:s,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function q0(e){return!!e.category}function ZA(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function V0(){const e=qe().getPropagationContext().dsc;e&&delete e.replay_id;const t=vt();if(t){const n=ys(t);delete n.replay_id}}function eO(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:be.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function tO(e,t){return e.recordingMode!=="buffer"||t.message===Ld||!t.exception||t.type?!1:D0(e.getOptions().errorSampleRate)}function nO(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:HA(t)?(delete t.breadcrumbs,t):!of(t)&&!af(t)&&!W0(t)?t:e.checkAndHandleExpiredSession()?W0(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),eO(e,t),t):ZA(t,n)&&!e.getOptions()._experiments.captureExceptions?(he&&ge.log("Ignoring error from rrweb internals",t),null):((tO(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(V0(),t),{id:"Replay"})}function Cl(e,t){return t.map(({type:n,start:s,end:i,name:a,data:c})=>{const d=e.throttledAddEvent({type:be.Custom,timestamp:s,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:s,endTimestamp:i,data:c}}});return typeof d=="string"?Promise.resolve(null):d})}function rO(e){const{from:t,to:n}=e,s=Date.now()/1e3;return{type:"navigation.push",start:s,end:s,name:n,data:{previous:t}}}function sO(e){return t=>{if(!e.isEnabled())return;const n=rO(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Cl(e,[n]),!1)))}}function oO(e,t){return he&&e.getOptions()._experiments.traceInternals?!1:hI(t,Oe())}function G0(e,t){e.isEnabled()&&t!==null&&(oO(e,t.name)||e.addUpdate(()=>(Cl(e,[t]),!0)))}function Rl(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=X0(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Y0(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function K0(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[X0(e)];if(!e)return[void 0]}catch(t){return he&&ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return he&&ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Al(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},s=n.warnings||[];return n.warnings=[...s,t],e._meta=n,e}function Q0(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:s,url:i,method:a,statusCode:c,request:d,response:f}=t;return{type:e,start:n/1e3,end:s/1e3,name:i,data:ft({method:a,statusCode:c,request:d,response:f})}}function Ii(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Mr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const s={headers:e,size:t},{body:i,warnings:a}=iO(n);return s.body=i,a&&a.length>0&&(s._meta={warnings:a}),s}function lf(e,t){return Object.entries(e).reduce((n,[s,i])=>{const a=s.toLowerCase();return t.includes(a)&&e[s]&&(n[a]=i),n},{})}function X0(e){return new URLSearchParams(e).toString()}function iO(e){if(!e||typeof e!="string")return{body:e};const t=e.length>qy,n=aO(e);if(t){const s=e.slice(0,qy);return n?{body:s,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${s}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function aO(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ol(e,t){const n=lO(e);return kr(n,t)}function lO(e,t=Ve.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ve.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const s=n.href;return!e.endsWith("/")&&s.endsWith("/")?s.slice(0,-1):s}async function cO(e,t,n){try{const s=await dO(e,t,n),i=Q0("resource.fetch",s);G0(n.replay,i)}catch(s){he&&ge.exception(s,"Failed to capture fetch breadcrumb")}}function uO(e,t){const{input:n,response:s}=t,i=n?J0(n):void 0,a=Rl(i),c=s?Y0(s.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),c!==void 0&&(e.data.response_body_size=c)}async function dO(e,t,n){const s=Date.now(),{startTimestamp:i=s,endTimestamp:a=s}=t,{url:c,method:d,status_code:f=0,request_body_size:h,response_body_size:g}=e.data,y=Ol(c,n.networkDetailAllowUrls)&&!Ol(c,n.networkDetailDenyUrls),w=y?fO(n,t.input,h):Ii(h),x=await pO(y,n,t.response,g);return{startTimestamp:i,endTimestamp:a,url:c,method:d,statusCode:f,request:w,response:x}}function fO({networkCaptureBodies:e,networkRequestHeaders:t},n,s){const i=n?gO(n,t):{};if(!e)return Mr(i,s,void 0);const a=J0(n),[c,d]=K0(a),f=Mr(i,s,c);return d?Al(f,d):f}async function pO(e,{networkCaptureBodies:t,networkResponseHeaders:n},s,i){if(!e&&i!==void 0)return Ii(i);const a=s?Z0(s.headers,n):{};if(!s||!t&&i!==void 0)return Mr(a,i,void 0);const[c,d]=await mO(s),f=hO(c,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return d?Al(f,d):f}function hO(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:s,headers:i}){try{const a=e&&e.length&&n===void 0?Rl(e):n;return s?t?Mr(i,a,e):Mr(i,a,void 0):Ii(a)}catch(a){return he&&ge.exception(a,"Failed to serialize response body"),Mr(i,n,void 0)}}async function mO(e){const t=yO(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await vO(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(he&&ge.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(he&&ge.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function J0(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Z0(e,t){const n={};return t.forEach(s=>{e.get(s)&&(n[s]=e.get(s))}),n}function gO(e,t){return e.length===1&&typeof e[0]!="string"?e1(e[0],t):e.length===2?e1(e[1],t):{}}function e1(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Z0(n,t):Array.isArray(n)?{}:lf(n,t):{}}function yO(e){try{return e.clone()}catch(t){he&&ge.exception(t,"Failed to clone response body")}}function vO(e){return new Promise((t,n)=>{const s=co(()=>n(new Error("Timeout while trying to read response body")),500);SO(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(s))})}async function SO(e){return await e.text()}async function wO(e,t,n){try{const s=EO(e,t,n),i=Q0("resource.xhr",s);G0(n.replay,i)}catch(s){he&&ge.exception(s,"Failed to capture xhr breadcrumb")}}function _O(e,t){const{xhr:n,input:s}=t;if(!n)return;const i=Rl(s),a=n.getResponseHeader("content-length")?Y0(n.getResponseHeader("content-length")):IO(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function EO(e,t,n){const s=Date.now(),{startTimestamp:i=s,endTimestamp:a=s,input:c,xhr:d}=t,{url:f,method:h,status_code:g=0,request_body_size:y,response_body_size:w}=e.data;if(!f)return null;if(!d||!Ol(f,n.networkDetailAllowUrls)||Ol(f,n.networkDetailDenyUrls)){const O=Ii(y),C=Ii(w);return{startTimestamp:i,endTimestamp:a,url:f,method:h,statusCode:g,request:O,response:C}}const x=d[_s],_=x?lf(x.request_headers,n.networkRequestHeaders):{},E=lf(xO(d),n.networkResponseHeaders),[T,A]=n.networkCaptureBodies?K0(c):[void 0],[L,j]=n.networkCaptureBodies?TO(d):[void 0],K=Mr(_,y,T),H=Mr(E,w,L);return{startTimestamp:i,endTimestamp:a,url:f,method:h,statusCode:g,request:A?Al(K,A):K,response:j?Al(H,j):H}}function xO(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
`).reduce((n,s)=>{const[i,a]=s.split(": ");return a&&(n[i.toLowerCase()]=a),n},{}):{}}function TO(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return kO(e.response,e.responseType)}catch(n){t.push(n)}return he&&ge.warn("Failed to get xhr response body",...t),[void 0]}function kO(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return he&&ge.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return he&&ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function IO(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Rl(n)}catch{return}}function bO(e){const t=Oe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:c}=e.getOptions(),d={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:c};t&&t.on("beforeAddBreadcrumb",(f,h)=>CO(d,f,h))}catch{}}function CO(e,t,n){if(t.data)try{RO(t)&&OO(n)&&(_O(t,n),wO(t,n,e)),AO(t)&&PO(n)&&(uO(t,n),cO(t,n,e))}catch(s){he&&ge.exception(s,"Error when enriching network breadcrumb")}}function RO(e){return e.category==="xhr"}function AO(e){return e.category==="fetch"}function OO(e){return e&&e.xhr}function PO(e){return e&&e.response}function NO(e){const t=Oe();Ly(lA(e)),ll(sO(e)),KA(e),bO(e);const n=nO(e);Gk(n),t&&(t.on("beforeSendEvent",GA(e)),t.on("afterSendEvent",WA(e)),t.on("createDsc",s=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(s.replay_id=i)}),t.on("spanStart",s=>{e.lastActiveSpan=s}),t.on("spanEnd",s=>{e.lastActiveSpan=s}),t.on("beforeSendFeedback",(s,i)=>{const a=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&a&&s.contexts&&s.contexts.feedback&&(s.contexts.feedback.replay_id=a)}))}async function MO(e){try{return Promise.all(Cl(e,[LO(Ve.performance.memory)]))}catch{return[]}}function LO(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:s}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:s}}}}function jO(e,t,n){let s,i,a;const c=n&&n.maxWait?Math.max(n.maxWait,t):0;function d(){return f(),s=e(),s}function f(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function h(){return i!==void 0||a!==void 0?d():s}function g(){return i&&clearTimeout(i),i=co(d,t),c&&a===void 0&&(a=co(d,c)),s}return g.cancel=f,g.flush=h,g}const xs=Me.navigator;function DO(){return/iPhone|iPad|iPod/i.test(xs&&xs.userAgent||"")||/Macintosh/i.test(xs&&xs.userAgent||"")&&xs&&xs.maxTouchPoints&&xs.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function $O(e){let t=!1;return(n,s)=>{if(!e.checkAndHandleExpiredSession()){he&&ge.warn("Received replay event after session expired.");return}const i=s||!t;t=!0,e.clickDetector&&rA(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!sf(e,n,i))return!0;if(!i)return!1;const a=e.session;if(FO(e,i),e.recordingMode==="buffer"&&a&&e.eventBuffer){const c=e.eventBuffer.getEarliestTimestamp();c&&(he&&ge.info(`Updating session start time to earliest event in buffer to ${new Date(c)}`),a.started=c,e.getOptions().stickySession&&tf(a))}return a&&a.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function BO(e){const t=e.getOptions();return{type:be.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?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function FO(e,t){!t||!e.session||e.session.segmentId!==0||sf(e,BO(e),!1)}function zO(e,t,n,s){return vs(Ig(e,ad(e),s,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function UO({recordingData:e,headers:t}){let n;const s=`${JSON.stringify(t)}
`;if(typeof e=="string")n=`${s}${e}`;else{const a=new TextEncoder().encode(s);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function HO({client:e,scope:t,replayId:n,event:s}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:i};e.emit("preprocessEvent",s,a);const c=await $g(e.getOptions(),s,a,t,e,En());if(!c)return null;c.platform=c.platform||"javascript";const d=e.getSdkMetadata(),{name:f,version:h}=d&&d.sdk||{};return c.sdk={...c.sdk,name:f||"sentry.javascript.unknown",version:h||"0.0.0"},c}async function WO({recordingData:e,replayId:t,segmentId:n,eventContext:s,timestamp:i,session:a}){const c=UO({recordingData:e,headers:{segment_id:n}}),{urls:d,errorIds:f,traceIds:h,initialTimestamp:g}=s,y=Oe(),w=qe(),x=y&&y.getTransport(),_=y&&y.getDsn();if(!y||!x||!_||!a.sampled)return or({});const E={type:ER,replay_start_timestamp:g/1e3,timestamp:i/1e3,error_ids:f,trace_ids:h,urls:d,replay_id:t,segment_id:n,replay_type:a.sampled},T=await HO({scope:w,client:y,replayId:t,event:E});if(!T)return y.recordDroppedEvent("event_processor","replay",E),he&&ge.info("An event processor returned `null`, will not send event."),or({});delete T.sdkProcessingMetadata;const A=zO(T,c,_,y.getOptions().tunnel);let L;try{L=await x.send(A)}catch(K){const H=new Error(Ld);try{H.cause=K}catch{}throw H}if(typeof L.statusCode=="number"&&(L.statusCode<200||L.statusCode>=300))throw new t1(L.statusCode);const j=Jg({},L);if(Xg(j,"replay"))throw new cf(j);return L}class t1 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class cf extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function n1(e,t={count:0,interval:CR}){const{recordingData:n,onError:s}=e;if(n.length)try{return await WO(e),!0}catch(i){if(i instanceof t1||i instanceof cf)throw i;if(Fg("Replays",{_retryCount:t.count}),s&&s(i),t.count>=RR){const a=new Error(`${Ld} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,c)=>{co(async()=>{try{await n1(e,t),a(!0)}catch(d){c(d)}},t.interval)})}}const r1="__THROTTLED",qO="__SKIPPED";function VO(e,t,n){const s=new Map,i=d=>{const f=d-n;s.forEach((h,g)=>{g<f&&s.delete(g)})},a=()=>[...s.values()].reduce((d,f)=>d+f,0);let c=!1;return(...d)=>{const f=Math.floor(Date.now()/1e3);if(i(f),a()>=t){const g=c;return c=!0,g?qO:r1}c=!1;const h=s.get(f)||0;return s.set(f,h+1),e(...d)}}class Lr{constructor({options:t,recordingOptions:n}){Lr.prototype.__init.call(this),Lr.prototype.__init2.call(this),Lr.prototype.__init3.call(this),Lr.prototype.__init4.call(this),Lr.prototype.__init5.call(this),Lr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:xR,sessionIdleExpire:TR},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=n,this._options=t,this._debouncedFlush=jO(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=VO((c,d)=>zA(this,c,d),300,5);const{slowClickTimeout:s,slowClickIgnoreSelectors:i}=this.getOptions(),a=s?{threshold:Math.min(AR,s),timeout:s,scrollTimeout:OR,ignoreSelector:i?i.join(","):""}:void 0;if(a&&(this.clickDetector=new Z2(this,a)),he){const c=t._experiments;ge.setConfig({captureExceptions:!!c.captureExceptions,traceInternals:!!c.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){he&&ge.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:s}=this._options,i=n<=0&&s<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){he&&ge.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",he&&ge.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){he&&ge.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){he&&ge.info("Buffering is in progress, call `flush()` to save the replay");return}he&&ge.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=rf({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){he&&ge.info("Buffering is in progress, call `flush()` to save the replay");return}he&&ge.infoTick("Starting replay in buffer mode");const t=rf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=cr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:bR}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:$O(this),...DO(),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{he&&ge.info(`Stopping Replay${n?` triggered by ${n}`:""}`),V0(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,jA(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),he&&ge.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),he&&ge.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();he&&ge.info("Converting buffer to session"),await this.flushImmediate();const s=this.stopRecording();!t||!s||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&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 this.recordingMode==="buffer"?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&&nf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ve.location.pathname}${Ve.location.hash}${Ve.location.search}`,n=`${Ve.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const s=this._throttledAddEvent(t,n);if(s===r1){const i=Hn({category:"replay.throttled"});this.addUpdate(()=>!sf(this,{type:V2,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return s}getCurrentRoute(){const t=this.lastActiveSpan||vt(),n=t&&kt(t),i=(n&&Fe(n).data||{})[Fn];if(!(!n||!i||!["route","custom"].includes(i)))return Fe(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=NA({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,s=rf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=s}_checkSession(){if(!this.session)return!1;const t=this.session;return z0(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ve.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ve.addEventListener("blur",this._handleWindowBlur),Ve.addEventListener("focus",this._handleWindowFocus),Ve.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(NO(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=IA(this)}_removeListeners(){try{Ve.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ve.removeEventListener("blur",this._handleWindowBlur),Ve.removeEventListener("focus",this._handleWindowFocus),Ve.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{Ve.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Hn({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Hn({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{fA(this,t)}}_doChangeToBackgroundTasks(t){!this.session||F0(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){he&&ge.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:be.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=gA(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(s=>s.start>=n)}return Promise.all(Cl(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const s=n.getEarliestTimestamp();s&&s<this._context.initialTimestamp&&(this._context.initialTimestamp=s)}_popEventContext(){const t={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(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){he&&ge.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await MO(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const s=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await n1({replayId:t,recordingData:a,segmentId:i,eventContext:s,session:this.session,timestamp:n,onError:c=>this.handleException(c)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const s=Oe();if(s){const i=n instanceof cf?"ratelimit_backoff":"send_error";s.recordDroppedEvent(i,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){he&&ge.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const a=i<this._options.minReplayDuration,c=i>this._options.maxReplayDuration+5e3;if(a||c){he&&ge.info(`Session duration (${Math.floor(i/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const d=this.eventBuffer;d&&this.session.segmentId===0&&!d.hasCheckout&&he&&ge.info("Flushing initial segment without checkout.");const f=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(h){this.handleException(h)}finally{this._flushLock=void 0,f&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&tf(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=s&&n>s;if(n>i||a){const c=Hn({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(c)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function bi(e,t){return[...e,...t].join(",")}function GO({mask:e,unmask:t,block:n,unblock:s,ignore:i}){const a=["base","iframe[srcdoc]:not([src])"],c=bi(e,[".sentry-mask","[data-sentry-mask]"]),d=bi(t,[]);return{maskTextSelector:c,unmaskTextSelector:d,blockSelector:bi(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:bi(s,[]),ignoreSelector:bi(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function YO({el:e,key:t,maskAttributes:n,maskAllText:s,privacyOptions:i,value:a}){return!s||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const s1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',KO=["content-length","content-type","accept"];let o1=!1;const QO=e=>new Pl(e);class Pl{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=kR,flushMaxDelay:n=IR,minReplayDuration:s=PR,maxReplayDuration:i=Vy,stickySession:a=!0,useCompression:c=!0,workerUrl:d,_experiments:f={},maskAllText:h=!0,maskAllInputs:g=!0,blockAllMedia:y=!0,mutationBreadcrumbLimit:w=750,mutationLimit:x=1e4,slowClickTimeout:_=7e3,slowClickIgnoreSelectors:E=[],networkDetailAllowUrls:T=[],networkDetailDenyUrls:A=[],networkCaptureBodies:L=!0,networkRequestHeaders:j=[],networkResponseHeaders:K=[],mask:H=[],maskAttributes:O=["title","placeholder"],unmask:C=[],block:W=[],unblock:B=[],ignore:U=[],maskFn:J,beforeAddRecordingEvent:Z,beforeErrorSampling:ue,onError:me}={}){this.name=Pl.id;const De=GO({mask:H,unmask:C,block:W,unblock:B,ignore:U});if(this._recordingOptions={maskAllInputs:g,maskAllText:h,maskInputOptions:{password:!0},maskTextFn:J,maskInputFn:J,maskAttributeFn:(te,Se,q)=>YO({maskAttributes:O,maskAllText:h,privacyOptions:De,key:te,value:Se,el:q}),...De,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:te=>{try{te.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(s,NR),maxReplayDuration:Math.min(i,Vy),stickySession:a,useCompression:c,workerUrl:d,blockAllMedia:y,maskAllInputs:g,maskAllText:h,mutationBreadcrumbLimit:w,mutationLimit:x,slowClickTimeout:_,slowClickIgnoreSelectors:E,networkDetailAllowUrls:T,networkDetailDenyUrls:A,networkCaptureBodies:L,networkRequestHeaders:i1(j),networkResponseHeaders:i1(K),beforeAddRecordingEvent:Z,beforeErrorSampling:ue,onError:me,_experiments:f},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${s1}`:s1),this._isInitialized&&gy())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return o1}set _isInitialized(t){o1=t}afterAllSetup(t){!gy()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(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(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=XO(this._initialOptions,t);this._replay=new Lr({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Pl.__initStatic();function XO(e,t){const n=t.getOptions(),s={sessionSampleRate:0,errorSampleRate:0,...ft(e)},i=Va(n.replaysSessionSampleRate),a=Va(n.replaysOnErrorSampleRate);return i==null&&a==null&&Er(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(s.sessionSampleRate=i),a!=null&&(s.errorSampleRate=a),s}function i1(e){return[...KO,...e.map(t=>t.toLowerCase())]}const a1=new WeakMap,uf=new Map,Nl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function JO(e,t){const{traceFetch:n,traceXHR:s,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:c,tracePropagationTargets:d}={traceFetch:Nl.traceFetch,traceXHR:Nl.traceXHR,trackFetchStreamPerformance:Nl.trackFetchStreamPerformance,...t},f=typeof a=="function"?a:y=>!0,h=y=>nP(y,d),g={};n&&(e.addEventProcessor(y=>(y.type==="transaction"&&y.spans&&y.spans.forEach(w=>{if(w.op==="http.client"){const x=uf.get(w.span_id);x&&(w.timestamp=x/1e3,uf.delete(w.span_id))}}),y)),i&&QI(y=>{if(y.response){const w=a1.get(y.response);w&&y.endTimestamp&&uf.set(w,y.endTimestamp)}}),py(y=>{const w=HI(y,f,h,g);if(y.response&&y.fetchData.__span&&a1.set(y.response,y.fetchData.__span),w){const x=c1(y.fetchData.url),_=x?Ss(x).host:void 0;w.setAttributes({"http.url":x,"server.address":_})}c&&w&&l1(w)})),s&&By(y=>{const w=rP(y,f,h,g);c&&w&&l1(w)})}function ZO(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function l1(e){const{url:t}=Fe(e).data||{};if(!t||typeof t!="string")return;const n=ao("resource",({entries:s})=>{s.forEach(i=>{ZO(i)&&i.name.endsWith(t)&&(tP(i).forEach(c=>e.setAttribute(...c)),setTimeout(n))})})}function eP(e){let t="unknown",n="unknown",s="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=s==="h"?"http":s,n=e.split(s)[1];break}s+=i}return s===e&&(t=s),{name:t,version:n}}function Wn(e=0){return((Dt||performance.timeOrigin)+e)/1e3}function tP(e){const{name:t,version:n}=eP(e.nextHopProtocol),s=[];return s.push(["network.protocol.version",n],["network.protocol.name",t]),Dt?[...s,["http.request.redirect_start",Wn(e.redirectStart)],["http.request.fetch_start",Wn(e.fetchStart)],["http.request.domain_lookup_start",Wn(e.domainLookupStart)],["http.request.domain_lookup_end",Wn(e.domainLookupEnd)],["http.request.connect_start",Wn(e.connectStart)],["http.request.secure_connection_start",Wn(e.secureConnectionStart)],["http.request.connection_end",Wn(e.connectEnd)],["http.request.request_start",Wn(e.requestStart)],["http.request.response_start",Wn(e.responseStart)],["http.request.response_end",Wn(e.responseEnd)]]:s}function nP(e,t){const n=_e.location&&_e.location.href;if(n){let s,i;try{s=new URL(e,n),i=new URL(n).origin}catch{return!1}const a=s.origin===i;return t?kr(s.toString(),t)||a&&kr(s.pathname,t):a}else{const s=!!e.match(/^\/(?!\/)/);return t?kr(e,t):s}}function rP(e,t,n,s){const i=e.xhr,a=i&&i[_s];if(!i||i.__sentry_own_request__||!a)return;const c=Rr()&&t(a.url);if(e.endTimestamp&&c){const y=i.__sentry_xhr_span_id__;if(!y)return;const w=s[y];w&&a.status_code!==void 0&&(ng(w,a.status_code),w.end(),delete s[y]);return}const d=c1(a.url),f=d?Ss(d).host:void 0,h=!!vt(),g=c&&h?ci({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":d,url:a.url,"server.address":f,[gt]:"auto.http.browser",[ps]:"http.client"}}):new no;return i.__sentry_xhr_span_id__=g.spanContext().spanId,s[i.__sentry_xhr_span_id__]=g,n(a.url)&&sP(i,Rr()&&h?g:void 0),g}function sP(e,t){const{"sentry-trace":n,baggage:s}=ny({span:t});n&&oP(e,n,s)}function oP(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function c1(e){try{return new URL(e,_e.location.origin).href}catch{return}}function iP(){_e&&_e.document?_e.document.addEventListener("visibilitychange",()=>{const e=vt();if(!e)return;const t=kt(e);if(_e.document.hidden&&t){const n="cancelled",{op:s,status:i}=Fe(t);Un&&ee.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${s}`),i||t.setStatus({code:yt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Un&&ee.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const aP="BrowserTracing",lP={...Ga,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Nl},cP=(e={})=>{QT();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:s,_experiments:{enableInteractions:i,enableStandaloneClsSpans:a},beforeStartSpan:c,idleTimeout:d,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:g,traceFetch:y,traceXHR:w,trackFetchStreamPerformance:x,shouldCreateSpanForRequest:_,enableHTTPTimings:E,instrumentPageLoad:T,instrumentNavigation:A}={...lP,...e},L=oC({recordClsStandaloneSpans:a||!1});t&&AC(),s&&Me.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?aC():n&&iC(),i&&lC();const j={name:void 0,source:void 0};function K(H,O){const C=O.op==="pageload",W=c?c(O):O,B=W.attributes||{};O.name!==W.name&&(B[Fn]="custom",W.attributes=B),j.name=W.name,j.source=B[Fn];const U=Lg(W,{idleTimeout:d,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:C,beforeSpanEnd:Z=>{L(),pC(Z,{recordClsOnPageloadSpan:!a})}});function J(){["interactive","complete"].includes(_e.document.readyState)&&H.emit("idleSpanEnableAutoFinish",U)}return C&&_e.document&&(_e.document.addEventListener("readystatechange",()=>{J()}),J()),U}return{name:aP,afterAllSetup(H){let O,C=_e.location&&_e.location.href;function W(){O&&!Fe(O).timestamp&&(Un&&ee.log(`[Tracing] Finishing current active span with op: ${Fe(O).op}`),O.end())}H.on("startNavigationSpan",B=>{Oe()===H&&(W(),O=K(H,{op:"navigation",...B}))}),H.on("startPageLoadSpan",(B,U={})=>{if(Oe()!==H)return;W();const J=U.sentryTrace||u1("sentry-trace"),Z=U.baggage||u1("baggage"),ue=HT(J,Z);qe().setPropagationContext(ue),O=K(H,{op:"pageload",...B})}),H.on("spanEnd",B=>{const U=Fe(B).op;if(B!==kt(B)||U!=="navigation"&&U!=="pageload")return;const J=qe(),Z=J.getPropagationContext();J.setPropagationContext({...Z,sampled:Z.sampled!==void 0?Z.sampled:ms(B),dsc:Z.dsc||ys(B)})}),_e.location&&(T&&uP(H,{name:_e.location.pathname,startTime:Dt?Dt/1e3:void 0,attributes:{[Fn]:"url",[gt]:"auto.pageload.browser"}}),A&&ll(({to:B,from:U})=>{if(U===void 0&&C&&C.indexOf(B)!==-1){C=void 0;return}U!==B&&(C=void 0,dP(H,{name:_e.location.pathname,attributes:{[Fn]:"url",[gt]:"auto.navigation.browser"}}))})),g&&iP(),i&&fP(d,f,h,j),t&&PC(),JO(H,{traceFetch:y,traceXHR:w,trackFetchStreamPerformance:x,tracePropagationTargets:H.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:E})}}};function uP(e,t,n){e.emit("startPageLoadSpan",t,n),qe().setTransactionName(t.name);const s=vt();return(s&&Fe(s).op)==="pageload"?s:void 0}function dP(e,t){En().setPropagationContext({traceId:br()}),qe().setPropagationContext({traceId:br()}),e.emit("startNavigationSpan",t),qe().setTransactionName(t.name);const n=vt();return(n&&Fe(n).op)==="navigation"?n:void 0}function u1(e){const t=mT(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function fP(e,t,n,s){let i;const a=()=>{const c="ui.action.click",d=vt(),f=d&&kt(d);if(f){const h=Fe(f).op;if(["navigation","pageload"].includes(h)){Un&&ee.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Zu,"interactionInterrupted"),i.end(),i=void 0),!s.name){Un&&ee.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=Lg({name:s.name,op:c,attributes:{[Fn]:s.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};_e.document&&addEventListener("click",a,{once:!1,capture:!0})}function pP(e){const t={...e};return ty(t,"react"),Fg("react",{version:R.version}),_R(t)}const Ml={userId:"edmap-user"},hP=async e=>{try{return await yP(e),wr.reportNewUserCreated(),e}catch(t){throw console.error("User haven't been registered"),t}},d1=e=>hP(e).then(()=>{df(e)}).catch(t=>{mP()}),jr=async()=>{const e=wo();if(e)return e;const t=Sr(13);return await d1(t),df(t),t},Ll=()=>{const e=wo();if(e)return e;const t=Sr(13);return df(t),d1(t),t},df=e=>localStorage.setItem(Ml.userId,e),wo=()=>localStorage.getItem(Ml.userId),mP=()=>{localStorage.removeItem(Ml.userId)},gP=async()=>wo()??"dafult-user",yP=async e=>{var s,i;const n=(((s=window.__widgetEdmap)==null?void 0:s.mode)||"default")==="admin"?"/registration/auto-disposable?seconds=32400":"/registration/auto";try{const a=await ct.post(n,{id:e});return(i=a==null?void 0:a.data)==null?void 0:i.id}catch(a){throw console.error("Error registering new user:",a),a}},vP=async()=>{var i,a;const e=(i=window==null?void 0:window.__widgetEdmap)==null?void 0:i.mapId;if(!e)return;const t=`/registration/telegram/${e}`,n=await jr(),s=window.location.href;try{const c=await ct.post(t,{redirectUrl:s,userId:n});(c==null?void 0:c.status)===201&&(window.location.href=(a=c==null?void 0:c.data)==null?void 0:a.link)}catch(c){Tn(c),console.error("Error registering new user through telegram",c)}},SP=async e=>{const t="/auth/telegram";try{const n=await ct.post(t,{code:e});(n==null?void 0:n.status)===201&&f1(n==null?void 0:n.data)}catch(n){Tn(n),console.error("Failed to authorize through Telegram",n)}},wP=async()=>{var a;const e=(a=window==null?void 0:window.__widgetEdmap)==null?void 0:a.mapId,t=wo(),n=encodeURIComponent(window.location.href);if(!e)return;const s=new URLSearchParams;s.append("mapId",e),s.append("userId",t),s.append("redirectUrl",n);const i=`/auth/google?${s.toString()}`;try{const c=await ct.get(i);window.location.href=c.data.redirectUrl}catch(c){Tn(c),console.error("Error registering new user through gmail",c)}},_P=async()=>{const e=new URLSearchParams(window.location.search),t=e.get("accessToken"),n=e.get("refreshToken"),s=e.get("userId");!t||!n||!s||f1({accessToken:t,refreshToken:n,userId:s})},f1=e=>{wr.reportUserRegistration(),localStorage.setItem(Ml.userId,e==null?void 0:e.userId),localStorage.setItem("edmap-access-token",e==null?void 0:e.accessToken),localStorage.setItem("edmap-refresh-token",e==null?void 0:e.refreshToken)},EP=e=>{if(!e)return"edmap-session-prob";const t=Sr(13),n=`edmap-session-${e}`;return localStorage.setItem(n,`${t}@${Date.now()}`),t},p1=e=>{const t=`edmap-session-${e}`;localStorage.removeItem(t)},xP=async e=>{const t=TP(e);if(!t)return[];const n=`/user-test-answer/session/${t}`;return(await ct.get(n)).data},TP=e=>{const t=h1(e);if(!t)return null;const[n,s]=t.split("@");return n},h1=e=>{const t=localStorage.getItem(`edmap-session-${e}`);return t||null},_o=e=>{const t=kP(e),[n,s]=t.split("@");return n},kP=e=>{const t=localStorage.getItem(`edmap-session-${e}`);return t||EP(e)},IP=async(e,t)=>{t&&await SP(t);const n=new URLSearchParams(window.location.search),s=n.get("accessToken"),i=n.get("refreshToken"),a=n.get("userId");s&&i&&a&&await _P();const c=await gP();return g1(e,c)},m1=()=>typeof window>"u"?!1:!!localStorage.getItem("edmap-access-token"),bP=async(e,t)=>{const n=`/quest/${e}/${encodeURIComponent(t)}`;try{const s=await ct.get(n);return s.data?s.data:null}catch{return null}},CP=async e=>{const t=`/quest/widget/${e}`;try{const n=await ct.get(t);return n.data?n.data:null}catch(n){Tn(n),console.error("Error fetching quest:",n)}},RP=async e=>{var n;const t="/user-test-answer";wr.reportTestAnswers((n=e[0])==null?void 0:n.questionId,e.map(s=>s.answerId));try{return await ct.post(t,e)}catch(s){throw console.error("Failed to send test answers:",s),s}},AP=async(e,t)=>[{id:`${Sr(13)}`,answerId:null,questionId:t,userId:await jr(),sessionId:_o(e)}],OP=async e=>{const t="/result-quest-answer/test";try{return await ct.post(t,{id:Sr(13),sessionId:_o(e.id),questId:e.id,mapId:e.mapId,userId:await jr()})}catch(n){throw console.error("Failed to send result test answers:",n),n}},g1=async(e,t)=>{const n=`/user-result/${e}/${t}`;try{return(await ct.get(n)).data}catch(s){Tn(s),console.error("Failed to get user results:",s)}},PP=async(e,t,n)=>{const s=`/leaderboard/${e}`;try{return await ct.get(s,{params:{take:t,skip:n}})}catch(i){Tn(i),console.error("Failed to fetch leaderboard:",i)}},y1=e=>{let t;const n=new Set,s=(h,g)=>{const y=typeof h=="function"?h(t):h;if(!Object.is(y,t)){const w=t;t=g??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(x=>x(t,w))}},i=()=>t,d={setState:s,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(s,i,d);return d},NP=e=>e?y1(e):y1,MP=e=>e;function LP(e,t=MP){const n=Tt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Tt.useDebugValue(n),n}const v1=e=>{const t=NP(e),n=s=>LP(t,s);return Object.assign(n,t),n},Yt=e=>e?v1(e):v1,ke=Yt(e=>({quest:{},allQuest:{},currentStep:null,overallSteps:0,currentTryPoints:0,isFinished:null,mapLeaderboard:[],isError:!1,setQuest:t=>e({quest:t}),setAllQuests:t=>e({allQuests:t}),setOverallSteps:t=>e({overallSteps:t}),increaseStep:()=>e(t=>({currentStep:t.currentStep+1})),setCurrentStep:t=>e({currentStep:t}),resetSteps:()=>e({currentStep:1}),setIsFinished:t=>e({isFinished:t}),setMapLeaderboard:t=>e({mapLeaderboard:t}),setCurrentTryPoints:t=>e({currentTryPoints:t}),setIsError:t=>e({isError:t})})),ff="eddpzuabl",S1="edl168snjk",jP="edwbmletw",w1="edr10i0h72",pf="edn16xylqg",DP="edb19h1gx0",_1="edt1n7onvl",$P="edw16bh3dw",BP="edw1j9fzy2";function FP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hf=FP(function(e){return zP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),UP=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},s=[];t.forEach(a=>{(a?a.split(" "):[]).forEach(d=>{if(d.startsWith("atm_")){const[,f]=d.split("_");n[f]=d}else s.push(d)})});const i=[];for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(n[a]);return i.push(...s),i.join(" ")},E1=UP,HP=e=>e.toUpperCase()===e,WP=e=>t=>e.indexOf(t)===-1,x1=(e,t)=>{const n={};return Object.keys(e).filter(WP(t)).forEach(s=>{n[s]=e[s]}),n};function qP(e,t,n){const s=x1(t,n);if(!e){const i=typeof hf=="function"?{default:hf}:hf;Object.keys(s).forEach(a=>{i.default(a)||delete s[a]})}return s}var VP=(e,t)=>{};function GP(e){let t="";return n=>{const s=(a,c)=>{const{as:d=e,class:f=t}=a,h=n.propsAsIs===void 0?!(typeof d=="string"&&d.indexOf("-")===-1&&!HP(d[0])):n.propsAsIs,g=qP(h,a,["as","class"]);g.ref=c,g.className=n.atomic?E1(n.class,g.className||f):E1(g.className||f,n.class);const{vars:y}=n;if(y){const w={};for(const E in y){const T=y[E],A=T[0],L=T[1]||"",j=typeof A=="function"?A(a):A;VP(j,n.name),w[`--${E}`]=`${j}${L}`}const x=g.style||{},_=Object.keys(x);_.length>0&&_.forEach(E=>{w[E]=x[E]}),g.style=w}return e.__wyw_meta&&e!==d?(g.as=d,Tt.createElement(e,g)):Tt.createElement(d,g)},i=Tt.forwardRef?Tt.forwardRef(s):a=>{const c=x1(a,["innerRef"]);return s(c,a.innerRef)};return i.displayName=n.name,i.__wyw_meta={className:n.class||t,extends:e},i}}var $=GP;const YP=$("div")({name:"Container",class:"edc2mc3o7",propsAsIs:!1}),KP=$("div")({name:"ContentWrapper",class:"edc1mezuql",propsAsIs:!1}),T1=$("div")({name:"InfoBlock",class:"edi282h0s",propsAsIs:!1}),k1=$("p")({name:"InfoBlockTitle",class:"edi1hvj2ef",propsAsIs:!1}),I1=$("p")({name:"InfoBlockSubtitle",class:"edil1zahd",propsAsIs:!1}),b1=$("div")({name:"ButtonsWrapper",class:"edb19bodzu",propsAsIs:!1}),QP=$("div")({name:"SignInBlock",class:"eds1kockd",propsAsIs:!1}),XP=$("div")({name:"MenuSection",class:"edm1mglzga",propsAsIs:!1}),JP=$("div")({name:"Container",class:"edc1j8vq8z",propsAsIs:!1}),ZP=$("ul")({name:"Nav",class:"edn1cd6joy",propsAsIs:!1}),eN=()=>e=>e.isActive?"var(--accent)":"var(--popup-menu-tabs)",tN=()=>e=>e.isActive?"var(--accent)":"var(--popup-menu-tabs-font-hover)",nN=$("li")({name:"NavItem",class:"edn1fabm11",propsAsIs:!1,vars:{"n1fabm11-0":[eN()],"n1fabm11-1":[tN()]}}),ut=Yt(e=>({points:0,results:{},pointsAreReceived:!1,setUserPoints:t=>e(n=>({points:n.points+t})),setUserResults:t=>e({results:t}),setPointsAreReceived:t=>e({pointsAreReceived:t}),refreshUserResults:async t=>{const n=await jr(),s=await g1(t,n);e({results:s})}})),rN=({data:e,activeIndex:t,setActiveIndex:n})=>{var a;const s=ut(c=>c.results),i=(a=s==null?void 0:s.prizes)==null?void 0:a.length;return v.jsx(JP,{children:v.jsx(ZP,{children:e.map((c,d)=>v.jsxs(nN,{onClick:()=>n(d),isActive:d===t,children:[c,d===0&&v.jsx("span",{children:i})]},c))})})},sN=$("div")({name:"Container",class:"edc17us64y",propsAsIs:!1}),C1=$("div")({name:"Header",class:"edh141t6pe",propsAsIs:!1}),R1=$("div")({name:"PrizeBackground",class:"edp1oopuya",propsAsIs:!1}),A1=$("div")({name:"Title",class:"edtlw5k9f",propsAsIs:!1}),oN=$("div")({name:"ButtonWrapper",class:"edbggxr7n",propsAsIs:!1}),iN=$("div")({name:"IconButtonWrapper",class:"edi16rf10j",propsAsIs:!1}),aN=$("div")({name:"ProgressWrapper",class:"edp121tjyk",propsAsIs:!1}),lN=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"M13 10v9h-2v-9zm0-5v2h-2V5z"}));function cN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var uN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mf=cN(function(e){return uN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),dN=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},s=[];t.forEach(a=>{(a?a.split(" "):[]).forEach(d=>{if(d.startsWith("atm_")){const[,f]=d.split("_");n[f]=d}else s.push(d)})});const i=[];for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(n[a]);return i.push(...s),i.join(" ")},O1=dN,fN=e=>e.toUpperCase()===e,pN=e=>t=>e.indexOf(t)===-1,P1=(e,t)=>{const n={};return Object.keys(e).filter(pN(t)).forEach(s=>{n[s]=e[s]}),n};function hN(e,t,n){const s=P1(t,n);if(!e){const i=typeof mf=="function"?{default:mf}:mf;Object.keys(s).forEach(a=>{i.default(a)||delete s[a]})}return s}var mN=(e,t)=>{};function gN(e){let t="";return n=>{const s=(a,c)=>{const{as:d=e,class:f=t}=a,h=n.propsAsIs===void 0?!(typeof d=="string"&&d.indexOf("-")===-1&&!fN(d[0])):n.propsAsIs,g=hN(h,a,["as","class"]);g.ref=c,g.className=n.atomic?O1(n.class,g.className||f):O1(g.className||f,n.class);const{vars:y}=n;if(y){const w={};for(const E in y){const T=y[E],A=T[0],L=T[1]||"",j=typeof A=="function"?A(a):A;mN(j,n.name),w[`--${E}`]=`${j}${L}`}const x=g.style||{},_=Object.keys(x);_.length>0&&_.forEach(E=>{w[E]=x[E]}),g.style=w}return e.__wyw_meta&&e!==d?(g.as=d,Tt.createElement(e,g)):Tt.createElement(d,g)},i=Tt.forwardRef?Tt.forwardRef(s):a=>{const c=P1(a,["innerRef"]);return s(c,a.innerRef)};return i.displayName=n.name,i.__wyw_meta={className:n.class||t,extends:e},i}}var se=gN;const N1=se("button")({name:"ColoredButton",class:"edc1h8okqi",propsAsIs:!1}),gf=se(N1)({name:"Button",class:"edbym73sg",propsAsIs:!0}),M1=({icon:e,title:t,...n})=>v.jsx(yN,{...n,children:e||t}),yN=se(gf)({name:"CustomButton",class:"edc1r5q1nu",propsAsIs:!0}),qn=({title:e,isAccent:t,isSuccess:n,link:s,target:i="_blank",linkProps:a,...c})=>s?v.jsx("a",{target:i,href:s,rel:i==="_blank"&&"noopener noreferrer",...a,children:v.jsx(L1,{isAccent:t,...c,children:e})}):v.jsx(L1,{isAccent:t,...c,children:e}),vN=()=>e=>e.isAccent?"var(--main-btn-accent-bg)":"var(--main-btn-bg)",SN=()=>e=>e.isAccent?"900":"400",wN=()=>e=>e.isAccent?"var(--edmap-text-on-main)":"var(--accent)",_N=()=>e=>e.isAccent?"var(--main-btn-accent-bg-hover)":"var(--main-btn-bg-hover)",EN=()=>e=>e.isAccent?"var(--main-btn-accent-bg-active)":"var(--main-btn-bg-active)",L1=se("button")({name:"Button",class:"edb16ruis3",propsAsIs:!1,vars:{"b16ruis3-0":[vN()],"b16ruis3-1":[SN()],"b16ruis3-2":[wN()],"b16ruis3-3":[_N()],"b16ruis3-4":[EN()]}}),jl=({progressValue:e,overallValue:t})=>{const n=e<=t?(100/t*e).toFixed(0):100;return v.jsx(TN,{progressBarWidth:n})},xN=()=>e=>`${e.progressBarWidth}%`,TN=se("div")({name:"Bar",class:"edb1pz075f",propsAsIs:!1,vars:{"b1pz075f-0":[xN()]}}),Ts=({progressValue:e,overallValue:t,text:n})=>v.jsxs(kN,{children:[v.jsx("span",{children:e}),v.jsxs("span",{children:["/",t," "]}),n&&v.jsx(IN,{children:n})]}),kN=se("div")({name:"Container",class:"edc1sl84gi",propsAsIs:!1}),IN=se("span")({name:"PointsText",class:"edpccfrec",propsAsIs:!1}),bN=()=>v.jsx("svg",{viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-rating-stars-1",children:[v.jsx("path",{d:"M15.78,14.07l1.46,4.14a.82.82,0,0,0,.74.56L22.2,19a.87.87,0,0,1,.48,1.54l-3.31,2.74a.9.9,0,0,0-.29.91l1.15,4.26a.84.84,0,0,1-1.26,1L15.46,26.9a.78.78,0,0,0-.92,0L11,29.35a.84.84,0,0,1-1.26-1l1.15-4.26a.9.9,0,0,0-.29-.91L7.32,20.49A.87.87,0,0,1,7.8,19L12,18.77a.82.82,0,0,0,.74-.56l1.46-4.14A.82.82,0,0,1,15.78,14.07Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("path",{d:"M7.08.92,8.18,4a.63.63,0,0,0,.56.43l3.16.13a.65.65,0,0,1,.36,1.16L9.78,7.8a.65.65,0,0,0-.22.68l.86,3.19a.63.63,0,0,1-.94.72L6.84,10.55a.57.57,0,0,0-.68,0L3.52,12.39a.63.63,0,0,1-.94-.72l.86-3.19a.65.65,0,0,0-.22-.68l-2.48-2A.65.65,0,0,1,1.1,4.59l3.16-.13A.63.63,0,0,0,4.82,4L5.92.92A.61.61,0,0,1,7.08.92Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("path",{d:"M24.08.92,25.18,4a.63.63,0,0,0,.56.43l3.16.13a.65.65,0,0,1,.36,1.16L26.78,7.8a.65.65,0,0,0-.22.68l.86,3.19a.63.63,0,0,1-.94.72l-2.64-1.84a.57.57,0,0,0-.68,0l-2.64,1.84a.63.63,0,0,1-.94-.72l.86-3.19a.65.65,0,0,0-.22-.68l-2.48-2a.65.65,0,0,1,.36-1.16l3.16-.13A.63.63,0,0,0,21.82,4L22.92.92A.61.61,0,0,1,24.08.92Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})})})}),CN=()=>v.jsxs("svg",{viewBox:"-4 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("defs",{children:v.jsx("style",{children:".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;}"})}),v.jsx("title",{children:"Award Medal"}),v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-award-medal-1",children:[v.jsx("polyline",{className:"cls-1",points:"21.5 0.5 10.5 0.5 0.5 0.5"}),v.jsx("line",{className:"cls-1",x1:"21.5",x2:"17",y1:"0.5",y2:"12.5"}),v.jsx("line",{className:"cls-1",x1:"0.5",x2:"5",y1:"0.5",y2:"12.5"}),v.jsx("circle",{className:"cls-1",cx:"11",cy:"20",r:"9.5"}),v.jsx("line",{className:"cls-1",x1:"8",x2:"9",y1:"0.5",y2:"10.5"}),v.jsx("line",{className:"cls-1",x1:"14",x2:"13",y1:"0.5",y2:"10.5"}),v.jsx("path",{className:"cls-1",d:"M11.49,15.35l.91,2.59a.52.52,0,0,0,.46.36l2.64.11a.54.54,0,0,1,.3,1l-2.07,1.71a.58.58,0,0,0-.18.57l.72,2.66a.53.53,0,0,1-.79.6l-2.19-1.54a.51.51,0,0,0-.58,0L8.52,24.91a.53.53,0,0,1-.79-.6l.72-2.66a.58.58,0,0,0-.18-.57L6.2,19.37a.54.54,0,0,1,.3-1l2.64-.11a.52.52,0,0,0,.46-.36l.91-2.59A.52.52,0,0,1,11.49,15.35Z"})]})})})]}),RN=()=>v.jsxs("svg",{viewBox:"-0.5 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("defs",{children:v.jsx("style",{children:".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;}"})}),v.jsx("title",{children:"Award Trophie"}),v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-award-trophie",children:[v.jsx("path",{className:"cls-1",d:"M9.5.5h-6c0,7.73,4.92,14,11,14s11-6.27,11-14h-6"}),v.jsx("rect",{className:"cls-1",height:"5",rx:"1",width:"13",x:"8",y:"24.5"}),v.jsx("line",{className:"cls-1",x1:"12.5",x2:"12.5",y1:"14.3",y2:"24.5"}),v.jsx("line",{className:"cls-1",x1:"16.5",x2:"16.5",y1:"14.3",y2:"24.5"}),v.jsx("path",{className:"cls-1",d:"M25.1,4.5a3.36,3.36,0,0,1,3.4,3c0,1.66-1.34,5-3,5"}),v.jsx("path",{className:"cls-1",d:"M3.5,12.5c-1.66,0-3-3.34-3-5a3.36,3.36,0,0,1,3.4-3"}),v.jsx("path",{className:"cls-1",d:"M15,.85l.91,2.59a.52.52,0,0,0,.46.36L19,3.91a.54.54,0,0,1,.3,1L17.23,6.58a.58.58,0,0,0-.18.57l.72,2.66a.53.53,0,0,1-.79.6L14.79,8.87a.51.51,0,0,0-.58,0L12,10.41a.53.53,0,0,1-.79-.6L12,7.15a.58.58,0,0,0-.18-.57L9.7,4.87a.54.54,0,0,1,.3-1l2.64-.11a.52.52,0,0,0,.46-.36L14,.85A.52.52,0,0,1,15,.85Z"})]})})})]}),AN={1:v.jsx(bN,{}),2:v.jsx(CN,{}),3:v.jsx(RN,{})},ON=se("div")({name:"InnerIconContainer",class:"edim3awnl",propsAsIs:!1}),j1=({iconId:e,...t})=>v.jsx(ON,{...t,children:AN[e]}),Dl={es:{timer:{remainingTitle:"Límite de tiempo:"},popup:{skillsTitle:"experiencia",menuItems:["Premios","Misiones","Participantes","Configuración"],prizes:{buttonTitle:"Obtener premio",questionsTitle:"puntos"}},popupBar:{prizesTitle:"premios",skillsTitle:"exp"},widget:{skillsTitle:"experiencia",accentButtonTitle:"Confirmar respuesta",buttonTitle:"Omitir"},testCard:{successTitle:"Has aprobado el test",buttonTitle:"Volver a intentar",worstScoreTemplate:"Has obtenido <mark>{points} de {maxPoints}</mark> puntos. Tu mejor resultado es <mark>{bestPoints} de {maxPoints}</mark>.",bestScoreTemplate:"Has obtenido <mark>{bestPoints} de {maxPoints}</mark> puntos.",prizesTitle:"Premios que aún puedes conseguir",questsTitle:"Misiones que aún puedes completar",chooseAnswer:"Seleccione todas las respuestas que correspondan de la lista:"},journeyCard:{successTitle:"Has completado el juego",buttonTitle:"Volver a jugar",worstScoreTemplate:"Has obtenido <mark>{points} de {maxPoints}</mark> puntos. Tu mejor resultado es <mark>{bestPoints} de {maxPoints}</mark>.",bestScoreTemplate:"Has obtenido <mark>{bestPoints} de {maxPoints}</mark> puntos.",prizesTitle:"Premios que aún puedes conseguir",questsTitle:"Misiones que aún puedes completar",chooseAnswer:"Seleccione una respuesta:"},settings:{signInPopup:{title:"Para guardar tu progreso y obtener premios, necesitas registrar una cuenta.",subtitle:"¡Tu progreso se transferirá a ella!",buttonTitle:"Cerrar",accentButtonTitle:"Registrarse"},logout:"Cerrar sesión"},globalError:{title:"Algo salió mal 🤔",subtitle:"Mientras pensamos cómo solucionarlo, puedes intentar actualizar la misión"},socialsPopup:{title:"Registrarse con",subTitle:"Próximamente...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Omitir",accentButtonTitle:"Confirmar respuesta"},header:{title:"Semana gratuita de entrenamiento en el plan «Erich Fromm»",progressText:"experiencia",freeAccessBlock:{title:"1",subtitle:"semana",text:"gratis"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Imagen de encabezado"}},prizeList:{title:"Premios"},questList:{title:"Misiones",emptyQuestsWarning:"No hay misiones"},user:{defaultName:"Juan Pérez",avatar:{alt:"Foto de perfil"},ban:{forbiddenQuest:"Esta misión no está disponible temporalmente para usted",wait:"Por favor, espere"},randomNames:[{id:1,name:"Pelusa Traviesa"},{id:2,name:"Copito Alegre"},{id:3,name:"Trasto Gruñón"},{id:4,name:"Peludo Saltarín"},{id:5,name:"Chispa Pícara"},{id:6,name:"Canela Veloz"},{id:7,name:"Gordi Glotón"},{id:8,name:"Nube Temblorosa"},{id:9,name:"Lento Perezoso"},{id:10,name:"Capitán Migaja"},{id:11,name:"Señor Hámster"},{id:12,name:"Lola Risueña"},{id:13,name:"Bigotes Curiosos"},{id:14,name:"Jack Comilón"},{id:15,name:"Bufón Resoplón"},{id:16,name:"Rey Miau"},{id:17,name:"Ron Ron Peludo"},{id:18,name:"Boris Refunfuñón"},{id:19,name:"Zorro Astuto"},{id:20,name:"Pugron Sueñón"},{id:21,name:"Gruñón Fuerte"},{id:22,name:"Solecito Feliz"},{id:23,name:"Manchitas Ágil"},{id:24,name:"Quesito Veloz"},{id:25,name:"Peluchín Divertido"},{id:26,name:"Gominita Dulzona"},{id:27,name:"Trueno Travieso"},{id:28,name:"Barrigón Juguetón"},{id:29,name:"Tomás Espía"},{id:30,name:"Marisol Saltarina"},{id:31,name:"Erizo Astuto"},{id:32,name:"Chispero Enérgico"},{id:33,name:"Snoopy Parlanchín"},{id:34,name:"Desayuno Feliz"},{id:35,name:"Coco Risueño"},{id:36,name:"Pica Lástima"},{id:37,name:"Pelusón Suave"},{id:38,name:"Aurora Matutina"},{id:39,name:"Jerry Travieso"},{id:40,name:"Tigre Nube"},{id:41,name:"Panda Risueña"},{id:42,name:"Hugo Pensativo"},{id:43,name:"Pompa Burbuja"},{id:44,name:"Sedosa Delicia"},{id:45,name:"Dómini Donut"},{id:46,name:"Brisa Vivaz"},{id:47,name:"Garza Alegre"},{id:48,name:"Félix Narizudo"},{id:49,name:"Peludín Suave"},{id:50,name:"Pinto Manchado"}]}},de:{timer:{remainingTitle:"Zeitlimit:"},popup:{skillsTitle:"Erfahrung",menuItems:["Preise","Quests","Teilnehmer","Einstellungen"],prizes:{buttonTitle:"Preis erhalten",questionsTitle:"Punkte"}},popupBar:{prizesTitle:"Preise",skillsTitle:"Erfahrung"},widget:{skillsTitle:"Erfahrung",accentButtonTitle:"Antwort bestätigen",buttonTitle:"Überspringen"},testCard:{successTitle:"Test bestanden",buttonTitle:"Erneut versuchen",worstScoreTemplate:"Sie haben <mark>{points} von {maxPoints}</mark> Punkten erzielt. Ihr bester Wert ist <mark>{bestPoints} von {maxPoints}</mark>.",bestScoreTemplate:"Sie haben <mark>{bestPoints} von {maxPoints}</mark> Punkten erzielt.",prizesTitle:"Preise, die Sie noch erhalten können",questsTitle:"Quests, die Sie noch abschließen können",chooseAnswer:"Wählen Sie alle zutreffenden Antworten aus der Liste aus:"},journeyCard:{successTitle:"Spiel abgeschlossen",buttonTitle:"Nochmals spielen",worstScoreTemplate:"Sie haben <mark>{points} von {maxPoints}</mark> Punkten erzielt. Ihr bester Wert ist <mark>{bestPoints} von {maxPoints}</mark>.",bestScoreTemplate:"Sie haben <mark>{bestPoints} von {maxPoints}</mark> Punkten erzielt.",prizesTitle:"Preise, die Sie noch erhalten können",questsTitle:"Quests, die Sie noch abschließen können",chooseAnswer:"Wählen Sie eine Antwort aus:"},settings:{signInPopup:{title:"Um Ihren Fortschritt zu speichern und Preise zu erhalten, müssen Sie ein Konto registrieren.",subtitle:"Ihr bisheriger Fortschritt wird darauf übertragen!",buttonTitle:"Schließen",accentButtonTitle:"Registrieren"},logout:"Abmelden"},globalError:{title:"Etwas ist schiefgelaufen 🤔",subtitle:"Während wir herausfinden, wie wir das Problem beheben können, können Sie versuchen, die Quest neu zu laden."},socialsPopup:{title:"Anmelden mit",subTitle:"Demnächst...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Überspringen",accentButtonTitle:"Antwort bestätigen"},header:{title:"Kostenlose Trainingswoche im Tarif „Erich Fromm“",progressText:"Erfahrung",freeAccessBlock:{title:"1",subtitle:"Woche",text:"kostenlos"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header-Bild"}},prizeList:{title:"Preise"},questList:{title:"Quests",emptyQuestsWarning:"Keine Quests verfügbar"},user:{defaultName:"Max Mustermann",avatar:{alt:"Profilbild"},ban:{forbiddenQuest:"Diese Quest ist vorübergehend nicht für Sie verfügbar",wait:"Bitte warten"},randomNames:[{id:1,name:"Luna"},{id:2,name:"Bella"},{id:3,name:"Charlie"},{id:4,name:"Max"},{id:5,name:"Mia"},{id:6,name:"Lucy"},{id:7,name:"Leo"},{id:8,name:"Lotte"},{id:9,name:"Lilo"},{id:10,name:"Balu"},{id:11,name:"Molly"},{id:12,name:"Sammy"},{id:13,name:"Flocke"},{id:14,name:"Finja"},{id:15,name:"Frida"},{id:16,name:"Henry"},{id:17,name:"Lenny"},{id:18,name:"Lia"},{id:19,name:"Fiona"},{id:20,name:"Emil"},{id:21,name:"Paula"},{id:22,name:"Oskar"},{id:23,name:"Rico"},{id:24,name:"Nala"},{id:25,name:"Loki"},{id:26,name:"Kira"},{id:27,name:"Benji"},{id:28,name:"Leia"},{id:29,name:"Teddy"},{id:30,name:"Sophie"},{id:31,name:"Arco"},{id:32,name:"Chico"},{id:33,name:"Lilly"},{id:34,name:"Emma"},{id:35,name:"Maja"},{id:36,name:"Nele"},{id:37,name:"Milo"},{id:38,name:"Rosie"},{id:39,name:"Toby"},{id:40,name:"Yuki"},{id:41,name:"Keks"},{id:42,name:"Bruno"},{id:43,name:"Fritz"},{id:44,name:"Gismo"},{id:45,name:"Nicky"},{id:46,name:"Ronja"},{id:47,name:"Trixi"},{id:48,name:"Zoe"},{id:49,name:"Hugo"},{id:50,name:"Pia"}]}},en:{timer:{remainingTitle:"Time limit:"},popup:{skillsTitle:"experience",menuItems:["Prizes","Quests","Participants","Settings"],prizes:{buttonTitle:"Get Prize",questionsTitle:"points"}},popupBar:{prizesTitle:"prizes",skillsTitle:"exp"},widget:{skillsTitle:"experience",accentButtonTitle:"Confirm Answer",buttonTitle:"Skip"},testCard:{successTitle:"You passed the test",buttonTitle:"Retake",worstScoreTemplate:"You scored <mark>{points} out of {maxPoints}</mark> points. Your best result is <mark>{bestPoints} out of {maxPoints}<mark/>",bestScoreTemplate:"You scored <mark>{bestPoints} out of {maxPoints}</mark> points",prizesTitle:"Prizes you can still earn",questsTitle:"Quests you can still complete",chooseAnswer:"Select all answers that apply from the list:"},journeyCard:{successTitle:"You completed the game",buttonTitle:"Play Again",worstScoreTemplate:"You scored <mark>{points} out of {maxPoints}</mark> points. Your best result is <mark>{bestPoints} out of {maxPoints}<mark/>",bestScoreTemplate:"You scored <mark>{bestPoints} out of {maxPoints}</mark> points",prizesTitle:"Prizes you can still earn",questsTitle:"Quests you can still complete",chooseAnswer:"Select an answer:"},settings:{signInPopup:{title:"To save your progress and earn prizes, you need to register an account.",subtitle:"Your progress will be transferred to it!",buttonTitle:"Close",accentButtonTitle:"Register"},logout:"Log Out"},globalError:{title:"Something went wrong 🤔",subtitle:"While we figure out how to fix it, you can try refreshing the quest"},socialsPopup:{title:"Sign up with",subTitle:"Coming soon...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Skip",accentButtonTitle:"Confirm Answer"},header:{title:'Free week of training on the "Erich Fromm" plan',progressText:"experience",freeAccessBlock:{title:"1",subtitle:"week",text:"free"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header image"}},prizeList:{title:"Prizes"},questList:{title:"Quests",emptyQuestsWarning:"There is no quest"},user:{defaultName:"Guest",avatar:{alt:"Profile picture"},ban:{forbiddenQuest:"This quest is temporarily unavailable to you",wait:"Please wait"},randomNames:[{id:1,name:"Whiskers"},{id:2,name:"Buddy"},{id:3,name:"Grumpy"},{id:4,name:"Oliver"},{id:5,name:"Cleo"},{id:6,name:"Bubbles"},{id:7,name:"Rex"},{id:8,name:"Shadow"},{id:9,name:"Max"},{id:10,name:"Charlie"},{id:11,name:"Nibbles"},{id:12,name:"Daisy"},{id:13,name:"Chip"},{id:14,name:"Jack"},{id:15,name:"Toby"},{id:16,name:"Simba"},{id:17,name:"Ginger"},{id:18,name:"Oscar"},{id:19,name:"Bandit"},{id:20,name:"Pugsley"},{id:21,name:"Spike"},{id:22,name:"Sunny"},{id:23,name:"Cutie"},{id:24,name:"Dash"},{id:25,name:"Snowball"},{id:26,name:"Sparkle"},{id:27,name:"Mischief"},{id:28,name:"Pumpkin"},{id:29,name:"Thomas"},{id:30,name:"Bella"},{id:31,name:"Bandit"},{id:32,name:"Zippy"},{id:33,name:"Snoopy"},{id:34,name:"Chappy"},{id:35,name:"Coco"},{id:36,name:"Pip"},{id:37,name:"Fuzzy"},{id:38,name:"Misty"},{id:39,name:"Jerry"},{id:40,name:"Tigger"},{id:41,name:"Panda"},{id:42,name:"Hugo"},{id:43,name:"Bubbles"},{id:44,name:"Silky"},{id:45,name:"Midnight"},{id:46,name:"Bonnie"},{id:47,name:"Herbie"},{id:48,name:"Fiona"},{id:49,name:"Dusty"},{id:50,name:"Speckles"}]}},ru:{timer:{remainingTitle:"Ограничение времени:"},popup:{skillsTitle:"опыта",menuItems:["Призы","Квесты","Участники","Настройки"],prizes:{buttonTitle:"Получить приз",questionsTitle:"баллов"}},popupBar:{prizesTitle:"призов",skillsTitle:"опыта"},widget:{skillsTitle:"опыта",accentButtonTitle:"Подтвердить ответ",buttonTitle:"Пропустить"},testCard:{successTitle:"Вы прошли тест",buttonTitle:"Пройти еще раз",worstScoreTemplate:"Вы набрали <mark>{points} из {maxPoints}</mark> баллов. Ваш лучший результат <mark>{bestPoints} из {maxPoints}</mark>",bestScoreTemplate:"Вы набрали <mark>{bestPoints} из {maxPoints} баллов</mark>",prizesTitle:"Призы, которые еще можно получить",questsTitle:"Квесты, которые можно пройти ещё",chooseAnswer:"Выберите все подходящие ответы из списка:"},journeyCard:{successTitle:"Вы прошли игру",buttonTitle:"Пройти еще раз",worstScoreTemplate:"Вы набрали <mark>{points} из {maxPoints}</mark> баллов. Ваш лучший результат <mark>{bestPoints} из {maxPoints}</mark>",bestScoreTemplate:"Вы набрали <mark>{bestPoints} из {maxPoints} баллов</mark>",prizesTitle:"Призы, которые еще можно получить",questsTitle:"Квесты, которые можно пройти ещё",chooseAnswer:"Выберите ответ:"},settings:{signInPopup:{title:"Чтобы сохранить прогресс и получить призы, необходимо зарегистрировать аккаунт.",subtitle:"Полученный прогресс перенесется на него!",buttonTitle:"Закрыть",accentButtonTitle:"Зарегистрироваться"},logout:"Выйти"},globalError:{title:"Что-то пошло не так 🤔",subtitle:"Пока мы думаем, как всё починить, можете попробовать обновить квест"},socialsPopup:{title:"Зарегистрироваться с",subTitle:"Скоро...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Пропустить",accentButtonTitle:"Подтвердить ответ"},header:{title:"Бесплатная неделя обучения по тарифу «Эрих Фром»",progressText:"опыта",freeAccessBlock:{title:"1",subtitle:"неделя",text:"бесплатно"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header image"}},prizeList:{title:"Призы"},questList:{title:"Квесты",emptyQuestsWarning:"Квестов нет"},user:{defaultName:"Иван Иванов",avatar:{alt:"Картинка профиля"},ban:{forbiddenQuest:"Этот квест временно не доступен для вас",wait:"Подождите"},randomNames:[{id:1,name:"Барсик Грозный"},{id:2,name:"Пушистый Соловей"},{id:3,name:"Тяпа Угрюмый"},{id:4,name:"Василий Хвостатый"},{id:5,name:"Кеша Коварный"},{id:6,name:"Бублик Шустрый"},{id:7,name:"Шарик Проглот"},{id:8,name:"Мурзик Трепещущий"},{id:9,name:"Жора Ленивый"},{id:10,name:"Капитан Блоха"},{id:11,name:"Лорд Хомяк"},{id:12,name:"Жужа Смешная"},{id:13,name:"Чип Усатый"},{id:14,name:"Джек Обжора"},{id:15,name:"Тихон Пыхтящий"},{id:16,name:"Мяу Царь"},{id:17,name:"Рыжик Пушистик"},{id:18,name:"Борис Фырчащий"},{id:19,name:"Зорро Хитрый"},{id:20,name:"Мопсик Храпун"},{id:21,name:"Хрюша Громкий"},{id:22,name:"Гаврюша Радостный"},{id:23,name:"Котлетка Ловкая"},{id:24,name:"Сырник Бегущий"},{id:25,name:"Умка Забавный"},{id:26,name:"Бусинка Мимимишная"},{id:27,name:"Крош Шалун"},{id:28,name:"Пузик Забавный"},{id:29,name:"Томас Шпионистый"},{id:30,name:"Маруся Скачущая"},{id:31,name:"Ёжик Хитрый"},{id:32,name:"Клёпа Задорный"},{id:33,name:"Снупи Болтун"},{id:34,name:"Чапа Завтрак"},{id:35,name:"Кокос Хохотун"},{id:36,name:"Лапка Ласточка"},{id:37,name:"Фунтик Плюшевый"},{id:38,name:"Мурка Утренняя"},{id:39,name:"Джерри Нахальный"},{id:40,name:"Тигрик Зефирный"},{id:41,name:"Панда Забавная"},{id:42,name:"Хома Задумчивый"},{id:43,name:"Рыбка Пузырь"},{id:44,name:"Ласка Шелковая"},{id:45,name:"Мурзик Пончик"},{id:46,name:"Бонька Резвый"},{id:47,name:"Цапля Весёлая"},{id:48,name:"Филя Носатый"},{id:49,name:"Тузик Мохнатый"},{id:50,name:"Зяблик Пятнистый"}]}}},$l=Object.keys(Dl)[0],Je=Yt(e=>({translations:Dl[$l],localeName:$l,setLocale:t=>{let n=Dl[t];n||(n=Dl[$l],t=$l),e(()=>({translations:n,localeName:t}))}})),yf=({prizeData:e,userPoints:t,openSignInInvite:n,openInfoModal:s,index:i})=>{const a=Je(f=>f.translations.popup.prizes),c=localStorage.getItem("edmap-access-token"),d=()=>{c?s(i,"prize"):n(e)};return v.jsxs(sN,{children:[v.jsxs(C1,{children:[v.jsx(R1,{children:v.jsx(j1,{iconId:e==null?void 0:e.iconId})}),v.jsx(A1,{children:e==null?void 0:e.name})]}),v.jsxs(oN,{children:[e!=null&&e.isRecieved?v.jsx(qn,{"data-testid":`edmap-widget__prize-btn-${i+1}`,title:a.buttonTitle,isAccent:!0,style:{minWidth:"159px"},onClick:d}):v.jsx(v.Fragment,{children:v.jsxs(aN,{children:[v.jsx(Ts,{text:a.questionsTitle,progressValue:t,overallValue:e==null?void 0:e.awardPoints}),v.jsx(jl,{progressValue:t,overallValue:e==null?void 0:e.awardPoints})]})}),v.jsx(iN,{children:v.jsx(M1,{icon:v.jsx(lN,{}),onClick:()=>s(i,"info")})})]})]})},PN=$("div")({name:"GiftsContainer",class:"edg1do84z2",propsAsIs:!1}),NN=({openSignInInvite:e,openInfoModal:t})=>{var s;const n=ut(i=>i.results);return v.jsx(PN,{children:(s=n==null?void 0:n.prizes)==null?void 0:s.map((i,a)=>v.jsx(yf,{index:a,prizeData:i,userPoints:n==null?void 0:n.allPoints,openSignInInvite:e,openInfoModal:t},i==null?void 0:i.id))})},MN=$("div")({name:"UserInfoWrapper",class:"eduxnm4b4",propsAsIs:!1}),LN=$("div")({name:"ImageWrapper",class:"edi1fh8glv",propsAsIs:!1}),jN=$("div")({name:"InfoWrapper",class:"edi1e8ga1u",propsAsIs:!1}),DN=$("div")({name:"MainInfo",class:"edm1qs3iet",propsAsIs:!1}),$N=$("div")({name:"TitleWrapper",class:"edtbtnkwj",propsAsIs:!1}),BN=$("div")({name:"PoweredContainer",class:"edp1rvtj15",propsAsIs:!1}),FN=$("div")({name:"ProgressTextWrapper",class:"edpseoz31",propsAsIs:!1}),zN=$("h3")({name:"Title",class:"edt1jzrydq",propsAsIs:!1}),UN=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:26,fill:"none",...e},R.createElement("path",{fill:"#C3C3C3",stroke:"#363636",strokeWidth:2,d:"m20.66 18.577-.5.29-8.66 5-.5.287-.5-.288-8.66-5-.5-.289V7.423l.5-.29 8.66-5 .5-.287.5.288 8.66 5 .5.289z"})),HN=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:24,fill:"none",...e},R.createElement("path",{fill:"#FCBC21",stroke:"#ED7527",strokeWidth:2,d:"M9 2a4 4 0 0 1 4 0l5.66 3.268c1.238.714 2 2.035 2 3.464v6.536c0 1.429-.762 2.75-2 3.464L13 22a4 4 0 0 1-4 0l-5.66-3.268a4 4 0 0 1-2-3.464V8.732c0-1.429.762-2.75 2-3.464z"})),vf=({level:e})=>v.jsxs(VN,{children:[v.jsx(qN,{children:v.jsx(UN,{})}),v.jsx(WN,{children:v.jsx(HN,{})}),v.jsx("span",{children:e})]}),WN=se("div")({name:"SmoothContainer",class:"edsvd1acj",propsAsIs:!1}),qN=se("div")({name:"RoughContainer",class:"edr1a0zzy8",propsAsIs:!1}),VN=se("div")({name:"Container",class:"edc1fcmc7w",propsAsIs:!1}),D1="edmap-profileEmoji",GN=[...new Intl.Segmenter("en",{granularity:"grapheme"}).segment("🦄🐺🐗🪼🐝🦅🐋")].map(e=>e.segment),YN=e=>[...e].map(t=>t.codePointAt(0)).join("-"),Bl=Object.fromEntries(GN.map(e=>[YN(e),e])),KN=()=>{const e=localStorage.getItem(D1);if(e&&Bl[e])return Bl[e];const t=QN();return localStorage.setItem(D1,t),Bl[t]},QN=()=>{const e=Object.keys(Bl),t=XN(e.length);return e[t]},XN=e=>Math.floor(Math.random()*e),$1=$("div")({name:"Container",class:"edci91fsv",propsAsIs:!1}),Sf=({src:e,...t})=>{const n=Je(i=>i.translations.user.avatar.alt);if(e)return v.jsx($1,{children:v.jsx("img",{...t,src:e,alt:n})});const s=KN();return v.jsx($1,{children:s})},wf=e=>e?e<10?1:Math.floor(e/10):1,JN=$("a")({name:"Container",class:"edc1ryazt0",propsAsIs:!1}),ZN=$("span")({name:"Text",class:"edtk7p3bu",propsAsIs:!1}),e3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:85,height:12,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"M4.992 0h10.144q1.04 0 1.936.4a4.9 4.9 0 0 1 1.584 1.056q.688.672 1.072 1.584.4.896.4 1.936v1.6H2.8q0 .511.176.96.192.432.496.768.32.32.752.512t.928.192h9.808q.336 0 .592-.064.255-.08.448-.192.208-.112.368-.256t.304-.32h3.264a5 5 0 0 1-.688 1.456 5.008 5.008 0 0 1-2.48 1.904 4.9 4.9 0 0 1-1.632.272H4.992a5 5 0 0 1-1.952-.384 5.1 5.1 0 0 1-1.584-1.072A5.1 5.1 0 0 1 .384 8.768 4.9 4.9 0 0 1 0 6.832V4.976q0-1.04.384-1.936a5.1 5.1 0 0 1 1.072-1.584Q2.128.784 3.04.4A4.8 4.8 0 0 1 4.992 0m.16 2.8q-.495 0-.928.192a2.3 2.3 0 0 0-.752.528q-.304.32-.496.768a2.5 2.5 0 0 0-.176.944h14.528a2.5 2.5 0 0 0-.176-.944 2.2 2.2 0 0 0-.496-.768 2.298 2.298 0 0 0-1.696-.72zM20.938.304H36.09q1.04 0 1.935.4A4.9 4.9 0 0 1 39.61 1.76q.672.672 1.056 1.584.4.896.4 1.936v1.248q0 1.024-.4 1.936a4.9 4.9 0 0 1-1.056 1.584 5.1 5.1 0 0 1-1.584 1.072 4.9 4.9 0 0 1-1.935.384H20.937zm2.8 2.8v5.6H36.09q.431 0 .831-.16.4-.176.688-.464.305-.304.48-.688.177-.4.177-.832V5.248q-.001-.432-.176-.816a2.1 2.1 0 0 0-.48-.688 1.9 1.9 0 0 0-.688-.464 2.05 2.05 0 0 0-.832-.176zM41.078 11.504l3.184-11.2h3.488l3.392 8.144L54.55.304h3.488l3.168 11.2h-3.04l-2.704-8.656-3.776 8.656h-1.088l-3.776-9.248-2.704 9.248zM65.037.304h5.471l2.225 11.2h-2.8l-.945-4.928h-2.431l-.945 4.928h-2.8zm3.328 2.768H67.18l-.352 2.16h1.888zM81.064.304q.656 0 1.232.256.592.24 1.024.672t.672 1.024q.255.576.256 1.232 0 .656-.256 1.232-.24.56-.672.976t-1.024.656q-.576.224-1.232.224h-3.936v4.928h-2.8V.304zm-.832 2.8h-3.104v2.128h3.104q.56 0 .88-.288.336-.288.336-.784 0-.48-.336-.768-.32-.288-.88-.288"})),B1={en:"en",ru:"ru",de:"de",es:"es",default:"en"},t3=e=>{const t=B1[e];return t||B1.default},F1=()=>{const e=Je(s=>s.localeName),t=t3(e),n=new URLSearchParams;return n.set("utm_source",window.location.hostname),n.set("utm_medium",window.location.href),v.jsxs(JN,{href:`https://edmap.space/${t}?${n}`,target:"_blank",children:[v.jsxs(ZN,{children:["Powered by ",e]}),v.jsx(e3,{})]})},n3=()=>typeof window<"u"&&window.location.hostname==="edmap.space",r3=()=>{var d,f,h,g,y;const[e,t]=R.useState(""),n=ut(w=>w.results),s=(d=n==null?void 0:n.User)==null?void 0:d.username,i=Je(w=>w.translations.user.randomNames),a=Je(w=>w.translations.popup),c=n3();return R.useEffect(()=>{const w=_=>{var T;const E=Math.floor(Math.random()*_.length);return(T=_[E])==null?void 0:T.name};(_=>{const E=localStorage.getItem("edmap-access-token"),T=localStorage.getItem("edmap-random-name");if(!T&&!E){const A=w(_);localStorage.setItem("edmap-random-name",A),t(A)}else E?(localStorage.removeItem("edmap-random-name"),t(s)):t(T)})(i)},[s,i]),v.jsxs(MN,{children:[v.jsx(LN,{children:v.jsx(Sf,{src:(h=(f=n==null?void 0:n.User)==null?void 0:f.avatar)==null?void 0:h.src})}),v.jsxs(jN,{children:[v.jsxs(DN,{children:[v.jsxs($N,{children:[v.jsx(zN,{children:s??e}),v.jsx(vf,{level:wf(n==null?void 0:n.allPoints)})]}),v.jsx(FN,{children:v.jsx(Ts,{progressValue:n==null?void 0:n.allPoints,overallValue:(g=n==null?void 0:n.map)==null?void 0:g.points,text:a.skillsTitle})}),v.jsx(jl,{progressValue:n==null?void 0:n.allPoints,overallValue:(y=n==null?void 0:n.map)==null?void 0:y.points})]}),!c&&v.jsx(BN,{children:v.jsx(F1,{})})]})]})},s3=$("ul")({name:"Container",class:"edc18eiqam",propsAsIs:!1}),o3=$("li")({name:"Item",class:"edi8drxbn",propsAsIs:!1}),i3=$("a")({name:"ItemLink",class:"edi1ovdisv",propsAsIs:!1}),a3=$("p")({name:"QuestName",class:"edqiwgwie",propsAsIs:!1}),l3=$("div")({name:"IconWrapper",class:"edi5p8aot",propsAsIs:!1}),z1=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e},R.createElement("path",{fill:"currentColor",d:"M16 15h-2V3.414L1.707 15.707.293 14.293 12.586 2H1V0h15z"})),_f=({quests:e})=>v.jsx(s3,{children:e==null?void 0:e.map(t=>{var n;return v.jsx(o3,{children:v.jsxs(i3,{href:t==null?void 0:t.url,children:[v.jsx(a3,{children:t==null?void 0:t.name}),v.jsxs(l3,{children:[v.jsx(Ts,{progressValue:((n=t==null?void 0:t.resultQuestAnswer)==null?void 0:n.points)??0,overallValue:t==null?void 0:t.maxPoints}),v.jsx(z1,{})]})]})},t==null?void 0:t.id)})}),c3=$("div")({name:"Container",class:"edc1cuvton",propsAsIs:!1}),u3=$("div")({name:"Wrapper",class:"edw1bhqzg6",propsAsIs:!1}),Ef=({setIsRegInfoVisible:e,setIsSocialModalVisible:t,openSignInModal:n})=>{const s=Je(a=>a.translations.settings.signInPopup),i=()=>{t(!0),n()};return v.jsxs(u3,{children:[v.jsxs(T1,{children:[v.jsx(k1,{children:s.title}),v.jsx(I1,{children:s.subtitle})]}),v.jsxs(b1,{children:[v.jsx(qn,{title:s.buttonTitle,onClick:()=>e(!1)}),v.jsx(qn,{title:s.accentButtonTitle,isAccent:!0,onClick:i})]})]})},Eo=Yt(e=>({answers:[],addAnswer:async(t,n,s)=>{const i={id:`${Sr(13)}`,answerId:n,questionId:s,userId:await jr(),sessionId:_o(t)};e(a=>({answers:[...a.answers,i]}))},removeAnswer:t=>e(n=>({answers:n.answers.filter(s=>s.answerId!==t)})),resetAnswers:()=>e({answers:[]})})),U1=async(e=[],t="high")=>{const n=e.map(i=>new Promise(a=>{const c=new Image;c.src=i,c.fetchPriority=t,c.onload=()=>a(),c.onerror=()=>a()}));return await Promise.all(n)},d3=async(e,t)=>{const n={id:Sr(13),journeyEdgeId:t,sessionId:_o(e),userId:await jr()};return await ct.post("/user-journey-answer",n)},f3=e=>({node:e.data.node,currentResources:e.data.currentResources}),p3=async(e,t)=>{const n=await d3(e,t);return n?f3(n):null},H1=async e=>{if(!e)return null;const t=_o(e),n=`/user-journey-answer/${e}/${t}`,s=await ct.get(n);return{node:s.data.node,currentResources:W1(s.data.currentResources)}},h3=async e=>await ct.post("/result-quest-answer/journey",{id:Sr(16),sessionId:_o(e.id),questId:e.id,mapId:e.mapId,userId:await jr()}),W1=e=>e.map(g3),m3=e=>{const t=Number.isInteger(e);return new Intl.NumberFormat(void 0,{minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)},g3=e=>({...e,value:m3(e.value)}),Fl=e=>e.filter(n=>n.type==="image").map(n=>{var s,i;return(i=(s=n.data)==null?void 0:s.file)==null?void 0:i.url}),q1=(e,t)=>{let n=t;t===e.length&&(n=0);const s=e[n],i=Fl(s.text.blocks),a=s.answers.flatMap(c=>Fl(c.text.blocks));return[...i,...a]},y3=async(e,t)=>{const n=`/journey-node/${e}/resources`;try{const{data:s}=await ct.get(n,{signal:t});return s}catch{return{imageUrls:[]}}},ur=Yt(e=>({currentNode:{data:{blocks:[]},sourceEdges:[]},resources:[],setCurrentNode:(t,n)=>{e({currentNode:t,resources:W1(n)})},initialize:async t=>{if(!t)return;const{node:n,currentResources:s}=await H1(t);e(()=>({currentNode:n,resources:s}))},restart:(t,n)=>{e({currentNode:t,resources:n})}})),v3=()=>{const e=ut(g=>g.refreshUserResults),t=ke(g=>g.quest),n=Eo(g=>g.resetAnswers),s=ke(g=>g.resetSteps),i=ke(g=>g.setIsFinished),a=ut(g=>g.setPointsAreReceived),c=ur(g=>g.restart),d=Je(g=>g.translations.settings),f=()=>{if((t==null?void 0:t.questType)==="Test")p1(t==null?void 0:t.id),n(),s(),i(!1),a(!1);else if((t==null?void 0:t.questType)==="Journey"){const g=t.journey.journeyNodes.find(y=>y.isFirstNode);c(t.id,g,t.journey.resources)}},h=async()=>{var g;await Hh(),e((g=window.__widgetEdmap)==null?void 0:g.mapId),f()};return v.jsx(qn,{onClick:h,title:d.logout,isAccent:!0})},S3=({openSignInModal:e,setIsSocialModalVisible:t})=>{const n=localStorage.getItem("edmap-access-token"),[s,i]=R.useState(!0);return v.jsx(c3,{children:n&&v.jsx(b1,{children:v.jsx(v3,{})})||s&&v.jsx(Ef,{openSignInModal:e,setIsSocialModalVisible:t,setIsRegInfoVisible:i})})},w3=$("div")({name:"PoweredContainer",class:"edp153jgy2",propsAsIs:!1}),_3=$("div")({name:"ProgressTextContainer",class:"edp88qvra",propsAsIs:!1}),E3=$("div")({name:"StepContainer",class:"eds3v2lpt",propsAsIs:!1}),V1=$("div")({name:"ButtonWrapper",class:"edb1h6cmje",propsAsIs:!1}),x3=$("div")({name:"Container",class:"edc1g9vmxh",propsAsIs:!1}),T3=$("div")({name:"Background",class:"edb1dvqizg",propsAsIs:!1}),k3=$("div")({name:"Container",class:"edc24c84i",propsAsIs:!1}),I3=$("div")({name:"InfoBlock",class:"edic7ywtw",propsAsIs:!1}),b3=$("p")({name:"InfoBlockTitle",class:"ediy16h9m",propsAsIs:!1}),C3=$("p")({name:"InfoBlockSubtitle",class:"edi1m54nr",propsAsIs:!1}),R3=$(V1)({name:"CustomButtonWrapper",class:"edc10pc0jd",propsAsIs:!0}),A3=$("div")({name:"Container",class:"edcitwxpq",propsAsIs:!1}),O3=$("div")({name:"QuestTypeIcon",class:"edqdo840j",propsAsIs:!1}),P3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"m14.505 15.138.11.006a1 1 0 0 1 .66.354l3.114 3.748c.89 1.072 2.633.442 2.633-.95v-9.43a4.656 4.656 0 0 0-4.425-4.65l-.23-.005H7.634A4.656 4.656 0 0 0 2.98 8.866v8.953c0 1.344 1.64 2 2.567 1.025l3.224-3.396c.189-.198.451-.31.726-.31zm8.517 3.158c0 3.264-4.084 4.74-6.17 2.228l-2.815-3.386H9.925L6.998 20.22C4.828 22.504.98 20.97.98 17.819V8.866a6.657 6.657 0 0 1 6.653-6.655h8.734l.33.008a6.66 6.66 0 0 1 6.325 6.645z"}),R.createElement("path",{fill:"currentColor",d:"M9 7v2h2v2H9v2H7v-2H5V9h2V7zM15.05 10.59a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M17.434 12.973a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"})),N3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"m8.6 2.799-4.694 3.52-2.613-2.613 1.414-1.414 1.387 1.387L7.4 1.199zm13.4-.3v2H11v-2zM22 10.999v2H11v-2zM22 19.499v2H11v-2zM4.5 13.999a2 2 0 1 0 0-4 2 2 0 0 0 0 4M4.5 22.499a2 2 0 1 0 0-4 2 2 0 0 0 0 4"})),M3=()=>{const t=ke(n=>n.quest).questType==="Test"?v.jsx(N3,{}):v.jsx(P3,{});return v.jsx(A3,{children:v.jsx(O3,{children:t})})},L3=({icon:e,title:t,...n})=>v.jsxs(j3,{...n,children:[e,v.jsx(D3,{children:t})]}),j3=se(gf)({name:"CustomButton",class:"edc1yr71r",propsAsIs:!0}),D3=se("p")({name:"Title",class:"edtsdg8a8",propsAsIs:!1}),$3=$("div")({name:"Container",class:"edc1mwrga6",propsAsIs:!1}),G1=$("h3")({name:"Title",class:"edt1l3a9ma",propsAsIs:!1}),B3=$("div")({name:"UnavailableButtons",class:"edutbpur",propsAsIs:!1}),F3=$("div")({name:"CloseButton",class:"edcnx305o",propsAsIs:!1}),z3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 333334 333334",...e},R.createElement("path",{d:"M166667 0c92048 0 166667 74619 166667 166667s-74619 166667-166667 166667S0 258715 0 166667 74619 0 166667 0m80219 91205-29735 149919s-4158 10396-15594 5404l-68410-53854s76104-68409 79222-71320c3119-2911 2079-3534 2079-3534 207-3535-5614 0-5614 0l-100846 64043-42002-14140s-6446-2288-7069-7277c-624-4992 7277-7694 7277-7694l166970-65498s13722-6030 13722 3951m-87637 122889-27141 24745s-2122 1609-4443 601l5197-45965z"})),U3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,clipRule:"evenodd",viewBox:"0 0 512 512",...e},R.createElement("path",{d:"M32.582 370.734C15.127 336.291 5.12 297.425 5.12 256c0-41.426 10.007-80.291 27.462-114.735C74.705 57.484 161.047 0 261.12 0c69.12 0 126.836 25.367 171.287 66.793l-73.31 73.309c-26.763-25.135-60.276-38.168-97.977-38.168-66.56 0-123.113 44.917-143.36 105.426-5.12 15.36-8.146 31.65-8.146 48.64 0 16.989 3.026 33.28 8.146 48.64l-.303.232h.303c20.247 60.51 76.8 105.426 143.36 105.426 34.443 0 63.534-9.31 86.341-24.67 27.23-18.152 45.382-45.148 51.433-77.032H261.12v-99.142h241.105c3.025 16.757 4.654 34.211 4.654 52.364 0 77.963-27.927 143.592-76.334 188.276-42.356 39.098-100.305 61.905-169.425 61.905-100.073 0-186.415-57.483-228.538-141.032z"})),H3=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:50,height:50,fill:"#1A1A1A",...e},R.createElement("path",{d:"M41.625 10.77c-3.98-3.204-10.277-3.747-10.547-3.766a.99.99 0 0 0-.988.586 7 7 0 0 0-.305.832c2.633.445 5.867 1.34 8.793 3.156a1 1 0 1 1-1.055 1.7C32.493 10.155 26.211 10 25 10c-1.21 0-7.496.156-12.523 3.277a1 1 0 0 1-1.055-1.7c2.926-1.811 6.16-2.71 8.793-3.151-.152-.496-.29-.809-.3-.836a.99.99 0 0 0-.993-.586c-.27.02-6.567.562-10.602 3.809C6.215 12.762 2 24.153 2 34c0 .176.047.344.133.496 2.906 5.11 10.84 6.445 12.648 6.504h.031a1 1 0 0 0 .81-.41l1.827-2.516c-4.933-1.273-7.453-3.437-7.597-3.566a1 1 0 0 1 1.324-1.5C11.234 33.063 15.875 37 25 37c9.14 0 13.781-3.953 13.828-3.992a1 1 0 0 1 1.41.094.996.996 0 0 1-.09 1.406c-.144.129-2.664 2.293-7.597 3.566l1.828 2.516a1 1 0 0 0 .809.41h.03c1.81-.059 9.743-1.395 12.65-6.504.085-.152.132-.32.132-.496 0-9.848-4.215-21.238-6.375-23.23M18.5 30c-1.934 0-3.5-1.79-3.5-4s1.566-4 3.5-4 3.5 1.79 3.5 4-1.566 4-3.5 4m13 0c-1.934 0-3.5-1.79-3.5-4s1.566-4 3.5-4 3.5 1.79 3.5 4-1.566 4-3.5 4"})),W3=[{name:"telegram",icon:v.jsx(z3,{}),onClick:vP},{name:"google",icon:v.jsx(U3,{}),onClick:wP},{name:"discord",icon:v.jsx(H3,{}),onClick:console.log}],Y1=e=>v.jsx(L3,{"data-testid":`edmap-widget__social-${e.name}-btn`,title:e.title,icon:e.icon,disabled:e.disabled,onClick:e.onClick},e.name),q3=(e,t)=>{var n;return{...e,title:(n=t[e.name])==null?void 0:n.title}},V3=(e,t)=>({...e,disabled:t}),G3=({closeModal:e})=>{var f;const t=Je(h=>h.translations.socialsPopup),n=ut(h=>h.results),s=(f=n==null?void 0:n.map)==null?void 0:f.registration,a=W3.map(h=>q3(h,t)).map(h=>V3(h,!s[h.name])),c=a.filter(h=>!h.disabled),d=a.filter(h=>h.disabled);return v.jsxs($3,{"data-testid":"edmap-widget__social-popup",children:[c.length>0&&v.jsxs(v.Fragment,{children:[v.jsx(F3,{onClick:e,children:"✕"}),v.jsx(G1,{children:t.title}),c.map(Y1)]}),d.length>0&&v.jsxs(B3,{children:[v.jsx(G1,{children:t.subTitle}),d.map(Y1)]})]})},K1=({isOpen:e,closeModal:t,isSocialModalVisible:n,setIsSocialModalVisible:s})=>{const i=R.useRef(null),a=Je(g=>g.translations.signInPopup),[c,d]=R.useState(!1),f=g=>{i.current&&!i.current.contains(g.target)&&(t(),s(!1),d(!1))},h=()=>{s(!1),d(!1),t()};if(R.useEffect(()=>(d(!1),e?document.addEventListener("mousedown",f):document.removeEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),[e]),!!e)return v.jsx(T3,{children:v.jsx(k3,{ref:i,children:c||n?v.jsx(G3,{closeModal:h}):v.jsxs("div",{"data-testid":"edmap-widget__signin-popup",children:[v.jsxs(I3,{children:[v.jsx(b3,{children:a.title}),v.jsx(C3,{children:a.subtitle})]}),v.jsxs(R3,{children:[v.jsx(qn,{title:a.buttonTitle,onClick:t}),v.jsx(qn,{"data-testid":"edmap-widget__signin-popup-btn",title:a.accentButtonTitle,isAccent:!0,onClick:()=>d(!0)})]})]})})})};function zl(){const[e,t]=R.useState(!1);return{isOpen:e,openModal:()=>t(!0),closeModal:()=>t(!1)}}const Y3=$("div")({name:"Background",class:"edbwx2goj",propsAsIs:!1}),K3=$("div")({name:"Container",class:"edcc2hi8c",propsAsIs:!1}),Q3=$("div")({name:"CloseButton",class:"edc1td8pnr",propsAsIs:!1}),xo=se("p")({name:"FittableText",class:"edf16hcfkz",propsAsIs:!1}),X3=se(xo)({name:"QuestionParagraph",class:"edqbe2o7o",propsAsIs:!0}),J3=se(xo)({name:"AnswerParagraph",class:"eda1u10kac",propsAsIs:!0}),Z3=se(xo)({name:"JourneyWidgetText",class:"edj1c2nqbc",propsAsIs:!0}),Q1=se(xo)({name:"EdgeText",class:"edew0t9wk",propsAsIs:!0}),eM=se(Q1)({name:"NodeDescription",class:"edn13pdjrz",propsAsIs:!0}),tM=se(xo)({name:"PrizeInfoParagraph",class:"edp1ot2zjf",propsAsIs:!0}),nM=se(xo)({name:"PrizeDescParagraph",class:"edp120urih",propsAsIs:!0}),rM=se("div")({name:"RichTextWrap",class:"edr4pnqsv",propsAsIs:!1}),sM=se("table")({name:"StyledTable",class:"edsnwt7pg",propsAsIs:!1}),oM=se("div")({name:"Border",class:"edb1uwnm14",propsAsIs:!1}),iM=se("img")({name:"StyledImage",class:"eds4xz4ib",propsAsIs:!1}),aM=se("div")({name:"CenteringBlock",class:"edc1nwul5g",propsAsIs:!1}),lM=se("img")({name:"NodeDescriptionImage",class:"ednk9d4jz",propsAsIs:!1}),cM=se("span")({name:"ImageCaption",class:"ediz6of6y",propsAsIs:!1}),uM=se("h1")({name:"Heading1",class:"edh1mrpu6g",propsAsIs:!1}),dM=se("h2")({name:"Heading2",class:"edh4lzuk3",propsAsIs:!1}),fM=se("h3")({name:"Heading3",class:"edhpo5zbv",propsAsIs:!1}),pM=se("h4")({name:"Heading4",class:"edhm6a0je",propsAsIs:!1}),hM=se("div")({name:"BlockWrapper",class:"edbaa4gm3",propsAsIs:!1}),mM=se("div")({name:"Container",class:"edc1gv2nxr",propsAsIs:!1}),gM=se("div")({name:"Header",class:"edh1ox5ey6",propsAsIs:!1}),yM=se("div")({name:"CodeBackground",class:"edc1pst60x",propsAsIs:!1}),vM=se("div")({name:"CodeBlock",class:"edc1m8ekz6",propsAsIs:!1}),SM=se("pre")({name:"Scrollable",class:"eds1002l4s",propsAsIs:!1}),wM=se("span")({name:"LangName",class:"edllrx5n5",propsAsIs:!1});function Ul(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _M=typeof global=="object"&&global&&global.Object===Object&&global,EM=typeof self=="object"&&self&&self.Object===Object&&self,X1=_M||EM||Function("return this")(),xf=function(){return X1.Date.now()},xM=/\s/;function TM(e){for(var t=e.length;t--&&xM.test(e.charAt(t)););return t}var kM=/^\s+/;function IM(e){return e&&e.slice(0,TM(e)+1).replace(kM,"")}var Hl=X1.Symbol,J1=Object.prototype,bM=J1.hasOwnProperty,CM=J1.toString,Ci=Hl?Hl.toStringTag:void 0;function RM(e){var t=bM.call(e,Ci),n=e[Ci];try{e[Ci]=void 0;var s=!0}catch{}var i=CM.call(e);return s&&(t?e[Ci]=n:delete e[Ci]),i}var AM=Object.prototype,OM=AM.toString;function PM(e){return OM.call(e)}var NM="[object Null]",MM="[object Undefined]",Z1=Hl?Hl.toStringTag:void 0;function LM(e){return e==null?e===void 0?MM:NM:Z1&&Z1 in Object(e)?RM(e):PM(e)}function jM(e){return e!=null&&typeof e=="object"}var DM="[object Symbol]";function $M(e){return typeof e=="symbol"||jM(e)&&LM(e)==DM}var ev=NaN,BM=/^[-+]0x[0-9a-f]+$/i,FM=/^0b[01]+$/i,zM=/^0o[0-7]+$/i,UM=parseInt;function tv(e){if(typeof e=="number")return e;if($M(e))return ev;if(Ul(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ul(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IM(e);var n=FM.test(e);return n||zM.test(e)?UM(e.slice(2),n?2:8):BM.test(e)?ev:+e}var HM="Expected a function",WM=Math.max,qM=Math.min;function Wl(e,t,n){var s,i,a,c,d,f,h=0,g=!1,y=!1,w=!0;if(typeof e!="function")throw new TypeError(HM);t=tv(t)||0,Ul(n)&&(g=!!n.leading,y="maxWait"in n,a=y?WM(tv(n.maxWait)||0,t):a,w="trailing"in n?!!n.trailing:w);function x(O){var C=s,W=i;return s=i=void 0,h=O,c=e.apply(W,C),c}function _(O){return h=O,d=setTimeout(A,t),g?x(O):c}function E(O){var C=O-f,W=O-h,B=t-C;return y?qM(B,a-W):B}function T(O){var C=O-f,W=O-h;return f===void 0||C>=t||C<0||y&&W>=a}function A(){var O=xf();if(T(O))return L(O);d=setTimeout(A,E(O))}function L(O){return d=void 0,w&&s?x(O):(s=i=void 0,c)}function j(){d!==void 0&&clearTimeout(d),h=0,s=f=i=d=void 0}function K(){return d===void 0?c:L(xf())}function H(){var O=xf(),C=T(O);if(s=arguments,i=this,f=O,C){if(d===void 0)return _(f);if(y)return clearTimeout(d),d=setTimeout(A,t),x(f)}return d===void 0&&(d=setTimeout(A,t)),c}return H.cancel=j,H.flush=K,H}var VM="Expected a function";function GM(e,t,n){var s=!0,i=!0;if(typeof e!="function")throw new TypeError(VM);return Ul(n)&&(s="leading"in n?!!n.leading:s,i="trailing"in n?!!n.trailing:i),Wl(e,t,{leading:s,maxWait:t,trailing:i})}var To=function(){return To=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},To.apply(this,arguments)};function nv(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function rv(e){return!e||!e.ownerDocument?document:e.ownerDocument}var sv=function(e){var t={},n=Array.prototype.reduce.call(e,function(s,i){var a=i.name.match(/data-simplebar-(.+)/);if(a){var c=a[1].replace(/\W+(.)/g,function(d,f){return f.toUpperCase()});switch(i.value){case"true":s[c]=!0;break;case"false":s[c]=!1;break;case void 0:s[c]=!0;break;default:s[c]=i.value}}return s},t);return n};function ov(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function iv(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function av(e){return".".concat(e.split(" ").join("."))}var Tf=!!(typeof window<"u"&&window.document&&window.document.createElement),YM=Object.freeze({__proto__:null,addClasses:ov,canUseDOM:Tf,classNamesToQuery:av,getElementDocument:rv,getElementWindow:nv,getOptions:sv,removeClasses:iv}),ko=null,lv=null;Tf&&window.addEventListener("resize",function(){lv!==window.devicePixelRatio&&(lv=window.devicePixelRatio,ko=null)});function cv(){if(ko===null){if(typeof document>"u")return ko=0,ko;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),ko=n}return ko}var Dr=nv,kf=rv,KM=sv,$r=ov,Br=iv,Kt=av,Ri=function(){function e(t,n){n===void 0&&(n={});var s=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=Dr(s.el);s.scrollXTicking||(i.requestAnimationFrame(s.scrollX),s.scrollXTicking=!0),s.scrollYTicking||(i.requestAnimationFrame(s.scrollY),s.scrollYTicking=!0),s.isScrolling||(s.isScrolling=!0,$r(s.el,s.classNames.scrolling)),s.showScrollbar("x"),s.showScrollbar("y"),s.onStopScrolling()},this.scrollX=function(){s.axis.x.isOverflowing&&s.positionScrollbar("x"),s.scrollXTicking=!1},this.scrollY=function(){s.axis.y.isOverflowing&&s.positionScrollbar("y"),s.scrollYTicking=!1},this._onStopScrolling=function(){Br(s.el,s.classNames.scrolling),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isScrolling=!1},this.onMouseEnter=function(){s.isMouseEntering||($r(s.el,s.classNames.mouseEntered),s.showScrollbar("x"),s.showScrollbar("y"),s.isMouseEntering=!0),s.onMouseEntered()},this._onMouseEntered=function(){Br(s.el,s.classNames.mouseEntered),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isMouseEntering=!1},this._onMouseMove=function(i){s.mouseX=i.clientX,s.mouseY=i.clientY,(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseMoveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseMoveForAxis("y")},this.onMouseLeave=function(){s.onMouseMove.cancel(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseLeaveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseLeaveForAxis("y"),s.mouseX=-1,s.mouseY=-1},this._onWindowResize=function(){s.scrollbarWidth=s.getScrollbarWidth(),s.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!s.axis.x.track.el||!s.axis.y.track.el||!s.axis.x.scrollbar.el||!s.axis.y.scrollbar.el)){var a,c;s.axis.x.track.rect=s.axis.x.track.el.getBoundingClientRect(),s.axis.y.track.rect=s.axis.y.track.el.getBoundingClientRect(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&(a=s.isWithinBounds(s.axis.x.track.rect)),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&(c=s.isWithinBounds(s.axis.y.track.rect)),(a||c)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(a&&(s.axis.x.scrollbar.rect=s.axis.x.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.x.scrollbar.rect)?s.onDragStart(i,"x"):s.onTrackClick(i,"x")),c&&(s.axis.y.scrollbar.rect=s.axis.y.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.y.scrollbar.rect)?s.onDragStart(i,"y"):s.onTrackClick(i,"y"))))}},this.drag=function(i){var a,c,d,f,h,g,y,w,x,_,E;if(!(!s.draggedAxis||!s.contentWrapperEl)){var T,A=s.axis[s.draggedAxis].track,L=(c=(a=A.rect)===null||a===void 0?void 0:a[s.axis[s.draggedAxis].sizeAttr])!==null&&c!==void 0?c:0,j=s.axis[s.draggedAxis].scrollbar,K=(f=(d=s.contentWrapperEl)===null||d===void 0?void 0:d[s.axis[s.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,H=parseInt((g=(h=s.elStyles)===null||h===void 0?void 0:h[s.axis[s.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);i.preventDefault(),i.stopPropagation(),s.draggedAxis==="y"?T=i.pageY:T=i.pageX;var O=T-((w=(y=A.rect)===null||y===void 0?void 0:y[s.axis[s.draggedAxis].offsetAttr])!==null&&w!==void 0?w:0)-s.axis[s.draggedAxis].dragOffset;O=s.draggedAxis==="x"&&s.isRtl?((_=(x=A.rect)===null||x===void 0?void 0:x[s.axis[s.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-j.size-O:O;var C=O/(L-j.size),W=C*(K-H);s.draggedAxis==="x"&&s.isRtl&&(W=!((E=e.getRtlHelpers())===null||E===void 0)&&E.isScrollingToNegative?-W:W),s.contentWrapperEl[s.axis[s.draggedAxis].scrollOffsetAttr]=W}},this.onEndDrag=function(i){s.isDragging=!1;var a=kf(s.el),c=Dr(s.el);i.preventDefault(),i.stopPropagation(),Br(s.el,s.classNames.dragging),s.onStopScrolling(),a.removeEventListener("mousemove",s.drag,!0),a.removeEventListener("mouseup",s.onEndDrag,!0),s.removePreventClickId=c.setTimeout(function(){a.removeEventListener("click",s.preventClick,!0),a.removeEventListener("dblclick",s.preventClick,!0),s.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=To(To({},e.defaultOptions),n),this.classNames=To(To({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=GM(this._onMouseMove,64),this.onWindowResize=Wl(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Wl(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Wl(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,s=n==null?void 0:n.firstElementChild;if(!s)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),a=e.getOffset(s);n.scrollLeft=-999;var c=e.getOffset(s);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==a.left,isScrollingToNegative:a.left!==c.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:cv()}catch{return cv()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),s=kf(t),i=Dr(t);return{top:n.top+(i.pageYOffset||s.documentElement.scrollTop),left:n.left+(i.pageXOffset||s.documentElement.scrollLeft)}},e.prototype.init=function(){Tf&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Kt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Kt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Kt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Kt(this.classNames.offset)),this.maskEl=this.el.querySelector(Kt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Kt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Kt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Kt(this.classNames.scrollbar)))||null,this.options.autoHide||($r(this.axis.x.scrollbar.el,this.classNames.visible),$r(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,s=Dr(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),s.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,a=s.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){i&&s.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),s.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new s.MutationObserver(function(){s.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Dr(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,s=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,a=this.contentWrapperEl.offsetWidth,c=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,h=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=s?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||h,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&h>n,this.axis.y.isOverflowing=f>g,this.axis.x.isOverflowing=c==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var y=this.axis.x.isOverflowing?this.scrollbarWidth:0,w=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&h>a-w,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>g-y,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,s;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],a=(s=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&s!==void 0?s:0,c=a/i,d;return d=Math.max(~~(c*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},e.prototype.positionScrollbar=function(t){var n,s,i;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var c=this.contentWrapperEl[this.axis[t].scrollSizeAttr],d=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[t].sizeAttr],10),h=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];h=t==="x"&&this.isRtl&&(!((s=e.getRtlHelpers())===null||s===void 0)&&s.isScrollOriginAtZero)?-h:h,t==="x"&&this.isRtl&&(h=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?h:-h);var g=h/(c-f),y=~~((d-a.size)*g);y=t==="x"&&this.isRtl?-y+(d-a.size):y,a.el.style.transform=t==="x"?"translate3d(".concat(y,"px, 0, 0)"):"translate3d(0, ".concat(y,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,s=this.axis[t].scrollbar.el;!n||!s||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?s.style.display="block":s.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&($r(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Br(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),$r(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?$r(n.scrollbar.el,this.classNames.hover):Br(n.scrollbar.el,this.classNames.hover)):(Br(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Br(this.axis[t].track.el,this.classNames.hover),Br(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var s;n===void 0&&(n="y"),this.isDragging=!0;var i=kf(this.el),a=Dr(this.el),c=this.axis[n].scrollbar,d=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=d-(((s=c.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])||0),this.draggedAxis=n,$r(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var s=this,i,a,c,d;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var h=Dr(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var g=this.axis[n].scrollbar,y=(a=(i=g.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&a!==void 0?a:0,w=parseInt((d=(c=this.elStyles)===null||c===void 0?void 0:c[this.axis[n].sizeAttr])!==null&&d!==void 0?d:"0px",10),x=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],_=n==="y"?this.mouseY-y:this.mouseX-y,E=_<0?-1:1,T=E===-1?x-w:x+w,A=40,L=function(){s.contentWrapperEl&&(E===-1?x>T&&(x-=A,s.contentWrapperEl[s.axis[n].scrollOffsetAttr]=x,h.requestAnimationFrame(L)):x<T&&(x+=A,s.contentWrapperEl[s.axis[n].scrollOffsetAttr]=x,h.requestAnimationFrame(L)))};L()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Dr(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var s=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return s.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=KM,e.helpers=YM,e}(),an=function(){return an=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},an.apply(this,arguments)};function QM(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}var uv=R.forwardRef(function(e,t){var n=e.children,s=e.scrollableNodeProps,i=s===void 0?{}:s,a=QM(e,["children","scrollableNodeProps"]),c=R.useRef(),d=R.useRef(),f=R.useRef(),h={},g={};Object.keys(a).forEach(function(x){Object.prototype.hasOwnProperty.call(Ri.defaultOptions,x)?h[x]=a[x]:g[x]=a[x]});var y=an(an({},Ri.defaultOptions.classNames),h.classNames),w=an(an({},i),{className:"".concat(y.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:h.tabIndex||Ri.defaultOptions.tabIndex,role:"region","aria-label":h.ariaLabel||Ri.defaultOptions.ariaLabel});return R.useEffect(function(){var x;return d.current=w.ref?w.ref.current:d.current,c.current&&(x=new Ri(c.current,an(an(an({},h),d.current&&{scrollableNode:d.current}),f.current&&{contentNode:f.current})),typeof t=="function"?t(x):t&&(t.current=x)),function(){x==null||x.unMount(),x=null,typeof t=="function"&&t(null)}},[]),R.createElement("div",an({"data-simplebar":"init",ref:c},g),R.createElement("div",{className:y.wrapper},R.createElement("div",{className:y.heightAutoObserverWrapperEl},R.createElement("div",{className:y.heightAutoObserverEl})),R.createElement("div",{className:y.mask},R.createElement("div",{className:y.offset},typeof n=="function"?n({scrollableNodeRef:d,scrollableNodeProps:an(an({},w),{ref:d}),contentNodeRef:f,contentNodeProps:{className:y.contentEl,ref:f}}):R.createElement("div",an({},w),R.createElement("div",{className:y.contentEl},n)))),R.createElement("div",{className:y.placeholder})),R.createElement("div",{className:"".concat(y.track," ").concat(y.horizontal)},R.createElement("div",{className:y.scrollbar})),R.createElement("div",{className:"".concat(y.track," ").concat(y.vertical)},R.createElement("div",{className:y.scrollbar})))});uv.displayName="SimpleBar";const XM=se("button")({name:"Container",class:"edc1q8nrja",propsAsIs:!1}),JM=se("span")({name:"Text",class:"edt1votrxj",propsAsIs:!1}),ZM=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"M16 9a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1zm2 10a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3z"}),R.createElement("path",{fill:"currentColor",d:"M19 2a3 3 0 0 1 3 3v10a3 3 0 0 1-2 2.825V5a1 1 0 0 0-1-1H6.174C6.586 2.835 7.694 2 9 2z"})),e4=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"M20.414 7.01 9.88 17.405l-6.293-6.21L4.99 9.771l4.888 4.824 9.132-9.01z"})),t4=({textToCopy:e})=>{const[t,n]=R.useState(!1),s=R.useRef(null),i=()=>{if(clearTimeout(s.current),t){n(!1);return}navigator.clipboard.writeText(e),n(!0),s.current=setTimeout(()=>{n(!1)},2e3)};return v.jsxs(XM,{style:{background:t?"var(--code-block-copied-button-bg)":"var(--code-block-copy-button-bg)"},onClick:i,children:[t?v.jsx(e4,{}):v.jsx(ZM,{}),v.jsx(JM,{children:t?"copied":"copy"})]})},n4=({data:e})=>{const{html:t,language:n,code:s}=e,a=s.split(/\r?\n/).length>1,c=a?{width:"100%",maxHeight:"456px"}:{width:"100%",height:"auto"};return v.jsxs(mM,{children:[v.jsxs(gM,{children:[v.jsx(wM,{children:n||"code"}),v.jsx(t4,{textToCopy:s})]}),v.jsx(yM,{style:c,children:v.jsx(uv,{autoHide:!1,style:c,children:v.jsx(vM,{children:v.jsx(SM,{style:{paddingRight:a?"20px":"10px"},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:t}})})})})})]})},r4=/\[(.*?)\]/g,dv=(e,t)=>e.replace(r4,(n,s)=>t[s]?`${t[s]}`:n),s4=e=>Object.keys(e).reduce((t,n)=>{const s=e[n],i=s.slice(1,s.length-1);return{...t,[i]:`[${n}]`}},{}),fv=e=>R.useMemo(()=>{const t=s4(e);return{convertStringToReplacement:c=>dv(c,e),convertStringToId:c=>dv(c,t),convertIdToReplacement:c=>{const d=e[c];return d||c},convertReplacementToId:c=>{const d=t[c];return d||c}}},[e]),o4={1:uM,2:dM,3:fM,4:pM,5:"h5",6:"h6"},i4=({data:e,isEdgeText:t,replacements:n})=>{const{text:s,level:i}=e,{convertStringToReplacement:a}=fv(n),c=o4[i];return v.jsx(c,{isEdgeText:t,children:a(s)})},a4=se("li")({name:"ListItem",class:"edl18kdprd",propsAsIs:!1}),l4=se("ol")({name:"OrderedList",class:"edoyxj7j5",propsAsIs:!1}),c4=se("div")({name:"Row",class:"edr7e6b3z",propsAsIs:!1}),u4=se("ul")({name:"UnorderedList",class:"eduyntbxa",propsAsIs:!1}),d4=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"M18 12a6 6 0 1 1-12 0 6 6 0 0 1 12 0"})),f4=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a6 6 0 1 1 0 12 6 6 0 0 1 0-12m0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8",clipRule:"evenodd"})),p4=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"m19 12-7 7-7-7 7-7zM7.828 12 12 16.172 16.172 12 12 7.828z"})),h4=se("div")({name:"Container",class:"edc8c3d4h",propsAsIs:!1}),m4={0:v.jsx(d4,{}),1:v.jsx(f4,{}),2:v.jsx(p4,{})},g4=({style:e,text:t,level:n})=>{const i=e==="ordered"?t:m4[(n-1)%3];return v.jsx(h4,{children:i})},y4=({data:e})=>{const{meta:t,items:n,style:s}=e,i=(a,c,d)=>{if(!a||a.length===0)return null;const f=s==="unordered"?u4:l4;return v.jsx(f,{counterType:t==null?void 0:t.counterType,children:a.map((h,g)=>{const y=d+(g+1)+".";return v.jsx(Tt.Fragment,{children:v.jsxs(a4,{style:{paddingLeft:c===1?"0px":"32px"},children:[v.jsxs(c4,{children:[v.jsx(g4,{style:s,level:c,text:y}),v.jsx("span",{children:h.content})]}),i(h.items,c+1,y)]})},g)})})};return v.jsx(v.Fragment,{children:i(n,1,"")})},v4=({data:e,replacements:t,isAnswer:n,isPrizeInfo:s,isPrizeDesc:i,isEdgeText:a,isJourneyWidgetText:c,isNodeDescription:d})=>{const{convertStringToReplacement:f}=fv(t),{text:h}=e,g=f(h),y=S4(g);let w;return n?w=J3:s?w=tM:i?w=nM:a?w=Q1:c?w=Z3:d?w=eM:w=X3,v.jsx(w,{dangerouslySetInnerHTML:{__html:y}})},S4=e=>{const n=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html");return n.querySelectorAll("a").forEach(i=>{i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer")}),n.body.firstChild.innerHTML},w4=se("blockquote")({name:"Container",class:"edc1pmqebe",propsAsIs:!1}),_4=se("span")({name:"Content",class:"edcfeuydt",propsAsIs:!1}),E4=se("div")({name:"CaptionBlock",class:"edcqx7kpx",propsAsIs:!1}),x4=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,...e},R.createElement("path",{fill:"currentColor",d:"M19.866 12.887V19h-6.078v-4.563q0-2.959.565-5.212A14.2 14.2 0 0 1 16.182 5H20q-1.398 2-2.124 4.028-.726 2-.726 3.86zm-9.789 0V19H4v-4.563q0-2.959.565-5.212T6.42 5h3.792Q8.813 7 8.06 9.028q-.726 2.028-.726 3.86z"})),T4=({data:e})=>v.jsxs(w4,{children:[v.jsx(x4,{}),v.jsx(_4,{children:e.quote}),v.jsxs(E4,{children:[v.jsx("p",{children:e.authorName}),v.jsx("p",{children:e.profession})]})]}),k4=({data:e})=>{const{content:t,withHeadings:n}=e;if(!Array.isArray(t)||t.length===0)return;const s=n?t[0]:null,i=n?t.slice(1):t;return v.jsxs(sM,{children:[s&&v.jsx("thead",{children:v.jsx("tr",{children:s.map((a,c)=>v.jsx("th",{children:a},c))})}),v.jsx("tbody",{children:i.map((a,c)=>v.jsx("tr",{children:a.map((d,f)=>v.jsx("td",{dangerouslySetInnerHTML:{__html:d||"—"}},f))},c))})]})},I4=({data:e,isNodeDescription:t})=>{const{file:{url:n},stretched:s,withBackground:i,withBorder:a,caption:c}=e;let d;t?d=lM:d=iM;const f=s?"auto":"400px",h=s?"100%":"fit-content";return v.jsxs(aM,{style:{alignItems:s?"center":"flex-start"},children:[v.jsx(oM,{style:{width:h},children:v.jsx(d,{src:n,alt:c??"test image",style:{width:h,height:f},fetchpriority:"high"})}),c&&v.jsx(cM,{children:c})]})},b4=({data:e})=>v.jsx("div",{dangerouslySetInnerHTML:{__html:e==null?void 0:e.html}}),C4=({data:e,replacements:t,...n})=>{const s=eS(e,t,n);return v.jsx(hM,{style:{gap:n.isJourneyWidgetText?"12px":"14px"},children:s})},R4=se("a")({name:"Border",class:"edb1n9nuyu",propsAsIs:!1}),A4=se("div")({name:"FaviconContainer",class:"edf33eea4",propsAsIs:!1}),O4=se("img")({name:"Favicon",class:"edf1siw68p",propsAsIs:!1}),P4=se("div")({name:"MetaBlock",class:"edm1u7odcx",propsAsIs:!1}),pv=se("span")({name:"Text",class:"edt4nkw3z",propsAsIs:!1}),N4=se(pv)({name:"BoldText",class:"edbz1s450",propsAsIs:!0}),M4=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},R.createElement("path",{fill:"currentColor",d:"M20 19h-2V7.414L5.707 19.707l-1.414-1.414L16.586 6H5V4h15z"}));function hv(e,t){return function(){return e.apply(t,arguments)}}const{toString:L4}=Object.prototype,{getPrototypeOf:If}=Object,{iterator:ql,toStringTag:mv}=Symbol,Vl=(e=>t=>{const n=L4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bn=e=>(e=e.toLowerCase(),t=>Vl(t)===e),Gl=e=>t=>typeof t===e,{isArray:Io}=Array,Ai=Gl("undefined");function Oi(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gv=bn("ArrayBuffer");function j4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gv(e.buffer),t}const D4=Gl("string"),Qt=Gl("function"),yv=Gl("number"),Pi=e=>e!==null&&typeof e=="object",$4=e=>e===!0||e===!1,Yl=e=>{if(Vl(e)!=="object")return!1;const t=If(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(mv in e)&&!(ql in e)},B4=e=>{if(!Pi(e)||Oi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},F4=bn("Date"),z4=bn("File"),U4=bn("Blob"),H4=bn("FileList"),W4=e=>Pi(e)&&Qt(e.pipe),q4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qt(e.append)&&((t=Vl(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},V4=bn("URLSearchParams"),[G4,Y4,K4,Q4]=["ReadableStream","Request","Response","Headers"].map(bn),X4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ni(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Io(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(Oi(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),c=a.length;let d;for(s=0;s<c;s++)d=a[s],t.call(null,e[d],d,e)}}function vv(e,t){if(Oi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sv=e=>!Ai(e)&&e!==ks;function bf(){const{caseless:e}=Sv(this)&&this||{},t={},n=(s,i)=>{const a=e&&vv(t,i)||i;Yl(t[a])&&Yl(s)?t[a]=bf(t[a],s):Yl(s)?t[a]=bf({},s):Io(s)?t[a]=s.slice():t[a]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Ni(arguments[s],n);return t}const J4=(e,t,n,{allOwnKeys:s}={})=>(Ni(t,(i,a)=>{n&&Qt(i)?e[a]=hv(i,n):e[a]=i},{allOwnKeys:s}),e),Z4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),eL=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tL=(e,t,n,s)=>{let i,a,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)c=i[a],(!s||s(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&If(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nL=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},rL=e=>{if(!e)return null;if(Io(e))return e;let t=e.length;if(!yv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},sL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&If(Uint8Array)),oL=(e,t)=>{const s=(e&&e[ql]).call(e);let i;for(;(i=s.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},iL=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},aL=bn("HTMLFormElement"),lL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),wv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cL=bn("RegExp"),_v=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ni(n,(i,a)=>{let c;(c=t(i,a,e))!==!1&&(s[a]=c||i)}),Object.defineProperties(e,s)},uL=e=>{_v(e,(t,n)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Qt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dL=(e,t)=>{const n={},s=i=>{i.forEach(a=>{n[a]=!0})};return Io(e)?s(e):s(String(e).split(t)),n},fL=()=>{},pL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function hL(e){return!!(e&&Qt(e.append)&&e[mv]==="FormData"&&e[ql])}const mL=e=>{const t=new Array(10),n=(s,i)=>{if(Pi(s)){if(t.indexOf(s)>=0)return;if(Oi(s))return s;if(!("toJSON"in s)){t[i]=s;const a=Io(s)?[]:{};return Ni(s,(c,d)=>{const f=n(c,i+1);!Ai(f)&&(a[d]=f)}),t[i]=void 0,a}}return s};return n(e,0)},gL=bn("AsyncFunction"),yL=e=>e&&(Pi(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),Ev=((e,t)=>e?setImmediate:t?((n,s)=>(ks.addEventListener("message",({source:i,data:a})=>{i===ks&&a===n&&s.length&&s.shift()()},!1),i=>{s.push(i),ks.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qt(ks.postMessage)),vL=typeof queueMicrotask<"u"?queueMicrotask.bind(ks):typeof process<"u"&&process.nextTick||Ev,F={isArray:Io,isArrayBuffer:gv,isBuffer:Oi,isFormData:q4,isArrayBufferView:j4,isString:D4,isNumber:yv,isBoolean:$4,isObject:Pi,isPlainObject:Yl,isEmptyObject:B4,isReadableStream:G4,isRequest:Y4,isResponse:K4,isHeaders:Q4,isUndefined:Ai,isDate:F4,isFile:z4,isBlob:U4,isRegExp:cL,isFunction:Qt,isStream:W4,isURLSearchParams:V4,isTypedArray:sL,isFileList:H4,forEach:Ni,merge:bf,extend:J4,trim:X4,stripBOM:Z4,inherits:eL,toFlatObject:tL,kindOf:Vl,kindOfTest:bn,endsWith:nL,toArray:rL,forEachEntry:oL,matchAll:iL,isHTMLForm:aL,hasOwnProperty:wv,hasOwnProp:wv,reduceDescriptors:_v,freezeMethods:uL,toObjectSet:dL,toCamelCase:lL,noop:fL,toFiniteNumber:pL,findKey:vv,global:ks,isContextDefined:Sv,isSpecCompliantForm:hL,toJSONObject:mL,isAsyncFn:gL,isThenable:yL,setImmediate:Ev,asap:vL,isIterable:e=>e!=null&&Qt(e[ql])};function Ie(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}F.inherits(Ie,Error,{toJSON:function(){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:F.toJSONObject(this.config),code:this.code,status:this.status}}});const xv=Ie.prototype,Tv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tv[e]={value:e}}),Object.defineProperties(Ie,Tv),Object.defineProperty(xv,"isAxiosError",{value:!0}),Ie.from=(e,t,n,s,i,a)=>{const c=Object.create(xv);return F.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Ie.call(c,e.message,t,n,s,i),c.cause=e,c.name=e.name,a&&Object.assign(c,a),c};const SL=null;function Cf(e){return F.isPlainObject(e)||F.isArray(e)}function kv(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function Iv(e,t,n){return e?e.concat(t).map(function(i,a){return i=kv(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function wL(e){return F.isArray(e)&&!e.some(Cf)}const _L=F.toFlatObject(F,{},null,function(t){return/^is[A-Z]/.test(t)});function Kl(e,t,n){if(!F.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=F.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,T){return!F.isUndefined(T[E])});const s=n.metaTokens,i=n.visitor||g,a=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(i))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(F.isDate(_))return _.toISOString();if(F.isBoolean(_))return _.toString();if(!f&&F.isBlob(_))throw new Ie("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(_)||F.isTypedArray(_)?f&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function g(_,E,T){let A=_;if(_&&!T&&typeof _=="object"){if(F.endsWith(E,"{}"))E=s?E:E.slice(0,-2),_=JSON.stringify(_);else if(F.isArray(_)&&wL(_)||(F.isFileList(_)||F.endsWith(E,"[]"))&&(A=F.toArray(_)))return E=kv(E),A.forEach(function(j,K){!(F.isUndefined(j)||j===null)&&t.append(c===!0?Iv([E],K,a):c===null?E:E+"[]",h(j))}),!1}return Cf(_)?!0:(t.append(Iv(T,E,a),h(_)),!1)}const y=[],w=Object.assign(_L,{defaultVisitor:g,convertValue:h,isVisitable:Cf});function x(_,E){if(!F.isUndefined(_)){if(y.indexOf(_)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(_),F.forEach(_,function(A,L){(!(F.isUndefined(A)||A===null)&&i.call(t,A,F.isString(L)?L.trim():L,E,w))===!0&&x(A,E?E.concat(L):[L])}),y.pop()}}if(!F.isObject(e))throw new TypeError("data must be an object");return x(e),t}function bv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Rf(e,t){this._pairs=[],e&&Kl(e,this,t)}const Cv=Rf.prototype;Cv.append=function(t,n){this._pairs.push([t,n])},Cv.toString=function(t){const n=t?function(s){return t.call(this,s,bv)}:bv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function EL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rv(e,t,n){if(!t)return e;const s=n&&n.encode||EL;F.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=F.isURLSearchParams(t)?t.toString():new Rf(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Av{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){F.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Ov={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xL={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Rf,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Af=typeof window<"u"&&typeof document<"u",Of=typeof navigator=="object"&&navigator||void 0,TL=Af&&(!Of||["ReactNative","NativeScript","NS"].indexOf(Of.product)<0),kL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",IL=Af&&window.location.href||"http://localhost",At={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Af,hasStandardBrowserEnv:TL,hasStandardBrowserWebWorkerEnv:kL,navigator:Of,origin:IL},Symbol.toStringTag,{value:"Module"})),...xL};function bL(e,t){return Kl(e,new At.classes.URLSearchParams,{visitor:function(n,s,i,a){return At.isNode&&F.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function CL(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function RL(e){const t={},n=Object.keys(e);let s;const i=n.length;let a;for(s=0;s<i;s++)a=n[s],t[a]=e[a];return t}function Pv(e){function t(n,s,i,a){let c=n[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=a>=n.length;return c=!c&&F.isArray(i)?i.length:c,f?(F.hasOwnProp(i,c)?i[c]=[i[c],s]:i[c]=s,!d):((!i[c]||!F.isObject(i[c]))&&(i[c]=[]),t(n,s,i[c],a)&&F.isArray(i[c])&&(i[c]=RL(i[c])),!d)}if(F.isFormData(e)&&F.isFunction(e.entries)){const n={};return F.forEachEntry(e,(s,i)=>{t(CL(s),i,n,0)}),n}return null}function AL(e,t,n){if(F.isString(e))try{return(t||JSON.parse)(e),F.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Mi={transitional:Ov,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,a=F.isObject(t);if(a&&F.isHTMLForm(t)&&(t=new FormData(t)),F.isFormData(t))return i?JSON.stringify(Pv(t)):t;if(F.isArrayBuffer(t)||F.isBuffer(t)||F.isStream(t)||F.isFile(t)||F.isBlob(t)||F.isReadableStream(t))return t;if(F.isArrayBufferView(t))return t.buffer;if(F.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return bL(t,this.formSerializer).toString();if((d=F.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Kl(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),AL(t)):t}],transformResponse:[function(t){const n=this.transitional||Mi.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(F.isResponse(t)||F.isReadableStream(t))return t;if(t&&F.isString(t)&&(s&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?Ie.from(d,Ie.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:At.classes.FormData,Blob:At.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],e=>{Mi.headers[e]={}});const OL=F.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"]),PL=e=>{const t={};let n,s,i;return e&&e.split(`
`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),s=c.substring(i+1).trim(),!(!n||t[n]&&OL[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Nv=Symbol("internals");function Li(e){return e&&String(e).trim().toLowerCase()}function Ql(e){return e===!1||e==null?e:F.isArray(e)?e.map(Ql):String(e)}function NL(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const ML=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pf(e,t,n,s,i){if(F.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!F.isString(t)){if(F.isString(s))return t.indexOf(s)!==-1;if(F.isRegExp(s))return s.test(t)}}function LL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function jL(e,t){const n=F.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,a,c){return this[s].call(this,t,i,a,c)},configurable:!0})})}class Xt{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function a(d,f,h){const g=Li(f);if(!g)throw new Error("header name must be a non-empty string");const y=F.findKey(i,g);(!y||i[y]===void 0||h===!0||h===void 0&&i[y]!==!1)&&(i[y||f]=Ql(d))}const c=(d,f)=>F.forEach(d,(h,g)=>a(h,g,f));if(F.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(F.isString(t)&&(t=t.trim())&&!ML(t))c(PL(t),n);else if(F.isObject(t)&&F.isIterable(t)){let d={},f,h;for(const g of t){if(!F.isArray(g))throw TypeError("Object iterator must return a key-value pair");d[h=g[0]]=(f=d[h])?F.isArray(f)?[...f,g[1]]:[f,g[1]]:g[1]}c(d,n)}else t!=null&&a(n,t,s);return this}get(t,n){if(t=Li(t),t){const s=F.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return NL(i);if(F.isFunction(n))return n.call(this,i,s);if(F.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Li(t),t){const s=F.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Pf(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function a(c){if(c=Li(c),c){const d=F.findKey(s,c);d&&(!n||Pf(s,s[d],d,n))&&(delete s[d],i=!0)}}return F.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const a=n[s];(!t||Pf(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,s={};return F.forEach(this,(i,a)=>{const c=F.findKey(s,a);if(c){n[c]=Ql(i),delete n[a];return}const d=t?LL(a):String(a).trim();d!==a&&delete n[a],n[d]=Ql(i),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return F.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&F.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[Nv]=this[Nv]={accessors:{}}).accessors,i=this.prototype;function a(c){const d=Li(c);s[d]||(jL(i,c),s[d]=!0)}return F.isArray(t)?t.forEach(a):a(t),this}}Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),F.freezeMethods(Xt);function Nf(e,t){const n=this||Mi,s=t||n,i=Xt.from(s.headers);let a=s.data;return F.forEach(e,function(d){a=d.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Mv(e){return!!(e&&e.__CANCEL__)}function bo(e,t,n){Ie.call(this,e??"canceled",Ie.ERR_CANCELED,t,n),this.name="CanceledError"}F.inherits(bo,Ie,{__CANCEL__:!0});function Lv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DL(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $L(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,a=0,c;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),g=s[a];c||(c=h),n[i]=f,s[i]=h;let y=a,w=0;for(;y!==i;)w+=n[y++],y=y%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),h-c<t)return;const x=g&&h-g;return x?Math.round(w*1e3/x):void 0}}function BL(e,t){let n=0,s=1e3/t,i,a;const c=(h,g=Date.now())=>{n=g,i=null,a&&(clearTimeout(a),a=null),e(...h)};return[(...h)=>{const g=Date.now(),y=g-n;y>=s?c(h,g):(i=h,a||(a=setTimeout(()=>{a=null,c(i)},s-y)))},()=>i&&c(i)]}const Xl=(e,t,n=3)=>{let s=0;const i=$L(50,250);return BL(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,f=c-s,h=i(f),g=c<=d;s=c;const y={loaded:c,total:d,progress:d?c/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&g?(d-c)/h:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(y)},n)},jv=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Dv=e=>(...t)=>F.asap(()=>e(...t)),FL=At.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,At.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(At.origin),At.navigator&&/(msie|trident)/i.test(At.navigator.userAgent)):()=>!0,zL=At.hasStandardBrowserEnv?{write(e,t,n,s,i,a){const c=[e+"="+encodeURIComponent(t)];F.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),F.isString(s)&&c.push("path="+s),F.isString(i)&&c.push("domain="+i),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function HL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $v(e,t,n){let s=!UL(t);return e&&(s||n==!1)?HL(e,t):t}const Bv=e=>e instanceof Xt?{...e}:e;function Is(e,t){t=t||{};const n={};function s(h,g,y,w){return F.isPlainObject(h)&&F.isPlainObject(g)?F.merge.call({caseless:w},h,g):F.isPlainObject(g)?F.merge({},g):F.isArray(g)?g.slice():g}function i(h,g,y,w){if(F.isUndefined(g)){if(!F.isUndefined(h))return s(void 0,h,y,w)}else return s(h,g,y,w)}function a(h,g){if(!F.isUndefined(g))return s(void 0,g)}function c(h,g){if(F.isUndefined(g)){if(!F.isUndefined(h))return s(void 0,h)}else return s(void 0,g)}function d(h,g,y){if(y in t)return s(h,g);if(y in e)return s(void 0,h)}const f={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(h,g,y)=>i(Bv(h),Bv(g),y,!0)};return F.forEach(Object.keys({...e,...t}),function(g){const y=f[g]||i,w=y(e[g],t[g],g);F.isUndefined(w)&&y!==d||(n[g]=w)}),n}const Fv=e=>{const t=Is({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:a,headers:c,auth:d}=t;t.headers=c=Xt.from(c),t.url=Rv($v(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(F.isFormData(n)){if(At.hasStandardBrowserEnv||At.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((f=c.getContentType())!==!1){const[h,...g]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...g].join("; "))}}if(At.hasStandardBrowserEnv&&(s&&F.isFunction(s)&&(s=s(t)),s||s!==!1&&FL(t.url))){const h=i&&a&&zL.read(a);h&&c.set(i,h)}return t},WL=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=Fv(e);let a=i.data;const c=Xt.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:h}=i,g,y,w,x,_;function E(){x&&x(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let T=new XMLHttpRequest;T.open(i.method.toUpperCase(),i.url,!0),T.timeout=i.timeout;function A(){if(!T)return;const j=Xt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:j,config:e,request:T};Lv(function(C){n(C),E()},function(C){s(C),E()},H),T=null}"onloadend"in T?T.onloadend=A:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(A)},T.onabort=function(){T&&(s(new Ie("Request aborted",Ie.ECONNABORTED,e,T)),T=null)},T.onerror=function(){s(new Ie("Network Error",Ie.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let K=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const H=i.transitional||Ov;i.timeoutErrorMessage&&(K=i.timeoutErrorMessage),s(new Ie(K,H.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,T)),T=null},a===void 0&&c.setContentType(null),"setRequestHeader"in T&&F.forEach(c.toJSON(),function(K,H){T.setRequestHeader(H,K)}),F.isUndefined(i.withCredentials)||(T.withCredentials=!!i.withCredentials),d&&d!=="json"&&(T.responseType=i.responseType),h&&([w,_]=Xl(h,!0),T.addEventListener("progress",w)),f&&T.upload&&([y,x]=Xl(f),T.upload.addEventListener("progress",y),T.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(g=j=>{T&&(s(!j||j.type?new bo(null,e,T):j),T.abort(),T=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const L=DL(i.url);if(L&&At.protocols.indexOf(L)===-1){s(new Ie("Unsupported protocol "+L+":",Ie.ERR_BAD_REQUEST,e));return}T.send(a||null)})},qL=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const a=function(h){if(!i){i=!0,d();const g=h instanceof Error?h:this.reason;s.abort(g instanceof Ie?g:new bo(g instanceof Error?g.message:g))}};let c=t&&setTimeout(()=>{c=null,a(new Ie(`timeout ${t} of ms exceeded`,Ie.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=s;return f.unsubscribe=()=>F.asap(d),f}},VL=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},GL=async function*(e,t){for await(const n of YL(e))yield*VL(n,t)},YL=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},zv=(e,t,n,s)=>{const i=GL(e,t);let a=0,c,d=f=>{c||(c=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:g}=await i.next();if(h){d(),f.close();return}let y=g.byteLength;if(n){let w=a+=y;n(w)}f.enqueue(new Uint8Array(g))}catch(h){throw d(h),h}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},Jl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Uv=Jl&&typeof ReadableStream=="function",KL=Jl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Hv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},QL=Uv&&Hv(()=>{let e=!1;const t=new Request(At.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wv=64*1024,Mf=Uv&&Hv(()=>F.isReadableStream(new Response("").body)),Zl={stream:Mf&&(e=>e.body)};Jl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Zl[t]&&(Zl[t]=F.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new Ie(`Response type '${t}' is not supported`,Ie.ERR_NOT_SUPPORT,s)})})})(new Response);const XL=async e=>{if(e==null)return 0;if(F.isBlob(e))return e.size;if(F.isSpecCompliantForm(e))return(await new Request(At.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(F.isArrayBufferView(e)||F.isArrayBuffer(e))return e.byteLength;if(F.isURLSearchParams(e)&&(e=e+""),F.isString(e))return(await KL(e)).byteLength},JL=async(e,t)=>{const n=F.toFiniteNumber(e.getContentLength());return n??XL(t)},Lf={http:SL,xhr:WL,fetch:Jl&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:g,withCredentials:y="same-origin",fetchOptions:w}=Fv(e);h=h?(h+"").toLowerCase():"text";let x=qL([i,a&&a.toAbortSignal()],c),_;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let T;try{if(f&&QL&&n!=="get"&&n!=="head"&&(T=await JL(g,s))!==0){let H=new Request(t,{method:"POST",body:s,duplex:"half"}),O;if(F.isFormData(s)&&(O=H.headers.get("content-type"))&&g.setContentType(O),H.body){const[C,W]=jv(T,Xl(Dv(f)));s=zv(H.body,Wv,C,W)}}F.isString(y)||(y=y?"include":"omit");const A="credentials"in Request.prototype;_=new Request(t,{...w,signal:x,method:n.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:A?y:void 0});let L=await fetch(_,w);const j=Mf&&(h==="stream"||h==="response");if(Mf&&(d||j&&E)){const H={};["status","statusText","headers"].forEach(B=>{H[B]=L[B]});const O=F.toFiniteNumber(L.headers.get("content-length")),[C,W]=d&&jv(O,Xl(Dv(d),!0))||[];L=new Response(zv(L.body,Wv,C,()=>{W&&W(),E&&E()}),H)}h=h||"text";let K=await Zl[F.findKey(Zl,h)||"text"](L,e);return!j&&E&&E(),await new Promise((H,O)=>{Lv(H,O,{data:K,headers:Xt.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:_})})}catch(A){throw E&&E(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new Ie("Network Error",Ie.ERR_NETWORK,e,_),{cause:A.cause||A}):Ie.from(A,A&&A.code,e,_)}})};F.forEach(Lf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv=e=>`- ${e}`,ZL=e=>F.isFunction(e)||e===null||e===!1,Vv={getAdapter:e=>{e=F.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let a=0;a<t;a++){n=e[a];let c;if(s=n,!ZL(n)&&(s=Lf[(c=String(n)).toLowerCase()],s===void 0))throw new Ie(`Unknown adapter '${c}'`);if(s)break;i[c||"#"+a]=s}if(!s){const a=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=t?a.length>1?`since :
`+a.map(qv).join(`
`):" "+qv(a[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Lf};function jf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bo(null,e)}function Gv(e){return jf(e),e.headers=Xt.from(e.headers),e.data=Nf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vv.getAdapter(e.adapter||Mi.adapter)(e).then(function(s){return jf(e),s.data=Nf.call(e,e.transformResponse,s),s.headers=Xt.from(s.headers),s},function(s){return Mv(s)||(jf(e),s&&s.response&&(s.response.data=Nf.call(e,e.transformResponse,s.response),s.response.headers=Xt.from(s.response.headers))),Promise.reject(s)})}const Yv="1.11.0",ec={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ec[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Kv={};ec.transitional=function(t,n,s){function i(a,c){return"[Axios v"+Yv+"] Transitional option '"+a+"'"+c+(s?". "+s:"")}return(a,c,d)=>{if(t===!1)throw new Ie(i(c," has been removed"+(n?" in "+n:"")),Ie.ERR_DEPRECATED);return n&&!Kv[c]&&(Kv[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,c,d):!0}},ec.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function ej(e,t,n){if(typeof e!="object")throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const a=s[i],c=t[a];if(c){const d=e[a],f=d===void 0||c(d,a,e);if(f!==!0)throw new Ie("option "+a+" must be "+f,Ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ie("Unknown option "+a,Ie.ERR_BAD_OPTION)}}const tc={assertOptions:ej,validators:ec},Vn=tc.validators;class bs{constructor(t){this.defaults=t||{},this.interceptors={request:new Av,response:new Av}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+a):s.stack=a}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Is(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:a}=n;s!==void 0&&tc.assertOptions(s,{silentJSONParsing:Vn.transitional(Vn.boolean),forcedJSONParsing:Vn.transitional(Vn.boolean),clarifyTimeoutError:Vn.transitional(Vn.boolean)},!1),i!=null&&(F.isFunction(i)?n.paramsSerializer={serialize:i}:tc.assertOptions(i,{encode:Vn.function,serialize:Vn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),tc.assertOptions(n,{baseUrl:Vn.spelling("baseURL"),withXsrfToken:Vn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=a&&F.merge(a.common,a[n.method]);a&&F.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),n.headers=Xt.concat(c,a);const d=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,d.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let g,y=0,w;if(!f){const _=[Gv.bind(this),void 0];for(_.unshift(...d),_.push(...h),w=_.length,g=Promise.resolve(n);y<w;)g=g.then(_[y++],_[y++]);return g}w=d.length;let x=n;for(y=0;y<w;){const _=d[y++],E=d[y++];try{x=_(x)}catch(T){E.call(this,T);break}}try{g=Gv.call(this,x)}catch(_){return Promise.reject(_)}for(y=0,w=h.length;y<w;)g=g.then(h[y++],h[y++]);return g}getUri(t){t=Is(this.defaults,t);const n=$v(t.baseURL,t.url,t.allowAbsoluteUrls);return Rv(n,t.params,t.paramsSerializer)}}F.forEach(["delete","get","head","options"],function(t){bs.prototype[t]=function(n,s){return this.request(Is(s||{},{method:t,url:n,data:(s||{}).data}))}}),F.forEach(["post","put","patch"],function(t){function n(s){return function(a,c,d){return this.request(Is(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}bs.prototype[t]=n(),bs.prototype[t+"Form"]=n(!0)});class Df{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const s=this;this.promise.then(i=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](i);s._listeners=null}),this.promise.then=i=>{let a;const c=new Promise(d=>{s.subscribe(d),a=d}).then(i);return c.cancel=function(){s.unsubscribe(a)},c},t(function(a,c,d){s.reason||(s.reason=new bo(a,c,d),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Df(function(i){t=i}),cancel:t}}}function tj(e){return function(n){return e.apply(null,n)}}function nj(e){return F.isObject(e)&&e.isAxiosError===!0}const $f={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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};Object.entries($f).forEach(([e,t])=>{$f[t]=e});function Qv(e){const t=new bs(e),n=hv(bs.prototype.request,t);return F.extend(n,bs.prototype,t,{allOwnKeys:!0}),F.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Qv(Is(e,i))},n}const it=Qv(Mi);it.Axios=bs,it.CanceledError=bo,it.CancelToken=Df,it.isCancel=Mv,it.VERSION=Yv,it.toFormData=Kl,it.AxiosError=Ie,it.Cancel=it.CanceledError,it.all=function(t){return Promise.all(t)},it.spread=tj,it.isAxiosError=nj,it.mergeConfig=Is,it.AxiosHeaders=Xt,it.formToJSON=e=>Pv(F.isHTMLForm(e)?new FormData(e):e),it.getAdapter=Vv.getAdapter,it.HttpStatusCode=$f,it.default=it;const Xv="https://api.edmap.space",nc=it.create();nc.defaults.baseURL=Xv,nc.interceptors.request.use(async e=>{const t=localStorage.getItem("access");return e.headers.Accept="application/json",t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));const ji={};function Jv(e){return localStorage.removeItem("access"),localStorage.removeItem("refresh"),localStorage.removeItem("userId"),window.location.href="/sign-in",Promise.reject(e)}function Zv(e,t){const n=e.data.accessToken,s=e.data.refreshToken;return localStorage.setItem("access",n),localStorage.setItem("refresh",s),t.headers||(t.headers={}),t.headers.Authorization=`Bearer ${n}`,nc(t)}nc.interceptors.response.use(e=>e,async e=>{const t=e.config;if(t.url.startsWith("/admin/login")||e.response.status!==401||t._retry)return Promise.reject(e);t._retry=!0;const n=localStorage.getItem("refresh");if(n)try{if(!ji.time||Date.now()-ji.time>1e3*3){const i=it.post(`${Xv}/auth/revalidate-token`,{refreshToken:n},{headers:{Authorization:`Bearer ${n}`}});ji.time=Date.now(),ji.request=i;const a=await i;return Zv(a,t)}const s=await ji.request;if(!s)throw new Error;return Zv(s,t)}catch(s){return Jv(s)}else return Jv(e)});const rj=e=>{if(!e)return"";try{const n=e.startsWith("http://")||e.startsWith("https://")?e:`https://${e}`;let i=new URL(n).hostname;return i=i.replace(/^www\./i,""),i.includes(".")||(i+=".com"),i}catch{let n=e.replace(/^https?:\/\//i,"").replace(/^www\./i,"");return n=n.split(/[\/?#]/)[0],n&&!n.includes(".")&&(n+=".com"),n||""}},sj=({data:e})=>v.jsxs(R4,{href:e.url,target:"_blank",children:[v.jsx(A4,{children:v.jsx(O4,{src:`https://www.google.com/s2/favicons?sz=64&domain_url=${encodeURIComponent(e.url)}`,alt:"favicon"})}),v.jsxs(P4,{children:[v.jsx(pv,{children:rj(e.url)}),v.jsx(N4,{children:e.title})]}),v.jsx(M4,{})]}),oj=se("div")({name:"Container",class:"edc85czkw",propsAsIs:!1}),ij=({data:e})=>v.jsxs(oj,{role:"alert",children:[v.jsx("p",{children:e.message}),v.jsx("p",{children:e.title})]}),aj=e=>{const t=[];for(let n=0;n<e.length;n++){if(e[n].type!=="header"){t.push(e[n]);continue}const s={id:e[n].id,data:[e[n]],type:"mergedHeaderAndParagraph"};let i=!1;for(let a=n+1;a<e.length&&!i;a++){if(e[a].type!=="paragraph"){i=!0;continue}s.data.push(e[a]),n++}t.push(s)}return t},lj=e=>{if(e==="paragraph")return v4;if(e==="list")return y4;if(e==="quote")return T4;if(e==="header")return i4;if(e==="mergedHeaderAndParagraph")return C4;if(e==="code")return n4;if(e==="table")return k4;if(e==="image")return I4;if(e==="linkBlock")return sj;if(e==="warning")return ij;if(e==="raw")return b4},eS=(e,t,n)=>{const s=[];return e.forEach(({id:i,data:a,type:c})=>{const d=lj(c),f=d?v.jsx(d,{data:a,replacements:t,...n},i):null;s.push(f)}),s},Co=({blocksArray:e,replacements:t={},...n})=>{if(!e||!Array.isArray(e))return;const s=aj(e),i=eS(s,t,n);return v.jsx(rM,{...n,children:i})},tS=({data:e,isInfoModalOpen:t,closeInfoModal:n,isPrizeModal:s})=>{var c,d;const i=R.useRef(null),a=f=>{i.current&&!i.current.contains(f.target)&&n()};if(R.useEffect(()=>(t?document.addEventListener("mousedown",a):document.removeEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}),[t]),!!t)return v.jsx(Y3,{children:v.jsxs(K3,{ref:i,children:[v.jsx(Q3,{onClick:n,children:"✕"}),s?v.jsx(Co,{blocksArray:(c=e==null?void 0:e.awardRichText)==null?void 0:c.blocks,isPrizeDesc:!0}):v.jsx(Co,{blocksArray:(d=e==null?void 0:e.descriptionRichText)==null?void 0:d.blocks,isPrizeInfo:!0})]})})},cj=$("div")({name:"Container",class:"edc1uixbmy",propsAsIs:!1}),uj=$("ul")({name:"List",class:"edl1h2mntg",propsAsIs:!1}),dj=$("div")({name:"Wrapper",class:"edwkqefnd",propsAsIs:!1}),fj=$("li")({name:"Participant",class:"edp1m90lkb",propsAsIs:!1}),pj=$("li")({name:"ParticipantPosition",class:"edplp9wkn",propsAsIs:!1}),hj=$("div")({name:"ParticipantWrapper",class:"edpi7ekwg",propsAsIs:!1}),mj=$("div")({name:"PointsWrapper",class:"edp8vzmbe",propsAsIs:!1}),gj=$("p")({name:"Points",class:"edpnrrx6w",propsAsIs:!1}),yj=$("div")({name:"LoaderWrapper",class:"edli7avpg",propsAsIs:!1}),vj=()=>v.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M8.85595 3.09539C9.2085 1.97699 10.7925 1.97699 11.1451 3.09539L12.2384 6.56383C12.3958 7.06308 12.8591 7.40262 13.383 7.40262L16.9987 7.40263C18.1521 7.40263 18.6413 8.86985 17.7184 9.56103L14.7296 11.7993C14.3221 12.1045 14.1517 12.6335 14.3048 13.1189L15.4311 16.692C15.7814 17.8032 14.4999 18.7103 13.5668 18.0116L10.7202 15.8798C10.2937 15.5604 9.70737 15.5604 9.28082 15.8798L6.43425 18.0116C5.5012 18.7103 4.21968 17.8032 4.56997 16.692L5.6963 13.1189C5.8493 12.6335 5.67898 12.1045 5.27143 11.7993L2.28267 9.56103C1.35974 8.86985 1.84897 7.40263 3.00238 7.40263L6.61804 7.40262C7.14191 7.40262 7.60524 7.06308 7.76262 6.56383L8.85595 3.09539Z"})}),Sj=()=>v.jsxs("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("path",{d:"M17.4 18.6566C17.4 14.5697 14.0869 11.2566 9.99998 11.2566C5.91307 11.2566 2.59998 14.5697 2.59998 18.6566",stroke:"white",strokeLinecap:"round"}),v.jsx("path",{d:"M13.6 5.45669C13.6 7.44491 11.9882 9.05669 10 9.05669C8.0118 9.05669 6.40002 7.44491 6.40002 5.45669C6.40002 3.46846 8.0118 1.85669 10 1.85669C11.9882 1.85669 13.6 3.46846 13.6 5.45669Z",stroke:"white"})]}),wj=$("ul")({name:"Container",class:"edc65edga",propsAsIs:!1}),_j=()=>e=>e.active?"var(--accent)":"var(--popup-menu-tabs)",Ej=()=>e=>(e.active,"var(--accent)"),xj=$("li")({name:"PaginationItem",class:"edp1cf5kvo",propsAsIs:!1,vars:{"p1cf5kvo-0":[_j()],"p1cf5kvo-1":[Ej()]}}),Tj=$("div")({name:"Dots",class:"eddw2ykav",propsAsIs:!1}),nS=$("button")({name:"ChevronButton",class:"edcjgljwh",propsAsIs:!1}),rS=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:v.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"})}),kj=({currentPage:e,handleSetCurrentPage:t,totalPages:n})=>{const s=(a,c)=>a<=7?Array.from({length:a},(d,f)=>f+1):c<=4?[1,2,3,4,5,"...",a]:c>=a-2?[1,"...",a-4,a-3,a-2,a-1,a]:[1,"...",c-1,c,c+1,"...",a];if(n<2)return;const i=s(n,e);return v.jsxs(wj,{children:[v.jsx(nS,{onClick:()=>t(e-1),disabled:e<2,children:v.jsx(rS,{})}),i.map((a,c)=>v.jsx(xj,{active:a===e,children:a==="..."?v.jsx(Tj,{children:"..."}):v.jsx(M1,{title:a,onClick:()=>t(a)})},c)),v.jsx(nS,{onClick:()=>t(e+1),disabled:e>=n,children:v.jsx(rS,{})})]})},Ij=$("div")({name:"Container",class:"edc1o85nbd",propsAsIs:!1}),bj=$("h1")({name:"Title",class:"edtueka45",propsAsIs:!1}),sS=({title:e})=>v.jsxs(Ij,{children:[v.jsx("svg",{width:"60px",height:"60px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M22.8 12A10.8 10.8 0 1 1 10 1.393v1.014a9.8 9.8 0 1 0 4 0V1.393A10.812 10.812 0 0 1 22.8 12z"})}),e&&v.jsx(bj,{children:e})]}),Cj=()=>{ut(_=>_.results);const e=ke(_=>_.mapLeaderboard),t=ke(_=>_.setMapLeaderboard),[n,s]=R.useState(1),[i,a]=R.useState(0),[c,d]=R.useState(!1),f=Je(_=>_.translations.user),h=10,g=(n-1)*h,y=Math.ceil(i/h),w=()=>{var E;const _=(E=window.__widgetEdmap)==null?void 0:E.mapId;_&&(d(!0),PP(_,h,g).then(T=>{a(T.data.totalCount),t(T.data.results)}).catch(T=>{console.error(T)}).finally(()=>d(!1)))},x=_=>{d(!0),s(_)};return R.useEffect(()=>{w()},[n]),c?v.jsx(yj,{children:v.jsx(sS,{})}):v.jsxs(cj,{children:[v.jsx(uj,{children:e==null?void 0:e.map((_,E)=>{var A;const T=g+E+1;return v.jsxs(dj,{children:[v.jsxs(hj,{children:[v.jsx(pj,{children:T}),v.jsx(Sj,{}),v.jsx(fj,{children:((A=_==null?void 0:_.User)==null?void 0:A.username)??f.defaultName})]}),v.jsxs(mj,{children:[v.jsx(vj,{}),v.jsx(gj,{children:_==null?void 0:_.allPoints})]})]},_==null?void 0:_.id)})}),i&&v.jsx(kj,{currentPage:n,handleSetCurrentPage:x,totalPages:y})]})},Rj=$("div")({name:"Background",class:"edb1d6ibuo",propsAsIs:!1}),Aj=$("div")({name:"Container",class:"edc9edd3f",propsAsIs:!1}),Oj=$("div")({name:"PrizeBlock",class:"edpzra8fb",propsAsIs:!1}),Pj=$("div")({name:"ButtonBlock",class:"edb17wiemr",propsAsIs:!1}),Nj=({selectedPrize:e,isOpen:t,closeModal:n,openRegistration:s})=>{const i=R.useRef(null),a=Je(f=>f.translations.settings.signInPopup),c=f=>{i.current&&!i.current.contains(f.target)&&n()};R.useEffect(()=>(t?document.addEventListener("mousedown",c):document.removeEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}),[t]);const d=()=>{s(),n()};return t?v.jsx(Rj,{children:v.jsxs(Aj,{ref:i,children:[v.jsxs(T1,{children:[v.jsx(k1,{children:a.title}),v.jsx(I1,{children:a.subtitle})]}),v.jsx(Oj,{children:v.jsxs(C1,{children:[v.jsx(R1,{children:v.jsx(j1,{iconId:e==null?void 0:e.iconId})}),v.jsx(A1,{children:e==null?void 0:e.name})]})}),v.jsxs(Pj,{children:[v.jsx(qn,{title:a.buttonTitle,onClick:n}),v.jsx(qn,{"data-testid":"edmap-widget__signin-popup-btn",title:a.accentButtonTitle,isAccent:!0,onClick:d})]})]})}):null},Cn=Yt(e=>({isPanelModalOpen:!1,isRegistrationOpen:!1,setIsPanelOpen:t=>e({isPanelModalOpen:t}),setIsRegistrationOpen:t=>e({isRegistrationOpen:t})})),Mj=()=>{var De;const e=Cn(te=>te.isPanelModalOpen),t=Cn(te=>te.setIsPanelOpen),n=Cn(te=>te.isRegistrationOpen),s=Cn(te=>te.setIsRegistrationOpen),[i,a]=R.useState(0),[c,d]=R.useState(null),[f,h]=R.useState(!1),[g,y]=R.useState(!0),w=ut(te=>te.results),x=(De=w==null?void 0:w.prizes)==null?void 0:De[c],[_,E]=R.useState(x),{isOpen:T,closeModal:A,openModal:L}=zl(),{isOpen:j,closeModal:K,openModal:H}=zl(),O=(w==null?void 0:w.allPoints)||0,C=Je(te=>te.translations.popup),W=O<10?1:Math.floor(O/10),B=R.useRef(null),U=m1();function J(te,Se){d(te),Se==="prize"?(h(!0),L()):(h(!1),L())}const Z=te=>{E(te),H()},ue=[v.jsx(NN,{openSignInInvite:Z,openInfoModal:J}),v.jsx(_f,{quests:w==null?void 0:w.quests}),v.jsx(Cj,{}),v.jsx(S3,{openSignInModal:()=>s(!0),setIsSocialModalVisible:()=>{}})],me=te=>{var oe;!B.current||(((oe=te.composedPath)==null?void 0:oe.call(te))||[]).includes(B.current)||(a(0),t(!1))};if(R.useEffect(()=>(e?setTimeout(()=>document.addEventListener("click",me)):document.removeEventListener("click",me),()=>{document.removeEventListener("click",me)}),[e]),!!e)return v.jsx(YP,{ref:B,isSignInModalOpen:n,id:"edmap-widget__popup",children:v.jsxs(KP,{children:[v.jsx(r3,{userLevel:W}),!U&&g&&v.jsx(QP,{children:v.jsx(Ef,{setIsRegInfoVisible:y,openSignInModal:()=>s(!0),setIsSocialModalVisible:()=>{}})}),v.jsx(rN,{data:C.menuItems,activeIndex:i,setActiveIndex:a}),v.jsx(XP,{children:ue[i]}),v.jsx(K1,{isOpen:n,closeModal:()=>s(!1),setIsSocialModalVisible:()=>{},isSocialModalVisible:!0}),v.jsx(Nj,{selectedPrize:_,isOpen:j,closeModal:K,openRegistration:()=>s(!0)}),v.jsx(tS,{data:x,isInfoModalOpen:T,closeInfoModal:A,isPrizeModal:f})]})})},Lj=$("div")({name:"Container",class:"edc16l98jz",propsAsIs:!1}),jj=$("div")({name:"ImageWrapper",class:"edi13krnav",propsAsIs:!1}),Dj=$("div")({name:"InfoWrapper",class:"edied2wr6",propsAsIs:!1}),$j=$("div")({name:"LevelWrapper",class:"edl11c2ni8",propsAsIs:!1}),Bj=$("div")({name:"TextWrapper",class:"edt133co2j",propsAsIs:!1}),Fj=$("img")({name:"Confetti",class:"edc1etko73",propsAsIs:!1}),zj=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",...e},R.createElement("path",{stroke:"#fff",strokeLinecap:"square",strokeWidth:2,d:"m2 2 14 14m0-14L2 16"})),Uj=({...e})=>v.jsx(Hj,{...e,children:v.jsx(zj,{})}),Hj=se("button")({name:"Button",class:"edb1b1pm51",propsAsIs:!1}),Wj="https://widget.edmap.space/assets/confetti-edmap-widget.gif",qj=({points:e,setPointsAreReceived:t})=>{const[n,s]=R.useState(0),i=ut(f=>f.pointsAreReceived),a=ke(f=>f.isFinished),c=R.useRef(e),d=R.useRef(null);return R.useEffect(()=>(a&&c.current!==e&&(s(f=>f+1),t(!0),d.current=setTimeout(()=>{t(!1)},8e3)),c.current=e,()=>clearTimeout(d)),[e,a]),i&&v.jsx(Fj,{src:Wj,alt:"Confetti"})},Vj=()=>{var f,h,g,y,w,x,_;const e=Cn(E=>E.isPanelModalOpen),t=Cn(E=>E.setIsPanelOpen),n=ut(E=>E.results),s=ut(E=>E.setPointsAreReceived),i=Je(E=>E.translations.popupBar),a=((h=(f=n==null?void 0:n.prizes)==null?void 0:f.filter(E=>E==null?void 0:E.awardRichText))==null?void 0:h.length)??0,c=(n==null?void 0:n.allPoints)||0,d=()=>{t(!0),s(!1)};return v.jsx(v.Fragment,{children:e?v.jsx(Uj,{onClick:()=>t(!1),id:"edmap-widget__popup-bar-btn"}):v.jsxs(Lj,{onClick:d,id:"edmap-widget__popup-bar",children:[v.jsx(jj,{children:v.jsx(Sf,{src:(y=(g=n==null?void 0:n.User)==null?void 0:g.avatar)==null?void 0:y.src})}),v.jsxs(Dj,{children:[v.jsxs($j,{children:[v.jsx(vf,{level:wf(c)}),v.jsxs(Bj,{children:[v.jsx(Ts,{text:i.prizesTitle,progressValue:a??0,overallValue:((w=n==null?void 0:n.prizes)==null?void 0:w.length)??0}),v.jsx(Ts,{text:i.skillsTitle,progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((x=n==null?void 0:n.map)==null?void 0:x.points)??0})]})]}),v.jsx(jl,{progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((_=n==null?void 0:n.map)==null?void 0:_.points)??0})]}),v.jsx(qj,{points:c,setPointsAreReceived:s})]})})};Yt((e,t)=>({isOpen:!1,toggle:()=>e(n=>({isOpen:!n.isOpen})),closeModal:()=>e({isOpen:!1}),openModal:()=>e({isOpen:!0})}));const rc=Yt(e=>({popupBarStyle:{},widgetContainerStyle:{},setPopupBarStyle:t=>e({popupBarStyle:t}),setWidgetContainerStyle:t=>e({widgetContainerStyle:t})})),Gj=$("div")({name:"Container",class:"edc1vap6o9",propsAsIs:!1}),Yj=()=>{const e=Cn(i=>i.isPanelModalOpen),t=rc(i=>i.popupBarStyle),n=ke(i=>i.quest);return(n==null?void 0:n.isMiniPanelVisible)||e?v.jsxs(Gj,{style:t,children:[v.jsx(Mj,{}),(n==null?void 0:n.isMiniPanelVisible)&&v.jsx(Vj,{})]}):null};var sc=zh();const oS=e=>{if(!e)return{};if(e.startsWith("{"))try{e=e.slice(1,e.length-1)}catch(n){return Tn(n),console.error("Parse Error: something wrong with custom style string"),{}}const t={};return e.split(";").forEach(n=>{const[s,i]=n.split(":").map(a=>a.trim());if(s&&i){const a=s.replace(/-([a-z])/g,c=>c[1].toUpperCase());t[a]=i}else console.warn(`Parse Warning: faild to parse custom property style for property: ${s||"not found"}`)}),t},Kj=(e,t)=>{if(e==="admin"){const n=t.match(/quests\/([^/?]+)/);return(!n||!n[1])&&console.error("Parse Error: wrong url for quest search in admin panel"),n[1]}else return t},Qj=$("div")({name:"Container",class:"edcsc8z9h",propsAsIs:!1}),Xj=$("div")({name:"HidingContainer",class:"edhc15unp",propsAsIs:!1}),iS=$("div")({name:"QuestionBlock",class:"edq12kw8l3",propsAsIs:!1}),Jj=$("div")({name:"HeaderScrollableSpace",class:"edh1iwfgmu",propsAsIs:!1}),Zj=$("div")({name:"SidePadding",class:"edsz53tfr",propsAsIs:!1}),e6=$("div")({name:"Container",class:"edc8gkhop",propsAsIs:!1}),t6=$("div")({name:"TitleSection",class:"edtp3l3kp",propsAsIs:!1}),n6=$("div")({name:"Wrapper",class:"edw11bk3uj",propsAsIs:!1}),aS=$("div")({name:"Divider",class:"edd1nx5xv8",propsAsIs:!1}),r6=$("h2")({name:"Title",class:"edt5m07eq",propsAsIs:!1}),s6=$("div")({name:"AvatarContainer",class:"eda1xyelki",propsAsIs:!1}),o6=$("button")({name:"AvatarButton",class:"eda1j00vs7",propsAsIs:!1}),i6=$("div")({name:"LevelContainer",class:"edlb6hzvg",propsAsIs:!1}),a6=$("div")({name:"ButtonContainer",class:"edb15jaq2l",propsAsIs:!1}),l6=({icon:e,...t})=>v.jsx(gf,{...t,children:e}),c6=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 18 18",...e},R.createElement("path",{stroke:"#fff",strokeLinecap:"square",strokeWidth:2,d:"m2 2 14 14m0-14L2 16"})),u6=$("div")({name:"Container",class:"edchp8usr",propsAsIs:!1}),d6=$("span")({name:"Text",class:"edt141dyxo",propsAsIs:!1}),lS=({minutes:e,seconds:t})=>(e=Math.max(0,e),t=Math.max(0,t),v.jsxs(d6,{children:[e.toString().padStart(2,"0"),":",t.toString().padStart(2,"0")]})),f6=e=>{const t=h1(e);if(!t)return Date.now();const[n,s]=t.split("@");return Number(s)},p6=e=>Date.now()-e,h6=(e,t)=>{const n=f6(t);return m6(e,n)},m6=(e,t)=>{const n=Math.floor(p6(t)/1e3),s=e-n,i=s%60,a=Math.floor(s/60);return{seconds:i,minutes:a}},oc=200,Fr=Yt((e,t)=>({isHidden:!1,contentRef:null,registerRef:n=>{e({contentRef:n})},startFadeTransition:()=>{const n=t().contentRef;if(!n||!n.current){const f=Promise.resolve();return[f,()=>f]}e({isHidden:!0});const i=(f=>{const h=f.current;if(!h)return()=>{};const g=h.getBoundingClientRect().height;return h.style.height=`${g}px`,()=>{setTimeout(()=>{h.style.height="auto";const y=h.getBoundingClientRect().height;h.style.height=`${g}px`,setTimeout(()=>{h.style.height=`${y}px`},25)},25)}})(n),a=new Promise(f=>{setTimeout(()=>{f()},oc)}),c=async()=>{await a,i(),e({isHidden:!1})};return[a,async(f=[])=>{const h=U1(f);return c(),h}]}})),g6=$("div")({name:"Container",class:"edc1qu2wft",propsAsIs:!1}),y6=$("div")({name:"TextBlock",class:"edtoc84xr",propsAsIs:!1}),v6=$("p")({name:"RestrictionText",class:"edr6awsvd",propsAsIs:!1}),Bf=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e},R.createElement("path",{fill:"currentColor",d:"M20 12a8 8 0 1 0-16 0 8 8 0 0 0 16 0m2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}),R.createElement("path",{fill:"currentColor",d:"m13 11.106 1.732-1.732 1.415 1.414-3.733 3.732L11 13.5V6h2z"})),S6=({timeValues:e})=>{const{remainingTitle:t}=Je(n=>n.translations.timer);return v.jsxs(g6,{children:[v.jsx(Bf,{}),v.jsxs(y6,{children:[v.jsx(v6,{children:t}),v.jsx(lS,{...e})]})]})},w6=$("div")({name:"Container",class:"edc16uhwme",propsAsIs:!1}),_6=({timeValues:e})=>v.jsxs(w6,{children:[v.jsx(Bf,{}),v.jsx(lS,{...e})]}),ic=Yt(e=>({isTimerOverlapped:!1,values:{minutes:0,seconds:0},setIsTimerOverlapped:t=>e({isTimerOverlapped:t}),setValues:t=>e({values:t})})),cS=({type:e})=>{const t=ke(h=>h.quest),n=ic(h=>h.values),s=ic(h=>h.setValues),i=ke(h=>h.setIsFinished),a=ke(h=>h.isFinished),c=Fr(h=>h.startFadeTransition),d=()=>h6(t.timeLimitSeconds,t.id),f=()=>{const[h,g]=c();return g([]).then(y=>Promise.all([y,h])).then(()=>{i(!0),s(d())})};return R.useEffect(()=>{if(a)return;const h=()=>{const y=d();if(y.minutes<=0&&y.seconds<=0){f(),s({minutes:0,seconds:0});return}s(y)},g=setInterval(h,1e3);return h(),()=>{clearInterval(g)}},[t.id,a]),e==="horizontal"?v.jsx(S6,{timeValues:n}):v.jsx(_6,{timeValues:n})},E6=()=>{const e=ke(n=>n.quest),t=ic(n=>n.isTimerOverlapped);return e.timeLimitSeconds===0||!t?null:v.jsxs(u6,{children:[v.jsx(aS,{}),v.jsx(cS,{type:"vertical"})]})},uS=Yt(e=>({height:0,width:null,setHeight:t=>e({height:t}),setWidth:t=>e({width:t}),headerShift:0,setHeaderShift:t=>e({headerShift:t})})),Rn=Yt(e=>({topOffset:0,marginRootTop:0,gapFromOffset:0,breakPoints:null,setGapFromOffset:t=>e({gapFromOffset:t}),setTopOffset:t=>e({topOffset:t}),setMarginRootTop:t=>e({marginRootTop:t}),setBreakPoints:t=>e({breakPoints:t})})),ac=Yt((e,t)=>({height:null,width:null,initialHeight:0,top:0,setTop:n=>e({top:n}),setHeight:n=>e({height:n}),setWidth:n=>e({width:n}),getHeight:()=>t().height,setInitialHeight:n=>e({initialHeight:n,height:n})})),x6=({isSticky:e,style:t})=>{var A,L,j,K,H;const n=ut(O=>O.results),s=ke(O=>O.quest),i=Cn(O=>O.isPanelModalOpen),a=Cn(O=>O.setIsPanelOpen),c=R.useRef(null),d=Je(O=>O.translations.header),f=uS(O=>O.setHeight),h=ac(O=>O.width),g=Rn(O=>O.topOffset),y=Rn(O=>O.marginRootTop),w=()=>{a(!i)};R.useEffect(()=>{if(!(c.current instanceof HTMLElement))return;const C=window.getComputedStyle(c.current),W=parseFloat(C.height),B=parseFloat(C.paddingBottom);f(W-B/2)},[]);const x=O=>{O.preventDefault(),O.stopPropagation()},_=i?c6:z1,E=e?-g+y:-g,T=v.jsxs(e6,{id:"edmap-header",ref:c,style:{position:e?"fixed":"absolute",top:`${E}px`,...t,width:h??"100%"},children:[v.jsx(M3,{}),v.jsxs(t6,{children:[v.jsxs(n6,{children:[v.jsx(r6,{children:s==null?void 0:s.name}),v.jsx(Ts,{progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((A=n==null?void 0:n.map)==null?void 0:A.points)??0,text:d.progressText})]}),v.jsx(jl,{progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((L=n==null?void 0:n.map)==null?void 0:L.points)??0})]}),v.jsx(a6,{children:v.jsx(l6,{onMouseDown:x,onClick:w,icon:v.jsx(_,{})})}),v.jsx(aS,{}),v.jsxs(s6,{children:[v.jsx(Sf,{style:{cursor:"pointer"},onMouseDown:x,onClick:w,src:(K=(j=n==null?void 0:n.User)==null?void 0:j.avatar)==null?void 0:K.src,alt:(H=d.image)==null?void 0:H.alt}),v.jsx(o6,{onClick:w,"aria-label":"avatar-button"}),v.jsx(i6,{children:v.jsx(vf,{level:wf(n==null?void 0:n.allPoints)})})]}),v.jsx(E6,{})]});return e&&typeof document<"u"?sc.createPortal(T,document.body):T},dS=Yt(e=>({top:0,bottom:0,height:0,setTop:t=>e({top:t}),setBottom:t=>e({bottom:t}),setHeight:t=>e({height:t})})),T6=()=>{const e=ke(E=>E.increaseStep),t=ke(E=>E.currentStep),n=ke(E=>E.overallSteps),s=Eo(E=>E.resetAnswers),i=ke(E=>E.setIsFinished),a=ke(E=>E.isFinished),c=Eo(E=>E.answers),d=ke(E=>E.quest),f=R.useRef(null),h=dS(E=>E.setHeight),g=Je(E=>E.translations.footer),y=Fr(E=>E.startFadeTransition);R.useEffect(()=>{f.current&&h(f.current.clientHeight)},[f.current]);const w=async()=>{const E=d.test.questions[t-1],T=await AP(d.id,E.id);await RP(c!=null&&c.length?c:T);const[A,L]=y();if(t===n){await A,await i(!0),await L([]);return}await Promise.all([L(q1(d.test.questions,t)),A]),e(),s()};if(!(d!=null&&d.id))return;const{questType:x=""}=d,_=x==="Journey";return v.jsxs(x3,{ref:f,children:[v.jsx(w3,{children:v.jsx(F1,{})}),!a&&!_&&v.jsxs(E3,{children:[v.jsx(_3,{children:v.jsx(Ts,{progressValue:t,overallValue:n})}),v.jsx(V1,{children:v.jsx(qn,{id:"edmap-widget__accept-btn",title:g.accentButtonTitle,isAccent:!0,onClick:w})})]})]})},k6=(e,t=!1,n=0)=>{const s=R.useRef(null),i=R.useRef(null),a=R.useRef(null);return R.useEffect(()=>{const c=s.current;if(!c)return;const d=(h,g)=>{let y=null;if(t){const w=h.top,x=a.current!==null&&a.current<n,_=w-n>0;x&&_&&(y=!0),a.current=h.top}else g?y=!1:h.top<n&&(y=!0);y===null||i.current===y||e(y)},f=new IntersectionObserver(h=>{h.forEach(g=>{d(g.boundingClientRect,g.isIntersecting)})},{root:null,threshold:0});return f.observe(c),()=>{f.disconnect()}},[e,t,n,s]),s},fS=$("div")({name:"Container",class:"edc12456a3",propsAsIs:!1}),I6=$(fS)({name:"BottomSensorContainer",class:"edbig50hz",propsAsIs:!0}),b6=Tt.forwardRef(({setIsSensorTriggered:e,isBottomUpTriggered:t,rootOffset:n,topOffset:s,bottomOffset:i,className:a,color:c,isStickToBottom:d=!1,isPortal:f=!0},h)=>{const g=k6(e,t,n);R.useImperativeHandle(h,()=>g.current,[]);const y=R.useMemo(()=>({marginTop:s||"unset",marginBottom:i||"unset",backgroundColor:c??"red"}),[s,i,c]);let w=null;return d?w=v.jsx(I6,{className:a??"edmap-sensor",ref:g,style:y}):w=v.jsx(fS,{className:a??"edmap-sensor",ref:g,style:y}),f?sc.createPortal(w,document.body):w}),Cs=Tt.memo(b6),C6=$("div")({name:"Background",class:"edb1tdpu9l",propsAsIs:!1}),R6=$(N1)({name:"Button",class:"edb16l2gyb",propsAsIs:!0}),A6=$("p")({name:"Title",class:"edt15nnhmy",propsAsIs:!1}),O6=$("p")({name:"Subtitle",class:"eds1a894cv",propsAsIs:!1}),P6=$("div")({name:"Container",class:"edczp6bkd",propsAsIs:!1}),N6=$("div")({name:"TextContainer",class:"edt1807jed",propsAsIs:!1}),M6=({width:e=24,height:t=24,...n})=>v.jsx("svg",{width:e,height:t,viewBox:"0.5 -0.5 17 17",xmlns:"http://www.w3.org/2000/svg",fill:"none",...n,children:v.jsxs("g",{transform:"translate(1.000000, 2.000000)",fill:"currentColor",children:[v.jsx("path",{d:"M15.796,6.908 L14.234,5.21 C14.019,4.998 13.672,4.998 13.458,5.21 L11.894,6.908 C11.679,7.122 11.679,7.467 11.894,7.68 L13.188,7.68 C12.702,9.505 11.27,10.976 9.399,11.47 C7.231,12.042 4.913,11.191 3.632,9.351 L2.541,10.102 C3.807,11.921 5.884,12.966 8.039,12.966 C8.604,12.966 9.176,12.894 9.737,12.745 C12.188,12.099 14.04,10.112 14.55,7.68 L15.795,7.68 C16.01,7.467 16.01,7.122 15.796,6.908 Z"}),v.jsx("path",{d:"M4.475,6.021 C4.69,5.808 4.69,5.462 4.475,5.249 L3.018,5.249 C3.516,3.448 4.936,2.001 6.789,1.511 C8.959,0.938 11.275,1.791 12.555,3.632 L13.647,2.88 C12.049,0.585 9.161,-0.479 6.448,0.235 C4.016,0.878 2.175,2.84 1.648,5.249 L0.196,5.249 C-0.019,5.463 -0.019,5.809 0.196,6.021 L1.834,7.658 C2.048,7.87 2.396,7.87 2.61,7.658 L4.475,6.021 Z"})]})});class L6 extends Tt.Component{constructor(t){super(t),this.state={isError:!1}}static getDerivedStateFromError(){return{isError:!0}}componentDidCatch(t,n){Tn(t)}handleRefresh(){window.location.reload()}render(){return this.state.isError?v.jsx(C6,{children:v.jsxs(P6,{children:[v.jsxs(N6,{children:[v.jsx(A6,{children:this.props.translations.title}),v.jsx(O6,{children:this.props.translations.subtitle})]}),v.jsx(R6,{onClick:()=>this.handleRefresh(),children:v.jsx(M6,{width:80,height:75})})]})}):this.props.children}}const pS=({children:e})=>{const t=Je(n=>n.translations.globalError);return v.jsx(L6,{translations:t,children:e})},j6=({children:e})=>{const t=ke(n=>n.quest);return t!=null&&t.id?v.jsx(v.Fragment,{children:e}):v.jsx(sS,{})},D6=$("div")({name:"Container",class:"edctzb4h8",propsAsIs:!1}),$6=$("p")({name:"Title",class:"edtg41o65",propsAsIs:!1}),Ff=e=>{if(!e)return 60;const n=new Date(e).getTime()-Date.now();return n<0?0:Math.round(n/1e3)},B6=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=e%60,i=String(n).padStart(2,"0"),a=String(s).padStart(2,"0");return t<1?`${i}:${a}`:`${String(t).padStart(2,"0")}:${i}:${a}`},F6=$("div")({name:"Container",class:"edc11azq9p",propsAsIs:!1}),hS=({expiresAt:e,onTimeEnds:t})=>{const[n,s]=R.useState(Ff(e)),i=Je(a=>a.translations.user.ban);return R.useEffect(()=>{s(Ff(e))},[e]),R.useEffect(()=>{const a=setInterval(()=>{s(Ff(e))},1e3);return()=>{clearInterval(a)}},[e]),R.useEffect(()=>{n>0||t&&t()},[n]),v.jsxs(F6,{children:[v.jsx(Bf,{}),v.jsxs("span",{children:[i.wait," ",B6(n)]})]})},mS=async e=>{if(!wo())return!1;const{data:n}=await ct.get(`/banned-user/${wo()}/${e}`),{isBanned:s,expiresAt:i}=n;return{isBanned:s,expiresAt:i}},gS=()=>{const e=ke(d=>d.quest),[t,n]=R.useState(!0),[s,i]=R.useState({isBanned:!1,expiresAt:null}),a=R.useCallback(()=>{n(!0)},[]),c=R.useCallback(()=>{mS(e.id).then(({isBanned:d,expiresAt:f})=>{i({isBanned:d,expiresAt:f}),n(!d)})},[e.id]);return{isBanExpired:t,expiresAt:s.expiresAt,onTimeEnds:a,refreshBanStatus:c}},z6=({children:e})=>{const t=Je(d=>d.translations.user.ban),n=ke(d=>d.quest),{isBanExpired:s,expiresAt:i,onTimeEnds:a,refreshBanStatus:c}=gS();return R.useEffect(()=>{c()},[n==null?void 0:n.id]),s?e:v.jsxs(D6,{children:[v.jsx($6,{children:t.forbiddenQuest}),v.jsx(hS,{expiresAt:i,onTimeEnds:a})]})},U6=(e,t)=>{R.useEffect(()=>{if(!e.current)return;const n=()=>{t(e.current.clientWidth)};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[e.current])},H6=$("div")({name:"Container",class:"edcxrmrad",propsAsIs:!1}),W6=$("div")({name:"HideableContent",class:"edh1kwe0th",propsAsIs:!1}),q6=$("div")({name:"Divider",class:"edd1ctwus6",propsAsIs:!1}),V6=$("button")({name:"QuestAnswerCardWrapper",class:"edqfq64oi",propsAsIs:!1}),G6=se("div")({name:"TooltipContainer",class:"edtlfbks8",propsAsIs:!1}),Y6=()=>({isStickLeft:e})=>e?"0":"102%",K6=()=>({isVisible:e})=>e?"visible":"hidden",Q6=()=>({isVisible:e,isFading:t})=>e&&!t?"1":"0",X6=()=>({zIndex:e=100})=>e,J6=se("div")({name:"TooltipContent",class:"edtlzs19l",propsAsIs:!1,vars:{"tlzs19l-0":[Y6()],"tlzs19l-1":[K6()],"tlzs19l-2":[Q6()],"tlzs19l-3":[X6()]}}),yS=e=>{let t;const n=new Set,s=(h,g)=>{const y=typeof h=="function"?h(t):h;if(!Object.is(y,t)){const w=t;t=g??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(x=>x(t,w))}},i=()=>t,d={setState:s,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(s,i,d);return d},Z6=e=>e?yS(e):yS,e5=e=>e;function t5(e,t=e5){const n=Tt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Tt.useDebugValue(n),n}const vS=e=>{const t=Z6(e),n=s=>t5(t,s);return Object.assign(n,t),n},SS=(e=>e?vS(e):vS)(e=>({activeTooltip:null,setActiveTooltip:t=>e({activeTooltip:t}),currentZIndex:101,getNextZIndex:()=>(e(t=>({currentZIndex:t.currentZIndex+1})),SS.getState().currentZIndex)})),wS=({tooltipContent:e,children:t,isStickLeft:n,...s})=>{const[i,a]=R.useState(!1),[c,d]=R.useState(!1),[f,h]=R.useState(null),[g,y]=R.useState(100),{setActiveTooltip:w,getNextZIndex:x}=SS(),_=R.useRef(null),E=()=>{d(!1),f&&(clearTimeout(f),h(null));const A=x();y(A),w(_.current),a(!0)},T=()=>{d(!0);const A=setTimeout(()=>{a(!1),h(null),d(!1)},300);h(A)};return v.jsxs(G6,{...s,onMouseEnter:E,onMouseLeave:T,children:[t,v.jsx(J6,{ref:_,className:"tooltip-content",isFading:c,isStickLeft:n,isVisible:i,onMouseEnter:E,onMouseLeave:T,style:{zIndex:g},children:e||""})]})},n5=$("div")({name:"Container",class:"edcbf1r91",propsAsIs:!1}),r5=se("div")({name:"Container",class:"edc6pydkm",propsAsIs:!1}),s5=[...new Intl.Segmenter("en",{granularity:"grapheme"}).segment("💪🏃‍♂️🧠❤️🔥💰🪵⛏️🍖🔮👾⭐️😒😊🌈🐋🦄😎🤢🤮🤡👺💩🤥🐷👑⌛️🛢️🪙💎🗡️🧬🎁🎉🧸🪆🪩📊❗️💖❤️‍🔥💔")].map(e=>e.segment),o5=e=>[...e].map(t=>t.codePointAt(0)).join("-"),_S=Object.fromEntries(s5.map(e=>[o5(e),e])),ES=({iconId:e,text:t,...n})=>v.jsxs(r5,{...n,children:[v.jsx("span",{children:_S[e]}),t?v.jsx("span",{children:t}):null]}),i5=({resourceIds:e})=>{const t=ur(n=>n.resources);return v.jsx(n5,{children:e.map(n=>{const s=t.find(i=>i.id===n);return v.jsx(ES,{iconId:s.iconId},n)})})},a5=R.forwardRef(({blocksArray:e,handleClick:t,jourenyEdgeId:n,failedResources:s,replacements:i,...a},c)=>{const d=h=>{h.preventDefault(),h.stopPropagation(),t(n)},f=s.length===0;return v.jsx(wS,{isStickLeft:!0,style:{flex:"1 1 calc(50% - 6px)"},tooltipContent:f?null:v.jsx(i5,{resourceIds:s}),children:v.jsx(V6,{ref:c,style:{opacity:f?1:.6},isActive:!1,disabled:!f,onClick:d,...a,children:v.jsx(Co,{blocksArray:e,isJourneyWidgetText:!0,replacements:i})})})}),zf=(e=0)=>{setTimeout(()=>{const t=document.getElementById("edmap-widget__container");if(!t)return;const n=t.getBoundingClientRect();window.scrollTo({behavior:"smooth",top:n.top+window.scrollY-e})},oc)},l5=$("div")({name:"Background",class:"edbgw902r",propsAsIs:!1}),c5=$("div")({name:"Container",class:"edcv2zzw1",propsAsIs:!1}),u5=$("div")({name:"MessageBlock",class:"edm2b9k2r",propsAsIs:!1}),d5=$("div")({name:"Row",class:"edr4gsubj",propsAsIs:!1}),f5=$("div")({name:"Divider",class:"edd3sdabk",propsAsIs:!1}),p5=$("h1")({name:"Title",class:"edt1cvxfwm",propsAsIs:!1}),h5=$("div")({name:"QuestsContainer",class:"edq1tclzqz",propsAsIs:!1}),xS=$("div")({name:"Section",class:"eds1ce4iti",propsAsIs:!1}),TS=$("p")({name:"SectionTitle",class:"edsqdd2kx",propsAsIs:!1}),m5=$(d5)({name:"PrizesContainer",class:"edpiwm40a",propsAsIs:!0}),g5=(e,t=5)=>{const n=e==null?void 0:e.quests;return n?n.filter(a=>a.url!==window.location.pathname).filter(a=>!("resultQuestAnswer"in a)).slice(0,t):[]},y5=e=>{const t=e==null?void 0:e.prizes,n=e==null?void 0:e.allPoints;return t?t.filter(i=>i.awardPoints>n):[]},v5=async e=>{if(wr.reportQuestEnded(e.mapId,e.id),e.questType==="Test")return OP(e);if(e.questType==="Journey")return h3(e)},S5=(e,t)=>{const n=w5(e,t),s=_5(n),i=E5(n);return[s,i]},w5=(e,t)=>{var n;return(n=t==null?void 0:t.quests)==null?void 0:n.find(s=>s.id===e)},_5=e=>{var t;return((t=e==null?void 0:e.resultQuestAnswer)==null?void 0:t.points)||0},E5=e=>(e==null?void 0:e.maxPoints)||0,x5=(e,t)=>e.replace(/{(\w+)}/g,(n,s)=>{var i;return((i=t[s])==null?void 0:i.toString())??`{${s}}`}),T5=(e,t,n,s)=>e<t?n:s,k5=(e,t,n,s,i)=>{const[a,c]=S5(e,t),d=T5(n,a,s,i);return x5(d,{points:n,bestPoints:a,maxPoints:c})},I5=$("p")({name:"HighlightingContainer",class:"edh1r5zzja",propsAsIs:!1}),b5=({worstScoreTemplate:e,bestScoreTemplate:t})=>{const n=ut(c=>c.results),s=ke(c=>c.quest),i=ke(c=>c.currentTryPoints),a=k5(s.id,n,i,e,t);return v.jsx(I5,{dangerouslySetInnerHTML:{__html:a}})},kS=({translations:e,buttonOnClick:t})=>{const[n,s]=R.useState(!0),{isBanExpired:i,expiresAt:a,onTimeEnds:c,refreshBanStatus:d}=gS(),f=ut(B=>B.results),h=ut(B=>B.refreshUserResults),g=ke(B=>B.setCurrentTryPoints),y=g5(f),w=y5(f),x=Rn(B=>B.marginRootTop),_=ke(B=>B.quest),E=e.successTitle,T=e.buttonTitle,A=e.prizesTitle,L=e.questsTitle,j=e.bestScoreTemplate,K=e.worstScoreTemplate,H=m1(),O=Cn(B=>B.setIsPanelOpen),C=Cn(B=>B.setIsRegistrationOpen),W=()=>{O(!0),C(!0)};return R.useEffect(()=>{v5(_).then(({data:B})=>{var U;return d(),g(B.points),h((U=window.__widgetEdmap)==null?void 0:U.mapId)}).finally(()=>{p1(_.id)})},[_,_==null?void 0:_.id]),R.useEffect(()=>{_!=null&&_.id&&mS(_.id).then()},[_==null?void 0:_.id]),R.useEffect(()=>{zf(x)},[]),v.jsx(l5,{id:"edmap-widget__success",children:v.jsxs(c5,{children:[v.jsxs(u5,{children:[v.jsx(p5,{children:E}),_.isAwardPointsShowned&&v.jsx(b5,{worstScoreTemplate:K,bestScoreTemplate:j}),i?v.jsx(qn,{id:"edmap-widget__success-btn",title:T,isAccent:!0,onClick:t}):v.jsx(hS,{expiresAt:a,onTimeEnds:c})]}),!H&&n&&v.jsx(Ef,{setIsRegInfoVisible:s,openSignInModal:W,setIsSocialModalVisible:()=>{}}),w.length>0&&y.length>0&&v.jsx(f5,{}),w.length>0?v.jsxs(xS,{children:[v.jsx(TS,{children:A}),v.jsx(m5,{children:w.map((B,U)=>v.jsx(yf,{index:U,prizeData:B,userPoints:f==null?void 0:f.allPoints,openSignInModal:()=>{},openInfoModal:()=>{}},B==null?void 0:B.id))})]}):null,y.length>0?v.jsxs(xS,{children:[v.jsx(TS,{children:L}),v.jsx(h5,{children:v.jsx(_f,{quests:y})})]}):null]})})},C5=se("div")({name:"Gap",class:"edg5lnmft",propsAsIs:!1}),R5=se("div")({name:"ResourceWrapper",class:"edr1u056rp",propsAsIs:!1}),IS=se("p")({name:"Text",class:"edtjt97q3",propsAsIs:!1}),A5=se("div")({name:"TooltipConent",class:"edt3zaxx",propsAsIs:!1}),O5=(e,t)=>{const[n,s]=R.useState("right");return R.useLayoutEffect(()=>{if(!e.current||!t.current)return;const i=e.current.getBoundingClientRect(),a=t.current.getBoundingClientRect();return i.left-a.left+i.width>a.width?s("left"):s("right"),()=>{s("right")}},[e,t]),n},P5=({resource:e,animationClass:t,viewportRef:n})=>{const s=R.useRef(null),i=O5(s,n),a=i==="right"?"0":"unset",c=i==="right"?"unset":"-40px";return v.jsx(wS,{isStickLeft:!0,tooltipContent:v.jsx(A5,{ref:s,style:{left:a,right:c},children:v.jsx(IS,{children:e.name})}),children:v.jsxs(R5,{children:[v.jsx(ES,{style:{gap:"0"},iconId:e.iconId}),v.jsx(IS,{className:t,children:e.value})]})})},N5=({resources:e})=>{const[t,n]=R.useState(e),[s,i]=R.useState({}),a=R.useRef(null);R.useEffect(()=>{e.every(d=>t.find(f=>f.name===d.name))||(i({}),n(e))},[e]),R.useEffect(()=>{const d={};e.forEach((h,g)=>{const y=t[g],w=parseFloat(y==null?void 0:y.value.replace(/\s/g,""))||0,x=parseFloat(h==null?void 0:h.value.replace(/\s/g,""))||0;y?w<x?d[h.name]="increase":x<w?d[h.name]="decrease":d[h.name]="":d[h.name]="increase"}),i(d);const f=setTimeout(()=>{i({})},600);return n(e),()=>{clearTimeout(f),i({})}},[e]);const c=e.filter(({isVisible:d})=>d);return v.jsx(C5,{ref:a,children:c.map((d,f)=>v.jsx(P5,{viewportRef:a,resource:d,animationClass:s[d.name]||""},f))})},bS=$("div")({name:"AnswersBlock",class:"eda1nbdv32",propsAsIs:!1}),M5=$("span")({name:"SelectBelowText",class:"eds1wn0vwj",propsAsIs:!1}),L5=$("div")({name:"Container",class:"edc170a6p7",propsAsIs:!1}),j5=$("div")({name:"TimerPadding",class:"edt1jyjufh",propsAsIs:!1}),CS=()=>{const t=ke(n=>n.quest).timeLimitSeconds===0;return v.jsx(L5,{children:t?null:v.jsx(j5,{children:v.jsx(cS,{type:"horizontal"})})})},D5=e=>e.reduce((t,n)=>({...t,[n.id]:`${_S[n.iconId]} ${n.name} ${n.value}`}),{}),RS=()=>{const e=ur(t=>t.resources);return R.useMemo(()=>D5(e),[e])},$5=e=>{const t=RS();return v.jsx(Co,{...e,replacements:t})},B5=e=>Array.from(new Set(e)),F5=(e,t)=>{const n=e.sourceEdges.filter(s=>!t.has(s.targetId));return B5(n.map(s=>s.targetId))},z5=(e,t)=>e.filter(n=>!t.has(n)),U5=()=>{const e=ur(i=>i.currentNode),t=R.useRef(new Set),n=R.useRef(new Set),s=R.useRef(0);R.useEffect(()=>{let i;return s.current=setTimeout(()=>{if(!e)return;const a=F5(e,t.current),c=z5(a,n.current);c.forEach(f=>n.current.add(f)),i=new AbortController;const d=c.map(async f=>{const h=await y3(f,i.signal);return await U1(h.imageUrls,"low"),t.current.add(f),n.current.delete(f),h});Promise.all(d)},2e3),()=>{clearTimeout(s.current),i&&i.abort()}},[e])},H5=({data:e})=>{const t=ke(j=>j.quest),n=ke(j=>j.isFinished),s=ke(j=>j.setIsFinished),i=ur(j=>j.currentNode),[a,c]=R.useState(null),d=ur(j=>j.resources),f=ur(j=>j.restart),h=ur(j=>j.setCurrentNode),g=Je(j=>j.translations.journeyCard),y=Fr(j=>j.isHidden),w=Fr(j=>j.startFadeTransition),x=Fr(j=>j.registerRef),_=R.useRef(null),E=Rn(j=>j.marginRootTop),T=RS();U5(),R.useEffect(()=>{x(_)},[]),R.useEffect(()=>{!(a!=null&&a.id)||!(i!=null&&i.id)||(i==null?void 0:i.id)===(a==null?void 0:a.id)||zf(E)},[i,a]),R.useEffect(()=>{a!=null&&a.id||c(i)},[i]),R.useEffect(()=>{!i.id||!(i.type==="present")||s(!0)},[t,e,i]);const A=(j,K)=>{wr.reportEdgeClick(t.mapId,t.id,K);const[H,O]=w();p3(j,K).then(W=>{if(!W)return Promise.resolve([]);const B=Fl(W.node.data.blocks);return Promise.all([W,O(B)])}).then(([W,B])=>Promise.all([W,B,H])).then(([W,B])=>{h(W.node,W.currentResources)})},L=async()=>{const[j,K]=w(),{node:H,currentResources:O}=await H1(t.id),C=Fl(H.data.blocks);return Promise.all([K(C)]).then(([W])=>Promise.all([W,j])).then(()=>{s(!1),f(H,O)})};return v.jsxs(H6,{children:[v.jsx(CS,{}),v.jsxs(W6,{ref:_,style:{opacity:y?0:1,transition:`all ${oc}ms ease-out `},children:[v.jsxs(iS,{children:[v.jsx($5,{isNodeDescription:!0,blocksArray:i.data.blocks}),d.length>0&&v.jsx(N5,{resources:d})]}),n?v.jsx(kS,{translations:g,buttonOnClick:L}):v.jsxs(bS,{children:[v.jsx(q6,{}),i.sourceEdges.map((j,K)=>v.jsx(a5,{isAccessable:j.isAccessable,jourenyEdgeId:j.id,failedResources:j.failedResources,replacements:T,handleClick:H=>A(t==null?void 0:t.id,H),blocksArray:j.richText.blocks,index:K},j.id))]})]})]})},W5=$("div")({name:"Container",class:"edc5a0ote",propsAsIs:!1}),q5=$("div")({name:"HideableContent",class:"edh1k11f83",propsAsIs:!1}),V5=$("div")({name:"AnswersWrapper",class:"eda1vi3dgi",propsAsIs:!1}),G5=se("label")({name:"Label",class:"edlzct43p",propsAsIs:!1}),Y5=se("input")({name:"HiddenInput",class:"edhtu66xn",propsAsIs:!1}),K5=()=>e=>e.isChecked?"var(--checkbox-bg-active)":"var(--checkbox-bg-default)",Q5=se("div")({name:"CustomInput",class:"edchq6avi",propsAsIs:!1,vars:{"chq6avi-0":[K5()]}}),X5=({label:e,id:t,name:n,index:s,onChange:i,isInsideChecked:a=null})=>{const c=d=>{const f=d.target.checked;i==null||i(f)};return v.jsxs(G5,{htmlFor:t,"data-testid":`edmap-widget__test-answer-${s+1}`,children:[v.jsx(Y5,{id:t,name:n,type:"checkbox",checked:a,value:!a,onChange:c}),v.jsx(Q5,{isChecked:a,children:a?v.jsx("svg",{width:"22",height:"16",viewBox:"0 0 22 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M1.5 7.56812L8.12121 14.1893L20.5 1.81055",stroke:"white",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"round"})}):null}),v.jsx(Co,{isAnswer:!0,blocksArray:e})]})},J5=({label:e,name:t,id:n,index:s,onChange:i,isInsideChecked:a=null})=>{const[c,d]=R.useState(!1),f=h=>{d(h),i==null||i(h)};return v.jsx(X5,{name:t,label:e,id:n,index:s,onChange:f,isInsideChecked:a||c})},Uf=e=>e===null,Z5=({test:e})=>{var j,K,H,O;const t=ke(C=>C.resetSteps),n=ke(C=>C.currentStep),s=ke(C=>C.isFinished),i=ke(C=>C.setIsFinished),a=Eo(C=>C.addAnswer),c=Je(C=>C.translations.testCard),d=Eo(C=>C.removeAnswer),f=Eo(C=>C.resetAnswers),h=ut(C=>C.setPointsAreReceived),g=R.useRef(null),[y,w]=R.useState(null),x=Fr(C=>C.registerRef),_=Fr(C=>C.isHidden),E=Fr(C=>C.startFadeTransition),T=Rn(C=>C.marginRootTop),A=(C,W,B)=>{B?a(e.questId,C,W):d(C)},L=async()=>{const[C,W]=E();await Promise.all([W(q1(e.questions,n)),C]),f(),t(),i(!1),h(!1)};return R.useEffect(()=>{Uf(n)||w(n)},[n]),R.useEffect(()=>{const C=n===y,W=C&&n===1;Uf(y)||Uf(n)||C||W||zf(T)},[n,y]),R.useEffect(()=>{x(g)},[x]),v.jsxs(W5,{children:[v.jsx(CS,{}),v.jsx(q5,{ref:g,style:{opacity:_?0:1,transition:`all ${oc}ms ease-out `},children:s?v.jsx(kS,{translations:c,buttonOnClick:L}):v.jsxs(v.Fragment,{children:[v.jsx(iS,{children:v.jsx(Co,{id:"edmap-widget__test-question",blocksArray:(K=(j=e.questions[n-1])==null?void 0:j.text)==null?void 0:K.blocks})}),v.jsxs(bS,{children:[v.jsx(M5,{children:c.chooseAnswer}),v.jsx(V5,{id:"edmap-widget__test-answers",children:(O=(H=e.questions[n-1])==null?void 0:H.answers)==null?void 0:O.map((C,W)=>{var B;return v.jsx(J5,{index:W,label:(B=C==null?void 0:C.text)==null?void 0:B.blocks,id:C==null?void 0:C.id,onChange:U=>{var J;return A(C==null?void 0:C.id,(J=e.questions[n-1])==null?void 0:J.id,U)}},C==null?void 0:C.id)})})]})]})})]})},eD=()=>{const e=ke(t=>t.quest);if(e!=null&&e.id)return e.questType==="Test"&&v.jsx(Z5,{test:e.test})||e.questType==="Journey"&&v.jsx(H5,{data:e.journey})},tD=Tt.memo(eD),nD=({children:e})=>{const t=ke(n=>n.quest);return t!=null&&t.id?v.jsx("div",{children:e}):null},Hf=350,rD=1,sD=()=>{const e=ke(i=>i.quest),[t,n]=R.useState(!1);R.useEffect(()=>{if(!t)return;const i=setTimeout(()=>{wr.reportWidgetView()},rD*1e3);return()=>{clearTimeout(i)}},[t,e==null?void 0:e.id,e==null?void 0:e.mapId]),R.useEffect(()=>{wr.dropUserActivation()},[e==null?void 0:e.id,e==null?void 0:e.mapId]),R.useEffect(()=>{const i=()=>{wr.drainPendingAnalytics()};return window.addEventListener("pagehide",i),()=>{window.removeEventListener("pagehide",i)}},[]);const s=R.useCallback(i=>{i&&n(!i)},[]);return v.jsxs(v.Fragment,{children:[v.jsx(Cs,{topOffset:-Hf,setIsSensorTriggered:s,isBottomUpTriggered:!0,color:"blue",className:"view-counter-out",isPortal:!1}),v.jsx(Cs,{topOffset:-Hf,setIsSensorTriggered:n,color:"green",className:"view-counter-enter",isPortal:!1}),v.jsx(Cs,{bottomOffset:Hf,setIsSensorTriggered:n,isBottomUpTriggered:!0,color:"yellow",className:"view-counter-enter",isPortal:!1,isStickToBottom:!0}),v.jsx(Cs,{topOffset:0,setIsSensorTriggered:s,color:"green",className:"view-counter-out",isPortal:!1,isStickToBottom:!0})]})},oD=()=>{const e=ke(t=>t.quest);return R.useLayoutEffect(()=>{e!=null&&e.id&&localStorage.setItem("analytics",`${e.mapId}@${e.id}`)},[e==null?void 0:e.id]),null},AS=()=>{const e=R.useRef(),t=rc(L=>L.widgetContainerStyle),[n,s]=R.useState(!1),[i,a]=R.useState(!1),c=uS(L=>L.height),d=Rn(L=>L.marginRootTop),f=Rn(L=>L.setTopOffset),h=ac(L=>L.setWidth),g=ac(L=>L.top),y=dS(L=>L.height),w=ac(L=>L.setTop),x=ic(L=>L.setIsTimerOverlapped),_=R.useRef(),E=R.useRef(),T=30;U6(e,h),R.useEffect(()=>{e.current&&w(e.current.getBoundingClientRect().top+window.scrollY)},[e]),R.useEffect(()=>{if(!i)return;const L=()=>{const j=E.current;if(!j)return;const H=j.getBoundingClientRect().top;f(Math.max(0,-H))};return window.addEventListener("scroll",L),L(),()=>{f(0),window.removeEventListener("scroll",L)}},[i,c]);const A=g-d;return v.jsxs(Xj,{className:"sensor root",children:[v.jsx(Cs,{className:"widget-trigger-header-stick",setIsSensorTriggered:s,topOffset:`${-d}px`,ref:_,isPortal:!1}),v.jsx(Cs,{setIsSensorTriggered:x,topOffset:`${A+c-T}px`}),v.jsx(sD,{}),v.jsxs(Qj,{ref:e,style:{...t},children:[v.jsx(pS,{children:v.jsxs(nD,{children:[v.jsxs(Jj,{children:[v.jsx(x6,{isSticky:n}),v.jsx(Zj,{children:v.jsx(j6,{children:v.jsx(z6,{children:v.jsx(tD,{})})})})]}),v.jsx(T6,{})]})}),v.jsx(oD,{})]}),v.jsx(Cs,{isPortal:!1,isStickToBottom:!0,color:"black",className:"bottom sensor",setIsSensorTriggered:a,bottomOffset:`${y+c+d}px`,isBottomUpTriggered:!1,ref:E})]})},iD=$("div")({name:"WrapperForStyles",class:"edw1ckr4k2",propsAsIs:!1}),aD=$("div")({name:"Container",class:"edc1moeqqj",propsAsIs:!1}),lD=$("div")({name:"Container",class:"edcrg0ist",propsAsIs:!1}),cD=$("p")({name:"EmptyQuestsMessage",class:"ede1tl4sfq",propsAsIs:!1}),uD=$("div")({name:"Container",class:"edcjx2ut5",propsAsIs:!1}),dD=$("p")({name:"Title",class:"edt75yszp",propsAsIs:!1}),OS=({title:e,children:t})=>v.jsxs(uD,{children:[v.jsx(dD,{children:e}),t]}),fD=({quests:e})=>{const t=Je(s=>s.translations.questList),n=!e||e.length===0;return v.jsx(OS,{title:t.title,children:v.jsx(lD,{children:n?v.jsx(cD,{children:t.emptyQuestsWarning}):v.jsx(_f,{quests:e})})})},pD=$("div")({name:"PrizesContainer",class:"edp1163kd8",propsAsIs:!1}),hD=({prizes:e,openSignInModal:t,openInfoModal:n})=>{const s=ut(a=>a.results),i=Je(a=>a.translations.prizeList);return!e||e.length===0?null:v.jsx(OS,{title:i.title,children:v.jsx(pD,{children:e.map((a,c)=>v.jsx(yf,{prizeData:a,userPoints:(s==null?void 0:s.allPoints)||0,index:c,openSignInModal:t,openInfoModal:n},a.id))})})},mD=()=>{const[e,t]=R.useState(null),[n,s]=R.useState(!1),i=ut(E=>E.results),a=(i==null?void 0:i.quests)||[],c=(i==null?void 0:i.prizes)||[],d=rc(E=>E.widgetContainerStyle),{isOpen:f,closeModal:h,openModal:g}=zl(),{isOpen:y,closeModal:w,openModal:x}=zl(),_=(E,T)=>{t(c[E]),T==="prize"?(s(!0),x()):(s(!1),x())};return v.jsx(iD,{style:d,children:v.jsx(aD,{children:v.jsxs(pS,{children:[v.jsx(fD,{quests:a}),v.jsx(hD,{prizes:c,setClickedPrize:t,openInfoModal:_,openSignInModal:g}),v.jsx(K1,{isOpen:f,closeModal:h,setIsSocialModalVisible:()=>{},isSocialModalVisible:!0}),v.jsx(tS,{data:e,isInfoModalOpen:y,closeInfoModal:w,isPrizeModal:n})]})})})},gD=[ff,pf,_1],PS={color:{[S1]:["light"],[ff]:[],[jP]:["white","blue"]},rounded:{[w1]:["rounded"],[pf]:[]},text:{[DP]:["bold","text"],[_1]:[]},wordWrap:{[$P]:[],[BP]:["nowrap"]}},yD=Object.keys(PS).map(e=>Object.entries(PS[e]).sort(([t,n],[s,i])=>i.length-n.length)),vD=e=>{if(!e)return gD;const t=e.split("-");return yD.map(s=>s.find(([i,a])=>a.every(c=>t.includes(c)))).map(s=>s[0])},SD={"--main-color":["--edmap-main-color"],"--main-shadow-color":["--edmap-main-color-shadow"],"--main-dark-color":["--edmap-main-color-dark"],"--text-on-main":["--edmap-text-on-main"]},wD=e=>{const t={};return Object.keys(e).forEach(n=>{SD[n].forEach(s=>{t[s]=e[n]})}),t},_D=()=>{var t;const e=wD(((t=window==null?void 0:window.__widgetEdmap)==null?void 0:t.cssVariablesOverride)??{});Object.keys(e).forEach(n=>{document.body.style.setProperty(n,e[n],"important")})},ED=()=>{var n;const e=((n=window.__widgetEdmap)==null?void 0:n.headerOffset)||0,t=e!==null&&typeof e=="object";return t?TD(t,e):[{width:0,value:lc(e)}]},xD=e=>Object.keys(e).sort((n,s)=>s-n).map(n=>({width:Number(n),value:e[n]})),TD=(e,t)=>{if(!e)return lc(t);const n=Object.keys(t).reduce((s,i)=>{const a=lc(i),c=lc(t[i]);return{...s,[a]:c}},{});return xD(n)},lc=e=>Number.parseFloat(e)||0,kD=()=>{const[e,t]=R.useState(window.innerWidth);ID(e),R.useEffect(()=>{const n=()=>t(window.innerWidth);n(),window.addEventListener("resize",n)},[])},ID=e=>{const t=Rn(i=>i.breakPoints),n=Rn(i=>i.setMarginRootTop),s=Rn(i=>i.marginRootTop);R.useEffect(()=>{if(!t)return;const i=t.find(a=>e>a.width);i&&i.value!==s&&n(i.value)},[t,e,e])},bD=[S1,ff,w1,pf],CD=[{id:"edmap-widget__container",Component:AS},{id:"edmap-widget-quest-picker__container",Component:mD}];console.log("Выполнен код вне корня");function RD({mode:e=null}){var W;console.log("App перезапущен");const t=ke(B=>B.setQuest),n=ke(B=>B.setCurrentStep),s=ke(B=>B.setIsFinished),i=ke(B=>B.setOverallSteps),a=ur(B=>B.initialize),c=ut(B=>B.setUserResults),d=ut(B=>B.setPointsAreReceived),f=Je(B=>B.setLocale),h=Rn(B=>B.setBreakPoints),{setPopupBarStyle:g,setWidgetContainerStyle:y}=rc(),[w,x]=R.useState([]);kD();const _=Kj(e,window.location.pathname),T=new URLSearchParams(window.location.search).get("code"),A=async(B,U,J)=>{let Z=null;return U==="admin"?Z=await CP(J):Z=await bP(B,J),t(Z),Z},L=(B,U)=>{var me;const J=(U==null?void 0:U.length)-1,Z=(me=B.at(-1))==null?void 0:me.questionId,ue=U==null?void 0:U.findIndex(De=>De.id===Z);return ue===J&&s(!0),ue>=J?J+1:ue+2},j=(B,U)=>{var Z,ue,me;if((B==null?void 0:B.questType)!=="Test")return;if(i(((ue=(Z=B==null?void 0:B.test)==null?void 0:Z.questions)==null?void 0:ue.length)??0),n(1),!U||(U==null?void 0:U.length)===0){s(!1);return}const J=L(U,(me=B.test)==null?void 0:me.questions);n(J??1)},K=()=>{const B=CD.filter(({id:U})=>document.getElementById(U));x(B)},H=()=>{var B;document.body.classList.remove(...bD),document.body.classList.add(...vD((B=window==null?void 0:window.__widgetEdmap)==null?void 0:B.theme)),_D()},O=()=>{K(),H()};R.useEffect(()=>{O()},[]),R.useEffect(()=>{window.__widgetEdmap&&(window.__widgetEdmap.mode=e)},[e]);const C=R.useCallback(async()=>{var U;const B=(U=window==null?void 0:window.__widgetEdmap)==null?void 0:U.mapId;if(B){d(!1);try{if(!w.some(({id:ue})=>ue==="edmap-widget__container")&&e!=="admin")return;const Z=await A(B,e,_);if(!Z)return;if(Z.questType==="Journey"){a(Z.id);return}if(Z.questType==="Test"){const ue=await xP(Z.id);j(Z,ue);return}}catch(J){Tn(J),console.error("Error during initialization:",J)}}},[e,_,w]);return R.useEffect(()=>{C()},[C]),R.useEffect(()=>{var U;const B=(U=window==null?void 0:window.__widgetEdmap)==null?void 0:U.mapId;B&&IP(B,T).then(J=>{f(J.map.widgetUILanguage),c(J)})},[T,_]),R.useEffect(()=>{w.forEach(({id:B})=>{const U=document.getElementById(B);U&&(U.dataset.popupBarStyle&&g(oS(U.dataset.popupBarStyle)),U.dataset.widgetContainerStyle&&y(oS(U.dataset.widgetContainerStyle)))})},[w]),R.useEffect(()=>{const B=ED();h(B)},[]),e==="admin"?(C(),v.jsx(AS,{})):w.length===0||!((W=window==null?void 0:window.__widgetEdmap)!=null&&W.mapId)?null:v.jsxs(v.Fragment,{children:[w.map(({id:B,Component:U})=>{const J=document.getElementById(B);return J?sc.createPortal(v.jsx(U,{},B+(window.location.pathname||"")),J):null}),e!=="admin"&&sc.createPortal(v.jsx(Yj,{},window.location.pathname||""),document.body)]})}pP({dsn:"https://f54e3fc0fb41b6b943cd81aa16c927d3@o4508675319726080.ingest.de.sentry.io/4508676111138896",integrations:[cP(),QO()],tracesSampleRate:1,tracePropagationTargets:["localhost","https://api.edmap.space"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});const Di=()=>{if(typeof window>"u"){console.log("Widget loaded in node env");return}if(!document.body){console.warn("Body is not ready for widget"),typeof requestAnimationFrame<"u"?requestAnimationFrame(Di):setTimeout(Di,100);return}let e=document.querySelector("#invisible-edmap-container");const t=window.__edmapRoot;t&&t.unmount(),e&&e.remove(),e=document.createElement("div"),e.setAttribute("id","invisible-edmap-container"),e.style.display="none",e.style.pointerEvents="none",document.body.appendChild(e);const n=bE.createRoot(e);window.__edmapRoot=n,window.dispatchEvent(new CustomEvent("edmap-widget-ready")),n.render(v.jsx(R.StrictMode,{children:v.jsx(RD,{})}))};Di();function AD(e,t,n=!1){let s;function i(){const a=this,c=arguments,d=function(){s=null,n||e.apply(a,c)},f=n&&!s;clearTimeout(s),s=setTimeout(d,t),f&&e.apply(a,c)}return i.cancel=function(){clearTimeout(s),s=null},i}(function(){const e={TRUE_ROUTING_EVENT:"edmap-true-routing-triggered",IMMEDIATE_WIDGET_RERENDER:"edmap-immediate-widget-rerender",DELAYED_WIDGET_RERENDER:"edmap-delayed-widget-rerender"};window.__widgetEdmap=window.__widgetEdmap||{};let t=null,n=0;const s=AD(f=>{n=f},300),i=(f,h)=>{let g=null;const y=()=>{g&&clearTimeout(g),g=setTimeout(f,h),t=y};return y.cancel=()=>{g&&clearTimeout(g),t===y&&(t=null)},y};async function a(){try{Di(),window.__widgetEdmap.renderWidget=Di}catch{}}const c=i(a,700),d=(f,h,g=!0)=>{window.dispatchEvent(new CustomEvent(e.TRUE_ROUTING_EVENT,{detail:{type:f,...h,isAllowedImidiate:g}}))};window.addEventListener(e.TRUE_ROUTING_EVENT,({detail:f})=>{if(f.isAllowedImidiate){window.dispatchEvent(new CustomEvent(e.IMMEDIATE_WIDGET_RERENDER),{detail:f});return}window.dispatchEvent(new CustomEvent(e.DELAYED_WIDGET_RERENDER),{detail:f})}),window.addEventListener(e.IMMEDIATE_WIDGET_RERENDER,()=>{t&&(t.cancel(),t=null),a(),n=0}),window.addEventListener(e.DELAYED_WIDGET_RERENDER,c),a(),window.addEventListener("edmap-routing-triggered",f=>{var g,y,w,x;const h=f.detail.type;if(console.log("Triggered navigation for",h,"with args",(g=f.detail)==null?void 0:g.args),h==="pushState"&&d(h,f.detail),h=="replaceState"){const _=(x=(w=(y=f.detail)==null?void 0:y.args)==null?void 0:w[0])==null?void 0:x.scrollY;if(!(typeof _=="number"&&!Number.isNaN(_)))return;n===_?d(h,f.detail,!1):s(_);return}if(h==="popstate"){d(h,f.detail,!1),n=0;return}}),console.log("routing trigger loaded")})()})();
