function kg(r,s){for(var d=0;d<s.length;d++){const c=s[d];if(typeof c!="string"&&!Array.isArray(c)){for(const g in c)if(g!=="default"&&!(g in r)){const y=Object.getOwnPropertyDescriptor(c,g);y&&Object.defineProperty(r,g,y.get?y:{enumerable:!0,get:()=>c[g]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))c(g);new MutationObserver(g=>{for(const y of g)if(y.type==="childList")for(const w of y.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&c(w)}).observe(document,{childList:!0,subtree:!0});function d(g){const y={};return g.integrity&&(y.integrity=g.integrity),g.referrerPolicy&&(y.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?y.credentials="include":g.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function c(g){if(g.ep)return;g.ep=!0;const y=d(g);fetch(g.href,y)}})();function $s(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var zs={exports:{}},Ki={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ph;function Lg(){if(Ph)return Ki;Ph=1;var r=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function d(c,g,y){var w=null;if(y!==void 0&&(w=""+y),g.key!==void 0&&(w=""+g.key),"key"in g){y={};for(var O in g)O!=="key"&&(y[O]=g[O])}else y=g;return g=y.ref,{$$typeof:r,type:c,key:w,ref:g!==void 0?g:null,props:y}}return Ki.Fragment=s,Ki.jsx=d,Ki.jsxs=d,Ki}var Ih;function Hg(){return Ih||(Ih=1,zs.exports=Lg()),zs.exports}var b=Hg(),Ms={exports:{}},ot={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wh;function qg(){if(Wh)return ot;Wh=1;var r=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),ne=Symbol.iterator;function I(U){return U===null||typeof U!="object"?null:(U=ne&&U[ne]||U["@@iterator"],typeof U=="function"?U:null)}var ue={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,Z={};function P(U,de,Ae){this.props=U,this.context=de,this.refs=Z,this.updater=Ae||ue}P.prototype.isReactComponent={},P.prototype.setState=function(U,de){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,de,"setState")},P.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function se(){}se.prototype=P.prototype;function ge(U,de,Ae){this.props=U,this.context=de,this.refs=Z,this.updater=Ae||ue}var ce=ge.prototype=new se;ce.constructor=ge,Q(ce,P.prototype),ce.isPureReactComponent=!0;var ye=Array.isArray;function Me(){}var Ee={H:null,A:null,T:null,S:null},Ue=Object.prototype.hasOwnProperty;function ut(U,de,Ae){var xe=Ae.ref;return{$$typeof:r,type:U,key:de,ref:xe!==void 0?xe:null,props:Ae}}function je(U,de){return ut(U.type,de,U.props)}function _e(U){return typeof U=="object"&&U!==null&&U.$$typeof===r}function Se(U){var de={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(Ae){return de[Ae]})}var Re=/\/+/g;function Ye(U,de){return typeof U=="object"&&U!==null&&U.key!=null?Se(""+U.key):de.toString(36)}function $e(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(Me,Me):(U.status="pending",U.then(function(de){U.status==="pending"&&(U.status="fulfilled",U.value=de)},function(de){U.status==="pending"&&(U.status="rejected",U.reason=de)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function ae(U,de,Ae,xe,Xe){var p=typeof U;(p==="undefined"||p==="boolean")&&(U=null);var E=!1;if(U===null)E=!0;else switch(p){case"bigint":case"string":case"number":E=!0;break;case"object":switch(U.$$typeof){case r:case s:E=!0;break;case _:return E=U._init,ae(E(U._payload),de,Ae,xe,Xe)}}if(E)return Xe=Xe(U),E=xe===""?"."+Ye(U,0):xe,ye(Xe)?(Ae="",E!=null&&(Ae=E.replace(Re,"$&/")+"/"),ae(Xe,de,Ae,"",function(f){return f})):Xe!=null&&(_e(Xe)&&(Xe=je(Xe,Ae+(Xe.key==null||U&&U.key===Xe.key?"":(""+Xe.key).replace(Re,"$&/")+"/")+E)),de.push(Xe)),1;E=0;var l=xe===""?".":xe+":";if(ye(U))for(var u=0;u<U.length;u++)xe=U[u],p=l+Ye(xe,u),E+=ae(xe,de,Ae,p,Xe);else if(u=I(U),typeof u=="function")for(U=u.call(U),u=0;!(xe=U.next()).done;)xe=xe.value,p=l+Ye(xe,u++),E+=ae(xe,de,Ae,p,Xe);else if(p==="object"){if(typeof U.then=="function")return ae($e(U),de,Ae,xe,Xe);throw de=String(U),Error("Objects are not valid as a React child (found: "+(de==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":de)+"). If you meant to render a collection of children, use an array instead.")}return E}function we(U,de,Ae){if(U==null)return U;var xe=[],Xe=0;return ae(U,xe,"","",function(p){return de.call(Ae,p,Xe++)}),xe}function Ge(U){if(U._status===-1){var de=U._result;de=de(),de.then(function(Ae){(U._status===0||U._status===-1)&&(U._status=1,U._result=Ae)},function(Ae){(U._status===0||U._status===-1)&&(U._status=2,U._result=Ae)}),U._status===-1&&(U._status=0,U._result=de)}if(U._status===1)return U._result.default;throw U._result}var mt=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var de=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(de))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},ct={map:we,forEach:function(U,de,Ae){we(U,function(){de.apply(this,arguments)},Ae)},count:function(U){var de=0;return we(U,function(){de++}),de},toArray:function(U){return we(U,function(de){return de})||[]},only:function(U){if(!_e(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return ot.Activity=z,ot.Children=ct,ot.Component=P,ot.Fragment=d,ot.Profiler=g,ot.PureComponent=ge,ot.StrictMode=c,ot.Suspense=C,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee,ot.__COMPILER_RUNTIME={__proto__:null,c:function(U){return Ee.H.useMemoCache(U)}},ot.cache=function(U){return function(){return U.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(U,de,Ae){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var xe=Q({},U.props),Xe=U.key;if(de!=null)for(p in de.key!==void 0&&(Xe=""+de.key),de)!Ue.call(de,p)||p==="key"||p==="__self"||p==="__source"||p==="ref"&&de.ref===void 0||(xe[p]=de[p]);var p=arguments.length-2;if(p===1)xe.children=Ae;else if(1<p){for(var E=Array(p),l=0;l<p;l++)E[l]=arguments[l+2];xe.children=E}return ut(U.type,Xe,xe)},ot.createContext=function(U){return U={$$typeof:w,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:y,_context:U},U},ot.createElement=function(U,de,Ae){var xe,Xe={},p=null;if(de!=null)for(xe in de.key!==void 0&&(p=""+de.key),de)Ue.call(de,xe)&&xe!=="key"&&xe!=="__self"&&xe!=="__source"&&(Xe[xe]=de[xe]);var E=arguments.length-2;if(E===1)Xe.children=Ae;else if(1<E){for(var l=Array(E),u=0;u<E;u++)l[u]=arguments[u+2];Xe.children=l}if(U&&U.defaultProps)for(xe in E=U.defaultProps,E)Xe[xe]===void 0&&(Xe[xe]=E[xe]);return ut(U,p,Xe)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(U){return{$$typeof:O,render:U}},ot.isValidElement=_e,ot.lazy=function(U){return{$$typeof:_,_payload:{_status:-1,_result:U},_init:Ge}},ot.memo=function(U,de){return{$$typeof:j,type:U,compare:de===void 0?null:de}},ot.startTransition=function(U){var de=Ee.T,Ae={};Ee.T=Ae;try{var xe=U(),Xe=Ee.S;Xe!==null&&Xe(Ae,xe),typeof xe=="object"&&xe!==null&&typeof xe.then=="function"&&xe.then(Me,mt)}catch(p){mt(p)}finally{de!==null&&Ae.types!==null&&(de.types=Ae.types),Ee.T=de}},ot.unstable_useCacheRefresh=function(){return Ee.H.useCacheRefresh()},ot.use=function(U){return Ee.H.use(U)},ot.useActionState=function(U,de,Ae){return Ee.H.useActionState(U,de,Ae)},ot.useCallback=function(U,de){return Ee.H.useCallback(U,de)},ot.useContext=function(U){return Ee.H.useContext(U)},ot.useDebugValue=function(){},ot.useDeferredValue=function(U,de){return Ee.H.useDeferredValue(U,de)},ot.useEffect=function(U,de){return Ee.H.useEffect(U,de)},ot.useEffectEvent=function(U){return Ee.H.useEffectEvent(U)},ot.useId=function(){return Ee.H.useId()},ot.useImperativeHandle=function(U,de,Ae){return Ee.H.useImperativeHandle(U,de,Ae)},ot.useInsertionEffect=function(U,de){return Ee.H.useInsertionEffect(U,de)},ot.useLayoutEffect=function(U,de){return Ee.H.useLayoutEffect(U,de)},ot.useMemo=function(U,de){return Ee.H.useMemo(U,de)},ot.useOptimistic=function(U,de){return Ee.H.useOptimistic(U,de)},ot.useReducer=function(U,de,Ae){return Ee.H.useReducer(U,de,Ae)},ot.useRef=function(U){return Ee.H.useRef(U)},ot.useState=function(U){return Ee.H.useState(U)},ot.useSyncExternalStore=function(U,de,Ae){return Ee.H.useSyncExternalStore(U,de,Ae)},ot.useTransition=function(){return Ee.H.useTransition()},ot.version="19.2.5",ot}var $h;function gu(){return $h||($h=1,Ms.exports=qg()),Ms.exports}var k=gu();const Bm=$s(k),Kg=kg({__proto__:null,default:Bm},[k]);var Bs={exports:{}},Vi={},Us={exports:{}},ks={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var em;function Vg(){return em||(em=1,(function(r){function s(ae,we){var Ge=ae.length;ae.push(we);e:for(;0<Ge;){var mt=Ge-1>>>1,ct=ae[mt];if(0<g(ct,we))ae[mt]=we,ae[Ge]=ct,Ge=mt;else break e}}function d(ae){return ae.length===0?null:ae[0]}function c(ae){if(ae.length===0)return null;var we=ae[0],Ge=ae.pop();if(Ge!==we){ae[0]=Ge;e:for(var mt=0,ct=ae.length,U=ct>>>1;mt<U;){var de=2*(mt+1)-1,Ae=ae[de],xe=de+1,Xe=ae[xe];if(0>g(Ae,Ge))xe<ct&&0>g(Xe,Ae)?(ae[mt]=Xe,ae[xe]=Ge,mt=xe):(ae[mt]=Ae,ae[de]=Ge,mt=de);else if(xe<ct&&0>g(Xe,Ge))ae[mt]=Xe,ae[xe]=Ge,mt=xe;else break e}}return we}function g(ae,we){var Ge=ae.sortIndex-we.sortIndex;return Ge!==0?Ge:ae.id-we.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;r.unstable_now=function(){return y.now()}}else{var w=Date,O=w.now();r.unstable_now=function(){return w.now()-O}}var C=[],j=[],_=1,z=null,ne=3,I=!1,ue=!1,Q=!1,Z=!1,P=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,ge=typeof setImmediate<"u"?setImmediate:null;function ce(ae){for(var we=d(j);we!==null;){if(we.callback===null)c(j);else if(we.startTime<=ae)c(j),we.sortIndex=we.expirationTime,s(C,we);else break;we=d(j)}}function ye(ae){if(Q=!1,ce(ae),!ue)if(d(C)!==null)ue=!0,Me||(Me=!0,Se());else{var we=d(j);we!==null&&$e(ye,we.startTime-ae)}}var Me=!1,Ee=-1,Ue=5,ut=-1;function je(){return Z?!0:!(r.unstable_now()-ut<Ue)}function _e(){if(Z=!1,Me){var ae=r.unstable_now();ut=ae;var we=!0;try{e:{ue=!1,Q&&(Q=!1,se(Ee),Ee=-1),I=!0;var Ge=ne;try{t:{for(ce(ae),z=d(C);z!==null&&!(z.expirationTime>ae&&je());){var mt=z.callback;if(typeof mt=="function"){z.callback=null,ne=z.priorityLevel;var ct=mt(z.expirationTime<=ae);if(ae=r.unstable_now(),typeof ct=="function"){z.callback=ct,ce(ae),we=!0;break t}z===d(C)&&c(C),ce(ae)}else c(C);z=d(C)}if(z!==null)we=!0;else{var U=d(j);U!==null&&$e(ye,U.startTime-ae),we=!1}}break e}finally{z=null,ne=Ge,I=!1}we=void 0}}finally{we?Se():Me=!1}}}var Se;if(typeof ge=="function")Se=function(){ge(_e)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,Ye=Re.port2;Re.port1.onmessage=_e,Se=function(){Ye.postMessage(null)}}else Se=function(){P(_e,0)};function $e(ae,we){Ee=P(function(){ae(r.unstable_now())},we)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(ae){ae.callback=null},r.unstable_forceFrameRate=function(ae){0>ae||125<ae?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ue=0<ae?Math.floor(1e3/ae):5},r.unstable_getCurrentPriorityLevel=function(){return ne},r.unstable_next=function(ae){switch(ne){case 1:case 2:case 3:var we=3;break;default:we=ne}var Ge=ne;ne=we;try{return ae()}finally{ne=Ge}},r.unstable_requestPaint=function(){Z=!0},r.unstable_runWithPriority=function(ae,we){switch(ae){case 1:case 2:case 3:case 4:case 5:break;default:ae=3}var Ge=ne;ne=ae;try{return we()}finally{ne=Ge}},r.unstable_scheduleCallback=function(ae,we,Ge){var mt=r.unstable_now();switch(typeof Ge=="object"&&Ge!==null?(Ge=Ge.delay,Ge=typeof Ge=="number"&&0<Ge?mt+Ge:mt):Ge=mt,ae){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=Ge+ct,ae={id:_++,callback:we,priorityLevel:ae,startTime:Ge,expirationTime:ct,sortIndex:-1},Ge>mt?(ae.sortIndex=Ge,s(j,ae),d(C)===null&&ae===d(j)&&(Q?(se(Ee),Ee=-1):Q=!0,$e(ye,Ge-mt))):(ae.sortIndex=ct,s(C,ae),ue||I||(ue=!0,Me||(Me=!0,Se()))),ae},r.unstable_shouldYield=je,r.unstable_wrapCallback=function(ae){var we=ne;return function(){var Ge=ne;ne=we;try{return ae.apply(this,arguments)}finally{ne=Ge}}}})(ks)),ks}var tm;function Gg(){return tm||(tm=1,Us.exports=Vg()),Us.exports}var Ls={exports:{}},bn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var nm;function Yg(){if(nm)return bn;nm=1;var r=gu();function s(C){var j="https://react.dev/errors/"+C;if(1<arguments.length){j+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)j+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+C+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var c={d:{f:d,r:function(){throw Error(s(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},g=Symbol.for("react.portal");function y(C,j,_){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:z==null?null:""+z,children:C,containerInfo:j,implementation:_}}var w=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function O(C,j){if(C==="font")return"";if(typeof j=="string")return j==="use-credentials"?j:""}return bn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,bn.createPortal=function(C,j){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!j||j.nodeType!==1&&j.nodeType!==9&&j.nodeType!==11)throw Error(s(299));return y(C,j,null,_)},bn.flushSync=function(C){var j=w.T,_=c.p;try{if(w.T=null,c.p=2,C)return C()}finally{w.T=j,c.p=_,c.d.f()}},bn.preconnect=function(C,j){typeof C=="string"&&(j?(j=j.crossOrigin,j=typeof j=="string"?j==="use-credentials"?j:"":void 0):j=null,c.d.C(C,j))},bn.prefetchDNS=function(C){typeof C=="string"&&c.d.D(C)},bn.preinit=function(C,j){if(typeof C=="string"&&j&&typeof j.as=="string"){var _=j.as,z=O(_,j.crossOrigin),ne=typeof j.integrity=="string"?j.integrity:void 0,I=typeof j.fetchPriority=="string"?j.fetchPriority:void 0;_==="style"?c.d.S(C,typeof j.precedence=="string"?j.precedence:void 0,{crossOrigin:z,integrity:ne,fetchPriority:I}):_==="script"&&c.d.X(C,{crossOrigin:z,integrity:ne,fetchPriority:I,nonce:typeof j.nonce=="string"?j.nonce:void 0})}},bn.preinitModule=function(C,j){if(typeof C=="string")if(typeof j=="object"&&j!==null){if(j.as==null||j.as==="script"){var _=O(j.as,j.crossOrigin);c.d.M(C,{crossOrigin:_,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0})}}else j==null&&c.d.M(C)},bn.preload=function(C,j){if(typeof C=="string"&&typeof j=="object"&&j!==null&&typeof j.as=="string"){var _=j.as,z=O(_,j.crossOrigin);c.d.L(C,_,{crossOrigin:z,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0,type:typeof j.type=="string"?j.type:void 0,fetchPriority:typeof j.fetchPriority=="string"?j.fetchPriority:void 0,referrerPolicy:typeof j.referrerPolicy=="string"?j.referrerPolicy:void 0,imageSrcSet:typeof j.imageSrcSet=="string"?j.imageSrcSet:void 0,imageSizes:typeof j.imageSizes=="string"?j.imageSizes:void 0,media:typeof j.media=="string"?j.media:void 0})}},bn.preloadModule=function(C,j){if(typeof C=="string")if(j){var _=O(j.as,j.crossOrigin);c.d.m(C,{as:typeof j.as=="string"&&j.as!=="script"?j.as:void 0,crossOrigin:_,integrity:typeof j.integrity=="string"?j.integrity:void 0})}else c.d.m(C)},bn.requestFormReset=function(C){c.d.r(C)},bn.unstable_batchedUpdates=function(C,j){return C(j)},bn.useFormState=function(C,j,_){return w.H.useFormState(C,j,_)},bn.useFormStatus=function(){return w.H.useHostTransitionStatus()},bn.version="19.2.5",bn}var am;function Um(){if(am)return Ls.exports;am=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),Ls.exports=Yg(),Ls.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var lm;function Xg(){if(lm)return Vi;lm=1;var r=Gg(),s=gu(),d=Um();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function w(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function O(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function C(e){if(y(e)!==e)throw Error(c(188))}function j(e){var t=e.alternate;if(!t){if(t=y(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return C(i),e;if(o===a)return C(i),t;o=o.sibling}throw Error(c(188))}if(n.return!==a.return)n=i,a=o;else{for(var v=!1,A=i.child;A;){if(A===n){v=!0,n=i,a=o;break}if(A===a){v=!0,a=i,n=o;break}A=A.sibling}if(!v){for(A=o.child;A;){if(A===n){v=!0,n=o,a=i;break}if(A===a){v=!0,a=o,n=i;break}A=A.sibling}if(!v)throw Error(c(189))}}if(n.alternate!==a)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,ne=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),Ee=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),ut=Symbol.for("react.activity"),je=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function Se(e){return e===null||typeof e!="object"?null:(e=_e&&e[_e]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Symbol.for("react.client.reference");function Ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Q:return"Fragment";case P:return"Profiler";case Z:return"StrictMode";case ye:return"Suspense";case Me:return"SuspenseList";case ut:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ue:return"Portal";case ge:return e.displayName||"Context";case se:return(e._context.displayName||"Context")+".Consumer";case ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ee:return t=e.displayName||null,t!==null?t:Ye(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var $e=Array.isArray,ae=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,we=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ge={pending:!1,data:null,method:null,action:null},mt=[],ct=-1;function U(e){return{current:e}}function de(e){0>ct||(e.current=mt[ct],mt[ct]=null,ct--)}function Ae(e,t){ct++,mt[ct]=e.current,e.current=t}var xe=U(null),Xe=U(null),p=U(null),E=U(null);function l(e,t){switch(Ae(p,t),Ae(Xe,e),Ae(xe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bh(t),e=Sh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}de(xe),Ae(xe,e)}function u(){de(xe),de(Xe),de(p)}function f(e){e.memoizedState!==null&&Ae(E,e);var t=xe.current,n=Sh(t,e.type);t!==n&&(Ae(Xe,e),Ae(xe,n))}function h(e){Xe.current===e&&(de(xe),de(Xe)),E.current===e&&(de(E),ki._currentValue=Ge)}var m,S;function N(e){if(m===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);m=t&&t[1]||"",S=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+m+e+S}var x=!1;function T(e,t){if(!e||x)return"";x=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(le){var te=le}Reflect.construct(e,[],ve)}else{try{ve.call()}catch(le){te=le}e.call(ve.prototype)}}else{try{throw Error()}catch(le){te=le}(ve=e())&&typeof ve.catch=="function"&&ve.catch(function(){})}}catch(le){if(le&&te&&typeof le.stack=="string")return[le.stack,te.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),v=o[0],A=o[1];if(v&&A){var L=v.split(`
`),ee=A.split(`
`);for(i=a=0;a<L.length&&!L[a].includes("DetermineComponentFrameRoot");)a++;for(;i<ee.length&&!ee[i].includes("DetermineComponentFrameRoot");)i++;if(a===L.length||i===ee.length)for(a=L.length-1,i=ee.length-1;1<=a&&0<=i&&L[a]!==ee[i];)i--;for(;1<=a&&0<=i;a--,i--)if(L[a]!==ee[i]){if(a!==1||i!==1)do if(a--,i--,0>i||L[a]!==ee[i]){var fe=`
`+L[a].replace(" at new "," at ");return e.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",e.displayName)),fe}while(1<=a&&0<=i);break}}}finally{x=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?N(n):""}function R(e,t){switch(e.tag){case 26:case 27:case 5:return N(e.type);case 16:return N("Lazy");case 13:return e.child!==t&&t!==null?N("Suspense Fallback"):N("Suspense");case 19:return N("SuspenseList");case 0:case 15:return T(e.type,!1);case 11:return T(e.type.render,!1);case 1:return T(e.type,!0);case 31:return N("Activity");default:return""}}function H(e){try{var t="",n=null;do t+=R(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var M=Object.prototype.hasOwnProperty,D=r.unstable_scheduleCallback,K=r.unstable_cancelCallback,q=r.unstable_shouldYield,Y=r.unstable_requestPaint,G=r.unstable_now,$=r.unstable_getCurrentPriorityLevel,ie=r.unstable_ImmediatePriority,J=r.unstable_UserBlockingPriority,pe=r.unstable_NormalPriority,be=r.unstable_LowPriority,he=r.unstable_IdlePriority,Oe=r.log,Ne=r.unstable_setDisableYieldValue,re=null,Le=null;function Be(e){if(typeof Oe=="function"&&Ne(e),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(re,e)}catch{}}var Te=Math.clz32?Math.clz32:Ze,dt=Math.log,et=Math.LN2;function Ze(e){return e>>>=0,e===0?32:31-(dt(e)/et|0)|0}var tt=256,Qe=262144,Ke=4194304;function Ie(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rt(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,o=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var A=a&134217727;return A!==0?(a=A&~o,a!==0?i=Ie(a):(v&=A,v!==0?i=Ie(v):n||(n=A&~e,n!==0&&(i=Ie(n))))):(A=a&~o,A!==0?i=Ie(A):v!==0?i=Ie(v):n||(n=a&~e,n!==0&&(i=Ie(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function De(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ce(){var e=Ke;return Ke<<=1,(Ke&62914560)===0&&(Ke=4194304),e}function Fe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Je(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,a,i,o){var v=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var A=e.entanglements,L=e.expirationTimes,ee=e.hiddenUpdates;for(n=v&~n;0<n;){var fe=31-Te(n),ve=1<<fe;A[fe]=0,L[fe]=-1;var te=ee[fe];if(te!==null)for(ee[fe]=null,fe=0;fe<te.length;fe++){var le=te[fe];le!==null&&(le.lane&=-536870913)}n&=~ve}a!==0&&jt(e,a,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(v&~t))}function jt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Te(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Te(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function wt(e,t){var n=t&-t;return n=(n&42)!==0?1:Ft(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ft(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ht(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qt(){var e=we.p;return e!==0?e:(e=window.event,e===void 0?32:Gh(e.type))}function tn(e,t){var n=we.p;try{return we.p=e,t()}finally{we.p=n}}var zt=Math.random().toString(36).slice(2),pt="__reactFiber$"+zt,Ct="__reactProps$"+zt,cn="__reactContainer$"+zt,Mt="__reactEvents$"+zt,Kt="__reactListeners$"+zt,na="__reactHandles$"+zt,B="__reactResources$"+zt,oe="__reactMarker$"+zt;function ke(e){delete e[pt],delete e[Ct],delete e[Mt],delete e[Kt],delete e[na]}function Pe(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ah(e);e!==null;){if(n=e[pt])return n;e=Ah(e)}return t}e=n,n=e.parentNode}return null}function it(e){if(e=e[pt]||e[cn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Qt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function on(e){var t=e[B];return t||(t=e[B]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Tt(e){e[oe]=!0}var Qn=new Set,Ea={};function We(e,t){st(e,t),st(e+"Capture",t)}function st(e,t){for(Ea[e]=t,e=0;e<t.length;e++)Qn.add(t[e])}var vt=RegExp("^[: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]*$"),xt={},It={};function Wi(e){return M.call(It,e)?!0:M.call(xt,e)?!1:vt.test(e)?It[e]=!0:(xt[e]=!0,!1)}function Za(e,t,n){if(Wi(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function $i(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function aa(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _p(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(v){n=""+v,o.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(v){n=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wu(e){if(!e._valueTracker){var t=cc(e)?"checked":"value";e._valueTracker=_p(e,t,""+e[t])}}function fc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=cc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function er(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Rp=/[\n"\\]/g;function Ln(e){return e.replace(Rp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Tu(e,t,n,a,i,o,v,A){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kn(t)):e.value!==""+kn(t)&&(e.value=""+kn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Au(e,v,kn(t)):n!=null?Au(e,v,kn(n)):a!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+kn(A):e.removeAttribute("name")}function dc(e,t,n,a,i,o,v,A){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){wu(e);return}n=n!=null?""+kn(n):"",t=t!=null?""+kn(t):n,A||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=A?e.checked:!!a,e.defaultChecked=!!a,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),wu(e)}function Au(e,t,n){t==="number"&&er(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function gl(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+kn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function hc(e,t,n){if(t!=null&&(t=""+kn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+kn(n):""}function mc(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(c(92));if($e(a)){if(1<a.length)throw Error(c(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=kn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),wu(e)}function yl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function pc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Dp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function vc(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&pc(e,i,a)}else for(var o in t)t.hasOwnProperty(o)&&pc(e,o,t[o])}function ju(e){if(e.indexOf("-")===-1)return!1;switch(e){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 zp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tr(e){return Mp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function la(){}var Cu=null;function _u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,Sl=null;function gc(e){var t=it(e);if(t&&(e=t.stateNode)){var n=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(Tu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ln(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[Ct]||null;if(!i)throw Error(c(90));Tu(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&fc(a)}break e;case"textarea":hc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&gl(e,!!n.multiple,t,!1)}}}var Ru=!1;function yc(e,t,n){if(Ru)return e(t,n);Ru=!0;try{var a=e(t);return a}finally{if(Ru=!1,(bl!==null||Sl!==null)&&(Vr(),bl&&(t=bl,e=Sl,Sl=bl=null,gc(t),e)))for(t=0;t<e.length;t++)gc(e[t])}}function ei(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Ct]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(ia)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){Du=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{Du=!1}var xa=null,zu=null,nr=null;function bc(){if(nr)return nr;var e,t=zu,n=t.length,a,i="value"in xa?xa.value:xa.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var v=n-e;for(a=1;a<=v&&t[n-a]===i[o-a];a++);return nr=i.slice(e,1<a?1-a:void 0)}function ar(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function lr(){return!0}function Sc(){return!1}function xn(e){function t(n,a,i,o,v){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=o,this.target=v,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(n=e[A],this[A]=n?n(o):o[A]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?lr:Sc,this.isPropagationStopped=Sc,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=lr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lr)},persist:function(){},isPersistent:lr}),t}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ir=xn(Qa),ni=z({},Qa,{view:0,detail:0}),Bp=xn(ni),Mu,Bu,ai,rr=z({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ai&&(ai&&e.type==="mousemove"?(Mu=e.screenX-ai.screenX,Bu=e.screenY-ai.screenY):Bu=Mu=0,ai=e),Mu)},movementY:function(e){return"movementY"in e?e.movementY:Bu}}),Ec=xn(rr),Up=z({},rr,{dataTransfer:0}),kp=xn(Up),Lp=z({},ni,{relatedTarget:0}),Uu=xn(Lp),Hp=z({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),qp=xn(Hp),Kp=z({},Qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vp=xn(Kp),Gp=z({},Qa,{data:0}),xc=xn(Gp),Yp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xp={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"},Zp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zp[e])?!!t[e]:!1}function ku(){return Qp}var Fp=z({},ni,{key:function(e){if(e.key){var t=Yp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ar(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?ar(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ar(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jp=xn(Fp),Pp=z({},rr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oc=xn(Pp),Ip=z({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),Wp=xn(Ip),$p=z({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=xn($p),tv=z({},rr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nv=xn(tv),av=z({},Qa,{newState:0,oldState:0}),lv=xn(av),iv=[9,13,27,32],Lu=ia&&"CompositionEvent"in window,li=null;ia&&"documentMode"in document&&(li=document.documentMode);var rv=ia&&"TextEvent"in window&&!li,Nc=ia&&(!Lu||li&&8<li&&11>=li),wc=" ",Tc=!1;function Ac(e,t){switch(e){case"keyup":return iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var El=!1;function uv(e,t){switch(e){case"compositionend":return jc(t);case"keypress":return t.which!==32?null:(Tc=!0,wc);case"textInput":return e=t.data,e===wc&&Tc?null:e;default:return null}}function ov(e,t){if(El)return e==="compositionend"||!Lu&&Ac(e,t)?(e=bc(),nr=zu=xa=null,El=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nc&&t.locale!=="ko"?null:t.data;default:return null}}var sv={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 Cc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sv[e.type]:t==="textarea"}function _c(e,t,n,a){bl?Sl?Sl.push(a):Sl=[a]:bl=a,t=Jr(t,"onChange"),0<t.length&&(n=new ir("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ii=null,ri=null;function cv(e){hh(e,0)}function ur(e){var t=Qt(e);if(fc(t))return e}function Rc(e,t){if(e==="change")return t}var Dc=!1;if(ia){var Hu;if(ia){var qu="oninput"in document;if(!qu){var zc=document.createElement("div");zc.setAttribute("oninput","return;"),qu=typeof zc.oninput=="function"}Hu=qu}else Hu=!1;Dc=Hu&&(!document.documentMode||9<document.documentMode)}function Mc(){ii&&(ii.detachEvent("onpropertychange",Bc),ri=ii=null)}function Bc(e){if(e.propertyName==="value"&&ur(ri)){var t=[];_c(t,ri,e,_u(e)),yc(cv,t)}}function fv(e,t,n){e==="focusin"?(Mc(),ii=t,ri=n,ii.attachEvent("onpropertychange",Bc)):e==="focusout"&&Mc()}function dv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ur(ri)}function hv(e,t){if(e==="click")return ur(t)}function mv(e,t){if(e==="input"||e==="change")return ur(t)}function pv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _n=typeof Object.is=="function"?Object.is:pv;function ui(e,t){if(_n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!M.call(t,i)||!_n(e[i],t[i]))return!1}return!0}function Uc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kc(e,t){var n=Uc(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Uc(n)}}function Lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=er(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=er(e.document)}return t}function Ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var vv=ia&&"documentMode"in document&&11>=document.documentMode,xl=null,Vu=null,oi=null,Gu=!1;function qc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||xl==null||xl!==er(a)||(a=xl,"selectionStart"in a&&Ku(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),oi&&ui(oi,a)||(oi=a,a=Jr(Vu,"onSelect"),0<a.length&&(t=new ir("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=xl)))}function Fa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ol={animationend:Fa("Animation","AnimationEnd"),animationiteration:Fa("Animation","AnimationIteration"),animationstart:Fa("Animation","AnimationStart"),transitionrun:Fa("Transition","TransitionRun"),transitionstart:Fa("Transition","TransitionStart"),transitioncancel:Fa("Transition","TransitionCancel"),transitionend:Fa("Transition","TransitionEnd")},Yu={},Kc={};ia&&(Kc=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Ja(e){if(Yu[e])return Yu[e];if(!Ol[e])return e;var t=Ol[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kc)return Yu[e]=t[n];return e}var Vc=Ja("animationend"),Gc=Ja("animationiteration"),Yc=Ja("animationstart"),gv=Ja("transitionrun"),yv=Ja("transitionstart"),bv=Ja("transitioncancel"),Xc=Ja("transitionend"),Zc=new Map,Xu="abort auxClick beforeToggle 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(" ");Xu.push("scrollEnd");function Fn(e,t){Zc.set(e,t),We(t,[e])}var or=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Hn=[],Nl=0,Zu=0;function sr(){for(var e=Nl,t=Zu=Nl=0;t<e;){var n=Hn[t];Hn[t++]=null;var a=Hn[t];Hn[t++]=null;var i=Hn[t];Hn[t++]=null;var o=Hn[t];if(Hn[t++]=null,a!==null&&i!==null){var v=a.pending;v===null?i.next=i:(i.next=v.next,v.next=i),a.pending=i}o!==0&&Qc(n,i,o)}}function cr(e,t,n,a){Hn[Nl++]=e,Hn[Nl++]=t,Hn[Nl++]=n,Hn[Nl++]=a,Zu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Qu(e,t,n,a){return cr(e,t,n,a),fr(e)}function Pa(e,t){return cr(e,null,null,t),fr(e)}function Qc(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Te(n),e=o.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),o):null}function fr(e){if(50<_i)throw _i=0,as=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wl={};function Sv(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(e,t,n,a){return new Sv(e,t,n,a)}function Fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ra(e,t){var n=e.alternate;return n===null?(n=Rn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fc(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function dr(e,t,n,a,i,o){var v=0;if(a=e,typeof e=="function")Fu(e)&&(v=1);else if(typeof e=="string")v=wg(e,n,xe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ut:return e=Rn(31,n,t,i),e.elementType=ut,e.lanes=o,e;case Q:return Ia(n.children,i,o,t);case Z:v=8,i|=24;break;case P:return e=Rn(12,n,t,i|2),e.elementType=P,e.lanes=o,e;case ye:return e=Rn(13,n,t,i),e.elementType=ye,e.lanes=o,e;case Me:return e=Rn(19,n,t,i),e.elementType=Me,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:v=10;break e;case se:v=9;break e;case ce:v=11;break e;case Ee:v=14;break e;case Ue:v=16,a=null;break e}v=29,n=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Rn(v,n,t,i),t.elementType=e,t.type=a,t.lanes=o,t}function Ia(e,t,n,a){return e=Rn(7,e,a,t),e.lanes=n,e}function Ju(e,t,n){return e=Rn(6,e,null,t),e.lanes=n,e}function Jc(e){var t=Rn(18,null,null,0);return t.stateNode=e,t}function Pu(e,t,n){return t=Rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pc=new WeakMap;function qn(e,t){if(typeof e=="object"&&e!==null){var n=Pc.get(e);return n!==void 0?n:(t={value:e,source:t,stack:H(t)},Pc.set(e,t),t)}return{value:e,source:t,stack:H(t)}}var Tl=[],Al=0,hr=null,si=0,Kn=[],Vn=0,Oa=null,Wn=1,$n="";function ua(e,t){Tl[Al++]=si,Tl[Al++]=hr,hr=e,si=t}function Ic(e,t,n){Kn[Vn++]=Wn,Kn[Vn++]=$n,Kn[Vn++]=Oa,Oa=e;var a=Wn;e=$n;var i=32-Te(a)-1;a&=~(1<<i),n+=1;var o=32-Te(t)+i;if(30<o){var v=i-i%5;o=(a&(1<<v)-1).toString(32),a>>=v,i-=v,Wn=1<<32-Te(t)+i|n<<i|a,$n=o+e}else Wn=1<<o|n<<i|a,$n=e}function Iu(e){e.return!==null&&(ua(e,1),Ic(e,1,0))}function Wu(e){for(;e===hr;)hr=Tl[--Al],Tl[Al]=null,si=Tl[--Al],Tl[Al]=null;for(;e===Oa;)Oa=Kn[--Vn],Kn[Vn]=null,$n=Kn[--Vn],Kn[Vn]=null,Wn=Kn[--Vn],Kn[Vn]=null}function Wc(e,t){Kn[Vn++]=Wn,Kn[Vn++]=$n,Kn[Vn++]=Oa,Wn=t.id,$n=t.overflow,Oa=e}var dn=null,Yt=null,Et=!1,Na=null,Gn=!1,$u=Error(c(519));function wa(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ci(qn(t,e)),$u}function $c(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[pt]=e,t[Ct]=a,n){case"dialog":yt("cancel",t),yt("close",t);break;case"iframe":case"object":case"embed":yt("load",t);break;case"video":case"audio":for(n=0;n<Di.length;n++)yt(Di[n],t);break;case"source":yt("error",t);break;case"img":case"image":case"link":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"input":yt("invalid",t),dc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":yt("invalid",t);break;case"textarea":yt("invalid",t),mc(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||gh(t.textContent,n)?(a.popover!=null&&(yt("beforetoggle",t),yt("toggle",t)),a.onScroll!=null&&yt("scroll",t),a.onScrollEnd!=null&&yt("scrollend",t),a.onClick!=null&&(t.onclick=la),t=!0):t=!1,t||wa(e,!0)}function ef(e){for(dn=e.return;dn;)switch(dn.tag){case 5:case 31:case 13:Gn=!1;return;case 27:case 3:Gn=!0;return;default:dn=dn.return}}function jl(e){if(e!==dn)return!1;if(!Et)return ef(e),Et=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ys(e.type,e.memoizedProps)),n=!n),n&&Yt&&wa(e),ef(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Yt=Th(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Yt=Th(e)}else t===27?(t=Yt,Ha(e.type)?(e=Os,Os=null,Yt=e):Yt=t):Yt=dn?Xn(e.stateNode.nextSibling):null;return!0}function Wa(){Yt=dn=null,Et=!1}function eo(){var e=Na;return e!==null&&(Tn===null?Tn=e:Tn.push.apply(Tn,e),Na=null),e}function ci(e){Na===null?Na=[e]:Na.push(e)}var to=U(null),$a=null,oa=null;function Ta(e,t,n){Ae(to,t._currentValue),t._currentValue=n}function sa(e){e._currentValue=to.current,de(to)}function no(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function ao(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var v=i.child;o=o.firstContext;e:for(;o!==null;){var A=o;o=i;for(var L=0;L<t.length;L++)if(A.context===t[L]){o.lanes|=n,A=o.alternate,A!==null&&(A.lanes|=n),no(o.return,n,e),a||(v=null);break e}o=A.next}}else if(i.tag===18){if(v=i.return,v===null)throw Error(c(341));v.lanes|=n,o=v.alternate,o!==null&&(o.lanes|=n),no(v,n,e),v=null}else v=i.child;if(v!==null)v.return=i;else for(v=i;v!==null;){if(v===e){v=null;break}if(i=v.sibling,i!==null){i.return=v.return,v=i;break}v=v.return}i=v}}function Cl(e,t,n,a){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var v=i.alternate;if(v===null)throw Error(c(387));if(v=v.memoizedProps,v!==null){var A=i.type;_n(i.pendingProps.value,v.value)||(e!==null?e.push(A):e=[A])}}else if(i===E.current){if(v=i.alternate,v===null)throw Error(c(387));v.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ki):e=[ki])}i=i.return}e!==null&&ao(t,e,n,a),t.flags|=262144}function mr(e){for(e=e.firstContext;e!==null;){if(!_n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function el(e){$a=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function hn(e){return tf($a,e)}function pr(e,t){return $a===null&&el(e),tf(e,t)}function tf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},oa===null){if(e===null)throw Error(c(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return n}var Ev=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},xv=r.unstable_scheduleCallback,Ov=r.unstable_NormalPriority,nn={$$typeof:ge,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lo(){return{controller:new Ev,data:new Map,refCount:0}}function fi(e){e.refCount--,e.refCount===0&&xv(Ov,function(){e.controller.abort()})}var di=null,io=0,_l=0,Rl=null;function Nv(e,t){if(di===null){var n=di=[];io=0,_l=ss(),Rl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return io++,t.then(nf,nf),t}function nf(){if(--io===0&&di!==null){Rl!==null&&(Rl.status="fulfilled");var e=di;di=null,_l=0,Rl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var af=ae.S;ae.S=function(e,t){Kd=G(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Nv(e,t),af!==null&&af(e,t)};var tl=U(null);function ro(){var e=tl.current;return e!==null?e:Vt.pooledCache}function vr(e,t){t===null?Ae(tl,tl.current):Ae(tl,t.pool)}function lf(){var e=ro();return e===null?null:{parent:nn._currentValue,pool:e}}var Dl=Error(c(460)),uo=Error(c(474)),gr=Error(c(542)),yr={then:function(){}};function rf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(la,la),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e;default:if(typeof t.status=="string")t.then(la,la);else{if(e=Vt,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e}throw al=t,Dl}}function nl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(al=n,Dl):n}}var al=null;function of(){if(al===null)throw Error(c(459));var e=al;return al=null,e}function sf(e){if(e===Dl||e===gr)throw Error(c(483))}var zl=null,hi=0;function br(e){var t=hi;return hi+=1,zl===null&&(zl=[]),uf(zl,e,t)}function mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Sr(e,t){throw t.$$typeof===ne?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function cf(e){function t(X,V){if(e){var W=X.deletions;W===null?(X.deletions=[V],X.flags|=16):W.push(V)}}function n(X,V){if(!e)return null;for(;V!==null;)t(X,V),V=V.sibling;return null}function a(X){for(var V=new Map;X!==null;)X.key!==null?V.set(X.key,X):V.set(X.index,X),X=X.sibling;return V}function i(X,V){return X=ra(X,V),X.index=0,X.sibling=null,X}function o(X,V,W){return X.index=W,e?(W=X.alternate,W!==null?(W=W.index,W<V?(X.flags|=67108866,V):W):(X.flags|=67108866,V)):(X.flags|=1048576,V)}function v(X){return e&&X.alternate===null&&(X.flags|=67108866),X}function A(X,V,W,me){return V===null||V.tag!==6?(V=Ju(W,X.mode,me),V.return=X,V):(V=i(V,W),V.return=X,V)}function L(X,V,W,me){var nt=W.type;return nt===Q?fe(X,V,W.props.children,me,W.key):V!==null&&(V.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Ue&&nl(nt)===V.type)?(V=i(V,W.props),mi(V,W),V.return=X,V):(V=dr(W.type,W.key,W.props,null,X.mode,me),mi(V,W),V.return=X,V)}function ee(X,V,W,me){return V===null||V.tag!==4||V.stateNode.containerInfo!==W.containerInfo||V.stateNode.implementation!==W.implementation?(V=Pu(W,X.mode,me),V.return=X,V):(V=i(V,W.children||[]),V.return=X,V)}function fe(X,V,W,me,nt){return V===null||V.tag!==7?(V=Ia(W,X.mode,me,nt),V.return=X,V):(V=i(V,W),V.return=X,V)}function ve(X,V,W){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Ju(""+V,X.mode,W),V.return=X,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case I:return W=dr(V.type,V.key,V.props,null,X.mode,W),mi(W,V),W.return=X,W;case ue:return V=Pu(V,X.mode,W),V.return=X,V;case Ue:return V=nl(V),ve(X,V,W)}if($e(V)||Se(V))return V=Ia(V,X.mode,W,null),V.return=X,V;if(typeof V.then=="function")return ve(X,br(V),W);if(V.$$typeof===ge)return ve(X,pr(X,V),W);Sr(X,V)}return null}function te(X,V,W,me){var nt=V!==null?V.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return nt!==null?null:A(X,V,""+W,me);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case I:return W.key===nt?L(X,V,W,me):null;case ue:return W.key===nt?ee(X,V,W,me):null;case Ue:return W=nl(W),te(X,V,W,me)}if($e(W)||Se(W))return nt!==null?null:fe(X,V,W,me,null);if(typeof W.then=="function")return te(X,V,br(W),me);if(W.$$typeof===ge)return te(X,V,pr(X,W),me);Sr(X,W)}return null}function le(X,V,W,me,nt){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return X=X.get(W)||null,A(V,X,""+me,nt);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case I:return X=X.get(me.key===null?W:me.key)||null,L(V,X,me,nt);case ue:return X=X.get(me.key===null?W:me.key)||null,ee(V,X,me,nt);case Ue:return me=nl(me),le(X,V,W,me,nt)}if($e(me)||Se(me))return X=X.get(W)||null,fe(V,X,me,nt,null);if(typeof me.then=="function")return le(X,V,W,br(me),nt);if(me.$$typeof===ge)return le(X,V,W,pr(V,me),nt);Sr(V,me)}return null}function He(X,V,W,me){for(var nt=null,Ot=null,Ve=V,ht=V=0,St=null;Ve!==null&&ht<W.length;ht++){Ve.index>ht?(St=Ve,Ve=null):St=Ve.sibling;var Nt=te(X,Ve,W[ht],me);if(Nt===null){Ve===null&&(Ve=St);break}e&&Ve&&Nt.alternate===null&&t(X,Ve),V=o(Nt,V,ht),Ot===null?nt=Nt:Ot.sibling=Nt,Ot=Nt,Ve=St}if(ht===W.length)return n(X,Ve),Et&&ua(X,ht),nt;if(Ve===null){for(;ht<W.length;ht++)Ve=ve(X,W[ht],me),Ve!==null&&(V=o(Ve,V,ht),Ot===null?nt=Ve:Ot.sibling=Ve,Ot=Ve);return Et&&ua(X,ht),nt}for(Ve=a(Ve);ht<W.length;ht++)St=le(Ve,X,ht,W[ht],me),St!==null&&(e&&St.alternate!==null&&Ve.delete(St.key===null?ht:St.key),V=o(St,V,ht),Ot===null?nt=St:Ot.sibling=St,Ot=St);return e&&Ve.forEach(function(Ya){return t(X,Ya)}),Et&&ua(X,ht),nt}function lt(X,V,W,me){if(W==null)throw Error(c(151));for(var nt=null,Ot=null,Ve=V,ht=V=0,St=null,Nt=W.next();Ve!==null&&!Nt.done;ht++,Nt=W.next()){Ve.index>ht?(St=Ve,Ve=null):St=Ve.sibling;var Ya=te(X,Ve,Nt.value,me);if(Ya===null){Ve===null&&(Ve=St);break}e&&Ve&&Ya.alternate===null&&t(X,Ve),V=o(Ya,V,ht),Ot===null?nt=Ya:Ot.sibling=Ya,Ot=Ya,Ve=St}if(Nt.done)return n(X,Ve),Et&&ua(X,ht),nt;if(Ve===null){for(;!Nt.done;ht++,Nt=W.next())Nt=ve(X,Nt.value,me),Nt!==null&&(V=o(Nt,V,ht),Ot===null?nt=Nt:Ot.sibling=Nt,Ot=Nt);return Et&&ua(X,ht),nt}for(Ve=a(Ve);!Nt.done;ht++,Nt=W.next())Nt=le(Ve,X,ht,Nt.value,me),Nt!==null&&(e&&Nt.alternate!==null&&Ve.delete(Nt.key===null?ht:Nt.key),V=o(Nt,V,ht),Ot===null?nt=Nt:Ot.sibling=Nt,Ot=Nt);return e&&Ve.forEach(function(Ug){return t(X,Ug)}),Et&&ua(X,ht),nt}function kt(X,V,W,me){if(typeof W=="object"&&W!==null&&W.type===Q&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case I:e:{for(var nt=W.key;V!==null;){if(V.key===nt){if(nt=W.type,nt===Q){if(V.tag===7){n(X,V.sibling),me=i(V,W.props.children),me.return=X,X=me;break e}}else if(V.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Ue&&nl(nt)===V.type){n(X,V.sibling),me=i(V,W.props),mi(me,W),me.return=X,X=me;break e}n(X,V);break}else t(X,V);V=V.sibling}W.type===Q?(me=Ia(W.props.children,X.mode,me,W.key),me.return=X,X=me):(me=dr(W.type,W.key,W.props,null,X.mode,me),mi(me,W),me.return=X,X=me)}return v(X);case ue:e:{for(nt=W.key;V!==null;){if(V.key===nt)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){n(X,V.sibling),me=i(V,W.children||[]),me.return=X,X=me;break e}else{n(X,V);break}else t(X,V);V=V.sibling}me=Pu(W,X.mode,me),me.return=X,X=me}return v(X);case Ue:return W=nl(W),kt(X,V,W,me)}if($e(W))return He(X,V,W,me);if(Se(W)){if(nt=Se(W),typeof nt!="function")throw Error(c(150));return W=nt.call(W),lt(X,V,W,me)}if(typeof W.then=="function")return kt(X,V,br(W),me);if(W.$$typeof===ge)return kt(X,V,pr(X,W),me);Sr(X,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(n(X,V.sibling),me=i(V,W),me.return=X,X=me):(n(X,V),me=Ju(W,X.mode,me),me.return=X,X=me),v(X)):n(X,V)}return function(X,V,W,me){try{hi=0;var nt=kt(X,V,W,me);return zl=null,nt}catch(Ve){if(Ve===Dl||Ve===gr)throw Ve;var Ot=Rn(29,Ve,null,X.mode);return Ot.lanes=me,Ot.return=X,Ot}finally{}}}var ll=cf(!0),ff=cf(!1),Aa=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function so(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(At&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fr(e),Qc(e,null,n),t}return cr(e,a,t,n),fr(e)}function pi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Gt(e,n)}}function co(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var v={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=v:o=o.next=v,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var fo=!1;function vi(){if(fo){var e=Rl;if(e!==null)throw e}}function gi(e,t,n,a){fo=!1;var i=e.updateQueue;Aa=!1;var o=i.firstBaseUpdate,v=i.lastBaseUpdate,A=i.shared.pending;if(A!==null){i.shared.pending=null;var L=A,ee=L.next;L.next=null,v===null?o=ee:v.next=ee,v=L;var fe=e.alternate;fe!==null&&(fe=fe.updateQueue,A=fe.lastBaseUpdate,A!==v&&(A===null?fe.firstBaseUpdate=ee:A.next=ee,fe.lastBaseUpdate=L))}if(o!==null){var ve=i.baseState;v=0,fe=ee=L=null,A=o;do{var te=A.lane&-536870913,le=te!==A.lane;if(le?(bt&te)===te:(a&te)===te){te!==0&&te===_l&&(fo=!0),fe!==null&&(fe=fe.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var He=e,lt=A;te=t;var kt=n;switch(lt.tag){case 1:if(He=lt.payload,typeof He=="function"){ve=He.call(kt,ve,te);break e}ve=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=lt.payload,te=typeof He=="function"?He.call(kt,ve,te):He,te==null)break e;ve=z({},ve,te);break e;case 2:Aa=!0}}te=A.callback,te!==null&&(e.flags|=64,le&&(e.flags|=8192),le=i.callbacks,le===null?i.callbacks=[te]:le.push(te))}else le={lane:te,tag:A.tag,payload:A.payload,callback:A.callback,next:null},fe===null?(ee=fe=le,L=ve):fe=fe.next=le,v|=te;if(A=A.next,A===null){if(A=i.shared.pending,A===null)break;le=A,A=le.next,le.next=null,i.lastBaseUpdate=le,i.shared.pending=null}}while(!0);fe===null&&(L=ve),i.baseState=L,i.firstBaseUpdate=ee,i.lastBaseUpdate=fe,o===null&&(i.shared.lanes=0),Ma|=v,e.lanes=v,e.memoizedState=ve}}function df(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function hf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)df(n[e],t)}var Ml=U(null),Er=U(0);function mf(e,t){e=ya,Ae(Er,e),Ae(Ml,t),ya=e|t.baseLanes}function ho(){Ae(Er,ya),Ae(Ml,Ml.current)}function mo(){ya=Er.current,de(Ml),de(Er)}var Dn=U(null),Yn=null;function _a(e){var t=e.alternate;Ae(Wt,Wt.current&1),Ae(Dn,e),Yn===null&&(t===null||Ml.current!==null||t.memoizedState!==null)&&(Yn=e)}function po(e){Ae(Wt,Wt.current),Ae(Dn,e),Yn===null&&(Yn=e)}function pf(e){e.tag===22?(Ae(Wt,Wt.current),Ae(Dn,e),Yn===null&&(Yn=e)):Ra()}function Ra(){Ae(Wt,Wt.current),Ae(Dn,Dn.current)}function zn(e){de(Dn),Yn===e&&(Yn=null),de(Wt)}var Wt=U(0);function xr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Es(n)||xs(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=0,ft=null,Bt=null,an=null,Or=!1,Bl=!1,il=!1,Nr=0,yi=0,Ul=null,Tv=0;function Jt(){throw Error(c(321))}function vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_n(e[n],t[n]))return!1;return!0}function go(e,t,n,a,i,o){return ca=o,ft=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ae.H=e===null||e.memoizedState===null?Wf:Do,il=!1,o=n(a,i),il=!1,Bl&&(o=gf(t,n,a,i)),vf(e),o}function vf(e){ae.H=Ei;var t=Bt!==null&&Bt.next!==null;if(ca=0,an=Bt=ft=null,Or=!1,yi=0,Ul=null,t)throw Error(c(300));e===null||ln||(e=e.dependencies,e!==null&&mr(e)&&(ln=!0))}function gf(e,t,n,a){ft=e;var i=0;do{if(Bl&&(Ul=null),yi=0,Bl=!1,25<=i)throw Error(c(301));if(i+=1,an=Bt=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ae.H=$f,o=t(n,a)}while(Bl);return o}function Av(){var e=ae.H,t=e.useState()[0];return t=typeof t.then=="function"?bi(t):t,e=e.useState()[0],(Bt!==null?Bt.memoizedState:null)!==e&&(ft.flags|=1024),t}function yo(){var e=Nr!==0;return Nr=0,e}function bo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(Or){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Or=!1}ca=0,an=Bt=ft=null,Bl=!1,yi=Nr=0,Ul=null}function Sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?ft.memoizedState=an=e:an=an.next=e,an}function $t(){if(Bt===null){var e=ft.alternate;e=e!==null?e.memoizedState:null}else e=Bt.next;var t=an===null?ft.memoizedState:an.next;if(t!==null)an=t,Bt=e;else{if(e===null)throw ft.alternate===null?Error(c(467)):Error(c(310));Bt=e,e={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},an===null?ft.memoizedState=an=e:an=an.next=e}return an}function wr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bi(e){var t=yi;return yi+=1,Ul===null&&(Ul=[]),e=uf(Ul,e,t),t=ft,(an===null?t.memoizedState:an.next)===null&&(t=t.alternate,ae.H=t===null||t.memoizedState===null?Wf:Do),e}function Tr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bi(e);if(e.$$typeof===ge)return hn(e)}throw Error(c(438,String(e)))}function Eo(e){var t=null,n=ft.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ft.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=wr(),ft.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=je;return t.index++,n}function fa(e,t){return typeof t=="function"?t(e):t}function Ar(e){var t=$t();return xo(t,Bt,e)}function xo(e,t,n){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=n;var i=e.baseQueue,o=a.pending;if(o!==null){if(i!==null){var v=i.next;i.next=o.next,o.next=v}t.baseQueue=i=o,a.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var A=v=null,L=null,ee=t,fe=!1;do{var ve=ee.lane&-536870913;if(ve!==ee.lane?(bt&ve)===ve:(ca&ve)===ve){var te=ee.revertLane;if(te===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ve===_l&&(fe=!0);else if((ca&te)===te){ee=ee.next,te===_l&&(fe=!0);continue}else ve={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},L===null?(A=L=ve,v=o):L=L.next=ve,ft.lanes|=te,Ma|=te;ve=ee.action,il&&n(o,ve),o=ee.hasEagerState?ee.eagerState:n(o,ve)}else te={lane:ve,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},L===null?(A=L=te,v=o):L=L.next=te,ft.lanes|=ve,Ma|=ve;ee=ee.next}while(ee!==null&&ee!==t);if(L===null?v=o:L.next=A,!_n(o,e.memoizedState)&&(ln=!0,fe&&(n=Rl,n!==null)))throw n;e.memoizedState=o,e.baseState=v,e.baseQueue=L,a.lastRenderedState=o}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Oo(e){var t=$t(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var v=i=i.next;do o=e(o,v.action),v=v.next;while(v!==i);_n(o,t.memoizedState)||(ln=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function yf(e,t,n){var a=ft,i=$t(),o=Et;if(o){if(n===void 0)throw Error(c(407));n=n()}else n=t();var v=!_n((Bt||i).memoizedState,n);if(v&&(i.memoizedState=n,ln=!0),i=i.queue,To(Ef.bind(null,a,i,e),[e]),i.getSnapshot!==t||v||an!==null&&an.memoizedState.tag&1){if(a.flags|=2048,kl(9,{destroy:void 0},Sf.bind(null,a,i,n,t),null),Vt===null)throw Error(c(349));o||(ca&127)!==0||bf(a,t,n)}return n}function bf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ft.updateQueue,t===null?(t=wr(),ft.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sf(e,t,n,a){t.value=n,t.getSnapshot=a,xf(t)&&Of(e)}function Ef(e,t,n){return n(function(){xf(t)&&Of(e)})}function xf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_n(e,n)}catch{return!0}}function Of(e){var t=Pa(e,2);t!==null&&An(t,e,2)}function No(e){var t=Sn();if(typeof e=="function"){var n=e;if(e=n(),il){Be(!0);try{n()}finally{Be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},t}function Nf(e,t,n,a){return e.baseState=n,xo(e,Bt,typeof a=="function"?a:fa)}function jv(e,t,n,a,i){if(_r(e))throw Error(c(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){o.listeners.push(v)}};ae.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,wf(t,o)):(o.next=n.next,t.pending=n.next=o)}}function wf(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var o=ae.T,v={};ae.T=v;try{var A=n(i,a),L=ae.S;L!==null&&L(v,A),Tf(e,t,A)}catch(ee){wo(e,t,ee)}finally{o!==null&&v.types!==null&&(o.types=v.types),ae.T=o}}else try{o=n(i,a),Tf(e,t,o)}catch(ee){wo(e,t,ee)}}function Tf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Af(e,t,a)},function(a){return wo(e,t,a)}):Af(e,t,n)}function Af(e,t,n){t.status="fulfilled",t.value=n,jf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,wf(e,n)))}function wo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,jf(t),t=t.next;while(t!==a)}e.action=null}function jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cf(e,t){return t}function _f(e,t){if(Et){var n=Vt.formState;if(n!==null){e:{var a=ft;if(Et){if(Yt){t:{for(var i=Yt,o=Gn;i.nodeType!==8;){if(!o){i=null;break t}if(i=Xn(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Yt=Xn(i.nextSibling),a=i.data==="F!";break e}}wa(a)}a=!1}a&&(t=n[0])}}return n=Sn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cf,lastRenderedState:t},n.queue=a,n=Jf.bind(null,ft,a),a.dispatch=n,a=No(!1),o=Ro.bind(null,ft,!1,a.queue),a=Sn(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=jv.bind(null,ft,i,o,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function Rf(e){var t=$t();return Df(t,Bt,e)}function Df(e,t,n){if(t=xo(e,t,Cf)[0],e=Ar(fa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=bi(t)}catch(v){throw v===Dl?gr:v}else a=t;t=$t();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(ft.flags|=2048,kl(9,{destroy:void 0},Cv.bind(null,i,n),null)),[a,o,e]}function Cv(e,t){e.action=t}function zf(e){var t=$t(),n=Bt;if(n!==null)return Df(t,n,e);$t(),t=t.memoizedState,n=$t();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function kl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ft.updateQueue,t===null&&(t=wr(),ft.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Mf(){return $t().memoizedState}function jr(e,t,n,a){var i=Sn();ft.flags|=e,i.memoizedState=kl(1|t,{destroy:void 0},n,a===void 0?null:a)}function Cr(e,t,n,a){var i=$t();a=a===void 0?null:a;var o=i.memoizedState.inst;Bt!==null&&a!==null&&vo(a,Bt.memoizedState.deps)?i.memoizedState=kl(t,o,n,a):(ft.flags|=e,i.memoizedState=kl(1|t,o,n,a))}function Bf(e,t){jr(8390656,8,e,t)}function To(e,t){Cr(2048,8,e,t)}function _v(e){ft.flags|=4;var t=ft.updateQueue;if(t===null)t=wr(),ft.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Uf(e){var t=$t().memoizedState;return _v({ref:t,nextImpl:e}),function(){if((At&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function kf(e,t){return Cr(4,2,e,t)}function Lf(e,t){return Cr(4,4,e,t)}function Hf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qf(e,t,n){n=n!=null?n.concat([e]):null,Cr(4,4,Hf.bind(null,t,e),n)}function Ao(){}function Kf(e,t){var n=$t();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&vo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Vf(e,t){var n=$t();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&vo(t,a[1]))return a[0];if(a=e(),il){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[a,t],a}function jo(e,t,n){return n===void 0||(ca&1073741824)!==0&&(bt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Gd(),ft.lanes|=e,Ma|=e,n)}function Gf(e,t,n,a){return _n(n,t)?n:Ml.current!==null?(e=jo(e,n,a),_n(e,t)||(ln=!0),e):(ca&42)===0||(ca&1073741824)!==0&&(bt&261930)===0?(ln=!0,e.memoizedState=n):(e=Gd(),ft.lanes|=e,Ma|=e,t)}function Yf(e,t,n,a,i){var o=we.p;we.p=o!==0&&8>o?o:8;var v=ae.T,A={};ae.T=A,Ro(e,!1,t,n);try{var L=i(),ee=ae.S;if(ee!==null&&ee(A,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var fe=wv(L,a);Si(e,t,fe,Un(e))}else Si(e,t,a,Un(e))}catch(ve){Si(e,t,{then:function(){},status:"rejected",reason:ve},Un())}finally{we.p=o,v!==null&&A.types!==null&&(v.types=A.types),ae.T=v}}function Rv(){}function Co(e,t,n,a){if(e.tag!==5)throw Error(c(476));var i=Xf(e).queue;Yf(e,i,t,Ge,n===null?Rv:function(){return Zf(e),n(a)})}function Xf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ge,baseState:Ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:Ge},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zf(e){var t=Xf(e);t.next===null&&(t=e.alternate.memoizedState),Si(e,t.next.queue,{},Un())}function _o(){return hn(ki)}function Qf(){return $t().memoizedState}function Ff(){return $t().memoizedState}function Dv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Un();e=ja(n);var a=Ca(t,e,n);a!==null&&(An(a,t,n),pi(a,t,n)),t={cache:lo()},e.payload=t;return}t=t.return}}function zv(e,t,n){var a=Un();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_r(e)?Pf(t,n):(n=Qu(e,t,n,a),n!==null&&(An(n,e,a),If(n,t,a)))}function Jf(e,t,n){var a=Un();Si(e,t,n,a)}function Si(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_r(e))Pf(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var v=t.lastRenderedState,A=o(v,n);if(i.hasEagerState=!0,i.eagerState=A,_n(A,v))return cr(e,t,i,0),Vt===null&&sr(),!1}catch{}finally{}if(n=Qu(e,t,i,a),n!==null)return An(n,e,a),If(n,t,a),!0}return!1}function Ro(e,t,n,a){if(a={lane:2,revertLane:ss(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_r(e)){if(t)throw Error(c(479))}else t=Qu(e,n,a,2),t!==null&&An(t,e,2)}function _r(e){var t=e.alternate;return e===ft||t!==null&&t===ft}function Pf(e,t){Bl=Or=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function If(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Gt(e,n)}}var Ei={readContext:hn,use:Tr,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt};Ei.useEffectEvent=Jt;var Wf={readContext:hn,use:Tr,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:Bf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,jr(4194308,4,Hf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jr(4194308,4,e,t)},useInsertionEffect:function(e,t){jr(4,2,e,t)},useMemo:function(e,t){var n=Sn();t=t===void 0?null:t;var a=e();if(il){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Sn();if(n!==void 0){var i=n(t);if(il){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=zv.bind(null,ft,e),[a.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:function(e){e=No(e);var t=e.queue,n=Jf.bind(null,ft,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ao,useDeferredValue:function(e,t){var n=Sn();return jo(n,e,t)},useTransition:function(){var e=No(!1);return e=Yf.bind(null,ft,e.queue,!0,!1),Sn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ft,i=Sn();if(Et){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Vt===null)throw Error(c(349));(bt&127)!==0||bf(a,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Bf(Ef.bind(null,a,o,e),[e]),a.flags|=2048,kl(9,{destroy:void 0},Sf.bind(null,a,o,n,t),null),n},useId:function(){var e=Sn(),t=Vt.identifierPrefix;if(Et){var n=$n,a=Wn;n=(a&~(1<<32-Te(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Nr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Tv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_o,useFormState:_f,useActionState:_f,useOptimistic:function(e){var t=Sn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ro.bind(null,ft,!0,n),n.dispatch=t,[e,t]},useMemoCache:Eo,useCacheRefresh:function(){return Sn().memoizedState=Dv.bind(null,ft)},useEffectEvent:function(e){var t=Sn(),n={impl:e};return t.memoizedState=n,function(){if((At&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Do={readContext:hn,use:Tr,useCallback:Kf,useContext:hn,useEffect:To,useImperativeHandle:qf,useInsertionEffect:kf,useLayoutEffect:Lf,useMemo:Vf,useReducer:Ar,useRef:Mf,useState:function(){return Ar(fa)},useDebugValue:Ao,useDeferredValue:function(e,t){var n=$t();return Gf(n,Bt.memoizedState,e,t)},useTransition:function(){var e=Ar(fa)[0],t=$t().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:yf,useId:Qf,useHostTransitionStatus:_o,useFormState:Rf,useActionState:Rf,useOptimistic:function(e,t){var n=$t();return Nf(n,Bt,e,t)},useMemoCache:Eo,useCacheRefresh:Ff};Do.useEffectEvent=Uf;var $f={readContext:hn,use:Tr,useCallback:Kf,useContext:hn,useEffect:To,useImperativeHandle:qf,useInsertionEffect:kf,useLayoutEffect:Lf,useMemo:Vf,useReducer:Oo,useRef:Mf,useState:function(){return Oo(fa)},useDebugValue:Ao,useDeferredValue:function(e,t){var n=$t();return Bt===null?jo(n,e,t):Gf(n,Bt.memoizedState,e,t)},useTransition:function(){var e=Oo(fa)[0],t=$t().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:yf,useId:Qf,useHostTransitionStatus:_o,useFormState:zf,useActionState:zf,useOptimistic:function(e,t){var n=$t();return Bt!==null?Nf(n,Bt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Eo,useCacheRefresh:Ff};$f.useEffectEvent=Uf;function zo(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Mo={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Un(),i=ja(a);i.payload=t,n!=null&&(i.callback=n),t=Ca(e,i,a),t!==null&&(An(t,e,a),pi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Un(),i=ja(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ca(e,i,a),t!==null&&(An(t,e,a),pi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Un(),a=ja(n);a.tag=2,t!=null&&(a.callback=t),t=Ca(e,a,n),t!==null&&(An(t,e,n),pi(t,e,n))}};function ed(e,t,n,a,i,o,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,v):t.prototype&&t.prototype.isPureReactComponent?!ui(n,a)||!ui(i,o):!0}function td(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Mo.enqueueReplaceState(t,t.state,null)}function rl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=z({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function nd(e){or(e)}function ad(e){console.error(e)}function ld(e){or(e)}function Rr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function id(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Bo(e,t,n){return n=ja(n),n.tag=3,n.payload={element:null},n.callback=function(){Rr(e,t)},n}function rd(e){return e=ja(e),e.tag=3,e}function ud(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;e.payload=function(){return i(o)},e.callback=function(){id(t,n,a)}}var v=n.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){id(t,n,a),typeof i!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var A=a.stack;this.componentDidCatch(a.value,{componentStack:A!==null?A:""})})}function Mv(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Cl(t,n,i,!0),n=Dn.current,n!==null){switch(n.tag){case 31:case 13:return Yn===null?Gr():n.alternate===null&&Pt===0&&(Pt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===yr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),rs(e,a,i)),!1;case 22:return n.flags|=65536,a===yr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),rs(e,a,i)),!1}throw Error(c(435,n.tag))}return rs(e,a,i),Gr(),!1}if(Et)return t=Dn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==$u&&(e=Error(c(422),{cause:a}),ci(qn(e,n)))):(a!==$u&&(t=Error(c(423),{cause:a}),ci(qn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=qn(a,n),i=Bo(e.stateNode,a,i),co(e,i),Pt!==4&&(Pt=2)),!1;var o=Error(c(520),{cause:a});if(o=qn(o,n),Ci===null?Ci=[o]:Ci.push(o),Pt!==4&&(Pt=2),t===null)return!0;a=qn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Bo(n.stateNode,a,e),co(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ba===null||!Ba.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=rd(i),ud(i,e,n,a),co(n,i),!1}n=n.return}while(n!==null);return!1}var Uo=Error(c(461)),ln=!1;function mn(e,t,n,a){t.child=e===null?ff(t,null,n,a):ll(t,e.child,n,a)}function od(e,t,n,a,i){n=n.render;var o=t.ref;if("ref"in a){var v={};for(var A in a)A!=="ref"&&(v[A]=a[A])}else v=a;return el(t),a=go(e,t,n,v,o,i),A=yo(),e!==null&&!ln?(bo(e,t,i),da(e,t,i)):(Et&&A&&Iu(t),t.flags|=1,mn(e,t,a,i),t.child)}function sd(e,t,n,a,i){if(e===null){var o=n.type;return typeof o=="function"&&!Fu(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,cd(e,t,o,a,i)):(e=dr(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Yo(e,i)){var v=o.memoizedProps;if(n=n.compare,n=n!==null?n:ui,n(v,a)&&e.ref===t.ref)return da(e,t,i)}return t.flags|=1,e=ra(o,a),e.ref=t.ref,e.return=t,t.child=e}function cd(e,t,n,a,i){if(e!==null){var o=e.memoizedProps;if(ui(o,a)&&e.ref===t.ref)if(ln=!1,t.pendingProps=a=o,Yo(e,i))(e.flags&131072)!==0&&(ln=!0);else return t.lanes=e.lanes,da(e,t,i)}return ko(e,t,n,a,i)}function fd(e,t,n,a){var i=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,t.child=null;return dd(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vr(t,o!==null?o.cachePool:null),o!==null?mf(t,o):ho(),pf(t);else return a=t.lanes=536870912,dd(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(vr(t,o.cachePool),mf(t,o),Ra(),t.memoizedState=null):(e!==null&&vr(t,null),ho(),Ra());return mn(e,t,i,n),t.child}function xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dd(e,t,n,a,i){var o=ro();return o=o===null?null:{parent:nn._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&vr(t,null),ho(),pf(t),e!==null&&Cl(e,t,a,!0),t.childLanes=i,null}function Dr(e,t){return t=Mr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hd(e,t,n){return ll(t,e.child,null,n),e=Dr(t,t.pendingProps),e.flags|=2,zn(t),t.memoizedState=null,e}function Bv(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Et){if(a.mode==="hidden")return e=Dr(t,a),t.lanes=536870912,xi(null,e);if(po(t),(e=Yt)?(e=wh(e,Gn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Wn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},n=Jc(e),n.return=t,t.child=n,dn=t,Yt=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return Dr(t,a)}var o=e.memoizedState;if(o!==null){var v=o.dehydrated;if(po(t),i)if(t.flags&256)t.flags&=-257,t=hd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(ln||Cl(e,t,n,!1),i=(n&e.childLanes)!==0,ln||i){if(a=Vt,a!==null&&(v=wt(a,n),v!==0&&v!==o.retryLane))throw o.retryLane=v,Pa(e,v),An(a,e,v),Uo;Gr(),t=hd(e,t,n)}else e=o.treeContext,Yt=Xn(v.nextSibling),dn=t,Et=!0,Na=null,Gn=!1,e!==null&&Wc(t,e),t=Dr(t,a),t.flags|=4096;return t}return e=ra(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ko(e,t,n,a,i){return el(t),n=go(e,t,n,a,void 0,i),a=yo(),e!==null&&!ln?(bo(e,t,i),da(e,t,i)):(Et&&a&&Iu(t),t.flags|=1,mn(e,t,n,i),t.child)}function md(e,t,n,a,i,o){return el(t),t.updateQueue=null,n=gf(t,a,n,i),vf(e),a=yo(),e!==null&&!ln?(bo(e,t,o),da(e,t,o)):(Et&&a&&Iu(t),t.flags|=1,mn(e,t,n,o),t.child)}function pd(e,t,n,a,i){if(el(t),t.stateNode===null){var o=wl,v=n.contextType;typeof v=="object"&&v!==null&&(o=hn(v)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Mo,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},oo(t),v=n.contextType,o.context=typeof v=="object"&&v!==null?hn(v):wl,o.state=t.memoizedState,v=n.getDerivedStateFromProps,typeof v=="function"&&(zo(t,n,v,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(v=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),v!==o.state&&Mo.enqueueReplaceState(o,o.state,null),gi(t,a,o,i),vi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var A=t.memoizedProps,L=rl(n,A);o.props=L;var ee=o.context,fe=n.contextType;v=wl,typeof fe=="object"&&fe!==null&&(v=hn(fe));var ve=n.getDerivedStateFromProps;fe=typeof ve=="function"||typeof o.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,fe||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(A||ee!==v)&&td(t,o,a,v),Aa=!1;var te=t.memoizedState;o.state=te,gi(t,a,o,i),vi(),ee=t.memoizedState,A||te!==ee||Aa?(typeof ve=="function"&&(zo(t,n,ve,a),ee=t.memoizedState),(L=Aa||ed(t,n,L,a,te,ee,v))?(fe||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=ee),o.props=a,o.state=ee,o.context=v,a=L):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,so(e,t),v=t.memoizedProps,fe=rl(n,v),o.props=fe,ve=t.pendingProps,te=o.context,ee=n.contextType,L=wl,typeof ee=="object"&&ee!==null&&(L=hn(ee)),A=n.getDerivedStateFromProps,(ee=typeof A=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v!==ve||te!==L)&&td(t,o,a,L),Aa=!1,te=t.memoizedState,o.state=te,gi(t,a,o,i),vi();var le=t.memoizedState;v!==ve||te!==le||Aa||e!==null&&e.dependencies!==null&&mr(e.dependencies)?(typeof A=="function"&&(zo(t,n,A,a),le=t.memoizedState),(fe=Aa||ed(t,n,fe,a,te,le,L)||e!==null&&e.dependencies!==null&&mr(e.dependencies))?(ee||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,le,L),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,le,L)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||v===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&te===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=le),o.props=a,o.state=le,o.context=L,a=fe):(typeof o.componentDidUpdate!="function"||v===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&te===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,zr(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=ll(t,e.child,null,i),t.child=ll(t,null,n,i)):mn(e,t,n,i),t.memoizedState=o.state,e=t.child):e=da(e,t,i),e}function vd(e,t,n,a){return Wa(),t.flags|=256,mn(e,t,n,a),t.child}var Lo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ho(e){return{baseLanes:e,cachePool:lf()}}function qo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Bn),e}function gd(e,t,n){var a=t.pendingProps,i=!1,o=(t.flags&128)!==0,v;if((v=o)||(v=e!==null&&e.memoizedState===null?!1:(Wt.current&2)!==0),v&&(i=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Et){if(i?_a(t):Ra(),(e=Yt)?(e=wh(e,Gn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Wn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},n=Jc(e),n.return=t,t.child=n,dn=t,Yt=null)):e=null,e===null)throw wa(t);return xs(e)?t.lanes=32:t.lanes=536870912,null}var A=a.children;return a=a.fallback,i?(Ra(),i=t.mode,A=Mr({mode:"hidden",children:A},i),a=Ia(a,i,n,null),A.return=t,a.return=t,A.sibling=a,t.child=A,a=t.child,a.memoizedState=Ho(n),a.childLanes=qo(e,v,n),t.memoizedState=Lo,xi(null,a)):(_a(t),Ko(t,A))}var L=e.memoizedState;if(L!==null&&(A=L.dehydrated,A!==null)){if(o)t.flags&256?(_a(t),t.flags&=-257,t=Vo(e,t,n)):t.memoizedState!==null?(Ra(),t.child=e.child,t.flags|=128,t=null):(Ra(),A=a.fallback,i=t.mode,a=Mr({mode:"visible",children:a.children},i),A=Ia(A,i,n,null),A.flags|=2,a.return=t,A.return=t,a.sibling=A,t.child=a,ll(t,e.child,null,n),a=t.child,a.memoizedState=Ho(n),a.childLanes=qo(e,v,n),t.memoizedState=Lo,t=xi(null,a));else if(_a(t),xs(A)){if(v=A.nextSibling&&A.nextSibling.dataset,v)var ee=v.dgst;v=ee,a=Error(c(419)),a.stack="",a.digest=v,ci({value:a,source:null,stack:null}),t=Vo(e,t,n)}else if(ln||Cl(e,t,n,!1),v=(n&e.childLanes)!==0,ln||v){if(v=Vt,v!==null&&(a=wt(v,n),a!==0&&a!==L.retryLane))throw L.retryLane=a,Pa(e,a),An(v,e,a),Uo;Es(A)||Gr(),t=Vo(e,t,n)}else Es(A)?(t.flags|=192,t.child=e.child,t=null):(e=L.treeContext,Yt=Xn(A.nextSibling),dn=t,Et=!0,Na=null,Gn=!1,e!==null&&Wc(t,e),t=Ko(t,a.children),t.flags|=4096);return t}return i?(Ra(),A=a.fallback,i=t.mode,L=e.child,ee=L.sibling,a=ra(L,{mode:"hidden",children:a.children}),a.subtreeFlags=L.subtreeFlags&65011712,ee!==null?A=ra(ee,A):(A=Ia(A,i,n,null),A.flags|=2),A.return=t,a.return=t,a.sibling=A,t.child=a,xi(null,a),a=t.child,A=e.child.memoizedState,A===null?A=Ho(n):(i=A.cachePool,i!==null?(L=nn._currentValue,i=i.parent!==L?{parent:L,pool:L}:i):i=lf(),A={baseLanes:A.baseLanes|n,cachePool:i}),a.memoizedState=A,a.childLanes=qo(e,v,n),t.memoizedState=Lo,xi(e.child,a)):(_a(t),n=e.child,e=n.sibling,n=ra(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=n,t.memoizedState=null,n)}function Ko(e,t){return t=Mr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mr(e,t){return e=Rn(22,e,null,t),e.lanes=0,e}function Vo(e,t,n){return ll(t,e.child,null,n),e=Ko(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),no(e.return,t,n)}function Go(e,t,n,a,i,o){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=a,v.tail=n,v.tailMode=i,v.treeForkCount=o)}function bd(e,t,n){var a=t.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var v=Wt.current,A=(v&2)!==0;if(A?(v=v&1|2,t.flags|=128):v&=1,Ae(Wt,v),mn(e,t,a,n),a=Et?si:0,!A&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yd(e,n,t);else if(e.tag===19)yd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xr(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Go(t,!1,i,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xr(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Go(t,!0,n,null,o,a);break;case"together":Go(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function da(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ma|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Cl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=ra(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ra(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&mr(e)))}function Uv(e,t,n){switch(t.tag){case 3:l(t,t.stateNode.containerInfo),Ta(t,nn,e.memoizedState.cache),Wa();break;case 27:case 5:f(t);break;case 4:l(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,po(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(_a(t),t.flags|=128,null):(n&t.child.childLanes)!==0?gd(e,t,n):(_a(t),e=da(e,t,n),e!==null?e.sibling:null);_a(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Cl(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return bd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ae(Wt,Wt.current),a)break;return null;case 22:return t.lanes=0,fd(e,t,n,t.pendingProps);case 24:Ta(t,nn,e.memoizedState.cache)}return da(e,t,n)}function Sd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ln=!0;else{if(!Yo(e,n)&&(t.flags&128)===0)return ln=!1,Uv(e,t,n);ln=(e.flags&131072)!==0}else ln=!1,Et&&(t.flags&1048576)!==0&&Ic(t,si,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=nl(t.elementType),t.type=e,typeof e=="function")Fu(e)?(a=rl(e,a),t.tag=1,t=pd(null,t,e,a,n)):(t.tag=0,t=ko(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===ce){t.tag=11,t=od(null,t,e,a,n);break e}else if(i===Ee){t.tag=14,t=sd(null,t,e,a,n);break e}}throw t=Ye(e)||e,Error(c(306,t,""))}}return t;case 0:return ko(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=rl(a,t.pendingProps),pd(e,t,a,i,n);case 3:e:{if(l(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var o=t.memoizedState;i=o.element,so(e,t),gi(t,a,null,n);var v=t.memoizedState;if(a=v.cache,Ta(t,nn,a),a!==o.cache&&ao(t,[nn],n,!0),vi(),a=v.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=vd(e,t,a,n);break e}else if(a!==i){i=qn(Error(c(424)),t),ci(i),t=vd(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Yt=Xn(e.firstChild),dn=t,Et=!0,Na=null,Gn=!0,n=ff(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wa(),a===i){t=da(e,t,n);break e}mn(e,t,a,n)}t=t.child}return t;case 26:return zr(e,t),e===null?(n=Rh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Et||(n=t.type,e=t.pendingProps,a=Pr(p.current).createElement(n),a[pt]=t,a[Ct]=e,pn(a,n,e),Tt(a),t.stateNode=a):t.memoizedState=Rh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return f(t),e===null&&Et&&(a=t.stateNode=jh(t.type,t.pendingProps,p.current),dn=t,Gn=!0,i=Yt,Ha(t.type)?(Os=i,Yt=Xn(a.firstChild)):Yt=i),mn(e,t,t.pendingProps.children,n),zr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Et&&((i=a=Yt)&&(a=dg(a,t.type,t.pendingProps,Gn),a!==null?(t.stateNode=a,dn=t,Yt=Xn(a.firstChild),Gn=!1,i=!0):i=!1),i||wa(t)),f(t),i=t.type,o=t.pendingProps,v=e!==null?e.memoizedProps:null,a=o.children,ys(i,o)?a=null:v!==null&&ys(i,v)&&(t.flags|=32),t.memoizedState!==null&&(i=go(e,t,Av,null,null,n),ki._currentValue=i),zr(e,t),mn(e,t,a,n),t.child;case 6:return e===null&&Et&&((e=n=Yt)&&(n=hg(n,t.pendingProps,Gn),n!==null?(t.stateNode=n,dn=t,Yt=null,e=!0):e=!1),e||wa(t)),null;case 13:return gd(e,t,n);case 4:return l(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ll(t,null,a,n):mn(e,t,a,n),t.child;case 11:return od(e,t,t.type,t.pendingProps,n);case 7:return mn(e,t,t.pendingProps,n),t.child;case 8:return mn(e,t,t.pendingProps.children,n),t.child;case 12:return mn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Ta(t,t.type,a.value),mn(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,el(t),i=hn(i),a=a(i),t.flags|=1,mn(e,t,a,n),t.child;case 14:return sd(e,t,t.type,t.pendingProps,n);case 15:return cd(e,t,t.type,t.pendingProps,n);case 19:return bd(e,t,n);case 31:return Bv(e,t,n);case 22:return fd(e,t,n,t.pendingProps);case 24:return el(t),a=hn(nn),e===null?(i=ro(),i===null&&(i=Vt,o=lo(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:a,cache:i},oo(t),Ta(t,nn,i)):((e.lanes&n)!==0&&(so(e,t),gi(t,null,null,n),vi()),i=e.memoizedState,o=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ta(t,nn,a)):(a=o.cache,Ta(t,nn,a),a!==i.cache&&ao(t,[nn],n,!0))),mn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ha(e){e.flags|=4}function Xo(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Qd())e.flags|=8192;else throw al=yr,uo}else e.flags&=-16777217}function Ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Uh(t))if(Qd())e.flags|=8192;else throw al=yr,uo}function Br(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ce():536870912,e.lanes|=t,Kl|=t)}function Oi(e,t){if(!Et)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function kv(e,t,n){var a=t.pendingProps;switch(Wu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return Xt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),sa(nn),u(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(jl(t)?ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,eo())),Xt(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(ha(t),o!==null?(Xt(t),Ed(t,o)):(Xt(t),Xo(t,i,null,a,n))):o?o!==e.memoizedState?(ha(t),Xt(t),Ed(t,o)):(Xt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ha(t),Xt(t),Xo(t,i,e,a,n)),null;case 27:if(h(t),n=p.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ha(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Xt(t),null}e=xe.current,jl(t)?$c(t):(e=jh(i,a,n),t.stateNode=e,ha(t))}return Xt(t),null;case 5:if(h(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ha(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Xt(t),null}if(o=xe.current,jl(t))$c(t);else{var v=Pr(p.current);switch(o){case 1:o=v.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=v.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=v.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=v.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=v.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?v.createElement("select",{is:a.is}):v.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?v.createElement(i,{is:a.is}):v.createElement(i)}}o[pt]=t,o[Ct]=a;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)o.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=o;e:switch(pn(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ha(t)}}return Xt(t),Xo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ha(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=p.current,jl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=dn,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[pt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||gh(e.nodeValue,n)),e||wa(t,!0)}else e=Pr(e).createTextNode(a),e[pt]=t,t.stateNode=e}return Xt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=jl(t),n!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[pt]=t}else Wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xt(t),e=!1}else n=eo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(zn(t),t):(zn(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Xt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=jl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[pt]=t}else Wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xt(t),i=!1}else i=eo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(zn(t),t):(zn(t),null)}return zn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Br(t,t.updateQueue),Xt(t),null);case 4:return u(),e===null&&hs(t.stateNode.containerInfo),Xt(t),null;case 10:return sa(t.type),Xt(t),null;case 19:if(de(Wt),a=t.memoizedState,a===null)return Xt(t),null;if(i=(t.flags&128)!==0,o=a.rendering,o===null)if(i)Oi(a,!1);else{if(Pt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=xr(e),o!==null){for(t.flags|=128,Oi(a,!1),e=o.updateQueue,t.updateQueue=e,Br(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Fc(n,e),n=n.sibling;return Ae(Wt,Wt.current&1|2),Et&&ua(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&G()>qr&&(t.flags|=128,i=!0,Oi(a,!1),t.lanes=4194304)}else{if(!i)if(e=xr(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Br(t,e),Oi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Et)return Xt(t),null}else 2*G()-a.renderingStartTime>qr&&n!==536870912&&(t.flags|=128,i=!0,Oi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=G(),e.sibling=null,n=Wt.current,Ae(Wt,i?n&1|2:n&1),Et&&ua(t,a.treeForkCount),e):(Xt(t),null);case 22:case 23:return zn(t),mo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),n=t.updateQueue,n!==null&&Br(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&de(tl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),sa(nn),Xt(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Lv(e,t){switch(Wu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(nn),u(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return h(t),null;case 31:if(t.memoizedState!==null){if(zn(t),t.alternate===null)throw Error(c(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(Wt),null;case 4:return u(),null;case 10:return sa(t.type),null;case 22:case 23:return zn(t),mo(),e!==null&&de(tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(nn),null;case 25:return null;default:return null}}function xd(e,t){switch(Wu(t),t.tag){case 3:sa(nn),u();break;case 26:case 27:case 5:h(t);break;case 4:u();break;case 31:t.memoizedState!==null&&zn(t);break;case 13:zn(t);break;case 19:de(Wt);break;case 10:sa(t.type);break;case 22:case 23:zn(t),mo(),e!==null&&de(tl);break;case 24:sa(nn)}}function Ni(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var o=n.create,v=n.inst;a=o(),v.destroy=a}n=n.next}while(n!==i)}}catch(A){Rt(t,t.return,A)}}function Da(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){var v=a.inst,A=v.destroy;if(A!==void 0){v.destroy=void 0,i=t;var L=n,ee=A;try{ee()}catch(fe){Rt(i,L,fe)}}}a=a.next}while(a!==o)}}catch(fe){Rt(t,t.return,fe)}}function Od(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{hf(t,n)}catch(a){Rt(e,e.return,a)}}}function Nd(e,t,n){n.props=rl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Rt(e,t,a)}}function wi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){Rt(e,t,i)}}function ea(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Rt(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Rt(e,t,i)}else n.current=null}function wd(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Rt(e,e.return,i)}}function Zo(e,t,n){try{var a=e.stateNode;rg(a,e.type,n,t),a[Ct]=t}catch(i){Rt(e,e.return,i)}}function Td(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ha(e.type)||e.tag===4}function Qo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Td(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ha(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=la));else if(a!==4&&(a===27&&Ha(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Fo(e,t,n),e=e.sibling;e!==null;)Fo(e,t,n),e=e.sibling}function Ur(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ha(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ur(e,t,n),e=e.sibling;e!==null;)Ur(e,t,n),e=e.sibling}function Ad(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);pn(t,a,n),t[pt]=e,t[Ct]=n}catch(o){Rt(e,e.return,o)}}var ma=!1,rn=!1,Jo=!1,jd=typeof WeakSet=="function"?WeakSet:Set,fn=null;function Hv(e,t){if(e=e.containerInfo,vs=au,e=Hc(e),Ku(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var v=0,A=-1,L=-1,ee=0,fe=0,ve=e,te=null;t:for(;;){for(var le;ve!==n||i!==0&&ve.nodeType!==3||(A=v+i),ve!==o||a!==0&&ve.nodeType!==3||(L=v+a),ve.nodeType===3&&(v+=ve.nodeValue.length),(le=ve.firstChild)!==null;)te=ve,ve=le;for(;;){if(ve===e)break t;if(te===n&&++ee===i&&(A=v),te===o&&++fe===a&&(L=v),(le=ve.nextSibling)!==null)break;ve=te,te=ve.parentNode}ve=le}n=A===-1||L===-1?null:{start:A,end:L}}else n=null}n=n||{start:0,end:0}}else n=null;for(gs={focusedElem:e,selectionRange:n},au=!1,fn=t;fn!==null;)if(t=fn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,fn=e;else for(;fn!==null;){switch(t=fn,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var He=rl(n.type,i);e=a.getSnapshotBeforeUpdate(He,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(lt){Rt(n,n.return,lt)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ss(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ss(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,fn=e;break}fn=t.return}}function Cd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:va(e,n),a&4&&Ni(5,n);break;case 1:if(va(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(v){Rt(n,n.return,v)}else{var i=rl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Rt(n,n.return,v)}}a&64&&Od(n),a&512&&wi(n,n.return);break;case 3:if(va(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{hf(e,t)}catch(v){Rt(n,n.return,v)}}break;case 27:t===null&&a&4&&Ad(n);case 26:case 5:va(e,n),t===null&&a&4&&wd(n),a&512&&wi(n,n.return);break;case 12:va(e,n);break;case 31:va(e,n),a&4&&Dd(e,n);break;case 13:va(e,n),a&4&&zd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Fv.bind(null,n),mg(e,n))));break;case 22:if(a=n.memoizedState!==null||ma,!a){t=t!==null&&t.memoizedState!==null||rn,i=ma;var o=rn;ma=a,(rn=t)&&!o?ga(e,n,(n.subtreeFlags&8772)!==0):va(e,n),ma=i,rn=o}break;case 30:break;default:va(e,n)}}function _d(e){var t=e.alternate;t!==null&&(e.alternate=null,_d(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ke(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Zt=null,On=!1;function pa(e,t,n){for(n=n.child;n!==null;)Rd(e,t,n),n=n.sibling}function Rd(e,t,n){if(Le&&typeof Le.onCommitFiberUnmount=="function")try{Le.onCommitFiberUnmount(re,n)}catch{}switch(n.tag){case 26:rn||ea(n,t),pa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rn||ea(n,t);var a=Zt,i=On;Ha(n.type)&&(Zt=n.stateNode,On=!1),pa(e,t,n),Mi(n.stateNode),Zt=a,On=i;break;case 5:rn||ea(n,t);case 6:if(a=Zt,i=On,Zt=null,pa(e,t,n),Zt=a,On=i,Zt!==null)if(On)try{(Zt.nodeType===9?Zt.body:Zt.nodeName==="HTML"?Zt.ownerDocument.body:Zt).removeChild(n.stateNode)}catch(o){Rt(n,t,o)}else try{Zt.removeChild(n.stateNode)}catch(o){Rt(n,t,o)}break;case 18:Zt!==null&&(On?(e=Zt,Oh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Jl(e)):Oh(Zt,n.stateNode));break;case 4:a=Zt,i=On,Zt=n.stateNode.containerInfo,On=!0,pa(e,t,n),Zt=a,On=i;break;case 0:case 11:case 14:case 15:Da(2,n,t),rn||Da(4,n,t),pa(e,t,n);break;case 1:rn||(ea(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Nd(n,t,a)),pa(e,t,n);break;case 21:pa(e,t,n);break;case 22:rn=(a=rn)||n.memoizedState!==null,pa(e,t,n),rn=a;break;default:pa(e,t,n)}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Jl(e)}catch(n){Rt(t,t.return,n)}}}function zd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jl(e)}catch(n){Rt(t,t.return,n)}}function qv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jd),t;default:throw Error(c(435,e.tag))}}function kr(e,t){var n=qv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=Jv.bind(null,e,a);a.then(i,i)}})}function Nn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],o=e,v=t,A=v;e:for(;A!==null;){switch(A.tag){case 27:if(Ha(A.type)){Zt=A.stateNode,On=!1;break e}break;case 5:Zt=A.stateNode,On=!1;break e;case 3:case 4:Zt=A.stateNode.containerInfo,On=!0;break e}A=A.return}if(Zt===null)throw Error(c(160));Rd(o,v,i),Zt=null,On=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Md(t,e),t=t.sibling}var Jn=null;function Md(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nn(t,e),wn(e),a&4&&(Da(3,e,e.return),Ni(3,e),Da(5,e,e.return));break;case 1:Nn(t,e),wn(e),a&512&&(rn||n===null||ea(n,n.return)),a&64&&ma&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Jn;if(Nn(t,e),wn(e),a&512&&(rn||n===null||ea(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":o=i.getElementsByTagName("title")[0],(!o||o[oe]||o[pt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(a),i.head.insertBefore(o,i.querySelector("head > title"))),pn(o,a,n),o[pt]=e,Tt(o),a=o;break e;case"link":var v=Mh("link","href",i).get(a+(n.href||""));if(v){for(var A=0;A<v.length;A++)if(o=v[A],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){v.splice(A,1);break t}}o=i.createElement(a),pn(o,a,n),i.head.appendChild(o);break;case"meta":if(v=Mh("meta","content",i).get(a+(n.content||""))){for(A=0;A<v.length;A++)if(o=v[A],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){v.splice(A,1);break t}}o=i.createElement(a),pn(o,a,n),i.head.appendChild(o);break;default:throw Error(c(468,a))}o[pt]=e,Tt(o),a=o}e.stateNode=a}else Bh(i,e.type,e.stateNode);else e.stateNode=zh(i,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Bh(i,e.type,e.stateNode):zh(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Zo(e,e.memoizedProps,n.memoizedProps)}break;case 27:Nn(t,e),wn(e),a&512&&(rn||n===null||ea(n,n.return)),n!==null&&a&4&&Zo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Nn(t,e),wn(e),a&512&&(rn||n===null||ea(n,n.return)),e.flags&32){i=e.stateNode;try{yl(i,"")}catch(He){Rt(e,e.return,He)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Zo(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Jo=!0);break;case 6:if(Nn(t,e),wn(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(He){Rt(e,e.return,He)}}break;case 3:if($r=null,i=Jn,Jn=Ir(t.containerInfo),Nn(t,e),Jn=i,wn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(t.containerInfo)}catch(He){Rt(e,e.return,He)}Jo&&(Jo=!1,Bd(e));break;case 4:a=Jn,Jn=Ir(e.stateNode.containerInfo),Nn(t,e),wn(e),Jn=a;break;case 12:Nn(t,e),wn(e);break;case 31:Nn(t,e),wn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kr(e,a)));break;case 13:Nn(t,e),wn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Hr=G()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kr(e,a)));break;case 22:i=e.memoizedState!==null;var L=n!==null&&n.memoizedState!==null,ee=ma,fe=rn;if(ma=ee||i,rn=fe||L,Nn(t,e),rn=fe,ma=ee,wn(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||L||ma||rn||ul(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){L=n=t;try{if(o=L.stateNode,i)v=o.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{A=L.stateNode;var ve=L.memoizedProps.style,te=ve!=null&&ve.hasOwnProperty("display")?ve.display:null;A.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(He){Rt(L,L.return,He)}}}else if(t.tag===6){if(n===null){L=t;try{L.stateNode.nodeValue=i?"":L.memoizedProps}catch(He){Rt(L,L.return,He)}}}else if(t.tag===18){if(n===null){L=t;try{var le=L.stateNode;i?Nh(le,!0):Nh(L.stateNode,!1)}catch(He){Rt(L,L.return,He)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,kr(e,n))));break;case 19:Nn(t,e),wn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kr(e,a)));break;case 30:break;case 21:break;default:Nn(t,e),wn(e)}}function wn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Td(a)){n=a;break}a=a.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var i=n.stateNode,o=Qo(e);Ur(e,o,i);break;case 5:var v=n.stateNode;n.flags&32&&(yl(v,""),n.flags&=-33);var A=Qo(e);Ur(e,A,v);break;case 3:case 4:var L=n.stateNode.containerInfo,ee=Qo(e);Fo(e,ee,L);break;default:throw Error(c(161))}}catch(fe){Rt(e,e.return,fe)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Da(4,t,t.return),ul(t);break;case 1:ea(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Nd(t,t.return,n),ul(t);break;case 27:Mi(t.stateNode);case 26:case 5:ea(t,t.return),ul(t);break;case 22:t.memoizedState===null&&ul(t);break;case 30:ul(t);break;default:ul(t)}e=e.sibling}}function ga(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,o=t,v=o.flags;switch(o.tag){case 0:case 11:case 15:ga(i,o,n),Ni(4,o);break;case 1:if(ga(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(ee){Rt(a,a.return,ee)}if(a=o,i=a.updateQueue,i!==null){var A=a.stateNode;try{var L=i.shared.hiddenCallbacks;if(L!==null)for(i.shared.hiddenCallbacks=null,i=0;i<L.length;i++)df(L[i],A)}catch(ee){Rt(a,a.return,ee)}}n&&v&64&&Od(o),wi(o,o.return);break;case 27:Ad(o);case 26:case 5:ga(i,o,n),n&&a===null&&v&4&&wd(o),wi(o,o.return);break;case 12:ga(i,o,n);break;case 31:ga(i,o,n),n&&v&4&&Dd(i,o);break;case 13:ga(i,o,n),n&&v&4&&zd(i,o);break;case 22:o.memoizedState===null&&ga(i,o,n),wi(o,o.return);break;case 30:break;default:ga(i,o,n)}t=t.sibling}}function Po(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&fi(n))}function Io(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e))}function Pn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ud(e,t,n,a),t=t.sibling}function Ud(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Pn(e,t,n,a),i&2048&&Ni(9,t);break;case 1:Pn(e,t,n,a);break;case 3:Pn(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e)));break;case 12:if(i&2048){Pn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,v=o.id,A=o.onPostCommit;typeof A=="function"&&A(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(L){Rt(t,t.return,L)}}else Pn(e,t,n,a);break;case 31:Pn(e,t,n,a);break;case 13:Pn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,v=t.alternate,t.memoizedState!==null?o._visibility&2?Pn(e,t,n,a):Ti(e,t):o._visibility&2?Pn(e,t,n,a):(o._visibility|=2,Ll(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Po(v,t);break;case 24:Pn(e,t,n,a),i&2048&&Io(t.alternate,t);break;default:Pn(e,t,n,a)}}function Ll(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,v=t,A=n,L=a,ee=v.flags;switch(v.tag){case 0:case 11:case 15:Ll(o,v,A,L,i),Ni(8,v);break;case 23:break;case 22:var fe=v.stateNode;v.memoizedState!==null?fe._visibility&2?Ll(o,v,A,L,i):Ti(o,v):(fe._visibility|=2,Ll(o,v,A,L,i)),i&&ee&2048&&Po(v.alternate,v);break;case 24:Ll(o,v,A,L,i),i&&ee&2048&&Io(v.alternate,v);break;default:Ll(o,v,A,L,i)}t=t.sibling}}function Ti(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:Ti(n,a),i&2048&&Po(a.alternate,a);break;case 24:Ti(n,a),i&2048&&Io(a.alternate,a);break;default:Ti(n,a)}t=t.sibling}}var Ai=8192;function Hl(e,t,n){if(e.subtreeFlags&Ai)for(e=e.child;e!==null;)kd(e,t,n),e=e.sibling}function kd(e,t,n){switch(e.tag){case 26:Hl(e,t,n),e.flags&Ai&&e.memoizedState!==null&&Tg(n,Jn,e.memoizedState,e.memoizedProps);break;case 5:Hl(e,t,n);break;case 3:case 4:var a=Jn;Jn=Ir(e.stateNode.containerInfo),Hl(e,t,n),Jn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ai,Ai=16777216,Hl(e,t,n),Ai=a):Hl(e,t,n));break;default:Hl(e,t,n)}}function Ld(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];fn=a,qd(a,e)}Ld(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hd(e),e=e.sibling}function Hd(e){switch(e.tag){case 0:case 11:case 15:ji(e),e.flags&2048&&Da(9,e,e.return);break;case 3:ji(e);break;case 12:ji(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lr(e)):ji(e);break;default:ji(e)}}function Lr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];fn=a,qd(a,e)}Ld(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Da(8,t,t.return),Lr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Lr(t));break;default:Lr(t)}e=e.sibling}}function qd(e,t){for(;fn!==null;){var n=fn;switch(n.tag){case 0:case 11:case 15:Da(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:fi(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,fn=a;else e:for(n=e;fn!==null;){a=fn;var i=a.sibling,o=a.return;if(_d(a),a===n){fn=null;break e}if(i!==null){i.return=o,fn=i;break e}fn=o}}}var Kv={getCacheForType:function(e){var t=hn(nn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return hn(nn).controller.signal}},Vv=typeof WeakMap=="function"?WeakMap:Map,At=0,Vt=null,gt=null,bt=0,_t=0,Mn=null,za=!1,ql=!1,Wo=!1,ya=0,Pt=0,Ma=0,ol=0,$o=0,Bn=0,Kl=0,Ci=null,Tn=null,es=!1,Hr=0,Kd=0,qr=1/0,Kr=null,Ba=null,sn=0,Ua=null,Vl=null,ba=0,ts=0,ns=null,Vd=null,_i=0,as=null;function Un(){return(At&2)!==0&&bt!==0?bt&-bt:ae.T!==null?ss():qt()}function Gd(){if(Bn===0)if((bt&536870912)===0||Et){var e=Qe;Qe<<=1,(Qe&3932160)===0&&(Qe=262144),Bn=e}else Bn=536870912;return e=Dn.current,e!==null&&(e.flags|=32),Bn}function An(e,t,n){(e===Vt&&(_t===2||_t===9)||e.cancelPendingCommit!==null)&&(Gl(e,0),ka(e,bt,Bn,!1)),Je(e,n),((At&2)===0||e!==Vt)&&(e===Vt&&((At&2)===0&&(ol|=n),Pt===4&&ka(e,bt,Bn,!1)),ta(e))}function Yd(e,t,n){if((At&6)!==0)throw Error(c(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ze(e,t),i=a?Xv(e,t):is(e,t,!0),o=a;do{if(i===0){ql&&!a&&ka(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Gv(n)){i=is(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var A=e;i=Ci;var L=A.current.memoizedState.isDehydrated;if(L&&(Gl(A,v).flags|=256),v=is(A,v,!1),v!==2){if(Wo&&!L){A.errorRecoveryDisabledLanes|=o,ol|=o,i=4;break e}o=Tn,Tn=i,o!==null&&(Tn===null?Tn=o:Tn.push.apply(Tn,o))}i=v}if(o=!1,i!==2)continue}}if(i===1){Gl(e,0),ka(e,t,0,!0);break}e:{switch(a=e,o=i,o){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ka(a,t,Bn,!za);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Hr+300-G(),10<i)){if(ka(a,t,Bn,!za),rt(a,0,!0)!==0)break e;ba=t,a.timeoutHandle=Eh(Xd.bind(null,a,n,Tn,Kr,es,t,Bn,ol,Kl,za,o,"Throttled",-0,0),i);break e}Xd(a,n,Tn,Kr,es,t,Bn,ol,Kl,za,o,null,-0,0)}}break}while(!0);ta(e)}function Xd(e,t,n,a,i,o,v,A,L,ee,fe,ve,te,le){if(e.timeoutHandle=-1,ve=t.subtreeFlags,ve&8192||(ve&16785408)===16785408){ve={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},kd(t,o,ve);var He=(o&62914560)===o?Hr-G():(o&4194048)===o?Kd-G():0;if(He=Ag(ve,He),He!==null){ba=o,e.cancelPendingCommit=He($d.bind(null,e,t,o,n,a,i,v,A,L,fe,ve,null,te,le)),ka(e,o,v,!ee);return}}$d(e,t,o,n,a,i,v,A,L)}function Gv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!_n(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ka(e,t,n,a){t&=~$o,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var o=31-Te(i),v=1<<o;a[o]=-1,i&=~v}n!==0&&jt(e,n,t)}function Vr(){return(At&6)===0?(Ri(0),!1):!0}function ls(){if(gt!==null){if(_t===0)var e=gt.return;else e=gt,oa=$a=null,So(e),zl=null,hi=0,e=gt;for(;e!==null;)xd(e.alternate,e),e=e.return;gt=null}}function Gl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,sg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ba=0,ls(),Vt=e,gt=n=ra(e.current,null),bt=t,_t=0,Mn=null,za=!1,ql=ze(e,t),Wo=!1,Kl=Bn=$o=ol=Ma=Pt=0,Tn=Ci=null,es=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Te(a),o=1<<i;t|=e[i],a&=~o}return ya=t,sr(),n}function Zd(e,t){ft=null,ae.H=Ei,t===Dl||t===gr?(t=of(),_t=3):t===uo?(t=of(),_t=4):_t=t===Uo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mn=t,gt===null&&(Pt=1,Rr(e,qn(t,e.current)))}function Qd(){var e=Dn.current;return e===null?!0:(bt&4194048)===bt?Yn===null:(bt&62914560)===bt||(bt&536870912)!==0?e===Yn:!1}function Fd(){var e=ae.H;return ae.H=Ei,e===null?Ei:e}function Jd(){var e=ae.A;return ae.A=Kv,e}function Gr(){Pt=4,za||(bt&4194048)!==bt&&Dn.current!==null||(ql=!0),(Ma&134217727)===0&&(ol&134217727)===0||Vt===null||ka(Vt,bt,Bn,!1)}function is(e,t,n){var a=At;At|=2;var i=Fd(),o=Jd();(Vt!==e||bt!==t)&&(Kr=null,Gl(e,t)),t=!1;var v=Pt;e:do try{if(_t!==0&&gt!==null){var A=gt,L=Mn;switch(_t){case 8:ls(),v=6;break e;case 3:case 2:case 9:case 6:Dn.current===null&&(t=!0);var ee=_t;if(_t=0,Mn=null,Yl(e,A,L,ee),n&&ql){v=0;break e}break;default:ee=_t,_t=0,Mn=null,Yl(e,A,L,ee)}}Yv(),v=Pt;break}catch(fe){Zd(e,fe)}while(!0);return t&&e.shellSuspendCounter++,oa=$a=null,At=a,ae.H=i,ae.A=o,gt===null&&(Vt=null,bt=0,sr()),v}function Yv(){for(;gt!==null;)Pd(gt)}function Xv(e,t){var n=At;At|=2;var a=Fd(),i=Jd();Vt!==e||bt!==t?(Kr=null,qr=G()+500,Gl(e,t)):ql=ze(e,t);e:do try{if(_t!==0&&gt!==null){t=gt;var o=Mn;t:switch(_t){case 1:_t=0,Mn=null,Yl(e,t,o,1);break;case 2:case 9:if(rf(o)){_t=0,Mn=null,Id(t);break}t=function(){_t!==2&&_t!==9||Vt!==e||(_t=7),ta(e)},o.then(t,t);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:rf(o)?(_t=0,Mn=null,Id(t)):(_t=0,Mn=null,Yl(e,t,o,7));break;case 5:var v=null;switch(gt.tag){case 26:v=gt.memoizedState;case 5:case 27:var A=gt;if(v?Uh(v):A.stateNode.complete){_t=0,Mn=null;var L=A.sibling;if(L!==null)gt=L;else{var ee=A.return;ee!==null?(gt=ee,Yr(ee)):gt=null}break t}}_t=0,Mn=null,Yl(e,t,o,5);break;case 6:_t=0,Mn=null,Yl(e,t,o,6);break;case 8:ls(),Pt=6;break e;default:throw Error(c(462))}}Zv();break}catch(fe){Zd(e,fe)}while(!0);return oa=$a=null,ae.H=a,ae.A=i,At=n,gt!==null?0:(Vt=null,bt=0,sr(),Pt)}function Zv(){for(;gt!==null&&!q();)Pd(gt)}function Pd(e){var t=Sd(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?Yr(e):gt=t}function Id(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=md(n,t,t.pendingProps,t.type,void 0,bt);break;case 11:t=md(n,t,t.pendingProps,t.type.render,t.ref,bt);break;case 5:So(t);default:xd(n,t),t=gt=Fc(t,ya),t=Sd(n,t,ya)}e.memoizedProps=e.pendingProps,t===null?Yr(e):gt=t}function Yl(e,t,n,a){oa=$a=null,So(t),zl=null,hi=0;var i=t.return;try{if(Mv(e,i,t,n,bt)){Pt=1,Rr(e,qn(n,e.current)),gt=null;return}}catch(o){if(i!==null)throw gt=i,o;Pt=1,Rr(e,qn(n,e.current)),gt=null;return}t.flags&32768?(Et||a===1?e=!0:ql||(bt&536870912)!==0?e=!1:(za=e=!0,(a===2||a===9||a===3||a===6)&&(a=Dn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Wd(t,e)):Yr(t)}function Yr(e){var t=e;do{if((t.flags&32768)!==0){Wd(t,za);return}e=t.return;var n=kv(t.alternate,t,ya);if(n!==null){gt=n;return}if(t=t.sibling,t!==null){gt=t;return}gt=t=e}while(t!==null);Pt===0&&(Pt=5)}function Wd(e,t){do{var n=Lv(e.alternate,e);if(n!==null){n.flags&=32767,gt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){gt=e;return}gt=e=n}while(e!==null);Pt=6,gt=null}function $d(e,t,n,a,i,o,v,A,L){e.cancelPendingCommit=null;do Xr();while(sn!==0);if((At&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(o=t.lanes|t.childLanes,o|=Zu,at(e,n,o,v,A,L),e===Vt&&(gt=Vt=null,bt=0),Vl=t,Ua=e,ba=n,ts=o,ns=i,Vd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pv(pe,function(){return lh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=ae.T,ae.T=null,i=we.p,we.p=2,v=At,At|=4;try{Hv(e,t,n)}finally{At=v,we.p=i,ae.T=a}}sn=1,eh(),th(),nh()}}function eh(){if(sn===1){sn=0;var e=Ua,t=Vl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ae.T,ae.T=null;var a=we.p;we.p=2;var i=At;At|=4;try{Md(t,e);var o=gs,v=Hc(e.containerInfo),A=o.focusedElem,L=o.selectionRange;if(v!==A&&A&&A.ownerDocument&&Lc(A.ownerDocument.documentElement,A)){if(L!==null&&Ku(A)){var ee=L.start,fe=L.end;if(fe===void 0&&(fe=ee),"selectionStart"in A)A.selectionStart=ee,A.selectionEnd=Math.min(fe,A.value.length);else{var ve=A.ownerDocument||document,te=ve&&ve.defaultView||window;if(te.getSelection){var le=te.getSelection(),He=A.textContent.length,lt=Math.min(L.start,He),kt=L.end===void 0?lt:Math.min(L.end,He);!le.extend&&lt>kt&&(v=kt,kt=lt,lt=v);var X=kc(A,lt),V=kc(A,kt);if(X&&V&&(le.rangeCount!==1||le.anchorNode!==X.node||le.anchorOffset!==X.offset||le.focusNode!==V.node||le.focusOffset!==V.offset)){var W=ve.createRange();W.setStart(X.node,X.offset),le.removeAllRanges(),lt>kt?(le.addRange(W),le.extend(V.node,V.offset)):(W.setEnd(V.node,V.offset),le.addRange(W))}}}}for(ve=[],le=A;le=le.parentNode;)le.nodeType===1&&ve.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<ve.length;A++){var me=ve[A];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}au=!!vs,gs=vs=null}finally{At=i,we.p=a,ae.T=n}}e.current=t,sn=2}}function th(){if(sn===2){sn=0;var e=Ua,t=Vl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ae.T,ae.T=null;var a=we.p;we.p=2;var i=At;At|=4;try{Cd(e,t.alternate,t)}finally{At=i,we.p=a,ae.T=n}}sn=3}}function nh(){if(sn===4||sn===3){sn=0,Y();var e=Ua,t=Vl,n=ba,a=Vd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?sn=5:(sn=0,Vl=Ua=null,ah(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ba=null),Ht(n),t=t.stateNode,Le&&typeof Le.onCommitFiberRoot=="function")try{Le.onCommitFiberRoot(re,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=ae.T,i=we.p,we.p=2,ae.T=null;try{for(var o=e.onRecoverableError,v=0;v<a.length;v++){var A=a[v];o(A.value,{componentStack:A.stack})}}finally{ae.T=t,we.p=i}}(ba&3)!==0&&Xr(),ta(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===as?_i++:(_i=0,as=e):_i=0,Ri(0)}}function ah(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fi(t)))}function Xr(){return eh(),th(),nh(),lh()}function lh(){if(sn!==5)return!1;var e=Ua,t=ts;ts=0;var n=Ht(ba),a=ae.T,i=we.p;try{we.p=32>n?32:n,ae.T=null,n=ns,ns=null;var o=Ua,v=ba;if(sn=0,Vl=Ua=null,ba=0,(At&6)!==0)throw Error(c(331));var A=At;if(At|=4,Hd(o.current),Ud(o,o.current,v,n),At=A,Ri(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(re,o)}catch{}return!0}finally{we.p=i,ae.T=a,ah(e,t)}}function ih(e,t,n){t=qn(n,t),t=Bo(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(Je(e,2),ta(e))}function Rt(e,t,n){if(e.tag===3)ih(e,e,n);else for(;t!==null;){if(t.tag===3){ih(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ba===null||!Ba.has(a))){e=qn(n,e),n=rd(2),a=Ca(t,n,2),a!==null&&(ud(n,a,t,e),Je(a,2),ta(a));break}}t=t.return}}function rs(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Vv;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Wo=!0,i.add(n),e=Qv.bind(null,e,t,n),t.then(e,e))}function Qv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Vt===e&&(bt&n)===n&&(Pt===4||Pt===3&&(bt&62914560)===bt&&300>G()-Hr?(At&2)===0&&Gl(e,0):$o|=n,Kl===bt&&(Kl=0)),ta(e)}function rh(e,t){t===0&&(t=Ce()),e=Pa(e,t),e!==null&&(Je(e,t),ta(e))}function Fv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rh(e,n)}function Jv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),rh(e,n)}function Pv(e,t){return D(e,t)}var Zr=null,Xl=null,us=!1,Qr=!1,os=!1,La=0;function ta(e){e!==Xl&&e.next===null&&(Xl===null?Zr=Xl=e:Xl=Xl.next=e),Qr=!0,us||(us=!0,Wv())}function Ri(e,t){if(!os&&Qr){os=!0;do for(var n=!1,a=Zr;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var v=a.suspendedLanes,A=a.pingedLanes;o=(1<<31-Te(42|e)+1)-1,o&=i&~(v&~A),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,ch(a,o))}else o=bt,o=rt(a,a===Vt?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||ze(a,o)||(n=!0,ch(a,o));a=a.next}while(n);os=!1}}function Iv(){uh()}function uh(){Qr=us=!1;var e=0;La!==0&&og()&&(e=La);for(var t=G(),n=null,a=Zr;a!==null;){var i=a.next,o=oh(a,t);o===0?(a.next=null,n===null?Zr=i:n.next=i,i===null&&(Xl=n)):(n=a,(e!==0||(o&3)!==0)&&(Qr=!0)),a=i}sn!==0&&sn!==5||Ri(e),La!==0&&(La=0)}function oh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var v=31-Te(o),A=1<<v,L=i[v];L===-1?((A&n)===0||(A&a)!==0)&&(i[v]=De(A,t)):L<=t&&(e.expiredLanes|=A),o&=~A}if(t=Vt,n=bt,n=rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(_t===2||_t===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&K(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&K(a),Ht(n)){case 2:case 8:n=J;break;case 32:n=pe;break;case 268435456:n=he;break;default:n=pe}return a=sh.bind(null,e),n=D(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&K(a),e.callbackPriority=2,e.callbackNode=null,2}function sh(e,t){if(sn!==0&&sn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xr()&&e.callbackNode!==n)return null;var a=bt;return a=rt(e,e===Vt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Yd(e,a,t),oh(e,G()),e.callbackNode!=null&&e.callbackNode===n?sh.bind(null,e):null)}function ch(e,t){if(Xr())return null;Yd(e,t,!0)}function Wv(){cg(function(){(At&6)!==0?D(ie,Iv):uh()})}function ss(){if(La===0){var e=_l;e===0&&(e=tt,tt<<=1,(tt&261888)===0&&(tt=256)),La=e}return La}function fh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tr(""+e)}function dh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function $v(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var o=fh((i[Ct]||null).action),v=a.submitter;v&&(t=(t=v[Ct]||null)?fh(t.formAction):v.getAttribute("formAction"),t!==null&&(o=t,v=null));var A=new ir("action","action",null,a,i);e.push({event:A,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(La!==0){var L=v?dh(i,v):new FormData(i);Co(n,{pending:!0,data:L,method:i.method,action:o},null,L)}}else typeof o=="function"&&(A.preventDefault(),L=v?dh(i,v):new FormData(i),Co(n,{pending:!0,data:L,method:i.method,action:o},o,L))},currentTarget:i}]})}}for(var cs=0;cs<Xu.length;cs++){var fs=Xu[cs],eg=fs.toLowerCase(),tg=fs[0].toUpperCase()+fs.slice(1);Fn(eg,"on"+tg)}Fn(Vc,"onAnimationEnd"),Fn(Gc,"onAnimationIteration"),Fn(Yc,"onAnimationStart"),Fn("dblclick","onDoubleClick"),Fn("focusin","onFocus"),Fn("focusout","onBlur"),Fn(gv,"onTransitionRun"),Fn(yv,"onTransitionStart"),Fn(bv,"onTransitionCancel"),Fn(Xc,"onTransitionEnd"),st("onMouseEnter",["mouseout","mouseover"]),st("onMouseLeave",["mouseout","mouseover"]),st("onPointerEnter",["pointerout","pointerover"]),st("onPointerLeave",["pointerout","pointerover"]),We("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),We("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),We("onBeforeInput",["compositionend","keypress","textInput","paste"]),We("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(" "),ng=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Di));function hh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var v=a.length-1;0<=v;v--){var A=a[v],L=A.instance,ee=A.currentTarget;if(A=A.listener,L!==o&&i.isPropagationStopped())break e;o=A,i.currentTarget=ee;try{o(i)}catch(fe){or(fe)}i.currentTarget=null,o=L}else for(v=0;v<a.length;v++){if(A=a[v],L=A.instance,ee=A.currentTarget,A=A.listener,L!==o&&i.isPropagationStopped())break e;o=A,i.currentTarget=ee;try{o(i)}catch(fe){or(fe)}i.currentTarget=null,o=L}}}}function yt(e,t){var n=t[Mt];n===void 0&&(n=t[Mt]=new Set);var a=e+"__bubble";n.has(a)||(mh(t,e,2,!1),n.add(a))}function ds(e,t,n){var a=0;t&&(a|=4),mh(n,e,a,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function hs(e){if(!e[Fr]){e[Fr]=!0,Qn.forEach(function(n){n!=="selectionchange"&&(ng.has(n)||ds(n,!1,e),ds(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,ds("selectionchange",!1,t))}}function mh(e,t,n,a){switch(Gh(t)){case 2:var i=_g;break;case 8:i=Rg;break;default:i=js}n=i.bind(null,t,n,e),i=void 0,!Du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ms(e,t,n,a,i){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var v=a.tag;if(v===3||v===4){var A=a.stateNode.containerInfo;if(A===i)break;if(v===4)for(v=a.return;v!==null;){var L=v.tag;if((L===3||L===4)&&v.stateNode.containerInfo===i)return;v=v.return}for(;A!==null;){if(v=Pe(A),v===null)return;if(L=v.tag,L===5||L===6||L===26||L===27){a=o=v;continue e}A=A.parentNode}}a=a.return}yc(function(){var ee=o,fe=_u(n),ve=[];e:{var te=Zc.get(e);if(te!==void 0){var le=ir,He=e;switch(e){case"keypress":if(ar(n)===0)break e;case"keydown":case"keyup":le=Jp;break;case"focusin":He="focus",le=Uu;break;case"focusout":He="blur",le=Uu;break;case"beforeblur":case"afterblur":le=Uu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=Ec;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=kp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=Wp;break;case Vc:case Gc:case Yc:le=qp;break;case Xc:le=ev;break;case"scroll":case"scrollend":le=Bp;break;case"wheel":le=nv;break;case"copy":case"cut":case"paste":le=Vp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Oc;break;case"toggle":case"beforetoggle":le=lv}var lt=(t&4)!==0,kt=!lt&&(e==="scroll"||e==="scrollend"),X=lt?te!==null?te+"Capture":null:te;lt=[];for(var V=ee,W;V!==null;){var me=V;if(W=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||W===null||X===null||(me=ei(V,X),me!=null&&lt.push(zi(V,me,W))),kt)break;V=V.return}0<lt.length&&(te=new le(te,He,null,n,fe),ve.push({event:te,listeners:lt}))}}if((t&7)===0){e:{if(te=e==="mouseover"||e==="pointerover",le=e==="mouseout"||e==="pointerout",te&&n!==Cu&&(He=n.relatedTarget||n.fromElement)&&(Pe(He)||He[cn]))break e;if((le||te)&&(te=fe.window===fe?fe:(te=fe.ownerDocument)?te.defaultView||te.parentWindow:window,le?(He=n.relatedTarget||n.toElement,le=ee,He=He?Pe(He):null,He!==null&&(kt=y(He),lt=He.tag,He!==kt||lt!==5&&lt!==27&&lt!==6)&&(He=null)):(le=null,He=ee),le!==He)){if(lt=Ec,me="onMouseLeave",X="onMouseEnter",V="mouse",(e==="pointerout"||e==="pointerover")&&(lt=Oc,me="onPointerLeave",X="onPointerEnter",V="pointer"),kt=le==null?te:Qt(le),W=He==null?te:Qt(He),te=new lt(me,V+"leave",le,n,fe),te.target=kt,te.relatedTarget=W,me=null,Pe(fe)===ee&&(lt=new lt(X,V+"enter",He,n,fe),lt.target=W,lt.relatedTarget=kt,me=lt),kt=me,le&&He)t:{for(lt=ag,X=le,V=He,W=0,me=X;me;me=lt(me))W++;me=0;for(var nt=V;nt;nt=lt(nt))me++;for(;0<W-me;)X=lt(X),W--;for(;0<me-W;)V=lt(V),me--;for(;W--;){if(X===V||V!==null&&X===V.alternate){lt=X;break t}X=lt(X),V=lt(V)}lt=null}else lt=null;le!==null&&ph(ve,te,le,lt,!1),He!==null&&kt!==null&&ph(ve,kt,He,lt,!0)}}e:{if(te=ee?Qt(ee):window,le=te.nodeName&&te.nodeName.toLowerCase(),le==="select"||le==="input"&&te.type==="file")var Ot=Rc;else if(Cc(te))if(Dc)Ot=mv;else{Ot=dv;var Ve=fv}else le=te.nodeName,!le||le.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&ju(ee.elementType)&&(Ot=Rc):Ot=hv;if(Ot&&(Ot=Ot(e,ee))){_c(ve,Ot,n,fe);break e}Ve&&Ve(e,te,ee),e==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Au(te,"number",te.value)}switch(Ve=ee?Qt(ee):window,e){case"focusin":(Cc(Ve)||Ve.contentEditable==="true")&&(xl=Ve,Vu=ee,oi=null);break;case"focusout":oi=Vu=xl=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,qc(ve,n,fe);break;case"selectionchange":if(vv)break;case"keydown":case"keyup":qc(ve,n,fe)}var ht;if(Lu)e:{switch(e){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else El?Ac(e,n)&&(St="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(Nc&&n.locale!=="ko"&&(El||St!=="onCompositionStart"?St==="onCompositionEnd"&&El&&(ht=bc()):(xa=fe,zu="value"in xa?xa.value:xa.textContent,El=!0)),Ve=Jr(ee,St),0<Ve.length&&(St=new xc(St,e,null,n,fe),ve.push({event:St,listeners:Ve}),ht?St.data=ht:(ht=jc(n),ht!==null&&(St.data=ht)))),(ht=rv?uv(e,n):ov(e,n))&&(St=Jr(ee,"onBeforeInput"),0<St.length&&(Ve=new xc("onBeforeInput","beforeinput",null,n,fe),ve.push({event:Ve,listeners:St}),Ve.data=ht)),$v(ve,e,ee,n,fe)}hh(ve,t)})}function zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jr(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=ei(e,n),i!=null&&a.unshift(zi(e,i,o)),i=ei(e,t),i!=null&&a.push(zi(e,i,o))),e.tag===3)return a;e=e.return}return[]}function ag(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ph(e,t,n,a,i){for(var o=t._reactName,v=[];n!==null&&n!==a;){var A=n,L=A.alternate,ee=A.stateNode;if(A=A.tag,L!==null&&L===a)break;A!==5&&A!==26&&A!==27||ee===null||(L=ee,i?(ee=ei(n,o),ee!=null&&v.unshift(zi(n,ee,L))):i||(ee=ei(n,o),ee!=null&&v.push(zi(n,ee,L)))),n=n.return}v.length!==0&&e.push({event:t,listeners:v})}var lg=/\r\n?/g,ig=/\u0000|\uFFFD/g;function vh(e){return(typeof e=="string"?e:""+e).replace(lg,`
`).replace(ig,"")}function gh(e,t){return t=vh(t),vh(e)===t}function Ut(e,t,n,a,i,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||yl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&yl(e,""+a);break;case"className":$i(e,"class",a);break;case"tabIndex":$i(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":$i(e,n,a);break;case"style":vc(e,a,o);break;case"data":if(t!=="object"){$i(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=tr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Ut(e,t,"name",i.name,i,null),Ut(e,t,"formEncType",i.formEncType,i,null),Ut(e,t,"formMethod",i.formMethod,i,null),Ut(e,t,"formTarget",i.formTarget,i,null)):(Ut(e,t,"encType",i.encType,i,null),Ut(e,t,"method",i.method,i,null),Ut(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=tr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=la);break;case"onScroll":a!=null&&yt("scroll",e);break;case"onScrollEnd":a!=null&&yt("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=tr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":yt("beforetoggle",e),yt("toggle",e),Za(e,"popover",a);break;case"xlinkActuate":aa(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":aa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":aa(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":aa(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":aa(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":aa(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":aa(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":aa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":aa(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Za(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=zp.get(n)||n,Za(e,n,a))}}function ps(e,t,n,a,i,o){switch(n){case"style":vc(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof a=="string"?yl(e,a):(typeof a=="number"||typeof a=="bigint")&&yl(e,""+a);break;case"onScroll":a!=null&&yt("scroll",e);break;case"onScrollEnd":a!=null&&yt("scrollend",e);break;case"onClick":a!=null&&(e.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ea.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[Ct]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Za(e,n,a)}}}function pn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",e),yt("load",e);var a=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var v=n[o];if(v!=null)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ut(e,t,o,v,n,null)}}i&&Ut(e,t,"srcSet",n.srcSet,n,null),a&&Ut(e,t,"src",n.src,n,null);return;case"input":yt("invalid",e);var A=o=v=i=null,L=null,ee=null;for(a in n)if(n.hasOwnProperty(a)){var fe=n[a];if(fe!=null)switch(a){case"name":i=fe;break;case"type":v=fe;break;case"checked":L=fe;break;case"defaultChecked":ee=fe;break;case"value":o=fe;break;case"defaultValue":A=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(c(137,t));break;default:Ut(e,t,a,fe,n,null)}}dc(e,o,A,L,ee,v,i,!1);return;case"select":yt("invalid",e),a=v=o=null;for(i in n)if(n.hasOwnProperty(i)&&(A=n[i],A!=null))switch(i){case"value":o=A;break;case"defaultValue":v=A;break;case"multiple":a=A;default:Ut(e,t,i,A,n,null)}t=o,n=v,e.multiple=!!a,t!=null?gl(e,!!a,t,!1):n!=null&&gl(e,!!a,n,!0);return;case"textarea":yt("invalid",e),o=i=a=null;for(v in n)if(n.hasOwnProperty(v)&&(A=n[v],A!=null))switch(v){case"value":a=A;break;case"defaultValue":i=A;break;case"children":o=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(91));break;default:Ut(e,t,v,A,n,null)}mc(e,a,i,o);return;case"option":for(L in n)if(n.hasOwnProperty(L)&&(a=n[L],a!=null))switch(L){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ut(e,t,L,a,n,null)}return;case"dialog":yt("beforetoggle",e),yt("toggle",e),yt("cancel",e),yt("close",e);break;case"iframe":case"object":yt("load",e);break;case"video":case"audio":for(a=0;a<Di.length;a++)yt(Di[a],e);break;case"image":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"embed":case"source":case"link":yt("error",e),yt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in n)if(n.hasOwnProperty(ee)&&(a=n[ee],a!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ut(e,t,ee,a,n,null)}return;default:if(ju(t)){for(fe in n)n.hasOwnProperty(fe)&&(a=n[fe],a!==void 0&&ps(e,t,fe,a,n,void 0));return}}for(A in n)n.hasOwnProperty(A)&&(a=n[A],a!=null&&Ut(e,t,A,a,n,null))}function rg(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,v=null,A=null,L=null,ee=null,fe=null;for(le in n){var ve=n[le];if(n.hasOwnProperty(le)&&ve!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":L=ve;default:a.hasOwnProperty(le)||Ut(e,t,le,null,a,ve)}}for(var te in a){var le=a[te];if(ve=n[te],a.hasOwnProperty(te)&&(le!=null||ve!=null))switch(te){case"type":o=le;break;case"name":i=le;break;case"checked":ee=le;break;case"defaultChecked":fe=le;break;case"value":v=le;break;case"defaultValue":A=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(c(137,t));break;default:le!==ve&&Ut(e,t,te,le,a,ve)}}Tu(e,v,A,L,ee,fe,o,i);return;case"select":le=v=A=te=null;for(o in n)if(L=n[o],n.hasOwnProperty(o)&&L!=null)switch(o){case"value":break;case"multiple":le=L;default:a.hasOwnProperty(o)||Ut(e,t,o,null,a,L)}for(i in a)if(o=a[i],L=n[i],a.hasOwnProperty(i)&&(o!=null||L!=null))switch(i){case"value":te=o;break;case"defaultValue":A=o;break;case"multiple":v=o;default:o!==L&&Ut(e,t,i,o,a,L)}t=A,n=v,a=le,te!=null?gl(e,!!n,te,!1):!!a!=!!n&&(t!=null?gl(e,!!n,t,!0):gl(e,!!n,n?[]:"",!1));return;case"textarea":le=te=null;for(A in n)if(i=n[A],n.hasOwnProperty(A)&&i!=null&&!a.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Ut(e,t,A,null,a,i)}for(v in a)if(i=a[v],o=n[v],a.hasOwnProperty(v)&&(i!=null||o!=null))switch(v){case"value":te=i;break;case"defaultValue":le=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==o&&Ut(e,t,v,i,a,o)}hc(e,te,le);return;case"option":for(var He in n)if(te=n[He],n.hasOwnProperty(He)&&te!=null&&!a.hasOwnProperty(He))switch(He){case"selected":e.selected=!1;break;default:Ut(e,t,He,null,a,te)}for(L in a)if(te=a[L],le=n[L],a.hasOwnProperty(L)&&te!==le&&(te!=null||le!=null))switch(L){case"selected":e.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:Ut(e,t,L,te,a,le)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var lt in n)te=n[lt],n.hasOwnProperty(lt)&&te!=null&&!a.hasOwnProperty(lt)&&Ut(e,t,lt,null,a,te);for(ee in a)if(te=a[ee],le=n[ee],a.hasOwnProperty(ee)&&te!==le&&(te!=null||le!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(c(137,t));break;default:Ut(e,t,ee,te,a,le)}return;default:if(ju(t)){for(var kt in n)te=n[kt],n.hasOwnProperty(kt)&&te!==void 0&&!a.hasOwnProperty(kt)&&ps(e,t,kt,void 0,a,te);for(fe in a)te=a[fe],le=n[fe],!a.hasOwnProperty(fe)||te===le||te===void 0&&le===void 0||ps(e,t,fe,te,a,le);return}}for(var X in n)te=n[X],n.hasOwnProperty(X)&&te!=null&&!a.hasOwnProperty(X)&&Ut(e,t,X,null,a,te);for(ve in a)te=a[ve],le=n[ve],!a.hasOwnProperty(ve)||te===le||te==null&&le==null||Ut(e,t,ve,te,a,le)}function yh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ug(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,v=i.initiatorType,A=i.duration;if(o&&A&&yh(v)){for(v=0,A=i.responseEnd,a+=1;a<n.length;a++){var L=n[a],ee=L.startTime;if(ee>A)break;var fe=L.transferSize,ve=L.initiatorType;fe&&yh(ve)&&(L=L.responseEnd,v+=fe*(L<A?1:(A-ee)/(L-ee)))}if(--a,t+=8*(o+v)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vs=null,gs=null;function Pr(e){return e.nodeType===9?e:e.ownerDocument}function bh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ys(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bs=null;function og(){var e=window.event;return e&&e.type==="popstate"?e===bs?!1:(bs=e,!0):(bs=null,!1)}var Eh=typeof setTimeout=="function"?setTimeout:void 0,sg=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,cg=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(fg)}:Eh;function fg(e){setTimeout(function(){throw e})}function Ha(e){return e==="head"}function Oh(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),Jl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Mi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Mi(n);for(var o=n.firstChild;o;){var v=o.nextSibling,A=o.nodeName;o[oe]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=v}}else n==="body"&&Mi(e.ownerDocument.body);n=i}while(n);Jl(t)}function Nh(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Ss(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ss(n),ke(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function dg(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[oe])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Xn(e.nextSibling),e===null)break}return null}function hg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xn(e.nextSibling),e===null))return null;return e}function wh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xn(e.nextSibling),e===null))return null;return e}function Es(e){return e.data==="$?"||e.data==="$~"}function xs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mg(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Xn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Os=null;function Th(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function jh(e,t,n){switch(t=Pr(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Mi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ke(e)}var Zn=new Map,Ch=new Set;function Ir(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=we.d;we.d={f:pg,r:vg,D:gg,C:yg,L:bg,m:Sg,X:xg,S:Eg,M:Og};function pg(){var e=Sa.f(),t=Vr();return e||t}function vg(e){var t=it(e);t!==null&&t.tag===5&&t.type==="form"?Zf(t):Sa.r(e)}var Zl=typeof document>"u"?null:document;function _h(e,t,n){var a=Zl;if(a&&typeof t=="string"&&t){var i=Ln(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Ch.has(i)||(Ch.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),pn(t,"link",e),Tt(t),a.head.appendChild(t)))}}function gg(e){Sa.D(e),_h("dns-prefetch",e,null)}function yg(e,t){Sa.C(e,t),_h("preconnect",e,t)}function bg(e,t,n){Sa.L(e,t,n);var a=Zl;if(a&&e&&t){var i='link[rel="preload"][as="'+Ln(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ln(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ln(n.imageSizes)+'"]')):i+='[href="'+Ln(e)+'"]';var o=i;switch(t){case"style":o=Ql(e);break;case"script":o=Fl(e)}Zn.has(o)||(e=z({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zn.set(o,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Bi(o))||t==="script"&&a.querySelector(Ui(o))||(t=a.createElement("link"),pn(t,"link",e),Tt(t),a.head.appendChild(t)))}}function Sg(e,t){Sa.m(e,t);var n=Zl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Ln(a)+'"][href="'+Ln(e)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Fl(e)}if(!Zn.has(o)&&(e=z({rel:"modulepreload",href:e},t),Zn.set(o,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ui(o)))return}a=n.createElement("link"),pn(a,"link",e),Tt(a),n.head.appendChild(a)}}}function Eg(e,t,n){Sa.S(e,t,n);var a=Zl;if(a&&e){var i=on(a).hoistableStyles,o=Ql(e);t=t||"default";var v=i.get(o);if(!v){var A={loading:0,preload:null};if(v=a.querySelector(Bi(o)))A.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zn.get(o))&&Ns(e,n);var L=v=a.createElement("link");Tt(L),pn(L,"link",e),L._p=new Promise(function(ee,fe){L.onload=ee,L.onerror=fe}),L.addEventListener("load",function(){A.loading|=1}),L.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Wr(v,t,a)}v={type:"stylesheet",instance:v,count:1,state:A},i.set(o,v)}}}function xg(e,t){Sa.X(e,t);var n=Zl;if(n&&e){var a=on(n).hoistableScripts,i=Fl(e),o=a.get(i);o||(o=n.querySelector(Ui(i)),o||(e=z({src:e,async:!0},t),(t=Zn.get(i))&&ws(e,t),o=n.createElement("script"),Tt(o),pn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Og(e,t){Sa.M(e,t);var n=Zl;if(n&&e){var a=on(n).hoistableScripts,i=Fl(e),o=a.get(i);o||(o=n.querySelector(Ui(i)),o||(e=z({src:e,async:!0,type:"module"},t),(t=Zn.get(i))&&ws(e,t),o=n.createElement("script"),Tt(o),pn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Rh(e,t,n,a){var i=(i=p.current)?Ir(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ql(n.href),n=on(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ql(n.href);var o=on(i).hoistableStyles,v=o.get(e);if(v||(i=i.ownerDocument||i,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,v),(o=i.querySelector(Bi(e)))&&!o._p&&(v.instance=o,v.state.loading=5),Zn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zn.set(e,n),o||Ng(i,e,n,v.state))),t&&a===null)throw Error(c(528,""));return v}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fl(n),n=on(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Ql(e){return'href="'+Ln(e)+'"'}function Bi(e){return'link[rel="stylesheet"]['+e+"]"}function Dh(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Ng(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),pn(t,"link",n),Tt(t),e.head.appendChild(t))}function Fl(e){return'[src="'+Ln(e)+'"]'}function Ui(e){return"script[async]"+e}function zh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ln(n.href)+'"]');if(a)return t.instance=a,Tt(a),a;var i=z({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Tt(a),pn(a,"style",i),Wr(a,n.precedence,e),t.instance=a;case"stylesheet":i=Ql(n.href);var o=e.querySelector(Bi(i));if(o)return t.state.loading|=4,t.instance=o,Tt(o),o;a=Dh(n),(i=Zn.get(i))&&Ns(a,i),o=(e.ownerDocument||e).createElement("link"),Tt(o);var v=o;return v._p=new Promise(function(A,L){v.onload=A,v.onerror=L}),pn(o,"link",a),t.state.loading|=4,Wr(o,n.precedence,e),t.instance=o;case"script":return o=Fl(n.src),(i=e.querySelector(Ui(o)))?(t.instance=i,Tt(i),i):(a=n,(i=Zn.get(o))&&(a=z({},n),ws(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Tt(i),pn(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Wr(a,n.precedence,e));return t.instance}function Wr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,v=0;v<a.length;v++){var A=a[v];if(A.dataset.precedence===t)o=A;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ns(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function Mh(e,t,n){if($r===null){var a=new Map,i=$r=new Map;i.set(n,a)}else i=$r,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[oe]||o[pt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var v=o.getAttribute(t)||"";v=e+v;var A=a.get(v);A?A.push(o):a.set(v,[o])}}return a}function Bh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function wg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Uh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Tg(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ql(a.href),o=t.querySelector(Bi(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=eu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Tt(o);return}o=t.ownerDocument||t,a=Dh(a),(i=Zn.get(i))&&Ns(a,i),o=o.createElement("link"),Tt(o);var v=o;v._p=new Promise(function(A,L){v.onload=A,v.onerror=L}),pn(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=eu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ts=0;function Ag(e,t){return e.stylesheets&&e.count===0&&nu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Ts===0&&(Ts=62500*ug());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Ts?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tu=null;function nu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tu=new Map,t.forEach(jg,e),tu=null,eu.call(e))}function jg(e,t){if(!(t.state.loading&4)){var n=tu.get(e);if(n)var a=n.get(null);else{n=new Map,tu.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var v=i[o];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(n.set(v.dataset.precedence,v),a=v)}a&&n.set(null,a)}i=t.instance,v=i.getAttribute("data-precedence"),o=n.get(v)||a,o===a&&n.set(null,i),n.set(v,i),this.count++,a=eu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ki={$$typeof:ge,Provider:null,Consumer:null,_currentValue:Ge,_currentValue2:Ge,_threadCount:0};function Cg(e,t,n,a,i,o,v,A,L){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fe(0),this.hiddenUpdates=Fe(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function kh(e,t,n,a,i,o,v,A,L,ee,fe,ve){return e=new Cg(e,t,n,v,L,ee,fe,ve,A),t=1,o===!0&&(t|=24),o=Rn(3,null,null,t),e.current=o,o.stateNode=e,t=lo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},oo(o),e}function Lh(e){return e?(e=wl,e):wl}function Hh(e,t,n,a,i,o){i=Lh(i),a.context===null?a.context=i:a.pendingContext=i,a=ja(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Ca(e,a,t),n!==null&&(An(n,e,t),pi(n,e,t))}function qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function As(e,t){qh(e,t),(e=e.alternate)&&qh(e,t)}function Kh(e){if(e.tag===13||e.tag===31){var t=Pa(e,67108864);t!==null&&An(t,e,67108864),As(e,67108864)}}function Vh(e){if(e.tag===13||e.tag===31){var t=Un();t=Ft(t);var n=Pa(e,t);n!==null&&An(n,e,t),As(e,t)}}var au=!0;function _g(e,t,n,a){var i=ae.T;ae.T=null;var o=we.p;try{we.p=2,js(e,t,n,a)}finally{we.p=o,ae.T=i}}function Rg(e,t,n,a){var i=ae.T;ae.T=null;var o=we.p;try{we.p=8,js(e,t,n,a)}finally{we.p=o,ae.T=i}}function js(e,t,n,a){if(au){var i=Cs(a);if(i===null)ms(e,t,a,lu,n),Yh(e,a);else if(zg(i,e,t,n,a))a.stopPropagation();else if(Yh(e,a),t&4&&-1<Dg.indexOf(e)){for(;i!==null;){var o=it(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var v=Ie(o.pendingLanes);if(v!==0){var A=o;for(A.pendingLanes|=2,A.entangledLanes|=2;v;){var L=1<<31-Te(v);A.entanglements[1]|=L,v&=~L}ta(o),(At&6)===0&&(qr=G()+500,Ri(0))}}break;case 31:case 13:A=Pa(o,2),A!==null&&An(A,o,2),Vr(),As(o,2)}if(o=Cs(a),o===null&&ms(e,t,a,lu,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else ms(e,t,a,null,n)}}function Cs(e){return e=_u(e),_s(e)}var lu=null;function _s(e){if(lu=null,e=Pe(e),e!==null){var t=y(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=w(t),e!==null)return e;e=null}else if(n===31){if(e=O(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return lu=e,null}function Gh(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($()){case ie:return 2;case J:return 8;case pe:case be:return 32;case he:return 268435456;default:return 32}default:return 32}}var Rs=!1,qa=null,Ka=null,Va=null,Li=new Map,Hi=new Map,Ga=[],Dg="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".split(" ");function Yh(e,t){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":Li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function qi(e,t,n,a,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},t!==null&&(t=it(t),t!==null&&Kh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zg(e,t,n,a,i){switch(t){case"focusin":return qa=qi(qa,e,t,n,a,i),!0;case"dragenter":return Ka=qi(Ka,e,t,n,a,i),!0;case"mouseover":return Va=qi(Va,e,t,n,a,i),!0;case"pointerover":var o=i.pointerId;return Li.set(o,qi(Li.get(o)||null,e,t,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,Hi.set(o,qi(Hi.get(o)||null,e,t,n,a,i)),!0}return!1}function Xh(e){var t=Pe(e.target);if(t!==null){var n=y(t);if(n!==null){if(t=n.tag,t===13){if(t=w(n),t!==null){e.blockedOn=t,tn(e.priority,function(){Vh(n)});return}}else if(t===31){if(t=O(n),t!==null){e.blockedOn=t,tn(e.priority,function(){Vh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function iu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cs(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Cu=a,n.target.dispatchEvent(a),Cu=null}else return t=it(n),t!==null&&Kh(t),e.blockedOn=n,!1;t.shift()}return!0}function Zh(e,t,n){iu(e)&&n.delete(t)}function Mg(){Rs=!1,qa!==null&&iu(qa)&&(qa=null),Ka!==null&&iu(Ka)&&(Ka=null),Va!==null&&iu(Va)&&(Va=null),Li.forEach(Zh),Hi.forEach(Zh)}function ru(e,t){e.blockedOn===t&&(e.blockedOn=null,Rs||(Rs=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Mg)))}var uu=null;function Qh(e){uu!==e&&(uu=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){uu===e&&(uu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(_s(a||n)===null)continue;break}var o=it(n);o!==null&&(e.splice(t,3),t-=3,Co(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function Jl(e){function t(L){return ru(L,e)}qa!==null&&ru(qa,e),Ka!==null&&ru(Ka,e),Va!==null&&ru(Va,e),Li.forEach(t),Hi.forEach(t);for(var n=0;n<Ga.length;n++){var a=Ga[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ga.length&&(n=Ga[0],n.blockedOn===null);)Xh(n),n.blockedOn===null&&Ga.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],v=i[Ct]||null;if(typeof o=="function")v||Qh(n);else if(v){var A=null;if(o&&o.hasAttribute("formAction")){if(i=o,v=o[Ct]||null)A=v.formAction;else if(_s(i)!==null)continue}else A=v.action;typeof A=="function"?n[a+1]=A:(n.splice(a,3),a-=3),Qh(n)}}}function Fh(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(v){return i=v})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Ds(e){this._internalRoot=e}ou.prototype.render=Ds.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,a=Un();Hh(n,a,e,t,null,null)},ou.prototype.unmount=Ds.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hh(e.current,2,null,e,null,null),Vr(),t[cn]=null}};function ou(e){this._internalRoot=e}ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=qt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ga.length&&t!==0&&t<Ga[n].priority;n++);Ga.splice(n,0,e),n===0&&Xh(e)}};var Jh=s.version;if(Jh!=="19.2.5")throw Error(c(527,Jh,"19.2.5"));we.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=j(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var Bg={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:ae,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{re=su.inject(Bg),Le=su}catch{}}return Vi.createRoot=function(e,t){if(!g(e))throw Error(c(299));var n=!1,a="",i=nd,o=ad,v=ld;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=kh(e,1,!1,null,null,n,a,null,i,o,v,Fh),e[cn]=t.current,hs(e),new Ds(t)},Vi.hydrateRoot=function(e,t,n){if(!g(e))throw Error(c(299));var a=!1,i="",o=nd,v=ad,A=ld,L=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(v=n.onCaughtError),n.onRecoverableError!==void 0&&(A=n.onRecoverableError),n.formState!==void 0&&(L=n.formState)),t=kh(e,1,!0,t,n??null,a,i,L,o,v,A,Fh),t.context=Lh(null),n=t.current,a=Un(),a=Ft(a),i=ja(a),i.callback=null,Ca(n,i,a),n=a,t.current.lanes=n,Je(t,n),ta(t),e[cn]=t.current,hs(e),new ou(t)},Vi.version="19.2.5",Vi}var im;function Zg(){if(im)return Bs.exports;im=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),Bs.exports=Xg(),Bs.exports}var Qg=Zg();const Fg=$s(Qg);Um();/**
 * @remix-run/router v1.23.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Yi(){return Yi=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var c in d)({}).hasOwnProperty.call(d,c)&&(r[c]=d[c])}return r},Yi.apply(null,arguments)}var Xa;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(Xa||(Xa={}));const rm="popstate";function Jg(r){r===void 0&&(r={});function s(c,g){let{pathname:y,search:w,hash:O}=c.location;return Zs("",{pathname:y,search:w,hash:O},g.state&&g.state.usr||null,g.state&&g.state.key||"default")}function d(c,g){return typeof g=="string"?g:km(g)}return Ig(s,d,null,r)}function un(r,s){if(r===!1||r===null||typeof r>"u")throw new Error(s)}function ec(r,s){if(!r){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Pg(){return Math.random().toString(36).substr(2,8)}function um(r,s){return{usr:r.state,key:r.key,idx:s}}function Zs(r,s,d,c){return d===void 0&&(d=null),Yi({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof s=="string"?Wl(s):s,{state:d,key:s&&s.key||c||Pg()})}function km(r){let{pathname:s="/",search:d="",hash:c=""}=r;return d&&d!=="?"&&(s+=d.charAt(0)==="?"?d:"?"+d),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Wl(r){let s={};if(r){let d=r.indexOf("#");d>=0&&(s.hash=r.substr(d),r=r.substr(0,d));let c=r.indexOf("?");c>=0&&(s.search=r.substr(c),r=r.substr(0,c)),r&&(s.pathname=r)}return s}function Ig(r,s,d,c){c===void 0&&(c={});let{window:g=document.defaultView,v5Compat:y=!1}=c,w=g.history,O=Xa.Pop,C=null,j=_();j==null&&(j=0,w.replaceState(Yi({},w.state,{idx:j}),""));function _(){return(w.state||{idx:null}).idx}function z(){O=Xa.Pop;let Z=_(),P=Z==null?null:Z-j;j=Z,C&&C({action:O,location:Q.location,delta:P})}function ne(Z,P){O=Xa.Push;let se=Zs(Q.location,Z,P);j=_()+1;let ge=um(se,j),ce=Q.createHref(se);try{w.pushState(ge,"",ce)}catch(ye){if(ye instanceof DOMException&&ye.name==="DataCloneError")throw ye;g.location.assign(ce)}y&&C&&C({action:O,location:Q.location,delta:1})}function I(Z,P){O=Xa.Replace;let se=Zs(Q.location,Z,P);j=_();let ge=um(se,j),ce=Q.createHref(se);w.replaceState(ge,"",ce),y&&C&&C({action:O,location:Q.location,delta:0})}function ue(Z){let P=g.location.origin!=="null"?g.location.origin:g.location.href,se=typeof Z=="string"?Z:km(Z);return se=se.replace(/ $/,"%20"),un(P,"No window.location.(origin|href) available to create URL for href: "+se),new URL(se,P)}let Q={get action(){return O},get location(){return r(g,w)},listen(Z){if(C)throw new Error("A history only accepts one active listener");return g.addEventListener(rm,z),C=Z,()=>{g.removeEventListener(rm,z),C=null}},createHref(Z){return s(g,Z)},createURL:ue,encodeLocation(Z){let P=ue(Z);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:ne,replace:I,go(Z){return w.go(Z)}};return Q}var om;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(om||(om={}));function Wg(r,s,d){return d===void 0&&(d="/"),$g(r,s,d)}function $g(r,s,d,c){let g=typeof s=="string"?Wl(s):s,y=qm(g.pathname||"/",d);if(y==null)return null;let w=Lm(r);ey(w);let O=null,C=dy(y);for(let j=0;O==null&&j<w.length;++j)O=sy(w[j],C);return O}function Lm(r,s,d,c){s===void 0&&(s=[]),d===void 0&&(d=[]),c===void 0&&(c="");let g=(y,w,O)=>{let C={relativePath:O===void 0?y.path||"":O,caseSensitive:y.caseSensitive===!0,childrenIndex:w,route:y};C.relativePath.startsWith("/")&&(un(C.relativePath.startsWith(c),'Absolute route path "'+C.relativePath+'" nested under path '+('"'+c+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),C.relativePath=C.relativePath.slice(c.length));let j=fl([c,C.relativePath]),_=d.concat(C);y.children&&y.children.length>0&&(un(y.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),Lm(y.children,s,_,j)),!(y.path==null&&!y.index)&&s.push({path:j,score:uy(j,y.index),routesMeta:_})};return r.forEach((y,w)=>{var O;if(y.path===""||!((O=y.path)!=null&&O.includes("?")))g(y,w);else for(let C of Hm(y.path))g(y,w,C)}),s}function Hm(r){let s=r.split("/");if(s.length===0)return[];let[d,...c]=s,g=d.endsWith("?"),y=d.replace(/\?$/,"");if(c.length===0)return g?[y,""]:[y];let w=Hm(c.join("/")),O=[];return O.push(...w.map(C=>C===""?y:[y,C].join("/"))),g&&O.push(...w),O.map(C=>r.startsWith("/")&&C===""?"/":C)}function ey(r){r.sort((s,d)=>s.score!==d.score?d.score-s.score:oy(s.routesMeta.map(c=>c.childrenIndex),d.routesMeta.map(c=>c.childrenIndex)))}const ty=/^:[\w-]+$/,ny=3,ay=2,ly=1,iy=10,ry=-2,sm=r=>r==="*";function uy(r,s){let d=r.split("/"),c=d.length;return d.some(sm)&&(c+=ry),s&&(c+=ay),d.filter(g=>!sm(g)).reduce((g,y)=>g+(ty.test(y)?ny:y===""?ly:iy),c)}function oy(r,s){return r.length===s.length&&r.slice(0,-1).every((c,g)=>c===s[g])?r[r.length-1]-s[s.length-1]:0}function sy(r,s,d){let{routesMeta:c}=r,g={},y="/",w=[];for(let O=0;O<c.length;++O){let C=c[O],j=O===c.length-1,_=y==="/"?s:s.slice(y.length)||"/",z=cy({path:C.relativePath,caseSensitive:C.caseSensitive,end:j},_),ne=C.route;if(!z)return null;Object.assign(g,z.params),w.push({params:g,pathname:fl([y,z.pathname]),pathnameBase:gy(fl([y,z.pathnameBase])),route:ne}),z.pathnameBase!=="/"&&(y=fl([y,z.pathnameBase]))}return w}function cy(r,s){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[d,c]=fy(r.path,r.caseSensitive,r.end),g=s.match(d);if(!g)return null;let y=g[0],w=y.replace(/(.)\/+$/,"$1"),O=g.slice(1);return{params:c.reduce((j,_,z)=>{let{paramName:ne,isOptional:I}=_;if(ne==="*"){let Q=O[z]||"";w=y.slice(0,y.length-Q.length).replace(/(.)\/+$/,"$1")}const ue=O[z];return I&&!ue?j[ne]=void 0:j[ne]=(ue||"").replace(/%2F/g,"/"),j},{}),pathname:y,pathnameBase:w,pattern:r}}function fy(r,s,d){s===void 0&&(s=!1),d===void 0&&(d=!0),ec(r==="*"||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".'));let c=[],g="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(w,O,C)=>(c.push({paramName:O,isOptional:C!=null}),C?"/?([^\\/]+)?":"/([^\\/]+)"));return r.endsWith("*")?(c.push({paramName:"*"}),g+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?g+="\\/*$":r!==""&&r!=="/"&&(g+="(?:(?=\\/|$))"),[new RegExp(g,s?void 0:"i"),c]}function dy(r){try{return r.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return ec(!1,'The URL path "'+r+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+s+").")),r}}function qm(r,s){if(s==="/")return r;if(!r.toLowerCase().startsWith(s.toLowerCase()))return null;let d=s.endsWith("/")?s.length-1:s.length,c=r.charAt(d);return c&&c!=="/"?null:r.slice(d)||"/"}const hy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,my=r=>hy.test(r);function py(r,s){s===void 0&&(s="/");let{pathname:d,search:c="",hash:g=""}=typeof r=="string"?Wl(r):r,y;if(d)if(my(d))y=d;else{if(d.includes("//")){let w=d;d=Gm(d),ec(!1,"Pathnames cannot have embedded double slashes - normalizing "+(w+" -> "+d))}d.startsWith("/")?y=cm(d.substring(1),"/"):y=cm(d,s)}else y=s;return{pathname:y,search:yy(c),hash:by(g)}}function cm(r,s){let d=s.replace(/\/+$/,"").split("/");return r.split("/").forEach(g=>{g===".."?d.length>1&&d.pop():g!=="."&&d.push(g)}),d.length>1?d.join("/"):"/"}function Hs(r,s,d,c){return"Cannot include a '"+r+"' character in a manually specified "+("`to."+s+"` field ["+JSON.stringify(c)+"].  Please separate it out to the ")+("`to."+d+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function vy(r){return r.filter((s,d)=>d===0||s.route.path&&s.route.path.length>0)}function Km(r,s){let d=vy(r);return s?d.map((c,g)=>g===d.length-1?c.pathname:c.pathnameBase):d.map(c=>c.pathnameBase)}function Vm(r,s,d,c){c===void 0&&(c=!1);let g;typeof r=="string"?g=Wl(r):(g=Yi({},r),un(!g.pathname||!g.pathname.includes("?"),Hs("?","pathname","search",g)),un(!g.pathname||!g.pathname.includes("#"),Hs("#","pathname","hash",g)),un(!g.search||!g.search.includes("#"),Hs("#","search","hash",g)));let y=r===""||g.pathname==="",w=y?"/":g.pathname,O;if(w==null)O=d;else{let z=s.length-1;if(!c&&w.startsWith("..")){let ne=w.split("/");for(;ne[0]==="..";)ne.shift(),z-=1;g.pathname=ne.join("/")}O=z>=0?s[z]:"/"}let C=py(g,O),j=w&&w!=="/"&&w.endsWith("/"),_=(y||w===".")&&d.endsWith("/");return!C.pathname.endsWith("/")&&(j||_)&&(C.pathname+="/"),C}const Gm=r=>r.replace(/\/\/+/g,"/"),fl=r=>Gm(r.join("/")),gy=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),yy=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,by=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;function Sy(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}const Ym=["post","put","patch","delete"];new Set(Ym);const Ey=["get",...Ym];new Set(Ey);/**
 * React Router v6.30.4
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Xi(){return Xi=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var c in d)({}).hasOwnProperty.call(d,c)&&(r[c]=d[c])}return r},Xi.apply(null,arguments)}const tc=k.createContext(null),xy=k.createContext(null),Zi=k.createContext(null),yu=k.createContext(null),pl=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Xm=k.createContext(null);function Qi(){return k.useContext(yu)!=null}function vl(){return Qi()||un(!1),k.useContext(yu).location}function Zm(r){k.useContext(Zi).static||k.useLayoutEffect(r)}function yn(){let{isDataRoute:r}=k.useContext(pl);return r?By():Oy()}function Oy(){Qi()||un(!1);let r=k.useContext(tc),{basename:s,future:d,navigator:c}=k.useContext(Zi),{matches:g}=k.useContext(pl),{pathname:y}=vl(),w=JSON.stringify(Km(g,d.v7_relativeSplatPath)),O=k.useRef(!1);return Zm(()=>{O.current=!0}),k.useCallback(function(j,_){if(_===void 0&&(_={}),!O.current)return;if(typeof j=="number"){c.go(j);return}let z=Vm(j,JSON.parse(w),y,_.relative==="path");r==null&&s!=="/"&&(z.pathname=z.pathname==="/"?s:fl([s,z.pathname])),(_.replace?c.replace:c.push)(z,_.state,_)},[s,c,w,y,r])}function Ny(r,s){return wy(r,s)}function wy(r,s,d,c){Qi()||un(!1);let{navigator:g}=k.useContext(Zi),{matches:y}=k.useContext(pl),w=y[y.length-1],O=w?w.params:{};w&&w.pathname;let C=w?w.pathnameBase:"/";w&&w.route;let j=vl(),_;if(s){var z;let Z=typeof s=="string"?Wl(s):s;C==="/"||(z=Z.pathname)!=null&&z.startsWith(C)||un(!1),_=Z}else _=j;let ne=_.pathname||"/",I=ne;if(C!=="/"){let Z=C.replace(/^\//,"").split("/");I="/"+ne.replace(/^\//,"").split("/").slice(Z.length).join("/")}let ue=Wg(r,{pathname:I}),Q=_y(ue&&ue.map(Z=>Object.assign({},Z,{params:Object.assign({},O,Z.params),pathname:fl([C,g.encodeLocation?g.encodeLocation(Z.pathname).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?C:fl([C,g.encodeLocation?g.encodeLocation(Z.pathnameBase).pathname:Z.pathnameBase])})),y,d,c);return s&&Q?k.createElement(yu.Provider,{value:{location:Xi({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:Xa.Pop}},Q):Q}function Ty(){let r=My(),s=Sy(r)?r.status+" "+r.statusText:r instanceof Error?r.message:JSON.stringify(r),d=r instanceof Error?r.stack:null,g={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},s),d?k.createElement("pre",{style:g},d):null,null)}const Ay=k.createElement(Ty,null);class jy extends k.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,d){return d.location!==s.location||d.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:d.error,location:d.location,revalidation:s.revalidation||d.revalidation}}componentDidCatch(s,d){console.error("React Router caught the following error during render",s,d)}render(){return this.state.error!==void 0?k.createElement(pl.Provider,{value:this.props.routeContext},k.createElement(Xm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cy(r){let{routeContext:s,match:d,children:c}=r,g=k.useContext(tc);return g&&g.static&&g.staticContext&&(d.route.errorElement||d.route.ErrorBoundary)&&(g.staticContext._deepestRenderedBoundaryId=d.route.id),k.createElement(pl.Provider,{value:s},c)}function _y(r,s,d,c){var g;if(s===void 0&&(s=[]),d===void 0&&(d=null),c===void 0&&(c=null),r==null){var y;if(!d)return null;if(d.errors)r=d.matches;else if((y=c)!=null&&y.v7_partialHydration&&s.length===0&&!d.initialized&&d.matches.length>0)r=d.matches;else return null}let w=r,O=(g=d)==null?void 0:g.errors;if(O!=null){let _=w.findIndex(z=>z.route.id&&(O==null?void 0:O[z.route.id])!==void 0);_>=0||un(!1),w=w.slice(0,Math.min(w.length,_+1))}let C=!1,j=-1;if(d&&c&&c.v7_partialHydration)for(let _=0;_<w.length;_++){let z=w[_];if((z.route.HydrateFallback||z.route.hydrateFallbackElement)&&(j=_),z.route.id){let{loaderData:ne,errors:I}=d,ue=z.route.loader&&ne[z.route.id]===void 0&&(!I||I[z.route.id]===void 0);if(z.route.lazy||ue){C=!0,j>=0?w=w.slice(0,j+1):w=[w[0]];break}}}return w.reduceRight((_,z,ne)=>{let I,ue=!1,Q=null,Z=null;d&&(I=O&&z.route.id?O[z.route.id]:void 0,Q=z.route.errorElement||Ay,C&&(j<0&&ne===0?(Uy("route-fallback"),ue=!0,Z=null):j===ne&&(ue=!0,Z=z.route.hydrateFallbackElement||null)));let P=s.concat(w.slice(0,ne+1)),se=()=>{let ge;return I?ge=Q:ue?ge=Z:z.route.Component?ge=k.createElement(z.route.Component,null):z.route.element?ge=z.route.element:ge=_,k.createElement(Cy,{match:z,routeContext:{outlet:_,matches:P,isDataRoute:d!=null},children:ge})};return d&&(z.route.ErrorBoundary||z.route.errorElement||ne===0)?k.createElement(jy,{location:d.location,revalidation:d.revalidation,component:Q,error:I,children:se(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):se()},null)}var Qm=(function(r){return r.UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r})(Qm||{}),Fm=(function(r){return r.UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r.UseRouteId="useRouteId",r})(Fm||{});function Ry(r){let s=k.useContext(tc);return s||un(!1),s}function Dy(r){let s=k.useContext(xy);return s||un(!1),s}function zy(r){let s=k.useContext(pl);return s||un(!1),s}function Jm(r){let s=zy(),d=s.matches[s.matches.length-1];return d.route.id||un(!1),d.route.id}function My(){var r;let s=k.useContext(Xm),d=Dy(),c=Jm();return s!==void 0?s:(r=d.errors)==null?void 0:r[c]}function By(){let{router:r}=Ry(Qm.UseNavigateStable),s=Jm(Fm.UseNavigateStable),d=k.useRef(!1);return Zm(()=>{d.current=!0}),k.useCallback(function(g,y){y===void 0&&(y={}),d.current&&(typeof g=="number"?r.navigate(g):r.navigate(g,Xi({fromRouteId:s},y)))},[r,s])}const fm={};function Uy(r,s,d){fm[r]||(fm[r]=!0)}function ky(r,s){r==null||r.v7_startTransition,r==null||r.v7_relativeSplatPath}function fu(r){let{to:s,replace:d,state:c,relative:g}=r;Qi()||un(!1);let{future:y,static:w}=k.useContext(Zi),{matches:O}=k.useContext(pl),{pathname:C}=vl(),j=yn(),_=Vm(s,Km(O,y.v7_relativeSplatPath),C,g==="path"),z=JSON.stringify(_);return k.useEffect(()=>j(JSON.parse(z),{replace:d,state:c,relative:g}),[j,z,g,d,c]),null}function vn(r){un(!1)}function Ly(r){let{basename:s="/",children:d=null,location:c,navigationType:g=Xa.Pop,navigator:y,static:w=!1,future:O}=r;Qi()&&un(!1);let C=s.replace(/^\/*/,"/"),j=k.useMemo(()=>({basename:C,navigator:y,static:w,future:Xi({v7_relativeSplatPath:!1},O)}),[C,O,y,w]);typeof c=="string"&&(c=Wl(c));let{pathname:_="/",search:z="",hash:ne="",state:I=null,key:ue="default"}=c,Q=k.useMemo(()=>{let Z=qm(_,C);return Z==null?null:{location:{pathname:Z,search:z,hash:ne,state:I,key:ue},navigationType:g}},[C,_,z,ne,I,ue,g]);return Q==null?null:k.createElement(Zi.Provider,{value:j},k.createElement(yu.Provider,{children:d,value:Q}))}function Hy(r){let{children:s,location:d}=r;return Ny(Qs(s),d)}new Promise(()=>{});function Qs(r,s){s===void 0&&(s=[]);let d=[];return k.Children.forEach(r,(c,g)=>{if(!k.isValidElement(c))return;let y=[...s,g];if(c.type===k.Fragment){d.push.apply(d,Qs(c.props.children,y));return}c.type!==vn&&un(!1),!c.props.index||!c.props.children||un(!1);let w={id:c.props.id||y.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,loader:c.props.loader,action:c.props.action,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(w.children=Qs(c.props.children,y)),d.push(w)}),d}/**
 * React Router DOM v6.30.4
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const qy="6";try{window.__reactRouterVersion=qy}catch{}const Ky="startTransition",dm=Kg[Ky];function Vy(r){let{basename:s,children:d,future:c,window:g}=r,y=k.useRef();y.current==null&&(y.current=Jg({window:g,v5Compat:!0}));let w=y.current,[O,C]=k.useState({action:w.action,location:w.location}),{v7_startTransition:j}=c||{},_=k.useCallback(z=>{j&&dm?dm(()=>C(z)):C(z)},[C,j]);return k.useLayoutEffect(()=>w.listen(_),[w,_]),k.useEffect(()=>ky(c),[c]),k.createElement(Ly,{basename:s,children:d,location:O.location,navigationType:O.action,navigator:w,future:c})}var hm;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(hm||(hm={}));var mm;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(mm||(mm={}));function Pm(r,s){return function(){return r.apply(s,arguments)}}const{toString:Gy}=Object.prototype,{getPrototypeOf:bu}=Object,{iterator:Su,toStringTag:Im}=Symbol,Eu=(r=>s=>{const d=Gy.call(s);return r[d]||(r[d]=d.slice(8,-1).toLowerCase())})(Object.create(null)),In=r=>(r=r.toLowerCase(),s=>Eu(s)===r),xu=r=>s=>typeof s===r,{isArray:hl}=Array,Il=xu("undefined");function $l(r){return r!==null&&!Il(r)&&r.constructor!==null&&!Il(r.constructor)&&Cn(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Wm=In("ArrayBuffer");function Yy(r){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(r):s=r&&r.buffer&&Wm(r.buffer),s}const Xy=xu("string"),Cn=xu("function"),$m=xu("number"),Fi=r=>r!==null&&typeof r=="object",Zy=r=>r===!0||r===!1,du=r=>{if(Eu(r)!=="object")return!1;const s=bu(r);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Im in r)&&!(Su in r)},Qy=r=>{if(!Fi(r)||$l(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},Fy=In("Date"),Jy=In("File"),Py=r=>!!(r&&typeof r.uri<"u"),Iy=r=>r&&typeof r.getParts<"u",Wy=In("Blob"),$y=In("FileList"),e0=r=>Fi(r)&&Cn(r.pipe);function t0(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const pm=t0(),vm=typeof pm.FormData<"u"?pm.FormData:void 0,n0=r=>{if(!r)return!1;if(vm&&r instanceof vm)return!0;const s=bu(r);if(!s||s===Object.prototype||!Cn(r.append))return!1;const d=Eu(r);return d==="formdata"||d==="object"&&Cn(r.toString)&&r.toString()==="[object FormData]"},a0=In("URLSearchParams"),[l0,i0,r0,u0]=["ReadableStream","Request","Response","Headers"].map(In),o0=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ji(r,s,{allOwnKeys:d=!1}={}){if(r===null||typeof r>"u")return;let c,g;if(typeof r!="object"&&(r=[r]),hl(r))for(c=0,g=r.length;c<g;c++)s.call(null,r[c],c,r);else{if($l(r))return;const y=d?Object.getOwnPropertyNames(r):Object.keys(r),w=y.length;let O;for(c=0;c<w;c++)O=y[c],s.call(null,r[O],O,r)}}function ep(r,s){if($l(r))return null;s=s.toLowerCase();const d=Object.keys(r);let c=d.length,g;for(;c-- >0;)if(g=d[c],s===g.toLowerCase())return g;return null}const cl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tp=r=>!Il(r)&&r!==cl;function Fs(...r){const{caseless:s,skipUndefined:d}=tp(this)&&this||{},c={},g=(y,w)=>{if(w==="__proto__"||w==="constructor"||w==="prototype")return;const O=s&&typeof w=="string"&&ep(c,w)||w,C=Js(c,O)?c[O]:void 0;du(C)&&du(y)?c[O]=Fs(C,y):du(y)?c[O]=Fs({},y):hl(y)?c[O]=y.slice():(!d||!Il(y))&&(c[O]=y)};for(let y=0,w=r.length;y<w;y++){const O=r[y];if(!O||$l(O)||(Ji(O,g),typeof O!="object"||hl(O)))continue;const C=Object.getOwnPropertySymbols(O);for(let j=0;j<C.length;j++){const _=C[j];S0.call(O,_)&&g(O[_],_)}}return c}const s0=(r,s,d,{allOwnKeys:c}={})=>(Ji(s,(g,y)=>{d&&Cn(g)?Object.defineProperty(r,y,{__proto__:null,value:Pm(g,d),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,y,{__proto__:null,value:g,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:c}),r),c0=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),f0=(r,s,d,c)=>{r.prototype=Object.create(s.prototype,c),Object.defineProperty(r.prototype,"constructor",{__proto__:null,value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{__proto__:null,value:s.prototype}),d&&Object.assign(r.prototype,d)},d0=(r,s,d,c)=>{let g,y,w;const O={};if(s=s||{},r==null)return s;do{for(g=Object.getOwnPropertyNames(r),y=g.length;y-- >0;)w=g[y],(!c||c(w,r,s))&&!O[w]&&(s[w]=r[w],O[w]=!0);r=d!==!1&&bu(r)}while(r&&(!d||d(r,s))&&r!==Object.prototype);return s},h0=(r,s,d)=>{r=String(r),(d===void 0||d>r.length)&&(d=r.length),d-=s.length;const c=r.indexOf(s,d);return c!==-1&&c===d},m0=r=>{if(!r)return null;if(hl(r))return r;let s=r.length;if(!$m(s))return null;const d=new Array(s);for(;s-- >0;)d[s]=r[s];return d},p0=(r=>s=>r&&s instanceof r)(typeof Uint8Array<"u"&&bu(Uint8Array)),v0=(r,s)=>{const c=(r&&r[Su]).call(r);let g;for(;(g=c.next())&&!g.done;){const y=g.value;s.call(r,y[0],y[1])}},g0=(r,s)=>{let d;const c=[];for(;(d=r.exec(s))!==null;)c.push(d);return c},y0=In("HTMLFormElement"),b0=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(d,c,g){return c.toUpperCase()+g}),Js=(({hasOwnProperty:r})=>(s,d)=>r.call(s,d))(Object.prototype),{propertyIsEnumerable:S0}=Object.prototype,E0=In("RegExp"),np=(r,s)=>{const d=Object.getOwnPropertyDescriptors(r),c={};Ji(d,(g,y)=>{let w;(w=s(g,y,r))!==!1&&(c[y]=w||g)}),Object.defineProperties(r,c)},x0=r=>{np(r,(s,d)=>{if(Cn(r)&&["arguments","caller","callee"].includes(d))return!1;const c=r[d];if(Cn(c)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+d+"'")})}})},O0=(r,s)=>{const d={},c=g=>{g.forEach(y=>{d[y]=!0})};return hl(r)?c(r):c(String(r).split(s)),d},N0=()=>{},w0=(r,s)=>r!=null&&Number.isFinite(r=+r)?r:s;function T0(r){return!!(r&&Cn(r.append)&&r[Im]==="FormData"&&r[Su])}const A0=r=>{const s=new WeakSet,d=c=>{if(Fi(c)){if(s.has(c))return;if($l(c))return c;if(!("toJSON"in c)){s.add(c);const g=hl(c)?[]:{};return Ji(c,(y,w)=>{const O=d(y);!Il(O)&&(g[w]=O)}),s.delete(c),g}}return c};return d(r)},j0=In("AsyncFunction"),C0=r=>r&&(Fi(r)||Cn(r))&&Cn(r.then)&&Cn(r.catch),ap=((r,s)=>r?setImmediate:s?((d,c)=>(cl.addEventListener("message",({source:g,data:y})=>{g===cl&&y===d&&c.length&&c.shift()()},!1),g=>{c.push(g),cl.postMessage(d,"*")}))(`axios@${Math.random()}`,[]):d=>setTimeout(d))(typeof setImmediate=="function",Cn(cl.postMessage)),_0=typeof queueMicrotask<"u"?queueMicrotask.bind(cl):typeof process<"u"&&process.nextTick||ap,R0=r=>r!=null&&Cn(r[Su]),F={isArray:hl,isArrayBuffer:Wm,isBuffer:$l,isFormData:n0,isArrayBufferView:Yy,isString:Xy,isNumber:$m,isBoolean:Zy,isObject:Fi,isPlainObject:du,isEmptyObject:Qy,isReadableStream:l0,isRequest:i0,isResponse:r0,isHeaders:u0,isUndefined:Il,isDate:Fy,isFile:Jy,isReactNativeBlob:Py,isReactNative:Iy,isBlob:Wy,isRegExp:E0,isFunction:Cn,isStream:e0,isURLSearchParams:a0,isTypedArray:p0,isFileList:$y,forEach:Ji,merge:Fs,extend:s0,trim:o0,stripBOM:c0,inherits:f0,toFlatObject:d0,kindOf:Eu,kindOfTest:In,endsWith:h0,toArray:m0,forEachEntry:v0,matchAll:g0,isHTMLForm:y0,hasOwnProperty:Js,hasOwnProp:Js,reduceDescriptors:np,freezeMethods:x0,toObjectSet:O0,toCamelCase:b0,noop:N0,toFiniteNumber:w0,findKey:ep,global:cl,isContextDefined:tp,isSpecCompliantForm:T0,toJSONObject:A0,isAsyncFn:j0,isThenable:C0,setImmediate:ap,asap:_0,isIterable:R0},D0=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"]),z0=r=>{const s={};let d,c,g;return r&&r.split(`
`).forEach(function(w){g=w.indexOf(":"),d=w.substring(0,g).trim().toLowerCase(),c=w.substring(g+1).trim(),!(!d||s[d]&&D0[d])&&(d==="set-cookie"?s[d]?s[d].push(c):s[d]=[c]:s[d]=s[d]?s[d]+", "+c:c)}),s};function M0(r){let s=0,d=r.length;for(;s<d;){const c=r.charCodeAt(s);if(c!==9&&c!==32)break;s+=1}for(;d>s;){const c=r.charCodeAt(d-1);if(c!==9&&c!==32)break;d-=1}return s===0&&d===r.length?r:r.slice(s,d)}const B0=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),U0=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function nc(r,s){return F.isArray(r)?r.map(d=>nc(d,s)):M0(String(r).replace(s,""))}const k0=r=>nc(r,B0),L0=r=>nc(r,U0);function lp(r){const s=Object.create(null);return F.forEach(r.toJSON(),(d,c)=>{s[c]=L0(d)}),s}const gm=Symbol("internals");function Gi(r){return r&&String(r).trim().toLowerCase()}function hu(r){return r===!1||r==null?r:F.isArray(r)?r.map(hu):k0(String(r))}function H0(r){const s=Object.create(null),d=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=d.exec(r);)s[c[1]]=c[2];return s}const q0=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function qs(r,s,d,c,g){if(F.isFunction(c))return c.call(this,s,d);if(g&&(s=d),!!F.isString(s)){if(F.isString(c))return s.indexOf(c)!==-1;if(F.isRegExp(c))return c.test(s)}}function K0(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,d,c)=>d.toUpperCase()+c)}function V0(r,s){const d=F.toCamelCase(" "+s);["get","set","has"].forEach(c=>{Object.defineProperty(r,c+d,{__proto__:null,value:function(g,y,w){return this[c].call(this,s,g,y,w)},configurable:!0})})}let En=class{constructor(s){s&&this.set(s)}set(s,d,c){const g=this;function y(O,C,j){const _=Gi(C);if(!_)return;const z=F.findKey(g,_);(!z||g[z]===void 0||j===!0||j===void 0&&g[z]!==!1)&&(g[z||C]=hu(O))}const w=(O,C)=>F.forEach(O,(j,_)=>y(j,_,C));if(F.isPlainObject(s)||s instanceof this.constructor)w(s,d);else if(F.isString(s)&&(s=s.trim())&&!q0(s))w(z0(s),d);else if(F.isObject(s)&&F.isIterable(s)){let O={},C,j;for(const _ of s){if(!F.isArray(_))throw new TypeError("Object iterator must return a key-value pair");O[j=_[0]]=(C=O[j])?F.isArray(C)?[...C,_[1]]:[C,_[1]]:_[1]}w(O,d)}else s!=null&&y(d,s,c);return this}get(s,d){if(s=Gi(s),s){const c=F.findKey(this,s);if(c){const g=this[c];if(!d)return g;if(d===!0)return H0(g);if(F.isFunction(d))return d.call(this,g,c);if(F.isRegExp(d))return d.exec(g);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,d){if(s=Gi(s),s){const c=F.findKey(this,s);return!!(c&&this[c]!==void 0&&(!d||qs(this,this[c],c,d)))}return!1}delete(s,d){const c=this;let g=!1;function y(w){if(w=Gi(w),w){const O=F.findKey(c,w);O&&(!d||qs(c,c[O],O,d))&&(delete c[O],g=!0)}}return F.isArray(s)?s.forEach(y):y(s),g}clear(s){const d=Object.keys(this);let c=d.length,g=!1;for(;c--;){const y=d[c];(!s||qs(this,this[y],y,s,!0))&&(delete this[y],g=!0)}return g}normalize(s){const d=this,c={};return F.forEach(this,(g,y)=>{const w=F.findKey(c,y);if(w){d[w]=hu(g),delete d[y];return}const O=s?K0(y):String(y).trim();O!==y&&delete d[y],d[O]=hu(g),c[O]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const d=Object.create(null);return F.forEach(this,(c,g)=>{c!=null&&c!==!1&&(d[g]=s&&F.isArray(c)?c.join(", "):c)}),d}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,d])=>s+": "+d).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...d){const c=new this(s);return d.forEach(g=>c.set(g)),c}static accessor(s){const c=(this[gm]=this[gm]={accessors:{}}).accessors,g=this.prototype;function y(w){const O=Gi(w);c[O]||(V0(g,w),c[O]=!0)}return F.isArray(s)?s.forEach(y):y(s),this}};En.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(En.prototype,({value:r},s)=>{let d=s[0].toUpperCase()+s.slice(1);return{get:()=>r,set(c){this[d]=c}}});F.freezeMethods(En);const G0="[REDACTED ****]";function Y0(r){if(F.hasOwnProp(r,"toJSON"))return!0;let s=Object.getPrototypeOf(r);for(;s&&s!==Object.prototype;){if(F.hasOwnProp(s,"toJSON"))return!0;s=Object.getPrototypeOf(s)}return!1}function X0(r,s){const d=new Set(s.map(y=>String(y).toLowerCase())),c=[],g=y=>{if(y===null||typeof y!="object"||F.isBuffer(y))return y;if(c.indexOf(y)!==-1)return;y instanceof En&&(y=y.toJSON()),c.push(y);let w;if(F.isArray(y))w=[],y.forEach((O,C)=>{const j=g(O);F.isUndefined(j)||(w[C]=j)});else{if(!F.isPlainObject(y)&&Y0(y))return c.pop(),y;w=Object.create(null);for(const[O,C]of Object.entries(y)){const j=d.has(O.toLowerCase())?G0:g(C);F.isUndefined(j)||(w[O]=j)}}return c.pop(),w};return g(r)}let qe=class ip extends Error{static from(s,d,c,g,y,w){const O=new ip(s.message,d||s.code,c,g,y);return O.cause=s,O.name=s.name,s.status!=null&&O.status==null&&(O.status=s.status),w&&Object.assign(O,w),O}constructor(s,d,c,g,y){super(s),Object.defineProperty(this,"message",{__proto__:null,value:s,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,d&&(this.code=d),c&&(this.config=c),g&&(this.request=g),y&&(this.response=y,this.status=y.status)}toJSON(){const s=this.config,d=s&&F.hasOwnProp(s,"redact")?s.redact:void 0,c=F.isArray(d)&&d.length>0?X0(s,d):F.toJSONObject(s);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:c,code:this.code,status:this.status}}};qe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";qe.ERR_BAD_OPTION="ERR_BAD_OPTION";qe.ECONNABORTED="ECONNABORTED";qe.ETIMEDOUT="ETIMEDOUT";qe.ECONNREFUSED="ECONNREFUSED";qe.ERR_NETWORK="ERR_NETWORK";qe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";qe.ERR_DEPRECATED="ERR_DEPRECATED";qe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";qe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";qe.ERR_CANCELED="ERR_CANCELED";qe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";qe.ERR_INVALID_URL="ERR_INVALID_URL";qe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Z0=null;function Ps(r){return F.isPlainObject(r)||F.isArray(r)}function rp(r){return F.endsWith(r,"[]")?r.slice(0,-2):r}function Ks(r,s,d){return r?r.concat(s).map(function(g,y){return g=rp(g),!d&&y?"["+g+"]":g}).join(d?".":""):s}function Q0(r){return F.isArray(r)&&!r.some(Ps)}const F0=F.toFlatObject(F,{},null,function(s){return/^is[A-Z]/.test(s)});function Ou(r,s,d){if(!F.isObject(r))throw new TypeError("target must be an object");s=s||new FormData,d=F.toFlatObject(d,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Z,P){return!F.isUndefined(P[Z])});const c=d.metaTokens,g=d.visitor||z,y=d.dots,w=d.indexes,O=d.Blob||typeof Blob<"u"&&Blob,C=d.maxDepth===void 0?100:d.maxDepth,j=O&&F.isSpecCompliantForm(s);if(!F.isFunction(g))throw new TypeError("visitor must be a function");function _(Q){if(Q===null)return"";if(F.isDate(Q))return Q.toISOString();if(F.isBoolean(Q))return Q.toString();if(!j&&F.isBlob(Q))throw new qe("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(Q)||F.isTypedArray(Q)?j&&typeof Blob=="function"?new Blob([Q]):Buffer.from(Q):Q}function z(Q,Z,P){let se=Q;if(F.isReactNative(s)&&F.isReactNativeBlob(Q))return s.append(Ks(P,Z,y),_(Q)),!1;if(Q&&!P&&typeof Q=="object"){if(F.endsWith(Z,"{}"))Z=c?Z:Z.slice(0,-2),Q=JSON.stringify(Q);else if(F.isArray(Q)&&Q0(Q)||(F.isFileList(Q)||F.endsWith(Z,"[]"))&&(se=F.toArray(Q)))return Z=rp(Z),se.forEach(function(ce,ye){!(F.isUndefined(ce)||ce===null)&&s.append(w===!0?Ks([Z],ye,y):w===null?Z:Z+"[]",_(ce))}),!1}return Ps(Q)?!0:(s.append(Ks(P,Z,y),_(Q)),!1)}const ne=[],I=Object.assign(F0,{defaultVisitor:z,convertValue:_,isVisitable:Ps});function ue(Q,Z,P=0){if(!F.isUndefined(Q)){if(P>C)throw new qe("Object is too deeply nested ("+P+" levels). Max depth: "+C,qe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(ne.indexOf(Q)!==-1)throw new Error("Circular reference detected in "+Z.join("."));ne.push(Q),F.forEach(Q,function(ge,ce){(!(F.isUndefined(ge)||ge===null)&&g.call(s,ge,F.isString(ce)?ce.trim():ce,Z,I))===!0&&ue(ge,Z?Z.concat(ce):[ce],P+1)}),ne.pop()}}if(!F.isObject(r))throw new TypeError("data must be an object");return ue(r),s}function ym(r){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(r).replace(/[!'()~]|%20/g,function(c){return s[c]})}function ac(r,s){this._pairs=[],r&&Ou(r,this,s)}const up=ac.prototype;up.append=function(s,d){this._pairs.push([s,d])};up.toString=function(s){const d=s?function(c){return s.call(this,c,ym)}:ym;return this._pairs.map(function(g){return d(g[0])+"="+d(g[1])},"").join("&")};function J0(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function op(r,s,d){if(!s)return r;const c=d&&d.encode||J0,g=F.isFunction(d)?{serialize:d}:d,y=g&&g.serialize;let w;if(y?w=y(s,g):w=F.isURLSearchParams(s)?s.toString():new ac(s,g).toString(c),w){const O=r.indexOf("#");O!==-1&&(r=r.slice(0,O)),r+=(r.indexOf("?")===-1?"?":"&")+w}return r}class bm{constructor(){this.handlers=[]}use(s,d,c){return this.handlers.push({fulfilled:s,rejected:d,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){F.forEach(this.handlers,function(c){c!==null&&s(c)})}}const lc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},P0=typeof URLSearchParams<"u"?URLSearchParams:ac,I0=typeof FormData<"u"?FormData:null,W0=typeof Blob<"u"?Blob:null,$0={isBrowser:!0,classes:{URLSearchParams:P0,FormData:I0,Blob:W0},protocols:["http","https","file","blob","url","data"]},ic=typeof window<"u"&&typeof document<"u",Is=typeof navigator=="object"&&navigator||void 0,eb=ic&&(!Is||["ReactNative","NativeScript","NS"].indexOf(Is.product)<0),tb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nb=ic&&window.location.href||"http://localhost",ab=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ic,hasStandardBrowserEnv:eb,hasStandardBrowserWebWorkerEnv:tb,navigator:Is,origin:nb},Symbol.toStringTag,{value:"Module"})),gn={...ab,...$0};function lb(r,s){return Ou(r,new gn.classes.URLSearchParams,{visitor:function(d,c,g,y){return gn.isNode&&F.isBuffer(d)?(this.append(c,d.toString("base64")),!1):y.defaultVisitor.apply(this,arguments)},...s})}function ib(r){return F.matchAll(/\w+|\[(\w*)]/g,r).map(s=>s[0]==="[]"?"":s[1]||s[0])}function rb(r){const s={},d=Object.keys(r);let c;const g=d.length;let y;for(c=0;c<g;c++)y=d[c],s[y]=r[y];return s}function sp(r){function s(d,c,g,y){let w=d[y++];if(w==="__proto__")return!0;const O=Number.isFinite(+w),C=y>=d.length;return w=!w&&F.isArray(g)?g.length:w,C?(F.hasOwnProp(g,w)?g[w]=F.isArray(g[w])?g[w].concat(c):[g[w],c]:g[w]=c,!O):((!F.hasOwnProp(g,w)||!F.isObject(g[w]))&&(g[w]=[]),s(d,c,g[w],y)&&F.isArray(g[w])&&(g[w]=rb(g[w])),!O)}if(F.isFormData(r)&&F.isFunction(r.entries)){const d={};return F.forEachEntry(r,(c,g)=>{s(ib(c),g,d,0)}),d}return null}const Pl=(r,s)=>r!=null&&F.hasOwnProp(r,s)?r[s]:void 0;function ub(r,s,d){if(F.isString(r))try{return(s||JSON.parse)(r),F.trim(r)}catch(c){if(c.name!=="SyntaxError")throw c}return(d||JSON.stringify)(r)}const Pi={transitional:lc,adapter:["xhr","http","fetch"],transformRequest:[function(s,d){const c=d.getContentType()||"",g=c.indexOf("application/json")>-1,y=F.isObject(s);if(y&&F.isHTMLForm(s)&&(s=new FormData(s)),F.isFormData(s))return g?JSON.stringify(sp(s)):s;if(F.isArrayBuffer(s)||F.isBuffer(s)||F.isStream(s)||F.isFile(s)||F.isBlob(s)||F.isReadableStream(s))return s;if(F.isArrayBufferView(s))return s.buffer;if(F.isURLSearchParams(s))return d.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let O;if(y){const C=Pl(this,"formSerializer");if(c.indexOf("application/x-www-form-urlencoded")>-1)return lb(s,C).toString();if((O=F.isFileList(s))||c.indexOf("multipart/form-data")>-1){const j=Pl(this,"env"),_=j&&j.FormData;return Ou(O?{"files[]":s}:s,_&&new _,C)}}return y||g?(d.setContentType("application/json",!1),ub(s)):s}],transformResponse:[function(s){const d=Pl(this,"transitional")||Pi.transitional,c=d&&d.forcedJSONParsing,g=Pl(this,"responseType"),y=g==="json";if(F.isResponse(s)||F.isReadableStream(s))return s;if(s&&F.isString(s)&&(c&&!g||y)){const O=!(d&&d.silentJSONParsing)&&y;try{return JSON.parse(s,Pl(this,"parseReviver"))}catch(C){if(O)throw C.name==="SyntaxError"?qe.from(C,qe.ERR_BAD_RESPONSE,this,null,Pl(this,"response")):C}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gn.classes.FormData,Blob:gn.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch","query"],r=>{Pi.headers[r]={}});function Vs(r,s){const d=this||Pi,c=s||d,g=En.from(c.headers);let y=c.data;return F.forEach(r,function(O){y=O.call(d,y,g.normalize(),s?s.status:void 0)}),g.normalize(),y}function cp(r){return!!(r&&r.__CANCEL__)}let Ii=class extends qe{constructor(s,d,c){super(s??"canceled",qe.ERR_CANCELED,d,c),this.name="CanceledError",this.__CANCEL__=!0}};function fp(r,s,d){const c=d.config.validateStatus;!d.status||!c||c(d.status)?r(d):s(new qe("Request failed with status code "+d.status,d.status>=400&&d.status<500?qe.ERR_BAD_REQUEST:qe.ERR_BAD_RESPONSE,d.config,d.request,d))}function ob(r){const s=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r);return s&&s[1]||""}function sb(r,s){r=r||10;const d=new Array(r),c=new Array(r);let g=0,y=0,w;return s=s!==void 0?s:1e3,function(C){const j=Date.now(),_=c[y];w||(w=j),d[g]=C,c[g]=j;let z=y,ne=0;for(;z!==g;)ne+=d[z++],z=z%r;if(g=(g+1)%r,g===y&&(y=(y+1)%r),j-w<s)return;const I=_&&j-_;return I?Math.round(ne*1e3/I):void 0}}function cb(r,s){let d=0,c=1e3/s,g,y;const w=(j,_=Date.now())=>{d=_,g=null,y&&(clearTimeout(y),y=null),r(...j)};return[(...j)=>{const _=Date.now(),z=_-d;z>=c?w(j,_):(g=j,y||(y=setTimeout(()=>{y=null,w(g)},c-z)))},()=>g&&w(g)]}const vu=(r,s,d=3)=>{let c=0;const g=sb(50,250);return cb(y=>{if(!y||typeof y.loaded!="number")return;const w=y.loaded,O=y.lengthComputable?y.total:void 0,C=O!=null?Math.min(w,O):w,j=Math.max(0,C-c),_=g(j);c=Math.max(c,C);const z={loaded:C,total:O,progress:O?C/O:void 0,bytes:j,rate:_||void 0,estimated:_&&O?(O-C)/_:void 0,event:y,lengthComputable:O!=null,[s?"download":"upload"]:!0};r(z)},d)},Sm=(r,s)=>{const d=r!=null;return[c=>s[0]({lengthComputable:d,total:r,loaded:c}),s[1]]},Em=r=>(...s)=>F.asap(()=>r(...s)),fb=gn.hasStandardBrowserEnv?((r,s)=>d=>(d=new URL(d,gn.origin),r.protocol===d.protocol&&r.host===d.host&&(s||r.port===d.port)))(new URL(gn.origin),gn.navigator&&/(msie|trident)/i.test(gn.navigator.userAgent)):()=>!0,db=gn.hasStandardBrowserEnv?{write(r,s,d,c,g,y,w){if(typeof document>"u")return;const O=[`${r}=${encodeURIComponent(s)}`];F.isNumber(d)&&O.push(`expires=${new Date(d).toUTCString()}`),F.isString(c)&&O.push(`path=${c}`),F.isString(g)&&O.push(`domain=${g}`),y===!0&&O.push("secure"),F.isString(w)&&O.push(`SameSite=${w}`),document.cookie=O.join("; ")},read(r){if(typeof document>"u")return null;const s=document.cookie.split(";");for(let d=0;d<s.length;d++){const c=s[d].replace(/^\s+/,""),g=c.indexOf("=");if(g!==-1&&c.slice(0,g)===r)return decodeURIComponent(c.slice(g+1))}return null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hb(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function mb(r,s){return s?r.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):r}function dp(r,s,d){let c=!hb(s);return r&&(c||d===!1)?mb(r,s):s}const xm=r=>r instanceof En?{...r}:r;function ml(r,s){s=s||{};const d=Object.create(null);Object.defineProperty(d,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function c(j,_,z,ne){return F.isPlainObject(j)&&F.isPlainObject(_)?F.merge.call({caseless:ne},j,_):F.isPlainObject(_)?F.merge({},_):F.isArray(_)?_.slice():_}function g(j,_,z,ne){if(F.isUndefined(_)){if(!F.isUndefined(j))return c(void 0,j,z,ne)}else return c(j,_,z,ne)}function y(j,_){if(!F.isUndefined(_))return c(void 0,_)}function w(j,_){if(F.isUndefined(_)){if(!F.isUndefined(j))return c(void 0,j)}else return c(void 0,_)}function O(j,_,z){if(F.hasOwnProp(s,z))return c(j,_);if(F.hasOwnProp(r,z))return c(void 0,j)}const C={url:y,method:y,data:y,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,withXSRFToken:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,allowedSocketPaths:w,responseEncoding:w,validateStatus:O,headers:(j,_,z)=>g(xm(j),xm(_),z,!0)};return F.forEach(Object.keys({...r,...s}),function(_){if(_==="__proto__"||_==="constructor"||_==="prototype")return;const z=F.hasOwnProp(C,_)?C[_]:g,ne=F.hasOwnProp(r,_)?r[_]:void 0,I=F.hasOwnProp(s,_)?s[_]:void 0,ue=z(ne,I,_);F.isUndefined(ue)&&z!==O||(d[_]=ue)}),d}const pb=["content-type","content-length"];function vb(r,s,d){if(d!=="content-only"){r.set(s);return}Object.entries(s).forEach(([c,g])=>{pb.includes(c.toLowerCase())&&r.set(c,g)})}const gb=r=>encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(s,d)=>String.fromCharCode(parseInt(d,16)));function hp(r){const s=ml({},r),d=ne=>F.hasOwnProp(s,ne)?s[ne]:void 0,c=d("data");let g=d("withXSRFToken");const y=d("xsrfHeaderName"),w=d("xsrfCookieName");let O=d("headers");const C=d("auth"),j=d("baseURL"),_=d("allowAbsoluteUrls"),z=d("url");if(s.headers=O=En.from(O),s.url=op(dp(j,z,_),d("params"),d("paramsSerializer")),C&&O.set("Authorization","Basic "+btoa((C.username||"")+":"+(C.password?gb(C.password):""))),F.isFormData(c)&&(gn.hasStandardBrowserEnv||gn.hasStandardBrowserWebWorkerEnv||F.isReactNative(c)?O.setContentType(void 0):F.isFunction(c.getHeaders)&&vb(O,c.getHeaders(),d("formDataHeaderPolicy"))),gn.hasStandardBrowserEnv&&(F.isFunction(g)&&(g=g(s)),g===!0||g==null&&fb(s.url))){const I=y&&w&&db.read(w);I&&O.set(y,I)}return s}const yb=typeof XMLHttpRequest<"u",bb=yb&&function(r){return new Promise(function(d,c){const g=hp(r);let y=g.data;const w=En.from(g.headers).normalize();let{responseType:O,onUploadProgress:C,onDownloadProgress:j}=g,_,z,ne,I,ue;function Q(){I&&I(),ue&&ue(),g.cancelToken&&g.cancelToken.unsubscribe(_),g.signal&&g.signal.removeEventListener("abort",_)}let Z=new XMLHttpRequest;Z.open(g.method.toUpperCase(),g.url,!0),Z.timeout=g.timeout;function P(){if(!Z)return;const ge=En.from("getAllResponseHeaders"in Z&&Z.getAllResponseHeaders()),ye={data:!O||O==="text"||O==="json"?Z.responseText:Z.response,status:Z.status,statusText:Z.statusText,headers:ge,config:r,request:Z};fp(function(Ee){d(Ee),Q()},function(Ee){c(Ee),Q()},ye),Z=null}"onloadend"in Z?Z.onloadend=P:Z.onreadystatechange=function(){!Z||Z.readyState!==4||Z.status===0&&!(Z.responseURL&&Z.responseURL.startsWith("file:"))||setTimeout(P)},Z.onabort=function(){Z&&(c(new qe("Request aborted",qe.ECONNABORTED,r,Z)),Q(),Z=null)},Z.onerror=function(ce){const ye=ce&&ce.message?ce.message:"Network Error",Me=new qe(ye,qe.ERR_NETWORK,r,Z);Me.event=ce||null,c(Me),Q(),Z=null},Z.ontimeout=function(){let ce=g.timeout?"timeout of "+g.timeout+"ms exceeded":"timeout exceeded";const ye=g.transitional||lc;g.timeoutErrorMessage&&(ce=g.timeoutErrorMessage),c(new qe(ce,ye.clarifyTimeoutError?qe.ETIMEDOUT:qe.ECONNABORTED,r,Z)),Q(),Z=null},y===void 0&&w.setContentType(null),"setRequestHeader"in Z&&F.forEach(lp(w),function(ce,ye){Z.setRequestHeader(ye,ce)}),F.isUndefined(g.withCredentials)||(Z.withCredentials=!!g.withCredentials),O&&O!=="json"&&(Z.responseType=g.responseType),j&&([ne,ue]=vu(j,!0),Z.addEventListener("progress",ne)),C&&Z.upload&&([z,I]=vu(C),Z.upload.addEventListener("progress",z),Z.upload.addEventListener("loadend",I)),(g.cancelToken||g.signal)&&(_=ge=>{Z&&(c(!ge||ge.type?new Ii(null,r,Z):ge),Z.abort(),Q(),Z=null)},g.cancelToken&&g.cancelToken.subscribe(_),g.signal&&(g.signal.aborted?_():g.signal.addEventListener("abort",_)));const se=ob(g.url);if(se&&!gn.protocols.includes(se)){c(new qe("Unsupported protocol "+se+":",qe.ERR_BAD_REQUEST,r));return}Z.send(y||null)})},Sb=(r,s)=>{if(r=r?r.filter(Boolean):[],!s&&!r.length)return;const d=new AbortController;let c=!1;const g=function(C){if(!c){c=!0,w();const j=C instanceof Error?C:this.reason;d.abort(j instanceof qe?j:new Ii(j instanceof Error?j.message:j))}};let y=s&&setTimeout(()=>{y=null,g(new qe(`timeout of ${s}ms exceeded`,qe.ETIMEDOUT))},s);const w=()=>{r&&(y&&clearTimeout(y),y=null,r.forEach(C=>{C.unsubscribe?C.unsubscribe(g):C.removeEventListener("abort",g)}),r=null)};r.forEach(C=>C.addEventListener("abort",g));const{signal:O}=d;return O.unsubscribe=()=>F.asap(w),O},Eb=function*(r,s){let d=r.byteLength;if(d<s){yield r;return}let c=0,g;for(;c<d;)g=c+s,yield r.slice(c,g),c=g},xb=async function*(r,s){for await(const d of Ob(r))yield*Eb(d,s)},Ob=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const s=r.getReader();try{for(;;){const{done:d,value:c}=await s.read();if(d)break;yield c}}finally{await s.cancel()}},Om=(r,s,d,c)=>{const g=xb(r,s);let y=0,w,O=C=>{w||(w=!0,c&&c(C))};return new ReadableStream({async pull(C){try{const{done:j,value:_}=await g.next();if(j){O(),C.close();return}let z=_.byteLength;if(d){let ne=y+=z;d(ne)}C.enqueue(new Uint8Array(_))}catch(j){throw O(j),j}},cancel(C){return O(C),g.return()}},{highWaterMark:2})};function Nb(r){if(!r||typeof r!="string"||!r.startsWith("data:"))return 0;const s=r.indexOf(",");if(s<0)return 0;const d=r.slice(5,s),c=r.slice(s+1);if(/;base64/i.test(d)){let w=c.length;const O=c.length;for(let I=0;I<O;I++)if(c.charCodeAt(I)===37&&I+2<O){const ue=c.charCodeAt(I+1),Q=c.charCodeAt(I+2);(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)&&(Q>=48&&Q<=57||Q>=65&&Q<=70||Q>=97&&Q<=102)&&(w-=2,I+=2)}let C=0,j=O-1;const _=I=>I>=2&&c.charCodeAt(I-2)===37&&c.charCodeAt(I-1)===51&&(c.charCodeAt(I)===68||c.charCodeAt(I)===100);j>=0&&(c.charCodeAt(j)===61?(C++,j--):_(j)&&(C++,j-=3)),C===1&&j>=0&&(c.charCodeAt(j)===61||_(j))&&C++;const ne=Math.floor(w/4)*3-(C||0);return ne>0?ne:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(c,"utf8");let y=0;for(let w=0,O=c.length;w<O;w++){const C=c.charCodeAt(w);if(C<128)y+=1;else if(C<2048)y+=2;else if(C>=55296&&C<=56319&&w+1<O){const j=c.charCodeAt(w+1);j>=56320&&j<=57343?(y+=4,w++):y+=3}else y+=3}return y}const rc="1.17.0",Nm=64*1024,{isFunction:cu}=F,wb=r=>encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(s,d)=>String.fromCharCode(parseInt(d,16))),wm=r=>{if(!F.isString(r))return r;try{return decodeURIComponent(r)}catch{return r}},Tm=(r,...s)=>{try{return!!r(...s)}catch{return!1}},Tb=r=>{const s=r.indexOf("://");let d=r;return s!==-1&&(d=d.slice(s+3)),d.includes("@")||d.includes(":")},Ab=r=>{const s=F.global!==void 0&&F.global!==null?F.global:globalThis,{ReadableStream:d,TextEncoder:c}=s;r=F.merge.call({skipUndefined:!0},{Request:s.Request,Response:s.Response},r);const{fetch:g,Request:y,Response:w}=r,O=g?cu(g):typeof fetch=="function",C=cu(y),j=cu(w);if(!O)return!1;const _=O&&cu(d),z=O&&(typeof c=="function"?(P=>se=>P.encode(se))(new c):async P=>new Uint8Array(await new y(P).arrayBuffer())),ne=C&&_&&Tm(()=>{let P=!1;const se=new y(gn.origin,{body:new d,method:"POST",get duplex(){return P=!0,"half"}}),ge=se.headers.has("Content-Type");return se.body!=null&&se.body.cancel(),P&&!ge}),I=j&&_&&Tm(()=>F.isReadableStream(new w("").body)),ue={stream:I&&(P=>P.body)};O&&["text","arrayBuffer","blob","formData","stream"].forEach(P=>{!ue[P]&&(ue[P]=(se,ge)=>{let ce=se&&se[P];if(ce)return ce.call(se);throw new qe(`Response type '${P}' is not supported`,qe.ERR_NOT_SUPPORT,ge)})});const Q=async P=>{if(P==null)return 0;if(F.isBlob(P))return P.size;if(F.isSpecCompliantForm(P))return(await new y(gn.origin,{method:"POST",body:P}).arrayBuffer()).byteLength;if(F.isArrayBufferView(P)||F.isArrayBuffer(P))return P.byteLength;if(F.isURLSearchParams(P)&&(P=P+""),F.isString(P))return(await z(P)).byteLength},Z=async(P,se)=>{const ge=F.toFiniteNumber(P.getContentLength());return ge??Q(se)};return async P=>{let{url:se,method:ge,data:ce,signal:ye,cancelToken:Me,timeout:Ee,onDownloadProgress:Ue,onUploadProgress:ut,responseType:je,headers:_e,withCredentials:Se="same-origin",fetchOptions:Re,maxContentLength:Ye,maxBodyLength:$e}=hp(P);const ae=F.isNumber(Ye)&&Ye>-1,we=F.isNumber($e)&&$e>-1,Ge=xe=>F.hasOwnProp(P,xe)?P[xe]:void 0;let mt=g||fetch;je=je?(je+"").toLowerCase():"text";let ct=Sb([ye,Me&&Me.toAbortSignal()],Ee),U=null;const de=ct&&ct.unsubscribe&&(()=>{ct.unsubscribe()});let Ae;try{let xe;const Xe=Ge("auth");if(Xe){const h=Xe.username||"",m=Xe.password||"";xe={username:h,password:m}}if(Tb(se)){const h=new URL(se,gn.origin);if(!xe&&(h.username||h.password)){const m=wm(h.username),S=wm(h.password);xe={username:m,password:S}}(h.username||h.password)&&(h.username="",h.password="",se=h.href)}if(xe&&(_e.delete("authorization"),_e.set("Authorization","Basic "+btoa(wb((xe.username||"")+":"+(xe.password||""))))),ae&&typeof se=="string"&&se.startsWith("data:")&&Nb(se)>Ye)throw new qe("maxContentLength size of "+Ye+" exceeded",qe.ERR_BAD_RESPONSE,P,U);if(we&&ge!=="get"&&ge!=="head"){const h=await Z(_e,ce);if(typeof h=="number"&&isFinite(h)&&h>$e)throw new qe("Request body larger than maxBodyLength limit",qe.ERR_BAD_REQUEST,P,U)}if(ut&&ne&&ge!=="get"&&ge!=="head"&&(Ae=await Z(_e,ce))!==0){let h=new y(se,{method:"POST",body:ce,duplex:"half"}),m;if(F.isFormData(ce)&&(m=h.headers.get("content-type"))&&_e.setContentType(m),h.body){const[S,N]=Sm(Ae,vu(Em(ut)));ce=Om(h.body,Nm,S,N)}}F.isString(Se)||(Se=Se?"include":"omit");const p=C&&"credentials"in y.prototype;if(F.isFormData(ce)){const h=_e.getContentType();h&&/^multipart\/form-data/i.test(h)&&!/boundary=/i.test(h)&&_e.delete("content-type")}_e.set("User-Agent","axios/"+rc,!1);const E={...Re,signal:ct,method:ge.toUpperCase(),headers:lp(_e.normalize()),body:ce,duplex:"half",credentials:p?Se:void 0};U=C&&new y(se,E);let l=await(C?mt(U,Re):mt(se,E));if(ae){const h=F.toFiniteNumber(l.headers.get("content-length"));if(h!=null&&h>Ye)throw new qe("maxContentLength size of "+Ye+" exceeded",qe.ERR_BAD_RESPONSE,P,U)}const u=I&&(je==="stream"||je==="response");if(I&&l.body&&(Ue||ae||u&&de)){const h={};["status","statusText","headers"].forEach(R=>{h[R]=l[R]});const m=F.toFiniteNumber(l.headers.get("content-length")),[S,N]=Ue&&Sm(m,vu(Em(Ue),!0))||[];let x=0;const T=R=>{if(ae&&(x=R,x>Ye))throw new qe("maxContentLength size of "+Ye+" exceeded",qe.ERR_BAD_RESPONSE,P,U);S&&S(R)};l=new w(Om(l.body,Nm,T,()=>{N&&N(),de&&de()}),h)}je=je||"text";let f=await ue[F.findKey(ue,je)||"text"](l,P);if(ae&&!I&&!u){let h;if(f!=null&&(typeof f.byteLength=="number"?h=f.byteLength:typeof f.size=="number"?h=f.size:typeof f=="string"&&(h=typeof c=="function"?new c().encode(f).byteLength:f.length)),typeof h=="number"&&h>Ye)throw new qe("maxContentLength size of "+Ye+" exceeded",qe.ERR_BAD_RESPONSE,P,U)}return!u&&de&&de(),await new Promise((h,m)=>{fp(h,m,{data:f,headers:En.from(l.headers),status:l.status,statusText:l.statusText,config:P,request:U})})}catch(xe){if(de&&de(),ct&&ct.aborted&&ct.reason instanceof qe){const Xe=ct.reason;throw Xe.config=P,U&&(Xe.request=U),xe!==Xe&&(Xe.cause=xe),Xe}throw xe&&xe.name==="TypeError"&&/Load failed|fetch/i.test(xe.message)?Object.assign(new qe("Network Error",qe.ERR_NETWORK,P,U,xe&&xe.response),{cause:xe.cause||xe}):qe.from(xe,xe&&xe.code,P,U,xe&&xe.response)}}},jb=new Map,mp=r=>{let s=r&&r.env||{};const{fetch:d,Request:c,Response:g}=s,y=[c,g,d];let w=y.length,O=w,C,j,_=jb;for(;O--;)C=y[O],j=_.get(C),j===void 0&&_.set(C,j=O?new Map:Ab(s)),_=j;return j};mp();const uc={http:Z0,xhr:bb,fetch:{get:mp}};F.forEach(uc,(r,s)=>{if(r){try{Object.defineProperty(r,"name",{__proto__:null,value:s})}catch{}Object.defineProperty(r,"adapterName",{__proto__:null,value:s})}});const Am=r=>`- ${r}`,Cb=r=>F.isFunction(r)||r===null||r===!1;function _b(r,s){r=F.isArray(r)?r:[r];const{length:d}=r;let c,g;const y={};for(let w=0;w<d;w++){c=r[w];let O;if(g=c,!Cb(c)&&(g=uc[(O=String(c)).toLowerCase()],g===void 0))throw new qe(`Unknown adapter '${O}'`);if(g&&(F.isFunction(g)||(g=g.get(s))))break;y[O||"#"+w]=g}if(!g){const w=Object.entries(y).map(([C,j])=>`adapter ${C} `+(j===!1?"is not supported by the environment":"is not available in the build"));let O=d?w.length>1?`since :
`+w.map(Am).join(`
`):" "+Am(w[0]):"as no adapter specified";throw new qe("There is no suitable adapter to dispatch the request "+O,"ERR_NOT_SUPPORT")}return g}const pp={getAdapter:_b,adapters:uc};function Gs(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Ii(null,r)}function jm(r){return Gs(r),r.headers=En.from(r.headers),r.data=Vs.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),pp.getAdapter(r.adapter||Pi.adapter,r)(r).then(function(c){Gs(r),r.response=c;try{c.data=Vs.call(r,r.transformResponse,c)}finally{delete r.response}return c.headers=En.from(c.headers),c},function(c){if(!cp(c)&&(Gs(r),c&&c.response)){r.response=c.response;try{c.response.data=Vs.call(r,r.transformResponse,c.response)}finally{delete r.response}c.response.headers=En.from(c.response.headers)}return Promise.reject(c)})}const Nu={};["object","boolean","number","function","string","symbol"].forEach((r,s)=>{Nu[r]=function(c){return typeof c===r||"a"+(s<1?"n ":" ")+r}});const Cm={};Nu.transitional=function(s,d,c){function g(y,w){return"[Axios v"+rc+"] Transitional option '"+y+"'"+w+(c?". "+c:"")}return(y,w,O)=>{if(s===!1)throw new qe(g(w," has been removed"+(d?" in "+d:"")),qe.ERR_DEPRECATED);return d&&!Cm[w]&&(Cm[w]=!0,console.warn(g(w," has been deprecated since v"+d+" and will be removed in the near future"))),s?s(y,w,O):!0}};Nu.spelling=function(s){return(d,c)=>(console.warn(`${c} is likely a misspelling of ${s}`),!0)};function Rb(r,s,d){if(typeof r!="object")throw new qe("options must be an object",qe.ERR_BAD_OPTION_VALUE);const c=Object.keys(r);let g=c.length;for(;g-- >0;){const y=c[g],w=Object.prototype.hasOwnProperty.call(s,y)?s[y]:void 0;if(w){const O=r[y],C=O===void 0||w(O,y,r);if(C!==!0)throw new qe("option "+y+" must be "+C,qe.ERR_BAD_OPTION_VALUE);continue}if(d!==!0)throw new qe("Unknown option "+y,qe.ERR_BAD_OPTION)}}const mu={assertOptions:Rb,validators:Nu},jn=mu.validators;let dl=class{constructor(s){this.defaults=s||{},this.interceptors={request:new bm,response:new bm}}async request(s,d){try{return await this._request(s,d)}catch(c){if(c instanceof Error){let g={};Error.captureStackTrace?Error.captureStackTrace(g):g=new Error;const y=(()=>{if(!g.stack)return"";const w=g.stack.indexOf(`
`);return w===-1?"":g.stack.slice(w+1)})();try{if(!c.stack)c.stack=y;else if(y){const w=y.indexOf(`
`),O=w===-1?-1:y.indexOf(`
`,w+1),C=O===-1?"":y.slice(O+1);String(c.stack).endsWith(C)||(c.stack+=`
`+y)}}catch{}}throw c}}_request(s,d){typeof s=="string"?(d=d||{},d.url=s):d=s||{},d=ml(this.defaults,d);const{transitional:c,paramsSerializer:g,headers:y}=d;c!==void 0&&mu.assertOptions(c,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean),legacyInterceptorReqResOrdering:jn.transitional(jn.boolean),advertiseZstdAcceptEncoding:jn.transitional(jn.boolean)},!1),g!=null&&(F.isFunction(g)?d.paramsSerializer={serialize:g}:mu.assertOptions(g,{encode:jn.function,serialize:jn.function},!0)),d.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?d.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:d.allowAbsoluteUrls=!0),mu.assertOptions(d,{baseUrl:jn.spelling("baseURL"),withXsrfToken:jn.spelling("withXSRFToken")},!0),d.method=(d.method||this.defaults.method||"get").toLowerCase();let w=y&&F.merge(y.common,y[d.method]);y&&F.forEach(["delete","get","head","post","put","patch","query","common"],ue=>{delete y[ue]}),d.headers=En.concat(w,y);const O=[];let C=!0;this.interceptors.request.forEach(function(Q){if(typeof Q.runWhen=="function"&&Q.runWhen(d)===!1)return;C=C&&Q.synchronous;const Z=d.transitional||lc;Z&&Z.legacyInterceptorReqResOrdering?O.unshift(Q.fulfilled,Q.rejected):O.push(Q.fulfilled,Q.rejected)});const j=[];this.interceptors.response.forEach(function(Q){j.push(Q.fulfilled,Q.rejected)});let _,z=0,ne;if(!C){const ue=[jm.bind(this),void 0];for(ue.unshift(...O),ue.push(...j),ne=ue.length,_=Promise.resolve(d);z<ne;)_=_.then(ue[z++],ue[z++]);return _}ne=O.length;let I=d;for(;z<ne;){const ue=O[z++],Q=O[z++];try{I=ue(I)}catch(Z){Q.call(this,Z);break}}try{_=jm.call(this,I)}catch(ue){return Promise.reject(ue)}for(z=0,ne=j.length;z<ne;)_=_.then(j[z++],j[z++]);return _}getUri(s){s=ml(this.defaults,s);const d=dp(s.baseURL,s.url,s.allowAbsoluteUrls);return op(d,s.params,s.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(s){dl.prototype[s]=function(d,c){return this.request(ml(c||{},{method:s,url:d,data:(c||{}).data}))}});F.forEach(["post","put","patch","query"],function(s){function d(c){return function(y,w,O){return this.request(ml(O||{},{method:s,headers:c?{"Content-Type":"multipart/form-data"}:{},url:y,data:w}))}}dl.prototype[s]=d(),s!=="query"&&(dl.prototype[s+"Form"]=d(!0))});let Db=class vp{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let d;this.promise=new Promise(function(y){d=y});const c=this;this.promise.then(g=>{if(!c._listeners)return;let y=c._listeners.length;for(;y-- >0;)c._listeners[y](g);c._listeners=null}),this.promise.then=g=>{let y;const w=new Promise(O=>{c.subscribe(O),y=O}).then(g);return w.cancel=function(){c.unsubscribe(y)},w},s(function(y,w,O){c.reason||(c.reason=new Ii(y,w,O),d(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const d=this._listeners.indexOf(s);d!==-1&&this._listeners.splice(d,1)}toAbortSignal(){const s=new AbortController,d=c=>{s.abort(c)};return this.subscribe(d),s.signal.unsubscribe=()=>this.unsubscribe(d),s.signal}static source(){let s;return{token:new vp(function(g){s=g}),cancel:s}}};function zb(r){return function(d){return r.apply(null,d)}}function Mb(r){return F.isObject(r)&&r.isAxiosError===!0}const Ws={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ws).forEach(([r,s])=>{Ws[s]=r});function gp(r){const s=new dl(r),d=Pm(dl.prototype.request,s);return F.extend(d,dl.prototype,s,{allOwnKeys:!0}),F.extend(d,s,null,{allOwnKeys:!0}),d.create=function(g){return gp(ml(r,g))},d}const en=gp(Pi);en.Axios=dl;en.CanceledError=Ii;en.CancelToken=Db;en.isCancel=cp;en.VERSION=rc;en.toFormData=Ou;en.AxiosError=qe;en.Cancel=en.CanceledError;en.all=function(s){return Promise.all(s)};en.spread=zb;en.isAxiosError=Mb;en.mergeConfig=ml;en.AxiosHeaders=En;en.formToJSON=r=>sp(F.isHTMLForm(r)?new FormData(r):r);en.getAdapter=pp.getAdapter;en.HttpStatusCode=Ws;en.default=en;const{Axios:W1,AxiosError:$1,CanceledError:eS,isCancel:tS,CancelToken:nS,VERSION:aS,all:lS,Cancel:iS,isAxiosError:rS,spread:uS,toFormData:oS,AxiosHeaders:sS,HttpStatusCode:cS,formToJSON:fS,getAdapter:dS,mergeConfig:hS,create:mS}=en,Bb={Mon:0,Tue:1,Wed:2,Thu:3,Fri:4,Sat:5,Sun:6},Ub="Europe/Berlin";function yp(r=new Date){try{const d=new Intl.DateTimeFormat("en-GB",{timeZone:Ub,weekday:"short",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(r);let c,g="00",y="00";for(const O of d)O.type==="weekday"&&(c=O.value),O.type==="hour"&&(g=String(O.value).padStart(2,"0")),O.type==="minute"&&(y=String(O.value).padStart(2,"0"));const w=Bb[c];return w===void 0?null:{weekdayMon0:w,hhmm:`${g}:${y}`}}catch{return null}}function kb(r,s,d){return!Array.isArray(r)||r.length===0?!1:r.filter(g=>Number(g.dayOfWeek)===s&&!g.closed).some(g=>{var O,C;const y=(O=g.openingTime)==null?void 0:O.substring(0,5),w=(C=g.closingTime)==null?void 0:C.substring(0,5);return y&&w&&d>=y&&d<=w})}const Dt=en.create({withCredentials:!0,timeout:6e5});Dt.interceptors.response.use(r=>r,r=>{var c,g;const s=(c=r.response)==null?void 0:c.status,d=((g=r.config)==null?void 0:g.url)??"";return s===401&&typeof d=="string"&&d.includes("/proxy")&&window.location.reload(),Promise.reject(r)});const Lt=async(r,s=!1)=>{var d,c,g;try{const y=await r();return s?y:y.data}catch(y){const w=(d=y==null?void 0:y.response)==null?void 0:d.status,O=(c=y==null?void 0:y.response)==null?void 0:c.data,C=typeof(O==null?void 0:O.detail)=="string"?O.detail:Array.isArray(O==null?void 0:O.detail)&&((g=O.detail[0])!=null&&g.msg)?String(O.detail[0].msg):null;return{error:(O==null?void 0:O.error)||C||"Ein unerwarteter Fehler ist aufgetreten.",status:w,detail:O==null?void 0:O.detail,details:(O==null?void 0:O.details)??(O==null?void 0:O.detail),t2medCode:(O==null?void 0:O.t2medCode)??null,userMessage:(O==null?void 0:O.userMessage)??null,level:(O==null?void 0:O.level)??null,source:(O==null?void 0:O.source)??null,operation:(O==null?void 0:O.operation)??null}}},Lb=async()=>Lt(()=>Dt.get("/cert-exists")),Hb=async r=>Lt(()=>Dt.post("/register-certificate",{token:r}),!0),bp=async r=>Lt(()=>Dt.post("/proxy/api/v1/patient",r)),qb=async(r,s)=>{const d=Number(r),c=Number(s);return Lt(()=>Dt.get(`/proxy/api/v1/patient/status/${d}/${c}`))},Kb=async()=>{const r=await Lt(()=>Dt.post("/proxy/api/v1/patient/no-appointment/consume",{}));if(r!=null&&r.error)return r;const s=typeof(r==null?void 0:r.status)=="string"?r.status:null;return s==="FULL"||s==="CONSUMED"?{walkInStatus:s}:s==="NOT_IN_OPENING_HOURS"?{error:"NOT_IN_OPENING_HOURS",detail:"NOT_IN_OPENING_HOURS"}:{error:"Unerwartete Antwort vom Server.",status:r==null?void 0:r.status,detail:r==null?void 0:r.detail}},Vb=async()=>Lt(()=>Dt.get("/proxy/api/v1/buttonconfig/terminal")),Gb=async()=>Lt(()=>Dt.get("/proxy/api/v1/terminalflowconfig/terminal")),Sp=async()=>Lt(()=>Dt.get("/proxy/api/v1/openingtime/terminal")),Yb=async()=>Lt(()=>Dt.get("/proxy/api/v1/openingtime/terminal/walk-in-window-open")),Xb=async r=>Lt(()=>Dt.post("/t2med/requestCheckin",{note:r})),Zb=async r=>Lt(()=>Dt.post("/t2med/checkin",{sitzungHandle:r})),Ep=async()=>Lt(()=>Dt.get("/t2med/dev/allowed")),xp=async({code:r=502,operation:s="karteanfordern",statusText:d}={})=>Lt(()=>Dt.post("/t2med/dev/mock-error",{code:r,operation:s,...d!=null?{statusText:d}:{}})),Qb=async()=>Lt(()=>Dt.get("/t2med/dev/scenarios")),_m=async r=>Lt(()=>Dt.post("/t2med/dev/scenario",{scenarioId:r??null})),Op=async()=>Lt(()=>Dt.post("/t2med/setup-exists")),Fb=async r=>Lt(()=>Dt.post("/t2med/auth",r)),Jb=async()=>Lt(()=>Dt.get("/t2med/structure")),Pb=async r=>Lt(()=>Dt.post("/t2med/terminals",r)),Ib=async r=>Lt(()=>Dt.post("/t2med/complete",r)),Wb=async()=>Lt(()=>Dt.get("/t2med/waiting-room")),$b=async r=>Lt(()=>Dt.post("/t2med/waiting-room/entry",r)),Np=async()=>Lt(()=>Dt.post("/sync/setup-exists")),e1=async()=>Lt(()=>Dt.get("/sync/config")),t1=async r=>Lt(()=>Dt.post("/sync/config",r)),n1=async(r={})=>Lt(()=>Dt.post("/sync/pick-folder",r)),a1=async()=>Lt(()=>Dt.get("/sync/smb/status")),l1=async r=>Lt(()=>Dt.post("/sync/smb",r));function i1(r){if(!r)return!1;if(typeof r=="string")return r.trim().toLowerCase().includes("full");if(typeof r=="object"){const s=r.status??r.value??r.result??r.state??r.message??r.data;if(typeof s=="string")return s.trim().toLowerCase().includes("full")}return!1}async function r1(){const r=await Sp(),s=Array.isArray(r)?r:(r==null?void 0:r.data)||(r==null?void 0:r.openingTimes)||[];if(!s||s.length===0)return!1;const d=new Date,c=yp(d);let g,y;if(c)g=c.weekdayMon0,y=c.hhmm;else{const z=d.getDay();g=z===0?6:z-1,y=d.toTimeString().substring(0,5)}const O=s.filter(z=>Number(z.dayOfWeek)===g&&!z.closed).find(z=>{var ue,Q;const ne=(ue=z.openingTime)==null?void 0:ue.substring(0,5),I=(Q=z.closingTime)==null?void 0:Q.substring(0,5);return ne&&I&&y>=ne&&y<=I});if(!O)return!1;const C=O.timeSpanIndex??O.timespanindex??O.timespanIndex??O.TimeSpanIndex,j=Number(C);if(!Number.isFinite(j))return!1;const _=await qb(g,j);return i1(_)}function u1(r=6e4){const[s,d]=k.useState(!1),[c,g]=k.useState(!0),[y,w]=k.useState(null),O=k.useRef(null);return k.useEffect(()=>{let C=!1;const j=async()=>{try{const _=await r1();C||d(_)}catch(_){C||w(_)}finally{C||g(!1)}};return j(),O.current=setInterval(j,r),()=>{C=!0,O.current&&clearInterval(O.current)}},[r]),{blocked:s,loading:c,error:y}}function o1({onStart:r}){const{blocked:s}=u1();return b.jsxs("div",{className:"start-screen",children:[s&&b.jsxs("div",{className:"start-screen-banner",role:"status","aria-live":"polite",children:["Die Anmeldung ",b.jsx("strong",{children:"ohne Termin"})," ist im aktuellen Zeitraum nicht mehr möglich. Bitte wenden Sie sich direkt an unser medizinisches Fachpersonal an der Anmeldung, um Optionen für die kommenden Tage zu prüfen."]}),b.jsx("div",{className:"start-screen-body",children:b.jsx("img",{src:"/images/Emma_Start.png",alt:"Avatar",className:"avatar"})})]})}function s1(){return k.useEffect(()=>(window.__currentScreen="closed",()=>{window.__currentScreen=null}),[]),b.jsxs("div",{className:"closed-screen",children:[b.jsx("h1",{children:"Außerhalb der Öffnungszeiten"}),b.jsx("p",{children:"Das Terminal ist derzeit nicht verfügbar."})]})}function oc(){const[r,s]=k.useState(null),[d,c]=k.useState(null);return k.useEffect(()=>{let g=!1;return(async()=>{const y=await Ep();if(!g){if(typeof(y==null?void 0:y.allowed)=="boolean"){s(y.allowed),c(null);return}s(!1),c((y==null?void 0:y.error)??"Dev-Modus konnte nicht abgefragt werden.")}})(),()=>{g=!0}},[]),{allowed:r===!0,resolved:typeof r=="boolean",error:d}}var pu={exports:{}};/*!
 * 
 *   react-simple-keyboard v3.8.187
 *   https://github.com/hodgef/react-simple-keyboard
 *
 *   Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
 *
 *   This source code is licensed under the MIT license found in the
 *   LICENSE file in the root directory of this source tree.
 *
 */var c1=pu.exports,Rm;function f1(){return Rm||(Rm=1,(function(r,s){(function(d,c){r.exports=c(gu())})(c1,(function(d){return(function(){var c={981:function(){typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&(function(O){if("Element"in O){var C="classList",j="prototype",_=O.Element[j],z=Object,ne=String[j].trim||function(){return this.replace(/^\s+|\s+$/g,"")},I=Array[j].indexOf||function(ce){for(var ye=0,Me=this.length;ye<Me;ye++)if(ye in this&&this[ye]===ce)return ye;return-1},ue=function(ce,ye){this.name=ce,this.code=DOMException[ce],this.message=ye},Q=function(ce,ye){if(ye==="")throw new ue("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(ye))throw new ue("INVALID_CHARACTER_ERR","The token must not contain space characters.");return I.call(ce,ye)},Z=function(ce){for(var ye=ne.call(ce.getAttribute("class")||""),Me=ye?ye.split(/\s+/):[],Ee=0,Ue=Me.length;Ee<Ue;Ee++)this.push(Me[Ee]);this._updateClassName=function(){ce.setAttribute("class",this.toString())}},P=Z[j]=[],se=function(){return new Z(this)};if(ue[j]=Error[j],P.item=function(ce){return this[ce]||null},P.contains=function(ce){return~Q(this,ce+"")},P.add=function(){var ce,ye=arguments,Me=0,Ee=ye.length,Ue=!1;do~Q(this,ce=ye[Me]+"")||(this.push(ce),Ue=!0);while(++Me<Ee);Ue&&this._updateClassName()},P.remove=function(){var ce,ye,Me=arguments,Ee=0,Ue=Me.length,ut=!1;do for(ye=Q(this,ce=Me[Ee]+"");~ye;)this.splice(ye,1),ut=!0,ye=Q(this,ce);while(++Ee<Ue);ut&&this._updateClassName()},P.toggle=function(ce,ye){var Me=this.contains(ce),Ee=Me?ye!==!0&&"remove":ye!==!1&&"add";return Ee&&this[Ee](ce),ye===!0||ye===!1?ye:!Me},P.replace=function(ce,ye){var Me=Q(ce+"");~Me&&(this.splice(Me,1,ye),this._updateClassName())},P.toString=function(){return this.join(" ")},z.defineProperty){var ge={get:se,enumerable:!0,configurable:!0};try{z.defineProperty(_,C,ge)}catch(ce){ce.number!==void 0&&ce.number!==-2146823252||(ge.enumerable=!1,z.defineProperty(_,C,ge))}}else z[j].__defineGetter__&&_.__defineGetter__(C,se)}})(self),(function(){var O=document.createElement("_");if(O.classList.add("c1","c2"),!O.classList.contains("c2")){var C=function(_){var z=DOMTokenList.prototype[_];DOMTokenList.prototype[_]=function(ne){var I,ue=arguments.length;for(I=0;I<ue;I++)ne=arguments[I],z.call(this,ne)}};C("add"),C("remove")}if(O.classList.toggle("c3",!1),O.classList.contains("c3")){var j=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,z){return 1 in arguments&&!this.contains(_)==!z?z:j.call(this,_)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(_,z){var ne=this.toString().split(" "),I=ne.indexOf(_+"");~I&&(ne=ne.slice(I),this.remove.apply(this,ne),this.add(z),this.add.apply(this,ne.slice(1)))}),O=null})())},548:function(O){O.exports=(function(){var C={9306:function(p,E,l){var u=l(4901),f=l(6823),h=TypeError;p.exports=function(m){if(u(m))return m;throw new h(f(m)+" is not a function")}},5548:function(p,E,l){var u=l(3517),f=l(6823),h=TypeError;p.exports=function(m){if(u(m))return m;throw new h(f(m)+" is not a constructor")}},3506:function(p,E,l){var u=l(3925),f=String,h=TypeError;p.exports=function(m){if(u(m))return m;throw new h("Can't set "+f(m)+" as a prototype")}},6469:function(p,E,l){var u=l(8227),f=l(2360),h=l(4913).f,m=u("unscopables"),S=Array.prototype;S[m]===void 0&&h(S,m,{configurable:!0,value:f(null)}),p.exports=function(N){S[m][N]=!0}},7829:function(p,E,l){var u=l(8183).charAt;p.exports=function(f,h,m){return h+(m&&u(f,h).length||1)}},8551:function(p,E,l){var u=l(34),f=String,h=TypeError;p.exports=function(m){if(u(m))return m;throw new h(f(m)+" is not an object")}},235:function(p,E,l){var u=l(9213).forEach,f=l(4598)("forEach");p.exports=f?[].forEach:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}},7916:function(p,E,l){var u=l(6080),f=l(9565),h=l(8981),m=l(6319),S=l(4209),N=l(3517),x=l(6198),T=l(4659),R=l(4527),H=l(81),M=l(851),D=l(9539),K=Array;p.exports=function(q){var Y=N(this),G=arguments.length,$=G>1?arguments[1]:void 0,ie=$!==void 0;ie&&($=u($,G>2?arguments[2]:void 0));var J,pe,be,he,Oe,Ne,re=h(q),Le=M(re),Be=0;if(!Le||this===K&&S(Le))for(J=x(re),pe=Y?new this(J):K(J);J>Be;Be++)Ne=ie?$(re[Be],Be):re[Be],T(pe,Be,Ne);else for(pe=Y?new this:[],Oe=(he=H(re,Le)).next;!(be=f(Oe,he)).done;Be++){Ne=ie?m(he,$,[be.value,Be],!0):be.value;try{T(pe,Be,Ne)}catch(Te){D(he,"throw",Te)}}return R(pe,Be),pe}},9617:function(p,E,l){var u=l(5397),f=l(5610),h=l(6198),m=function(S){return function(N,x,T){var R=u(N),H=h(R);if(H===0)return!S&&-1;var M,D=f(T,H);if(S&&x!=x){for(;H>D;)if((M=R[D++])!=M)return!0}else for(;H>D;D++)if((S||D in R)&&R[D]===x)return S||D||0;return!S&&-1}};p.exports={includes:m(!0),indexOf:m(!1)}},9213:function(p,E,l){var u=l(6080),f=l(7055),h=l(8981),m=l(6198),S=l(1469),N=l(4659),x=function(T){var R=T===1,H=T===2,M=T===3,D=T===4,K=T===6,q=T===7,Y=T===5||K;return function(G,$,ie){for(var J,pe,be=h(G),he=f(be),Oe=m(he),Ne=u($,ie),re=0,Le=0,Be=R?S(G,Oe):H||q?S(G,0):void 0;Oe>re;re++)if((Y||re in he)&&(pe=Ne(J=he[re],re,be),T))if(R)N(Be,re,pe);else if(pe)switch(T){case 3:return!0;case 5:return J;case 6:return re;case 2:N(Be,Le++,J)}else switch(T){case 4:return!1;case 7:N(Be,Le++,J)}return K?-1:M||D?D:Be}};p.exports={forEach:x(0),map:x(1),filter:x(2),some:x(3),every:x(4),find:x(5),findIndex:x(6),filterReject:x(7)}},597:function(p,E,l){var u=l(9039),f=l(8227),h=l(9519),m=f("species");p.exports=function(S){return h>=51||!u((function(){var N=[];return(N.constructor={})[m]=function(){return{foo:1}},N[S](Boolean).foo!==1}))}},4598:function(p,E,l){var u=l(9039);p.exports=function(f,h){var m=[][f];return!!m&&u((function(){m.call(null,h||function(){return 1},1)}))}},926:function(p,E,l){var u=l(9306),f=l(8981),h=l(7055),m=l(6198),S=TypeError,N="Reduce of empty array with no initial value",x=function(T){return function(R,H,M,D){var K=f(R),q=h(K),Y=m(K);if(u(H),Y===0&&M<2)throw new S(N);var G=T?Y-1:0,$=T?-1:1;if(M<2)for(;;){if(G in q){D=q[G],G+=$;break}if(G+=$,T?G<0:Y<=G)throw new S(N)}for(;T?G>=0:Y>G;G+=$)G in q&&(D=H(D,q[G],G,K));return D}};p.exports={left:x(!1),right:x(!0)}},4527:function(p,E,l){var u=l(3724),f=l(4376),h=TypeError,m=Object.getOwnPropertyDescriptor,S=u&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}})();p.exports=S?function(N,x){if(f(N)&&!m(N,"length").writable)throw new h("Cannot set read only .length");return N.length=x}:function(N,x){return N.length=x}},7680:function(p,E,l){var u=l(9504);p.exports=u([].slice)},4488:function(p,E,l){var u=l(7680),f=Math.floor,h=function(m,S){var N=m.length;if(N<8)for(var x,T,R=1;R<N;){for(T=R,x=m[R];T&&S(m[T-1],x)>0;)m[T]=m[--T];T!==R++&&(m[T]=x)}else for(var H=f(N/2),M=h(u(m,0,H),S),D=h(u(m,H),S),K=M.length,q=D.length,Y=0,G=0;Y<K||G<q;)m[Y+G]=Y<K&&G<q?S(M[Y],D[G])<=0?M[Y++]:D[G++]:Y<K?M[Y++]:D[G++];return m};p.exports=h},7433:function(p,E,l){var u=l(4376),f=l(3517),h=l(34),m=l(8227)("species"),S=Array;p.exports=function(N){var x;return u(N)&&(x=N.constructor,(f(x)&&(x===S||u(x.prototype))||h(x)&&(x=x[m])===null)&&(x=void 0)),x===void 0?S:x}},1469:function(p,E,l){var u=l(7433);p.exports=function(f,h){return new(u(f))(h===0?0:h)}},6319:function(p,E,l){var u=l(8551),f=l(9539);p.exports=function(h,m,S,N){try{return N?m(u(S)[0],S[1]):m(S)}catch(x){f(h,"throw",x)}}},4428:function(p,E,l){var u=l(8227)("iterator"),f=!1;try{var h=0,m={next:function(){return{done:!!h++}},return:function(){f=!0}};m[u]=function(){return this},Array.from(m,(function(){throw 2}))}catch{}p.exports=function(S,N){try{if(!N&&!f)return!1}catch{return!1}var x=!1;try{var T={};T[u]=function(){return{next:function(){return{done:x=!0}}}},S(T)}catch{}return x}},2195:function(p,E,l){var u=l(9504),f=u({}.toString),h=u("".slice);p.exports=function(m){return h(f(m),8,-1)}},6955:function(p,E,l){var u=l(2140),f=l(4901),h=l(2195),m=l(8227)("toStringTag"),S=Object,N=h((function(){return arguments})())==="Arguments";p.exports=u?h:function(x){var T,R,H;return x===void 0?"Undefined":x===null?"Null":typeof(R=(function(M,D){try{return M[D]}catch{}})(T=S(x),m))=="string"?R:N?h(T):(H=h(T))==="Object"&&f(T.callee)?"Arguments":H}},7740:function(p,E,l){var u=l(9297),f=l(5031),h=l(7347),m=l(4913);p.exports=function(S,N,x){for(var T=f(N),R=m.f,H=h.f,M=0;M<T.length;M++){var D=T[M];u(S,D)||x&&u(x,D)||R(S,D,H(N,D))}}},1436:function(p,E,l){var u=l(8227)("match");p.exports=function(f){var h=/./;try{"/./"[f](h)}catch{try{return h[u]=!1,"/./"[f](h)}catch{}}return!1}},2211:function(p,E,l){var u=l(9039);p.exports=!u((function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype}))},2529:function(p){p.exports=function(E,l){return{value:E,done:l}}},6699:function(p,E,l){var u=l(3724),f=l(4913),h=l(6980);p.exports=u?function(m,S,N){return f.f(m,S,h(1,N))}:function(m,S,N){return m[S]=N,m}},6980:function(p){p.exports=function(E,l){return{enumerable:!(1&E),configurable:!(2&E),writable:!(4&E),value:l}}},4659:function(p,E,l){var u=l(3724),f=l(4913),h=l(6980);p.exports=function(m,S,N){u?f.f(m,S,h(0,N)):m[S]=N}},3640:function(p,E,l){var u=l(8551),f=l(4270),h=TypeError;p.exports=function(m){if(u(this),m==="string"||m==="default")m="string";else if(m!=="number")throw new h("Incorrect hint");return f(this,m)}},2106:function(p,E,l){var u=l(283),f=l(4913);p.exports=function(h,m,S){return S.get&&u(S.get,m,{getter:!0}),S.set&&u(S.set,m,{setter:!0}),f.f(h,m,S)}},6840:function(p,E,l){var u=l(4901),f=l(4913),h=l(283),m=l(9433);p.exports=function(S,N,x,T){T||(T={});var R=T.enumerable,H=T.name!==void 0?T.name:N;if(u(x)&&h(x,H,T),T.global)R?S[N]=x:m(N,x);else{try{T.unsafe?S[N]&&(R=!0):delete S[N]}catch{}R?S[N]=x:f.f(S,N,{value:x,enumerable:!1,configurable:!T.nonConfigurable,writable:!T.nonWritable})}return S}},9433:function(p,E,l){var u=l(4576),f=Object.defineProperty;p.exports=function(h,m){try{f(u,h,{value:m,configurable:!0,writable:!0})}catch{u[h]=m}return m}},4606:function(p,E,l){var u=l(6823),f=TypeError;p.exports=function(h,m){if(!delete h[m])throw new f("Cannot delete property "+u(m)+" of "+u(h))}},3724:function(p,E,l){var u=l(9039);p.exports=!u((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},4055:function(p,E,l){var u=l(4576),f=l(34),h=u.document,m=f(h)&&f(h.createElement);p.exports=function(S){return m?h.createElement(S):{}}},6837:function(p){var E=TypeError;p.exports=function(l){if(l>9007199254740991)throw new E("Maximum allowed index exceeded");return l}},7400:function(p){p.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(p,E,l){var u=l(4055)("span").classList,f=u&&u.constructor&&u.constructor.prototype;p.exports=f===Object.prototype?void 0:f},8727:function(p){p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3709:function(p,E,l){var u=l(2839).match(/firefox\/(\d+)/i);p.exports=!!u&&+u[1]},3763:function(p,E,l){var u=l(2839);p.exports=/MSIE|Trident/.test(u)},6193:function(p,E,l){var u=l(4215);p.exports=u==="NODE"},2839:function(p,E,l){var u=l(4576).navigator,f=u&&u.userAgent;p.exports=f?String(f):""},9519:function(p,E,l){var u,f,h=l(4576),m=l(2839),S=h.process,N=h.Deno,x=S&&S.versions||N&&N.version,T=x&&x.v8;T&&(f=(u=T.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!f&&m&&(!(u=m.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=m.match(/Chrome\/(\d+)/))&&(f=+u[1]),p.exports=f},3607:function(p,E,l){var u=l(2839).match(/AppleWebKit\/(\d+)\./);p.exports=!!u&&+u[1]},4215:function(p,E,l){var u=l(4576),f=l(2839),h=l(2195),m=function(S){return f.slice(0,S.length)===S};p.exports=m("Bun/")?"BUN":m("Cloudflare-Workers")?"CLOUDFLARE":m("Deno/")?"DENO":m("Node.js/")?"NODE":u.Bun&&typeof Bun.version=="string"?"BUN":u.Deno&&typeof Deno.version=="object"?"DENO":h(u.process)==="process"?"NODE":u.window&&u.document?"BROWSER":"REST"},6518:function(p,E,l){var u=l(4576),f=l(7347).f,h=l(6699),m=l(6840),S=l(9433),N=l(7740),x=l(2796);p.exports=function(T,R){var H,M,D,K,q,Y=T.target,G=T.global,$=T.stat;if(H=G?u:$?u[Y]||S(Y,{}):u[Y]&&u[Y].prototype)for(M in R){if(K=R[M],D=T.dontCallGetSet?(q=f(H,M))&&q.value:H[M],!x(G?M:Y+($?".":"#")+M,T.forced)&&D!==void 0){if(typeof K==typeof D)continue;N(K,D)}(T.sham||D&&D.sham)&&h(K,"sham",!0),m(H,M,K,T)}}},9039:function(p){p.exports=function(E){try{return!!E()}catch{return!0}}},9228:function(p,E,l){l(7495);var u=l(9565),f=l(6840),h=l(7323),m=l(9039),S=l(8227),N=l(6699),x=S("species"),T=RegExp.prototype;p.exports=function(R,H,M,D){var K=S(R),q=!m((function(){var ie={};return ie[K]=function(){return 7},""[R](ie)!==7})),Y=q&&!m((function(){var ie=!1,J=/a/;if(R==="split"){var pe={};pe[x]=function(){return J},(J={constructor:pe,flags:""})[K]=/./[K]}return J.exec=function(){return ie=!0,null},J[K](""),!ie}));if(!q||!Y||M){var G=/./[K],$=H(K,""[R],(function(ie,J,pe,be,he){var Oe=J.exec;return Oe===h||Oe===T.exec?q&&!he?{done:!0,value:u(G,J,pe,be)}:{done:!0,value:u(ie,pe,J,be)}:{done:!1}}));f(String.prototype,R,$[0]),f(T,K,$[1])}D&&N(T[K],"sham",!0)}},8745:function(p,E,l){var u=l(616),f=Function.prototype,h=f.apply,m=f.call;p.exports=typeof Reflect=="object"&&Reflect.apply||(u?m.bind(h):function(){return m.apply(h,arguments)})},6080:function(p,E,l){var u=l(7476),f=l(9306),h=l(616),m=u(u.bind);p.exports=function(S,N){return f(S),N===void 0?S:h?m(S,N):function(){return S.apply(N,arguments)}}},616:function(p,E,l){var u=l(9039);p.exports=!u((function(){var f=(function(){}).bind();return typeof f!="function"||f.hasOwnProperty("prototype")}))},566:function(p,E,l){var u=l(9504),f=l(9306),h=l(34),m=l(9297),S=l(7680),N=l(616),x=Function,T=u([].concat),R=u([].join),H={};p.exports=N?x.bind:function(M){var D=f(this),K=D.prototype,q=S(arguments,1),Y=function(){var G=T(q,S(arguments));return this instanceof Y?(function($,ie,J){if(!m(H,ie)){for(var pe=[],be=0;be<ie;be++)pe[be]="a["+be+"]";H[ie]=x("C,a","return new C("+R(pe,",")+")")}return H[ie]($,J)})(D,G.length,G):D.apply(M,G)};return h(K)&&(Y.prototype=K),Y}},9565:function(p,E,l){var u=l(616),f=Function.prototype.call;p.exports=u?f.bind(f):function(){return f.apply(f,arguments)}},350:function(p,E,l){var u=l(3724),f=l(9297),h=Function.prototype,m=u&&Object.getOwnPropertyDescriptor,S=f(h,"name"),N=S&&(function(){}).name==="something",x=S&&(!u||u&&m(h,"name").configurable);p.exports={EXISTS:S,PROPER:N,CONFIGURABLE:x}},6706:function(p,E,l){var u=l(9504),f=l(9306);p.exports=function(h,m,S){try{return u(f(Object.getOwnPropertyDescriptor(h,m)[S]))}catch{}}},7476:function(p,E,l){var u=l(2195),f=l(9504);p.exports=function(h){if(u(h)==="Function")return f(h)}},9504:function(p,E,l){var u=l(616),f=Function.prototype,h=f.call,m=u&&f.bind.bind(h,h);p.exports=u?m:function(S){return function(){return h.apply(S,arguments)}}},7751:function(p,E,l){var u=l(4576),f=l(4901);p.exports=function(h,m){return arguments.length<2?(S=u[h],f(S)?S:void 0):u[h]&&u[h][m];var S}},851:function(p,E,l){var u=l(6955),f=l(5966),h=l(4117),m=l(6269),S=l(8227)("iterator");p.exports=function(N){if(!h(N))return f(N,S)||f(N,"@@iterator")||m[u(N)]}},81:function(p,E,l){var u=l(9565),f=l(9306),h=l(8551),m=l(6823),S=l(851),N=TypeError;p.exports=function(x,T){var R=arguments.length<2?S(x):T;if(f(R))return h(u(R,x));throw new N(m(x)+" is not iterable")}},5966:function(p,E,l){var u=l(9306),f=l(4117);p.exports=function(h,m){var S=h[m];return f(S)?void 0:u(S)}},2478:function(p,E,l){var u=l(9504),f=l(8981),h=Math.floor,m=u("".charAt),S=u("".replace),N=u("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,T=/\$([$&'`]|\d{1,2})/g;p.exports=function(R,H,M,D,K,q){var Y=M+R.length,G=D.length,$=T;return K!==void 0&&(K=f(K),$=x),S(q,$,(function(ie,J){var pe;switch(m(J,0)){case"$":return"$";case"&":return R;case"`":return N(H,0,M);case"'":return N(H,Y);case"<":pe=K[N(J,1,-1)];break;default:var be=+J;if(be===0)return ie;if(be>G){var he=h(be/10);return he===0?ie:he<=G?D[he-1]===void 0?m(J,1):D[he-1]+m(J,1):ie}pe=D[be-1]}return pe===void 0?"":pe}))}},4576:function(p,E,l){var u=function(f){return f&&f.Math===Math&&f};p.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof l.g=="object"&&l.g)||u(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()},9297:function(p,E,l){var u=l(9504),f=l(8981),h=u({}.hasOwnProperty);p.exports=Object.hasOwn||function(m,S){return h(f(m),S)}},421:function(p){p.exports={}},397:function(p,E,l){var u=l(7751);p.exports=u("document","documentElement")},5917:function(p,E,l){var u=l(3724),f=l(9039),h=l(4055);p.exports=!u&&!f((function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7}))},7055:function(p,E,l){var u=l(9504),f=l(9039),h=l(2195),m=Object,S=u("".split);p.exports=f((function(){return!m("z").propertyIsEnumerable(0)}))?function(N){return h(N)==="String"?S(N,""):m(N)}:m},3167:function(p,E,l){var u=l(4901),f=l(34),h=l(2967);p.exports=function(m,S,N){var x,T;return h&&u(x=S.constructor)&&x!==N&&f(T=x.prototype)&&T!==N.prototype&&h(m,T),m}},3706:function(p,E,l){var u=l(9504),f=l(4901),h=l(7629),m=u(Function.toString);f(h.inspectSource)||(h.inspectSource=function(S){return m(S)}),p.exports=h.inspectSource},1181:function(p,E,l){var u,f,h,m=l(8622),S=l(4576),N=l(34),x=l(6699),T=l(9297),R=l(7629),H=l(6119),M=l(421),D="Object already initialized",K=S.TypeError,q=S.WeakMap;if(m||R.state){var Y=R.state||(R.state=new q);Y.get=Y.get,Y.has=Y.has,Y.set=Y.set,u=function($,ie){if(Y.has($))throw new K(D);return ie.facade=$,Y.set($,ie),ie},f=function($){return Y.get($)||{}},h=function($){return Y.has($)}}else{var G=H("state");M[G]=!0,u=function($,ie){if(T($,G))throw new K(D);return ie.facade=$,x($,G,ie),ie},f=function($){return T($,G)?$[G]:{}},h=function($){return T($,G)}}p.exports={set:u,get:f,has:h,enforce:function($){return h($)?f($):u($,{})},getterFor:function($){return function(ie){var J;if(!N(ie)||(J=f(ie)).type!==$)throw new K("Incompatible receiver, "+$+" required");return J}}}},4209:function(p,E,l){var u=l(8227),f=l(6269),h=u("iterator"),m=Array.prototype;p.exports=function(S){return S!==void 0&&(f.Array===S||m[h]===S)}},4376:function(p,E,l){var u=l(2195);p.exports=Array.isArray||function(f){return u(f)==="Array"}},4901:function(p){var E=typeof document=="object"&&document.all;p.exports=E===void 0&&E!==void 0?function(l){return typeof l=="function"||l===E}:function(l){return typeof l=="function"}},3517:function(p,E,l){var u=l(9504),f=l(9039),h=l(4901),m=l(6955),S=l(7751),N=l(3706),x=function(){},T=S("Reflect","construct"),R=/^\s*(?:class|function)\b/,H=u(R.exec),M=!R.test(x),D=function(q){if(!h(q))return!1;try{return T(x,[],q),!0}catch{return!1}},K=function(q){if(!h(q))return!1;switch(m(q)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return M||!!H(R,N(q))}catch{return!0}};K.sham=!0,p.exports=!T||f((function(){var q;return D(D.call)||!D(Object)||!D((function(){q=!0}))||q}))?K:D},2796:function(p,E,l){var u=l(9039),f=l(4901),h=/#|\.prototype\./,m=function(R,H){var M=N[S(R)];return M===T||M!==x&&(f(H)?u(H):!!H)},S=m.normalize=function(R){return String(R).replace(h,".").toLowerCase()},N=m.data={},x=m.NATIVE="N",T=m.POLYFILL="P";p.exports=m},2087:function(p,E,l){var u=l(34),f=Math.floor;p.exports=Number.isInteger||function(h){return!u(h)&&isFinite(h)&&f(h)===h}},4117:function(p){p.exports=function(E){return E==null}},34:function(p,E,l){var u=l(4901);p.exports=function(f){return typeof f=="object"?f!==null:u(f)}},3925:function(p,E,l){var u=l(34);p.exports=function(f){return u(f)||f===null}},6395:function(p){p.exports=!1},5810:function(p,E,l){var u=l(34),f=l(1181).get;p.exports=function(h){if(!u(h))return!1;var m=f(h);return!!m&&m.type==="RawJSON"}},788:function(p,E,l){var u=l(34),f=l(2195),h=l(8227)("match");p.exports=function(m){var S;return u(m)&&((S=m[h])!==void 0?!!S:f(m)==="RegExp")}},757:function(p,E,l){var u=l(7751),f=l(4901),h=l(1625),m=l(7040),S=Object;p.exports=m?function(N){return typeof N=="symbol"}:function(N){var x=u("Symbol");return f(x)&&h(x.prototype,S(N))}},9539:function(p,E,l){var u=l(9565),f=l(8551),h=l(5966);p.exports=function(m,S,N){var x,T;f(m);try{if(!(x=h(m,"return"))){if(S==="throw")throw N;return N}x=u(x,m)}catch(R){T=!0,x=R}if(S==="throw")throw N;if(T)throw x;return f(x),N}},3994:function(p,E,l){var u=l(7657).IteratorPrototype,f=l(2360),h=l(6980),m=l(687),S=l(6269),N=function(){return this};p.exports=function(x,T,R,H){var M=T+" Iterator";return x.prototype=f(u,{next:h(+!H,R)}),m(x,M,!1,!0),S[M]=N,x}},1088:function(p,E,l){var u=l(6518),f=l(9565),h=l(6395),m=l(350),S=l(4901),N=l(3994),x=l(2787),T=l(2967),R=l(687),H=l(6699),M=l(6840),D=l(8227),K=l(6269),q=l(7657),Y=m.PROPER,G=m.CONFIGURABLE,$=q.IteratorPrototype,ie=q.BUGGY_SAFARI_ITERATORS,J=D("iterator"),pe="keys",be="values",he="entries",Oe=function(){return this};p.exports=function(Ne,re,Le,Be,Te,dt,et){N(Le,re,Be);var Ze,tt,Qe,Ke=function(Je){if(Je===Te&&Ce)return Ce;if(!ie&&Je&&Je in ze)return ze[Je];switch(Je){case pe:case be:case he:return function(){return new Le(this,Je)}}return function(){return new Le(this)}},Ie=re+" Iterator",rt=!1,ze=Ne.prototype,De=ze[J]||ze["@@iterator"]||Te&&ze[Te],Ce=!ie&&De||Ke(Te),Fe=re==="Array"&&ze.entries||De;if(Fe&&(Ze=x(Fe.call(new Ne)))!==Object.prototype&&Ze.next&&(h||x(Ze)===$||(T?T(Ze,$):S(Ze[J])||M(Ze,J,Oe)),R(Ze,Ie,!0,!0),h&&(K[Ie]=Oe)),Y&&Te===be&&De&&De.name!==be&&(!h&&G?H(ze,"name",be):(rt=!0,Ce=function(){return f(De,this)})),Te)if(tt={values:Ke(be),keys:dt?Ce:Ke(pe),entries:Ke(he)},et)for(Qe in tt)(ie||rt||!(Qe in ze))&&M(ze,Qe,tt[Qe]);else u({target:re,proto:!0,forced:ie||rt},tt);return h&&!et||ze[J]===Ce||M(ze,J,Ce,{name:Te}),K[re]=Ce,tt}},7657:function(p,E,l){var u,f,h,m=l(9039),S=l(4901),N=l(34),x=l(2360),T=l(2787),R=l(6840),H=l(8227),M=l(6395),D=H("iterator"),K=!1;[].keys&&("next"in(h=[].keys())?(f=T(T(h)))!==Object.prototype&&(u=f):K=!0),!N(u)||m((function(){var q={};return u[D].call(q)!==q}))?u={}:M&&(u=x(u)),S(u[D])||R(u,D,(function(){return this})),p.exports={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:K}},6269:function(p){p.exports={}},6198:function(p,E,l){var u=l(8014);p.exports=function(f){return u(f.length)}},283:function(p,E,l){var u=l(9504),f=l(9039),h=l(4901),m=l(9297),S=l(3724),N=l(350).CONFIGURABLE,x=l(3706),T=l(1181),R=T.enforce,H=T.get,M=String,D=Object.defineProperty,K=u("".slice),q=u("".replace),Y=u([].join),G=S&&!f((function(){return D((function(){}),"length",{value:8}).length!==8})),$=String(String).split("String"),ie=p.exports=function(J,pe,be){K(M(pe),0,7)==="Symbol("&&(pe="["+q(M(pe),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),be&&be.getter&&(pe="get "+pe),be&&be.setter&&(pe="set "+pe),(!m(J,"name")||N&&J.name!==pe)&&(S?D(J,"name",{value:pe,configurable:!0}):J.name=pe),G&&be&&m(be,"arity")&&J.length!==be.arity&&D(J,"length",{value:be.arity});try{be&&m(be,"constructor")&&be.constructor?S&&D(J,"prototype",{writable:!1}):J.prototype&&(J.prototype=void 0)}catch{}var he=R(J);return m(he,"source")||(he.source=Y($,typeof pe=="string"?pe:"")),J};Function.prototype.toString=ie((function(){return h(this)&&H(this).source||x(this)}),"toString")},741:function(p){var E=Math.ceil,l=Math.floor;p.exports=Math.trunc||function(u){var f=+u;return(f>0?l:E)(f)}},7819:function(p,E,l){var u=l(9039);p.exports=!u((function(){var f="9007199254740993",h=JSON.rawJSON(f);return!JSON.isRawJSON(h)||JSON.stringify(h)!==f}))},5749:function(p,E,l){var u=l(788),f=TypeError;p.exports=function(h){if(u(h))throw new f("The method doesn't accept regular expressions");return h}},4213:function(p,E,l){var u=l(3724),f=l(9504),h=l(9565),m=l(9039),S=l(1072),N=l(3717),x=l(8773),T=l(8981),R=l(7055),H=Object.assign,M=Object.defineProperty,D=f([].concat);p.exports=!H||m((function(){if(u&&H({b:1},H(M({},"a",{enumerable:!0,get:function(){M(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var K={},q={},Y=Symbol("assign detection"),G="abcdefghijklmnopqrst";return K[Y]=7,G.split("").forEach((function($){q[$]=$})),H({},K)[Y]!==7||S(H({},q)).join("")!==G}))?function(K,q){for(var Y=T(K),G=arguments.length,$=1,ie=N.f,J=x.f;G>$;)for(var pe,be=R(arguments[$++]),he=ie?D(S(be),ie(be)):S(be),Oe=he.length,Ne=0;Oe>Ne;)pe=he[Ne++],u&&!h(J,be,pe)||(Y[pe]=be[pe]);return Y}:H},2360:function(p,E,l){var u,f=l(8551),h=l(6801),m=l(8727),S=l(421),N=l(397),x=l(4055),T=l(6119),R="prototype",H="script",M=T("IE_PROTO"),D=function(){},K=function(G){return"<"+H+">"+G+"</"+H+">"},q=function(G){G.write(K("")),G.close();var $=G.parentWindow.Object;return G=null,$},Y=function(){try{u=new ActiveXObject("htmlfile")}catch{}var G,$,ie;Y=typeof document<"u"?document.domain&&u?q(u):($=x("iframe"),ie="java"+H+":",$.style.display="none",N.appendChild($),$.src=String(ie),(G=$.contentWindow.document).open(),G.write(K("document.F=Object")),G.close(),G.F):q(u);for(var J=m.length;J--;)delete Y[R][m[J]];return Y()};S[M]=!0,p.exports=Object.create||function(G,$){var ie;return G!==null?(D[R]=f(G),ie=new D,D[R]=null,ie[M]=G):ie=Y(),$===void 0?ie:h.f(ie,$)}},6801:function(p,E,l){var u=l(3724),f=l(8686),h=l(4913),m=l(8551),S=l(5397),N=l(1072);E.f=u&&!f?Object.defineProperties:function(x,T){m(x);for(var R,H=S(T),M=N(T),D=M.length,K=0;D>K;)h.f(x,R=M[K++],H[R]);return x}},4913:function(p,E,l){var u=l(3724),f=l(5917),h=l(8686),m=l(8551),S=l(6969),N=TypeError,x=Object.defineProperty,T=Object.getOwnPropertyDescriptor,R="enumerable",H="configurable",M="writable";E.f=u?h?function(D,K,q){if(m(D),K=S(K),m(q),typeof D=="function"&&K==="prototype"&&"value"in q&&M in q&&!q[M]){var Y=T(D,K);Y&&Y[M]&&(D[K]=q.value,q={configurable:H in q?q[H]:Y[H],enumerable:R in q?q[R]:Y[R],writable:!1})}return x(D,K,q)}:x:function(D,K,q){if(m(D),K=S(K),m(q),f)try{return x(D,K,q)}catch{}if("get"in q||"set"in q)throw new N("Accessors not supported");return"value"in q&&(D[K]=q.value),D}},7347:function(p,E,l){var u=l(3724),f=l(9565),h=l(8773),m=l(6980),S=l(5397),N=l(6969),x=l(9297),T=l(5917),R=Object.getOwnPropertyDescriptor;E.f=u?R:function(H,M){if(H=S(H),M=N(M),T)try{return R(H,M)}catch{}if(x(H,M))return m(!f(h.f,H,M),H[M])}},298:function(p,E,l){var u=l(2195),f=l(5397),h=l(8480).f,m=l(7680),S=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];p.exports.f=function(N){return S&&u(N)==="Window"?(function(x){try{return h(x)}catch{return m(S)}})(N):h(f(N))}},8480:function(p,E,l){var u=l(1828),f=l(8727).concat("length","prototype");E.f=Object.getOwnPropertyNames||function(h){return u(h,f)}},3717:function(p,E){E.f=Object.getOwnPropertySymbols},2787:function(p,E,l){var u=l(9297),f=l(4901),h=l(8981),m=l(6119),S=l(2211),N=m("IE_PROTO"),x=Object,T=x.prototype;p.exports=S?x.getPrototypeOf:function(R){var H=h(R);if(u(H,N))return H[N];var M=H.constructor;return f(M)&&H instanceof M?M.prototype:H instanceof x?T:null}},1625:function(p,E,l){var u=l(9504);p.exports=u({}.isPrototypeOf)},1828:function(p,E,l){var u=l(9504),f=l(9297),h=l(5397),m=l(9617).indexOf,S=l(421),N=u([].push);p.exports=function(x,T){var R,H=h(x),M=0,D=[];for(R in H)!f(S,R)&&f(H,R)&&N(D,R);for(;T.length>M;)f(H,R=T[M++])&&(~m(D,R)||N(D,R));return D}},1072:function(p,E,l){var u=l(1828),f=l(8727);p.exports=Object.keys||function(h){return u(h,f)}},8773:function(p,E){var l={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f=u&&!l.call({1:2},1);E.f=f?function(h){var m=u(this,h);return!!m&&m.enumerable}:l},2551:function(p,E,l){var u=l(6395),f=l(4576),h=l(9039),m=l(3607);p.exports=u||!h((function(){if(!(m&&m<535)){var S=Math.random();__defineSetter__.call(null,S,(function(){})),delete f[S]}}))},2967:function(p,E,l){var u=l(6706),f=l(34),h=l(7750),m=l(3506);p.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var S,N=!1,x={};try{(S=u(Object.prototype,"__proto__","set"))(x,[]),N=x instanceof Array}catch{}return function(T,R){return h(T),m(R),f(T)&&(N?S(T,R):T.__proto__=R),T}})():void 0)},3179:function(p,E,l){var u=l(2140),f=l(6955);p.exports=u?{}.toString:function(){return"[object "+f(this)+"]"}},4270:function(p,E,l){var u=l(9565),f=l(4901),h=l(34),m=TypeError;p.exports=function(S,N){var x,T;if(N==="string"&&f(x=S.toString)&&!h(T=u(x,S))||f(x=S.valueOf)&&!h(T=u(x,S))||N!=="string"&&f(x=S.toString)&&!h(T=u(x,S)))return T;throw new m("Can't convert object to primitive value")}},5031:function(p,E,l){var u=l(7751),f=l(9504),h=l(8480),m=l(3717),S=l(8551),N=f([].concat);p.exports=u("Reflect","ownKeys")||function(x){var T=h.f(S(x)),R=m.f;return R?N(T,R(x)):T}},8235:function(p,E,l){var u=l(9504),f=l(9297),h=SyntaxError,m=parseInt,S=String.fromCharCode,N=u("".charAt),x=u("".slice),T=u(/./.exec),R={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
`,"\\r":"\r","\\t":"	"},H=/^[\da-f]{4}$/i,M=/^[\u0000-\u001F]$/;p.exports=function(D,K){for(var q=!0,Y="";K<D.length;){var G=N(D,K);if(G==="\\"){var $=x(D,K,K+2);if(f(R,$))Y+=R[$],K+=2;else{if($!=="\\u")throw new h('Unknown escape sequence: "'+$+'"');var ie=x(D,K+=2,K+4);if(!T(H,ie))throw new h("Bad Unicode escape at: "+K);Y+=S(m(ie,16)),K+=4}}else{if(G==='"'){q=!1,K++;break}if(T(M,G))throw new h("Bad control character in string literal at: "+K);Y+=G,K++}}if(q)throw new h("Unterminated string at: "+K);return{value:Y,end:K}}},9167:function(p,E,l){var u=l(4576);p.exports=u},1056:function(p,E,l){var u=l(4913).f;p.exports=function(f,h,m){m in f||u(f,m,{configurable:!0,get:function(){return h[m]},set:function(S){h[m]=S}})}},6682:function(p,E,l){var u=l(9565),f=l(8551),h=l(4901),m=l(2195),S=l(7323),N=TypeError;p.exports=function(x,T){var R=x.exec;if(h(R)){var H=u(R,x,T);return H!==null&&f(H),H}if(m(x)==="RegExp")return u(S,x,T);throw new N("RegExp#exec called on incompatible receiver")}},7323:function(p,E,l){var u,f,h=l(9565),m=l(9504),S=l(655),N=l(7979),x=l(8429),T=l(5745),R=l(2360),H=l(1181).get,M=l(3635),D=l(8814),K=T("native-string-replace",String.prototype.replace),q=RegExp.prototype.exec,Y=q,G=m("".charAt),$=m("".indexOf),ie=m("".replace),J=m("".slice),pe=(f=/b*/g,h(q,u=/a/,"a"),h(q,f,"a"),u.lastIndex!==0||f.lastIndex!==0),be=x.BROKEN_CARET,he=/()??/.exec("")[1]!==void 0,Oe=function(Ne,re){for(var Le=Ne.groups=R(null),Be=0;Be<re.length;Be++){var Te=re[Be];Le[Te[0]]=Ne[Te[1]]}};(pe||he||be||M||D)&&(Y=function(Ne){var re,Le,Be,Te=this,dt=H(Te),et=S(Ne),Ze=dt.raw;if(Ze)return Ze.lastIndex=Te.lastIndex,re=h(Y,Ze,et),Te.lastIndex=Ze.lastIndex,re&&dt.groups&&Oe(re,dt.groups),re;var tt=dt.groups,Qe=be&&Te.sticky,Ke=h(N,Te),Ie=Te.source,rt=0,ze=et;if(Qe){Ke=ie(Ke,"y",""),$(Ke,"g")===-1&&(Ke+="g"),ze=J(et,Te.lastIndex);var De=Te.lastIndex>0&&G(et,Te.lastIndex-1);Te.lastIndex>0&&(!Te.multiline||Te.multiline&&De!==`
`&&De!=="\r"&&De!=="\u2028"&&De!=="\u2029")&&(Ie="(?: (?:"+Ie+"))",ze=" "+ze,rt++),Le=new RegExp("^(?:"+Ie+")",Ke)}he&&(Le=new RegExp("^"+Ie+"$(?!\\s)",Ke)),pe&&(Be=Te.lastIndex);var Ce=h(q,Qe?Le:Te,ze);return Qe?Ce?(Ce.input=et,Ce[0]=J(Ce[0],rt),Ce.index=Te.lastIndex,Te.lastIndex+=Ce[0].length):Te.lastIndex=0:pe&&Ce&&(Te.lastIndex=Te.global?Ce.index+Ce[0].length:Be),he&&Ce&&Ce.length>1&&h(K,Ce[0],Le,(function(){for(var Fe=1;Fe<arguments.length-2;Fe++)arguments[Fe]===void 0&&(Ce[Fe]=void 0)})),Ce&&tt&&Oe(Ce,tt),Ce}),p.exports=Y},5213:function(p,E,l){var u=l(4576),f=l(9039),h=u.RegExp,m=!f((function(){var S=!0;try{h(".","d")}catch{S=!1}var N={},x="",T=S?"dgimsy":"gimsy",R=function(D,K){Object.defineProperty(N,D,{get:function(){return x+=K,!0}})},H={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var M in S&&(H.hasIndices="d"),H)R(M,H[M]);return Object.getOwnPropertyDescriptor(h.prototype,"flags").get.call(N)!==T||x!==T}));p.exports={correct:m}},7979:function(p,E,l){var u=l(8551);p.exports=function(){var f=u(this),h="";return f.hasIndices&&(h+="d"),f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),f.dotAll&&(h+="s"),f.unicode&&(h+="u"),f.unicodeSets&&(h+="v"),f.sticky&&(h+="y"),h}},1034:function(p,E,l){var u=l(9565),f=l(9297),h=l(1625),m=l(5213),S=l(7979),N=RegExp.prototype;p.exports=m.correct?function(x){return x.flags}:function(x){return m.correct||!h(N,x)||f(x,"flags")?x.flags:u(S,x)}},8429:function(p,E,l){var u=l(9039),f=l(4576).RegExp,h=u((function(){var N=f("a","y");return N.lastIndex=2,N.exec("abcd")!==null})),m=h||u((function(){return!f("a","y").sticky})),S=h||u((function(){var N=f("^r","gy");return N.lastIndex=2,N.exec("str")!==null}));p.exports={BROKEN_CARET:S,MISSED_STICKY:m,UNSUPPORTED_Y:h}},3635:function(p,E,l){var u=l(9039),f=l(4576).RegExp;p.exports=u((function(){var h=f(".","s");return!(h.dotAll&&h.test(`
`)&&h.flags==="s")}))},8814:function(p,E,l){var u=l(9039),f=l(4576).RegExp;p.exports=u((function(){var h=f("(?<a>b)","g");return h.exec("b").groups.a!=="b"||"b".replace(h,"$<a>c")!=="bc"}))},7750:function(p,E,l){var u=l(4117),f=TypeError;p.exports=function(h){if(u(h))throw new f("Can't call method on "+h);return h}},7633:function(p,E,l){var u=l(7751),f=l(2106),h=l(8227),m=l(3724),S=h("species");p.exports=function(N){var x=u(N);m&&x&&!x[S]&&f(x,S,{configurable:!0,get:function(){return this}})}},687:function(p,E,l){var u=l(4913).f,f=l(9297),h=l(8227)("toStringTag");p.exports=function(m,S,N){m&&!N&&(m=m.prototype),m&&!f(m,h)&&u(m,h,{configurable:!0,value:S})}},6119:function(p,E,l){var u=l(5745),f=l(3392),h=u("keys");p.exports=function(m){return h[m]||(h[m]=f(m))}},7629:function(p,E,l){var u=l(6395),f=l(4576),h=l(9433),m="__core-js_shared__",S=p.exports=f[m]||h(m,{});(S.versions||(S.versions=[])).push({version:"3.49.0",mode:u?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(p,E,l){var u=l(7629);p.exports=function(f,h){return u[f]||(u[f]=h||{})}},2293:function(p,E,l){var u=l(8551),f=l(5548),h=l(4117),m=l(8227)("species");p.exports=function(S,N){var x,T=u(S).constructor;return T===void 0||h(x=u(T)[m])?N:f(x)}},8183:function(p,E,l){var u=l(9504),f=l(1291),h=l(655),m=l(7750),S=u("".charAt),N=u("".charCodeAt),x=u("".slice),T=function(R){return function(H,M){var D,K,q=h(m(H)),Y=f(M),G=q.length;return Y<0||Y>=G?R?"":void 0:(D=N(q,Y))<55296||D>56319||Y+1===G||(K=N(q,Y+1))<56320||K>57343?R?S(q,Y):D:R?x(q,Y,Y+2):K-56320+(D-55296<<10)+65536}};p.exports={codeAt:T(!1),charAt:T(!0)}},706:function(p,E,l){var u=l(350).PROPER,f=l(9039),h=l(7452);p.exports=function(m){return f((function(){return!!h[m]()||"​᠎"[m]()!=="​᠎"||u&&h[m].name!==m}))}},3802:function(p,E,l){var u=l(9504),f=l(7750),h=l(655),m=l(7452),S=u("".replace),N=RegExp("^["+m+"]+"),x=RegExp("(^|[^"+m+"])["+m+"]+$"),T=function(R){return function(H){var M=h(f(H));return 1&R&&(M=S(M,N,"")),2&R&&(M=S(M,x,"$1")),M}};p.exports={start:T(1),end:T(2),trim:T(3)}},4495:function(p,E,l){var u=l(9519),f=l(9039),h=l(4576).String;p.exports=!!Object.getOwnPropertySymbols&&!f((function(){var m=Symbol("symbol detection");return!h(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&u&&u<41}))},8242:function(p,E,l){var u=l(9565),f=l(7751),h=l(8227),m=l(6840);p.exports=function(){var S=f("Symbol"),N=S&&S.prototype,x=N&&N.valueOf,T=h("toPrimitive");N&&!N[T]&&m(N,T,(function(R){return u(x,this)}),{arity:1})}},1296:function(p,E,l){var u=l(4495);p.exports=u&&!!Symbol.for&&!!Symbol.keyFor},1240:function(p,E,l){var u=l(9504);p.exports=u(1.1.valueOf)},5610:function(p,E,l){var u=l(1291),f=Math.max,h=Math.min;p.exports=function(m,S){var N=u(m);return N<0?f(N+S,0):h(N,S)}},5397:function(p,E,l){var u=l(7055),f=l(7750);p.exports=function(h){return u(f(h))}},1291:function(p,E,l){var u=l(741);p.exports=function(f){var h=+f;return h!=h||h===0?0:u(h)}},8014:function(p,E,l){var u=l(1291),f=Math.min;p.exports=function(h){var m=u(h);return m>0?f(m,9007199254740991):0}},8981:function(p,E,l){var u=l(7750),f=Object;p.exports=function(h){return f(u(h))}},2777:function(p,E,l){var u=l(9565),f=l(34),h=l(757),m=l(5966),S=l(4270),N=l(8227),x=TypeError,T=N("toPrimitive");p.exports=function(R,H){if(!f(R)||h(R))return R;var M,D=m(R,T);if(D){if(H===void 0&&(H="default"),M=u(D,R,H),!f(M)||h(M))return M;throw new x("Can't convert object to primitive value")}return H===void 0&&(H="number"),S(R,H)}},6969:function(p,E,l){var u=l(2777),f=l(757);p.exports=function(h){var m=u(h,"string");return f(m)?m:m+""}},2140:function(p,E,l){var u={};u[l(8227)("toStringTag")]="z",p.exports=String(u)==="[object z]"},655:function(p,E,l){var u=l(6955),f=String;p.exports=function(h){if(u(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return f(h)}},6823:function(p){var E=String;p.exports=function(l){try{return E(l)}catch{return"Object"}}},3392:function(p,E,l){var u=l(9504),f=0,h=Math.random(),m=u(1.1.toString);p.exports=function(S){return"Symbol("+(S===void 0?"":S)+")_"+m(++f+h,36)}},7040:function(p,E,l){var u=l(4495);p.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686:function(p,E,l){var u=l(3724),f=l(9039);p.exports=u&&f((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},8622:function(p,E,l){var u=l(4576),f=l(4901),h=u.WeakMap;p.exports=f(h)&&/native code/.test(String(h))},511:function(p,E,l){var u=l(9167),f=l(9297),h=l(1951),m=l(4913).f;p.exports=function(S){var N=u.Symbol||(u.Symbol={});f(N,S)||m(N,S,{value:h.f(S)})}},1951:function(p,E,l){var u=l(8227);E.f=u},8227:function(p,E,l){var u=l(4576),f=l(5745),h=l(9297),m=l(3392),S=l(4495),N=l(7040),x=u.Symbol,T=f("wks"),R=N?x.for||x:x&&x.withoutSetter||m;p.exports=function(H){return h(T,H)||(T[H]=S&&h(x,H)?x[H]:R("Symbol."+H)),T[H]}},7452:function(p){p.exports=`	
\v\f\r                　\u2028\u2029\uFEFF`},8706:function(p,E,l){var u=l(6518),f=l(9039),h=l(4376),m=l(34),S=l(8981),N=l(6198),x=l(6837),T=l(4659),R=l(4527),H=l(1469),M=l(597),D=l(8227),K=l(9519),q=D("isConcatSpreadable"),Y=K>=51||!f((function(){var $=[];return $[q]=!1,$.concat()[0]!==$})),G=function($){if(!m($))return!1;var ie=$[q];return ie!==void 0?!!ie:h($)};u({target:"Array",proto:!0,arity:1,forced:!Y||!M("concat")},{concat:function($){var ie,J,pe,be,he,Oe=S(this),Ne=H(Oe,0),re=0;for(ie=-1,pe=arguments.length;ie<pe;ie++)if(G(he=ie===-1?Oe:arguments[ie]))for(be=N(he),x(re+be),J=0;J<be;J++,re++)J in he&&T(Ne,re,he[J]);else x(re+1),T(Ne,re++,he);return R(Ne,re),Ne}})},2008:function(p,E,l){var u=l(6518),f=l(9213).filter;u({target:"Array",proto:!0,forced:!l(597)("filter")},{filter:function(h){return f(this,h,arguments.length>1?arguments[1]:void 0)}})},3418:function(p,E,l){var u=l(6518),f=l(7916);u({target:"Array",stat:!0,forced:!l(4428)((function(h){Array.from(h)}))},{from:f})},4423:function(p,E,l){var u=l(6518),f=l(9617).includes,h=l(9039),m=l(6469),S=h((function(){return!Array(1).includes()})),N=h((function(){return[,1].includes(void 0,1)}));u({target:"Array",proto:!0,forced:S||N},{includes:function(x){return f(this,x,arguments.length>1?arguments[1]:void 0)}}),m("includes")},5276:function(p,E,l){var u=l(6518),f=l(7476),h=l(9617).indexOf,m=l(4598),S=f([].indexOf),N=!!S&&1/S([1],1,-0)<0;u({target:"Array",proto:!0,forced:N||!m("indexOf")},{indexOf:function(x){var T=arguments.length>1?arguments[1]:void 0;return N?S(this,x,T)||0:h(this,x,T)}})},3792:function(p,E,l){var u=l(5397),f=l(6469),h=l(6269),m=l(1181),S=l(4913).f,N=l(1088),x=l(2529),T=l(6395),R=l(3724),H="Array Iterator",M=m.set,D=m.getterFor(H);p.exports=N(Array,"Array",(function(q,Y){M(this,{type:H,target:u(q),index:0,kind:Y})}),(function(){var q=D(this),Y=q.target,G=q.index++;if(!Y||G>=Y.length)return q.target=null,x(void 0,!0);switch(q.kind){case"keys":return x(G,!1);case"values":return x(Y[G],!1)}return x([G,Y[G]],!1)}),"values");var K=h.Arguments=h.Array;if(f("keys"),f("values"),f("entries"),!T&&R&&K.name!=="values")try{S(K,"name",{value:"values"})}catch{}},8598:function(p,E,l){var u=l(6518),f=l(9504),h=l(7055),m=l(5397),S=l(4598),N=f([].join);u({target:"Array",proto:!0,forced:h!==Object||!S("join",",")},{join:function(x){return N(m(this),x===void 0?",":x)}})},2062:function(p,E,l){var u=l(6518),f=l(9213).map;u({target:"Array",proto:!0,forced:!l(597)("map")},{map:function(h){return f(this,h,arguments.length>1?arguments[1]:void 0)}})},2712:function(p,E,l){var u=l(6518),f=l(926).left,h=l(4598),m=l(9519);u({target:"Array",proto:!0,forced:!l(6193)&&m>79&&m<83||!h("reduce")},{reduce:function(S){var N=arguments.length;return f(this,S,N,N>1?arguments[1]:void 0)}})},4782:function(p,E,l){var u=l(6518),f=l(4376),h=l(3517),m=l(34),S=l(5610),N=l(6198),x=l(5397),T=l(4659),R=l(4527),H=l(8227),M=l(597),D=l(7680),K=M("slice"),q=H("species"),Y=Array,G=Math.max;u({target:"Array",proto:!0,forced:!K},{slice:function($,ie){var J,pe,be,he=x(this),Oe=N(he),Ne=S($,Oe),re=S(ie===void 0?Oe:ie,Oe);if(f(he)&&(J=he.constructor,(h(J)&&(J===Y||f(J.prototype))||m(J)&&(J=J[q])===null)&&(J=void 0),J===Y||J===void 0))return D(he,Ne,re);for(pe=new(J===void 0?Y:J)(G(re-Ne,0)),be=0;Ne<re;Ne++,be++)Ne in he&&T(pe,be,he[Ne]);return R(pe,be),pe}})},6910:function(p,E,l){var u=l(6518),f=l(9504),h=l(9306),m=l(8981),S=l(6198),N=l(4606),x=l(655),T=l(9039),R=l(4488),H=l(4598),M=l(3709),D=l(3763),K=l(9519),q=l(3607),Y=[],G=f(Y.sort),$=f(Y.push),ie=T((function(){Y.sort(void 0)})),J=T((function(){Y.sort(null)})),pe=H("sort"),be=!T((function(){if(K)return K<70;if(!(M&&M>3)){if(D)return!0;if(q)return q<603;var he,Oe,Ne,re,Le="";for(he=65;he<76;he++){switch(Oe=String.fromCharCode(he),he){case 66:case 69:case 70:case 72:Ne=3;break;case 68:case 71:Ne=4;break;default:Ne=2}for(re=0;re<47;re++)Y.push({k:Oe+re,v:Ne})}for(Y.sort((function(Be,Te){return Te.v-Be.v})),re=0;re<Y.length;re++)Oe=Y[re].k.charAt(0),Le.charAt(Le.length-1)!==Oe&&(Le+=Oe);return Le!=="DGBEFHACIJK"}}));u({target:"Array",proto:!0,forced:ie||!J||!pe||!be},{sort:function(he){he!==void 0&&h(he);var Oe=m(this);if(be)return he===void 0?G(Oe):G(Oe,he);var Ne,re,Le=[],Be=S(Oe);for(re=0;re<Be;re++)re in Oe&&$(Le,Oe[re]);for(R(Le,(function(Te){return function(dt,et){if(et===void 0)return-1;if(dt===void 0)return 1;if(Te!==void 0)return+Te(dt,et)||0;var Ze=x(dt),tt=x(et);return Ze===tt?0:Ze>tt?1:-1}})(he)),Ne=S(Le),re=0;re<Ne;)Oe[re]=Le[re++];for(;re<Be;)N(Oe,re++);return Oe}})},4554:function(p,E,l){var u=l(6518),f=l(8981),h=l(5610),m=l(1291),S=l(6198),N=l(4527),x=l(6837),T=l(1469),R=l(4659),H=l(4606),M=l(597)("splice"),D=Math.max,K=Math.min;u({target:"Array",proto:!0,forced:!M},{splice:function(q,Y){var G,$,ie,J,pe,be,he=f(this),Oe=S(he),Ne=h(q,Oe),re=arguments.length;for(re===0?G=$=0:re===1?(G=0,$=Oe-Ne):(G=re-2,$=K(D(m(Y),0),Oe-Ne)),x(Oe+G-$),ie=T(he,$),J=0;J<$;J++)(pe=Ne+J)in he&&R(ie,J,he[pe]);if(N(ie,$),G<$){for(J=Ne;J<Oe-$;J++)be=J+G,(pe=J+$)in he?he[be]=he[pe]:H(he,be);for(J=Oe;J>Oe-$+G;J--)H(he,J-1)}else if(G>$)for(J=Oe-$;J>Ne;J--)be=J+G-1,(pe=J+$-1)in he?he[be]=he[pe]:H(he,be);for(J=0;J<G;J++)he[J+Ne]=arguments[J+2];return N(he,Oe-$+G),ie}})},739:function(p,E,l){var u=l(6518),f=l(9039),h=l(8981),m=l(2777);u({target:"Date",proto:!0,arity:1,forced:f((function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1}))},{toJSON:function(S){var N=h(this),x=m(N,"number");return typeof x!="number"||isFinite(x)?N.toISOString():null}})},9572:function(p,E,l){var u=l(9297),f=l(6840),h=l(3640),m=l(8227)("toPrimitive"),S=Date.prototype;u(S,m)||f(S,m,h)},2010:function(p,E,l){var u=l(3724),f=l(350).EXISTS,h=l(9504),m=l(2106),S=Function.prototype,N=h(S.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,T=h(x.exec);u&&!f&&m(S,"name",{configurable:!0,get:function(){try{return T(x,N(this))[1]}catch{return""}}})},3110:function(p,E,l){var u=l(6518),f=l(7751),h=l(8745),m=l(9565),S=l(9504),N=l(9039),x=l(4376),T=l(4901),R=l(5810),H=l(757),M=l(2195),D=l(655),K=l(7680),q=l(8235),Y=l(3392),G=l(4495),$=l(7819),ie=String,J=f("JSON","stringify"),pe=S(/./.exec),be=S("".charAt),he=S("".charCodeAt),Oe=S("".replace),Ne=S("".slice),re=S([].push),Le=S(1.1.toString),Be=/[\uD800-\uDFFF]/g,Te=/^[\uD800-\uDBFF]$/,dt=/^[\uDC00-\uDFFF]$/,et=Y(),Ze=et.length,tt=!G||N((function(){var ze=f("Symbol")("stringify detection");return J([ze])!=="[null]"||J({a:ze})!=="{}"||J(Object(ze))!=="{}"})),Qe=N((function(){return J("\uDF06\uD834")!=='"\\udf06\\ud834"'||J("\uDEAD")!=='"\\udead"'})),Ke=tt?function(ze,De){var Ce=K(arguments),Fe=rt(De);if(T(Fe)||ze!==void 0&&!H(ze))return Ce[1]=function(Je,at){if(T(Fe)&&(at=m(Fe,this,ie(Je),at)),!H(at))return at},h(J,null,Ce)}:J,Ie=function(ze,De,Ce){var Fe=be(Ce,De-1),Je=be(Ce,De+1);return pe(Te,ze)&&!pe(dt,Je)||pe(dt,ze)&&!pe(Te,Fe)?"\\u"+Le(he(ze,0),16):ze},rt=function(ze){if(T(ze))return ze;if(x(ze)){for(var De=ze.length,Ce=[],Fe=0;Fe<De;Fe++){var Je=ze[Fe];typeof Je=="string"?re(Ce,Je):typeof Je!="number"&&M(Je)!=="Number"&&M(Je)!=="String"||re(Ce,D(Je))}var at=Ce.length,jt=!0;return function(Gt,wt){if(jt)return jt=!1,wt;if(x(this))return wt;for(var Ft=0;Ft<at;Ft++)if(Ce[Ft]===Gt)return wt}}};J&&u({target:"JSON",stat:!0,arity:3,forced:tt||Qe||!$},{stringify:function(ze,De,Ce){var Fe=rt(De),Je=[],at=Ke(ze,(function(tn,zt){var pt=T(Fe)?m(Fe,this,ie(tn),zt):zt;return!$&&R(pt)?et+(re(Je,pt.rawJSON)-1):pt}),Ce);if(typeof at!="string"||(Qe&&(at=Oe(at,Be,Ie)),$))return at;for(var jt="",Gt=at.length,wt=0;wt<Gt;wt++){var Ft=be(at,wt);if(Ft==='"'){var Ht=q(at,++wt).end-1,qt=Ne(at,wt,Ht);jt+=Ne(qt,0,Ze)===et?Je[Ne(qt,Ze)]:'"'+qt+'"',wt=Ht}else jt+=Ft}return jt}})},2892:function(p,E,l){var u=l(6518),f=l(6395),h=l(3724),m=l(4576),S=l(9167),N=l(9504),x=l(2796),T=l(9297),R=l(3167),H=l(1625),M=l(757),D=l(2777),K=l(9039),q=l(8480).f,Y=l(7347).f,G=l(4913).f,$=l(1240),ie=l(3802).trim,J="Number",pe=m[J],be=S[J],he=pe.prototype,Oe=m.TypeError,Ne=N("".slice),re=N("".charCodeAt),Le=function(et){var Ze,tt,Qe,Ke,Ie,rt,ze,De,Ce=D(et,"number");if(M(Ce))throw new Oe("Cannot convert a Symbol value to a number");if(typeof Ce=="string"&&Ce.length>2){if(Ce=ie(Ce),(Ze=re(Ce,0))===43||Ze===45){if((tt=re(Ce,2))===88||tt===120)return NaN}else if(Ze===48){switch(re(Ce,1)){case 66:case 98:Qe=2,Ke=49;break;case 79:case 111:Qe=8,Ke=55;break;default:return+Ce}for(rt=(Ie=Ne(Ce,2)).length,ze=0;ze<rt;ze++)if((De=re(Ie,ze))<48||De>Ke)return NaN;return parseInt(Ie,Qe)}}return+Ce},Be=x(J,!pe(" 0o1")||!pe("0b1")||pe("+0x1")),Te=function(et){var Ze,tt=arguments.length<1?0:pe((function(Qe){var Ke=D(Qe,"number");return typeof Ke=="bigint"?Ke:Le(Ke)})(et));return H(he,Ze=this)&&K((function(){$(Ze)}))?R(Object(tt),this,Te):tt};Te.prototype=he,Be&&!f&&(he.constructor=Te),u({global:!0,constructor:!0,wrap:!0,forced:Be},{Number:Te});var dt=function(et,Ze){for(var tt,Qe=h?q(Ze):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ke=0;Qe.length>Ke;Ke++)T(Ze,tt=Qe[Ke])&&!T(et,tt)&&G(et,tt,Y(Ze,tt))};f&&be&&dt(S[J],be),(Be||f)&&dt(S[J],pe)},2637:function(p,E,l){l(6518)({target:"Number",stat:!0},{isInteger:l(2087)})},9085:function(p,E,l){var u=l(6518),f=l(4213);u({target:"Object",stat:!0,arity:2,forced:Object.assign!==f},{assign:f})},7427:function(p,E,l){var u=l(6518),f=l(3724),h=l(2551),m=l(9306),S=l(8981),N=l(4913);f&&u({target:"Object",proto:!0,forced:h},{__defineGetter__:function(x,T){N.f(S(this),x,{get:m(T),enumerable:!0,configurable:!0})}})},3851:function(p,E,l){var u=l(6518),f=l(9039),h=l(5397),m=l(7347).f,S=l(3724);u({target:"Object",stat:!0,forced:!S||f((function(){m(1)})),sham:!S},{getOwnPropertyDescriptor:function(N,x){return m(h(N),x)}})},1278:function(p,E,l){var u=l(6518),f=l(3724),h=l(5031),m=l(5397),S=l(7347),N=l(4659);u({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(x){for(var T,R,H=m(x),M=S.f,D=h(H),K={},q=0;D.length>q;)(R=M(H,T=D[q++]))!==void 0&&N(K,T,R);return K}})},1480:function(p,E,l){var u=l(6518),f=l(9039),h=l(298).f;u({target:"Object",stat:!0,forced:f((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:h})},9773:function(p,E,l){var u=l(6518),f=l(4495),h=l(9039),m=l(3717),S=l(8981);u({target:"Object",stat:!0,forced:!f||h((function(){m.f(1)}))},{getOwnPropertySymbols:function(N){var x=m.f;return x?x(S(N)):[]}})},9432:function(p,E,l){var u=l(6518),f=l(8981),h=l(1072);u({target:"Object",stat:!0,forced:l(9039)((function(){h(1)}))},{keys:function(m){return h(f(m))}})},6099:function(p,E,l){var u=l(2140),f=l(6840),h=l(3179);u||f(Object.prototype,"toString",h,{unsafe:!0})},825:function(p,E,l){var u=l(6518),f=l(7751),h=l(8745),m=l(566),S=l(5548),N=l(8551),x=l(34),T=l(2360),R=l(9039),H=f("Reflect","construct"),M=Object.prototype,D=[].push,K=R((function(){function G(){}return!(H((function(){}),[],G)instanceof G)})),q=!R((function(){H((function(){}))})),Y=K||q;u({target:"Reflect",stat:!0,forced:Y,sham:Y},{construct:function(G,$){S(G);var ie=arguments.length<3?G:S(arguments[2]);if(N($),q&&!K)return H(G,$,ie);if(G===ie){switch($.length){case 0:return new G;case 1:return new G($[0]);case 2:return new G($[0],$[1]);case 3:return new G($[0],$[1],$[2]);case 4:return new G($[0],$[1],$[2],$[3])}var J=[null];return h(D,J,$),new(h(m,G,J))}var pe=ie.prototype,be=T(x(pe)?pe:M),he=h(G,be,$);return x(he)?he:be}})},4864:function(p,E,l){var u=l(3724),f=l(4576),h=l(9504),m=l(2796),S=l(3167),N=l(6699),x=l(2360),T=l(8480).f,R=l(1625),H=l(788),M=l(655),D=l(1034),K=l(8429),q=l(1056),Y=l(6840),G=l(9039),$=l(9297),ie=l(1181).enforce,J=l(7633),pe=l(8227),be=l(3635),he=l(8814),Oe=pe("match"),Ne=f.RegExp,re=Ne.prototype,Le=f.SyntaxError,Be=h(re.exec),Te=h("".charAt),dt=h("".replace),et=h("".indexOf),Ze=h("".slice),tt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Qe=/a/g,Ke=/a/g,Ie=new Ne(Qe)!==Qe,rt=K.MISSED_STICKY,ze=K.UNSUPPORTED_Y;if(m("RegExp",u&&(!Ie||rt||be||he||G((function(){return Ke[Oe]=!1,Ne(Qe)!==Qe||Ne(Ke)===Ke||String(Ne(Qe,"i"))!=="/a/i"}))))){for(var De=function(Je,at){var jt,Gt,wt,Ft,Ht,qt,tn=R(re,this),zt=H(Je),pt=at===void 0,Ct=[],cn=Je;if(!tn&&zt&&pt&&Je.constructor===De)return Je;if((zt||R(re,Je))&&(Je=Je.source,pt&&(at=D(cn))),Je=Je===void 0?"":M(Je),at=at===void 0?"":M(at),cn=Je,be&&"dotAll"in Qe&&(Gt=!!at&&et(at,"s")>-1)&&(at=dt(at,/s/g,"")),jt=at,rt&&"sticky"in Qe&&(wt=!!at&&et(at,"y")>-1)&&ze&&(at=dt(at,/y/g,"")),he&&(Ft=(function(Mt){for(var Kt,na=Mt.length,B=0,oe="",ke=[],Pe=x(null),it=!1,Qt=!1,on=0,Tt="";B<na;B++){if((Kt=Te(Mt,B))==="\\"){if(Kt+=Te(Mt,++B),!Qt&&Te(Kt,1)==="\\"){oe+="\\x5c";continue}}else if(Kt==="]")it=!1;else if(!it)switch(!0){case Kt==="[":it=!0;break;case Kt==="(":oe+=Kt,Be(tt,Ze(Mt,B+1))?(B+=2,Qt=!0,on++):Te(Mt,B+1)!=="?"&&on++;continue;case(Kt===">"&&Qt):if(Tt===""||$(Pe,Tt))throw new Le("Invalid capture group name");Pe[Tt]=!0,ke[ke.length]=[Tt,on],Qt=!1,Tt="";continue}Qt?Tt+=Kt:oe+=Kt}for(var Qn=0;Qn<ke.length;Qn++)for(var Ea="\\k<"+ke[Qn][0]+">",We="\\"+ke[Qn][1];et(oe,Ea)>-1;)oe=dt(oe,Ea,We);return[oe,ke]})(Je),Je=Ft[0],Ct=Ft[1]),Ht=S(Ne(Je,at),tn?this:re,De),(Gt||wt||Ct.length)&&(qt=ie(Ht),Gt&&(qt.dotAll=!0,qt.raw=De((function(Mt){for(var Kt,na=Mt.length,B=0,oe="",ke=!1;B<na;B++)(Kt=Te(Mt,B))!=="\\"?ke||Kt!=="."?(Kt==="["?ke=!0:Kt==="]"&&(ke=!1),oe+=Kt):oe+="[\\s\\S]":oe+=Kt+Te(Mt,++B);return oe})(Je),jt)),wt&&(qt.sticky=!0),Ct.length&&(qt.groups=Ct)),Je!==cn)try{N(Ht,"source",cn===""?"(?:)":cn)}catch{}return Ht},Ce=T(Ne),Fe=0;Ce.length>Fe;)q(De,Ne,Ce[Fe++]);re.constructor=De,De.prototype=re,Y(f,"RegExp",De,{constructor:!0})}J("RegExp")},7495:function(p,E,l){var u=l(6518),f=l(7323);u({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},8781:function(p,E,l){var u=l(350).PROPER,f=l(6840),h=l(8551),m=l(655),S=l(9039),N=l(1034),x="toString",T=RegExp.prototype,R=T[x],H=S((function(){return R.call({source:"a",flags:"b"})!=="/a/b"})),M=u&&R.name!==x;(H||M)&&f(T,x,(function(){var D=h(this);return"/"+m(D.source)+"/"+m(N(D))}),{unsafe:!0})},1699:function(p,E,l){var u=l(6518),f=l(9504),h=l(5749),m=l(7750),S=l(655),N=l(1436),x=f("".indexOf);u({target:"String",proto:!0,forced:!N("includes")},{includes:function(T){return!!~x(S(m(this)),S(h(T)),arguments.length>1?arguments[1]:void 0)}})},7764:function(p,E,l){var u=l(8183).charAt,f=l(655),h=l(1181),m=l(1088),S=l(2529),N="String Iterator",x=h.set,T=h.getterFor(N);m(String,"String",(function(R){x(this,{type:N,string:f(R),index:0})}),(function(){var R,H=T(this),M=H.string,D=H.index;return D>=M.length?S(void 0,!0):(R=u(M,D),H.index+=R.length,S(R,!1))}))},8543:function(p,E,l){var u=l(6518),f=l(9565),h=l(7476),m=l(3994),S=l(2529),N=l(7750),x=l(8014),T=l(655),R=l(8551),H=l(34),M=l(2195),D=l(788),K=l(1034),q=l(5966),Y=l(6840),G=l(9039),$=l(8227),ie=l(2293),J=l(7829),pe=l(6682),be=l(1181),he=l(6395),Oe=$("matchAll"),Ne="RegExp String",re=Ne+" Iterator",Le=be.set,Be=be.getterFor(re),Te=RegExp.prototype,dt=TypeError,et=h("".indexOf),Ze=h("".matchAll),tt=!!Ze&&!G((function(){Ze("a",/./)})),Qe=m((function(Ie,rt,ze,De){Le(this,{type:re,regexp:Ie,string:rt,global:ze,unicode:De,done:!1})}),Ne,(function(){var Ie=Be(this);if(Ie.done)return S(void 0,!0);var rt=Ie.regexp,ze=Ie.string,De=pe(rt,ze);return De===null?(Ie.done=!0,S(void 0,!0)):Ie.global?(T(De[0])===""&&(rt.lastIndex=J(ze,x(rt.lastIndex),Ie.unicode)),S(De,!1)):(Ie.done=!0,S(De,!1))})),Ke=function(Ie){var rt,ze,De,Ce=R(this),Fe=T(Ie),Je=ie(Ce,RegExp),at=T(K(Ce));return rt=new Je(Je===RegExp?Ce.source:Ce,at),ze=!!~et(at,"g"),De=!!~et(at,"u")||!!~et(at,"v"),rt.lastIndex=x(Ce.lastIndex),new Qe(rt,Fe,ze,De)};u({target:"String",proto:!0,forced:tt},{matchAll:function(Ie){var rt,ze,De,Ce,Fe=N(this);if(H(Ie)){if(D(Ie)&&(rt=T(N(K(Ie))),!~et(rt,"g")))throw new dt("`.matchAll` does not allow non-global regexes");if(tt)return Ze(Fe,Ie);if((De=q(Ie,Oe))===void 0&&he&&M(Ie)==="RegExp"&&(De=Ke),De)return f(De,Ie,Fe)}else if(tt)return Ze(Fe,Ie);return ze=T(Fe),Ce=new RegExp(Ie,"g"),he?f(Ke,Ce,ze):Ce[Oe](ze)}}),he||Oe in Te||Y(Te,Oe,Ke)},1761:function(p,E,l){var u=l(9565),f=l(9504),h=l(9228),m=l(8551),S=l(34),N=l(8014),x=l(655),T=l(7750),R=l(5966),H=l(7829),M=l(1034),D=l(6682),K=f("".indexOf);h("match",(function(q,Y,G){return[function($){var ie=T(this),J=S($)?R($,q):void 0;return J?u(J,$,ie):new RegExp($)[q](x(ie))},function($){var ie=m(this),J=x($),pe=G(Y,ie,J);if(pe.done)return pe.value;var be=x(M(ie));if(!~K(be,"g"))return D(ie,J);var he=!!~K(be,"u")||!!~K(be,"v");ie.lastIndex=0;for(var Oe,Ne=[],re=0;(Oe=D(ie,J))!==null;){var Le=x(Oe[0]);Ne[re]=Le,Le===""&&(ie.lastIndex=H(J,N(ie.lastIndex),he)),re++}return re===0?null:Ne}]}))},5440:function(p,E,l){var u=l(8745),f=l(9565),h=l(9504),m=l(9228),S=l(9039),N=l(8551),x=l(4901),T=l(34),R=l(1291),H=l(8014),M=l(655),D=l(7750),K=l(7829),q=l(5966),Y=l(2478),G=l(1034),$=l(6682),ie=l(8227)("replace"),J=Math.max,pe=Math.min,be=h([].concat),he=h([].push),Oe=h("".indexOf),Ne=h("".slice),re="a".replace(/./,"$0")==="$0",Le=!!/./[ie]&&/./[ie]("a","$0")==="";m("replace",(function(Be,Te,dt){var et=Le?"$":"$0";return[function(Ze,tt){var Qe=D(this),Ke=T(Ze)?q(Ze,ie):void 0;return Ke?f(Ke,Ze,Qe,tt):f(Te,M(Qe),Ze,tt)},function(Ze,tt){var Qe=N(this),Ke=M(Ze),Ie=x(tt);Ie||(tt=M(tt));var rt=M(G(Qe));if(typeof tt=="string"&&!~Oe(tt,et)&&!~Oe(tt,"$<")&&!~Oe(rt,"y")){var ze=dt(Te,Qe,Ke,tt);if(ze.done)return ze.value}var De,Ce=!!~Oe(rt,"g");Ce&&(De=!!~Oe(rt,"u")||!!~Oe(rt,"v"),Qe.lastIndex=0);for(var Fe,Je=[];(Fe=$(Qe,Ke))!==null&&(he(Je,Fe),Ce);)M(Fe[0])===""&&(Qe.lastIndex=K(Ke,H(Qe.lastIndex),De));for(var at,jt="",Gt=0,wt=0;wt<Je.length;wt++){for(var Ft,Ht=M((Fe=Je[wt])[0]),qt=J(pe(R(Fe.index),Ke.length),0),tn=[],zt=1;zt<Fe.length;zt++)he(tn,(at=Fe[zt])===void 0?at:String(at));var pt=Fe.groups;if(Ie){var Ct=be([Ht],tn,qt,Ke);pt!==void 0&&he(Ct,pt),Ft=M(u(tt,void 0,Ct))}else Ft=Y(Ht,Ke,qt,tn,pt,tt);qt>=Gt&&(jt+=Ne(Ke,Gt,qt)+Ft,Gt=qt+Ht.length)}return jt+Ne(Ke,Gt)}]}),!!S((function(){var Be=/./;return Be.exec=function(){var Te=[];return Te.groups={a:"7"},Te},"".replace(Be,"$<a>")!=="7"}))||!re||Le)},744:function(p,E,l){var u=l(9565),f=l(9504),h=l(9228),m=l(8551),S=l(34),N=l(7750),x=l(2293),T=l(7829),R=l(8014),H=l(655),M=l(5966),D=l(1034),K=l(6682),q=l(8429),Y=l(9039),G=q.UNSUPPORTED_Y,$=Math.min,ie=f([].push),J=f("".slice),pe=f("".indexOf),be=!Y((function(){var Oe=/(?:)/,Ne=Oe.exec;Oe.exec=function(){return Ne.apply(this,arguments)};var re="ab".split(Oe);return re.length!==2||re[0]!=="a"||re[1]!=="b"})),he="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;h("split",(function(Oe,Ne,re){var Le="0".split(void 0,0).length?function(Be,Te){return Be===void 0&&Te===0?[]:u(Ne,this,Be,Te)}:Ne;return[function(Be,Te){var dt=N(this),et=S(Be)?M(Be,Oe):void 0;return et?u(et,Be,dt,Te):u(Le,H(dt),Be,Te)},function(Be,Te){var dt=m(this),et=H(Be);if(!he){var Ze=re(Le,dt,et,Te,Le!==Ne);if(Ze.done)return Ze.value}var tt=x(dt,RegExp),Qe=H(D(dt)),Ke=!!~pe(Qe,"u")||!!~pe(Qe,"v");G?~pe(Qe,"g")||(Qe+="g"):~pe(Qe,"y")||(Qe+="y");var Ie=new tt(G?"^(?:"+dt.source+")":dt,Qe),rt=Te===void 0?4294967295:Te>>>0;if(rt===0)return[];if(et.length===0)return K(Ie,et)===null?[et]:[];for(var ze=0,De=0,Ce=[];De<et.length;){Ie.lastIndex=G?0:De;var Fe,Je=K(Ie,G?J(et,De):et);if(Je===null||(Fe=$(R(Ie.lastIndex+(G?De:0)),et.length))===ze)De=T(et,De,Ke);else{if(ie(Ce,J(et,ze,De)),Ce.length===rt)return Ce;for(var at=1;at<=Je.length-1;at++)if(ie(Ce,Je[at]),Ce.length===rt)return Ce;De=ze=Fe}}return ie(Ce,J(et,ze)),Ce}]}),he||!be,G)},2762:function(p,E,l){var u=l(6518),f=l(3802).trim;u({target:"String",proto:!0,forced:l(706)("trim")},{trim:function(){return f(this)}})},6761:function(p,E,l){var u=l(6518),f=l(4576),h=l(9565),m=l(9504),S=l(6395),N=l(3724),x=l(4495),T=l(9039),R=l(9297),H=l(1625),M=l(8551),D=l(5397),K=l(6969),q=l(655),Y=l(6980),G=l(2360),$=l(1072),ie=l(8480),J=l(298),pe=l(3717),be=l(7347),he=l(4913),Oe=l(6801),Ne=l(8773),re=l(6840),Le=l(2106),Be=l(5745),Te=l(6119),dt=l(421),et=l(3392),Ze=l(8227),tt=l(1951),Qe=l(511),Ke=l(8242),Ie=l(687),rt=l(1181),ze=l(9213).forEach,De=Te("hidden"),Ce="Symbol",Fe="prototype",Je=rt.set,at=rt.getterFor(Ce),jt=Object[Fe],Gt=f.Symbol,wt=Gt&&Gt[Fe],Ft=f.RangeError,Ht=f.TypeError,qt=f.QObject,tn=be.f,zt=he.f,pt=J.f,Ct=Ne.f,cn=m([].push),Mt=Be("symbols"),Kt=Be("op-symbols"),na=Be("wks"),B=!qt||!qt[Fe]||!qt[Fe].findChild,oe=function(We,st,vt){var xt=tn(jt,st);return xt&&delete jt[st],zt(We,st,vt),xt&&We!==jt&&zt(jt,st,xt),We},ke=N&&T((function(){return G(zt({},"a",{get:function(){return zt(this,"a",{value:7}).a}})).a!==7}))?oe:zt,Pe=function(We,st){var vt=Mt[We]=G(wt);return Je(vt,{type:Ce,tag:We,description:st}),N||(vt.description=st),vt},it=function(We,st,vt){We===jt&&it(Kt,st,vt),M(We);var xt=K(st);return M(vt),R(Mt,xt)?(("enumerable"in vt?!vt.enumerable:!R(We,xt)||R(We,De)&&We[De][xt])?(R(We,De)||zt(We,De,Y(1,G(null))),We[De][xt]=!0):(R(We,De)&&We[De][xt]&&(We[De][xt]=!1),vt=G(vt,{enumerable:Y(0,!1)})),ke(We,xt,vt)):zt(We,xt,vt)},Qt=function(We,st){M(We);var vt=D(st),xt=$(vt).concat(Ea(vt));return ze(xt,(function(It){N&&!h(on,vt,It)||it(We,It,vt[It])})),We},on=function(We){var st=K(We),vt=h(Ct,this,st);return!(this===jt&&R(Mt,st)&&!R(Kt,st))&&(!(vt||!R(this,st)||!R(Mt,st)||R(this,De)&&this[De][st])||vt)},Tt=function(We,st){var vt=D(We),xt=K(st);if(vt!==jt||!R(Mt,xt)||R(Kt,xt)){var It=tn(vt,xt);return!It||!R(Mt,xt)||R(vt,De)&&vt[De][xt]||(It.enumerable=!0),It}},Qn=function(We){var st=pt(D(We)),vt=[];return ze(st,(function(xt){R(Mt,xt)||R(dt,xt)||cn(vt,xt)})),vt},Ea=function(We){var st=We===jt,vt=pt(st?Kt:D(We)),xt=[];return ze(vt,(function(It){!R(Mt,It)||st&&!R(jt,It)||cn(xt,Mt[It])})),xt};x||(Gt=function(){if(H(wt,this))throw new Ht("Symbol is not a constructor");var We=arguments.length&&arguments[0]!==void 0?q(arguments[0]):void 0,st=et(We),vt=function(xt){var It=this===void 0?f:this;It===jt&&h(vt,Kt,xt),R(It,De)&&R(It[De],st)&&(It[De][st]=!1);var Wi=Y(1,xt);try{ke(It,st,Wi)}catch(Za){if(!(Za instanceof Ft))throw Za;oe(It,st,Wi)}};return N&&B&&ke(jt,st,{configurable:!0,set:vt}),Pe(st,We)},re(wt=Gt[Fe],"toString",(function(){return at(this).tag})),re(Gt,"withoutSetter",(function(We){return Pe(et(We),We)})),Ne.f=on,he.f=it,Oe.f=Qt,be.f=Tt,ie.f=J.f=Qn,pe.f=Ea,tt.f=function(We){return Pe(Ze(We),We)},N&&(Le(wt,"description",{configurable:!0,get:function(){return at(this).description}}),S||re(jt,"propertyIsEnumerable",on,{unsafe:!0}))),u({global:!0,constructor:!0,wrap:!0,forced:!x,sham:!x},{Symbol:Gt}),ze($(na),(function(We){Qe(We)})),u({target:Ce,stat:!0,forced:!x},{useSetter:function(){B=!0},useSimple:function(){B=!1}}),u({target:"Object",stat:!0,forced:!x,sham:!N},{create:function(We,st){return st===void 0?G(We):Qt(G(We),st)},defineProperty:it,defineProperties:Qt,getOwnPropertyDescriptor:Tt}),u({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:Qn}),Ke(),Ie(Gt,Ce),dt[De]=!0},9463:function(p,E,l){var u=l(6518),f=l(3724),h=l(4576),m=l(9565),S=l(9504),N=l(9297),x=l(4901),T=l(1625),R=l(655),H=l(2106),M=l(7740),D=h.Symbol,K=D&&D.prototype;if(f&&x(D)&&(!("description"in K)||D().description!==void 0)){var q={},Y=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:R(arguments[0]),Ne=T(K,this)?new D(Oe):Oe===void 0?D():D(Oe);return Oe===""&&(q[Ne]=!0),Ne};M(Y,D);var G=Y.for;Y.for=function(Oe){var Ne=R(Oe),re=m(G,this,Ne);return Ne===""&&(q[re]=!0),re},Y.prototype=K,K.constructor=Y;var $=String(D("description detection"))==="Symbol(description detection)",ie=S(K.valueOf),J=S(K.toString),pe=/^Symbol\((.*)\)[^)]+$/,be=S("".replace),he=S("".slice);H(K,"description",{configurable:!0,get:function(){var Oe=ie(this);if(N(q,Oe))return"";var Ne=J(Oe),re=$?he(Ne,7,-1):be(Ne,pe,"$1");return re===""?void 0:re}}),u({global:!0,constructor:!0,forced:!0},{Symbol:Y})}},1510:function(p,E,l){var u=l(6518),f=l(7751),h=l(9297),m=l(655),S=l(5745),N=l(1296),x=S("string-to-symbol-registry"),T=S("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!N},{for:function(R){var H=m(R);if(h(x,H))return x[H];var M=f("Symbol")(H);return x[H]=M,T[M]=H,M}})},2259:function(p,E,l){l(511)("iterator")},2675:function(p,E,l){l(6761),l(1510),l(7812),l(3110),l(9773)},7812:function(p,E,l){var u=l(6518),f=l(9297),h=l(757),m=l(6823),S=l(5745),N=l(1296),x=S("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!N},{keyFor:function(T){if(!h(T))throw new TypeError(m(T)+" is not a symbol");if(f(x,T))return x[T]}})},5700:function(p,E,l){var u=l(511),f=l(8242);u("toPrimitive"),f()},8344:function(p,E,l){l(8543)},3500:function(p,E,l){var u=l(4576),f=l(7400),h=l(9296),m=l(235),S=l(6699),N=function(T){if(T&&T.forEach!==m)try{S(T,"forEach",m)}catch{T.forEach=m}};for(var x in f)f[x]&&N(u[x]&&u[x].prototype);N(h)},2953:function(p,E,l){var u=l(4576),f=l(7400),h=l(9296),m=l(3792),S=l(6699),N=l(687),x=l(8227)("iterator"),T=m.values,R=function(M,D){if(M){if(M[x]!==T)try{S(M,x,T)}catch{M[x]=T}if(N(M,D,!0),f[D]){for(var K in m)if(M[K]!==m[K])try{S(M,K,m[K])}catch{M[K]=m[K]}}}};for(var H in f)R(u[H]&&u[H].prototype,H);R(h,"DOMTokenList")}},j={};function _(p){var E=j[p];if(E!==void 0)return E.exports;var l=j[p]={exports:{}};return C[p].call(l.exports,l,l.exports,_),l.exports}_.d=function(p,E){for(var l in E)_.o(E,l)&&!_.o(p,l)&&Object.defineProperty(p,l,{enumerable:!0,get:E[l]})},_.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),_.o=function(p,E){return Object.prototype.hasOwnProperty.call(p,E)},_.r=function(p){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})};var z={};function ne(p){return(function(E){if(Array.isArray(E))return ue(E)})(p)||(function(E){if(typeof Symbol<"u"&&E[Symbol.iterator]!=null||E["@@iterator"]!=null)return Array.from(E)})(p)||I(p)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function I(p,E){if(p){if(typeof p=="string")return ue(p,E);var l={}.toString.call(p).slice(8,-1);return l==="Object"&&p.constructor&&(l=p.constructor.name),l==="Map"||l==="Set"?Array.from(p):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?ue(p,E):void 0}}function ue(p,E){(E==null||E>p.length)&&(E=p.length);for(var l=0,u=Array(E);l<E;l++)u[l]=p[l];return u}function Q(p){return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Q(p)}function Z(p,E){for(var l=0;l<E.length;l++){var u=E[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,se(u.key),u)}}function P(p,E,l){return(E=se(E))in p?Object.defineProperty(p,E,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[E]=l,p}function se(p){var E=(function(l,u){if(Q(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var h=f.call(l,u);if(Q(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)})(p,"string");return Q(E)=="symbol"?E:E+""}_.r(z),_.d(z,{SimpleKeyboard:function(){return xe},default:function(){return Xe}}),_(5276),_(8598),_(4782),_(4554),_(2010),_(7427),_(6099),_(7495),_(8781),_(5440),_(744),_(2762),typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&(function(p){if("Element"in p){var E="classList",l="prototype",u=p.Element[l],f=Object,h=String[l].trim||function(){return this.replace(/^\s+|\s+$/g,"")},m=Array[l].indexOf||function(M){for(var D=0,K=this.length;D<K;D++)if(D in this&&this[D]===M)return D;return-1},S=function(M,D){this.name=M,this.code=DOMException[M],this.message=D},N=function(M,D){if(D==="")throw new S("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(D))throw new S("INVALID_CHARACTER_ERR","The token must not contain space characters.");return m.call(M,D)},x=function(M){for(var D=h.call(M.getAttribute("class")||""),K=D?D.split(/\s+/):[],q=0,Y=K.length;q<Y;q++)this.push(K[q]);this._updateClassName=function(){M.setAttribute("class",this.toString())}},T=x[l]=[],R=function(){return new x(this)};if(S[l]=Error[l],T.item=function(M){return this[M]||null},T.contains=function(M){return~N(this,M+"")},T.add=function(){var M,D=arguments,K=0,q=D.length,Y=!1;do~N(this,M=D[K]+"")||(this.push(M),Y=!0);while(++K<q);Y&&this._updateClassName()},T.remove=function(){var M,D,K=arguments,q=0,Y=K.length,G=!1;do for(D=N(this,M=K[q]+"");~D;)this.splice(D,1),G=!0,D=N(this,M);while(++q<Y);G&&this._updateClassName()},T.toggle=function(M,D){var K=this.contains(M),q=K?D!==!0&&"remove":D!==!1&&"add";return q&&this[q](M),D===!0||D===!1?D:!K},T.replace=function(M,D){var K=N(M+"");~K&&(this.splice(K,1,D),this._updateClassName())},T.toString=function(){return this.join(" ")},f.defineProperty){var H={get:R,enumerable:!0,configurable:!0};try{f.defineProperty(u,E,H)}catch(M){M.number!==void 0&&M.number!==-2146823252||(H.enumerable=!1,f.defineProperty(u,E,H))}}else f[l].__defineGetter__&&u.__defineGetter__(E,R)}})(self),(function(){var p=document.createElement("_");if(p.classList.add("c1","c2"),!p.classList.contains("c2")){var E=function(u){var f=DOMTokenList.prototype[u];DOMTokenList.prototype[u]=function(h){var m,S=arguments.length;for(m=0;m<S;m++)h=arguments[m],f.call(this,h)}};E("add"),E("remove")}if(p.classList.toggle("c3",!1),p.classList.contains("c3")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,f){return 1 in arguments&&!this.contains(u)==!f?f:l.call(this,u)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(u,f){var h=this.toString().split(" "),m=h.indexOf(u+"");~m&&(h=h.slice(m),this.remove.apply(this,h),this.add(f),this.add.apply(this,h.slice(1)))}),p=null})()),_(2675),_(9463),_(2259),_(5700),_(8706),_(2008),_(3418),_(4423),_(3792),_(2062),_(6910),_(739),_(9572),_(2892),_(9085),_(3851),_(1278),_(9432),_(4864),_(1699),_(7764),_(8344),_(3500),_(2953),_(2712),_(2637),_(1480),_(825),_(1761);var ge=(function(){return p=function u(f){var h=f.getOptions,m=f.getCaretPosition,S=f.getCaretPositionEnd,N=f.dispatch;(function(x,T){if(!(x instanceof T))throw new TypeError("Cannot call a class as a function")})(this,u),P(this,"getOptions",void 0),P(this,"getCaretPosition",void 0),P(this,"getCaretPositionEnd",void 0),P(this,"dispatch",void 0),P(this,"maxLengthReached",void 0),P(this,"isStandardButton",(function(x){return x&&!(x[0]==="{"&&x[x.length-1]==="}")})),this.getOptions=h,this.getCaretPosition=m,this.getCaretPositionEnd=S,this.dispatch=N,u.bindMethods(u,this)},E=[{key:"getButtonType",value:function(u){return u.includes("{")&&u.includes("}")&&u!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(u){var f=this.getButtonType(u),h=u.replace("{","").replace("}",""),m="";return f!=="standardBtn"&&(m=" hg-button-".concat(h)),"hg-".concat(f).concat(m)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(u,f){return(f=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),f):f||this.getDefaultDiplay())[u]||u}},{key:"getUpdatedInput",value:function(u,f,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,S=arguments.length>4&&arguments[4]!==void 0&&arguments[4],N=this.getOptions(),x=[h,m,S],T=f;return(u==="{bksp}"||u==="{backspace}")&&T.length>0?T=this.removeAt.apply(this,[T].concat(x)):(u==="{delete}"||u==="{forwarddelete}")&&T.length>0?T=this.removeForwardsAt.apply(this,[T].concat(x)):u==="{space}"?T=this.addStringAt.apply(this,[T," "].concat(x)):u!=="{tab}"||typeof N.tabCharOnTab=="boolean"&&N.tabCharOnTab===!1?u!=="{enter}"&&u!=="{numpadenter}"||!N.newLineOnEnter?u.includes("numpad")&&Number.isInteger(Number(u[u.length-2]))?T=this.addStringAt.apply(this,[T,u[u.length-2]].concat(x)):u==="{numpaddivide}"?T=this.addStringAt.apply(this,[T,"/"].concat(x)):u==="{numpadmultiply}"?T=this.addStringAt.apply(this,[T,"*"].concat(x)):u==="{numpadsubtract}"?T=this.addStringAt.apply(this,[T,"-"].concat(x)):u==="{numpadadd}"?T=this.addStringAt.apply(this,[T,"+"].concat(x)):u==="{numpaddecimal}"?T=this.addStringAt.apply(this,[T,"."].concat(x)):u==="{"||u==="}"?T=this.addStringAt.apply(this,[T,u].concat(x)):u.includes("{")||u.includes("}")||(T=this.addStringAt.apply(this,[T,u].concat(x))):T=this.addStringAt.apply(this,[T,`
`].concat(x)):T=this.addStringAt.apply(this,[T,"	"].concat(x)),N.debug&&console.log("Input will be: "+T),T}},{key:"updateCaretPos",value:function(u){var f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],h=this.updateCaretPosAction(u,f);this.dispatch((function(m){m.setCaretPosition(h)}))}},{key:"updateCaretPosAction",value:function(u){var f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],h=this.getOptions(),m=this.getCaretPosition();return m!=null&&(f?m>0&&(m-=u):m+=u),h.debug&&console.log("Caret at:",m),m}},{key:"addStringAt",value:function(u,f){var h,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.length,S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u.length,N=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return m||m===0?(h=[u.slice(0,m),f,u.slice(S)].join(""),this.isMaxLengthReached()||N&&this.updateCaretPos(f.length)):h=u+f,h}},{key:"removeAt",value:function(u){var f,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.length,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.length,S=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(h===0&&m===0)return u;if(h===m){var N=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;h&&h>=0?u.substring(h-2,h).match(N)?(f=u.substr(0,h-2)+u.substr(h),S&&this.updateCaretPos(2,!0)):(f=u.substr(0,h-1)+u.substr(h),S&&this.updateCaretPos(1,!0)):u.slice(-2).match(N)?(f=u.slice(0,-2),S&&this.updateCaretPos(2,!0)):(f=u.slice(0,-1),S&&this.updateCaretPos(1,!0))}else f=u.slice(0,h)+u.slice(m),S&&this.dispatch((function(x){x.setCaretPosition(h)}));return f}},{key:"removeForwardsAt",value:function(u){var f,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.length,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.length,S=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return u!=null&&u.length&&h!==null?(h===m?f=u.substring(h,h+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?u.substr(0,h)+u.substr(h+2):u.substr(0,h)+u.substr(h+1):(f=u.slice(0,h)+u.slice(m),S&&this.dispatch((function(N){N.setCaretPosition(h)}))),f):u}},{key:"handleMaxLength",value:function(u,f){var h=this.getOptions(),m=h.maxLength,S=u[h.inputName||"default"],N=f.length-1>=m;if(f.length<=S.length)return!1;if(Number.isInteger(m))return h.debug&&console.log("maxLength (num) reached:",N),N?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(Q(m)==="object"){var x=f.length-1>=m[h.inputName||"default"];return h.debug&&console.log("maxLength (obj) reached:",x),x?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return!!this.maxLengthReached}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(u){return u?u.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(f,h){return h.length?f+h[0].toUpperCase()+h.slice(1):f})):""}},{key:"chunkArray",value:function(u,f){return ne(Array(Math.ceil(u.length/f))).map((function(h,m){return u.slice(f*m,f+f*m)}))}},{key:"escapeRegex",value:function(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(u,f){var h=u,m=f.indexOf("‫");return m<u&&m!=-1&&h--,f.indexOf("‬")<u&&m!=-1&&h--,h<0?0:h}},{key:"isConstructor",value:function(u){try{Reflect.construct(String,[],u)}catch{return!1}return!0}}],l=[{key:"bindMethods",value:function(u,f){var h,m=(function(N,x){var T=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!T){if(Array.isArray(N)||(T=I(N))||x){T&&(N=T);var R=0,H=function(){};return{s:H,n:function(){return R>=N.length?{done:!0}:{done:!1,value:N[R++]}},e:function(q){throw q},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,D=!0,K=!1;return{s:function(){T=T.call(N)},n:function(){var q=T.next();return D=q.done,q},e:function(q){K=!0,M=q},f:function(){try{D||T.return==null||T.return()}finally{if(K)throw M}}}})(Object.getOwnPropertyNames(u.prototype));try{for(m.s();!(h=m.n()).done;){var S=h.value;S==="constructor"||S==="bindMethods"||(f[S]=f[S].bind(f))}}catch(N){m.e(N)}finally{m.f()}}}],E&&Z(p.prototype,E),l&&Z(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p;var p,E,l})();P(ge,"noop",(function(){}));var ce=ge;function ye(p){return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},ye(p)}function Me(p,E){for(var l=0;l<E.length;l++){var u=E[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,Ue(u.key),u)}}function Ee(p,E,l){return(E=Ue(E))in p?Object.defineProperty(p,E,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[E]=l,p}function Ue(p){var E=(function(l,u){if(ye(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var h=f.call(l,u);if(ye(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)})(p,"string");return ye(E)=="symbol"?E:E+""}var ut=(function(){return p=function u(f){var h=this,m=f.dispatch,S=f.getOptions;(function(N,x){if(!(N instanceof x))throw new TypeError("Cannot call a class as a function")})(this,u),Ee(this,"getOptions",void 0),Ee(this,"dispatch",void 0),Ee(this,"isModifierKey",(function(N){return N.altKey||N.ctrlKey||N.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(N.code||N.key||h.keyCodeToKey(N==null?void 0:N.keyCode))})),this.dispatch=m,this.getOptions=S,ce.bindMethods(u,this)},E=[{key:"handleHighlightKeyDown",value:function(u){var f=this.getOptions();f.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(u)&&(u.preventDefault(),u.stopImmediatePropagation());var h=this.getSimpleKeyboardLayoutKey(u);this.dispatch((function(m){var S,N,x=m.getButtonElement(h),T=m.getButtonElement("{".concat(h,"}"));if(x)S=x,N=h;else{if(!T)return;S=T,N="{".concat(h,"}")}var R,H,M,D,K=function(Y){Y.style.background=f.physicalKeyboardHighlightBgColor||"#dadce4",Y.style.color=f.physicalKeyboardHighlightTextColor||"black"};if(S)if(Array.isArray(S)){if(S.forEach((function(Y){return K(Y)})),f.physicalKeyboardHighlightPress)if(f.physicalKeyboardHighlightPressUsePointerEvents)(R=S[0])===null||R===void 0||(H=R.onpointerdown)===null||H===void 0||H.call(R,u);else if(f.physicalKeyboardHighlightPressUseClick){var q;(q=S[0])===null||q===void 0||q.click()}else m.handleButtonClicked(N,u)}else K(S),f.physicalKeyboardHighlightPress&&(f.physicalKeyboardHighlightPressUsePointerEvents?(M=S)===null||M===void 0||(D=M.onpointerdown)===null||D===void 0||D.call(M,u):f.physicalKeyboardHighlightPressUseClick?S.click():m.handleButtonClicked(N,u))}))}},{key:"handleHighlightKeyUp",value:function(u){var f=this.getOptions();f.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(u)&&(u.preventDefault(),u.stopImmediatePropagation());var h=this.getSimpleKeyboardLayoutKey(u);this.dispatch((function(m){var S,N,x,T=m.getButtonElement(h)||m.getButtonElement("{".concat(h,"}")),R=function(H){H.removeAttribute&&H.removeAttribute("style")};T&&(Array.isArray(T)?(T.forEach((function(H){return R(H)})),f.physicalKeyboardHighlightPressUsePointerEvents&&((S=T[0])===null||S===void 0||(N=S.onpointerup)===null||N===void 0||N.call(S,u))):(R(T),f.physicalKeyboardHighlightPressUsePointerEvents&&(T==null||(x=T.onpointerup)===null||x===void 0||x.call(T,u))))}))}},{key:"getSimpleKeyboardLayoutKey",value:function(u){var f,h="",m=u.code||u.key||this.keyCodeToKey(u==null?void 0:u.keyCode);return(h=m!=null&&m.includes("Numpad")||m!=null&&m.includes("Shift")||m!=null&&m.includes("Space")||m!=null&&m.includes("Backspace")||m!=null&&m.includes("Control")||m!=null&&m.includes("Alt")||m!=null&&m.includes("Meta")?u.code||"":u.key||this.keyCodeToKey(u==null?void 0:u.keyCode)||"").length>1?(f=h)===null||f===void 0?void 0:f.toLowerCase():h}},{key:"keyCodeToKey",value:function(u){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",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",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[u]||""}}],E&&Me(p.prototype,E),l&&Me(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p;var p,E,l})();function je(p){return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},je(p)}function _e(p,E){for(var l=0;l<E.length;l++){var u=E[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,Re(u.key),u)}}function Se(p,E,l){return(E=Re(E))in p?Object.defineProperty(p,E,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[E]=l,p}function Re(p){var E=(function(l,u){if(je(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var h=f.call(l,u);if(je(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)})(p,"string");return je(E)=="symbol"?E:E+""}var Ye=(function(){return p=function u(f){var h=f.utilities,m=f.options;(function(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")})(this,u),Se(this,"utilities",void 0),Se(this,"options",void 0),Se(this,"candidateBoxElement",void 0),Se(this,"pageIndex",0),Se(this,"pageSize",void 0),this.utilities=h,this.options=m,ce.bindMethods(u,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},E=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(u){var f=this,h=u.candidateValue,m=u.targetElement,S=u.onSelect;if(h&&h.length){var N=this.utilities.chunkArray(h.split(" "),this.pageSize);this.renderPage({candidateListPages:N,targetElement:m,pageIndex:this.pageIndex,nbPages:N.length,onItemSelected:function(x,T){S(x,T),f.destroy()}})}}},{key:"renderPage",value:function(u){var f,h=this,m=u.candidateListPages,S=u.targetElement,N=u.pageIndex,x=u.nbPages,T=u.onItemSelected;(f=this.candidateBoxElement)===null||f===void 0||f.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var R=document.createElement("ul");R.className="hg-candidate-box-list",m[N].forEach((function(G){var $,ie=document.createElement("li"),J=function(){var pe=new(h.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(pe,"target",{value:ie}),pe};ie.className="hg-candidate-box-list-item",ie.innerHTML=(($=h.options.display)===null||$===void 0?void 0:$[G])||G,h.options.useTouchEvents?ie.ontouchstart=function(pe){return T(G,pe||J())}:ie.onclick=function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J();return T(G,pe)},R.appendChild(ie)}));var H=N>0,M=document.createElement("div");M.classList.add("hg-candidate-box-prev"),H&&M.classList.add("hg-candidate-box-btn-active");var D=function(){H&&h.renderPage({candidateListPages:m,targetElement:S,pageIndex:N-1,nbPages:x,onItemSelected:T})};this.options.useTouchEvents?M.ontouchstart=D:M.onclick=D,this.candidateBoxElement.appendChild(M),this.candidateBoxElement.appendChild(R);var K=N<x-1,q=document.createElement("div");q.classList.add("hg-candidate-box-next"),K&&q.classList.add("hg-candidate-box-btn-active");var Y=function(){K&&h.renderPage({candidateListPages:m,targetElement:S,pageIndex:N+1,nbPages:x,onItemSelected:T})};this.options.useTouchEvents?q.ontouchstart=Y:q.onclick=Y,this.candidateBoxElement.appendChild(q),S.prepend(this.candidateBoxElement)}}],E&&_e(p.prototype,E),l&&_e(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p;var p,E,l})(),$e=Ye;function ae(p){return(function(E){if(Array.isArray(E))return we(E)})(p)||(function(E){if(typeof Symbol<"u"&&E[Symbol.iterator]!=null||E["@@iterator"]!=null)return Array.from(E)})(p)||(function(E,l){if(E){if(typeof E=="string")return we(E,l);var u={}.toString.call(E).slice(8,-1);return u==="Object"&&E.constructor&&(u=E.constructor.name),u==="Map"||u==="Set"?Array.from(E):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?we(E,l):void 0}})(p)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function we(p,E){(E==null||E>p.length)&&(E=p.length);for(var l=0,u=Array(E);l<E;l++)u[l]=p[l];return u}function Ge(p){return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Ge(p)}function mt(p,E){var l=Object.keys(p);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(p);E&&(u=u.filter((function(f){return Object.getOwnPropertyDescriptor(p,f).enumerable}))),l.push.apply(l,u)}return l}function ct(p,E){for(var l=0;l<E.length;l++){var u=E[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,de(u.key),u)}}function U(p,E,l){return(E=de(E))in p?Object.defineProperty(p,E,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[E]=l,p}function de(p){var E=(function(l,u){if(Ge(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var h=f.call(l,u);if(Ge(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)})(p,"string");return Ge(E)=="symbol"?E:E+""}var Ae=(function(){return p=function u(f,h){var m=this;if((function(D,K){if(!(D instanceof K))throw new TypeError("Cannot call a class as a function")})(this,u),U(this,"input",void 0),U(this,"options",void 0),U(this,"utilities",void 0),U(this,"caretPosition",void 0),U(this,"caretPositionEnd",void 0),U(this,"keyboardDOM",void 0),U(this,"keyboardPluginClasses",void 0),U(this,"keyboardDOMClass",void 0),U(this,"buttonElements",void 0),U(this,"currentInstanceName",void 0),U(this,"allKeyboardInstances",void 0),U(this,"keyboardInstanceNames",void 0),U(this,"isFirstKeyboardInstance",void 0),U(this,"physicalKeyboard",void 0),U(this,"modules",void 0),U(this,"activeButtonClass",void 0),U(this,"holdInteractionTimeout",void 0),U(this,"holdTimeout",void 0),U(this,"isMouseHold",void 0),U(this,"initialized",void 0),U(this,"candidateBox",void 0),U(this,"keyboardRowsDOM",void 0),U(this,"defaultName","default"),U(this,"activeInputElement",null),U(this,"handleParams",(function(D,K){var q,Y,G;if(typeof D=="string")q=D.split(".").join(""),Y=document.querySelector(".".concat(q)),G=K;else if(D instanceof HTMLDivElement){if(!D.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");q=D.className.split(" ")[0],Y=D,G=K}else q="simple-keyboard",Y=document.querySelector(".".concat(q)),G=D;return{keyboardDOMClass:q,keyboardDOM:Y,options:G}})),U(this,"getOptions",(function(){return m.options})),U(this,"getCaretPosition",(function(){return m.caretPosition})),U(this,"getCaretPositionEnd",(function(){return m.caretPositionEnd})),U(this,"registerModule",(function(D,K){m.modules[D]||(m.modules[D]={}),K(m.modules[D])})),U(this,"getKeyboardClassString",(function(){for(var D=arguments.length,K=new Array(D),q=0;q<D;q++)K[q]=arguments[q];return[m.keyboardDOMClass].concat(K).filter((function(Y){return!!Y})).join(" ")})),typeof window<"u"){var S=this.handleParams(f,h),N=S.keyboardDOMClass,x=S.keyboardDOM,T=S.options,R=T===void 0?{}:T;this.utilities=new ce({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=x,this.options=(function(D){for(var K=1;K<arguments.length;K++){var q=arguments[K]!=null?arguments[K]:{};K%2?mt(Object(q),!0).forEach((function(Y){U(D,Y,q[Y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(q)):mt(Object(q)).forEach((function(Y){Object.defineProperty(D,Y,Object.getOwnPropertyDescriptor(q,Y))}))}return D})({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},R),this.keyboardPluginClasses="",ce.bindMethods(u,this);var H=this.options.inputName,M=H===void 0?this.defaultName:H;if(this.input={},this.input[M]="",this.keyboardDOMClass=N,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new ut({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new $e({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(N,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},E=[{key:"setCaretPosition",value:function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u;this.caretPosition=u,this.caretPositionEnd=f}},{key:"getInputCandidates",value:function(u){var f=this,h=this.options,m=h.layoutCandidates,S=h.layoutCandidatesCaseSensitiveMatch;if(!m||Ge(m)!=="object")return{};var N=Object.keys(m).filter((function(R){var H=u.substring(0,f.getCaretPositionEnd()||0)||u,M=new RegExp("".concat(f.utilities.escapeRegex(R),"$"),S?"g":"gi");return!!ae(H.matchAll(M)).length}));if(N.length>1){var x=N.sort((function(R,H){return H.length-R.length}))[0];return{candidateKey:x,candidateValue:m[x]}}if(N.length){var T=N[0];return{candidateKey:T,candidateValue:m[T]}}return{}}},{key:"showCandidatesBox",value:function(u,f,h){var m=this;this.candidateBox&&this.candidateBox.show({candidateValue:f,targetElement:h,onSelect:function(S,N){var x=m.options,T=x.layoutCandidatesCaseSensitiveMatch,R=x.disableCandidateNormalization,H=x.enableLayoutCandidatesKeyPress,M=S;R||(M=S.normalize("NFD")),typeof m.options.beforeInputUpdate=="function"&&m.options.beforeInputUpdate(m);var D=m.getInput(m.options.inputName,!0),K=m.getCaretPositionEnd()||0,q=D.substring(0,K||0)||D,Y=new RegExp("".concat(m.utilities.escapeRegex(u),"$"),T?"g":"gi"),G=q.replace(Y,M),$=D.replace(q,G),ie=G.length-q.length,J=(K||D.length)+ie;J<0&&(J=0),m.setInput($,m.options.inputName,!0),m.setCaretPosition(J),H&&typeof m.options.onKeyPress=="function"&&m.options.onKeyPress(S,N),typeof m.options.onChange=="function"&&m.options.onChange(m.getInput(m.options.inputName,!0),N),typeof m.options.onChangeAll=="function"&&m.options.onChangeAll(m.getAllInputs(),N)}})}},{key:"handleButtonClicked",value:function(u,f){var h=this.options,m=h.inputName,S=m===void 0?this.defaultName:m,N=h.debug;if(u!=="{//}"){this.input[S]||(this.input[S]=""),typeof this.options.beforeInputUpdate=="function"&&this.options.beforeInputUpdate(this);var x=this.utilities.getUpdatedInput(u,this.input[S],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(u)&&this.activeInputElement&&this.input[S]&&this.input[S]===x&&this.caretPosition===0&&this.caretPositionEnd===x.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(u,f);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(u,f),this.input[S]!==x&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(x))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,x))return;var T=this.utilities.getUpdatedInput(u,this.input[S],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(T,this.options.inputName,!0),N&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),f==null?void 0:f.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),f),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),f),f!=null&&f.target&&this.options.enableLayoutCandidates){var R,H=this.getInputCandidates(x),M=H.candidateKey,D=H.candidateValue;M&&D?this.showCandidatesBox(M,D,this.keyboardDOM):(R=this.candidateBox)===null||R===void 0||R.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),N&&console.log("Key pressed:",u)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(u){this.options.syncInstanceInputs?this.dispatch((function(f){f.isMouseHold=u})):this.isMouseHold=u}},{key:"handleButtonMouseDown",value:function(u,f){var h=this;f&&(this.options.preventMouseDownDefault&&f.preventDefault(),this.options.stopMouseDownPropagation&&f.stopPropagation(),f.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout((function(){(h.getMouseHold()&&(!u.includes("{")&&!u.includes("}")||u==="{delete}"||u==="{backspace}"||u==="{bksp}"||u==="{space}"||u==="{tab}")||u==="{arrowright}"||u==="{arrowleft}"||u==="{arrowup}"||u==="{arrowdown}")&&(h.options.debug&&console.log("Button held:",u),h.handleButtonHold(u)),clearTimeout(h.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(u,f){var h=this;f&&(this.options.preventMouseUpDefault&&f.preventDefault&&f.preventDefault(),this.options.stopMouseUpPropagation&&f.stopPropagation&&f.stopPropagation(),!(f.target===this.keyboardDOM||f.target&&this.keyboardDOM.contains(f.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(f.target===this.candidateBox.candidateBoxElement||f.target&&this.candidateBox.candidateBoxElement.contains(f.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(m){m.classList.remove(h.activeButtonClass)})),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),u&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(u,f)}},{key:"handleKeyboardContainerMouseDown",value:function(u){this.options.preventMouseDownDefault&&u.preventDefault()}},{key:"handleButtonHold",value:function(u){var f=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){f.getMouseHold()?(f.handleButtonClicked(u),f.handleButtonHold(u)):clearTimeout(f.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var u=this;this.dispatch((function(f){f.replaceInput(u.input),f.setCaretPosition(u.caretPosition,u.caretPositionEnd)}))}},{key:"clearInput",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[u]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,f=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!f&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[u].replace("‫","").replace("‬","")+"‬":this.input[u]}},{key:"getAllInputs",value:function(){var u=this,f={};return Object.keys(this.input).forEach((function(h){f[h]=u.getInput(h,!0)})),f}},{key:"setInput",value:function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,h=arguments.length>2?arguments[2]:void 0;this.input[f]=u,!h&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(u){this.input=u}},{key:"setOptions",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=this.changedOptions(u);this.options=Object.assign(this.options,u),f.length&&(this.options.debug&&console.log("changedOptions",f),this.onSetOptions(f),this.render())}},{key:"changedOptions",value:function(u){var f=this;return Object.keys(u).filter((function(h){return JSON.stringify(u[h])!==JSON.stringify(f.options[h])}))}},{key:"onSetOptions",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(u.includes("layoutCandidatesPageSize")||u.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new $e({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(u){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach((function(f){u(window.SimpleKeyboardInstances[f],f)}))}},{key:"addButtonTheme",value:function(u,f){var h=this;f&&u&&(u.split(" ").forEach((function(m){f.split(" ").forEach((function(S){h.options.buttonTheme||(h.options.buttonTheme=[]);var N=!1;h.options.buttonTheme.map((function(x){if(x!=null&&x.class.split(" ").includes(S)){N=!0;var T=x.buttons.split(" ");T.includes(m)||(N=!0,T.push(m),x.buttons=T.join(" "))}return x})),N||h.options.buttonTheme.push({class:S,buttons:u})}))})),this.render())}},{key:"removeButtonTheme",value:function(u,f){var h=this;if(!u&&!f)return this.options.buttonTheme=[],void this.render();u&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(u.split(" ").forEach((function(m){var S;(S=h.options)===null||S===void 0||(S=S.buttonTheme)===null||S===void 0||S.map((function(N,x){if(N&&f&&f.includes(N.class)||!f){var T,R,H=(T=N)===null||T===void 0?void 0:T.buttons.split(" ").filter((function(M){return M!==m}));N&&H!=null&&H.length?N.buttons=H.join(" "):((R=h.options.buttonTheme)===null||R===void 0||R.splice(x,1),N=null)}return N}))})),this.render())}},{key:"getButtonElement",value:function(u){var f,h=this.buttonElements[u];return h&&(f=h.length>1?h:h[0]),f}},{key:"inputPatternIsValid",value:function(u){var f,h=this.options.inputPattern;if((f=h instanceof RegExp?h:h[this.options.inputName||this.defaultName])&&u){var m=f.test(u);return this.options.debug&&console.log('inputPattern ("'.concat(f,'"): ').concat(m?"passed":"did not pass!")),m}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var u=this.options.physicalKeyboardHighlightPreventDefault,f=u!==void 0&&u;document.addEventListener("keyup",this.handleKeyUp,f),document.addEventListener("keydown",this.handleKeyDown,f),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(u){this.caretEventHandler(u),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(u)}},{key:"handleKeyDown",value:function(u){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(u)}},{key:"handleMouseUp",value:function(u){this.caretEventHandler(u)}},{key:"handleTouchEnd",value:function(u){this.caretEventHandler(u)}},{key:"handleSelect",value:function(u){this.caretEventHandler(u)}},{key:"handleSelectionChange",value:function(u){navigator.userAgent.includes("Firefox")||this.caretEventHandler(u)}},{key:"caretEventHandler",value:function(u){var f,h=this;u.target.tagName&&(f=u.target.tagName.toLowerCase()),this.dispatch((function(m){var S=u.target===m.keyboardDOM||u.target&&m.keyboardDOM.contains(u.target);if(h.options.syncInstanceInputs&&Array.isArray(u.path)&&(S=u.path.some((function(T){var R;return T==null||(R=T.hasAttribute)===null||R===void 0?void 0:R.call(T,"data-skInstance")}))),(f==="textarea"||f==="input"&&["text","search","url","tel","password"].includes(u.target.type))&&!m.options.disableCaretPositioning){var N=u.target.selectionStart,x=u.target.selectionEnd;m.options.rtl&&(N=m.utilities.getRtlOffset(N,m.getInput()),x=m.utilities.getRtlOffset(x,m.getInput())),m.setCaretPosition(N,x),m.activeInputElement=u.target,m.options.debug&&console.log("Caret at: ",m.getCaretPosition(),m.getCaretPositionEnd(),u&&u.target.tagName.toLowerCase(),"(".concat(m.keyboardDOMClass,")"),u==null?void 0:u.type)}else!m.options.disableCaretPositioning&&S||(u==null?void 0:u.type)==="selectionchange"||(m.setCaretPosition(null),m.activeInputElement=null,m.options.debug&&console.log('Caret position reset due to "'.concat(u==null?void 0:u.type,'" event'),u))}))}},{key:"recurseButtons",value:function(u){var f=this;u&&Object.keys(this.buttonElements).forEach((function(h){return f.buttonElements[h].forEach(u)}))}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var u=this.options.physicalKeyboardHighlightPreventDefault,f=u!==void 0&&u;document.removeEventListener("keyup",this.handleKeyUp,f),document.removeEventListener("keydown",this.handleKeyDown,f),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons((function(h){h&&(h.onpointerdown=null,h.onpointerup=null,h.onpointercancel=null,h.ontouchstart=null,h.ontouchend=null,h.ontouchcancel=null,h.onclick=null,h.onmousedown=null,h.onmouseup=null,h.remove(),h=null)})),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(u){var f=this.options.buttonTheme,h=[];return Array.isArray(f)&&f.forEach((function(m){if(m&&m.class&&typeof m.class=="string"&&m.buttons&&typeof m.buttons=="string"){var S=m.class.split(" ");m.buttons.split(" ").includes(u)&&(h=[].concat(ae(h),ae(S)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',m)})),h}},{key:"setDOMButtonAttributes",value:function(u,f){var h=this.options.buttonAttributes;Array.isArray(h)&&h.forEach((function(m){m.attribute&&typeof m.attribute=="string"&&m.value&&typeof m.value=="string"?m.buttons&&typeof m.buttons=="string"?m.buttons.split(" ").includes(u)&&f(m.attribute,m.value):f(m.attribute,m.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',m)}))}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(u){var f;if((f=u.target.classList)!==null&&f!==void 0&&f.contains("hg-button"))return u.preventDefault(),u.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var u=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(f){var h=u.utilities.isConstructor(f)?new f(u):f(u);h.init&&h.init(u)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(u,f){return!!this.modules[u]&&this.modules[u][f]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(u,f,h,m){var S=this,N=Array.from(u.children),x=0;return N.length&&h.forEach((function(T,R){var H=m[R];if(!(H&&H>T))return!1;var M=T-x,D=H-x,K=document.createElement("div");K.className+="hg-button-container";var q="".concat(S.options.layoutName,"-r").concat(f,"c").concat(R);K.setAttribute("data-skUID",q);var Y=N.splice(M,D-M+1);x+=D-M,Y.forEach((function(G){return K.appendChild(G)})),N.splice(M,0,K),u.innerHTML="",N.forEach((function(G){return u.appendChild(G)})),S.options.debug&&console.log("rowDOMContainer",Y,M,D,x+1)})),u}},{key:"render",value:function(){var u=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var f="hg-layout-".concat(this.options.layoutName),h=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},m=this.options.useTouchEvents||!1,S=m?"hg-touch-events":"",N=this.options.useMouseEvents||!1,x=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,f,this.keyboardPluginClasses,S),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",h[this.options.layoutName||this.defaultName].forEach((function(T,R){var H=T.split(" ");u.options.excludeFromLayout&&u.options.excludeFromLayout[u.options.layoutName||u.defaultName]&&(H=H.filter((function(q){return u.options.excludeFromLayout&&!u.options.excludeFromLayout[u.options.layoutName||u.defaultName].includes(q)})));var M=document.createElement("div");M.className+="hg-row";var D=[],K=[];H.forEach((function(q,Y){var G,$=!x&&typeof q=="string"&&q.length>1&&q.indexOf("[")===0,ie=!x&&typeof q=="string"&&q.length>1&&q.indexOf("]")===q.length-1;$&&(D.push(Y),q=q.replace(/\[/g,"")),ie&&(K.push(Y),q=q.replace(/\]/g,""));var J=u.utilities.getButtonClass(q),pe=u.utilities.getButtonDisplayName(q,u.options.display,u.options.mergeDisplay),be=u.options.useButtonTag?"button":"div",he=document.createElement(be);he.className+="hg-button ".concat(J),(G=he.classList).add.apply(G,ae(u.getButtonThemeClasses(q))),u.setDOMButtonAttributes(q,(function(re,Le){he.setAttribute(re,Le)})),u.activeButtonClass="hg-activeButton",!u.utilities.pointerEventsSupported()||m||N?m?(he.ontouchstart=function(re){u.handleButtonClicked(q,re),u.handleButtonMouseDown(q,re)},he.ontouchend=function(re){u.handleButtonMouseUp(q,re)},he.ontouchcancel=function(re){u.handleButtonMouseUp(q,re)}):(he.onclick=function(re){u.setMouseHold(!1),typeof u.options.onKeyReleased=="function"||u.options.useMouseEvents&&u.options.clickOnMouseDown||u.handleButtonClicked(q,re)},he.onmousedown=function(re){(typeof u.options.onKeyReleased=="function"||u.options.useMouseEvents&&u.options.clickOnMouseDown)&&!u.isMouseHold&&u.handleButtonClicked(q,re),u.handleButtonMouseDown(q,re)},he.onmouseup=function(re){u.handleButtonMouseUp(q,re)}):(he.onpointerdown=function(re){u.handleButtonClicked(q,re),u.handleButtonMouseDown(q,re)},he.onpointerup=function(re){u.handleButtonMouseUp(q,re)},he.onpointercancel=function(re){u.handleButtonMouseUp(q,re)}),he.setAttribute("data-skBtn",q);var Oe="".concat(u.options.layoutName,"-r").concat(R,"b").concat(Y);he.setAttribute("data-skBtnUID",Oe);var Ne=document.createElement("span");Ne.innerHTML=pe,he.appendChild(Ne),u.buttonElements[q]||(u.buttonElements[q]=[]),u.buttonElements[q].push(he),M.appendChild(he)})),M=u.parseRowDOMContainers(M,R,D,K),u.keyboardRowsDOM.appendChild(M)})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||m||N?m?(document.ontouchend=function(T){return u.handleButtonMouseUp(void 0,T)},document.ontouchcancel=function(T){return u.handleButtonMouseUp(void 0,T)},this.keyboardDOM.ontouchstart=function(T){return u.handleKeyboardContainerMouseDown(T)}):m||(document.onmouseup=function(T){return u.handleButtonMouseUp(void 0,T)},this.keyboardDOM.onmousedown=function(T){return u.handleKeyboardContainerMouseDown(T)}):(document.onpointerup=function(T){return u.handleButtonMouseUp(void 0,T)},this.keyboardDOM.onpointerdown=function(T){return u.handleKeyboardContainerMouseDown(T)}),this.onInit())}}],E&&ct(p.prototype,E),l&&ct(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p;var p,E,l})(),xe=Ae,Xe=xe;return z})()},442:function(O){O.exports=d}},g={};function y(O){var C=g[O];if(C!==void 0)return C.exports;var j=g[O]={exports:{}};return c[O].call(j.exports,j,j.exports,y),j.exports}y.n=function(O){var C=O&&O.__esModule?function(){return O.default}:function(){return O};return y.d(C,{a:C}),C},y.d=function(O,C){for(var j in C)y.o(C,j)&&!y.o(O,j)&&Object.defineProperty(O,j,{enumerable:!0,get:C[j]})},y.o=function(O,C){return Object.prototype.hasOwnProperty.call(O,C)},y.r=function(O){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(O,"__esModule",{value:!0})};var w={};return(function(){y.r(w),y.d(w,{KeyboardReact:function(){return Q},default:function(){return Z}}),y(981);var O=y(442),C=y(548),j=y.n(C);function _(P){return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},_(P)}function z(P,se){var ge=Object.keys(P);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(P);se&&(ce=ce.filter((function(ye){return Object.getOwnPropertyDescriptor(P,ye).enumerable}))),ge.push.apply(ge,ce)}return ge}function ne(P){for(var se=1;se<arguments.length;se++){var ge=arguments[se]!=null?arguments[se]:{};se%2?z(Object(ge),!0).forEach((function(ce){I(P,ce,ge[ce])})):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(ge)):z(Object(ge)).forEach((function(ce){Object.defineProperty(P,ce,Object.getOwnPropertyDescriptor(ge,ce))}))}return P}function I(P,se,ge){return(se=(function(ce){var ye=(function(Me,Ee){if(_(Me)!="object"||!Me)return Me;var Ue=Me[Symbol.toPrimitive];if(Ue!==void 0){var ut=Ue.call(Me,Ee);if(_(ut)!="object")return ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(Me)})(ce,"string");return _(ye)=="symbol"?ye:ye+""})(se))in P?Object.defineProperty(P,se,{value:ge,enumerable:!0,configurable:!0,writable:!0}):P[se]=ge,P}var ue=function(P){return ne(ne({},P),{},{keyboardRef:null})},Q=function(P){var se=P.baseClass||"react-simple-keyboard",ge=O.useRef(null),ce=O.useRef(null),ye=O.useRef(null),Me=O.useRef(P);return O.useEffect((function(){return function(){ye.current&&ye.current.destroy(),ge.current=!1}}),[]),O.useEffect((function(){var Ee=(function(Se){return ne(ne({},Se),{},{theme:"simple-keyboard ".concat(Se.theme||"hg-theme-default")})})(P);if(!ge.current){ge.current=!0,Ee.debug&&console.log("ReactSimpleKeyboard: Init");var Ue=ce.current,ut=".".concat(se);ye.current=new(j())(Ue||ut,Ee),Ee.keyboardRef&&Ee.keyboardRef(ye.current)}var je=(function(Se,Re){var Ye=ue(Re),$e=ue(Se);return Object.keys(Ye).filter((function(ae){return Ye[ae]!==$e[ae]}))})(Me.current,Ee);if(je.length){var _e=ye.current;Me.current=Ee,_e==null||_e.setOptions(Ee),Ee.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",je)}}),[ge,se,Me,P]),O.createElement("div",{className:se,ref:ce})},Z=Q})(),w})()}))})(pu)),pu.exports}var d1=f1();const wp=$s(d1);function h1({onInput:r,onBackspace:s}){const d=k.useMemo(()=>({default:["1 2 3","4 5 6","7 8 9","0 {bksp}"]}),[]),c={"{bksp}":"⌫"},g=y=>{if(y==="{bksp}")return s==null?void 0:s();/^\d$/.test(y)&&(r==null||r(y))};return b.jsx("div",{className:"vk-wrap",role:"dialog","aria-label":"Ziffern-Tastatur",children:b.jsx(wp,{layout:d,display:c,onKeyPress:g})})}function m1({onSubmit:r}){const[s,d]=k.useState(""),[c,g]=k.useState(!1),[y,w]=k.useState(!1),[O,C]=k.useState(!1),j=se=>{const ce=String(se).replace(/[^0-9]/g,"").slice(0,20).match(/.{1,5}/g);return ce?ce.join("-"):""},_=k.useMemo(()=>s.replace(/-/g,""),[s]),z=_.length===20,ne=se=>{d(j(se.target.value))},I=se=>d(ge=>j(ge+se)),ue=()=>d(se=>{const ge=se.replace(/-/g,"");return j(ge.slice(0,-1))}),Q=()=>d(""),Z=()=>{g(!0),window.setTimeout(()=>g(!1),4e3)},P=async()=>{if(!z||y)return;const se=_.toLowerCase();w(!0);try{const ge=await Hb(se);(ge==null?void 0:ge.status)===200?(C(!1),r==null||r()):Z()}catch{Z()}finally{w(!1)}};return b.jsxs("div",{className:"enter-key-screen",onMouseDown:()=>O&&C(!1),children:[b.jsx("h1",{children:"Terminalschlüssel eingeben"}),b.jsx("p",{children:"Bitte geben Sie den Terminal-Key ein, den Sie vom System erhalten haben."}),b.jsx("input",{type:"text",className:"key-input",value:s,onChange:ne,onFocus:()=>C(!0),onMouseDown:se=>se.stopPropagation(),placeholder:"z. B. 12345-67890-12345-67890",maxLength:24,disabled:y,inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off",autoCorrect:"off",spellCheck:!1}),O&&!y&&b.jsx("div",{onMouseDown:se=>se.stopPropagation(),children:b.jsx(h1,{onInput:I,onBackspace:ue,onClear:Q,onEnter:P})}),b.jsx("button",{className:"submit-button",onClick:P,disabled:!z||y,children:y?"Bitte warten...":"Weiter"}),c&&b.jsx("div",{className:"snackbar error",children:"Ungültiger oder abgelaufener Schlüssel. Bitte versuchen Sie es erneut."})]})}const sc=k.createContext();function p1({children:r}){const[s,d]=k.useState(!0),[c,g]=k.useState(null),[y,w]=k.useState(!1),[O,C]=k.useState(!1),[j,_]=k.useState(0),z=yn(),ne=vl(),{allowed:I,resolved:ue}=oc(),Q=y&&O,Z=k.useCallback(()=>{d(!0),_(P=>P+1)},[]);return k.useEffect(()=>{(async()=>{var se,ge;d(!0);try{const ce=await Lb(),ye=(ce==null?void 0:ce.exists)===!0;if(g(ye),!ye){w(!1),C(!1);return}const[Me,Ee]=await Promise.all([Op(),Np()]);w(((se=Me==null?void 0:Me.result)==null?void 0:se.exists)===!0),C(((ge=Ee==null?void 0:Ee.result)==null?void 0:ge.exists)===!0)}catch{g(!1),w(!1),C(!1)}finally{d(!1)}})()},[j]),k.useEffect(()=>{if(!c||ne.pathname==="/dev/t2med"&&!ue)return;const P=ne.pathname==="/dev/t2med"&&(!ue||I);if(!Q&&ne.pathname!=="/setup-t2med"&&!P){z("/setup-t2med",{replace:!0});return}Q&&["/setup-t2med","/"].includes(ne.pathname)&&z("/start",{replace:!0})},[c,Q,z,ne.pathname,I,ue]),s?b.jsx("div",{className:"loading-bar-container",children:b.jsx("div",{className:"loading-bar"})}):c?b.jsx(sc.Provider,{value:{certExists:c,setupDone:Q,t2medSetupDone:y,emmaSyncSetupDone:O},children:r}):b.jsx(m1,{onSubmit:Z})}function v1(){const[r,s]=k.useState("loading"),[d,c]=k.useState(!1),g=yn(),y=k.useContext(sc);return k.useEffect(()=>{(y==null?void 0:y.setupDone)!==!0&&g("/setup-t2med",{replace:!0})},[y==null?void 0:y.setupDone,g]),k.useEffect(()=>{c(!0)},[]),k.useEffect(()=>{if(!d)return;const w=6e4;let O=!1;const C=async()=>{const[_,z]=await Promise.all([Yb(),Sp()]);if(O)return;if(!(_!=null&&_.error)&&typeof(_==null?void 0:_.open)=="boolean"){s(_.open?"ready":"closed");return}if(z&&typeof z=="object"&&z.error){s("ready");return}const ne=Array.isArray(z)?z:(z==null?void 0:z.data)||(z==null?void 0:z.openingTimes)||[];if(!ne||ne.length===0){s("ready");return}const I=new Date,ue=yp(I);let Q,Z;if(ue)Q=ue.weekdayMon0,Z=ue.hhmm;else{const se=I.getDay();Q=se===0?6:se-1,Z=I.toTimeString().substring(0,5)}const P=kb(ne,Q,Z);s(P?"ready":"closed")};C();const j=setInterval(()=>{C()},w);return()=>{O=!0,clearInterval(j)}},[d]),k.useEffect(()=>{const w=!d||r==="loading"||r==="closed";return window.__hideFooter=w,window.dispatchEvent(new Event("footer:update")),()=>{window.__hideFooter=!1,window.dispatchEvent(new Event("footer:update"))}},[d,r]),!d||r==="loading"?b.jsx("div",{className:"loading-bar-container",children:b.jsx("div",{className:"loading-bar"})}):(y==null?void 0:y.setupDone)!==!0?b.jsx("div",{className:"loading-bar-container",children:b.jsx("div",{className:"loading-bar"})}):r==="closed"?b.jsx(s1,{}):b.jsx(o1,{onStart:()=>g("/welcome")})}function g1(){const r=k.useRef(null),s=yn();k.useEffect(()=>{r.current&&(r.current.load(),r.current.play().catch(c=>{}))},[]);const d=()=>{s("/insurance-card")};return b.jsx("div",{className:"welcome-screen",children:b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:r,src:"/videos/Willkommen.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:d})})})}function y1({updatePatientData:r,patientData:s}){const d=k.useRef(null),c=k.useRef(null),g=k.useRef(null),y=k.useRef(!1),w=yn(),[O,C]=k.useState("video1"),[j,_]=k.useState(!1),[z,ne]=k.useState("idle"),[I,ue]=k.useState(!1),Q=je=>(je==null?void 0:je.level)==="warning",Z=k.useCallback(je=>{j&&(je==="success"&&C("video2"),je==="error"&&C("errorVideo"))},[j]);k.useEffect(()=>{if(O==="video1"){const je=d.current;if(!je)return;je.pause(),je.load();const _e=je.play();_e!==void 0&&_e.catch(()=>{})}},[O]);const P=k.useCallback(async je=>{const _e=(je==null?void 0:je.isCancelled)??(()=>!1),Se=async()=>{const Re=c.current;!Re||_e()||(_e()||ue(!1),Re.muted=!1,Re.volume=1,Re.playsInline=!0,await Re.play())};for(let Re=0;Re<2;Re++)try{await Se();return}catch(Ye){if(_e())return;if((Ye==null?void 0:Ye.name)==="NotAllowedError"){console.warn("[video2] autoplay blocked; user gesture required",Ye),ue(!0);return}if((Ye==null?void 0:Ye.name)==="AbortError"){if(Re===0){await new Promise($e=>requestAnimationFrame($e));continue}return}console.error("[video2] media not playable (check public/videos/Vielen-Dank-eGK.mp4 or fallback; H.264+AAC MP4, not 404/HTML):",Ye),C("done");return}},[]);k.useEffect(()=>{if(O!=="video2")return;let je=!1;return P({isCancelled:()=>je}),()=>{je=!0}},[O,P]),k.useEffect(()=>{if(O==="errorVideo"){const je=g.current;if(!je)return;je.pause(),je.load();const _e=je.play();_e!==void 0&&_e.catch(()=>{})}},[O]),k.useEffect(()=>{O==="done"&&w("/appointment-yesno",{replace:!0})},[O,w]);const se=k.useCallback(async()=>{if(y.current)return;y.current=!0,ne("loading"),sessionStorage.removeItem("t2medSitzungHandle");const je=()=>{sessionStorage.removeItem("t2medSitzungHandle"),ne("error"),Z("error")};try{const _e=(s==null?void 0:s.typeOfVisitationSteps)||[],Se=_e.length>0?_e[_e.length-1]:void 0,Re=await Xb(Se);if(Re!=null&&Re.error){je(Re);return}const Ye=Re==null?void 0:Re.sitzungHandle;if(!Ye){je({error:"Es konnte kein Sitzung-Handle ermittelt werden."});return}sessionStorage.setItem("t2medSitzungHandle",Ye);const $e=await Zb(Ye);if($e!=null&&$e.error&&!Q($e)){je($e);return}if($e!=null&&$e.firstName&&($e!=null&&$e.lastName)){r("firstName",$e.firstName),r("lastName",$e.lastName),$e.birthDate&&r("birthDate",$e.birthDate),ne("success"),Z("success");return}je({error:"Patientendaten konnten nicht ermittelt werden."})}catch(_e){je({error:(_e==null?void 0:_e.message)||"Unerwarteter Fehler beim T2med Check-in."})}},[s,Z,r]);k.useEffect(()=>{O==="video1"&&se()},[O,se]);const ge=k.useCallback(()=>{const je=d.current;if(!je)return;const _e=je.duration;if(!Number.isFinite(_e)||_e<=0)return;const Se=Math.max(0,_e-.05),Re=()=>{je.pause()};if(Math.abs(je.currentTime-Se)>.02){const Ye=()=>{je.removeEventListener("seeked",Ye),Re()};je.addEventListener("seeked",Ye),je.currentTime=Se}else Re()},[]),ce=k.useCallback(()=>{if(!j){if(ge(),_(!0),z==="success"){C("video2");return}z==="error"&&C("errorVideo")}},[j,ge,z]),ye=()=>{if(j)return;const je=d.current;if(!je)return;const{duration:_e,currentTime:Se}=je;!Number.isFinite(_e)||_e<=0||Se>=_e-.12&&ce()},Me=()=>{ce()};k.useEffect(()=>{if(j){if(z==="success"){C("video2");return}z==="error"&&C("errorVideo")}},[j,z]);const Ee=()=>{C("done")},Ue=k.useCallback(()=>{const je=c.current,_e=je==null?void 0:je.error;console.error("[video2] onError",{code:_e==null?void 0:_e.code,message:_e==null?void 0:_e.message,networkState:je==null?void 0:je.networkState}),C("done")},[]),ut=()=>{w("/start",{replace:!0})};return b.jsxs("div",{className:"healthcard-screen",children:[O==="video1"&&b.jsx("div",{className:"video1-with-hint",children:b.jsx("div",{className:"video-container video1-wrap",children:b.jsx("video",{ref:d,src:"/videos/Gesundheitskarte_small_mit_Bild.mp4",className:"avatar-video",preload:"auto",playsInline:!0,muted:!1,onTimeUpdate:ye,onEnded:Me})})}),O==="video2"&&b.jsxs("div",{className:"video-container video2-wrap",children:[b.jsxs("video",{ref:c,className:"avatar-video",preload:"auto",playsInline:!0,muted:!1,onEnded:Ee,onError:Ue,children:[b.jsx("source",{src:"/videos/Vielen-Dank-eGK.mp4",type:"video/mp4"}),b.jsx("source",{src:"/videos/Vielen-Dank-Check-In-Nutzung.mp4",type:"video/mp4"})]}),I&&b.jsx("div",{className:"video2-overlay",children:b.jsxs("div",{className:"video2-overlay-inner",children:[b.jsx("div",{className:"card-title",children:"Weiter"}),b.jsx("div",{className:"card-subtitle",children:"Tippen Sie, um das Dankesvideo mit Ton zu starten."}),b.jsx("button",{className:"simulate-button",onClick:P,children:"Dankesvideo starten"}),b.jsx("button",{className:"simulate-button secondary",style:{marginTop:10},onClick:()=>C("done"),children:"Überspringen"})]})})]}),O==="errorVideo"&&b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:g,src:"/videos/eGK_Fehlgeschlagen.mp4",className:"avatar-video",preload:"auto",playsInline:!0,muted:!1,onEnded:ut})})]})}const Ys=["/videos/Auswahl-generisch.mp4","/videos/Auswahl-generisch_2.mp4","/videos/Auswahl-generisch_3.mp4","/videos/Auswahl-generisch_4.mp4","/videos/Auswahl-generisch_5.mp4","/videos/Auswahl-generisch_6.mp4"];function Dm(r){const s=[...r];for(let d=s.length-1;d>0;d--){const c=Math.floor(Math.random()*(d+1));[s[d],s[c]]=[s[c],s[d]]}return s}function b1({updatePatientData:r}){var ye,Me;const[s,d]=k.useState({}),[c,g]=k.useState([]),[y,w]=k.useState(null),[O,C]=k.useState({}),[j,_]=k.useState(!0),[z,ne]=k.useState(null),[I,ue]=k.useState({}),Q=k.useRef(null),Z=yn();k.useEffect(()=>{(async()=>{try{const Ue=await Vb();if(Ue!=null&&Ue.error){ne(typeof Ue.error=="string"?Ue.error:"Die Auswahl konnte nicht geladen werden.");return}if(!Array.isArray(Ue)||Ue.length===0){Z("/final",{replace:!0});return}const ut={};Ue.forEach(_e=>{ut[_e.buttonPage]||(ut[_e.buttonPage]=[]),ut[_e.buttonPage].push(_e)});const je=Object.keys(ut).map(Number).sort((_e,Se)=>_e-Se);if(d(ut),g(je),w(je[0]??null),je.length>0){const _e=Dm(Ys);let Se={};if(je.length<=_e.length)Se=je.reduce((Re,Ye,$e)=>(Re[Ye]=_e[$e],Re),{});else{const Re=[..._e];Se={};let Ye=0;je.forEach(($e,ae)=>{if(Ye>=Re.length){const we=Dm(Ys);ae>0&&we[0]===Se[je[ae-1]]&&([we[0],we[1]]=[we[1],we[0]]),Re.splice(0,Re.length,...we),Ye=0}Se[$e]=Re[Ye++]})}ue(Se)}}catch(Ue){console.error("Fehler beim Laden der Button-Konfiguration",Ue),ne("Die Auswahl konnte nicht geladen werden.")}finally{_(!1)}})()},[Z]),k.useEffect(()=>{const Ee=Q.current;if(!Ee)return;Ee.pause(),Ee.load();const Ue=Ee.play();Ue!==void 0&&Ue.catch(()=>{})},[y,I]),k.useEffect(()=>{const Ee=[];return Object.values(I).forEach(Ue=>{const ut=document.createElement("link");ut.rel="preload",ut.as="video",ut.href=Ue,document.head.appendChild(ut),Ee.push(ut)}),()=>{Ee.forEach(Ue=>document.head.removeChild(Ue))}},[I]);const P=Ee=>{if(!y)return;C(je=>({...je,[y]:Ee})),r(y,Ee);const Ue=c.indexOf(y),ut=c[Ue+1];ut?w(ut):Z("/final")},se=y&&O[y]||"",ge=y&&((ye=s[y])==null?void 0:ye.length)||0;let ce="option-container";return ge>5?ce+=" ultra-compact":ge>3&&(ce+=" compact"),j?b.jsx("div",{className:"loading-bar-container",children:b.jsx("div",{className:"loading-bar"})}):z?b.jsx("div",{className:"appointment-screen",children:b.jsxs("div",{className:"option-container",children:[b.jsx("p",{className:"inline-error",style:{marginBottom:"1rem"},children:z}),b.jsx("button",{type:"button",className:"nav-button",onClick:()=>Z("/appointment-yesno"),children:"Zurück"})]})}):!y||c.length===0?null:b.jsxs("div",{className:"appointment-screen",children:[b.jsx("div",{className:ce,children:(Me=s[y])==null?void 0:Me.map(Ee=>b.jsx("button",{className:`option-button ${se===Ee.buttonText?"selected":""}`,onClick:()=>P(Ee.buttonText),children:Ee.buttonText},Ee.buttonIndex))}),b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:Q,src:I[y]||Ys[0],className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1})})]})}function S1({onRestart:r,onSubmit:s}){const d=k.useRef(null),c=k.useRef(null),[g,y]=k.useState(!1),[w,O]=k.useState(""),C=()=>sessionStorage.getItem("hasAppointment")==="true",j=()=>{const ue=sessionStorage.getItem("patientFirstName")||"",Q=sessionStorage.getItem("patientLastName")||"",Z=sessionStorage.getItem("patientBirthDate")||"",P=sessionStorage.getItem("visitationType")||sessionStorage.getItem("typeOfVisitation")||"Sprechstunde";return{firstName:ue,lastName:Q,birthDate:Z,registration:new Date().toISOString(),typeOfVisitation:P,hasAppointment:C(),status:"WAITING",note:sessionStorage.getItem("patientNote")||"",active:!0}},_=async()=>{const ue=j();if(!ue.firstName||!ue.lastName){O("Name unvollständig – Anmeldung wurde nicht übertragen.");return}const Q=await bp(ue);Q!=null&&Q.error&&O("Anmeldung konnte nicht übertragen werden. Bitte Praxispersonal informieren.")},z=()=>{g||(y(!0),clearTimeout(c.current),Promise.resolve(s?s():_()).finally(()=>{typeof r=="function"&&r()}))},ne=()=>{clearTimeout(c.current),c.current=null,z()},I=()=>{clearTimeout(c.current),c.current=null,console.error("Final-Video konnte nicht geladen werden (Datei unter public/videos/ prüfen, z. B. 404 liefert text/html)."),z()};return k.useEffect(()=>(d.current&&(d.current.load(),d.current.play().catch(()=>{})),c.current=setTimeout(()=>{console.warn("Video-Ende nicht erkannt – Fallback aktiv"),z()},15e3),()=>clearTimeout(c.current)),[]),b.jsxs("div",{className:"final-screen",children:[w&&b.jsx("div",{className:"final-error-banner",children:w}),b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:d,src:"/videos/Vielen-Dank-Check-In-Nutzung.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:ne,onError:I})})]})}const Tp={skipInsuranceCardScreen:!1,skipAppointmentYesNoScreen:!1},E1=6e4,Ap=k.createContext({...Tp,loaded:!1,refresh:async()=>{}});function x1({children:r}){const[s,d]=k.useState(Tp),[c,g]=k.useState(!1),y=k.useRef(!1),w=k.useCallback(async()=>{const O=await Gb();y.current||(O&&!O.error&&d({skipInsuranceCardScreen:!!O.skipInsuranceCardScreen,skipAppointmentYesNoScreen:!!O.skipAppointmentYesNoScreen}),g(!0))},[]);return k.useEffect(()=>{y.current=!1,w();const O=setInterval(()=>{w()},E1);return()=>{y.current=!0,clearInterval(O)}},[w]),b.jsx(Ap.Provider,{value:{...s,loaded:c,refresh:w},children:r})}function jp(){return k.useContext(Ap)}function O1(){const r=yn(),s=k.useRef(null),{skipInsuranceCardScreen:d}=jp(),c=!!d;k.useEffect(()=>{c&&r("/health-card",{replace:!0})},[c,r]),k.useEffect(()=>{if(c)return;const y=s.current;if(y){y.pause(),y.load();const w=y.play();w!==void 0&&w.catch(()=>{})}},[c]);const g=y=>{r(y==="yes"?"/health-card":"/no-insurance-card")};return c?null:b.jsxs("div",{className:"insurance-card-screen",children:[b.jsxs("div",{className:"option-container",children:[b.jsx("button",{className:"option-button",onClick:()=>g("yes"),children:"Ich habe eine Gesundheitskarte dabei"}),b.jsx("button",{className:"option-button",onClick:()=>g("no"),children:"Ich habe keine Gesundheitskarte dabei oder bin privat versichert"})]}),b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:s,src:"/videos/Auswahl_Gesundheitskarte.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1})})]})}function N1(){const r=yn(),[s,d]=k.useState(!1),[c,g]=k.useState(""),y=k.useRef(null),{skipAppointmentYesNoScreen:w,loaded:O}=jp(),C=!!w,j=k.useRef(!1),_=k.useCallback(()=>{r("/appointment-selection")},[r]);k.useEffect(()=>{if(C)return;const I=y.current;if(I){I.pause(),I.load();const ue=I.play();ue!==void 0&&ue.catch(()=>{})}},[C]);const z=k.useCallback(()=>{g(""),sessionStorage.setItem("hasAppointment","true"),_()},[_]),ne=k.useCallback(async()=>{g(""),d(!0);try{const I=await Kb();if((I==null?void 0:I.walkInStatus)==="FULL"){r("/keine-termine");return}if((I==null?void 0:I.walkInStatus)==="CONSUMED"){sessionStorage.setItem("hasAppointment","false"),_();return}if(I!=null&&I.error){const ue=I.error==="NOT_IN_OPENING_HOURS"||I.detail==="NOT_IN_OPENING_HOURS";g(ue?"Derzeit liegt keine Sprechstunde für die Anmeldung ohne Termin vor.":typeof I.error=="string"?I.error:"Die Anmeldung ist momentan nicht möglich.");return}g("Unerwartete Antwort vom Server.")}finally{d(!1)}},[_,r]);return k.useEffect(()=>{!O||!C||j.current||(j.current=!0,ne())},[O,C,ne]),C?b.jsx("div",{className:"two-option-screen",children:c?b.jsx("div",{className:"inline-error",children:c}):b.jsx("div",{className:"auto-no-appointment-overlay",role:"status","aria-live":"polite",children:b.jsx("div",{className:"spinner"})})}):b.jsxs("div",{className:"two-option-screen",children:[c&&b.jsx("div",{className:"inline-error",children:c}),b.jsxs("div",{className:"option-container",children:[b.jsx("button",{className:"option-button",type:"button",onClick:z,"aria-busy":"false",children:"Ich habe einen Termin"}),b.jsx("button",{className:"option-button",type:"button",onClick:ne,disabled:s,"aria-busy":s?"true":"false",children:"Ich habe keinen Termin"})]}),b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:y,src:"/videos/Termin_Ohne_Termin_Auswahl.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1})})]})}function w1(){const r=yn();return k.useEffect(()=>{const s=setTimeout(()=>r("/"),3e4);return()=>clearTimeout(s)},[r]),b.jsxs("div",{className:"closed-screen",children:[b.jsx("h1",{children:"Bitte wenden Sie sich an die Anmeldung"}),b.jsxs("p",{children:["Die Anmeldung ",b.jsx("strong",{children:"ohne Termin"})," ist im aktuellen Zeitraum nicht mehr möglich. Bitte wenden Sie sich direkt an unser medizinisches Fachpersonal an der Anmeldung, um Optionen für die kommenden Tage zu prüfen."]})]})}const T1="/videos/Keine-Termine.mp4";function A1(){const r=k.useRef(null),s=yn();return k.useEffect(()=>{const d=r.current;d&&(d.load(),d.play().catch(()=>{}))},[]),b.jsx("div",{className:"welcome-screen",children:b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:r,src:T1,className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:()=>s("/")})})})}function sl({text:r}){const[s,d]=k.useState(!1),c=g=>{g.stopPropagation(),d(y=>!y)};return b.jsxs("span",{className:"tooltip-wrapper",children:[b.jsx("span",{className:"tooltip-icon",onClick:c,children:"❔"}),s&&b.jsx("span",{className:"tooltip-bubble",children:r})]})}function j1({mode:r="full",onInput:s,onBackspace:d,onSpace:c}){const[g,y]=k.useState(!1),w=k.useMemo(()=>({full:{default:["1 2 3 4 5 6 7 8 9 0","q w e r t y u i o p","a s d f g h j k l","{shift} z x c v b n m","@ . - _ : / =","{space} {bksp}"],shift:["1 2 3 4 5 6 7 8 9 0","Q W E R T Y U I O P","A S D F G H J K L","{shift} Z X C V B N M","@ . - _ : / =","{space} {bksp}"]},numeric:{default:["1 2 3","4 5 6","7 8 9","0 {bksp}"]},host:{default:["1 2 3","4 5 6","7 8 9",". 0 {bksp}"]},unc:{default:["1 2 3 4 5 6 7 8 9 0","q w e r t y u i o p","a s d f g h j k l","z x c v b n m - . \\","{bksp}"]}}),[]),O={"{bksp}":"⌫","{space}":"Leertaste","{shift}":"⇧"},C=z=>{if(z==="{bksp}"){d==null||d();return}if(z==="{space}"){c==null||c();return}if(z==="{shift}"){y(ne=>!ne);return}if(r==="numeric"){/^\d$/.test(z)&&(s==null||s(z));return}if(r==="host"){(/^\d$/.test(z)||z===".")&&(s==null||s(z));return}s==null||s(z),g&&y(!1)},j=w[r]||w.full,_=g?"shift":"default";return b.jsx("div",{className:"kiosk-kb",role:"dialog","aria-label":"Bildschirmtastatur",children:b.jsx(wp,{layout:j,layoutName:_,display:O,onKeyPress:C})})}const C1=Object.freeze({0:{level:"ok",title:"OK",message:"OK, kein Fehler und keine Warnung aufgetreten."},1:{level:"error",title:"Kein Ergebnis",message:"Kein Ergebnis."},2:{level:"error",title:"Recht fehlt",message:"Benötigtes Recht nicht vorhanden."},3:{level:"error",title:"Ausnahmefehler",message:"Ausnahmefehler."},4:{level:"error",title:"Konkurrierender Zugriff (DB)",message:"Konkurrierender Zugriff Datenbank."},5:{level:"error",title:"Konkurrierender Zugriff (API)",message:"Konkurrierender Zugriff API."},101:{level:"error",title:"API-Key ungültig",message:"Der übergebene API-Key ist nicht gültig.",hint:"Bitte prüfe den API-Key (Tippfehler, Leerzeichen, falscher Mandant/Server).",step:1},102:{level:"error",title:"Benutzer ungültig",message:"Der übergebene Benutzer ist nicht gültig.",hint:"Bitte prüfe Benutzername und Passwort und ob der Benutzer in T2Med existiert/aktiv ist.",step:1},103:{level:"error",title:"Station ungültig",message:"Die übergebene Station ist nicht gültig.",hint:"Bitte prüfe den Stationsnamen. Eventuell ist der Name nicht erlaubt, existiert bereits oder muss exakt einem T2Med-Setup entsprechen.",step:1},104:{level:"error",title:"Arztrolle ungültig",message:"Die übergebene Arztrolle ist nicht gültig.",hint:"Bitte wähle eine gültige Arztrolle in Schritt 2 und lade ggf. die Struktur neu.",step:2},105:{level:"error",title:"Behandlungsort ungültig",message:"Der übergebene Behandlungsort ist nicht gültig.",hint:"Bitte wähle einen gültigen Behandlungsort in Schritt 2 und lade ggf. die Struktur neu.",step:2},201:{level:"error",title:"Station nicht angelegt",message:"Die Station konnte nicht angelegt werden.",hint:"Bitte prüfe in T2Med, ob die Station bereits existiert oder ob ein Konflikt vorliegt.",step:1},202:{level:"error",title:"Stationsname ungültig",message:"Der übergebene Stationsname ist nicht gültig.",hint:"Bitte einen anderen Stationsnamen verwenden (Sonderzeichen/Länge prüfen).",step:1},203:{level:"error",title:"Versionen nicht ermittelbar",message:"Die APS-Version oder API-Versionen konnten nicht ermittelt werden.",hint:"Bitte prüfe, ob T2Med erreichbar ist und die API-Version unterstützt wird.",step:1},204:{level:"error",title:"Lizenz-ID nicht ermittelbar",message:"Die Lizenz-Id konnten nicht ermittelt werden.",hint:"Bitte die T2Med-Lizenz prüfen.",step:1},301:{level:"error",title:"Kein angemeldeter Benutzer",message:"Es konnte kein angemeldeter Benutzer ermittelt werden.",hint:"Bitte sicherstellen, dass in T2Med ein Benutzer angemeldet ist."},302:{level:"error",title:"Praxisstruktur nicht ermittelbar",message:"Die Praxisstruktur konnte nicht ermittelt werden.",hint:"Bitte Verbindung prüfen und Struktur erneut laden.",step:2},303:{level:"error",title:"Kartenterminals nicht ermittelbar",message:"Die Liste der Kartenterminals konnte nicht ermittelt werden.",hint:"Bitte Verbindung prüfen und Terminals in Schritt 3 erneut laden.",step:3},401:{level:"error",title:"Terminal-Id ungültig",message:"Die übergebene Terminal-Id ist nicht gültig.",hint:"Bitte das Terminal in Schritt 3 erneut auswählen.",step:3},402:{level:"error",title:"Sitzung-Handle ungültig",message:"Das übergebene Sitzung-Handle ist nicht gültig.",hint:"Bitte Vorgang neu starten."},403:{level:"error",title:"Wartebereich-Id ungültig",message:"Die übergebene Wartebereich-Id ist nicht gültig.",hint:"Bitte einen gültigen Wartebereich in Schritt 4 auswählen.",step:4},404:{level:"error",title:"Kürzel ungültig",message:"Das übergebene Kürzel ist nicht gültig."},405:{level:"error",title:"Inhalt ungültig",message:"Der übergebene Inhalt ist nicht gültig."},406:{level:"error",title:"Empfänger-Station-Id ungültig",message:"Die übergebene Empfänger-Station-Id ist nicht gültig."},501:{level:"error",title:"Karte anfordern fehlgeschlagen",message:"Es ist ein Fehler beim Karte anfordern aufgetreten.",hint:"Bitte prüfen Sie den Kartenleser und versuchen Sie es erneut."},502:{level:"error",title:"Karte einlesen fehlgeschlagen",message:"Es ist ein Fehler beim Karte einlesen aufgetreten.",hint:"Bitte Karte erneut einstecken und die Hinweise am Gerät beachten."},503:{level:"error",title:"Karte nicht erkannt",message:"Die Karte konnte nicht ermittelt werden.",hint:"Bitte Karte richtig einstecken (Chip) und erneut versuchen."},504:{level:"error",title:"Karte auswerfen fehlgeschlagen",message:"Es ist ein Fehler beim Karte auswerfen aufgetreten.",hint:"Bitte Karte manuell entnehmen, falls möglich, oder Personal informieren."},505:{level:"error",title:"Karte noch nicht eingelesen",message:"Die Karte wurde noch nicht eingelesen.",hint:"Bitte Karte einstecken und warten, bis der Vorgang abgeschlossen ist."},506:{level:"error",title:"Karte verarbeiten fehlgeschlagen",message:"Es ist ein Fehler beim Karte verarbeiten aufgetreten.",hint:"Bitte erneut versuchen. Falls der Fehler bleibt, Personal informieren."},507:{level:"error",title:"Karte ungültig",message:"Es ist ein Fehler beim Karte verarbeiten mit der Karte (abgelaufen, veraltet, keine eGK bei Primär- oder Ersatzkasse) aufgetreten.",hint:"Bitte eine gültige eGK verwenden oder Personal informieren."},508:{level:"error",title:"Kostenträger problematisch",message:"Es ist ein Fehler beim Karte verarbeiten mit dem Kostenträger (Gültigkeit, Fusion, aufgelöst) aufgetreten.",hint:"Bitte Personal informieren (Kostenträger-/Kasseninfo prüfen)."},509:{level:"error",title:"Kontext ungültig",message:"Es ist ein Fehler beim Karte verarbeiten mit dem Kontext (Arztrolle, Behandlungsort, KV-Abrechnungsgruppe) aufgetreten.",hint:"Bitte Setup prüfen (Arztrolle/Behandlungsort) oder Personal informieren."},510:{level:"error",title:"Patientendaten unklar",message:"Es ist ein Fehler beim Karte verarbeiten mit dem Patienten (nicht eindeutig bestimmbar, Stammdatenänderung, Kassenwechsel) aufgetreten.",hint:"Bitte Personal informieren (Patient muss ggf. manuell zugeordnet werden)."},511:{level:"error",title:"Patient nicht gefunden",message:"Der Patient konnte nicht ermittelt werden.",hint:"Bitte Personal informieren oder Karte erneut einlesen."},512:{level:"warning",title:"Hinweis",message:"Die Karte wurde bereits verarbeitet.",hint:"Sie können fortfahren. Falls Daten fehlen: erneut einlesen oder Personal informieren."},601:{level:"error",title:"Patient nicht gefunden",message:"Der Patient konnte nicht ermittelt werden.",hint:"Bitte Personal informieren oder Karte erneut einlesen."},602:{level:"error",title:"Wartebereich nicht ermittelbar",message:"Der Wartebereich konnte nicht ermittelt werden.",hint:"Bitte den Wartebereich in Schritt 4 erneut auswählen.",step:4},603:{level:"error",title:"Eintrag fehlgeschlagen",message:"Der Patient konnte nicht in den Wartebereich eingetragen werden.",hint:"Bitte Personal informieren oder erneut versuchen."},604:{level:"warning",title:"Bereits eingetragen",message:"Der Patient ist bereits im Wartebereich eingetragen.",hint:"Kein erneutes Eintragen nötig."},701:{level:"error",title:"Sitzung nicht gefunden",message:"Zu dem übergebenen Sitzung-Handle wurde keine Sitzung gefunden.",hint:"Bitte Vorgang neu starten."},702:{level:"error",title:"Station passt nicht",message:"Die übergebene Station-Id passt nicht zu der Station der Sitzung."},703:{level:"error",title:"Benutzer passt nicht",message:"Der übergebene Benutzer passt nicht zu dem Benutzer der Sitzung."},704:{level:"error",title:"Arztrolle passt nicht",message:"Die übergebene Arztrolle-Id passt nicht zu der Arztrolle der Sitzung."},705:{level:"error",title:"Behandlungsort passt nicht",message:"Die übergebene Behandlungsort-Id passt nicht zu dem Behandlungsort der Sitzung."},801:{level:"error",title:"Kürzel reserviert",message:"Das übergebene Kürzel ist reserviert und darf nicht verwendet werden."},802:{level:"error",title:"Patient nicht gefunden",message:"Der Patient konnte nicht ermittelt werden."},803:{level:"error",title:"Arztrolle nicht ermittelbar",message:"Die Arztrolle konnte nicht ermittelt werden."},804:{level:"error",title:"Behandlungsort nicht ermittelbar",message:"Der Behandlungsort konnte nicht ermittelt werden."},805:{level:"error",title:"eAkte-Eintrag fehlgeschlagen",message:"Es ist ein Fehler beim Erstellen und Speichern des eAkte Texteintrags aufgetreten."},901:{level:"error",title:"Empfängerstation nicht ermittelbar",message:"Die Empfängerstation konnte nicht ermittelt werden."}});function Cp(r){if(r==null||r==="")return null;const s=Number(r);if(!Number.isFinite(s))return null;const d=C1[s];return d?{code:s,...d}:null}function _1(r){var g,y,w,O;if(!r)return null;const d=[r.t2medCode,r.statusCode,r.code,r.errorCode,(g=r.data)==null?void 0:g.t2medCode,(y=r.data)==null?void 0:y.statusCode,(w=r.data)==null?void 0:w.code,(O=r.data)==null?void 0:O.errorCode].find(C=>C!=null&&C!=="");if(d==null)return null;const c=Number(d);return Number.isFinite(c)?c:null}const Xs=5,zm=[{id:1,title:"Verbindung & Station"},{id:2,title:"Praxisstruktur"},{id:3,title:"Arbeitsplatz in T2Med"},{id:4,title:"Terminal wählen"},{id:5,title:"Abschließen"}],R1={gdt_folder:"",watch_folder:"",processed_folder:"",outbound_folder:""};function D1({onSetupSuccess:r}){const[s,d]=k.useState(1),[c,g]=k.useState(!1),[y,w]=k.useState(""),[O,C]=k.useState(null),[j,_]=k.useState({host:"10.8.0.1",port:"16567",apiKey:"efae5750-cec3-4f0b-93b9-6041eced17ad",username:"",password:"",stationName:"EMMA-KIOSK"}),[z,ne]=k.useState(null),[I,ue]=k.useState(""),[Q,Z]=k.useState(""),[P,se]=k.useState(null),[ge,ce]=k.useState(""),[ye,Me]=k.useState(null),[Ee,Ue]=k.useState(""),[ut,je]=k.useState(1),[_e,Se]=k.useState(!1),[Re,Ye]=k.useState(!1),[$e,ae]=k.useState(R1),[we,Ge]=k.useState(!1),[mt,ct]=k.useState(null),[U,de]=k.useState(!1),[Ae,xe]=k.useState(""),[Xe,p]=k.useState(""),[E,l]=k.useState(""),[u,f]=k.useState(!1),[h,m]=k.useState(!1),[S,N]=k.useState(!1),[x,T]=k.useState(null),R=k.useRef({}),H=k.useRef(""),M=k.useRef(!1),D=()=>{w(""),C(null)},K=(B,oe)=>{var Qt,on,Tt;const ke=_1(B),Pe=Cp(ke);if(Pe)return C(Pe),[Pe.message,Pe.hint?`Hinweis: ${Pe.hint}`:""].filter(Boolean).join(" ");const it=(B==null?void 0:B.statusText)||(B==null?void 0:B.error)||(B==null?void 0:B.details)||(B==null?void 0:B.message)||((Qt=B==null?void 0:B.data)==null?void 0:Qt.error)||((on=B==null?void 0:B.data)==null?void 0:on.details)||((Tt=B==null?void 0:B.data)==null?void 0:Tt.message)||oe||"Es ist ein Fehler aufgetreten.";return C(ke?{code:ke,title:"Fehler",message:it,level:"error"}:null),it},q=k.useMemo(()=>s===1?[{key:"host",label:"Host"},{key:"port",label:"Port"},{key:"apiKey",label:"API Key"},{key:"username",label:"Benutzername"},{key:"password",label:"Passwort"},{key:"stationName",label:"Station Name"}]:s===5?_e?[{key:"smbUnc",label:"Netzwerkpfad (UNC)"},{key:"smbUser",label:"Benutzername Freigabe"},{key:"smbPassword",label:"Passwort Freigabe"},{key:"gdt_folder",label:"GDT-Ordner"},{key:"watch_folder",label:"Überwachungsordner"},{key:"processed_folder",label:"Verarbeitete Dateien"},{key:"outbound_folder",label:"Outbound-Ordner (T2med-Knopf EMMA-Outbound)"}]:[{key:"slotNr",label:"Slot Nr"}]:[],[s,_e]),Y=k.useMemo(()=>q.find(B=>B.key===x)||null,[q,x]),G=k.useMemo(()=>x?x==="port"||x==="slotNr"?"numeric":x==="host"?"host":x==="smbUnc"?"unc":"full":null,[x]),$=(B,oe)=>{const ke=String(oe??"");switch(B){case"port":return ke.replace(/[^\d]/g,"").slice(0,5);case"slotNr":{const Pe=ke.replace(/[^\d]/g,"").slice(0,4);return Pe===""?"0":Pe}case"host":return ke.replace(/[^\w.\-]/g,"").replace(/\.{2,}/g,".").slice(0,128);case"smbUnc":{let Pe=ke.replace(/\//g,"\\");return Pe&&!Pe.startsWith("\\\\")&&(Pe=`\\\\${Pe.replace(/^\\+/,"")}`),Pe.slice(0,260)}default:return ke.slice(0,256)}},ie=(B,oe)=>{const ke=$(B,oe);if(B==="slotNr"){je(Math.max(0,Number(ke||0)));return}if(B==="smbUnc"){xe(ke);return}if(B==="smbUser"){p(ke);return}if(B==="smbPassword"){l(ke);return}if(B==="gdt_folder"||B==="watch_folder"||B==="processed_folder"||B==="outbound_folder"){Fe(B,ke);return}_(Pe=>({...Pe,[B]:ke}))},J=B=>{T(B),window.setTimeout(()=>{var oe,ke;(ke=(oe=R.current[B])==null?void 0:oe.focus)==null||ke.call(oe)},0)},pe=k.useMemo(()=>x?x==="slotNr"?String(ut??0):x==="smbUnc"?Ae:x==="smbUser"?Xe:x==="smbPassword"?E:x==="gdt_folder"?$e.gdt_folder:x==="watch_folder"?$e.watch_folder:x==="processed_folder"?$e.processed_folder:x==="outbound_folder"?$e.outbound_folder:String(j[x]??""):"",[x,j,ut,Ae,Xe,E,$e]),be=B=>{x&&ie(x,pe+B)},he=()=>{x&&ie(x,pe.slice(0,-1))},Oe=()=>{x&&(x==="slotNr"?ie("slotNr","0"):ie(x,""))},Ne=()=>{x&&G==="full"&&be(" ")},re=k.useMemo(()=>q.findIndex(B=>B.key===x),[q,x]),Le=()=>{re<=0||J(q[re-1].key)},Be=()=>{var oe;if(re<0)return;const B=(oe=q[re+1])==null?void 0:oe.key;B?J(B):T(null)},Te=()=>Be(),dt=()=>T(null);k.useEffect(()=>{T(null),D(),s!==5&&Se(!1)},[s]);const et=k.useMemo(()=>{var B;return(B=zm.find(oe=>oe.id===s))==null?void 0:B.title},[s]),Ze=s>1,tt=B=>B>s?!1:B===s?s===5&&_e:B>=1,Qe=B=>{tt(B)&&(D(),!(s===5&&_e&&(Se(!1),B===s))&&d(B))},Ke=()=>{if(Ze){if(s===5&&_e){D(),Se(!1);return}Qe(s-1)}},Ie=async()=>{D(),g(!0);const B={host:j.host.trim(),port:Number(j.port||16567),apiKey:j.apiKey.trim(),username:j.username.trim(),password:j.password,stationName:j.stationName.trim()},oe=await Fb(B);if(g(!1),oe!=null&&oe.error){w(K(oe,"Auth fehlgeschlagen."));return}d(2)},rt=async()=>{D(),g(!0);const B=await Jb();if(g(!1),B!=null&&B.error){w(K(B,"Struktur konnte nicht geladen werden."));return}ne(B),ue(""),Z(""),se(null),ce(""),H.current="",Me(null),Ue(""),M.current=!1},ze=async()=>{D(),g(!0);const oe=await Pb({doctorRoleId:I,treatmentLocationId:Q});if(g(!1),oe!=null&&oe.error){w(K(oe,"Terminals konnten nicht geladen werden."));return}se(oe),ce(""),H.current=`${I}__${Q}`,Me(null),Ue(""),M.current=!1},De=async()=>{D(),g(!0);const B=await Wb();if(g(!1),B!=null&&B.error){w(K(B,"Wartebereiche konnten nicht geladen werden."));return}Me(B),Ue(""),M.current=!0},Ce=async()=>{D(),g(!0);const B={terminalId:ge,doctorRoleId:I,treatmentLocationId:Q,slotNr:Number(ut||0),...Ee?{waitingRoomId:Ee}:{}},oe=await Ib(B);if(g(!1),oe!=null&&oe.error){w(K(oe,"Setup konnte nicht abgeschlossen werden."));return}T(null),Se(!0),Gt()},Fe=(B,oe)=>{ae(ke=>({...ke,[B]:oe}))},Je=(B,oe)=>{const ke=String(B??"").trim();ke&&ae(Pe=>({gdt_folder:Pe.gdt_folder||(oe==null?void 0:oe.gdt_folder)||ke,watch_folder:Pe.watch_folder||(oe==null?void 0:oe.watch_folder)||ke,processed_folder:Pe.processed_folder||(oe==null?void 0:oe.processed_folder)||ke,outbound_folder:Pe.outbound_folder||(oe==null?void 0:oe.outbound_folder)||ke}))},at=async({requirePassword:B=!1}={})=>{const oe=String(Ae).trim(),ke=String(Xe).trim(),Pe=String(E);if(!oe||!ke)return w("Bitte Netzwerkpfad (UNC) und Benutzername eingeben."),!1;if(B&&!Pe){if(!u)return w("Bitte Passwort für die Netzwerkfreigabe eingeben."),!1;if(h)return!0}if(!Pe&&u&&h)return!0;if(!Pe)return w("Bitte Passwort eingeben, um die Netzwerkfreigabe zu verbinden."),!1;N(!0),D();try{const it=await l1({unc:oe,user:ke,password:Pe});return it!=null&&it.error||(it==null?void 0:it.ok)===!1?(w((it==null?void 0:it.error)||"Netzwerkfreigabe konnte nicht verbunden werden."),m(!1),!1):(f(!0),m(!0),it!=null&&it.unc&&xe(it.unc),Je((it==null?void 0:it.unc)||oe,it==null?void 0:it.suggestions),l(""),!0)}catch(it){return w((it==null?void 0:it.message)||"Netzwerkfreigabe konnte nicht verbunden werden."),m(!1),!1}finally{N(!1)}},jt=async()=>{await at({requirePassword:!0})},Gt=async()=>{Ge(!0),D();try{const B=await e1();if(B!=null&&B.error){w(B.error);return}Ye((B==null?void 0:B.enabled)===!0),ae({gdt_folder:(B==null?void 0:B.gdt_folder)??"",watch_folder:(B==null?void 0:B.watch_folder)??"",processed_folder:(B==null?void 0:B.processed_folder)??"",outbound_folder:(B==null?void 0:B.outbound_folder)??""});const oe=await a1();oe!=null&&oe.error||(f((oe==null?void 0:oe.configured)===!0),m((oe==null?void 0:oe.configured)===!0),oe!=null&&oe.unc&&xe(oe.unc),oe!=null&&oe.user&&p(oe.user)),de(!0)}catch(B){w((B==null?void 0:B.message)||"Emma-Sync Konfiguration konnte nicht geladen werden.")}finally{Ge(!1)}},wt=async B=>{if(Re){ct(B),D();try{if(!await at({requirePassword:!0}))return;const ke=await n1({initialPath:String(Ae).trim()||void 0});if(ke!=null&&ke.error){w(ke.error);return}ke!=null&&ke.path&&Fe(B,ke.path)}catch(oe){w((oe==null?void 0:oe.message)||"Ordnerauswahl fehlgeschlagen.")}finally{ct(null)}}},Ft=async()=>{if(D(),Re){if(!h&&!await at({requirePassword:!0}))return;if(["gdt_folder","watch_folder","processed_folder","outbound_folder"].filter(oe=>!String($e[oe]??"").trim()).length>0){w("Bitte alle Emma-Sync Ordner auswählen oder eintragen.");return}if(String($e.outbound_folder??"").trim().toLowerCase()===String($e.gdt_folder??"").trim().toLowerCase()){w("Outbound-Ordner muss sich vom GDT-Ordner unterscheiden.");return}}g(!0);try{const B={enabled:Re,setup_completed:!0,upload_enabled:!0,...Re?$e:{}},oe=await t1(B);if(oe!=null&&oe.error){w(oe.error);return}r==null||r()}catch(B){w((B==null?void 0:B.message)||"Emma-Sync konnte nicht gespeichert werden.")}finally{g(!1)}},Ht=k.useMemo(()=>(z==null?void 0:z.arztrollen)||[],[z]),qt=k.useMemo(()=>Ht.find(B=>String(B.arztrolleId)===String(I))||null,[Ht,I]),tn=k.useMemo(()=>Ht.some(B=>String(B.arztrolleId)===String(I)),[Ht,I]);function zt(B){const oe=new WeakSet,ke=Pe=>{if(Pe===null||typeof Pe!="object")return Pe;if(oe.has(Pe))return"[Circular]";if(oe.add(Pe),Array.isArray(Pe))return Pe.map(ke);const it={};return Object.keys(Pe).sort().forEach(Qt=>{it[Qt]=ke(Pe[Qt])}),it};return JSON.stringify(ke(B))}const pt=k.useMemo(()=>{const B=(qt==null?void 0:qt.behandlungsorte)||[],oe=new Set;return B.filter(ke=>{const Pe=zt(ke);return oe.has(Pe)?!1:(oe.add(Pe),!0)})},[qt]),Ct=k.useMemo(()=>pt.some(B=>String(B.behandlungsortId)===String(Q)),[pt,Q]),cn=k.useMemo(()=>(P==null?void 0:P.terminals)||[],[P]),Mt=k.useMemo(()=>(ye==null?void 0:ye.wartebereiche)||[],[ye]),Kt=Mt.length>0;if(k.useEffect(()=>{s===2&&(c||z||rt())},[s]),k.useEffect(()=>{if(s!==4||c||!tn||!Ct)return;const B=`${I}__${Q}`;H.current===B&&P||ze()},[s,I,Q,tn,Ct]),k.useEffect(()=>{s===5&&(c||ge&&(M.current&&ye||De()))},[s,ge]),k.useEffect(()=>{(async()=>{var oe,ke;try{const[Pe,it]=await Promise.all([Op(),Np()]),Qt=((oe=Pe==null?void 0:Pe.result)==null?void 0:oe.exists)===!0,on=((ke=it==null?void 0:it.result)==null?void 0:ke.exists)===!0;Qt&&!on&&(d(5),Se(!0),Gt())}catch{}})()},[]),k.useEffect(()=>{if(!I)return;Ht.some(oe=>String(oe.arztrolleId)===String(I))||(ue(""),Z(""),se(null),ce(""),H.current="",Me(null),Ue(""),M.current=!1)},[Ht,I]),k.useEffect(()=>{if(!Q)return;pt.some(oe=>String(oe.behandlungsortId)===String(Q))||(Z(""),se(null),ce(""),H.current="",Me(null),Ue(""),M.current=!1)},[pt,Q]),c)return b.jsx("div",{className:"t2med-wizard t2med-loading",children:b.jsxs("div",{className:"loading-card",role:"status","aria-live":"polite",children:[b.jsx("div",{className:"loading-spinner","aria-hidden":"true"}),b.jsxs("div",{className:"loading-text",children:[b.jsx("div",{className:"loading-title",children:"Bitte warten…"}),b.jsx("div",{className:"loading-sub",children:"Daten werden geladen"})]}),b.jsx("div",{className:"loading-bar-container","aria-hidden":"true",children:b.jsx("div",{className:"loading-bar"})})]})});const na=(O==null?void 0:O.step)&&Number.isFinite(O.step)&&O.step!==s;return b.jsxs("div",{className:"t2med-wizard",onMouseDown:()=>x&&T(null),children:[b.jsxs("header",{className:"wizard-header",children:[b.jsxs("div",{className:"wizard-top",children:[b.jsxs("div",{className:"wizard-title",children:[b.jsx("div",{className:"wizard-title-main",children:"T2Med Setup"}),b.jsxs("div",{className:"wizard-title-sub",children:["In ",Xs," Schritten einsatzbereit machen"]})]}),b.jsx("div",{className:"wizard-step-indicator",children:b.jsxs("span",{className:"step-badge",children:["Schritt ",s,"/",Xs]})})]}),b.jsxs("div",{className:"wizard-progress","aria-label":"Setup Fortschritt",children:[b.jsx("div",{className:"wizard-progress-track",children:b.jsx("div",{className:"wizard-progress-bar",style:{width:`${s/Xs*100}%`}})}),b.jsx("div",{className:"wizard-progress-labels",children:zm.map(B=>{const oe=tt(B.id);return b.jsxs("button",{type:"button",className:`progress-label ${B.id===s?"active":""} ${B.id<s?"done":""} ${oe?"is-clickable":""}`,disabled:!oe,"aria-current":B.id===s?"step":void 0,onClick:()=>Qe(B.id),children:[B.id,". ",B.title]},B.id)})})]})]}),b.jsxs("main",{className:"wizard-content",onMouseDown:B=>B.stopPropagation(),children:[b.jsxs("div",{className:"step-head",children:[b.jsxs("h2",{className:"step-title",children:[s,". ",et]}),b.jsxs("div",{className:"step-help",children:[s===1&&"Verbindung testen und Station registrieren.",s===2&&"Arztrolle und Behandlungsort auswählen.",s===3&&"Bitte legen Sie zuerst in T2Med einen Arbeitsplatz an, bevor Sie ein Terminal auswählen.",s===4&&"Passenden Kartenleser/Terminal bestimmen.",s===5&&!_e&&"Wartebereich wählen, Slot setzen und T2Med-Setup speichern.",s===5&&_e&&"GDT-, PDF- und Outbound-Ordner für Emma-Sync einrichten."]})]}),y&&b.jsxs("div",{className:"alert alert-error",role:"alert",children:[b.jsx("div",{className:"alert-title-row",children:b.jsx("div",{className:"alert-title",children:O!=null&&O.title?O.title:"Fehler"})}),b.jsx("div",{className:"alert-body",children:y}),na&&b.jsxs("div",{className:"alert-hint",children:["Das Problem gehört zu ",b.jsxs("b",{children:["Schritt ",O.step]}),"."," ",b.jsxs("button",{type:"button",className:"link-btn",onClick:()=>Qe(O.step),children:["Zu Schritt ",O.step," wechseln"]})]})]}),s===1&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"panel-grid",children:[b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Host ",b.jsx(sl,{text:"Hostname oder IP-Adresse des T2Med-Systems."})]}),b.jsx("input",{ref:B=>R.current.host=B,name:"host",value:j.host,onChange:B=>ie("host",B.target.value),onFocus:()=>J("host"),autoComplete:"off",placeholder:"10.8.0.1",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Port ",b.jsx(sl,{text:"Standard: 16567"})]}),b.jsx("input",{ref:B=>R.current.port=B,name:"port",value:j.port,onChange:B=>ie("port",B.target.value),onFocus:()=>J("port"),inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off",placeholder:"16567",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["API Key ",b.jsx(sl,{text:"Individueller API-Schlüssel des T2Med-Systems."})]}),b.jsx("input",{ref:B=>R.current.apiKey=B,name:"apiKey",value:j.apiKey,onChange:B=>ie("apiKey",B.target.value),onFocus:()=>J("apiKey"),autoComplete:"off",placeholder:"efae5750-cec3-4f0b-93b9-6041eced17ad",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Benutzername ",b.jsx(sl,{text:"T2Med-Benutzername (wird auf dem Server in Basic Auth umgewandelt)."})]}),b.jsx("input",{ref:B=>R.current.username=B,name:"username",value:j.username,onChange:B=>ie("username",B.target.value),onFocus:()=>J("username"),autoComplete:"off",type:"text",placeholder:"t2checkin",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Passwort ",b.jsx(sl,{text:"Passwort des T2Med-Benutzers."})]}),b.jsx("input",{ref:B=>R.current.password=B,name:"password",value:j.password,onChange:B=>ie("password",B.target.value),onFocus:()=>J("password"),autoComplete:"off",type:"password",placeholder:"••••••••",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Station Name"," ",b.jsx(sl,{text:"Display-Name der Station (wird in T2Med registriert)."})]}),b.jsx("input",{ref:B=>R.current.stationName=B,name:"stationName",value:j.stationName,onChange:B=>ie("stationName",B.target.value),onFocus:()=>J("stationName"),autoComplete:"off",placeholder:"EMMA-KIOSK",required:!0})]})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn ghost",type:"button",onClick:()=>window.location.href="/start",children:"Abbrechen"}),b.jsx("button",{className:"btn primary",type:"button",onClick:Ie,children:"Verbindung prüfen & Weiter"})]})]}),s===2&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"panel-row",children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Praxisstruktur"}),b.jsx("div",{className:"hint-text",children:"Rollen/Behandlungsorte werden beim Öffnen dieses Schritts automatisch geladen. Du kannst bei Bedarf manuell neu laden."})]}),b.jsx("div",{className:"panel-actions-inline",children:b.jsx("button",{className:"btn",type:"button",onClick:rt,children:"Neu laden"})})]}),!z&&b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-title",children:"Lade Daten…"}),b.jsx("div",{className:"empty-text",children:"Falls nichts passiert, prüfe die Verbindung in Schritt 1 und lade erneut."})]}),z&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"select-grid",children:[b.jsxs("div",{className:"select-col",children:[b.jsxs("div",{className:"select-head",children:[b.jsx("div",{className:"select-title",children:"Arztrolle"}),b.jsxs("div",{className:"select-sub",children:[Ht.length," verfügbar"]})]}),b.jsxs("div",{className:"card-list",children:[Ht.map(B=>{const oe=String(B.arztrolleId)===String(I);return b.jsxs("button",{type:"button",className:`choice-card ${oe?"selected":""}`,onClick:()=>{ue(B.arztrolleId),Z(""),se(null),ce(""),H.current="",Me(null),Ue(""),M.current=!1},children:[b.jsx("div",{className:"choice-title",children:B.beschreibung||"Ohne Beschreibung"}),b.jsxs("div",{className:"choice-meta",children:["ID: ",B.arztrolleId]}),b.jsx("div",{className:"choice-badge",children:oe?"Ausgewählt":"Wählen"})]},B.arztrolleId)}),Ht.length===0&&b.jsx("div",{className:"empty-mini",children:"Keine Arztrollen gefunden."})]})]}),b.jsxs("div",{className:"select-col",children:[b.jsxs("div",{className:"select-head",children:[b.jsx("div",{className:"select-title",children:"Behandlungsort"}),b.jsx("div",{className:"select-sub",children:I?`${pt.length} verfügbar`:"Bitte zuerst eine Arztrolle wählen"})]}),b.jsxs("div",{className:"card-list",children:[I&&pt.map(B=>{const oe=String(B.behandlungsortId)===String(Q);return b.jsxs("button",{type:"button",className:`choice-card ${oe?"selected":""}`,onClick:()=>{Z(B.behandlungsortId),se(null),ce(""),H.current="",Me(null),Ue(""),M.current=!1},children:[b.jsx("div",{className:"choice-title",children:B.beschreibung||"Ohne Beschreibung"}),b.jsxs("div",{className:"choice-meta",children:["ID: ",B.behandlungsortId]}),b.jsx("div",{className:"choice-badge",children:oe?"Ausgewählt":"Wählen"})]},B.behandlungsortId)}),!I&&b.jsx("div",{className:"empty-mini",children:"Wähle oben eine Arztrolle, um Behandlungsorte zu sehen."}),I&&pt.length===0&&b.jsx("div",{className:"empty-mini",children:"Keine Behandlungsorte für diese Arztrolle."})]})]})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:Ke,disabled:!Ze,children:"Zurück"}),b.jsx("button",{className:"btn primary",type:"button",onClick:()=>d(3),disabled:!z||!tn||!Ct,children:"Weiter"})]})]}),!z&&b.jsx("div",{className:"sticky-actions",children:b.jsx("button",{className:"btn",type:"button",onClick:Ke,disabled:!Ze,children:"Zurück"})})]}),s===3&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Arbeitsplatz in T2Med anlegen"}),b.jsx("div",{className:"hint-text",children:"Richten Sie nun einen Arbeitsplatz in T2Med ein. Sobald der Arbeitsplatz dort angelegt ist, klicken Sie auf „Okay“, um fortzufahren."})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:Ke,disabled:!Ze,children:"Zurück"}),b.jsx("button",{className:"btn primary",type:"button",onClick:()=>d(4),children:"Okay"})]})]}),s===4&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"panel-row",children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Terminals"}),b.jsx("div",{className:"hint-text",children:"Terminals werden beim Öffnen automatisch geladen (sobald Arztrolle & Behandlungsort gesetzt sind)."})]}),b.jsx("div",{className:"panel-actions-inline",children:b.jsx("button",{className:"btn",type:"button",onClick:ze,disabled:!tn||!Ct,children:"Neu laden"})})]}),(!tn||!Ct)&&b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-title",children:"Auswahl fehlt"}),b.jsx("div",{className:"empty-text",children:"Bitte gehe zurück und wähle Arztrolle & Behandlungsort."})]}),I&&Q&&!P&&b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-title",children:"Lade Terminals…"}),b.jsx("div",{className:"empty-text",children:"Falls nichts kommt: „Neu laden“ nutzen oder Schritt 2 erneut prüfen."})]}),P&&b.jsx(b.Fragment,{children:b.jsxs("div",{className:"terminal-grid",children:[cn.map(B=>{const oe=String(B.terminalId)===String(ge);return b.jsxs("button",{type:"button",className:`terminal-card ${oe?"selected":""}`,onClick:()=>{ce(B.terminalId),Me(null),Ue(""),M.current=!1},children:[b.jsxs("div",{className:"terminal-top",children:[b.jsx("div",{className:"terminal-id",children:B.terminalId}),b.jsx("div",{className:"terminal-slots",children:Number.isFinite(B.slots)?`${B.slots} Slots`:"Slots ?"})]}),b.jsx("div",{className:"terminal-desc",children:B.beschreibung||"Ohne Beschreibung"}),b.jsx("div",{className:"terminal-cta",children:oe?"Ausgewählt":"Wählen"})]},B.terminalId)}),cn.length===0&&b.jsx("div",{className:"empty-mini",children:"Keine Terminals gefunden."})]})}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:Ke,disabled:!Ze,children:"Zurück"}),P&&b.jsx("button",{className:"btn primary",type:"button",onClick:()=>d(5),disabled:!ge,children:"Weiter"})]})]}),s===5&&!_e&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"summary-box",children:[b.jsxs("div",{className:"summary-row",children:[b.jsx("div",{className:"summary-label",children:"Arztrolle"}),b.jsx("div",{className:"summary-value mono",children:I||"-"})]}),b.jsxs("div",{className:"summary-row",children:[b.jsx("div",{className:"summary-label",children:"Behandlungsort"}),b.jsx("div",{className:"summary-value mono",children:Q||"-"})]}),b.jsxs("div",{className:"summary-row",children:[b.jsx("div",{className:"summary-label",children:"Terminal"}),b.jsx("div",{className:"summary-value mono",children:ge||"-"})]})]}),b.jsxs("div",{className:"panel-row",children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Wartebereiche"}),b.jsx("div",{className:"hint-text",children:"Die verfügbaren Wartebereiche werden beim Öffnen dieses Schritts automatisch geladen."})]}),b.jsx("div",{className:"panel-actions-inline",children:b.jsx("button",{className:"btn",type:"button",onClick:De,children:"Neu laden"})})]}),!ye&&b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-title",children:"Lade Wartebereiche…"}),b.jsx("div",{className:"empty-text",children:"Falls nichts passiert, bitte erneut laden oder die vorherigen Schritte prüfen."})]}),ye&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"terminal-grid",children:[Mt.map(B=>{const oe=String(B.wartebereichId)===String(Ee);return b.jsxs("button",{type:"button",className:`terminal-card ${oe?"selected":""}`,onClick:()=>Ue(B.wartebereichId),children:[b.jsx("div",{className:"terminal-top",children:b.jsx("div",{className:"terminal-id",children:B.wartebereichId})}),b.jsx("div",{className:"terminal-desc",children:B.beschreibung||"Ohne Beschreibung"}),b.jsx("div",{className:"terminal-cta",children:oe?"Ausgewählt":"Wählen"})]},B.wartebereichId)}),Mt.length===0&&b.jsx("div",{className:"empty-mini",children:"Keine Wartebereiche gefunden."})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Slot Nr ",b.jsx(sl,{text:"Mehrere Slots am Kartenleser (Standard: 1)."})]}),b.jsx("input",{ref:B=>R.current.slotNr=B,name:"slotNr",value:String(ut),onChange:B=>ie("slotNr",B.target.value),onFocus:()=>J("slotNr"),inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off",placeholder:"1"})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:Ke,disabled:!Ze,children:"Zurück"}),b.jsx("button",{className:"btn primary",type:"button",onClick:Ce,disabled:!ye||Kt&&!Ee,children:"Weiter"})]})]}),!ye&&b.jsx("div",{className:"sticky-actions",children:b.jsx("button",{className:"btn",type:"button",onClick:Ke,disabled:!Ze,children:"Zurück"})})]}),s===5&&_e&&b.jsx("section",{className:"panel emma-sync-step",children:we&&!U?b.jsx("div",{className:"empty-state",children:b.jsx("div",{className:"empty-title",children:"Lade Emma-Sync…"})}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"emma-sync-toggle-row",children:[b.jsxs("div",{className:"emma-sync-toggle-label",children:[b.jsx("div",{className:"hint-title",children:"Emma-Sync aktivieren"}),b.jsx("div",{className:"hint-text",children:"Wenn deaktiviert, werden keine Ordner überwacht und kein Hintergrunddienst gestartet."})]}),b.jsxs("label",{className:"emma-sync-switch","aria-label":"Emma-Sync aktivieren",children:[b.jsx("input",{type:"checkbox",checked:Re,onChange:B=>Ye(B.target.checked)}),b.jsx("span",{className:"emma-sync-switch-slider"})]})]}),b.jsxs("div",{className:`emma-sync-paths ${Re?"":"is-disabled"}`,children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Netzwerkfreigabe"}),b.jsx("div",{className:"hint-text",children:"Zugangsdaten für den Praxis-Netzwerkordner (UNC). Erforderlich wenn Emma-Sync aktiv ist. Zuerst „Verbindung testen“, danach die Unterordner auswählen (z. B. GDT, PDF)."})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Netzwerkpfad (UNC)"}),b.jsx("input",{ref:B=>R.current.smbUnc=B,type:"text",value:Ae,onChange:B=>{xe(B.target.value),m(!1)},onFocus:()=>J("smbUnc"),disabled:!Re,placeholder:"\\\\server\\freigabe",autoComplete:"off"})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Benutzername"}),b.jsx("input",{ref:B=>R.current.smbUser=B,type:"text",value:Xe,onChange:B=>{p(B.target.value),m(!1)},onFocus:()=>J("smbUser"),disabled:!Re,autoComplete:"off"})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Passwort"}),b.jsx("input",{ref:B=>R.current.smbPassword=B,type:"password",value:E,onChange:B=>{l(B.target.value),m(!1)},onFocus:()=>J("smbPassword"),disabled:!Re,autoComplete:"off",placeholder:u?"Bereits gespeichert (neu eingeben zum Ändern)":""})]}),b.jsxs("div",{className:"smb-connect-row",children:[b.jsx("button",{type:"button",className:"btn",disabled:!Re||S,onClick:()=>void jt(),children:S?"Verbinde…":"Verbindung testen"}),h&&b.jsx("span",{className:"smb-connected-badge",role:"status",children:"Verbunden — Ordner können ausgewählt werden"})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"GDT-Ordner"}),b.jsxs("div",{className:"path-row",children:[b.jsx("input",{type:"text",value:$e.gdt_folder,onChange:B=>Fe("gdt_folder",B.target.value),disabled:!Re,placeholder:h?Ae:"",autoComplete:"off"}),b.jsx("button",{type:"button",className:"btn",disabled:!Re||!h||mt==="gdt_folder",onClick:()=>void wt("gdt_folder"),children:"Durchsuchen…"})]})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Überwachungsordner (PDF)"}),b.jsxs("div",{className:"path-row",children:[b.jsx("input",{type:"text",value:$e.watch_folder,onChange:B=>Fe("watch_folder",B.target.value),disabled:!Re,placeholder:h?Ae:"",autoComplete:"off"}),b.jsx("button",{type:"button",className:"btn",disabled:!Re||!h||mt==="watch_folder",onClick:()=>void wt("watch_folder"),children:"Durchsuchen…"})]})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Verarbeitete Dateien"}),b.jsxs("div",{className:"path-row",children:[b.jsx("input",{type:"text",value:$e.processed_folder,onChange:B=>Fe("processed_folder",B.target.value),disabled:!Re,placeholder:h?Ae:"",autoComplete:"off"}),b.jsx("button",{type:"button",className:"btn",disabled:!Re||!h||mt==="processed_folder",onClick:()=>void wt("processed_folder"),children:"Durchsuchen…"})]})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:'Outbound-Ordner (T2med-Knopf „EMMA-Outbound")'}),b.jsxs("div",{className:"path-row",children:[b.jsx("input",{type:"text",value:$e.outbound_folder,onChange:B=>Fe("outbound_folder",B.target.value),disabled:!Re,placeholder:h?Ae:"",autoComplete:"off"}),b.jsx("button",{type:"button",className:"btn",disabled:!Re||!h||mt==="outbound_folder",onClick:()=>void wt("outbound_folder"),children:"Durchsuchen…"})]})]}),b.jsx("p",{className:"hint-text emma-sync-upload-hint",children:"Datei-Upload ist immer aktiv, wenn Emma-Sync eingeschaltet ist."})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:Ke,disabled:!Ze,children:"Zurück"}),b.jsx("button",{className:"btn primary",type:"button",onClick:()=>void Ft(),children:"Einrichtung abschließen"})]})]})})]}),x&&b.jsxs("div",{className:"keyboard-dock",onMouseDown:B=>B.stopPropagation(),children:[b.jsxs("div",{className:"active-input-bar",children:[b.jsxs("div",{className:"active-input-row",children:[b.jsx("div",{className:"active-input-label",children:(Y==null?void 0:Y.label)||x}),b.jsxs("div",{className:"active-input-actions",children:[b.jsx("button",{type:"button",className:"dock-btn",onClick:Le,disabled:re<=0,children:"Zurück"}),b.jsx("button",{type:"button",className:"dock-btn",onClick:Be,children:"Weiter"}),b.jsx("button",{type:"button",className:"dock-btn",onClick:dt,children:"Schließen"})]})]}),b.jsx("input",{className:"active-input-value",value:pe,onChange:B=>x&&ie(x,B.target.value),inputMode:G==="numeric"?"numeric":"text",autoComplete:"off"})]}),b.jsx(j1,{mode:G||"full",onInput:be,onBackspace:he,onClear:Oe,onSpace:Ne,onEnter:Te,onClose:dt})]})]})}const Mm={patient:"Patientenflow",setup:"Setup-Wizard"};function z1(r){const s={patient:[],setup:[]};for(const d of r)s[d.group]&&s[d.group].push(d);return s}function M1({onShowT2medError:r}){var _e;const s=yn(),{allowed:d,resolved:c,error:g}=oc(),[y,w]=k.useState(!0),[O,C]=k.useState(""),[j,_]=k.useState([]),[z,ne]=k.useState(null),[I,ue]=k.useState("happy"),[Q,Z]=k.useState(!1),[P,se]=k.useState(""),ge=k.useMemo(()=>z1(j),[j]),ce=k.useMemo(()=>j.find(Se=>Se.id===I)??null,[j,I]),ye=k.useCallback(async()=>{w(!0),C("");const Se=await Qb();if(Se!=null&&Se.error){C(Se.error),_([]),w(!1);return}_(Array.isArray(Se==null?void 0:Se.scenarios)?Se.scenarios:[]);const Re=(Se==null?void 0:Se.activeScenarioId)??null;ne(Re),Re&&ue(Re),w(!1)},[]);if(k.useEffect(()=>{ye()},[ye]),!c)return b.jsx("div",{className:"t2med-dev-loading",children:"Lade Szenarien…"});if(!d)return b.jsxs("div",{className:"t2med-dev-scenarios",children:[b.jsxs("header",{className:"t2med-dev-header",children:[b.jsx("h1",{children:"T2med Dev"}),b.jsx("p",{children:g??"Dev-Modus ist deaktiviert. Nutze die Dev-Release (emma-agent.config.json mit t2medDevMock) oder setze EMMA_CONFIG_PROFILE=dev und starte den Agent neu."})]}),b.jsx("button",{type:"button",className:"footer-button",onClick:()=>s("/start"),children:"Zurück"})]});const Me=async Se=>{Z(!0),C("");const Re=await _m(Se);return Z(!1),Re!=null&&Re.error?(C(Re.error),!1):(ne((Re==null?void 0:Re.activeScenarioId)??Se??null),!0)},Ee=async()=>{await Me(I)&&s("/start")},Ue=async()=>{Z(!0),C("");const Se=await _m(null);if(Z(!1),Se!=null&&Se.error){C(Se.error);return}ne(null),ue("happy")},ut=async()=>{if(!ce||ce.level==="ok"){se("Bitte ein Fehler-Szenario wählen (kein Happy Path).");return}Z(!0),se("");const Se=await xp({code:ce.code,operation:ce.operation});if(Z(!1),(Se==null?void 0:Se.t2medCode)!=null&&typeof r=="function"){r(Se);return}Se!=null&&Se.error&&se(Se.error)},je=Se=>{if(!Se||Se.level==="ok")return null;const Re=Cp(Se.code);return b.jsxs("div",{className:"t2med-dev-scenario-meta",children:[b.jsxs("span",{children:["Code ",Se.code]}),b.jsx("span",{children:Se.operation}),Re!=null&&Re.hint?b.jsx("p",{children:Re.hint}):null,Se.uiOutcome?b.jsx("p",{className:"t2med-dev-outcome",children:Se.uiOutcome}):null]})};return b.jsxs("div",{className:"t2med-dev-scenarios",children:[b.jsxs("header",{className:"t2med-dev-header",children:[b.jsx("h1",{children:"T2med Dev-Szenarien"}),b.jsxs("p",{children:["Wähle ein Szenario für In-Flow-Tests (echter Kiosk-Ablauf) oder teste Overlay + Audit direkt. Audit-Einträge in ",b.jsx("code",{children:"audit.terminal_errors"})," erfordern ein eingeschriebenes Terminal-Zertifikat."]}),z?b.jsxs("div",{className:"t2med-dev-active-badge",children:["Aktiv: ",((_e=j.find(Se=>Se.id===z))==null?void 0:_e.label)??z]}):b.jsx("div",{className:"t2med-dev-active-badge t2med-dev-active-badge--none",children:"Kein Szenario aktiv"})]}),y?b.jsx("div",{className:"t2med-dev-loading",children:"Lade Szenarien…"}):b.jsxs(b.Fragment,{children:[O?b.jsx("div",{className:"t2med-dev-error",children:O}):null,P?b.jsx("div",{className:"t2med-dev-info",children:P}):null,b.jsx("div",{className:"t2med-dev-sections",children:Object.entries(ge).map(([Se,Re])=>b.jsxs("section",{className:"t2med-dev-section",children:[b.jsx("h2",{children:Mm[Se]??Se}),b.jsx("div",{className:"t2med-dev-scenario-list",role:"radiogroup","aria-label":Mm[Se],children:Re.map(Ye=>b.jsxs("label",{className:`t2med-dev-scenario-card${I===Ye.id?" t2med-dev-scenario-card--selected":""}`,children:[b.jsx("input",{type:"radio",name:"t2med-dev-scenario",value:Ye.id,checked:I===Ye.id,onChange:()=>ue(Ye.id)}),b.jsx("span",{className:"t2med-dev-scenario-title",children:Ye.label}),Ye.level==="warning"?b.jsx("span",{className:"t2med-dev-tag t2med-dev-tag--warning",children:"Warnung"}):null,Ye.level==="ok"?b.jsx("span",{className:"t2med-dev-tag t2med-dev-tag--ok",children:"OK"}):null]},Ye.id))})]},Se))}),je(ce),b.jsxs("div",{className:"t2med-dev-actions",children:[b.jsx("button",{type:"button",className:"t2med-dev-btn t2med-dev-btn--primary",disabled:Q,onClick:()=>void Ee(),children:"Szenario anwenden & Flow starten"}),b.jsx("button",{type:"button",className:"t2med-dev-btn",disabled:Q,onClick:()=>void ut(),children:"Overlay + Audit jetzt testen"}),b.jsx("button",{type:"button",className:"t2med-dev-btn t2med-dev-btn--ghost",disabled:Q,onClick:()=>void Ue(),children:"Szenario zurücksetzen"}),b.jsx("button",{type:"button",className:"t2med-dev-btn t2med-dev-btn--ghost",disabled:Q,onClick:()=>s("/start"),children:"Zurück zum Start"})]}),b.jsxs("p",{className:"t2med-dev-footnote",children:["Shortcut: ",b.jsx("code",{children:"?mockT2medError=502&mockT2medOperation=karteanfordern"})," auf /start funktioniert weiterhin für Overlay-Tests."]})]})]})}function B1({resetPatientData:r}){const s=k.useRef(null),d=k.useRef(null),c=yn(),g=vl(),[y,w]=k.useState(!1),[O,C]=k.useState(10),j=k.useRef(!1),_=k.useRef(!1),z=g.pathname==="/start",ne=g.pathname==="/setup-t2med",I=()=>{sessionStorage.clear(),localStorage.clear(),r(),z?window.location.reload():c("/start"),w(!1),j.current=!1,_.current=!1},ue=()=>{if(ne||(s.current&&clearTimeout(s.current),j.current)||z)return;const P=60*1e3;s.current=setTimeout(()=>{w(!0),j.current=!0,C(10),d.current=setInterval(()=>{C(se=>se<=1?(clearInterval(d.current),I(),0):se-1)},1e3)},P)},Q=()=>{_.current=!0,ue()},Z=()=>{d.current&&clearInterval(d.current),w(!1),j.current=!1,ue()};return k.useEffect(()=>{const P=["mousemove","mousedown","keydown","touchstart"];return P.forEach(se=>window.addEventListener(se,Q)),ue(),()=>{clearTimeout(s.current),clearInterval(d.current),P.forEach(se=>window.removeEventListener(se,Q))}},[g]),!z&&!ne&&y?b.jsx("div",{className:"auto-reset-popup",children:b.jsxs("div",{className:"popup-content",children:[b.jsx("h2",{children:"Keine Aktion erkannt"}),b.jsxs("p",{children:["In ",O," Sekunden wird die Anmeldung abgebrochen."]}),b.jsx("button",{onClick:Z,children:"Fortfahren"})]})}):null}function U1(){const r=k.useRef(null),s=yn();k.useEffect(()=>{r.current&&(r.current.load(),r.current.play().catch(()=>{}))},[]);const d=()=>{s("/",{replace:!0})};return b.jsx("div",{className:"welcome-screen",children:b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:r,src:"/videos/Privat_ohne_Karte.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:d})})})}function k1(){const r=k.useRef(null),s=yn();return k.useEffect(()=>{r.current&&(r.current.load(),r.current.play().catch(()=>{}))},[]),b.jsx("div",{className:"welcome-screen",children:b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:r,src:"/videos/Kein_Termin_vorhanden.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:()=>s("/")})})})}function L1(){const r=yn(),s=()=>{sessionStorage.clear(),localStorage.clear(),r("/start",{replace:!0})};return b.jsx("button",{className:"footer-button footer-button--restart",onClick:s,children:"⟳"})}function H1(){const r=vl(),s=yn(),{allowed:d,resolved:c}=oc(),[g,y]=k.useState(typeof window<"u"&&window.__hideFooter===!0);if(k.useEffect(()=>{const _=()=>y(window.__hideFooter===!0);return window.addEventListener("footer:update",_),_(),()=>window.removeEventListener("footer:update",_)},[]),g||["/enter-key","/setup-t2med","/dev/t2med"].includes(r.pathname))return null;const O=()=>!c||!d||r.pathname!=="/start"?null:b.jsx("button",{type:"button",className:"footer-button footer-button--dev",onClick:()=>s("/dev/t2med"),children:"T2med Dev"}),C=()=>r.pathname==="/start"?b.jsxs(b.Fragment,{children:[O(),b.jsx("button",{className:"footer-button footer-button--start",onClick:()=>s("/welcome"),children:"Start"})]}):null,j=()=>r.pathname==="/start"||r.pathname==="/final"?null:b.jsx(L1,{});return b.jsxs("footer",{className:"terminal-footer",children:[b.jsx("div",{className:"footer-left"}),b.jsx("div",{className:"footer-center",children:C()}),b.jsx("div",{className:"footer-right",children:j()})]})}const q1="Kartenlesen nicht möglich",K1="Es ist ein Fehler aufgetreten. Bitte informieren Sie das Personal.";function V1({response:r,onDismiss:s,onRetry:d,embedded:c=!1,fallbackTitle:g=q1}){if(!r)return null;const y=(r==null?void 0:r.level)==="warning"?"warning":"error",w=g,O=(r==null?void 0:r.userMessage)||K1,C=y==="warning"?"!":"×";return b.jsx("div",{className:`t2med-error-overlay${c?" embedded":""}`,role:"alertdialog","aria-modal":"true","aria-labelledby":"t2med-error-title",children:b.jsxs("div",{className:`t2med-error-card ${y}`,children:[b.jsxs("div",{className:"t2med-error-head",children:[y==="error"&&s?b.jsx("button",{type:"button",className:"t2med-error-icon t2med-error-close-icon",onClick:s,"aria-label":"Fehlermeldung schließen",children:C}):b.jsx("div",{className:"t2med-error-icon","aria-hidden":"true",children:C}),b.jsx("div",{id:"t2med-error-title",className:"t2med-error-title",children:w})]}),b.jsx("div",{className:"t2med-error-message",children:O}),(d||s)&&b.jsxs("div",{className:"t2med-error-actions",children:[s&&b.jsx("button",{type:"button",onClick:s,children:"Schließen"}),d&&b.jsx("button",{type:"button",className:"primary",onClick:d,children:"Erneut versuchen"})]})]})})}function G1(r){if(!r)return;const s=String(r).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(s))return s;const d=/^(\d{2})\.(\d{2})\.(\d{4})$/.exec(s);if(d)return`${d[3]}-${d[2]}-${d[1]}`}function Y1(){return sessionStorage.getItem("hasAppointment")==="true"}function X1(){const{certExists:r,setupDone:s}=k.useContext(sc);return r?s?b.jsx(fu,{to:"/start",replace:!0}):b.jsx(fu,{to:"/setup-t2med",replace:!0}):b.jsx(fu,{to:"/enter-key",replace:!0})}function Z1({patientData:r,updatePatientData:s,handleFinalSubmit:d,restartToStart:c,onShowT2medError:g}){return b.jsxs(Hy,{children:[b.jsx(vn,{path:"/",element:b.jsx(X1,{})}),b.jsx(vn,{path:"/start",element:b.jsx(v1,{})}),b.jsx(vn,{path:"/insurance-card",element:b.jsx(O1,{})}),b.jsx(vn,{path:"/no-insurance-card",element:b.jsx(U1,{})}),b.jsx(vn,{path:"/consent",element:b.jsx(fu,{to:"/health-card",replace:!0})}),b.jsx(vn,{path:"/welcome",element:b.jsx(g1,{})}),b.jsx(vn,{path:"/appointment-yesno",element:b.jsx(N1,{})}),b.jsx(vn,{path:"/reception",element:b.jsx(w1,{})}),b.jsx(vn,{path:"/keine-termine",element:b.jsx(A1,{})}),b.jsx(vn,{path:"/no-appointment",element:b.jsx(k1,{})}),b.jsx(vn,{path:"/appointment-selection",element:b.jsx(b1,{updatePatientData:s})}),b.jsx(vn,{path:"/health-card",element:b.jsx(y1,{updatePatientData:s,patientData:r})}),b.jsx(vn,{path:"/final",element:b.jsx(S1,{onRestart:c,onSubmit:d,patientData:r})}),b.jsx(vn,{path:"/setup-t2med",element:b.jsx(D1,{onSetupSuccess:()=>window.location.href="/start"})}),b.jsx(vn,{path:"/dev/t2med",element:b.jsx(M1,{onShowT2medError:g})}),b.jsx(vn,{path:"/enter-key",element:b.jsx(b.Fragment,{})})]})}function Q1(){const[r,s]=k.useState({firstName:"",lastName:"",birthDate:"",typeOfVisitationSteps:[]}),[d,c]=k.useState(!1),[g,y]=k.useState(null);vl();const w=yn();k.useEffect(()=>{const z=new URLSearchParams(window.location.search),ne=z.get("mockT2medError");if(ne==null||ne==="")return;const I=Number(ne);if(!Number.isFinite(I))return;const ue=z.get("mockT2medOperation")||"karteanfordern";let Q=!1;return(async()=>{const Z=await Ep();if(Q||(Z==null?void 0:Z.allowed)!==!0)return;const P=await xp({code:I,operation:ue});Q||y(P)})(),()=>{Q=!0}},[]);const O=(z,ne)=>{s(I=>{if(typeof z=="string")return{...I,[z]:ne};const ue=Number(z);if(!Number.isFinite(ue)||ue<1)return console.warn("updatePatientData called with invalid page:",z),I;const Q=Array.isArray(I.typeOfVisitationSteps)?[...I.typeOfVisitationSteps]:[],Z=ue-1;return Q[Z]=ne,Q.length=Z+1,{...I,typeOfVisitationSteps:Q}})},C=()=>{s({firstName:"",lastName:"",birthDate:"",typeOfVisitationSteps:[]})},j=()=>{c(!0),C(),sessionStorage.removeItem("t2medSitzungHandle"),w("/start",{replace:!0}),requestAnimationFrame(()=>{requestAnimationFrame(()=>c(!1))})},_=async()=>{try{const ne=(Array.isArray(r.typeOfVisitationSteps)?r.typeOfVisitationSteps.filter(Boolean):[]).join(" > "),I=ne||void 0,ue=(r.firstName||"").trim(),Q=(r.lastName||"").trim();if(!ue||!Q)return;const Z=G1(r.birthDate),P=Y1(),se={firstName:ue,lastName:Q,registration:new Date().toISOString(),typeOfVisitation:ne||"Sprechstunde",hasAppointment:P,status:"WAITING",active:!0,...Z?{birthDate:Z}:{},...I?{note:I}:{}},ge=await bp(se);if(ge!=null&&ge.error){console.error("Fehler beim Senden des Patienten:",ge);return}const ce=sessionStorage.getItem("t2medSitzungHandle");if(ce){const ye=await $b({sitzungHandle:ce,...I?{note:I}:{}});if(ye!=null&&ye.error){console.error("Warteraum-Eintrag konnte nicht angelegt werden:",ye),y(ye);return}sessionStorage.removeItem("t2medSitzungHandle")}}catch(z){console.error("Fehler beim Abschluss der Anmeldung:",z),y({userMessage:"Die Anmeldung konnte nicht abgeschlossen werden. Bitte informieren Sie das Personal."})}};return b.jsx("div",{className:"app-container",children:b.jsx(p1,{children:b.jsxs(x1,{children:[b.jsx(B1,{resetPatientData:C}),d&&b.jsx("div",{className:"reset-overlay",role:"status","aria-live":"polite",children:b.jsxs("div",{className:"reset-card",children:[b.jsx("div",{className:"spinner"}),b.jsx("div",{children:"Bitte warten…"})]})}),b.jsx("div",{className:"app-content",children:b.jsx(Z1,{patientData:r,updatePatientData:O,handleFinalSubmit:_,restartToStart:j,onShowT2medError:y})}),g&&b.jsx(V1,{response:g,onDismiss:()=>y(null)}),b.jsx(H1,{})]})})})}function F1(){const r=s=>{s.touches.length>1&&s.preventDefault()};document.addEventListener("touchstart",r,{passive:!1}),document.addEventListener("touchmove",r,{passive:!1}),document.addEventListener("wheel",s=>{s.ctrlKey&&s.preventDefault()},{passive:!1})}F1();Fg.createRoot(document.getElementById("root")).render(b.jsx(Bm.StrictMode,{children:b.jsx(Vy,{children:b.jsx(Q1,{})})}));
